@dynatrace/strato-components 0.84.21 → 0.84.42

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 (230) hide show
  1. package/core/components/app-root/AppRoot.d.ts +9 -4
  2. package/core/components/app-root/AppRoot.js +6 -2
  3. package/core/contexts/FocusContext.d.ts +1 -1
  4. package/core/hooks/useCurrentTheme.d.ts +4 -1
  5. package/core/hooks/useFontsUpdated.d.ts +9 -0
  6. package/core/hooks/useFontsUpdated.js +51 -0
  7. package/core/hooks/useMergeRefs.d.ts +7 -0
  8. package/core/hooks/useMergeRefs.js +34 -0
  9. package/core/index.d.ts +5 -0
  10. package/core/styles/focusRing.css +88 -0
  11. package/core/styles/focusRing.sty.d.ts +96 -0
  12. package/core/styles/focusRing.sty.js +27 -0
  13. package/core/styles/useFocusRing.d.ts +49 -0
  14. package/core/styles/useFocusRing.js +83 -0
  15. package/core/types/a11y-props.d.ts +19 -0
  16. package/core/types/a11y-props.js +15 -0
  17. package/core/types/data-props.d.ts +1 -0
  18. package/core/types/dom.d.ts +19 -0
  19. package/core/types/dom.js +15 -0
  20. package/core/types/focusable-element.d.ts +5 -0
  21. package/core/types/focusable-element.js +15 -0
  22. package/core/types/heading.d.ts +9 -0
  23. package/core/types/heading.js +15 -0
  24. package/core/types/masking-props.d.ts +9 -0
  25. package/core/types/masking-props.js +15 -0
  26. package/core/types/polymorph.d.ts +25 -0
  27. package/core/types/polymorph.js +15 -0
  28. package/core/types/styling-props.d.ts +3 -2
  29. package/core/types/with-children.d.ts +4 -1
  30. package/core/utils/colorUtils.css +80 -0
  31. package/core/utils/colorUtils.sty.d.ts +48 -0
  32. package/core/utils/colorUtils.sty.js +27 -0
  33. package/esm/core/components/app-root/AppRoot.js +6 -2
  34. package/esm/core/components/app-root/AppRoot.js.map +2 -2
  35. package/esm/core/contexts/FocusContext.js.map +1 -1
  36. package/esm/core/hooks/useCurrentTheme.js.map +2 -2
  37. package/esm/core/hooks/useFontsUpdated.js +33 -0
  38. package/esm/core/hooks/useFontsUpdated.js.map +7 -0
  39. package/esm/core/hooks/useMergeRefs.js +16 -0
  40. package/esm/core/hooks/useMergeRefs.js.map +7 -0
  41. package/esm/core/index.js.map +2 -2
  42. package/esm/core/styles/focusRing.css +88 -0
  43. package/esm/core/styles/focusRing.sty.js +9 -0
  44. package/esm/core/styles/focusRing.sty.js.map +7 -0
  45. package/esm/core/styles/useFocusRing.js +69 -0
  46. package/esm/core/styles/useFocusRing.js.map +7 -0
  47. package/esm/core/types/a11y-props.js +1 -0
  48. package/esm/core/types/a11y-props.js.map +7 -0
  49. package/esm/core/types/dom.js +1 -0
  50. package/esm/core/types/dom.js.map +7 -0
  51. package/esm/core/types/focusable-element.js +1 -0
  52. package/esm/core/types/focusable-element.js.map +7 -0
  53. package/esm/core/types/heading.js +1 -0
  54. package/esm/core/types/heading.js.map +7 -0
  55. package/esm/core/types/masking-props.js +1 -0
  56. package/esm/core/types/masking-props.js.map +7 -0
  57. package/esm/core/types/polymorph.js +1 -0
  58. package/esm/core/types/polymorph.js.map +7 -0
  59. package/esm/core/utils/colorUtils.css +80 -0
  60. package/esm/core/utils/colorUtils.sty.js +9 -0
  61. package/esm/core/utils/colorUtils.sty.js.map +7 -0
  62. package/esm/index.js +2 -0
  63. package/esm/index.js.map +2 -2
  64. package/esm/layouts/Divider/Divider.css +23 -0
  65. package/esm/layouts/Divider/Divider.js +39 -0
  66. package/esm/layouts/Divider/Divider.js.map +7 -0
  67. package/esm/layouts/Divider/Divider.sty.js +8 -0
  68. package/esm/layouts/Divider/Divider.sty.js.map +7 -0
  69. package/esm/layouts/index.js +5 -0
  70. package/esm/layouts/index.js.map +7 -0
  71. package/esm/styles/textStyle.css +64 -0
  72. package/esm/styles/textStyle.sty.js +7 -0
  73. package/esm/styles/textStyle.sty.js.map +7 -0
  74. package/esm/typography/BlockQuote/Blockquote.css +17 -0
  75. package/esm/typography/BlockQuote/Blockquote.js +34 -0
  76. package/esm/typography/BlockQuote/Blockquote.js.map +7 -0
  77. package/esm/typography/BlockQuote/Blockquote.sty.js +6 -0
  78. package/esm/typography/BlockQuote/Blockquote.sty.js.map +7 -0
  79. package/esm/typography/Code/Code.css +16 -0
  80. package/esm/typography/Code/Code.js +34 -0
  81. package/esm/typography/Code/Code.js.map +7 -0
  82. package/esm/typography/Code/Code.sty.js +6 -0
  83. package/esm/typography/Code/Code.sty.js.map +7 -0
  84. package/esm/typography/Emphasis/Emphasis.css +4 -0
  85. package/esm/typography/Emphasis/Emphasis.js +34 -0
  86. package/esm/typography/Emphasis/Emphasis.js.map +7 -0
  87. package/esm/typography/Emphasis/Emphasis.sty.js +6 -0
  88. package/esm/typography/Emphasis/Emphasis.sty.js.map +7 -0
  89. package/esm/typography/ExternalLink/ExternalLink.css +28 -0
  90. package/esm/typography/ExternalLink/ExternalLink.js +56 -0
  91. package/esm/typography/ExternalLink/ExternalLink.js.map +7 -0
  92. package/esm/typography/ExternalLink/ExternalLink.sty.js +6 -0
  93. package/esm/typography/ExternalLink/ExternalLink.sty.js.map +7 -0
  94. package/esm/typography/Heading/Heading.css +54 -0
  95. package/esm/typography/Heading/Heading.js +36 -0
  96. package/esm/typography/Heading/Heading.js.map +7 -0
  97. package/esm/typography/Heading/Heading.sty.js +7 -0
  98. package/esm/typography/Heading/Heading.sty.js.map +7 -0
  99. package/esm/typography/Highlight/Highlight.css +4 -0
  100. package/esm/typography/Highlight/Highlight.js +111 -0
  101. package/esm/typography/Highlight/Highlight.js.map +7 -0
  102. package/esm/typography/Highlight/Highlight.sty.js +6 -0
  103. package/esm/typography/Highlight/Highlight.sty.js.map +7 -0
  104. package/esm/typography/Link/Link.css +15 -0
  105. package/esm/typography/Link/Link.js +49 -0
  106. package/esm/typography/Link/Link.js.map +7 -0
  107. package/esm/typography/Link/Link.sty.js +6 -0
  108. package/esm/typography/Link/Link.sty.js.map +7 -0
  109. package/esm/typography/List/List.css +16 -0
  110. package/esm/typography/List/List.js +81 -0
  111. package/esm/typography/List/List.js.map +7 -0
  112. package/esm/typography/List/List.sty.js +8 -0
  113. package/esm/typography/List/List.sty.js.map +7 -0
  114. package/esm/typography/Paragraph/Paragraph.css +19 -0
  115. package/esm/typography/Paragraph/Paragraph.js +49 -0
  116. package/esm/typography/Paragraph/Paragraph.js.map +7 -0
  117. package/esm/typography/Paragraph/Paragraph.sty.js +7 -0
  118. package/esm/typography/Paragraph/Paragraph.sty.js.map +7 -0
  119. package/esm/typography/Strikethrough/Strikethrough.css +5 -0
  120. package/esm/typography/Strikethrough/Strikethrough.js +32 -0
  121. package/esm/typography/Strikethrough/Strikethrough.js.map +7 -0
  122. package/esm/typography/Strikethrough/Strikethrough.sty.js +6 -0
  123. package/esm/typography/Strikethrough/Strikethrough.sty.js.map +7 -0
  124. package/esm/typography/Strong/Strong.css +4 -0
  125. package/esm/typography/Strong/Strong.js +34 -0
  126. package/esm/typography/Strong/Strong.js.map +7 -0
  127. package/esm/typography/Strong/Strong.sty.js +6 -0
  128. package/esm/typography/Strong/Strong.sty.js.map +7 -0
  129. package/esm/typography/Text/Text.css +18 -0
  130. package/esm/typography/Text/Text.js +43 -0
  131. package/esm/typography/Text/Text.js.map +7 -0
  132. package/esm/typography/Text/Text.sty.js +7 -0
  133. package/esm/typography/Text/Text.sty.js.map +7 -0
  134. package/esm/typography/TextEllipsis/TextEllipsis.css +22 -0
  135. package/esm/typography/TextEllipsis/TextEllipsis.js +143 -0
  136. package/esm/typography/TextEllipsis/TextEllipsis.js.map +7 -0
  137. package/esm/typography/TextEllipsis/TextEllipsis.sty.js +7 -0
  138. package/esm/typography/TextEllipsis/TextEllipsis.sty.js.map +7 -0
  139. package/esm/typography/index.js +43 -0
  140. package/esm/typography/index.js.map +7 -0
  141. package/esm/typography/utils.js +101 -0
  142. package/esm/typography/utils.js.map +7 -0
  143. package/index.d.ts +2 -0
  144. package/index.js +2 -0
  145. package/lang/en.json +6 -0
  146. package/lang/uncompiled/en.json +6 -1
  147. package/layouts/Divider/Divider.css +23 -0
  148. package/layouts/Divider/Divider.d.ts +39 -0
  149. package/layouts/Divider/Divider.js +67 -0
  150. package/layouts/Divider/Divider.sty.d.ts +16 -0
  151. package/layouts/Divider/Divider.sty.js +26 -0
  152. package/layouts/index.d.ts +2 -0
  153. package/layouts/index.js +23 -0
  154. package/package.json +17 -2
  155. package/styles/textStyle.css +64 -0
  156. package/styles/textStyle.sty.d.ts +12 -0
  157. package/styles/textStyle.sty.js +25 -0
  158. package/testing/custom-render.d.ts +1 -1
  159. package/testing/mocks/resize-observer-mock.d.ts +1 -1
  160. package/testing/mocks/text-ellipsis-mock.d.ts +1 -1
  161. package/testing/mocks/text-ellipsis-mock.js +8 -3
  162. package/typography/BlockQuote/Blockquote.css +17 -0
  163. package/typography/BlockQuote/Blockquote.d.ts +19 -0
  164. package/typography/BlockQuote/Blockquote.js +62 -0
  165. package/typography/BlockQuote/Blockquote.sty.d.ts +1 -0
  166. package/typography/BlockQuote/Blockquote.sty.js +24 -0
  167. package/typography/Code/Code.css +16 -0
  168. package/typography/Code/Code.d.ts +17 -0
  169. package/typography/Code/Code.js +62 -0
  170. package/typography/Code/Code.sty.d.ts +1 -0
  171. package/typography/Code/Code.sty.js +24 -0
  172. package/typography/Emphasis/Emphasis.css +4 -0
  173. package/typography/Emphasis/Emphasis.d.ts +14 -0
  174. package/typography/Emphasis/Emphasis.js +62 -0
  175. package/typography/Emphasis/Emphasis.sty.d.ts +1 -0
  176. package/typography/Emphasis/Emphasis.sty.js +24 -0
  177. package/typography/ExternalLink/ExternalLink.css +28 -0
  178. package/typography/ExternalLink/ExternalLink.d.ts +21 -0
  179. package/typography/ExternalLink/ExternalLink.js +82 -0
  180. package/typography/ExternalLink/ExternalLink.sty.d.ts +1 -0
  181. package/typography/ExternalLink/ExternalLink.sty.js +24 -0
  182. package/typography/Heading/Heading.css +54 -0
  183. package/typography/Heading/Heading.d.ts +24 -0
  184. package/typography/Heading/Heading.js +64 -0
  185. package/typography/Heading/Heading.sty.d.ts +52 -0
  186. package/typography/Heading/Heading.sty.js +25 -0
  187. package/typography/Highlight/Highlight.css +4 -0
  188. package/typography/Highlight/Highlight.d.ts +27 -0
  189. package/typography/Highlight/Highlight.js +139 -0
  190. package/typography/Highlight/Highlight.sty.d.ts +1 -0
  191. package/typography/Highlight/Highlight.sty.js +24 -0
  192. package/typography/Link/Link.css +15 -0
  193. package/typography/Link/Link.d.ts +17 -0
  194. package/typography/Link/Link.js +75 -0
  195. package/typography/Link/Link.sty.d.ts +1 -0
  196. package/typography/Link/Link.sty.js +24 -0
  197. package/typography/List/List.css +16 -0
  198. package/typography/List/List.d.ts +39 -0
  199. package/typography/List/List.js +109 -0
  200. package/typography/List/List.sty.d.ts +2 -0
  201. package/typography/List/List.sty.js +26 -0
  202. package/typography/Paragraph/Paragraph.css +19 -0
  203. package/typography/Paragraph/Paragraph.d.ts +19 -0
  204. package/typography/Paragraph/Paragraph.js +77 -0
  205. package/typography/Paragraph/Paragraph.sty.d.ts +16 -0
  206. package/typography/Paragraph/Paragraph.sty.js +25 -0
  207. package/typography/Strikethrough/Strikethrough.css +5 -0
  208. package/typography/Strikethrough/Strikethrough.d.ts +15 -0
  209. package/typography/Strikethrough/Strikethrough.js +60 -0
  210. package/typography/Strikethrough/Strikethrough.sty.d.ts +1 -0
  211. package/typography/Strikethrough/Strikethrough.sty.js +24 -0
  212. package/typography/Strong/Strong.css +4 -0
  213. package/typography/Strong/Strong.d.ts +14 -0
  214. package/typography/Strong/Strong.js +62 -0
  215. package/typography/Strong/Strong.sty.d.ts +1 -0
  216. package/typography/Strong/Strong.sty.js +24 -0
  217. package/typography/Text/Text.css +18 -0
  218. package/typography/Text/Text.d.ts +26 -0
  219. package/typography/Text/Text.js +71 -0
  220. package/typography/Text/Text.sty.d.ts +16 -0
  221. package/typography/Text/Text.sty.js +25 -0
  222. package/typography/TextEllipsis/TextEllipsis.css +22 -0
  223. package/typography/TextEllipsis/TextEllipsis.d.ts +32 -0
  224. package/typography/TextEllipsis/TextEllipsis.js +167 -0
  225. package/typography/TextEllipsis/TextEllipsis.sty.d.ts +15 -0
  226. package/typography/TextEllipsis/TextEllipsis.sty.js +25 -0
  227. package/typography/index.d.ts +28 -0
  228. package/typography/index.js +54 -0
  229. package/typography/utils.d.ts +52 -0
  230. package/typography/utils.js +119 -0
