@dynatrace/strato-components 1.6.0 → 1.6.2
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 +16 -16
- package/buttons/button/Button.sty.js +4 -4
- package/buttons/button/Label.js +2 -2
- 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.js +2 -2
- package/content/progress/ProgressBarLabel.sty.js +1 -1
- package/content/progress/ProgressBarValue.css +5 -5
- package/content/progress/ProgressBarValue.js +2 -2
- 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/components/focus-scope/FocusScope.js +1 -1
- package/core/contexts/FocusContext.d.ts +1 -0
- package/core/contexts/FocusContext.js +2 -1
- package/core/index.d.ts +2 -1
- package/core/index.js +3 -1
- package/core/providers/FocusProvider.js +30 -4
- package/core/styles/focusRing.css +66 -66
- package/core/styles/focusRing.sty.js +2 -2
- package/core/utils/can-receive-default-text-format.d.ts +9 -0
- package/core/utils/can-receive-default-text-format.js +31 -0
- package/core/utils/colorUtils.css +60 -60
- package/core/utils/colorUtils.sty.js +2 -2
- package/core/utils/get-inert-value.d.ts +8 -0
- package/core/utils/get-inert-value.js +31 -0
- package/esm/buttons/button/Button.css +16 -16
- package/esm/buttons/button/Button.sty.js +4 -4
- package/esm/buttons/button/Button.sty.js.map +1 -1
- package/esm/buttons/button/Label.js +2 -2
- package/esm/buttons/button/Label.js.map +2 -2
- 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.js +2 -2
- package/esm/content/progress/ProgressBarLabel.js.map +2 -2
- 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.js +2 -2
- package/esm/content/progress/ProgressBarValue.js.map +2 -2
- 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/components/focus-scope/FocusScope.js +1 -1
- package/esm/core/components/focus-scope/FocusScope.js.map +2 -2
- package/esm/core/contexts/FocusContext.js +2 -1
- package/esm/core/contexts/FocusContext.js.map +2 -2
- package/esm/core/index.js +3 -1
- package/esm/core/index.js.map +2 -2
- package/esm/core/providers/FocusProvider.js +31 -5
- package/esm/core/providers/FocusProvider.js.map +2 -2
- package/esm/core/styles/focusRing.css +66 -66
- package/esm/core/styles/focusRing.sty.js +2 -2
- package/esm/core/styles/focusRing.sty.js.map +1 -1
- package/esm/core/utils/can-receive-default-text-format.js +15 -0
- package/esm/core/utils/can-receive-default-text-format.js.map +7 -0
- 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/core/utils/get-inert-value.js +12 -0
- package/esm/core/utils/get-inert-value.js.map +7 -0
- 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/surface/Surface.css +39 -39
- package/esm/layouts/surface/Surface.sty.js +2 -2
- package/esm/layouts/surface/Surface.sty.js.map +1 -1
- package/esm/layouts/surface/variables.sty.js +1 -1
- package/esm/layouts/surface/variables.sty.js.map +1 -1
- package/esm/styles/colorUtils.css +60 -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.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 +6 -6
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +1 -1
- 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/surface/Surface.css +39 -39
- package/layouts/surface/Surface.sty.js +2 -2
- package/layouts/surface/variables.sty.js +1 -1
- package/package.json +1 -1
- package/styles/colorUtils.css +60 -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 +6 -6
- package/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
package/core/index.d.ts
CHANGED
|
@@ -17,13 +17,14 @@ export { isFocusable as _isFocusable } from './utils/focus-management/is-focusab
|
|
|
17
17
|
export { isBrowser as _isBrowser } from './utils/isBrowser.js';
|
|
18
18
|
export { mergeProps as _mergeProps, type NullToObject as _NullToObject, type TupleTypes as _TupleTypes, type UnionToIntersection as _UnionToIntersection, } from './utils/merge-props.js';
|
|
19
19
|
export { type _HeadingLevel, type _HeadingTag } from './types/heading.js';
|
|
20
|
-
export { useAriaLabelingProps as _useAriaLabelingProps } from './hooks/useAriaLabelingProps.js';
|
|
21
20
|
export { useId as _useId } from './hooks/useId.js';
|
|
21
|
+
export { useAriaLabelingProps as _useAriaLabelingProps } from './hooks/useAriaLabelingProps.js';
|
|
22
22
|
export { useSafeForwardProps as _useSafeForwardProps } from './hooks/useSafeForwardProps.js';
|
|
23
23
|
export type { UseSafeForwardReturnProps as _UseSafeForwardReturnProps } from './hooks/useSafeForwardProps.js';
|
|
24
24
|
export type { AriaDisabledProps, AriaLabelingProps, } from './types/a11y-props.js';
|
|
25
25
|
export type { DOMProps } from './types/dom.js';
|
|
26
26
|
export { uuidv4 as _uuidv4 } from './utils/uuidv4.js';
|
|
27
|
+
export { canReceiveDefaultTextFormat as _canReceiveDefaultTextFormat } from './utils/can-receive-default-text-format.js';
|
|
27
28
|
export { isStringChildren as _isStringChildren } from './utils/_is-string-children.js';
|
|
28
29
|
export { parseBoolean as _parseBoolean } from './utils/parse-boolean.js';
|
|
29
30
|
export { mulberry32 as _mulberry32 } from './utils/seed-random.js';
|
package/core/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __export(core_exports, {
|
|
|
22
22
|
FocusScope: () => import_FocusScope.FocusScope,
|
|
23
23
|
_FocusProvider: () => import_FocusProvider.FocusProvider,
|
|
24
24
|
_attemptFocus: () => import_attempt_focus.attemptFocus,
|
|
25
|
+
_canReceiveDefaultTextFormat: () => import_can_receive_default_text_format.canReceiveDefaultTextFormat,
|
|
25
26
|
_focusFirstDescendant: () => import_focus_first_descendant.focusFirstDescendant,
|
|
26
27
|
_getFirstFocusableChild: () => import_get_first_focusable_child.getFirstFocusableChild,
|
|
27
28
|
_getLastFocusableChild: () => import_get_last_focusable_child.getLastFocusableChild,
|
|
@@ -51,10 +52,11 @@ var import_get_last_focusable_child = require("./utils/focus-management/get-last
|
|
|
51
52
|
var import_is_focusable = require("./utils/focus-management/is-focusable.js");
|
|
52
53
|
var import_isBrowser = require("./utils/isBrowser.js");
|
|
53
54
|
var import_merge_props = require("./utils/merge-props.js");
|
|
54
|
-
var import_useAriaLabelingProps = require("./hooks/useAriaLabelingProps.js");
|
|
55
55
|
var import_useId = require("./hooks/useId.js");
|
|
56
|
+
var import_useAriaLabelingProps = require("./hooks/useAriaLabelingProps.js");
|
|
56
57
|
var import_useSafeForwardProps = require("./hooks/useSafeForwardProps.js");
|
|
57
58
|
var import_uuidv4 = require("./utils/uuidv4.js");
|
|
59
|
+
var import_can_receive_default_text_format = require("./utils/can-receive-default-text-format.js");
|
|
58
60
|
var import_is_string_children = require("./utils/_is-string-children.js");
|
|
59
61
|
var import_parse_boolean = require("./utils/parse-boolean.js");
|
|
60
62
|
var import_seed_random = require("./utils/seed-random.js");
|
|
@@ -25,14 +25,15 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
25
25
|
var import_react = require("react");
|
|
26
26
|
var import_FocusContext = require("../contexts/FocusContext.js");
|
|
27
27
|
var import_useFocusContext = require("../hooks/useFocusContext.js");
|
|
28
|
+
var import_get_inert_value = require("../utils/get-inert-value.js");
|
|
28
29
|
var import_merge_props = require("../utils/merge-props.js");
|
|
29
30
|
const ignoreMap = [
|
|
30
31
|
"Alt",
|
|
31
32
|
"AltGraph",
|
|
32
33
|
"CapsLock",
|
|
33
34
|
"Control",
|
|
34
|
-
"Fn",
|
|
35
35
|
"FnLock",
|
|
36
|
+
"Fn",
|
|
36
37
|
"Hyper",
|
|
37
38
|
"Meta",
|
|
38
39
|
// Command (Mac), in some browsers also Windows-key
|
|
@@ -80,6 +81,7 @@ const FocusProvider = ({ children }) => {
|
|
|
80
81
|
const [backgroundInertness, setBackgroundInertness] = (0, import_react.useState)(false);
|
|
81
82
|
const focusContext = (0, import_useFocusContext.useFocusContext)();
|
|
82
83
|
const [modality, setModality] = (0, import_react.useState)("unknown");
|
|
84
|
+
const wrapperRef = (0, import_react.useRef)(null);
|
|
83
85
|
const setKeyboardInputModality = (0, import_react.useCallback)((event) => {
|
|
84
86
|
if (ignoreMap.includes(event.key)) {
|
|
85
87
|
setModality("pointer");
|
|
@@ -89,6 +91,29 @@ const FocusProvider = ({ children }) => {
|
|
|
89
91
|
setModality("keyboard");
|
|
90
92
|
}
|
|
91
93
|
}, []);
|
|
94
|
+
const focusTriggerElement = (0, import_react.useCallback)((ref) => {
|
|
95
|
+
if (wrapperRef.current?.getAttribute("inert") === null) {
|
|
96
|
+
ref?.focus();
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const observer = new MutationObserver((mutations) => {
|
|
100
|
+
for (const mutation of mutations) {
|
|
101
|
+
if (mutation.type === "attributes" && mutation.attributeName === "inert") {
|
|
102
|
+
if (wrapperRef.current?.getAttribute("inert") === null) {
|
|
103
|
+
ref?.focus();
|
|
104
|
+
observer.disconnect();
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
if (wrapperRef.current !== null) {
|
|
111
|
+
observer.observe(wrapperRef.current, { attributes: true });
|
|
112
|
+
setTimeout(() => {
|
|
113
|
+
observer.disconnect();
|
|
114
|
+
}, 5e3);
|
|
115
|
+
}
|
|
116
|
+
}, []);
|
|
92
117
|
const setMouseInputModality = (0, import_react.useCallback)((event) => {
|
|
93
118
|
switch (eventTypeMap[event.type]) {
|
|
94
119
|
case "touch":
|
|
@@ -117,7 +142,7 @@ const FocusProvider = ({ children }) => {
|
|
|
117
142
|
};
|
|
118
143
|
}, [setKeyboardInputModality, setMouseInputModality]);
|
|
119
144
|
const focusProps = backgroundInertness ? {
|
|
120
|
-
inert:
|
|
145
|
+
inert: (0, import_get_inert_value.getProperInertValue)(true),
|
|
121
146
|
tabIndex: -1,
|
|
122
147
|
"aria-hidden": true
|
|
123
148
|
} : { inert: void 0, tabIndex: void 0, "aria-hidden": false };
|
|
@@ -128,10 +153,11 @@ const FocusProvider = ({ children }) => {
|
|
|
128
153
|
...(0, import_merge_props.mergeProps)(focusContext, {
|
|
129
154
|
backgroundInertness,
|
|
130
155
|
setBackgroundInertness,
|
|
131
|
-
modality
|
|
156
|
+
modality,
|
|
157
|
+
focusTriggerElement
|
|
132
158
|
})
|
|
133
159
|
},
|
|
134
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...focusProps, children })
|
|
160
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref: wrapperRef, ...focusProps, children })
|
|
135
161
|
}
|
|
136
162
|
);
|
|
137
163
|
};
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
._z2r50s3-1-6-
|
|
1
|
+
._z2r50s3-1-6-2 {
|
|
2
2
|
outline: none;
|
|
3
3
|
}
|
|
4
|
-
._z2r50s3-1-6-
|
|
4
|
+
._z2r50s3-1-6-2:focus-visible {
|
|
5
5
|
outline: none;
|
|
6
6
|
}
|
|
7
|
-
._z2r50s4-1-6-
|
|
7
|
+
._z2r50s4-1-6-2 {
|
|
8
8
|
border-radius: var(--dt-borders-radius-field-subdued, 4px);
|
|
9
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-1-6-
|
|
10
|
-
background-color: var(--_z2r50s2-1-6-
|
|
11
|
-
}
|
|
12
|
-
._z2r50s5-1-6-
|
|
13
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-1-6-
|
|
14
|
-
}
|
|
15
|
-
._z2r50s6-1-6-
|
|
16
|
-
--_z2r50s0-1-6-
|
|
17
|
-
--_z2r50s1-1-6-
|
|
18
|
-
--_z2r50s2-1-6-
|
|
19
|
-
}
|
|
20
|
-
._z2r50s7-1-6-
|
|
21
|
-
--_z2r50s0-1-6-
|
|
22
|
-
--_z2r50s1-1-6-
|
|
23
|
-
--_z2r50s2-1-6-
|
|
24
|
-
}
|
|
25
|
-
._z2r50s8-1-6-
|
|
26
|
-
--_z2r50s0-1-6-
|
|
27
|
-
--_z2r50s1-1-6-
|
|
28
|
-
--_z2r50s2-1-6-
|
|
29
|
-
}
|
|
30
|
-
._z2r50s9-1-6-
|
|
31
|
-
--_z2r50s0-1-6-
|
|
32
|
-
--_z2r50s1-1-6-
|
|
33
|
-
--_z2r50s2-1-6-
|
|
34
|
-
}
|
|
35
|
-
._z2r50sa-1-6-
|
|
36
|
-
--_z2r50s0-1-6-
|
|
37
|
-
--_z2r50s1-1-6-
|
|
38
|
-
--_z2r50s2-1-6-
|
|
39
|
-
}
|
|
40
|
-
._z2r50sb-1-6-
|
|
9
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-1-6-2);
|
|
10
|
+
background-color: var(--_z2r50s2-1-6-2);
|
|
11
|
+
}
|
|
12
|
+
._z2r50s5-1-6-2._z2r50s5-1-6-2 {
|
|
13
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-1-6-2), inset 0 0 0 calc(var(--dt-borders-width-emphasized, 2px) + 1px) var(--_z2r50s1-1-6-2);
|
|
14
|
+
}
|
|
15
|
+
._z2r50s6-1-6-2 {
|
|
16
|
+
--_z2r50s0-1-6-2: var(--dt-colors-border-neutral-accent, #545587);
|
|
17
|
+
--_z2r50s1-1-6-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
18
|
+
--_z2r50s2-1-6-2: var(--dt-colors-background-field-neutral-emphasized, #dadbe7);
|
|
19
|
+
}
|
|
20
|
+
._z2r50s7-1-6-2 {
|
|
21
|
+
--_z2r50s0-1-6-2: var(--dt-colors-border-primary-accent, #454cc9);
|
|
22
|
+
--_z2r50s1-1-6-2: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
23
|
+
--_z2r50s2-1-6-2: var(--dt-colors-background-field-primary-emphasized, #d6dbf4);
|
|
24
|
+
}
|
|
25
|
+
._z2r50s8-1-6-2 {
|
|
26
|
+
--_z2r50s0-1-6-2: var(--dt-colors-border-success-accent, #2c6360);
|
|
27
|
+
--_z2r50s1-1-6-2: var(--dt-colors-border-success-default, #cad6d7);
|
|
28
|
+
--_z2r50s2-1-6-2: var(--dt-colors-background-field-success-emphasized, #d4dddf);
|
|
29
|
+
}
|
|
30
|
+
._z2r50s9-1-6-2 {
|
|
31
|
+
--_z2r50s0-1-6-2: var(--dt-colors-border-warning-accent, #805100);
|
|
32
|
+
--_z2r50s1-1-6-2: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
33
|
+
--_z2r50s2-1-6-2: var(--dt-colors-background-field-warning-emphasized, #f4e8de);
|
|
34
|
+
}
|
|
35
|
+
._z2r50sa-1-6-2 {
|
|
36
|
+
--_z2r50s0-1-6-2: var(--dt-colors-border-critical-accent, #b80031);
|
|
37
|
+
--_z2r50s1-1-6-2: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
38
|
+
--_z2r50s2-1-6-2: var(--dt-colors-background-field-critical-emphasized, #f2d7d9);
|
|
39
|
+
}
|
|
40
|
+
._z2r50sb-1-6-2:focus-within {
|
|
41
41
|
outline: none;
|
|
42
42
|
}
|
|
43
|
-
._z2r50sc-1-6-
|
|
43
|
+
._z2r50sc-1-6-2:focus-within {
|
|
44
44
|
border-radius: var(--dt-borders-radius-field-subdued, 4px);
|
|
45
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-1-6-
|
|
46
|
-
background-color: var(--_z2r50s2-1-6-
|
|
47
|
-
}
|
|
48
|
-
._z2r50sd-1-6-
|
|
49
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-1-6-
|
|
50
|
-
}
|
|
51
|
-
._z2r50se-1-6-
|
|
52
|
-
--_z2r50s0-1-6-
|
|
53
|
-
--_z2r50s1-1-6-
|
|
54
|
-
--_z2r50s2-1-6-
|
|
55
|
-
}
|
|
56
|
-
._z2r50sf-1-6-
|
|
57
|
-
--_z2r50s0-1-6-
|
|
58
|
-
--_z2r50s1-1-6-
|
|
59
|
-
--_z2r50s2-1-6-
|
|
60
|
-
}
|
|
61
|
-
._z2r50sg-1-6-
|
|
62
|
-
--_z2r50s0-1-6-
|
|
63
|
-
--_z2r50s1-1-6-
|
|
64
|
-
--_z2r50s2-1-6-
|
|
65
|
-
}
|
|
66
|
-
._z2r50sh-1-6-
|
|
67
|
-
--_z2r50s0-1-6-
|
|
68
|
-
--_z2r50s1-1-6-
|
|
69
|
-
--_z2r50s2-1-6-
|
|
70
|
-
}
|
|
71
|
-
._z2r50si-1-6-
|
|
72
|
-
--_z2r50s0-1-6-
|
|
73
|
-
--_z2r50s1-1-6-
|
|
74
|
-
--_z2r50s2-1-6-
|
|
45
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-1-6-2);
|
|
46
|
+
background-color: var(--_z2r50s2-1-6-2);
|
|
47
|
+
}
|
|
48
|
+
._z2r50sd-1-6-2:focus-within {
|
|
49
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-1-6-2), inset 0 0 0 calc(var(--dt-borders-width-emphasized, 2px) + 1px) var(--_z2r50s1-1-6-2);
|
|
50
|
+
}
|
|
51
|
+
._z2r50se-1-6-2 {
|
|
52
|
+
--_z2r50s0-1-6-2: var(--dt-colors-border-neutral-accent, #545587);
|
|
53
|
+
--_z2r50s1-1-6-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
54
|
+
--_z2r50s2-1-6-2: var(--dt-colors-background-field-neutral-emphasized, #dadbe7);
|
|
55
|
+
}
|
|
56
|
+
._z2r50sf-1-6-2 {
|
|
57
|
+
--_z2r50s0-1-6-2: var(--dt-colors-border-primary-accent, #454cc9);
|
|
58
|
+
--_z2r50s1-1-6-2: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
59
|
+
--_z2r50s2-1-6-2: var(--dt-colors-background-field-primary-emphasized, #d6dbf4);
|
|
60
|
+
}
|
|
61
|
+
._z2r50sg-1-6-2 {
|
|
62
|
+
--_z2r50s0-1-6-2: var(--dt-colors-border-success-accent, #2c6360);
|
|
63
|
+
--_z2r50s1-1-6-2: var(--dt-colors-border-success-default, #cad6d7);
|
|
64
|
+
--_z2r50s2-1-6-2: var(--dt-colors-background-field-success-emphasized, #d4dddf);
|
|
65
|
+
}
|
|
66
|
+
._z2r50sh-1-6-2 {
|
|
67
|
+
--_z2r50s0-1-6-2: var(--dt-colors-border-warning-accent, #805100);
|
|
68
|
+
--_z2r50s1-1-6-2: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
69
|
+
--_z2r50s2-1-6-2: var(--dt-colors-background-field-warning-emphasized, #f4e8de);
|
|
70
|
+
}
|
|
71
|
+
._z2r50si-1-6-2 {
|
|
72
|
+
--_z2r50s0-1-6-2: var(--dt-colors-border-critical-accent, #b80031);
|
|
73
|
+
--_z2r50s1-1-6-2: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
74
|
+
--_z2r50s2-1-6-2: var(--dt-colors-background-field-critical-emphasized, #f2d7d9);
|
|
75
75
|
}
|
|
@@ -24,5 +24,5 @@ __export(focusRing_css_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(focusRing_css_exports);
|
|
25
25
|
var import_focusRing_css_ts_vanilla = require("./focusRing.css");
|
|
26
26
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
27
|
-
var focusRingCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_z2r50s3-1-6-
|
|
28
|
-
var focusRingFocusWithinCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_z2r50sb-1-6-
|
|
27
|
+
var focusRingCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_z2r50s3-1-6-2", variantClassNames: { minimal: { true: "_z2r50s4-1-6-2", false: "_z2r50s5-1-6-2" }, variant: { neutral: "_z2r50s6-1-6-2", primary: "_z2r50s7-1-6-2", success: "_z2r50s8-1-6-2", warning: "_z2r50s9-1-6-2", critical: "_z2r50sa-1-6-2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
28
|
+
var focusRingFocusWithinCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_z2r50sb-1-6-2", variantClassNames: { minimal: { true: "_z2r50sc-1-6-2", false: "_z2r50sd-1-6-2" }, variant: { neutral: "_z2r50se-1-6-2", primary: "_z2r50sf-1-6-2", success: "_z2r50sg-1-6-2", warning: "_z2r50sh-1-6-2", critical: "_z2r50si-1-6-2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import { type MessageDescriptor } from 'react-intl';
|
|
3
|
+
/**
|
|
4
|
+
* Returns whether children only consists of stringifiable children, that can receive standard text formatting.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare function canReceiveDefaultTextFormat(children: ReactNode): children is string | number | boolean | null | undefined | ReactElement<MessageDescriptor & {
|
|
8
|
+
values: Record<string, any>;
|
|
9
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var can_receive_default_text_format_exports = {};
|
|
20
|
+
__export(can_receive_default_text_format_exports, {
|
|
21
|
+
canReceiveDefaultTextFormat: () => canReceiveDefaultTextFormat
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(can_receive_default_text_format_exports);
|
|
24
|
+
var import_react = require("react");
|
|
25
|
+
var import_react_intl = require("react-intl");
|
|
26
|
+
function canReceiveDefaultTextFormat(children) {
|
|
27
|
+
const childrenArray = import_react.Children.toArray(children);
|
|
28
|
+
return childrenArray.every(
|
|
29
|
+
(child) => typeof child === "string" || typeof child === "number" || typeof child === "boolean" || child === null || child === void 0 || (0, import_react.isValidElement)(child) && child.type && child.type === import_react_intl.FormattedMessage
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
._k096v44-1-6-
|
|
2
|
-
--_k096v40-1-6-
|
|
3
|
-
--_k096v41-1-6-
|
|
4
|
-
--_k096v42-1-6-
|
|
1
|
+
._k096v44-1-6-2 {
|
|
2
|
+
--_k096v40-1-6-2: var(--dt-colors-text-critical-default, #b80031);
|
|
3
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-critical-default, #b80031);
|
|
4
|
+
--_k096v42-1-6-2: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
5
5
|
}
|
|
6
|
-
._k096v45-1-6-
|
|
7
|
-
--_k096v40-1-6-
|
|
8
|
-
--_k096v41-1-6-
|
|
9
|
-
--_k096v42-1-6-
|
|
6
|
+
._k096v45-1-6-2 {
|
|
7
|
+
--_k096v40-1-6-2: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
8
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-neutral-default, #2b2a58);
|
|
9
|
+
--_k096v42-1-6-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
10
10
|
}
|
|
11
|
-
._k096v46-1-6-
|
|
12
|
-
--_k096v40-1-6-
|
|
13
|
-
--_k096v41-1-6-
|
|
14
|
-
--_k096v42-1-6-
|
|
11
|
+
._k096v46-1-6-2 {
|
|
12
|
+
--_k096v40-1-6-2: var(--dt-colors-text-primary-default, #454cc9);
|
|
13
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-primary-default, #454cc9);
|
|
14
|
+
--_k096v42-1-6-2: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
15
15
|
}
|
|
16
|
-
._k096v47-1-6-
|
|
17
|
-
--_k096v40-1-6-
|
|
18
|
-
--_k096v41-1-6-
|
|
19
|
-
--_k096v42-1-6-
|
|
16
|
+
._k096v47-1-6-2 {
|
|
17
|
+
--_k096v40-1-6-2: var(--dt-colors-text-success-default, #2c6360);
|
|
18
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-success-default, #2c6360);
|
|
19
|
+
--_k096v42-1-6-2: var(--dt-colors-border-success-default, #cad6d7);
|
|
20
20
|
}
|
|
21
|
-
._k096v48-1-6-
|
|
22
|
-
--_k096v40-1-6-
|
|
23
|
-
--_k096v41-1-6-
|
|
24
|
-
--_k096v42-1-6-
|
|
21
|
+
._k096v48-1-6-2 {
|
|
22
|
+
--_k096v40-1-6-2: var(--dt-colors-text-warning-default, #805100);
|
|
23
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-warning-default, #805100);
|
|
24
|
+
--_k096v42-1-6-2: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
25
25
|
}
|
|
26
|
-
._k096v4d-1-6-
|
|
27
|
-
--_k096v40-1-6-
|
|
28
|
-
--_k096v41-1-6-
|
|
29
|
-
--_k096v42-1-6-
|
|
26
|
+
._k096v4d-1-6-2 {
|
|
27
|
+
--_k096v40-1-6-2: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
|
|
28
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-primary-on-accent-default, #f4f4fb);
|
|
29
|
+
--_k096v42-1-6-2: var(--dt-colors-border-primary-accent, #454cc9);
|
|
30
30
|
}
|
|
31
|
-
._k096v4e-1-6-
|
|
32
|
-
--_k096v40-1-6-
|
|
33
|
-
--_k096v41-1-6-
|
|
34
|
-
--_k096v42-1-6-
|
|
31
|
+
._k096v4e-1-6-2 {
|
|
32
|
+
--_k096v40-1-6-2: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
|
|
33
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-success-on-accent-default, #f1f4f4);
|
|
34
|
+
--_k096v42-1-6-2: var(--dt-colors-border-success-accent, #2c6360);
|
|
35
35
|
}
|
|
36
|
-
._k096v4f-1-6-
|
|
37
|
-
--_k096v40-1-6-
|
|
38
|
-
--_k096v41-1-6-
|
|
39
|
-
--_k096v42-1-6-
|
|
36
|
+
._k096v4f-1-6-2 {
|
|
37
|
+
--_k096v40-1-6-2: var(--dt-colors-text-warning-on-accent-default, #272025);
|
|
38
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-warning-on-accent-default, #272025);
|
|
39
|
+
--_k096v42-1-6-2: var(--dt-colors-border-warning-accent, #805100);
|
|
40
40
|
}
|
|
41
|
-
._k096v4g-1-6-
|
|
42
|
-
--_k096v40-1-6-
|
|
43
|
-
--_k096v41-1-6-
|
|
44
|
-
--_k096v42-1-6-
|
|
41
|
+
._k096v4g-1-6-2 {
|
|
42
|
+
--_k096v40-1-6-2: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
|
|
43
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-critical-on-accent-default, #f9f1f3);
|
|
44
|
+
--_k096v42-1-6-2: var(--dt-colors-border-critical-accent, #b80031);
|
|
45
45
|
}
|
|
46
|
-
._k096v4h-1-6-
|
|
47
|
-
--_k096v40-1-6-
|
|
48
|
-
--_k096v41-1-6-
|
|
49
|
-
--_k096v42-1-6-
|
|
46
|
+
._k096v4h-1-6-2 {
|
|
47
|
+
--_k096v40-1-6-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
48
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
|
|
49
|
+
--_k096v42-1-6-2: var(--dt-colors-border-neutral-accent, #545587);
|
|
50
50
|
}
|
|
51
|
-
._k096v4i-1-6-
|
|
52
|
-
--_k096v40-1-6-
|
|
53
|
-
--_k096v41-1-6-
|
|
54
|
-
--_k096v42-1-6-
|
|
51
|
+
._k096v4i-1-6-2 {
|
|
52
|
+
--_k096v40-1-6-2: var(--dt-colors-text-primary-disabled, #54558780);
|
|
53
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-primary-disabled, #54558780);
|
|
54
|
+
--_k096v42-1-6-2: var(--dt-colors-border-primary-disabled, #d2d3e180);
|
|
55
55
|
}
|
|
56
|
-
._k096v4j-1-6-
|
|
57
|
-
--_k096v40-1-6-
|
|
58
|
-
--_k096v41-1-6-
|
|
59
|
-
--_k096v42-1-6-
|
|
56
|
+
._k096v4j-1-6-2 {
|
|
57
|
+
--_k096v40-1-6-2: var(--dt-colors-text-success-disabled, #54558780);
|
|
58
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-success-disabled, #54558780);
|
|
59
|
+
--_k096v42-1-6-2: var(--dt-colors-border-success-disabled, #d2d3e180);
|
|
60
60
|
}
|
|
61
|
-
._k096v4k-1-6-
|
|
62
|
-
--_k096v40-1-6-
|
|
63
|
-
--_k096v41-1-6-
|
|
64
|
-
--_k096v42-1-6-
|
|
61
|
+
._k096v4k-1-6-2 {
|
|
62
|
+
--_k096v40-1-6-2: var(--dt-colors-text-warning-disabled, #54558780);
|
|
63
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-warning-disabled, #54558780);
|
|
64
|
+
--_k096v42-1-6-2: var(--dt-colors-border-warning-disabled, #d2d3e180);
|
|
65
65
|
}
|
|
66
|
-
._k096v4l-1-6-
|
|
67
|
-
--_k096v40-1-6-
|
|
68
|
-
--_k096v41-1-6-
|
|
69
|
-
--_k096v42-1-6-
|
|
66
|
+
._k096v4l-1-6-2 {
|
|
67
|
+
--_k096v40-1-6-2: var(--dt-colors-text-critical-disabled, #54558780);
|
|
68
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-critical-disabled, #54558780);
|
|
69
|
+
--_k096v42-1-6-2: var(--dt-colors-border-critical-disabled, #d2d3e180);
|
|
70
70
|
}
|
|
71
|
-
._k096v4m-1-6-
|
|
72
|
-
--_k096v40-1-6-
|
|
73
|
-
--_k096v41-1-6-
|
|
74
|
-
--_k096v42-1-6-
|
|
71
|
+
._k096v4m-1-6-2 {
|
|
72
|
+
--_k096v40-1-6-2: var(--dt-colors-text-neutral-disabled, #54558780);
|
|
73
|
+
--_k096v41-1-6-2: var(--dt-colors-icon-neutral-disabled, #54558780);
|
|
74
|
+
--_k096v42-1-6-2: var(--dt-colors-border-neutral-disabled, #d2d3e180);
|
|
75
75
|
}
|
|
@@ -24,5 +24,5 @@ __export(colorUtils_css_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(colorUtils_css_exports);
|
|
25
25
|
var import_colorUtils_css_ts_vanilla = require("./colorUtils.css");
|
|
26
26
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
27
|
-
var colorUtilsCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_k096v43-1-6-
|
|
28
|
-
var colorUtilsVars = { text: "var(--_k096v40-1-6-
|
|
27
|
+
var colorUtilsCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_k096v43-1-6-2", variantClassNames: { color: { critical: "_k096v44-1-6-2", neutral: "_k096v45-1-6-2", primary: "_k096v46-1-6-2", success: "_k096v47-1-6-2", warning: "_k096v48-1-6-2" }, variant: { "default": "_k096v49-1-6-2", accent: "_k096v4a-1-6-2" }, disabled: { true: "_k096v4b-1-6-2", false: "_k096v4c-1-6-2" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "_k096v4d-1-6-2"], [{ color: "success", variant: "accent" }, "_k096v4e-1-6-2"], [{ color: "warning", variant: "accent" }, "_k096v4f-1-6-2"], [{ color: "critical", variant: "accent" }, "_k096v4g-1-6-2"], [{ color: "neutral", variant: "accent" }, "_k096v4h-1-6-2"], [{ color: "primary", disabled: true }, "_k096v4i-1-6-2"], [{ color: "success", disabled: true }, "_k096v4j-1-6-2"], [{ color: "warning", disabled: true }, "_k096v4k-1-6-2"], [{ color: "critical", disabled: true }, "_k096v4l-1-6-2"], [{ color: "neutral", disabled: true }, "_k096v4m-1-6-2"]] });
|
|
28
|
+
var colorUtilsVars = { text: "var(--_k096v40-1-6-2)", icon: "var(--_k096v41-1-6-2)", borderColor: "var(--_k096v42-1-6-2)" };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Allows proper value usage for react 18 / 19 inert property. `inert` is not in the
|
|
3
|
+
* react 18 types for the HTMLAttributes and is treated differently.
|
|
4
|
+
* @see https://stackoverflow.com/a/78606437/2143311
|
|
5
|
+
* @see https://github.com/facebook/react/issues/17157
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare function getProperInertValue(inert: boolean): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var get_inert_value_exports = {};
|
|
20
|
+
__export(get_inert_value_exports, {
|
|
21
|
+
getProperInertValue: () => getProperInertValue
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(get_inert_value_exports);
|
|
24
|
+
var import_react = require("react");
|
|
25
|
+
const inertBooleanSupported = Number(import_react.version.split(".")[0]) >= 19;
|
|
26
|
+
function getProperInertValue(inert) {
|
|
27
|
+
if (inertBooleanSupported) {
|
|
28
|
+
return inert;
|
|
29
|
+
}
|
|
30
|
+
return inert ? "" : void 0;
|
|
31
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
._10kgnsa0-1-6-
|
|
1
|
+
._10kgnsa0-1-6-2 {
|
|
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-1-6-
|
|
9
|
-
color: var(--_bx32h0-1-6-
|
|
8
|
+
background: var(--_bx32h3-1-6-2);
|
|
9
|
+
color: var(--_bx32h0-1-6-2);
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
position: relative;
|
|
12
12
|
align-items: center;
|
|
@@ -23,42 +23,42 @@
|
|
|
23
23
|
transition-duration: var(--dt-animations-hover-duration-base, 150ms);
|
|
24
24
|
transition-property: color, background-color, transform;
|
|
25
25
|
}
|
|
26
|
-
._10kgnsa1-1-6-
|
|
26
|
+
._10kgnsa1-1-6-2 {
|
|
27
27
|
text-align: start;
|
|
28
28
|
justify-content: space-between;
|
|
29
29
|
}
|
|
30
|
-
._10kgnsa2-1-6-
|
|
30
|
+
._10kgnsa2-1-6-2 {
|
|
31
31
|
text-align: center;
|
|
32
32
|
justify-content: center;
|
|
33
33
|
}
|
|
34
|
-
._10kgnsa3-1-6-
|
|
34
|
+
._10kgnsa3-1-6-2 {
|
|
35
35
|
padding-top: var(--dt-spacings-size-2, 2px);
|
|
36
36
|
padding-bottom: var(--dt-spacings-size-2, 2px);
|
|
37
37
|
padding-left: var(--dt-spacings-size-4, 4px);
|
|
38
38
|
padding-right: var(--dt-spacings-size-4, 4px);
|
|
39
39
|
gap: var(--dt-spacings-size-2, 2px);
|
|
40
40
|
}
|
|
41
|
-
._10kgnsa4-1-6-
|
|
41
|
+
._10kgnsa4-1-6-2 {
|
|
42
42
|
padding-top: var(--dt-spacings-size-6, 6px);
|
|
43
43
|
padding-bottom: var(--dt-spacings-size-6, 6px);
|
|
44
44
|
padding-left: var(--dt-spacings-size-8, 8px);
|
|
45
45
|
padding-right: var(--dt-spacings-size-8, 8px);
|
|
46
46
|
gap: var(--dt-spacings-size-4, 4px);
|
|
47
47
|
}
|
|
48
|
-
._10kgnsa5-1-6-
|
|
48
|
+
._10kgnsa5-1-6-2 {
|
|
49
49
|
cursor: not-allowed;
|
|
50
50
|
}
|
|
51
|
-
._10kgnsa6-1-6-
|
|
51
|
+
._10kgnsa6-1-6-2 {
|
|
52
52
|
cursor: not-allowed;
|
|
53
|
-
background: var(--_bx32h2-1-6-
|
|
53
|
+
background: var(--_bx32h2-1-6-2);
|
|
54
54
|
}
|
|
55
|
-
._10kgnsa7-1-6-
|
|
55
|
+
._10kgnsa7-1-6-2 {
|
|
56
56
|
width: 100%;
|
|
57
57
|
}
|
|
58
|
-
._10kgnsa8-1-6-
|
|
58
|
+
._10kgnsa8-1-6-2 {
|
|
59
59
|
width: fit-content;
|
|
60
60
|
}
|
|
61
|
-
._10kgnsa9-1-6-
|
|
61
|
+
._10kgnsa9-1-6-2 {
|
|
62
62
|
position: absolute;
|
|
63
63
|
top: 0;
|
|
64
64
|
left: 0;
|
|
@@ -70,19 +70,19 @@
|
|
|
70
70
|
align-items: center;
|
|
71
71
|
z-index: 1;
|
|
72
72
|
}
|
|
73
|
-
._10kgnsa3-1-6-
|
|
73
|
+
._10kgnsa3-1-6-2 ._10kgnsaa-1-6-2:not(:has(svg:only-child)) {
|
|
74
74
|
padding-top: 0;
|
|
75
75
|
padding-bottom: 0;
|
|
76
76
|
padding-left: 2px;
|
|
77
77
|
padding-right: 2px;
|
|
78
78
|
}
|
|
79
|
-
._10kgnsa4-1-6-
|
|
79
|
+
._10kgnsa4-1-6-2 ._10kgnsaa-1-6-2:not(:has(svg:only-child)) {
|
|
80
80
|
padding-top: 0;
|
|
81
81
|
padding-bottom: 0;
|
|
82
82
|
padding-left: 4px;
|
|
83
83
|
padding-right: 4px;
|
|
84
84
|
}
|
|
85
|
-
._10kgnsac-1-6-
|
|
85
|
+
._10kgnsac-1-6-2 {
|
|
86
86
|
display: inline-flex;
|
|
87
87
|
min-width: 0;
|
|
88
88
|
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-1-6-
|
|
6
|
-
var buttonLabelCSS = _7a468({ defaultClassName: "_10kgnsaa-1-6-
|
|
7
|
-
var buttonLoadingCSS = "_10kgnsa9-1-6-
|
|
8
|
-
var buttonWidthsCSS = { full: "_10kgnsa7-1-6-
|
|
5
|
+
var buttonCSS = _7a468({ defaultClassName: "_10kgnsa0-1-6-2", variantClassNames: { textAlign: { start: "_10kgnsa1-1-6-2", center: "_10kgnsa2-1-6-2" }, size: { condensed: "_10kgnsa3-1-6-2", "default": "_10kgnsa4-1-6-2" }, disabled: { true: "_10kgnsa5-1-6-2" }, readOnly: { true: "_10kgnsa6-1-6-2" } }, defaultVariants: { size: "default", textAlign: "center", disabled: false }, compoundVariants: [] });
|
|
6
|
+
var buttonLabelCSS = _7a468({ defaultClassName: "_10kgnsaa-1-6-2", variantClassNames: { textual: { true: "_oqqp1n0-1-6-2", false: "_10kgnsac-1-6-2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
7
|
+
var buttonLoadingCSS = "_10kgnsa9-1-6-2";
|
|
8
|
+
var buttonWidthsCSS = { full: "_10kgnsa7-1-6-2", content: "_10kgnsa8-1-6-2" };
|
|
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-1-6-
|
|
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-6-2',variantClassNames:{textAlign:{start:'_10kgnsa1-1-6-2',center:'_10kgnsa2-1-6-2'},size:{condensed:'_10kgnsa3-1-6-2','default':'_10kgnsa4-1-6-2'},disabled:{true:'_10kgnsa5-1-6-2'},readOnly:{true:'_10kgnsa6-1-6-2'}},defaultVariants:{size:'default',textAlign:'center',disabled:false},compoundVariants:[]});\nexport var buttonLabelCSS = _7a468({defaultClassName:'_10kgnsaa-1-6-2',variantClassNames:{textual:{true:'_oqqp1n0-1-6-2',false:'_10kgnsac-1-6-2'}},defaultVariants:{},compoundVariants:[]});\nexport var buttonLoadingCSS = '_10kgnsa9-1-6-2';\nexport var buttonWidthsCSS = {full:'_10kgnsa7-1-6-2',content:'_10kgnsa8-1-6-2'};"],
|
|
5
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
|
}
|