@dynatrace/strato-components 0.85.60 → 0.85.100
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/buttons/intent-button/IntentButton.d.ts +2 -2
- package/buttons/intent-button/IntentButton.js +5 -2
- package/buttons/intent-button/useIntentButton.js +4 -1
- package/content/progress/ProgressBar.css +14 -14
- package/content/progress/ProgressBar.d.ts +6 -0
- package/content/progress/ProgressBar.js +61 -51
- package/content/progress/ProgressBar.sty.js +2 -2
- package/content/progress/ProgressBarIcon.css +2 -2
- package/content/progress/ProgressBarIcon.sty.js +1 -1
- package/content/progress/ProgressBarLabel.css +4 -4
- package/content/progress/ProgressBarLabel.sty.js +1 -1
- package/content/progress/ProgressBarValue.css +9 -9
- package/content/progress/ProgressBarValue.sty.js +1 -1
- package/content/progress/ProgressCircle.css +15 -15
- package/content/progress/ProgressCircle.d.ts +6 -0
- package/content/progress/ProgressCircle.js +5 -2
- package/content/progress/ProgressCircle.sty.js +6 -6
- package/content/skeleton/Skeleton.css +6 -6
- package/content/skeleton/Skeleton.sty.js +1 -1
- package/core/styles/focusRing.css +66 -79
- package/core/styles/focusRing.sty.d.ts +0 -10
- package/core/styles/focusRing.sty.js +2 -2
- package/core/styles/useFocusRing.d.ts +1 -3
- package/core/styles/useFocusRing.js +1 -10
- package/core/types/role-variant.d.ts +2 -0
- package/core/utils/colorUtils.css +64 -64
- package/core/utils/colorUtils.sty.js +2 -2
- package/core/utils/isBrowser.js +3 -1
- 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 +2 -2
- package/esm/buttons/intent-button/IntentButton.js +5 -2
- package/esm/buttons/intent-button/IntentButton.js.map +2 -2
- package/esm/buttons/intent-button/useIntentButton.js +4 -1
- package/esm/buttons/intent-button/useIntentButton.js.map +2 -2
- package/esm/content/progress/ProgressBar.css +14 -14
- package/esm/content/progress/ProgressBar.js +61 -51
- package/esm/content/progress/ProgressBar.js.map +2 -2
- package/esm/content/progress/ProgressBar.sty.js +2 -2
- 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 +4 -4
- 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 +9 -9
- 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 +15 -15
- package/esm/content/progress/ProgressCircle.js +5 -2
- package/esm/content/progress/ProgressCircle.js.map +2 -2
- package/esm/content/progress/ProgressCircle.sty.js +6 -6
- 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/styles/focusRing.css +66 -79
- package/esm/core/styles/focusRing.sty.js +2 -2
- package/esm/core/styles/focusRing.sty.js.map +2 -2
- package/esm/core/styles/useFocusRing.js +1 -10
- package/esm/core/styles/useFocusRing.js.map +2 -2
- package/esm/core/types/role-variant.js.map +2 -2
- package/esm/core/utils/colorUtils.css +64 -64
- package/esm/core/utils/colorUtils.sty.js +2 -2
- package/esm/core/utils/colorUtils.sty.js.map +2 -2
- package/esm/core/utils/isBrowser.js +3 -1
- package/esm/core/utils/isBrowser.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/hooks/useBreakpoint.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 +64 -64
- package/esm/styles/colorUtils.sty.js +2 -2
- package/esm/styles/colorUtils.sty.js.map +2 -2
- package/esm/styles/container.css +47 -47
- package/esm/styles/container.sty.js +2 -2
- package/esm/styles/container.sty.js.map +2 -2
- package/esm/styles/ellipsis.css +1 -1
- package/esm/styles/ellipsis.sty.js +1 -1
- package/esm/styles/ellipsis.sty.js.map +1 -1
- package/esm/styles/field.css +153 -153
- package/esm/styles/field.sty.js +2 -2
- package/esm/styles/field.sty.js.map +2 -2
- package/esm/styles/sprinkles.css +262 -262
- package/esm/styles/sprinkles.sty.js +1 -1
- package/esm/styles/sprinkles.sty.js.map +2 -2
- package/esm/styles/textStyle.css +8 -8
- package/esm/styles/textStyle.sty.js +1 -1
- package/esm/styles/textStyle.sty.js.map +2 -2
- package/esm/typography/block-quote/Blockquote.css +2 -2
- package/esm/typography/block-quote/Blockquote.sty.js +1 -1
- package/esm/typography/block-quote/Blockquote.sty.js.map +1 -1
- package/esm/typography/code/Code.css +1 -1
- package/esm/typography/code/Code.sty.js +1 -1
- package/esm/typography/code/Code.sty.js.map +1 -1
- package/esm/typography/emphasis/Emphasis.css +1 -1
- package/esm/typography/emphasis/Emphasis.sty.js +1 -1
- package/esm/typography/emphasis/Emphasis.sty.js.map +1 -1
- package/esm/typography/external-link/ExternalLink.css +14 -14
- package/esm/typography/external-link/ExternalLink.js.map +1 -1
- package/esm/typography/external-link/ExternalLink.sty.js +1 -1
- package/esm/typography/external-link/ExternalLink.sty.js.map +1 -1
- package/esm/typography/heading/Heading.css +7 -7
- package/esm/typography/heading/Heading.sty.js +1 -1
- package/esm/typography/heading/Heading.sty.js.map +2 -2
- package/esm/typography/highlight/Highlight.css +1 -1
- package/esm/typography/highlight/Highlight.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 +5 -5
- package/esm/typography/link/Link.js.map +1 -1
- package/esm/typography/link/Link.sty.js +1 -1
- package/esm/typography/link/Link.sty.js.map +1 -1
- package/esm/typography/list/List.css +4 -4
- package/esm/typography/list/List.sty.js +2 -2
- package/esm/typography/list/List.sty.js.map +1 -1
- package/esm/typography/paragraph/Paragraph.css +3 -3
- package/esm/typography/paragraph/Paragraph.sty.js +1 -1
- package/esm/typography/paragraph/Paragraph.sty.js.map +2 -2
- package/esm/typography/strikethrough/Strikethrough.css +1 -1
- package/esm/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/esm/typography/strikethrough/Strikethrough.sty.js.map +1 -1
- package/esm/typography/strong/Strong.css +1 -1
- package/esm/typography/strong/Strong.sty.js +1 -1
- package/esm/typography/strong/Strong.sty.js.map +1 -1
- package/esm/typography/text/Text.css +3 -3
- package/esm/typography/text/Text.sty.js +1 -1
- package/esm/typography/text/Text.sty.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.css +4 -4
- package/esm/typography/text-ellipsis/TextEllipsis.js +14 -2
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +2 -2
- package/layouts/container/Container.css +4 -4
- package/layouts/container/Container.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 +5 -5
- package/styles/colorUtils.css +64 -64
- 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/testing/custom-render.d.ts +3 -1
- package/testing/jest/jest-preset.d.ts +3 -0
- package/testing/jest/jest-preset.js +3 -0
- package/testing/mocks/bounding-client-rect-mock.d.ts +6 -2
- package/testing/mocks/canvas-mock.d.ts +4 -1
- package/testing/mocks/create-mock-element.d.ts +3 -1
- package/testing/mocks/create-range-mock.d.ts +4 -1
- package/testing/mocks/dom-rect-mock.d.ts +8 -1
- package/testing/mocks/fetch-mock.d.ts +4 -1
- package/testing/mocks/intersection-observer-mock.d.ts +4 -1
- package/testing/mocks/match-media-mock.d.ts +4 -1
- package/testing/mocks/offset-height-mock.d.ts +6 -2
- package/testing/mocks/offset-width-mock.d.ts +6 -2
- package/testing/mocks/pointer-event-mock.d.ts +6 -2
- package/testing/mocks/resize-observer-mock.d.ts +6 -2
- package/testing/mocks/screen-size-mock.d.ts +6 -2
- package/testing/mocks/scroll-into-view-mock.d.ts +2 -0
- package/testing/mocks/scroll-width-mock.d.ts +6 -2
- package/testing/mocks/select-mock.d.ts +1 -0
- package/testing/mocks/table-virtualization-mock.d.ts +4 -1
- package/testing/mocks/text-ellipsis-mock.d.ts +6 -2
- package/testing/setup.d.ts +6 -2
- package/typography/block-quote/Blockquote.css +2 -2
- package/typography/block-quote/Blockquote.sty.js +1 -1
- package/typography/code/Code.css +1 -1
- package/typography/code/Code.sty.js +1 -1
- package/typography/emphasis/Emphasis.css +1 -1
- package/typography/emphasis/Emphasis.sty.js +1 -1
- package/typography/external-link/ExternalLink.css +14 -14
- package/typography/external-link/ExternalLink.d.ts +2 -2
- package/typography/external-link/ExternalLink.sty.js +1 -1
- package/typography/heading/Heading.css +7 -7
- package/typography/heading/Heading.sty.js +1 -1
- package/typography/highlight/Highlight.css +1 -1
- package/typography/highlight/Highlight.sty.js +1 -1
- package/typography/link/Link.css +5 -5
- package/typography/link/Link.d.ts +2 -2
- package/typography/link/Link.sty.js +1 -1
- package/typography/list/List.css +4 -4
- package/typography/list/List.sty.js +2 -2
- package/typography/paragraph/Paragraph.css +3 -3
- package/typography/paragraph/Paragraph.sty.js +1 -1
- package/typography/strikethrough/Strikethrough.css +1 -1
- package/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/typography/strong/Strong.css +1 -1
- package/typography/strong/Strong.sty.js +1 -1
- package/typography/text/Text.css +3 -3
- package/typography/text/Text.sty.js +1 -1
- package/typography/text-ellipsis/TextEllipsis.css +4 -4
- package/typography/text-ellipsis/TextEllipsis.js +14 -2
- package/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
- package/content/progress/utils.d.ts +0 -2
- package/content/progress/utils.js +0 -50
- package/esm/content/progress/utils.js +0 -22
- package/esm/content/progress/utils.js.map +0 -7
|
@@ -1,88 +1,75 @@
|
|
|
1
|
-
.
|
|
1
|
+
._z2r50s3-0-85-100 {
|
|
2
2
|
outline: none;
|
|
3
3
|
}
|
|
4
|
-
.
|
|
4
|
+
._z2r50s3-0-85-100:focus-visible {
|
|
5
5
|
outline: none;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
._z2r50s4-0-85-100 {
|
|
8
8
|
border-radius: calc(var(--dt-borders-radius-field-subdued, 4px) / 2);
|
|
9
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--
|
|
10
|
-
background-color: var(--
|
|
11
|
-
}
|
|
12
|
-
.
|
|
13
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--
|
|
14
|
-
}
|
|
15
|
-
.
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
}
|
|
20
|
-
.
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
}
|
|
25
|
-
.
|
|
26
|
-
--
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
}
|
|
30
|
-
.
|
|
31
|
-
--
|
|
32
|
-
--
|
|
33
|
-
--
|
|
34
|
-
}
|
|
35
|
-
.
|
|
36
|
-
--
|
|
37
|
-
--
|
|
38
|
-
--
|
|
39
|
-
}
|
|
40
|
-
.
|
|
41
|
-
--z2r50s0: var(--dt-colors-border-on-accent-default, #f3f3f7);
|
|
42
|
-
--z2r50s1: var(--dt-colors-border-on-accent-default, #f3f3f7);
|
|
43
|
-
--z2r50s2: var(--dt-colors-background-field-on-accent-emphasized, #f3f3f733);
|
|
44
|
-
}
|
|
45
|
-
.z2r50sc:focus-within {
|
|
9
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-0-85-100);
|
|
10
|
+
background-color: var(--_z2r50s2-0-85-100);
|
|
11
|
+
}
|
|
12
|
+
._z2r50s5-0-85-100._z2r50s5-0-85-100 {
|
|
13
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-0-85-100), inset 0 0 0 calc(var(--dt-borders-width-emphasized, 2px) + 1px) var(--_z2r50s1-0-85-100);
|
|
14
|
+
}
|
|
15
|
+
._z2r50s6-0-85-100 {
|
|
16
|
+
--_z2r50s0-0-85-100: var(--dt-colors-border-neutral-accent, #545587);
|
|
17
|
+
--_z2r50s1-0-85-100: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
18
|
+
--_z2r50s2-0-85-100: var(--dt-colors-background-field-neutral-emphasized, #dadbe7);
|
|
19
|
+
}
|
|
20
|
+
._z2r50s7-0-85-100 {
|
|
21
|
+
--_z2r50s0-0-85-100: var(--dt-colors-border-primary-accent, #454cc9);
|
|
22
|
+
--_z2r50s1-0-85-100: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
23
|
+
--_z2r50s2-0-85-100: var(--dt-colors-background-field-primary-emphasized, #d6dbf4);
|
|
24
|
+
}
|
|
25
|
+
._z2r50s8-0-85-100 {
|
|
26
|
+
--_z2r50s0-0-85-100: var(--dt-colors-border-success-accent, #2c6360);
|
|
27
|
+
--_z2r50s1-0-85-100: var(--dt-colors-border-success-default, #cad6d7);
|
|
28
|
+
--_z2r50s2-0-85-100: var(--dt-colors-background-field-success-emphasized, #d4dddf);
|
|
29
|
+
}
|
|
30
|
+
._z2r50s9-0-85-100 {
|
|
31
|
+
--_z2r50s0-0-85-100: var(--dt-colors-border-warning-accent, #805100);
|
|
32
|
+
--_z2r50s1-0-85-100: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
33
|
+
--_z2r50s2-0-85-100: var(--dt-colors-background-field-warning-emphasized, #f4e8de);
|
|
34
|
+
}
|
|
35
|
+
._z2r50sa-0-85-100 {
|
|
36
|
+
--_z2r50s0-0-85-100: var(--dt-colors-border-critical-accent, #b80031);
|
|
37
|
+
--_z2r50s1-0-85-100: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
38
|
+
--_z2r50s2-0-85-100: var(--dt-colors-background-field-critical-emphasized, #f2d7d9);
|
|
39
|
+
}
|
|
40
|
+
._z2r50sb-0-85-100:focus-within {
|
|
46
41
|
outline: none;
|
|
47
|
-
:focus-visible {
|
|
48
|
-
outline: none;
|
|
49
|
-
}
|
|
50
42
|
}
|
|
51
|
-
.
|
|
43
|
+
._z2r50sc-0-85-100:focus-within {
|
|
52
44
|
border-radius: calc(var(--dt-borders-radius-field-subdued, 4px) / 2);
|
|
53
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--
|
|
54
|
-
background-color: var(--
|
|
55
|
-
}
|
|
56
|
-
.
|
|
57
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--
|
|
58
|
-
}
|
|
59
|
-
.
|
|
60
|
-
--
|
|
61
|
-
--
|
|
62
|
-
--
|
|
63
|
-
}
|
|
64
|
-
.
|
|
65
|
-
--
|
|
66
|
-
--
|
|
67
|
-
--
|
|
68
|
-
}
|
|
69
|
-
.
|
|
70
|
-
--
|
|
71
|
-
--
|
|
72
|
-
--
|
|
73
|
-
}
|
|
74
|
-
.
|
|
75
|
-
--
|
|
76
|
-
--
|
|
77
|
-
--
|
|
78
|
-
}
|
|
79
|
-
.
|
|
80
|
-
--
|
|
81
|
-
--
|
|
82
|
-
--
|
|
83
|
-
}
|
|
84
|
-
.z2r50sk {
|
|
85
|
-
--z2r50s0: var(--dt-colors-border-on-accent-default, #f3f3f7);
|
|
86
|
-
--z2r50s1: var(--dt-colors-border-on-accent-default, #f3f3f7);
|
|
87
|
-
--z2r50s2: var(--dt-colors-background-field-on-accent-emphasized, #f3f3f733);
|
|
45
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-0-85-100);
|
|
46
|
+
background-color: var(--_z2r50s2-0-85-100);
|
|
47
|
+
}
|
|
48
|
+
._z2r50sd-0-85-100:focus-within {
|
|
49
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-0-85-100), inset 0 0 0 calc(var(--dt-borders-width-emphasized, 2px) + 1px) var(--_z2r50s1-0-85-100);
|
|
50
|
+
}
|
|
51
|
+
._z2r50se-0-85-100 {
|
|
52
|
+
--_z2r50s0-0-85-100: var(--dt-colors-border-neutral-accent, #545587);
|
|
53
|
+
--_z2r50s1-0-85-100: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
54
|
+
--_z2r50s2-0-85-100: var(--dt-colors-background-field-neutral-emphasized, #dadbe7);
|
|
55
|
+
}
|
|
56
|
+
._z2r50sf-0-85-100 {
|
|
57
|
+
--_z2r50s0-0-85-100: var(--dt-colors-border-primary-accent, #454cc9);
|
|
58
|
+
--_z2r50s1-0-85-100: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
59
|
+
--_z2r50s2-0-85-100: var(--dt-colors-background-field-primary-emphasized, #d6dbf4);
|
|
60
|
+
}
|
|
61
|
+
._z2r50sg-0-85-100 {
|
|
62
|
+
--_z2r50s0-0-85-100: var(--dt-colors-border-success-accent, #2c6360);
|
|
63
|
+
--_z2r50s1-0-85-100: var(--dt-colors-border-success-default, #cad6d7);
|
|
64
|
+
--_z2r50s2-0-85-100: var(--dt-colors-background-field-success-emphasized, #d4dddf);
|
|
65
|
+
}
|
|
66
|
+
._z2r50sh-0-85-100 {
|
|
67
|
+
--_z2r50s0-0-85-100: var(--dt-colors-border-warning-accent, #805100);
|
|
68
|
+
--_z2r50s1-0-85-100: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
69
|
+
--_z2r50s2-0-85-100: var(--dt-colors-background-field-warning-emphasized, #f4e8de);
|
|
70
|
+
}
|
|
71
|
+
._z2r50si-0-85-100 {
|
|
72
|
+
--_z2r50s0-0-85-100: var(--dt-colors-border-critical-accent, #b80031);
|
|
73
|
+
--_z2r50s1-0-85-100: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
74
|
+
--_z2r50s2-0-85-100: var(--dt-colors-background-field-critical-emphasized, #f2d7d9);
|
|
88
75
|
}
|
|
@@ -39,11 +39,6 @@ export declare const focusRingCSS: import("@vanilla-extract/recipes").RuntimeFn<
|
|
|
39
39
|
[x: string]: string;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
onAccent: {
|
|
43
|
-
vars: {
|
|
44
|
-
[x: string]: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
42
|
};
|
|
48
43
|
}>;
|
|
49
44
|
export declare const focusRingFocusWithinCSS: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
@@ -87,10 +82,5 @@ export declare const focusRingFocusWithinCSS: import("@vanilla-extract/recipes")
|
|
|
87
82
|
[x: string]: string;
|
|
88
83
|
};
|
|
89
84
|
};
|
|
90
|
-
onAccent: {
|
|
91
|
-
vars: {
|
|
92
|
-
[x: string]: string;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
85
|
};
|
|
96
86
|
}>;
|
|
@@ -23,5 +23,5 @@ __export(focusRing_css_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(focusRing_css_exports);
|
|
24
24
|
var import_focusRing_css_ts_vanilla = require("./focusRing.css");
|
|
25
25
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
-
var focusRingCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "
|
|
27
|
-
var focusRingFocusWithinCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "
|
|
26
|
+
var focusRingCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_z2r50s3-0-85-100", variantClassNames: { minimal: { true: "_z2r50s4-0-85-100", false: "_z2r50s5-0-85-100" }, variant: { neutral: "_z2r50s6-0-85-100", primary: "_z2r50s7-0-85-100", success: "_z2r50s8-0-85-100", warning: "_z2r50s9-0-85-100", critical: "_z2r50sa-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
|
|
27
|
+
var focusRingFocusWithinCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_z2r50sb-0-85-100", variantClassNames: { minimal: { true: "_z2r50sc-0-85-100", false: "_z2r50sd-0-85-100" }, variant: { neutral: "_z2r50se-0-85-100", primary: "_z2r50sf-0-85-100", success: "_z2r50sg-0-85-100", warning: "_z2r50sh-0-85-100", critical: "_z2r50si-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { FocusEvent } from 'react';
|
|
2
2
|
export type Modality = 'keyboard' | 'pointer' | 'touch' | 'unknown';
|
|
3
3
|
/** @internal */
|
|
4
|
-
export
|
|
5
|
-
/** @internal */
|
|
6
|
-
export type VariantType = (typeof variants)[number];
|
|
4
|
+
export type VariantType = 'neutral' | 'primary' | 'success' | 'warning' | 'critical';
|
|
7
5
|
/** @internal */
|
|
8
6
|
export type UseFocusRingProps = {
|
|
9
7
|
/**
|
|
@@ -17,21 +17,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
18
|
var useFocusRing_exports = {};
|
|
19
19
|
__export(useFocusRing_exports, {
|
|
20
|
-
useFocusRing: () => useFocusRing
|
|
21
|
-
variants: () => variants
|
|
20
|
+
useFocusRing: () => useFocusRing
|
|
22
21
|
});
|
|
23
22
|
module.exports = __toCommonJS(useFocusRing_exports);
|
|
24
23
|
var import_react = require("react");
|
|
25
24
|
var import_focusRing_css = require("./focusRing.sty.js");
|
|
26
25
|
var import__ = require("../index.js");
|
|
27
|
-
const variants = [
|
|
28
|
-
"neutral",
|
|
29
|
-
"primary",
|
|
30
|
-
"success",
|
|
31
|
-
"warning",
|
|
32
|
-
"critical",
|
|
33
|
-
"onAccent"
|
|
34
|
-
];
|
|
35
26
|
function useFocusRing(props = {}) {
|
|
36
27
|
const {
|
|
37
28
|
variant = "neutral",
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Defines role / color variants
|
|
3
3
|
* @public
|
|
4
|
+
* @deprecated Will be removed.
|
|
4
5
|
*/
|
|
5
6
|
export declare const roleVariants: readonly ["neutral", "primary", "success", "warning", "critical", "onAccent"];
|
|
6
7
|
/**
|
|
7
8
|
* Defines the types of role variants
|
|
8
9
|
* @public
|
|
10
|
+
* @deprecated Will be removed. You can use 'neutral' | 'primary' | 'success' | 'warning' | 'critical' instead.
|
|
9
11
|
*/
|
|
10
12
|
export type RoleVariantType = (typeof roleVariants)[number];
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
.
|
|
2
|
-
--
|
|
3
|
-
--
|
|
4
|
-
--
|
|
1
|
+
._k096v44-0-85-100 {
|
|
2
|
+
--_k096v40-0-85-100: var(--dt-colors-text-critical-default, #b80031);
|
|
3
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-critical-default, #b80031);
|
|
4
|
+
--_k096v42-0-85-100: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
5
5
|
}
|
|
6
|
-
.
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
6
|
+
._k096v45-0-85-100 {
|
|
7
|
+
--_k096v40-0-85-100: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
8
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-neutral-default, #2b2a58);
|
|
9
|
+
--_k096v42-0-85-100: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
10
10
|
}
|
|
11
|
-
.
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
11
|
+
._k096v46-0-85-100 {
|
|
12
|
+
--_k096v40-0-85-100: var(--dt-colors-text-primary-default, #454cc9);
|
|
13
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-primary-default, #454cc9);
|
|
14
|
+
--_k096v42-0-85-100: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
15
15
|
}
|
|
16
|
-
.
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
16
|
+
._k096v47-0-85-100 {
|
|
17
|
+
--_k096v40-0-85-100: var(--dt-colors-text-success-default, #2c6360);
|
|
18
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-success-default, #2c6360);
|
|
19
|
+
--_k096v42-0-85-100: var(--dt-colors-border-success-default, #cad6d7);
|
|
20
20
|
}
|
|
21
|
-
.
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
21
|
+
._k096v48-0-85-100 {
|
|
22
|
+
--_k096v40-0-85-100: var(--dt-colors-text-warning-default, #805100);
|
|
23
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-warning-default, #805100);
|
|
24
|
+
--_k096v42-0-85-100: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
25
25
|
}
|
|
26
|
-
.
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
--
|
|
26
|
+
._k096v49-0-85-100 {
|
|
27
|
+
--_k096v40-0-85-100: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
28
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
|
|
29
|
+
--_k096v42-0-85-100: var(--dt-colors-border-neutral-on-accent-default, #f3f3f6);
|
|
30
30
|
}
|
|
31
|
-
.
|
|
32
|
-
--
|
|
33
|
-
--
|
|
34
|
-
--
|
|
31
|
+
._k096v4e-0-85-100 {
|
|
32
|
+
--_k096v40-0-85-100: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
|
|
33
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-primary-on-accent-default, #f4f4fb);
|
|
34
|
+
--_k096v42-0-85-100: var(--dt-colors-border-primary-accent, #454cc9);
|
|
35
35
|
}
|
|
36
|
-
.
|
|
37
|
-
--
|
|
38
|
-
--
|
|
39
|
-
--
|
|
36
|
+
._k096v4f-0-85-100 {
|
|
37
|
+
--_k096v40-0-85-100: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
|
|
38
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-success-on-accent-default, #f1f4f4);
|
|
39
|
+
--_k096v42-0-85-100: var(--dt-colors-border-success-accent, #2c6360);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
42
|
-
--
|
|
43
|
-
--
|
|
44
|
-
--
|
|
41
|
+
._k096v4g-0-85-100 {
|
|
42
|
+
--_k096v40-0-85-100: var(--dt-colors-text-warning-on-accent-default, #272025);
|
|
43
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-warning-on-accent-default, #272025);
|
|
44
|
+
--_k096v42-0-85-100: var(--dt-colors-border-warning-accent, #805100);
|
|
45
45
|
}
|
|
46
|
-
.
|
|
47
|
-
--
|
|
48
|
-
--
|
|
49
|
-
--
|
|
46
|
+
._k096v4h-0-85-100 {
|
|
47
|
+
--_k096v40-0-85-100: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
|
|
48
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-critical-on-accent-default, #f9f1f3);
|
|
49
|
+
--_k096v42-0-85-100: var(--dt-colors-border-critical-accent, #b80031);
|
|
50
50
|
}
|
|
51
|
-
.
|
|
52
|
-
--
|
|
53
|
-
--
|
|
54
|
-
--
|
|
51
|
+
._k096v4i-0-85-100 {
|
|
52
|
+
--_k096v40-0-85-100: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
53
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
|
|
54
|
+
--_k096v42-0-85-100: var(--dt-colors-border-neutral-accent, #545587);
|
|
55
55
|
}
|
|
56
|
-
.
|
|
57
|
-
--
|
|
58
|
-
--
|
|
59
|
-
--
|
|
56
|
+
._k096v4j-0-85-100 {
|
|
57
|
+
--_k096v40-0-85-100: var(--dt-colors-text-primary-disabled, #54558780);
|
|
58
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-primary-disabled, #54558780);
|
|
59
|
+
--_k096v42-0-85-100: var(--dt-colors-border-primary-disabled, #d2d3e180);
|
|
60
60
|
}
|
|
61
|
-
.
|
|
62
|
-
--
|
|
63
|
-
--
|
|
64
|
-
--
|
|
61
|
+
._k096v4k-0-85-100 {
|
|
62
|
+
--_k096v40-0-85-100: var(--dt-colors-text-success-disabled, #54558780);
|
|
63
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-success-disabled, #54558780);
|
|
64
|
+
--_k096v42-0-85-100: var(--dt-colors-border-success-disabled, #d2d3e180);
|
|
65
65
|
}
|
|
66
|
-
.
|
|
67
|
-
--
|
|
68
|
-
--
|
|
69
|
-
--
|
|
66
|
+
._k096v4l-0-85-100 {
|
|
67
|
+
--_k096v40-0-85-100: var(--dt-colors-text-warning-disabled, #54558780);
|
|
68
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-warning-disabled, #54558780);
|
|
69
|
+
--_k096v42-0-85-100: var(--dt-colors-border-warning-disabled, #d2d3e180);
|
|
70
70
|
}
|
|
71
|
-
.
|
|
72
|
-
--
|
|
73
|
-
--
|
|
74
|
-
--
|
|
71
|
+
._k096v4m-0-85-100 {
|
|
72
|
+
--_k096v40-0-85-100: var(--dt-colors-text-critical-disabled, #54558780);
|
|
73
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-critical-disabled, #54558780);
|
|
74
|
+
--_k096v42-0-85-100: var(--dt-colors-border-critical-disabled, #d2d3e180);
|
|
75
75
|
}
|
|
76
|
-
.
|
|
77
|
-
--
|
|
78
|
-
--
|
|
79
|
-
--
|
|
76
|
+
._k096v4n-0-85-100 {
|
|
77
|
+
--_k096v40-0-85-100: var(--dt-colors-text-neutral-disabled, #54558780);
|
|
78
|
+
--_k096v41-0-85-100: var(--dt-colors-icon-neutral-disabled, #54558780);
|
|
79
|
+
--_k096v42-0-85-100: var(--dt-colors-border-neutral-disabled, #d2d3e180);
|
|
80
80
|
}
|
|
@@ -23,5 +23,5 @@ __export(colorUtils_css_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(colorUtils_css_exports);
|
|
24
24
|
var import_colorUtils_css_ts_vanilla = require("./colorUtils.css");
|
|
25
25
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
-
var colorUtilsCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "
|
|
27
|
-
var colorUtilsVars = { text: "var(--
|
|
26
|
+
var colorUtilsCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_k096v43-0-85-100", variantClassNames: { color: { critical: "_k096v44-0-85-100", neutral: "_k096v45-0-85-100", primary: "_k096v46-0-85-100", success: "_k096v47-0-85-100", warning: "_k096v48-0-85-100", onAccent: "_k096v49-0-85-100" }, variant: { "default": "_k096v4a-0-85-100", accent: "_k096v4b-0-85-100" }, disabled: { true: "_k096v4c-0-85-100", false: "_k096v4d-0-85-100" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "_k096v4e-0-85-100"], [{ color: "success", variant: "accent" }, "_k096v4f-0-85-100"], [{ color: "warning", variant: "accent" }, "_k096v4g-0-85-100"], [{ color: "critical", variant: "accent" }, "_k096v4h-0-85-100"], [{ color: "neutral", variant: "accent" }, "_k096v4i-0-85-100"], [{ color: "primary", disabled: true }, "_k096v4j-0-85-100"], [{ color: "success", disabled: true }, "_k096v4k-0-85-100"], [{ color: "warning", disabled: true }, "_k096v4l-0-85-100"], [{ color: "critical", disabled: true }, "_k096v4m-0-85-100"], [{ color: "neutral", disabled: true }, "_k096v4n-0-85-100"]] });
|
|
27
|
+
var colorUtilsVars = { text: "var(--_k096v40-0-85-100)", icon: "var(--_k096v41-0-85-100)", borderColor: "var(--_k096v42-0-85-100)" };
|
package/core/utils/isBrowser.js
CHANGED
|
@@ -21,5 +21,7 @@ __export(isBrowser_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(isBrowser_exports);
|
|
23
23
|
const isBrowser = (() => {
|
|
24
|
-
return !!(typeof window !== "undefined" && window.document &&
|
|
24
|
+
return !!(typeof window !== "undefined" && window.document && /* eslint-disable-next-line deprecation/deprecation --
|
|
25
|
+
one overload of createElement is deprecated, apparently our plugin does not get that */
|
|
26
|
+
window.document.createElement);
|
|
25
27
|
})();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
._10kgnsa0 {
|
|
1
|
+
._10kgnsa0-0-85-100 {
|
|
2
2
|
font-family: var(--dt-typography-text-base-default-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
3
3
|
font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
|
|
4
4
|
font-size: var(--dt-typography-text-base-default-size, 14px);
|
|
5
5
|
line-height: var(--dt-typography-text-base-default-line-height, 1.4285714286);
|
|
6
6
|
text-decoration: var(--dt-typography-text-base-default-text-decoration, none);
|
|
7
7
|
text-transform: none;
|
|
8
|
-
background: var(--
|
|
9
|
-
color: var(--
|
|
8
|
+
background: var(--_bx32h3-0-85-100);
|
|
9
|
+
color: var(--_bx32h0-0-85-100);
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
position: relative;
|
|
12
12
|
align-items: center;
|
|
@@ -23,46 +23,46 @@
|
|
|
23
23
|
transition-duration: var(--dt-animations-fade-out-duration-base, 250ms);
|
|
24
24
|
transition-property: color, background-color, transform;
|
|
25
25
|
}
|
|
26
|
-
._10kgnsa0:hover {
|
|
26
|
+
._10kgnsa0-0-85-100:hover {
|
|
27
27
|
transition-timing-function: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1));
|
|
28
28
|
transition-duration: var(--dt-animations-fade-in-duration-base, 250ms);
|
|
29
29
|
}
|
|
30
|
-
._10kgnsa1 {
|
|
30
|
+
._10kgnsa1-0-85-100 {
|
|
31
31
|
text-align: start;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
}
|
|
34
|
-
._10kgnsa2 {
|
|
34
|
+
._10kgnsa2-0-85-100 {
|
|
35
35
|
text-align: center;
|
|
36
36
|
justify-content: center;
|
|
37
37
|
}
|
|
38
|
-
._10kgnsa3 {
|
|
38
|
+
._10kgnsa3-0-85-100 {
|
|
39
39
|
padding-top: var(--dt-spacings-size-2, 2px);
|
|
40
40
|
padding-bottom: var(--dt-spacings-size-2, 2px);
|
|
41
41
|
padding-left: var(--dt-spacings-size-4, 4px);
|
|
42
42
|
padding-right: var(--dt-spacings-size-4, 4px);
|
|
43
43
|
gap: var(--dt-spacings-size-2, 2px);
|
|
44
44
|
}
|
|
45
|
-
._10kgnsa4 {
|
|
45
|
+
._10kgnsa4-0-85-100 {
|
|
46
46
|
padding-top: var(--dt-spacings-size-6, 6px);
|
|
47
47
|
padding-bottom: var(--dt-spacings-size-6, 6px);
|
|
48
48
|
padding-left: var(--dt-spacings-size-8, 8px);
|
|
49
49
|
padding-right: var(--dt-spacings-size-8, 8px);
|
|
50
50
|
gap: var(--dt-spacings-size-4, 4px);
|
|
51
51
|
}
|
|
52
|
-
._10kgnsa5 {
|
|
52
|
+
._10kgnsa5-0-85-100 {
|
|
53
53
|
cursor: not-allowed;
|
|
54
54
|
}
|
|
55
|
-
._10kgnsa6 {
|
|
55
|
+
._10kgnsa6-0-85-100 {
|
|
56
56
|
cursor: not-allowed;
|
|
57
|
-
background: var(--
|
|
57
|
+
background: var(--_bx32h2-0-85-100);
|
|
58
58
|
}
|
|
59
|
-
._10kgnsa7 {
|
|
59
|
+
._10kgnsa7-0-85-100 {
|
|
60
60
|
width: 100%;
|
|
61
61
|
}
|
|
62
|
-
._10kgnsa8 {
|
|
62
|
+
._10kgnsa8-0-85-100 {
|
|
63
63
|
width: fit-content;
|
|
64
64
|
}
|
|
65
|
-
._10kgnsa9 {
|
|
65
|
+
._10kgnsa9-0-85-100 {
|
|
66
66
|
position: absolute;
|
|
67
67
|
top: 0;
|
|
68
68
|
left: 0;
|
|
@@ -74,19 +74,19 @@
|
|
|
74
74
|
align-items: center;
|
|
75
75
|
z-index: 1;
|
|
76
76
|
}
|
|
77
|
-
._10kgnsa3 ._10kgnsaa:not(:has(svg:only-child)) {
|
|
77
|
+
._10kgnsa3-0-85-100 ._10kgnsaa-0-85-100:not(:has(svg:only-child)) {
|
|
78
78
|
padding-top: 0;
|
|
79
79
|
padding-bottom: 0;
|
|
80
80
|
padding-left: 2px;
|
|
81
81
|
padding-right: 2px;
|
|
82
82
|
}
|
|
83
|
-
._10kgnsa4 ._10kgnsaa:not(:has(svg:only-child)) {
|
|
83
|
+
._10kgnsa4-0-85-100 ._10kgnsaa-0-85-100:not(:has(svg:only-child)) {
|
|
84
84
|
padding-top: 0;
|
|
85
85
|
padding-bottom: 0;
|
|
86
86
|
padding-left: 4px;
|
|
87
87
|
padding-right: 4px;
|
|
88
88
|
}
|
|
89
|
-
._10kgnsac {
|
|
89
|
+
._10kgnsac-0-85-100 {
|
|
90
90
|
display: inline-flex;
|
|
91
91
|
min-width: 0;
|
|
92
92
|
max-width: 100%;
|
|
@@ -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", variantClassNames: { textAlign: { start: "_10kgnsa1", center: "_10kgnsa2" }, size: { condensed: "_10kgnsa3", "default": "_10kgnsa4" }, disabled: { true: "_10kgnsa5" }, readOnly: { true: "_10kgnsa6" } }, defaultVariants: { size: "default", textAlign: "center", disabled: false }, compoundVariants: [] });
|
|
6
|
-
var buttonLabelCSS = _7a468({ defaultClassName: "_10kgnsaa", variantClassNames: { textual: { true: "
|
|
7
|
-
var buttonLoadingCSS = "_10kgnsa9";
|
|
8
|
-
var buttonWidthsCSS = { full: "_10kgnsa7", content: "_10kgnsa8" };
|
|
5
|
+
var buttonCSS = _7a468({ defaultClassName: "_10kgnsa0-0-85-100", variantClassNames: { textAlign: { start: "_10kgnsa1-0-85-100", center: "_10kgnsa2-0-85-100" }, size: { condensed: "_10kgnsa3-0-85-100", "default": "_10kgnsa4-0-85-100" }, disabled: { true: "_10kgnsa5-0-85-100" }, readOnly: { true: "_10kgnsa6-0-85-100" } }, defaultVariants: { size: "default", textAlign: "center", disabled: false }, compoundVariants: [] });
|
|
6
|
+
var buttonLabelCSS = _7a468({ defaultClassName: "_10kgnsaa-0-85-100", variantClassNames: { textual: { true: "_oqqp1n0-0-85-100", false: "_10kgnsac-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
|
|
7
|
+
var buttonLoadingCSS = "_10kgnsa9-0-85-100";
|
|
8
|
+
var buttonWidthsCSS = { full: "_10kgnsa7-0-85-100", content: "_10kgnsa8-0-85-100" };
|
|
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',variantClassNames:{textAlign:{start:'_10kgnsa1',center:'_10kgnsa2'},size:{condensed:'_10kgnsa3','default':'_10kgnsa4'},disabled:{true:'_10kgnsa5'},readOnly:{true:'_10kgnsa6'}},defaultVariants:{size:'default',textAlign:'center',disabled:false},compoundVariants:[]});\nexport var buttonLabelCSS = _7a468({defaultClassName:'_10kgnsaa',variantClassNames:{textual:{true:'
|
|
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-0-85-100',variantClassNames:{textAlign:{start:'_10kgnsa1-0-85-100',center:'_10kgnsa2-0-85-100'},size:{condensed:'_10kgnsa3-0-85-100','default':'_10kgnsa4-0-85-100'},disabled:{true:'_10kgnsa5-0-85-100'},readOnly:{true:'_10kgnsa6-0-85-100'}},defaultVariants:{size:'default',textAlign:'center',disabled:false},compoundVariants:[]});\nexport var buttonLabelCSS = _7a468({defaultClassName:'_10kgnsaa-0-85-100',variantClassNames:{textual:{true:'_oqqp1n0-0-85-100',false:'_10kgnsac-0-85-100'}},defaultVariants:{},compoundVariants:[]});\nexport var buttonLoadingCSS = '_10kgnsa9-0-85-100';\nexport var buttonWidthsCSS = {full:'_10kgnsa7-0-85-100',content:'_10kgnsa8-0-85-100'};"],
|
|
5
|
+
"mappings": "AAAA,OAAO;AACP,OAAO;AACP,OAAO;AACP,SAAS,mBAAmB,cAAc;AACnC,IAAI,YAAY,OAAO,EAAC,kBAAiB,sBAAqB,mBAAkB,EAAC,WAAU,EAAC,OAAM,sBAAqB,QAAO,qBAAoB,GAAE,MAAK,EAAC,WAAU,sBAAqB,WAAU,qBAAoB,GAAE,UAAS,EAAC,MAAK,qBAAoB,GAAE,UAAS,EAAC,MAAK,qBAAoB,EAAC,GAAE,iBAAgB,EAAC,MAAK,WAAU,WAAU,UAAS,UAAS,MAAK,GAAE,kBAAiB,CAAC,EAAC,CAAC;AAC3X,IAAI,iBAAiB,OAAO,EAAC,kBAAiB,sBAAqB,mBAAkB,EAAC,SAAQ,EAAC,MAAK,qBAAoB,OAAM,qBAAoB,EAAC,GAAE,iBAAgB,CAAC,GAAE,kBAAiB,CAAC,EAAC,CAAC;AAC5L,IAAI,mBAAmB;AACvB,IAAI,kBAAkB,EAAC,MAAK,sBAAqB,SAAQ,qBAAoB;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -20,8 +20,11 @@ const IntentButton = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
|
20
20
|
"data-dtrum-allow": dataDtrumAllow,
|
|
21
21
|
...remainingProps
|
|
22
22
|
} = props;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
let label = children;
|
|
24
|
+
if (typeof label === "string") {
|
|
25
|
+
label = label.trim();
|
|
26
|
+
}
|
|
27
|
+
const ariaLabel = ariaLabelProp || intl.formatMessage({
|
|
25
28
|
description: "Intent button open label",
|
|
26
29
|
defaultMessage: "Open with",
|
|
27
30
|
id: "JQOGuaGgqJObmSY1"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/buttons/intent-button/IntentButton.tsx"],
|
|
4
|
-
"sourcesContent": ["import React, { forwardRef } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { OpenWithIcon } from '@dynatrace/strato-icons';\nimport { type IntentPayload } from '@dynatrace-sdk/navigation';\n\nimport { useIntentButton } from './useIntentButton.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 { Button, type ButtonOwnProps } from '../button/Button.js';\n\n//#region Typings\n/**\n * Accepted properties for the Button.\n * @public\n */\nexport interface IntentButtonPropsBase\n extends Omit<ButtonOwnProps, 'loading' | 'type'>,\n AriaLabelingProps,\n DOMProps,\n StylingProps,\n DataTestId,\n MaskingProps {\n /** Intent payload passed between apps.*/\n payload: IntentPayload;\n\n /** Intended for setting a custom button label. When nothing is set, no label is shown. */\n children?:
|
|
5
|
-
"mappings": "AAAA,OAAO,SAAS,
|
|
4
|
+
"sourcesContent": ["import React, { forwardRef, type ReactNode } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { OpenWithIcon } from '@dynatrace/strato-icons';\nimport { type IntentPayload } from '@dynatrace-sdk/navigation';\n\nimport { useIntentButton } from './useIntentButton.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 { Button, type ButtonOwnProps } from '../button/Button.js';\n\n//#region Typings\n/**\n * Accepted properties for the Button.\n * @public\n */\nexport interface IntentButtonPropsBase\n extends Omit<ButtonOwnProps, 'loading' | 'type'>,\n AriaLabelingProps,\n DOMProps,\n StylingProps,\n DataTestId,\n MaskingProps {\n /** Intent payload passed between apps.*/\n payload: IntentPayload;\n\n /** Intended for setting a custom button label. When nothing is set, no label is shown. */\n children?: ReactNode;\n}\n\n/**\n * Merge own props with ID props.\n * Props for recommending an app to receive the intent. Either both properties or none of them needs to be specified.\n * @public\n */\nexport type IntentButtonProps = IntentButtonPropsBase &\n (\n | {\n appId?: never;\n intentId?: never;\n }\n | {\n /**\n * ID of the app that will be launched to handle the intent.\n */\n appId: string;\n\n /**\n * ID of the action that will be passed to the app.\n */\n intentId: string;\n }\n );\n\n//#endregion\n\n/**\n * The `IntentButton` is a dedicated button component for sending\n * {@link https://developer.dynatrace.com/develop/intents/ | intents}.\n * It takes care of opening the intent dialog. An `IntentButton` only works\n * in the AppShell context.\n * @public\n */\nexport const IntentButton = /* @__PURE__ */ forwardRef<\n HTMLAnchorElement,\n IntentButtonProps\n>((props, forwardedRef) => {\n const intl = useIntl();\n const {\n children,\n payload,\n appId,\n intentId,\n disabled,\n onClick: onClickProp,\n 'aria-label': ariaLabelProp,\n className: consumerClassName,\n style: consumerStyle,\n 'data-testid': dataTestId,\n 'data-dtrum-mask': dataDtrumMask,\n 'data-dtrum-allow': dataDtrumAllow,\n ...remainingProps\n }: IntentButtonProps = props;\n\n let label = children;\n if (typeof label === 'string') {\n label = label.trim();\n }\n\n const ariaLabel =\n ariaLabelProp ||\n intl.formatMessage({\n description: 'Intent button open label',\n defaultMessage: 'Open with',\n id: 'JQOGuaGgqJObmSY1',\n });\n\n const intentButtonProps = useIntentButton(\n payload,\n appId,\n intentId,\n onClickProp,\n );\n\n // polymorph it back to a button in case it's disabled.\n // Keep the button focusable if disabled for better screen reader support.\n if (disabled) {\n return (\n <Button\n disabled\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n aria-label={ariaLabel}\n className={consumerClassName}\n style={consumerStyle}\n {...remainingProps}\n >\n {label}\n <Button.Suffix>\n <OpenWithIcon />\n </Button.Suffix>\n </Button>\n );\n }\n\n return (\n <Button\n as=\"a\"\n ref={forwardedRef}\n data-testid={dataTestId}\n data-dtrum-mask={dataDtrumMask}\n data-dtrum-allow={dataDtrumAllow}\n aria-label={ariaLabel ?? label}\n className={consumerClassName}\n style={consumerStyle}\n {...remainingProps}\n {...intentButtonProps}\n >\n {label}\n <Button.Suffix>\n <OpenWithIcon />\n </Button.Suffix>\n </Button>\n );\n});\n\n(IntentButton as typeof IntentButton & { displayName: string }).displayName =\n 'IntentButton';\n"],
|
|
5
|
+
"mappings": "AAAA,OAAO,SAAS,kBAAkC;AAClD,SAAS,eAAe;AAExB,SAAS,oBAAoB;AAG7B,SAAS,uBAAuB;AAMhC,SAAS,cAAmC;AAsDrC,MAAM,eAA+B,2BAG1C,CAAC,OAAO,iBAAiB;AACzB,QAAM,OAAO,QAAQ;AACrB,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,cAAc;AAAA,IACd,WAAW;AAAA,IACX,OAAO;AAAA,IACP,eAAe;AAAA,IACf,mBAAmB;AAAA,IACnB,oBAAoB;AAAA,IACpB,GAAG;AAAA,EACL,IAAuB;AAEvB,MAAI,QAAQ;AACZ,MAAI,OAAO,UAAU,UAAU;AAC7B,YAAQ,MAAM,KAAK;AAAA,EACrB;AAEA,QAAM,YACJ,iBACA,KAAK,cAAc;AAAA,IACjB,aAAa;AAAA,IACb,gBAAgB;AAAA,IAChB,IAAI;AAAA,EACN,CAAC;AAEH,QAAM,oBAAoB;AAAA,IACxB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AAIA,MAAI,UAAU;AACZ,WACE;AAAA,MAAC;AAAA;AAAA,QACC,UAAQ;AAAA,QACR,eAAa;AAAA,QACb,mBAAiB;AAAA,QACjB,oBAAkB;AAAA,QAClB,cAAY;AAAA,QACZ,WAAW;AAAA,QACX,OAAO;AAAA,QACN,GAAG;AAAA;AAAA,MAEH;AAAA,MACD,oCAAC,OAAO,QAAP,MACC,oCAAC,kBAAa,CAChB;AAAA,IACF;AAAA,EAEJ;AAEA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAG;AAAA,MACH,KAAK;AAAA,MACL,eAAa;AAAA,MACb,mBAAiB;AAAA,MACjB,oBAAkB;AAAA,MAClB,cAAY,aAAa;AAAA,MACzB,WAAW;AAAA,MACX,OAAO;AAAA,MACN,GAAG;AAAA,MACH,GAAG;AAAA;AAAA,IAEH;AAAA,IACD,oCAAC,OAAO,QAAP,MACC,oCAAC,kBAAa,CAChB;AAAA,EACF;AAEJ,CAAC;AAEA,aAA+D,cAC9D;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -13,7 +13,10 @@ function useIntentButton(payload, appId, intentId, onClickProp) {
|
|
|
13
13
|
[appId, intentId, payload]
|
|
14
14
|
);
|
|
15
15
|
const triggerIntent = useCallback(() => {
|
|
16
|
-
appId && intentId ? sendIntent(payload,
|
|
16
|
+
appId && intentId ? sendIntent(payload, {
|
|
17
|
+
recommendedAppId: appId,
|
|
18
|
+
recommendedIntentId: intentId
|
|
19
|
+
}) : sendIntent(payload);
|
|
17
20
|
}, [appId, intentId, payload]);
|
|
18
21
|
const onClick = useCallback(
|
|
19
22
|
(event) => {
|