@dynatrace/strato-components 0.85.70 → 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.d.ts +2 -2
- package/buttons/intent-button/IntentButton.js +9 -2
- package/content/progress/ProgressBar.css +73 -26
- package/content/progress/ProgressBar.d.ts +6 -0
- package/content/progress/ProgressBar.js +32 -10
- 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 +6 -0
- package/content/progress/ProgressCircle.js +24 -12
- 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 -79
- package/core/styles/focusRing.sty.d.ts +0 -10
- package/core/styles/focusRing.sty.js +2 -2
- package/core/styles/useFocusRing.d.ts +1 -4
- package/core/styles/useFocusRing.js +1 -10
- package/core/types/role-variant.d.ts +2 -0
- 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 +2 -2
- package/esm/buttons/intent-button/IntentButton.js +9 -2
- package/esm/buttons/intent-button/IntentButton.js.map +2 -2
- package/esm/content/progress/ProgressBar.css +73 -26
- package/esm/content/progress/ProgressBar.js +37 -11
- 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 -14
- 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 +2 -2
- 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 -79
- package/esm/core/styles/focusRing.sty.js +2 -2
- package/esm/core/styles/focusRing.sty.js.map +2 -2
- package/esm/core/styles/useFocusRing.js +1 -10
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/esm/styles/sprinkles.css +262 -262
- package/esm/styles/sprinkles.sty.js +1 -1
- package/esm/styles/sprinkles.sty.js.map +2 -2
- package/esm/styles/textStyle.css +8 -8
- package/esm/styles/textStyle.sty.js +1 -1
- package/esm/styles/textStyle.sty.js.map +2 -2
- 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 +14 -14
- package/esm/typography/external-link/ExternalLink.js.map +1 -1
- 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 +2 -2
- 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 +5 -5
- package/esm/typography/link/Link.js.map +1 -1
- 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 +2 -2
- 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 +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.css +4 -4
- package/esm/typography/text-ellipsis/TextEllipsis.js +5 -1
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +2 -2
- 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 +5 -5
- 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 +14 -14
- package/typography/external-link/ExternalLink.d.ts +2 -2
- 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 +5 -5
- package/typography/link/Link.d.ts +2 -2
- 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.js +5 -1
- package/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
- package/content/progress/utils.d.ts +0 -2
- package/content/progress/utils.js +0 -50
- package/esm/content/progress/utils.js +0 -22
- package/esm/content/progress/utils.js.map +0 -7
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
._10kgnsa0 {
|
|
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(--
|
|
9
|
-
color: var(--
|
|
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:hover {
|
|
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 {
|
|
30
|
+
._10kgnsa1-0-85-110 {
|
|
31
31
|
text-align: start;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
}
|
|
34
|
-
._10kgnsa2 {
|
|
34
|
+
._10kgnsa2-0-85-110 {
|
|
35
35
|
text-align: center;
|
|
36
36
|
justify-content: center;
|
|
37
37
|
}
|
|
38
|
-
._10kgnsa3 {
|
|
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 {
|
|
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 {
|
|
52
|
+
._10kgnsa5-0-85-110 {
|
|
53
53
|
cursor: not-allowed;
|
|
54
54
|
}
|
|
55
|
-
._10kgnsa6 {
|
|
55
|
+
._10kgnsa6-0-85-110 {
|
|
56
56
|
cursor: not-allowed;
|
|
57
|
-
background: var(--
|
|
57
|
+
background: var(--_bx32h2-0-85-110);
|
|
58
58
|
}
|
|
59
|
-
._10kgnsa7 {
|
|
59
|
+
._10kgnsa7-0-85-110 {
|
|
60
60
|
width: 100%;
|
|
61
61
|
}
|
|
62
|
-
._10kgnsa8 {
|
|
62
|
+
._10kgnsa8-0-85-110 {
|
|
63
63
|
width: fit-content;
|
|
64
64
|
}
|
|
65
|
-
._10kgnsa9 {
|
|
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 ._10kgnsaa:not(:has(svg:only-child)) {
|
|
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 ._10kgnsaa:not(:has(svg:only-child)) {
|
|
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 {
|
|
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", variantClassNames: { textAlign: { start: "_10kgnsa1", center: "_10kgnsa2" }, size: { condensed: "_10kgnsa3", "default": "_10kgnsa4" }, disabled: { true: "_10kgnsa5" }, readOnly: { true: "_10kgnsa6" } }, defaultVariants: { size: "default", textAlign: "center", disabled: false }, compoundVariants: [] });
|
|
31
|
-
var buttonLabelCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_10kgnsaa", variantClassNames: { textual: { true: "
|
|
32
|
-
var buttonLoadingCSS = "_10kgnsa9";
|
|
33
|
-
var buttonWidthsCSS = { full: "_10kgnsa7", content: "_10kgnsa8" };
|
|
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" };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { type ReactNode } from 'react';
|
|
2
2
|
import { type IntentPayload } from '@dynatrace-sdk/navigation';
|
|
3
3
|
import { type AriaLabelingProps } from '../../core/types/a11y-props.js';
|
|
4
4
|
import { type DataTestId } from '../../core/types/data-props.js';
|
|
@@ -14,7 +14,7 @@ export interface IntentButtonPropsBase extends Omit<ButtonOwnProps, 'loading' |
|
|
|
14
14
|
/** Intent payload passed between apps.*/
|
|
15
15
|
payload: IntentPayload;
|
|
16
16
|
/** Intended for setting a custom button label. When nothing is set, no label is shown. */
|
|
17
|
-
children?:
|
|
17
|
+
children?: ReactNode;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Merge own props with ID props.
|
|
@@ -50,10 +50,15 @@ 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
|
-
|
|
56
|
-
|
|
57
|
+
let label = children;
|
|
58
|
+
if (typeof label === "string") {
|
|
59
|
+
label = label.trim();
|
|
60
|
+
}
|
|
61
|
+
const ariaLabel = ariaLabelProp || intl.formatMessage({
|
|
57
62
|
description: "Intent button open label",
|
|
58
63
|
defaultMessage: "Open with",
|
|
59
64
|
id: "JQOGuaGgqJObmSY1"
|
|
@@ -75,6 +80,7 @@ const IntentButton = /* @__PURE__ */ (0, import_react.forwardRef)((props, forwar
|
|
|
75
80
|
"aria-label": ariaLabel,
|
|
76
81
|
className: consumerClassName,
|
|
77
82
|
style: consumerStyle,
|
|
83
|
+
readOnly,
|
|
78
84
|
...remainingProps
|
|
79
85
|
},
|
|
80
86
|
label,
|
|
@@ -92,6 +98,7 @@ const IntentButton = /* @__PURE__ */ (0, import_react.forwardRef)((props, forwar
|
|
|
92
98
|
"aria-label": ariaLabel ?? label,
|
|
93
99
|
className: consumerClassName,
|
|
94
100
|
style: consumerStyle,
|
|
101
|
+
readOnly,
|
|
95
102
|
...remainingProps,
|
|
96
103
|
...intentButtonProps
|
|
97
104
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@keyframes _13n9uwh0 {
|
|
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;
|
|
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;
|
|
@@ -34,8 +34,14 @@ export interface ProgressBarProps extends WithChildren, DOMProps, AriaLabelingPr
|
|
|
34
34
|
/**
|
|
35
35
|
* Controls the appearance of the progress.
|
|
36
36
|
* @defaultValue 'primary'
|
|
37
|
+
* @deprecated Will be removed and replaced by the color prop.
|
|
37
38
|
*/
|
|
38
39
|
variant?: RoleVariantType;
|
|
40
|
+
/**
|
|
41
|
+
* Controls the color of the progress.
|
|
42
|
+
* @defaultValue 'primary' or a container's color.
|
|
43
|
+
*/
|
|
44
|
+
color?: 'neutral' | 'primary' | 'success' | 'warning' | 'critical';
|
|
39
45
|
/**
|
|
40
46
|
* The aria-valuetext attribute defines the human-readable text alternative of aria-valuenow for a range widget.
|
|
41
47
|
* By default, the value will be given as a percentage. If the value is not a percentage, you should provide aria-valuetext.
|
|
@@ -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,7 +79,8 @@ const _ProgressBar = (0, import_react.forwardRef)(
|
|
|
78
79
|
max = 100,
|
|
79
80
|
min = 0,
|
|
80
81
|
density = "default",
|
|
81
|
-
variant
|
|
82
|
+
variant,
|
|
83
|
+
color,
|
|
82
84
|
children,
|
|
83
85
|
id: propId,
|
|
84
86
|
"aria-valuetext": ariaValuetext,
|
|
@@ -89,6 +91,18 @@ const _ProgressBar = (0, import_react.forwardRef)(
|
|
|
89
91
|
"data-dtrum-allow": dataDtrumAllow,
|
|
90
92
|
...remainingProps
|
|
91
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";
|
|
92
106
|
const slots = getProgressBarSlots(children);
|
|
93
107
|
const { value, isIndeterminate, progressAriaProps } = (0, import_useProgressAriaProps.useProgressAriaProps)(
|
|
94
108
|
originalValue,
|
|
@@ -111,10 +125,20 @@ const _ProgressBar = (0, import_react.forwardRef)(
|
|
|
111
125
|
const percentage = (value - min) / (max - min);
|
|
112
126
|
progressStyles["width"] = `${Math.round(percentage * 100)}%`;
|
|
113
127
|
}
|
|
114
|
-
return /* @__PURE__ */ import_react.default.createElement(import_SharedProgressBarPropsContext.SharedProgressBarPropsContext.Provider, { value: { id,
|
|
128
|
+
return /* @__PURE__ */ import_react.default.createElement(import_SharedProgressBarPropsContext.SharedProgressBarPropsContext.Provider, { value: { id, density } }, /* @__PURE__ */ import_react.default.createElement(
|
|
115
129
|
"div",
|
|
116
130
|
{
|
|
117
|
-
className:
|
|
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
|
+
),
|
|
118
142
|
style: {
|
|
119
143
|
display: "flex",
|
|
120
144
|
flexDirection: "column",
|
|
@@ -150,14 +174,16 @@ const _ProgressBar = (0, import_react.forwardRef)(
|
|
|
150
174
|
}
|
|
151
175
|
},
|
|
152
176
|
slots.label,
|
|
153
|
-
|
|
177
|
+
slots.value
|
|
154
178
|
) : slots.label,
|
|
155
179
|
slots.icon
|
|
156
180
|
),
|
|
157
181
|
/* @__PURE__ */ import_react.default.createElement(
|
|
158
182
|
"div",
|
|
159
183
|
{
|
|
160
|
-
className: (0, import_ProgressBar_css.progressCSS)({
|
|
184
|
+
className: (0, import_ProgressBar_css.progressCSS)({
|
|
185
|
+
size: density
|
|
186
|
+
}),
|
|
161
187
|
id,
|
|
162
188
|
...progressAriaProps,
|
|
163
189
|
...ariaLabelingProps
|
|
@@ -166,10 +192,6 @@ const _ProgressBar = (0, import_react.forwardRef)(
|
|
|
166
192
|
"div",
|
|
167
193
|
{
|
|
168
194
|
className: (0, import_clsx.default)(
|
|
169
|
-
(0, import_colorUtils_css.colorUtilsCSS)({
|
|
170
|
-
color: variant,
|
|
171
|
-
variant: variant === "onAccent" ? "default" : "accent"
|
|
172
|
-
}),
|
|
173
195
|
(0, import_ProgressBar_css.progressBarFillCSS)({
|
|
174
196
|
indeterminate: isIndeterminate
|
|
175
197
|
})
|
|
@@ -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 = "
|
|
25
|
+
var progressBarIconContainerCSS = "_szm9t40-0-85-110";
|
|
@@ -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", variantClassNames: { size: { condensed: "_1ceb8vp1", "default": "_1ceb8vp2" }, childIsText: { false: "_1ceb8vp3" } }, defaultVariants: {}, compoundVariants: [] });
|
|
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: [] });
|
|
@@ -1,28 +1,13 @@
|
|
|
1
|
-
.
|
|
2
|
-
color: var(--
|
|
1
|
+
._1ri4i7o0-0-85-110 {
|
|
2
|
+
color: var(--_13n9uwh4-0-85-110);
|
|
3
3
|
}
|
|
4
|
-
._1ri4i7o2 {
|
|
5
|
-
color: var(--dt-colors-text-neutral-subdued, #545587);
|
|
6
|
-
}
|
|
7
|
-
._1ri4i7o3 {
|
|
8
|
-
color: var(--dt-colors-text-neutral-subdued, #545587);
|
|
9
|
-
}
|
|
10
|
-
._1ri4i7o4 {
|
|
11
|
-
color: var(--dt-colors-text-neutral-subdued, #545587);
|
|
12
|
-
}
|
|
13
|
-
._1ri4i7o5 {
|
|
14
|
-
color: var(--dt-colors-text-neutral-subdued, #545587);
|
|
15
|
-
}
|
|
16
|
-
._1ri4i7o6 {
|
|
17
|
-
color: var(--dt-colors-text-neutral-subdued, #545587);
|
|
18
|
-
}
|
|
19
|
-
._1ri4i7o8 {
|
|
4
|
+
._1ri4i7o2-0-85-110 {
|
|
20
5
|
word-break: break-word;
|
|
21
6
|
}
|
|
22
|
-
.
|
|
7
|
+
._1ri4i7o4-0-85-110 {
|
|
23
8
|
word-break: break-word;
|
|
24
9
|
}
|
|
25
|
-
.
|
|
10
|
+
._1ri4i7o5-0-85-110 {
|
|
26
11
|
margin-left: auto;
|
|
27
12
|
align-self: center;
|
|
28
13
|
}
|
|
@@ -51,7 +51,7 @@ const ProgressBarValue = (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
|
51
51
|
id: "3J6qHQEUwDxvZuIl",
|
|
52
52
|
description: "Default label for the progress-bar."
|
|
53
53
|
});
|
|
54
|
-
const {
|
|
54
|
+
const { density } = (0, import_useProgressBarPropsContext._useSharedProgressBarPropsContext)();
|
|
55
55
|
const childIsText = (0, import_is_string_children.isStringChildren)(children);
|
|
56
56
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
57
57
|
"div",
|
|
@@ -60,7 +60,7 @@ const ProgressBarValue = (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
|
60
60
|
ref: forwardedRef,
|
|
61
61
|
className: (0, import_clsx.default)(
|
|
62
62
|
consumerClassName,
|
|
63
|
-
(0, import_ProgressBarValue_css.progressBarValueCSS)({
|
|
63
|
+
(0, import_ProgressBarValue_css.progressBarValueCSS)({ size: density, childIsText }),
|
|
64
64
|
(0, import_textStyle_css.textStyleCSS)({ textStyle: "small" })
|
|
65
65
|
),
|
|
66
66
|
style: consumerStyle,
|