@dynatrace/strato-components 0.85.120 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/buttons/button/Button.css +17 -17
- package/buttons/button/Button.js +1 -1
- package/buttons/button/Button.sty.js +4 -4
- package/content/progress/ProgressBar.css +71 -71
- package/content/progress/ProgressBar.d.ts +0 -7
- package/content/progress/ProgressBar.js +19 -45
- package/content/progress/ProgressBar.sty.js +5 -5
- package/content/progress/ProgressBarIcon.css +2 -2
- package/content/progress/ProgressBarIcon.sty.js +1 -1
- package/content/progress/ProgressBarLabel.css +3 -3
- package/content/progress/ProgressBarLabel.sty.js +1 -1
- package/content/progress/ProgressBarValue.css +5 -5
- package/content/progress/ProgressBarValue.sty.js +1 -1
- package/content/progress/ProgressCircle.css +40 -40
- package/content/progress/ProgressCircle.d.ts +0 -7
- package/content/progress/ProgressCircle.js +2 -10
- package/content/progress/ProgressCircle.sty.js +5 -5
- package/content/skeleton/Skeleton.css +6 -6
- package/content/skeleton/Skeleton.sty.js +1 -1
- package/core/components/app-root/AppRoot.css +0 -57
- package/core/index.d.ts +0 -2
- package/core/index.js +0 -2
- package/core/styles/focusRing.css +66 -66
- package/core/styles/focusRing.sty.js +2 -2
- package/core/utils/colorUtils.css +60 -60
- package/core/utils/colorUtils.sty.js +2 -2
- package/esm/buttons/button/Button.css +17 -17
- package/esm/buttons/button/Button.js +1 -1
- 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/content/progress/ProgressBar.css +71 -71
- package/esm/content/progress/ProgressBar.js +19 -45
- 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 +2 -2
- package/esm/content/progress/ProgressBarIcon.css +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.sty.js +1 -1
- package/esm/content/progress/ProgressBarLabel.sty.js.map +2 -2
- package/esm/content/progress/ProgressBarValue.css +5 -5
- package/esm/content/progress/ProgressBarValue.sty.js +1 -1
- package/esm/content/progress/ProgressBarValue.sty.js.map +2 -2
- package/esm/content/progress/ProgressCircle.css +40 -40
- package/esm/content/progress/ProgressCircle.js +2 -10
- 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 +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/app-root/AppRoot.css +0 -57
- package/esm/core/index.js +0 -2
- 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 +2 -2
- package/esm/core/utils/colorUtils.css +60 -60
- package/esm/core/utils/colorUtils.sty.js +2 -2
- package/esm/core/utils/colorUtils.sty.js.map +2 -2
- package/esm/layouts/container/Container.css +4 -4
- 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/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 -60
- 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 +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 +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 +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 +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.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.sty.js +1 -1
- package/layouts/divider/Divider.css +6 -6
- package/layouts/divider/Divider.sty.js +1 -1
- 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 +15 -26
- 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/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
- package/core/types/role-variant.d.ts +0 -12
- package/core/types/role-variant.js +0 -30
- package/esm/core/types/role-variant.js +0 -12
- package/esm/core/types/role-variant.js.map +0 -7
- package/testing/custom-render.d.ts +0 -12
- package/testing/custom-render.js +0 -62
- package/testing/index.d.ts +0 -22
- package/testing/index.js +0 -91
- package/testing/jest/index.d.ts +0 -1
- package/testing/jest/index.js +0 -5
- package/testing/jest/jest-preset.d.ts +0 -10
- package/testing/jest/jest-preset.js +0 -13
- package/testing/jest/resolver.d.ts +0 -0
- package/testing/jest/resolver.js +0 -27
- package/testing/mocks/bounding-client-rect-mock.d.ts +0 -8
- package/testing/mocks/bounding-client-rect-mock.js +0 -36
- package/testing/mocks/canvas-mock.d.ts +0 -14
- package/testing/mocks/canvas-mock.js +0 -192
- package/testing/mocks/create-mock-element.d.ts +0 -14
- package/testing/mocks/create-mock-element.js +0 -99
- package/testing/mocks/create-range-mock.d.ts +0 -10
- package/testing/mocks/create-range-mock.js +0 -47
- package/testing/mocks/dom-rect-mock.d.ts +0 -19
- package/testing/mocks/dom-rect-mock.js +0 -56
- package/testing/mocks/fetch-mock.d.ts +0 -9
- package/testing/mocks/fetch-mock.js +0 -38
- package/testing/mocks/intersection-observer-mock.d.ts +0 -10
- package/testing/mocks/intersection-observer-mock.js +0 -58
- package/testing/mocks/match-media-mock.d.ts +0 -10
- package/testing/mocks/match-media-mock.js +0 -45
- package/testing/mocks/offset-height-mock.d.ts +0 -8
- package/testing/mocks/offset-height-mock.js +0 -39
- package/testing/mocks/offset-width-mock.d.ts +0 -8
- package/testing/mocks/offset-width-mock.js +0 -39
- package/testing/mocks/pointer-event-mock.d.ts +0 -8
- package/testing/mocks/pointer-event-mock.js +0 -42
- package/testing/mocks/resize-observer-mock.d.ts +0 -11
- package/testing/mocks/resize-observer-mock.js +0 -42
- package/testing/mocks/screen-size-mock.d.ts +0 -8
- package/testing/mocks/screen-size-mock.js +0 -34
- package/testing/mocks/scroll-into-view-mock.d.ts +0 -10
- package/testing/mocks/scroll-into-view-mock.js +0 -34
- package/testing/mocks/scroll-width-mock.d.ts +0 -8
- package/testing/mocks/scroll-width-mock.js +0 -39
- package/testing/mocks/select-mock.d.ts +0 -11
- package/testing/mocks/select-mock.js +0 -45
- package/testing/mocks/table-virtualization-mock.d.ts +0 -10
- package/testing/mocks/table-virtualization-mock.js +0 -50
- package/testing/mocks/text-ellipsis-mock.d.ts +0 -8
- package/testing/mocks/text-ellipsis-mock.js +0 -43
- package/testing/setup.d.ts +0 -8
- package/testing/setup.js +0 -57
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
._10kgnsa0-0-
|
|
1
|
+
._10kgnsa0-1-0-0 {
|
|
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-
|
|
9
|
-
color: var(--_bx32h0-0-
|
|
8
|
+
background: var(--_bx32h3-1-0-0);
|
|
9
|
+
color: var(--_bx32h0-1-0-0);
|
|
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-
|
|
26
|
+
._10kgnsa0-1-0-0: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-
|
|
30
|
+
._10kgnsa1-1-0-0 {
|
|
31
31
|
text-align: start;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
}
|
|
34
|
-
._10kgnsa2-0-
|
|
34
|
+
._10kgnsa2-1-0-0 {
|
|
35
35
|
text-align: center;
|
|
36
36
|
justify-content: center;
|
|
37
37
|
}
|
|
38
|
-
._10kgnsa3-0-
|
|
38
|
+
._10kgnsa3-1-0-0 {
|
|
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-
|
|
45
|
+
._10kgnsa4-1-0-0 {
|
|
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-
|
|
52
|
+
._10kgnsa5-1-0-0 {
|
|
53
53
|
cursor: not-allowed;
|
|
54
54
|
}
|
|
55
|
-
._10kgnsa6-0-
|
|
55
|
+
._10kgnsa6-1-0-0 {
|
|
56
56
|
cursor: not-allowed;
|
|
57
|
-
background: var(--_bx32h2-0-
|
|
57
|
+
background: var(--_bx32h2-1-0-0);
|
|
58
58
|
}
|
|
59
|
-
._10kgnsa7-0-
|
|
59
|
+
._10kgnsa7-1-0-0 {
|
|
60
60
|
width: 100%;
|
|
61
61
|
}
|
|
62
|
-
._10kgnsa8-0-
|
|
62
|
+
._10kgnsa8-1-0-0 {
|
|
63
63
|
width: fit-content;
|
|
64
64
|
}
|
|
65
|
-
._10kgnsa9-0-
|
|
65
|
+
._10kgnsa9-1-0-0 {
|
|
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-
|
|
77
|
+
._10kgnsa3-1-0-0 ._10kgnsaa-1-0-0: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-
|
|
83
|
+
._10kgnsa4-1-0-0 ._10kgnsaa-1-0-0: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-
|
|
89
|
+
._10kgnsac-1-0-0 {
|
|
90
90
|
display: inline-flex;
|
|
91
91
|
min-width: 0;
|
|
92
92
|
max-width: 100%;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/buttons/button/Button.tsx"],
|
|
4
|
-
"sourcesContent": ["import clsx from 'clsx';\nimport * as CSS from 'csstype';\nimport React, {\n type ElementType,\n type MouseEventHandler,\n type PointerEvent,\n type ReactElement,\n type ReactNode,\n forwardRef,\n useMemo,\n} from 'react';\nimport { useIntl } from 'react-intl';\nimport { isElement } from 'react-is';\n\nimport { buttonCSS, buttonLoadingCSS, buttonWidthsCSS } from './Button.sty.js';\nimport { Label } from './Label.js';\nimport { Prefix } from './Prefix.js';\nimport { Suffix } from './Suffix.js';\nimport { ProgressCircle } from '../../content/progress/ProgressCircle.js';\nimport { useAriaLabelingProps } from '../../core/hooks/useAriaLabelingProps.js';\nimport { useFocusRing } from '../../core/styles/useFocusRing.js';\nimport {\n type AriaDisabledProps,\n type AriaLabelingProps,\n} from '../../core/types/a11y-props.js';\nimport { type DataTestId } from '../../core/types/data-props.js';\nimport { type MaskingProps } from '../../core/types/masking-props.js';\nimport { type PolymorphicComponentProps } from '../../core/types/polymorph.js';\nimport { type StylingProps } from '../../core/types/styling-props.js';\nimport { type WithChildren } from '../../core/types/with-children.js';\nimport { mergeProps } from '../../core/utils/merge-props.js';\nimport { parseBoolean } from '../../core/utils/parse-boolean.js';\nimport { Flex } from '../../layouts/flex/Flex.js';\nimport { Grid } from '../../layouts/grid/Grid.js';\nimport { inputGroupChildCSS } from '../../layouts/input-group/InputGroup.sty.js';\nimport { fieldColorsCSS } from '../../styles/field.sty.js';\n\n//#region Typings\n\n/**\n * Accepted properties for the Button.\n * @public\n */\nexport interface ButtonOwnProps\n extends AriaLabelingProps,\n AriaDisabledProps,\n WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {\n /**\n * If a button is disabled e.g. it cannot be interacted with.\n * @defaultValue false\n */\n disabled?: boolean;\n\n /**\n * Different variants have different styles.\n * @defaultValue 'default'\n */\n variant?: 'default' | 'emphasized' | 'accent';\n\n /**\n * The HTML button type.\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type}\n * @defaultValue 'button'\n */\n type?: 'button' | 'reset' | 'submit';\n\n /** Called when the button is interacted with. */\n onClick?: MouseEventHandler;\n\n /**\n * The width of the button.\n * @defaultValue 'content'\n */\n // eslint-disable-next-line @typescript-eslint/no-restricted-types\n width?: 'content' | 'full' | CSS.Property.Width<string & {}>;\n\n /**\n * The color of the button. This should be chosen based on the context\n * the button is used in.\n * @defaultValue 'neutral'\n */\n color?: 'primary' | 'neutral' | 'success' | 'critical' | 'warning';\n\n /**\n * Controls the text alignment inside the button. Only affects the button\n * if the width is not set to 'content'.\n * @defaultValue 'center'\n */\n textAlign?: 'center' | 'start';\n\n /**\n * The size of the button.\n * @defaultValue 'default'\n */\n size?: 'default' | 'condensed';\n\n /**\n * The current loading state of the button. If true, a loading icon is shown and the button is disabled.\n * @defaultValue false\n */\n loading?: boolean;\n\n /**\n * Determines whether the element is in read-only mode.\n * @defaultValue false\n * @deprecated - readOnly is not a valid property on a button. Please use disabled if needed.\n */\n readOnly?: boolean;\n}\n\n/**\n * Merge own props with others inherited from the underlying element type.\n * @public\n */\nexport type ButtonProps<E extends ElementType> = PolymorphicComponentProps<\n E,\n ButtonOwnProps\n>;\n\ntype ButtonSlots = {\n label?: ReactNode;\n prefix?: ReactNode;\n suffix?: ReactNode;\n freeform?: ReactNode[];\n};\n\n//#endregion\n\n/**\n * Iterates over child nodes to extract specific component slots.\n * @public\n */\nexport default function getButtonSlots(children: ReactNode) {\n const slots: ButtonSlots = {};\n\n React.Children.forEach(children, (child) => {\n if (isElement(child)) {\n switch (child.type) {\n case Suffix:\n slots.suffix = child;\n break;\n case Prefix:\n slots.prefix = child;\n break;\n case Label:\n slots.label = child;\n break;\n default:\n slots.freeform ??= [];\n slots.freeform.push(child);\n break;\n }\n } else {\n if (child !== null && child !== undefined) {\n slots.freeform ??= [];\n slots.freeform.push(child);\n }\n }\n });\n\n return slots;\n}\n\nexport const _Button: <E extends ElementType = 'button'>(\n props: ButtonProps<E>,\n) => ReactElement | null = /* @__PURE__ */ forwardRef(\n <E extends ElementType>(props: ButtonProps<E>, ref: typeof props.ref) => {\n const {\n children,\n variant = 'default',\n disabled,\n 'aria-disabled': ariaDisabledProp,\n required,\n id: propId,\n type = 'button',\n onClick,\n ariaLabel,\n width = 'content',\n color = 'neutral',\n textAlign = 'center',\n size = 'default',\n loading = false,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n // eslint-disable-next-line deprecation/deprecation\n readOnly,\n as,\n ...remainingProps\n }: ButtonProps<E> = props;\n const slots = getButtonSlots(children);\n\n const ariaDisabled = parseBoolean(ariaDisabledProp);\n\n const nativeDisabledOrLoading = useMemo(\n () => (loading ? true : disabled),\n [disabled, loading],\n );\n const disabledOrLoading = useMemo(\n () => nativeDisabledOrLoading || ariaDisabled,\n [ariaDisabled, nativeDisabledOrLoading],\n );\n\n const { focusProps, focusClassName } = useFocusRing({\n variant: !disabledOrLoading ? color : 'neutral',\n disabled: nativeDisabledOrLoading,\n });\n\n const ariaLabelingProps = useAriaLabelingProps(remainingProps);\n\n const handleButtonClick: MouseEventHandler<HTMLElement> = (event) => {\n if (nativeDisabledOrLoading) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n onClick?.(event);\n };\n\n const buttonProps = {\n ref,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n required,\n disabled: nativeDisabledOrLoading && !ariaDisabled,\n id: propId,\n type,\n ...ariaLabelingProps,\n 'aria-disabled': ariaDisabledProp,\n onClick: handleButtonClick,\n };\n\n // Propagation needs to be disabled on the disabled button because\n // it would still trigger actions on parents that would listen to it.\n // For example the menu or the useOverlay hook.\n const disabledPropagationProps = {\n onPointerDown(evt: PointerEvent) {\n if (nativeDisabledOrLoading) {\n evt.preventDefault();\n evt.stopPropagation();\n }\n },\n onPointerUp(evt: PointerEvent) {\n if (nativeDisabledOrLoading) {\n evt.preventDefault();\n evt.stopPropagation();\n }\n },\n };\n\n const hasChildren = children || children === 0;\n\n const buttonMergedProps = {\n ...mergeProps(\n buttonProps,\n disabledPropagationProps,\n // Need to cast this one as the inference of mergeProps would generate\n // a not allowed overlap. The remainingProps type is too complex due to the\n // polymorphic inheritance.\n remainingProps as Record<string, unknown>,\n focusProps,\n ),\n };\n\n const intl = useIntl();\n\n // Make the component polymorphic\n const Component = as || 'button';\n\n // Render a void element if no children are set and it's not loading (so self-closing polymorphed tags won't break)\n if (!hasChildren) {\n return (\n <Component\n {...buttonMergedProps}\n className={clsx(\n consumerClassName,\n fieldColorsCSS({ variant, color, disabled: disabledOrLoading }),\n buttonCSS({\n disabled: disabledOrLoading,\n textAlign,\n size,\n readOnly,\n }),\n focusClassName,\n inputGroupChildCSS,\n {\n [`${buttonWidthsCSS.content}`]: width === 'content',\n [`${buttonWidthsCSS.full}`]: width === 'full',\n },\n )}\n style={{\n width: width !== 'content' && width !== 'full' ? width : undefined,\n }}\n />\n );\n }\n\n return (\n <Component\n className={clsx(\n consumerClassName,\n fieldColorsCSS({\n variant,\n color,\n disabled: disabledOrLoading || ariaDisabled,\n }),\n buttonCSS({\n disabled: disabledOrLoading || ariaDisabled,\n textAlign,\n size,\n readOnly,\n }),\n {\n [`${buttonWidthsCSS.content}`]: width === 'content',\n [`${buttonWidthsCSS.full}`]: width === 'full',\n },\n focusClassName,\n inputGroupChildCSS,\n )}\n style={{\n width: width !== 'content' && width !== 'full' ? width : undefined,\n ...consumerStyle,\n }}\n {...buttonMergedProps}\n >\n {loading && (\n <div className={buttonLoadingCSS}>\n <ProgressCircle\n size=\"small\"\n /* eslint-disable deprecated-jsx-props/deprecated-props */\n variant={color}\n aria-label={intl.formatMessage({\n defaultMessage: 'Loading',\n id: 'cycz+bYG+VH7Of4e',\n description: 'Label for the loading state.',\n })}\n />\n </div>\n )}\n <Grid\n gap={size === 'default' ? 4 : 2}\n grid=\"auto / auto-flow auto\"\n width={'100%'}\n maxWidth=\"100%\"\n alignItems=\"center\"\n justifyContent={textAlign === 'start' ? 'space-between' : 'center'}\n style={{\n visibility: loading ? 'hidden' : undefined,\n }}\n >\n {textAlign === 'start' ? (\n <Flex minWidth={0} gap={size === 'default' ? 4 : 2}>\n {slots.prefix}\n {slots.label}\n {slots.freeform && <Button.Label>{slots.freeform}</Button.Label>}\n </Flex>\n ) : (\n <>\n {slots.prefix}\n {slots.label}\n {slots.freeform && <Button.Label>{slots.freeform}</Button.Label>}\n </>\n )}\n {slots.suffix}\n </Grid>\n </Component>\n );\n },\n);\n\n(_Button as typeof _Button & { displayName: string }).displayName = 'Button';\n\n/**\n * Buttons allow users to trigger actions or events\n * with a single click anywhere within the button container.\n * Users can also trigger a button by pressing\n * `Enter` or `Space` while the button has focus.\n * @public\n */\nexport const Button = Object.assign(_Button, {\n Suffix,\n Prefix,\n Label,\n});\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,UAAU;AAEjB,OAAO;AAAA,EAML;AAAA,EACA;AAAA,OACK;AACP,SAAS,eAAe;AACxB,SAAS,iBAAiB;AAE1B,SAAS,WAAW,kBAAkB,uBAAuB;AAC7D,SAAS,aAAa;AACtB,SAAS,cAAc;AACvB,SAAS,cAAc;AACvB,SAAS,sBAAsB;AAC/B,SAAS,4BAA4B;AACrC,SAAS,oBAAoB;AAU7B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,YAAY;AACrB,SAAS,YAAY;AACrB,SAAS,0BAA0B;AACnC,SAAS,sBAAsB;AAoGhB,SAAR,eAAgC,UAAqB;AAC1D,QAAM,QAAqB,CAAC;AAE5B,QAAM,SAAS,QAAQ,UAAU,CAAC,UAAU;AAC1C,QAAI,UAAU,K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AA,UACF;AAAA,UACA,OAAO;AAAA,YACL,OAAO,UAAU,aAAa,UAAU,SAAS,QAAQ;AAAA,UAC3D;AAAA;AAAA,MACF;AAAA,IAEJ;AAEA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,UACT;AAAA,UACA,eAAe;AAAA,YACb;AAAA,YACA;AAAA,YACA,UAAU,qBAAqB;AAAA,UACjC,CAAC;AAAA,UACD,UAAU;AAAA,YACR,UAAU,qBAAqB;AAAA,YAC/B;AAAA,YACA;AAAA,YACA;AAAA,UACF,CAAC;AAAA,UACD;AAAA,YACE,CAAC,GAAG,gBAAgB,OAAO,EAAE,GAAG,UAAU;AAAA,YAC1C,CAAC,GAAG,gBAAgB,IAAI,EAAE,GAAG,UAAU;AAAA,UACzC;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,QACA,OAAO;AAAA,UACL,OAAO,UAAU,aAAa,UAAU,SAAS,QAAQ;AAAA,UACzD,GAAG;AAAA,QACL;AAAA,QACC,GAAG;AAAA;AAAA,MAEH,WACC,oCAAC,SAAI,WAAW,oBACd;AAAA,QAAC;AAAA;AAAA,UACC,MAAK;AAAA,
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport * as CSS from 'csstype';\nimport React, {\n type ElementType,\n type MouseEventHandler,\n type PointerEvent,\n type ReactElement,\n type ReactNode,\n forwardRef,\n useMemo,\n} from 'react';\nimport { useIntl } from 'react-intl';\nimport { isElement } from 'react-is';\n\nimport { buttonCSS, buttonLoadingCSS, buttonWidthsCSS } from './Button.sty.js';\nimport { Label } from './Label.js';\nimport { Prefix } from './Prefix.js';\nimport { Suffix } from './Suffix.js';\nimport { ProgressCircle } from '../../content/progress/ProgressCircle.js';\nimport { useAriaLabelingProps } from '../../core/hooks/useAriaLabelingProps.js';\nimport { useFocusRing } from '../../core/styles/useFocusRing.js';\nimport {\n type AriaDisabledProps,\n type AriaLabelingProps,\n} from '../../core/types/a11y-props.js';\nimport { type DataTestId } from '../../core/types/data-props.js';\nimport { type MaskingProps } from '../../core/types/masking-props.js';\nimport { type PolymorphicComponentProps } from '../../core/types/polymorph.js';\nimport { type StylingProps } from '../../core/types/styling-props.js';\nimport { type WithChildren } from '../../core/types/with-children.js';\nimport { mergeProps } from '../../core/utils/merge-props.js';\nimport { parseBoolean } from '../../core/utils/parse-boolean.js';\nimport { Flex } from '../../layouts/flex/Flex.js';\nimport { Grid } from '../../layouts/grid/Grid.js';\nimport { inputGroupChildCSS } from '../../layouts/input-group/InputGroup.sty.js';\nimport { fieldColorsCSS } from '../../styles/field.sty.js';\n\n//#region Typings\n\n/**\n * Accepted properties for the Button.\n * @public\n */\nexport interface ButtonOwnProps\n extends AriaLabelingProps,\n AriaDisabledProps,\n WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {\n /**\n * If a button is disabled e.g. it cannot be interacted with.\n * @defaultValue false\n */\n disabled?: boolean;\n\n /**\n * Different variants have different styles.\n * @defaultValue 'default'\n */\n variant?: 'default' | 'emphasized' | 'accent';\n\n /**\n * The HTML button type.\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type}\n * @defaultValue 'button'\n */\n type?: 'button' | 'reset' | 'submit';\n\n /** Called when the button is interacted with. */\n onClick?: MouseEventHandler;\n\n /**\n * The width of the button.\n * @defaultValue 'content'\n */\n // eslint-disable-next-line @typescript-eslint/no-restricted-types\n width?: 'content' | 'full' | CSS.Property.Width<string & {}>;\n\n /**\n * The color of the button. This should be chosen based on the context\n * the button is used in.\n * @defaultValue 'neutral'\n */\n color?: 'primary' | 'neutral' | 'success' | 'critical' | 'warning';\n\n /**\n * Controls the text alignment inside the button. Only affects the button\n * if the width is not set to 'content'.\n * @defaultValue 'center'\n */\n textAlign?: 'center' | 'start';\n\n /**\n * The size of the button.\n * @defaultValue 'default'\n */\n size?: 'default' | 'condensed';\n\n /**\n * The current loading state of the button. If true, a loading icon is shown and the button is disabled.\n * @defaultValue false\n */\n loading?: boolean;\n\n /**\n * Determines whether the element is in read-only mode.\n * @defaultValue false\n * @deprecated - readOnly is not a valid property on a button. Please use disabled if needed.\n */\n readOnly?: boolean;\n}\n\n/**\n * Merge own props with others inherited from the underlying element type.\n * @public\n */\nexport type ButtonProps<E extends ElementType> = PolymorphicComponentProps<\n E,\n ButtonOwnProps\n>;\n\ntype ButtonSlots = {\n label?: ReactNode;\n prefix?: ReactNode;\n suffix?: ReactNode;\n freeform?: ReactNode[];\n};\n\n//#endregion\n\n/**\n * Iterates over child nodes to extract specific component slots.\n * @public\n */\nexport default function getButtonSlots(children: ReactNode) {\n const slots: ButtonSlots = {};\n\n React.Children.forEach(children, (child) => {\n if (isElement(child)) {\n switch (child.type) {\n case Suffix:\n slots.suffix = child;\n break;\n case Prefix:\n slots.prefix = child;\n break;\n case Label:\n slots.label = child;\n break;\n default:\n slots.freeform ??= [];\n slots.freeform.push(child);\n break;\n }\n } else {\n if (child !== null && child !== undefined) {\n slots.freeform ??= [];\n slots.freeform.push(child);\n }\n }\n });\n\n return slots;\n}\n\nexport const _Button: <E extends ElementType = 'button'>(\n props: ButtonProps<E>,\n) => ReactElement | null = /* @__PURE__ */ forwardRef(\n <E extends ElementType>(props: ButtonProps<E>, ref: typeof props.ref) => {\n const {\n children,\n variant = 'default',\n disabled,\n 'aria-disabled': ariaDisabledProp,\n required,\n id: propId,\n type = 'button',\n onClick,\n ariaLabel,\n width = 'content',\n color = 'neutral',\n textAlign = 'center',\n size = 'default',\n loading = false,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n // eslint-disable-next-line deprecation/deprecation\n readOnly,\n as,\n ...remainingProps\n }: ButtonProps<E> = props;\n const slots = getButtonSlots(children);\n\n const ariaDisabled = parseBoolean(ariaDisabledProp);\n\n const nativeDisabledOrLoading = useMemo(\n () => (loading ? true : disabled),\n [disabled, loading],\n );\n const disabledOrLoading = useMemo(\n () => nativeDisabledOrLoading || ariaDisabled,\n [ariaDisabled, nativeDisabledOrLoading],\n );\n\n const { focusProps, focusClassName } = useFocusRing({\n variant: !disabledOrLoading ? color : 'neutral',\n disabled: nativeDisabledOrLoading,\n });\n\n const ariaLabelingProps = useAriaLabelingProps(remainingProps);\n\n const handleButtonClick: MouseEventHandler<HTMLElement> = (event) => {\n if (nativeDisabledOrLoading) {\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n\n onClick?.(event);\n };\n\n const buttonProps = {\n ref,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n required,\n disabled: nativeDisabledOrLoading && !ariaDisabled,\n id: propId,\n type,\n ...ariaLabelingProps,\n 'aria-disabled': ariaDisabledProp,\n onClick: handleButtonClick,\n };\n\n // Propagation needs to be disabled on the disabled button because\n // it would still trigger actions on parents that would listen to it.\n // For example the menu or the useOverlay hook.\n const disabledPropagationProps = {\n onPointerDown(evt: PointerEvent) {\n if (nativeDisabledOrLoading) {\n evt.preventDefault();\n evt.stopPropagation();\n }\n },\n onPointerUp(evt: PointerEvent) {\n if (nativeDisabledOrLoading) {\n evt.preventDefault();\n evt.stopPropagation();\n }\n },\n };\n\n const hasChildren = children || children === 0;\n\n const buttonMergedProps = {\n ...mergeProps(\n buttonProps,\n disabledPropagationProps,\n // Need to cast this one as the inference of mergeProps would generate\n // a not allowed overlap. The remainingProps type is too complex due to the\n // polymorphic inheritance.\n remainingProps as Record<string, unknown>,\n focusProps,\n ),\n };\n\n const intl = useIntl();\n\n // Make the component polymorphic\n const Component = as || 'button';\n\n // Render a void element if no children are set and it's not loading (so self-closing polymorphed tags won't break)\n if (!hasChildren) {\n return (\n <Component\n {...buttonMergedProps}\n className={clsx(\n consumerClassName,\n fieldColorsCSS({ variant, color, disabled: disabledOrLoading }),\n buttonCSS({\n disabled: disabledOrLoading,\n textAlign,\n size,\n readOnly,\n }),\n focusClassName,\n inputGroupChildCSS,\n {\n [`${buttonWidthsCSS.content}`]: width === 'content',\n [`${buttonWidthsCSS.full}`]: width === 'full',\n },\n )}\n style={{\n width: width !== 'content' && width !== 'full' ? width : undefined,\n }}\n />\n );\n }\n\n return (\n <Component\n className={clsx(\n consumerClassName,\n fieldColorsCSS({\n variant,\n color,\n disabled: disabledOrLoading || ariaDisabled,\n }),\n buttonCSS({\n disabled: disabledOrLoading || ariaDisabled,\n textAlign,\n size,\n readOnly,\n }),\n {\n [`${buttonWidthsCSS.content}`]: width === 'content',\n [`${buttonWidthsCSS.full}`]: width === 'full',\n },\n focusClassName,\n inputGroupChildCSS,\n )}\n style={{\n width: width !== 'content' && width !== 'full' ? width : undefined,\n ...consumerStyle,\n }}\n {...buttonMergedProps}\n >\n {loading && (\n <div className={buttonLoadingCSS}>\n <ProgressCircle\n size=\"small\"\n color={color}\n aria-label={intl.formatMessage({\n defaultMessage: 'Loading',\n id: 'cycz+bYG+VH7Of4e',\n description: 'Label for the loading state.',\n })}\n />\n </div>\n )}\n <Grid\n gap={size === 'default' ? 4 : 2}\n grid=\"auto / auto-flow auto\"\n width={'100%'}\n maxWidth=\"100%\"\n alignItems=\"center\"\n justifyContent={textAlign === 'start' ? 'space-between' : 'center'}\n style={{\n visibility: loading ? 'hidden' : undefined,\n }}\n >\n {textAlign === 'start' ? (\n <Flex minWidth={0} gap={size === 'default' ? 4 : 2}>\n {slots.prefix}\n {slots.label}\n {slots.freeform && <Button.Label>{slots.freeform}</Button.Label>}\n </Flex>\n ) : (\n <>\n {slots.prefix}\n {slots.label}\n {slots.freeform && <Button.Label>{slots.freeform}</Button.Label>}\n </>\n )}\n {slots.suffix}\n </Grid>\n </Component>\n );\n },\n);\n\n(_Button as typeof _Button & { displayName: string }).displayName = 'Button';\n\n/**\n * Buttons allow users to trigger actions or events\n * with a single click anywhere within the button container.\n * Users can also trigger a button by pressing\n * `Enter` or `Space` while the button has focus.\n * @public\n */\nexport const Button = Object.assign(_Button, {\n Suffix,\n Prefix,\n Label,\n});\n"],
|
|
5
|
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A,UACA,cAAY,KAAK,cAAc;AAAA,YAC7B,gBAAgB;AAAA,YAChB,IAAI;AAAA,YACJ,aAAa;AAAA,UACf,CAAC;AAAA;AAAA,MACH,CACF;AAAA,MAEF;AAAA,QAAC;AAAA;AAAA,UACC,KAAK,SAAS,YAAY,IAAI;AAAA,UAC9B,MAAK;AAAA,UACL,OAAO;AAAA,UACP,UAAS;AAAA,UACT,YAAW;AAAA,UACX,gBAAgB,cAAc,UAAU,kBAAkB;AAAA,UAC1D,OAAO;AAAA,YACL,YAAY,UAAU,WAAW;AAAA,UACnC;AAAA;AAAA,QAEC,cAAc,UACb,oCAAC,QAAK,UAAU,GAAG,KAAK,SAAS,YAAY,IAAI,KAC9C,MAAM,QACN,MAAM,OACN,MAAM,YAAY,oCAAC,OAAO,OAAP,MAAc,MAAM,QAAS,CACnD,IAEA,0DACG,MAAM,QACN,MAAM,OACN,MAAM,YAAY,oCAAC,OAAO,OAAP,MAAc,MAAM,QAAS,CACnD;AAAA,QAED,MAAM;AAAA,MACT;AAAA,IACF;AAAA,EAEJ;AACF;AAEC,QAAqD,cAAc;AAS7D,MAAM,SAAS,OAAO,OAAO,SAAS;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AACF,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,10 +2,10 @@ import "../../styles/ellipsis.css";
|
|
|
2
2
|
import "../../styles/field.css";
|
|
3
3
|
import "./Button.css";
|
|
4
4
|
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
5
|
-
var buttonCSS = _7a468({ defaultClassName: "_10kgnsa0-0-
|
|
6
|
-
var buttonLabelCSS = _7a468({ defaultClassName: "_10kgnsaa-0-
|
|
7
|
-
var buttonLoadingCSS = "_10kgnsa9-0-
|
|
8
|
-
var buttonWidthsCSS = { full: "_10kgnsa7-0-
|
|
5
|
+
var buttonCSS = _7a468({ defaultClassName: "_10kgnsa0-1-0-0", variantClassNames: { textAlign: { start: "_10kgnsa1-1-0-0", center: "_10kgnsa2-1-0-0" }, size: { condensed: "_10kgnsa3-1-0-0", "default": "_10kgnsa4-1-0-0" }, disabled: { true: "_10kgnsa5-1-0-0" }, readOnly: { true: "_10kgnsa6-1-0-0" } }, defaultVariants: { size: "default", textAlign: "center", disabled: false }, compoundVariants: [] });
|
|
6
|
+
var buttonLabelCSS = _7a468({ defaultClassName: "_10kgnsaa-1-0-0", variantClassNames: { textual: { true: "_oqqp1n0-1-0-0", false: "_10kgnsac-1-0-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
7
|
+
var buttonLoadingCSS = "_10kgnsa9-1-0-0";
|
|
8
|
+
var buttonWidthsCSS = { full: "_10kgnsa7-1-0-0", content: "_10kgnsa8-1-0-0" };
|
|
9
9
|
export {
|
|
10
10
|
buttonCSS,
|
|
11
11
|
buttonLabelCSS,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/buttons/button/Button.css.ts"],
|
|
4
|
-
"sourcesContent": ["import '../../styles/ellipsis.css';\nimport '../../styles/field.css';\nimport './Button.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var buttonCSS = _7a468({defaultClassName:'_10kgnsa0-0-
|
|
5
|
-
"mappings": "AAAA,OAAO;AACP,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,YAAY,OAAO,EAAC,kBAAiB,
|
|
4
|
+
"sourcesContent": ["import '../../styles/ellipsis.css';\nimport '../../styles/field.css';\nimport './Button.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var buttonCSS = _7a468({defaultClassName:'_10kgnsa0-1-0-0',variantClassNames:{textAlign:{start:'_10kgnsa1-1-0-0',center:'_10kgnsa2-1-0-0'},size:{condensed:'_10kgnsa3-1-0-0','default':'_10kgnsa4-1-0-0'},disabled:{true:'_10kgnsa5-1-0-0'},readOnly:{true:'_10kgnsa6-1-0-0'}},defaultVariants:{size:'default',textAlign:'center',disabled:false},compoundVariants:[]});\nexport var buttonLabelCSS = _7a468({defaultClassName:'_10kgnsaa-1-0-0',variantClassNames:{textual:{true:'_oqqp1n0-1-0-0',false:'_10kgnsac-1-0-0'}},defaultVariants:{},compoundVariants:[]});\nexport var buttonLoadingCSS = '_10kgnsa9-1-0-0';\nexport var buttonWidthsCSS = {full:'_10kgnsa7-1-0-0',content:'_10kgnsa8-1-0-0'};"],
|
|
5
|
+
"mappings": "AAAA,OAAO;AACP,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,YAAY,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,WAAU,EAAC,OAAM,mBAAkB,QAAO,kBAAiB,GAAE,MAAK,EAAC,WAAU,mBAAkB,WAAU,kBAAiB,GAAE,UAAS,EAAC,MAAK,kBAAiB,GAAE,UAAS,EAAC,MAAK,kBAAiB,EAAC,GAAE,iBAAgB,EAAC,MAAK,WAAU,WAAU,UAAS,UAAS,MAAK,GAAE,kBAAiB,CAAC,EAAC,CAAC;AACtW,IAAI,iBAAiB,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,SAAQ,EAAC,MAAK,kBAAiB,OAAM,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;AACnL,IAAI,mBAAmB;AACvB,IAAI,kBAAkB,EAAC,MAAK,mBAAkB,SAAQ,kBAAiB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@keyframes _13n9uwh0-0-
|
|
1
|
+
@keyframes _13n9uwh0-1-0-0 {
|
|
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-0-
|
|
10
|
-
color: var(--_13n9uwh1-0-
|
|
11
|
-
}
|
|
12
|
-
._13n9uwhd-0-
|
|
13
|
-
--_13n9uwh1-0-
|
|
14
|
-
--_13n9uwh4-0-
|
|
15
|
-
--_13n9uwh2-0-
|
|
16
|
-
--_13n9uwh3-0-
|
|
17
|
-
}
|
|
18
|
-
._13n9uwhe-0-
|
|
19
|
-
--_13n9uwh1-0-
|
|
20
|
-
--_13n9uwh4-0-
|
|
21
|
-
--_13n9uwh2-0-
|
|
22
|
-
--_13n9uwh3-0-
|
|
23
|
-
}
|
|
24
|
-
._13n9uwhf-0-
|
|
25
|
-
--_13n9uwh1-0-
|
|
26
|
-
--_13n9uwh4-0-
|
|
27
|
-
--_13n9uwh2-0-
|
|
28
|
-
--_13n9uwh3-0-
|
|
29
|
-
}
|
|
30
|
-
._13n9uwhg-0-
|
|
31
|
-
--_13n9uwh1-0-
|
|
32
|
-
--_13n9uwh4-0-
|
|
33
|
-
--_13n9uwh2-0-
|
|
34
|
-
--_13n9uwh3-0-
|
|
35
|
-
}
|
|
36
|
-
._13n9uwhh-0-
|
|
37
|
-
--_13n9uwh1-0-
|
|
38
|
-
--_13n9uwh4-0-
|
|
39
|
-
--_13n9uwh2-0-
|
|
40
|
-
--_13n9uwh3-0-
|
|
9
|
+
._13n9uwh5-1-0-0 {
|
|
10
|
+
color: var(--_13n9uwh1-1-0-0);
|
|
11
|
+
}
|
|
12
|
+
._13n9uwhd-1-0-0 {
|
|
13
|
+
--_13n9uwh1-1-0-0: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
14
|
+
--_13n9uwh4-1-0-0: var(--dt-colors-text-neutral-subdued, #545587);
|
|
15
|
+
--_13n9uwh2-1-0-0: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
16
|
+
--_13n9uwh3-1-0-0: var(--dt-colors-border-primary-accent, #454cc9);
|
|
17
|
+
}
|
|
18
|
+
._13n9uwhe-1-0-0 {
|
|
19
|
+
--_13n9uwh1-1-0-0: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
20
|
+
--_13n9uwh4-1-0-0: var(--dt-colors-text-neutral-subdued, #545587);
|
|
21
|
+
--_13n9uwh2-1-0-0: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
22
|
+
--_13n9uwh3-1-0-0: var(--dt-colors-border-success-accent, #2c6360);
|
|
23
|
+
}
|
|
24
|
+
._13n9uwhf-1-0-0 {
|
|
25
|
+
--_13n9uwh1-1-0-0: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
26
|
+
--_13n9uwh4-1-0-0: var(--dt-colors-text-neutral-subdued, #545587);
|
|
27
|
+
--_13n9uwh2-1-0-0: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
28
|
+
--_13n9uwh3-1-0-0: var(--dt-colors-border-warning-accent, #805100);
|
|
29
|
+
}
|
|
30
|
+
._13n9uwhg-1-0-0 {
|
|
31
|
+
--_13n9uwh1-1-0-0: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
32
|
+
--_13n9uwh4-1-0-0: var(--dt-colors-text-neutral-subdued, #545587);
|
|
33
|
+
--_13n9uwh2-1-0-0: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
34
|
+
--_13n9uwh3-1-0-0: var(--dt-colors-border-critical-accent, #b80031);
|
|
35
|
+
}
|
|
36
|
+
._13n9uwhh-1-0-0 {
|
|
37
|
+
--_13n9uwh1-1-0-0: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
38
|
+
--_13n9uwh4-1-0-0: var(--dt-colors-text-neutral-subdued, #545587);
|
|
39
|
+
--_13n9uwh2-1-0-0: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
40
|
+
--_13n9uwh3-1-0-0: var(--dt-colors-border-neutral-accent, #545587);
|
|
41
41
|
color: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
42
42
|
}
|
|
43
|
-
._13n9uwhi-0-
|
|
44
|
-
--_13n9uwh1-0-
|
|
45
|
-
--_13n9uwh4-0-
|
|
46
|
-
--_13n9uwh2-0-
|
|
47
|
-
--_13n9uwh3-0-
|
|
48
|
-
}
|
|
49
|
-
._13n9uwhj-0-
|
|
50
|
-
--_13n9uwh1-0-
|
|
51
|
-
--_13n9uwh4-0-
|
|
52
|
-
--_13n9uwh2-0-
|
|
53
|
-
--_13n9uwh3-0-
|
|
54
|
-
}
|
|
55
|
-
._13n9uwhk-0-
|
|
56
|
-
--_13n9uwh1-0-
|
|
57
|
-
--_13n9uwh4-0-
|
|
58
|
-
--_13n9uwh2-0-
|
|
59
|
-
--_13n9uwh3-0-
|
|
60
|
-
}
|
|
61
|
-
._13n9uwhl-0-
|
|
62
|
-
--_13n9uwh1-0-
|
|
63
|
-
--_13n9uwh4-0-
|
|
64
|
-
--_13n9uwh2-0-
|
|
65
|
-
--_13n9uwh3-0-
|
|
66
|
-
}
|
|
67
|
-
._13n9uwhm-0-
|
|
68
|
-
--_13n9uwh1-0-
|
|
69
|
-
--_13n9uwh4-0-
|
|
70
|
-
--_13n9uwh2-0-
|
|
71
|
-
--_13n9uwh3-0-
|
|
72
|
-
}
|
|
73
|
-
._13n9uwhn-0-
|
|
43
|
+
._13n9uwhi-1-0-0 {
|
|
44
|
+
--_13n9uwh1-1-0-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
45
|
+
--_13n9uwh4-1-0-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
46
|
+
--_13n9uwh2-1-0-0: var(--dt-colors-border-primary-on-accent-disabled, #f4f4fb33);
|
|
47
|
+
--_13n9uwh3-1-0-0: var(--dt-colors-border-primary-on-accent-default, #f4f4fb);
|
|
48
|
+
}
|
|
49
|
+
._13n9uwhj-1-0-0 {
|
|
50
|
+
--_13n9uwh1-1-0-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
51
|
+
--_13n9uwh4-1-0-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
52
|
+
--_13n9uwh2-1-0-0: var(--dt-colors-border-success-on-accent-disabled, #f1f4f433);
|
|
53
|
+
--_13n9uwh3-1-0-0: var(--dt-colors-border-success-on-accent-default, #f1f4f4);
|
|
54
|
+
}
|
|
55
|
+
._13n9uwhk-1-0-0 {
|
|
56
|
+
--_13n9uwh1-1-0-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
57
|
+
--_13n9uwh4-1-0-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
58
|
+
--_13n9uwh2-1-0-0: var(--dt-colors-border-warning-on-accent-disabled, #27202533);
|
|
59
|
+
--_13n9uwh3-1-0-0: var(--dt-colors-border-warning-on-accent-default, #272025);
|
|
60
|
+
}
|
|
61
|
+
._13n9uwhl-1-0-0 {
|
|
62
|
+
--_13n9uwh1-1-0-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
63
|
+
--_13n9uwh4-1-0-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
64
|
+
--_13n9uwh2-1-0-0: var(--dt-colors-border-critical-on-accent-disabled, #f9f1f333);
|
|
65
|
+
--_13n9uwh3-1-0-0: var(--dt-colors-border-critical-on-accent-default, #f9f1f3);
|
|
66
|
+
}
|
|
67
|
+
._13n9uwhm-1-0-0 {
|
|
68
|
+
--_13n9uwh1-1-0-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
69
|
+
--_13n9uwh4-1-0-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
70
|
+
--_13n9uwh2-1-0-0: var(--dt-colors-border-neutral-on-accent-disabled, #f3f3f633);
|
|
71
|
+
--_13n9uwh3-1-0-0: var(--dt-colors-border-neutral-on-accent-default, #f3f3f6);
|
|
72
|
+
}
|
|
73
|
+
._13n9uwhn-1-0-0 {
|
|
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-0-
|
|
78
|
+
background: var(--_13n9uwh2-1-0-0);
|
|
79
79
|
}
|
|
80
|
-
._13n9uwho-0-
|
|
80
|
+
._13n9uwho-1-0-0 {
|
|
81
81
|
height: 6px;
|
|
82
82
|
}
|
|
83
|
-
._13n9uwhp-0-
|
|
83
|
+
._13n9uwhp-1-0-0 {
|
|
84
84
|
height: 8px;
|
|
85
85
|
}
|
|
86
|
-
._13n9uwhq-0-
|
|
86
|
+
._13n9uwhq-1-0-0 {
|
|
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-0-
|
|
90
|
+
background-color: var(--_13n9uwh3-1-0-0);
|
|
91
91
|
}
|
|
92
|
-
._13n9uwhr-0-
|
|
92
|
+
._13n9uwhr-1-0-0 {
|
|
93
93
|
width: 100%;
|
|
94
|
-
animation-name: _13n9uwh0-0-
|
|
94
|
+
animation-name: _13n9uwh0-1-0-0;
|
|
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,7 +1,6 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import React, { forwardRef, useId } from "react";
|
|
3
3
|
import { isElement } from "react-is";
|
|
4
|
-
import Spacings from "@dynatrace/strato-design-tokens/spacings";
|
|
5
4
|
import { SharedProgressBarPropsContext } from "./contexts/SharedProgressBarPropsContext.js";
|
|
6
5
|
import { useProgressAriaProps } from "./hooks/useProgressAriaProps.js";
|
|
7
6
|
import {
|
|
@@ -15,6 +14,7 @@ import { ProgressBarValue } from "./ProgressBarValue.js";
|
|
|
15
14
|
import { useAriaLabelingProps } from "../../core/hooks/useAriaLabelingProps.js";
|
|
16
15
|
import { useSafeForwardProps } from "../../core/hooks/useSafeForwardProps.js";
|
|
17
16
|
import { useContainerColoring } from "../../layouts/container/Container.js";
|
|
17
|
+
import { Flex } from "../../layouts/flex/Flex.js";
|
|
18
18
|
import { containerColorsCSS } from "../../styles/container.sty.js";
|
|
19
19
|
function getProgressBarSlots(children) {
|
|
20
20
|
const slots = {
|
|
@@ -51,7 +51,6 @@ const _ProgressBar = forwardRef(
|
|
|
51
51
|
max = 100,
|
|
52
52
|
min = 0,
|
|
53
53
|
density = "default",
|
|
54
|
-
variant,
|
|
55
54
|
color,
|
|
56
55
|
children,
|
|
57
56
|
id: propId,
|
|
@@ -64,17 +63,9 @@ const _ProgressBar = forwardRef(
|
|
|
64
63
|
...remainingProps
|
|
65
64
|
} = props;
|
|
66
65
|
const containerColoring = useContainerColoring();
|
|
67
|
-
const cascadedVariant = variant !== void 0 && variant === "onAccent" ? "accent" : containerColoring.variant;
|
|
68
|
-
const derivedVariant = cascadedVariant === "accent" ? "accent" : "default";
|
|
69
66
|
const fallbackColor = containerColoring.default ? "primary" : containerColoring.color;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
derivedColor = variant;
|
|
73
|
-
}
|
|
74
|
-
if (color !== void 0) {
|
|
75
|
-
derivedColor = color;
|
|
76
|
-
}
|
|
77
|
-
const onAccent = derivedVariant === "accent";
|
|
67
|
+
const derivedColor = color ?? fallbackColor;
|
|
68
|
+
const onAccent = containerColoring.variant === "accent";
|
|
78
69
|
const slots = getProgressBarSlots(children);
|
|
79
70
|
const { value, isIndeterminate, progressAriaProps } = useProgressAriaProps(
|
|
80
71
|
originalValue,
|
|
@@ -98,12 +89,15 @@ const _ProgressBar = forwardRef(
|
|
|
98
89
|
progressStyles["width"] = `${Math.round(percentage * 100)}%`;
|
|
99
90
|
}
|
|
100
91
|
return /* @__PURE__ */ React.createElement(SharedProgressBarPropsContext.Provider, { value: { id, density } }, /* @__PURE__ */ React.createElement(
|
|
101
|
-
|
|
92
|
+
Flex,
|
|
102
93
|
{
|
|
94
|
+
flexDirection: "column",
|
|
95
|
+
gap: 6,
|
|
96
|
+
width: "100%",
|
|
103
97
|
className: clsx(
|
|
104
98
|
containerColorsCSS({
|
|
105
99
|
color: derivedColor,
|
|
106
|
-
variant:
|
|
100
|
+
variant: containerColoring.variant
|
|
107
101
|
}),
|
|
108
102
|
progressRoot({
|
|
109
103
|
onAccent,
|
|
@@ -111,45 +105,25 @@ const _ProgressBar = forwardRef(
|
|
|
111
105
|
}),
|
|
112
106
|
consumerClassName
|
|
113
107
|
),
|
|
114
|
-
style:
|
|
115
|
-
display: "flex",
|
|
116
|
-
flexDirection: "column",
|
|
117
|
-
gap: Spacings.Size6,
|
|
118
|
-
width: "100%",
|
|
119
|
-
...consumerStyle
|
|
120
|
-
},
|
|
108
|
+
style: consumerStyle,
|
|
121
109
|
"data-testid": dataTestId,
|
|
122
110
|
"data-dtrum-mask": dataDtrumMask,
|
|
123
111
|
"data-dtrum-allow": dataDtrumAllow,
|
|
124
112
|
ref: forwardedRef,
|
|
125
113
|
...forwardProps
|
|
126
114
|
},
|
|
127
|
-
/* @__PURE__ */ React.createElement(
|
|
128
|
-
|
|
115
|
+
/* @__PURE__ */ React.createElement(Flex, { justifyContent: "space-between", gap: 8 }, density === "condensed" ? /* @__PURE__ */ React.createElement(
|
|
116
|
+
Flex,
|
|
129
117
|
{
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
118
|
+
justifyContent: "space-between",
|
|
119
|
+
alignItems: "flex-end",
|
|
120
|
+
flex: 1,
|
|
121
|
+
gap: 16,
|
|
122
|
+
minWidth: 0
|
|
135
123
|
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
style: {
|
|
140
|
-
display: "flex",
|
|
141
|
-
justifyContent: "space-between",
|
|
142
|
-
alignItems: "flex-end",
|
|
143
|
-
flex: 1,
|
|
144
|
-
gap: Spacings.Size16,
|
|
145
|
-
minWidth: 0
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
slots.label,
|
|
149
|
-
slots.value
|
|
150
|
-
) : slots.label,
|
|
151
|
-
slots.icon
|
|
152
|
-
),
|
|
124
|
+
slots.label,
|
|
125
|
+
slots.value
|
|
126
|
+
) : slots.label, slots.icon),
|
|
153
127
|
/* @__PURE__ */ React.createElement(
|
|
154
128
|
"div",
|
|
155
129
|
{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/content/progress/ProgressBar.tsx"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable deprecation/deprecation */\n\nimport clsx from 'clsx';\nimport React, { CSSProperties, forwardRef, useId } from 'react';\nimport { isElement } from 'react-is';\n\nimport
|
|
5
|
-
"mappings": "AAEA,OAAO,UAAU;AACjB,OAAO,SAAwB,YAAY,aAAa;AACxD,SAAS,iBAAiB;AAE1B,
|
|
4
|
+
"sourcesContent": ["/* eslint-disable deprecation/deprecation */\n\nimport clsx from 'clsx';\nimport React, { CSSProperties, forwardRef, useId } from 'react';\nimport { isElement } from 'react-is';\n\nimport { SharedProgressBarPropsContext } from './contexts/SharedProgressBarPropsContext.js';\nimport { useProgressAriaProps } from './hooks/useProgressAriaProps.js';\nimport {\n progressBarFillCSS,\n progressCSS,\n progressRoot,\n} from './ProgressBar.sty.js';\nimport { ProgressBarIcon } from './ProgressBarIcon.js';\nimport { ProgressBarLabel } from './ProgressBarLabel.js';\nimport { ProgressBarValue } from './ProgressBarValue.js';\nimport { useAriaLabelingProps } from '../../core/hooks/useAriaLabelingProps.js';\nimport { useSafeForwardProps } from '../../core/hooks/useSafeForwardProps.js';\nimport { type AriaLabelingProps } from '../../core/types/a11y-props.js';\nimport { type DataTestId } from '../../core/types/data-props.js';\nimport { type DOMProps } from '../../core/types/dom.js';\nimport { type MaskingProps } from '../../core/types/masking-props.js';\nimport { type StylingProps } from '../../core/types/styling-props.js';\nimport { type WithChildren } from '../../core/types/with-children.js';\nimport { useContainerColoring } from '../../layouts/container/Container.js';\nimport { Flex } from '../../layouts/flex/Flex.js';\nimport { containerColorsCSS } from '../../styles/container.sty.js';\n\n/**\n * Accepted properties for ProgressBar.\n * @public\n */\nexport interface ProgressBarProps\n extends WithChildren,\n DOMProps,\n AriaLabelingProps,\n StylingProps,\n DataTestId,\n MaskingProps {\n /**\n * The current value.\n * @defaultValue 'indeterminate'\n */\n value?: number | 'indeterminate';\n /**\n * The minimum allowed value.\n * @defaultValue 0\n */\n min?: number;\n /**\n * The maximum allowed value.\n * @defaultValue 100\n */\n max?: number;\n /**\n * Controls the density of the rendering.\n * @defaultValue 'default'\n */\n density?: 'default' | 'condensed';\n /**\n * Controls the color of the progress.\n * @defaultValue 'primary' or a container's color.\n */\n color?: 'neutral' | 'primary' | 'success' | 'warning' | 'critical';\n /**\n * The aria-valuetext attribute defines the human-readable text alternative of aria-valuenow for a range widget.\n * By default, the value will be given as a percentage. If the value is not a percentage, you should provide aria-valuetext.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-valuetext\n * @defaultValue the value of the progress as percentage.\n */\n 'aria-valuetext'?: string;\n}\n\ntype ProgressBarSlots = {\n value?: React.ReactNode;\n label?: React.ReactNode;\n icon?: React.ReactNode;\n};\n\nfunction getProgressBarSlots(children: React.ReactNode) {\n const slots: ProgressBarSlots = {\n value: null,\n label: null,\n icon: null,\n };\n\n React.Children.forEach(children, (child) => {\n if (isElement(child)) {\n switch (child.type) {\n case ProgressBarLabel:\n slots.label = child;\n break;\n case ProgressBarIcon:\n slots.icon = child;\n break;\n case ProgressBarValue:\n default:\n slots.value = child;\n break;\n }\n } else {\n if (!slots.value) {\n slots.value = child;\n }\n }\n });\n\n return slots;\n}\n\nconst _ProgressBar = forwardRef<HTMLDivElement, ProgressBarProps>(\n (props, forwardedRef) => {\n const {\n value: originalValue,\n max = 100,\n min = 0,\n density = 'default',\n color,\n children,\n id: propId,\n 'aria-valuetext': ariaValuetext,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n ...remainingProps\n }: ProgressBarProps = props;\n\n const containerColoring = useContainerColoring();\n\n // for the color in the ProgressCircle the fallback logic is a bit different - usually\n // the fallback from the container is \"neutral\" - but in the case of the progress circle the default\n // fallback color is \"primary\"\n const fallbackColor = containerColoring.default\n ? 'primary'\n : containerColoring.color;\n\n const derivedColor = color ?? fallbackColor;\n const onAccent = containerColoring.variant === 'accent';\n\n const slots = getProgressBarSlots(children);\n const { value, isIndeterminate, progressAriaProps } = useProgressAriaProps(\n originalValue,\n min,\n max,\n ariaValuetext,\n );\n const ariaLabelingProps = useAriaLabelingProps(remainingProps);\n const forwardProps = useSafeForwardProps(remainingProps, ariaLabelingProps);\n\n const generatedId = useId();\n const id = propId ?? generatedId;\n\n if (\n !slots.label &&\n !ariaLabelingProps['aria-label'] &&\n !ariaLabelingProps['aria-labelledby']\n ) {\n process.env.NODE_ENV === 'development' &&\n // eslint-disable-next-line no-console\n console.warn(\n 'If no label is provided please make sure to provide an aria label on your progressCircle element.',\n );\n }\n\n const progressStyles: CSSProperties = {};\n if (!isIndeterminate && value !== undefined) {\n const percentage = (value - min) / (max - min);\n progressStyles['width'] = `${Math.round(percentage * 100)}%`;\n }\n\n return (\n <SharedProgressBarPropsContext.Provider value={{ id, density }}>\n <Flex\n flexDirection=\"column\"\n gap={6}\n width=\"100%\"\n className={clsx(\n containerColorsCSS({\n color: derivedColor,\n variant: containerColoring.variant,\n }),\n\n progressRoot({\n onAccent,\n color: derivedColor,\n }),\n consumerClassName,\n )}\n style={consumerStyle}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n ref={forwardedRef}\n {...forwardProps}\n >\n <Flex justifyContent=\"space-between\" gap={8}>\n {density === 'condensed' ? (\n <Flex\n justifyContent=\"space-between\"\n alignItems=\"flex-end\"\n flex={1}\n gap={16}\n minWidth={0}\n >\n {slots.label}\n {slots.value}\n </Flex>\n ) : (\n slots.label\n )}\n {slots.icon}\n </Flex>\n <div\n className={progressCSS({\n size: density,\n })}\n id={id}\n {...progressAriaProps}\n {...ariaLabelingProps}\n >\n <div\n className={clsx(\n progressBarFillCSS({\n indeterminate: isIndeterminate,\n }),\n )}\n style={progressStyles}\n />\n </div>\n {density === 'default' && slots.value}\n </Flex>\n </SharedProgressBarPropsContext.Provider>\n );\n },\n);\n\n(_ProgressBar as typeof _ProgressBar & { displayName: string }).displayName =\n 'ProgressBar';\n\n/**\n * Use the `ProgressBar` component to show your users that a system operation such as downloading, uploading, or processing is progressing.\n * The `ProgressBar` can be used to visualize determinate or indeterminate progress.\n * @public\n */\nexport const ProgressBar = Object.assign(_ProgressBar, {\n Value: ProgressBarValue,\n Label: ProgressBarLabel,\n Icon: ProgressBarIcon,\n});\n"],
|
|
5
|
+
"mappings": "AAEA,OAAO,UAAU;AACjB,OAAO,SAAwB,YAAY,aAAa;AACxD,SAAS,iBAAiB;AAE1B,SAAS,qCAAqC;AAC9C,SAAS,4BAA4B;AACrC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,uBAAuB;AAChC,SAAS,wBAAwB;AACjC,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AAOpC,SAAS,4BAA4B;AACrC,SAAS,YAAY;AACrB,SAAS,0BAA0B;AAqDnC,SAAS,oBAAoB,UAA2B;AACtD,QAAM,QAA0B;AAAA,IAC9B,OAAO;AAAA,IACP,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AAEA,QAAM,SAAS,QAAQ,UAAU,CAAC,UAAU;AAC1C,QAAI,UAAU,KAAK,GAAG;AACpB,cAAQ,MAAM,MAAM;AAAA,QAClB,KAAK;AACH,gBAAM,QAAQ;AACd;AAAA,QACF,KAAK;AACH,gBAAM,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@@
|
|
|
1
1
|
import "./ProgressBar.css";
|
|
2
2
|
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
-
var progressBarFillCSS = _7a468({ defaultClassName: "_13n9uwhq-0-
|
|
4
|
-
var progressCSS = _7a468({ defaultClassName: "_13n9uwhn-0-
|
|
5
|
-
var progressIndicatorColorVar = "var(--_13n9uwh3-0-
|
|
6
|
-
var progressRoot = _7a468({ defaultClassName: "_13n9uwh5-0-
|
|
7
|
-
var progressValueColorVar = "var(--_13n9uwh4-0-
|
|
3
|
+
var progressBarFillCSS = _7a468({ defaultClassName: "_13n9uwhq-1-0-0", variantClassNames: { indeterminate: { true: "_13n9uwhr-1-0-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
4
|
+
var progressCSS = _7a468({ defaultClassName: "_13n9uwhn-1-0-0", variantClassNames: { size: { condensed: "_13n9uwho-1-0-0", "default": "_13n9uwhp-1-0-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5
|
+
var progressIndicatorColorVar = "var(--_13n9uwh3-1-0-0)";
|
|
6
|
+
var progressRoot = _7a468({ defaultClassName: "_13n9uwh5-1-0-0", variantClassNames: { color: { primary: "_13n9uwh6-1-0-0", success: "_13n9uwh7-1-0-0", warning: "_13n9uwh8-1-0-0", critical: "_13n9uwh9-1-0-0", neutral: "_13n9uwha-1-0-0" }, onAccent: { true: "_13n9uwhb-1-0-0", false: "_13n9uwhc-1-0-0" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", onAccent: false }, "_13n9uwhd-1-0-0"], [{ color: "success", onAccent: false }, "_13n9uwhe-1-0-0"], [{ color: "warning", onAccent: false }, "_13n9uwhf-1-0-0"], [{ color: "critical", onAccent: false }, "_13n9uwhg-1-0-0"], [{ color: "neutral", onAccent: false }, "_13n9uwhh-1-0-0"], [{ color: "primary", onAccent: true }, "_13n9uwhi-1-0-0"], [{ color: "success", onAccent: true }, "_13n9uwhj-1-0-0"], [{ color: "warning", onAccent: true }, "_13n9uwhk-1-0-0"], [{ color: "critical", onAccent: true }, "_13n9uwhl-1-0-0"], [{ color: "neutral", onAccent: true }, "_13n9uwhm-1-0-0"]] });
|
|
7
|
+
var progressValueColorVar = "var(--_13n9uwh4-1-0-0)";
|
|
8
8
|
export {
|
|
9
9
|
progressBarFillCSS,
|
|
10
10
|
progressCSS,
|