@dynatrace/strato-components 1.5.1 → 1.6.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.
- package/buttons/button/Button.css +16 -16
- package/buttons/button/Button.d.ts +4 -4
- package/buttons/button/Button.js +47 -34
- package/buttons/button/Button.sty.js +4 -4
- package/buttons/button/Label.d.ts +2 -2
- package/buttons/button/Label.js +8 -7
- package/buttons/button/Prefix.d.ts +2 -2
- package/buttons/button/Prefix.js +6 -15
- package/buttons/button/Suffix.d.ts +3 -3
- package/buttons/button/Suffix.js +6 -15
- package/buttons/intent-button/IntentButton.d.ts +2 -2
- package/buttons/intent-button/IntentButton.js +16 -21
- package/buttons/intent-button/useIntentButton.d.ts +4 -3
- package/content/progress/ProgressBar.css +71 -71
- package/content/progress/ProgressBar.d.ts +4 -5
- package/content/progress/ProgressBar.js +49 -41
- package/content/progress/ProgressBar.sty.js +5 -5
- package/content/progress/ProgressBarIcon.css +2 -2
- package/content/progress/ProgressBarIcon.d.ts +1 -2
- package/content/progress/ProgressBarIcon.js +6 -5
- package/content/progress/ProgressBarIcon.sty.js +1 -1
- package/content/progress/ProgressBarLabel.css +3 -3
- package/content/progress/ProgressBarLabel.d.ts +1 -2
- package/content/progress/ProgressBarLabel.js +8 -7
- package/content/progress/ProgressBarLabel.sty.js +1 -1
- package/content/progress/ProgressBarValue.css +5 -5
- package/content/progress/ProgressBarValue.d.ts +1 -2
- package/content/progress/ProgressBarValue.js +8 -7
- package/content/progress/ProgressBarValue.sty.js +1 -1
- package/content/progress/ProgressCircle.css +40 -40
- package/content/progress/ProgressCircle.d.ts +1 -2
- package/content/progress/ProgressCircle.js +60 -55
- package/content/progress/ProgressCircle.sty.js +5 -5
- package/content/progress/contexts/SharedProgressBarPropsContext.d.ts +1 -2
- package/content/progress/contexts/SharedProgressBarPropsContext.js +2 -12
- package/content/skeleton/Skeleton.css +6 -6
- package/content/skeleton/Skeleton.d.ts +2 -2
- package/content/skeleton/Skeleton.js +6 -5
- package/content/skeleton/Skeleton.sty.js +1 -1
- package/content/skeleton/SkeletonText.d.ts +2 -2
- package/content/skeleton/SkeletonText.js +9 -18
- package/core/components/app-root/AppRoot.d.ts +3 -3
- package/core/components/app-root/AppRoot.js +15 -24
- package/core/components/focus-scope/FocusScope.d.ts +1 -2
- package/core/components/focus-scope/FocusScope.js +7 -16
- package/core/contexts/FocusContext.d.ts +1 -0
- package/core/contexts/FocusContext.js +2 -1
- package/core/hooks/useFontsUpdated.js +1 -1
- package/core/hooks/useMergeRefs.d.ts +2 -2
- package/core/index.d.ts +2 -1
- package/core/index.js +3 -1
- package/core/providers/FocusProvider.d.ts +1 -2
- package/core/providers/FocusProvider.js +35 -18
- package/core/styles/focusRing.css +66 -66
- package/core/styles/focusRing.sty.js +2 -2
- package/core/styles/useFocusRing.d.ts +3 -3
- package/core/types/polymorph.d.ts +1 -1
- package/core/types/styling-props.d.ts +1 -1
- package/core/types/with-children.d.ts +1 -1
- package/core/utils/_is-string-children.d.ts +2 -2
- package/core/utils/_is-string-children.js +2 -12
- package/core/utils/can-receive-default-text-format.d.ts +9 -0
- package/core/utils/can-receive-default-text-format.js +31 -0
- package/core/utils/colorUtils.css +60 -60
- package/core/utils/colorUtils.sty.js +2 -2
- package/core/utils/get-inert-value.d.ts +8 -0
- package/core/utils/get-inert-value.js +31 -0
- package/esm/buttons/button/Button.css +16 -16
- 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 +8 -7
- 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 +8 -7
- 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 +8 -7
- 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 +7 -6
- package/esm/core/components/focus-scope/FocusScope.js.map +2 -2
- package/esm/core/contexts/FocusContext.js +2 -1
- package/esm/core/contexts/FocusContext.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/index.js +3 -1
- package/esm/core/index.js.map +2 -2
- package/esm/core/providers/FocusProvider.js +35 -8
- 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/can-receive-default-text-format.js +15 -0
- package/esm/core/utils/can-receive-default-text-format.js.map +7 -0
- 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/core/utils/get-inert-value.js +12 -0
- package/esm/core/utils/get-inert-value.js.map +7 -0
- 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 +1 -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 +6 -6
- package/esm/typography/text-ellipsis/TextEllipsis.js +12 -11
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +1 -1
- package/layouts/container/Container.css +4 -4
- package/layouts/container/Container.js +7 -6
- package/layouts/container/Container.sty.js +1 -1
- package/layouts/divider/Divider.css +6 -6
- package/layouts/divider/Divider.d.ts +1 -2
- package/layouts/divider/Divider.js +3 -2
- package/layouts/divider/Divider.sty.js +1 -1
- package/layouts/flex/Flex.js +6 -5
- package/layouts/grid/Grid.d.ts +1 -1
- package/layouts/grid/Grid.js +6 -5
- package/layouts/surface/Surface.css +39 -39
- package/layouts/surface/Surface.js +17 -14
- package/layouts/surface/Surface.sty.js +2 -2
- package/layouts/surface/variables.sty.js +1 -1
- package/layouts/types/layout.types.d.ts +1 -1
- package/package.json +2 -2
- package/styles/colorUtils.css +60 -60
- package/styles/colorUtils.sty.js +2 -2
- package/styles/container.css +47 -47
- package/styles/container.sty.js +2 -2
- package/styles/ellipsis.css +1 -1
- package/styles/ellipsis.sty.js +1 -1
- package/styles/field.css +153 -153
- package/styles/field.sty.js +2 -2
- package/styles/getFlexStyles.d.ts +17 -17
- package/styles/getGridStyles.d.ts +22 -22
- package/styles/getLayoutSizeStyles.d.ts +1 -1
- package/styles/sprinkles.css +262 -262
- package/styles/sprinkles.sty.js +1 -1
- package/styles/textStyle.css +8 -8
- package/styles/textStyle.sty.js +1 -1
- package/typography/block-quote/Blockquote.css +2 -2
- package/typography/block-quote/Blockquote.d.ts +1 -2
- package/typography/block-quote/Blockquote.js +6 -5
- package/typography/block-quote/Blockquote.sty.js +1 -1
- package/typography/code/Code.css +1 -1
- package/typography/code/Code.d.ts +1 -2
- package/typography/code/Code.js +6 -5
- package/typography/code/Code.sty.js +1 -1
- package/typography/emphasis/Emphasis.css +1 -1
- package/typography/emphasis/Emphasis.d.ts +1 -2
- package/typography/emphasis/Emphasis.js +6 -5
- package/typography/emphasis/Emphasis.sty.js +1 -1
- package/typography/external-link/ExternalLink.css +6 -6
- package/typography/external-link/ExternalLink.d.ts +2 -2
- package/typography/external-link/ExternalLink.js +22 -16
- package/typography/external-link/ExternalLink.sty.js +1 -1
- package/typography/heading/Heading.css +7 -7
- package/typography/heading/Heading.d.ts +1 -2
- package/typography/heading/Heading.js +6 -5
- package/typography/heading/Heading.sty.js +1 -1
- package/typography/highlight/Highlight.css +1 -1
- package/typography/highlight/Highlight.d.ts +1 -1
- package/typography/highlight/Highlight.js +21 -17
- package/typography/highlight/Highlight.sty.js +1 -1
- package/typography/link/Link.css +4 -4
- package/typography/link/Link.d.ts +1 -1
- package/typography/link/Link.js +6 -5
- package/typography/link/Link.sty.js +1 -1
- package/typography/list/List.css +4 -4
- package/typography/list/List.d.ts +1 -2
- package/typography/list/List.js +10 -9
- package/typography/list/List.sty.js +2 -2
- package/typography/paragraph/Paragraph.css +3 -3
- package/typography/paragraph/Paragraph.d.ts +1 -2
- package/typography/paragraph/Paragraph.js +6 -5
- package/typography/paragraph/Paragraph.sty.js +1 -1
- package/typography/strikethrough/Strikethrough.css +1 -1
- package/typography/strikethrough/Strikethrough.d.ts +1 -2
- package/typography/strikethrough/Strikethrough.js +6 -5
- package/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/typography/strong/Strong.css +1 -1
- package/typography/strong/Strong.d.ts +1 -2
- package/typography/strong/Strong.js +6 -5
- package/typography/strong/Strong.sty.js +1 -1
- package/typography/text/Text.css +3 -3
- package/typography/text/Text.js +6 -5
- package/typography/text/Text.sty.js +1 -1
- package/typography/text-ellipsis/TextEllipsis.css +6 -6
- package/typography/text-ellipsis/TextEllipsis.d.ts +2 -2
- package/typography/text-ellipsis/TextEllipsis.js +12 -11
- package/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@keyframes _13n9uwh0-1-
|
|
1
|
+
@keyframes _13n9uwh0-1-6-2 {
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateX(-100%) scaleX(0);
|
|
4
4
|
}
|
|
@@ -6,92 +6,92 @@
|
|
|
6
6
|
transform: translateX(100%) scaleX(1.5);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
._13n9uwh5-1-
|
|
10
|
-
color: var(--_13n9uwh1-1-
|
|
11
|
-
}
|
|
12
|
-
._13n9uwhd-1-
|
|
13
|
-
--_13n9uwh1-1-
|
|
14
|
-
--_13n9uwh4-1-
|
|
15
|
-
--_13n9uwh2-1-
|
|
16
|
-
--_13n9uwh3-1-
|
|
17
|
-
}
|
|
18
|
-
._13n9uwhe-1-
|
|
19
|
-
--_13n9uwh1-1-
|
|
20
|
-
--_13n9uwh4-1-
|
|
21
|
-
--_13n9uwh2-1-
|
|
22
|
-
--_13n9uwh3-1-
|
|
23
|
-
}
|
|
24
|
-
._13n9uwhf-1-
|
|
25
|
-
--_13n9uwh1-1-
|
|
26
|
-
--_13n9uwh4-1-
|
|
27
|
-
--_13n9uwh2-1-
|
|
28
|
-
--_13n9uwh3-1-
|
|
29
|
-
}
|
|
30
|
-
._13n9uwhg-1-
|
|
31
|
-
--_13n9uwh1-1-
|
|
32
|
-
--_13n9uwh4-1-
|
|
33
|
-
--_13n9uwh2-1-
|
|
34
|
-
--_13n9uwh3-1-
|
|
35
|
-
}
|
|
36
|
-
._13n9uwhh-1-
|
|
37
|
-
--_13n9uwh1-1-
|
|
38
|
-
--_13n9uwh4-1-
|
|
39
|
-
--_13n9uwh2-1-
|
|
40
|
-
--_13n9uwh3-1-
|
|
9
|
+
._13n9uwh5-1-6-2 {
|
|
10
|
+
color: var(--_13n9uwh1-1-6-2);
|
|
11
|
+
}
|
|
12
|
+
._13n9uwhd-1-6-2 {
|
|
13
|
+
--_13n9uwh1-1-6-2: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
14
|
+
--_13n9uwh4-1-6-2: var(--dt-colors-text-neutral-subdued, #545587);
|
|
15
|
+
--_13n9uwh2-1-6-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
16
|
+
--_13n9uwh3-1-6-2: var(--dt-colors-border-primary-accent, #454cc9);
|
|
17
|
+
}
|
|
18
|
+
._13n9uwhe-1-6-2 {
|
|
19
|
+
--_13n9uwh1-1-6-2: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
20
|
+
--_13n9uwh4-1-6-2: var(--dt-colors-text-neutral-subdued, #545587);
|
|
21
|
+
--_13n9uwh2-1-6-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
22
|
+
--_13n9uwh3-1-6-2: var(--dt-colors-border-success-accent, #2c6360);
|
|
23
|
+
}
|
|
24
|
+
._13n9uwhf-1-6-2 {
|
|
25
|
+
--_13n9uwh1-1-6-2: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
26
|
+
--_13n9uwh4-1-6-2: var(--dt-colors-text-neutral-subdued, #545587);
|
|
27
|
+
--_13n9uwh2-1-6-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
28
|
+
--_13n9uwh3-1-6-2: var(--dt-colors-border-warning-accent, #805100);
|
|
29
|
+
}
|
|
30
|
+
._13n9uwhg-1-6-2 {
|
|
31
|
+
--_13n9uwh1-1-6-2: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
32
|
+
--_13n9uwh4-1-6-2: var(--dt-colors-text-neutral-subdued, #545587);
|
|
33
|
+
--_13n9uwh2-1-6-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
34
|
+
--_13n9uwh3-1-6-2: var(--dt-colors-border-critical-accent, #b80031);
|
|
35
|
+
}
|
|
36
|
+
._13n9uwhh-1-6-2 {
|
|
37
|
+
--_13n9uwh1-1-6-2: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
38
|
+
--_13n9uwh4-1-6-2: var(--dt-colors-text-neutral-subdued, #545587);
|
|
39
|
+
--_13n9uwh2-1-6-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
40
|
+
--_13n9uwh3-1-6-2: var(--dt-colors-border-neutral-accent, #545587);
|
|
41
41
|
color: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
42
42
|
}
|
|
43
|
-
._13n9uwhi-1-
|
|
44
|
-
--_13n9uwh1-1-
|
|
45
|
-
--_13n9uwh4-1-
|
|
46
|
-
--_13n9uwh2-1-
|
|
47
|
-
--_13n9uwh3-1-
|
|
48
|
-
}
|
|
49
|
-
._13n9uwhj-1-
|
|
50
|
-
--_13n9uwh1-1-
|
|
51
|
-
--_13n9uwh4-1-
|
|
52
|
-
--_13n9uwh2-1-
|
|
53
|
-
--_13n9uwh3-1-
|
|
54
|
-
}
|
|
55
|
-
._13n9uwhk-1-
|
|
56
|
-
--_13n9uwh1-1-
|
|
57
|
-
--_13n9uwh4-1-
|
|
58
|
-
--_13n9uwh2-1-
|
|
59
|
-
--_13n9uwh3-1-
|
|
60
|
-
}
|
|
61
|
-
._13n9uwhl-1-
|
|
62
|
-
--_13n9uwh1-1-
|
|
63
|
-
--_13n9uwh4-1-
|
|
64
|
-
--_13n9uwh2-1-
|
|
65
|
-
--_13n9uwh3-1-
|
|
66
|
-
}
|
|
67
|
-
._13n9uwhm-1-
|
|
68
|
-
--_13n9uwh1-1-
|
|
69
|
-
--_13n9uwh4-1-
|
|
70
|
-
--_13n9uwh2-1-
|
|
71
|
-
--_13n9uwh3-1-
|
|
72
|
-
}
|
|
73
|
-
._13n9uwhn-1-
|
|
43
|
+
._13n9uwhi-1-6-2 {
|
|
44
|
+
--_13n9uwh1-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
45
|
+
--_13n9uwh4-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
46
|
+
--_13n9uwh2-1-6-2: var(--dt-colors-border-primary-on-accent-disabled, #f4f4fb33);
|
|
47
|
+
--_13n9uwh3-1-6-2: var(--dt-colors-border-primary-on-accent-default, #f4f4fb);
|
|
48
|
+
}
|
|
49
|
+
._13n9uwhj-1-6-2 {
|
|
50
|
+
--_13n9uwh1-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
51
|
+
--_13n9uwh4-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
52
|
+
--_13n9uwh2-1-6-2: var(--dt-colors-border-success-on-accent-disabled, #f1f4f433);
|
|
53
|
+
--_13n9uwh3-1-6-2: var(--dt-colors-border-success-on-accent-default, #f1f4f4);
|
|
54
|
+
}
|
|
55
|
+
._13n9uwhk-1-6-2 {
|
|
56
|
+
--_13n9uwh1-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
57
|
+
--_13n9uwh4-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
58
|
+
--_13n9uwh2-1-6-2: var(--dt-colors-border-warning-on-accent-disabled, #27202533);
|
|
59
|
+
--_13n9uwh3-1-6-2: var(--dt-colors-border-warning-on-accent-default, #272025);
|
|
60
|
+
}
|
|
61
|
+
._13n9uwhl-1-6-2 {
|
|
62
|
+
--_13n9uwh1-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
63
|
+
--_13n9uwh4-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
64
|
+
--_13n9uwh2-1-6-2: var(--dt-colors-border-critical-on-accent-disabled, #f9f1f333);
|
|
65
|
+
--_13n9uwh3-1-6-2: var(--dt-colors-border-critical-on-accent-default, #f9f1f3);
|
|
66
|
+
}
|
|
67
|
+
._13n9uwhm-1-6-2 {
|
|
68
|
+
--_13n9uwh1-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
69
|
+
--_13n9uwh4-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
70
|
+
--_13n9uwh2-1-6-2: var(--dt-colors-border-neutral-on-accent-disabled, #f3f3f633);
|
|
71
|
+
--_13n9uwh3-1-6-2: var(--dt-colors-border-neutral-on-accent-default, #f3f3f6);
|
|
72
|
+
}
|
|
73
|
+
._13n9uwhn-1-6-2 {
|
|
74
74
|
width: 100%;
|
|
75
75
|
border-radius: var(--dt-borders-radius-container-subdued, 8px);
|
|
76
76
|
overflow: hidden;
|
|
77
77
|
position: relative;
|
|
78
|
-
background: var(--_13n9uwh2-1-
|
|
78
|
+
background: var(--_13n9uwh2-1-6-2);
|
|
79
79
|
}
|
|
80
|
-
._13n9uwho-1-
|
|
80
|
+
._13n9uwho-1-6-2 {
|
|
81
81
|
height: 6px;
|
|
82
82
|
}
|
|
83
|
-
._13n9uwhp-1-
|
|
83
|
+
._13n9uwhp-1-6-2 {
|
|
84
84
|
height: 8px;
|
|
85
85
|
}
|
|
86
|
-
._13n9uwhq-1-
|
|
86
|
+
._13n9uwhq-1-6-2 {
|
|
87
87
|
height: 100%;
|
|
88
88
|
transition-duration: var(--dt-timings-fast-default, 170ms);
|
|
89
89
|
transition-timing-function: var(--dt-easings-fast-in-slow-out, cubic-bezier(0.4, 0, 0.2, 1));
|
|
90
|
-
background-color: var(--_13n9uwh3-1-
|
|
90
|
+
background-color: var(--_13n9uwh3-1-6-2);
|
|
91
91
|
}
|
|
92
|
-
._13n9uwhr-1-
|
|
92
|
+
._13n9uwhr-1-6-2 {
|
|
93
93
|
width: 100%;
|
|
94
|
-
animation-name: _13n9uwh0-1-
|
|
94
|
+
animation-name: _13n9uwh0-1-6-2;
|
|
95
95
|
animation-duration: var(--dt-timings-slow-gentle, 800ms);
|
|
96
96
|
animation-timing-function: var(--dt-easings-fast-in-slow-out, cubic-bezier(0.4, 0, 0.2, 1));
|
|
97
97
|
animation-iteration-count: infinite;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type AriaLabelingProps } from '../../core/types/a11y-props.js';
|
|
3
2
|
import { type DataTestId } from '../../core/types/data-props.js';
|
|
4
3
|
import { type DOMProps } from '../../core/types/dom.js';
|
|
@@ -48,8 +47,8 @@ export interface ProgressBarProps extends WithChildren, DOMProps, AriaLabelingPr
|
|
|
48
47
|
* The `ProgressBar` can be used to visualize determinate or indeterminate progress.
|
|
49
48
|
* @public
|
|
50
49
|
*/
|
|
51
|
-
export declare const ProgressBar: ((props: ProgressBarProps &
|
|
52
|
-
Value: (props: import("./ProgressBarValue.js").ProgressBarValueProps &
|
|
53
|
-
Label: (props: import("./ProgressBarLabel.js").ProgressBarLabelProps &
|
|
54
|
-
Icon: (props: import("./ProgressBarIcon.js").ProgressBarIconProps &
|
|
50
|
+
export declare const ProgressBar: ((props: ProgressBarProps & import("react").RefAttributes<HTMLDivElement>) => React.ReactElement | null) & {
|
|
51
|
+
Value: (props: import("./ProgressBarValue.js").ProgressBarValueProps & import("react").RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
52
|
+
Label: (props: import("./ProgressBarLabel.js").ProgressBarLabelProps & import("react").RefAttributes<HTMLLabelElement>) => React.ReactElement | null;
|
|
53
|
+
Icon: (props: import("./ProgressBarIcon.js").ProgressBarIconProps & import("react").RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
55
54
|
};
|
|
@@ -31,8 +31,9 @@ __export(ProgressBar_exports, {
|
|
|
31
31
|
ProgressBar: () => ProgressBar
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(ProgressBar_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_clsx = __toESM(require("clsx"));
|
|
35
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
36
37
|
var import_react_is = require("react-is");
|
|
37
38
|
var import_SharedProgressBarPropsContext = require("./contexts/SharedProgressBarPropsContext.js");
|
|
38
39
|
var import_useProgressAriaProps = require("./hooks/useProgressAriaProps.js");
|
|
@@ -51,7 +52,7 @@ function getProgressBarSlots(children) {
|
|
|
51
52
|
label: null,
|
|
52
53
|
icon: null
|
|
53
54
|
};
|
|
54
|
-
import_react.
|
|
55
|
+
import_react.Children.forEach(children, (child) => {
|
|
55
56
|
if ((0, import_react_is.isElement)(child)) {
|
|
56
57
|
switch (child.type) {
|
|
57
58
|
case import_ProgressBarLabel.ProgressBarLabel:
|
|
@@ -117,7 +118,7 @@ const _ProgressBar = (0, import_react.forwardRef)(
|
|
|
117
118
|
const percentage = (value - min) / (max - min);
|
|
118
119
|
progressStyles["width"] = `${Math.round(percentage * 100)}%`;
|
|
119
120
|
}
|
|
120
|
-
return /* @__PURE__ */
|
|
121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SharedProgressBarPropsContext.SharedProgressBarPropsContext.Provider, { value: { id, density }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
121
122
|
import_Flex.Flex,
|
|
122
123
|
{
|
|
123
124
|
flexDirection: "column",
|
|
@@ -139,44 +140,51 @@ const _ProgressBar = (0, import_react.forwardRef)(
|
|
|
139
140
|
"data-dtrum-mask": dataDtrumMask,
|
|
140
141
|
"data-dtrum-allow": dataDtrumAllow,
|
|
141
142
|
ref: forwardedRef,
|
|
142
|
-
...forwardProps
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
(0,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
143
|
+
...forwardProps,
|
|
144
|
+
children: [
|
|
145
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Flex.Flex, { justifyContent: "space-between", gap: 8, children: [
|
|
146
|
+
density === "condensed" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
147
|
+
import_Flex.Flex,
|
|
148
|
+
{
|
|
149
|
+
justifyContent: "space-between",
|
|
150
|
+
alignItems: "flex-end",
|
|
151
|
+
flex: 1,
|
|
152
|
+
gap: 16,
|
|
153
|
+
minWidth: 0,
|
|
154
|
+
children: [
|
|
155
|
+
slots.label,
|
|
156
|
+
slots.value
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
) : slots.label,
|
|
160
|
+
slots.icon
|
|
161
|
+
] }),
|
|
162
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
163
|
+
"div",
|
|
164
|
+
{
|
|
165
|
+
className: (0, import_ProgressBar_css.progressCSS)({
|
|
166
|
+
size: density
|
|
167
|
+
}),
|
|
168
|
+
id,
|
|
169
|
+
...progressAriaProps,
|
|
170
|
+
...ariaLabelingProps,
|
|
171
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
172
|
+
"div",
|
|
173
|
+
{
|
|
174
|
+
className: (0, import_clsx.default)(
|
|
175
|
+
(0, import_ProgressBar_css.progressBarFillCSS)({
|
|
176
|
+
indeterminate: isIndeterminate
|
|
177
|
+
})
|
|
178
|
+
),
|
|
179
|
+
style: progressStyles
|
|
180
|
+
}
|
|
181
|
+
)
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
density === "default" && slots.value
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
) });
|
|
180
188
|
}
|
|
181
189
|
);
|
|
182
190
|
_ProgressBar.displayName = "ProgressBar";
|
|
@@ -27,8 +27,8 @@ __export(ProgressBar_css_exports, {
|
|
|
27
27
|
module.exports = __toCommonJS(ProgressBar_css_exports);
|
|
28
28
|
var import_ProgressBar_css_ts_vanilla = require("./ProgressBar.css");
|
|
29
29
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
30
|
-
var progressBarFillCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwhq-1-
|
|
31
|
-
var progressCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwhn-1-
|
|
32
|
-
var progressIndicatorColorVar = "var(--_13n9uwh3-1-
|
|
33
|
-
var progressRoot = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwh5-1-
|
|
34
|
-
var progressValueColorVar = "var(--_13n9uwh4-1-
|
|
30
|
+
var progressBarFillCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwhq-1-6-2", variantClassNames: { indeterminate: { true: "_13n9uwhr-1-6-2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
31
|
+
var progressCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwhn-1-6-2", variantClassNames: { size: { condensed: "_13n9uwho-1-6-2", "default": "_13n9uwhp-1-6-2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
32
|
+
var progressIndicatorColorVar = "var(--_13n9uwh3-1-6-2)";
|
|
33
|
+
var progressRoot = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwh5-1-6-2", variantClassNames: { color: { primary: "_13n9uwh6-1-6-2", success: "_13n9uwh7-1-6-2", warning: "_13n9uwh8-1-6-2", critical: "_13n9uwh9-1-6-2", neutral: "_13n9uwha-1-6-2" }, onAccent: { true: "_13n9uwhb-1-6-2", false: "_13n9uwhc-1-6-2" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", onAccent: false }, "_13n9uwhd-1-6-2"], [{ color: "success", onAccent: false }, "_13n9uwhe-1-6-2"], [{ color: "warning", onAccent: false }, "_13n9uwhf-1-6-2"], [{ color: "critical", onAccent: false }, "_13n9uwhg-1-6-2"], [{ color: "neutral", onAccent: false }, "_13n9uwhh-1-6-2"], [{ color: "primary", onAccent: true }, "_13n9uwhi-1-6-2"], [{ color: "success", onAccent: true }, "_13n9uwhj-1-6-2"], [{ color: "warning", onAccent: true }, "_13n9uwhk-1-6-2"], [{ color: "critical", onAccent: true }, "_13n9uwhl-1-6-2"], [{ color: "neutral", onAccent: true }, "_13n9uwhm-1-6-2"]] });
|
|
34
|
+
var progressValueColorVar = "var(--_13n9uwh4-1-6-2)";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type DataTestId } from '../../core/types/data-props.js';
|
|
3
2
|
import { type StylingProps } from '../../core/types/styling-props.js';
|
|
4
3
|
import { type WithChildren } from '../../core/types/with-children.js';
|
|
@@ -12,4 +11,4 @@ export interface ProgressBarIconProps extends WithChildren, StylingProps, DataTe
|
|
|
12
11
|
* The ProgressBarIcon subcomponent is rendered inside the ProgressBar component.
|
|
13
12
|
* @public
|
|
14
13
|
*/
|
|
15
|
-
export declare const ProgressBarIcon: (props: ProgressBarIconProps &
|
|
14
|
+
export declare const ProgressBarIcon: (props: ProgressBarIconProps & import("react").RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
@@ -31,8 +31,9 @@ __export(ProgressBarIcon_exports, {
|
|
|
31
31
|
ProgressBarIcon: () => ProgressBarIcon
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(ProgressBarIcon_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_clsx = __toESM(require("clsx"));
|
|
35
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
36
37
|
var import_ProgressBarIcon_css = require("./ProgressBarIcon.sty.js");
|
|
37
38
|
const ProgressBarIcon = (0, import_react.forwardRef)(
|
|
38
39
|
(props, forwardedRef) => {
|
|
@@ -43,16 +44,16 @@ const ProgressBarIcon = (0, import_react.forwardRef)(
|
|
|
43
44
|
"data-testid": dataTestId,
|
|
44
45
|
...remainingProps
|
|
45
46
|
} = props;
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
47
48
|
"div",
|
|
48
49
|
{
|
|
49
50
|
"data-testid": dataTestId,
|
|
50
51
|
ref: forwardedRef,
|
|
51
52
|
className: (0, import_clsx.default)(consumerClassName, import_ProgressBarIcon_css.progressBarIconContainerCSS),
|
|
52
53
|
style: consumerStyle,
|
|
53
|
-
...remainingProps
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
...remainingProps,
|
|
55
|
+
children
|
|
56
|
+
}
|
|
56
57
|
);
|
|
57
58
|
}
|
|
58
59
|
);
|
|
@@ -23,4 +23,4 @@ __export(ProgressBarIcon_css_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(ProgressBarIcon_css_exports);
|
|
24
24
|
var import_ProgressBar_css_ts_vanilla = require("./ProgressBar.css");
|
|
25
25
|
var import_ProgressBarIcon_css_ts_vanilla = require("./ProgressBarIcon.css");
|
|
26
|
-
var progressBarIconContainerCSS = "_szm9t40-1-
|
|
26
|
+
var progressBarIconContainerCSS = "_szm9t40-1-6-2";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type DataTestId } from '../../core/types/data-props.js';
|
|
3
2
|
import { type StylingProps } from '../../core/types/styling-props.js';
|
|
4
3
|
import { type WithChildren } from '../../core/types/with-children.js';
|
|
@@ -12,4 +11,4 @@ export interface ProgressBarLabelProps extends WithChildren, StylingProps, DataT
|
|
|
12
11
|
* ProgressBarLabel sub-component is rendered inside ProgressBar component.
|
|
13
12
|
* @public
|
|
14
13
|
*/
|
|
15
|
-
export declare const ProgressBarLabel: (props: ProgressBarLabelProps &
|
|
14
|
+
export declare const ProgressBarLabel: (props: ProgressBarLabelProps & import("react").RefAttributes<HTMLLabelElement>) => React.ReactElement | null;
|
|
@@ -31,11 +31,12 @@ __export(ProgressBarLabel_exports, {
|
|
|
31
31
|
ProgressBarLabel: () => ProgressBarLabel
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(ProgressBarLabel_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_clsx = __toESM(require("clsx"));
|
|
35
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
36
37
|
var import_useProgressBarPropsContext = require("./hooks/useProgressBarPropsContext.js");
|
|
37
38
|
var import_ProgressBarLabel_css = require("./ProgressBarLabel.sty.js");
|
|
38
|
-
var
|
|
39
|
+
var import_can_receive_default_text_format = require("../../core/utils/can-receive-default-text-format.js");
|
|
39
40
|
var import_ellipsis_css = require("../../styles/ellipsis.sty.js");
|
|
40
41
|
var import_textStyle_css = require("../../styles/textStyle.sty.js");
|
|
41
42
|
const ProgressBarLabel = (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
@@ -47,8 +48,8 @@ const ProgressBarLabel = (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
|
47
48
|
...remainingProps
|
|
48
49
|
} = props;
|
|
49
50
|
const { id, density } = (0, import_useProgressBarPropsContext.useSharedProgressBarPropsContext)();
|
|
50
|
-
const childIsText = (0,
|
|
51
|
-
return /* @__PURE__ */
|
|
51
|
+
const childIsText = (0, import_can_receive_default_text_format.canReceiveDefaultTextFormat)(children);
|
|
52
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
52
53
|
"label",
|
|
53
54
|
{
|
|
54
55
|
"data-testid": dataTestId,
|
|
@@ -63,9 +64,9 @@ const ProgressBarLabel = (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
|
63
64
|
(0, import_textStyle_css.textStyleCSS)({ textStyle: "base" })
|
|
64
65
|
),
|
|
65
66
|
style: consumerStyle,
|
|
66
|
-
...remainingProps
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
...remainingProps,
|
|
68
|
+
children
|
|
69
|
+
}
|
|
69
70
|
);
|
|
70
71
|
});
|
|
71
72
|
ProgressBarLabel.displayName = "ProgressBar.Label";
|
|
@@ -23,4 +23,4 @@ __export(ProgressBarLabel_css_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(ProgressBarLabel_css_exports);
|
|
24
24
|
var import_ProgressBarLabel_css_ts_vanilla = require("./ProgressBarLabel.css");
|
|
25
25
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
-
var progressBarLabelCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1ceb8vp0-1-
|
|
26
|
+
var progressBarLabelCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1ceb8vp0-1-6-2", variantClassNames: { size: { condensed: "_1ceb8vp1-1-6-2", "default": "_1ceb8vp2-1-6-2" }, childIsText: { false: "_1ceb8vp3-1-6-2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
._1ri4i7o0-1-
|
|
2
|
-
color: var(--_13n9uwh4-1-
|
|
1
|
+
._1ri4i7o0-1-6-2 {
|
|
2
|
+
color: var(--_13n9uwh4-1-6-2);
|
|
3
3
|
}
|
|
4
|
-
._1ri4i7o2-1-
|
|
4
|
+
._1ri4i7o2-1-6-2 {
|
|
5
5
|
word-break: break-word;
|
|
6
6
|
}
|
|
7
|
-
._1ri4i7o4-1-
|
|
7
|
+
._1ri4i7o4-1-6-2 {
|
|
8
8
|
word-break: break-word;
|
|
9
9
|
}
|
|
10
|
-
._1ri4i7o5-1-
|
|
10
|
+
._1ri4i7o5-1-6-2 {
|
|
11
11
|
margin-left: auto;
|
|
12
12
|
align-self: center;
|
|
13
13
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { type DataTestId } from '../../core/types/data-props.js';
|
|
3
2
|
import { type StylingProps } from '../../core/types/styling-props.js';
|
|
4
3
|
import { type WithChildren } from '../../core/types/with-children.js';
|
|
@@ -12,4 +11,4 @@ export interface ProgressBarValueProps extends WithChildren, StylingProps, DataT
|
|
|
12
11
|
* ProgressBarValue sub-component is rendered inside ProgressBar component.
|
|
13
12
|
* @public
|
|
14
13
|
*/
|
|
15
|
-
export declare const ProgressBarValue: (props: ProgressBarValueProps &
|
|
14
|
+
export declare const ProgressBarValue: (props: ProgressBarValueProps & import("react").RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
@@ -31,12 +31,13 @@ __export(ProgressBarValue_exports, {
|
|
|
31
31
|
ProgressBarValue: () => ProgressBarValue
|
|
32
32
|
});
|
|
33
33
|
module.exports = __toCommonJS(ProgressBarValue_exports);
|
|
34
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
34
35
|
var import_clsx = __toESM(require("clsx"));
|
|
35
|
-
var import_react =
|
|
36
|
+
var import_react = require("react");
|
|
36
37
|
var import_react_intl = require("react-intl");
|
|
37
38
|
var import_useProgressBarPropsContext = require("./hooks/useProgressBarPropsContext.js");
|
|
38
39
|
var import_ProgressBarValue_css = require("./ProgressBarValue.sty.js");
|
|
39
|
-
var
|
|
40
|
+
var import_can_receive_default_text_format = require("../../core/utils/can-receive-default-text-format.js");
|
|
40
41
|
var import_textStyle_css = require("../../styles/textStyle.sty.js");
|
|
41
42
|
const ProgressBarValue = (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
42
43
|
const {
|
|
@@ -53,8 +54,8 @@ const ProgressBarValue = (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
|
53
54
|
description: "Default label for the progress-bar."
|
|
54
55
|
});
|
|
55
56
|
const { density } = (0, import_useProgressBarPropsContext.useSharedProgressBarPropsContext)();
|
|
56
|
-
const childIsText = (0,
|
|
57
|
-
return /* @__PURE__ */
|
|
57
|
+
const childIsText = (0, import_can_receive_default_text_format.canReceiveDefaultTextFormat)(children);
|
|
58
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
58
59
|
"div",
|
|
59
60
|
{
|
|
60
61
|
"data-testid": dataTestId,
|
|
@@ -65,9 +66,9 @@ const ProgressBarValue = (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
|
65
66
|
(0, import_textStyle_css.textStyleCSS)({ textStyle: "small" })
|
|
66
67
|
),
|
|
67
68
|
style: consumerStyle,
|
|
68
|
-
...remainingProps
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
...remainingProps,
|
|
70
|
+
children: children || progressBarDefaultLabel
|
|
71
|
+
}
|
|
71
72
|
);
|
|
72
73
|
});
|
|
73
74
|
ProgressBarValue.displayName = "ProgressBar.Value";
|
|
@@ -25,4 +25,4 @@ var import_ProgressBar_css_ts_vanilla = require("./ProgressBar.css");
|
|
|
25
25
|
var import_ellipsis_css_ts_vanilla = require("../../styles/ellipsis.css");
|
|
26
26
|
var import_ProgressBarValue_css_ts_vanilla = require("./ProgressBarValue.css");
|
|
27
27
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
28
|
-
var progressBarValueCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1ri4i7o0-1-
|
|
28
|
+
var progressBarValueCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1ri4i7o0-1-6-2", variantClassNames: { size: { condensed: "_1ri4i7o1-1-6-2", "default": "_1ri4i7o2-1-6-2" }, childIsText: { true: "_1ri4i7o3-1-6-2", false: "_1ri4i7o4-1-6-2" } }, defaultVariants: {}, compoundVariants: [[{ size: "condensed", childIsText: true }, "_1ri4i7o5-1-6-2 _oqqp1n0-1-6-2"]] });
|