-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
/** | ||
* Severity Enum | ||
* | ||
* This is a shared enum used to define the severity of different components | ||
* (e.g., alert, button, etc.). This makes it easier to reference severity | ||
* levels across multiple components, also defining a common concept across | ||
* themes. | ||
* | ||
* Template components must accept all values of this enum as valid input. | ||
* However, themes may choose to ignore or bind some values to another style. | ||
* For example, a theme might not have an 'Info' colored button. In this case, | ||
* the theme's button component must accept 'Info' as a valid input, but it can | ||
* map it to the 'Primary' style. | ||
*/ | ||
export enum Severity { | ||
Primary = 'Primary', | ||
Secondary = 'Secondary', | ||
Success = 'Success', | ||
Warning = 'Warning', | ||
Danger = 'Danger', | ||
Info = 'Info', | ||
Muted = 'Muted' | ||
Muted = 'Muted', // Aka, Disabled | ||
Default = 'Default' // No-style or default style | ||
} |