@dynatrace/strato-components 1.4.0 → 1.6.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.
- package/buttons/button/Button.css +18 -22
- package/buttons/button/Button.d.ts +4 -4
- package/buttons/button/Button.js +48 -34
- package/buttons/button/Button.sty.js +5 -4
- package/buttons/button/Label.d.ts +2 -2
- package/buttons/button/Label.js +7 -5
- package/buttons/button/Prefix.d.ts +2 -2
- package/buttons/button/Prefix.js +7 -15
- package/buttons/button/Suffix.d.ts +3 -3
- package/buttons/button/Suffix.js +7 -15
- package/buttons/button/types/button-aria.js +1 -0
- package/buttons/button/utils/focus-without-scrolling.js +1 -0
- package/buttons/button/utils/is-virtual-event.js +1 -0
- package/buttons/index.js +1 -0
- package/buttons/intent-button/IntentButton.d.ts +2 -2
- package/buttons/intent-button/IntentButton.js +17 -21
- package/buttons/intent-button/useIntentButton.d.ts +4 -3
- package/buttons/intent-button/useIntentButton.js +1 -0
- package/content/index.js +1 -0
- package/content/progress/ProgressBar.css +71 -71
- package/content/progress/ProgressBar.d.ts +4 -5
- package/content/progress/ProgressBar.js +50 -41
- package/content/progress/ProgressBar.sty.js +6 -5
- package/content/progress/ProgressBarIcon.css +2 -2
- package/content/progress/ProgressBarIcon.d.ts +1 -2
- package/content/progress/ProgressBarIcon.js +7 -5
- package/content/progress/ProgressBarIcon.sty.js +2 -1
- package/content/progress/ProgressBarLabel.css +3 -3
- package/content/progress/ProgressBarLabel.d.ts +1 -2
- package/content/progress/ProgressBarLabel.js +7 -5
- package/content/progress/ProgressBarLabel.sty.js +2 -1
- package/content/progress/ProgressBarValue.css +5 -5
- package/content/progress/ProgressBarValue.d.ts +1 -2
- package/content/progress/ProgressBarValue.js +7 -5
- package/content/progress/ProgressBarValue.sty.js +2 -1
- package/content/progress/ProgressCircle.css +40 -40
- package/content/progress/ProgressCircle.d.ts +1 -2
- package/content/progress/ProgressCircle.js +61 -55
- package/content/progress/ProgressCircle.sty.js +6 -5
- package/content/progress/contexts/SharedProgressBarPropsContext.d.ts +1 -2
- package/content/progress/contexts/SharedProgressBarPropsContext.js +3 -12
- package/content/progress/hooks/useProgressAriaProps.js +1 -0
- package/content/progress/hooks/useProgressBarPropsContext.js +1 -0
- package/content/skeleton/Skeleton.css +6 -6
- package/content/skeleton/Skeleton.d.ts +2 -2
- package/content/skeleton/Skeleton.js +7 -5
- package/content/skeleton/Skeleton.sty.js +2 -1
- package/content/skeleton/SkeletonText.d.ts +2 -2
- package/content/skeleton/SkeletonText.js +10 -18
- package/core/components/app-root/AppRoot.d.ts +3 -3
- package/core/components/app-root/AppRoot.js +16 -24
- package/core/components/app-root/AppRoot.sty.js +1 -0
- package/core/components/focus-scope/FocusScope.d.ts +1 -2
- package/core/components/focus-scope/FocusScope.js +7 -15
- package/core/contexts/FocusContext.js +1 -0
- package/core/hooks/useActiveElement.js +1 -0
- package/core/hooks/useAriaLabelingProps.js +1 -0
- package/core/hooks/useCurrentTheme.js +1 -0
- package/core/hooks/useFocusContext.js +1 -0
- package/core/hooks/useFontsUpdated.js +2 -1
- package/core/hooks/useId.js +1 -0
- package/core/hooks/useMergeRefs.d.ts +2 -2
- package/core/hooks/useMergeRefs.js +1 -0
- package/core/hooks/useSafeForwardProps.js +1 -0
- package/core/index.js +1 -0
- package/core/providers/FocusProvider.d.ts +1 -2
- package/core/providers/FocusProvider.js +7 -15
- package/core/styles/focusRing.css +66 -66
- package/core/styles/focusRing.sty.js +3 -2
- package/core/styles/useFocusRing.d.ts +3 -3
- package/core/styles/useFocusRing.js +1 -0
- package/core/types/a11y-props.js +1 -0
- package/core/types/data-props.js +1 -0
- package/core/types/dom.js +1 -0
- package/core/types/heading.js +1 -0
- package/core/types/masking-props.js +1 -0
- package/core/types/polymorph.d.ts +1 -1
- package/core/types/polymorph.js +1 -0
- package/core/types/styling-props.d.ts +1 -1
- package/core/types/styling-props.js +1 -0
- package/core/types/with-children.d.ts +1 -1
- package/core/types/with-children.js +1 -0
- package/core/utils/_is-string-children.d.ts +2 -2
- package/core/utils/_is-string-children.js +3 -12
- package/core/utils/colorUtils.css +60 -60
- package/core/utils/colorUtils.sty.js +3 -2
- package/core/utils/focus-management/attempt-focus.js +1 -0
- package/core/utils/focus-management/focus-first-descendant.js +1 -0
- package/core/utils/focus-management/get-first-focusable-child.js +1 -0
- package/core/utils/focus-management/get-last-focusable-child.js +1 -0
- package/core/utils/focus-management/is-focusable.js +1 -0
- package/core/utils/isBrowser.js +1 -0
- package/core/utils/merge-props.js +1 -0
- package/core/utils/parse-boolean.js +1 -0
- package/core/utils/seed-random.js +1 -0
- package/core/utils/uuidv4.js +1 -0
- package/esm/buttons/button/Button.css +18 -22
- package/esm/buttons/button/Button.js +49 -35
- package/esm/buttons/button/Button.js.map +2 -2
- package/esm/buttons/button/Button.sty.js +4 -4
- package/esm/buttons/button/Button.sty.js.map +1 -1
- package/esm/buttons/button/Label.js +6 -5
- package/esm/buttons/button/Label.js.map +2 -2
- package/esm/buttons/button/Prefix.js +6 -5
- package/esm/buttons/button/Prefix.js.map +2 -2
- package/esm/buttons/button/Suffix.js +6 -5
- package/esm/buttons/button/Suffix.js.map +2 -2
- package/esm/buttons/intent-button/IntentButton.js +16 -11
- package/esm/buttons/intent-button/IntentButton.js.map +2 -2
- package/esm/buttons/intent-button/useIntentButton.js +4 -1
- package/esm/buttons/intent-button/useIntentButton.js.map +2 -2
- package/esm/content/progress/ProgressBar.css +71 -71
- package/esm/content/progress/ProgressBar.js +53 -41
- package/esm/content/progress/ProgressBar.js.map +2 -2
- package/esm/content/progress/ProgressBar.sty.js +5 -5
- package/esm/content/progress/ProgressBar.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarIcon.css +2 -2
- package/esm/content/progress/ProgressBarIcon.js +6 -5
- package/esm/content/progress/ProgressBarIcon.js.map +2 -2
- package/esm/content/progress/ProgressBarIcon.sty.js +1 -1
- package/esm/content/progress/ProgressBarIcon.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarLabel.css +3 -3
- package/esm/content/progress/ProgressBarLabel.js +6 -5
- package/esm/content/progress/ProgressBarLabel.js.map +2 -2
- package/esm/content/progress/ProgressBarLabel.sty.js +1 -1
- package/esm/content/progress/ProgressBarLabel.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarValue.css +5 -5
- package/esm/content/progress/ProgressBarValue.js +6 -5
- package/esm/content/progress/ProgressBarValue.js.map +2 -2
- package/esm/content/progress/ProgressBarValue.sty.js +1 -1
- package/esm/content/progress/ProgressBarValue.sty.js.map +1 -1
- package/esm/content/progress/ProgressCircle.css +40 -40
- package/esm/content/progress/ProgressCircle.js +60 -55
- package/esm/content/progress/ProgressCircle.js.map +2 -2
- package/esm/content/progress/ProgressCircle.sty.js +5 -5
- package/esm/content/progress/ProgressCircle.sty.js.map +1 -1
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js +2 -2
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js.map +2 -2
- package/esm/content/skeleton/Skeleton.css +6 -6
- package/esm/content/skeleton/Skeleton.js +6 -5
- package/esm/content/skeleton/Skeleton.js.map +2 -2
- package/esm/content/skeleton/Skeleton.sty.js +1 -1
- package/esm/content/skeleton/Skeleton.sty.js.map +1 -1
- package/esm/content/skeleton/SkeletonText.js +9 -8
- package/esm/content/skeleton/SkeletonText.js.map +2 -2
- package/esm/core/components/app-root/AppRoot.js +15 -14
- package/esm/core/components/app-root/AppRoot.js.map +2 -2
- package/esm/core/components/focus-scope/FocusScope.js +6 -5
- package/esm/core/components/focus-scope/FocusScope.js.map +2 -2
- package/esm/core/hooks/useFontsUpdated.js +1 -1
- package/esm/core/hooks/useFontsUpdated.js.map +2 -2
- package/esm/core/hooks/useMergeRefs.js +3 -1
- package/esm/core/hooks/useMergeRefs.js.map +2 -2
- package/esm/core/providers/FocusProvider.js +6 -5
- package/esm/core/providers/FocusProvider.js.map +2 -2
- package/esm/core/styles/focusRing.css +66 -66
- package/esm/core/styles/focusRing.sty.js +2 -2
- package/esm/core/styles/focusRing.sty.js.map +1 -1
- package/esm/core/styles/useFocusRing.js.map +1 -1
- package/esm/core/utils/_is-string-children.js +2 -2
- package/esm/core/utils/_is-string-children.js.map +2 -2
- package/esm/core/utils/colorUtils.css +60 -60
- package/esm/core/utils/colorUtils.sty.js +2 -2
- package/esm/core/utils/colorUtils.sty.js.map +1 -1
- package/esm/layouts/container/Container.css +4 -4
- package/esm/layouts/container/Container.js +7 -6
- package/esm/layouts/container/Container.js.map +2 -2
- package/esm/layouts/container/Container.sty.js +1 -1
- package/esm/layouts/container/Container.sty.js.map +1 -1
- package/esm/layouts/divider/Divider.css +6 -6
- package/esm/layouts/divider/Divider.js +3 -2
- package/esm/layouts/divider/Divider.js.map +2 -2
- package/esm/layouts/divider/Divider.sty.js +1 -1
- package/esm/layouts/divider/Divider.sty.js.map +1 -1
- package/esm/layouts/flex/Flex.js +6 -5
- package/esm/layouts/flex/Flex.js.map +2 -2
- package/esm/layouts/grid/Grid.js +6 -5
- package/esm/layouts/grid/Grid.js.map +2 -2
- package/esm/layouts/surface/Surface.css +39 -39
- package/esm/layouts/surface/Surface.js +17 -14
- package/esm/layouts/surface/Surface.js.map +2 -2
- package/esm/layouts/surface/Surface.sty.js +2 -2
- package/esm/layouts/surface/Surface.sty.js.map +1 -1
- package/esm/layouts/surface/variables.sty.js +1 -1
- package/esm/layouts/surface/variables.sty.js.map +1 -1
- package/esm/styles/colorUtils.css +60 -60
- package/esm/styles/colorUtils.sty.js +2 -2
- package/esm/styles/colorUtils.sty.js.map +1 -1
- package/esm/styles/container.css +47 -47
- package/esm/styles/container.sty.js +2 -2
- package/esm/styles/container.sty.js.map +1 -1
- package/esm/styles/ellipsis.css +1 -1
- package/esm/styles/ellipsis.sty.js +1 -1
- package/esm/styles/ellipsis.sty.js.map +1 -1
- package/esm/styles/field.css +153 -153
- package/esm/styles/field.sty.js +2 -2
- package/esm/styles/field.sty.js.map +1 -1
- package/esm/styles/getFlexStyles.js.map +1 -1
- package/esm/styles/getGridStyles.js.map +1 -1
- package/esm/styles/getLayoutSizeStyles.js.map +1 -1
- package/esm/styles/sprinkles.css +262 -262
- package/esm/styles/sprinkles.sty.js +1 -1
- package/esm/styles/sprinkles.sty.js.map +1 -1
- package/esm/styles/textStyle.css +8 -8
- package/esm/styles/textStyle.sty.js +1 -1
- package/esm/styles/textStyle.sty.js.map +1 -1
- package/esm/typography/block-quote/Blockquote.css +2 -2
- package/esm/typography/block-quote/Blockquote.js +6 -5
- package/esm/typography/block-quote/Blockquote.js.map +2 -2
- package/esm/typography/block-quote/Blockquote.sty.js +1 -1
- package/esm/typography/block-quote/Blockquote.sty.js.map +1 -1
- package/esm/typography/code/Code.css +1 -1
- package/esm/typography/code/Code.js +6 -5
- package/esm/typography/code/Code.js.map +2 -2
- package/esm/typography/code/Code.sty.js +1 -1
- package/esm/typography/code/Code.sty.js.map +1 -1
- package/esm/typography/emphasis/Emphasis.css +1 -1
- package/esm/typography/emphasis/Emphasis.js +6 -5
- package/esm/typography/emphasis/Emphasis.js.map +2 -2
- package/esm/typography/emphasis/Emphasis.sty.js +1 -1
- package/esm/typography/emphasis/Emphasis.sty.js.map +1 -1
- package/esm/typography/external-link/ExternalLink.css +6 -6
- package/esm/typography/external-link/ExternalLink.js +22 -16
- package/esm/typography/external-link/ExternalLink.js.map +2 -2
- package/esm/typography/external-link/ExternalLink.sty.js +1 -1
- package/esm/typography/external-link/ExternalLink.sty.js.map +1 -1
- package/esm/typography/heading/Heading.css +7 -7
- package/esm/typography/heading/Heading.js +6 -5
- package/esm/typography/heading/Heading.js.map +2 -2
- package/esm/typography/heading/Heading.sty.js +1 -1
- package/esm/typography/heading/Heading.sty.js.map +1 -1
- package/esm/typography/highlight/Highlight.css +2 -1
- package/esm/typography/highlight/Highlight.js +31 -18
- package/esm/typography/highlight/Highlight.js.map +3 -3
- package/esm/typography/highlight/Highlight.sty.js +1 -1
- package/esm/typography/highlight/Highlight.sty.js.map +1 -1
- package/esm/typography/link/Link.css +4 -4
- package/esm/typography/link/Link.js +6 -5
- package/esm/typography/link/Link.js.map +2 -2
- package/esm/typography/link/Link.sty.js +1 -1
- package/esm/typography/link/Link.sty.js.map +1 -1
- package/esm/typography/list/List.css +4 -4
- package/esm/typography/list/List.js +14 -9
- package/esm/typography/list/List.js.map +2 -2
- package/esm/typography/list/List.sty.js +2 -2
- package/esm/typography/list/List.sty.js.map +1 -1
- package/esm/typography/paragraph/Paragraph.css +3 -3
- package/esm/typography/paragraph/Paragraph.js +6 -5
- package/esm/typography/paragraph/Paragraph.js.map +2 -2
- package/esm/typography/paragraph/Paragraph.sty.js +1 -1
- package/esm/typography/paragraph/Paragraph.sty.js.map +1 -1
- package/esm/typography/strikethrough/Strikethrough.css +1 -1
- package/esm/typography/strikethrough/Strikethrough.js +6 -5
- package/esm/typography/strikethrough/Strikethrough.js.map +2 -2
- package/esm/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/esm/typography/strikethrough/Strikethrough.sty.js.map +1 -1
- package/esm/typography/strong/Strong.css +1 -1
- package/esm/typography/strong/Strong.js +6 -5
- package/esm/typography/strong/Strong.js.map +2 -2
- package/esm/typography/strong/Strong.sty.js +1 -1
- package/esm/typography/strong/Strong.sty.js.map +1 -1
- package/esm/typography/text/Text.css +3 -3
- package/esm/typography/text/Text.js +6 -5
- package/esm/typography/text/Text.js.map +2 -2
- package/esm/typography/text/Text.sty.js +1 -1
- package/esm/typography/text/Text.sty.js.map +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.css +8 -5
- package/esm/typography/text-ellipsis/TextEllipsis.js +16 -15
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +4 -4
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +2 -2
- package/index.js +1 -0
- package/layouts/container/Container.css +4 -4
- package/layouts/container/Container.js +8 -6
- package/layouts/container/Container.sty.js +2 -1
- package/layouts/divider/Divider.css +6 -6
- package/layouts/divider/Divider.d.ts +1 -2
- package/layouts/divider/Divider.js +4 -2
- package/layouts/divider/Divider.sty.js +2 -1
- package/layouts/flex/Flex.js +7 -5
- package/layouts/grid/Grid.d.ts +1 -1
- package/layouts/grid/Grid.js +7 -5
- package/layouts/helpers/spacingToCss.js +1 -0
- package/layouts/hooks/useBreakpoint.js +1 -0
- package/layouts/hooks/useLayoutSizeProps.js +1 -0
- package/layouts/hooks/useLayoutStyles.js +1 -0
- package/layouts/hooks/useMarginProps.js +1 -0
- package/layouts/hooks/usePaddingProps.js +1 -0
- package/layouts/index.js +1 -0
- package/layouts/surface/Surface.css +39 -39
- package/layouts/surface/Surface.js +18 -14
- package/layouts/surface/Surface.sty.js +3 -2
- package/layouts/surface/variables.sty.js +2 -1
- package/layouts/types/layout.types.d.ts +1 -1
- package/layouts/types/layout.types.js +1 -0
- package/package.json +5 -5
- package/styles/colorUtils.css +60 -60
- package/styles/colorUtils.sty.js +3 -2
- package/styles/container.css +47 -47
- package/styles/container.sty.js +3 -2
- package/styles/ellipsis.css +1 -1
- package/styles/ellipsis.sty.js +2 -1
- package/styles/extract-util.js +1 -0
- package/styles/field.css +153 -153
- package/styles/field.sty.js +3 -2
- package/styles/getFlexStyles.d.ts +17 -17
- package/styles/getFlexStyles.js +1 -0
- package/styles/getGapSprinkles.js +1 -0
- package/styles/getGridFlexPositionSprinkles.js +1 -0
- package/styles/getGridStyles.d.ts +22 -22
- package/styles/getGridStyles.js +1 -0
- package/styles/getLayoutSizeStyles.d.ts +1 -1
- package/styles/getLayoutSizeStyles.js +1 -0
- package/styles/getSpacingSprinkles.js +1 -0
- package/styles/index.js +1 -0
- package/styles/safe-sprinkles.js +1 -0
- package/styles/sprinkle-properties.js +1 -0
- package/styles/sprinkles.css +262 -262
- package/styles/sprinkles.sty.js +2 -1
- package/styles/textStyle.css +8 -8
- package/styles/textStyle.sty.js +2 -1
- package/typography/block-quote/Blockquote.css +2 -2
- package/typography/block-quote/Blockquote.d.ts +1 -2
- package/typography/block-quote/Blockquote.js +7 -5
- package/typography/block-quote/Blockquote.sty.js +2 -1
- package/typography/code/Code.css +1 -1
- package/typography/code/Code.d.ts +1 -2
- package/typography/code/Code.js +7 -5
- package/typography/code/Code.sty.js +2 -1
- package/typography/emphasis/Emphasis.css +1 -1
- package/typography/emphasis/Emphasis.d.ts +1 -2
- package/typography/emphasis/Emphasis.js +7 -5
- package/typography/emphasis/Emphasis.sty.js +2 -1
- package/typography/external-link/ExternalLink.css +6 -6
- package/typography/external-link/ExternalLink.d.ts +2 -2
- package/typography/external-link/ExternalLink.js +23 -16
- package/typography/external-link/ExternalLink.sty.js +2 -1
- package/typography/heading/Heading.css +7 -7
- package/typography/heading/Heading.d.ts +1 -2
- package/typography/heading/Heading.js +7 -5
- package/typography/heading/Heading.sty.js +2 -1
- package/typography/highlight/Highlight.css +2 -1
- package/typography/highlight/Highlight.d.ts +1 -1
- package/typography/highlight/Highlight.js +22 -17
- package/typography/highlight/Highlight.sty.js +2 -1
- package/typography/index.js +1 -0
- package/typography/link/Link.css +4 -4
- package/typography/link/Link.d.ts +1 -1
- package/typography/link/Link.js +7 -5
- package/typography/link/Link.sty.js +2 -1
- package/typography/list/List.css +4 -4
- package/typography/list/List.d.ts +1 -2
- package/typography/list/List.js +11 -9
- package/typography/list/List.sty.js +3 -2
- package/typography/paragraph/Paragraph.css +3 -3
- package/typography/paragraph/Paragraph.d.ts +1 -2
- package/typography/paragraph/Paragraph.js +7 -5
- package/typography/paragraph/Paragraph.sty.js +2 -1
- package/typography/strikethrough/Strikethrough.css +1 -1
- package/typography/strikethrough/Strikethrough.d.ts +1 -2
- package/typography/strikethrough/Strikethrough.js +7 -5
- package/typography/strikethrough/Strikethrough.sty.js +2 -1
- package/typography/strong/Strong.css +1 -1
- package/typography/strong/Strong.d.ts +1 -2
- package/typography/strong/Strong.js +7 -5
- package/typography/strong/Strong.sty.js +2 -1
- package/typography/text/Text.css +3 -3
- package/typography/text/Text.js +7 -5
- package/typography/text/Text.sty.js +2 -1
- package/typography/text-ellipsis/TextEllipsis.css +8 -5
- package/typography/text-ellipsis/TextEllipsis.d.ts +2 -2
- package/typography/text-ellipsis/TextEllipsis.js +17 -15
- package/typography/text-ellipsis/TextEllipsis.sty.d.ts +7 -2
- package/typography/text-ellipsis/TextEllipsis.sty.js +5 -4
- package/typography/utils.js +1 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
1
2
|
import clsx from "clsx";
|
|
2
|
-
import
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { progressBarIconContainerCSS } from "./ProgressBarIcon.sty.js";
|
|
4
5
|
const ProgressBarIcon = forwardRef(
|
|
5
6
|
(props, forwardedRef) => {
|
|
@@ -10,16 +11,16 @@ const ProgressBarIcon = forwardRef(
|
|
|
10
11
|
"data-testid": dataTestId,
|
|
11
12
|
...remainingProps
|
|
12
13
|
} = props;
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
14
15
|
"div",
|
|
15
16
|
{
|
|
16
17
|
"data-testid": dataTestId,
|
|
17
18
|
ref: forwardedRef,
|
|
18
19
|
className: clsx(consumerClassName, progressBarIconContainerCSS),
|
|
19
20
|
style: consumerStyle,
|
|
20
|
-
...remainingProps
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
...remainingProps,
|
|
22
|
+
children
|
|
23
|
+
}
|
|
23
24
|
);
|
|
24
25
|
}
|
|
25
26
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/content/progress/ProgressBarIcon.tsx"],
|
|
4
|
-
"sourcesContent": ["import clsx from 'clsx';\nimport
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport { forwardRef } from 'react';\n\nimport { progressBarIconContainerCSS } from './ProgressBarIcon.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';\n\n/**\n * Accepted properties for ProgressBarIcon.\n * @public\n */\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface ProgressBarIconProps\n extends WithChildren,\n StylingProps,\n DataTestId {}\n\n/**\n * The ProgressBarIcon subcomponent is rendered inside the ProgressBar component.\n * @public\n */\nexport const ProgressBarIcon = forwardRef<HTMLDivElement, ProgressBarIconProps>(\n (props, forwardedRef) => {\n const {\n children,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n ...remainingProps\n }: ProgressBarIconProps = props;\n return (\n <div\n data-testid={dataTestId}\n ref={forwardedRef}\n className={clsx(consumerClassName, progressBarIconContainerCSS)}\n style={consumerStyle}\n {...remainingProps}\n >\n {children}\n </div>\n );\n },\n);\n\n(\n ProgressBarIcon as typeof ProgressBarIcon & { displayName: string }\n).displayName = 'ProgressBar.Icon';\n"],
|
|
5
|
+
"mappings": "AAgCM;AAhCN,OAAO,UAAU;AACjB,SAAS,kBAAkB;AAE3B,SAAS,mCAAmC;AAmBrC,MAAM,kBAAkB;AAAA,EAC7B,CAAC,OAAO,iBAAiB;AACvB,UAAM;AAAA,MACJ;AAAA,MACA,WAAW;AAAA,MACX,OAAO;AAAA,MACP,eAAe;AAAA,MACf,GAAG;AAAA,IACL,IAA0B;AAC1B,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAa;AAAA,QACb,KAAK;AAAA,QACL,WAAW,KAAK,mBAAmB,2BAA2B;AAAA,QAC9D,OAAO;AAAA,QACN,GAAG;AAAA,QAEH;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAGE,gBACA,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -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-
|
|
4
|
+
"sourcesContent": ["import './ProgressBar.css';\nimport './ProgressBarIcon.css';\nexport var progressBarIconContainerCSS = '_szm9t40-1-6-0';"],
|
|
5
5
|
"mappings": "AAAA,OAAO;AACP,OAAO;AACA,IAAI,8BAA8B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
1
2
|
import clsx from "clsx";
|
|
2
|
-
import
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { useSharedProgressBarPropsContext } from "./hooks/useProgressBarPropsContext.js";
|
|
4
5
|
import { progressBarLabelCSS } from "./ProgressBarLabel.sty.js";
|
|
5
6
|
import { isStringChildren } from "../../core/utils/_is-string-children.js";
|
|
@@ -15,7 +16,7 @@ const ProgressBarLabel = forwardRef((props, forwardedRef) => {
|
|
|
15
16
|
} = props;
|
|
16
17
|
const { id, density } = useSharedProgressBarPropsContext();
|
|
17
18
|
const childIsText = isStringChildren(children);
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ jsx(
|
|
19
20
|
"label",
|
|
20
21
|
{
|
|
21
22
|
"data-testid": dataTestId,
|
|
@@ -30,9 +31,9 @@ const ProgressBarLabel = forwardRef((props, forwardedRef) => {
|
|
|
30
31
|
textStyleCSS({ textStyle: "base" })
|
|
31
32
|
),
|
|
32
33
|
style: consumerStyle,
|
|
33
|
-
...remainingProps
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
...remainingProps,
|
|
35
|
+
children
|
|
36
|
+
}
|
|
36
37
|
);
|
|
37
38
|
});
|
|
38
39
|
ProgressBarLabel.displayName = "ProgressBar.Label";
|
|
@@ -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
|
|
5
|
-
"mappings": "
|
|
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;",
|
|
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-
|
|
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: [] });
|
|
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-
|
|
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:[]});"],
|
|
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-
|
|
2
|
-
color: var(--_13n9uwh4-1-
|
|
1
|
+
._1ri4i7o0-1-6-0 {
|
|
2
|
+
color: var(--_13n9uwh4-1-6-0);
|
|
3
3
|
}
|
|
4
|
-
._1ri4i7o2-1-
|
|
4
|
+
._1ri4i7o2-1-6-0 {
|
|
5
5
|
word-break: break-word;
|
|
6
6
|
}
|
|
7
|
-
._1ri4i7o4-1-
|
|
7
|
+
._1ri4i7o4-1-6-0 {
|
|
8
8
|
word-break: break-word;
|
|
9
9
|
}
|
|
10
|
-
._1ri4i7o5-1-
|
|
10
|
+
._1ri4i7o5-1-6-0 {
|
|
11
11
|
margin-left: auto;
|
|
12
12
|
align-self: center;
|
|
13
13
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
1
2
|
import clsx from "clsx";
|
|
2
|
-
import
|
|
3
|
+
import { forwardRef } from "react";
|
|
3
4
|
import { useIntl } from "react-intl";
|
|
4
5
|
import { useSharedProgressBarPropsContext } from "./hooks/useProgressBarPropsContext.js";
|
|
5
6
|
import { progressBarValueCSS } from "./ProgressBarValue.sty.js";
|
|
@@ -21,7 +22,7 @@ const ProgressBarValue = forwardRef((props, forwardedRef) => {
|
|
|
21
22
|
});
|
|
22
23
|
const { density } = useSharedProgressBarPropsContext();
|
|
23
24
|
const childIsText = isStringChildren(children);
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ jsx(
|
|
25
26
|
"div",
|
|
26
27
|
{
|
|
27
28
|
"data-testid": dataTestId,
|
|
@@ -32,9 +33,9 @@ const ProgressBarValue = forwardRef((props, forwardedRef) => {
|
|
|
32
33
|
textStyleCSS({ textStyle: "small" })
|
|
33
34
|
),
|
|
34
35
|
style: consumerStyle,
|
|
35
|
-
...remainingProps
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
...remainingProps,
|
|
37
|
+
children: children || progressBarDefaultLabel
|
|
38
|
+
}
|
|
38
39
|
);
|
|
39
40
|
});
|
|
40
41
|
ProgressBarValue.displayName = "ProgressBar.Value";
|
|
@@ -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
|
|
5
|
-
"mappings": "
|
|
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;",
|
|
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-
|
|
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"]] });
|
|
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-
|
|
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']]});"],
|
|
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-
|
|
1
|
+
@keyframes _kvldjh3-1-6-0 {
|
|
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-
|
|
9
|
+
._kvldjh4-1-6-0 {
|
|
10
10
|
display: inline-block;
|
|
11
11
|
}
|
|
12
|
-
._kvldjh5-1-
|
|
12
|
+
._kvldjh5-1-6-0 {
|
|
13
13
|
display: block;
|
|
14
14
|
transform: rotate(-90deg);
|
|
15
15
|
}
|
|
16
|
-
._kvldjh6-1-
|
|
17
|
-
stroke: var(--_kvldjh2-1-
|
|
16
|
+
._kvldjh6-1-6-0 {
|
|
17
|
+
stroke: var(--_kvldjh2-1-6-0);
|
|
18
18
|
transform-origin: center;
|
|
19
19
|
}
|
|
20
|
-
._kvldjh7-1-
|
|
20
|
+
._kvldjh7-1-6-0 {
|
|
21
21
|
stroke-dasharray: 90 360;
|
|
22
22
|
transform-origin: 50% 50%;
|
|
23
|
-
animation-name: _kvldjh3-1-
|
|
23
|
+
animation-name: _kvldjh3-1-6-0;
|
|
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-
|
|
28
|
+
._kvldjh8-1-6-0 {
|
|
29
29
|
animation-duration: var(--dt-timings-fast-moderate, 200ms);
|
|
30
30
|
transition-property: stroke-dashoffset;
|
|
31
31
|
}
|
|
32
|
-
._kvldjh9-1-
|
|
33
|
-
stroke: var(--_kvldjh1-1-
|
|
32
|
+
._kvldjh9-1-6-0 {
|
|
33
|
+
stroke: var(--_kvldjh1-1-6-0);
|
|
34
34
|
}
|
|
35
|
-
._kvldjha-1-
|
|
35
|
+
._kvldjha-1-6-0 {
|
|
36
36
|
display: flex;
|
|
37
37
|
flex-direction: column;
|
|
38
38
|
align-items: center;
|
|
39
|
-
color: var(--_kvldjh0-1-
|
|
39
|
+
color: var(--_kvldjh0-1-6-0);
|
|
40
40
|
}
|
|
41
|
-
._kvldjhb-1-
|
|
41
|
+
._kvldjhb-1-6-0 {
|
|
42
42
|
gap: var(--dt-spacings-size-8, 8px);
|
|
43
43
|
}
|
|
44
|
-
._kvldjhc-1-
|
|
44
|
+
._kvldjhc-1-6-0 {
|
|
45
45
|
gap: var(--dt-spacings-size-12, 12px);
|
|
46
46
|
}
|
|
47
|
-
._kvldjhd-1-
|
|
48
|
-
--_kvldjh2-1-
|
|
47
|
+
._kvldjhd-1-6-0 {
|
|
48
|
+
--_kvldjh2-1-6-0: var(--dt-colors-border-critical-accent, #b80031);
|
|
49
49
|
}
|
|
50
|
-
._kvldjhe-1-
|
|
51
|
-
--_kvldjh2-1-
|
|
50
|
+
._kvldjhe-1-6-0 {
|
|
51
|
+
--_kvldjh2-1-6-0: var(--dt-colors-border-neutral-accent, #545587);
|
|
52
52
|
}
|
|
53
|
-
._kvldjhf-1-
|
|
54
|
-
--_kvldjh2-1-
|
|
53
|
+
._kvldjhf-1-6-0 {
|
|
54
|
+
--_kvldjh2-1-6-0: var(--dt-colors-border-primary-accent, #454cc9);
|
|
55
55
|
}
|
|
56
|
-
._kvldjhg-1-
|
|
57
|
-
--_kvldjh2-1-
|
|
56
|
+
._kvldjhg-1-6-0 {
|
|
57
|
+
--_kvldjh2-1-6-0: var(--dt-colors-border-success-accent, #2c6360);
|
|
58
58
|
}
|
|
59
|
-
._kvldjhh-1-
|
|
60
|
-
--_kvldjh2-1-
|
|
59
|
+
._kvldjhh-1-6-0 {
|
|
60
|
+
--_kvldjh2-1-6-0: var(--dt-colors-border-warning-accent, #805100);
|
|
61
61
|
}
|
|
62
|
-
._kvldjhi-1-
|
|
63
|
-
--_kvldjh0-1-
|
|
64
|
-
--_kvldjh1-1-
|
|
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);
|
|
65
65
|
}
|
|
66
|
-
._kvldjhj-1-
|
|
67
|
-
--_kvldjh0-1-
|
|
68
|
-
--_kvldjh1-1-
|
|
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);
|
|
69
69
|
}
|
|
70
|
-
._kvldjhk-1-
|
|
71
|
-
--_kvldjh2-1-
|
|
70
|
+
._kvldjhk-1-6-0 {
|
|
71
|
+
--_kvldjh2-1-6-0: var(--dt-colors-border-primary-on-accent-default, #f4f4fb);
|
|
72
72
|
}
|
|
73
|
-
._kvldjhl-1-
|
|
74
|
-
--_kvldjh2-1-
|
|
73
|
+
._kvldjhl-1-6-0 {
|
|
74
|
+
--_kvldjh2-1-6-0: var(--dt-colors-border-success-on-accent-default, #f1f4f4);
|
|
75
75
|
}
|
|
76
|
-
._kvldjhm-1-
|
|
77
|
-
--_kvldjh2-1-
|
|
76
|
+
._kvldjhm-1-6-0 {
|
|
77
|
+
--_kvldjh2-1-6-0: var(--dt-colors-border-warning-on-accent-default, #272025);
|
|
78
78
|
}
|
|
79
|
-
._kvldjhn-1-
|
|
80
|
-
--_kvldjh2-1-
|
|
79
|
+
._kvldjhn-1-6-0 {
|
|
80
|
+
--_kvldjh2-1-6-0: var(--dt-colors-border-critical-on-accent-default, #f9f1f3);
|
|
81
81
|
}
|
|
82
|
-
._kvldjho-1-
|
|
83
|
-
--_kvldjh2-1-
|
|
82
|
+
._kvldjho-1-6-0 {
|
|
83
|
+
--_kvldjh2-1-6-0: var(--dt-colors-border-neutral-on-accent-default, #f3f3f6);
|
|
84
84
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
2
|
import clsx from "clsx";
|
|
2
|
-
import
|
|
3
|
+
import { forwardRef, useId } from "react";
|
|
3
4
|
import { useProgressAriaProps } from "./hooks/useProgressAriaProps.js";
|
|
4
5
|
import {
|
|
5
6
|
progressCircleBackgroundCSS,
|
|
@@ -66,7 +67,7 @@ const ProgressCircle = forwardRef(
|
|
|
66
67
|
"If no label is provided please make sure to provide an aria label on your progressCircle element."
|
|
67
68
|
);
|
|
68
69
|
}
|
|
69
|
-
return /* @__PURE__ */
|
|
70
|
+
return /* @__PURE__ */ jsxs(
|
|
70
71
|
"div",
|
|
71
72
|
{
|
|
72
73
|
"data-testid": dataTestId,
|
|
@@ -86,65 +87,69 @@ const ProgressCircle = forwardRef(
|
|
|
86
87
|
})
|
|
87
88
|
),
|
|
88
89
|
style: consumerStyle,
|
|
89
|
-
...forwardProps
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
{
|
|
94
|
-
id,
|
|
95
|
-
className: clsx(progressCircleRootCSS),
|
|
96
|
-
style: {
|
|
97
|
-
height: `${progressCircleSizes[size]}px`,
|
|
98
|
-
width: `${progressCircleSizes[size]}px`
|
|
99
|
-
},
|
|
100
|
-
...ariaLabelingProps,
|
|
101
|
-
...progressAriaProps,
|
|
102
|
-
...rootProps
|
|
103
|
-
},
|
|
104
|
-
/* @__PURE__ */ React.createElement(
|
|
105
|
-
"svg",
|
|
106
|
-
{
|
|
107
|
-
className: progressCircleSvgCss,
|
|
108
|
-
viewBox: `0 0 ${progressCircleSizes[size]} ${progressCircleSizes[size]}`,
|
|
109
|
-
width: "100%",
|
|
110
|
-
height: "100%"
|
|
111
|
-
},
|
|
112
|
-
/* @__PURE__ */ React.createElement(
|
|
113
|
-
"circle",
|
|
90
|
+
...forwardProps,
|
|
91
|
+
children: [
|
|
92
|
+
/* @__PURE__ */ jsx(
|
|
93
|
+
"span",
|
|
114
94
|
{
|
|
115
|
-
|
|
116
|
-
className: clsx(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
95
|
+
id,
|
|
96
|
+
className: clsx(progressCircleRootCSS),
|
|
97
|
+
style: {
|
|
98
|
+
height: `${progressCircleSizes[size]}px`,
|
|
99
|
+
width: `${progressCircleSizes[size]}px`
|
|
100
|
+
},
|
|
101
|
+
...ariaLabelingProps,
|
|
102
|
+
...progressAriaProps,
|
|
103
|
+
...rootProps,
|
|
104
|
+
children: /* @__PURE__ */ jsxs(
|
|
105
|
+
"svg",
|
|
106
|
+
{
|
|
107
|
+
className: progressCircleSvgCss,
|
|
108
|
+
viewBox: `0 0 ${progressCircleSizes[size]} ${progressCircleSizes[size]}`,
|
|
109
|
+
width: "100%",
|
|
110
|
+
height: "100%",
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ jsx(
|
|
113
|
+
"circle",
|
|
114
|
+
{
|
|
115
|
+
fill: "none",
|
|
116
|
+
className: clsx(progressCircleBackgroundCSS),
|
|
117
|
+
cx: progressCircleSizes[size] / 2,
|
|
118
|
+
cy: progressCircleSizes[size] / 2,
|
|
119
|
+
r: (progressCircleSizes[size] - progressCircleThickness) / 2,
|
|
120
|
+
strokeWidth: progressCircleThickness
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ jsx(
|
|
124
|
+
"circle",
|
|
125
|
+
{
|
|
126
|
+
style: circleStyles,
|
|
127
|
+
className: progressCircleCSS({ indeterminate: isIndeterminate }),
|
|
128
|
+
fill: "none",
|
|
129
|
+
pathLength: isIndeterminate ? 360 : circleStyles["strokeDasharray"],
|
|
130
|
+
cx: progressCircleSizes[size] / 2,
|
|
131
|
+
cy: progressCircleSizes[size] / 2,
|
|
132
|
+
r: (progressCircleSizes[size] - progressCircleThickness) / 2,
|
|
133
|
+
strokeWidth: progressCircleThickness
|
|
134
|
+
}
|
|
135
|
+
)
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
)
|
|
121
139
|
}
|
|
122
140
|
),
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
"
|
|
141
|
+
children && /* @__PURE__ */ jsx(
|
|
142
|
+
"label",
|
|
125
143
|
{
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
cy: progressCircleSizes[size] / 2,
|
|
132
|
-
r: (progressCircleSizes[size] - progressCircleThickness) / 2,
|
|
133
|
-
strokeWidth: progressCircleThickness
|
|
144
|
+
className: clsx(
|
|
145
|
+
textStyleCSS({ textStyle: size === "small" ? "small" : "base" })
|
|
146
|
+
),
|
|
147
|
+
htmlFor: id,
|
|
148
|
+
children
|
|
134
149
|
}
|
|
135
150
|
)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
children && /* @__PURE__ */ React.createElement(
|
|
139
|
-
"label",
|
|
140
|
-
{
|
|
141
|
-
className: clsx(
|
|
142
|
-
textStyleCSS({ textStyle: size === "small" ? "small" : "base" })
|
|
143
|
-
),
|
|
144
|
-
htmlFor: id
|
|
145
|
-
},
|
|
146
|
-
children
|
|
147
|
-
)
|
|
151
|
+
]
|
|
152
|
+
}
|
|
148
153
|
);
|
|
149
154
|
}
|
|
150
155
|
);
|
|
@@ -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
|
|
5
|
-
"mappings": "
|
|
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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",
|
|
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-
|
|
4
|
-
var progressCircleCSS = _7a468({ defaultClassName: "_kvldjh6-1-
|
|
5
|
-
var progressCircleContainerCSS = _7a468({ defaultClassName: "_kvldjha-1-
|
|
6
|
-
var progressCircleRootCSS = "_kvldjh4-1-
|
|
7
|
-
var progressCircleSvgCss = "_kvldjh5-1-
|
|
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";
|
|
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-
|
|
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';"],
|
|
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
|
}
|