@dynatrace/strato-components 0.84.31 → 0.84.51

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 (404) hide show
  1. package/content/index.d.ts +7 -0
  2. package/content/index.js +25 -0
  3. package/content/progress/ProgressBar.css +52 -0
  4. package/content/progress/ProgressBar.d.ts +56 -0
  5. package/content/progress/ProgressBar.js +191 -0
  6. package/content/progress/ProgressBar.sty.d.ts +42 -0
  7. package/content/progress/ProgressBar.sty.js +28 -0
  8. package/content/progress/ProgressBarIcon.css +5 -0
  9. package/content/progress/ProgressBarIcon.d.ts +15 -0
  10. package/content/progress/ProgressBarIcon.js +68 -0
  11. package/content/progress/ProgressBarIcon.sty.d.ts +1 -0
  12. package/content/progress/ProgressBarIcon.sty.js +25 -0
  13. package/content/progress/ProgressBarLabel.css +9 -0
  14. package/content/progress/ProgressBarLabel.d.ts +15 -0
  15. package/content/progress/ProgressBarLabel.js +75 -0
  16. package/content/progress/ProgressBarLabel.sty.d.ts +13 -0
  17. package/content/progress/ProgressBarLabel.sty.js +26 -0
  18. package/content/progress/ProgressBarValue.css +28 -0
  19. package/content/progress/ProgressBarValue.d.ts +15 -0
  20. package/content/progress/ProgressBarValue.js +72 -0
  21. package/content/progress/ProgressBarValue.sty.d.ts +34 -0
  22. package/content/progress/ProgressBarValue.sty.js +26 -0
  23. package/content/progress/ProgressCircle.css +52 -0
  24. package/content/progress/ProgressCircle.d.ts +51 -0
  25. package/content/progress/ProgressCircle.js +174 -0
  26. package/content/progress/ProgressCircle.sty.d.ts +41 -0
  27. package/content/progress/ProgressCircle.sty.js +37 -0
  28. package/content/progress/contexts/SharedProgressBarPropsContext.d.ts +9 -0
  29. package/content/progress/contexts/SharedProgressBarPropsContext.js +38 -0
  30. package/content/progress/hooks/useProgressAriaProps.d.ts +38 -0
  31. package/content/progress/hooks/useProgressAriaProps.js +63 -0
  32. package/content/progress/hooks/useProgressBarPropsContext.d.ts +2 -0
  33. package/content/progress/hooks/useProgressBarPropsContext.js +32 -0
  34. package/content/progress/utils.d.ts +2 -0
  35. package/content/progress/utils.js +50 -0
  36. package/core/components/app-root/AppRoot.d.ts +4 -4
  37. package/core/hooks/useAriaLabelingProps.d.ts +6 -0
  38. package/core/hooks/useAriaLabelingProps.js +30 -0
  39. package/core/hooks/useCurrentTheme.d.ts +1 -1
  40. package/core/hooks/useFontsUpdated.d.ts +9 -0
  41. package/core/hooks/useFontsUpdated.js +51 -0
  42. package/core/hooks/useId.d.ts +12 -0
  43. package/core/hooks/useId.js +32 -0
  44. package/core/hooks/useMergeRefs.d.ts +7 -0
  45. package/core/hooks/useMergeRefs.js +34 -0
  46. package/core/hooks/useSafeForwardProps.d.ts +10 -0
  47. package/core/hooks/useSafeForwardProps.js +34 -0
  48. package/core/index.d.ts +12 -0
  49. package/core/index.js +12 -0
  50. package/core/styles/focusRing.css +88 -0
  51. package/core/styles/focusRing.sty.d.ts +96 -0
  52. package/core/styles/focusRing.sty.js +27 -0
  53. package/core/styles/useFocusRing.d.ts +49 -0
  54. package/core/styles/useFocusRing.js +83 -0
  55. package/core/types/a11y-props.d.ts +26 -0
  56. package/core/types/a11y-props.js +15 -0
  57. package/core/types/data-props.d.ts +1 -1
  58. package/core/types/dom.d.ts +8 -0
  59. package/core/types/dom.js +15 -0
  60. package/core/types/heading.d.ts +9 -0
  61. package/core/types/heading.js +15 -0
  62. package/core/types/masking-props.d.ts +2 -1
  63. package/core/types/polymorph.d.ts +28 -0
  64. package/core/types/polymorph.js +15 -0
  65. package/core/types/role-variant.d.ts +10 -0
  66. package/core/types/role-variant.js +30 -0
  67. package/core/types/styling-props.d.ts +1 -1
  68. package/core/types/with-children.d.ts +1 -1
  69. package/core/utils/_is-string-children.d.ts +6 -0
  70. package/core/utils/_is-string-children.js +44 -0
  71. package/core/utils/colorUtils.css +80 -0
  72. package/core/utils/colorUtils.sty.d.ts +48 -0
  73. package/core/utils/colorUtils.sty.js +27 -0
  74. package/core/utils/isBrowser.d.ts +1 -1
  75. package/core/utils/merge-props.d.ts +4 -5
  76. package/core/utils/seed-random.d.ts +5 -0
  77. package/core/utils/seed-random.js +34 -0
  78. package/core/utils/uuidv4.d.ts +5 -0
  79. package/core/utils/uuidv4.js +31 -0
  80. package/esm/content/index.js +7 -0
  81. package/esm/content/index.js.map +7 -0
  82. package/esm/content/progress/ProgressBar.css +52 -0
  83. package/esm/content/progress/ProgressBar.js +163 -0
  84. package/esm/content/progress/ProgressBar.js.map +7 -0
  85. package/esm/content/progress/ProgressBar.sty.js +10 -0
  86. package/esm/content/progress/ProgressBar.sty.js.map +7 -0
  87. package/esm/content/progress/ProgressBarIcon.css +5 -0
  88. package/esm/content/progress/ProgressBarIcon.js +40 -0
  89. package/esm/content/progress/ProgressBarIcon.js.map +7 -0
  90. package/esm/content/progress/ProgressBarIcon.sty.js +7 -0
  91. package/esm/content/progress/ProgressBarIcon.sty.js.map +7 -0
  92. package/esm/content/progress/ProgressBarLabel.css +9 -0
  93. package/esm/content/progress/ProgressBarLabel.js +47 -0
  94. package/esm/content/progress/ProgressBarLabel.js.map +7 -0
  95. package/esm/content/progress/ProgressBarLabel.sty.js +8 -0
  96. package/esm/content/progress/ProgressBarLabel.sty.js.map +7 -0
  97. package/esm/content/progress/ProgressBarValue.css +28 -0
  98. package/esm/content/progress/ProgressBarValue.js +44 -0
  99. package/esm/content/progress/ProgressBarValue.js.map +7 -0
  100. package/esm/content/progress/ProgressBarValue.sty.js +8 -0
  101. package/esm/content/progress/ProgressBarValue.sty.js.map +7 -0
  102. package/esm/content/progress/ProgressCircle.css +52 -0
  103. package/esm/content/progress/ProgressCircle.js +153 -0
  104. package/esm/content/progress/ProgressCircle.js.map +7 -0
  105. package/esm/content/progress/ProgressCircle.sty.js +19 -0
  106. package/esm/content/progress/ProgressCircle.sty.js.map +7 -0
  107. package/esm/content/progress/contexts/SharedProgressBarPropsContext.js +10 -0
  108. package/esm/content/progress/contexts/SharedProgressBarPropsContext.js.map +7 -0
  109. package/esm/content/progress/hooks/useProgressAriaProps.js +45 -0
  110. package/esm/content/progress/hooks/useProgressAriaProps.js.map +7 -0
  111. package/esm/content/progress/hooks/useProgressBarPropsContext.js +16 -0
  112. package/esm/content/progress/hooks/useProgressBarPropsContext.js.map +7 -0
  113. package/esm/content/progress/utils.js +22 -0
  114. package/esm/content/progress/utils.js.map +7 -0
  115. package/esm/core/components/app-root/AppRoot.js.map +1 -1
  116. package/esm/core/hooks/useAriaLabelingProps.js +12 -0
  117. package/esm/core/hooks/useAriaLabelingProps.js.map +7 -0
  118. package/esm/core/hooks/useCurrentTheme.js.map +1 -1
  119. package/esm/core/hooks/useFontsUpdated.js +33 -0
  120. package/esm/core/hooks/useFontsUpdated.js.map +7 -0
  121. package/esm/core/hooks/useId.js +14 -0
  122. package/esm/core/hooks/useId.js.map +7 -0
  123. package/esm/core/hooks/useMergeRefs.js +16 -0
  124. package/esm/core/hooks/useMergeRefs.js.map +7 -0
  125. package/esm/core/hooks/useSafeForwardProps.js +16 -0
  126. package/esm/core/hooks/useSafeForwardProps.js.map +7 -0
  127. package/esm/core/index.js +12 -0
  128. package/esm/core/index.js.map +2 -2
  129. package/esm/core/styles/focusRing.css +88 -0
  130. package/esm/core/styles/focusRing.sty.js +9 -0
  131. package/esm/core/styles/focusRing.sty.js.map +7 -0
  132. package/esm/core/styles/useFocusRing.js +69 -0
  133. package/esm/core/styles/useFocusRing.js.map +7 -0
  134. package/esm/core/types/a11y-props.js +1 -0
  135. package/esm/core/types/a11y-props.js.map +7 -0
  136. package/esm/core/types/dom.js +1 -0
  137. package/esm/core/types/dom.js.map +7 -0
  138. package/esm/core/types/heading.js +1 -0
  139. package/esm/core/types/heading.js.map +7 -0
  140. package/esm/core/types/polymorph.js +1 -0
  141. package/esm/core/types/polymorph.js.map +7 -0
  142. package/esm/core/types/role-variant.js +12 -0
  143. package/esm/core/types/role-variant.js.map +7 -0
  144. package/esm/core/utils/_is-string-children.js +16 -0
  145. package/esm/core/utils/_is-string-children.js.map +7 -0
  146. package/esm/core/utils/colorUtils.css +80 -0
  147. package/esm/core/utils/colorUtils.sty.js +9 -0
  148. package/esm/core/utils/colorUtils.sty.js.map +7 -0
  149. package/esm/core/utils/isBrowser.js.map +1 -1
  150. package/esm/core/utils/merge-props.js.map +2 -2
  151. package/esm/core/utils/seed-random.js +16 -0
  152. package/esm/core/utils/seed-random.js.map +7 -0
  153. package/esm/core/utils/uuidv4.js +13 -0
  154. package/esm/core/utils/uuidv4.js.map +7 -0
  155. package/esm/index.js +4 -0
  156. package/esm/index.js.map +2 -2
  157. package/esm/layouts/Divider/Divider.css +23 -0
  158. package/esm/layouts/Divider/Divider.js +39 -0
  159. package/esm/layouts/Divider/Divider.js.map +7 -0
  160. package/esm/layouts/Divider/Divider.sty.js +8 -0
  161. package/esm/layouts/Divider/Divider.sty.js.map +7 -0
  162. package/esm/layouts/container/Container.css +8 -0
  163. package/esm/layouts/container/Container.js +55 -0
  164. package/esm/layouts/container/Container.js.map +7 -0
  165. package/esm/layouts/container/Container.sty.js +7 -0
  166. package/esm/layouts/container/Container.sty.js.map +7 -0
  167. package/esm/layouts/flex/Flex.js +46 -0
  168. package/esm/layouts/flex/Flex.js.map +7 -0
  169. package/esm/layouts/grid/Grid.js +46 -0
  170. package/esm/layouts/grid/Grid.js.map +7 -0
  171. package/esm/layouts/index.js +11 -0
  172. package/esm/layouts/index.js.map +7 -0
  173. package/esm/styles/colorUtils.css +80 -0
  174. package/esm/styles/colorUtils.sty.js +9 -0
  175. package/esm/styles/colorUtils.sty.js.map +7 -0
  176. package/esm/styles/container.css +64 -0
  177. package/esm/styles/container.sty.js +9 -0
  178. package/esm/styles/container.sty.js.map +7 -0
  179. package/esm/styles/ellipsis.css +5 -0
  180. package/esm/styles/ellipsis.sty.js +6 -0
  181. package/esm/styles/ellipsis.sty.js.map +7 -0
  182. package/esm/styles/extract-util.js +15 -0
  183. package/esm/styles/extract-util.js.map +7 -0
  184. package/esm/styles/getFlexStyles.js +69 -0
  185. package/esm/styles/getFlexStyles.js.map +7 -0
  186. package/esm/styles/getGapSprinkles.js +18 -0
  187. package/esm/styles/getGapSprinkles.js.map +7 -0
  188. package/esm/styles/getGridFlexPositionSprinkles.js +25 -0
  189. package/esm/styles/getGridFlexPositionSprinkles.js.map +7 -0
  190. package/esm/styles/getGridStyles.js +78 -0
  191. package/esm/styles/getGridStyles.js.map +7 -0
  192. package/esm/styles/getLayoutSizeStyles.js +21 -0
  193. package/esm/styles/getLayoutSizeStyles.js.map +7 -0
  194. package/esm/styles/getSpacingSprinkles.js +50 -0
  195. package/esm/styles/getSpacingSprinkles.js.map +7 -0
  196. package/esm/styles/index.js +49 -0
  197. package/esm/styles/index.js.map +7 -0
  198. package/esm/styles/safe-sprinkles.js +17 -0
  199. package/esm/styles/safe-sprinkles.js.map +7 -0
  200. package/esm/styles/sprinkle-properties.js +137 -0
  201. package/esm/styles/sprinkle-properties.js.map +7 -0
  202. package/esm/styles/sprinkles.css +786 -0
  203. package/esm/styles/sprinkles.sty.js +9 -0
  204. package/esm/styles/sprinkles.sty.js.map +7 -0
  205. package/esm/styles/textStyle.css +64 -0
  206. package/esm/styles/textStyle.sty.js +7 -0
  207. package/esm/styles/textStyle.sty.js.map +7 -0
  208. package/esm/typography/BlockQuote/Blockquote.css +17 -0
  209. package/esm/typography/BlockQuote/Blockquote.js +34 -0
  210. package/esm/typography/BlockQuote/Blockquote.js.map +7 -0
  211. package/esm/typography/BlockQuote/Blockquote.sty.js +6 -0
  212. package/esm/typography/BlockQuote/Blockquote.sty.js.map +7 -0
  213. package/esm/typography/Code/Code.css +16 -0
  214. package/esm/typography/Code/Code.js +34 -0
  215. package/esm/typography/Code/Code.js.map +7 -0
  216. package/esm/typography/Code/Code.sty.js +6 -0
  217. package/esm/typography/Code/Code.sty.js.map +7 -0
  218. package/esm/typography/Emphasis/Emphasis.css +4 -0
  219. package/esm/typography/Emphasis/Emphasis.js +34 -0
  220. package/esm/typography/Emphasis/Emphasis.js.map +7 -0
  221. package/esm/typography/Emphasis/Emphasis.sty.js +6 -0
  222. package/esm/typography/Emphasis/Emphasis.sty.js.map +7 -0
  223. package/esm/typography/ExternalLink/ExternalLink.css +28 -0
  224. package/esm/typography/ExternalLink/ExternalLink.js +56 -0
  225. package/esm/typography/ExternalLink/ExternalLink.js.map +7 -0
  226. package/esm/typography/ExternalLink/ExternalLink.sty.js +6 -0
  227. package/esm/typography/ExternalLink/ExternalLink.sty.js.map +7 -0
  228. package/esm/typography/Heading/Heading.css +54 -0
  229. package/esm/typography/Heading/Heading.js +36 -0
  230. package/esm/typography/Heading/Heading.js.map +7 -0
  231. package/esm/typography/Heading/Heading.sty.js +7 -0
  232. package/esm/typography/Heading/Heading.sty.js.map +7 -0
  233. package/esm/typography/Highlight/Highlight.css +4 -0
  234. package/esm/typography/Highlight/Highlight.js +111 -0
  235. package/esm/typography/Highlight/Highlight.js.map +7 -0
  236. package/esm/typography/Highlight/Highlight.sty.js +6 -0
  237. package/esm/typography/Highlight/Highlight.sty.js.map +7 -0
  238. package/esm/typography/Link/Link.css +15 -0
  239. package/esm/typography/Link/Link.js +49 -0
  240. package/esm/typography/Link/Link.js.map +7 -0
  241. package/esm/typography/Link/Link.sty.js +6 -0
  242. package/esm/typography/Link/Link.sty.js.map +7 -0
  243. package/esm/typography/List/List.css +16 -0
  244. package/esm/typography/List/List.js +81 -0
  245. package/esm/typography/List/List.js.map +7 -0
  246. package/esm/typography/List/List.sty.js +8 -0
  247. package/esm/typography/List/List.sty.js.map +7 -0
  248. package/esm/typography/Paragraph/Paragraph.css +19 -0
  249. package/esm/typography/Paragraph/Paragraph.js +49 -0
  250. package/esm/typography/Paragraph/Paragraph.js.map +7 -0
  251. package/esm/typography/Paragraph/Paragraph.sty.js +7 -0
  252. package/esm/typography/Paragraph/Paragraph.sty.js.map +7 -0
  253. package/esm/typography/Strikethrough/Strikethrough.css +5 -0
  254. package/esm/typography/Strikethrough/Strikethrough.js +32 -0
  255. package/esm/typography/Strikethrough/Strikethrough.js.map +7 -0
  256. package/esm/typography/Strikethrough/Strikethrough.sty.js +6 -0
  257. package/esm/typography/Strikethrough/Strikethrough.sty.js.map +7 -0
  258. package/esm/typography/Strong/Strong.css +4 -0
  259. package/esm/typography/Strong/Strong.js +34 -0
  260. package/esm/typography/Strong/Strong.js.map +7 -0
  261. package/esm/typography/Strong/Strong.sty.js +6 -0
  262. package/esm/typography/Strong/Strong.sty.js.map +7 -0
  263. package/esm/typography/Text/Text.css +18 -0
  264. package/esm/typography/Text/Text.js +43 -0
  265. package/esm/typography/Text/Text.js.map +7 -0
  266. package/esm/typography/Text/Text.sty.js +7 -0
  267. package/esm/typography/Text/Text.sty.js.map +7 -0
  268. package/esm/typography/TextEllipsis/TextEllipsis.css +22 -0
  269. package/esm/typography/TextEllipsis/TextEllipsis.js +143 -0
  270. package/esm/typography/TextEllipsis/TextEllipsis.js.map +7 -0
  271. package/esm/typography/TextEllipsis/TextEllipsis.sty.js +7 -0
  272. package/esm/typography/TextEllipsis/TextEllipsis.sty.js.map +7 -0
  273. package/esm/typography/index.js +43 -0
  274. package/esm/typography/index.js.map +7 -0
  275. package/esm/typography/utils.js +101 -0
  276. package/esm/typography/utils.js.map +7 -0
  277. package/index.d.ts +4 -0
  278. package/index.js +4 -0
  279. package/lang/en.json +12 -0
  280. package/lang/uncompiled/en.json +10 -1
  281. package/layouts/Divider/Divider.css +23 -0
  282. package/layouts/Divider/Divider.d.ts +39 -0
  283. package/layouts/Divider/Divider.js +67 -0
  284. package/layouts/Divider/Divider.sty.d.ts +16 -0
  285. package/layouts/Divider/Divider.sty.js +26 -0
  286. package/layouts/container/Container.css +8 -0
  287. package/layouts/container/Container.d.ts +34 -0
  288. package/layouts/container/Container.js +80 -0
  289. package/layouts/container/Container.sty.d.ts +1 -0
  290. package/layouts/container/Container.sty.js +25 -0
  291. package/layouts/flex/Flex.d.ts +23 -0
  292. package/layouts/flex/Flex.js +72 -0
  293. package/layouts/grid/Grid.d.ts +23 -0
  294. package/layouts/grid/Grid.js +72 -0
  295. package/layouts/index.d.ts +6 -0
  296. package/layouts/index.js +29 -0
  297. package/package.json +34 -4
  298. package/styles/colorUtils.css +80 -0
  299. package/styles/colorUtils.sty.d.ts +56 -0
  300. package/styles/colorUtils.sty.js +27 -0
  301. package/styles/container.css +64 -0
  302. package/styles/container.sty.d.ts +54 -0
  303. package/styles/container.sty.js +27 -0
  304. package/styles/ellipsis.css +5 -0
  305. package/styles/ellipsis.sty.d.ts +5 -0
  306. package/styles/ellipsis.sty.js +24 -0
  307. package/styles/extract-util.d.ts +9 -0
  308. package/styles/extract-util.js +33 -0
  309. package/styles/getFlexStyles.d.ts +64 -0
  310. package/styles/getFlexStyles.js +95 -0
  311. package/styles/getGapSprinkles.d.ts +19 -0
  312. package/styles/getGapSprinkles.js +36 -0
  313. package/styles/getGridFlexPositionSprinkles.d.ts +35 -0
  314. package/styles/getGridFlexPositionSprinkles.js +43 -0
  315. package/styles/getGridStyles.d.ts +74 -0
  316. package/styles/getGridStyles.js +100 -0
  317. package/styles/getLayoutSizeStyles.d.ts +29 -0
  318. package/styles/getLayoutSizeStyles.js +39 -0
  319. package/styles/getSpacingSprinkles.d.ts +74 -0
  320. package/styles/getSpacingSprinkles.js +68 -0
  321. package/styles/index.d.ts +11 -0
  322. package/styles/index.js +47 -0
  323. package/styles/safe-sprinkles.d.ts +6 -0
  324. package/styles/safe-sprinkles.js +35 -0
  325. package/styles/sprinkle-properties.d.ts +257 -0
  326. package/styles/sprinkle-properties.js +165 -0
  327. package/styles/sprinkles.css +786 -0
  328. package/styles/sprinkles.sty.d.ts +913 -0
  329. package/styles/sprinkles.sty.js +27 -0
  330. package/styles/textStyle.css +64 -0
  331. package/styles/textStyle.sty.d.ts +13 -0
  332. package/styles/textStyle.sty.js +25 -0
  333. package/testing/mocks/canvas-mock.js +6 -1
  334. package/testing/mocks/text-ellipsis-mock.d.ts +1 -1
  335. package/testing/mocks/text-ellipsis-mock.js +8 -3
  336. package/typography/BlockQuote/Blockquote.css +17 -0
  337. package/typography/BlockQuote/Blockquote.d.ts +19 -0
  338. package/typography/BlockQuote/Blockquote.js +62 -0
  339. package/typography/BlockQuote/Blockquote.sty.d.ts +1 -0
  340. package/typography/BlockQuote/Blockquote.sty.js +24 -0
  341. package/typography/Code/Code.css +16 -0
  342. package/typography/Code/Code.d.ts +17 -0
  343. package/typography/Code/Code.js +62 -0
  344. package/typography/Code/Code.sty.d.ts +1 -0
  345. package/typography/Code/Code.sty.js +24 -0
  346. package/typography/Emphasis/Emphasis.css +4 -0
  347. package/typography/Emphasis/Emphasis.d.ts +14 -0
  348. package/typography/Emphasis/Emphasis.js +62 -0
  349. package/typography/Emphasis/Emphasis.sty.d.ts +1 -0
  350. package/typography/Emphasis/Emphasis.sty.js +24 -0
  351. package/typography/ExternalLink/ExternalLink.css +28 -0
  352. package/typography/ExternalLink/ExternalLink.d.ts +21 -0
  353. package/typography/ExternalLink/ExternalLink.js +82 -0
  354. package/typography/ExternalLink/ExternalLink.sty.d.ts +1 -0
  355. package/typography/ExternalLink/ExternalLink.sty.js +24 -0
  356. package/typography/Heading/Heading.css +54 -0
  357. package/typography/Heading/Heading.d.ts +24 -0
  358. package/typography/Heading/Heading.js +64 -0
  359. package/typography/Heading/Heading.sty.d.ts +52 -0
  360. package/typography/Heading/Heading.sty.js +25 -0
  361. package/typography/Highlight/Highlight.css +4 -0
  362. package/typography/Highlight/Highlight.d.ts +27 -0
  363. package/typography/Highlight/Highlight.js +139 -0
  364. package/typography/Highlight/Highlight.sty.d.ts +1 -0
  365. package/typography/Highlight/Highlight.sty.js +24 -0
  366. package/typography/Link/Link.css +15 -0
  367. package/typography/Link/Link.d.ts +16 -0
  368. package/typography/Link/Link.js +75 -0
  369. package/typography/Link/Link.sty.d.ts +1 -0
  370. package/typography/Link/Link.sty.js +24 -0
  371. package/typography/List/List.css +16 -0
  372. package/typography/List/List.d.ts +39 -0
  373. package/typography/List/List.js +109 -0
  374. package/typography/List/List.sty.d.ts +2 -0
  375. package/typography/List/List.sty.js +26 -0
  376. package/typography/Paragraph/Paragraph.css +19 -0
  377. package/typography/Paragraph/Paragraph.d.ts +19 -0
  378. package/typography/Paragraph/Paragraph.js +77 -0
  379. package/typography/Paragraph/Paragraph.sty.d.ts +16 -0
  380. package/typography/Paragraph/Paragraph.sty.js +25 -0
  381. package/typography/Strikethrough/Strikethrough.css +5 -0
  382. package/typography/Strikethrough/Strikethrough.d.ts +15 -0
  383. package/typography/Strikethrough/Strikethrough.js +60 -0
  384. package/typography/Strikethrough/Strikethrough.sty.d.ts +1 -0
  385. package/typography/Strikethrough/Strikethrough.sty.js +24 -0
  386. package/typography/Strong/Strong.css +4 -0
  387. package/typography/Strong/Strong.d.ts +14 -0
  388. package/typography/Strong/Strong.js +62 -0
  389. package/typography/Strong/Strong.sty.d.ts +1 -0
  390. package/typography/Strong/Strong.sty.js +24 -0
  391. package/typography/Text/Text.css +18 -0
  392. package/typography/Text/Text.d.ts +26 -0
  393. package/typography/Text/Text.js +71 -0
  394. package/typography/Text/Text.sty.d.ts +16 -0
  395. package/typography/Text/Text.sty.js +25 -0
  396. package/typography/TextEllipsis/TextEllipsis.css +22 -0
  397. package/typography/TextEllipsis/TextEllipsis.d.ts +32 -0
  398. package/typography/TextEllipsis/TextEllipsis.js +167 -0
  399. package/typography/TextEllipsis/TextEllipsis.sty.d.ts +15 -0
  400. package/typography/TextEllipsis/TextEllipsis.sty.js +25 -0
  401. package/typography/index.d.ts +28 -0
  402. package/typography/index.js +54 -0
  403. package/typography/utils.d.ts +52 -0
  404. package/typography/utils.js +119 -0
