@dynatrace/strato-components 1.6.0 → 1.7.2

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 +16 -16
  2. package/buttons/button/Button.js +1 -1
  3. package/buttons/button/Button.sty.js +4 -4
  4. package/buttons/button/Label.js +2 -2
  5. package/buttons/intent-button/IntentButton.js +1 -1
  6. package/content/progress/ProgressBar.css +71 -71
  7. package/content/progress/ProgressBar.sty.js +5 -5
  8. package/content/progress/ProgressBarIcon.css +2 -2
  9. package/content/progress/ProgressBarIcon.sty.js +1 -1
  10. package/content/progress/ProgressBarLabel.css +3 -3
  11. package/content/progress/ProgressBarLabel.js +2 -2
  12. package/content/progress/ProgressBarLabel.sty.js +1 -1
  13. package/content/progress/ProgressBarValue.css +5 -5
  14. package/content/progress/ProgressBarValue.js +2 -2
  15. package/content/progress/ProgressBarValue.sty.js +1 -1
  16. package/content/progress/ProgressCircle.css +40 -40
  17. package/content/progress/ProgressCircle.sty.js +5 -5
  18. package/content/skeleton/Skeleton.css +6 -6
  19. package/content/skeleton/Skeleton.sty.js +1 -1
  20. package/core/components/focus-scope/FocusScope.js +1 -1
  21. package/core/contexts/FocusContext.d.ts +1 -0
  22. package/core/contexts/FocusContext.js +2 -1
  23. package/core/index.d.ts +1 -4
  24. package/core/index.js +2 -8
  25. package/core/providers/FocusProvider.js +30 -4
  26. package/core/styles/focusRing.css +66 -66
  27. package/core/styles/focusRing.sty.js +2 -2
  28. package/core/utils/can-receive-default-text-format.d.ts +9 -0
  29. package/core/utils/{_is-string-children.js → can-receive-default-text-format.js} +6 -10
  30. package/core/utils/colorUtils.css +60 -60
  31. package/core/utils/colorUtils.sty.js +2 -2
  32. package/core/utils/get-inert-value.d.ts +8 -0
  33. package/core/{hooks/useId.js → utils/get-inert-value.js} +11 -13
  34. package/core/utils/isBrowser.js +1 -1
  35. package/esm/buttons/button/Button.css +16 -16
  36. package/esm/buttons/button/Button.js +1 -1
  37. package/esm/buttons/button/Button.js.map +2 -2
  38. package/esm/buttons/button/Button.sty.js +4 -4
  39. package/esm/buttons/button/Button.sty.js.map +1 -1
  40. package/esm/buttons/button/Label.js +2 -2
  41. package/esm/buttons/button/Label.js.map +2 -2
  42. package/esm/buttons/intent-button/IntentButton.js +1 -1
  43. package/esm/buttons/intent-button/IntentButton.js.map +1 -1
  44. package/esm/content/progress/ProgressBar.css +71 -71
  45. package/esm/content/progress/ProgressBar.js.map +2 -2
  46. package/esm/content/progress/ProgressBar.sty.js +5 -5
  47. package/esm/content/progress/ProgressBar.sty.js.map +1 -1
  48. package/esm/content/progress/ProgressBarIcon.css +2 -2
  49. package/esm/content/progress/ProgressBarIcon.js.map +2 -2
  50. package/esm/content/progress/ProgressBarIcon.sty.js +1 -1
  51. package/esm/content/progress/ProgressBarIcon.sty.js.map +1 -1
  52. package/esm/content/progress/ProgressBarLabel.css +3 -3
  53. package/esm/content/progress/ProgressBarLabel.js +2 -2
  54. package/esm/content/progress/ProgressBarLabel.js.map +2 -2
  55. package/esm/content/progress/ProgressBarLabel.sty.js +1 -1
  56. package/esm/content/progress/ProgressBarLabel.sty.js.map +1 -1
  57. package/esm/content/progress/ProgressBarValue.css +5 -5
  58. package/esm/content/progress/ProgressBarValue.js +2 -2
  59. package/esm/content/progress/ProgressBarValue.js.map +2 -2
  60. package/esm/content/progress/ProgressBarValue.sty.js +1 -1
  61. package/esm/content/progress/ProgressBarValue.sty.js.map +1 -1
  62. package/esm/content/progress/ProgressCircle.css +40 -40
  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/progress/contexts/SharedProgressBarPropsContext.js.map +2 -2
  67. package/esm/content/skeleton/Skeleton.css +6 -6
  68. package/esm/content/skeleton/Skeleton.sty.js +1 -1
  69. package/esm/content/skeleton/Skeleton.sty.js.map +1 -1
  70. package/esm/core/components/focus-scope/FocusScope.js +1 -1
  71. package/esm/core/components/focus-scope/FocusScope.js.map +2 -2
  72. package/esm/core/contexts/FocusContext.js +2 -1
  73. package/esm/core/contexts/FocusContext.js.map +2 -2
  74. package/esm/core/index.js +2 -8
  75. package/esm/core/index.js.map +2 -2
  76. package/esm/core/providers/FocusProvider.js +31 -5
  77. package/esm/core/providers/FocusProvider.js.map +2 -2
  78. package/esm/core/styles/focusRing.css +66 -66
  79. package/esm/core/styles/focusRing.sty.js +2 -2
  80. package/esm/core/styles/focusRing.sty.js.map +1 -1
  81. package/esm/core/utils/can-receive-default-text-format.js +15 -0
  82. package/esm/core/utils/can-receive-default-text-format.js.map +7 -0
  83. package/esm/core/utils/colorUtils.css +60 -60
  84. package/esm/core/utils/colorUtils.sty.js +2 -2
  85. package/esm/core/utils/colorUtils.sty.js.map +1 -1
  86. package/esm/core/utils/get-inert-value.js +12 -0
  87. package/esm/core/utils/get-inert-value.js.map +7 -0
  88. package/esm/core/utils/isBrowser.js +1 -1
  89. package/esm/core/utils/isBrowser.js.map +1 -1
  90. package/esm/core/utils/merge-props.js.map +2 -2
  91. package/esm/layouts/container/Container.css +4 -4
  92. package/esm/layouts/container/Container.sty.js +1 -1
  93. package/esm/layouts/container/Container.sty.js.map +1 -1
  94. package/esm/layouts/divider/Divider.css +6 -6
  95. package/esm/layouts/divider/Divider.sty.js +1 -1
  96. package/esm/layouts/divider/Divider.sty.js.map +1 -1
  97. package/esm/layouts/surface/Surface.css +39 -39
  98. package/esm/layouts/surface/Surface.sty.js +2 -2
  99. package/esm/layouts/surface/Surface.sty.js.map +1 -1
  100. package/esm/layouts/surface/variables.sty.js +1 -1
  101. package/esm/layouts/surface/variables.sty.js.map +1 -1
  102. package/esm/styles/colorUtils.css +60 -60
  103. package/esm/styles/colorUtils.sty.js +2 -2
  104. package/esm/styles/colorUtils.sty.js.map +1 -1
  105. package/esm/styles/container.css +47 -47
  106. package/esm/styles/container.sty.js +2 -2
  107. package/esm/styles/container.sty.js.map +1 -1
  108. package/esm/styles/ellipsis.css +1 -1
  109. package/esm/styles/ellipsis.sty.js +1 -1
  110. package/esm/styles/ellipsis.sty.js.map +1 -1
  111. package/esm/styles/field.css +153 -153
  112. package/esm/styles/field.sty.js +2 -2
  113. package/esm/styles/field.sty.js.map +1 -1
  114. package/esm/styles/sprinkles.css +262 -262
  115. package/esm/styles/sprinkles.sty.js +1 -1
  116. package/esm/styles/sprinkles.sty.js.map +1 -1
  117. package/esm/styles/textStyle.css +8 -8
  118. package/esm/styles/textStyle.sty.js +1 -1
  119. package/esm/styles/textStyle.sty.js.map +1 -1
  120. package/esm/typography/block-quote/Blockquote.css +2 -2
  121. package/esm/typography/block-quote/Blockquote.sty.js +1 -1
  122. package/esm/typography/block-quote/Blockquote.sty.js.map +1 -1
  123. package/esm/typography/code/Code.css +1 -1
  124. package/esm/typography/code/Code.sty.js +1 -1
  125. package/esm/typography/code/Code.sty.js.map +1 -1
  126. package/esm/typography/emphasis/Emphasis.css +1 -1
  127. package/esm/typography/emphasis/Emphasis.sty.js +1 -1
  128. package/esm/typography/emphasis/Emphasis.sty.js.map +1 -1
  129. package/esm/typography/external-link/ExternalLink.css +6 -6
  130. package/esm/typography/external-link/ExternalLink.sty.js +1 -1
  131. package/esm/typography/external-link/ExternalLink.sty.js.map +1 -1
  132. package/esm/typography/heading/Heading.css +7 -7
  133. package/esm/typography/heading/Heading.sty.js +1 -1
  134. package/esm/typography/heading/Heading.sty.js.map +1 -1
  135. package/esm/typography/highlight/Highlight.css +1 -1
  136. package/esm/typography/highlight/Highlight.js +1 -1
  137. package/esm/typography/highlight/Highlight.js.map +2 -2
  138. package/esm/typography/highlight/Highlight.sty.js +1 -1
  139. package/esm/typography/highlight/Highlight.sty.js.map +1 -1
  140. package/esm/typography/index.js.map +1 -1
  141. package/esm/typography/link/Link.css +4 -4
  142. package/esm/typography/link/Link.sty.js +1 -1
  143. package/esm/typography/link/Link.sty.js.map +1 -1
  144. package/esm/typography/list/List.css +4 -4
  145. package/esm/typography/list/List.sty.js +2 -2
  146. package/esm/typography/list/List.sty.js.map +1 -1
  147. package/esm/typography/paragraph/Paragraph.css +3 -3
  148. package/esm/typography/paragraph/Paragraph.sty.js +1 -1
  149. package/esm/typography/paragraph/Paragraph.sty.js.map +1 -1
  150. package/esm/typography/strikethrough/Strikethrough.css +1 -1
  151. package/esm/typography/strikethrough/Strikethrough.sty.js +1 -1
  152. package/esm/typography/strikethrough/Strikethrough.sty.js.map +1 -1
  153. package/esm/typography/strong/Strong.css +1 -1
  154. package/esm/typography/strong/Strong.sty.js +1 -1
  155. package/esm/typography/strong/Strong.sty.js.map +1 -1
  156. package/esm/typography/text/Text.css +3 -3
  157. package/esm/typography/text/Text.sty.js +1 -1
  158. package/esm/typography/text/Text.sty.js.map +1 -1
  159. package/esm/typography/text-ellipsis/TextEllipsis.css +6 -6
  160. package/esm/typography/text-ellipsis/TextEllipsis.js +1 -9
  161. package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
  162. package/esm/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
  163. package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +1 -1
  164. package/esm/typography/utils.js +16 -4
  165. package/esm/typography/utils.js.map +2 -2
  166. package/layouts/container/Container.css +4 -4
  167. package/layouts/container/Container.sty.js +1 -1
  168. package/layouts/divider/Divider.css +6 -6
  169. package/layouts/divider/Divider.sty.js +1 -1
  170. package/layouts/surface/Surface.css +39 -39
  171. package/layouts/surface/Surface.sty.js +2 -2
  172. package/layouts/surface/variables.sty.js +1 -1
  173. package/package.json +3 -3
  174. package/styles/colorUtils.css +60 -60
  175. package/styles/colorUtils.sty.js +2 -2
  176. package/styles/container.css +47 -47
  177. package/styles/container.sty.js +2 -2
  178. package/styles/ellipsis.css +1 -1
  179. package/styles/ellipsis.sty.js +1 -1
  180. package/styles/field.css +153 -153
  181. package/styles/field.sty.js +2 -2
  182. package/styles/sprinkles.css +262 -262
  183. package/styles/sprinkles.sty.js +1 -1
  184. package/styles/textStyle.css +8 -8
  185. package/styles/textStyle.sty.js +1 -1
  186. package/typography/block-quote/Blockquote.css +2 -2
  187. package/typography/block-quote/Blockquote.sty.js +1 -1
  188. package/typography/code/Code.css +1 -1
  189. package/typography/code/Code.sty.js +1 -1
  190. package/typography/emphasis/Emphasis.css +1 -1
  191. package/typography/emphasis/Emphasis.sty.js +1 -1
  192. package/typography/external-link/ExternalLink.css +6 -6
  193. package/typography/external-link/ExternalLink.sty.js +1 -1
  194. package/typography/heading/Heading.css +7 -7
  195. package/typography/heading/Heading.sty.js +1 -1
  196. package/typography/highlight/Highlight.css +1 -1
  197. package/typography/highlight/Highlight.js +1 -1
  198. package/typography/highlight/Highlight.sty.js +1 -1
  199. package/typography/index.d.ts +1 -1
  200. package/typography/link/Link.css +4 -4
  201. package/typography/link/Link.sty.js +1 -1
  202. package/typography/list/List.css +4 -4
  203. package/typography/list/List.sty.js +2 -2
  204. package/typography/paragraph/Paragraph.css +3 -3
  205. package/typography/paragraph/Paragraph.sty.js +1 -1
  206. package/typography/strikethrough/Strikethrough.css +1 -1
  207. package/typography/strikethrough/Strikethrough.sty.js +1 -1
  208. package/typography/strong/Strong.css +1 -1
  209. package/typography/strong/Strong.sty.js +1 -1
  210. package/typography/text/Text.css +3 -3
  211. package/typography/text/Text.sty.js +1 -1
  212. package/typography/text-ellipsis/TextEllipsis.css +6 -6
  213. package/typography/text-ellipsis/TextEllipsis.d.ts +2 -2
  214. package/typography/text-ellipsis/TextEllipsis.js +1 -9
  215. package/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
  216. package/typography/utils.js +16 -4
  217. package/core/hooks/useId.d.ts +0 -12
  218. package/core/utils/_is-string-children.d.ts +0 -6
  219. package/core/utils/seed-random.d.ts +0 -5
  220. package/core/utils/seed-random.js +0 -35
  221. package/core/utils/uuidv4.d.ts +0 -5
  222. package/core/utils/uuidv4.js +0 -32
  223. package/esm/core/hooks/useId.js +0 -14
  224. package/esm/core/hooks/useId.js.map +0 -7
  225. package/esm/core/utils/_is-string-children.js +0 -16
  226. package/esm/core/utils/_is-string-children.js.map +0 -7
  227. package/esm/core/utils/seed-random.js +0 -16
  228. package/esm/core/utils/seed-random.js.map +0 -7
  229. package/esm/core/utils/uuidv4.js +0 -13
  230. package/esm/core/utils/uuidv4.js.map +0 -7
