@yahoo/uds 3.109.0 → 3.111.0

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.
Files changed (76) hide show
  1. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.cts +2 -2
  2. package/dist/automated-config/dist/utils/getConfigVariantProperties.d.ts +2 -2
  3. package/dist/cli/commands/sync.cjs +4 -0
  4. package/dist/cli/commands/sync.js +5 -1
  5. package/dist/cli/dist/commands/editor-rules.cjs +19 -16
  6. package/dist/cli/dist/commands/editor-rules.js +20 -17
  7. package/dist/cli/dist/lib/box.cjs +44 -0
  8. package/dist/cli/dist/lib/box.js +44 -0
  9. package/dist/cli/dist/lib/colors.cjs +2 -0
  10. package/dist/cli/dist/lib/colors.js +2 -1
  11. package/dist/cli/dist/utils/rules/config.cjs +136 -52
  12. package/dist/cli/dist/utils/rules/config.js +137 -54
  13. package/dist/cli/rules/claude/uds/components.md +50 -0
  14. package/dist/cli/rules/claude/uds/elevation.md +33 -0
  15. package/dist/cli/rules/claude/uds/icons.md +4 -0
  16. package/dist/cli/rules/claude/uds/styling.md +18 -0
  17. package/dist/cli/rules/claude/uds/tailwind.md +5 -0
  18. package/dist/components/client/Avatar/AvatarImage.cjs +1 -0
  19. package/dist/components/client/Avatar/AvatarImage.js +1 -0
  20. package/dist/components/client/Chip/ChipDismissible.cjs +1 -1
  21. package/dist/components/client/Chip/ChipDismissible.js +1 -1
  22. package/dist/components/client/Toast/Toast.cjs +1 -1
  23. package/dist/components/client/Toast/Toast.js +1 -1
  24. package/dist/components/client/Toast/ToastContainer.cjs +5 -1
  25. package/dist/components/client/Toast/ToastContainer.js +5 -1
  26. package/dist/components/client/Toast/UDSToastConfigProvider.d.cts +7 -0
  27. package/dist/components/client/Toast/UDSToastConfigProvider.d.ts +7 -0
  28. package/dist/config/dist/index.cjs +22708 -22708
  29. package/dist/config/dist/index.js +22708 -22708
  30. package/dist/css-tokens/dist/index.cjs +2 -0
  31. package/dist/css-tokens/dist/index.d.cts +2 -1
  32. package/dist/css-tokens/dist/index.d.ts +2 -1
  33. package/dist/css-tokens/dist/index.js +2 -1
  34. package/dist/index.cjs +1 -0
  35. package/dist/index.d.cts +3 -3
  36. package/dist/index.d.ts +3 -3
  37. package/dist/index.js +2 -2
  38. package/dist/runtime/toastConfig.cjs +2 -1
  39. package/dist/runtime/toastConfig.d.cts +3 -0
  40. package/dist/runtime/toastConfig.d.ts +3 -0
  41. package/dist/runtime/toastConfig.js +2 -1
  42. package/dist/styles/styler.d.cts +27 -27
  43. package/dist/styles/styler.d.ts +27 -27
  44. package/dist/tailwind/dist/tailwind/components/getFocusRingStyles.cjs +3 -8
  45. package/dist/tailwind/dist/tailwind/components/getFocusRingStyles.js +3 -8
  46. package/dist/tailwind/dist/tailwind/plugins/a11y.cjs +2 -2
  47. package/dist/tailwind/dist/tailwind/plugins/a11y.js +2 -2
  48. package/dist/tailwind/dist/tailwind/utils/getFontStyles.d.cts +1 -1
  49. package/dist/tailwind/dist/tailwind/utils/getFontStyles.d.ts +1 -1
  50. package/dist/tailwind/dist/utils/parseTokens.cjs +15 -3
  51. package/dist/tailwind/dist/utils/parseTokens.d.cts +2 -2
  52. package/dist/tailwind/dist/utils/parseTokens.d.ts +2 -2
  53. package/dist/tailwind/dist/utils/parseTokens.js +16 -4
  54. package/dist/tokens/consts/cssTokens.cjs +1 -0
  55. package/dist/tokens/consts/cssTokens.d.cts +2 -2
  56. package/dist/tokens/consts/cssTokens.d.ts +2 -2
  57. package/dist/tokens/consts/cssTokens.js +2 -2
  58. package/dist/tokens/index.cjs +1 -0
  59. package/dist/tokens/index.d.cts +3 -3
  60. package/dist/tokens/index.d.ts +3 -3
  61. package/dist/tokens/index.js +2 -2
  62. package/dist/tokens/types.d.cts +2 -2
  63. package/dist/tokens/types.d.ts +2 -2
  64. package/dist/types/dist/index.d.cts +23 -1
  65. package/dist/types/dist/index.d.ts +23 -1
  66. package/dist/uds/generated/componentData.cjs +8 -2
  67. package/dist/uds/generated/componentData.js +8 -2
  68. package/dist/uds/generated/tailwindPurge.cjs +93 -63
  69. package/dist/uds/generated/tailwindPurge.js +93 -63
  70. package/dist/uds/package.cjs +1 -1
  71. package/dist/uds/package.js +1 -1
  72. package/dist/utils/isElevationAlias.cjs +12 -0
  73. package/dist/utils/isElevationAlias.d.cts +7 -0
  74. package/dist/utils/isElevationAlias.d.ts +7 -0
  75. package/dist/utils/isElevationAlias.js +11 -0
  76. package/package.json +2 -2