@@ -0,0 +1,27 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var focusRing_css_exports = {};
19
+ __export(focusRing_css_exports, {
20
+ focusRingCSS: () => focusRingCSS,
21
+ focusRingFocusWithinCSS: () => focusRingFocusWithinCSS
22
+ });
23
+ module.exports = __toCommonJS(focusRing_css_exports);
24
+ var import_focusRing_css_ts_vanilla = require("./focusRing.css");
25
+ var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
26
+ var focusRingCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "focusRing_focusRingCSS__z2r50s3", variantClassNames: { minimal: { true: "focusRing_focusRingCSS_minimal_true__z2r50s4", false: "focusRing_focusRingCSS_minimal_false__z2r50s5" }, variant: { neutral: "focusRing_focusRingCSS_variant_neutral__z2r50s6", primary: "focusRing_focusRingCSS_variant_primary__z2r50s7", success: "focusRing_focusRingCSS_variant_success__z2r50s8", warning: "focusRing_focusRingCSS_variant_warning__z2r50s9", critical: "focusRing_focusRingCSS_variant_critical__z2r50sa", onAccent: "focusRing_focusRingCSS_variant_onAccent__z2r50sb" } }, defaultVariants: {}, compoundVariants: [] });
27
+ var focusRingFocusWithinCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "focusRing_focusRingFocusWithinCSS__z2r50sc", variantClassNames: { minimal: { true: "focusRing_focusRingFocusWithinCSS_minimal_true__z2r50sd", false: "focusRing_focusRingFocusWithinCSS_minimal_false__z2r50se" }, variant: { neutral: "focusRing_focusRingFocusWithinCSS_variant_neutral__z2r50sf", primary: "focusRing_focusRingFocusWithinCSS_variant_primary__z2r50sg", success: "focusRing_focusRingFocusWithinCSS_variant_success__z2r50sh", warning: "focusRing_focusRingFocusWithinCSS_variant_warning__z2r50si", critical: "focusRing_focusRingFocusWithinCSS_variant_critical__z2r50sj", onAccent: "focusRing_focusRingFocusWithinCSS_variant_onAccent__z2r50sk" } }, defaultVariants: {}, compoundVariants: [] });
@@ -0,0 +1,49 @@
1
+ import { FocusEvent } from 'react';
2
+ export type Modality = 'keyboard' | 'pointer' | 'touch' | 'unknown';
3
+ /** @internal */
4
+ export declare const variants: readonly ["neutral", "primary", "success", "warning", "critical", "onAccent"];
5
+ /** @internal */
6
+ export type VariantType = (typeof variants)[number];
7
+ /** @internal */
8
+ export type UseFocusRingProps = {
9
+ /**
10
+ * A minimal focus outline is available for smaller content elements like links. This variant is applied when set to true.
11
+ * @defaultValue false
12
+ */
13
+ isMinimal?: boolean;
14
+ /**
15
+ * Whether or not the modality should be ignored, so that the focus ring is also present if users clicks the element (not just by tabbing to it).
16
+ * @defaultValue false
17
+ */
18
+ ignoreModality?: boolean;
19
+ /**
20
+ * The styling variant of the element.
21
+ * @defaultValue neutral
22
+ */
23
+ variant?: VariantType;
24
+ /**
25
+ * Apply the focus ring styling if an embedded element gains the focus
26
+ */
27
+ focusWithin?: boolean;
28
+ /**
29
+ * Whether the element is disabled. If disabled changes to true, the focus will be removed.
30
+ */
31
+ disabled?: boolean;
32
+ };
33
+ export type FocusRingProps = {
34
+ /** The focus styles that depend on modality. */
35
+ focusClassName: string;
36
+ /** Focus handlers used to manage the focus state. Must be applied to the element that receives the focus.*/
37
+ focusProps: {
38
+ onFocus: (e: FocusEvent) => void;
39
+ onBlur: (e: FocusEvent) => void;
40
+ };
41
+ /** Whether or not the element got focus via keyboard. */
42
+ isFocusVisible: boolean;
43
+ };
44
+ /**
45
+ * Custom hook used to determine focus styling depending on modality.
46
+ * Returns the css classes (vanilla) that can be applied to the component in order to show the correct focus outline.
47
+ * @internal
48
+ */
49
+ export declare function useFocusRing(props?: UseFocusRingProps): FocusRingProps;
@@ -0,0 +1,83 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var useFocusRing_exports = {};
19
+ __export(useFocusRing_exports, {
20
+ useFocusRing: () => useFocusRing,
21
+ variants: () => variants
22
+ });
23
+ module.exports = __toCommonJS(useFocusRing_exports);
24
+ var import_react = require("react");
25
+ var import_focusRing_css = require("./focusRing.sty.js");
26
+ var import__ = require("../index.js");
27
+ const variants = [
28
+ "neutral",
29
+ "primary",
30
+ "success",
31
+ "warning",
32
+ "critical",
33
+ "onAccent"
34
+ ];
35
+ function useFocusRing(props = {}) {
36
+ const {
37
+ variant = "neutral",
38
+ ignoreModality = false,
39
+ isMinimal = false,
40
+ focusWithin = false,
41
+ disabled = false
42
+ } = props;
43
+ const [isFocused, setIsFocused] = (0, import_react.useState)(false);
44
+ const { modality } = (0, import__._useFocusContext)();
45
+ (0, import_react.useEffect)(() => {
46
+ if (disabled) {
47
+ setIsFocused(false);
48
+ }
49
+ }, [disabled]);
50
+ const onBlur = (0, import_react.useCallback)((e) => {
51
+ if (e.currentTarget === e.target) {
52
+ setIsFocused(false);
53
+ }
54
+ }, []);
55
+ const onFocus = (0, import_react.useCallback)((e) => {
56
+ if (e.currentTarget === e.target) {
57
+ setIsFocused(true);
58
+ }
59
+ }, []);
60
+ const focusProps = {
61
+ onFocus,
62
+ onBlur
63
+ };
64
+ if ((ignoreModality || modality === "keyboard") && isFocused || focusWithin) {
65
+ if (isMinimal) {
66
+ return {
67
+ focusClassName: focusWithin ? (0, import_focusRing_css.focusRingFocusWithinCSS)({ minimal: true, variant }) : (0, import_focusRing_css.focusRingCSS)({ minimal: true, variant }),
68
+ isFocusVisible: !focusWithin,
69
+ focusProps
70
+ };
71
+ }
72
+ return {
73
+ focusClassName: focusWithin ? (0, import_focusRing_css.focusRingFocusWithinCSS)({ minimal: false, variant }) : (0, import_focusRing_css.focusRingCSS)({ minimal: false, variant }),
74
+ isFocusVisible: !focusWithin,
75
+ focusProps
76
+ };
77
+ }
78
+ return {
79
+ focusClassName: focusWithin ? (0, import_focusRing_css.focusRingFocusWithinCSS)() : (0, import_focusRing_css.focusRingCSS)(),
80
+ isFocusVisible: false,
81
+ focusProps
82
+ };
83
+ }
@@ -0,0 +1,26 @@
1
+ import type { AriaAttributes } from 'react';
2
+ /**
3
+ * Collection of component aria props.
4
+ * @public
5
+ */
6
+ export interface AriaLabelingProps {
7
+ /** Labels the current element. */
8
+ 'aria-label'?: string;
9
+ /** Identifies the element (or elements) that label(s) the current element. */
10
+ 'aria-labelledby'?: string;
11
+ /** Identifies the element (or elements) that describe(s) the object. */
12
+ 'aria-describedby'?: string;
13
+ /** Identifies the element (or elements) that provide(s) a detailed, extended description for the object. */
14
+ 'aria-details'?: string;
15
+ }
16
+ /**
17
+ * Type used for the adding the `aria-disabled` prop.
18
+ * @public
19
+ */
20
+ export type AriaDisabledProps = {
21
+ /**
22
+ * Whether the element and all focusable descendants are disabled.
23
+ * `aria-disabled="true"` only semantically exposes these elements as being disabled.
24
+ */
25
+ 'aria-disabled'?: AriaAttributes['aria-disabled'];
26
+ };
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var a11y_props_exports = {};
15
+ module.exports = __toCommonJS(a11y_props_exports);
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @public
3
2
  * Type defining the data-testid prop that is mapped to the rendered components root node.
