@dynatrace/strato-components 1.16.0 → 1.17.0

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 (248) hide show
  1. package/buttons/button/Button.css +16 -16
  2. package/buttons/button/Button.js +16 -10
  3. package/buttons/button/Button.sty.js +4 -4
  4. package/buttons/intent-button/IntentButton.d.ts +2 -0
  5. package/buttons/intent-button/IntentButton.js +4 -1
  6. package/content/progress/ProgressBar.css +71 -71
  7. package/content/progress/ProgressBar.js +3 -1
  8. package/content/progress/ProgressBar.sty.js +5 -5
  9. package/content/progress/ProgressBarIcon.css +2 -2
  10. package/content/progress/ProgressBarIcon.sty.js +1 -1
  11. package/content/progress/ProgressBarLabel.css +3 -3
  12. package/content/progress/ProgressBarLabel.sty.js +1 -1
  13. package/content/progress/ProgressBarValue.css +5 -5
  14. package/content/progress/ProgressBarValue.sty.js +1 -1
  15. package/content/progress/ProgressCircle.css +40 -40
  16. package/content/progress/ProgressCircle.js +3 -1
  17. package/content/progress/ProgressCircle.sty.js +5 -5
  18. package/content/skeleton/Skeleton.css +7 -7
  19. package/content/skeleton/Skeleton.js +3 -0
  20. package/content/skeleton/Skeleton.sty.js +5 -5
  21. package/content/skeleton/SkeletonText.js +3 -0
  22. package/core/components/app-root/AppRoot.js +3 -1
  23. package/core/hooks/useBehavioralTrackingProps.d.ts +2 -0
  24. package/core/hooks/useBehavioralTrackingProps.js +46 -0
  25. package/core/index.d.ts +2 -0
  26. package/core/index.js +2 -0
  27. package/core/styles/focusRing.css +66 -66
  28. package/core/styles/focusRing.sty.d.ts +10 -6
  29. package/core/styles/focusRing.sty.js +2 -2
  30. package/core/styles/focusRingStatic.css +44 -0
  31. package/core/styles/focusRingStatic.sty.d.ts +77 -0
  32. package/core/styles/focusRingStatic.sty.js +26 -0
  33. package/core/styles/useFocusRing.d.ts +7 -6
  34. package/core/styles/useFocusRing.js +13 -13
  35. package/core/types/behavior-tracking-props.d.ts +33 -0
  36. package/core/types/behavior-tracking-props.js +16 -0
  37. package/core/utils/colorUtils.css +60 -60
  38. package/core/utils/colorUtils.sty.js +2 -2
  39. package/esm/buttons/button/Button.css +16 -16
  40. package/esm/buttons/button/Button.js +16 -10
  41. package/esm/buttons/button/Button.js.map +2 -2
  42. package/esm/buttons/button/Button.sty.js +4 -4
  43. package/esm/buttons/button/Button.sty.js.map +1 -1
  44. package/esm/buttons/index.js.map +1 -1
  45. package/esm/buttons/intent-button/IntentButton.js +4 -1
  46. package/esm/buttons/intent-button/IntentButton.js.map +2 -2
  47. package/esm/content/progress/ProgressBar.css +71 -71
  48. package/esm/content/progress/ProgressBar.js +3 -1
  49. package/esm/content/progress/ProgressBar.js.map +2 -2
  50. package/esm/content/progress/ProgressBar.sty.js +5 -5
  51. package/esm/content/progress/ProgressBar.sty.js.map +1 -1
  52. package/esm/content/progress/ProgressBarIcon.css +2 -2
  53. package/esm/content/progress/ProgressBarIcon.sty.js +1 -1
  54. package/esm/content/progress/ProgressBarIcon.sty.js.map +1 -1
  55. package/esm/content/progress/ProgressBarLabel.css +3 -3
  56. package/esm/content/progress/ProgressBarLabel.sty.js +1 -1
  57. package/esm/content/progress/ProgressBarLabel.sty.js.map +1 -1
  58. package/esm/content/progress/ProgressBarValue.css +5 -5
  59. package/esm/content/progress/ProgressBarValue.sty.js +1 -1
  60. package/esm/content/progress/ProgressBarValue.sty.js.map +1 -1
  61. package/esm/content/progress/ProgressCircle.css +40 -40
  62. package/esm/content/progress/ProgressCircle.js +3 -1
  63. package/esm/content/progress/ProgressCircle.js.map +2 -2
  64. package/esm/content/progress/ProgressCircle.sty.js +5 -5
  65. package/esm/content/progress/ProgressCircle.sty.js.map +1 -1
  66. package/esm/content/skeleton/Skeleton.css +7 -7
  67. package/esm/content/skeleton/Skeleton.js +3 -0
  68. package/esm/content/skeleton/Skeleton.js.map +2 -2
  69. package/esm/content/skeleton/Skeleton.sty.js +5 -5
  70. package/esm/content/skeleton/Skeleton.sty.js.map +1 -1
  71. package/esm/content/skeleton/SkeletonText.js +3 -0
  72. package/esm/content/skeleton/SkeletonText.js.map +2 -2
  73. package/esm/core/components/app-root/AppRoot.js +3 -1
  74. package/esm/core/components/app-root/AppRoot.js.map +2 -2
  75. package/esm/core/hooks/useBehavioralTrackingProps.js +27 -0
  76. package/esm/core/hooks/useBehavioralTrackingProps.js.map +7 -0
  77. package/esm/core/index.js +4 -0
  78. package/esm/core/index.js.map +2 -2
  79. package/esm/core/styles/focusRing.css +66 -66
  80. package/esm/core/styles/focusRing.sty.js +2 -2
  81. package/esm/core/styles/focusRing.sty.js.map +1 -1
  82. package/esm/core/styles/focusRingStatic.css +44 -0
  83. package/esm/core/styles/focusRingStatic.sty.js +7 -0
  84. package/esm/core/styles/focusRingStatic.sty.js.map +7 -0
  85. package/esm/core/styles/useFocusRing.js +15 -15
  86. package/esm/core/styles/useFocusRing.js.map +2 -2
  87. package/esm/core/types/behavior-tracking-props.js +1 -0
  88. package/esm/core/types/behavior-tracking-props.js.map +7 -0
  89. package/esm/core/utils/colorUtils.css +60 -60
  90. package/esm/core/utils/colorUtils.sty.js +2 -2
  91. package/esm/core/utils/colorUtils.sty.js.map +1 -1
  92. package/esm/layouts/container/Container.css +4 -4
  93. package/esm/layouts/container/Container.sty.js +1 -1
  94. package/esm/layouts/container/Container.sty.js.map +1 -1
  95. package/esm/layouts/divider/Divider.css +6 -6
  96. package/esm/layouts/divider/Divider.sty.js +1 -1
  97. package/esm/layouts/divider/Divider.sty.js.map +1 -1
  98. package/esm/layouts/surface/Surface.css +39 -39
  99. package/esm/layouts/surface/Surface.js +2 -6
  100. package/esm/layouts/surface/Surface.js.map +2 -2
  101. package/esm/layouts/surface/Surface.sty.js +2 -2
  102. package/esm/layouts/surface/Surface.sty.js.map +1 -1
  103. package/esm/layouts/surface/variables.sty.js +1 -1
  104. package/esm/layouts/surface/variables.sty.js.map +1 -1
  105. package/esm/styles/colorUtils.css +60 -60
  106. package/esm/styles/colorUtils.sty.js +2 -2
  107. package/esm/styles/colorUtils.sty.js.map +1 -1
  108. package/esm/styles/container.css +47 -47
  109. package/esm/styles/container.sty.js +2 -2
  110. package/esm/styles/container.sty.js.map +1 -1
  111. package/esm/styles/ellipsis.css +1 -1
  112. package/esm/styles/ellipsis.sty.js +1 -1
  113. package/esm/styles/ellipsis.sty.js.map +1 -1
  114. package/esm/styles/field.css +153 -153
  115. package/esm/styles/field.sty.js +2 -2
  116. package/esm/styles/field.sty.js.map +1 -1
  117. package/esm/styles/sprinkles.css +262 -262
  118. package/esm/styles/sprinkles.sty.js +1 -1
  119. package/esm/styles/sprinkles.sty.js.map +1 -1
  120. package/esm/styles/textStyle.css +8 -8
  121. package/esm/styles/textStyle.sty.js +1 -1
  122. package/esm/styles/textStyle.sty.js.map +1 -1
  123. package/esm/typography/block-quote/Blockquote.css +2 -2
  124. package/esm/typography/block-quote/Blockquote.js +3 -1
  125. package/esm/typography/block-quote/Blockquote.js.map +2 -2
  126. package/esm/typography/block-quote/Blockquote.sty.js +1 -1
  127. package/esm/typography/block-quote/Blockquote.sty.js.map +1 -1
  128. package/esm/typography/code/Code.css +1 -1
  129. package/esm/typography/code/Code.js +3 -1
  130. package/esm/typography/code/Code.js.map +2 -2
  131. package/esm/typography/code/Code.sty.js +1 -1
  132. package/esm/typography/code/Code.sty.js.map +1 -1
  133. package/esm/typography/emphasis/Emphasis.css +1 -1
  134. package/esm/typography/emphasis/Emphasis.js +3 -1
  135. package/esm/typography/emphasis/Emphasis.js.map +2 -2
  136. package/esm/typography/emphasis/Emphasis.sty.js +1 -1
  137. package/esm/typography/emphasis/Emphasis.sty.js.map +1 -1
  138. package/esm/typography/external-link/ExternalLink.css +8 -5
  139. package/esm/typography/external-link/ExternalLink.js +6 -13
  140. package/esm/typography/external-link/ExternalLink.js.map +2 -2
  141. package/esm/typography/external-link/ExternalLink.sty.js +2 -1
  142. package/esm/typography/external-link/ExternalLink.sty.js.map +2 -2
  143. package/esm/typography/heading/Heading.css +7 -7
  144. package/esm/typography/heading/Heading.js +3 -1
  145. package/esm/typography/heading/Heading.js.map +2 -2
  146. package/esm/typography/heading/Heading.sty.js +1 -1
  147. package/esm/typography/heading/Heading.sty.js.map +1 -1
  148. package/esm/typography/highlight/Highlight.css +2 -2
  149. package/esm/typography/highlight/Highlight.js +3 -1
  150. package/esm/typography/highlight/Highlight.js.map +2 -2
  151. package/esm/typography/highlight/Highlight.sty.js +1 -1
  152. package/esm/typography/highlight/Highlight.sty.js.map +1 -1
  153. package/esm/typography/link/Link.css +6 -3
  154. package/esm/typography/link/Link.js +6 -19
  155. package/esm/typography/link/Link.js.map +2 -2
  156. package/esm/typography/link/Link.sty.js +2 -1
  157. package/esm/typography/link/Link.sty.js.map +2 -2
  158. package/esm/typography/list/List.css +4 -4
  159. package/esm/typography/list/List.js +3 -1
  160. package/esm/typography/list/List.js.map +2 -2
  161. package/esm/typography/list/List.sty.js +2 -2
  162. package/esm/typography/list/List.sty.js.map +1 -1
  163. package/esm/typography/paragraph/Paragraph.css +3 -3
  164. package/esm/typography/paragraph/Paragraph.js +3 -1
  165. package/esm/typography/paragraph/Paragraph.js.map +2 -2
  166. package/esm/typography/paragraph/Paragraph.sty.js +1 -1
  167. package/esm/typography/paragraph/Paragraph.sty.js.map +1 -1
  168. package/esm/typography/strikethrough/Strikethrough.css +1 -1
  169. package/esm/typography/strikethrough/Strikethrough.js +3 -1
  170. package/esm/typography/strikethrough/Strikethrough.js.map +2 -2
  171. package/esm/typography/strikethrough/Strikethrough.sty.js +1 -1
  172. package/esm/typography/strikethrough/Strikethrough.sty.js.map +1 -1
  173. package/esm/typography/strong/Strong.css +1 -1
  174. package/esm/typography/strong/Strong.js +3 -1
  175. package/esm/typography/strong/Strong.js.map +2 -2
  176. package/esm/typography/strong/Strong.sty.js +1 -1
  177. package/esm/typography/strong/Strong.sty.js.map +1 -1
  178. package/esm/typography/text/Text.css +3 -3
  179. package/esm/typography/text/Text.js +4 -1
  180. package/esm/typography/text/Text.js.map +2 -2
  181. package/esm/typography/text/Text.sty.js +1 -1
  182. package/esm/typography/text/Text.sty.js.map +1 -1
  183. package/esm/typography/text-ellipsis/TextEllipsis.css +6 -6
  184. package/esm/typography/text-ellipsis/TextEllipsis.js +8 -1
  185. package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
  186. package/esm/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
  187. package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +1 -1
  188. package/layouts/container/Container.css +4 -4
  189. package/layouts/container/Container.sty.js +1 -1
  190. package/layouts/divider/Divider.css +6 -6
  191. package/layouts/divider/Divider.sty.js +1 -1
  192. package/layouts/surface/Surface.css +39 -39
  193. package/layouts/surface/Surface.js +2 -6
  194. package/layouts/surface/Surface.sty.js +2 -2
  195. package/layouts/surface/variables.sty.js +1 -1
  196. package/package.json +6 -6
  197. package/styles/colorUtils.css +60 -60
  198. package/styles/colorUtils.sty.js +2 -2
  199. package/styles/container.css +47 -47
  200. package/styles/container.sty.js +2 -2
  201. package/styles/ellipsis.css +1 -1
  202. package/styles/ellipsis.sty.js +1 -1
  203. package/styles/field.css +153 -153
  204. package/styles/field.sty.js +2 -2
  205. package/styles/sprinkles.css +262 -262
  206. package/styles/sprinkles.sty.d.ts +12 -12
  207. package/styles/sprinkles.sty.js +1 -1
  208. package/styles/textStyle.css +8 -8
  209. package/styles/textStyle.sty.js +1 -1
  210. package/typography/block-quote/Blockquote.css +2 -2
  211. package/typography/block-quote/Blockquote.js +3 -1
  212. package/typography/block-quote/Blockquote.sty.js +1 -1
  213. package/typography/code/Code.css +1 -1
  214. package/typography/code/Code.js +3 -1
  215. package/typography/code/Code.sty.js +1 -1
  216. package/typography/emphasis/Emphasis.css +1 -1
  217. package/typography/emphasis/Emphasis.js +3 -1
  218. package/typography/emphasis/Emphasis.sty.js +1 -1
  219. package/typography/external-link/ExternalLink.css +8 -5
  220. package/typography/external-link/ExternalLink.js +6 -13
  221. package/typography/external-link/ExternalLink.sty.js +2 -1
  222. package/typography/heading/Heading.css +7 -7
  223. package/typography/heading/Heading.js +3 -1
  224. package/typography/heading/Heading.sty.js +1 -1
  225. package/typography/highlight/Highlight.css +2 -2
  226. package/typography/highlight/Highlight.js +3 -1
  227. package/typography/highlight/Highlight.sty.js +1 -1
  228. package/typography/link/Link.css +6 -3
  229. package/typography/link/Link.js +6 -19
  230. package/typography/link/Link.sty.js +2 -1
  231. package/typography/list/List.css +4 -4
  232. package/typography/list/List.js +3 -1
  233. package/typography/list/List.sty.js +2 -2
  234. package/typography/paragraph/Paragraph.css +3 -3
  235. package/typography/paragraph/Paragraph.js +3 -1
  236. package/typography/paragraph/Paragraph.sty.js +1 -1
  237. package/typography/strikethrough/Strikethrough.css +1 -1
  238. package/typography/strikethrough/Strikethrough.js +3 -1
  239. package/typography/strikethrough/Strikethrough.sty.js +1 -1
  240. package/typography/strong/Strong.css +1 -1
  241. package/typography/strong/Strong.js +3 -1
  242. package/typography/strong/Strong.sty.js +1 -1
  243. package/typography/text/Text.css +3 -3
  244. package/typography/text/Text.js +4 -1
  245. package/typography/text/Text.sty.js +1 -1
  246. package/typography/text-ellipsis/TextEllipsis.css +6 -6
  247. package/typography/text-ellipsis/TextEllipsis.js +8 -1
  248. package/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
