@d4gger/design-system 4.0.0 → 4.0.2

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 (257) hide show
  1. package/dist/_internal/props/propDef.cjs +2 -1
  2. package/dist/_internal/props/propDef.cjs.map +2 -2
  3. package/dist/_internal/props/propDef.d.cts.map +1 -1
  4. package/dist/_internal/props/propDef.d.mts.map +1 -1
  5. package/dist/_internal/props/propDef.d.ts.map +1 -1
  6. package/dist/_internal/props/propDef.js +2 -1
  7. package/dist/_internal/props/propDef.js.map +2 -2
  8. package/dist/brand-effects.css +5 -3
  9. package/dist/components/alert/Alert.cjs +17 -3
  10. package/dist/components/alert/Alert.cjs.map +2 -2
  11. package/dist/components/alert/Alert.d.cts +6 -0
  12. package/dist/components/alert/Alert.d.cts.map +1 -1
  13. package/dist/components/alert/Alert.d.mts +6 -0
  14. package/dist/components/alert/Alert.d.mts.map +1 -1
  15. package/dist/components/alert/Alert.d.ts +6 -0
  16. package/dist/components/alert/Alert.d.ts.map +1 -1
  17. package/dist/components/alert/Alert.js +17 -3
  18. package/dist/components/alert/Alert.js.map +2 -2
  19. package/dist/components/alert.css +74 -5
  20. package/dist/components/bottom-dock.css +8 -0
  21. package/dist/components/bottomDock/BottomDock.cjs +1 -1
  22. package/dist/components/bottomDock/BottomDock.cjs.map +2 -2
  23. package/dist/components/bottomDock/BottomDock.js +1 -1
  24. package/dist/components/bottomDock/BottomDock.js.map +2 -2
  25. package/dist/components/bottomDock/bottomDock.props.cjs +1 -1
  26. package/dist/components/bottomDock/bottomDock.props.cjs.map +2 -2
  27. package/dist/components/bottomDock/bottomDock.props.d.cts +2 -2
  28. package/dist/components/bottomDock/bottomDock.props.d.cts.map +1 -1
  29. package/dist/components/bottomDock/bottomDock.props.d.mts +2 -2
  30. package/dist/components/bottomDock/bottomDock.props.d.mts.map +1 -1
  31. package/dist/components/bottomDock/bottomDock.props.d.ts +2 -2
  32. package/dist/components/bottomDock/bottomDock.props.d.ts.map +1 -1
  33. package/dist/components/bottomDock/bottomDock.props.js +1 -1
  34. package/dist/components/bottomDock/bottomDock.props.js.map +2 -2
  35. package/dist/components/box.css +0 -12
  36. package/dist/components/card.css +1 -1
  37. package/dist/components/collapsible/Collapsible.cjs +10 -0
  38. package/dist/components/collapsible/Collapsible.cjs.map +2 -2
  39. package/dist/components/collapsible/Collapsible.d.cts.map +1 -1
  40. package/dist/components/collapsible/Collapsible.d.mts.map +1 -1
  41. package/dist/components/collapsible/Collapsible.d.ts.map +1 -1
  42. package/dist/components/collapsible/Collapsible.js +10 -0
  43. package/dist/components/collapsible/Collapsible.js.map +2 -2
  44. package/dist/components/config-drawer.css +9 -1
  45. package/dist/components/configDrawer/ConfigDrawer.cjs +1 -0
  46. package/dist/components/configDrawer/ConfigDrawer.cjs.map +2 -2
  47. package/dist/components/configDrawer/ConfigDrawer.d.cts.map +1 -1
  48. package/dist/components/configDrawer/ConfigDrawer.d.mts.map +1 -1
  49. package/dist/components/configDrawer/ConfigDrawer.d.ts.map +1 -1
  50. package/dist/components/configDrawer/ConfigDrawer.js +1 -0
  51. package/dist/components/configDrawer/ConfigDrawer.js.map +2 -2
  52. package/dist/components/dialog.css +1 -1
  53. package/dist/components/drawer.css +4 -2
  54. package/dist/components/environment-ribbon.css +73 -0
  55. package/dist/components/environmentRibbon/EnvironmentRibbon.cjs +69 -0
  56. package/dist/components/environmentRibbon/EnvironmentRibbon.cjs.map +7 -0
  57. package/dist/components/environmentRibbon/EnvironmentRibbon.d.cts +15 -0
  58. package/dist/components/environmentRibbon/EnvironmentRibbon.d.cts.map +1 -0
  59. package/dist/components/environmentRibbon/EnvironmentRibbon.d.mts +15 -0
  60. package/dist/components/environmentRibbon/EnvironmentRibbon.d.mts.map +1 -0
  61. package/dist/components/environmentRibbon/EnvironmentRibbon.d.ts +15 -0
  62. package/dist/components/environmentRibbon/EnvironmentRibbon.d.ts.map +1 -0
  63. package/dist/components/environmentRibbon/EnvironmentRibbon.js +39 -0
  64. package/dist/components/environmentRibbon/EnvironmentRibbon.js.map +7 -0
  65. package/dist/components/environmentRibbon/environmentRibbon.props.cjs +39 -0
  66. package/dist/components/environmentRibbon/environmentRibbon.props.cjs.map +7 -0
  67. package/dist/components/environmentRibbon/environmentRibbon.props.d.cts +18 -0
  68. package/dist/components/environmentRibbon/environmentRibbon.props.d.cts.map +1 -0
  69. package/dist/components/environmentRibbon/environmentRibbon.props.d.mts +18 -0
  70. package/dist/components/environmentRibbon/environmentRibbon.props.d.mts.map +1 -0
  71. package/dist/components/environmentRibbon/environmentRibbon.props.d.ts +18 -0
  72. package/dist/components/environmentRibbon/environmentRibbon.props.d.ts.map +1 -0
  73. package/dist/components/environmentRibbon/environmentRibbon.props.js +19 -0
  74. package/dist/components/environmentRibbon/environmentRibbon.props.js.map +7 -0
  75. package/dist/components/field.css +5 -0
  76. package/dist/components/flex/Flex.cjs +5 -4
  77. package/dist/components/flex/Flex.cjs.map +2 -2
  78. package/dist/components/flex/Flex.d.cts.map +1 -1
  79. package/dist/components/flex/Flex.d.mts.map +1 -1
  80. package/dist/components/flex/Flex.d.ts.map +1 -1
  81. package/dist/components/flex/Flex.js +5 -4
  82. package/dist/components/flex/Flex.js.map +2 -2
  83. package/dist/components/grid/Grid.cjs +5 -5
  84. package/dist/components/grid/Grid.cjs.map +2 -2
  85. package/dist/components/grid/Grid.d.cts.map +1 -1
  86. package/dist/components/grid/Grid.d.mts.map +1 -1
  87. package/dist/components/grid/Grid.d.ts.map +1 -1
  88. package/dist/components/grid/Grid.js +5 -5
  89. package/dist/components/grid/Grid.js.map +2 -2
  90. package/dist/components/icon/Icon.cjs +16 -0
  91. package/dist/components/icon/Icon.cjs.map +2 -2
  92. package/dist/components/icon/Icon.d.cts +25 -1
  93. package/dist/components/icon/Icon.d.cts.map +1 -1
  94. package/dist/components/icon/Icon.d.mts +25 -1
  95. package/dist/components/icon/Icon.d.mts.map +1 -1
  96. package/dist/components/icon/Icon.d.ts +25 -1
  97. package/dist/components/icon/Icon.d.ts.map +1 -1
  98. package/dist/components/icon/Icon.js +21 -0
  99. package/dist/components/icon/Icon.js.map +2 -2
  100. package/dist/components/icon/icons.cjs +12 -0
  101. package/dist/components/icon/icons.cjs.map +2 -2
  102. package/dist/components/icon/icons.d.cts +30 -0
  103. package/dist/components/icon/icons.d.cts.map +1 -1
  104. package/dist/components/icon/icons.d.mts +30 -0
  105. package/dist/components/icon/icons.d.mts.map +1 -1
  106. package/dist/components/icon/icons.d.ts +30 -0
  107. package/dist/components/icon/icons.d.ts.map +1 -1
  108. package/dist/components/icon/icons.js +12 -0
  109. package/dist/components/icon/icons.js.map +2 -2
  110. package/dist/components/index.cjs +1 -0
  111. package/dist/components/index.cjs.map +2 -2
  112. package/dist/components/index.d.cts +1 -0
  113. package/dist/components/index.d.cts.map +1 -1
  114. package/dist/components/index.d.mts +1 -0
  115. package/dist/components/index.d.mts.map +1 -1
  116. package/dist/components/index.d.ts +1 -0
  117. package/dist/components/index.d.ts.map +1 -1
  118. package/dist/components/index.js +1 -0
  119. package/dist/components/index.js.map +2 -2
  120. package/dist/components/input-otp.css +24 -0
  121. package/dist/components/inputOtp/InputOtp.cjs +2 -1
  122. package/dist/components/inputOtp/InputOtp.cjs.map +2 -2
  123. package/dist/components/inputOtp/InputOtp.d.cts +8 -0
  124. package/dist/components/inputOtp/InputOtp.d.cts.map +1 -1
  125. package/dist/components/inputOtp/InputOtp.d.mts +8 -0
  126. package/dist/components/inputOtp/InputOtp.d.mts.map +1 -1
  127. package/dist/components/inputOtp/InputOtp.d.ts +8 -0
  128. package/dist/components/inputOtp/InputOtp.d.ts.map +1 -1
  129. package/dist/components/inputOtp/InputOtp.js +2 -1
  130. package/dist/components/inputOtp/InputOtp.js.map +2 -2
  131. package/dist/components/inputOtp/inputOtp.props.cjs +4 -0
  132. package/dist/components/inputOtp/inputOtp.props.cjs.map +2 -2
  133. package/dist/components/inputOtp/inputOtp.props.d.cts +4 -0
  134. package/dist/components/inputOtp/inputOtp.props.d.cts.map +1 -1
  135. package/dist/components/inputOtp/inputOtp.props.d.mts +4 -0
  136. package/dist/components/inputOtp/inputOtp.props.d.mts.map +1 -1
  137. package/dist/components/inputOtp/inputOtp.props.d.ts +4 -0
  138. package/dist/components/inputOtp/inputOtp.props.d.ts.map +1 -1
  139. package/dist/components/inputOtp/inputOtp.props.js +4 -0
  140. package/dist/components/inputOtp/inputOtp.props.js.map +2 -2
  141. package/dist/components/link.css +21 -0
  142. package/dist/components/notification-center.css +17 -9
  143. package/dist/components/notificationCenter/NotificationCenter.cjs +7 -2
  144. package/dist/components/notificationCenter/NotificationCenter.cjs.map +2 -2
  145. package/dist/components/notificationCenter/NotificationCenter.d.cts +2 -0
  146. package/dist/components/notificationCenter/NotificationCenter.d.cts.map +1 -1
  147. package/dist/components/notificationCenter/NotificationCenter.d.mts +2 -0
  148. package/dist/components/notificationCenter/NotificationCenter.d.mts.map +1 -1
  149. package/dist/components/notificationCenter/NotificationCenter.d.ts +2 -0
  150. package/dist/components/notificationCenter/NotificationCenter.d.ts.map +1 -1
  151. package/dist/components/notificationCenter/NotificationCenter.js +7 -2
  152. package/dist/components/notificationCenter/NotificationCenter.js.map +2 -2
  153. package/dist/components/page-header.css +21 -0
  154. package/dist/components/pageHeader/PageHeader.cjs +10 -2
  155. package/dist/components/pageHeader/PageHeader.cjs.map +2 -2
  156. package/dist/components/pageHeader/PageHeader.d.cts.map +1 -1
  157. package/dist/components/pageHeader/PageHeader.d.mts.map +1 -1
  158. package/dist/components/pageHeader/PageHeader.d.ts.map +1 -1
  159. package/dist/components/pageHeader/PageHeader.js +10 -2
  160. package/dist/components/pageHeader/PageHeader.js.map +2 -2
  161. package/dist/components/pageHeader/pageHeader.props.cjs +7 -1
  162. package/dist/components/pageHeader/pageHeader.props.cjs.map +2 -2
  163. package/dist/components/pageHeader/pageHeader.props.d.cts +5 -0
  164. package/dist/components/pageHeader/pageHeader.props.d.cts.map +1 -1
  165. package/dist/components/pageHeader/pageHeader.props.d.mts +5 -0
  166. package/dist/components/pageHeader/pageHeader.props.d.mts.map +1 -1
  167. package/dist/components/pageHeader/pageHeader.props.d.ts +5 -0
  168. package/dist/components/pageHeader/pageHeader.props.d.ts.map +1 -1
  169. package/dist/components/pageHeader/pageHeader.props.js +7 -1
  170. package/dist/components/pageHeader/pageHeader.props.js.map +2 -2
  171. package/dist/components/rich-text-editor.css +2 -0
  172. package/dist/components/richTextEditor/EditorTools.cjs +98 -44
  173. package/dist/components/richTextEditor/EditorTools.cjs.map +2 -2
  174. package/dist/components/richTextEditor/EditorTools.d.cts +51 -1
  175. package/dist/components/richTextEditor/EditorTools.d.cts.map +1 -1
  176. package/dist/components/richTextEditor/EditorTools.d.mts +51 -1
  177. package/dist/components/richTextEditor/EditorTools.d.mts.map +1 -1
  178. package/dist/components/richTextEditor/EditorTools.d.ts +51 -1
  179. package/dist/components/richTextEditor/EditorTools.d.ts.map +1 -1
  180. package/dist/components/richTextEditor/EditorTools.js +98 -44
  181. package/dist/components/richTextEditor/EditorTools.js.map +2 -2
  182. package/dist/components/richTextEditor/MentionSuggestions.cjs +6 -7
  183. package/dist/components/richTextEditor/MentionSuggestions.cjs.map +2 -2
  184. package/dist/components/richTextEditor/MentionSuggestions.d.cts +3 -1
  185. package/dist/components/richTextEditor/MentionSuggestions.d.cts.map +1 -1
  186. package/dist/components/richTextEditor/MentionSuggestions.d.mts +3 -1
  187. package/dist/components/richTextEditor/MentionSuggestions.d.mts.map +1 -1
  188. package/dist/components/richTextEditor/MentionSuggestions.d.ts +3 -1
  189. package/dist/components/richTextEditor/MentionSuggestions.d.ts.map +1 -1
  190. package/dist/components/richTextEditor/MentionSuggestions.js +6 -7
  191. package/dist/components/richTextEditor/MentionSuggestions.js.map +2 -2
  192. package/dist/components/richTextEditor/RichTextEditor.cjs +17 -10
  193. package/dist/components/richTextEditor/RichTextEditor.cjs.map +3 -3
  194. package/dist/components/richTextEditor/RichTextEditor.d.cts +2 -1
  195. package/dist/components/richTextEditor/RichTextEditor.d.cts.map +1 -1
  196. package/dist/components/richTextEditor/RichTextEditor.d.mts +2 -1
  197. package/dist/components/richTextEditor/RichTextEditor.d.mts.map +1 -1
  198. package/dist/components/richTextEditor/RichTextEditor.d.ts +2 -1
  199. package/dist/components/richTextEditor/RichTextEditor.d.ts.map +1 -1
  200. package/dist/components/richTextEditor/RichTextEditor.js +17 -10
  201. package/dist/components/richTextEditor/RichTextEditor.js.map +3 -3
  202. package/dist/components/segmented-control.css +14 -5
  203. package/dist/components/sidebar/Sidebar.cjs +6 -2
  204. package/dist/components/sidebar/Sidebar.cjs.map +2 -2
  205. package/dist/components/sidebar/Sidebar.d.cts +8 -0
  206. package/dist/components/sidebar/Sidebar.d.cts.map +1 -1
  207. package/dist/components/sidebar/Sidebar.d.mts +8 -0
  208. package/dist/components/sidebar/Sidebar.d.mts.map +1 -1
  209. package/dist/components/sidebar/Sidebar.d.ts +8 -0
  210. package/dist/components/sidebar/Sidebar.d.ts.map +1 -1
  211. package/dist/components/sidebar/Sidebar.js +6 -2
  212. package/dist/components/sidebar/Sidebar.js.map +2 -2
  213. package/dist/components/sidebar.css +58 -13
  214. package/dist/components.css +1 -0
  215. package/dist/docs/README.md +1 -0
  216. package/dist/docs/component-contract.md +5 -3
  217. package/dist/docs/component-index.json +9 -1
  218. package/dist/docs/components/alert.md +32 -8
  219. package/dist/docs/components/bottom-dock.md +4 -4
  220. package/dist/docs/components/box.md +3 -1
  221. package/dist/docs/components/card.md +1 -1
  222. package/dist/docs/components/collapsible.md +5 -0
  223. package/dist/docs/components/config-drawer.md +3 -1
  224. package/dist/docs/components/dialog.md +1 -1
  225. package/dist/docs/components/environment-ribbon.md +126 -0
  226. package/dist/docs/components/field.md +2 -0
  227. package/dist/docs/components/grid.md +2 -0
  228. package/dist/docs/components/icon.md +1 -0
  229. package/dist/docs/components/input-otp.md +10 -2
  230. package/dist/docs/components/layout-props.md +4 -1
  231. package/dist/docs/components/link.md +4 -0
  232. package/dist/docs/components/notification-center.md +14 -9
  233. package/dist/docs/components/page-header.md +18 -6
  234. package/dist/docs/components/rich-text-editor.md +6 -1
  235. package/dist/docs/components/segmented-control.md +3 -2
  236. package/dist/docs/components/sidebar.md +17 -6
  237. package/dist/docs/consumer-guide.md +11 -4
  238. package/dist/layout/Layout.cjs +13 -9
  239. package/dist/layout/Layout.cjs.map +2 -2
  240. package/dist/layout/Layout.d.cts.map +1 -1
  241. package/dist/layout/Layout.d.mts.map +1 -1
  242. package/dist/layout/Layout.d.ts.map +1 -1
  243. package/dist/layout/Layout.js +13 -9
  244. package/dist/layout/Layout.js.map +2 -2
  245. package/dist/layout/grid-area.cjs +32 -0
  246. package/dist/layout/grid-area.cjs.map +7 -0
  247. package/dist/layout/grid-area.d.cts +12 -0
  248. package/dist/layout/grid-area.d.cts.map +1 -0
  249. package/dist/layout/grid-area.d.mts +12 -0
  250. package/dist/layout/grid-area.d.mts.map +1 -0
  251. package/dist/layout/grid-area.d.ts +12 -0
  252. package/dist/layout/grid-area.d.ts.map +1 -0
  253. package/dist/layout/grid-area.js +12 -0
  254. package/dist/layout/grid-area.js.map +7 -0
  255. package/dist/styles.css +11636 -12164
  256. package/dist/tokens.css +2 -0
  257. package/package.json +1 -1
