@luscii-healthtech/web-ui 64.4.3 → 64.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,11 @@ export interface ToasterPanelProps {
9
9
  * @default "Close"
10
10
  */
11
11
  closeButtonLabel?: string;
12
+ /**
13
+ * How long the progress bar runs before the toast closes, in milliseconds.
14
+ * @default 5000
15
+ */
16
+ duration?: number;
12
17
  onClickClose: () => void;
13
18
  onAnimationEnd?: () => void;
14
19
  }
@@ -8,6 +8,11 @@ type ToastParams = {
8
8
  */
9
9
  closeButtonLabel?: string;
10
10
  type: "success" | "failure";
11
+ /**
12
+ * How long the toast stays open, in milliseconds.
13
+ * @default 5000
14
+ */
15
+ duration?: number;
11
16
  } | string;
12
17
  export declare const toast: {
13
18
  (params: ToastParams): void;
@@ -9,6 +9,11 @@ export interface ToasterPanelProps {
9
9
  * @default "Close"
10
10
  */
11
11
  closeButtonLabel?: string;
12
+ /**
13
+ * How long the progress bar runs before the toast closes, in milliseconds.
14
+ * @default 5000
15
+ */
16
+ duration?: number;
12
17
  onClickClose: () => void;
13
18
  onAnimationEnd?: () => void;
14
19
  }
@@ -8,6 +8,11 @@ type ToastParams = {
8
8
  */
9
9
  closeButtonLabel?: string;
10
10
  type: "success" | "failure";
11
+ /**
12
+ * How long the toast stays open, in milliseconds.
13
+ * @default 5000
14
+ */
15
+ duration?: number;
11
16
  } | string;
12
17
  export declare const toast: {
13
18
  (params: ToastParams): void;
@@ -126,6 +126,14 @@ export { StyledOrderedList } from "./components/StyledLists/StyledOrderedList";
126
126
  export { HoverIndicatorControl } from "./components/HoverIndicatorControl/HoverIndicatorControl";
127
127
  export { ActionController } from "./components/ActionController/ActionController";
128
128
  export { Collapse } from "./components/Collapse/Collapse";
129
+ /**
130
+ * The semantic design tokens, generated from Figma (`src/tokens/tokens.json`).
131
+ * Each token has its CSS variable name (`cssVar`) and value, e.g.
132
+ * `semanticTokens.color.icon.alerts.high.crimson.cssVar` is
133
+ * `"--ui-color-icon-alerts-high-crimson"`. Use it instead of hard-coding
134
+ * variable names, so a renamed or removed token fails the type-check.
135
+ */
136
+ export { semanticTokens } from "./tokens/generated/tokens";
129
137
  export { RangeCoverage } from "./components/RangeCoverage/RangeCoverage";
130
138
  export { RangeTriggerIcon, type RangeTriggerIconProps, type RangeTriggerIconShape, type RangeTriggerIconColor, } from "./components/RangeTriggerIcon";
131
139
  export { Skeleton } from "./components/Skeleton/Skeleton";