@dynatrace/strato-components 0.85.100 → 0.85.110
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 +17 -17
- package/buttons/button/Button.d.ts +1 -0
- package/buttons/button/Button.js +1 -0
- package/buttons/button/Button.sty.js +4 -4
- package/buttons/intent-button/IntentButton.js +4 -0
- package/content/progress/ProgressBar.css +73 -26
- package/content/progress/ProgressBar.d.ts +1 -1
- package/content/progress/ProgressBar.js +75 -63
- package/content/progress/ProgressBar.sty.d.ts +15 -20
- package/content/progress/ProgressBar.sty.js +9 -4
- package/content/progress/ProgressBarIcon.css +2 -2
- package/content/progress/ProgressBarIcon.js +1 -11
- package/content/progress/ProgressBarIcon.sty.js +2 -2
- package/content/progress/ProgressBarLabel.css +4 -4
- package/content/progress/ProgressBarLabel.js +1 -6
- package/content/progress/ProgressBarLabel.sty.js +1 -2
- package/content/progress/ProgressBarValue.css +5 -20
- package/content/progress/ProgressBarValue.js +2 -2
- package/content/progress/ProgressBarValue.sty.d.ts +0 -20
- package/content/progress/ProgressBarValue.sty.js +2 -1
- package/content/progress/ProgressCircle.css +51 -19
- package/content/progress/ProgressCircle.d.ts +1 -1
- package/content/progress/ProgressCircle.js +24 -15
- package/content/progress/ProgressCircle.sty.d.ts +41 -14
- package/content/progress/ProgressCircle.sty.js +7 -11
- package/content/progress/contexts/SharedProgressBarPropsContext.d.ts +0 -2
- package/content/progress/contexts/SharedProgressBarPropsContext.js +1 -2
- package/content/progress/hooks/useProgressBarPropsContext.js +0 -1
- package/content/skeleton/Skeleton.css +6 -6
- package/content/skeleton/Skeleton.sty.js +1 -1
- package/core/components/focus-scope/FocusScope.d.ts +2 -2
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/core/styles/focusRing.css +66 -66
- package/core/styles/focusRing.sty.js +2 -2
- package/core/styles/useFocusRing.d.ts +0 -1
- package/core/utils/colorUtils.css +60 -65
- package/core/utils/colorUtils.sty.d.ts +0 -5
- package/core/utils/colorUtils.sty.js +2 -2
- package/esm/buttons/button/Button.css +17 -17
- package/esm/buttons/button/Button.js +1 -0
- 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/intent-button/IntentButton.js +4 -0
- package/esm/buttons/intent-button/IntentButton.js.map +2 -2
- package/esm/content/progress/ProgressBar.css +73 -26
- package/esm/content/progress/ProgressBar.js +80 -64
- package/esm/content/progress/ProgressBar.js.map +2 -2
- package/esm/content/progress/ProgressBar.sty.js +9 -4
- package/esm/content/progress/ProgressBar.sty.js.map +2 -2
- package/esm/content/progress/ProgressBarIcon.css +2 -2
- package/esm/content/progress/ProgressBarIcon.js +1 -11
- package/esm/content/progress/ProgressBarIcon.js.map +2 -2
- package/esm/content/progress/ProgressBarIcon.sty.js +2 -2
- package/esm/content/progress/ProgressBarIcon.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarLabel.css +4 -4
- package/esm/content/progress/ProgressBarLabel.js +1 -6
- package/esm/content/progress/ProgressBarLabel.js.map +2 -2
- package/esm/content/progress/ProgressBarLabel.sty.js +1 -2
- package/esm/content/progress/ProgressBarLabel.sty.js.map +2 -2
- package/esm/content/progress/ProgressBarValue.css +5 -20
- package/esm/content/progress/ProgressBarValue.js +2 -2
- package/esm/content/progress/ProgressBarValue.js.map +2 -2
- package/esm/content/progress/ProgressBarValue.sty.js +2 -1
- package/esm/content/progress/ProgressBarValue.sty.js.map +2 -2
- package/esm/content/progress/ProgressCircle.css +51 -19
- package/esm/content/progress/ProgressCircle.js +25 -17
- package/esm/content/progress/ProgressCircle.js.map +2 -2
- package/esm/content/progress/ProgressCircle.sty.js +7 -11
- package/esm/content/progress/ProgressCircle.sty.js.map +2 -2
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js +1 -2
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js.map +2 -2
- package/esm/content/progress/hooks/useProgressBarPropsContext.js +0 -1
- package/esm/content/progress/hooks/useProgressBarPropsContext.js.map +2 -2
- package/esm/content/skeleton/Skeleton.css +6 -6
- package/esm/content/skeleton/Skeleton.sty.js +1 -1
- package/esm/content/skeleton/Skeleton.sty.js.map +1 -1
- package/esm/core/components/focus-scope/FocusScope.js.map +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.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 +2 -2
- package/esm/core/types/role-variant.js.map +2 -2
- package/esm/core/utils/colorUtils.css +60 -65
- package/esm/core/utils/colorUtils.sty.js +2 -2
- package/esm/core/utils/colorUtils.sty.js.map +2 -2
- package/esm/layouts/container/Container.css +4 -4
- package/esm/layouts/container/Container.js +22 -4
- 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.sty.js +1 -1
- package/esm/layouts/divider/Divider.sty.js.map +1 -1
- package/esm/layouts/hooks/useBreakpoint.js +3 -0
- package/esm/layouts/hooks/useBreakpoint.js.map +2 -2
- package/esm/layouts/index.js +5 -1
- package/esm/layouts/index.js.map +2 -2
- package/esm/layouts/input-group/InputGroup.css +4 -4
- package/esm/layouts/input-group/InputGroup.sty.js +2 -2
- package/esm/layouts/input-group/InputGroup.sty.js.map +1 -1
- package/esm/layouts/surface/Surface.css +39 -39
- 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 -65
- package/esm/styles/colorUtils.sty.js +2 -2
- package/esm/styles/colorUtils.sty.js.map +2 -2
- 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/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.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.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.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.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.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.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.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.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.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.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.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.sty.js +1 -1
- package/esm/typography/text/Text.sty.js.map +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.css +4 -4
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +1 -1
- package/layouts/container/Container.css +4 -4
- package/layouts/container/Container.d.ts +20 -0
- package/layouts/container/Container.js +16 -3
- package/layouts/container/Container.sty.js +1 -1
- package/layouts/divider/Divider.css +6 -6
- package/layouts/divider/Divider.sty.js +1 -1
- package/layouts/hooks/useBreakpoint.js +3 -0
- package/layouts/index.d.ts +1 -1
- package/layouts/index.js +1 -0
- package/layouts/input-group/InputGroup.css +4 -4
- package/layouts/input-group/InputGroup.sty.js +2 -2
- package/layouts/surface/Surface.css +39 -39
- package/layouts/surface/Surface.sty.js +2 -2
- package/layouts/surface/variables.sty.js +1 -1
- package/package.json +1 -1
- package/styles/colorUtils.css +60 -65
- package/styles/colorUtils.sty.d.ts +0 -5
- 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/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.sty.js +1 -1
- package/typography/code/Code.css +1 -1
- package/typography/code/Code.sty.js +1 -1
- package/typography/emphasis/Emphasis.css +1 -1
- package/typography/emphasis/Emphasis.sty.js +1 -1
- package/typography/external-link/ExternalLink.css +6 -6
- package/typography/external-link/ExternalLink.sty.js +1 -1
- package/typography/heading/Heading.css +7 -7
- package/typography/heading/Heading.sty.js +1 -1
- package/typography/highlight/Highlight.css +1 -1
- package/typography/highlight/Highlight.sty.js +1 -1
- package/typography/link/Link.css +4 -4
- package/typography/link/Link.sty.js +1 -1
- package/typography/list/List.css +4 -4
- package/typography/list/List.sty.js +2 -2
- package/typography/paragraph/Paragraph.css +3 -3
- package/typography/paragraph/Paragraph.sty.js +1 -1
- package/typography/strikethrough/Strikethrough.css +1 -1
- package/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/typography/strong/Strong.css +1 -1
- package/typography/strong/Strong.sty.js +1 -1
- package/typography/text/Text.css +3 -3
- package/typography/text/Text.sty.js +1 -1
- package/typography/text-ellipsis/TextEllipsis.css +4 -4
- package/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
._10kgnsa0-0-85-
|
|
1
|
+
._10kgnsa0-0-85-110 {
|
|
2
2
|
font-family: var(--dt-typography-text-base-default-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
3
3
|
font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
|
|
4
4
|
font-size: var(--dt-typography-text-base-default-size, 14px);
|
|
5
5
|
line-height: var(--dt-typography-text-base-default-line-height, 1.4285714286);
|
|
6
6
|
text-decoration: var(--dt-typography-text-base-default-text-decoration, none);
|
|
7
7
|
text-transform: none;
|
|
8
|
-
background: var(--_bx32h3-0-85-
|
|
9
|
-
color: var(--_bx32h0-0-85-
|
|
8
|
+
background: var(--_bx32h3-0-85-110);
|
|
9
|
+
color: var(--_bx32h0-0-85-110);
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
position: relative;
|
|
12
12
|
align-items: center;
|
|
@@ -23,46 +23,46 @@
|
|
|
23
23
|
transition-duration: var(--dt-animations-fade-out-duration-base, 250ms);
|
|
24
24
|
transition-property: color, background-color, transform;
|
|
25
25
|
}
|
|
26
|
-
._10kgnsa0-0-85-
|
|
26
|
+
._10kgnsa0-0-85-110:hover {
|
|
27
27
|
transition-timing-function: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1));
|
|
28
28
|
transition-duration: var(--dt-animations-fade-in-duration-base, 250ms);
|
|
29
29
|
}
|
|
30
|
-
._10kgnsa1-0-85-
|
|
30
|
+
._10kgnsa1-0-85-110 {
|
|
31
31
|
text-align: start;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
}
|
|
34
|
-
._10kgnsa2-0-85-
|
|
34
|
+
._10kgnsa2-0-85-110 {
|
|
35
35
|
text-align: center;
|
|
36
36
|
justify-content: center;
|
|
37
37
|
}
|
|
38
|
-
._10kgnsa3-0-85-
|
|
38
|
+
._10kgnsa3-0-85-110 {
|
|
39
39
|
padding-top: var(--dt-spacings-size-2, 2px);
|
|
40
40
|
padding-bottom: var(--dt-spacings-size-2, 2px);
|
|
41
41
|
padding-left: var(--dt-spacings-size-4, 4px);
|
|
42
42
|
padding-right: var(--dt-spacings-size-4, 4px);
|
|
43
43
|
gap: var(--dt-spacings-size-2, 2px);
|
|
44
44
|
}
|
|
45
|
-
._10kgnsa4-0-85-
|
|
45
|
+
._10kgnsa4-0-85-110 {
|
|
46
46
|
padding-top: var(--dt-spacings-size-6, 6px);
|
|
47
47
|
padding-bottom: var(--dt-spacings-size-6, 6px);
|
|
48
48
|
padding-left: var(--dt-spacings-size-8, 8px);
|
|
49
49
|
padding-right: var(--dt-spacings-size-8, 8px);
|
|
50
50
|
gap: var(--dt-spacings-size-4, 4px);
|
|
51
51
|
}
|
|
52
|
-
._10kgnsa5-0-85-
|
|
52
|
+
._10kgnsa5-0-85-110 {
|
|
53
53
|
cursor: not-allowed;
|
|
54
54
|
}
|
|
55
|
-
._10kgnsa6-0-85-
|
|
55
|
+
._10kgnsa6-0-85-110 {
|
|
56
56
|
cursor: not-allowed;
|
|
57
|
-
background: var(--_bx32h2-0-85-
|
|
57
|
+
background: var(--_bx32h2-0-85-110);
|
|
58
58
|
}
|
|
59
|
-
._10kgnsa7-0-85-
|
|
59
|
+
._10kgnsa7-0-85-110 {
|
|
60
60
|
width: 100%;
|
|
61
61
|
}
|
|
62
|
-
._10kgnsa8-0-85-
|
|
62
|
+
._10kgnsa8-0-85-110 {
|
|
63
63
|
width: fit-content;
|
|
64
64
|
}
|
|
65
|
-
._10kgnsa9-0-85-
|
|
65
|
+
._10kgnsa9-0-85-110 {
|
|
66
66
|
position: absolute;
|
|
67
67
|
top: 0;
|
|
68
68
|
left: 0;
|
|
@@ -74,19 +74,19 @@
|
|
|
74
74
|
align-items: center;
|
|
75
75
|
z-index: 1;
|
|
76
76
|
}
|
|
77
|
-
._10kgnsa3-0-85-
|
|
77
|
+
._10kgnsa3-0-85-110 ._10kgnsaa-0-85-110:not(:has(svg:only-child)) {
|
|
78
78
|
padding-top: 0;
|
|
79
79
|
padding-bottom: 0;
|
|
80
80
|
padding-left: 2px;
|
|
81
81
|
padding-right: 2px;
|
|
82
82
|
}
|
|
83
|
-
._10kgnsa4-0-85-
|
|
83
|
+
._10kgnsa4-0-85-110 ._10kgnsaa-0-85-110:not(:has(svg:only-child)) {
|
|
84
84
|
padding-top: 0;
|
|
85
85
|
padding-bottom: 0;
|
|
86
86
|
padding-left: 4px;
|
|
87
87
|
padding-right: 4px;
|
|
88
88
|
}
|
|
89
|
-
._10kgnsac-0-85-
|
|
89
|
+
._10kgnsac-0-85-110 {
|
|
90
90
|
display: inline-flex;
|
|
91
91
|
min-width: 0;
|
|
92
92
|
max-width: 100%;
|
|
@@ -59,6 +59,7 @@ export interface ButtonOwnProps extends AriaLabelingProps, AriaDisabledProps, Wi
|
|
|
59
59
|
/**
|
|
60
60
|
* Determines whether the element is in read-only mode.
|
|
61
61
|
* @defaultValue false
|
|
62
|
+
* @deprecated - readOnly is not a valid property on a button. Please use disabled if needed.
|
|
62
63
|
*/
|
|
63
64
|
readOnly?: boolean;
|
|
64
65
|
}
|
package/buttons/button/Button.js
CHANGED
|
@@ -99,6 +99,7 @@ const _Button = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
99
99
|
"data-testid": dataTestId,
|
|
100
100
|
"data-dtrum-mask": dataDtrumMask,
|
|
101
101
|
"data-dtrum-allow": dataDtrumAllow,
|
|
102
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
102
103
|
readOnly,
|
|
103
104
|
as,
|
|
104
105
|
...remainingProps
|
|
@@ -27,7 +27,7 @@ var import_ellipsis_css_ts_vanilla = require("../../styles/ellipsis.css");
|
|
|
27
27
|
var import_field_css_ts_vanilla = require("../../styles/field.css");
|
|
28
28
|
var import_Button_css_ts_vanilla = require("./Button.css");
|
|
29
29
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
30
|
-
var buttonCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_10kgnsa0-0-85-
|
|
31
|
-
var buttonLabelCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_10kgnsaa-0-85-
|
|
32
|
-
var buttonLoadingCSS = "_10kgnsa9-0-85-
|
|
33
|
-
var buttonWidthsCSS = { full: "_10kgnsa7-0-85-
|
|
30
|
+
var buttonCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_10kgnsa0-0-85-110", variantClassNames: { textAlign: { start: "_10kgnsa1-0-85-110", center: "_10kgnsa2-0-85-110" }, size: { condensed: "_10kgnsa3-0-85-110", "default": "_10kgnsa4-0-85-110" }, disabled: { true: "_10kgnsa5-0-85-110" }, readOnly: { true: "_10kgnsa6-0-85-110" } }, defaultVariants: { size: "default", textAlign: "center", disabled: false }, compoundVariants: [] });
|
|
31
|
+
var buttonLabelCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_10kgnsaa-0-85-110", variantClassNames: { textual: { true: "_oqqp1n0-0-85-110", false: "_10kgnsac-0-85-110" } }, defaultVariants: {}, compoundVariants: [] });
|
|
32
|
+
var buttonLoadingCSS = "_10kgnsa9-0-85-110";
|
|
33
|
+
var buttonWidthsCSS = { full: "_10kgnsa7-0-85-110", content: "_10kgnsa8-0-85-110" };
|
|
@@ -50,6 +50,8 @@ const IntentButton = /* @__PURE__ */ (0, import_react.forwardRef)((props, forwar
|
|
|
50
50
|
"data-testid": dataTestId,
|
|
51
51
|
"data-dtrum-mask": dataDtrumMask,
|
|
52
52
|
"data-dtrum-allow": dataDtrumAllow,
|
|
53
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
54
|
+
readOnly,
|
|
53
55
|
...remainingProps
|
|
54
56
|
} = props;
|
|
55
57
|
let label = children;
|
|
@@ -78,6 +80,7 @@ const IntentButton = /* @__PURE__ */ (0, import_react.forwardRef)((props, forwar
|
|
|
78
80
|
"aria-label": ariaLabel,
|
|
79
81
|
className: consumerClassName,
|
|
80
82
|
style: consumerStyle,
|
|
83
|
+
readOnly,
|
|
81
84
|
...remainingProps
|
|
82
85
|
},
|
|
83
86
|
label,
|
|
@@ -95,6 +98,7 @@ const IntentButton = /* @__PURE__ */ (0, import_react.forwardRef)((props, forwar
|
|
|
95
98
|
"aria-label": ariaLabel ?? label,
|
|
96
99
|
className: consumerClassName,
|
|
97
100
|
style: consumerStyle,
|
|
101
|
+
readOnly,
|
|
98
102
|
...remainingProps,
|
|
99
103
|
...intentButtonProps
|
|
100
104
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@keyframes _13n9uwh0-0-85-
|
|
1
|
+
@keyframes _13n9uwh0-0-85-110 {
|
|
2
2
|
0% {
|
|
3
3
|
transform: translateX(-100%) scaleX(0);
|
|
4
4
|
}
|
|
@@ -6,45 +6,92 @@
|
|
|
6
6
|
transform: translateX(100%) scaleX(1.5);
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
|
-
.
|
|
10
|
-
|
|
11
|
-
border-radius: var(--dt-borders-radius-container-subdued, 8px);
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
position: relative;
|
|
9
|
+
._13n9uwh5-0-85-110 {
|
|
10
|
+
color: var(--_13n9uwh1-0-85-110);
|
|
14
11
|
}
|
|
15
|
-
.
|
|
16
|
-
|
|
12
|
+
._13n9uwhd-0-85-110 {
|
|
13
|
+
--_13n9uwh1-0-85-110: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
14
|
+
--_13n9uwh4-0-85-110: var(--dt-colors-text-neutral-subdued, #545587);
|
|
15
|
+
--_13n9uwh2-0-85-110: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
16
|
+
--_13n9uwh3-0-85-110: var(--dt-colors-border-primary-accent, #454cc9);
|
|
17
17
|
}
|
|
18
|
-
.
|
|
19
|
-
|
|
18
|
+
._13n9uwhe-0-85-110 {
|
|
19
|
+
--_13n9uwh1-0-85-110: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
20
|
+
--_13n9uwh4-0-85-110: var(--dt-colors-text-neutral-subdued, #545587);
|
|
21
|
+
--_13n9uwh2-0-85-110: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
22
|
+
--_13n9uwh3-0-85-110: var(--dt-colors-border-success-accent, #2c6360);
|
|
23
|
+
}
|
|
24
|
+
._13n9uwhf-0-85-110 {
|
|
25
|
+
--_13n9uwh1-0-85-110: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
26
|
+
--_13n9uwh4-0-85-110: var(--dt-colors-text-neutral-subdued, #545587);
|
|
27
|
+
--_13n9uwh2-0-85-110: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
28
|
+
--_13n9uwh3-0-85-110: var(--dt-colors-border-warning-accent, #805100);
|
|
29
|
+
}
|
|
30
|
+
._13n9uwhg-0-85-110 {
|
|
31
|
+
--_13n9uwh1-0-85-110: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
32
|
+
--_13n9uwh4-0-85-110: var(--dt-colors-text-neutral-subdued, #545587);
|
|
33
|
+
--_13n9uwh2-0-85-110: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
34
|
+
--_13n9uwh3-0-85-110: var(--dt-colors-border-critical-accent, #b80031);
|
|
35
|
+
}
|
|
36
|
+
._13n9uwhh-0-85-110 {
|
|
37
|
+
--_13n9uwh1-0-85-110: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
38
|
+
--_13n9uwh4-0-85-110: var(--dt-colors-text-neutral-subdued, #545587);
|
|
39
|
+
--_13n9uwh2-0-85-110: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
40
|
+
--_13n9uwh3-0-85-110: var(--dt-colors-border-neutral-accent, #545587);
|
|
41
|
+
color: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
20
42
|
}
|
|
21
|
-
.
|
|
22
|
-
|
|
43
|
+
._13n9uwhi-0-85-110 {
|
|
44
|
+
--_13n9uwh1-0-85-110: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
45
|
+
--_13n9uwh4-0-85-110: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
46
|
+
--_13n9uwh2-0-85-110: var(--dt-colors-border-primary-on-accent-disabled, #f4f4fb33);
|
|
47
|
+
--_13n9uwh3-0-85-110: var(--dt-colors-border-primary-on-accent-default, #f4f4fb);
|
|
23
48
|
}
|
|
24
|
-
.
|
|
25
|
-
|
|
49
|
+
._13n9uwhj-0-85-110 {
|
|
50
|
+
--_13n9uwh1-0-85-110: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
51
|
+
--_13n9uwh4-0-85-110: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
52
|
+
--_13n9uwh2-0-85-110: var(--dt-colors-border-success-on-accent-disabled, #f1f4f433);
|
|
53
|
+
--_13n9uwh3-0-85-110: var(--dt-colors-border-success-on-accent-default, #f1f4f4);
|
|
26
54
|
}
|
|
27
|
-
.
|
|
28
|
-
|
|
55
|
+
._13n9uwhk-0-85-110 {
|
|
56
|
+
--_13n9uwh1-0-85-110: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
57
|
+
--_13n9uwh4-0-85-110: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
58
|
+
--_13n9uwh2-0-85-110: var(--dt-colors-border-warning-on-accent-disabled, #27202533);
|
|
59
|
+
--_13n9uwh3-0-85-110: var(--dt-colors-border-warning-on-accent-default, #272025);
|
|
29
60
|
}
|
|
30
|
-
.
|
|
31
|
-
|
|
61
|
+
._13n9uwhl-0-85-110 {
|
|
62
|
+
--_13n9uwh1-0-85-110: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
63
|
+
--_13n9uwh4-0-85-110: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
64
|
+
--_13n9uwh2-0-85-110: var(--dt-colors-border-critical-on-accent-disabled, #f9f1f333);
|
|
65
|
+
--_13n9uwh3-0-85-110: var(--dt-colors-border-critical-on-accent-default, #f9f1f3);
|
|
32
66
|
}
|
|
33
|
-
.
|
|
34
|
-
|
|
67
|
+
._13n9uwhm-0-85-110 {
|
|
68
|
+
--_13n9uwh1-0-85-110: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
69
|
+
--_13n9uwh4-0-85-110: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
70
|
+
--_13n9uwh2-0-85-110: var(--dt-colors-border-neutral-on-accent-disabled, #f3f3f633);
|
|
71
|
+
--_13n9uwh3-0-85-110: var(--dt-colors-border-neutral-on-accent-default, #f3f3f6);
|
|
35
72
|
}
|
|
36
|
-
.
|
|
37
|
-
|
|
73
|
+
._13n9uwhn-0-85-110 {
|
|
74
|
+
width: 100%;
|
|
75
|
+
border-radius: var(--dt-borders-radius-container-subdued, 8px);
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
position: relative;
|
|
78
|
+
background: var(--_13n9uwh2-0-85-110);
|
|
79
|
+
}
|
|
80
|
+
._13n9uwho-0-85-110 {
|
|
81
|
+
height: 6px;
|
|
82
|
+
}
|
|
83
|
+
._13n9uwhp-0-85-110 {
|
|
84
|
+
height: 8px;
|
|
38
85
|
}
|
|
39
|
-
.
|
|
86
|
+
._13n9uwhq-0-85-110 {
|
|
40
87
|
height: 100%;
|
|
41
88
|
transition-duration: var(--dt-timings-fast-default, 170ms);
|
|
42
89
|
transition-timing-function: var(--dt-easings-fast-in-slow-out, cubic-bezier(0.4, 0, 0.2, 1));
|
|
43
|
-
background-color: var(--
|
|
90
|
+
background-color: var(--_13n9uwh3-0-85-110);
|
|
44
91
|
}
|
|
45
|
-
.
|
|
92
|
+
._13n9uwhr-0-85-110 {
|
|
46
93
|
width: 100%;
|
|
47
|
-
animation-name: _13n9uwh0-0-85-
|
|
94
|
+
animation-name: _13n9uwh0-0-85-110;
|
|
48
95
|
animation-duration: var(--dt-timings-slow-gentle, 800ms);
|
|
49
96
|
animation-timing-function: var(--dt-easings-fast-in-slow-out, cubic-bezier(0.4, 0, 0.2, 1));
|
|
50
97
|
animation-iteration-count: infinite;
|
|
@@ -39,7 +39,7 @@ export interface ProgressBarProps extends WithChildren, DOMProps, AriaLabelingPr
|
|
|
39
39
|
variant?: RoleVariantType;
|
|
40
40
|
/**
|
|
41
41
|
* Controls the color of the progress.
|
|
42
|
-
* @defaultValue 'primary'
|
|
42
|
+
* @defaultValue 'primary' or a container's color.
|
|
43
43
|
*/
|
|
44
44
|
color?: 'neutral' | 'primary' | 'success' | 'warning' | 'critical';
|
|
45
45
|
/**
|
|
@@ -42,7 +42,8 @@ var import_ProgressBarLabel = require("./ProgressBarLabel.js");
|
|
|
42
42
|
var import_ProgressBarValue = require("./ProgressBarValue.js");
|
|
43
43
|
var import_useAriaLabelingProps = require("../../core/hooks/useAriaLabelingProps.js");
|
|
44
44
|
var import_useSafeForwardProps = require("../../core/hooks/useSafeForwardProps.js");
|
|
45
|
-
var
|
|
45
|
+
var import_Container = require("../../layouts/container/Container.js");
|
|
46
|
+
var import_container_css = require("../../styles/container.sty.js");
|
|
46
47
|
function getProgressBarSlots(children) {
|
|
47
48
|
const slots = {
|
|
48
49
|
value: null,
|
|
@@ -78,8 +79,8 @@ const _ProgressBar = (0, import_react.forwardRef)(
|
|
|
78
79
|
max = 100,
|
|
79
80
|
min = 0,
|
|
80
81
|
density = "default",
|
|
81
|
-
variant
|
|
82
|
-
color
|
|
82
|
+
variant,
|
|
83
|
+
color,
|
|
83
84
|
children,
|
|
84
85
|
id: propId,
|
|
85
86
|
"aria-valuetext": ariaValuetext,
|
|
@@ -90,6 +91,18 @@ const _ProgressBar = (0, import_react.forwardRef)(
|
|
|
90
91
|
"data-dtrum-allow": dataDtrumAllow,
|
|
91
92
|
...remainingProps
|
|
92
93
|
} = props;
|
|
94
|
+
const containerColoring = (0, import_Container.useContainerColoring)();
|
|
95
|
+
const cascadedVariant = variant !== void 0 && variant === "onAccent" ? "accent" : containerColoring.variant;
|
|
96
|
+
const derivedVariant = cascadedVariant === "accent" ? "accent" : "default";
|
|
97
|
+
const fallbackColor = containerColoring.default ? "primary" : containerColoring.color;
|
|
98
|
+
let derivedColor = fallbackColor;
|
|
99
|
+
if (variant !== void 0 && variant !== "onAccent") {
|
|
100
|
+
derivedColor = variant;
|
|
101
|
+
}
|
|
102
|
+
if (color !== void 0) {
|
|
103
|
+
derivedColor = color;
|
|
104
|
+
}
|
|
105
|
+
const onAccent = derivedVariant === "accent";
|
|
93
106
|
const slots = getProgressBarSlots(children);
|
|
94
107
|
const { value, isIndeterminate, progressAriaProps } = (0, import_useProgressAriaProps.useProgressAriaProps)(
|
|
95
108
|
originalValue,
|
|
@@ -112,84 +125,83 @@ const _ProgressBar = (0, import_react.forwardRef)(
|
|
|
112
125
|
const percentage = (value - min) / (max - min);
|
|
113
126
|
progressStyles["width"] = `${Math.round(percentage * 100)}%`;
|
|
114
127
|
}
|
|
115
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
116
|
-
|
|
128
|
+
return /* @__PURE__ */ import_react.default.createElement(import_SharedProgressBarPropsContext.SharedProgressBarPropsContext.Provider, { value: { id, density } }, /* @__PURE__ */ import_react.default.createElement(
|
|
129
|
+
"div",
|
|
117
130
|
{
|
|
118
|
-
|
|
131
|
+
className: (0, import_clsx.default)(
|
|
132
|
+
(0, import_container_css.containerColorsCSS)({
|
|
133
|
+
color: derivedColor,
|
|
134
|
+
variant: derivedVariant
|
|
135
|
+
}),
|
|
136
|
+
(0, import_ProgressBar_css.progressRoot)({
|
|
137
|
+
onAccent,
|
|
138
|
+
color: derivedColor
|
|
139
|
+
}),
|
|
140
|
+
consumerClassName
|
|
141
|
+
),
|
|
142
|
+
style: {
|
|
143
|
+
display: "flex",
|
|
144
|
+
flexDirection: "column",
|
|
145
|
+
gap: import_spacings.default.Size6,
|
|
146
|
+
width: "100%",
|
|
147
|
+
...consumerStyle
|
|
148
|
+
},
|
|
149
|
+
"data-testid": dataTestId,
|
|
150
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
151
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
152
|
+
ref: forwardedRef,
|
|
153
|
+
...forwardProps
|
|
119
154
|
},
|
|
120
155
|
/* @__PURE__ */ import_react.default.createElement(
|
|
121
156
|
"div",
|
|
122
157
|
{
|
|
123
|
-
className: consumerClassName,
|
|
124
158
|
style: {
|
|
125
159
|
display: "flex",
|
|
126
|
-
|
|
127
|
-
gap: import_spacings.default.
|
|
128
|
-
|
|
129
|
-
...consumerStyle
|
|
130
|
-
},
|
|
131
|
-
"data-testid": dataTestId,
|
|
132
|
-
"data-dtrum-mask": dataDtrumMask,
|
|
133
|
-
"data-dtrum-allow": dataDtrumAllow,
|
|
134
|
-
ref: forwardedRef,
|
|
135
|
-
...forwardProps
|
|
160
|
+
justifyContent: "space-between",
|
|
161
|
+
gap: import_spacings.default.Size8
|
|
162
|
+
}
|
|
136
163
|
},
|
|
137
|
-
/* @__PURE__ */ import_react.default.createElement(
|
|
164
|
+
density === "condensed" ? /* @__PURE__ */ import_react.default.createElement(
|
|
138
165
|
"div",
|
|
139
166
|
{
|
|
140
167
|
style: {
|
|
141
168
|
display: "flex",
|
|
142
169
|
justifyContent: "space-between",
|
|
143
|
-
|
|
170
|
+
alignItems: "flex-end",
|
|
171
|
+
flex: 1,
|
|
172
|
+
gap: import_spacings.default.Size16,
|
|
173
|
+
minWidth: 0
|
|
144
174
|
}
|
|
145
175
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
slots.icon
|
|
162
|
-
),
|
|
176
|
+
slots.label,
|
|
177
|
+
slots.value
|
|
178
|
+
) : slots.label,
|
|
179
|
+
slots.icon
|
|
180
|
+
),
|
|
181
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
182
|
+
"div",
|
|
183
|
+
{
|
|
184
|
+
className: (0, import_ProgressBar_css.progressCSS)({
|
|
185
|
+
size: density
|
|
186
|
+
}),
|
|
187
|
+
id,
|
|
188
|
+
...progressAriaProps,
|
|
189
|
+
...ariaLabelingProps
|
|
190
|
+
},
|
|
163
191
|
/* @__PURE__ */ import_react.default.createElement(
|
|
164
192
|
"div",
|
|
165
193
|
{
|
|
166
|
-
className: (0,
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
className: (0, import_clsx.default)(
|
|
178
|
-
(0, import_colorUtils_css.colorUtilsCSS)({
|
|
179
|
-
color: variant || color,
|
|
180
|
-
variant: variant === "onAccent" ? "default" : "accent"
|
|
181
|
-
}),
|
|
182
|
-
(0, import_ProgressBar_css.progressBarFillCSS)({
|
|
183
|
-
indeterminate: isIndeterminate
|
|
184
|
-
})
|
|
185
|
-
),
|
|
186
|
-
style: progressStyles
|
|
187
|
-
}
|
|
188
|
-
)
|
|
189
|
-
),
|
|
190
|
-
density === "default" && slots.value
|
|
191
|
-
)
|
|
192
|
-
);
|
|
194
|
+
className: (0, import_clsx.default)(
|
|
195
|
+
(0, import_ProgressBar_css.progressBarFillCSS)({
|
|
196
|
+
indeterminate: isIndeterminate
|
|
197
|
+
})
|
|
198
|
+
),
|
|
199
|
+
style: progressStyles
|
|
200
|
+
}
|
|
201
|
+
)
|
|
202
|
+
),
|
|
203
|
+
density === "default" && slots.value
|
|
204
|
+
));
|
|
193
205
|
}
|
|
194
206
|
);
|
|
195
207
|
_ProgressBar.displayName = "ProgressBar";
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
export declare const progressIndicatorColorVar: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
2
|
+
export declare const progressValueColorVar: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
3
|
+
export declare const progressRoot: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
4
|
+
color: {
|
|
5
|
+
primary: {};
|
|
6
|
+
success: {};
|
|
7
|
+
warning: {};
|
|
8
|
+
critical: {};
|
|
9
|
+
neutral: {};
|
|
10
|
+
};
|
|
11
|
+
onAccent: {
|
|
12
|
+
true: {};
|
|
13
|
+
false: {};
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
1
16
|
export declare const progressCSS: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
17
|
size: {
|
|
3
18
|
condensed: {
|
|
@@ -7,26 +22,6 @@ export declare const progressCSS: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
|
7
22
|
height: "8px";
|
|
8
23
|
};
|
|
9
24
|
};
|
|
10
|
-
variant: {
|
|
11
|
-
onAccent: {
|
|
12
|
-
backgroundColor: string;
|
|
13
|
-
};
|
|
14
|
-
primary: {
|
|
15
|
-
backgroundColor: string;
|
|
16
|
-
};
|
|
17
|
-
success: {
|
|
18
|
-
backgroundColor: string;
|
|
19
|
-
};
|
|
20
|
-
warning: {
|
|
21
|
-
backgroundColor: string;
|
|
22
|
-
};
|
|
23
|
-
critical: {
|
|
24
|
-
backgroundColor: string;
|
|
25
|
-
};
|
|
26
|
-
neutral: {
|
|
27
|
-
backgroundColor: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
25
|
}>;
|
|
31
26
|
export declare const progressBarFillCSS: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
32
27
|
indeterminate: {
|
|
@@ -18,11 +18,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
18
18
|
var ProgressBar_css_exports = {};
|
|
19
19
|
__export(ProgressBar_css_exports, {
|
|
20
20
|
progressBarFillCSS: () => progressBarFillCSS,
|
|
21
|
-
progressCSS: () => progressCSS
|
|
21
|
+
progressCSS: () => progressCSS,
|
|
22
|
+
progressIndicatorColorVar: () => progressIndicatorColorVar,
|
|
23
|
+
progressRoot: () => progressRoot,
|
|
24
|
+
progressValueColorVar: () => progressValueColorVar
|
|
22
25
|
});
|
|
23
26
|
module.exports = __toCommonJS(ProgressBar_css_exports);
|
|
24
|
-
var import_colorUtils_css_ts_vanilla = require("../../styles/colorUtils.css");
|
|
25
27
|
var import_ProgressBar_css_ts_vanilla = require("./ProgressBar.css");
|
|
26
28
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
27
|
-
var progressBarFillCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "
|
|
28
|
-
var progressCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "
|
|
29
|
+
var progressBarFillCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwhq-0-85-110", variantClassNames: { indeterminate: { true: "_13n9uwhr-0-85-110" } }, defaultVariants: {}, compoundVariants: [] });
|
|
30
|
+
var progressCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwhn-0-85-110", variantClassNames: { size: { condensed: "_13n9uwho-0-85-110", "default": "_13n9uwhp-0-85-110" } }, defaultVariants: {}, compoundVariants: [] });
|
|
31
|
+
var progressIndicatorColorVar = "var(--_13n9uwh3-0-85-110)";
|
|
32
|
+
var progressRoot = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_13n9uwh5-0-85-110", variantClassNames: { color: { primary: "_13n9uwh6-0-85-110", success: "_13n9uwh7-0-85-110", warning: "_13n9uwh8-0-85-110", critical: "_13n9uwh9-0-85-110", neutral: "_13n9uwha-0-85-110" }, onAccent: { true: "_13n9uwhb-0-85-110", false: "_13n9uwhc-0-85-110" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", onAccent: false }, "_13n9uwhd-0-85-110"], [{ color: "success", onAccent: false }, "_13n9uwhe-0-85-110"], [{ color: "warning", onAccent: false }, "_13n9uwhf-0-85-110"], [{ color: "critical", onAccent: false }, "_13n9uwhg-0-85-110"], [{ color: "neutral", onAccent: false }, "_13n9uwhh-0-85-110"], [{ color: "primary", onAccent: true }, "_13n9uwhi-0-85-110"], [{ color: "success", onAccent: true }, "_13n9uwhj-0-85-110"], [{ color: "warning", onAccent: true }, "_13n9uwhk-0-85-110"], [{ color: "critical", onAccent: true }, "_13n9uwhl-0-85-110"], [{ color: "neutral", onAccent: true }, "_13n9uwhm-0-85-110"]] });
|
|
33
|
+
var progressValueColorVar = "var(--_13n9uwh4-0-85-110)";
|
|
@@ -32,9 +32,7 @@ __export(ProgressBarIcon_exports, {
|
|
|
32
32
|
module.exports = __toCommonJS(ProgressBarIcon_exports);
|
|
33
33
|
var import_clsx = __toESM(require("clsx"));
|
|
34
34
|
var import_react = __toESM(require("react"));
|
|
35
|
-
var import_useProgressBarPropsContext = require("./hooks/useProgressBarPropsContext.js");
|
|
36
35
|
var import_ProgressBarIcon_css = require("./ProgressBarIcon.sty.js");
|
|
37
|
-
var import_colorUtils_css = require("../../styles/colorUtils.sty.js");
|
|
38
36
|
const ProgressBarIcon = (0, import_react.forwardRef)(
|
|
39
37
|
(props, forwardedRef) => {
|
|
40
38
|
const {
|
|
@@ -44,20 +42,12 @@ const ProgressBarIcon = (0, import_react.forwardRef)(
|
|
|
44
42
|
"data-testid": dataTestId,
|
|
45
43
|
...remainingProps
|
|
46
44
|
} = props;
|
|
47
|
-
const { variant } = (0, import_useProgressBarPropsContext._useSharedProgressBarPropsContext)();
|
|
48
45
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
49
46
|
"div",
|
|
50
47
|
{
|
|
51
48
|
"data-testid": dataTestId,
|
|
52
49
|
ref: forwardedRef,
|
|
53
|
-
className: (0, import_clsx.default)(
|
|
54
|
-
consumerClassName,
|
|
55
|
-
(0, import_colorUtils_css.colorUtilsCSS)({
|
|
56
|
-
color: variant,
|
|
57
|
-
variant: variant === "onAccent" ? "default" : "accent"
|
|
58
|
-
}),
|
|
59
|
-
import_ProgressBarIcon_css.progressBarIconContainerCSS
|
|
60
|
-
),
|
|
50
|
+
className: (0, import_clsx.default)(consumerClassName, import_ProgressBarIcon_css.progressBarIconContainerCSS),
|
|
61
51
|
style: consumerStyle,
|
|
62
52
|
...remainingProps
|
|
63
53
|
},
|
|
@@ -20,6 +20,6 @@ __export(ProgressBarIcon_css_exports, {
|
|
|
20
20
|
progressBarIconContainerCSS: () => progressBarIconContainerCSS
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(ProgressBarIcon_css_exports);
|
|
23
|
-
var
|
|
23
|
+
var import_ProgressBar_css_ts_vanilla = require("./ProgressBar.css");
|
|
24
24
|
var import_ProgressBarIcon_css_ts_vanilla = require("./ProgressBarIcon.css");
|
|
25
|
-
var progressBarIconContainerCSS = "_szm9t40-0-85-
|
|
25
|
+
var progressBarIconContainerCSS = "_szm9t40-0-85-110";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
._1ceb8vp0-0-85-
|
|
2
|
-
color:
|
|
1
|
+
._1ceb8vp0-0-85-110 {
|
|
2
|
+
color: currentColor;
|
|
3
3
|
}
|
|
4
|
-
._1ceb8vp2-0-85-
|
|
4
|
+
._1ceb8vp2-0-85-110 {
|
|
5
5
|
word-break: break-word;
|
|
6
6
|
}
|
|
7
|
-
._1ceb8vp3-0-85-
|
|
7
|
+
._1ceb8vp3-0-85-110 {
|
|
8
8
|
word-break: break-word;
|
|
9
9
|
}
|
|
@@ -35,7 +35,6 @@ var import_react = __toESM(require("react"));
|
|
|
35
35
|
var import_useProgressBarPropsContext = require("./hooks/useProgressBarPropsContext.js");
|
|
36
36
|
var import_ProgressBarLabel_css = require("./ProgressBarLabel.sty.js");
|
|
37
37
|
var import_is_string_children = require("../../core/utils/_is-string-children.js");
|
|
38
|
-
var import_container_css = require("../../styles/container.sty.js");
|
|
39
38
|
var import_ellipsis_css = require("../../styles/ellipsis.sty.js");
|
|
40
39
|
var import_textStyle_css = require("../../styles/textStyle.sty.js");
|
|
41
40
|
const ProgressBarLabel = (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
@@ -46,7 +45,7 @@ const ProgressBarLabel = (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
|
46
45
|
"data-testid": dataTestId,
|
|
47
46
|
...remainingProps
|
|
48
47
|
} = props;
|
|
49
|
-
const { id,
|
|
48
|
+
const { id, density } = (0, import_useProgressBarPropsContext._useSharedProgressBarPropsContext)();
|
|
50
49
|
const childIsText = (0, import_is_string_children.isStringChildren)(children);
|
|
51
50
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
52
51
|
"label",
|
|
@@ -59,10 +58,6 @@ const ProgressBarLabel = (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
|
59
58
|
[import_ellipsis_css.ellipsisCSS]: density === "condensed" && childIsText
|
|
60
59
|
},
|
|
61
60
|
consumerClassName,
|
|
62
|
-
(0, import_container_css.containerColorsCSS)({
|
|
63
|
-
color: "neutral",
|
|
64
|
-
variant: variant === "onAccent" ? "accent" : "default"
|
|
65
|
-
}),
|
|
66
61
|
(0, import_ProgressBarLabel_css.progressBarLabelCSS)({ size: density, childIsText }),
|
|
67
62
|
(0, import_textStyle_css.textStyleCSS)({ textStyle: "base" })
|
|
68
63
|
),
|
|
@@ -20,7 +20,6 @@ __export(ProgressBarLabel_css_exports, {
|
|
|
20
20
|
progressBarLabelCSS: () => progressBarLabelCSS
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(ProgressBarLabel_css_exports);
|
|
23
|
-
var import_container_css_ts_vanilla = require("../../styles/container.css");
|
|
24
23
|
var import_ProgressBarLabel_css_ts_vanilla = require("./ProgressBarLabel.css");
|
|
25
24
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
-
var progressBarLabelCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1ceb8vp0-0-85-
|
|
25
|
+
var progressBarLabelCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1ceb8vp0-0-85-110", variantClassNames: { size: { condensed: "_1ceb8vp1-0-85-110", "default": "_1ceb8vp2-0-85-110" }, childIsText: { false: "_1ceb8vp3-0-85-110" } }, defaultVariants: {}, compoundVariants: [] });
|