@@ -1,7 +1,7 @@
1
1
  import {
2
- useCallback,
3
2
  useEffect,
4
- useState
3
+ useState,
4
+ useMemo
5
5
  } from "react";
6
6
  import { focusRingCSS, focusRingFocusWithinCSS } from "./focusRing.sty.js";
7
7
  import { useFocusContext } from "../hooks/useFocusContext.js";
@@ -20,20 +20,20 @@ function useFocusRing(props = {}) {
20
20
  setIsFocused(false);
21
21
  }
22
22
  }, [disabled]);
23
- const onBlur = useCallback((e) => {
24
- if (e.currentTarget === e.target) {
25
- setIsFocused(false);
26
- }
27
- }, []);
28
- const onFocus = useCallback((e) => {
29
- if (e.currentTarget === e.target) {
30
- setIsFocused(true);
31
- }
23
+ const focusProps = useMemo(() => {
24
+ return {
25
+ onBlur: (event) => {
26
+ if (event.currentTarget === event.target) {
27
+ setIsFocused(false);
28
+ }
29
+ },
30
+ onFocus: (event) => {
31
+ if (event.currentTarget === event.target) {
32
+ setIsFocused(true);
33
+ }
34
+ }
35
+ };
32
36
  }, []);
33
- const focusProps = {
34
- onFocus,
35
- onBlur
36
- };
37
37
  if ((ignoreModality || modality === "keyboard") && isFocused || focusWithin) {
38
38
  if (isMinimal) {
39
39
  return {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/core/styles/useFocusRing.ts"],
4
- "sourcesContent": ["import {\n type FocusEvent as ReactFocusEvent,\n type FocusEventHandler,\n useCallback,\n useEffect,\n useState,\n} from 'react';\n\nimport { focusRingCSS, focusRingFocusWithinCSS } from './focusRing.sty.js';\nimport { useFocusContext } from '../hooks/useFocusContext.js';\n\n/** @internal */\nexport type VariantType =\n | 'neutral'\n | 'primary'\n | 'success'\n | 'warning'\n | 'critical';\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: ReactFocusEvent) => void;\n onBlur: (e: ReactFocusEvent) => 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,uBAAuB;AAyDzB,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,gBAAgB;AAErC,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;",
4
+ "sourcesContent": ["import {\n type FocusEvent as ReactFocusEvent,\n useEffect,\n useState,\n useMemo,\n} from 'react';\n\nimport { focusRingCSS, focusRingFocusWithinCSS } from './focusRing.sty.js';\nimport { useFocusContext } from '../hooks/useFocusContext.js';\n\n/** @public */\nexport type VariantType =\n | 'neutral'\n | 'primary'\n | 'success'\n | 'warning'\n | 'critical';\n\n/** @public */\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\n/** @public */\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: ReactFocusEvent) => void;\n onBlur?: (e: ReactFocusEvent) => 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 classNames that can be applied to the component in order to show the correct focus outline.\n * @public\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 focusProps = useMemo(() => {\n return {\n onBlur: (event: ReactFocusEvent) => {\n // trigger only when the self element is unfocused (stopPropagation)\n if (event.currentTarget === event.target) {\n setIsFocused(false);\n }\n },\n onFocus: (event: ReactFocusEvent) => {\n // trigger only when the self element is focused (stopPropagation)\n if (event.currentTarget === event.target) {\n setIsFocused(true);\n }\n },\n };\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,EAEE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,cAAc,+BAA+B;AACtD,SAAS,uBAAuB;AA2DzB,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,gBAAgB;AAErC,YAAU,MAAM;AACd,QAAI,UAAU;AACZ,mBAAa,KAAK;AAAA,IACpB;AAAA,EACF,GAAG,CAAC,QAAQ,CAAC;AAEb,QAAM,aAAa,QAAQ,MAAM;AAC/B,WAAO;AAAA,MACL,QAAQ,CAAC,UAA2B;AAElC,YAAI,MAAM,kBAAkB,MAAM,QAAQ;AACxC,uBAAa,KAAK;AAAA,QACpB;AAAA,MACF;AAAA,MACA,SAAS,CAAC,UAA2B;AAEnC,YAAI,MAAM,kBAAkB,MAAM,QAAQ;AACxC,uBAAa,IAAI;AAAA,QACnB;AAAA,MACF;AAAA,IACF;AAAA,EACF,GAAG,CAAC,CAAC;AAEL,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
6
  "names": []
7
7
  }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=behavior-tracking-props.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -1,75 +1,75 @@
1
- ._k096v44-1-16-0 {
2
- --_k096v40-1-16-0: var(--dt-colors-text-critical-default, #bb0731);
3
- --_k096v41-1-16-0: var(--dt-colors-icon-critical-default, #bb0731);
4
- --_k096v42-1-16-0: var(--dt-colors-border-critical-default, #f6d6d5);
1
+ ._k096v44-1-17-0 {
2
+ --_k096v40-1-17-0: var(--dt-colors-text-critical-default, #bb0731);
3
+ --_k096v41-1-17-0: var(--dt-colors-icon-critical-default, #bb0731);
4
+ --_k096v42-1-17-0: var(--dt-colors-border-critical-default, #f6d6d5);
5
5
  }
6
- ._k096v45-1-16-0 {
7
- --_k096v40-1-16-0: var(--dt-colors-text-neutral-default, #2f2f4f);
8
- --_k096v41-1-16-0: var(--dt-colors-icon-neutral-default, #2f2f4f);
9
- --_k096v42-1-16-0: var(--dt-colors-border-neutral-default, #dadbe4);
6
+ ._k096v45-1-17-0 {
7
+ --_k096v40-1-17-0: var(--dt-colors-text-neutral-default, #2f2f4f);
8
+ --_k096v41-1-17-0: var(--dt-colors-icon-neutral-default, #2f2f4f);
9
+ --_k096v42-1-17-0: var(--dt-colors-border-neutral-default, #dadbe4);
10
10
  }
11
- ._k096v46-1-16-0 {
12
- --_k096v40-1-16-0: var(--dt-colors-text-primary-default, #464cce);
13
- --_k096v41-1-16-0: var(--dt-colors-icon-primary-default, #464cce);
14
- --_k096v42-1-16-0: var(--dt-colors-border-primary-default, #d5dbf6);
11
+ ._k096v46-1-17-0 {
12
+ --_k096v40-1-17-0: var(--dt-colors-text-primary-default, #464cce);
13
+ --_k096v41-1-17-0: var(--dt-colors-icon-primary-default, #464cce);
14
+ --_k096v42-1-17-0: var(--dt-colors-border-primary-default, #d5dbf6);
15
15
  }
16
- ._k096v47-1-16-0 {
17
- --_k096v40-1-16-0: var(--dt-colors-text-success-default, #2d6761);
18
- --_k096v41-1-16-0: var(--dt-colors-icon-success-default, #2d6761);
19
- --_k096v42-1-16-0: var(--dt-colors-border-success-default, #d3dedd);
16
+ ._k096v47-1-17-0 {
17
+ --_k096v40-1-17-0: var(--dt-colors-text-success-default, #2d6761);
18
+ --_k096v41-1-17-0: var(--dt-colors-icon-success-default, #2d6761);
19
+ --_k096v42-1-17-0: var(--dt-colors-border-success-default, #d3dedd);
20
20
  }
21
- ._k096v48-1-16-0 {
22
- --_k096v40-1-16-0: var(--dt-colors-text-warning-default, #855400);
23
- --_k096v41-1-16-0: var(--dt-colors-icon-warning-default, #855400);
24
- --_k096v42-1-16-0: var(--dt-colors-border-warning-default, #f9ebdb);
21
+ ._k096v48-1-17-0 {
22
+ --_k096v40-1-17-0: var(--dt-colors-text-warning-default, #855400);
23
+ --_k096v41-1-17-0: var(--dt-colors-icon-warning-default, #855400);
24
+ --_k096v42-1-17-0: var(--dt-colors-border-warning-default, #f9ebdb);
25
25
  }
26
- ._k096v4d-1-16-0 {
27
- --_k096v40-1-16-0: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
28
- --_k096v41-1-16-0: var(--dt-colors-icon-primary-on-accent-default, #f4f4fb);
29
- --_k096v42-1-16-0: var(--dt-colors-border-primary-accent, #464cce);
26
+ ._k096v4d-1-17-0 {
27
+ --_k096v40-1-17-0: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
28
+ --_k096v41-1-17-0: var(--dt-colors-icon-primary-on-accent-default, #f4f4fb);
29
+ --_k096v42-1-17-0: var(--dt-colors-border-primary-accent, #464cce);
30
30
  }
31
- ._k096v4e-1-16-0 {
32
- --_k096v40-1-16-0: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
33
- --_k096v41-1-16-0: var(--dt-colors-icon-success-on-accent-default, #f1f4f4);
34
- --_k096v42-1-16-0: var(--dt-colors-border-success-accent, #2d6761);
31
+ ._k096v4e-1-17-0 {
32
+ --_k096v40-1-17-0: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
33
+ --_k096v41-1-17-0: var(--dt-colors-icon-success-on-accent-default, #f1f4f4);
34
+ --_k096v42-1-17-0: var(--dt-colors-border-success-accent, #2d6761);
35
35
  }
36
- ._k096v4f-1-16-0 {
37
- --_k096v40-1-16-0: var(--dt-colors-text-warning-on-accent-default, #272024);
38
- --_k096v41-1-16-0: var(--dt-colors-icon-warning-on-accent-default, #272024);
39
- --_k096v42-1-16-0: var(--dt-colors-border-warning-accent, #855400);
36
+ ._k096v4f-1-17-0 {
37
+ --_k096v40-1-17-0: var(--dt-colors-text-warning-on-accent-default, #272024);
38
+ --_k096v41-1-17-0: var(--dt-colors-icon-warning-on-accent-default, #272024);
39
+ --_k096v42-1-17-0: var(--dt-colors-border-warning-accent, #855400);
40
40
  }
41
- ._k096v4g-1-16-0 {
42
- --_k096v40-1-16-0: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
43
- --_k096v41-1-16-0: var(--dt-colors-icon-critical-on-accent-default, #f9f1f3);
44
- --_k096v42-1-16-0: var(--dt-colors-border-critical-accent, #bb0731);
41
+ ._k096v4g-1-17-0 {
42
+ --_k096v40-1-17-0: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
43
+ --_k096v41-1-17-0: var(--dt-colors-icon-critical-on-accent-default, #f9f1f3);
44
+ --_k096v42-1-17-0: var(--dt-colors-border-critical-accent, #bb0731);
45
45
  }
46
- ._k096v4h-1-16-0 {
47
- --_k096v40-1-16-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
48
- --_k096v41-1-16-0: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
49
- --_k096v42-1-16-0: var(--dt-colors-border-neutral-accent, #595a7d);
46
+ ._k096v4h-1-17-0 {
47
+ --_k096v40-1-17-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
48
+ --_k096v41-1-17-0: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
49
+ --_k096v42-1-17-0: var(--dt-colors-border-neutral-accent, #595a7d);
50
50
  }
51
- ._k096v4i-1-16-0 {
52
- --_k096v40-1-16-0: var(--dt-colors-text-primary-disabled, #595a7d80);
53
- --_k096v41-1-16-0: var(--dt-colors-icon-primary-disabled, #595a7d80);
54
- --_k096v42-1-16-0: var(--dt-colors-border-primary-disabled, #dadbe480);
51
+ ._k096v4i-1-17-0 {
52
+ --_k096v40-1-17-0: var(--dt-colors-text-primary-disabled, #595a7d80);
53
+ --_k096v41-1-17-0: var(--dt-colors-icon-primary-disabled, #595a7d80);
54
+ --_k096v42-1-17-0: var(--dt-colors-border-primary-disabled, #dadbe480);
55
55
  }
56
- ._k096v4j-1-16-0 {
57
- --_k096v40-1-16-0: var(--dt-colors-text-success-disabled, #595a7d80);
58
- --_k096v41-1-16-0: var(--dt-colors-icon-success-disabled, #595a7d80);
59
- --_k096v42-1-16-0: var(--dt-colors-border-success-disabled, #dadbe480);
56
+ ._k096v4j-1-17-0 {
57
+ --_k096v40-1-17-0: var(--dt-colors-text-success-disabled, #595a7d80);
58
+ --_k096v41-1-17-0: var(--dt-colors-icon-success-disabled, #595a7d80);
59
+ --_k096v42-1-17-0: var(--dt-colors-border-success-disabled, #dadbe480);
60
60
  }
61
- ._k096v4k-1-16-0 {
62
- --_k096v40-1-16-0: var(--dt-colors-text-warning-disabled, #595a7d80);
63
- --_k096v41-1-16-0: var(--dt-colors-icon-warning-disabled, #595a7d80);
64
- --_k096v42-1-16-0: var(--dt-colors-border-warning-disabled, #dadbe480);
61
+ ._k096v4k-1-17-0 {
62
+ --_k096v40-1-17-0: var(--dt-colors-text-warning-disabled, #595a7d80);
63
+ --_k096v41-1-17-0: var(--dt-colors-icon-warning-disabled, #595a7d80);
64
+ --_k096v42-1-17-0: var(--dt-colors-border-warning-disabled, #dadbe480);
65
65
  }
66
- ._k096v4l-1-16-0 {
67
- --_k096v40-1-16-0: var(--dt-colors-text-critical-disabled, #595a7d80);
68
- --_k096v41-1-16-0: var(--dt-colors-icon-critical-disabled, #595a7d80);
69
- --_k096v42-1-16-0: var(--dt-colors-border-critical-disabled, #dadbe480);
66
+ ._k096v4l-1-17-0 {
67
+ --_k096v40-1-17-0: var(--dt-colors-text-critical-disabled, #595a7d80);
68
+ --_k096v41-1-17-0: var(--dt-colors-icon-critical-disabled, #595a7d80);
69
+ --_k096v42-1-17-0: var(--dt-colors-border-critical-disabled, #dadbe480);
70
70
  }
71
- ._k096v4m-1-16-0 {
72
- --_k096v40-1-16-0: var(--dt-colors-text-neutral-disabled, #595a7d80);
73
- --_k096v41-1-16-0: var(--dt-colors-icon-neutral-disabled, #595a7d80);
74
- --_k096v42-1-16-0: var(--dt-colors-border-neutral-disabled, #dadbe480);
71
+ ._k096v4m-1-17-0 {
72
+ --_k096v40-1-17-0: var(--dt-colors-text-neutral-disabled, #595a7d80);
73
+ --_k096v41-1-17-0: var(--dt-colors-icon-neutral-disabled, #595a7d80);
74
+ --_k096v42-1-17-0: var(--dt-colors-border-neutral-disabled, #dadbe480);
75
75
  }
@@ -1,7 +1,7 @@
1
1
  import "./colorUtils.css";
2
2
  import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
3
- var colorUtilsCSS = _7a468({ defaultClassName: "_k096v43-1-16-0", variantClassNames: { color: { critical: "_k096v44-1-16-0", neutral: "_k096v45-1-16-0", primary: "_k096v46-1-16-0", success: "_k096v47-1-16-0", warning: "_k096v48-1-16-0" }, variant: { "default": "_k096v49-1-16-0", accent: "_k096v4a-1-16-0" }, disabled: { true: "_k096v4b-1-16-0", false: "_k096v4c-1-16-0" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "_k096v4d-1-16-0"], [{ color: "success", variant: "accent" }, "_k096v4e-1-16-0"], [{ color: "warning", variant: "accent" }, "_k096v4f-1-16-0"], [{ color: "critical", variant: "accent" }, "_k096v4g-1-16-0"], [{ color: "neutral", variant: "accent" }, "_k096v4h-1-16-0"], [{ color: "primary", disabled: true }, "_k096v4i-1-16-0"], [{ color: "success", disabled: true }, "_k096v4j-1-16-0"], [{ color: "warning", disabled: true }, "_k096v4k-1-16-0"], [{ color: "critical", disabled: true }, "_k096v4l-1-16-0"], [{ color: "neutral", disabled: true }, "_k096v4m-1-16-0"]] });
4
- var colorUtilsVars = { text: "var(--_k096v40-1-16-0)", icon: "var(--_k096v41-1-16-0)", borderColor: "var(--_k096v42-1-16-0)" };
3
+ var colorUtilsCSS = _7a468({ defaultClassName: "_k096v43-1-17-0", variantClassNames: { color: { critical: "_k096v44-1-17-0", neutral: "_k096v45-1-17-0", primary: "_k096v46-1-17-0", success: "_k096v47-1-17-0", warning: "_k096v48-1-17-0" }, variant: { "default": "_k096v49-1-17-0", accent: "_k096v4a-1-17-0" }, disabled: { true: "_k096v4b-1-17-0", false: "_k096v4c-1-17-0" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "_k096v4d-1-17-0"], [{ color: "success", variant: "accent" }, "_k096v4e-1-17-0"], [{ color: "warning", variant: "accent" }, "_k096v4f-1-17-0"], [{ color: "critical", variant: "accent" }, "_k096v4g-1-17-0"], [{ color: "neutral", variant: "accent" }, "_k096v4h-1-17-0"], [{ color: "primary", disabled: true }, "_k096v4i-1-17-0"], [{ color: "success", disabled: true }, "_k096v4j-1-17-0"], [{ color: "warning", disabled: true }, "_k096v4k-1-17-0"], [{ color: "critical", disabled: true }, "_k096v4l-1-17-0"], [{ color: "neutral", disabled: true }, "_k096v4m-1-17-0"]] });
4
+ var colorUtilsVars = { text: "var(--_k096v40-1-17-0)", icon: "var(--_k096v41-1-17-0)", borderColor: "var(--_k096v42-1-17-0)" };
5
5
  export {
6
6
  colorUtilsCSS,
7
7
  colorUtilsVars
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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:'_k096v43-1-16-0',variantClassNames:{color:{critical:'_k096v44-1-16-0',neutral:'_k096v45-1-16-0',primary:'_k096v46-1-16-0',success:'_k096v47-1-16-0',warning:'_k096v48-1-16-0'},variant:{'default':'_k096v49-1-16-0',accent:'_k096v4a-1-16-0'},disabled:{true:'_k096v4b-1-16-0',false:'_k096v4c-1-16-0'}},defaultVariants:{},compoundVariants:[[{color:'primary',variant:'accent'},'_k096v4d-1-16-0'],[{color:'success',variant:'accent'},'_k096v4e-1-16-0'],[{color:'warning',variant:'accent'},'_k096v4f-1-16-0'],[{color:'critical',variant:'accent'},'_k096v4g-1-16-0'],[{color:'neutral',variant:'accent'},'_k096v4h-1-16-0'],[{color:'primary',disabled:true},'_k096v4i-1-16-0'],[{color:'success',disabled:true},'_k096v4j-1-16-0'],[{color:'warning',disabled:true},'_k096v4k-1-16-0'],[{color:'critical',disabled:true},'_k096v4l-1-16-0'],[{color:'neutral',disabled:true},'_k096v4m-1-16-0']]});\nexport var colorUtilsVars = {text:'var(--_k096v40-1-16-0)',icon:'var(--_k096v41-1-16-0)',borderColor:'var(--_k096v42-1-16-0)'};"],
4
+ "sourcesContent": ["import './colorUtils.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var colorUtilsCSS = _7a468({defaultClassName:'_k096v43-1-17-0',variantClassNames:{color:{critical:'_k096v44-1-17-0',neutral:'_k096v45-1-17-0',primary:'_k096v46-1-17-0',success:'_k096v47-1-17-0',warning:'_k096v48-1-17-0'},variant:{'default':'_k096v49-1-17-0',accent:'_k096v4a-1-17-0'},disabled:{true:'_k096v4b-1-17-0',false:'_k096v4c-1-17-0'}},defaultVariants:{},compoundVariants:[[{color:'primary',variant:'accent'},'_k096v4d-1-17-0'],[{color:'success',variant:'accent'},'_k096v4e-1-17-0'],[{color:'warning',variant:'accent'},'_k096v4f-1-17-0'],[{color:'critical',variant:'accent'},'_k096v4g-1-17-0'],[{color:'neutral',variant:'accent'},'_k096v4h-1-17-0'],[{color:'primary',disabled:true},'_k096v4i-1-17-0'],[{color:'success',disabled:true},'_k096v4j-1-17-0'],[{color:'warning',disabled:true},'_k096v4k-1-17-0'],[{color:'critical',disabled:true},'_k096v4l-1-17-0'],[{color:'neutral',disabled:true},'_k096v4m-1-17-0']]});\nexport var colorUtilsVars = {text:'var(--_k096v40-1-17-0)',icon:'var(--_k096v41-1-17-0)',borderColor:'var(--_k096v42-1-17-0)'};"],
5
5
  "mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,gBAAgB,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,OAAM,EAAC,UAAS,mBAAkB,SAAQ,mBAAkB,SAAQ,mBAAkB,SAAQ,mBAAkB,SAAQ,kBAAiB,GAAE,SAAQ,EAAC,WAAU,mBAAkB,QAAO,kBAAiB,GAAE,UAAS,EAAC,MAAK,mBAAkB,OAAM,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,YAAW,SAAQ,SAAQ,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,YAAW,UAAS,KAAI,GAAE,iBAAiB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,iBAAiB,CAAC,EAAC,CAAC;AACt5B,IAAI,iBAAiB,EAAC,MAAK,0BAAyB,MAAK,0BAAyB,aAAY,yBAAwB;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,8 @@
1
- ._f32lcd0-1-16-0 {
1
+ ._f32lcd0-1-17-0 {
2
2
  border-style: var(--dt-borders-style-default, solid);
3
3
  border-width: var(--dt-borders-width-emphasized, 2px);
4
4
  border-radius: var(--dt-borders-radius-container-default, 9px);
5
- color: var(--_6levse0-1-16-0);
6
- border-color: var(--_6levse2-1-16-0);
7
- background-color: var(--_6levse1-1-16-0);
5
+ color: var(--_6levse0-1-17-0);
6
+ border-color: var(--_6levse2-1-17-0);
7
+ background-color: var(--_6levse1-1-17-0);
8
8
  }
@@ -1,6 +1,6 @@
1
1
  import "../../styles/container.css";
2
2
  import "./Container.css";
3
- var containerCSS = "_f32lcd0-1-16-0";
3
+ var containerCSS = "_f32lcd0-1-17-0";
4
4
  export {
5
5
  containerCSS
6
6
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/layouts/container/Container.css.ts"],
4
- "sourcesContent": ["import '../../styles/container.css';\nimport './Container.css';\nexport var containerCSS = '_f32lcd0-1-16-0';"],
4
+ "sourcesContent": ["import '../../styles/container.css';\nimport './Container.css';\nexport var containerCSS = '_f32lcd0-1-17-0';"],
5
5
  "mappings": "AAAA,OAAO;AACP,OAAO;AACA,IAAI,eAAe;",
6
6
  "names": []
7
7
  }
@@ -1,21 +1,21 @@
1
- ._1thxv8m0-1-16-0 {
1
+ ._1thxv8m0-1-17-0 {
2
2
  border: none;
3
3
  margin: 0;
4
4
  overflow-wrap: break-word;
5
- background-color: var(--_k096v42-1-16-0);
5
+ background-color: var(--_k096v42-1-17-0);
6
6
  }
7
- ._1thxv8m1-1-16-0 {
7
+ ._1thxv8m1-1-17-0 {
8
8
  width: 100%;
9
9
  height: var(--dt-borders-width-default, 1px);
10
10
  }
11
- ._1thxv8m2-1-16-0 {
11
+ ._1thxv8m2-1-17-0 {
12
12
  width: var(--dt-borders-width-default, 1px);
13
13
  height: 100%;
14
14
  }
15
- ._1thxv8m5-1-16-0 {
15
+ ._1thxv8m5-1-17-0 {
16
16
  flex-shrink: 0;
17
17
  }
18
- ._1thxv8m6-1-16-0 {
18
+ ._1thxv8m6-1-17-0 {
19
19
  flex-shrink: 0;
20
20
  width: var(--dt-borders-width-default, 1px);
21
21
  height: auto;
@@ -1,7 +1,7 @@
1
1
  import "../../core/utils/colorUtils.css";
2
2
  import "./Divider.css";
3
3
  import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
4
- var dividerCSS = _7a468({ defaultClassName: "_1thxv8m0-1-16-0", variantClassNames: { orientation: { horizontal: "_1thxv8m1-1-16-0", vertical: "_1thxv8m2-1-16-0" }, flexItem: { true: "_1thxv8m3-1-16-0", false: "_1thxv8m4-1-16-0" } }, defaultVariants: {}, compoundVariants: [[{ orientation: "horizontal", flexItem: false }, "_1thxv8m5-1-16-0"], [{ orientation: "vertical", flexItem: true }, "_1thxv8m6-1-16-0"]] });
4
+ var dividerCSS = _7a468({ defaultClassName: "_1thxv8m0-1-17-0", variantClassNames: { orientation: { horizontal: "_1thxv8m1-1-17-0", vertical: "_1thxv8m2-1-17-0" }, flexItem: { true: "_1thxv8m3-1-17-0", false: "_1thxv8m4-1-17-0" } }, defaultVariants: {}, compoundVariants: [[{ orientation: "horizontal", flexItem: false }, "_1thxv8m5-1-17-0"], [{ orientation: "vertical", flexItem: true }, "_1thxv8m6-1-17-0"]] });
5
5
  export {
6
6
  dividerCSS
7
7
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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:'_1thxv8m0-1-16-0',variantClassNames:{orientation:{horizontal:'_1thxv8m1-1-16-0',vertical:'_1thxv8m2-1-16-0'},flexItem:{true:'_1thxv8m3-1-16-0',false:'_1thxv8m4-1-16-0'}},defaultVariants:{},compoundVariants:[[{orientation:'horizontal',flexItem:false},'_1thxv8m5-1-16-0'],[{orientation:'vertical',flexItem:true},'_1thxv8m6-1-16-0']]});"],
4
+ "sourcesContent": ["import '../../core/utils/colorUtils.css';\nimport './Divider.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var dividerCSS = _7a468({defaultClassName:'_1thxv8m0-1-17-0',variantClassNames:{orientation:{horizontal:'_1thxv8m1-1-17-0',vertical:'_1thxv8m2-1-17-0'},flexItem:{true:'_1thxv8m3-1-17-0',false:'_1thxv8m4-1-17-0'}},defaultVariants:{},compoundVariants:[[{orientation:'horizontal',flexItem:false},'_1thxv8m5-1-17-0'],[{orientation:'vertical',flexItem:true},'_1thxv8m6-1-17-0']]});"],
5
5
  "mappings": "AAAA,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,aAAa,OAAO,EAAC,kBAAiB,oBAAmB,mBAAkB,EAAC,aAAY,EAAC,YAAW,oBAAmB,UAAS,mBAAkB,GAAE,UAAS,EAAC,MAAK,oBAAmB,OAAM,mBAAkB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,aAAY,cAAa,UAAS,MAAK,GAAE,kBAAkB,GAAE,CAAC,EAAC,aAAY,YAAW,UAAS,KAAI,GAAE,kBAAkB,CAAC,EAAC,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,86 +1,86 @@
1
- ._1qto6jt6-1-16-0 {
2
- --_1igzksy0-1-16-0: var(--dt-borders-radius-surface-default, 12px);
1
+ ._1qto6jt6-1-17-0 {
2
+ --_1igzksy0-1-17-0: var(--dt-borders-radius-surface-default, 12px);
3
3
  color: var(--dt-colors-text-neutral-default, #2f2f4f);
4
4
  text-align: left;
5
5
  border: none;
6
6
  outline: none;
7
7
  position: relative;
8
8
  background-color: var(--dt-colors-background-surface-default, #fff);
9
- border-radius: var(--_1igzksy0-1-16-0);
9
+ border-radius: var(--_1igzksy0-1-17-0);
10
10
  }
11
- ._1qto6jt6-1-16-0::before, ._1qto6jt6-1-16-0::after {
11
+ ._1qto6jt6-1-17-0::before, ._1qto6jt6-1-17-0::after {
12
12
  content: "";
13
13
  width: 100%;
14
14
  height: 100%;
15
15
  position: absolute;
16
16
  left: 0;
17
17
  top: 0;
18
- border-radius: var(--_1igzksy0-1-16-0);
18
+ border-radius: var(--_1igzksy0-1-17-0);
19
19
  pointer-events: none;
20
20
  }
21
- ._1qto6jt6-1-16-0::after {
21
+ ._1qto6jt6-1-17-0::after {
22
22
  outline-offset: 2px;
23
- outline: 2px solid var(--_17bwkb02-1-16-0);
24
- opacity: var(--_1qto6jt4-1-16-0);
25
- transition: var(--_1qto6jt5-1-16-0);
23
+ outline: 2px solid var(--_17bwkb02-1-17-0);
24
+ opacity: var(--_1qto6jt4-1-17-0);
25
+ transition: var(--_1qto6jt5-1-17-0);
26
26
  }
27
- ._1qto6jt7-1-16-0 {
28
- --_1qto6jt4-1-16-0: 1;
29
- --_1qto6jt5-1-16-0: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
27
+ ._1qto6jt7-1-17-0 {
28
+ --_1qto6jt4-1-17-0: 1;
29
+ --_1qto6jt5-1-17-0: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
30
30
  }
31
- ._1qto6jt8-1-16-0 {
32
- --_1qto6jt4-1-16-0: 0;
33
- --_1qto6jt5-1-16-0: var(--dt-animations-fade-out-easing, cubic-bezier(0, 0, 0.2, 1)) var(--dt-animations-fade-out-duration-fast, 150ms);
31
+ ._1qto6jt8-1-17-0 {
32
+ --_1qto6jt4-1-17-0: 0;
33
+ --_1qto6jt5-1-17-0: var(--dt-animations-fade-out-easing, cubic-bezier(0, 0, 0.2, 1)) var(--dt-animations-fade-out-duration-fast, 150ms);
34
34
  }
35
- ._1qto6jt9-1-16-0 {
36
- --_1qto6jt1-1-16-0: 0;
37
- --_1qto6jt2-1-16-0: pointer;
38
- --_1qto6jt3-1-16-0: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
35
+ ._1qto6jt9-1-17-0 {
36
+ --_1qto6jt1-1-17-0: 0;
37
+ --_1qto6jt2-1-17-0: pointer;
38
+ --_1qto6jt3-1-17-0: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
39
39
  width: 100%;
40
40
  height: 100%;
41
41
  position: absolute;
42
42
  left: 0;
43
43
  top: 0;
44
- border-radius: var(--_1igzksy0-1-16-0);
44
+ border-radius: var(--_1igzksy0-1-17-0);
45
45
  pointer-events: none;
46
46
  }
47
- ._1qto6jt9-1-16-0::after,._1qto6jt9-1-16-0::before {
47
+ ._1qto6jt9-1-17-0::after,._1qto6jt9-1-17-0::before {
48
48
  content: "";
49
49
  width: 100%;
50
50
  height: 100%;
51
51
  position: absolute;
52
52
  left: 0;
53
53
  top: 0;
54
- border-radius: var(--_1igzksy0-1-16-0);
54
+ border-radius: var(--_1igzksy0-1-17-0);
55
55
  pointer-events: none;
56
56
  transition: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
57
57
  }
58
- ._1qto6jt9-1-16-0::after {
59
- box-shadow: var(--_1qto6jt0-1-16-0);
60
- opacity: var(--_1qto6jt1-1-16-0);
58
+ ._1qto6jt9-1-17-0::after {
59
+ box-shadow: var(--_1qto6jt0-1-17-0);
60
+ opacity: var(--_1qto6jt1-1-17-0);
61
61
  }
62
- ._1qto6jt9-1-16-0::before {
63
- box-shadow: var(--_1qto6jt3-1-16-0);
62
+ ._1qto6jt9-1-17-0::before {
63
+ box-shadow: var(--_1qto6jt3-1-17-0);
64
64
  opacity: 0;
65
65
  }
66
- ._1qto6jta-1-16-0 {
67
- --_1qto6jt0-1-16-0: var(--dt-box-shadows-surface-flat-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
68
- --_1qto6jt3-1-16-0: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
66
+ ._1qto6jta-1-17-0 {
67
+ --_1qto6jt0-1-17-0: var(--dt-box-shadows-surface-flat-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
68
+ --_1qto6jt3-1-17-0: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
69
69
  box-shadow: var(--dt-box-shadows-surface-flat-rest, 0px 0px 0px 1px #2d2e4e0d);
70
70
  }
71
- ._1qto6jtb-1-16-0 {
72
- --_1qto6jt0-1-16-0: var(--dt-box-shadows-surface-raised-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
73
- --_1qto6jt3-1-16-0: var(--dt-box-shadows-surface-raised-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
71
+ ._1qto6jtb-1-17-0 {
72
+ --_1qto6jt0-1-17-0: var(--dt-box-shadows-surface-raised-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
73
+ --_1qto6jt3-1-17-0: var(--dt-box-shadows-surface-raised-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
74
74
  box-shadow: var(--dt-box-shadows-surface-raised-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
75
75
  }
76
- ._1qto6jtc-1-16-0 {
77
- --_1qto6jt0-1-16-0: var(--dt-box-shadows-surface-floating-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
78
- --_1qto6jt3-1-16-0: var(--dt-box-shadows-surface-floating-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 6px 14px -2px #2d2e4e3d);
76
+ ._1qto6jtc-1-17-0 {
77
+ --_1qto6jt0-1-17-0: var(--dt-box-shadows-surface-floating-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
78
+ --_1qto6jt3-1-17-0: var(--dt-box-shadows-surface-floating-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 6px 14px -2px #2d2e4e3d);
79
79
  box-shadow: var(--dt-box-shadows-surface-floating-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
80
80
  }
81
- ._1qto6jtd-1-16-0 {
82
- --_1qto6jt1-1-16-0: 1;
83
- --_1qto6jt2-1-16-0: grab;
81
+ ._1qto6jtd-1-17-0 {
82
+ --_1qto6jt1-1-17-0: 1;
83
+ --_1qto6jt2-1-17-0: grab;
84
84
  }
85
85
  button.strato-surface:not(:disabled), a.strato-surface:not(:disabled) {
86
86
  cursor: pointer;
@@ -3,7 +3,7 @@ import clsx from "clsx";
3
3
  import { forwardRef } from "react";
4
4
  import * as styles from "./Surface.sty.js";
5
5
  import { useAriaLabelingProps } from "../../core/hooks/useAriaLabelingProps.js";
6
- import { useFocusRing } from "../../core/styles/useFocusRing.js";
6
+ import { focusRingStatic } from "../../core/styles/focusRingStatic.sty.js";
7
7
  import { mergeProps } from "../../core/utils/merge-props.js";
8
8
  import { colorUtils } from "../../styles/colorUtils.sty.js";
9
9
  import {
@@ -32,16 +32,12 @@ const Surface = /* @__PURE__ */ forwardRef(
32
32
  remainingProps,
33
33
  { paddingDefaults: { padding: 24 } }
34
34
  );
35
- const { focusProps, focusClassName } = useFocusRing({
36
- variant: color
37
- });
38
35
  const surfaceMergedProps = {
39
36
  ...mergeProps(
40
37
  // Need to cast this one as the inference of mergeProps would generate
41
38
  // a not allowed overlap. The remainingProps type is too complex due to the
42
39
  // polymorphic inheritance.
43
40
  surfaceProps,
44
- focusProps,
45
41
  ariaLabelingProps
46
42
  )
47
43
  };
@@ -58,7 +54,7 @@ const Surface = /* @__PURE__ */ forwardRef(
58
54
  "strato-surface",
59
55
  colorUtils({ color, variant: selected ? "accent" : "default" }),
60
56
  styles.surface({ selected }),
61
- focusClassName,
57
+ focusRingStatic({ color, when: "focus-visible" }),
62
58
  consumerClassName,
63
59
  getSpacingSprinkles(remainingProps, { padding: 24 }),
64
60
  textStyle({ textStyle: "base" })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/layouts/surface/Surface.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { type ElementType, type ReactElement, forwardRef } from 'react';\n\nimport * as styles 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 { colorUtils } from '../../styles/colorUtils.sty.js';\nimport {\n getSpacingSprinkles,\n type SpacingProps,\n} from '../../styles/getSpacingSprinkles.js';\nimport { textStyle } 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 colorUtils({ color, variant: selected ? 'accent' : 'default' }),\n styles.surface({ selected }),\n focusClassName,\n consumerClassName,\n getSpacingSprinkles(remainingProps, { padding: 24 }),\n textStyle({ textStyle: 'base' }),\n )}\n style={{ ...layoutSizeStyles, ...consumerStyle }}\n >\n <div\n className={clsx(\n 'surface-background',\n styles.pseudoElement({ elevation, dragged }),\n )}\n aria-hidden={true}\n />\n {children}\n </Component>\n );\n },\n);\n"],
5
- "mappings": "AAyHM,SAiBE,KAjBF;AAzHN,OAAO,UAAU;AACjB,SAA8C,kBAAkB;AAEhE,YAAY,YAAY;AACxB,SAAS,4BAA4B;AACrC,SAAS,oBAAoB;AAQ7B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B;AAAA,EACE;AAAA,OAEK;AACP,SAAS,iBAAiB;AAC1B,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,WAAW,EAAE,OAAO,SAAS,WAAW,WAAW,UAAU,CAAC;AAAA,UAC9D,OAAO,QAAQ,EAAE,SAAS,CAAC;AAAA,UAC3B;AAAA,UACA;AAAA,UACA,oBAAoB,gBAAgB,EAAE,SAAS,GAAG,CAAC;AAAA,UACnD,UAAU,EAAE,WAAW,OAAO,CAAC;AAAA,QACjC;AAAA,QACA,OAAO,EAAE,GAAG,kBAAkB,GAAG,cAAc;AAAA,QAE/C;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT;AAAA,gBACA,OAAO,cAAc,EAAE,WAAW,QAAQ,CAAC;AAAA,cAC7C;AAAA,cACA,eAAa;AAAA;AAAA,UACf;AAAA,UACC;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { type ElementType, type ReactElement, forwardRef } from 'react';\n\nimport * as styles from './Surface.sty.js';\nimport { useAriaLabelingProps } from '../../core/hooks/useAriaLabelingProps.js';\nimport { focusRingStatic } from '../../core/styles/focusRingStatic.sty.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 { colorUtils } from '../../styles/colorUtils.sty.js';\nimport {\n getSpacingSprinkles,\n type SpacingProps,\n} from '../../styles/getSpacingSprinkles.js';\nimport { textStyle } 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 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 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 colorUtils({ color, variant: selected ? 'accent' : 'default' }),\n styles.surface({ selected }),\n focusRingStatic({ color, when: 'focus-visible' }),\n consumerClassName,\n getSpacingSprinkles(remainingProps, { padding: 24 }),\n textStyle({ textStyle: 'base' }),\n )}\n style={{ ...layoutSizeStyles, ...consumerStyle }}\n >\n <div\n className={clsx(\n 'surface-background',\n styles.pseudoElement({ elevation, dragged }),\n )}\n aria-hidden={true}\n />\n {children}\n </Component>\n );\n },\n);\n"],
5
+ "mappings": "AAoHM,SAiBE,KAjBF;AApHN,OAAO,UAAU;AACjB,SAA8C,kBAAkB;AAEhE,YAAY,YAAY;AACxB,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;AAQhC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B;AAAA,EACE;AAAA,OAEK;AACP,SAAS,iBAAiB;AAC1B,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,qBAAqB;AAAA,MACzB,GAAG;AAAA;AAAA;AAAA;AAAA,QAID;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,WAAW,EAAE,OAAO,SAAS,WAAW,WAAW,UAAU,CAAC;AAAA,UAC9D,OAAO,QAAQ,EAAE,SAAS,CAAC;AAAA,UAC3B,gBAAgB,EAAE,OAAO,MAAM,gBAAgB,CAAC;AAAA,UAChD;AAAA,UACA,oBAAoB,gBAAgB,EAAE,SAAS,GAAG,CAAC;AAAA,UACnD,UAAU,EAAE,WAAW,OAAO,CAAC;AAAA,QACjC;AAAA,QACA,OAAO,EAAE,GAAG,kBAAkB,GAAG,cAAc;AAAA,QAE/C;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,gBACT;AAAA,gBACA,OAAO,cAAc,EAAE,WAAW,QAAQ,CAAC;AAAA,cAC7C;AAAA,cACA,eAAa;AAAA;AAAA,UACf;AAAA,UACC;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;",
6
6
  "names": []
7
7
  }
@@ -1,8 +1,8 @@
1
1
  import "../../styles/colorUtils.css";
2
2
  import "./Surface.css";
3
3
  import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
4
- var pseudoElement = _7a468({ defaultClassName: "_1qto6jt9-1-16-0", variantClassNames: { elevation: { flat: "_1qto6jta-1-16-0", raised: "_1qto6jtb-1-16-0", floating: "_1qto6jtc-1-16-0" }, dragged: { true: "_1qto6jtd-1-16-0" } }, defaultVariants: {}, compoundVariants: [] });
5
- var surface = _7a468({ defaultClassName: "_1qto6jt6-1-16-0", variantClassNames: { selected: { true: "_1qto6jt7-1-16-0", false: "_1qto6jt8-1-16-0" } }, defaultVariants: {}, compoundVariants: [] });
4
+ var pseudoElement = _7a468({ defaultClassName: "_1qto6jt9-1-17-0", variantClassNames: { elevation: { flat: "_1qto6jta-1-17-0", raised: "_1qto6jtb-1-17-0", floating: "_1qto6jtc-1-17-0" }, dragged: { true: "_1qto6jtd-1-17-0" } }, defaultVariants: {}, compoundVariants: [] });
5
+ var surface = _7a468({ defaultClassName: "_1qto6jt6-1-17-0", variantClassNames: { selected: { true: "_1qto6jt7-1-17-0", false: "_1qto6jt8-1-17-0" } }, defaultVariants: {}, compoundVariants: [] });
6
6
  export {
7
7
  pseudoElement,
8
8
  surface
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
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 pseudoElement = _7a468({defaultClassName:'_1qto6jt9-1-16-0',variantClassNames:{elevation:{flat:'_1qto6jta-1-16-0',raised:'_1qto6jtb-1-16-0',floating:'_1qto6jtc-1-16-0'},dragged:{true:'_1qto6jtd-1-16-0'}},defaultVariants:{},compoundVariants:[]});\nexport var surface = _7a468({defaultClassName:'_1qto6jt6-1-16-0',variantClassNames:{selected:{true:'_1qto6jt7-1-16-0',false:'_1qto6jt8-1-16-0'}},defaultVariants:{},compoundVariants:[]});"],
4
+ "sourcesContent": ["import '../../styles/colorUtils.css';\nimport './Surface.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var pseudoElement = _7a468({defaultClassName:'_1qto6jt9-1-17-0',variantClassNames:{elevation:{flat:'_1qto6jta-1-17-0',raised:'_1qto6jtb-1-17-0',floating:'_1qto6jtc-1-17-0'},dragged:{true:'_1qto6jtd-1-17-0'}},defaultVariants:{},compoundVariants:[]});\nexport var surface = _7a468({defaultClassName:'_1qto6jt6-1-17-0',variantClassNames:{selected:{true:'_1qto6jt7-1-17-0',false:'_1qto6jt8-1-17-0'}},defaultVariants:{},compoundVariants:[]});"],
5
5
  "mappings": "AAAA,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,gBAAgB,OAAO,EAAC,kBAAiB,oBAAmB,mBAAkB,EAAC,WAAU,EAAC,MAAK,oBAAmB,QAAO,oBAAmB,UAAS,mBAAkB,GAAE,SAAQ,EAAC,MAAK,mBAAkB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;AACvP,IAAI,UAAU,OAAO,EAAC,kBAAiB,oBAAmB,mBAAkB,EAAC,UAAS,EAAC,MAAK,oBAAmB,OAAM,mBAAkB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- var surfaceBorderRadius = "var(--_1igzksy0-1-16-0)";
1
+ var surfaceBorderRadius = "var(--_1igzksy0-1-17-0)";
2
2
  export {
3
3
  surfaceBorderRadius
4
4
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/layouts/surface/variables.css.ts"],
4
- "sourcesContent": ["export var surfaceBorderRadius = 'var(--_1igzksy0-1-16-0)';"],
4
+ "sourcesContent": ["export var surfaceBorderRadius = 'var(--_1igzksy0-1-17-0)';"],
5
5
  "mappings": "AAAO,IAAI,sBAAsB;",
6
6
  "names": []
7
7
  }