Streamlined system messages

This commit is contained in:
Josh Perez 2021-08-26 16:51:55 -04:00 committed by GitHub
parent 1973224adb
commit 2b08cbfdfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 864 additions and 937 deletions

View file

@ -12,12 +12,13 @@ export enum ButtonSize {
}
export enum ButtonVariant {
Primary,
Secondary,
SecondaryAffirmative,
SecondaryDestructive,
Destructive,
Calling,
Primary = 'Primary',
Secondary = 'Secondary',
SecondaryAffirmative = 'SecondaryAffirmative',
SecondaryDestructive = 'SecondaryDestructive',
Destructive = 'Destructive',
Calling = 'Calling',
SystemMessage = 'SystemMessage',
}
type PropsType = {
@ -68,6 +69,7 @@ const VARIANT_CLASS_NAMES = new Map<ButtonVariant, string>([
],
[ButtonVariant.Destructive, 'module-Button--destructive'],
[ButtonVariant.Calling, 'module-Button--calling'],
[ButtonVariant.SystemMessage, 'module-Button--system-message'],
]);
export const Button = React.forwardRef<HTMLButtonElement, PropsType>(