-
-
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
3 changed files
with
19 additions
and
4 deletions.
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 declare enum Severity { | ||
Primary = "Primary", | ||
Secondary = "Secondary", | ||
Success = "Success", | ||
Warning = "Warning", | ||
Danger = "Danger", | ||
Info = "Info", | ||
Muted = "Muted" | ||
Muted = "Muted",// Aka, Disabled | ||
Default = "Default" | ||
} |
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 +1 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(n=>(n.Primary="Primary",n.Secondary="Secondary",n.Success="Success",n.Warning="Warning",n.Danger="Danger",n.Info="Info",n.Muted="Muted",n))(r||{});exports.Severity=r; | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var n=(a=>(a.Primary="Primary",a.Secondary="Secondary",a.Success="Success",a.Warning="Warning",a.Danger="Danger",a.Info="Info",a.Muted="Muted",a.Default="Default",a))(n||{});exports.Severity=n; |
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,4 +1,4 @@ | ||
var a = /* @__PURE__ */ ((n) => (n.Primary = "Primary", n.Secondary = "Secondary", n.Success = "Success", n.Warning = "Warning", n.Danger = "Danger", n.Info = "Info", n.Muted = "Muted", n))(a || {}); | ||
var n = /* @__PURE__ */ ((a) => (a.Primary = "Primary", a.Secondary = "Secondary", a.Success = "Success", a.Warning = "Warning", a.Danger = "Danger", a.Info = "Info", a.Muted = "Muted", a.Default = "Default", a))(n || {}); | ||
export { | ||
a as Severity | ||
n as Severity | ||
}; |