@@ -1,71 +1,154 @@
1
1
  /*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
2
2
  import { dirname, join } from "node:path";
3
- import { readFileSync } from "node:fs";
3
+ import { existsSync, readFileSync } from "node:fs";
4
4
  import { fileURLToPath } from "node:url";
5
5
 
6
6
  //#region ../cli/dist/utils/rules/config.mjs
7
7
  /*! © 2026 Yahoo, Inc. UDS CLI v0.0.0-development */
8
8
  const __dirname = dirname(fileURLToPath(import.meta.url));
9
- const EDITOR_CONFIGS = { cursor: {
10
- name: "Cursor",
11
- description: "AI-powered coding assistant rules for UDS development",
12
- rules: [
13
- {
14
- name: "UDS Components",
15
- description: "Component development guidelines and patterns",
16
- files: [{
17
- source: "rules/cursor/uds/components.mdc",
18
- target: ".cursor/rules/uds/components.mdc",
19
- type: "file"
20
- }]
21
- },
22
- {
23
- name: "UDS Tailwind",
24
- description: "Tailwind CSS configuration and setup guidelines",
25
- files: [{
26
- source: "rules/cursor/uds/tailwind.mdc",
27
- target: ".cursor/rules/uds/tailwind.mdc",
28
- type: "file"
29
- }]
30
- },
31
- {
32
- name: "UDS Icons",
33
- description: "Icon usage and documentation guidelines",
34
- files: [{
35
- source: "rules/cursor/uds/icons.mdc",
36
- target: ".cursor/rules/uds/icons.mdc",
37
- type: "file"
38
- }]
39
- },
40
- {
41
- name: "UDS Elevation",
42
- description: "Elevation prop usage for layered surfaces",
43
- files: [{
44
- source: "rules/cursor/uds/elevation.mdc",
45
- target: ".cursor/rules/uds/elevation.mdc",
46
- type: "file"
47
- }]
48
- },
49
- {
50
- name: "UDS Styling",
51
- description: "Color palette and styling guidelines",
52
- files: [{
53
- source: "rules/cursor/uds/styling.mdc",
54
- target: ".cursor/rules/uds/styling.mdc",
55
- type: "file"
56
- }]
57
- }
58
- ]
59
- } };
9
+ const EDITOR_CONFIGS = {
10
+ cursor: {
11
+ name: "Cursor",
12
+ description: "AI-powered coding assistant rules for UDS development",
13
+ rules: [
14
+ {
15
+ name: "UDS Components",
16
+ description: "Component development guidelines and patterns",
17
+ files: [{
18
+ source: "rules/cursor/uds/components.mdc",
19
+ target: ".cursor/rules/uds/components.mdc",
20
+ type: "file"
21
+ }]
22
+ },
23
+ {
24
+ name: "UDS Tailwind",
25
+ description: "Tailwind CSS configuration and setup guidelines",
26
+ files: [{
27
+ source: "rules/cursor/uds/tailwind.mdc",
28
+ target: ".cursor/rules/uds/tailwind.mdc",
29
+ type: "file"
30
+ }]
31
+ },
32
+ {
33
+ name: "UDS Icons",
34
+ description: "Icon usage and documentation guidelines",
35
+ files: [{
36
+ source: "rules/cursor/uds/icons.mdc",
37
+ target: ".cursor/rules/uds/icons.mdc",
38
+ type: "file"
39
+ }]
40
+ },
41
+ {
42
+ name: "UDS Elevation",
43
+ description: "Elevation prop usage for layered surfaces",
44
+ files: [{
45
+ source: "rules/cursor/uds/elevation.mdc",
46
+ target: ".cursor/rules/uds/elevation.mdc",
47
+ type: "file"
48
+ }]
49
+ },
50
+ {
51
+ name: "UDS Styling",
52
+ description: "Color palette and styling guidelines",
53
+ files: [{
54
+ source: "rules/cursor/uds/styling.mdc",
55
+ target: ".cursor/rules/uds/styling.mdc",
56
+ type: "file"
57
+ }]
58
+ }
59
+ ]
60
+ },
61
+ claude: {
62
+ name: "Claude Code",
63
+ description: "AI-powered coding assistant rules for UDS development",
64
+ rules: [
65
+ {
66
+ name: "UDS Components",
67
+ description: "Component development guidelines and patterns",
68
+ files: [{
69
+ source: "rules/claude/uds/components.md",
70
+ target: ".claude/rules/uds/components.md",
71
+ type: "file"
72
+ }]
73
+ },
74
+ {
75
+ name: "UDS Tailwind",
76
+ description: "Tailwind CSS configuration and setup guidelines",
77
+ files: [{
78
+ source: "rules/claude/uds/tailwind.md",
79
+ target: ".claude/rules/uds/tailwind.md",
80
+ type: "file"
81
+ }]
82
+ },
83
+ {
84
+ name: "UDS Icons",
85
+ description: "Icon usage and documentation guidelines",
86
+ files: [{
87
+ source: "rules/claude/uds/icons.md",
88
+ target: ".claude/rules/uds/icons.md",
89
+ type: "file"
90
+ }]
91
+ },
92
+ {
93
+ name: "UDS Elevation",
94
+ description: "Elevation prop usage for layered surfaces",
95
+ files: [{
96
+ source: "rules/claude/uds/elevation.md",
97
+ target: ".claude/rules/uds/elevation.md",
98
+ type: "file"
99
+ }]
100
+ },
101
+ {
102
+ name: "UDS Styling",
103
+ description: "Color palette and styling guidelines",
104
+ files: [{
105
+ source: "rules/claude/uds/styling.md",
106
+ target: ".claude/rules/uds/styling.md",
107
+ type: "file"
108
+ }]
109
+ }
110
+ ]
111
+ }
112
+ };
60
113
  function getAvailableEditors() {
61
114
  return Object.keys(EDITOR_CONFIGS);
62
115
  }