@@ -41,7 +41,8 @@ const breakpoints = new Set(breakpointsArray);
41
41
  const spaceScaleValues = ["xs", "sm", "md", "lg", "xl", "2xl", "3xl"];
42
42
  const spaceUtilityValues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
43
43
  const sizeScaleValues = ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl"];
44
- const spaceScale = new Set(spaceScaleValues);
44
+ const spaceTokenAliases = ["gutter", "margin"];
45
+ const spaceScale = /* @__PURE__ */ new Set([...spaceScaleValues, ...spaceTokenAliases]);
45
46
  const sizeScale = new Set(sizeScaleValues);
46
47
  function parseSpaceValue(value) {
47
48
  if (value === "none") {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/_internal/props/propDef.ts"],
4
- "sourcesContent": ["import type * as React from 'react'\n\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>\n\nconst breakpointMinWidths = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536,\n} as const\n\nconst breakpointsArray = ['initial', 'sm', 'md', 'lg', 'xl', '2xl'] as const\nconst breakpoints = new Set<(typeof breakpointsArray)[number]>(breakpointsArray)\n\nconst spaceScaleValues = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl'] as const\nconst spaceUtilityValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] as const\nconst sizeScaleValues = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl'] as const\n\nconst spaceScale = new Set<string>(spaceScaleValues)\nconst sizeScale = new Set<string>(sizeScaleValues)\n\ntype Breakpoint = (typeof breakpointsArray)[number]\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>\n\ntype ParseValue = (value: string) => string | number | undefined\n\ntype BooleanPropDef = {\n type: 'boolean'\n default?: boolean\n required?: boolean\n className?: string\n}\n\ntype StringPropDef = {\n type: 'string'\n default?: string\n required?: boolean\n}\n\ntype ReactNodePropDef = {\n type: 'ReactNode'\n default?: React.ReactNode\n required?: boolean\n}\n\ntype NumberPropDef = {\n type: 'number'\n default?: number\n values?: readonly number[]\n required?: boolean\n}\n\ntype EnumPropDef<T extends string> = {\n type: 'enum'\n values: readonly T[]\n default?: T\n required?: boolean\n}\n\ntype EnumOrStringPropDef<T extends string> = {\n type: 'enum | string'\n values: readonly T[]\n default?: T | string\n required?: boolean\n}\n\ntype NonStylingPropDef = {\n className?: never\n customProperties?: never\n parseValue?: never\n}\n\ntype StylingPropDef = {\n className: string\n customProperties?: never\n parseValue?: never\n}\n\ntype VariableStylingPropDef = {\n className: string\n customProperties: readonly `--${string}`[]\n parseValue?: ParseValue\n}\n\ntype RegularPropDef<T extends string> =\n | ReactNodePropDef\n | BooleanPropDef\n | NumberPropDef\n | (StringPropDef & VariableStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & VariableStylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & VariableStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef)\n\ntype ResponsivePropDef<T extends string = string> = RegularPropDef<T> & { responsive: true }\ntype PropDef<T extends string = string> = RegularPropDef<T> | ResponsivePropDef<T>\n\ntype GetPropDefType<Def> = Def extends BooleanPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<boolean>\n : boolean\n : Def extends NumberPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<number>\n : number\n : Def extends StringPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<string>\n : string\n : Def extends ReactNodePropDef\n ? Def extends ResponsivePropDef\n ? Responsive<React.ReactNode>\n : React.ReactNode\n : Def extends EnumOrStringPropDef<infer Type extends string>\n ? Def extends ResponsivePropDef<Type>\n ? Responsive<Union<string, Type>>\n : Union<string, Type>\n : Def extends EnumPropDef<infer Type extends string>\n ? Def extends ResponsivePropDef<Type>\n ? Responsive<Type>\n : Type\n : never\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>\n}\n\nfunction parseSpaceValue(value: string) {\n if (value === 'none') {\n return '0px'\n }\n\n return spaceScale.has(value) ? `var(--dsx-space-${value})` : value\n}\n\nfunction parseSizeValue(value: string) {\n return sizeScale.has(value) ? `var(--dsx-size-${value})` : value\n}\n\n// Moved here from layout/layout.props.ts (2026-09-14) to break a real\n// circular import: layout.props.ts aggregates marginPropDef/paddingPropDef/\n// etc. from the _internal/props/*.prop.ts files, and every one of those\n// files imported this helper back from layout.props.ts. Under Turbopack's\n// module evaluation order (exposed by a cold `.next` rebuild \u2014 reproducible\n// on `npm run dev`, every route 500ing with \"Cannot access 'marginPropDef'\n// before initialization\"), that cycle is a genuine TDZ crash, not just an\n// ESLint circular-import warning. This function has zero dependency on\n// anything else in layout.props.ts (only the PropDef type, already local to\n// this file), so it belongs on the leaf side of that boundary.\nfunction createResponsiveVariableProp(\n customProperty: `--${string}`,\n parseValue?: (value: string) => string | number | undefined,\n) {\n return {\n type: 'string',\n default: undefined,\n className: '',\n customProperties: [customProperty],\n parseValue,\n responsive: true,\n } as const satisfies PropDef\n}\n\nexport {\n breakpointMinWidths,\n breakpointsArray,\n breakpoints,\n createResponsiveVariableProp,\n parseSizeValue,\n parseSpaceValue,\n sizeScaleValues,\n spaceScaleValues,\n spaceUtilityValues,\n}\n\nexport type {\n Breakpoint,\n GetPropDefTypes,\n PropDef,\n Responsive,\n ResponsivePropDef,\n Union,\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,MAAM,sBAAsB;AAAA,EAC1B,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AACT;AAEA,MAAM,mBAAmB,CAAC,WAAW,MAAM,MAAM,MAAM,MAAM,KAAK;AAClE,MAAM,cAAc,IAAI,IAAuC,gBAAgB;AAE/E,MAAM,mBAAmB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,OAAO,KAAK;AACpE,MAAM,qBAAqB,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG;AAC5E,MAAM,kBAAkB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,OAAO,OAAO,KAAK;AAE1E,MAAM,aAAa,IAAI,IAAY,gBAAgB;AACnD,MAAM,YAAY,IAAI,IAAY,eAAe;AA8GjD,SAAS,gBAAgB,OAAe;AACtC,MAAI,UAAU,QAAQ;AACpB,WAAO;AAAA,EACT;AAEA,SAAO,WAAW,IAAI,KAAK,IAAI,mBAAmB,KAAK,MAAM;AAC/D;AAEA,SAAS,eAAe,OAAe;AACrC,SAAO,UAAU,IAAI,KAAK,IAAI,kBAAkB,KAAK,MAAM;AAC7D;AAYA,SAAS,6BACP,gBACA,YACA;AACA,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,kBAAkB,CAAC,cAAc;AAAA,IACjC;AAAA,IACA,YAAY;AAAA,EACd;AACF;",
4
+ "sourcesContent": ["import type * as React from 'react'\n\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>\n\nconst breakpointMinWidths = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536,\n} as const\n\nconst breakpointsArray = ['initial', 'sm', 'md', 'lg', 'xl', '2xl'] as const\nconst breakpoints = new Set<(typeof breakpointsArray)[number]>(breakpointsArray)\n\nconst spaceScaleValues = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl'] as const\nconst spaceUtilityValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] as const\nconst sizeScaleValues = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl'] as const\n\n// `gutter` and `margin` are space tokens too (layout-props.md \u00A7 Token mapping) but own no utility class, so they are not in\n// spaceScaleValues: a prop that receives one takes the arbitrary-value path and writes the token as its custom property.\nconst spaceTokenAliases = ['gutter', 'margin'] as const\n\nconst spaceScale = new Set<string>([...spaceScaleValues, ...spaceTokenAliases])\nconst sizeScale = new Set<string>(sizeScaleValues)\n\ntype Breakpoint = (typeof breakpointsArray)[number]\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>\n\ntype ParseValue = (value: string) => string | number | undefined\n\ntype BooleanPropDef = {\n type: 'boolean'\n default?: boolean\n required?: boolean\n className?: string\n}\n\ntype StringPropDef = {\n type: 'string'\n default?: string\n required?: boolean\n}\n\ntype ReactNodePropDef = {\n type: 'ReactNode'\n default?: React.ReactNode\n required?: boolean\n}\n\ntype NumberPropDef = {\n type: 'number'\n default?: number\n values?: readonly number[]\n required?: boolean\n}\n\ntype EnumPropDef<T extends string> = {\n type: 'enum'\n values: readonly T[]\n default?: T\n required?: boolean\n}\n\ntype EnumOrStringPropDef<T extends string> = {\n type: 'enum | string'\n values: readonly T[]\n default?: T | string\n required?: boolean\n}\n\ntype NonStylingPropDef = {\n className?: never\n customProperties?: never\n parseValue?: never\n}\n\ntype StylingPropDef = {\n className: string\n customProperties?: never\n parseValue?: never\n}\n\ntype VariableStylingPropDef = {\n className: string\n customProperties: readonly `--${string}`[]\n parseValue?: ParseValue\n}\n\ntype RegularPropDef<T extends string> =\n | ReactNodePropDef\n | BooleanPropDef\n | NumberPropDef\n | (StringPropDef & VariableStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & VariableStylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & VariableStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef)\n\ntype ResponsivePropDef<T extends string = string> = RegularPropDef<T> & { responsive: true }\ntype PropDef<T extends string = string> = RegularPropDef<T> | ResponsivePropDef<T>\n\ntype GetPropDefType<Def> = Def extends BooleanPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<boolean>\n : boolean\n : Def extends NumberPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<number>\n : number\n : Def extends StringPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<string>\n : string\n : Def extends ReactNodePropDef\n ? Def extends ResponsivePropDef\n ? Responsive<React.ReactNode>\n : React.ReactNode\n : Def extends EnumOrStringPropDef<infer Type extends string>\n ? Def extends ResponsivePropDef<Type>\n ? Responsive<Union<string, Type>>\n : Union<string, Type>\n : Def extends EnumPropDef<infer Type extends string>\n ? Def extends ResponsivePropDef<Type>\n ? Responsive<Type>\n : Type\n : never\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>\n}\n\nfunction parseSpaceValue(value: string) {\n if (value === 'none') {\n return '0px'\n }\n\n return spaceScale.has(value) ? `var(--dsx-space-${value})` : value\n}\n\nfunction parseSizeValue(value: string) {\n return sizeScale.has(value) ? `var(--dsx-size-${value})` : value\n}\n\n// Moved here from layout/layout.props.ts (2026-09-14) to break a real\n// circular import: layout.props.ts aggregates marginPropDef/paddingPropDef/\n// etc. from the _internal/props/*.prop.ts files, and every one of those\n// files imported this helper back from layout.props.ts. Under Turbopack's\n// module evaluation order (exposed by a cold `.next` rebuild \u2014 reproducible\n// on `npm run dev`, every route 500ing with \"Cannot access 'marginPropDef'\n// before initialization\"), that cycle is a genuine TDZ crash, not just an\n// ESLint circular-import warning. This function has zero dependency on\n// anything else in layout.props.ts (only the PropDef type, already local to\n// this file), so it belongs on the leaf side of that boundary.\nfunction createResponsiveVariableProp(\n customProperty: `--${string}`,\n parseValue?: (value: string) => string | number | undefined,\n) {\n return {\n type: 'string',\n default: undefined,\n className: '',\n customProperties: [customProperty],\n parseValue,\n responsive: true,\n } as const satisfies PropDef\n}\n\nexport {\n breakpointMinWidths,\n breakpointsArray,\n breakpoints,\n createResponsiveVariableProp,\n parseSizeValue,\n parseSpaceValue,\n sizeScaleValues,\n spaceScaleValues,\n spaceUtilityValues,\n}\n\nexport type {\n Breakpoint,\n GetPropDefTypes,\n PropDef,\n Responsive,\n ResponsivePropDef,\n Union,\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,MAAM,sBAAsB;AAAA,EAC1B,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AACT;AAEA,MAAM,mBAAmB,CAAC,WAAW,MAAM,MAAM,MAAM,MAAM,KAAK;AAClE,MAAM,cAAc,IAAI,IAAuC,gBAAgB;AAE/E,MAAM,mBAAmB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,OAAO,KAAK;AACpE,M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,iBAAiB,CAAC,IAAI,CAAC,GACjC,UAAU,CAAC,IAAI,CAAC,GAChB,IAAI,GACN,KAAK,CAAA;AAEjB,KAAK,eAAe,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACtC,CAAA;AAED,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,UAMrC;AAED,iBAAS,cAAc,CAAC,KAAK,EAAE,MAAM,UAEpC;AAYD,iBAAS,4BAA4B,CACnC,cAAc,EAAE,KAAK,MAAM,EAAE,EAC7B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS;;;;;kCAAtC,MAAM,KAAK,MAAM,GAAG,MAAM,GAAG,SAAS;;EAU5D;AAED,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,4BAA4B,EAC5B,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,kBAAkB,GACnB,CAAA;AAED,YAAY,EACV,UAAU,EACV,eAAe,EACf,OAAO,EACP,UAAU,EACV,iBAAiB,EACjB,KAAK,GACN,CAAA"}
@@ -10,7 +10,8 @@ const breakpoints = new Set(breakpointsArray);
10
10
  const spaceScaleValues = ["xs", "sm", "md", "lg", "xl", "2xl", "3xl"];
11
11
  const spaceUtilityValues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
12
12
  const sizeScaleValues = ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl"];
13
- const spaceScale = new Set(spaceScaleValues);
13
+ const spaceTokenAliases = ["gutter", "margin"];
14
+ const spaceScale = /* @__PURE__ */ new Set([...spaceScaleValues, ...spaceTokenAliases]);
14
15
  const sizeScale = new Set(sizeScaleValues);
15
16
  function parseSpaceValue(value) {
16
17
  if (value === "none") {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/_internal/props/propDef.ts"],
4
- "sourcesContent": ["import type * as React from 'react'\n\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>\n\nconst breakpointMinWidths = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536,\n} as const\n\nconst breakpointsArray = ['initial', 'sm', 'md', 'lg', 'xl', '2xl'] as const\nconst breakpoints = new Set<(typeof breakpointsArray)[number]>(breakpointsArray)\n\nconst spaceScaleValues = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl'] as const\nconst spaceUtilityValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] as const\nconst sizeScaleValues = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl'] as const\n\nconst spaceScale = new Set<string>(spaceScaleValues)\nconst sizeScale = new Set<string>(sizeScaleValues)\n\ntype Breakpoint = (typeof breakpointsArray)[number]\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>\n\ntype ParseValue = (value: string) => string | number | undefined\n\ntype BooleanPropDef = {\n type: 'boolean'\n default?: boolean\n required?: boolean\n className?: string\n}\n\ntype StringPropDef = {\n type: 'string'\n default?: string\n required?: boolean\n}\n\ntype ReactNodePropDef = {\n type: 'ReactNode'\n default?: React.ReactNode\n required?: boolean\n}\n\ntype NumberPropDef = {\n type: 'number'\n default?: number\n values?: readonly number[]\n required?: boolean\n}\n\ntype EnumPropDef<T extends string> = {\n type: 'enum'\n values: readonly T[]\n default?: T\n required?: boolean\n}\n\ntype EnumOrStringPropDef<T extends string> = {\n type: 'enum | string'\n values: readonly T[]\n default?: T | string\n required?: boolean\n}\n\ntype NonStylingPropDef = {\n className?: never\n customProperties?: never\n parseValue?: never\n}\n\ntype StylingPropDef = {\n className: string\n customProperties?: never\n parseValue?: never\n}\n\ntype VariableStylingPropDef = {\n className: string\n customProperties: readonly `--${string}`[]\n parseValue?: ParseValue\n}\n\ntype RegularPropDef<T extends string> =\n | ReactNodePropDef\n | BooleanPropDef\n | NumberPropDef\n | (StringPropDef & VariableStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & VariableStylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & VariableStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef)\n\ntype ResponsivePropDef<T extends string = string> = RegularPropDef<T> & { responsive: true }\ntype PropDef<T extends string = string> = RegularPropDef<T> | ResponsivePropDef<T>\n\ntype GetPropDefType<Def> = Def extends BooleanPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<boolean>\n : boolean\n : Def extends NumberPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<number>\n : number\n : Def extends StringPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<string>\n : string\n : Def extends ReactNodePropDef\n ? Def extends ResponsivePropDef\n ? Responsive<React.ReactNode>\n : React.ReactNode\n : Def extends EnumOrStringPropDef<infer Type extends string>\n ? Def extends ResponsivePropDef<Type>\n ? Responsive<Union<string, Type>>\n : Union<string, Type>\n : Def extends EnumPropDef<infer Type extends string>\n ? Def extends ResponsivePropDef<Type>\n ? Responsive<Type>\n : Type\n : never\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>\n}\n\nfunction parseSpaceValue(value: string) {\n if (value === 'none') {\n return '0px'\n }\n\n return spaceScale.has(value) ? `var(--dsx-space-${value})` : value\n}\n\nfunction parseSizeValue(value: string) {\n return sizeScale.has(value) ? `var(--dsx-size-${value})` : value\n}\n\n// Moved here from layout/layout.props.ts (2026-09-14) to break a real\n// circular import: layout.props.ts aggregates marginPropDef/paddingPropDef/\n// etc. from the _internal/props/*.prop.ts files, and every one of those\n// files imported this helper back from layout.props.ts. Under Turbopack's\n// module evaluation order (exposed by a cold `.next` rebuild \u2014 reproducible\n// on `npm run dev`, every route 500ing with \"Cannot access 'marginPropDef'\n// before initialization\"), that cycle is a genuine TDZ crash, not just an\n// ESLint circular-import warning. This function has zero dependency on\n// anything else in layout.props.ts (only the PropDef type, already local to\n// this file), so it belongs on the leaf side of that boundary.\nfunction createResponsiveVariableProp(\n customProperty: `--${string}`,\n parseValue?: (value: string) => string | number | undefined,\n) {\n return {\n type: 'string',\n default: undefined,\n className: '',\n customProperties: [customProperty],\n parseValue,\n responsive: true,\n } as const satisfies PropDef\n}\n\nexport {\n breakpointMinWidths,\n breakpointsArray,\n breakpoints,\n createResponsiveVariableProp,\n parseSizeValue,\n parseSpaceValue,\n sizeScaleValues,\n spaceScaleValues,\n spaceUtilityValues,\n}\n\nexport type {\n Breakpoint,\n GetPropDefTypes,\n PropDef,\n Responsive,\n ResponsivePropDef,\n Union,\n}\n"],
5
- "mappings": "AAIA,MAAM,sBAAsB;AAAA,EAC1B,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AACT;AAEA,MAAM,mBAAmB,CAAC,WAAW,MAAM,MAAM,MAAM,MAAM,KAAK;AAClE,MAAM,cAAc,IAAI,IAAuC,gBAAgB;AAE/E,MAAM,mBAAmB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,OAAO,KAAK;AACpE,MAAM,qBAAqB,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG;AAC5E,MAAM,kBAAkB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,OAAO,OAAO,KAAK;AAE1E,MAAM,aAAa,IAAI,IAAY,gBAAgB;AACnD,MAAM,YAAY,IAAI,IAAY,eAAe;AA8GjD,SAAS,gBAAgB,OAAe;AACtC,MAAI,UAAU,QAAQ;AACpB,WAAO;AAAA,EACT;AAEA,SAAO,WAAW,IAAI,KAAK,IAAI,mBAAmB,KAAK,MAAM;AAC/D;AAEA,SAAS,eAAe,OAAe;AACrC,SAAO,UAAU,IAAI,KAAK,IAAI,kBAAkB,KAAK,MAAM;AAC7D;AAYA,SAAS,6BACP,gBACA,YACA;AACA,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,kBAAkB,CAAC,cAAc;AAAA,IACjC;AAAA,IACA,YAAY;AAAA,EACd;AACF;",
4
+ "sourcesContent": ["import type * as React from 'react'\n\ntype Union<S = string, T extends string | number = string> = T | Omit<S, T>\n\nconst breakpointMinWidths = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536,\n} as const\n\nconst breakpointsArray = ['initial', 'sm', 'md', 'lg', 'xl', '2xl'] as const\nconst breakpoints = new Set<(typeof breakpointsArray)[number]>(breakpointsArray)\n\nconst spaceScaleValues = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl'] as const\nconst spaceUtilityValues = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] as const\nconst sizeScaleValues = ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl'] as const\n\n// `gutter` and `margin` are space tokens too (layout-props.md \u00A7 Token mapping) but own no utility class, so they are not in\n// spaceScaleValues: a prop that receives one takes the arbitrary-value path and writes the token as its custom property.\nconst spaceTokenAliases = ['gutter', 'margin'] as const\n\nconst spaceScale = new Set<string>([...spaceScaleValues, ...spaceTokenAliases])\nconst sizeScale = new Set<string>(sizeScaleValues)\n\ntype Breakpoint = (typeof breakpointsArray)[number]\ntype Responsive<T> = T | Partial<Record<Breakpoint, T>>\n\ntype ParseValue = (value: string) => string | number | undefined\n\ntype BooleanPropDef = {\n type: 'boolean'\n default?: boolean\n required?: boolean\n className?: string\n}\n\ntype StringPropDef = {\n type: 'string'\n default?: string\n required?: boolean\n}\n\ntype ReactNodePropDef = {\n type: 'ReactNode'\n default?: React.ReactNode\n required?: boolean\n}\n\ntype NumberPropDef = {\n type: 'number'\n default?: number\n values?: readonly number[]\n required?: boolean\n}\n\ntype EnumPropDef<T extends string> = {\n type: 'enum'\n values: readonly T[]\n default?: T\n required?: boolean\n}\n\ntype EnumOrStringPropDef<T extends string> = {\n type: 'enum | string'\n values: readonly T[]\n default?: T | string\n required?: boolean\n}\n\ntype NonStylingPropDef = {\n className?: never\n customProperties?: never\n parseValue?: never\n}\n\ntype StylingPropDef = {\n className: string\n customProperties?: never\n parseValue?: never\n}\n\ntype VariableStylingPropDef = {\n className: string\n customProperties: readonly `--${string}`[]\n parseValue?: ParseValue\n}\n\ntype RegularPropDef<T extends string> =\n | ReactNodePropDef\n | BooleanPropDef\n | NumberPropDef\n | (StringPropDef & VariableStylingPropDef)\n | (StringPropDef & NonStylingPropDef)\n | (EnumPropDef<T> & StylingPropDef)\n | (EnumPropDef<T> & VariableStylingPropDef)\n | (EnumPropDef<T> & NonStylingPropDef)\n | (EnumOrStringPropDef<T> & VariableStylingPropDef)\n | (EnumOrStringPropDef<T> & NonStylingPropDef)\n\ntype ResponsivePropDef<T extends string = string> = RegularPropDef<T> & { responsive: true }\ntype PropDef<T extends string = string> = RegularPropDef<T> | ResponsivePropDef<T>\n\ntype GetPropDefType<Def> = Def extends BooleanPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<boolean>\n : boolean\n : Def extends NumberPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<number>\n : number\n : Def extends StringPropDef\n ? Def extends ResponsivePropDef\n ? Responsive<string>\n : string\n : Def extends ReactNodePropDef\n ? Def extends ResponsivePropDef\n ? Responsive<React.ReactNode>\n : React.ReactNode\n : Def extends EnumOrStringPropDef<infer Type extends string>\n ? Def extends ResponsivePropDef<Type>\n ? Responsive<Union<string, Type>>\n : Union<string, Type>\n : Def extends EnumPropDef<infer Type extends string>\n ? Def extends ResponsivePropDef<Type>\n ? Responsive<Type>\n : Type\n : never\n\ntype GetPropDefTypes<P> = {\n [K in keyof P]?: GetPropDefType<P[K]>\n}\n\nfunction parseSpaceValue(value: string) {\n if (value === 'none') {\n return '0px'\n }\n\n return spaceScale.has(value) ? `var(--dsx-space-${value})` : value\n}\n\nfunction parseSizeValue(value: string) {\n return sizeScale.has(value) ? `var(--dsx-size-${value})` : value\n}\n\n// Moved here from layout/layout.props.ts (2026-09-14) to break a real\n// circular import: layout.props.ts aggregates marginPropDef/paddingPropDef/\n// etc. from the _internal/props/*.prop.ts files, and every one of those\n// files imported this helper back from layout.props.ts. Under Turbopack's\n// module evaluation order (exposed by a cold `.next` rebuild \u2014 reproducible\n// on `npm run dev`, every route 500ing with \"Cannot access 'marginPropDef'\n// before initialization\"), that cycle is a genuine TDZ crash, not just an\n// ESLint circular-import warning. This function has zero dependency on\n// anything else in layout.props.ts (only the PropDef type, already local to\n// this file), so it belongs on the leaf side of that boundary.\nfunction createResponsiveVariableProp(\n customProperty: `--${string}`,\n parseValue?: (value: string) => string | number | undefined,\n) {\n return {\n type: 'string',\n default: undefined,\n className: '',\n customProperties: [customProperty],\n parseValue,\n responsive: true,\n } as const satisfies PropDef\n}\n\nexport {\n breakpointMinWidths,\n breakpointsArray,\n breakpoints,\n createResponsiveVariableProp,\n parseSizeValue,\n parseSpaceValue,\n sizeScaleValues,\n spaceScaleValues,\n spaceUtilityValues,\n}\n\nexport type {\n Breakpoint,\n GetPropDefTypes,\n PropDef,\n Responsive,\n ResponsivePropDef,\n Union,\n}\n"],
5
+ "mappings": "AAIA,MAAM,sBAAsB;AAAA,EAC1B,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,OAAO;AACT;AAEA,MAAM,mBAAmB,CAAC,WAAW,MAAM,MAAM,MAAM,MAAM,KAAK;AAClE,MAAM,cAAc,IAAI,IAAuC,gBAAgB;AAE/E,MAAM,mBAAmB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,OAAO,KAAK;AACpE,MAAM,qBAAqB,CAAC,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,KAAK,GAAG;AAC5E,MAAM,kBAAkB,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM,OAAO,OAAO,KAAK;AAI1E,MAAM,oBAAoB,CAAC,UAAU,QAAQ;AAE7C,MAAM,aAAa,oBAAI,IAAY,CAAC,GAAG,kBAAkB,GAAG,iBAAiB,CAAC;AAC9E,MAAM,YAAY,IAAI,IAAY,eAAe;AA8GjD,SAAS,gBAAgB,OAAe;AACtC,MAAI,UAAU,QAAQ;AACpB,WAAO;AAAA,EACT;AAEA,SAAO,WAAW,IAAI,KAAK,IAAI,mBAAmB,KAAK,MAAM;AAC/D;AAEA,SAAS,eAAe,OAAe;AACrC,SAAO,UAAU,IAAI,KAAK,IAAI,kBAAkB,KAAK,MAAM;AAC7D;AAYA,SAAS,6BACP,gBACA,YACA;AACA,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,IACX,kBAAkB,CAAC,cAAc;AAAA,IACjC;AAAA,IACA,YAAY;AAAA,EACd;AACF;",
6
6
  "names": []
7
7
  }
@@ -16,10 +16,12 @@
16
16
 
17
17
  .dsx-brand-ambient {
18
18
  background-color: var(--dsx-color-background);
19
+ /* The three washes are multiples of the theme-aware ambient strength (G-16, 2026-10-05): at the dark value of 10% they are the
20
+ 22% / 12% / 8% they always were, and light, which is raised, gets the same proportions. */
19
21
  background-image:
20
- radial-gradient(ellipse 900px 500px at 15% -5%, color-mix(in srgb, var(--dsx-color-primary) 22%, transparent), transparent 55%),
21
- radial-gradient(ellipse 700px 400px at 88% 8%, color-mix(in srgb, var(--dsx-color-secondary) 12%, transparent), transparent 50%),
22
- radial-gradient(ellipse 600px 300px at 50% 100%, color-mix(in srgb, var(--dsx-color-primary) 8%, transparent), transparent 60%),
22
+ radial-gradient(ellipse 900px 500px at 15% -5%, color-mix(in srgb, var(--dsx-color-primary) calc(var(--dsx-effect-ambient-strength) * 2.2), transparent), transparent 55%),
23
+ radial-gradient(ellipse 700px 400px at 88% 8%, color-mix(in srgb, var(--dsx-color-secondary) calc(var(--dsx-effect-ambient-strength) * 1.2), transparent), transparent 50%),
24
+ radial-gradient(ellipse 600px 300px at 50% 100%, color-mix(in srgb, var(--dsx-color-primary) calc(var(--dsx-effect-ambient-strength) * 0.8), transparent), transparent 60%),
23
25
  linear-gradient(180deg, var(--dsx-color-surface) 0%, var(--dsx-color-background) 50%);
24
26
  background-repeat: no-repeat;
25
27
  }
@@ -46,6 +46,11 @@ const AlertAction = React.forwardRef(
46
46
  ({ className, ...props }, forwardedRef) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...props, ref: forwardedRef, className: (0, import_classnames.default)("dsx-alert__action", className) })
47
47
  );
48
48
  AlertAction.displayName = "AlertAction";
49
+ const isAlertAction = (node) => React.isValidElement(node) && node.type === AlertAction;
50
+ function splitAlertChildren(children) {
51
+ const nodes = React.Children.toArray(children);
52
+ return { actions: nodes.filter(isAlertAction), body: nodes.filter((node) => !isAlertAction(node)) };
53
+ }
49
54
  const AlertRoot = React.forwardRef((props, forwardedRef) => {
50
55
  const {
51
56
  asChild,
@@ -62,9 +67,13 @@ const AlertRoot = React.forwardRef((props, forwardedRef) => {
62
67
  const Comp = asChild ? import_react_slot.Slot : "div";
63
68
  const fallbackIcon = variant === "success" ? "check-circle" : variant === "default" ? "info" : "alert-triangle";
64
69
  const child = asChild ? React.Children.only(children) : null;
70
+ const { actions, body } = splitAlertChildren(child ? child.props.children : children);
65
71
  const content = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
66
72
  icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { "aria-hidden": "true", className: "dsx-alert__icon", children: icon ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Icon.Icon, { name: fallbackIcon, size: "md", strokeWidth: "var(--dsx-icon-stroke-width-strong, 2.25)" }) }),
67
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "dsx-alert__content", children: child ? child.props.children : children })
73
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dsx-alert__main", children: [
74
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "dsx-alert__content", children: body }),
75
+ actions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "dsx-alert__actions", children: actions }) : null
76
+ ] })
68
77
  ] });
