@dynatrace/strato-components 1.0.0 → 1.2.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.sty.js +4 -4
- package/content/progress/ProgressBar.css +71 -71
- 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.sty.js +5 -5
- package/content/skeleton/Skeleton.css +6 -6
- package/content/skeleton/Skeleton.sty.js +1 -1
- 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.sty.js +4 -4
- package/esm/buttons/button/Button.sty.js.map +1 -1
- package/esm/content/progress/ProgressBar.css +71 -71
- package/esm/content/progress/ProgressBar.sty.js +5 -5
- package/esm/content/progress/ProgressBar.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarIcon.css +2 -2
- package/esm/content/progress/ProgressBarIcon.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 +1 -1
- 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 +1 -1
- package/esm/content/progress/ProgressCircle.css +40 -40
- package/esm/content/progress/ProgressCircle.sty.js +5 -5
- package/esm/content/progress/ProgressCircle.sty.js.map +1 -1
- package/esm/content/skeleton/Skeleton.css +6 -6
- package/esm/content/skeleton/Skeleton.sty.js +1 -1
- package/esm/content/skeleton/Skeleton.sty.js.map +1 -1
- package/esm/core/styles/focusRing.css +66 -66
- package/esm/core/styles/focusRing.sty.js +2 -2
- package/esm/core/styles/focusRing.sty.js.map +1 -1
- package/esm/core/utils/colorUtils.css +60 -60
- package/esm/core/utils/colorUtils.sty.js +2 -2
- package/esm/core/utils/colorUtils.sty.js.map +1 -1
- package/esm/layouts/container/Container.css +4 -4
- package/esm/layouts/container/Container.sty.js +1 -1
- package/esm/layouts/container/Container.sty.js.map +1 -1
- package/esm/layouts/divider/Divider.css +6 -6
- package/esm/layouts/divider/Divider.sty.js +1 -1
- package/esm/layouts/divider/Divider.sty.js.map +1 -1
- package/esm/layouts/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 +40 -41
- package/esm/layouts/surface/Surface.js +3 -3
- package/esm/layouts/surface/Surface.js.map +2 -2
- package/esm/layouts/surface/Surface.sty.js +4 -4
- 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 +1 -1
- package/esm/styles/container.css +47 -47
- package/esm/styles/container.sty.js +2 -2
- package/esm/styles/container.sty.js.map +1 -1
- package/esm/styles/ellipsis.css +1 -1
- package/esm/styles/ellipsis.sty.js +1 -1
- package/esm/styles/ellipsis.sty.js.map +1 -1
- package/esm/styles/field.css +153 -153
- package/esm/styles/field.sty.js +2 -2
- package/esm/styles/field.sty.js.map +1 -1
- package/esm/styles/sprinkles.css +262 -262
- package/esm/styles/sprinkles.sty.js +1 -1
- package/esm/styles/sprinkles.sty.js.map +1 -1
- package/esm/styles/textStyle.css +8 -8
- package/esm/styles/textStyle.sty.js +1 -1
- package/esm/styles/textStyle.sty.js.map +1 -1
- package/esm/typography/block-quote/Blockquote.css +2 -2
- package/esm/typography/block-quote/Blockquote.sty.js +1 -1
- package/esm/typography/block-quote/Blockquote.sty.js.map +1 -1
- package/esm/typography/code/Code.css +1 -1
- package/esm/typography/code/Code.sty.js +1 -1
- package/esm/typography/code/Code.sty.js.map +1 -1
- package/esm/typography/emphasis/Emphasis.css +1 -1
- package/esm/typography/emphasis/Emphasis.sty.js +1 -1
- package/esm/typography/emphasis/Emphasis.sty.js.map +1 -1
- package/esm/typography/external-link/ExternalLink.css +6 -6
- package/esm/typography/external-link/ExternalLink.sty.js +1 -1
- package/esm/typography/external-link/ExternalLink.sty.js.map +1 -1
- package/esm/typography/heading/Heading.css +7 -7
- package/esm/typography/heading/Heading.sty.js +1 -1
- package/esm/typography/heading/Heading.sty.js.map +1 -1
- package/esm/typography/highlight/Highlight.css +1 -1
- package/esm/typography/highlight/Highlight.js +1 -1
- package/esm/typography/highlight/Highlight.js.map +2 -2
- package/esm/typography/highlight/Highlight.sty.js +1 -1
- package/esm/typography/highlight/Highlight.sty.js.map +1 -1
- package/esm/typography/link/Link.css +4 -4
- package/esm/typography/link/Link.sty.js +1 -1
- package/esm/typography/link/Link.sty.js.map +1 -1
- package/esm/typography/list/List.css +4 -4
- package/esm/typography/list/List.sty.js +2 -2
- package/esm/typography/list/List.sty.js.map +1 -1
- package/esm/typography/paragraph/Paragraph.css +3 -3
- package/esm/typography/paragraph/Paragraph.sty.js +1 -1
- package/esm/typography/paragraph/Paragraph.sty.js.map +1 -1
- package/esm/typography/strikethrough/Strikethrough.css +1 -1
- package/esm/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/esm/typography/strikethrough/Strikethrough.sty.js.map +1 -1
- package/esm/typography/strong/Strong.css +1 -1
- package/esm/typography/strong/Strong.sty.js +1 -1
- package/esm/typography/strong/Strong.sty.js.map +1 -1
- package/esm/typography/text/Text.css +3 -3
- package/esm/typography/text/Text.sty.js +1 -1
- package/esm/typography/text/Text.sty.js.map +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.css +12 -4
- package/esm/typography/text-ellipsis/TextEllipsis.js +6 -3
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +4 -2
- 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 +40 -41
- package/layouts/surface/Surface.js +3 -3
- package/layouts/surface/Surface.sty.d.ts +2 -2
- package/layouts/surface/Surface.sty.js +4 -4
- package/layouts/surface/variables.sty.js +1 -1
- package/package.json +3 -3
- 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.js +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 +12 -4
- package/typography/text-ellipsis/TextEllipsis.js +6 -3
- package/typography/text-ellipsis/TextEllipsis.sty.d.ts +12 -1
- package/typography/text-ellipsis/TextEllipsis.sty.js +4 -2
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
._k096v44-1-
|
|
2
|
-
--_k096v40-1-
|
|
3
|
-
--_k096v41-1-
|
|
4
|
-
--_k096v42-1-
|
|
1
|
+
._k096v44-1-2-0 {
|
|
2
|
+
--_k096v40-1-2-0: var(--dt-colors-text-critical-default, #b80031);
|
|
3
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-critical-default, #b80031);
|
|
4
|
+
--_k096v42-1-2-0: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
5
5
|
}
|
|
6
|
-
._k096v45-1-
|
|
7
|
-
--_k096v40-1-
|
|
8
|
-
--_k096v41-1-
|
|
9
|
-
--_k096v42-1-
|
|
6
|
+
._k096v45-1-2-0 {
|
|
7
|
+
--_k096v40-1-2-0: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
8
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-neutral-default, #2b2a58);
|
|
9
|
+
--_k096v42-1-2-0: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
10
10
|
}
|
|
11
|
-
._k096v46-1-
|
|
12
|
-
--_k096v40-1-
|
|
13
|
-
--_k096v41-1-
|
|
14
|
-
--_k096v42-1-
|
|
11
|
+
._k096v46-1-2-0 {
|
|
12
|
+
--_k096v40-1-2-0: var(--dt-colors-text-primary-default, #454cc9);
|
|
13
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-primary-default, #454cc9);
|
|
14
|
+
--_k096v42-1-2-0: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
15
15
|
}
|
|
16
|
-
._k096v47-1-
|
|
17
|
-
--_k096v40-1-
|
|
18
|
-
--_k096v41-1-
|
|
19
|
-
--_k096v42-1-
|
|
16
|
+
._k096v47-1-2-0 {
|
|
17
|
+
--_k096v40-1-2-0: var(--dt-colors-text-success-default, #2c6360);
|
|
18
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-success-default, #2c6360);
|
|
19
|
+
--_k096v42-1-2-0: var(--dt-colors-border-success-default, #cad6d7);
|
|
20
20
|
}
|
|
21
|
-
._k096v48-1-
|
|
22
|
-
--_k096v40-1-
|
|
23
|
-
--_k096v41-1-
|
|
24
|
-
--_k096v42-1-
|
|
21
|
+
._k096v48-1-2-0 {
|
|
22
|
+
--_k096v40-1-2-0: var(--dt-colors-text-warning-default, #805100);
|
|
23
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-warning-default, #805100);
|
|
24
|
+
--_k096v42-1-2-0: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
25
25
|
}
|
|
26
|
-
._k096v4d-1-
|
|
27
|
-
--_k096v40-1-
|
|
28
|
-
--_k096v41-1-
|
|
29
|
-
--_k096v42-1-
|
|
26
|
+
._k096v4d-1-2-0 {
|
|
27
|
+
--_k096v40-1-2-0: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
|
|
28
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-primary-on-accent-default, #f4f4fb);
|
|
29
|
+
--_k096v42-1-2-0: var(--dt-colors-border-primary-accent, #454cc9);
|
|
30
30
|
}
|
|
31
|
-
._k096v4e-1-
|
|
32
|
-
--_k096v40-1-
|
|
33
|
-
--_k096v41-1-
|
|
34
|
-
--_k096v42-1-
|
|
31
|
+
._k096v4e-1-2-0 {
|
|
32
|
+
--_k096v40-1-2-0: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
|
|
33
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-success-on-accent-default, #f1f4f4);
|
|
34
|
+
--_k096v42-1-2-0: var(--dt-colors-border-success-accent, #2c6360);
|
|
35
35
|
}
|
|
36
|
-
._k096v4f-1-
|
|
37
|
-
--_k096v40-1-
|
|
38
|
-
--_k096v41-1-
|
|
39
|
-
--_k096v42-1-
|
|
36
|
+
._k096v4f-1-2-0 {
|
|
37
|
+
--_k096v40-1-2-0: var(--dt-colors-text-warning-on-accent-default, #272025);
|
|
38
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-warning-on-accent-default, #272025);
|
|
39
|
+
--_k096v42-1-2-0: var(--dt-colors-border-warning-accent, #805100);
|
|
40
40
|
}
|
|
41
|
-
._k096v4g-1-
|
|
42
|
-
--_k096v40-1-
|
|
43
|
-
--_k096v41-1-
|
|
44
|
-
--_k096v42-1-
|
|
41
|
+
._k096v4g-1-2-0 {
|
|
42
|
+
--_k096v40-1-2-0: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
|
|
43
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-critical-on-accent-default, #f9f1f3);
|
|
44
|
+
--_k096v42-1-2-0: var(--dt-colors-border-critical-accent, #b80031);
|
|
45
45
|
}
|
|
46
|
-
._k096v4h-1-
|
|
47
|
-
--_k096v40-1-
|
|
48
|
-
--_k096v41-1-
|
|
49
|
-
--_k096v42-1-
|
|
46
|
+
._k096v4h-1-2-0 {
|
|
47
|
+
--_k096v40-1-2-0: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
48
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
|
|
49
|
+
--_k096v42-1-2-0: var(--dt-colors-border-neutral-accent, #545587);
|
|
50
50
|
}
|
|
51
|
-
._k096v4i-1-
|
|
52
|
-
--_k096v40-1-
|
|
53
|
-
--_k096v41-1-
|
|
54
|
-
--_k096v42-1-
|
|
51
|
+
._k096v4i-1-2-0 {
|
|
52
|
+
--_k096v40-1-2-0: var(--dt-colors-text-primary-disabled, #54558780);
|
|
53
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-primary-disabled, #54558780);
|
|
54
|
+
--_k096v42-1-2-0: var(--dt-colors-border-primary-disabled, #d2d3e180);
|
|
55
55
|
}
|
|
56
|
-
._k096v4j-1-
|
|
57
|
-
--_k096v40-1-
|
|
58
|
-
--_k096v41-1-
|
|
59
|
-
--_k096v42-1-
|
|
56
|
+
._k096v4j-1-2-0 {
|
|
57
|
+
--_k096v40-1-2-0: var(--dt-colors-text-success-disabled, #54558780);
|
|
58
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-success-disabled, #54558780);
|
|
59
|
+
--_k096v42-1-2-0: var(--dt-colors-border-success-disabled, #d2d3e180);
|
|
60
60
|
}
|
|
61
|
-
._k096v4k-1-
|
|
62
|
-
--_k096v40-1-
|
|
63
|
-
--_k096v41-1-
|
|
64
|
-
--_k096v42-1-
|
|
61
|
+
._k096v4k-1-2-0 {
|
|
62
|
+
--_k096v40-1-2-0: var(--dt-colors-text-warning-disabled, #54558780);
|
|
63
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-warning-disabled, #54558780);
|
|
64
|
+
--_k096v42-1-2-0: var(--dt-colors-border-warning-disabled, #d2d3e180);
|
|
65
65
|
}
|
|
66
|
-
._k096v4l-1-
|
|
67
|
-
--_k096v40-1-
|
|
68
|
-
--_k096v41-1-
|
|
69
|
-
--_k096v42-1-
|
|
66
|
+
._k096v4l-1-2-0 {
|
|
67
|
+
--_k096v40-1-2-0: var(--dt-colors-text-critical-disabled, #54558780);
|
|
68
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-critical-disabled, #54558780);
|
|
69
|
+
--_k096v42-1-2-0: var(--dt-colors-border-critical-disabled, #d2d3e180);
|
|
70
70
|
}
|
|
71
|
-
._k096v4m-1-
|
|
72
|
-
--_k096v40-1-
|
|
73
|
-
--_k096v41-1-
|
|
74
|
-
--_k096v42-1-
|
|
71
|
+
._k096v4m-1-2-0 {
|
|
72
|
+
--_k096v40-1-2-0: var(--dt-colors-text-neutral-disabled, #54558780);
|
|
73
|
+
--_k096v41-1-2-0: var(--dt-colors-icon-neutral-disabled, #54558780);
|
|
74
|
+
--_k096v42-1-2-0: var(--dt-colors-border-neutral-disabled, #d2d3e180);
|
|
75
75
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./colorUtils.css";
|
|
2
2
|
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
3
|
-
var colorUtilsCSS = _7a468({ defaultClassName: "_k096v43-1-
|
|
4
|
-
var colorUtilsVars = { text: "var(--_k096v40-1-
|
|
3
|
+
var colorUtilsCSS = _7a468({ defaultClassName: "_k096v43-1-2-0", variantClassNames: { color: { critical: "_k096v44-1-2-0", neutral: "_k096v45-1-2-0", primary: "_k096v46-1-2-0", success: "_k096v47-1-2-0", warning: "_k096v48-1-2-0" }, variant: { "default": "_k096v49-1-2-0", accent: "_k096v4a-1-2-0" }, disabled: { true: "_k096v4b-1-2-0", false: "_k096v4c-1-2-0" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "_k096v4d-1-2-0"], [{ color: "success", variant: "accent" }, "_k096v4e-1-2-0"], [{ color: "warning", variant: "accent" }, "_k096v4f-1-2-0"], [{ color: "critical", variant: "accent" }, "_k096v4g-1-2-0"], [{ color: "neutral", variant: "accent" }, "_k096v4h-1-2-0"], [{ color: "primary", disabled: true }, "_k096v4i-1-2-0"], [{ color: "success", disabled: true }, "_k096v4j-1-2-0"], [{ color: "warning", disabled: true }, "_k096v4k-1-2-0"], [{ color: "critical", disabled: true }, "_k096v4l-1-2-0"], [{ color: "neutral", disabled: true }, "_k096v4m-1-2-0"]] });
|
|
4
|
+
var colorUtilsVars = { text: "var(--_k096v40-1-2-0)", icon: "var(--_k096v41-1-2-0)", borderColor: "var(--_k096v42-1-2-0)" };
|
|
5
5
|
export {
|
|
6
6
|
colorUtilsCSS,
|
|
7
7
|
colorUtilsVars
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/core/utils/colorUtils.css.ts"],
|
|
4
|
-
"sourcesContent": ["import './colorUtils.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var colorUtilsCSS = _7a468({defaultClassName:'_k096v43-1-
|
|
4
|
+
"sourcesContent": ["import './colorUtils.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var colorUtilsCSS = _7a468({defaultClassName:'_k096v43-1-2-0',variantClassNames:{color:{critical:'_k096v44-1-2-0',neutral:'_k096v45-1-2-0',primary:'_k096v46-1-2-0',success:'_k096v47-1-2-0',warning:'_k096v48-1-2-0'},variant:{'default':'_k096v49-1-2-0',accent:'_k096v4a-1-2-0'},disabled:{true:'_k096v4b-1-2-0',false:'_k096v4c-1-2-0'}},defaultVariants:{},compoundVariants:[[{color:'primary',variant:'accent'},'_k096v4d-1-2-0'],[{color:'success',variant:'accent'},'_k096v4e-1-2-0'],[{color:'warning',variant:'accent'},'_k096v4f-1-2-0'],[{color:'critical',variant:'accent'},'_k096v4g-1-2-0'],[{color:'neutral',variant:'accent'},'_k096v4h-1-2-0'],[{color:'primary',disabled:true},'_k096v4i-1-2-0'],[{color:'success',disabled:true},'_k096v4j-1-2-0'],[{color:'warning',disabled:true},'_k096v4k-1-2-0'],[{color:'critical',disabled:true},'_k096v4l-1-2-0'],[{color:'neutral',disabled:true},'_k096v4m-1-2-0']]});\nexport var colorUtilsVars = {text:'var(--_k096v40-1-2-0)',icon:'var(--_k096v41-1-2-0)',borderColor:'var(--_k096v42-1-2-0)'};"],
|
|
5
5
|
"mappings": "AAAA,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,gBAAgB,OAAO,EAAC,kBAAiB,kBAAiB,mBAAkB,EAAC,OAAM,EAAC,UAAS,kBAAiB,SAAQ,kBAAiB,SAAQ,kBAAiB,SAAQ,kBAAiB,SAAQ,iBAAgB,GAAE,SAAQ,EAAC,WAAU,kBAAiB,QAAO,iBAAgB,GAAE,UAAS,EAAC,MAAK,kBAAiB,OAAM,iBAAgB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,YAAW,SAAQ,SAAQ,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,WAAU,SAAQ,SAAQ,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,YAAW,UAAS,KAAI,GAAE,gBAAgB,GAAE,CAAC,EAAC,OAAM,WAAU,UAAS,KAAI,GAAE,gBAAgB,CAAC,EAAC,CAAC;AACl4B,IAAI,iBAAiB,EAAC,MAAK,yBAAwB,MAAK,yBAAwB,aAAY,wBAAuB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
._f32lcd0-1-
|
|
1
|
+
._f32lcd0-1-2-0 {
|
|
2
2
|
border-style: var(--dt-borders-style-default, solid);
|
|
3
3
|
border-width: var(--dt-borders-width-emphasized, 2px);
|
|
4
4
|
border-radius: var(--dt-borders-radius-container-default, 12px);
|
|
5
|
-
color: var(--_6levse0-1-
|
|
6
|
-
border-color: var(--_6levse2-1-
|
|
7
|
-
background-color: var(--_6levse1-1-
|
|
5
|
+
color: var(--_6levse0-1-2-0);
|
|
6
|
+
border-color: var(--_6levse2-1-2-0);
|
|
7
|
+
background-color: var(--_6levse1-1-2-0);
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/container/Container.css.ts"],
|
|
4
|
-
"sourcesContent": ["import '../../styles/container.css';\nimport './Container.css';\nexport var containerCSS = '_f32lcd0-1-
|
|
4
|
+
"sourcesContent": ["import '../../styles/container.css';\nimport './Container.css';\nexport var containerCSS = '_f32lcd0-1-2-0';"],
|
|
5
5
|
"mappings": "AAAA,OAAO;AACP,OAAO;AACA,IAAI,eAAe;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
._1thxv8m0-1-
|
|
1
|
+
._1thxv8m0-1-2-0 {
|
|
2
2
|
border: none;
|
|
3
3
|
margin: 0;
|
|
4
4
|
overflow-wrap: break-word;
|
|
5
|
-
background-color: var(--_k096v42-1-
|
|
5
|
+
background-color: var(--_k096v42-1-2-0);
|
|
6
6
|
}
|
|
7
|
-
._1thxv8m1-1-
|
|
7
|
+
._1thxv8m1-1-2-0 {
|
|
8
8
|
width: 100%;
|
|
9
9
|
height: var(--dt-borders-width-default, 1px);
|
|
10
10
|
}
|
|
11
|
-
._1thxv8m2-1-
|
|
11
|
+
._1thxv8m2-1-2-0 {
|
|
12
12
|
width: var(--dt-borders-width-default, 1px);
|
|
13
13
|
height: 100%;
|
|
14
14
|
}
|
|
15
|
-
._1thxv8m5-1-
|
|
15
|
+
._1thxv8m5-1-2-0 {
|
|
16
16
|
flex-shrink: 0;
|
|
17
17
|
}
|
|
18
|
-
._1thxv8m6-1-
|
|
18
|
+
._1thxv8m6-1-2-0 {
|
|
19
19
|
flex-shrink: 0;
|
|
20
20
|
width: var(--dt-borders-width-default, 1px);
|
|
21
21
|
height: auto;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../core/utils/colorUtils.css";
|
|
2
2
|
import "./Divider.css";
|
|
3
3
|
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
|
-
var dividerCSS = _7a468({ defaultClassName: "_1thxv8m0-1-
|
|
4
|
+
var dividerCSS = _7a468({ defaultClassName: "_1thxv8m0-1-2-0", variantClassNames: { orientation: { horizontal: "_1thxv8m1-1-2-0", vertical: "_1thxv8m2-1-2-0" }, flexItem: { true: "_1thxv8m3-1-2-0", false: "_1thxv8m4-1-2-0" } }, defaultVariants: {}, compoundVariants: [[{ orientation: "horizontal", flexItem: false }, "_1thxv8m5-1-2-0"], [{ orientation: "vertical", flexItem: true }, "_1thxv8m6-1-2-0"]] });
|
|
5
5
|
export {
|
|
6
6
|
dividerCSS
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/divider/Divider.css.ts"],
|
|
4
|
-
"sourcesContent": ["import '../../core/utils/colorUtils.css';\nimport './Divider.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var dividerCSS = _7a468({defaultClassName:'_1thxv8m0-1-
|
|
4
|
+
"sourcesContent": ["import '../../core/utils/colorUtils.css';\nimport './Divider.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var dividerCSS = _7a468({defaultClassName:'_1thxv8m0-1-2-0',variantClassNames:{orientation:{horizontal:'_1thxv8m1-1-2-0',vertical:'_1thxv8m2-1-2-0'},flexItem:{true:'_1thxv8m3-1-2-0',false:'_1thxv8m4-1-2-0'}},defaultVariants:{},compoundVariants:[[{orientation:'horizontal',flexItem:false},'_1thxv8m5-1-2-0'],[{orientation:'vertical',flexItem:true},'_1thxv8m6-1-2-0']]});"],
|
|
5
5
|
"mappings": "AAAA,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,aAAa,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,aAAY,EAAC,YAAW,mBAAkB,UAAS,kBAAiB,GAAE,UAAS,EAAC,MAAK,mBAAkB,OAAM,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,CAAC,EAAC,aAAY,cAAa,UAAS,MAAK,GAAE,iBAAiB,GAAE,CAAC,EAAC,aAAY,YAAW,UAAS,KAAI,GAAE,iBAAiB,CAAC,EAAC,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
._1x4bl8z0-1-
|
|
3
|
-
._1x4bl8z0-1-
|
|
2
|
+
._1x4bl8z0-1-2-0 > ._1x4bl8z1-1-2-0:not(:last-child),
|
|
3
|
+
._1x4bl8z0-1-2-0 > *:not(:last-child) :is(._1x4bl8z1-1-2-0, .cm-editor) {
|
|
4
4
|
border-top-right-radius: 0;
|
|
5
5
|
border-bottom-right-radius: 0;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
._1x4bl8z0-1-
|
|
9
|
-
._1x4bl8z0-1-
|
|
8
|
+
._1x4bl8z0-1-2-0 > ._1x4bl8z1-1-2-0:not(:first-child),
|
|
9
|
+
._1x4bl8z0-1-2-0 > *:not(:first-child) :is(._1x4bl8z1-1-2-0, .cm-editor) {
|
|
10
10
|
border-top-left-radius: 0;
|
|
11
11
|
border-bottom-left-radius: 0;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/input-group/InputGroup.css.ts"],
|
|
4
|
-
"sourcesContent": ["import './InputGroup.css';\nexport var inputGroupCSS = '_1x4bl8z0-1-
|
|
4
|
+
"sourcesContent": ["import './InputGroup.css';\nexport var inputGroupCSS = '_1x4bl8z0-1-2-0';\nexport var inputGroupChildCSS = '_1x4bl8z1-1-2-0';"],
|
|
5
5
|
"mappings": "AAAA,OAAO;AACA,IAAI,gBAAgB;AACpB,IAAI,qBAAqB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,87 +1,86 @@
|
|
|
1
|
-
._1qto6jt6-1-
|
|
2
|
-
--_1igzksy0-1-
|
|
1
|
+
._1qto6jt6-1-2-0 {
|
|
2
|
+
--_1igzksy0-1-2-0: var(--dt-borders-radius-surface-default, 16px);
|
|
3
3
|
color: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
4
4
|
text-align: left;
|
|
5
5
|
border: none;
|
|
6
6
|
outline: none;
|
|
7
7
|
position: relative;
|
|
8
8
|
background-color: var(--dt-colors-background-surface-default, #fcfcfd);
|
|
9
|
-
border-radius: var(--_1igzksy0-1-
|
|
9
|
+
border-radius: var(--_1igzksy0-1-2-0);
|
|
10
10
|
}
|
|
11
|
-
._1qto6jt6-1-
|
|
11
|
+
._1qto6jt6-1-2-0::before, ._1qto6jt6-1-2-0::after {
|
|
12
12
|
content: "";
|
|
13
13
|
width: 100%;
|
|
14
14
|
height: 100%;
|
|
15
15
|
position: absolute;
|
|
16
16
|
left: 0;
|
|
17
17
|
top: 0;
|
|
18
|
-
border-radius: var(--_1igzksy0-1-
|
|
18
|
+
border-radius: var(--_1igzksy0-1-2-0);
|
|
19
19
|
pointer-events: none;
|
|
20
20
|
}
|
|
21
|
-
._1qto6jt6-1-
|
|
22
|
-
|
|
23
|
-
outline
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
transition: var(--_1qto6jt5-1-0-0);
|
|
21
|
+
._1qto6jt6-1-2-0::after {
|
|
22
|
+
outline-offset: 2px;
|
|
23
|
+
outline: 2px solid var(--_17bwkb02-1-2-0);
|
|
24
|
+
opacity: var(--_1qto6jt4-1-2-0);
|
|
25
|
+
transition: var(--_1qto6jt5-1-2-0);
|
|
27
26
|
}
|
|
28
|
-
._1qto6jt7-1-
|
|
29
|
-
--_1qto6jt4-1-
|
|
30
|
-
--_1qto6jt5-1-
|
|
27
|
+
._1qto6jt7-1-2-0 {
|
|
28
|
+
--_1qto6jt4-1-2-0: 1;
|
|
29
|
+
--_1qto6jt5-1-2-0: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
|
|
31
30
|
}
|
|
32
|
-
._1qto6jt8-1-
|
|
33
|
-
--_1qto6jt4-1-
|
|
34
|
-
--_1qto6jt5-1-
|
|
31
|
+
._1qto6jt8-1-2-0 {
|
|
32
|
+
--_1qto6jt4-1-2-0: 0;
|
|
33
|
+
--_1qto6jt5-1-2-0: var(--dt-animations-fade-out-easing, cubic-bezier(0, 0, 0.2, 1)) var(--dt-animations-fade-out-duration-fast, 150ms);
|
|
35
34
|
}
|
|
36
|
-
._1qto6jt9-1-
|
|
37
|
-
--_1qto6jt1-1-
|
|
38
|
-
--_1qto6jt2-1-
|
|
39
|
-
--_1qto6jt3-1-
|
|
35
|
+
._1qto6jt9-1-2-0 {
|
|
36
|
+
--_1qto6jt1-1-2-0: 0;
|
|
37
|
+
--_1qto6jt2-1-2-0: pointer;
|
|
38
|
+
--_1qto6jt3-1-2-0: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
40
39
|
width: 100%;
|
|
41
40
|
height: 100%;
|
|
42
41
|
position: absolute;
|
|
43
42
|
left: 0;
|
|
44
43
|
top: 0;
|
|
45
|
-
border-radius: var(--_1igzksy0-1-
|
|
44
|
+
border-radius: var(--_1igzksy0-1-2-0);
|
|
46
45
|
pointer-events: none;
|
|
47
46
|
}
|
|
48
|
-
._1qto6jt9-1-
|
|
47
|
+
._1qto6jt9-1-2-0::after,._1qto6jt9-1-2-0::before {
|
|
49
48
|
content: "";
|
|
50
49
|
width: 100%;
|
|
51
50
|
height: 100%;
|
|
52
51
|
position: absolute;
|
|
53
52
|
left: 0;
|
|
54
53
|
top: 0;
|
|
55
|
-
border-radius: var(--_1igzksy0-1-
|
|
54
|
+
border-radius: var(--_1igzksy0-1-2-0);
|
|
56
55
|
pointer-events: none;
|
|
57
56
|
transition: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
|
|
58
57
|
}
|
|
59
|
-
._1qto6jt9-1-
|
|
60
|
-
box-shadow: var(--_1qto6jt0-1-
|
|
61
|
-
opacity: var(--_1qto6jt1-1-
|
|
58
|
+
._1qto6jt9-1-2-0::after {
|
|
59
|
+
box-shadow: var(--_1qto6jt0-1-2-0);
|
|
60
|
+
opacity: var(--_1qto6jt1-1-2-0);
|
|
62
61
|
}
|
|
63
|
-
._1qto6jt9-1-
|
|
64
|
-
box-shadow: var(--_1qto6jt3-1-
|
|
62
|
+
._1qto6jt9-1-2-0::before {
|
|
63
|
+
box-shadow: var(--_1qto6jt3-1-2-0);
|
|
65
64
|
opacity: 0;
|
|
66
65
|
}
|
|
67
|
-
._1qto6jta-1-
|
|
68
|
-
--_1qto6jt0-1-
|
|
69
|
-
--_1qto6jt3-1-
|
|
66
|
+
._1qto6jta-1-2-0 {
|
|
67
|
+
--_1qto6jt0-1-2-0: var(--dt-box-shadows-surface-flat-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
68
|
+
--_1qto6jt3-1-2-0: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
70
69
|
box-shadow: var(--dt-box-shadows-surface-flat-rest, none);
|
|
71
70
|
}
|
|
72
|
-
._1qto6jtb-1-
|
|
73
|
-
--_1qto6jt0-1-
|
|
74
|
-
--_1qto6jt3-1-
|
|
71
|
+
._1qto6jtb-1-2-0 {
|
|
72
|
+
--_1qto6jt0-1-2-0: var(--dt-box-shadows-surface-raised-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
73
|
+
--_1qto6jt3-1-2-0: var(--dt-box-shadows-surface-raised-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
|
|
75
74
|
box-shadow: var(--dt-box-shadows-surface-raised-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
76
75
|
}
|
|
77
|
-
._1qto6jtc-1-
|
|
78
|
-
--_1qto6jt0-1-
|
|
79
|
-
--_1qto6jt3-1-
|
|
76
|
+
._1qto6jtc-1-2-0 {
|
|
77
|
+
--_1qto6jt0-1-2-0: var(--dt-box-shadows-surface-floating-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
78
|
+
--_1qto6jt3-1-2-0: var(--dt-box-shadows-surface-floating-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 6px 14px -2px #2d2e4e3d);
|
|
80
79
|
box-shadow: var(--dt-box-shadows-surface-floating-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
|
|
81
80
|
}
|
|
82
|
-
._1qto6jtd-1-
|
|
83
|
-
--_1qto6jt1-1-
|
|
84
|
-
--_1qto6jt2-1-
|
|
81
|
+
._1qto6jtd-1-2-0 {
|
|
82
|
+
--_1qto6jt1-1-2-0: 1;
|
|
83
|
+
--_1qto6jt2-1-2-0: grab;
|
|
85
84
|
}
|
|
86
85
|
button.strato-surface:not(:disabled), a.strato-surface:not(:disabled) {
|
|
87
86
|
cursor: pointer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import clsx from "clsx";
|
|
2
2
|
import React, { forwardRef } from "react";
|
|
3
|
-
import
|
|
3
|
+
import * as styles from "./Surface.sty.js";
|
|
4
4
|
import { useAriaLabelingProps } from "../../core/hooks/useAriaLabelingProps.js";
|
|
5
5
|
import { useFocusRing } from "../../core/styles/useFocusRing.js";
|
|
6
6
|
import { mergeProps } from "../../core/utils/merge-props.js";
|
|
@@ -56,7 +56,7 @@ const Surface = /* @__PURE__ */ forwardRef(
|
|
|
56
56
|
className: clsx(
|
|
57
57
|
"strato-surface",
|
|
58
58
|
colorUtilsCSS({ color, variant: selected ? "accent" : "default" }),
|
|
59
|
-
|
|
59
|
+
styles.surface({ selected }),
|
|
60
60
|
focusClassName,
|
|
61
61
|
consumerClassName,
|
|
62
62
|
getSpacingSprinkles(remainingProps, { padding: 24 }),
|
|
@@ -69,7 +69,7 @@ const Surface = /* @__PURE__ */ forwardRef(
|
|
|
69
69
|
{
|
|
70
70
|
className: clsx(
|
|
71
71
|
"surface-background",
|
|
72
|
-
|
|
72
|
+
styles.pseudoElement({ elevation, dragged })
|
|
73
73
|
),
|
|
74
74
|
"aria-hidden": true
|
|
75
75
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/surface/Surface.tsx"],
|
|
4
|
-
"sourcesContent": ["import clsx from 'clsx';\nimport React, { type ElementType, type ReactElement, forwardRef } from 'react';\n\nimport
|
|
5
|
-
"mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAA8C,kBAAkB;AAEvE,
|
|
4
|
+
"sourcesContent": ["import clsx from 'clsx';\nimport React, { type ElementType, type ReactElement, forwardRef } from 'react';\n\nimport * as styles from './Surface.sty.js';\nimport { useAriaLabelingProps } from '../../core/hooks/useAriaLabelingProps.js';\nimport { useFocusRing } from '../../core/styles/useFocusRing.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 { 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 { colorUtilsCSS } from '../../styles/colorUtils.sty.js';\nimport {\n getSpacingSprinkles,\n type SpacingProps,\n} from '../../styles/getSpacingSprinkles.js';\nimport { textStyleCSS } from '../../styles/textStyle.sty.js';\nimport { useLayoutStyles } from '../hooks/useLayoutStyles.js';\nimport type { LayoutSizeCSS } from '../types/layout.types.js';\n\n//#region Typings\n\n/**\n * Accepted properties for Surface\n * @public\n */\nexport interface SurfaceOwnProps\n extends AriaLabelingProps,\n SpacingProps,\n LayoutSizeCSS,\n DOMProps,\n WithChildren,\n StylingProps,\n DataTestId,\n MaskingProps {\n /**\n * Color of the border when the surface has focus or is selected.\n * @defaultValue 'neutral'\n */\n color?: 'neutral' | 'primary' | 'success' | 'critical' | 'warning';\n /**\n * Defines if the surface is selected and should indicate that state with a border.\n * @defaultValue false\n */\n selected?: boolean;\n /**\n * Indicates if the surface is currently dragged and then applies the corresponding styles.\n * @defaultValue false\n */\n dragged?: boolean;\n /**\n * Defines the surface's elevation to the background.\n * @defaultValue 'flat'\n */\n elevation?: 'flat' | 'raised' | 'floating';\n}\n\n/**\n * Merge own props with others inherited from the underlying element type\n * @public\n */\nexport type SurfaceProps<E extends ElementType> = PolymorphicComponentProps<\n E,\n SurfaceOwnProps\n>;\n//#endregion\n\n/**\n * The Surface component is used to structure content on a page.\n * @public\n */\nexport const Surface: <E extends ElementType = 'div'>(\n props: SurfaceProps<E>,\n) => ReactElement | null = /* @__PURE__ */ forwardRef(\n <E extends ElementType>(\n props: SurfaceProps<E>,\n forwardedRef: typeof props.ref,\n ) => {\n const {\n elevation = 'flat',\n dragged = false,\n selected = false,\n color = 'neutral',\n children,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n as,\n ...remainingProps\n }: SurfaceProps<E> = props;\n\n const ariaLabelingProps = useAriaLabelingProps(remainingProps);\n\n const { layoutSizeStyles, remainingProps: surfaceProps } = useLayoutStyles(\n remainingProps,\n { paddingDefaults: { padding: 24 } },\n );\n\n const { focusProps, focusClassName } = useFocusRing({\n variant: color,\n });\n\n const surfaceMergedProps = {\n ...mergeProps(\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 surfaceProps as Record<string, unknown>,\n focusProps,\n ariaLabelingProps,\n ),\n };\n\n const Component = as ?? 'div';\n\n return (\n <Component\n {...surfaceMergedProps}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n ref={forwardedRef}\n className={clsx(\n 'strato-surface',\n colorUtilsCSS({ color, variant: selected ? 'accent' : 'default' }),\n styles.surface({ selected }),\n focusClassName,\n consumerClassName,\n getSpacingSprinkles(remainingProps, { padding: 24 }),\n textStyleCSS({ textStyle: 'base' }),\n )}\n style={{ ...layoutSizeStyles, ...consumerStyle }}\n >\n <div\n className={clsx(\n 'surface-background',\n styles.pseudoElement({ elevation, dragged }),\n )}\n aria-hidden={true}\n />\n {children}\n </Component>\n );\n },\n);\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,UAAU;AACjB,OAAO,SAA8C,kBAAkB;AAEvE,YAAY,YAAY;AACxB,SAAS,4BAA4B;AACrC,SAAS,oBAAoB;AAQ7B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B;AAAA,EACE;AAAA,OAEK;AACP,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAsDzB,MAAM,UAE8B;AAAA,EACzC,CACE,OACA,iBACG;AACH,UAAM;AAAA,MACJ,YAAY;AAAA,MACZ,UAAU;AAAA,MACV,WAAW;AAAA,MACX,QAAQ;AAAA,MACR;AAAA,MACA,WAAW;AAAA,MACX,OAAO;AAAA,MACP,eAAe;AAAA,MACf,mBAAmB;AAAA,MACnB,oBAAoB;AAAA,MACpB;AAAA,MACA,GAAG;AAAA,IACL,IAAqB;AAErB,UAAM,oBAAoB,qBAAqB,cAAc;AAE7D,UAAM,EAAE,kBAAkB,gBAAgB,aAAa,IAAI;AAAA,MACzD;AAAA,MACA,EAAE,iBAAiB,EAAE,SAAS,GAAG,EAAE;AAAA,IACrC;AAEA,UAAM,EAAE,YAAY,eAAe,IAAI,aAAa;AAAA,MAClD,SAAS;AAAA,IACX,CAAC;AAED,UAAM,qBAAqB;AAAA,MACzB,GAAG;AAAA;AAAA;AAAA;AAAA,QAID;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAEA,UAAM,YAAY,MAAM;AAExB,WACE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,QACJ,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QAClB,KAAK;AAAA,QACL,WAAW;AAAA,UACT;AAAA,UACA,cAAc,EAAE,OAAO,SAAS,WAAW,WAAW,UAAU,CAAC;AAAA,UACjE,OAAO,QAAQ,EAAE,SAAS,CAAC;AAAA,UAC3B;AAAA,UACA;AAAA,UACA,oBAAoB,gBAAgB,EAAE,SAAS,GAAG,CAAC;AAAA,UACnD,aAAa,EAAE,WAAW,OAAO,CAAC;AAAA,QACpC;AAAA,QACA,OAAO,EAAE,GAAG,kBAAkB,GAAG,cAAc;AAAA;AAAA,MAE/C;AAAA,QAAC;AAAA;AAAA,UACC,WAAW;AAAA,YACT;AAAA,YACA,OAAO,cAAc,EAAE,WAAW,QAAQ,CAAC;AAAA,UAC7C;AAAA,UACA,eAAa;AAAA;AAAA,MACf;AAAA,MACC;AAAA,IACH;AAAA,EAEJ;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../../styles/colorUtils.css";
|
|
2
2
|
import "./Surface.css";
|
|
3
3
|
import { createRuntimeFn as _7a468 } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var pseudoElement = _7a468({ defaultClassName: "_1qto6jt9-1-2-0", variantClassNames: { elevation: { flat: "_1qto6jta-1-2-0", raised: "_1qto6jtb-1-2-0", floating: "_1qto6jtc-1-2-0" }, dragged: { true: "_1qto6jtd-1-2-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
5
|
+
var surface = _7a468({ defaultClassName: "_1qto6jt6-1-2-0", variantClassNames: { selected: { true: "_1qto6jt7-1-2-0", false: "_1qto6jt8-1-2-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
pseudoElement,
|
|
8
|
+
surface
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=Surface.sty.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/surface/Surface.css.ts"],
|
|
4
|
-
"sourcesContent": ["import '../../styles/colorUtils.css';\nimport './Surface.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var
|
|
5
|
-
"mappings": "AAAA,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,
|
|
4
|
+
"sourcesContent": ["import '../../styles/colorUtils.css';\nimport './Surface.css';\nimport { createRuntimeFn as _7a468 } from '@vanilla-extract/recipes/createRuntimeFn';\nexport var pseudoElement = _7a468({defaultClassName:'_1qto6jt9-1-2-0',variantClassNames:{elevation:{flat:'_1qto6jta-1-2-0',raised:'_1qto6jtb-1-2-0',floating:'_1qto6jtc-1-2-0'},dragged:{true:'_1qto6jtd-1-2-0'}},defaultVariants:{},compoundVariants:[]});\nexport var surface = _7a468({defaultClassName:'_1qto6jt6-1-2-0',variantClassNames:{selected:{true:'_1qto6jt7-1-2-0',false:'_1qto6jt8-1-2-0'}},defaultVariants:{},compoundVariants:[]});"],
|
|
5
|
+
"mappings": "AAAA,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,gBAAgB,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,WAAU,EAAC,MAAK,mBAAkB,QAAO,mBAAkB,UAAS,kBAAiB,GAAE,SAAQ,EAAC,MAAK,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;AAClP,IAAI,UAAU,OAAO,EAAC,kBAAiB,mBAAkB,mBAAkB,EAAC,UAAS,EAAC,MAAK,mBAAkB,OAAM,kBAAiB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/layouts/surface/variables.css.ts"],
|
|
4
|
-
"sourcesContent": ["export var surfaceBorderRadius = 'var(--_1igzksy0-1-
|
|
4
|
+
"sourcesContent": ["export var surfaceBorderRadius = 'var(--_1igzksy0-1-2-0)';"],
|
|
5
5
|
"mappings": "AAAO,IAAI,sBAAsB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|