63
116
  function getEditorConfig(editor) {
64
117
  return EDITOR_CONFIGS[editor];
65
118
  }
119
+ const AUTO_GENERATED_HEADER = "<!-- Auto-generated by UDS CLI (`uds editor-rules`). Do not edit manually. -->";
66
120
  function getRuleContent(rulePath) {
67
- return readFileSync(join(__dirname, "..", "..", "..", rulePath), "utf-8");
121
+ return addAutoGeneratedHeader(readFileSync(join(__dirname, "..", "..", "..", rulePath), "utf-8"));
122
+ }
123
+ function addAutoGeneratedHeader(content) {
124
+ if (content.startsWith("---\n")) {
125
+ const closingIndex = content.indexOf("\n---\n", 4);
126
+ if (closingIndex !== -1) return `${content.slice(0, closingIndex + 5)}${AUTO_GENERATED_HEADER}\n${content.slice(closingIndex + 5)}`;
127
+ }
128
+ return `${AUTO_GENERATED_HEADER}\n\n${content}`;
129
+ }
130
+ /**
131
+ * Checks which editors have installed UDS rules that are out of date
132
+ * compared to the latest rules shipped with the CLI.
133
+ * Only checks editors whose rule directories already exist.
134
+ */
135
+ function getEditorsWithStaleRules(projectDir) {
136
+ const staleEditors = [];
137
+ for (const [_editorId, editorConfig] of Object.entries(EDITOR_CONFIGS)) {
138
+ let hasAnyRule = false;
139
+ let hasStaleRule = false;
140
+ for (const rule of editorConfig.rules) for (const file of rule.files) {
141
+ const targetPath = join(projectDir, file.target);
142
+ if (!existsSync(targetPath)) continue;
143
+ hasAnyRule = true;
144
+ try {
145
+ if (readFileSync(targetPath, "utf-8") !== getRuleContent(file.source)) hasStaleRule = true;
146
+ } catch {}
147
+ }
148
+ if (hasAnyRule && hasStaleRule) staleEditors.push(editorConfig.name);
149
+ }
150
+ return staleEditors;
68
151
  }
