@dynatrace/strato-components 0.85.10 → 0.85.21

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/buttons/button/Button.css +1 -0
  2. package/buttons/index.d.ts +2 -0
  3. package/buttons/index.js +2 -0
  4. package/buttons/intent-button/IntentButton.d.ts +44 -0
  5. package/buttons/intent-button/IntentButton.js +102 -0
  6. package/buttons/intent-button/useIntentButton.d.ts +12 -0
  7. package/buttons/intent-button/useIntentButton.js +72 -0
  8. package/content/index.d.ts +4 -0
  9. package/content/index.js +5 -1
  10. package/content/skeleton/Skeleton.css +33 -0
  11. package/content/skeleton/Skeleton.d.ts +30 -0
  12. package/content/skeleton/Skeleton.js +60 -0
  13. package/content/skeleton/Skeleton.sty.d.ts +10 -0
  14. package/content/skeleton/Skeleton.sty.js +25 -0
  15. package/content/skeleton/SkeletonText.d.ts +24 -0
  16. package/content/skeleton/SkeletonText.js +84 -0
  17. package/esm/buttons/button/Button.css +1 -0
  18. package/esm/buttons/index.js +2 -0
  19. package/esm/buttons/index.js.map +2 -2
  20. package/esm/buttons/intent-button/IntentButton.js +74 -0
  21. package/esm/buttons/intent-button/IntentButton.js.map +7 -0
  22. package/esm/buttons/intent-button/useIntentButton.js +57 -0
  23. package/esm/buttons/intent-button/useIntentButton.js.map +7 -0
  24. package/esm/content/index.js +5 -1
  25. package/esm/content/index.js.map +2 -2
  26. package/esm/content/skeleton/Skeleton.css +33 -0
  27. package/esm/content/skeleton/Skeleton.js +32 -0
  28. package/esm/content/skeleton/Skeleton.js.map +7 -0
  29. package/esm/content/skeleton/Skeleton.sty.js +7 -0
  30. package/esm/content/skeleton/Skeleton.sty.js.map +7 -0
  31. package/esm/content/skeleton/SkeletonText.js +56 -0
  32. package/esm/content/skeleton/SkeletonText.js.map +7 -0
  33. package/esm/layouts/{Divider → divider}/Divider.css +5 -5
  34. package/esm/layouts/{Divider → divider}/Divider.js.map +1 -1
  35. package/esm/layouts/{Divider → divider}/Divider.sty.js +1 -1
  36. package/esm/layouts/{Divider → divider}/Divider.sty.js.map +2 -2
  37. package/esm/layouts/helpers/spacingToCss.js +13 -0
  38. package/esm/layouts/helpers/spacingToCss.js.map +7 -0
  39. package/esm/layouts/hooks/useLayoutSizeProps.js +15 -0
  40. package/esm/layouts/hooks/useLayoutSizeProps.js.map +7 -0
  41. package/esm/layouts/hooks/useLayoutStyles.js +105 -0
  42. package/esm/layouts/hooks/useLayoutStyles.js.map +7 -0
  43. package/esm/layouts/hooks/useMarginProps.js +55 -0
  44. package/esm/layouts/hooks/useMarginProps.js.map +7 -0
  45. package/esm/layouts/hooks/usePaddingProps.js +59 -0
  46. package/esm/layouts/hooks/usePaddingProps.js.map +7 -0
  47. package/esm/layouts/index.js +6 -2
  48. package/esm/layouts/index.js.map +2 -2
  49. package/esm/layouts/surface/Surface.css +95 -0
  50. package/esm/layouts/surface/Surface.js +84 -0
  51. package/esm/layouts/surface/Surface.js.map +7 -0
  52. package/esm/layouts/surface/Surface.sty.js +10 -0
  53. package/esm/layouts/surface/Surface.sty.js.map +7 -0
  54. package/esm/layouts/surface/variables.sty.js +5 -0
  55. package/esm/layouts/surface/variables.sty.js.map +7 -0
  56. package/esm/layouts/types/layout.types.js +1 -0
  57. package/esm/layouts/types/layout.types.js.map +7 -0
  58. package/esm/typography/{BlockQuote → block-quote}/Blockquote.css +2 -2
  59. package/esm/typography/{BlockQuote → block-quote}/Blockquote.js.map +2 -2
  60. package/esm/typography/{BlockQuote → block-quote}/Blockquote.sty.js +1 -1
  61. package/esm/typography/{BlockQuote → block-quote}/Blockquote.sty.js.map +2 -2
  62. package/{typography/Code → esm/typography/code}/Code.css +1 -1
  63. package/esm/typography/{Code → code}/Code.js.map +2 -2
  64. package/esm/typography/{Code → code}/Code.sty.js +1 -1
  65. package/esm/typography/{Code → code}/Code.sty.js.map +2 -2
  66. package/esm/typography/{Emphasis → emphasis}/Emphasis.css +1 -1
  67. package/esm/typography/{Emphasis → emphasis}/Emphasis.js.map +2 -2
  68. package/esm/typography/{Emphasis → emphasis}/Emphasis.sty.js +1 -1
  69. package/esm/typography/{Emphasis → emphasis}/Emphasis.sty.js.map +2 -2
  70. package/{typography/ExternalLink → esm/typography/external-link}/ExternalLink.css +6 -6
  71. package/esm/typography/{ExternalLink → external-link}/ExternalLink.js.map +2 -2
  72. package/esm/typography/{ExternalLink → external-link}/ExternalLink.sty.js +1 -1
  73. package/esm/typography/{ExternalLink → external-link}/ExternalLink.sty.js.map +2 -2
  74. package/esm/typography/{Heading → heading}/Heading.css +7 -7
  75. package/esm/typography/heading/Heading.js.map +7 -0
  76. package/esm/typography/heading/Heading.sty.js +7 -0
  77. package/esm/typography/{Heading → heading}/Heading.sty.js.map +2 -2
  78. package/esm/typography/{Highlight → highlight}/Highlight.css +1 -1
  79. package/esm/typography/{Highlight → highlight}/Highlight.js.map +2 -2
  80. package/esm/typography/{Highlight → highlight}/Highlight.sty.js +1 -1
  81. package/esm/typography/{Highlight → highlight}/Highlight.sty.js.map +2 -2
  82. package/esm/typography/index.js +13 -13
  83. package/esm/typography/index.js.map +1 -1
  84. package/{typography/Link → esm/typography/link}/Link.css +4 -4
  85. package/esm/typography/{Link → link}/Link.js +1 -1
  86. package/esm/typography/link/Link.js.map +7 -0
  87. package/esm/typography/{Link → link}/Link.sty.js +1 -1
  88. package/esm/typography/{Link → link}/Link.sty.js.map +2 -2
  89. package/esm/typography/{List → list}/List.css +4 -4
  90. package/esm/typography/{List → list}/List.js +1 -1
  91. package/esm/typography/{List → list}/List.js.map +2 -2
  92. package/esm/typography/{List → list}/List.sty.js +2 -2
  93. package/esm/typography/{List → list}/List.sty.js.map +2 -2
  94. package/esm/typography/{Paragraph → paragraph}/Paragraph.css +3 -3
  95. package/esm/typography/{Paragraph → paragraph}/Paragraph.js.map +2 -2
  96. package/esm/typography/{Paragraph → paragraph}/Paragraph.sty.js +1 -1
  97. package/esm/typography/{Paragraph → paragraph}/Paragraph.sty.js.map +2 -2
  98. package/{typography/Strikethrough → esm/typography/strikethrough}/Strikethrough.css +1 -1
  99. package/esm/typography/strikethrough/Strikethrough.js.map +7 -0
  100. package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js +1 -1
  101. package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js.map +2 -2
  102. package/{typography/Strong → esm/typography/strong}/Strong.css +1 -1
  103. package/esm/typography/{Strong → strong}/Strong.js.map +2 -2
  104. package/esm/typography/{Strong → strong}/Strong.sty.js +1 -1
  105. package/esm/typography/{Strong → strong}/Strong.sty.js.map +2 -2
  106. package/{typography/Text → esm/typography/text}/Text.css +3 -3
  107. package/esm/typography/text/Text.js.map +7 -0
  108. package/esm/typography/{Text → text}/Text.sty.js +1 -1
  109. package/esm/typography/{Text → text}/Text.sty.js.map +2 -2
  110. package/{typography/TextEllipsis → esm/typography/text-ellipsis}/TextEllipsis.css +4 -4
  111. package/esm/typography/text-ellipsis/TextEllipsis.js.map +7 -0
  112. package/esm/typography/text-ellipsis/TextEllipsis.sty.js +7 -0
  113. package/esm/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.js.map +2 -2
  114. package/lang/en.json +6 -0
  115. package/lang/ja.json +24 -0
  116. package/lang/uncompiled/en.json +4 -0
  117. package/lang/uncompiled/ja.json +14 -1
  118. package/layouts/{Divider → divider}/Divider.css +5 -5
  119. package/layouts/{Divider → divider}/Divider.sty.js +1 -1
  120. package/layouts/helpers/spacingToCss.d.ts +6 -0
  121. package/layouts/helpers/spacingToCss.js +29 -0
  122. package/layouts/hooks/useLayoutSizeProps.d.ts +6 -0
  123. package/layouts/hooks/useLayoutSizeProps.js +33 -0
  124. package/layouts/hooks/useLayoutStyles.d.ts +7 -0
  125. package/layouts/hooks/useLayoutStyles.js +123 -0
  126. package/layouts/hooks/useMarginProps.d.ts +7 -0
  127. package/layouts/hooks/useMarginProps.js +73 -0
  128. package/layouts/hooks/usePaddingProps.d.ts +7 -0
  129. package/layouts/hooks/usePaddingProps.js +77 -0
  130. package/layouts/index.d.ts +6 -2
  131. package/layouts/index.js +6 -2
  132. package/layouts/surface/Surface.css +95 -0
  133. package/layouts/surface/Surface.d.ts +46 -0
  134. package/layouts/surface/Surface.js +110 -0
  135. package/layouts/surface/Surface.sty.d.ts +43 -0
  136. package/layouts/surface/Surface.sty.js +28 -0
  137. package/layouts/surface/variables.sty.d.ts +1 -0
  138. package/layouts/surface/variables.sty.js +23 -0
  139. package/layouts/types/layout.types.d.ts +64 -0
  140. package/layouts/types/layout.types.js +15 -0
  141. package/package.json +2 -2
  142. package/typography/{BlockQuote → block-quote}/Blockquote.css +2 -2
  143. package/typography/{BlockQuote → block-quote}/Blockquote.sty.js +1 -1
  144. package/{esm/typography/Code → typography/code}/Code.css +1 -1
  145. package/typography/{Code → code}/Code.sty.js +1 -1
  146. package/typography/{Emphasis → emphasis}/Emphasis.css +1 -1
  147. package/typography/{Emphasis → emphasis}/Emphasis.sty.js +1 -1
  148. package/{esm/typography/ExternalLink → typography/external-link}/ExternalLink.css +6 -6
  149. package/typography/{ExternalLink → external-link}/ExternalLink.sty.js +1 -1
  150. package/typography/{Heading → heading}/Heading.css +7 -7
  151. package/typography/{Heading → heading}/Heading.d.ts +3 -2
  152. package/typography/{Heading → heading}/Heading.sty.js +1 -1
  153. package/typography/{Highlight → highlight}/Highlight.css +1 -1
  154. package/typography/{Highlight → highlight}/Highlight.sty.js +1 -1
  155. package/typography/index.d.ts +26 -26
  156. package/typography/index.js +13 -13
  157. package/{esm/typography/Link → typography/link}/Link.css +4 -4
  158. package/typography/{Link → link}/Link.js +1 -1
  159. package/typography/{Link → link}/Link.sty.js +1 -1
  160. package/typography/{List → list}/List.css +4 -4
  161. package/typography/{List → list}/List.js +1 -1
  162. package/typography/{List → list}/List.sty.js +2 -2
  163. package/typography/{Paragraph → paragraph}/Paragraph.css +3 -3
  164. package/typography/{Paragraph → paragraph}/Paragraph.sty.js +1 -1
  165. package/{esm/typography/Strikethrough → typography/strikethrough}/Strikethrough.css +1 -1
  166. package/typography/{Strikethrough → strikethrough}/Strikethrough.d.ts +2 -2
  167. package/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js +1 -1
  168. package/{esm/typography/Strong → typography/strong}/Strong.css +1 -1
  169. package/typography/{Strong → strong}/Strong.sty.js +1 -1
  170. package/{esm/typography/Text → typography/text}/Text.css +3 -3
  171. package/typography/{Text → text}/Text.d.ts +3 -2
  172. package/typography/{Text → text}/Text.sty.js +1 -1
  173. package/{esm/typography/TextEllipsis → typography/text-ellipsis}/TextEllipsis.css +4 -4
  174. package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.d.ts +3 -3
  175. package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.js +1 -1
  176. package/esm/typography/Heading/Heading.js.map +0 -7
  177. package/esm/typography/Heading/Heading.sty.js +0 -7
  178. package/esm/typography/Link/Link.js.map +0 -7
  179. package/esm/typography/Strikethrough/Strikethrough.js.map +0 -7
  180. package/esm/typography/Text/Text.js.map +0 -7
  181. package/esm/typography/TextEllipsis/TextEllipsis.js.map +0 -7
  182. package/esm/typography/TextEllipsis/TextEllipsis.sty.js +0 -7
  183. package/esm/layouts/{Divider → divider}/Divider.js +0 -0
  184. package/esm/typography/{BlockQuote → block-quote}/Blockquote.js +0 -0
  185. package/esm/typography/{Code → code}/Code.js +0 -0
  186. package/esm/typography/{Emphasis → emphasis}/Emphasis.js +0 -0
  187. package/esm/typography/{ExternalLink → external-link}/ExternalLink.js +0 -0
  188. package/esm/typography/{Heading → heading}/Heading.js +0 -0
  189. package/esm/typography/{Highlight → highlight}/Highlight.js +0 -0
  190. package/esm/typography/{Paragraph → paragraph}/Paragraph.js +0 -0
  191. package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.js +0 -0
  192. package/esm/typography/{Strong → strong}/Strong.js +0 -0
  193. package/esm/typography/{Text → text}/Text.js +0 -0
  194. package/esm/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.js +0 -0
  195. package/layouts/{Divider → divider}/Divider.d.ts +0 -0
  196. package/layouts/{Divider → divider}/Divider.js +0 -0
  197. package/layouts/{Divider → divider}/Divider.sty.d.ts +0 -0
  198. package/typography/{BlockQuote → block-quote}/Blockquote.d.ts +1 -1
  199. package/typography/{BlockQuote → block-quote}/Blockquote.js +0 -0
  200. package/typography/{BlockQuote → block-quote}/Blockquote.sty.d.ts +0 -0
  201. package/typography/{Code → code}/Code.d.ts +1 -1
  202. package/typography/{Code → code}/Code.js +0 -0
  203. package/typography/{Code → code}/Code.sty.d.ts +0 -0
  204. package/typography/{Emphasis → emphasis}/Emphasis.d.ts +1 -1
  205. package/typography/{Emphasis → emphasis}/Emphasis.js +0 -0
  206. package/typography/{Emphasis → emphasis}/Emphasis.sty.d.ts +0 -0
  207. package/typography/{ExternalLink → external-link}/ExternalLink.d.ts +1 -1
  208. package/typography/{ExternalLink → external-link}/ExternalLink.js +0 -0
  209. package/typography/{ExternalLink → external-link}/ExternalLink.sty.d.ts +0 -0
  210. package/typography/{Heading → heading}/Heading.js +0 -0
  211. package/typography/{Heading → heading}/Heading.sty.d.ts +0 -0
  212. package/typography/{Highlight → highlight}/Highlight.d.ts +1 -1
  213. package/typography/{Highlight → highlight}/Highlight.js +0 -0
  214. package/typography/{Highlight → highlight}/Highlight.sty.d.ts +0 -0
  215. package/typography/{Link → link}/Link.d.ts +1 -1
  216. package/typography/{Link → link}/Link.sty.d.ts +0 -0
  217. package/typography/{List → list}/List.d.ts +1 -1
  218. package/typography/{List → list}/List.sty.d.ts +0 -0
  219. package/typography/{Paragraph → paragraph}/Paragraph.d.ts +1 -1
  220. package/typography/{Paragraph → paragraph}/Paragraph.js +0 -0
  221. package/typography/{Paragraph → paragraph}/Paragraph.sty.d.ts +0 -0
  222. package/typography/{Strikethrough → strikethrough}/Strikethrough.js +0 -0
  223. package/typography/{Strikethrough → strikethrough}/Strikethrough.sty.d.ts +0 -0
  224. package/typography/{Strong → strong}/Strong.d.ts +1 -1
  225. /package/typography/{Strong → strong}/Strong.js +0 -0
  226. /package/typography/{Strong → strong}/Strong.sty.d.ts +0 -0
  227. /package/typography/{Text → text}/Text.js +0 -0
  228. /package/typography/{Text → text}/Text.sty.d.ts +0 -0
  229. /package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.js +0 -0
  230. /package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.d.ts +0 -0