@@ -1,6 +1,6 @@
1
1
  import "./ProgressBar.css";
2
2
  import "./ProgressBarIcon.css";
3
- var progressBarIconContainerCSS = "_szm9t40-1-6-0";
3
+ var progressBarIconContainerCSS = "_szm9t40-1-7-2";
4
4
  export {
5
5
  progressBarIconContainerCSS
6
6
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/content/progress/ProgressBarIcon.css.ts"],
4
- "sourcesContent": ["import './ProgressBar.css';\nimport './ProgressBarIcon.css';\nexport var progressBarIconContainerCSS = '_szm9t40-1-6-0';"],
4
+ "sourcesContent": ["import './ProgressBar.css';\nimport './ProgressBarIcon.css';\nexport var progressBarIconContainerCSS = '_szm9t40-1-7-2';"],
5
5
  "mappings": "AAAA,OAAO;AACP,OAAO;AACA,IAAI,8BAA8B;",
6
6
  "names": []
7
7
  }
@@ -1,9 +1,9 @@
1
- ._1ceb8vp0-1-6-0 {
1
+ ._1ceb8vp0-1-7-2 {
2
2
  color: currentColor;
3
3
  }
4
- ._1ceb8vp2-1-6-0 {
4
+ ._1ceb8vp2-1-7-2 {
5
5
  word-break: break-word;
6
6
  }
7
- ._1ceb8vp3-1-6-0 {
7
+ ._1ceb8vp3-1-7-2 {
8
8
  word-break: break-word;
9
9
  }
@@ -3,7 +3,7 @@ import clsx from "clsx";
3
3
  import { forwardRef } from "react";
4
4
  import { useSharedProgressBarPropsContext } from "./hooks/useProgressBarPropsContext.js";
5
5
  import { progressBarLabelCSS } from "./ProgressBarLabel.sty.js";
6
- import { isStringChildren } from "../../core/utils/_is-string-children.js";
6
+ import { canReceiveDefaultTextFormat } from "../../core/utils/can-receive-default-text-format.js";
7
7
  import { ellipsisCSS } from "../../styles/ellipsis.sty.js";
8
8
  import { textStyleCSS } from "../../styles/textStyle.sty.js";
9
9
  const ProgressBarLabel = forwardRef((props, forwardedRef) => {
@@ -15,7 +15,7 @@ const ProgressBarLabel = forwardRef((props, forwardedRef) => {
15
15
  ...remainingProps
16
16
  } = props;
17
17
  const { id, density } = useSharedProgressBarPropsContext();
18
- const childIsText = isStringChildren(children);
18
+ const childIsText = canReceiveDefaultTextFormat(children);
19
19
  return /* @__PURE__ */ jsx(
20
20
  "label",
21
21
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/content/progress/ProgressBarLabel.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef } from 'react';\n\nimport { useSharedProgressBarPropsContext } from './hooks/useProgressBarPropsContext.js';\nimport { progressBarLabelCSS } from './ProgressBarLabel.sty.js';\nimport { type DataTestId } from '../../core/types/data-props.js';\nimport { type StylingProps } from '../../core/types/styling-props.js';\nimport { type WithChildren } from '../../core/types/with-children.js';\nimport { isStringChildren } from '../../core/utils/_is-string-children.js';\nimport { ellipsisCSS } from '../../styles/ellipsis.sty.js';\nimport { textStyleCSS } from '../../styles/textStyle.sty.js';\n\n/**\n * Accepted properties for ProgressBarLabel.\n * @public\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface ProgressBarLabelProps\n extends WithChildren,\n StylingProps,\n DataTestId {}\n\n/**\n * ProgressBarLabel sub-component is rendered inside ProgressBar component.\n * @public\n */\nexport const ProgressBarLabel = forwardRef<\n HTMLLabelElement,\n ProgressBarLabelProps\n>((props, forwardedRef) => {\n const {\n children,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n ...remainingProps\n }: ProgressBarLabelProps = props;\n\n const { id, density } = useSharedProgressBarPropsContext();\n\n const childIsText = isStringChildren(children);\n\n return (\n <label\n data-testid={dataTestId}\n ref={forwardedRef}\n htmlFor={id}\n className={clsx(\n {\n [ellipsisCSS]: density === 'condensed' && childIsText,\n },\n consumerClassName,\n progressBarLabelCSS({ size: density, childIsText }),\n textStyleCSS({ textStyle: 'base' }),\n )}\n style={consumerStyle}\n {...remainingProps}\n >\n {children}\n </label>\n );\n});\n\n(\n ProgressBarLabel as typeof ProgressBarLabel & { displayName: string }\n).displayName = 'ProgressBar.Label';\n"],
5
- "mappings": "AA2CI;AA3CJ,OAAO,UAAU;AACjB,SAAS,kBAAkB;AAE3B,SAAS,wCAAwC;AACjD,SAAS,2BAA2B;AAIpC,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAgBtB,MAAM,mBAAmB,WAG9B,CAAC,OAAO,iBAAiB;AACzB,QAAM;AAAA,IACJ;AAAA,IACA,WAAW;AAAA,IACX,OAAO;AAAA,IACP,eAAe;AAAA,IACf,GAAG;AAAA,EACL,IAA2B;AAE3B,QAAM,EAAE,IAAI,QAAQ,IAAI,iCAAiC;AAEzD,QAAM,cAAc,iBAAiB,QAAQ;AAE7C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa;AAAA,MACb,KAAK;AAAA,MACL,SAAS;AAAA,MACT,WAAW;AAAA,QACT;AAAA,UACE,CAAC,WAAW,GAAG,YAAY,eAAe;AAAA,QAC5C;AAAA,QACA;AAAA,QACA,oBAAoB,EAAE,MAAM,SAAS,YAAY,CAAC;AAAA,QAClD,aAAa,EAAE,WAAW,OAAO,CAAC;AAAA,MACpC;AAAA,MACA,OAAO;AAAA,MACN,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ,CAAC;AAGC,iBACA,cAAc;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef } from 'react';\n\nimport { useSharedProgressBarPropsContext } from './hooks/useProgressBarPropsContext.js';\nimport { progressBarLabelCSS } from './ProgressBarLabel.sty.js';\nimport { type DataTestId } from '../../core/types/data-props.js';\nimport { type StylingProps } from '../../core/types/styling-props.js';\nimport { type WithChildren } from '../../core/types/with-children.js';\nimport { canReceiveDefaultTextFormat } from '../../core/utils/can-receive-default-text-format.js';\nimport { ellipsisCSS } from '../../styles/ellipsis.sty.js';\nimport { textStyleCSS } from '../../styles/textStyle.sty.js';\n\n/**\n * Accepted properties for ProgressBarLabel.\n * @public\n */\nexport interface ProgressBarLabelProps\n extends WithChildren,\n StylingProps,\n DataTestId {}\n\n/**\n * ProgressBarLabel sub-component is rendered inside ProgressBar component.\n * @public\n */\nexport const ProgressBarLabel = forwardRef<\n HTMLLabelElement,\n ProgressBarLabelProps\n>((props, forwardedRef) => {\n const {\n children,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n ...remainingProps\n }: ProgressBarLabelProps = props;\n\n const { id, density } = useSharedProgressBarPropsContext();\n\n const childIsText = canReceiveDefaultTextFormat(children);\n\n return (\n <label\n data-testid={dataTestId}\n ref={forwardedRef}\n htmlFor={id}\n className={clsx(\n {\n [ellipsisCSS]: density === 'condensed' && childIsText,\n },\n consumerClassName,\n progressBarLabelCSS({ size: density, childIsText }),\n textStyleCSS({ textStyle: 'base' }),\n )}\n style={consumerStyle}\n {...remainingProps}\n >\n {children}\n </label>\n );\n});\n\n(\n ProgressBarLabel as typeof ProgressBarLabel & { displayName: string }\n).displayName = 'ProgressBar.Label';\n"],
5
+ "mappings": "AA0CI;AA1CJ,OAAO,UAAU;AACjB,SAAS,kBAAkB;AAE3B,SAAS,wCAAwC;AACjD,SAAS,2BAA2B;AAIpC,SAAS,mCAAmC;AAC5C,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAetB,MAAM,mBAAmB,WAG9B,CAAC,OAAO,iBAAiB;AACzB,QAAM;AAAA,IACJ;AAAA,IACA,WAAW;AAAA,IACX,OAAO;AAAA,IACP,eAAe;AAAA,IACf,GAAG;AAAA,EACL,IAA2B;AAE3B,QAAM,EAAE,IAAI,QAAQ,IAAI,iCAAiC;AAEzD,QAAM,cAAc,4BAA4B,QAAQ;AAExD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa;AAAA,MACb,KAAK;AAAA,MACL,SAAS;AAAA,MACT,WAAW;AAAA,QACT;AAAA,UACE,CAAC,WAAW,GAAG,YAAY,eAAe;AAAA,QAC5C;AAAA,QACA;AAAA,QACA,oBAAoB,EAAE,MAAM,SAAS,YAAY,CAAC;AAAA,QAClD,aAAa,EAAE,WAAW,OAAO,CAAC;AAAA,MACpC;AAAA,MACA,OAAO;AAAA,MACN,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ,CAAC;AAGC,iBACA,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import "./ProgressBarLabel.css";
2
2
  import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
3
- var progressBarLabelCSS = _7a468({ defaultClassName: "_1ceb8vp0-1-6-0", variantClassNames: { size: { condensed: "_1ceb8vp1-1-6-0", "default": "_1ceb8vp2-1-6-0" }, childIsText: { false: "_1ceb8vp3-1-6-0" } }, defaultVariants: {}, compoundVariants: [] });
3
+ var progressBarLabelCSS = _7a468({ defaultClassName: "_1ceb8vp0-1-7-2", variantClassNames: { size: { condensed: "_1ceb8vp1-1-7-2", "default": "_1ceb8vp2-1-7-2" }, childIsText: { false: "_1ceb8vp3-1-7-2" } }, defaultVariants: {}, compoundVariants: [] });
4
4
  export {
5
5
  progressBarLabelCSS
6
6
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/content/progress/ProgressBarLabel.css.ts"],
4
- "sourcesContent": ["import './ProgressBarLabel.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var progressBarLabelCSS = _7a468({defaultClassName:'_1ceb8vp0-1-6-0',variantClassNames:{size:{condensed:'_1ceb8vp1-1-6-0','default':'_1ceb8vp2-1-6-0'},childIsText:{false:'_1ceb8vp3-1-6-0'}},defaultVariants:{},compoundVariants:[]});"],
4
+ "sourcesContent": ["import './ProgressBarLabel.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var progressBarLabelCSS = _7a468({defaultClassName:'_1ceb8vp0-1-7-2',variantClassNames:{size:{condensed:'_1ceb8vp1-1-7-2','default':'_1ceb8vp2-1-7-2'},childIsText:{false:'_1ceb8vp3-1-7-2'}},defaultVariants:{},compoundVariants:[]});"],
5
5
  "mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,sBAAsB,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,MAAK,EAAC,WAAU,mBAAkB,WAAU,kBAAiB,GAAE,aAAY,EAAC,OAAM,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,13 +1,13 @@
1
- ._1ri4i7o0-1-6-0 {
2
- color: var(--_13n9uwh4-1-6-0);
1
+ ._1ri4i7o0-1-7-2 {
2
+ color: var(--_13n9uwh4-1-7-2);
3
3
  }
4
- ._1ri4i7o2-1-6-0 {
4
+ ._1ri4i7o2-1-7-2 {
5
5
  word-break: break-word;
6
6
  }
7
- ._1ri4i7o4-1-6-0 {
7
+ ._1ri4i7o4-1-7-2 {
8
8
  word-break: break-word;
9
9
  }
10
- ._1ri4i7o5-1-6-0 {
10
+ ._1ri4i7o5-1-7-2 {
11
11
  margin-left: auto;
12
12
  align-self: center;
13
13
  }
@@ -4,7 +4,7 @@ import { forwardRef } from "react";
4
4
  import { useIntl } from "react-intl";
5
5
  import { useSharedProgressBarPropsContext } from "./hooks/useProgressBarPropsContext.js";
6
6
  import { progressBarValueCSS } from "./ProgressBarValue.sty.js";
7
- import { isStringChildren } from "../../core/utils/_is-string-children.js";
7
+ import { canReceiveDefaultTextFormat } from "../../core/utils/can-receive-default-text-format.js";
8
8
  import { textStyleCSS } from "../../styles/textStyle.sty.js";
9
9
  const ProgressBarValue = forwardRef((props, forwardedRef) => {
10
10
  const {
@@ -21,7 +21,7 @@ const ProgressBarValue = forwardRef((props, forwardedRef) => {
21
21
  description: "Default label for the progress-bar."
22
22
  });
23
23
  const { density } = useSharedProgressBarPropsContext();
24
- const childIsText = isStringChildren(children);
24
+ const childIsText = canReceiveDefaultTextFormat(children);
25
25
  return /* @__PURE__ */ jsx(
26
26
  "div",
27
27
  {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/content/progress/ProgressBarValue.tsx"],
4
- "sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { useSharedProgressBarPropsContext } from './hooks/useProgressBarPropsContext.js';\nimport { progressBarValueCSS } from './ProgressBarValue.sty.js';\nimport { type DataTestId } from '../../core/types/data-props.js';\nimport { type StylingProps } from '../../core/types/styling-props.js';\nimport { type WithChildren } from '../../core/types/with-children.js';\nimport { isStringChildren } from '../../core/utils/_is-string-children.js';\nimport { textStyleCSS } from '../../styles/textStyle.sty.js';\n\n/**\n * Accepted properties for ProgressBarValue.\n * @public\n * */\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface ProgressBarValueProps\n extends WithChildren,\n StylingProps,\n DataTestId {}\n\n/**\n * ProgressBarValue sub-component is rendered inside ProgressBar component.\n * @public\n */\nexport const ProgressBarValue = forwardRef<\n HTMLDivElement,\n ProgressBarValueProps\n>((props, forwardedRef) => {\n const {\n children,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n ...remainingProps\n }: ProgressBarValueProps = props;\n const intl = useIntl();\n\n const progressBarDefaultLabel = intl.formatMessage({\n defaultMessage: 'Loading',\n id: '3J6qHQEUwDxvZuIl',\n description: 'Default label for the progress-bar.',\n });\n\n const { density } = useSharedProgressBarPropsContext();\n\n const childIsText = isStringChildren(children);\n\n return (\n <div\n data-testid={dataTestId}\n ref={forwardedRef}\n className={clsx(\n consumerClassName,\n progressBarValueCSS({ size: density, childIsText }),\n textStyleCSS({ textStyle: 'small' }),\n )}\n style={consumerStyle}\n {...remainingProps}\n >\n {children || progressBarDefaultLabel}\n </div>\n );\n});\n\n(\n ProgressBarValue as typeof ProgressBarValue & { displayName: string }\n).displayName = 'ProgressBar.Value';\n"],
5
- "mappings": "AAkDI;AAlDJ,OAAO,UAAU;AACjB,SAAS,kBAAkB;AAC3B,SAAS,eAAe;AAExB,SAAS,wCAAwC;AACjD,SAAS,2BAA2B;AAIpC,SAAS,wBAAwB;AACjC,SAAS,oBAAoB;AAgBtB,MAAM,mBAAmB,WAG9B,CAAC,OAAO,iBAAiB;AACzB,QAAM;AAAA,IACJ;AAAA,IACA,WAAW;AAAA,IACX,OAAO;AAAA,IACP,eAAe;AAAA,IACf,GAAG;AAAA,EACL,IAA2B;AAC3B,QAAM,OAAO,QAAQ;AAErB,QAAM,0BAA0B,KAAK,cAAc;AAAA,IACjD,gBAAgB;AAAA,IAChB,IAAI;AAAA,IACJ,aAAa;AAAA,EACf,CAAC;AAED,QAAM,EAAE,QAAQ,IAAI,iCAAiC;AAErD,QAAM,cAAc,iBAAiB,QAAQ;AAE7C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa;AAAA,MACb,KAAK;AAAA,MACL,WAAW;AAAA,QACT;AAAA,QACA,oBAAoB,EAAE,MAAM,SAAS,YAAY,CAAC;AAAA,QAClD,aAAa,EAAE,WAAW,QAAQ,CAAC;AAAA,MACrC;AAAA,MACA,OAAO;AAAA,MACN,GAAG;AAAA,MAEH,sBAAY;AAAA;AAAA,EACf;AAEJ,CAAC;AAGC,iBACA,cAAc;",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { useSharedProgressBarPropsContext } from './hooks/useProgressBarPropsContext.js';\nimport { progressBarValueCSS } from './ProgressBarValue.sty.js';\nimport { type DataTestId } from '../../core/types/data-props.js';\nimport { type StylingProps } from '../../core/types/styling-props.js';\nimport { type WithChildren } from '../../core/types/with-children.js';\nimport { canReceiveDefaultTextFormat } from '../../core/utils/can-receive-default-text-format.js';\nimport { textStyleCSS } from '../../styles/textStyle.sty.js';\n\n/**\n * Accepted properties for ProgressBarValue.\n * @public\n * */\nexport interface ProgressBarValueProps\n extends WithChildren,\n StylingProps,\n DataTestId {}\n\n/**\n * ProgressBarValue sub-component is rendered inside ProgressBar component.\n * @public\n */\nexport const ProgressBarValue = forwardRef<\n HTMLDivElement,\n ProgressBarValueProps\n>((props, forwardedRef) => {\n const {\n children,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n ...remainingProps\n }: ProgressBarValueProps = props;\n const intl = useIntl();\n\n const progressBarDefaultLabel = intl.formatMessage({\n defaultMessage: 'Loading',\n id: '3J6qHQEUwDxvZuIl',\n description: 'Default label for the progress-bar.',\n });\n\n const { density } = useSharedProgressBarPropsContext();\n\n const childIsText = canReceiveDefaultTextFormat(children);\n\n return (\n <div\n data-testid={dataTestId}\n ref={forwardedRef}\n className={clsx(\n consumerClassName,\n progressBarValueCSS({ size: density, childIsText }),\n textStyleCSS({ textStyle: 'small' }),\n )}\n style={consumerStyle}\n {...remainingProps}\n >\n {children || progressBarDefaultLabel}\n </div>\n );\n});\n\n(\n ProgressBarValue as typeof ProgressBarValue & { displayName: string }\n).displayName = 'ProgressBar.Value';\n"],
5
+ "mappings": "AAiDI;AAjDJ,OAAO,UAAU;AACjB,SAAS,kBAAkB;AAC3B,SAAS,eAAe;AAExB,SAAS,wCAAwC;AACjD,SAAS,2BAA2B;AAIpC,SAAS,mCAAmC;AAC5C,SAAS,oBAAoB;AAetB,MAAM,mBAAmB,WAG9B,CAAC,OAAO,iBAAiB;AACzB,QAAM;AAAA,IACJ;AAAA,IACA,WAAW;AAAA,IACX,OAAO;AAAA,IACP,eAAe;AAAA,IACf,GAAG;AAAA,EACL,IAA2B;AAC3B,QAAM,OAAO,QAAQ;AAErB,QAAM,0BAA0B,KAAK,cAAc;AAAA,IACjD,gBAAgB;AAAA,IAChB,IAAI;AAAA,IACJ,aAAa;AAAA,EACf,CAAC;AAED,QAAM,EAAE,QAAQ,IAAI,iCAAiC;AAErD,QAAM,cAAc,4BAA4B,QAAQ;AAExD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa;AAAA,MACb,KAAK;AAAA,MACL,WAAW;AAAA,QACT;AAAA,QACA,oBAAoB,EAAE,MAAM,SAAS,YAAY,CAAC;AAAA,QAClD,aAAa,EAAE,WAAW,QAAQ,CAAC;AAAA,MACrC;AAAA,MACA,OAAO;AAAA,MACN,GAAG;AAAA,MAEH,sBAAY;AAAA;AAAA,EACf;AAEJ,CAAC;AAGC,iBACA,cAAc;",
6
6
  "names": []
7
7
  }
@@ -2,7 +2,7 @@ import "./ProgressBar.css";
2
2
  import "../../styles/ellipsis.css";
3
3
  import "./ProgressBarValue.css";
4
4
  import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
5
- var progressBarValueCSS = _7a468({ defaultClassName: "_1ri4i7o0-1-6-0", variantClassNames: { size: { condensed: "_1ri4i7o1-1-6-0", "default": "_1ri4i7o2-1-6-0" }, childIsText: { true: "_1ri4i7o3-1-6-0", false: "_1ri4i7o4-1-6-0" } }, defaultVariants: {}, compoundVariants: [[{ size: "condensed", childIsText: true }, "_1ri4i7o5-1-6-0 _oqqp1n0-1-6-0"]] });
5
+ var progressBarValueCSS = _7a468({ defaultClassName: "_1ri4i7o0-1-7-2", variantClassNames: { size: { condensed: "_1ri4i7o1-1-7-2", "default": "_1ri4i7o2-1-7-2" }, childIsText: { true: "_1ri4i7o3-1-7-2", false: "_1ri4i7o4-1-7-2" } }, defaultVariants: {}, compoundVariants: [[{ size: "condensed", childIsText: true }, "_1ri4i7o5-1-7-2 _oqqp1n0-1-7-2"]] });
6
6
  export {
7
7
  progressBarValueCSS
8
8
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/content/progress/ProgressBarValue.css.ts"],
4
- "sourcesContent": ["import './ProgressBar.css';\nimport '../../styles/ellipsis.css';\nimport './ProgressBarValue.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var progressBarValueCSS = _7a468({defaultClassName:'_1ri4i7o0-1-6-0',variantClassNames:{size:{condensed:'_1ri4i7o1-1-6-0','default':'_1ri4i7o2-1-6-0'},childIsText:{true:'_1ri4i7o3-1-6-0',false:'_1ri4i7o4-1-6-0'}},defaultVariants:{},compoundVariants:[[{size:'condensed',childIsText:true},'_1ri4i7o5-1-6-0 _oqqp1n0-1-6-0']]});"],
4
+ "sourcesContent": ["import './ProgressBar.css';\nimport '../../styles/ellipsis.css';\nimport './ProgressBarValue.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var progressBarValueCSS = _7a468({defaultClassName:'_1ri4i7o0-1-7-2',variantClassNames:{size:{condensed:'_1ri4i7o1-1-7-2','default':'_1ri4i7o2-1-7-2'},childIsText:{true:'_1ri4i7o3-1-7-2',false:'_1ri4i7o4-1-7-2'}},defaultVariants:{},compoundVariants:[[{size:'condensed',childIsText:true},'_1ri4i7o5-1-7-2 _oqqp1n0-1-7-2']]});"],
5
5
  "mappings": "AAAA,OAAO;AACP,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,sBAAsB,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,MAAK,EAAC,WAAU,mBAAkB,WAAU,kBAAiB,GAAE,aAAY,EAAC,MAAK,mBAAkB,OAAM,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,MAAK,aAAY,aAAY,KAAI,GAAE,gCAAgC,CAAC,EAAC,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- @keyframes _kvldjh3-1-6-0 {
1
+ @keyframes _kvldjh3-1-7-2 {
2
2
  0% {
3
3
  transform: rotate(0deg);
4
4
  }
@@ -6,79 +6,79 @@
6
6
  transform: rotate(360deg);
7
7
  }
8
8
  }
9
- ._kvldjh4-1-6-0 {
9
+ ._kvldjh4-1-7-2 {
10
10
  display: inline-block;
11
11
  }
12
- ._kvldjh5-1-6-0 {
12
+ ._kvldjh5-1-7-2 {
13
13
  display: block;
14
14
  transform: rotate(-90deg);
15
15
  }
16
- ._kvldjh6-1-6-0 {
17
- stroke: var(--_kvldjh2-1-6-0);
16
+ ._kvldjh6-1-7-2 {
17
+ stroke: var(--_kvldjh2-1-7-2);
18
18
  transform-origin: center;
19
19
  }
20
- ._kvldjh7-1-6-0 {
20
+ ._kvldjh7-1-7-2 {
21
21
  stroke-dasharray: 90 360;
22
22
  transform-origin: 50% 50%;
23
- animation-name: _kvldjh3-1-6-0;
23
+ animation-name: _kvldjh3-1-7-2;
24
24
  animation-duration: var(--dt-timings-slow-gentle, 800ms);
25
25
  animation-timing-function: cubic-bezier(0.5, 0.15, 0.5, 0.8);
26
26
  animation-iteration-count: infinite;
27
27
  }
28
- ._kvldjh8-1-6-0 {
28
+ ._kvldjh8-1-7-2 {
29
29
  animation-duration: var(--dt-timings-fast-moderate, 200ms);
30
30
  transition-property: stroke-dashoffset;
31
31
  }
32
- ._kvldjh9-1-6-0 {
33
- stroke: var(--_kvldjh1-1-6-0);
32
+ ._kvldjh9-1-7-2 {
33
+ stroke: var(--_kvldjh1-1-7-2);
34
34
  }
35
- ._kvldjha-1-6-0 {
35
+ ._kvldjha-1-7-2 {
36
36
  display: flex;
37
37
  flex-direction: column;
38
38
  align-items: center;
39
- color: var(--_kvldjh0-1-6-0);
39
+ color: var(--_kvldjh0-1-7-2);
40
40
  }
41
- ._kvldjhb-1-6-0 {
41
+ ._kvldjhb-1-7-2 {
42
42
  gap: var(--dt-spacings-size-8, 8px);
43
43
  }
44
- ._kvldjhc-1-6-0 {
44
+ ._kvldjhc-1-7-2 {
45
45
  gap: var(--dt-spacings-size-12, 12px);
46
46
  }
47
- ._kvldjhd-1-6-0 {
48
- --_kvldjh2-1-6-0: var(--dt-colors-border-critical-accent, #b80031);
47
+ ._kvldjhd-1-7-2 {
48
+ --_kvldjh2-1-7-2: var(--dt-colors-border-critical-accent, #b80031);
49
49
  }
50
- ._kvldjhe-1-6-0 {
51
- --_kvldjh2-1-6-0: var(--dt-colors-border-neutral-accent, #545587);
50
+ ._kvldjhe-1-7-2 {
51
+ --_kvldjh2-1-7-2: var(--dt-colors-border-neutral-accent, #545587);
52
52
  }
53
- ._kvldjhf-1-6-0 {
54
- --_kvldjh2-1-6-0: var(--dt-colors-border-primary-accent, #454cc9);
53
+ ._kvldjhf-1-7-2 {
54
+ --_kvldjh2-1-7-2: var(--dt-colors-border-primary-accent, #454cc9);
55
55
  }
56
- ._kvldjhg-1-6-0 {
57
- --_kvldjh2-1-6-0: var(--dt-colors-border-success-accent, #2c6360);
56
+ ._kvldjhg-1-7-2 {
57
+ --_kvldjh2-1-7-2: var(--dt-colors-border-success-accent, #2c6360);
58
58
  }
59
- ._kvldjhh-1-6-0 {
60
- --_kvldjh2-1-6-0: var(--dt-colors-border-warning-accent, #805100);
59
+ ._kvldjhh-1-7-2 {
60
+ --_kvldjh2-1-7-2: var(--dt-colors-border-warning-accent, #805100);
61
61
  }
62
- ._kvldjhi-1-6-0 {
63
- --_kvldjh0-1-6-0: var(--dt-colors-text-neutral-default, #2b2a58);
64
- --_kvldjh1-1-6-0: var(--dt-colors-border-neutral-default, #d2d3e1);
62
+ ._kvldjhi-1-7-2 {
63
+ --_kvldjh0-1-7-2: var(--dt-colors-text-neutral-default, #2b2a58);
64
+ --_kvldjh1-1-7-2: var(--dt-colors-border-neutral-default, #d2d3e1);
65
65
  }
66
- ._kvldjhj-1-6-0 {
67
- --_kvldjh0-1-6-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
68
- --_kvldjh1-1-6-0: var(--dt-colors-border-neutral-on-accent-disabled, #f3f3f633);
66
+ ._kvldjhj-1-7-2 {
67
+ --_kvldjh0-1-7-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
68
+ --_kvldjh1-1-7-2: var(--dt-colors-border-neutral-on-accent-disabled, #f3f3f633);
69
69
  }
70
- ._kvldjhk-1-6-0 {
71
- --_kvldjh2-1-6-0: var(--dt-colors-border-primary-on-accent-default, #f4f4fb);
70
+ ._kvldjhk-1-7-2 {
71
+ --_kvldjh2-1-7-2: var(--dt-colors-border-primary-on-accent-default, #f4f4fb);
72
72
  }
73
- ._kvldjhl-1-6-0 {
74
- --_kvldjh2-1-6-0: var(--dt-colors-border-success-on-accent-default, #f1f4f4);
73
+ ._kvldjhl-1-7-2 {
74
+ --_kvldjh2-1-7-2: var(--dt-colors-border-success-on-accent-default, #f1f4f4);
75
75
  }
76
- ._kvldjhm-1-6-0 {
77
- --_kvldjh2-1-6-0: var(--dt-colors-border-warning-on-accent-default, #272025);
76
+ ._kvldjhm-1-7-2 {
77
+ --_kvldjh2-1-7-2: var(--dt-colors-border-warning-on-accent-default, #272025);
78
78
  }
79
- ._kvldjhn-1-6-0 {
80
- --_kvldjh2-1-6-0: var(--dt-colors-border-critical-on-accent-default, #f9f1f3);
79
+ ._kvldjhn-1-7-2 {
80
+ --_kvldjh2-1-7-2: var(--dt-colors-border-critical-on-accent-default, #f9f1f3);
81
81
  }
82
- ._kvldjho-1-6-0 {
83
- --_kvldjh2-1-6-0: var(--dt-colors-border-neutral-on-accent-default, #f3f3f6);
82
+ ._kvldjho-1-7-2 {
83
+ --_kvldjh2-1-7-2: var(--dt-colors-border-neutral-on-accent-default, #f3f3f6);
84
84
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/content/progress/ProgressCircle.tsx"],
4
- "sourcesContent": ["/* eslint-disable deprecation/deprecation */\n\nimport clsx from 'clsx';\nimport { type CSSProperties, forwardRef, useId } from 'react';\n\nimport { useProgressAriaProps } from './hooks/useProgressAriaProps.js';\nimport {\n progressCircleBackgroundCSS,\n progressCircleContainerCSS,\n progressCircleCSS,\n progressCircleRootCSS,\n progressCircleSvgCss,\n} from './ProgressCircle.sty.js';\nimport { useAriaLabelingProps } from '../../core/hooks/useAriaLabelingProps.js';\nimport { useSafeForwardProps } from '../../core/hooks/useSafeForwardProps.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 StylingProps } from '../../core/types/styling-props.js';\nimport { type WithChildren } from '../../core/types/with-children.js';\nimport { useContainerColoring } from '../../layouts/container/Container.js';\nimport { containerColorsCSS } from '../../styles/container.sty.js';\nimport { textStyleCSS } from '../../styles/textStyle.sty.js';\n\n/**\n * Accepted properties for ProgressCircle.\n * @public\n */\nexport interface ProgressCircleProps\n extends WithChildren,\n DOMProps,\n AriaLabelingProps,\n StylingProps,\n DataTestId,\n MaskingProps {\n /**\n * The current value.\n * @defaultValue 'indeterminate'\n */\n value?: number | 'indeterminate';\n /**\n * The smallest allowed value.\n * @defaultValue 0\n */\n min?: number;\n /**\n * The maximum allowed value.\n * @defaultValue 100\n */\n max?: number;\n /**\n * Controls the size of the rendered progress.\n * @defaultValue 'large'\n */\n size?: 'small' | 'large';\n /**\n * Controls the color of the progress.\n * @defaultValue 'primary' or a container's color.\n */\n color?: 'neutral' | 'primary' | 'success' | 'warning' | 'critical';\n /**\n * The aria-valuetext attribute defines the human-readable text alternative of aria-valuenow for a range widget.\n * Default the value as percentage will be provided. If the value is not a percentage please provide the aria-valuetext.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuetext\n * @defaultValue the value of the progress as percentage.\n */\n 'aria-valuetext'?: string;\n}\n\nconst progressCircleSizes = {\n small: 20,\n large: 40,\n};\nconst progressCircleThickness = 5;\n\n/**\n * The `ProgressCircle` component is used to indicate the progress or completion status of a task or process.\n * @public\n * */\nexport const ProgressCircle = forwardRef<HTMLDivElement, ProgressCircleProps>(\n (props, forwardedRef) => {\n const {\n value: originalValue,\n min = 0,\n max = 100,\n size = 'large',\n color,\n children,\n id: propId,\n 'aria-valuetext': ariaValuetext,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n ...remainingProps\n }: ProgressCircleProps = props;\n\n const { value, isIndeterminate, progressAriaProps } = useProgressAriaProps(\n originalValue,\n min,\n max,\n ariaValuetext,\n );\n\n const containerColoring = useContainerColoring();\n const derivedVariant =\n containerColoring.variant === 'accent' ? 'accent' : 'default';\n\n // for the color in the ProgressCircle the fallback logic is a bit different - usually\n // the fallback from the container is \"neutral\" - but in the case of the progress circle the default\n // fallback color is \"primary\"\n const fallbackColor = containerColoring.default\n ? 'primary'\n : containerColoring.color;\n const derivedColor = color ?? fallbackColor;\n\n const ariaLabelingProps = useAriaLabelingProps(remainingProps);\n const forwardProps = useSafeForwardProps(remainingProps, ariaLabelingProps);\n\n const generatedId = useId();\n const id = propId ?? generatedId;\n\n const circleStyles: CSSProperties = {};\n const rootProps = {};\n\n if (!isIndeterminate && value !== undefined) {\n const circumference =\n 2 *\n Math.PI *\n ((progressCircleSizes[size] - progressCircleThickness) / 2);\n circleStyles['strokeDasharray'] = circumference.toFixed(3);\n const dashOffset = Number(\n (((max - value) / max) * circumference).toFixed(3),\n );\n circleStyles['strokeDashoffset'] = `${\n dashOffset >= 0 ? dashOffset : 0\n }px`;\n }\n\n if (\n !children &&\n !ariaLabelingProps['aria-label'] &&\n !ariaLabelingProps['aria-labelledby']\n ) {\n process.env.NODE_ENV === 'development' &&\n // eslint-disable-next-line no-console\n console.warn(\n 'If no label is provided please make sure to provide an aria label on your progressCircle element.',\n );\n }\n\n return (\n <div\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n ref={forwardedRef}\n className={clsx(\n consumerClassName,\n containerColorsCSS({\n color: derivedColor,\n variant: derivedVariant,\n }),\n progressCircleContainerCSS({\n size,\n color: derivedColor,\n variant: derivedVariant,\n }),\n )}\n style={consumerStyle}\n {...forwardProps}\n >\n <span\n id={id}\n className={clsx(progressCircleRootCSS)}\n style={{\n height: `${progressCircleSizes[size]}px`,\n width: `${progressCircleSizes[size]}px`,\n }}\n {...ariaLabelingProps}\n {...progressAriaProps}\n {...rootProps}\n >\n <svg\n className={progressCircleSvgCss}\n viewBox={`0 0 ${progressCircleSizes[size]} ${progressCircleSizes[size]}`}\n width=\"100%\"\n height=\"100%\"\n >\n <circle\n fill=\"none\"\n className={clsx(progressCircleBackgroundCSS)}\n cx={progressCircleSizes[size] / 2}\n cy={progressCircleSizes[size] / 2}\n r={(progressCircleSizes[size] - progressCircleThickness) / 2}\n strokeWidth={progressCircleThickness}\n />\n <circle\n style={circleStyles}\n className={progressCircleCSS({ indeterminate: isIndeterminate })}\n fill=\"none\"\n pathLength={\n isIndeterminate ? 360 : circleStyles['strokeDasharray']\n }\n cx={progressCircleSizes[size] / 2}\n cy={progressCircleSizes[size] / 2}\n r={(progressCircleSizes[size] - progressCircleThickness) / 2}\n strokeWidth={progressCircleThickness}\n />\n </svg>\n </span>\n {children && (\n <label\n className={clsx(\n textStyleCSS({ textStyle: size === 'small' ? 'small' : 'base' }),\n )}\n htmlFor={id}\n >\n {children}\n </label>\n )}\n </div>\n );\n },\n);\n\n(\n ProgressCircle as typeof ProgressCircle & { displayName: string }\n).displayName = 'ProgressCircle';\n"],
5
- "mappings": "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",
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport { type CSSProperties, forwardRef, useId } from 'react';\n\nimport { useProgressAriaProps } from './hooks/useProgressAriaProps.js';\nimport {\n progressCircleBackgroundCSS,\n progressCircleContainerCSS,\n progressCircleCSS,\n progressCircleRootCSS,\n progressCircleSvgCss,\n} from './ProgressCircle.sty.js';\nimport { useAriaLabelingProps } from '../../core/hooks/useAriaLabelingProps.js';\nimport { useSafeForwardProps } from '../../core/hooks/useSafeForwardProps.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 StylingProps } from '../../core/types/styling-props.js';\nimport { type WithChildren } from '../../core/types/with-children.js';\nimport { useContainerColoring } from '../../layouts/container/Container.js';\nimport { containerColorsCSS } from '../../styles/container.sty.js';\nimport { textStyleCSS } from '../../styles/textStyle.sty.js';\n\n/**\n * Accepted properties for ProgressCircle.\n * @public\n */\nexport interface ProgressCircleProps\n extends WithChildren,\n DOMProps,\n AriaLabelingProps,\n StylingProps,\n DataTestId,\n MaskingProps {\n /**\n * The current value.\n * @defaultValue 'indeterminate'\n */\n value?: number | 'indeterminate';\n /**\n * The smallest allowed value.\n * @defaultValue 0\n */\n min?: number;\n /**\n * The maximum allowed value.\n * @defaultValue 100\n */\n max?: number;\n /**\n * Controls the size of the rendered progress.\n * @defaultValue 'large'\n */\n size?: 'small' | 'large';\n /**\n * Controls the color of the progress.\n * @defaultValue 'primary' or a container's color.\n */\n color?: 'neutral' | 'primary' | 'success' | 'warning' | 'critical';\n /**\n * The aria-valuetext attribute defines the human-readable text alternative of aria-valuenow for a range widget.\n * Default the value as percentage will be provided. If the value is not a percentage please provide the aria-valuetext.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuetext\n * @defaultValue the value of the progress as percentage.\n */\n 'aria-valuetext'?: string;\n}\n\nconst progressCircleSizes = {\n small: 20,\n large: 40,\n};\nconst progressCircleThickness = 5;\n\n/**\n * The `ProgressCircle` component is used to indicate the progress or completion status of a task or process.\n * @public\n * */\nexport const ProgressCircle = forwardRef<HTMLDivElement, ProgressCircleProps>(\n (props, forwardedRef) => {\n const {\n value: originalValue,\n min = 0,\n max = 100,\n size = 'large',\n color,\n children,\n id: propId,\n 'aria-valuetext': ariaValuetext,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n ...remainingProps\n }: ProgressCircleProps = props;\n\n const { value, isIndeterminate, progressAriaProps } = useProgressAriaProps(\n originalValue,\n min,\n max,\n ariaValuetext,\n );\n\n const containerColoring = useContainerColoring();\n const derivedVariant =\n containerColoring.variant === 'accent' ? 'accent' : 'default';\n\n // for the color in the ProgressCircle the fallback logic is a bit different - usually\n // the fallback from the container is \"neutral\" - but in the case of the progress circle the default\n // fallback color is \"primary\"\n const fallbackColor = containerColoring.default\n ? 'primary'\n : containerColoring.color;\n const derivedColor = color ?? fallbackColor;\n\n const ariaLabelingProps = useAriaLabelingProps(remainingProps);\n const forwardProps = useSafeForwardProps(remainingProps, ariaLabelingProps);\n\n const generatedId = useId();\n const id = propId ?? generatedId;\n\n const circleStyles: CSSProperties = {};\n const rootProps = {};\n\n if (!isIndeterminate && value !== undefined) {\n const circumference =\n 2 *\n Math.PI *\n ((progressCircleSizes[size] - progressCircleThickness) / 2);\n circleStyles['strokeDasharray'] = circumference.toFixed(3);\n const dashOffset = Number(\n (((max - value) / max) * circumference).toFixed(3),\n );\n circleStyles['strokeDashoffset'] = `${\n dashOffset >= 0 ? dashOffset : 0\n }px`;\n }\n\n if (\n !children &&\n !ariaLabelingProps['aria-label'] &&\n !ariaLabelingProps['aria-labelledby']\n ) {\n process.env.NODE_ENV === 'development' &&\n // eslint-disable-next-line no-console\n console.warn(\n 'If no label is provided please make sure to provide an aria label on your progressCircle element.',\n );\n }\n\n return (\n <div\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n ref={forwardedRef}\n className={clsx(\n consumerClassName,\n containerColorsCSS({\n color: derivedColor,\n variant: derivedVariant,\n }),\n progressCircleContainerCSS({\n size,\n color: derivedColor,\n variant: derivedVariant,\n }),\n )}\n style={consumerStyle}\n {...forwardProps}\n >\n <span\n id={id}\n className={clsx(progressCircleRootCSS)}\n style={{\n height: `${progressCircleSizes[size]}px`,\n width: `${progressCircleSizes[size]}px`,\n }}\n {...ariaLabelingProps}\n {...progressAriaProps}\n {...rootProps}\n >\n <svg\n className={progressCircleSvgCss}\n viewBox={`0 0 ${progressCircleSizes[size]} ${progressCircleSizes[size]}`}\n width=\"100%\"\n height=\"100%\"\n >\n <circle\n fill=\"none\"\n className={clsx(progressCircleBackgroundCSS)}\n cx={progressCircleSizes[size] / 2}\n cy={progressCircleSizes[size] / 2}\n r={(progressCircleSizes[size] - progressCircleThickness) / 2}\n strokeWidth={progressCircleThickness}\n />\n <circle\n style={circleStyles}\n className={progressCircleCSS({ indeterminate: isIndeterminate })}\n fill=\"none\"\n pathLength={\n isIndeterminate ? 360 : circleStyles['strokeDasharray']\n }\n cx={progressCircleSizes[size] / 2}\n cy={progressCircleSizes[size] / 2}\n r={(progressCircleSizes[size] - progressCircleThickness) / 2}\n strokeWidth={progressCircleThickness}\n />\n </svg>\n </span>\n {children && (\n <label\n className={clsx(\n textStyleCSS({ textStyle: size === 'small' ? 'small' : 'base' }),\n )}\n htmlFor={id}\n >\n {children}\n </label>\n )}\n </div>\n );\n },\n);\n\n(\n ProgressCircle as typeof ProgressCircle & { displayName: string }\n).displayName = 'ProgressCircle';\n"],
5
+ "mappings": "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",
6
6
  "names": []
7
7
  }
@@ -1,10 +1,10 @@
1
1
  import "./ProgressCircle.css";
2
2
  import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
3
- var progressCircleBackgroundCSS = "_kvldjh9-1-6-0";
4
- var progressCircleCSS = _7a468({ defaultClassName: "_kvldjh6-1-6-0", variantClassNames: { indeterminate: { true: "_kvldjh7-1-6-0", false: "_kvldjh8-1-6-0" } }, defaultVariants: {}, compoundVariants: [] });
5
- var progressCircleContainerCSS = _7a468({ defaultClassName: "_kvldjha-1-6-0", variantClassNames: { size: { small: "_kvldjhb-1-6-0", large: "_kvldjhc-1-6-0" }, color: { critical: "_kvldjhd-1-6-0", neutral: "_kvldjhe-1-6-0", primary: "_kvldjhf-1-6-0", success: "_kvldjhg-1-6-0", warning: "_kvldjhh-1-6-0" }, variant: { "default": "_kvldjhi-1-6-0", accent: "_kvldjhj-1-6-0" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "_kvldjhk-1-6-0"], [{ color: "success", variant: "accent" }, "_kvldjhl-1-6-0"], [{ color: "warning", variant: "accent" }, "_kvldjhm-1-6-0"], [{ color: "critical", variant: "accent" }, "_kvldjhn-1-6-0"], [{ color: "neutral", variant: "accent" }, "_kvldjho-1-6-0"]] });
6
- var progressCircleRootCSS = "_kvldjh4-1-6-0";
7
- var progressCircleSvgCss = "_kvldjh5-1-6-0";
3
+ var progressCircleBackgroundCSS = "_kvldjh9-1-7-2";
4
+ var progressCircleCSS = _7a468({ defaultClassName: "_kvldjh6-1-7-2", variantClassNames: { indeterminate: { true: "_kvldjh7-1-7-2", false: "_kvldjh8-1-7-2" } }, defaultVariants: {}, compoundVariants: [] });
5
+ var progressCircleContainerCSS = _7a468({ defaultClassName: "_kvldjha-1-7-2", variantClassNames: { size: { small: "_kvldjhb-1-7-2", large: "_kvldjhc-1-7-2" }, color: { critical: "_kvldjhd-1-7-2", neutral: "_kvldjhe-1-7-2", primary: "_kvldjhf-1-7-2", success: "_kvldjhg-1-7-2", warning: "_kvldjhh-1-7-2" }, variant: { "default": "_kvldjhi-1-7-2", accent: "_kvldjhj-1-7-2" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "_kvldjhk-1-7-2"], [{ color: "success", variant: "accent" }, "_kvldjhl-1-7-2"], [{ color: "warning", variant: "accent" }, "_kvldjhm-1-7-2"], [{ color: "critical", variant: "accent" }, "_kvldjhn-1-7-2"], [{ color: "neutral", variant: "accent" }, "_kvldjho-1-7-2"]] });
6
+ var progressCircleRootCSS = "_kvldjh4-1-7-2";
7
+ var progressCircleSvgCss = "_kvldjh5-1-7-2";
8
8
  export {
9
9
  progressCircleBackgroundCSS,
10
10
  progressCircleCSS,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/content/progress/ProgressCircle.css.ts"],
4
- "sourcesContent": ["import './ProgressCircle.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var progressCircleBackgroundCSS = '_kvldjh9-1-6-0';\nexport var progressCircleCSS = _7a468({defaultClassName:'_kvldjh6-1-6-0',variantClassNames:{indeterminate:{true:'_kvldjh7-1-6-0',false:'_kvldjh8-1-6-0'}},defaultVariants:{},compoundVariants:[]});\nexport var progressCircleContainerCSS = _7a468({defaultClassName:'_kvldjha-1-6-0',variantClassNames:{size:{small:'_kvldjhb-1-6-0',large:'_kvldjhc-1-6-0'},color:{critical:'_kvldjhd-1-6-0',neutral:'_kvldjhe-1-6-0',primary:'_kvldjhf-1-6-0',success:'_kvldjhg-1-6-0',warning:'_kvldjhh-1-6-0'},variant:{'default':'_kvldjhi-1-6-0',accent:'_kvldjhj-1-6-0'}},defaultVariants:{},compoundVariants:[[{color:'primary',variant:'accent'},'_kvldjhk-1-6-0'],[{color:'success',variant:'accent'},'_kvldjhl-1-6-0'],[{color:'warning',variant:'accent'},'_kvldjhm-1-6-0'],[{color:'critical',variant:'accent'},'_kvldjhn-1-6-0'],[{color:'neutral',variant:'accent'},'_kvldjho-1-6-0']]});\nexport var progressCircleRootCSS = '_kvldjh4-1-6-0';\nexport var progressCircleSvgCss = '_kvldjh5-1-6-0';"],
4
+ "sourcesContent": ["import './ProgressCircle.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var progressCircleBackgroundCSS = '_kvldjh9-1-7-2';\nexport var progressCircleCSS = _7a468({defaultClassName:'_kvldjh6-1-7-2',variantClassNames:{indeterminate:{true:'_kvldjh7-1-7-2',false:'_kvldjh8-1-7-2'}},defaultVariants:{},compoundVariants:[]});\nexport var progressCircleContainerCSS = _7a468({defaultClassName:'_kvldjha-1-7-2',variantClassNames:{size:{small:'_kvldjhb-1-7-2',large:'_kvldjhc-1-7-2'},color:{critical:'_kvldjhd-1-7-2',neutral:'_kvldjhe-1-7-2',primary:'_kvldjhf-1-7-2',success:'_kvldjhg-1-7-2',warning:'_kvldjhh-1-7-2'},variant:{'default':'_kvldjhi-1-7-2',accent:'_kvldjhj-1-7-2'}},defaultVariants:{},compoundVariants:[[{color:'primary',variant:'accent'},'_kvldjhk-1-7-2'],[{color:'success',variant:'accent'},'_kvldjhl-1-7-2'],[{color:'warning',variant:'accent'},'_kvldjhm-1-7-2'],[{color:'critical',variant:'accent'},'_kvldjhn-1-7-2'],[{color:'neutral',variant:'accent'},'_kvldjho-1-7-2']]});\nexport var progressCircleRootCSS = '_kvldjh4-1-7-2';\nexport var progressCircleSvgCss = '_kvldjh5-1-7-2';"],
5
5
  "mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,8BAA8B;AAClC,IAAI,oBAAoB,OAAO,EAAC,kBAAiB,kBAAiB,mBAAkB,EAAC,eAAc,EAAC,MAAK,kBAAiB,OAAM,iBAAgB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;AAC1L,IAAI,6BAA6B,OAAO,EAAC,kBAAiB,kBAAiB,mBAAkB,EAAC,MAAK,EAAC,OAAM,kBAAiB,OAAM,iBAAgB,GAAE,OAAM,EAAC,UAAS,kBAAiB,SAAQ,kBAAiB,SAAQ,kBAAiB,SAAQ,kBAAiB,SAAQ,iBAAgB,GAAE,SAAQ,EAAC,WAAU,kBAAiB,QAAO,iBAAgB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,YAAW,SAAQ,SAAQ,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,gBAAgB,CAAC,EAAC,CAAC;AAC5oB,IAAI,wBAAwB;AAC5B,IAAI,uBAAuB;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/content/progress/contexts/SharedProgressBarPropsContext.ts"],
4
- "sourcesContent": ["/* eslint-disable deprecation/deprecation */\n\nimport { createContext } from 'react';\n\nexport type SharedProgressBarProps = {\n id: string;\n density: 'default' | 'condensed';\n};\n\n/** Context provider for `ProgressBarProps` props meant to be provided to all its progressbar-related child nodes. */\nexport const SharedProgressBarPropsContext =\n createContext<SharedProgressBarProps>({\n id: '',\n density: 'default',\n });\n"],
5
- "mappings": "AAEA,SAAS,qBAAqB;AAQvB,MAAM,gCACX,cAAsC;AAAA,EACpC,IAAI;AAAA,EACJ,SAAS;AACX,CAAC;",
4
+ "sourcesContent": ["import { createContext } from 'react';\n\nexport type SharedProgressBarProps = {\n id: string;\n density: 'default' | 'condensed';\n};\n\n/** Context provider for `ProgressBarProps` props meant to be provided to all its progressbar-related child nodes. */\nexport const SharedProgressBarPropsContext =\n createContext<SharedProgressBarProps>({\n id: '',\n density: 'default',\n });\n"],
5
+ "mappings": "AAAA,SAAS,qBAAqB;AAQvB,MAAM,gCACX,cAAsC;AAAA,EACpC,IAAI;AAAA,EACJ,SAAS;AACX,CAAC;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
- @keyframes _1a1ozfd0-1-6-0 {
1
+ @keyframes _1a1ozfd0-1-7-2 {
2
2
  0% {
3
3
  transform: translateX(-100%) scaleX(0);
4
4
  }
@@ -6,12 +6,12 @@
6
6
  transform: translateX(100%) scaleX(1.5);
7
7
  }
8
8
  }
9
- ._1a1ozfd1-1-6-0 {
9
+ ._1a1ozfd1-1-7-2 {
10
10
  position: relative;
11
11
  overflow: hidden;
12
12
  background-color: var(--dt-colors-background-field-neutral-disabled, #dadbe780);
13
13
  }
14
- ._1a1ozfd1-1-6-0:after {
14
+ ._1a1ozfd1-1-7-2:after {
15
15
  content: "";
16
16
  position: absolute;
17
17
  top: 0;
@@ -21,13 +21,13 @@
21
21
  background-color: var(--dt-colors-background-field-neutral-disabled, #dadbe780);
22
22
  animation-iteration-count: infinite;
23
23
  transform-origin: left center;
24
- animation-name: _1a1ozfd0-1-6-0;
24
+ animation-name: _1a1ozfd0-1-7-2;
25
25
  animation-duration: var(--dt-timings-slow-gentle, 800ms);
26
26
  animation-timing-function: var(--dt-easings-fast-in-slow-out, cubic-bezier(0.4, 0, 0.2, 1));
27
27
  }
28
- ._1a1ozfd2-1-6-0 {
28
+ ._1a1ozfd2-1-7-2 {
29
29
  border-radius: var(--dt-borders-radius-container-subdued, 8px);
30
30
  }
31
- ._1a1ozfd3-1-6-0 {
31
+ ._1a1ozfd3-1-7-2 {
32
32
  border-radius: 9999px;
33
33
  }
@@ -1,6 +1,6 @@
1
1
  import "./Skeleton.css";
2
2
  import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
3
- var skeletonPlaceholderCSS = _7a468({ defaultClassName: "_1a1ozfd1-1-6-0", variantClassNames: { variant: { "default": "_1a1ozfd2-1-6-0", rounded: "_1a1ozfd3-1-6-0" } }, defaultVariants: {}, compoundVariants: [] });
3
+ var skeletonPlaceholderCSS = _7a468({ defaultClassName: "_1a1ozfd1-1-7-2", variantClassNames: { variant: { "default": "_1a1ozfd2-1-7-2", rounded: "_1a1ozfd3-1-7-2" } }, defaultVariants: {}, compoundVariants: [] });
4
4
  export {
5
5
  skeletonPlaceholderCSS
6
6
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/content/skeleton/Skeleton.css.ts"],
4
- "sourcesContent": ["import './Skeleton.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var skeletonPlaceholderCSS = _7a468({defaultClassName:'_1a1ozfd1-1-6-0',variantClassNames:{variant:{'default':'_1a1ozfd2-1-6-0',rounded:'_1a1ozfd3-1-6-0'}},defaultVariants:{},compoundVariants:[]});"],
4
+ "sourcesContent": ["import './Skeleton.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var skeletonPlaceholderCSS = _7a468({defaultClassName:'_1a1ozfd1-1-7-2',variantClassNames:{variant:{'default':'_1a1ozfd2-1-7-2',rounded:'_1a1ozfd3-1-7-2'}},defaultVariants:{},compoundVariants:[]});"],
5
5
  "mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,yBAAyB,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,SAAQ,EAAC,WAAU,mBAAkB,SAAQ,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;",
6
6
  "names": []
7
7
  }
@@ -18,7 +18,7 @@ const FocusScope = (props) => {
18
18
  const triggerElementCopy2 = triggerElement.current;
19
19
  return () => {
20
20
  focusContext.setBackgroundInertness(false);
21
- window.setTimeout(() => triggerElementCopy2.focus(), 0);
21
+ focusContext.focusTriggerElement(triggerElementCopy2);
22
22
  };
23
23
  }
24
24
  if (!autoFocus && !contain) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../src/core/components/focus-scope/FocusScope.tsx"],
4
- "sourcesContent": ["import { useEffect, useRef } from 'react';\n\nimport { useActiveElement } from '../../hooks/useActiveElement.js';\nimport { useFocusContext } from '../../hooks/useFocusContext.js';\nimport type { WithChildren } from '../../types/with-children.js';\nimport { focusFirstDescendant } from '../../utils/focus-management/focus-first-descendant.js';\n\n// #region Types\n\n/**\n * Prop definition of the `FocusScope` component.\n * @public\n */\nexport interface FocusScopeProps extends WithChildren {\n /**\n * If set to true, the focus scope automatically focuses the first focusable element inside.\n * @defaultValue false\n */\n autoFocus?: boolean;\n /**\n * If set to true, the focus scope traps the focus inside.\n * @defaultValue false\n */\n contain?: boolean;\n}\n// #endregion Types\n\n/**\n * The `FocusScope` helps you manage the focus when opening any overlay. If you\n * want to create a custom overlay, you can wrap the content of your overlay in the\n * `FocusScope` to help you make the overlay accessible and handle focus\n * appropriately.\n * @public\n */\nexport const FocusScope = (props: FocusScopeProps) => {\n const { autoFocus, contain, children } = props;\n const focusContext = useFocusContext();\n const wrapperRef = useRef<HTMLDivElement>(null);\n const focusedElement = useActiveElement();\n const triggerElement = useRef(focusedElement);\n\n useEffect(() => {\n if (contain || autoFocus) {\n focusFirstDescendant(wrapperRef.current);\n }\n\n if (contain) {\n focusContext.setBackgroundInertness(true);\n const triggerElementCopy = triggerElement.current;\n\n return () => {\n focusContext.setBackgroundInertness(false);\n // The focus must be restored on the trigger after removing the inert prop on\n // AppRoot (rendering complete). SetTimeout creates a macrotask to change queueing order.\n window.setTimeout(() => triggerElementCopy.focus(), 0);\n };\n }\n\n if (!autoFocus && !contain) {\n document.addEventListener('keydown', (e) => {\n if (e.key !== 'Tab') {\n return;\n }\n\n if (e.target === triggerElement.current) {\n e.preventDefault();\n focusFirstDescendant(wrapperRef.current);\n }\n });\n }\n\n const triggerElementCopy = triggerElement.current;\n\n return () => {\n // restore focus on trigger when unmounting the focusscope\n triggerElementCopy.focus();\n };\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [contain, autoFocus]);\n\n return (\n <div\n style={{ display: 'contents' }}\n ref={wrapperRef}\n aria-labelledby={triggerElement.current.id}\n // Prevents that focus is lost when clicking on non-focusable items inside (atm used in the internal Drawer).\n // Probably worth considering moving that to the focusScope when redoing the overlays.\n // tabIndex={-1}\n >\n {children}\n </div>\n );\n};\n\nFocusScope.displayName = 'FocusScope';\n"],
5
- "mappings": "AAkFI;AAlFJ,SAAS,WAAW,cAAc;AAElC,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAEhC,SAAS,4BAA4B;AA6B9B,MAAM,aAAa,CAAC,UAA2B;AACpD,QAAM,EAAE,WAAW,SAAS,SAAS,IAAI;AACzC,QAAM,eAAe,gBAAgB;AACrC,QAAM,aAAa,OAAuB,IAAI;AAC9C,QAAM,iBAAiB,iBAAiB;AACxC,QAAM,iBAAiB,OAAO,cAAc;AAE5C,YAAU,MAAM;AACd,QAAI,WAAW,WAAW;AACxB,2BAAqB,WAAW,OAAO;AAAA,IACzC;AAEA,QAAI,SAAS;AACX,mBAAa,uBAAuB,IAAI;AACxC,YAAMA,sBAAqB,eAAe;AAE1C,aAAO,MAAM;AACX,qBAAa,uBAAuB,KAAK;AAGzC,eAAO,WAAW,MAAMA,oBAAmB,MAAM,GAAG,CAAC;AAAA,MACvD;AAAA,IACF;AAEA,QAAI,CAAC,aAAa,CAAC,SAAS;AAC1B,eAAS,iBAAiB,WAAW,CAAC,MAAM;AAC1C,YAAI,EAAE,QAAQ,OAAO;AACnB;AAAA,QACF;AAEA,YAAI,EAAE,WAAW,eAAe,SAAS;AACvC,YAAE,eAAe;AACjB,+BAAqB,WAAW,OAAO;AAAA,QACzC;AAAA,MACF,CAAC;AAAA,IACH;AAEA,UAAM,qBAAqB,eAAe;AAE1C,WAAO,MAAM;AAEX,yBAAmB,MAAM;AAAA,IAC3B;AAAA,EAGF,GAAG,CAAC,SAAS,SAAS,CAAC;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,EAAE,SAAS,WAAW;AAAA,MAC7B,KAAK;AAAA,MACL,mBAAiB,eAAe,QAAQ;AAAA,MAKvC;AAAA;AAAA,EACH;AAEJ;AAEA,WAAW,cAAc;",
4
+ "sourcesContent": ["import { useEffect, useRef } from 'react';\n\nimport { useActiveElement } from '../../hooks/useActiveElement.js';\nimport { useFocusContext } from '../../hooks/useFocusContext.js';\nimport type { WithChildren } from '../../types/with-children.js';\nimport { focusFirstDescendant } from '../../utils/focus-management/focus-first-descendant.js';\n\n// #region Types\n\n/**\n * Prop definition of the `FocusScope` component.\n * @public\n */\nexport interface FocusScopeProps extends WithChildren {\n /**\n * If set to true, the focus scope automatically focuses the first focusable element inside.\n * @defaultValue false\n */\n autoFocus?: boolean;\n /**\n * If set to true, the focus scope traps the focus inside.\n * @defaultValue false\n */\n contain?: boolean;\n}\n// #endregion Types\n\n/**\n * The `FocusScope` helps you manage the focus when opening any overlay. If you\n * want to create a custom overlay, you can wrap the content of your overlay in the\n * `FocusScope` to help you make the overlay accessible and handle focus\n * appropriately.\n * @public\n */\nexport const FocusScope = (props: FocusScopeProps) => {\n const { autoFocus, contain, children } = props;\n const focusContext = useFocusContext();\n const wrapperRef = useRef<HTMLDivElement>(null);\n const focusedElement = useActiveElement();\n const triggerElement = useRef(focusedElement);\n\n useEffect(() => {\n if (contain || autoFocus) {\n focusFirstDescendant(wrapperRef.current);\n }\n\n if (contain) {\n focusContext.setBackgroundInertness(true);\n const triggerElementCopy = triggerElement.current;\n\n return () => {\n focusContext.setBackgroundInertness(false);\n\n focusContext.focusTriggerElement(triggerElementCopy);\n };\n }\n\n if (!autoFocus && !contain) {\n document.addEventListener('keydown', (e) => {\n if (e.key !== 'Tab') {\n return;\n }\n\n if (e.target === triggerElement.current) {\n e.preventDefault();\n focusFirstDescendant(wrapperRef.current);\n }\n });\n }\n\n const triggerElementCopy = triggerElement.current;\n\n return () => {\n // restore focus on trigger when unmounting the focusscope\n triggerElementCopy.focus();\n };\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [contain, autoFocus]);\n\n return (\n <div\n style={{ display: 'contents' }}\n ref={wrapperRef}\n aria-labelledby={triggerElement.current.id}\n // Prevents that focus is lost when clicking on non-focusable items inside (atm used in the internal Drawer).\n // Probably worth considering moving that to the focusScope when redoing the overlays.\n // tabIndex={-1}\n >\n {children}\n </div>\n );\n};\n\nFocusScope.displayName = 'FocusScope';\n"],
5
+ "mappings": "AAiFI;AAjFJ,SAAS,WAAW,cAAc;AAElC,SAAS,wBAAwB;AACjC,SAAS,uBAAuB;AAEhC,SAAS,4BAA4B;AA6B9B,MAAM,aAAa,CAAC,UAA2B;AACpD,QAAM,EAAE,WAAW,SAAS,SAAS,IAAI;AACzC,QAAM,eAAe,gBAAgB;AACrC,QAAM,aAAa,OAAuB,IAAI;AAC9C,QAAM,iBAAiB,iBAAiB;AACxC,QAAM,iBAAiB,OAAO,cAAc;AAE5C,YAAU,MAAM;AACd,QAAI,WAAW,WAAW;AACxB,2BAAqB,WAAW,OAAO;AAAA,IACzC;AAEA,QAAI,SAAS;AACX,mBAAa,uBAAuB,IAAI;AACxC,YAAMA,sBAAqB,eAAe;AAE1C,aAAO,MAAM;AACX,qBAAa,uBAAuB,KAAK;AAEzC,qBAAa,oBAAoBA,mBAAkB;AAAA,MACrD;AAAA,IACF;AAEA,QAAI,CAAC,aAAa,CAAC,SAAS;AAC1B,eAAS,iBAAiB,WAAW,CAAC,MAAM;AAC1C,YAAI,EAAE,QAAQ,OAAO;AACnB;AAAA,QACF;AAEA,YAAI,EAAE,WAAW,eAAe,SAAS;AACvC,YAAE,eAAe;AACjB,+BAAqB,WAAW,OAAO;AAAA,QACzC;AAAA,MACF,CAAC;AAAA,IACH;AAEA,UAAM,qBAAqB,eAAe;AAE1C,WAAO,MAAM;AAEX,yBAAmB,MAAM;AAAA,IAC3B;AAAA,EAGF,GAAG,CAAC,SAAS,SAAS,CAAC;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,EAAE,SAAS,WAAW;AAAA,MAC7B,KAAK;AAAA,MACL,mBAAiB,eAAe,QAAQ;AAAA,MAKvC;AAAA;AAAA,EACH;AAEJ;AAEA,WAAW,cAAc;",
6
6
  "names": ["triggerElementCopy"]
7
7
  }
@@ -2,7 +2,8 @@ import { createContext } from "react";
2
2
  const FocusContext = createContext({
3
3
  modality: "unknown",
4
4
  backgroundInertness: void 0,
5
- setBackgroundInertness: (value) => null
5
+ setBackgroundInertness: (value) => null,
6
+ focusTriggerElement: (value) => null
6
7
  });
7
8
  export {
8
9
  FocusContext
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/core/contexts/FocusContext.tsx"],
4
- "sourcesContent": ["import { createContext } from 'react';\n\nimport type { Modality } from '../providers/FocusProvider.js';\n\n/**\n * Defines the contents of the FocusContext.\n * @internal\n */\nexport type FocusContextProps = {\n backgroundInertness?: boolean;\n modality: Modality;\n setBackgroundInertness: (value: boolean) => void;\n};\n\n/**\n * This context keeps all information needed for proper focus management.\n * @param modality - currently used pointer device\n * @param backgroundInertness - if the background (behind overlays) is currently inert (inactive)\n * @param setBackgroundInertness - updates the backgrounds active status\n * @internal\n */\nexport const FocusContext = createContext<FocusContextProps>({\n modality: 'unknown',\n backgroundInertness: undefined,\n setBackgroundInertness: (value) => null,\n});\n"],
5
- "mappings": "AAAA,SAAS,qBAAqB;AAqBvB,MAAM,eAAe,cAAiC;AAAA,EAC3D,UAAU;AAAA,EACV,qBAAqB;AAAA,EACrB,wBAAwB,CAAC,UAAU;AACrC,CAAC;",
4
+ "sourcesContent": ["import { createContext } from 'react';\n\nimport type { Modality } from '../providers/FocusProvider.js';\n\n/**\n * Defines the contents of the FocusContext.\n * @internal\n */\nexport type FocusContextProps = {\n backgroundInertness?: boolean;\n modality: Modality;\n setBackgroundInertness: (value: boolean) => void;\n focusTriggerElement: (value: HTMLElement | undefined) => void;\n};\n\n/**\n * This context keeps all information needed for proper focus management.\n * @param modality - currently used pointer device\n * @param backgroundInertness - if the background (behind overlays) is currently inert (inactive)\n * @param setBackgroundInertness - updates the backgrounds active status\n * @internal\n */\nexport const FocusContext = createContext<FocusContextProps>({\n modality: 'unknown',\n backgroundInertness: undefined,\n setBackgroundInertness: (value) => null,\n focusTriggerElement: (value) => null,\n});\n"],
5
+ "mappings": "AAAA,SAAS,qBAAqB;AAsBvB,MAAM,eAAe,cAAiC;AAAA,EAC3D,UAAU;AAAA,EACV,qBAAqB;AAAA,EACrB,wBAAwB,CAAC,UAAU;AAAA,EACnC,qBAAqB,CAAC,UAAU;AAClC,CAAC;",
6
6
  "names": []
7
7
  }
package/esm/core/index.js CHANGED
@@ -17,31 +17,25 @@ import {
17
17
  mergeProps
18
18
  } from "./utils/merge-props.js";
19
19
  import { useAriaLabelingProps } from "./hooks/useAriaLabelingProps.js";
20
- import { useId } from "./hooks/useId.js";
21
20
  import { useSafeForwardProps } from "./hooks/useSafeForwardProps.js";
22
- import { uuidv4 } from "./utils/uuidv4.js";
23
- import { isStringChildren } from "./utils/_is-string-children.js";
21
+ import { canReceiveDefaultTextFormat } from "./utils/can-receive-default-text-format.js";
24
22
  import { parseBoolean } from "./utils/parse-boolean.js";
25
- import { mulberry32 } from "./utils/seed-random.js";
26
23
  export {
27
24
  AppRoot,
28
25
  FocusScope,
29
26
  FocusProvider as _FocusProvider,
30
27
  attemptFocus as _attemptFocus,
28
+ canReceiveDefaultTextFormat as _canReceiveDefaultTextFormat,
31
29
  focusFirstDescendant as _focusFirstDescendant,
32
30
  getFirstFocusableChild as _getFirstFocusableChild,
33
31
  getLastFocusableChild as _getLastFocusableChild,
34
32
  isBrowser as _isBrowser,
35
33
  isFocusable as _isFocusable,
36
- isStringChildren as _isStringChildren,
37
34
  mergeProps as _mergeProps,
38
- mulberry32 as _mulberry32,
39
35
  parseBoolean as _parseBoolean,
40
36
  useAriaLabelingProps as _useAriaLabelingProps,
41
37
  useFocusContext as _useFocusContext,
42
- useId as _useId,
43
38
  useSafeForwardProps as _useSafeForwardProps,
44
- uuidv4 as _uuidv4,
45
39
  useCurrentTheme
46
40
  };
47
41
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/core/index.ts"],
4
- "sourcesContent": ["export { AppRoot, type AppRootProps } from './components/app-root/AppRoot.js';\nexport {\n FocusScope,\n type FocusScopeProps,\n} from './components/focus-scope/FocusScope.js';\n\nexport { type FocusContextProps as _FocusContextProps } from './contexts/FocusContext.js';\n\nexport { useCurrentTheme } from './hooks/useCurrentTheme.js';\nexport { useFocusContext as _useFocusContext } from './hooks/useFocusContext.js';\nexport {\n FocusProvider as _FocusProvider,\n type Modality as _Modality,\n} from './providers/FocusProvider.js';\nexport type { MaskingProps } from './types/masking-props.js';\nexport type { DataTestId } from './types/data-props.js';\nexport type { StylingProps } from './types/styling-props.js';\nexport type { WithChildren } from './types/with-children.js';\nexport type {\n PolymorphOwnProps,\n PolymorphProps,\n PolymorphicComponentProps,\n} from './types/polymorph.js';\nexport { attemptFocus as _attemptFocus } from './utils/focus-management/attempt-focus.js';\nexport { focusFirstDescendant as _focusFirstDescendant } from './utils/focus-management/focus-first-descendant.js';\nexport { getFirstFocusableChild as _getFirstFocusableChild } from './utils/focus-management/get-first-focusable-child.js';\nexport { getLastFocusableChild as _getLastFocusableChild } from './utils/focus-management/get-last-focusable-child.js';\nexport { isFocusable as _isFocusable } from './utils/focus-management/is-focusable.js';\nexport { isBrowser as _isBrowser } from './utils/isBrowser.js';\nexport {\n mergeProps as _mergeProps,\n type NullToObject as _NullToObject,\n type TupleTypes as _TupleTypes,\n type UnionToIntersection as _UnionToIntersection,\n} from './utils/merge-props.js';\nexport { type _HeadingLevel, type _HeadingTag } from './types/heading.js';\nexport { useAriaLabelingProps as _useAriaLabelingProps } from './hooks/useAriaLabelingProps.js';\nexport { useId as _useId } from './hooks/useId.js';\nexport { useSafeForwardProps as _useSafeForwardProps } from './hooks/useSafeForwardProps.js';\nexport type { UseSafeForwardReturnProps as _UseSafeForwardReturnProps } from './hooks/useSafeForwardProps.js';\nexport type {\n AriaDisabledProps,\n AriaLabelingProps,\n} from './types/a11y-props.js';\nexport type { DOMProps } from './types/dom.js';\nexport { uuidv4 as _uuidv4 } from './utils/uuidv4.js';\nexport { isStringChildren as _isStringChildren } from './utils/_is-string-children.js';\nexport { parseBoolean as _parseBoolean } from './utils/parse-boolean.js';\nexport { mulberry32 as _mulberry32 } from './utils/seed-random.js';\n"],
5
- "mappings": "AAAA,SAAS,eAAkC;AAC3C;AAAA,EACE;AAAA,OAEK;AAIP,SAAS,uBAAuB;AAChC,SAA4B,uBAAwB;AACpD;AAAA,EACmB;AAAA,OAEZ;AAUP,SAAyB,oBAAqB;AAC9C,SAAiC,4BAA6B;AAC9D,SAAmC,8BAA+B;AAClE,SAAkC,6BAA8B;AAChE,SAAwB,mBAAoB;AAC5C,SAAsB,iBAAkB;AACxC;AAAA,EACgB;AAAA,OAIT;AAEP,SAAiC,4BAA6B;AAC9D,SAAkB,aAAc;AAChC,SAAgC,2BAA4B;AAO5D,SAAmB,cAAe;AAClC,SAA6B,wBAAyB;AACtD,SAAyB,oBAAqB;AAC9C,SAAuB,kBAAmB;",
4
+ "sourcesContent": ["export { AppRoot, type AppRootProps } from './components/app-root/AppRoot.js';\nexport {\n FocusScope,\n type FocusScopeProps,\n} from './components/focus-scope/FocusScope.js';\n\nexport { type FocusContextProps as _FocusContextProps } from './contexts/FocusContext.js';\n\nexport { useCurrentTheme } from './hooks/useCurrentTheme.js';\nexport { useFocusContext as _useFocusContext } from './hooks/useFocusContext.js';\nexport {\n FocusProvider as _FocusProvider,\n type Modality as _Modality,\n} from './providers/FocusProvider.js';\nexport type { MaskingProps } from './types/masking-props.js';\nexport type { DataTestId } from './types/data-props.js';\nexport type { StylingProps } from './types/styling-props.js';\nexport type { WithChildren } from './types/with-children.js';\nexport type {\n PolymorphOwnProps,\n PolymorphProps,\n PolymorphicComponentProps,\n} from './types/polymorph.js';\nexport { attemptFocus as _attemptFocus } from './utils/focus-management/attempt-focus.js';\nexport { focusFirstDescendant as _focusFirstDescendant } from './utils/focus-management/focus-first-descendant.js';\nexport { getFirstFocusableChild as _getFirstFocusableChild } from './utils/focus-management/get-first-focusable-child.js';\nexport { getLastFocusableChild as _getLastFocusableChild } from './utils/focus-management/get-last-focusable-child.js';\nexport { isFocusable as _isFocusable } from './utils/focus-management/is-focusable.js';\nexport { isBrowser as _isBrowser } from './utils/isBrowser.js';\nexport {\n mergeProps as _mergeProps,\n type NullToObject as _NullToObject,\n type TupleTypes as _TupleTypes,\n type UnionToIntersection as _UnionToIntersection,\n} from './utils/merge-props.js';\nexport { type _HeadingLevel, type _HeadingTag } from './types/heading.js';\nexport { useAriaLabelingProps as _useAriaLabelingProps } from './hooks/useAriaLabelingProps.js';\nexport { useSafeForwardProps as _useSafeForwardProps } from './hooks/useSafeForwardProps.js';\nexport type { UseSafeForwardReturnProps as _UseSafeForwardReturnProps } from './hooks/useSafeForwardProps.js';\nexport type {\n AriaDisabledProps,\n AriaLabelingProps,\n} from './types/a11y-props.js';\nexport type { DOMProps } from './types/dom.js';\nexport { canReceiveDefaultTextFormat as _canReceiveDefaultTextFormat } from './utils/can-receive-default-text-format.js';\nexport { parseBoolean as _parseBoolean } from './utils/parse-boolean.js';\n"],
5
+ "mappings": "AAAA,SAAS,eAAkC;AAC3C;AAAA,EACE;AAAA,OAEK;AAIP,SAAS,uBAAuB;AAChC,SAA4B,uBAAwB;AACpD;AAAA,EACmB;AAAA,OAEZ;AAUP,SAAyB,oBAAqB;AAC9C,SAAiC,4BAA6B;AAC9D,SAAmC,8BAA+B;AAClE,SAAkC,6BAA8B;AAChE,SAAwB,mBAAoB;AAC5C,SAAsB,iBAAkB;AACxC;AAAA,EACgB;AAAA,OAIT;AAEP,SAAiC,4BAA6B;AAC9D,SAAgC,2BAA4B;AAO5D,SAAwC,mCAAoC;AAC5E,SAAyB,oBAAqB;",
6
6
  "names": []
7
7
  }