69
152
 
70
153
  //#endregion
71
- export { getAvailableEditors, getEditorConfig, getRuleContent };
154
+ export { getAvailableEditors, getEditorConfig, getEditorsWithStaleRules, getRuleContent };
@@ -0,0 +1,50 @@
1
+ # UDS Components
2
+
3
+ ## MCP tool usage
4
+
5
+ - Always fetch components type definition using the UDS MCP server
6
+ - Always fetch the possible components from UDS using the UDS MCP server
7
+ - Before using any component, fetch its type definition and documentation examples via the MCP server
8
+ - Use `get_components` to retrieve the full list of exported UDS components
9
+ - Use `get_component_documentation_examples` with a component name (e.g., "tooltip", "toast") to fetch usage docs and examples
10
+ - Use `get_documentation` with path "core-concepts/elevation" for detailed elevation guidance
11
+
12
+ ## Never rebuild existing UDS primitives
13
+
14
+ - Before building ANY custom tooltip, toast, notification, popover, dropdown, select, dialog, modal, drawer, sheet, accordion, tabs, alert, snackbar, or banner, call `get_components` first to check if UDS already exports it
15
+ - If a matching component exists, use it and call `get_component_documentation_examples` to learn its API
16
+ - Never recreate functionality that UDS provides — only create custom components when UDS doesn't offer the needed functionality
17
+
18
+ ## Use UDS components instead of raw HTML
19
+
20
+ - Always use UDS UI library components instead of raw HTML tags
21
+ - Use `<Text>` instead of `<p>`, `<span>`, `<h1>`–`<h6>`
22
+ - Use `<Button>` instead of `<button>`
23
+ - Use `<Input>` instead of `<input>`
24
+ - Use `<Checkbox>` instead of `<input type="checkbox">`
25
+ - Use `<Radio>` instead of `<input type="radio">`
26
+ - Use `<Switch>` instead of custom toggle components
27
+ - Use `<Link>` instead of `<a>`
28
+ - Use `<Icon>` instead of SVG elements
29
+ - Use `<Tooltip>`, `<TooltipTrigger>`, `<TooltipContent>` instead of custom tooltip implementations
30
+ - Use `createToast()` from `@yahoo/uds` instead of custom toast/notification components
31
+
32
+ ## Box constraints
33
+
34
+ - `<Box>` has `display="flex"` by default — use `<VStack>` for vertical stacking, `<HStack>` for horizontal, or `<div>` for simple containers
35
+ - Always set an explicit `display` prop on every `<Box>` (`display="block"` or `display="flex"`). Omitting it causes broken UI.
36
+ - `<Box>` does NOT have a `gap` prop — use `rowGap` or `columnGap` instead. Only `<HStack>` and `<VStack>` have `gap`.
37
+ - Every `<Box>` with `flexDirection="column"` must have `rowGap` specified. Every `<Box>` with `flexDirection="row"` must have `columnGap` specified if spacing between children is needed. The `spacing` prop is for padding only, not gaps.
38
+
39
+ ## HStack and VStack constraints
40
+
41
+ - Always set `alignItems` and `justifyContent` on every `<HStack>` and `<VStack>` — never rely on default flex behavior
42
+ - Flexbox alignment values must use full CSS syntax: `"flex-start"` not `"start"`, `"flex-end"` not `"end"`
43
+ - Valid `justifyContent` values: `"flex-start"` | `"flex-end"` | `"center"` | `"space-between"` | `"space-around"` | `"space-evenly"`
44
+ - Valid `alignItems` values: `"flex-start"` | `"flex-end"` | `"center"` | `"baseline"` | `"stretch"`
45
+
46
+ ## Styling rules
47
+
48
+ - Box, HStack, and VStack provide TypeScript props for all styling — prefer using props (`backgroundColor`, `spacing`, `borderRadius`, etc.) over Tailwind `className` for UDS design tokens
49
+ - Never override styling properties on components that use `size` and `variant` props (Button, IconButton, Chip, Badge, Avatar, Radio, Checkbox, Menu, Divider, Switch) with Tailwind classes — always use only the available `size` and `variant` options
50
+ - When placing fixed-size components (Button, IconButton, Chip, Badge, Avatar) in a horizontal flex container, add `className="shrink-0"` to prevent them from being compressed
@@ -0,0 +1,33 @@
1
+ # UDS Elevation
2
+
3
+ ## When to use elevation
4
+
5
+ - Any surface that overlaps or sits on top of another MUST use the `elevation` prop on `<Box>`, `<VStack>`, or `<HStack>`
6
+ - This includes cards, modals, popovers, dropdowns, drawers, toasts, sheets, and floating elements
7
+
8
+ ## The elevation scale
9
+
10
+ - `elevation="0"` — Background or flat surfaces
11
+ - `elevation="1"` — Cards, list items, secondary surfaces
12
+ - `elevation="2"` — Floating elements like popovers, dropdowns
13
+ - `elevation="3"` — Modals, sheets, key actions
14
+ - `elevation="4"` — Drawers or toasts
15
+ - `elevation="5"` — System overlays
16
+
17
+ ## Always use the shorthand prop
18
+
19
+ - The `elevation` prop is a shorthand that sets `backgroundColor`, `borderColor`, `borderWidth`, and `dropShadow` together in one prop
20
+ - Never use `dropShadow` alone for layered surfaces — it only adds a shadow and misses the required `backgroundColor`, `borderColor`, and `borderWidth` changes
21
+ - Never use individual elevation token props (`backgroundColor="elevation-X"`, `borderColor="elevation-X"`, `borderWidth="elevation-X"`, `dropShadow="elevation-X"`) — always use the shorthand `elevation` prop instead
22
+ - Individual props override the shorthand if needed: `<Box elevation="2" backgroundColor="primary" />`
23
+
24
+ ## Examples
25
+
26
+ - Wrong: `<Box dropShadow="md" backgroundColor="primary" borderRadius="lg">` (incomplete elevation)
27
+ - Wrong: `<Box backgroundColor="elevation-2" borderColor="elevation-2" borderWidth="elevation-2" dropShadow="elevation-2">` (verbose, use shorthand)
28
+ - Correct: `<Box elevation="1" borderRadius="lg">` (single prop sets all 4 properties)
29
+ - Correct: `<VStack elevation="2" gap="4" alignItems="stretch" justifyContent="flex-start">Popover content</VStack>`
30
+
31
+ ## More information
32
+
33
+ - Use `get_documentation` MCP tool with path "core-concepts/elevation" for detailed guidance on applying elevation
@@ -0,0 +1,4 @@
1
+ # UDS Icons
2
+
3
+ - Anytime you have to use an icon in a UDS component or use UDS icons outside UDS components, fetch Icon documentation for more context from the MCP server
4
+ - Always check what icons are available in UDS through the MCP server
@@ -0,0 +1,18 @@
1
+ # UDS Styling
2
+
3
+ ## Use UDS palette colors only
4
+
5
+ - Only use UDS palette colors — never use raw color values like `bg-white`, `text-white`, `bg-gray-100`, etc.
6
+ - Background colors: `primary`, `secondary`, `brand`, `brand-secondary`, `alert`, `alert-secondary`, `positive`, `positive-secondary`, `warning`, `warning-secondary`, `info`, `info-secondary`
7
+ - Foreground (text/icon) colors: `primary`, `secondary`, `tertiary`, `muted`, `on-color`, `brand`, `alert`, `positive`, `warning`, `info`
8
+
9
+ ## Color pairing rules
10
+
11
+ - On dark or brand backgrounds (`brand`, `positive`, `info`, `warning`, `alert`), use `color="on-color"` for text and icons
12
+ - On secondary/lighter background variants (`brand-secondary`, `positive-secondary`, etc.), use the matching semantic color (e.g., `color="brand"` on `backgroundColor="brand-secondary"`)
13
+ - Never use `color="on-color"` on white or light backgrounds — it creates invisible white text
14
+ - Never use a dark semantic color (e.g., `brand`, `positive`) directly on its own secondary background variant as contrast will be poor
15
+
16
+ ## General styling
17
+
18
+ - Prefer UDS TypeScript props (`backgroundColor`, `spacing`, `borderRadius`, etc.) over Tailwind `className` for design tokens
@@ -0,0 +1,5 @@
1
+ # UDS Tailwind
2
+
3
+ - Never create a UDS config manually
4
+ - If `uds.config.ts` or `uds.config.js` is not present at the root of the project, ask the user to create it using UDS CLI sync command
5
+ - Make sure that tailwind configuration has the UDS tailwind plugin
@@ -55,6 +55,7 @@ const AvatarImage = ({ size = require_components_client_Avatar_utils.DEFAULT_AVA
55
55
  if (loadingState === "loaded") return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Box.Box, {
56
56
  className: classNames.root,
57
57
  style: inlineStyles.root,
58
+ ...props,
58
59
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_Image.Image, {
59
60
  src,
60
61
  srcSet,
@@ -53,6 +53,7 @@ const AvatarImage = ({ size = DEFAULT_AVATAR_SIZE, variant = DEFAULT_AVATAR_VARI
53
53
  if (loadingState === "loaded") return /* @__PURE__ */ jsx(Box, {
54
54
  className: classNames.root,
55
55
  style: inlineStyles.root,
56
+ ...props,
56
57
  children: /* @__PURE__ */ jsx(Image$1, {
57
58
  src,
58
59
  srcSet,
@@ -20,7 +20,7 @@ const ChipDismissible = (0, react.forwardRef)(function ChipDismissible({ dismiss
20
20
  className
21
21
  }),
22
22
  icon: require_styles_styler.getStyles({ chipDismissibleVariantIcon: variant }),
23
- iconPressable: require_styles_styler.cx("uds-chip-dismissible-button", "uds-hit-target")
23
+ iconPressable: require_styles_styler.cx("uds-chip-dismissible-button", "uds-hit-target", "uds-ring", "rounded-full")
24
24
  }), [className, variant]);
25
25
  /**
26
26
  * Handlers
@@ -17,7 +17,7 @@ const ChipDismissible = forwardRef(function ChipDismissible({ dismissButtonAriaL
17
17
  className
18
18
  }),
19
19
  icon: getStyles({ chipDismissibleVariantIcon: variant }),
20
- iconPressable: cx("uds-chip-dismissible-button", "uds-hit-target")
20
+ iconPressable: cx("uds-chip-dismissible-button", "uds-hit-target", "uds-ring", "rounded-full")
21
21
  }), [className, variant]);
22
22
  /**
23
23
  * Handlers
@@ -72,7 +72,7 @@ const Toast = ({ message, onClickCloseButton, size: sizeProp, variant: variantPr
72
72
  closeIconContainer: require_styles_styler.getStyles({
73
73
  spacing: "2",
74
74
  borderRadius: "full",
75
- className: require_styles_styler.cx(cssAnimationDuration, "transition-[background-color]", "bg-carbon-15/0", "hover:bg-carbon-15/10", "active:bg-carbon-15/15")
75
+ className: require_styles_styler.cx(cssAnimationDuration, "transition-[background-color]", "bg-carbon-15/0", "hover:bg-carbon-15/10", "active:bg-carbon-15/15", "uds-ring")
76
76
  }),
77
77
  closeIcon: require_styles_styler.getStyles({
78
78
  toastVariantCloseIcon: variant,
@@ -70,7 +70,7 @@ const Toast = ({ message, onClickCloseButton, size: sizeProp, variant: variantPr
70
70
  closeIconContainer: getStyles({
71
71
  spacing: "2",
72
72
  borderRadius: "full",
73
- className: cx(cssAnimationDuration, "transition-[background-color]", "bg-carbon-15/0", "hover:bg-carbon-15/10", "active:bg-carbon-15/15")
73
+ className: cx(cssAnimationDuration, "transition-[background-color]", "bg-carbon-15/0", "hover:bg-carbon-15/10", "active:bg-carbon-15/15", "uds-ring")
74
74
  }),
75
75
  closeIcon: getStyles({
76
76
  toastVariantCloseIcon: variant,
@@ -5,6 +5,7 @@ const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
5
5
  const require_styles_styler = require('../../../styles/styler.cjs');
6
6
  const require_components_HStack = require('../../HStack.cjs');
7
7
  const require_components_client_Toast_UDSToastConfigProvider = require('./UDSToastConfigProvider.cjs');
8
+ const require_utils_isElevationAlias = require('../../../utils/isElevationAlias.cjs');
8
9
  let react_jsx_runtime = require("react/jsx-runtime");
9
10
  let lodash_isString_js = require("lodash/isString.js");
10
11
  lodash_isString_js = require_runtime.__toESM(lodash_isString_js);
@@ -26,7 +27,9 @@ const getToastClassName = (toastClassName) => (context) => {
26
27
  }), (0, lodash_isString_js.default)(toastClassName) ? toastClassName : toastClassName?.(context));
27
28
  };
28
29
  const ToastContainer = ({ size: sizeProp, variant: variantProp, children, className, ...props }) => {
29
- const { size, variant } = require_components_client_Toast_UDSToastConfigProvider.useToastConfig(sizeProp, variantProp);
30
+ const { size, variant, backgroundColor } = require_components_client_Toast_UDSToastConfigProvider.useToastConfig(sizeProp, variantProp);
31
+ const bg = backgroundColor[variant];
32
+ const isElevationBg = require_utils_isElevationAlias.isElevationAlias(bg);
30
33
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_HStack.HStack, {
31
34
  className: require_styles_styler.getStyles({
32
35
  toastVariantRoot: variant,
@@ -37,6 +40,7 @@ const ToastContainer = ({ size: sizeProp, variant: variantProp, children, classN
37
40
  justifyContent: "space-between",
38
41
  overflow: "hidden",
39
42
  position: "relative",
43
+ backgroundColor: isElevationBg ? bg : void 0,
40
44
  ...props,
41
45
  children
42
46
  });
@@ -3,6 +3,7 @@
3
3
  import { cx, getStyles } from "../../../styles/styler.js";
4
4
  import { HStack } from "../../HStack.js";
5
5
  import { useToastConfig } from "./UDSToastConfigProvider.js";
6
+ import { isElevationAlias } from "../../../utils/isElevationAlias.js";
6
7
  import { jsx } from "react/jsx-runtime";
7
8
  import { isString } from "lodash-es";
8
9
 
@@ -23,7 +24,9 @@ const getToastClassName = (toastClassName) => (context) => {
23
24
  }), isString(toastClassName) ? toastClassName : toastClassName?.(context));
24
25
  };
25
26
  const ToastContainer = ({ size: sizeProp, variant: variantProp, children, className, ...props }) => {
26
- const { size, variant } = useToastConfig(sizeProp, variantProp);
27
+ const { size, variant, backgroundColor } = useToastConfig(sizeProp, variantProp);
28
+ const bg = backgroundColor[variant];
29
+ const isElevationBg = isElevationAlias(bg);
27
30
  return /* @__PURE__ */ jsx(HStack, {
28
31
  className: getStyles({
29
32
  toastVariantRoot: variant,
@@ -34,6 +37,7 @@ const ToastContainer = ({ size: sizeProp, variant: variantProp, children, classN
34
37
  justifyContent: "space-between",
35
38
  overflow: "hidden",
36
39
  position: "relative",
40
+ backgroundColor: isElevationBg ? bg : void 0,
37
41
  ...props,
38
42
  children
39
43
  });
@@ -30,6 +30,13 @@ declare const useToastConfig: (sizeProp?: ToastSize | undefined, variantProp?: T
30
30
  iconVariant: IconVariant;
31
31
  autoClose: number | false;
32
32
  position: ToastPosition;
33
+ backgroundColor: {
34
+ warning: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15";
35
+ info: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15";
36
+ error: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15";
37
+ loading: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15";
38
+ success: "primary" | "secondary" | "accent" | "brand" | "alert" | "positive" | "warning" | "info" | "brand-secondary" | "alert-secondary" | "positive-secondary" | "warning-secondary" | "info-secondary" | "always/white" | "always/black" | "always/transparent" | "always/current" | "always/brand" | "always/accent" | "elevation-0" | "elevation-1" | "elevation-2" | "elevation-3" | "elevation-4" | "elevation-5" | "gray-0" | "gray-1" | "gray-2" | "gray-3" | "gray-4" | "gray-5" | "gray-6" | "gray-7" | "gray-8" | "gray-9" | "gray-10" | "gray-11" | "gray-12" | "gray-13" | "gray-14" | "gray-15" | "purple-0" | "purple-1" | "purple-2" | "purple-3" | "purple-4" | "purple-5" | "purple-6" | "purple-7" | "purple-8" | "purple-9" | "purple-10" | "purple-11" | "purple-12" | "purple-13" | "purple-14" | "purple-15" | "indigo-0" | "indigo-1" | "indigo-2" | "indigo-3" | "indigo-4" | "indigo-5" | "indigo-6" | "indigo-7" | "indigo-8" | "indigo-9" | "indigo-10" | "indigo-11" | "indigo-12" | "indigo-13" | "indigo-14" | "indigo-15" | "blue-0" | "blue-1" | "blue-2" | "blue-3" | "blue-4" | "blue-5" | "blue-6" | "blue-7" | "blue-8" | "blue-9" | "blue-10" | "blue-11" | "blue-12" | "blue-13" | "blue-14" | "blue-15" | "cyan-0" | "cyan-1" | "cyan-2" | "cyan-3" | "cyan-4" | "cyan-5" | "cyan-6" | "cyan-7" | "cyan-8" | "cyan-9" | "cyan-10" | "cyan-11" | "cyan-12" | "cyan-13" | "cyan-14" | "cyan-15" | "teal-0" | "teal-1" | "teal-2" | "teal-3" | "teal-4" | "teal-5" | "teal-6" | "teal-7" | "teal-8" | "teal-9" | "teal-10" | "teal-11" | "teal-12" | "teal-13" | "teal-14" | "teal-15" | "mint-0" | "mint-1" | "mint-2" | "mint-3" | "mint-4" | "mint-5" | "mint-6" | "mint-7" | "mint-8" | "mint-9" | "mint-10" | "mint-11" | "mint-12" | "mint-13" | "mint-14" | "mint-15" | "green-0" | "green-1" | "green-2" | "green-3" | "green-4" | "green-5" | "green-6" | "green-7" | "green-8" | "green-9" | "green-10" | "green-11" | "green-12" | "green-13" | "green-14" | "green-15" | "lime-0" | "lime-1" | "lime-2" | "lime-3" | "lime-4" | "lime-5" | "lime-6" | "lime-7" | "lime-8" | "lime-9" | "lime-10" | "lime-11" | "lime-12" | "lime-13" | "lime-14" | "lime-15" | "citron-0" | "citron-1" | "citron-2" | "citron-3" | "citron-4" | "citron-5" | "citron-6" | "citron-7" | "citron-8" | "citron-9" | "citron-10" | "citron-11" | "citron-12" | "citron-13" | "citron-14" | "citron-15" | "yellow-0" | "yellow-1" | "yellow-2" | "yellow-3" | "yellow-4" | "yellow-5" | "yellow-6" | "yellow-7" | "yellow-8" | "yellow-9" | "yellow-10" | "yellow-11" | "yellow-12" | "yellow-13" | "yellow-14" | "yellow-15" | "brown-0" | "brown-1" | "brown-2" | "brown-3" | "brown-4" | "brown-5" | "brown-6" | "brown-7" | "brown-8" | "brown-9" | "brown-10" | "brown-11" | "brown-12" | "brown-13" | "brown-14" | "brown-15" | "nude-0" | "nude-1" | "nude-2" | "nude-3" | "nude-4" | "nude-5" | "nude-6" | "nude-7" | "nude-8" | "nude-9" | "nude-10" | "nude-11" | "nude-12" | "nude-13" | "nude-14" | "nude-15" | "orange-0" | "orange-1" | "orange-2" | "orange-3" | "orange-4" | "orange-5" | "orange-6" | "orange-7" | "orange-8" | "orange-9" | "orange-10" | "orange-11" | "orange-12" | "orange-13" | "orange-14" | "orange-15" | "sunset-0" | "sunset-1" | "sunset-2" | "sunset-3" | "sunset-4" | "sunset-5" | "sunset-6" | "sunset-7" | "sunset-8" | "sunset-9" | "sunset-10" | "sunset-11" | "sunset-12" | "sunset-13" | "sunset-14" | "sunset-15" | "red-0" | "red-1" | "red-2" | "red-3" | "red-4" | "red-5" | "red-6" | "red-7" | "red-8" | "red-9" | "red-10" | "red-11" | "red-12" | "red-13" | "red-14" | "red-15" | "rose-0" | "rose-1" | "rose-2" | "rose-3" | "rose-4" | "rose-5" | "rose-6" | "rose-7" | "rose-8" | "rose-9" | "rose-10" | "rose-11" | "rose-12" | "rose-13" | "rose-14" | "rose-15" | "pink-0" | "pink-1" | "pink-2" | "pink-3" | "pink-4" | "pink-5" | "pink-6" | "pink-7" | "pink-8" | "pink-9" | "pink-10" | "pink-11" | "pink-12" | "pink-13" | "pink-14" | "pink-15" | "magenta-0" | "magenta-1" | "magenta-2" | "magenta-3" | "magenta-4" | "magenta-5" | "magenta-6" | "magenta-7" | "magenta-8" | "magenta-9" | "magenta-10" | "magenta-11" | "magenta-12" | "magenta-13" | "magenta-14" | "magenta-15" | "carbon-0" | "carbon-1" | "carbon-2" | "carbon-3" | "carbon-4" | "carbon-5" | "carbon-6" | "carbon-7" | "carbon-8" | "carbon-9" | "carbon-10" | "carbon-11" | "carbon-12" | "carbon-13" | "carbon-14" | "carbon-15";
39
+ };
33
40
  };
34
41
  //#endregion
35
42
  export { type UDSToastConfigContextType, UDSToastConfigProvider, type UDSToastConfigProviderProps, useToastConfig };