3
+ * @public
4
4
  */
5
5
  export type DataTestId = {
6
6
  /** Test id used for selecting the component's container. */
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The props of a DOM Element.
3
+ * @public
4
+ */
5
+ export interface DOMProps {
6
+ /** The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id). */
7
+ id?: string;
8
+ }
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var dom_exports = {};
15
+ module.exports = __toCommonJS(dom_exports);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Type for heading levels
3
+ * @internal
4
+ */
5
+ export type _HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
6
+ /** Type for all correct semantic html tags
7
+ * @internal
8
+ */
9
+ export type _HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var heading_exports = {};
15
+ module.exports = __toCommonJS(heading_exports);
@@ -1,6 +1,7 @@
1
1
  /**
2
+ * Props defining the masking of data in Session Replay. They are applied to the component's root node.
2
3
  * @public
3
- * Props defining the masking of data in Session Replay. They are applied to the component's root node. */
4
+ */
4
5
  export interface MaskingProps {
5
6
  /** Determines whether masking is enabled and the data is replaced with asterisks. */
6
7
  'data-dtrum-mask'?: boolean;
@@ -0,0 +1,28 @@
1
+ import React, { type ComponentProps, type ElementType } from 'react';
2
+ /**
3
+ * Props type to use with your own to add the as polymorphing prop.
4
+ * @public
5
+ */
6
+ export type PolymorphOwnProps<E extends ElementType = ElementType> = {
7
+ /**
8
+ * The element type / component used for rendering
9
+ * e.g. when `a` is used, an anchor tag is created and the component
10
+ * accepts all props a native anchor also accepts, e.g. a `href` tag.
11
+ * Custom components with their own props are also supported, e.g. a `Link`
12
+ * from a router.
13
+ */
14
+ as?: E;
15
+ };
16
+ /**
17
+ * Combine the props that come from the underlying ElementType and from your own types and omit naming duplicates.
18
+ * @public
19
+ */
20
+ export type PolymorphProps<E extends ElementType> = PolymorphOwnProps<E> & Omit<ComponentProps<E>, keyof PolymorphOwnProps>;
21
+ /**
22
+ * Union type for the element types polymorphic props and your own props
23
+ * @public
24
+ */
25
+ export type PolymorphicComponentProps<E extends ElementType, P> = P & PolymorphProps<E>;
26
+ declare module 'react' {
27
+ function forwardRef<T, P = unknown>(render: (props: P, ref: React.Ref<T>) => React.ReactElement | null): (props: P & React.RefAttributes<T>) => React.ReactElement | null;
28
+ }
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var polymorph_exports = {};
15
+ module.exports = __toCommonJS(polymorph_exports);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Defines role / color variants
3
+ * @public
4
+ */
5
+ export declare const roleVariants: readonly ["neutral", "primary", "success", "warning", "critical", "onAccent"];
6
+ /**
7
+ * Defines the types of role variants
8
+ * @public
9
+ */
10
+ export type RoleVariantType = (typeof roleVariants)[number];
@@ -0,0 +1,30 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var role_variant_exports = {};
19
+ __export(role_variant_exports, {
20
+ roleVariants: () => roleVariants
21
+ });
22
+ module.exports = __toCommonJS(role_variant_exports);
23
+ const roleVariants = [
24
+ "neutral",
25
+ "primary",
26
+ "success",
27
+ "warning",
28
+ "critical",
29
+ "onAccent"
30
+ ];
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties } from 'react';
2
2
  /**
3
- * @public
4
3
  * Collection of component styling props including `style` and `className` types.
4
+ * @public
5
5
  */
6
6
  export interface StylingProps {
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
2
  /**
3
+ * Helper type to add children to props.
3
4
  * @public
4
- * Helper type to add children to props
5
5
  */
6
6
  export interface WithChildren {
7
7
  /** Children provided to the component. */
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ /**
3
+ * Returns whether children only consist of text nodes.
4
+ * @internal
5
+ */
6
+ export declare function isStringChildren(children: React.ReactNode): boolean;
@@ -0,0 +1,44 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var is_string_children_exports = {};
29
+ __export(is_string_children_exports, {
30
+ isStringChildren: () => isStringChildren
31
+ });
32
+ module.exports = __toCommonJS(is_string_children_exports);
33
+ var import_react = __toESM(require("react"));
34
+ var import_react_intl = require("react-intl");
35
+ var import_react_is = require("react-is");
36
+ function isStringChildren(children) {
37
+ const childrenArray = import_react.default.Children.toArray(children);
38
+ if (!childrenArray.some(import_react_is.isElement)) {
39
+ return true;
40
+ }
41
+ return childrenArray.every(
42
+ (child) => !(0, import_react_is.isElement)(child) || (0, import_react_is.isElement)(child) && child.type && child.type === import_react_intl.FormattedMessage
43
+ );
44
+ }
@@ -0,0 +1,80 @@
1
+ .colorUtils_colorUtilsCSS_color_critical__k096v44 {
2
+ --vars_text__k096v40: var(--dt-colors-text-critical-default, #b80031);
3
+ --vars_icon__k096v41: var(--dt-colors-icon-critical-default, #b80031);
4
+ --vars_borderColor__k096v42: var(--dt-colors-border-critical-default, #f1cdcf);
5
+ }
6
+ .colorUtils_colorUtilsCSS_color_neutral__k096v45 {
7
+ --vars_text__k096v40: var(--dt-colors-text-neutral-default, #2b2a58);
8
+ --vars_icon__k096v41: var(--dt-colors-icon-neutral-default, #2b2a58);
9
+ --vars_borderColor__k096v42: var(--dt-colors-border-neutral-default, #d2d3e1);
10
+ }
11
+ .colorUtils_colorUtilsCSS_color_primary__k096v46 {
12
+ --vars_text__k096v40: var(--dt-colors-text-primary-default, #454cc9);
13
+ --vars_icon__k096v41: var(--dt-colors-icon-primary-default, #454cc9);
14
+ --vars_borderColor__k096v42: var(--dt-colors-border-primary-default, #ccd3f3);
15
+ }
16
+ .colorUtils_colorUtilsCSS_color_success__k096v47 {
17
+ --vars_text__k096v40: var(--dt-colors-text-success-default, #2c6360);
18
+ --vars_icon__k096v41: var(--dt-colors-icon-success-default, #2c6360);
19
+ --vars_borderColor__k096v42: var(--dt-colors-border-success-default, #cad6d7);
20
+ }
21
+ .colorUtils_colorUtilsCSS_color_warning__k096v48 {
22
+ --vars_text__k096v40: var(--dt-colors-text-warning-default, #805100);
23
+ --vars_icon__k096v41: var(--dt-colors-icon-warning-default, #805100);
24
+ --vars_borderColor__k096v42: var(--dt-colors-border-warning-default, #f4e5d5);
25
+ }
26
+ .colorUtils_colorUtilsCSS_color_onAccent__k096v49 {
27
+ --vars_text__k096v40: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
28
+ --vars_icon__k096v41: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
29
+ --vars_borderColor__k096v42: var(--dt-colors-border-neutral-on-accent-default, #f3f3f6);
30
+ }
31
+ .colorUtils_colorUtilsCSS_compound_0__k096v4e {
32
+ --vars_text__k096v40: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
33
+ --vars_icon__k096v41: var(--dt-colors-icon-primary-on-accent-default, #f4f4fb);
34
+ --vars_borderColor__k096v42: var(--dt-colors-border-primary-accent, #454cc9);
35
+ }
36
+ .colorUtils_colorUtilsCSS_compound_1__k096v4f {
37
+ --vars_text__k096v40: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
38
+ --vars_icon__k096v41: var(--dt-colors-icon-success-on-accent-default, #f1f4f4);
39
+ --vars_borderColor__k096v42: var(--dt-colors-border-success-accent, #2c6360);
40
+ }
41
+ .colorUtils_colorUtilsCSS_compound_2__k096v4g {
42
+ --vars_text__k096v40: var(--dt-colors-text-warning-on-accent-default, #272025);
43
+ --vars_icon__k096v41: var(--dt-colors-icon-warning-on-accent-default, #272025);
44
+ --vars_borderColor__k096v42: var(--dt-colors-border-warning-accent, #805100);
45
+ }
46
+ .colorUtils_colorUtilsCSS_compound_3__k096v4h {
47
+ --vars_text__k096v40: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
48
+ --vars_icon__k096v41: var(--dt-colors-icon-critical-on-accent-default, #f9f1f3);
49
+ --vars_borderColor__k096v42: var(--dt-colors-border-critical-accent, #b80031);
50
+ }
51
+ .colorUtils_colorUtilsCSS_compound_4__k096v4i {
52
+ --vars_text__k096v40: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
53
+ --vars_icon__k096v41: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
54
+ --vars_borderColor__k096v42: var(--dt-colors-border-neutral-accent, #545587);
55
+ }
56
+ .colorUtils_colorUtilsCSS_compound_5__k096v4j {
57
+ --vars_text__k096v40: var(--dt-colors-text-primary-disabled, #54558780);
58
+ --vars_icon__k096v41: var(--dt-colors-icon-primary-disabled, #54558780);
59
+ --vars_borderColor__k096v42: var(--dt-colors-border-primary-disabled, #d2d3e180);
60
+ }
61
+ .colorUtils_colorUtilsCSS_compound_6__k096v4k {
62
+ --vars_text__k096v40: var(--dt-colors-text-success-disabled, #54558780);
63
+ --vars_icon__k096v41: var(--dt-colors-icon-success-disabled, #54558780);
64
+ --vars_borderColor__k096v42: var(--dt-colors-border-success-disabled, #d2d3e180);
65
+ }
66
+ .colorUtils_colorUtilsCSS_compound_7__k096v4l {
67
+ --vars_text__k096v40: var(--dt-colors-text-warning-disabled, #54558780);
68
+ --vars_icon__k096v41: var(--dt-colors-icon-warning-disabled, #54558780);
69
+ --vars_borderColor__k096v42: var(--dt-colors-border-warning-disabled, #d2d3e180);
70
+ }
71
+ .colorUtils_colorUtilsCSS_compound_8__k096v4m {
72
+ --vars_text__k096v40: var(--dt-colors-text-critical-disabled, #54558780);
73
+ --vars_icon__k096v41: var(--dt-colors-icon-critical-disabled, #54558780);
74
+ --vars_borderColor__k096v42: var(--dt-colors-border-critical-disabled, #d2d3e180);
75
+ }
76
+ .colorUtils_colorUtilsCSS_compound_9__k096v4n {
77
+ --vars_text__k096v40: var(--dt-colors-text-neutral-disabled, #54558780);
78
+ --vars_icon__k096v41: var(--dt-colors-icon-neutral-disabled, #54558780);
79
+ --vars_borderColor__k096v42: var(--dt-colors-border-neutral-disabled, #d2d3e180);
80
+ }
@@ -0,0 +1,48 @@
1
+ declare const vars: {
2
+ text: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
3
+ icon: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
4
+ borderColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
5
+ };
6
+ export declare const colorUtilsCSS: import("@vanilla-extract/recipes").RuntimeFn<{
7
+ color: {
8
+ critical: {
9
+ vars: {
10
+ [x: string]: string;
11
+ };
12
+ };
13
+ neutral: {
14
+ vars: {
15
+ [x: string]: string;
16
+ };
17
+ };
18
+ primary: {
19
+ vars: {
20
+ [x: string]: string;
21
+ };
22
+ };
23
+ success: {
24
+ vars: {
25
+ [x: string]: string;
26
+ };
27
+ };
28
+ warning: {
29
+ vars: {
30
+ [x: string]: string;
31
+ };
32
+ };
33
+ onAccent: {
34
+ vars: {
35
+ [x: string]: string;
36
+ };
37
+ };
38
+ };
39
+ variant: {
40
+ default: {};
41
+ accent: {};
42
+ };
43
+ disabled: {
44
+ true: {};
45
+ false: {};
46
+ };
47
+ }>;
48
+ export { vars as colorUtilsVars };
@@ -0,0 +1,27 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var colorUtils_css_exports = {};
19
+ __export(colorUtils_css_exports, {
20
+ colorUtilsCSS: () => colorUtilsCSS,
21
+ colorUtilsVars: () => colorUtilsVars
22
+ });
23
+ module.exports = __toCommonJS(colorUtils_css_exports);
24
+ var import_colorUtils_css_ts_vanilla = require("./colorUtils.css");
25
+ var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
26
+ var colorUtilsCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "colorUtils__k096v43", variantClassNames: { color: { critical: "colorUtils_colorUtilsCSS_color_critical__k096v44", neutral: "colorUtils_colorUtilsCSS_color_neutral__k096v45", primary: "colorUtils_colorUtilsCSS_color_primary__k096v46", success: "colorUtils_colorUtilsCSS_color_success__k096v47", warning: "colorUtils_colorUtilsCSS_color_warning__k096v48", onAccent: "colorUtils_colorUtilsCSS_color_onAccent__k096v49" }, variant: { "default": "colorUtils_colorUtilsCSS_variant_default__k096v4a", accent: "colorUtils_colorUtilsCSS_variant_accent__k096v4b" }, disabled: { true: "colorUtils_colorUtilsCSS_disabled_true__k096v4c", false: "colorUtils_colorUtilsCSS_disabled_false__k096v4d" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "colorUtils_colorUtilsCSS_compound_0__k096v4e"], [{ color: "success", variant: "accent" }, "colorUtils_colorUtilsCSS_compound_1__k096v4f"], [{ color: "warning", variant: "accent" }, "colorUtils_colorUtilsCSS_compound_2__k096v4g"], [{ color: "critical", variant: "accent" }, "colorUtils_colorUtilsCSS_compound_3__k096v4h"], [{ color: "neutral", variant: "accent" }, "colorUtils_colorUtilsCSS_compound_4__k096v4i"], [{ color: "primary", disabled: true }, "colorUtils_colorUtilsCSS_compound_5__k096v4j"], [{ color: "success", disabled: true }, "colorUtils_colorUtilsCSS_compound_6__k096v4k"], [{ color: "warning", disabled: true }, "colorUtils_colorUtilsCSS_compound_7__k096v4l"], [{ color: "critical", disabled: true }, "colorUtils_colorUtilsCSS_compound_8__k096v4m"], [{ color: "neutral", disabled: true }, "colorUtils_colorUtilsCSS_compound_9__k096v4n"]] });
27
+ var colorUtilsVars = { text: "var(--vars_text__k096v40)", icon: "var(--vars_icon__k096v41)", borderColor: "var(--vars_borderColor__k096v42)" };
@@ -2,6 +2,6 @@
2
2
  * @internal
3
3
  *
4
4
  * Whether the code is currently executed in a browser
5
- * @see https://github.com/chakra-ui/chakra-ui/blob/main/packages/utils/src/dom.ts
5
+ * @see {@link https://github.com/chakra-ui/chakra-ui/blob/main/packages/utils/src/dom.ts}
6
6
  */
7
7
  export declare const isBrowser: boolean;
@@ -1,6 +1,6 @@
1
1
  /**
2
+ * Internal helper mapper type for mergeProps.
2
3
  * @internal
3
- * Internal helper mapper type for mergeProps
4
4
  */
5
5
  export type TupleTypes<T> = {
6
6
  [P in keyof T]: T[P];
@@ -8,23 +8,22 @@ export type TupleTypes<T> = {
8
8
  [key: number]: infer V;
9
9
  } ? NullToObject<V> : never;
10
10
  /**
11
+ * Internal helper mapper type for mergeProps.
11
12
  * @internal
12
- * Internal helper mapper type for mergeProps
13
13
  */
14
14
  export type NullToObject<T> = T extends null | undefined ? {} : T;
15
15
  /**
16
+ * Internal helper mapper type for mergeProps.
16
17
  * @internal
17
- * Internal helper mapper type for mergeProps
18
18
  */
19
19
  export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
20
20
  /**
21
- * @internal
22
- *
23
21
  * Merges multiple props objects together. Event handlers are chained,
24
22
  * classNames are combined, and ids are deduplicated - different ids
25
23
  * will trigger a side-effect and re-render components hooked up with `useId`.
26
24
  * For all other props, the last prop object overrides all previous ones.
27
25
  * @param args - Multiple sets of props to merge together.
26
+ * @internal
28
27
  */
29
28
  export declare function mergeProps<T extends ({
30
29
  [key: string]: any;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generate a random seed function based on the mulberry32 algorithm
3
+ * @internal
4
+ */
5
+ export declare function mulberry32(seed: number): () => number;