69
78
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
70
79
  Comp,
@@ -88,16 +97,21 @@ const AlertTitle = React.forwardRef((props, forwardedRef) => {
88
97
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, { ...titleProps, ref: forwardedRef, className: (0, import_classnames.default)("dsx-alert__title", className) });
89
98
  });
90
99
  AlertTitle.displayName = "AlertTitle";
100
+ const isLineClamp = (value) => typeof value === "number" && Number.isInteger(value) && value >= 1;
91
101
  const AlertDescription = React.forwardRef(
92
102
  (props, forwardedRef) => {
93
- const { asChild, className, ...descriptionProps } = (0, import_extractProps.extractProps)(props, import_alert.alertDescriptionPropDefs);
103
+ const { lineClamp, style, ...ownProps } = props;
104
+ const { asChild, className, ...descriptionProps } = (0, import_extractProps.extractProps)(ownProps, import_alert.alertDescriptionPropDefs);
94
105
  const Comp = asChild ? import_react_slot.Slot : "p";
106
+ const clamp = isLineClamp(lineClamp) ? lineClamp : void 0;
95
107
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
96
108
  Comp,
97
109
  {
98
110
  ...descriptionProps,
99
111
  ref: forwardedRef,
100
- className: (0, import_classnames.default)("dsx-alert__description", className)
112
+ className: (0, import_classnames.default)("dsx-alert__description", className),
113
+ "data-line-clamp": clamp,
114
+ style: clamp ? { ...style, "--dsx-alert-line-clamp": clamp } : style
101
115
  }
102
116
  );
103
117
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/alert/Alert.tsx"],
4
- "sourcesContent": ["import * as React from 'react'\nimport classNames from 'classnames'\nimport { Slot } from '@radix-ui/react-slot'\n\nimport { extractProps } from '../../_internal/helpers/extractProps'\nimport { Icon } from '../icon/Icon'\nimport { alertDescriptionPropDefs, alertPropDefs, alertTitlePropDefs } from './alert.props'\n\nimport type { GetPropDefTypes } from '../../_internal/props/propDef'\n\ntype AlertActionElement = React.ComponentRef<'div'>\n\nconst AlertAction = React.forwardRef<AlertActionElement, React.ComponentPropsWithoutRef<'div'>>(\n ({ className, ...props }, forwardedRef) => (\n <div {...props} ref={forwardedRef} className={classNames('dsx-alert__action', className)} />\n ),\n)\nAlertAction.displayName = 'AlertAction'\n\ntype AlertElement = React.ComponentRef<'div'>\ntype AlertOwnProps = GetPropDefTypes<typeof alertPropDefs> & {\n icon?: React.ReactNode\n}\n\ninterface AlertProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'color'>, AlertOwnProps {}\n\nconst AlertRoot = React.forwardRef<AlertElement, AlertProps>((props, forwardedRef) => {\n const {\n asChild,\n className,\n color,\n highContrast = false,\n icon,\n children,\n role,\n size = 'md',\n variant = 'default',\n ...alertProps\n } = extractProps(props, alertPropDefs)\n const Comp = asChild ? Slot : 'div'\n const fallbackIcon = variant === 'success' ? 'check-circle' : variant === 'default' ? 'info' : 'alert-triangle'\n const child = asChild ? React.Children.only(children) as React.ReactElement<{ children?: React.ReactNode }> : null\n const content = <>\n {icon === null ? null : (\n <span aria-hidden=\"true\" className=\"dsx-alert__icon\">\n {icon ?? <Icon name={fallbackIcon} size=\"md\" strokeWidth=\"var(--dsx-icon-stroke-width-strong, 2.25)\" />}\n </span>\n )}\n <div className=\"dsx-alert__content\">{child ? child.props.children : children}</div>\n </>\n\n return (\n <Comp\n {...alertProps}\n ref={forwardedRef}\n role={role ?? 'alert'}\n className={classNames('dsx-alert', className)}\n data-accent-color={color}\n data-high-contrast={highContrast ? 'true' : undefined}\n data-size={size}\n data-variant={variant}\n >\n {child ? React.cloneElement(child, undefined, content) : content}\n </Comp>\n )\n})\nAlertRoot.displayName = 'Alert'\n\ntype AlertTitleElement = React.ComponentRef<'h5'>\ntype AlertTitleOwnProps = GetPropDefTypes<typeof alertTitlePropDefs>\n\ninterface AlertTitleProps extends React.ComponentPropsWithoutRef<'h5'>, AlertTitleOwnProps {}\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>((props, forwardedRef) => {\n const { asChild, className, ...titleProps } = extractProps(props, alertTitlePropDefs)\n const Comp = asChild ? Slot : 'h5'\n\n return <Comp {...titleProps} ref={forwardedRef} className={classNames('dsx-alert__title', className)} />\n})\nAlertTitle.displayName = 'AlertTitle'\n\ntype AlertDescriptionElement = React.ComponentRef<'p'>\ntype AlertDescriptionOwnProps = GetPropDefTypes<typeof alertDescriptionPropDefs>\n\ninterface AlertDescriptionProps\n extends React.ComponentPropsWithoutRef<'p'>,\n AlertDescriptionOwnProps {}\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n (props, forwardedRef) => {\n const { asChild, className, ...descriptionProps } = extractProps(props, alertDescriptionPropDefs)\n const Comp = asChild ? Slot : 'p'\n\n return (\n <Comp\n {...descriptionProps}\n ref={forwardedRef}\n className={classNames('dsx-alert__description', className)}\n />\n )\n },\n)\nAlertDescription.displayName = 'AlertDescription'\n\nconst Alert: typeof AlertRoot & {\n Title: typeof AlertTitle\n Description: typeof AlertDescription\n Action: typeof AlertAction\n} = Object.assign(AlertRoot, {\n Title: AlertTitle,\n Description: AlertDescription,\n Action: AlertAction,\n})\n\nexport { Alert, AlertAction, AlertDescription, AlertRoot, AlertTitle }\nexport type { AlertDescriptionProps, AlertProps, AlertTitleProps }\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAAuB;AACvB,wBAAuB;AACvB,wBAAqB;AAErB,0BAA6B;AAC7B,kBAAqB;AACrB,mBAA4E;AAQxE;AAFJ,MAAM,cAAc,MAAM;AAAA,EACxB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,iBACxB,4CAAC,SAAK,GAAG,OAAO,KAAK,cAAc,eAAW,kBAAAA,SAAW,qBAAqB,SAAS,GAA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AAC;AACD,WAAW,cAAc;AASzB,MAAM,mBAAmB,MAAM;AAAA,EAC7B,CAAC,OAAO,iBAAiB;AACvB,UAAM,EAAE,SAAS,WAAW,GAAG,iBAAiB,QAAI,kCAAa,OAAO,qCAAwB;AAChG,UAAM,OAAO,UAAU,yBAAO;AAE9B,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,KAAK;AAAA,QACL,eAAW,kBAAAA,SAAW,0BAA0B,SAAS;AAAA;AAAA,IAC3D;AAAA,EAEJ;AACF;AACA,iBAAiB,cAAc;AAE/B,MAAM,QAIF,OAAO,OAAO,WAAW;AAAA,EAC3B,OAAO;AAAA,EACP,aAAa;AAAA,EACb,QAAQ;AACV,CAAC;",
4
+ "sourcesContent": ["import * as React from 'react'\nimport classNames from 'classnames'\nimport { Slot } from '@radix-ui/react-slot'\n\nimport { extractProps } from '../../_internal/helpers/extractProps'\nimport { Icon } from '../icon/Icon'\nimport { alertDescriptionPropDefs, alertPropDefs, alertTitlePropDefs } from './alert.props'\n\nimport type { GetPropDefTypes } from '../../_internal/props/propDef'\n\ntype AlertActionElement = React.ComponentRef<'div'>\n\nconst AlertAction = React.forwardRef<AlertActionElement, React.ComponentPropsWithoutRef<'div'>>(\n ({ className, ...props }, forwardedRef) => (\n <div {...props} ref={forwardedRef} className={classNames('dsx-alert__action', className)} />\n ),\n)\nAlertAction.displayName = 'AlertAction'\n\nconst isAlertAction = (node: React.ReactNode): boolean => React.isValidElement(node) && node.type === AlertAction\n\n// An `Alert.Action` that is a direct child sits beside the content, not inside it, in one `.dsx-alert__actions` group: the\n// group trails the row, and wraps below the text as a whole when it is narrow, under the text and not under the icon (the\n// icon is one column, the text and the group are the other: `.dsx-alert__main`). A consumer who nests an action in their own\n// wrapper keeps it in the content.\nfunction splitAlertChildren(children: React.ReactNode): { actions: React.ReactNode[]; body: React.ReactNode[] } {\n const nodes = React.Children.toArray(children)\n return { actions: nodes.filter(isAlertAction), body: nodes.filter((node) => !isAlertAction(node)) }\n}\n\ntype AlertElement = React.ComponentRef<'div'>\ntype AlertOwnProps = GetPropDefTypes<typeof alertPropDefs> & {\n icon?: React.ReactNode\n}\n\ninterface AlertProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'color'>, AlertOwnProps {}\n\nconst AlertRoot = React.forwardRef<AlertElement, AlertProps>((props, forwardedRef) => {\n const {\n asChild,\n className,\n color,\n highContrast = false,\n icon,\n children,\n role,\n size = 'md',\n variant = 'default',\n ...alertProps\n } = extractProps(props, alertPropDefs)\n const Comp = asChild ? Slot : 'div'\n const fallbackIcon = variant === 'success' ? 'check-circle' : variant === 'default' ? 'info' : 'alert-triangle'\n const child = asChild ? React.Children.only(children) as React.ReactElement<{ children?: React.ReactNode }> : null\n const { actions, body } = splitAlertChildren(child ? child.props.children : children)\n const content = <>\n {icon === null ? null : (\n <span aria-hidden=\"true\" className=\"dsx-alert__icon\">\n {icon ?? <Icon name={fallbackIcon} size=\"md\" strokeWidth=\"var(--dsx-icon-stroke-width-strong, 2.25)\" />}\n </span>\n )}\n <div className=\"dsx-alert__main\">\n <div className=\"dsx-alert__content\">{body}</div>\n {actions.length > 0 ? <div className=\"dsx-alert__actions\">{actions}</div> : null}\n </div>\n </>\n\n return (\n <Comp\n {...alertProps}\n ref={forwardedRef}\n role={role ?? 'alert'}\n className={classNames('dsx-alert', className)}\n data-accent-color={color}\n data-high-contrast={highContrast ? 'true' : undefined}\n data-size={size}\n data-variant={variant}\n >\n {child ? React.cloneElement(child, undefined, content) : content}\n </Comp>\n )\n})\nAlertRoot.displayName = 'Alert'\n\ntype AlertTitleElement = React.ComponentRef<'h5'>\ntype AlertTitleOwnProps = GetPropDefTypes<typeof alertTitlePropDefs>\n\ninterface AlertTitleProps extends React.ComponentPropsWithoutRef<'h5'>, AlertTitleOwnProps {}\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>((props, forwardedRef) => {\n const { asChild, className, ...titleProps } = extractProps(props, alertTitlePropDefs)\n const Comp = asChild ? Slot : 'h5'\n\n return <Comp {...titleProps} ref={forwardedRef} className={classNames('dsx-alert__title', className)} />\n})\nAlertTitle.displayName = 'AlertTitle'\n\ntype AlertDescriptionElement = React.ComponentRef<'p'>\ntype AlertDescriptionOwnProps = GetPropDefTypes<typeof alertDescriptionPropDefs>\n\ninterface AlertDescriptionProps\n extends React.ComponentPropsWithoutRef<'p'>,\n AlertDescriptionOwnProps {\n /**\n * Clamp the text to this many lines (a whole number of 1 or more); the rest is clipped with an ellipsis. Anything else\n * leaves the text unclamped. Whether the text is clipped, and how to reveal it, is the consumer's: it can measure the\n * element (`scrollHeight > clientHeight`) and drop the prop to show everything.\n */\n lineClamp?: number\n}\n\nconst isLineClamp = (value: unknown): value is number =>\n typeof value === 'number' && Number.isInteger(value) && value >= 1\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n (props, forwardedRef) => {\n // `lineClamp` is behaviour-only, so it stays out of extractProps (it has no class mapping and would leak to the DOM).\n const { lineClamp, style, ...ownProps } = props\n const { asChild, className, ...descriptionProps } = extractProps(ownProps, alertDescriptionPropDefs)\n const Comp = asChild ? Slot : 'p'\n const clamp = isLineClamp(lineClamp) ? lineClamp : undefined\n\n return (\n <Comp\n {...descriptionProps}\n ref={forwardedRef}\n className={classNames('dsx-alert__description', className)}\n data-line-clamp={clamp}\n style={clamp ? ({ ...style, '--dsx-alert-line-clamp': clamp } as React.CSSProperties) : style}\n />\n )\n },\n)\nAlertDescription.displayName = 'AlertDescription'\n\nconst Alert: typeof AlertRoot & {\n Title: typeof AlertTitle\n Description: typeof AlertDescription\n Action: typeof AlertAction\n} = Object.assign(AlertRoot, {\n Title: AlertTitle,\n Description: AlertDescription,\n Action: AlertAction,\n})\n\nexport { Alert, AlertAction, AlertDescription, AlertRoot, AlertTitle }\nexport type { AlertDescriptionProps, AlertProps, AlertTitleProps }\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AA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S,EAAE,GAAG,OAAO,0BAA0B,MAAM,IAA4B;AAAA;AAAA,IAC1F;AAAA,EAEJ;AACF;AACA,iBAAiB,cAAc;AAE/B,MAAM,QAIF,OAAO,OAAO,WAAW;AAAA,EAC3B,OAAO;AAAA,EACP,aAAa;AAAA,EACb,QAAQ;AACV,CAAC;",
6
6
  "names": ["classNames"]
7
7
  }
@@ -14,6 +14,12 @@ interface AlertTitleProps extends React.ComponentPropsWithoutRef<'h5'>, AlertTit
14
14
  declare const AlertTitle: React.ForwardRefExoticComponent<AlertTitleProps & React.RefAttributes<HTMLHeadingElement>>;
15
15
  type AlertDescriptionOwnProps = GetPropDefTypes<typeof alertDescriptionPropDefs>;
16
16
  interface AlertDescriptionProps extends React.ComponentPropsWithoutRef<'p'>, AlertDescriptionOwnProps {
17
+ /**
18
+ * Clamp the text to this many lines (a whole number of 1 or more); the rest is clipped with an ellipsis. Anything else
19
+ * leaves the text unclamped. Whether the text is clipped, and how to reveal it, is the consumer's: it can measure the
20
+ * element (`scrollHeight > clientHeight`) and drop the prop to show everything.
21
+ */
22
+ lineClamp?: number;
17
23
  }
18
24
  declare const AlertDescription: React.ForwardRefExoticComponent<AlertDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
19
25
  declare const Alert: typeof AlertRoot & {
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.cts","sourceRoot":"","sources":["../../../src/components/alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAE3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAIpE,QAAA,MAAM,WAAW,mKAIhB,CAAA;AAID,KAAK,aAAa,GAAG,eAAe,CAAC,OAAO,aAAa,CAAC,GAAG;IAC3D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACvB,CAAA;AAED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AE,KAAK,CAAC,SAAS,CAAA;CACvB,CAAA;AAED,UAAU,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EAAE,aAAa;CAAG;AAEnG,QAAA,MAAM,SAAS,mFA2Cb,CAAA;AAIF,KAAK,kBAAkB,GAAG,eAAe,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEpE,UAAU,eAAgB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,kBAAkB;CAAG;AAE7F,QAAA,MAAM,UAAU,4FAKd,CAAA;AAIF,KAAK,wBAAwB,GAAG,eAAe,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEhF,UAAU,qBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,EACzC,wBAAwB;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAKD,QAAA,MAAM,gBAAgB,oGAkBrB,CAAA;AAGD,QAAA,MAAM,KAAK,EAAE,OAAO,SAAS,GAAG;IAC9B,KAAK,EAAE,OAAO,UAAU,CAAA;IACxB,WAAW,EAAE,OAAO,gBAAgB,CAAA;IACpC,MAAM,EAAE,OAAO,WAAW,CAAA;CAK1B,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAE,UAAU,EAAE,CAAA;AACtE,YAAY,EAAE,qBAAqB,EAAE,UAAU,EAAE,eAAe,EAAE,CAAA"}
@@ -14,6 +14,12 @@ interface AlertTitleProps extends React.ComponentPropsWithoutRef<'h5'>, AlertTit
14
14
  declare const AlertTitle: React.ForwardRefExoticComponent<AlertTitleProps & React.RefAttributes<HTMLHeadingElement>>;
15
15
  type AlertDescriptionOwnProps = GetPropDefTypes<typeof alertDescriptionPropDefs>;
16
16
  interface AlertDescriptionProps extends React.ComponentPropsWithoutRef<'p'>, AlertDescriptionOwnProps {
17
+ /**
18
+ * Clamp the text to this many lines (a whole number of 1 or more); the rest is clipped with an ellipsis. Anything else
19
+ * leaves the text unclamped. Whether the text is clipped, and how to reveal it, is the consumer's: it can measure the
20
+ * element (`scrollHeight > clientHeight`) and drop the prop to show everything.
21
+ */
22
+ lineClamp?: number;
17
23
  }
18
24
  declare const AlertDescription: React.ForwardRefExoticComponent<AlertDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
19
25
  declare const Alert: typeof AlertRoot & {
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.mts","sourceRoot":"","sources":["../../../src/components/alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAE3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAIpE,QAAA,MAAM,WAAW,mKAIhB,CAAA;AAID,KAAK,aAAa,GAAG,eAAe,CAAC,OAAO,aAAa,CAAC,GAAG;IAC3D,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACvB,CAAA;AAED,UAAU,UAAW,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EAAE,aAAa;CAAG;AAEnG,QAAA,MAAM,SAAS,mFAuCb,CAAA;AAIF,KAAK,kBAAkB,GAAG,eAAe,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEpE,UAAU,eAAgB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,kBAAkB;CAAG;AAE7F,QAAA,MAAM,UAAU,4FAKd,CAAA;AAIF,KAAK,wBAAwB,GAAG,eAAe,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEhF,UAAU,qBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,EACzC,wBAAwB;CAAG;AAE/B,QAAA,MAAM,gBAAg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ACzC,wBAAwB;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAKD,QAAA,MAAM,gBAAgB,oGAkBrB,CAAA;AAGD,QAAA,MAAM,KAAK,EAAE,OAAO,SAAS,GAAG;IAC9B,KAAK,EAAE,OAAO,UAAU,CAAA;IACxB,WAAW,EAAE,OAAO,gBAAgB,CAAA;IACpC,MAAM,EAAE,OAAO,WAAW,CAAA;CAK1B,CAAA;AAEF,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAE,UAAU,EAAE,CAAA;AACtE,YAAY,EAAE,qBAAqB,EAAE,UAAU,EAAE,eAAe,EAAE,CAAA"}
@@ -14,6 +14,12 @@ interface AlertTitleProps extends React.ComponentPropsWithoutRef<'h5'>, AlertTit
14
14
  declare const AlertTitle: React.ForwardRefExoticComponent<AlertTitleProps & React.RefAttributes<HTMLHeadingElement>>;
15
15
  type AlertDescriptionOwnProps = GetPropDefTypes<typeof alertDescriptionPropDefs>;
16
16
  interface AlertDescriptionProps extends React.ComponentPropsWithoutRef<'p'>, AlertDescriptionOwnProps {
17
+ /**
18
+ * Clamp the text to this many lines (a whole number of 1 or more); the rest is clipped with an ellipsis. Anything else
19
+ * leaves the text unclamped. Whether the text is clipped, and how to reveal it, is the consumer's: it can measure the
20
+ * element (`scrollHeight > clientHeight`) and drop the prop to show everything.
21
+ */
22
+ lineClamp?: number;
17
23
  }
18
24
  declare const AlertDescription: React.ForwardRefExoticComponent<AlertDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
19
25
  declare const Alert: typeof AlertRoot & {
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAE3F,OAAO,K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__ */ jsx("div", { ...props, ref: forwardedRef, className: classNames("dsx-alert__action", className) })
10
10
  );
11
11
  AlertAction.displayName = "AlertAction";
12
+ const isAlertAction = (node) => React.isValidElement(node) && node.type === AlertAction;
13
+ function splitAlertChildren(children) {
14
+ const nodes = React.Children.toArray(children);
15
+ return { actions: nodes.filter(isAlertAction), body: nodes.filter((node) => !isAlertAction(node)) };
16
+ }
12
17
  const AlertRoot = React.forwardRef((props, forwardedRef) => {
13
18
  const {
14
19
  asChild,
@@ -25,9 +30,13 @@ const AlertRoot = React.forwardRef((props, forwardedRef) => {
25
30
  const Comp = asChild ? Slot : "div";
26
31
  const fallbackIcon = variant === "success" ? "check-circle" : variant === "default" ? "info" : "alert-triangle";
27
32
  const child = asChild ? React.Children.only(children) : null;
33
+ const { actions, body } = splitAlertChildren(child ? child.props.children : children);
28
34
  const content = /* @__PURE__ */ jsxs(Fragment, { children: [
29
35
  icon === null ? null : /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "dsx-alert__icon", children: icon ?? /* @__PURE__ */ jsx(Icon, { name: fallbackIcon, size: "md", strokeWidth: "var(--dsx-icon-stroke-width-strong, 2.25)" }) }),
30
- /* @__PURE__ */ jsx("div", { className: "dsx-alert__content", children: child ? child.props.children : children })
36
+ /* @__PURE__ */ jsxs("div", { className: "dsx-alert__main", children: [
37
+ /* @__PURE__ */ jsx("div", { className: "dsx-alert__content", children: body }),
38
+ actions.length > 0 ? /* @__PURE__ */ jsx("div", { className: "dsx-alert__actions", children: actions }) : null
39
+ ] })
31
40
  ] });
32
41
  return /* @__PURE__ */ jsx(
33
42
  Comp,
@@ -51,16 +60,21 @@ const AlertTitle = React.forwardRef((props, forwardedRef) => {
51
60
  return /* @__PURE__ */ jsx(Comp, { ...titleProps, ref: forwardedRef, className: classNames("dsx-alert__title", className) });
52
61
  });
53
62
  AlertTitle.displayName = "AlertTitle";
63
+ const isLineClamp = (value) => typeof value === "number" && Number.isInteger(value) && value >= 1;
54
64
  const AlertDescription = React.forwardRef(
55
65
  (props, forwardedRef) => {
56
- const { asChild, className, ...descriptionProps } = extractProps(props, alertDescriptionPropDefs);
66
+ const { lineClamp, style, ...ownProps } = props;
67
+ const { asChild, className, ...descriptionProps } = extractProps(ownProps, alertDescriptionPropDefs);
57
68
  const Comp = asChild ? Slot : "p";
69
+ const clamp = isLineClamp(lineClamp) ? lineClamp : void 0;
58
70
  return /* @__PURE__ */ jsx(
59
71
  Comp,
60
72
  {
61
73
  ...descriptionProps,
62
74
  ref: forwardedRef,
63
- className: classNames("dsx-alert__description", className)
75
+ className: classNames("dsx-alert__description", className),
76
+ "data-line-clamp": clamp,
77
+ style: clamp ? { ...style, "--dsx-alert-line-clamp": clamp } : style
64
78
  }
65
79
  );
66
80
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/components/alert/Alert.tsx"],
4
- "sourcesContent": ["import * as React from 'react'\nimport classNames from 'classnames'\nimport { Slot } from '@radix-ui/react-slot'\n\nimport { extractProps } from '../../_internal/helpers/extractProps'\nimport { Icon } from '../icon/Icon'\nimport { alertDescriptionPropDefs, alertPropDefs, alertTitlePropDefs } from './alert.props'\n\nimport type { GetPropDefTypes } from '../../_internal/props/propDef'\n\ntype AlertActionElement = React.ComponentRef<'div'>\n\nconst AlertAction = React.forwardRef<AlertActionElement, React.ComponentPropsWithoutRef<'div'>>(\n ({ className, ...props }, forwardedRef) => (\n <div {...props} ref={forwardedRef} className={classNames('dsx-alert__action', className)} />\n ),\n)\nAlertAction.displayName = 'AlertAction'\n\ntype AlertElement = React.ComponentRef<'div'>\ntype AlertOwnProps = GetPropDefTypes<typeof alertPropDefs> & {\n icon?: React.ReactNode\n}\n\ninterface AlertProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'color'>, AlertOwnProps {}\n\nconst AlertRoot = React.forwardRef<AlertElement, AlertProps>((props, forwardedRef) => {\n const {\n asChild,\n className,\n color,\n highContrast = false,\n icon,\n children,\n role,\n size = 'md',\n variant = 'default',\n ...alertProps\n } = extractProps(props, alertPropDefs)\n const Comp = asChild ? Slot : 'div'\n const fallbackIcon = variant === 'success' ? 'check-circle' : variant === 'default' ? 'info' : 'alert-triangle'\n const child = asChild ? React.Children.only(children) as React.ReactElement<{ children?: React.ReactNode }> : null\n const content = <>\n {icon === null ? null : (\n <span aria-hidden=\"true\" className=\"dsx-alert__icon\">\n {icon ?? <Icon name={fallbackIcon} size=\"md\" strokeWidth=\"var(--dsx-icon-stroke-width-strong, 2.25)\" />}\n </span>\n )}\n <div className=\"dsx-alert__content\">{child ? child.props.children : children}</div>\n </>\n\n return (\n <Comp\n {...alertProps}\n ref={forwardedRef}\n role={role ?? 'alert'}\n className={classNames('dsx-alert', className)}\n data-accent-color={color}\n data-high-contrast={highContrast ? 'true' : undefined}\n data-size={size}\n data-variant={variant}\n >\n {child ? React.cloneElement(child, undefined, content) : content}\n </Comp>\n )\n})\nAlertRoot.displayName = 'Alert'\n\ntype AlertTitleElement = React.ComponentRef<'h5'>\ntype AlertTitleOwnProps = GetPropDefTypes<typeof alertTitlePropDefs>\n\ninterface AlertTitleProps extends React.ComponentPropsWithoutRef<'h5'>, AlertTitleOwnProps {}\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>((props, forwardedRef) => {\n const { asChild, className, ...titleProps } = extractProps(props, alertTitlePropDefs)\n const Comp = asChild ? Slot : 'h5'\n\n return <Comp {...titleProps} ref={forwardedRef} className={classNames('dsx-alert__title', className)} />\n})\nAlertTitle.displayName = 'AlertTitle'\n\ntype AlertDescriptionElement = React.ComponentRef<'p'>\ntype AlertDescriptionOwnProps = GetPropDefTypes<typeof alertDescriptionPropDefs>\n\ninterface AlertDescriptionProps\n extends React.ComponentPropsWithoutRef<'p'>,\n AlertDescriptionOwnProps {}\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n (props, forwardedRef) => {\n const { asChild, className, ...descriptionProps } = extractProps(props, alertDescriptionPropDefs)\n const Comp = asChild ? Slot : 'p'\n\n return (\n <Comp\n {...descriptionProps}\n ref={forwardedRef}\n className={classNames('dsx-alert__description', className)}\n />\n )\n },\n)\nAlertDescription.displayName = 'AlertDescription'\n\nconst Alert: typeof AlertRoot & {\n Title: typeof AlertTitle\n Description: typeof AlertDescription\n Action: typeof AlertAction\n} = Object.assign(AlertRoot, {\n Title: AlertTitle,\n Description: AlertDescription,\n Action: AlertAction,\n})\n\nexport { Alert, AlertAction, AlertDescription, AlertRoot, AlertTitle }\nexport type { AlertDescriptionProps, AlertProps, AlertTitleProps }\n"],
5
- "mappings": "AAAA,YAAY,WAAW;AACvB,OAAO,gBAAgB;AACvB,SAAS,YAAY;AAErB,SAAS,oBAAoB;AAC7B,SAAS,YAAY;AACrB,SAAS,0BAA0B,eAAe,0BAA0B;AAQxE,SA4Bc,UA5Bd,KA4Bc,YA5Bd;AAFJ,MAAM,cAAc,MAAM;AAAA,EACxB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,iBACxB,oBAAC,SAAK,GAAG,OAAO,KAAK,cAAc,WAAW,WAAW,qBAAqB,SAAS,GAAG;AAE9F;AACA,YAAY,cAAc;AAS1B,MAAM,YAAY,MAAM,WAAqC,CAAC,OAAO,iBAAiB;AACpF,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf;AAAA,IACA;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP,UAAU;AAAA,IACV,GAAG;AAAA,EACL,IAAI,aAAa,OAAO,aAAa;AACrC,QAAM,OAAO,UAAU,OAAO;AAC9B,QAAM,eAAe,YAAY,YAAY,iBAAiB,YAAY,YAAY,SAAS;AAC/F,QAAM,QAAQ,UAAU,MAAM,SAAS,KAAK,QAAQ,IAA0D;AAC9G,QAAM,UAAU,iCACb;AAAA,aAAS,OAAO,OACf,oBAAC,UAAK,eAAY,QAAO,WAAU,mBAChC,kBAAQ,oBAAC,QAAK,MAAM,cAAc,MAAK,MAAK,aAAY,6CAA4C,GACvG;AAAA,IAEF,oBAAC,SAAI,WAAU,sBAAsB,kBAAQ,MAAM,MAAM,WAAW,UAAS;AAAA,KAC/E;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACE,GAAG;AAAA,MACJ,KAAK;AAAA,MACL,MAAM,QAAQ;AAAA,MACd,WAAW,WAAW,aAAa,SAAS;AAAA,MAC5C,qBAAmB;AAAA,MACnB,sBAAoB,eAAe,SAAS;AAAA,MAC5C,aAAW;AAAA,MACX,gBAAc;AAAA,MAEb,kBAAQ,MAAM,aAAa,OAAO,QAAW,OAAO,IAAI;AAAA;AAAA,EAC3D;AAEJ,CAAC;AACD,UAAU,cAAc;AAOxB,MAAM,aAAa,MAAM,WAA+C,CAAC,OAAO,iBAAiB;AAC/F,QAAM,EAAE,SAAS,WAAW,GAAG,WAAW,IAAI,aAAa,OAAO,kBAAkB;AACpF,QAAM,OAAO,UAAU,OAAO;AAE9B,SAAO,oBAAC,QAAM,GAAG,YAAY,KAAK,cAAc,WAAW,WAAW,oBAAoB,SAAS,GAAG;AACxG,CAAC;AACD,WAAW,cAAc;AASzB,MAAM,mBAAmB,MAAM;AAAA,EAC7B,CAAC,OAAO,iBAAiB;AACvB,UAAM,EAAE,SAAS,WAAW,GAAG,iBAAiB,IAAI,aAAa,OAAO,wBAAwB;AAChG,UAAM,OAAO,UAAU,OAAO;AAE9B,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,KAAK;AAAA,QACL,WAAW,WAAW,0BAA0B,SAAS;AAAA;AAAA,IAC3D;AAAA,EAEJ;AACF;AACA,iBAAiB,cAAc;AAE/B,MAAM,QAIF,OAAO,OAAO,WAAW;AAAA,EAC3B,OAAO;AAAA,EACP,aAAa;AAAA,EACb,QAAQ;AACV,CAAC;",
4
+ "sourcesContent": ["import * as React from 'react'\nimport classNames from 'classnames'\nimport { Slot } from '@radix-ui/react-slot'\n\nimport { extractProps } from '../../_internal/helpers/extractProps'\nimport { Icon } from '../icon/Icon'\nimport { alertDescriptionPropDefs, alertPropDefs, alertTitlePropDefs } from './alert.props'\n\nimport type { GetPropDefTypes } from '../../_internal/props/propDef'\n\ntype AlertActionElement = React.ComponentRef<'div'>\n\nconst AlertAction = React.forwardRef<AlertActionElement, React.ComponentPropsWithoutRef<'div'>>(\n ({ className, ...props }, forwardedRef) => (\n <div {...props} ref={forwardedRef} className={classNames('dsx-alert__action', className)} />\n ),\n)\nAlertAction.displayName = 'AlertAction'\n\nconst isAlertAction = (node: React.ReactNode): boolean => React.isValidElement(node) && node.type === AlertAction\n\n// An `Alert.Action` that is a direct child sits beside the content, not inside it, in one `.dsx-alert__actions` group: the\n// group trails the row, and wraps below the text as a whole when it is narrow, under the text and not under the icon (the\n// icon is one column, the text and the group are the other: `.dsx-alert__main`). A consumer who nests an action in their own\n// wrapper keeps it in the content.\nfunction splitAlertChildren(children: React.ReactNode): { actions: React.ReactNode[]; body: React.ReactNode[] } {\n const nodes = React.Children.toArray(children)\n return { actions: nodes.filter(isAlertAction), body: nodes.filter((node) => !isAlertAction(node)) }\n}\n\ntype AlertElement = React.ComponentRef<'div'>\ntype AlertOwnProps = GetPropDefTypes<typeof alertPropDefs> & {\n icon?: React.ReactNode\n}\n\ninterface AlertProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'color'>, AlertOwnProps {}\n\nconst AlertRoot = React.forwardRef<AlertElement, AlertProps>((props, forwardedRef) => {\n const {\n asChild,\n className,\n color,\n highContrast = false,\n icon,\n children,\n role,\n size = 'md',\n variant = 'default',\n ...alertProps\n } = extractProps(props, alertPropDefs)\n const Comp = asChild ? Slot : 'div'\n const fallbackIcon = variant === 'success' ? 'check-circle' : variant === 'default' ? 'info' : 'alert-triangle'\n const child = asChild ? React.Children.only(children) as React.ReactElement<{ children?: React.ReactNode }> : null\n const { actions, body } = splitAlertChildren(child ? child.props.children : children)\n const content = <>\n {icon === null ? null : (\n <span aria-hidden=\"true\" className=\"dsx-alert__icon\">\n {icon ?? <Icon name={fallbackIcon} size=\"md\" strokeWidth=\"var(--dsx-icon-stroke-width-strong, 2.25)\" />}\n </span>\n )}\n <div className=\"dsx-alert__main\">\n <div className=\"dsx-alert__content\">{body}</div>\n {actions.length > 0 ? <div className=\"dsx-alert__actions\">{actions}</div> : null}\n </div>\n </>\n\n return (\n <Comp\n {...alertProps}\n ref={forwardedRef}\n role={role ?? 'alert'}\n className={classNames('dsx-alert', className)}\n data-accent-color={color}\n data-high-contrast={highContrast ? 'true' : undefined}\n data-size={size}\n data-variant={variant}\n >\n {child ? React.cloneElement(child, undefined, content) : content}\n </Comp>\n )\n})\nAlertRoot.displayName = 'Alert'\n\ntype AlertTitleElement = React.ComponentRef<'h5'>\ntype AlertTitleOwnProps = GetPropDefTypes<typeof alertTitlePropDefs>\n\ninterface AlertTitleProps extends React.ComponentPropsWithoutRef<'h5'>, AlertTitleOwnProps {}\n\nconst AlertTitle = React.forwardRef<AlertTitleElement, AlertTitleProps>((props, forwardedRef) => {\n const { asChild, className, ...titleProps } = extractProps(props, alertTitlePropDefs)\n const Comp = asChild ? Slot : 'h5'\n\n return <Comp {...titleProps} ref={forwardedRef} className={classNames('dsx-alert__title', className)} />\n})\nAlertTitle.displayName = 'AlertTitle'\n\ntype AlertDescriptionElement = React.ComponentRef<'p'>\ntype AlertDescriptionOwnProps = GetPropDefTypes<typeof alertDescriptionPropDefs>\n\ninterface AlertDescriptionProps\n extends React.ComponentPropsWithoutRef<'p'>,\n AlertDescriptionOwnProps {\n /**\n * Clamp the text to this many lines (a whole number of 1 or more); the rest is clipped with an ellipsis. Anything else\n * leaves the text unclamped. Whether the text is clipped, and how to reveal it, is the consumer's: it can measure the\n * element (`scrollHeight > clientHeight`) and drop the prop to show everything.\n */\n lineClamp?: number\n}\n\nconst isLineClamp = (value: unknown): value is number =>\n typeof value === 'number' && Number.isInteger(value) && value >= 1\n\nconst AlertDescription = React.forwardRef<AlertDescriptionElement, AlertDescriptionProps>(\n (props, forwardedRef) => {\n // `lineClamp` is behaviour-only, so it stays out of extractProps (it has no class mapping and would leak to the DOM).\n const { lineClamp, style, ...ownProps } = props\n const { asChild, className, ...descriptionProps } = extractProps(ownProps, alertDescriptionPropDefs)\n const Comp = asChild ? Slot : 'p'\n const clamp = isLineClamp(lineClamp) ? lineClamp : undefined\n\n return (\n <Comp\n {...descriptionProps}\n ref={forwardedRef}\n className={classNames('dsx-alert__description', className)}\n data-line-clamp={clamp}\n style={clamp ? ({ ...style, '--dsx-alert-line-clamp': clamp } as React.CSSProperties) : style}\n />\n )\n },\n)\nAlertDescription.displayName = 'AlertDescription'\n\nconst Alert: typeof AlertRoot & {\n Title: typeof AlertTitle\n Description: typeof AlertDescription\n Action: typeof AlertAction\n} = Object.assign(AlertRoot, {\n Title: AlertTitle,\n Description: AlertDescription,\n Action: AlertAction,\n})\n\nexport { Alert, AlertAction, AlertDescription, AlertRoot, AlertTitle }\nexport type { AlertDescriptionProps, AlertProps, AlertTitleProps }\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;AACvB,OAAO,gBAAgB;AACvB,SAAS,YAAY;AAErB,SAAS,oBAAoB;AAC7B,SAAS,YAAY;AACrB,SAAS,0BAA0B,eAAe,0BAA0B;AAQxE,SAwCc,UAxCd,KA8CA,YA9CA;AAFJ,MAAM,cAAc,MAAM;AAAA,EACxB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,iBACxB,oBAAC,SAAK,GAAG,OAAO,KAAK,cAAc,WAAW,WAAW,qBAAqB,SAAS,GAAG;AAE9F;AACA,YAAY,cAAc;AAE1B,MAAM,gBAAgB,CAAC,SAAmC,MAAM,eAAe,IAAI,KAAK,KAAK,SAAS;AAMtG,SAAS,mBAAmB,UAAoF;AAC9G,QAAM,QAAQ,MAAM,SAAS,QAAQ,QAAQ;AAC7C,SAAO,EAAE,SAAS,MAAM,OAAO,aAAa,GAAG,MAAM,MAAM,OAAO,CAAC,SAAS,CAAC,cAAc,IAAI,CAAC,EAAE;AACpG;AASA,MAAM,YAAY,MA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AAO;AAE9B,SAAO,oBAAC,QAAM,GAAG,YAAY,KAAK,cAAc,WAAW,WAAW,oBAAoB,SAAS,GAAG;AACxG,CAAC;AACD,WAAW,cAAc;AAgBzB,MAAM,cAAc,CAAC,UACnB,OAAO,UAAU,YAAY,OAAO,UAAU,KAAK,KAAK,SAAS;AAEnE,MAAM,mBAAmB,MAAM;AAAA,EAC7B,CAAC,OAAO,iBAAiB;AAEvB,UAAM,EAAE,WAAW,OAAO,GAAG,SAAS,IAAI;AAC1C,UAAM,EAAE,SAAS,WAAW,GAAG,iBAAiB,IAAI,aAAa,UAAU,wBAAwB;AACnG,UAAM,OAAO,UAAU,OAAO;AAC9B,UAAM,QAAQ,YAAY,SAAS,IAAI,YAAY;AAEnD,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,KAAK;AAAA,QACL,WAAW,WAAW,0BAA0B,SAAS;AAAA,QACzD,mBAAiB;AAAA,QACjB,OAAO,QAAS,EAAE,GAAG,OAAO,0BAA0B,MAAM,IAA4B;AAAA;AAAA,IAC1F;AAAA,EAEJ;AACF;AACA,iBAAiB,cAAc;AAE/B,MAAM,QAIF,OAAO,OAAO,WAAW;AAAA,EAC3B,OAAO;AAAA,EACP,aAAa;AAAA,EACb,QAAQ;AACV,CAAC;",
6
6
  "names": []
7
7
  }
@@ -26,21 +26,46 @@
26
26
 
27
27
  .dsx-alert__icon { flex-shrink: 0; }
28
28
 
29
- .dsx-alert__action {
30
- align-self: center;
31
- justify-content: flex-start;
29
+ /* The icon is one column; the text and the actions are the other. Only this column wraps, so actions that drop below the text
30
+ start under the text and not under the icon (G-15, 2026-10-05). The gap is the alert's own, per size. */
31
+ .dsx-alert__main {
32
+ display: flex;
33
+ flex: 1 1 0;
32
34
  flex-wrap: wrap;
33
- gap: var(--dsx-space-sm);
35
+ align-items: flex-start;
36
+ gap: inherit;
37
+ min-width: 0;
34
38
  }
35
39
 
40
+ /* The basis is the width the text needs to read before the actions wrap below it; min() keeps it from overflowing a column
41
+ narrower than that. */
36
42
  .dsx-alert__content {
37
43
  display: grid;
38
44
  gap: var(--dsx-space-xs);
39
- flex: 1;
45
+ flex: 1 1 min(calc(var(--dsx-size-xl) * 5), 100%);
40
46
  min-width: 0;
41
47
  overflow-wrap: anywhere;
42
48
  }
43
49
 
50
+ /* The direct-child Alert.Actions are one group. The content grows to push the group to the end of the row, and when the text
51
+ would drop under its readable width the group wraps below it as a whole, at the start of the column. It has no auto margin:
52
+ that would push a wrapped group to the far edge. Its own buttons wrap inside it when even the group is too wide. */
53
+ .dsx-alert__actions {
54
+ display: flex;
55
+ flex: 0 0 auto;
56
+ flex-wrap: wrap;
57
+ align-items: flex-start;
58
+ gap: var(--dsx-space-sm);
59
+ max-width: 100%;
60
+ }
61
+
62
+ .dsx-alert__action {
63
+ align-self: flex-start;
64
+ justify-content: flex-start;
65
+ flex-wrap: wrap;
66
+ gap: var(--dsx-space-sm);
67
+ }
68
+
44
69
  .dsx-alert[data-variant='warning'] { border-color: var(--dsx-color-warning); }
45
70
  .dsx-alert[data-variant='success'] { border-color: var(--dsx-color-success); }
46
71
  .dsx-alert[data-variant='destructive'] { border-color: var(--dsx-color-error); }
@@ -62,6 +87,18 @@
62
87
  opacity: var(--dsx-opacity-subtle, 0.85);
63
88
  }
64
89
 
90
+ /* A Link inside an alert reads in the alert's own foreground: the alert's colour carries its meaning, and a second hue beside it
91
+ competes (a violet link in a red alert, G-27, 2026-10-06). With the colour the same as the text, the underline is what marks a
92
+ link, so it is drawn at rest. A link that asked for something keeps it: a tone, an accent, high contrast, or an underline other
93
+ than the default. */
94
+ .dsx-alert .dsx-link:where(:not(.dsx-link--muted, .dsx-link--inverse, [data-accent-color], [data-high-contrast='true'])) {
95
+ color: inherit;
96
+ }
97
+
98
+ .dsx-alert .dsx-link--auto {
99
+ text-decoration-line: underline;
100
+ }
101
+
65
102
  /* Size scales shell density only (padding, gap, icon box) — never the type
66
103
  voice: title stays label-large, description stays body-medium at every size. */
67
104
  .dsx-alert[data-size='sm'] {
@@ -85,3 +122,35 @@
85
122
  min-width: var(--dsx-size-lg);
86
123
  min-height: var(--dsx-size-lg);
87
124
  }
125
+
126
+ /* With a trailing action, the icon, the first line of text and the action share one centre at any width: all
127
+ three get a control-height row, and the first line's box is that tall (`::first-line`). Alerts without an
128
+ action are untouched. Kept last so it wins over the size rules above. */
129
+ :where(.dsx-alert:has(> .dsx-alert__main > .dsx-alert__actions)) :is(.dsx-alert__icon, .dsx-alert__action) {
130
+ min-height: var(--dsx-size-lg);
131
+ }
132
+
133
+ :where(.dsx-alert:has(> .dsx-alert__main > .dsx-alert__actions)) .dsx-alert__content > :where(:first-child)::first-line {
134
+ line-height: var(--dsx-size-lg);
135
+ }
136
+
137
+ /* `lineClamp` on Alert.Description: the text stops after that many lines with an ellipsis. */
138
+ .dsx-alert__description[data-line-clamp] {
139
+ display: -webkit-box;
140
+ -webkit-box-orient: vertical;
141
+ -webkit-line-clamp: var(--dsx-alert-line-clamp);
142
+ overflow: hidden;
143
+ }
144
+
145
+ /* Whether `::first-line` reaches into a clamped description depends on the engine (Chromium draws it as a block
146
+ container, WebKit and Gecko as a legacy flexbox), so the control-height first line above is switched off for it and
147
+ the same centring is done with padding in every engine: the first line sits on the middle of the control row (`lh`
148
+ is the element's own line height). */
149
+ :where(.dsx-alert:has(> .dsx-alert__main > .dsx-alert__actions)) .dsx-alert__description[data-line-clamp] {
150
+ padding-block-start: calc((var(--dsx-size-lg) - 1lh) / 2);
151
+ }
152
+
153
+ /* Same specificity as the first-line rule it switches off (0,1,1), so source order decides: this one comes last. */
154
+ :where(.dsx-alert:has(> .dsx-alert__main > .dsx-alert__actions)) .dsx-alert__description:where([data-line-clamp])::first-line {
155
+ line-height: inherit;
156
+ }
@@ -70,6 +70,14 @@
70
70
  padding: var(--dsx-space-xs) var(--dsx-space-sm);
71
71
  }
72
72
 
73
+ /* labels="none": icon-only items share the width. The label stays in the accessible name; the active
74
+ item is carried by its container fill and aria-current. For widths where five labels do not fit. */
75
+ .dsx-bottom-dock:where([data-labels='none']) .dsx-bottom-dock__item {
76
+ flex: 1 1 0;
77
+ gap: 0;
78
+ padding: 0;
79
+ }
80
+
73
81
  .dsx-bottom-dock__icon {
74
82
  position: relative;
75
83
  display: inline-flex;
@@ -68,7 +68,7 @@ const BottomDockItem = React.forwardRef(({ children, ...props }, forwardedRef) =
68
68
  const { isActive = false, type = "button", ...restProps } = props;
69
69
  const { asChild, className, ...itemProps } = (0, import_extractProps.extractProps)(restProps, import_bottomDock.bottomDockItemPropDefs);
70
70
  const { labels } = React.useContext(BottomDockContext);
71
- const labelHidden = labels === "active" && !isActive;
71
+ const labelHidden = labels === "none" || labels === "active" && !isActive;
72
72
  const Comp = asChild ? import_react_slot.Slot : "button";
73
73
  const itemContext = React.useMemo(() => ({ labelHidden }), [labelHidden]);
74
74
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BottomDockItemContext.Provider, { value: itemContext, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(