@@ -0,0 +1,59 @@
1
+ import { merge } from "lodash-es";
2
+ import { spacingToCss } from "../helpers/spacingToCss.js";
3
+ const defaultPadding = {
4
+ padding: 0,
5
+ paddingTop: 0,
6
+ paddingRight: 0,
7
+ paddingBottom: 0,
8
+ paddingLeft: 0
9
+ };
10
+ const usePaddingProps = (props, defaultPaddingProps = defaultPadding) => {
11
+ const {
12
+ padding,
13
+ p,
14
+ paddingX,
15
+ px,
16
+ paddingY,
17
+ py,
18
+ paddingTop,
19
+ pt,
20
+ paddingRight,
21
+ pr,
22
+ paddingBottom,
23
+ pb,
24
+ paddingLeft,
25
+ pl
26
+ } = props;
27
+ const convertedDefaultPaddingProps = {
28
+ paddingTop: spacingToCss(
29
+ defaultPaddingProps.paddingTop ?? defaultPaddingProps.padding
30
+ ),
31
+ paddingLeft: spacingToCss(
32
+ defaultPaddingProps.paddingLeft ?? defaultPaddingProps.padding
33
+ ),
34
+ paddingBottom: spacingToCss(
35
+ defaultPaddingProps.paddingBottom ?? defaultPaddingProps.padding
36
+ ),
37
+ paddingRight: spacingToCss(
38
+ defaultPaddingProps.paddingRight ?? defaultPaddingProps.padding
39
+ )
40
+ };
41
+ return merge({}, convertedDefaultPaddingProps, {
42
+ paddingTop: spacingToCss(
43
+ pt ?? paddingTop ?? py ?? paddingY ?? p ?? padding
44
+ ),
45
+ paddingRight: spacingToCss(
46
+ pr ?? paddingRight ?? px ?? paddingX ?? p ?? padding
47
+ ),
48
+ paddingBottom: spacingToCss(
49
+ pb ?? paddingBottom ?? py ?? paddingY ?? p ?? padding
50
+ ),
51
+ paddingLeft: spacingToCss(
52
+ pl ?? paddingLeft ?? px ?? paddingX ?? p ?? padding
53
+ )
54
+ });
55
+ };
56
+ export {
57
+ usePaddingProps
58
+ };
59
+ //# sourceMappingURL=usePaddingProps.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/layouts/hooks/usePaddingProps.ts"],
4
+ "sourcesContent": ["import { merge } from 'lodash-es';\n\nimport { SpacingProps } from '../../styles/getSpacingSprinkles.js';\nimport { spacingToCss } from '../helpers/spacingToCss.js';\nimport type { PaddingCSS, DefaultPadding } from '../types/layout.types.js';\n\nconst defaultPadding: DefaultPadding = {\n padding: 0,\n paddingTop: 0,\n paddingRight: 0,\n paddingBottom: 0,\n paddingLeft: 0,\n};\n\n/**\n * Generates CSS padding properties based on the provided padding props and default padding values.\n * @internal\n */\nexport const usePaddingProps = (\n props: SpacingProps,\n defaultPaddingProps: DefaultPadding = defaultPadding,\n): PaddingCSS => {\n const {\n padding,\n p,\n paddingX,\n px,\n paddingY,\n py,\n paddingTop,\n pt,\n paddingRight,\n pr,\n paddingBottom,\n pb,\n paddingLeft,\n pl,\n } = props;\n\n const convertedDefaultPaddingProps = {\n paddingTop: spacingToCss(\n defaultPaddingProps.paddingTop ?? defaultPaddingProps.padding,\n ),\n paddingLeft: spacingToCss(\n defaultPaddingProps.paddingLeft ?? defaultPaddingProps.padding,\n ),\n paddingBottom: spacingToCss(\n defaultPaddingProps.paddingBottom ?? defaultPaddingProps.padding,\n ),\n paddingRight: spacingToCss(\n defaultPaddingProps.paddingRight ?? defaultPaddingProps.padding,\n ),\n };\n\n return merge({}, convertedDefaultPaddingProps, {\n paddingTop: spacingToCss(\n pt ?? paddingTop ?? py ?? paddingY ?? p ?? padding,\n ),\n paddingRight: spacingToCss(\n pr ?? paddingRight ?? px ?? paddingX ?? p ?? padding,\n ),\n paddingBottom: spacingToCss(\n pb ?? paddingBottom ?? py ?? paddingY ?? p ?? padding,\n ),\n paddingLeft: spacingToCss(\n pl ?? paddingLeft ?? px ?? paddingX ?? p ?? padding,\n ),\n });\n};\n"],
5
+ "mappings": "AAAA,SAAS,aAAa;AAGtB,SAAS,oBAAoB;AAG7B,MAAM,iBAAiC;AAAA,EACrC,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,eAAe;AAAA,EACf,aAAa;AACf;AAMO,MAAM,kBAAkB,CAC7B,OACA,sBAAsC,mBACvB;AACf,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,QAAM,+BAA+B;AAAA,IACnC,YAAY;AAAA,MACV,oBAAoB,cAAc,oBAAoB;AAAA,IACxD;AAAA,IACA,aAAa;AAAA,MACX,oBAAoB,eAAe,oBAAoB;AAAA,IACzD;AAAA,IACA,eAAe;AAAA,MACb,oBAAoB,iBAAiB,oBAAoB;AAAA,IAC3D;AAAA,IACA,cAAc;AAAA,MACZ,oBAAoB,gBAAgB,oBAAoB;AAAA,IAC1D;AAAA,EACF;AAEA,SAAO,MAAM,CAAC,GAAG,8BAA8B;AAAA,IAC7C,YAAY;AAAA,MACV,MAAM,cAAc,MAAM,YAAY,KAAK;AAAA,IAC7C;AAAA,IACA,cAAc;AAAA,MACZ,MAAM,gBAAgB,MAAM,YAAY,KAAK;AAAA,IAC/C;AAAA,IACA,eAAe;AAAA,MACb,MAAM,iBAAiB,MAAM,YAAY,KAAK;AAAA,IAChD;AAAA,IACA,aAAa;AAAA,MACX,MAAM,eAAe,MAAM,YAAY,KAAK;AAAA,IAC9C;AAAA,EACF,CAAC;AACH;",
6
+ "names": []
7
+ }
@@ -1,11 +1,15 @@
1
1
  import { Flex } from "./flex/Flex.js";
