@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,24 @@
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 Link_css_exports = {};
19
+ __export(Link_css_exports, {
20
+ linkCSS: () => linkCSS
21
+ });
22
+ module.exports = __toCommonJS(Link_css_exports);
23
+ var import_Link_css_ts_vanilla = require("./Link.css");
24
+ var linkCSS = "Link_linkCSS__1ck42do0";
@@ -0,0 +1,16 @@
1
+ .List_listCSS__13d6w3n0 {
2
+ margin: 0;
3
+ padding-left: var(--dt-spacings-size-40, 40px);
4
+ }
5
+ .List_listCSS__13d6w3n0 .List_listCSS__13d6w3n0 {
6
+ margin-block: var(--dt-spacings-size-4, 4px);
7
+ padding-left: var(--dt-spacings-size-28, 28px);
8
+ }
9
+ .List_listItemCSS__13d6w3n1 {
10
+ position: relative;
11
+ overflow-wrap: break-word;
12
+ margin-block: var(--dt-spacings-size-2, 2px);
13
+ }
14
+ .List_listItemCSS__13d6w3n1::marker {
15
+ font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
16
+ }
@@ -0,0 +1,39 @@
1
+ import React from 'react';
2
+ import { type DataTestId } from '../../core/types/data-props.js';
3
+ import { type MaskingProps } from '../../core/types/masking-props.js';
4
+ import { type StylingProps } from '../../core/types/styling-props.js';
5
+ import { type WithChildren } from '../../core/types/with-children.js';
6
+ /**
7
+ * The props for the Link component.
8
+ * @public
9
+ */
10
+ export interface ListProps<TOrdered extends boolean = false> extends WithChildren, StylingProps, DataTestId, MaskingProps {
11
+ /**
12
+ * Whether the List is ordered or not. This changes whether numbers or bullets are used.
13
+ * @defaultValue false
14
+ */
15
+ ordered?: TOrdered;
16
+ /**
17
+ * Sets the text style for the List.
18
+ * @defaultValue 'base'
19
+ */
20
+ textStyle?: 'base' | 'base-emphasized' | 'small' | 'small-emphasized';
21
+ /**
22
+ * Sets the text style for the List.
23
+ * @defaultValue 'text'
24
+ */
25
+ fontStyle?: 'text' | 'code';
26
+ /**
27
+ * Sets the starting number of the first item in an ordered list.
28
+ * The value is always treated as an integer (floor).
29
+ * @defaultValue 1
30
+ */
31
+ start?: number;
32
+ }
33
+ /**
34
+ * @public
35
+ * The `List` component groups a set of related content in a list and can be arbitrarily nested.
36
+ * List items are preceded by either a consecutive number (for ordered lists) or a bullet point
37
+ * (for unordered lists).
38
+ */
39
+ export declare const List: <TOrdered extends boolean = false>(props: ListProps<TOrdered> & React.RefAttributes<TOrdered extends true ? HTMLOListElement : HTMLUListElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,109 @@
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 List_exports = {};
29
+ __export(List_exports, {
30
+ List: () => List
31
+ });
32
+ module.exports = __toCommonJS(List_exports);
33
+ var import_clsx = __toESM(require("clsx"));
34
+ var import_react = __toESM(require("react"));
35
+ var import_List_css = require("./List.sty.js");
36
+ var import_Text = require("../Text/Text.js");
37
+ function interleaveListItems(listItems) {
38
+ const items = [];
39
+ import_react.default.Children.forEach(listItems, (listItem) => {
40
+ if (import_react.default.isValidElement(listItem)) {
41
+ if (listItem.type === List) {
42
+ if (items.length === 0) {
43
+ items.push([listItem]);
44
+ } else {
45
+ items[items.length - 1].push(listItem);
46
+ }
47
+ } else {
48
+ items.push([listItem]);
49
+ }
50
+ }
51
+ });
52
+ return items.map((values, index) => {
53
+ const itemKey = `list-item-${getItemKey(values, index)}`;
54
+ return /* @__PURE__ */ import_react.default.createElement("li", { key: itemKey, className: import_List_css.listItemCSS }, values);
55
+ });
56
+ }
57
+ function getItemKey(values, index) {
58
+ const isArray = Array.isArray(values);
59
+ const value = isArray ? values?.[0] : values;
60
+ if (import_react.default.isValidElement(value)) {
61
+ if (value.key) {
62
+ return value.key;
63
+ } else if (value.props && value.props.children) {
64
+ return getItemKey(value.props.children, index);
65
+ }
66
+ return value;
67
+ }
68
+ if (value === void 0) {
69
+ return index;
70
+ }
71
+ return value;
72
+ }
73
+ const List = /* @__PURE__ */ (0, import_react.forwardRef)(
74
+ (props, ref) => {
75
+ const {
76
+ children,
77
+ ordered = false,
78
+ textStyle,
79
+ fontStyle,
80
+ start = 1,
81
+ "data-testid": dataTestId,
82
+ "data-dtrum-mask": dataDtrumMask,
83
+ "data-dtrum-allow": dataDtrumAllow,
84
+ className: consumerClassName,
85
+ style: consumerStyle,
86
+ ...remainingProps
87
+ } = props;
88
+ return /* @__PURE__ */ import_react.default.createElement(
89
+ import_Text.Text,
90
+ {
91
+ ref,
92
+ as: ordered ? "ol" : "ul",
93
+ ...ordered && {
94
+ start
95
+ },
96
+ textStyle,
97
+ fontStyle,
98
+ "data-testid": dataTestId,
99
+ "data-dtrum-mask": dataDtrumMask,
100
+ "data-dtrum-allow": dataDtrumAllow,
101
+ className: (0, import_clsx.default)(import_List_css.listCSS, consumerClassName),
102
+ style: consumerStyle,
103
+ ...remainingProps
104
+ },
105
+ interleaveListItems(children)
106
+ );
107
+ }
108
+ );
109
+ List.displayName = "List";
@@ -0,0 +1,2 @@
1
+ export declare const listCSS: string;
2
+ export declare const listItemCSS: string;
@@ -0,0 +1,26 @@
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 List_css_exports = {};
19
+ __export(List_css_exports, {
20
+ listCSS: () => listCSS,
21
+ listItemCSS: () => listItemCSS
22
+ });
23
+ module.exports = __toCommonJS(List_css_exports);
24
+ var import_List_css_ts_vanilla = require("./List.css");
25
+ var listCSS = "List_listCSS__13d6w3n0";
26
+ var listItemCSS = "List_listItemCSS__13d6w3n1";
@@ -0,0 +1,19 @@
1
+ .Paragraph_paragraphCSS__42lz6l0 {
2
+ margin-top: 0;
3
+ margin-bottom: 0;
4
+ overflow-wrap: break-word;
5
+ color: var(--dt-colors-text-neutral-default, #2b2a58);
6
+ font-style: normal;
7
+ }
8
+ .Paragraph_paragraphCSS_ellipsis_singleLine__42lz6l1 {
9
+ display: block;
10
+ white-space: nowrap;
11
+ text-overflow: ellipsis;
12
+ overflow: hidden;
13
+ }
14
+ .Paragraph_paragraphCSS_ellipsis_multiLine__42lz6l2 {
15
+ display: -webkit-box;
16
+ -webkit-line-clamp: var(--strato-ellipsis-line-clamp);
17
+ -webkit-box-orient: vertical;
18
+ overflow: hidden;
19
+ }
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { type DataTestId, type StylingProps, type WithChildren } from '../../core/index.js';
3
+ import type { DOMProps } from '../../core/types/dom.js';
4
+ import type { MaskingProps } from '../../core/types/masking-props.js';
5
+ /**
6
+ * The props for the Paragraph component.
7
+ * @public
8
+ * */
9
+ export interface ParagraphProps extends WithChildren, DOMProps, StylingProps, DataTestId, MaskingProps {
10
+ /**
11
+ * Limits the text to the given number of lines and adds ellipsis if the text would need more lines.
12
+ */
13
+ maxLines?: number;
14
+ }
15
+ /**
16
+ * @public
17
+ * The `Paragraph` component displays a block of text with the default text style and supports text truncation.
18
+ */
19
+ export declare const Paragraph: (props: ParagraphProps & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,77 @@
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 Paragraph_exports = {};
29
+ __export(Paragraph_exports, {
30
+ Paragraph: () => Paragraph
31
+ });
32
+ module.exports = __toCommonJS(Paragraph_exports);
33
+ var import_clsx = __toESM(require("clsx"));
34
+ var import_react = __toESM(require("react"));
35
+ var import_Paragraph_css = require("./Paragraph.sty.js");
36
+ var import_textStyle_css = require("../../styles/textStyle.sty.js");
37
+ const Paragraph = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
38
+ const {
39
+ children,
40
+ maxLines,
41
+ className: consumerClassName,
42
+ style: consumerStyle,
43
+ "data-testid": dataTestId,
44
+ "data-dtrum-mask": dataDtrumMask,
45
+ "data-dtrum-allow": dataDtrumAllow,
46
+ ...remainingProps
47
+ } = props;
48
+ let ellipsis;
49
+ if (maxLines === void 0 || maxLines === 0) {
50
+ ellipsis = void 0;
51
+ } else if (maxLines === 1) {
52
+ ellipsis = "singleLine";
53
+ } else {
54
+ ellipsis = "multiLine";
55
+ }
56
+ return /* @__PURE__ */ import_react.default.createElement(
57
+ "p",
58
+ {
59
+ ref,
60
+ "data-testid": dataTestId,
61
+ "data-dtrum-mask": dataDtrumMask,
62
+ "data-dtrum-allow": dataDtrumAllow,
63
+ className: (0, import_clsx.default)(
64
+ (0, import_Paragraph_css.paragraphCSS)({ ellipsis }),
65
+ (0, import_textStyle_css.textStyleCSS)(),
66
+ consumerClassName
67
+ ),
68
+ style: {
69
+ ...consumerStyle,
70
+ "--strato-ellipsis-line-clamp": maxLines
71
+ },
72
+ ...remainingProps
73
+ },
74
+ children
75
+ );
76
+ });
77
+ Paragraph.displayName = "Paragraph";
@@ -0,0 +1,16 @@
1
+ export declare const paragraphCSS: import("@vanilla-extract/recipes").RuntimeFn<{
2
+ ellipsis: {
3
+ singleLine: {
4
+ display: "block";
5
+ whiteSpace: "nowrap";
6
+ textOverflow: "ellipsis";
7
+ overflow: "hidden";
8
+ };
9
+ multiLine: {
10
+ display: "-webkit-box";
11
+ WebkitLineClamp: "var(--strato-ellipsis-line-clamp)";
12
+ WebkitBoxOrient: "vertical";
13
+ overflow: "hidden";
14
+ };
15
+ };
16
+ }>;
@@ -0,0 +1,25 @@
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 Paragraph_css_exports = {};
19
+ __export(Paragraph_css_exports, {
20
+ paragraphCSS: () => paragraphCSS
21
+ });
22
+ module.exports = __toCommonJS(Paragraph_css_exports);
23
+ var import_Paragraph_css_ts_vanilla = require("./Paragraph.css");
24
+ var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
25
+ var paragraphCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "Paragraph_paragraphCSS__42lz6l0", variantClassNames: { ellipsis: { singleLine: "Paragraph_paragraphCSS_ellipsis_singleLine__42lz6l1", multiLine: "Paragraph_paragraphCSS_ellipsis_multiLine__42lz6l2" } }, defaultVariants: {}, compoundVariants: [] });
@@ -0,0 +1,5 @@
1
+ .Strikethrough_strikethroughCSS__1178y080 {
2
+ text-decoration: line-through;
3
+ text-decoration-style: solid;
4
+ overflow-wrap: break-word;
5
+ }
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { type DataTestId, type StylingProps, type WithChildren } from '../../core/index.js';
3
+ import type { MaskingProps } from '../../core/types/masking-props.js';
4
+ /**
5
+ * The props for the Strikethrough component.
6
+ * @public
7
+ * */
8
+ export interface StrikethroughProps extends WithChildren, StylingProps, DataTestId, MaskingProps {
9
+ }
10
+ /**
11
+ * @public
12
+ * The `Strikethrough` component renders text with a line through it. Use it to
13
+ * represent things that are no longer relevant or accurate.
14
+ */
15
+ export declare const Strikethrough: (props: StrikethroughProps & React.RefAttributes<HTMLElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,60 @@
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 Strikethrough_exports = {};
29
+ __export(Strikethrough_exports, {
30
+ Strikethrough: () => Strikethrough
31
+ });
32
+ module.exports = __toCommonJS(Strikethrough_exports);
33
+ var import_clsx = __toESM(require("clsx"));
34
+ var import_react = __toESM(require("react"));
35
+ var import_Strikethrough_css = require("./Strikethrough.sty.js");
36
+ const Strikethrough = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
37
+ const {
38
+ children,
39
+ "data-testid": dataTestId,
40
+ "data-dtrum-mask": dataDtrumMask,
41
+ "data-dtrum-allow": dataDtrumAllow,
42
+ className: consumerClassName,
43
+ style: consumerStyle,
44
+ ...remainingProps
45
+ } = props;
46
+ return /* @__PURE__ */ import_react.default.createElement(
47
+ "s",
48
+ {
49
+ ref,
50
+ "data-testid": dataTestId,
51
+ "data-dtrum-mask": dataDtrumMask,
52
+ "data-dtrum-allow": dataDtrumAllow,
53
+ className: (0, import_clsx.default)(import_Strikethrough_css.strikethroughCSS, consumerClassName),
54
+ style: consumerStyle,
55
+ ...remainingProps
56
+ },
57
+ children
58
+ );
59
+ });
60
+ Strikethrough.displayName = "Strikethrough";
@@ -0,0 +1 @@
1
+ export declare const strikethroughCSS: string;
@@ -0,0 +1,24 @@
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 Strikethrough_css_exports = {};
19
+ __export(Strikethrough_css_exports, {
20
+ strikethroughCSS: () => strikethroughCSS
21
+ });
22
+ module.exports = __toCommonJS(Strikethrough_css_exports);
23
+ var import_Strikethrough_css_ts_vanilla = require("./Strikethrough.css");
24
+ var strikethroughCSS = "Strikethrough_strikethroughCSS__1178y080";
@@ -0,0 +1,4 @@
1
+ .Strong_strongCSS__1sqovlt0 {
2
+ font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
3
+ overflow-wrap: break-word;
4
+ }
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type DataTestId, type StylingProps, type WithChildren } from '../../core/index.js';
3
+ import type { MaskingProps } from '../../core/types/masking-props.js';
4
+ /**
5
+ * The props for the Strong component.
6
+ * @public
7
+ * */
8
+ export interface StrongProps extends WithChildren, StylingProps, DataTestId, MaskingProps {
9
+ }
10
+ /**
11
+ * @public
12
+ * Use the `Strong` component to render text in bold type to emphasize it.
13
+ */
14
+ export declare const Strong: (props: StrongProps & React.RefAttributes<HTMLElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,62 @@
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 Strong_exports = {};
29
+ __export(Strong_exports, {
30
+ Strong: () => Strong
31
+ });
32
+ module.exports = __toCommonJS(Strong_exports);
33
+ var import_clsx = __toESM(require("clsx"));
34
+ var import_react = __toESM(require("react"));
35
+ var import_Strong_css = require("./Strong.sty.js");
36
+ const Strong = /* @__PURE__ */ (0, import_react.forwardRef)(
37
+ (props, ref) => {
38
+ const {
39
+ children,
40
+ "data-testid": dataTestId,
41
+ "data-dtrum-mask": dataDtrumMask,
42
+ "data-dtrum-allow": dataDtrumAllow,
43
+ className: consumerClassName,
44
+ style: consumerStyle,
45
+ ...remainingProps
46
+ } = props;
47
+ return /* @__PURE__ */ import_react.default.createElement(
48
+ "strong",
49
+ {
50
+ ref,
51
+ "data-testid": dataTestId,
52
+ "data-dtrum-mask": dataDtrumMask,
53
+ "data-dtrum-allow": dataDtrumAllow,
54
+ className: (0, import_clsx.default)(import_Strong_css.strongCSS, consumerClassName),
55
+ style: consumerStyle,
56
+ ...remainingProps
57
+ },
58
+ children
59
+ );
60
+ }
61
+ );
62
+ Strong.displayName = "Strong";
@@ -0,0 +1 @@
1
+ export declare const strongCSS: string;
@@ -0,0 +1,24 @@
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 Strong_css_exports = {};
19
+ __export(Strong_css_exports, {
20
+ strongCSS: () => strongCSS
21
+ });
22
+ module.exports = __toCommonJS(Strong_css_exports);
23
+ var import_Strong_css_ts_vanilla = require("./Strong.css");
24
+ var strongCSS = "Strong_strongCSS__1sqovlt0";
@@ -0,0 +1,18 @@
1
+ .Text_textCSS__ty6wu50 {
2
+ margin-top: 0;
3
+ margin-bottom: 0;
4
+ min-width: 0;
5
+ overflow-wrap: break-word;
6
+ }
7
+ .Text_textCSS_ellipsis_singleLine__ty6wu51 {
8
+ display: block;
9
+ white-space: nowrap;
10
+ text-overflow: ellipsis;
11
+ overflow: hidden;
12
+ }
13
+ .Text_textCSS_ellipsis_multiLine__ty6wu52 {
14
+ display: -webkit-box;
15
+ -webkit-line-clamp: var(--strato-ellipsis-line-clamp);
16
+ -webkit-box-orient: vertical;
17
+ overflow: hidden;
18
+ }
@@ -0,0 +1,26 @@
1
+ import { type ElementType, type ReactElement } from 'react';
2
+ import type { AriaLabelingProps } from '../../core/types/a11y-props.js';
3
+ import type { DataTestId } from '../../core/types/data-props.js';
4
+ import type { DOMProps } from '../../core/types/dom.js';
5
+ import type { MaskingProps } from '../../core/types/masking-props.js';
6
+ import type { PolymorphicComponentProps } from '../../core/types/polymorph.js';
7
+ import type { StylingProps } from '../../core/types/styling-props.js';
8
+ import type { WithChildren } from '../../core/types/with-children.js';
9
+ /**
10
+ * @public
11
+ * The props for the text component without any props coming from polymorphing. */
12
+ export interface TextOwnProps extends WithChildren, DOMProps, AriaLabelingProps, StylingProps, DataTestId, MaskingProps {
13
+ /** Sets the text style. Variants include "base", "base-emphasized", etc. */
14
+ textStyle?: 'base' | 'base-emphasized' | 'small' | 'small-emphasized';
15
+ /** Sets the font style. Can either be "text" or "code" */
16
+ fontStyle?: 'text' | 'code';
17
+ }
18
+ /**
19
+ * @public
20
+ * Combined props for the text component - polymorphing and own props. */
21
+ export type TextProps<E extends ElementType> = PolymorphicComponentProps<E, TextOwnProps>;
22
+ /**
23
+ * @public
24
+ * Use the `Text` component for text that is rendered without any semantic markup.
25
+ */
26
+ export declare const Text: <E extends ElementType = 'span'>(props: TextProps<E>) => ReactElement | null;