Skip to content

Commit

Permalink
Add Default Severity
Browse files Browse the repository at this point in the history
  • Loading branch information
lcharette committed Nov 3, 2024
1 parent 1d56d9f commit 070d77b
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion app/assets/interfaces/severity.ts
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
}

0 comments on commit 070d77b

Please sign in to comment.