2
2
  import { Grid } from "./grid/Grid.js";
3
- import { Divider } from "./Divider/Divider.js";
3
+ import { Divider } from "./divider/Divider.js";
4
4
  import { Container } from "./container/Container.js";
5
+ import { Surface } from "./surface/Surface.js";
6
+ import { surfaceBorderRadius } from "./surface/variables.sty.js";
5
7
  export {
6
8
  Container,
7
9
  Divider,
8
10
  Flex,
9
- Grid
11
+ Grid,
12
+ Surface,
13
+ surfaceBorderRadius as _surfaceBorderRadius
10
14
  };
11
15
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/layouts/index.ts"],
4
- "sourcesContent": ["export { Flex, type FlexOwnProps, type FlexProps } from './flex/Flex.js';\nexport { Grid, type GridOwnProps, type GridProps } from './grid/Grid.js';\nexport { Divider } from './Divider/Divider.js';\nexport type { DividerProps } from './Divider/Divider.js';\nexport { Container } from './container/Container.js';\nexport type {\n ContainerOwnProps,\n ContainerProps,\n} from './container/Container.js';\n"],
5
- "mappings": "AAAA,SAAS,YAA+C;AACxD,SAAS,YAA+C;AACxD,SAAS,eAAe;AAExB,SAAS,iBAAiB;",
4
+ "sourcesContent": ["export { Flex, type FlexOwnProps, type FlexProps } from './flex/Flex.js';\nexport { Grid, type GridOwnProps, type GridProps } from './grid/Grid.js';\nexport { Divider } from './divider/Divider.js';\nexport type { DividerProps } from './divider/Divider.js';\nexport { Container } from './container/Container.js';\nexport type {\n ContainerOwnProps,\n ContainerProps,\n} from './container/Container.js';\nexport type { LayoutSizeCSS } from './types/layout.types.js';\nexport { Surface } from './surface/Surface.js';\nexport type { SurfaceOwnProps, SurfaceProps } from './surface/Surface.js';\nexport { surfaceBorderRadius as _surfaceBorderRadius } from './surface/variables.sty.js';\n"],
5
+ "mappings": "AAAA,SAAS,YAA+C;AACxD,SAAS,YAA+C;AACxD,SAAS,eAAe;AAExB,SAAS,iBAAiB;AAM1B,SAAS,eAAe;AAExB,SAAgC,2BAA4B;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,95 @@
1
+ .Surface_surfaceCSS__1qto6jt6 {
2
+ --surfaceBorderRadius__1igzksy0: var(--dt-borders-radius-surface-default, 16px);
3
+ color: var(--dt-colors-text-neutral-default, #2b2a58);
4
+ text-align: left;
5
+ border: none;
6
+ outline: none;
7
+ position: relative;
8
+ background-color: var(--dt-colors-background-surface-default, #fcfcfd);
9
+ border-radius: var(--surfaceBorderRadius__1igzksy0);
10
+ }
11
+ .Surface_surfaceCSS__1qto6jt6::before, .Surface_surfaceCSS__1qto6jt6::after {
12
+ content: "";
13
+ width: 100%;
14
+ height: 100%;
15
+ position: absolute;
16
+ left: 0;
17
+ top: 0;
18
+ border-radius: var(--surfaceBorderRadius__1igzksy0);
19
+ pointer-events: none;
20
+ }
21
+ .Surface_surfaceCSS__1qto6jt6::after {
22
+ box-shadow: 0px 0px 0px 1px var(--dt-colors-background-base-default, #f3f3f7);
23
+ outline-offset: 1px;
24
+ outline: 2px solid var(--vars_borderColor__17bwkb02);
25
+ opacity: var(--selectionOpacity__1qto6jt4);
26
+ transition: var(--selectionTransition__1qto6jt5);
27
+ }
28
+ .Surface_surfaceCSS_selected_true__1qto6jt7 {
29
+ --selectionOpacity__1qto6jt4: 1;
30
+ --selectionTransition__1qto6jt5: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
31
+ }
32
+ .Surface_surfaceCSS_selected_false__1qto6jt8 {
33
+ --selectionOpacity__1qto6jt4: 0;
34
+ --selectionTransition__1qto6jt5: var(--dt-animations-fade-out-easing, cubic-bezier(0, 0, 0.2, 1)) var(--dt-animations-fade-out-duration-fast, 150ms);
35
+ }
36
+ .Surface_pseudoElementCSS__1qto6jt9 {
37
+ --dragOpacity__1qto6jt1: 0;
38
+ --dragCursor__1qto6jt2: pointer;
39
+ --hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
40
+ width: 100%;
41
+ height: 100%;
42
+ position: absolute;
43
+ left: 0;
44
+ top: 0;
45
+ border-radius: var(--surfaceBorderRadius__1igzksy0);
46
+ pointer-events: none;
47
+ }
48
+ .Surface_pseudoElementCSS__1qto6jt9::after,.Surface_pseudoElementCSS__1qto6jt9::before {
49
+ content: "";
50
+ width: 100%;
51
+ height: 100%;
52
+ position: absolute;
53
+ left: 0;
54
+ top: 0;
55
+ border-radius: var(--surfaceBorderRadius__1igzksy0);
56
+ pointer-events: none;
57
+ transition: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
58
+ }
59
+ .Surface_pseudoElementCSS__1qto6jt9::after {
60
+ box-shadow: var(--dragElevation__1qto6jt0);
61
+ opacity: var(--dragOpacity__1qto6jt1);
62
+ }
63
+ .Surface_pseudoElementCSS__1qto6jt9::before {
64
+ box-shadow: var(--hoverElevation__1qto6jt3);
65
+ opacity: 0;
66
+ }
67
+ .Surface_pseudoElementCSS_elevation_flat__1qto6jta {
68
+ --dragElevation__1qto6jt0: var(--dt-box-shadows-surface-flat-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
69
+ --hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
70
+ box-shadow: var(--dt-box-shadows-surface-flat-rest, none);
71
+ }
72
+ .Surface_pseudoElementCSS_elevation_raised__1qto6jtb {
73
+ --dragElevation__1qto6jt0: var(--dt-box-shadows-surface-raised-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
74
+ --hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-raised-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
75
+ box-shadow: var(--dt-box-shadows-surface-raised-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
76
+ }
77
+ .Surface_pseudoElementCSS_elevation_floating__1qto6jtc {
78
+ --dragElevation__1qto6jt0: var(--dt-box-shadows-surface-floating-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
79
+ --hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-floating-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 6px 14px -2px #2d2e4e3d);
80
+ box-shadow: var(--dt-box-shadows-surface-floating-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
81
+ }
82
+ .Surface_pseudoElementCSS_dragged_true__1qto6jtd {
83
+ --dragOpacity__1qto6jt1: 1;
84
+ --dragCursor__1qto6jt2: grab;
85
+ }
86
+ button.strato-surface:not(:disabled), a.strato-surface:not(:disabled) {
87
+ cursor: pointer;
88
+ }
89
+ button.strato-surface:not(:disabled):hover > div:first-child::before, a.strato-surface:not(:disabled):hover > div:first-child::before {
90
+ opacity: 1;
91
+ }
92
+ button.strato-surface:not(:disabled):active > div:first-child::before, a.strato-surface:not(:disabled):active > div:first-child::before {
93
+ transition: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
94
+ opacity: 0;
95
+ }
@@ -0,0 +1,84 @@
1
+ import clsx from "clsx";
2
+ import React, { forwardRef } from "react";
3
+ import { pseudoElementCSS, surfaceCSS } from "./Surface.sty.js";
4
+ import { useAriaLabelingProps } from "../../core/hooks/useAriaLabelingProps.js";
5
+ import { useFocusRing } from "../../core/styles/useFocusRing.js";
6
+ import { mergeProps } from "../../core/utils/merge-props.js";
7
+ import { colorUtilsCSS } from "../../styles/colorUtils.sty.js";
8
+ import {
9
+ getSpacingSprinkles
10
+ } from "../../styles/getSpacingSprinkles.js";
11
+ import { textStyleCSS } from "../../styles/textStyle.sty.js";
12
+ import { useLayoutStyles } from "../hooks/useLayoutStyles.js";
13
+ const Surface = /* @__PURE__ */ forwardRef(
14
+ (props, forwardedRef) => {
15
+ const {
16
+ elevation = "flat",
17
+ dragged = false,
18
+ selected = false,
19
+ color = "neutral",
20
+ children,
21
+ className: consumerClassName,
22
+ style: consumerStyle,
23
+ "data-testid": dataTestId,
24
+ "data-dtrum-mask": dataDtrumMask,
25
+ "data-dtrum-allow": dataDtrumAllow,
26
+ as,
27
+ ...remainingProps
28
+ } = props;
29
+ const ariaLabelingProps = useAriaLabelingProps(remainingProps);
30
+ const { layoutSizeStyles, remainingProps: surfaceProps } = useLayoutStyles(
31
+ remainingProps,
32
+ { paddingDefaults: { padding: 24 } }
33
+ );
34
+ const { focusProps, focusClassName } = useFocusRing({
35
+ variant: color
36
+ });
37
+ const surfaceMergedProps = {
38
+ ...mergeProps(
39
+ // Need to cast this one as the inference of mergeProps would generate
40
+ // a not allowed overlap. The remainingProps type is too complex due to the
41
+ // polymorphic inheritance.
42
+ surfaceProps,
43
+ focusProps,
44
+ ariaLabelingProps
45
+ )
46
+ };
47
+ const Component = as ?? "div";
48
+ return /* @__PURE__ */ React.createElement(
49
+ Component,
50
+ {
51
+ ...surfaceMergedProps,
52
+ "data-testid": dataTestId,
53
+ "data-dtrum-mask": dataDtrumMask,
54
+ "data-dtrum-allow": dataDtrumAllow,
55
+ ref: forwardedRef,
56
+ className: clsx(
57
+ "strato-surface",
58
+ colorUtilsCSS({ color, variant: selected ? "accent" : "default" }),
59
+ surfaceCSS({ selected }),
60
+ focusClassName,
61
+ consumerClassName,
62
+ getSpacingSprinkles(remainingProps, { padding: 24 }),
63
+ textStyleCSS({ textStyle: "base" })
64
+ ),
65
+ style: { ...layoutSizeStyles, ...consumerStyle }
66
+ },
67
+ /* @__PURE__ */ React.createElement(
68
+ "div",
69
+ {
70
+ className: clsx(
71
+ "surface-background",
72
+ pseudoElementCSS({ elevation, dragged })
73
+ ),
74
+ "aria-hidden": true
75
+ }
76
+ ),
77
+ children
78
+ );
79
+ }
80
+ );
81
+ export {
82
+ Surface
83
+ };
84
+ //# sourceMappingURL=Surface.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/layouts/surface/Surface.tsx"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport React, { type ElementType, type ReactElement, forwardRef } from 'react';\n\nimport { pseudoElementCSS, surfaceCSS } from './Surface.sty.js';\nimport { useAriaLabelingProps } from '../../core/hooks/useAriaLabelingProps.js';\nimport { useFocusRing } from '../../core/styles/useFocusRing.js';\nimport type { AriaLabelingProps } from '../../core/types/a11y-props.js';\nimport type { DataTestId } from '../../core/types/data-props.js';\nimport type { DOMProps } from '../../core/types/dom.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\nimport type { PolymorphicComponentProps } from '../../core/types/polymorph.js';\nimport type { StylingProps } from '../../core/types/styling-props.js';\nimport type { WithChildren } from '../../core/types/with-children.js';\nimport { mergeProps } from '../../core/utils/merge-props.js';\nimport { colorUtilsCSS } from '../../styles/colorUtils.sty.js';\nimport {\n getSpacingSprinkles,\n type SpacingProps,\n} from '../../styles/getSpacingSprinkles.js';\nimport { textStyleCSS } from '../../styles/textStyle.sty.js';\nimport { useLayoutStyles } from '../hooks/useLayoutStyles.js';\nimport type { LayoutSizeCSS } from '../types/layout.types.js';\n\n//#region Typings\n\n/**\n * Accepted properties for Surface\n * @public\n */\nexport interface SurfaceOwnProps\n extends AriaLabelingProps,\n SpacingProps,\n LayoutSizeCSS,\n DOMProps,\n WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {\n /**\n * Color of the border when the surface has focus or is selected.\n * @defaultValue 'neutral'\n */\n color?: 'neutral' | 'primary' | 'success' | 'critical' | 'warning';\n /**\n * Defines if the surface is selected and should indicate that state with a border.\n * @defaultValue false\n */\n selected?: boolean;\n /**\n * Indicates if the surface is currently dragged and then applies the corresponding styles.\n * @defaultValue false\n */\n dragged?: boolean;\n /**\n * Defines the surface's elevation to the background.\n * @defaultValue 'flat'\n */\n elevation?: 'flat' | 'raised' | 'floating';\n}\n\n/**\n * Merge own props with others inherited from the underlying element type\n * @public\n */\nexport type SurfaceProps<E extends ElementType> = PolymorphicComponentProps<\n E,\n SurfaceOwnProps\n>;\n//#endregion\n\n/**\n * The Surface component is used to structure content on a page.\n * @public\n */\nexport const Surface: <E extends ElementType = 'div'>(\n props: SurfaceProps<E>,\n) => ReactElement | null = /* @__PURE__ */ forwardRef(\n <E extends ElementType>(\n props: SurfaceProps<E>,\n forwardedRef: typeof props.ref,\n ) => {\n const {\n elevation = 'flat',\n dragged = false,\n selected = false,\n color = 'neutral',\n children,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n as,\n ...remainingProps\n }: SurfaceProps<E> = props;\n\n const ariaLabelingProps = useAriaLabelingProps(remainingProps);\n\n const { layoutSizeStyles, remainingProps: surfaceProps } = useLayoutStyles(\n remainingProps,\n { paddingDefaults: { padding: 24 } },\n );\n\n const { focusProps, focusClassName } = useFocusRing({\n variant: color,\n });\n\n const surfaceMergedProps = {\n ...mergeProps(\n // Need to cast this one as the inference of mergeProps would generate\n // a not allowed overlap. The remainingProps type is too complex due to the\n // polymorphic inheritance.\n surfaceProps as Record<string, unknown>,\n focusProps,\n ariaLabelingProps,\n ),\n };\n\n const Component = as ?? 'div';\n\n return (\n <Component\n {...surfaceMergedProps}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n ref={forwardedRef}\n className={clsx(\n 'strato-surface',\n colorUtilsCSS({ color, variant: selected ? 'accent' : 'default' }),\n surfaceCSS({ selected }),\n focusClassName,\n consumerClassName,\n getSpacingSprinkles(remainingProps, { padding: 24 }),\n textStyleCSS({ textStyle: 'base' }),\n )}\n style={{ ...layoutSizeStyles, ...consumerStyle }}\n >\n <div\n className={clsx(\n 'surface-background',\n pseudoElementCSS({ elevation, dragged }),\n )}\n aria-hidden={true}\n />\n {children}\n </Component>\n );\n },\n);\n"],
5
+ "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAA8C,kBAAkB;AAEvE,SAAS,kBAAkB,kBAAkB;AAC7C,SAAS,4BAA4B;AACrC,SAAS,oBAAoB;AAQ7B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,OAEK;AACP,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAsDzB,MAAM,UAE8B;AAAA,EACzC,CACE,OACA,iBACG;AACH,UAAM;AAAA,MACJ,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,WAAW;AAAA,MACX,QAAQ;AAAA,MACR;AAAA,MACA,WAAW;AAAA,MACX,OAAO;AAAA,MACP,eAAe;AAAA,MACf,mBAAmB;AAAA,MACnB,oBAAoB;AAAA,MACpB;AAAA,MACA,GAAG;AAAA,IACL,IAAqB;AAErB,UAAM,oBAAoB,qBAAqB,cAAc;AAE7D,UAAM,EAAE,kBAAkB,gBAAgB,aAAa,IAAI;AAAA,MACzD;AAAA,MACA,EAAE,iBAAiB,EAAE,SAAS,GAAG,EAAE;AAAA,IACrC;AAEA,UAAM,EAAE,YAAY,eAAe,IAAI,aAAa;AAAA,MAClD,SAAS;AAAA,IACX,CAAC;AAED,UAAM,qBAAqB;AAAA,MACzB,GAAG;AAAA;AAAA;AAAA;AAAA,QAID;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAEA,UAAM,YAAY,MAAM;AAExB,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QAClB,KAAK;AAAA,QACL,WAAW;AAAA,UACT;AAAA,UACA,cAAc,EAAE,OAAO,SAAS,WAAW,WAAW,UAAU,CAAC;AAAA,UACjE,WAAW,EAAE,SAAS,CAAC;AAAA,UACvB;AAAA,UACA;AAAA,UACA,oBAAoB,gBAAgB,EAAE,SAAS,GAAG,CAAC;AAAA,UACnD,aAAa,EAAE,WAAW,OAAO,CAAC;AAAA,QACpC;AAAA,QACA,OAAO,EAAE,GAAG,kBAAkB,GAAG,cAAc;AAAA;AAAA,MAE/C;AAAA,QAAC;AAAA;AAAA,UACC,WAAW;AAAA,YACT;AAAA,YACA,iBAAiB,EAAE,WAAW,QAAQ,CAAC;AAAA,UACzC;AAAA,UACA,eAAa;AAAA;AAAA,MACf;AAAA,MACC;AAAA,IACH;AAAA,EAEJ;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,10 @@
1
+ import "../../styles/colorUtils.css";
2
+ import "./Surface.css";
3
+ import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
4
+ var pseudoElementCSS = _7a468({ defaultClassName: "Surface_pseudoElementCSS__1qto6jt9", variantClassNames: { elevation: { flat: "Surface_pseudoElementCSS_elevation_flat__1qto6jta", raised: "Surface_pseudoElementCSS_elevation_raised__1qto6jtb", floating: "Surface_pseudoElementCSS_elevation_floating__1qto6jtc" }, dragged: { true: "Surface_pseudoElementCSS_dragged_true__1qto6jtd" } }, defaultVariants: {}, compoundVariants: [] });
5
+ var surfaceCSS = _7a468({ defaultClassName: "Surface_surfaceCSS__1qto6jt6", variantClassNames: { selected: { true: "Surface_surfaceCSS_selected_true__1qto6jt7", false: "Surface_surfaceCSS_selected_false__1qto6jt8" } }, defaultVariants: {}, compoundVariants: [] });
6
+ export {
7
+ pseudoElementCSS,
8
+ surfaceCSS
9
+ };
10
+ //# sourceMappingURL=Surface.sty.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/layouts/surface/Surface.css.ts"],
4
+ "sourcesContent": ["import '../../styles/colorUtils.css';\nimport './Surface.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var pseudoElementCSS = _7a468({defaultClassName:'Surface_pseudoElementCSS__1qto6jt9',variantClassNames:{elevation:{flat:'Surface_pseudoElementCSS_elevation_flat__1qto6jta',raised:'Surface_pseudoElementCSS_elevation_raised__1qto6jtb',floating:'Surface_pseudoElementCSS_elevation_floating__1qto6jtc'},dragged:{true:'Surface_pseudoElementCSS_dragged_true__1qto6jtd'}},defaultVariants:{},compoundVariants:[]});\nexport var surfaceCSS = _7a468({defaultClassName:'Surface_surfaceCSS__1qto6jt6',variantClassNames:{selected:{true:'Surface_surfaceCSS_selected_true__1qto6jt7',false:'Surface_surfaceCSS_selected_false__1qto6jt8'}},defaultVariants:{},compoundVariants:[]});"],
5
+ "mappings": "AAAA,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,mBAAmB,OAAO,EAAC,kBAAiB,sCAAqC,mBAAkB,EAAC,WAAU,EAAC,MAAK,qDAAoD,QAAO,uDAAsD,UAAS,wDAAuD,GAAE,SAAQ,EAAC,MAAK,kDAAiD,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;AACpZ,IAAI,aAAa,OAAO,EAAC,kBAAiB,gCAA+B,mBAAkB,EAAC,UAAS,EAAC,MAAK,8CAA6C,OAAM,8CAA6C,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,5 @@
1
+ var surfaceBorderRadius = "var(--surfaceBorderRadius__1igzksy0)";
2
+ export {
3
+ surfaceBorderRadius
4
+ };
5
+ //# sourceMappingURL=variables.sty.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/layouts/surface/variables.css.ts"],
4
+ "sourcesContent": ["export var surfaceBorderRadius = 'var(--surfaceBorderRadius__1igzksy0)';"],
5
+ "mappings": "AAAO,IAAI,sBAAsB;",
6
+ "names": []
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=layout.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -1,11 +1,11 @@
1
- .Blockquote_blockquoteCSS__18f615k0 {
1
+ .Blockquote_blockquoteCSS__1knl9z60 {
2
2
  position: relative;
3
3
  margin: var(--dt-spacings-size-0, 0);
4
4
  padding-left: var(--dt-spacings-size-40, 40px);
5
5
  word-break: normal;
6
6
  overflow-wrap: anywhere;
7
7
  }
8
- .Blockquote_blockquoteCSS__18f615k0:before {
8
+ .Blockquote_blockquoteCSS__1knl9z60:before {
9
9
  content: "";
10
10
  position: absolute;
11
11
  top: 0;
@@ -1,7 +1,7 @@
1
1
  {
2
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"],
3
+ "sources": ["../../../../src/typography/block-quote/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 * The `Blockquote` component wraps longer text blocks and indicates that the passage is quoted from another source.\n * @public\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
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
6
  "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import "./Blockquote.css";
2
- var blockquoteCSS = "Blockquote_blockquoteCSS__18f615k0";
2
+ var blockquoteCSS = "Blockquote_blockquoteCSS__1knl9z60";
3
3
  export {
4
4
  blockquoteCSS
5
5
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/typography/BlockQuote/Blockquote.css.ts"],
4
- "sourcesContent": ["import './Blockquote.css';\nexport var blockquoteCSS = 'Blockquote_blockquoteCSS__18f615k0';"],
3
+ "sources": ["../../../../src/typography/block-quote/Blockquote.css.ts"],
4
+ "sourcesContent": ["import './Blockquote.css';\nexport var blockquoteCSS = 'Blockquote_blockquoteCSS__1knl9z60';"],
5
5
  "mappings": "AAAA,OAAO;AACA,IAAI,gBAAgB;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- .Code_codeCSS__1lx0ryl0 {
1
+ .Code_codeCSS__1v51izp0 {
2
2
  background: var(--dt-colors-background-field-neutral-emphasized, #dadbe7);
3
3
  padding-top: var(--dt-spacings-size-0, 0);
4
4
  padding-bottom: var(--dt-spacings-size-0, 0);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/typography/Code/Code.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport React, { forwardRef } from 'react';\n\nimport { codeCSS } from './Code.sty.js';\nimport {\n type DataTestId,\n type StylingProps,\n type WithChildren,\n} from '../../core/index.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\n\n/**\n * The props for the Code component.\n * @public\n */\nexport interface CodeProps\n extends WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {}\n\n/**\n * @public\n * Use the `Code` component to display snippets of code inline. If you want to\n * display a block of code, use the\n * {@link https://developer.dynatrace.com/design/components-preview/content/CodeSnippet/ | `CodeSnippet`}\n * component instead.\n */\nexport const Code = /* @__PURE__ */ forwardRef<HTMLElement, CodeProps>(\n (props, ref) => {\n const {\n children,\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 return (\n <code\n ref={ref}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n className={clsx(codeCSS, consumerClassName)}\n style={consumerStyle}\n {...remainingProps}\n >\n {children}\n </code>\n );\n },\n);\n\n(Code as typeof Code & { displayName: string }).displayName = 'Code';\n"],
3
+ "sources": ["../../../../src/typography/code/Code.tsx"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport React, { forwardRef } from 'react';\n\nimport { codeCSS } from './Code.sty.js';\nimport {\n type DataTestId,\n type StylingProps,\n type WithChildren,\n} from '../../core/index.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\n\n/**\n * The props for the Code component.\n * @public\n */\nexport interface CodeProps\n extends WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {}\n\n/**\n * Use the `Code` component to display snippets of code inline. If you want to\n * display a block of code, use the\n * {@link https://developer.dynatrace.com/design/components-preview/content/CodeSnippet/ | `CodeSnippet`}\n * component instead.\n * @public\n */\nexport const Code = /* @__PURE__ */ forwardRef<HTMLElement, CodeProps>(\n (props, ref) => {\n const {\n children,\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 return (\n <code\n ref={ref}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n className={clsx(codeCSS, consumerClassName)}\n style={consumerStyle}\n {...remainingProps}\n >\n {children}\n </code>\n );\n },\n);\n\n(Code as typeof Code & { displayName: string }).displayName = 'Code';\n"],
5
5
  "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAAS,kBAAkB;AAElC,SAAS,eAAe;AAyBjB,MAAM,OAAuB;AAAA,EAClC,CAAC,OAAO,QAAQ;AACd,UAAM;AAAA,MACJ;AAAA,MACA,eAAe;AAAA,MACf,mBAAmB;AAAA,MACnB,oBAAoB;AAAA,MACpB,WAAW;AAAA,MACX,OAAO;AAAA,MACP,GAAG;AAAA,IACL,IAAI;AACJ,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QAClB,WAAW,KAAK,SAAS,iBAAiB;AAAA,QAC1C,OAAO;AAAA,QACN,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEC,KAA+C,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import "./Code.css";
2
- var codeCSS = "Code_codeCSS__1lx0ryl0";
2
+ var codeCSS = "Code_codeCSS__1v51izp0";
3
3
  export {
4
4
  codeCSS
5
5
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/typography/Code/Code.css.ts"],
4
- "sourcesContent": ["import './Code.css';\nexport var codeCSS = 'Code_codeCSS__1lx0ryl0';"],
3
+ "sources": ["../../../../src/typography/code/Code.css.ts"],
4
+ "sourcesContent": ["import './Code.css';\nexport var codeCSS = 'Code_codeCSS__1v51izp0';"],
5
5
  "mappings": "AAAA,OAAO;AACA,IAAI,UAAU;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- .Emphasis_emphasisCSS__19xtnhr0 {
1
+ .Emphasis_emphasisCSS__1r35rtu0 {
2
2
  font-style: italic;
3
3
  overflow-wrap: break-word;
4
4
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/typography/Emphasis/Emphasis.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport React, { forwardRef } from 'react';\n\nimport { emphasisCSS } from './Emphasis.sty.js';\nimport {\n type DataTestId,\n type StylingProps,\n type WithChildren,\n} from '../../core/index.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\n\n/**\n * The props for the Emphasis component.\n * @public\n */\nexport interface EmphasisProps\n extends WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {}\n\n/**\n * @public\n * The `Emphasis` component adds visual and semantic emphasis to stressed or essential content.\n */\nexport const Emphasis = /* @__PURE__ */ forwardRef<HTMLElement, EmphasisProps>(\n (props, ref) => {\n const {\n children,\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 <em\n ref={ref}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n className={clsx(emphasisCSS, consumerClassName)}\n style={consumerStyle}\n {...remainingProps}\n >\n {children}\n </em>\n );\n },\n);\n\n(Emphasis as typeof Emphasis & { displayName: string }).displayName =\n 'Emphasis';\n"],
3
+ "sources": ["../../../../src/typography/emphasis/Emphasis.tsx"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport React, { forwardRef } from 'react';\n\nimport { emphasisCSS } from './Emphasis.sty.js';\nimport {\n type DataTestId,\n type StylingProps,\n type WithChildren,\n} from '../../core/index.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\n\n/**\n * The props for the Emphasis component.\n * @public\n */\nexport interface EmphasisProps\n extends WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {}\n\n/**\n * The `Emphasis` component adds visual and semantic emphasis to stressed or essential content.\n * @public\n */\nexport const Emphasis = /* @__PURE__ */ forwardRef<HTMLElement, EmphasisProps>(\n (props, ref) => {\n const {\n children,\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 <em\n ref={ref}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n className={clsx(emphasisCSS, consumerClassName)}\n style={consumerStyle}\n {...remainingProps}\n >\n {children}\n </em>\n );\n },\n);\n\n(Emphasis as typeof Emphasis & { displayName: string }).displayName =\n 'Emphasis';\n"],
5
5
  "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAAS,kBAAkB;AAElC,SAAS,mBAAmB;AAsBrB,MAAM,WAA2B;AAAA,EACtC,CAAC,OAAO,QAAQ;AACd,UAAM;AAAA,MACJ;AAAA,MACA,eAAe;AAAA,MACf,mBAAmB;AAAA,MACnB,oBAAoB;AAAA,MACpB,WAAW;AAAA,MACX,OAAO;AAAA,MACP,GAAG;AAAA,IACL,IAAI;AAEJ,WACE;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QAClB,WAAW,KAAK,aAAa,iBAAiB;AAAA,QAC9C,OAAO;AAAA,QACN,GAAG;AAAA;AAAA,MAEH;AAAA,IACH;AAAA,EAEJ;AACF;AAEC,SAAuD,cACtD;",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import "./Emphasis.css";
2
- var emphasisCSS = "Emphasis_emphasisCSS__19xtnhr0";
2
+ var emphasisCSS = "Emphasis_emphasisCSS__1r35rtu0";
3
3
  export {
4
4
  emphasisCSS
5
5
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/typography/Emphasis/Emphasis.css.ts"],
4
- "sourcesContent": ["import './Emphasis.css';\nexport var emphasisCSS = 'Emphasis_emphasisCSS__19xtnhr0';"],
3
+ "sources": ["../../../../src/typography/emphasis/Emphasis.css.ts"],
4
+ "sourcesContent": ["import './Emphasis.css';\nexport var emphasisCSS = 'Emphasis_emphasisCSS__1r35rtu0';"],
5
5
  "mappings": "AAAA,OAAO;AACA,IAAI,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,23 +1,23 @@
1
- .ExternalLink_externalLinkCSS__8noiqs0 {
1
+ .ExternalLink_externalLinkCSS__1v1skpy0 {
2
2
  display: inline-block;
3
3
  color: var(--dt-colors-text-primary-default, #454cc9);
4
4
  text-decoration: underline;
5
5
  overflow-wrap: anywhere;
6
6
  }
7
- .ExternalLink_externalLinkCSS__8noiqs0:hover {
7
+ .ExternalLink_externalLinkCSS__1v1skpy0:hover {
8
8
  color: var(--dt-colors-text-primary-default-hover, #3332ae);
9
9
  }
10
- .ExternalLink_externalLinkCSS__8noiqs0:active {
10
+ .ExternalLink_externalLinkCSS__1v1skpy0:active {
11
11
  color: var(--dt-colors-text-primary-default-active, #241193);
12
12
  }
13
- .ExternalLink_externalLinkCSS__8noiqs0:focus-visible {
13
+ .ExternalLink_externalLinkCSS__1v1skpy0:focus-visible {
14
14
  text-decoration: none;
15
15
  }
16
- .ExternalLink_externalLinkCSS__8noiqs0 > span {
16
+ .ExternalLink_externalLinkCSS__1v1skpy0 > span {
17
17
  white-space: nowrap;
18
18
  display: inline-flex;
19
19
  }
20
- .ExternalLink_externalLinkCSS__8noiqs0 > span > svg {
20
+ .ExternalLink_externalLinkCSS__1v1skpy0 > span > svg {
21
21
  margin-left: var(--dt-spacings-size-2, 2px);
22
22
  align-self: center;
23
23
  min-width: var(--dt-spacings-size-20, 20px);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/typography/ExternalLink/ExternalLink.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport React, { forwardRef, MouseEventHandler } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { ExternalLinkIcon } from '@dynatrace/strato-icons';\n\nimport { externalLinkCSS } from './ExternalLink.sty.js';\nimport {\n type DataTestId,\n type StylingProps,\n type WithChildren,\n _mergeProps,\n} from '../../core/index.js';\nimport { useFocusRing } from '../../core/styles/useFocusRing.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\n\n/**\n * The props for the ExternalLink component.\n * @public\n */\nexport interface ExternalLinkProps\n extends WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {\n /** The href used for the link. */\n href: string;\n /** Callback handler called on click. */\n onClick?: MouseEventHandler;\n}\n\n/**\n * @public\n * Use the `ExternalLink` component to link outside of the\n * Dynatrace platform. For resources within the Dynatrace platform, use the\n * {@link https://developer.dynatrace.com/design/components/typography/Link/ | `Link`}\n * component instead.\n */\nexport const ExternalLink = /* @__PURE__ */ forwardRef<\n HTMLAnchorElement,\n ExternalLinkProps\n>((props, ref) => {\n const {\n children,\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 const { focusProps, focusClassName } = useFocusRing({\n variant: 'primary',\n isMinimal: true,\n });\n\n const intl = useIntl();\n\n return (\n <a\n ref={ref}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n className={clsx(focusClassName, externalLinkCSS, consumerClassName)}\n style={consumerStyle}\n {..._mergeProps(remainingProps, focusProps)}\n >\n {children}\n <span>\n &#65279;\n <ExternalLinkIcon\n aria-hidden=\"false\"\n // https://www.w3.org/WAI/tutorials/images/functional/#example-3-icon-image-conveying-information-within-link-text\n aria-label={intl.formatMessage({\n defaultMessage: 'Opening the link in a new window',\n id: 'JzYy8MUVfPcyf4l5',\n description:\n 'External link icon that describes the external link icon',\n })}\n />\n </span>\n </a>\n );\n});\n\n(ExternalLink as typeof ExternalLink & { displayName: string }).displayName =\n 'ExternalLink';\n"],
3
+ "sources": ["../../../../src/typography/external-link/ExternalLink.tsx"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport React, { forwardRef, MouseEventHandler } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { ExternalLinkIcon } from '@dynatrace/strato-icons';\n\nimport { externalLinkCSS } from './ExternalLink.sty.js';\nimport {\n type DataTestId,\n type StylingProps,\n type WithChildren,\n _mergeProps,\n} from '../../core/index.js';\nimport { useFocusRing } from '../../core/styles/useFocusRing.js';\nimport type { MaskingProps } from '../../core/types/masking-props.js';\n\n/**\n * The props for the ExternalLink component.\n * @public\n */\nexport interface ExternalLinkProps\n extends WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {\n /** The href used for the link. */\n href: string;\n /** Callback handler called on click. */\n onClick?: MouseEventHandler;\n}\n\n/**\n * Use the `ExternalLink` component to link outside of the\n * Dynatrace platform. For resources within the Dynatrace platform, use the\n * {@link https://developer.dynatrace.com/design/components/typography/Link/ | `Link`}\n * component instead.\n * @public\n */\nexport const ExternalLink = /* @__PURE__ */ forwardRef<\n HTMLAnchorElement,\n ExternalLinkProps\n>((props, ref) => {\n const {\n children,\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 const { focusProps, focusClassName } = useFocusRing({\n variant: 'primary',\n isMinimal: true,\n });\n\n const intl = useIntl();\n\n return (\n <a\n ref={ref}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n className={clsx(focusClassName, externalLinkCSS, consumerClassName)}\n style={consumerStyle}\n {..._mergeProps(remainingProps, focusProps)}\n >\n {children}\n <span>\n &#65279;\n <ExternalLinkIcon\n aria-hidden=\"false\"\n // https://www.w3.org/WAI/tutorials/images/functional/#example-3-icon-image-conveying-information-within-link-text\n aria-label={intl.formatMessage({\n defaultMessage: 'Opening the link in a new window',\n id: 'JzYy8MUVfPcyf4l5',\n description:\n 'External link icon that describes the external link icon',\n })}\n />\n </span>\n </a>\n );\n});\n\n(ExternalLink as typeof ExternalLink & { displayName: string }).displayName =\n 'ExternalLink';\n"],
5
5
  "mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAAS,kBAAqC;AACrD,SAAS,eAAe;AAExB,SAAS,wBAAwB;AAEjC,SAAS,uBAAuB;AAChC;AAAA,EAIE;AAAA,OACK;AACP,SAAS,oBAAoB;AAyBtB,MAAM,eAA+B,2BAG1C,CAAC,OAAO,QAAQ;AAChB,QAAM;AAAA,IACJ;AAAA,IACA,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,oBAAoB;AAAA,IACpB,WAAW;AAAA,IACX,OAAO;AAAA,IACP,GAAG;AAAA,EACL,IAAI;AAEJ,QAAM,EAAE,YAAY,eAAe,IAAI,aAAa;AAAA,IAClD,SAAS;AAAA,IACT,WAAW;AAAA,EACb,CAAC;AAED,QAAM,OAAO,QAAQ;AAErB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,QAAO;AAAA,MACP,KAAI;AAAA,MACJ,eAAa;AAAA,MACb,mBAAiB;AAAA,MACjB,oBAAkB;AAAA,MAClB,WAAW,KAAK,gBAAgB,iBAAiB,iBAAiB;AAAA,MAClE,OAAO;AAAA,MACN,GAAG,YAAY,gBAAgB,UAAU;AAAA;AAAA,IAEzC;AAAA,IACD,oCAAC,cAAK,UAEJ;AAAA,MAAC;AAAA;AAAA,QACC,eAAY;AAAA,QAEZ,cAAY,KAAK,cAAc;AAAA,UAC7B,gBAAgB;AAAA,UAChB,IAAI;AAAA,UACJ,aACE;AAAA,QACJ,CAAC;AAAA;AAAA,IACH,CACF;AAAA,EACF;AAEJ,CAAC;AAEA,aAA+D,cAC9D;",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import "./ExternalLink.css";
2
- var externalLinkCSS = "ExternalLink_externalLinkCSS__8noiqs0";
2
+ var externalLinkCSS = "ExternalLink_externalLinkCSS__1v1skpy0";
3
3
  export {
4
4
  externalLinkCSS
5
5
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../src/typography/ExternalLink/ExternalLink.css.ts"],
4
- "sourcesContent": ["import './ExternalLink.css';\nexport var externalLinkCSS = 'ExternalLink_externalLinkCSS__8noiqs0';"],
3
+ "sources": ["../../../../src/typography/external-link/ExternalLink.css.ts"],
4
+ "sourcesContent": ["import './ExternalLink.css';\nexport var externalLinkCSS = 'ExternalLink_externalLinkCSS__1v1skpy0';"],
5
5
  "mappings": "AAAA,OAAO;AACA,IAAI,kBAAkB;",
6
6
  "names": []
7
7
  }
@@ -1,10 +1,10 @@
1
- .Heading_headingCSS__u4t9450 {
1
+ .Heading_headingCSS__5ei34w0 {
2
2
  margin: 0;
3
3
  overflow-wrap: break-word;
4
4
  font-style: normal;
5
5
  color: var(--dt-colors-text-neutral-default, #2b2a58);
6
6
  }
7
- .Heading_headingCSS_visualLevel_1__u4t9451 {
7
+ .Heading_headingCSS_visualLevel_1__5ei34w1 {
8
8
  font-family: var(--dt-typography-heading-level-1-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
9
9
  font-size: var(--dt-typography-heading-level-1-size, 32px);
10
10
  font-weight: var(--dt-typography-heading-level-1-weight, 600);
@@ -12,7 +12,7 @@
12
12
  text-transform: var(--dt-typography-heading-level-1-text-transform, none);
13
13
  text-decoration: var(--dt-typography-heading-level-1-text-decoration, none);
14
14
  }
15
- .Heading_headingCSS_visualLevel_2__u4t9452 {
15
+ .Heading_headingCSS_visualLevel_2__5ei34w2 {
16
16
  font-family: var(--dt-typography-heading-level-2-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
17
17
  font-size: var(--dt-typography-heading-level-2-size, 28px);
18
18
  font-weight: var(--dt-typography-heading-level-2-weight, 600);
@@ -20,7 +20,7 @@
20
20
  text-transform: var(--dt-typography-heading-level-2-text-transform, none);
21
21
  text-decoration: var(--dt-typography-heading-level-2-text-decoration, none);
22
22
  }
23
- .Heading_headingCSS_visualLevel_3__u4t9453 {
23
+ .Heading_headingCSS_visualLevel_3__5ei34w3 {
24
24
  font-family: var(--dt-typography-heading-level-3-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
25
25
  font-size: var(--dt-typography-heading-level-3-size, 24px);
26
26
  font-weight: var(--dt-typography-heading-level-3-weight, 600);
@@ -28,7 +28,7 @@
28
28
  text-transform: var(--dt-typography-heading-level-3-text-transform, none);
29
29
  text-decoration: var(--dt-typography-heading-level-3-text-decoration, none);
30
30
  }
31
- .Heading_headingCSS_visualLevel_4__u4t9454 {
31
+ .Heading_headingCSS_visualLevel_4__5ei34w4 {
32
32
  font-family: var(--dt-typography-heading-level-4-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
33
33
  font-size: var(--dt-typography-heading-level-4-size, 20px);
34
34
  font-weight: var(--dt-typography-heading-level-4-weight, 600);
@@ -36,7 +36,7 @@
36
36
  text-transform: var(--dt-typography-heading-level-4-text-transform, none);
37
37
  text-decoration: var(--dt-typography-heading-level-4-text-decoration, none);
38
38
  }
39
- .Heading_headingCSS_visualLevel_5__u4t9455 {
39
+ .Heading_headingCSS_visualLevel_5__5ei34w5 {
40
40
  font-family: var(--dt-typography-heading-level-5-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
41
41
  font-size: var(--dt-typography-heading-level-5-size, 16px);
42
42
  font-weight: var(--dt-typography-heading-level-5-weight, 600);
@@ -44,7 +44,7 @@
44
44
  text-transform: var(--dt-typography-heading-level-5-text-transform, none);
45
45
  text-decoration: var(--dt-typography-heading-level-5-text-decoration, none);
46
46
  }
47
- .Heading_headingCSS_visualLevel_6__u4t9456 {
47
+ .Heading_headingCSS_visualLevel_6__5ei34w6 {
48
48
  font-family: var(--dt-typography-heading-level-6-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
49
49
  font-size: var(--dt-typography-heading-level-6-size, 14px);
50
50
  font-weight: var(--dt-typography-heading-level-6-weight, 600);