@@ -0,0 +1,69 @@
1
+ import {
2
+ useCallback,
3
+ useEffect,
4
+ useState
5
+ } from "react";
6
+ import { focusRingCSS, focusRingFocusWithinCSS } from "./focusRing.sty.js";
7
+ import { _useFocusContext } from "../index.js";
8
+ const variants = [
9
+ "neutral",
10
+ "primary",
11
+ "success",
12
+ "warning",
13
+ "critical",
14
+ "onAccent"
15
+ ];
16
+ function useFocusRing(props = {}) {
17
+ const {
18
+ variant = "neutral",
19
+ ignoreModality = false,
20
+ isMinimal = false,
21
+ focusWithin = false,
22
+ disabled = false
23
+ } = props;
24
+ const [isFocused, setIsFocused] = useState(false);
25
+ const { modality } = _useFocusContext();
26
+ useEffect(() => {
27
+ if (disabled) {
28
+ setIsFocused(false);
29
+ }
30
+ }, [disabled]);
31
+ const onBlur = useCallback((e) => {
32
+ if (e.currentTarget === e.target) {
33
+ setIsFocused(false);
34
+ }
35
+ }, []);
36
+ const onFocus = useCallback((e) => {
37
+ if (e.currentTarget === e.target) {
38
+ setIsFocused(true);
39
+ }
40
+ }, []);
41
+ const focusProps = {
42
+ onFocus,
43
+ onBlur
44
+ };
45
+ if ((ignoreModality || modality === "keyboard") && isFocused || focusWithin) {
46
+ if (isMinimal) {
47
+ return {
48
+ focusClassName: focusWithin ? focusRingFocusWithinCSS({ minimal: true, variant }) : focusRingCSS({ minimal: true, variant }),
49
+ isFocusVisible: !focusWithin,
50
+ focusProps
51
+ };
52
+ }
53
+ return {
54
+ focusClassName: focusWithin ? focusRingFocusWithinCSS({ minimal: false, variant }) : focusRingCSS({ minimal: false, variant }),
55
+ isFocusVisible: !focusWithin,
56
+ focusProps
57
+ };
58
+ }
59
+ return {
60
+ focusClassName: focusWithin ? focusRingFocusWithinCSS() : focusRingCSS(),
61
+ isFocusVisible: false,
62
+ focusProps
63
+ };
64
+ }
65
+ export {
66
+ useFocusRing,
67
+ variants
68
+ };
69
+ //# sourceMappingURL=useFocusRing.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/core/styles/useFocusRing.ts"],
4
+ "sourcesContent": ["import {\n FocusEvent,\n FocusEventHandler,\n useCallback,\n useEffect,\n useState,\n} from 'react';\n\nimport { focusRingCSS, focusRingFocusWithinCSS } from './focusRing.sty.js';\nimport { _useFocusContext } from '../index.js';\n\nexport type Modality = 'keyboard' | 'pointer' | 'touch' | 'unknown';\n\n/** @internal */\nexport const variants = [\n 'neutral',\n 'primary',\n 'success',\n 'warning',\n 'critical',\n 'onAccent',\n] as const;\n/** @internal */\nexport type VariantType = (typeof variants)[number];\n/** @internal */\nexport type UseFocusRingProps = {\n /**\n * A minimal focus outline is available for smaller content elements like links. This variant is applied when set to true.\n * @defaultValue false\n */\n isMinimal?: boolean;\n\n /**\n * 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).\n * @defaultValue false\n */\n ignoreModality?: boolean;\n\n /**\n * The styling variant of the element.\n * @defaultValue neutral\n */\n variant?: VariantType;\n\n /**\n * Apply the focus ring styling if an embedded element gains the focus\n */\n focusWithin?: boolean;\n\n /**\n * Whether the element is disabled. If disabled changes to true, the focus will be removed.\n */\n disabled?: boolean;\n};\n\nexport type FocusRingProps = {\n /** The focus styles that depend on modality. */\n focusClassName: string;\n /** Focus handlers used to manage the focus state. Must be applied to the element that receives the focus.*/\n focusProps: {\n onFocus: (e: FocusEvent) => void;\n onBlur: (e: FocusEvent) => void;\n };\n /** Whether or not the element got focus via keyboard. */\n isFocusVisible: boolean;\n};\n\n/**\n * Custom hook used to determine focus styling depending on modality.\n * Returns the css classes (vanilla) that can be applied to the component in order to show the correct focus outline.\n * @internal\n */\nexport function useFocusRing(props: UseFocusRingProps = {}): FocusRingProps {\n const {\n variant = 'neutral',\n ignoreModality = false,\n isMinimal = false,\n focusWithin = false,\n disabled = false,\n } = props;\n const [isFocused, setIsFocused] = useState(false);\n const { modality } = _useFocusContext();\n\n useEffect(() => {\n if (disabled) {\n setIsFocused(false);\n }\n }, [disabled]);\n\n const onBlur = useCallback<FocusEventHandler>((e) => {\n // trigger only when the self element is unfocused (stopPropagation)\n if (e.currentTarget === e.target) {\n setIsFocused(false);\n }\n }, []);\n\n const onFocus = useCallback<FocusEventHandler>((e) => {\n // trigger only when the self element is focused (stopPropagation)\n if (e.currentTarget === e.target) {\n setIsFocused(true);\n }\n }, []);\n\n const focusProps = {\n onFocus,\n onBlur,\n };\n\n if (\n ((ignoreModality || modality === 'keyboard') && isFocused) ||\n focusWithin\n ) {\n if (isMinimal) {\n return {\n focusClassName: focusWithin\n ? focusRingFocusWithinCSS({ minimal: true, variant })\n : focusRingCSS({ minimal: true, variant }),\n isFocusVisible: !focusWithin,\n focusProps,\n };\n }\n\n return {\n focusClassName: focusWithin\n ? focusRingFocusWithinCSS({ minimal: false, variant })\n : focusRingCSS({ minimal: false, variant }),\n isFocusVisible: !focusWithin,\n focusProps,\n };\n }\n\n return {\n focusClassName: focusWithin ? focusRingFocusWithinCSS() : focusRingCSS(),\n isFocusVisible: false,\n focusProps,\n };\n}\n"],
5
+ "mappings": "AAAA;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,cAAc,+BAA+B;AACtD,SAAS,wBAAwB;AAK1B,MAAM,WAAW;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAmDO,SAAS,aAAa,QAA2B,CAAC,GAAmB;AAC1E,QAAM;AAAA,IACJ,UAAU;AAAA,IACV,iBAAiB;AAAA,IACjB,YAAY;AAAA,IACZ,cAAc;AAAA,IACd,WAAW;AAAA,EACb,IAAI;AACJ,QAAM,CAAC,WAAW,YAAY,IAAI,SAAS,KAAK;AAChD,QAAM,EAAE,SAAS,IAAI,iBAAiB;AAEtC,YAAU,MAAM;AACd,QAAI,UAAU;AACZ,mBAAa,KAAK;AAAA,IACpB;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AAEb,QAAM,SAAS,YAA+B,CAAC,MAAM;AAEnD,QAAI,EAAE,kBAAkB,EAAE,QAAQ;AAChC,mBAAa,KAAK;AAAA,IACpB;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,QAAM,UAAU,YAA+B,CAAC,MAAM;AAEpD,QAAI,EAAE,kBAAkB,EAAE,QAAQ;AAChC,mBAAa,IAAI;AAAA,IACnB;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,QAAM,aAAa;AAAA,IACjB;AAAA,IACA;AAAA,EACF;AAEA,OACI,kBAAkB,aAAa,eAAe,aAChD,aACA;AACA,QAAI,WAAW;AACb,aAAO;AAAA,QACL,gBAAgB,cACZ,wBAAwB,EAAE,SAAS,MAAM,QAAQ,CAAC,IAClD,aAAa,EAAE,SAAS,MAAM,QAAQ,CAAC;AAAA,QAC3C,gBAAgB,CAAC;AAAA,QACjB;AAAA,MACF;AAAA,IACF;AAEA,WAAO;AAAA,MACL,gBAAgB,cACZ,wBAAwB,EAAE,SAAS,OAAO,QAAQ,CAAC,IACnD,aAAa,EAAE,SAAS,OAAO,QAAQ,CAAC;AAAA,MAC5C,gBAAgB,CAAC;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AAAA,IACL,gBAAgB,cAAc,wBAAwB,IAAI,aAAa;AAAA,IACvE,gBAAgB;AAAA,IAChB;AAAA,EACF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=a11y-props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=dom.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=focusable-element.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=heading.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=masking-props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=polymorph.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -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,9 @@
1
+ import "./colorUtils.css";
2
+ import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
3
+ var colorUtilsCSS = _7a468({ 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"]] });
4
+ var colorUtilsVars = { text: "var(--vars_text__k096v40)", icon: "var(--vars_icon__k096v41)", borderColor: "var(--vars_borderColor__k096v42)" };
5
+ export {
6
+ colorUtilsCSS,
7
+ colorUtilsVars
8
+ };
9
+ //# sourceMappingURL=colorUtils.sty.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/core/utils/colorUtils.css.ts"],
4
+ "sourcesContent": ["import './colorUtils.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var colorUtilsCSS = _7a468({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']]});\nexport var colorUtilsVars = {text:'var(--vars_text__k096v40)',icon:'var(--vars_icon__k096v41)',borderColor:'var(--vars_borderColor__k096v42)'};"],
5
+ "mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,gBAAgB,OAAO,EAAC,kBAAiB,uBAAsB,mBAAkB,EAAC,OAAM,EAAC,UAAS,oDAAmD,SAAQ,mDAAkD,SAAQ,mDAAkD,SAAQ,mDAAkD,SAAQ,mDAAkD,UAAS,mDAAkD,GAAE,SAAQ,EAAC,WAAU,qDAAoD,QAAO,mDAAkD,GAAE,UAAS,EAAC,MAAK,mDAAkD,OAAM,mDAAkD,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,8CAA8C,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,8CAA8C,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,8CAA8C,GAAE,CAAC,EAAC,OAAM,YAAW,SAAQ,SAAQ,GAAE,8CAA8C,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,8CAA8C,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,8CAA8C,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,8CAA8C,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,8CAA8C,GAAE,CAAC,EAAC,OAAM,YAAW,UAAS,KAAI,GAAE,8CAA8C,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,8CAA8C,CAAC,EAAC,CAAC;AAC7hD,IAAI,iBAAiB,EAAC,MAAK,6BAA4B,MAAK,6BAA4B,aAAY,mCAAkC;",
6
+ "names": []
7
+ }
package/esm/index.js CHANGED
@@ -1,2 +1,4 @@
1
1
  export * from "./core/index.js";
2
+ export * from "./layouts/index.js";
3
+ export * from "./typography/index.js";
2
4
  //# sourceMappingURL=index.js.map
package/esm/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts"],
4
- "sourcesContent": ["export * from './core/index.js';\n"],
5
- "mappings": "AAAA,cAAc;",
4
+ "sourcesContent": ["export * from './core/index.js';\nexport * from './layouts/index.js';\nexport * from './typography/index.js';\n"],
5
+ "mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,23 @@
1
+ .Divider_dividerCSS__1ljcfp90 {
2
+ border: none;
3
+ margin: 0;
4
+ overflow-wrap: break-word;
5
+ background-color: var(--vars_borderColor__k096v42);
6
+ }
7
+ .Divider_dividerCSS_orientation_horizontal__1ljcfp91 {
8
+ width: 100%;
9
+ height: var(--dt-borders-width-default, 1px);
10
+ }
11
+ .Divider_dividerCSS_orientation_vertical__1ljcfp92 {
12
+ width: var(--dt-borders-width-default, 1px);
13
+ height: 100%;
14
+ }
15
+ .Divider_dividerCSS_compound_0__1ljcfp95 {
16
+ flex-shrink: 0;
17
+ }
18
+ .Divider_dividerCSS_compound_1__1ljcfp96 {
19
+ flex-shrink: 0;
20
+ width: var(--dt-borders-width-default, 1px);
21
+ height: auto;
22
+ align-self: stretch;
23
+ }
@@ -0,0 +1,39 @@
1
+ import clsx from "clsx";
2
+ import React, { forwardRef } from "react";
3
+ import { dividerCSS } from "./Divider.sty.js";
4
+ import { colorUtilsCSS } from "../../core/utils/colorUtils.sty.js";
5
+ const Divider = /* @__PURE__ */ forwardRef((props, ref) => {
6
+ const {
7
+ orientation = "horizontal",
8
+ flexItem = true,
9
+ as = "div",
10
+ color = "neutral",
11
+ variant = "default",
12
+ "data-testid": dataTestId,
13
+ className: consumerClassName,
14
+ style: consumerStyle,
15
+ ...remainingProps
16
+ } = props;
17
+ const DividerTag = as;
18
+ return /* @__PURE__ */ React.createElement(
19
+ DividerTag,
20
+ {
21
+ role: "separator",
22
+ "aria-orientation": orientation === "vertical" ? orientation : void 0,
23
+ ref,
24
+ "data-testid": dataTestId,
25
+ className: clsx(
26
+ colorUtilsCSS({ color, variant }),
27
+ dividerCSS({ orientation, flexItem }),
28
+ consumerClassName
29
+ ),
30
+ style: consumerStyle,
31
+ ...remainingProps
32
+ }
33
+ );
34
+ });
35
+ Divider.displayName = "Divider";
36
+ export {
37
+ Divider
38
+ };
39
+ //# sourceMappingURL=Divider.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/layouts/Divider/Divider.tsx"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport React, { forwardRef } from 'react';\n\nimport { dividerCSS } from './Divider.sty.js';\nimport { type DataTestId } from '../../core/types/data-props.js';\nimport { type StylingProps } from '../../core/types/styling-props.js';\nimport { colorUtilsCSS } from '../../core/utils/colorUtils.sty.js';\n\n// #region Typings\n\n/** @public\n * Divider component props.\n */\nexport interface DividerProps extends StylingProps, DataTestId {\n /**\n * Orientation of the Divider component.\n * @defaultValue 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical';\n /**\n * Control the HTML tag used for rendering the Divider.\n * @defaultValue 'div'\n */\n as?: 'hr' | 'div';\n /**\n * Indicate whether the Divider is used inside a Flex component to apply the right styling.\n * If set to false, make sure to have an explicit width/height style set on a parent HTML tag.\n * @defaultValue true\n */\n flexItem?: boolean;\n /**\n * The color of the Divider.\n * @defaultValue 'neutral'\n */\n color?: 'primary' | 'neutral' | 'success' | 'warning' | 'critical';\n /**\n * The visual style of the Divider.\n * @defaultValue 'default'\n */\n variant?: 'default' | 'accent';\n}\n// #endregion\n\n/**\n * The `Divider` component visually separates groups of content.\n * @public\n */\nexport const Divider = /* @__PURE__ */ forwardRef<\n HTMLDivElement | HTMLHRElement,\n DividerProps\n>((props, ref) => {\n const {\n orientation = 'horizontal',\n flexItem = true,\n as = 'div',\n color = 'neutral',\n variant = 'default',\n 'data-testid': dataTestId,\n className: consumerClassName,\n style: consumerStyle,\n ...remainingProps\n } = props;\n\n const DividerTag = as;\n\n return (\n <DividerTag\n role=\"separator\"\n aria-orientation={orientation === 'vertical' ? orientation : undefined}\n // @ts-expect-error ref can't be div and hr here\n ref={ref}\n data-testid={dataTestId}\n className={clsx(\n colorUtilsCSS({ color, variant }),\n dividerCSS({ orientation, flexItem }),\n consumerClassName,\n )}\n style={consumerStyle}\n {...remainingProps}\n />\n );\n});\n\n(Divider as typeof Divider & { displayName: string }).displayName = 'Divider';\n"],
5
+ "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAAS,kBAAkB;AAElC,SAAS,kBAAkB;AAG3B,SAAS,qBAAqB;AAyCvB,MAAM,UAA0B,2BAGrC,CAAC,OAAO,QAAQ;AAChB,QAAM;AAAA,IACJ,cAAc;AAAA,IACd,WAAW;AAAA,IACX,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,eAAe;AAAA,IACf,WAAW;AAAA,IACX,OAAO;AAAA,IACP,GAAG;AAAA,EACL,IAAI;AAEJ,QAAM,aAAa;AAEnB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,oBAAkB,gBAAgB,aAAa,cAAc;AAAA,MAE7D;AAAA,MACA,eAAa;AAAA,MACb,WAAW;AAAA,QACT,cAAc,EAAE,OAAO,QAAQ,CAAC;AAAA,QAChC,WAAW,EAAE,aAAa,SAAS,CAAC;AAAA,QACpC;AAAA,MACF;AAAA,MACA,OAAO;AAAA,MACN,GAAG;AAAA;AAAA,EACN;AAEJ,CAAC;AAEA,QAAqD,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ import "../../core/utils/colorUtils.css";
2
+ import "./Divider.css";
3
+ import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
4
+ var dividerCSS = _7a468({ defaultClassName: "Divider_dividerCSS__1ljcfp90", variantClassNames: { orientation: { horizontal: "Divider_dividerCSS_orientation_horizontal__1ljcfp91", vertical: "Divider_dividerCSS_orientation_vertical__1ljcfp92" }, flexItem: { true: "Divider_dividerCSS_flexItem_true__1ljcfp93", false: "Divider_dividerCSS_flexItem_false__1ljcfp94" } }, defaultVariants: {}, compoundVariants: [[{ orientation: "horizontal", flexItem: false }, "Divider_dividerCSS_compound_0__1ljcfp95"], [{ orientation: "vertical", flexItem: true }, "Divider_dividerCSS_compound_1__1ljcfp96"]] });
5
+ export {
6
+ dividerCSS
7
+ };
8
+ //# sourceMappingURL=Divider.sty.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/layouts/Divider/Divider.css.ts"],
4
+ "sourcesContent": ["import '../../core/utils/colorUtils.css';\nimport './Divider.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var dividerCSS = _7a468({defaultClassName:'Divider_dividerCSS__1ljcfp90',variantClassNames:{orientation:{horizontal:'Divider_dividerCSS_orientation_horizontal__1ljcfp91',vertical:'Divider_dividerCSS_orientation_vertical__1ljcfp92'},flexItem:{true:'Divider_dividerCSS_flexItem_true__1ljcfp93',false:'Divider_dividerCSS_flexItem_false__1ljcfp94'}},defaultVariants:{},compoundVariants:[[{orientation:'horizontal',flexItem:false},'Divider_dividerCSS_compound_0__1ljcfp95'],[{orientation:'vertical',flexItem:true},'Divider_dividerCSS_compound_1__1ljcfp96']]});"],
5
+ "mappings": "AAAA,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,aAAa,OAAO,EAAC,kBAAiB,gCAA+B,mBAAkB,EAAC,aAAY,EAAC,YAAW,uDAAsD,UAAS,oDAAmD,GAAE,UAAS,EAAC,MAAK,8CAA6C,OAAM,8CAA6C,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,aAAY,cAAa,UAAS,MAAK,GAAE,yCAAyC,GAAE,CAAC,EAAC,aAAY,YAAW,UAAS,KAAI,GAAE,yCAAyC,CAAC,EAAC,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ import { Divider } from "./Divider/Divider.js";
2
+ export {
3
+ Divider
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/layouts/index.ts"],
4
+ "sourcesContent": ["export { Divider } from './Divider/Divider.js';\nexport type { DividerProps } from './Divider/Divider.js';\n"],
5
+ "mappings": "AAAA,SAAS,eAAe;",
6
+ "names": []
7
+ }
@@ -0,0 +1,64 @@
1
+ .textStyle_textStyleCSS_compound_0__da9a8v7 {
2
+ font-family: var(--dt-typography-code-base-default-family, Roboto Mono,monospace);
3
+ font-weight: var(--dt-typography-code-base-default-weight, 400);
4
+ font-size: var(--dt-typography-code-base-default-size, 14px);
5
+ line-height: var(--dt-typography-code-base-default-line-height, 1.4285714286);
6
+ text-decoration: var(--dt-typography-code-base-default-text-decoration, none);
7
+ text-transform: var(--dt-typography-code-base-default-text-transform, none);
8
+ }
9
+ .textStyle_textStyleCSS_compound_1__da9a8v8 {
10
+ font-family: var(--dt-typography-code-base-emphasized-family, Roboto Mono,monospace);
11
+ font-weight: var(--dt-typography-code-base-emphasized-weight, 500);
12
+ font-size: var(--dt-typography-code-base-emphasized-size, 14px);
13
+ line-height: var(--dt-typography-code-base-emphasized-line-height, 1.4285714286);
14
+ text-decoration: var(--dt-typography-code-base-emphasized-text-decoration, none);
15
+ text-transform: var(--dt-typography-code-base-emphasized-text-transform, none);
16
+ }
17
+ .textStyle_textStyleCSS_compound_2__da9a8v9 {
18
+ font-family: var(--dt-typography-code-small-default-family, Roboto Mono,monospace);
19
+ font-weight: var(--dt-typography-code-small-default-weight, 400);
20
+ font-size: var(--dt-typography-code-small-default-size, 12px);
21
+ line-height: var(--dt-typography-code-small-default-line-height, 1.333333333);
22
+ text-decoration: var(--dt-typography-code-small-default-text-decoration, none);
23
+ text-transform: var(--dt-typography-code-small-default-text-transform, none);
24
+ }
25
+ .textStyle_textStyleCSS_compound_3__da9a8va {
26
+ font-family: var(--dt-typography-code-small-emphasized-family, Roboto Mono,monospace);
27
+ font-weight: var(--dt-typography-code-small-emphasized-weight, 500);
28
+ font-size: var(--dt-typography-code-small-emphasized-size, 12px);
29
+ line-height: var(--dt-typography-code-small-emphasized-line-height, 1.333333333);
30
+ text-decoration: var(--dt-typography-code-small-emphasized-text-decoration, none);
31
+ text-transform: var(--dt-typography-code-small-emphasized-text-transform, none);
32
+ }
33
+ .textStyle_textStyleCSS_compound_4__da9a8vb {
34
+ font-family: var(--dt-typography-text-base-default-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
35
+ font-weight: var(--dt-typography-text-base-default-weight, 400);
36
+ font-size: var(--dt-typography-text-base-default-size, 14px);
37
+ line-height: var(--dt-typography-text-base-default-line-height, 1.4285714286);
38
+ text-decoration: var(--dt-typography-text-base-default-text-decoration, none);
39
+ text-transform: var(--dt-typography-text-base-default-text-transform, none);
40
+ }
41
+ .textStyle_textStyleCSS_compound_5__da9a8vc {
42
+ font-family: var(--dt-typography-text-base-emphasized-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
43
+ font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
44
+ font-size: var(--dt-typography-text-base-emphasized-size, 14px);
45
+ line-height: var(--dt-typography-text-base-emphasized-line-height, 1.4285714286);
46
+ text-decoration: var(--dt-typography-text-base-emphasized-text-decoration, none);
47
+ text-transform: var(--dt-typography-text-base-emphasized-text-transform, none);
48
+ }
49
+ .textStyle_textStyleCSS_compound_6__da9a8vd {
50
+ font-family: var(--dt-typography-text-small-default-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
51
+ font-weight: var(--dt-typography-text-small-default-weight, 400);
52
+ font-size: var(--dt-typography-text-small-default-size, 12px);
53
+ line-height: var(--dt-typography-text-small-default-line-height, 1.333333333);
54
+ text-decoration: var(--dt-typography-text-small-default-text-decoration, none);
55
+ text-transform: var(--dt-typography-text-small-default-text-transform, none);
56
+ }
57
+ .textStyle_textStyleCSS_compound_7__da9a8ve {
58
+ font-family: var(--dt-typography-text-small-emphasized-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
59
+ font-weight: var(--dt-typography-text-small-emphasized-weight, 500);
60
+ font-size: var(--dt-typography-text-small-emphasized-size, 12px);
61
+ line-height: var(--dt-typography-text-small-emphasized-line-height, 1.333333333);
62
+ text-decoration: var(--dt-typography-text-small-emphasized-text-decoration, none);
63
+ text-transform: var(--dt-typography-text-small-emphasized-text-transform, none);
64
+ }
@@ -0,0 +1,7 @@
1
+ import "./textStyle.css";
2
+ import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
3
+ var textStyleCSS = _7a468({ defaultClassName: "textStyle__da9a8v0", variantClassNames: { fontStyle: { code: "textStyle_textStyleCSS_fontStyle_code__da9a8v1", text: "textStyle_textStyleCSS_fontStyle_text__da9a8v2" }, textStyle: { base: "textStyle_textStyleCSS_textStyle_base__da9a8v3", "base-emphasized": "textStyle_textStyleCSS_textStyle_base-emphasized__da9a8v4", small: "textStyle_textStyleCSS_textStyle_small__da9a8v5", "small-emphasized": "textStyle_textStyleCSS_textStyle_small-emphasized__da9a8v6" } }, defaultVariants: { fontStyle: "text", textStyle: "base" }, compoundVariants: [[{ fontStyle: "code", textStyle: "base" }, "textStyle_textStyleCSS_compound_0__da9a8v7"], [{ fontStyle: "code", textStyle: "base-emphasized" }, "textStyle_textStyleCSS_compound_1__da9a8v8"], [{ fontStyle: "code", textStyle: "small" }, "textStyle_textStyleCSS_compound_2__da9a8v9"], [{ fontStyle: "code", textStyle: "small-emphasized" }, "textStyle_textStyleCSS_compound_3__da9a8va"], [{ fontStyle: "text", textStyle: "base" }, "textStyle_textStyleCSS_compound_4__da9a8vb"], [{ fontStyle: "text", textStyle: "base-emphasized" }, "textStyle_textStyleCSS_compound_5__da9a8vc"], [{ fontStyle: "text", textStyle: "small" }, "textStyle_textStyleCSS_compound_6__da9a8vd"], [{ fontStyle: "text", textStyle: "small-emphasized" }, "textStyle_textStyleCSS_compound_7__da9a8ve"]] });
4
+ export {
5
+ textStyleCSS
6
+ };
7
+ //# sourceMappingURL=textStyle.sty.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styles/textStyle.css.ts"],
4
+ "sourcesContent": ["import './textStyle.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var textStyleCSS = _7a468({defaultClassName:'textStyle__da9a8v0',variantClassNames:{fontStyle:{code:'textStyle_textStyleCSS_fontStyle_code__da9a8v1',text:'textStyle_textStyleCSS_fontStyle_text__da9a8v2'},textStyle:{base:'textStyle_textStyleCSS_textStyle_base__da9a8v3','base-emphasized':'textStyle_textStyleCSS_textStyle_base-emphasized__da9a8v4',small:'textStyle_textStyleCSS_textStyle_small__da9a8v5','small-emphasized':'textStyle_textStyleCSS_textStyle_small-emphasized__da9a8v6'}},defaultVariants:{fontStyle:'text',textStyle:'base'},compoundVariants:[[{fontStyle:'code',textStyle:'base'},'textStyle_textStyleCSS_compound_0__da9a8v7'],[{fontStyle:'code',textStyle:'base-emphasized'},'textStyle_textStyleCSS_compound_1__da9a8v8'],[{fontStyle:'code',textStyle:'small'},'textStyle_textStyleCSS_compound_2__da9a8v9'],[{fontStyle:'code',textStyle:'small-emphasized'},'textStyle_textStyleCSS_compound_3__da9a8va'],[{fontStyle:'text',textStyle:'base'},'textStyle_textStyleCSS_compound_4__da9a8vb'],[{fontStyle:'text',textStyle:'base-emphasized'},'textStyle_textStyleCSS_compound_5__da9a8vc'],[{fontStyle:'text',textStyle:'small'},'textStyle_textStyleCSS_compound_6__da9a8vd'],[{fontStyle:'text',textStyle:'small-emphasized'},'textStyle_textStyleCSS_compound_7__da9a8ve']]});"],
5
+ "mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,eAAe,OAAO,EAAC,kBAAiB,sBAAqB,mBAAkB,EAAC,WAAU,EAAC,MAAK,kDAAiD,MAAK,iDAAgD,GAAE,WAAU,EAAC,MAAK,kDAAiD,mBAAkB,6DAA4D,OAAM,mDAAkD,oBAAmB,6DAA4D,EAAC,GAAE,iBAAgB,EAAC,WAAU,QAAO,WAAU,OAAM,GAAE,kBAAiB,CAAC,CAAC,EAAC,WAAU,QAAO,WAAU,OAAM,GAAE,4CAA4C,GAAE,CAAC,EAAC,WAAU,QAAO,WAAU,kBAAiB,GAAE,4CAA4C,GAAE,CAAC,EAAC,WAAU,QAAO,WAAU,QAAO,GAAE,4CAA4C,GAAE,CAAC,EAAC,WAAU,QAAO,WAAU,mBAAkB,GAAE,4CAA4C,GAAE,CAAC,EAAC,WAAU,QAAO,WAAU,OAAM,GAAE,4CAA4C,GAAE,CAAC,EAAC,WAAU,QAAO,WAAU,kBAAiB,GAAE,4CAA4C,GAAE,CAAC,EAAC,WAAU,QAAO,WAAU,QAAO,GAAE,4CAA4C,GAAE,CAAC,EAAC,WAAU,QAAO,WAAU,mBAAkB,GAAE,4CAA4C,CAAC,EAAC,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ .Blockquote_blockquoteCSS__18f615k0 {
2
+ position: relative;
3
+ margin: var(--dt-spacings-size-0, 0);
4
+ padding-left: var(--dt-spacings-size-40, 40px);
5
+ word-break: normal;
6
+ overflow-wrap: anywhere;
7
+ }
8
+ .Blockquote_blockquoteCSS__18f615k0:before {
9
+ content: "";
10
+ position: absolute;
11
+ top: 0;
12
+ left: calc(var(--dt-spacings-size-40, 40px) - var(--dt-spacings-size-12, 12px));
13
+ width: var(--dt-borders-width-emphasized, 2px);
14
+ border-radius: var(--dt-borders-radius-field-emphasized, 9999px);
15
+ height: 100%;
16
+ background: var(--dt-colors-border-neutral-default, #d2d3e1);
17
+ }
@@ -0,0 +1,34 @@
1
+ import clsx from "clsx";
2
+ import React, { forwardRef } from "react";
3
+ import { blockquoteCSS } from "./Blockquote.sty.js";
4
+ const Blockquote = /* @__PURE__ */ forwardRef((props, ref) => {
5
+ const {
6
+ children,
7
+ cite,
8
+ "data-testid": dataTestId,
9
+ "data-dtrum-mask": dataDtrumMask,
10
+ "data-dtrum-allow": dataDtrumAllow,
11
+ className: consumerClassName,
12
+ style: consumerStyle,
13
+ ...remainingProps
14
+ } = props;
15
+ return /* @__PURE__ */ React.createElement(
16
+ "blockquote",
17
+ {
18
+ cite,
19
+ ref,
20
+ "data-testid": dataTestId,
21
+ "data-dtrum-mask": dataDtrumMask,
22
+ "data-dtrum-allow": dataDtrumAllow,
23
+ className: clsx(blockquoteCSS, consumerClassName),
24
+ style: consumerStyle,
25
+ ...remainingProps
26
+ },
27
+ children
28
+ );
29
+ });
30
+ Blockquote.displayName = "Blockquote";
31
+ export {
32
+ Blockquote
33
+ };
34
+ //# sourceMappingURL=Blockquote.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/typography/BlockQuote/Blockquote.tsx"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport React, { forwardRef } from 'react';\n\nimport { blockquoteCSS } from './Blockquote.sty.js';\nimport type {\n DataTestId,\n StylingProps,\n WithChildren,\n} from '../../core/index.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\n\n/**\n * The props for the Blockquote component.\n * @public\n */\nexport interface BlockquoteProps\n extends WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {\n /**\n * A URL that designates a source document or message for the information quoted.\n * This attribute is intended to point to information explaining the context for the quoted content.\n */\n cite?: string;\n}\n\n/**\n * @public\n * The `Blockquote` component wraps longer text blocks and indicates that the passage is quoted from another source.\n */\nexport const Blockquote = /* @__PURE__ */ forwardRef<\n HTMLQuoteElement,\n BlockquoteProps\n>((props, ref) => {\n const {\n children,\n cite,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n className: consumerClassName,\n style: consumerStyle,\n ...remainingProps\n } = props;\n\n return (\n <blockquote\n cite={cite}\n ref={ref}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n className={clsx(blockquoteCSS, consumerClassName)}\n style={consumerStyle}\n {...remainingProps}\n >\n {children}\n </blockquote>\n );\n});\n\n(Blockquote as typeof Blockquote & { displayName: string }).displayName =\n 'Blockquote';\n"],
5
+ "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAAS,kBAAkB;AAElC,SAAS,qBAAqB;AA4BvB,MAAM,aAA6B,2BAGxC,CAAC,OAAO,QAAQ;AAChB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,OAAO;AAAA,IACP,GAAG;AAAA,EACL,IAAI;AAEJ,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA,eAAa;AAAA,MACb,mBAAiB;AAAA,MACjB,oBAAkB;AAAA,MAClB,WAAW,KAAK,eAAe,iBAAiB;AAAA,MAChD,OAAO;AAAA,MACN,GAAG;AAAA;AAAA,IAEH;AAAA,EACH;AAEJ,CAAC;AAEA,WAA2D,cAC1D;",
6
+ "names": []
7
+ }
@@ -0,0 +1,6 @@
1
+ import "./Blockquote.css";
2
+ var blockquoteCSS = "Blockquote_blockquoteCSS__18f615k0";
3
+ export {
4
+ blockquoteCSS
5
+ };
6
+ //# sourceMappingURL=Blockquote.sty.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/typography/BlockQuote/Blockquote.css.ts"],
4
+ "sourcesContent": ["import './Blockquote.css';\nexport var blockquoteCSS = 'Blockquote_blockquoteCSS__18f615k0';"],
5
+ "mappings": "AAAA,OAAO;AACA,IAAI,gBAAgB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,16 @@
1
+ .Code_codeCSS__1lx0ryl0 {
2
+ background: var(--dt-colors-background-field-neutral-emphasized, #dadbe7);
3
+ padding-top: var(--dt-spacings-size-0, 0);
4
+ padding-bottom: var(--dt-spacings-size-0, 0);
5
+ padding-left: var(--dt-spacings-size-4, 4px);
6
+ padding-right: var(--dt-spacings-size-4, 4px);
7
+ border-radius: var(--dt-borders-radius-field-subdued, 4px);
8
+ overflow-wrap: break-word;
9
+ font-style: normal;
10
+ font-family: var(--dt-typography-code-base-default-family, Roboto Mono,monospace);
11
+ font-weight: var(--dt-typography-code-base-default-weight, 400);
12
+ text-transform: var(--dt-typography-code-base-default-text-transform, none);
13
+ text-decoration: var(--dt-typography-code-base-default-text-decoration, none);
14
+ box-decoration-break: clone;
15
+ -webkit-box-decoration-break: clone;
16
+ }
@@ -0,0 +1,34 @@
1
+ import clsx from "clsx";
2
+ import React, { forwardRef } from "react";
3
+ import { codeCSS } from "./Code.sty.js";
4
+ const Code = /* @__PURE__ */ forwardRef(
5
+ (props, ref) => {
6
+ const {
7
+ children,
8
+ "data-testid": dataTestId,
9
+ "data-dtrum-mask": dataDtrumMask,
10
+ "data-dtrum-allow": dataDtrumAllow,
11
+ className: consumerClassName,
12
+ style: consumerStyle,
13
+ ...remainingProps
14
+ } = props;
15
+ return /* @__PURE__ */ React.createElement(
16
+ "code",
17
+ {
18
+ ref,
19
+ "data-testid": dataTestId,
20
+ "data-dtrum-mask": dataDtrumMask,
21
+ "data-dtrum-allow": dataDtrumAllow,
22
+ className: clsx(codeCSS, consumerClassName),
23
+ style: consumerStyle,
24
+ ...remainingProps
25
+ },
26
+ children
27
+ );
28
+ }
29
+ );
30
+ Code.displayName = "Code";
31
+ export {
32
+ Code
33
+ };
34
+ //# sourceMappingURL=Code.js.map