@dynatrace/strato-components 1.6.0 → 1.7.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.js +1 -1
- package/buttons/button/Button.sty.js +4 -4
- package/buttons/button/Label.js +2 -2
- package/buttons/intent-button/IntentButton.js +1 -1
- 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 +1 -4
- package/core/index.js +2 -8
- 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/{_is-string-children.js → can-receive-default-text-format.js} +6 -10
- 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/{hooks/useId.js → utils/get-inert-value.js} +11 -13
- package/core/utils/isBrowser.js +1 -1
- package/esm/buttons/button/Button.css +16 -16
- package/esm/buttons/button/Button.js +1 -1
- package/esm/buttons/button/Button.js.map +2 -2
- package/esm/buttons/button/Button.sty.js +4 -4
- package/esm/buttons/button/Button.sty.js.map +1 -1
- package/esm/buttons/button/Label.js +2 -2
- package/esm/buttons/button/Label.js.map +2 -2
- package/esm/buttons/intent-button/IntentButton.js +1 -1
- package/esm/buttons/intent-button/IntentButton.js.map +1 -1
- package/esm/content/progress/ProgressBar.css +71 -71
- package/esm/content/progress/ProgressBar.js.map +2 -2
- package/esm/content/progress/ProgressBar.sty.js +5 -5
- package/esm/content/progress/ProgressBar.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarIcon.css +2 -2
- package/esm/content/progress/ProgressBarIcon.js.map +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.js.map +2 -2
- package/esm/content/progress/ProgressCircle.sty.js +5 -5
- package/esm/content/progress/ProgressCircle.sty.js.map +1 -1
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.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 +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 +2 -8
- 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/core/utils/isBrowser.js +1 -1
- package/esm/core/utils/isBrowser.js.map +1 -1
- package/esm/core/utils/merge-props.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 +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.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/index.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.js +1 -9
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +1 -1
- package/esm/typography/utils.js +16 -4
- package/esm/typography/utils.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/surface/Surface.css +39 -39
- package/layouts/surface/Surface.sty.js +2 -2
- 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/index.d.ts +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.d.ts +2 -2
- package/typography/text-ellipsis/TextEllipsis.js +1 -9
- package/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
- package/typography/utils.js +16 -4
- package/core/hooks/useId.d.ts +0 -12
- package/core/utils/_is-string-children.d.ts +0 -6
- package/core/utils/seed-random.d.ts +0 -5
- package/core/utils/seed-random.js +0 -35
- package/core/utils/uuidv4.d.ts +0 -5
- package/core/utils/uuidv4.js +0 -32
- package/esm/core/hooks/useId.js +0 -14
- package/esm/core/hooks/useId.js.map +0 -7
- package/esm/core/utils/_is-string-children.js +0 -16
- package/esm/core/utils/_is-string-children.js.map +0 -7
- package/esm/core/utils/seed-random.js +0 -16
- package/esm/core/utils/seed-random.js.map +0 -7
- package/esm/core/utils/uuidv4.js +0 -13
- package/esm/core/utils/uuidv4.js.map +0 -7
|
@@ -23,4 +23,4 @@ __export(Skeleton_css_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(Skeleton_css_exports);
|
|
24
24
|
var import_Skeleton_css_ts_vanilla = require("./Skeleton.css");
|
|
25
25
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
-
var skeletonPlaceholderCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1a1ozfd1-1-
|
|
26
|
+
var skeletonPlaceholderCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1a1ozfd1-1-7-2", variantClassNames: { variant: { "default": "_1a1ozfd2-1-7-2", rounded: "_1a1ozfd3-1-7-2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -41,7 +41,7 @@ const FocusScope = (props) => {
|
|
|
41
41
|
const triggerElementCopy2 = triggerElement.current;
|
|
42
42
|
return () => {
|
|
43
43
|
focusContext.setBackgroundInertness(false);
|
|
44
|
-
|
|
44
|
+
focusContext.focusTriggerElement(triggerElementCopy2);
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
if (!autoFocus && !contain) {
|
|
@@ -7,6 +7,7 @@ export type FocusContextProps = {
|
|
|
7
7
|
backgroundInertness?: boolean;
|
|
8
8
|
modality: Modality;
|
|
9
9
|
setBackgroundInertness: (value: boolean) => void;
|
|
10
|
+
focusTriggerElement: (value: HTMLElement | undefined) => void;
|
|
10
11
|
};
|
|
11
12
|
/**
|
|
12
13
|
* This context keeps all information needed for proper focus management.
|
|
@@ -25,5 +25,6 @@ var import_react = require("react");
|
|
|
25
25
|
const FocusContext = (0, import_react.createContext)({
|
|
26
26
|
modality: "unknown",
|
|
27
27
|
backgroundInertness: void 0,
|
|
28
|
-
setBackgroundInertness: (value) => null
|
|
28
|
+
setBackgroundInertness: (value) => null,
|
|
29
|
+
focusTriggerElement: (value) => null
|
|
29
30
|
});
|
package/core/index.d.ts
CHANGED
|
@@ -18,12 +18,9 @@ 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
20
|
export { useAriaLabelingProps as _useAriaLabelingProps } from './hooks/useAriaLabelingProps.js';
|
|
21
|
-
export { useId as _useId } from './hooks/useId.js';
|
|
22
21
|
export { useSafeForwardProps as _useSafeForwardProps } from './hooks/useSafeForwardProps.js';
|
|
23
22
|
export type { UseSafeForwardReturnProps as _UseSafeForwardReturnProps } from './hooks/useSafeForwardProps.js';
|
|
24
23
|
export type { AriaDisabledProps, AriaLabelingProps, } from './types/a11y-props.js';
|
|
25
24
|
export type { DOMProps } from './types/dom.js';
|
|
26
|
-
export {
|
|
27
|
-
export { isStringChildren as _isStringChildren } from './utils/_is-string-children.js';
|
|
25
|
+
export { canReceiveDefaultTextFormat as _canReceiveDefaultTextFormat } from './utils/can-receive-default-text-format.js';
|
|
28
26
|
export { parseBoolean as _parseBoolean } from './utils/parse-boolean.js';
|
|
29
|
-
export { mulberry32 as _mulberry32 } from './utils/seed-random.js';
|
package/core/index.js
CHANGED
|
@@ -22,20 +22,17 @@ __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,
|
|
28
29
|
_isBrowser: () => import_isBrowser.isBrowser,
|
|
29
30
|
_isFocusable: () => import_is_focusable.isFocusable,
|
|
30
|
-
_isStringChildren: () => import_is_string_children.isStringChildren,
|
|
31
31
|
_mergeProps: () => import_merge_props.mergeProps,
|
|
32
|
-
_mulberry32: () => import_seed_random.mulberry32,
|
|
33
32
|
_parseBoolean: () => import_parse_boolean.parseBoolean,
|
|
34
33
|
_useAriaLabelingProps: () => import_useAriaLabelingProps.useAriaLabelingProps,
|
|
35
34
|
_useFocusContext: () => import_useFocusContext.useFocusContext,
|
|
36
|
-
_useId: () => import_useId.useId,
|
|
37
35
|
_useSafeForwardProps: () => import_useSafeForwardProps.useSafeForwardProps,
|
|
38
|
-
_uuidv4: () => import_uuidv4.uuidv4,
|
|
39
36
|
useCurrentTheme: () => import_useCurrentTheme.useCurrentTheme
|
|
40
37
|
});
|
|
41
38
|
module.exports = __toCommonJS(core_exports);
|
|
@@ -52,9 +49,6 @@ var import_is_focusable = require("./utils/focus-management/is-focusable.js");
|
|
|
52
49
|
var import_isBrowser = require("./utils/isBrowser.js");
|
|
53
50
|
var import_merge_props = require("./utils/merge-props.js");
|
|
54
51
|
var import_useAriaLabelingProps = require("./hooks/useAriaLabelingProps.js");
|
|
55
|
-
var import_useId = require("./hooks/useId.js");
|
|
56
52
|
var import_useSafeForwardProps = require("./hooks/useSafeForwardProps.js");
|
|
57
|
-
var
|
|
58
|
-
var import_is_string_children = require("./utils/_is-string-children.js");
|
|
53
|
+
var import_can_receive_default_text_format = require("./utils/can-receive-default-text-format.js");
|
|
59
54
|
var import_parse_boolean = require("./utils/parse-boolean.js");
|
|
60
|
-
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-
|
|
1
|
+
._z2r50s3-1-7-2 {
|
|
2
2
|
outline: none;
|
|
3
3
|
}
|
|
4
|
-
._z2r50s3-1-
|
|
4
|
+
._z2r50s3-1-7-2:focus-visible {
|
|
5
5
|
outline: none;
|
|
6
6
|
}
|
|
7
|
-
._z2r50s4-1-
|
|
7
|
+
._z2r50s4-1-7-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-
|
|
10
|
-
background-color: var(--_z2r50s2-1-
|
|
11
|
-
}
|
|
12
|
-
._z2r50s5-1-
|
|
13
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-1-
|
|
14
|
-
}
|
|
15
|
-
._z2r50s6-1-
|
|
16
|
-
--_z2r50s0-1-
|
|
17
|
-
--_z2r50s1-1-
|
|
18
|
-
--_z2r50s2-1-
|
|
19
|
-
}
|
|
20
|
-
._z2r50s7-1-
|
|
21
|
-
--_z2r50s0-1-
|
|
22
|
-
--_z2r50s1-1-
|
|
23
|
-
--_z2r50s2-1-
|
|
24
|
-
}
|
|
25
|
-
._z2r50s8-1-
|
|
26
|
-
--_z2r50s0-1-
|
|
27
|
-
--_z2r50s1-1-
|
|
28
|
-
--_z2r50s2-1-
|
|
29
|
-
}
|
|
30
|
-
._z2r50s9-1-
|
|
31
|
-
--_z2r50s0-1-
|
|
32
|
-
--_z2r50s1-1-
|
|
33
|
-
--_z2r50s2-1-
|
|
34
|
-
}
|
|
35
|
-
._z2r50sa-1-
|
|
36
|
-
--_z2r50s0-1-
|
|
37
|
-
--_z2r50s1-1-
|
|
38
|
-
--_z2r50s2-1-
|
|
39
|
-
}
|
|
40
|
-
._z2r50sb-1-
|
|
9
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-1-7-2);
|
|
10
|
+
background-color: var(--_z2r50s2-1-7-2);
|
|
11
|
+
}
|
|
12
|
+
._z2r50s5-1-7-2._z2r50s5-1-7-2 {
|
|
13
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-1-7-2), inset 0 0 0 calc(var(--dt-borders-width-emphasized, 2px) + 1px) var(--_z2r50s1-1-7-2);
|
|
14
|
+
}
|
|
15
|
+
._z2r50s6-1-7-2 {
|
|
16
|
+
--_z2r50s0-1-7-2: var(--dt-colors-border-neutral-accent, #545587);
|
|
17
|
+
--_z2r50s1-1-7-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
18
|
+
--_z2r50s2-1-7-2: var(--dt-colors-background-field-neutral-emphasized, #dadbe7);
|
|
19
|
+
}
|
|
20
|
+
._z2r50s7-1-7-2 {
|
|
21
|
+
--_z2r50s0-1-7-2: var(--dt-colors-border-primary-accent, #454cc9);
|
|
22
|
+
--_z2r50s1-1-7-2: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
23
|
+
--_z2r50s2-1-7-2: var(--dt-colors-background-field-primary-emphasized, #d6dbf4);
|
|
24
|
+
}
|
|
25
|
+
._z2r50s8-1-7-2 {
|
|
26
|
+
--_z2r50s0-1-7-2: var(--dt-colors-border-success-accent, #2c6360);
|
|
27
|
+
--_z2r50s1-1-7-2: var(--dt-colors-border-success-default, #cad6d7);
|
|
28
|
+
--_z2r50s2-1-7-2: var(--dt-colors-background-field-success-emphasized, #d4dddf);
|
|
29
|
+
}
|
|
30
|
+
._z2r50s9-1-7-2 {
|
|
31
|
+
--_z2r50s0-1-7-2: var(--dt-colors-border-warning-accent, #805100);
|
|
32
|
+
--_z2r50s1-1-7-2: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
33
|
+
--_z2r50s2-1-7-2: var(--dt-colors-background-field-warning-emphasized, #f4e8de);
|
|
34
|
+
}
|
|
35
|
+
._z2r50sa-1-7-2 {
|
|
36
|
+
--_z2r50s0-1-7-2: var(--dt-colors-border-critical-accent, #b80031);
|
|
37
|
+
--_z2r50s1-1-7-2: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
38
|
+
--_z2r50s2-1-7-2: var(--dt-colors-background-field-critical-emphasized, #f2d7d9);
|
|
39
|
+
}
|
|
40
|
+
._z2r50sb-1-7-2:focus-within {
|
|
41
41
|
outline: none;
|
|
42
42
|
}
|
|
43
|
-
._z2r50sc-1-
|
|
43
|
+
._z2r50sc-1-7-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-
|
|
46
|
-
background-color: var(--_z2r50s2-1-
|
|
47
|
-
}
|
|
48
|
-
._z2r50sd-1-
|
|
49
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-1-
|
|
50
|
-
}
|
|
51
|
-
._z2r50se-1-
|
|
52
|
-
--_z2r50s0-1-
|
|
53
|
-
--_z2r50s1-1-
|
|
54
|
-
--_z2r50s2-1-
|
|
55
|
-
}
|
|
56
|
-
._z2r50sf-1-
|
|
57
|
-
--_z2r50s0-1-
|
|
58
|
-
--_z2r50s1-1-
|
|
59
|
-
--_z2r50s2-1-
|
|
60
|
-
}
|
|
61
|
-
._z2r50sg-1-
|
|
62
|
-
--_z2r50s0-1-
|
|
63
|
-
--_z2r50s1-1-
|
|
64
|
-
--_z2r50s2-1-
|
|
65
|
-
}
|
|
66
|
-
._z2r50sh-1-
|
|
67
|
-
--_z2r50s0-1-
|
|
68
|
-
--_z2r50s1-1-
|
|
69
|
-
--_z2r50s2-1-
|
|
70
|
-
}
|
|
71
|
-
._z2r50si-1-
|
|
72
|
-
--_z2r50s0-1-
|
|
73
|
-
--_z2r50s1-1-
|
|
74
|
-
--_z2r50s2-1-
|
|
45
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-1-7-2);
|
|
46
|
+
background-color: var(--_z2r50s2-1-7-2);
|
|
47
|
+
}
|
|
48
|
+
._z2r50sd-1-7-2:focus-within {
|
|
49
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-1-7-2), inset 0 0 0 calc(var(--dt-borders-width-emphasized, 2px) + 1px) var(--_z2r50s1-1-7-2);
|
|
50
|
+
}
|
|
51
|
+
._z2r50se-1-7-2 {
|
|
52
|
+
--_z2r50s0-1-7-2: var(--dt-colors-border-neutral-accent, #545587);
|
|
53
|
+
--_z2r50s1-1-7-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
54
|
+
--_z2r50s2-1-7-2: var(--dt-colors-background-field-neutral-emphasized, #dadbe7);
|
|
55
|
+
}
|
|
56
|
+
._z2r50sf-1-7-2 {
|
|
57
|
+
--_z2r50s0-1-7-2: var(--dt-colors-border-primary-accent, #454cc9);
|
|
58
|
+
--_z2r50s1-1-7-2: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
59
|
+
--_z2r50s2-1-7-2: var(--dt-colors-background-field-primary-emphasized, #d6dbf4);
|
|
60
|
+
}
|
|
61
|
+
._z2r50sg-1-7-2 {
|
|
62
|
+
--_z2r50s0-1-7-2: var(--dt-colors-border-success-accent, #2c6360);
|
|
63
|
+
--_z2r50s1-1-7-2: var(--dt-colors-border-success-default, #cad6d7);
|
|
64
|
+
--_z2r50s2-1-7-2: var(--dt-colors-background-field-success-emphasized, #d4dddf);
|
|
65
|
+
}
|
|
66
|
+
._z2r50sh-1-7-2 {
|
|
67
|
+
--_z2r50s0-1-7-2: var(--dt-colors-border-warning-accent, #805100);
|
|
68
|
+
--_z2r50s1-1-7-2: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
69
|
+
--_z2r50s2-1-7-2: var(--dt-colors-background-field-warning-emphasized, #f4e8de);
|
|
70
|
+
}
|
|
71
|
+
._z2r50si-1-7-2 {
|
|
72
|
+
--_z2r50s0-1-7-2: var(--dt-colors-border-critical-accent, #b80031);
|
|
73
|
+
--_z2r50s1-1-7-2: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
74
|
+
--_z2r50s2-1-7-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-
|
|
28
|
-
var focusRingFocusWithinCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_z2r50sb-1-
|
|
27
|
+
var focusRingCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_z2r50s3-1-7-2", variantClassNames: { minimal: { true: "_z2r50s4-1-7-2", false: "_z2r50s5-1-7-2" }, variant: { neutral: "_z2r50s6-1-7-2", primary: "_z2r50s7-1-7-2", success: "_z2r50s8-1-7-2", warning: "_z2r50s9-1-7-2", critical: "_z2r50sa-1-7-2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
28
|
+
var focusRingFocusWithinCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_z2r50sb-1-7-2", variantClassNames: { minimal: { true: "_z2r50sc-1-7-2", false: "_z2r50sd-1-7-2" }, variant: { neutral: "_z2r50se-1-7-2", primary: "_z2r50sf-1-7-2", success: "_z2r50sg-1-7-2", warning: "_z2r50sh-1-7-2", critical: "_z2r50si-1-7-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
|
+
}>;
|
|
@@ -16,20 +16,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
|
|
19
|
+
var can_receive_default_text_format_exports = {};
|
|
20
|
+
__export(can_receive_default_text_format_exports, {
|
|
21
|
+
canReceiveDefaultTextFormat: () => canReceiveDefaultTextFormat
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(can_receive_default_text_format_exports);
|
|
24
24
|
var import_react = require("react");
|
|
25
25
|
var import_react_intl = require("react-intl");
|
|
26
|
-
|
|
27
|
-
function isStringChildren(children) {
|
|
26
|
+
function canReceiveDefaultTextFormat(children) {
|
|
28
27
|
const childrenArray = import_react.Children.toArray(children);
|
|
29
|
-
if (!childrenArray.some(import_react_is.isElement)) {
|
|
30
|
-
return true;
|
|
31
|
-
}
|
|
32
28
|
return childrenArray.every(
|
|
33
|
-
(child) =>
|
|
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
|
|
34
30
|
);
|
|
35
31
|
}
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
._k096v44-1-
|
|
2
|
-
--_k096v40-1-
|
|
3
|
-
--_k096v41-1-
|
|
4
|
-
--_k096v42-1-
|
|
1
|
+
._k096v44-1-7-2 {
|
|
2
|
+
--_k096v40-1-7-2: var(--dt-colors-text-critical-default, #b80031);
|
|
3
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-critical-default, #b80031);
|
|
4
|
+
--_k096v42-1-7-2: var(--dt-colors-border-critical-default, #f1cdcf);
|
|
5
5
|
}
|
|
6
|
-
._k096v45-1-
|
|
7
|
-
--_k096v40-1-
|
|
8
|
-
--_k096v41-1-
|
|
9
|
-
--_k096v42-1-
|
|
6
|
+
._k096v45-1-7-2 {
|
|
7
|
+
--_k096v40-1-7-2: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
8
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-neutral-default, #2b2a58);
|
|
9
|
+
--_k096v42-1-7-2: var(--dt-colors-border-neutral-default, #d2d3e1);
|
|
10
10
|
}
|
|
11
|
-
._k096v46-1-
|
|
12
|
-
--_k096v40-1-
|
|
13
|
-
--_k096v41-1-
|
|
14
|
-
--_k096v42-1-
|
|
11
|
+
._k096v46-1-7-2 {
|
|
12
|
+
--_k096v40-1-7-2: var(--dt-colors-text-primary-default, #454cc9);
|
|
13
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-primary-default, #454cc9);
|
|
14
|
+
--_k096v42-1-7-2: var(--dt-colors-border-primary-default, #ccd3f3);
|
|
15
15
|
}
|
|
16
|
-
._k096v47-1-
|
|
17
|
-
--_k096v40-1-
|
|
18
|
-
--_k096v41-1-
|
|
19
|
-
--_k096v42-1-
|
|
16
|
+
._k096v47-1-7-2 {
|
|
17
|
+
--_k096v40-1-7-2: var(--dt-colors-text-success-default, #2c6360);
|
|
18
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-success-default, #2c6360);
|
|
19
|
+
--_k096v42-1-7-2: var(--dt-colors-border-success-default, #cad6d7);
|
|
20
20
|
}
|
|
21
|
-
._k096v48-1-
|
|
22
|
-
--_k096v40-1-
|
|
23
|
-
--_k096v41-1-
|
|
24
|
-
--_k096v42-1-
|
|
21
|
+
._k096v48-1-7-2 {
|
|
22
|
+
--_k096v40-1-7-2: var(--dt-colors-text-warning-default, #805100);
|
|
23
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-warning-default, #805100);
|
|
24
|
+
--_k096v42-1-7-2: var(--dt-colors-border-warning-default, #f4e5d5);
|
|
25
25
|
}
|
|
26
|
-
._k096v4d-1-
|
|
27
|
-
--_k096v40-1-
|
|
28
|
-
--_k096v41-1-
|
|
29
|
-
--_k096v42-1-
|
|
26
|
+
._k096v4d-1-7-2 {
|
|
27
|
+
--_k096v40-1-7-2: var(--dt-colors-text-primary-on-accent-default, #f4f4fb);
|
|
28
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-primary-on-accent-default, #f4f4fb);
|
|
29
|
+
--_k096v42-1-7-2: var(--dt-colors-border-primary-accent, #454cc9);
|
|
30
30
|
}
|
|
31
|
-
._k096v4e-1-
|
|
32
|
-
--_k096v40-1-
|
|
33
|
-
--_k096v41-1-
|
|
34
|
-
--_k096v42-1-
|
|
31
|
+
._k096v4e-1-7-2 {
|
|
32
|
+
--_k096v40-1-7-2: var(--dt-colors-text-success-on-accent-default, #f1f4f4);
|
|
33
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-success-on-accent-default, #f1f4f4);
|
|
34
|
+
--_k096v42-1-7-2: var(--dt-colors-border-success-accent, #2c6360);
|
|
35
35
|
}
|
|
36
|
-
._k096v4f-1-
|
|
37
|
-
--_k096v40-1-
|
|
38
|
-
--_k096v41-1-
|
|
39
|
-
--_k096v42-1-
|
|
36
|
+
._k096v4f-1-7-2 {
|
|
37
|
+
--_k096v40-1-7-2: var(--dt-colors-text-warning-on-accent-default, #272025);
|
|
38
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-warning-on-accent-default, #272025);
|
|
39
|
+
--_k096v42-1-7-2: var(--dt-colors-border-warning-accent, #805100);
|
|
40
40
|
}
|
|
41
|
-
._k096v4g-1-
|
|
42
|
-
--_k096v40-1-
|
|
43
|
-
--_k096v41-1-
|
|
44
|
-
--_k096v42-1-
|
|
41
|
+
._k096v4g-1-7-2 {
|
|
42
|
+
--_k096v40-1-7-2: var(--dt-colors-text-critical-on-accent-default, #f9f1f3);
|
|
43
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-critical-on-accent-default, #f9f1f3);
|
|
44
|
+
--_k096v42-1-7-2: var(--dt-colors-border-critical-accent, #b80031);
|
|
45
45
|
}
|
|
46
|
-
._k096v4h-1-
|
|
47
|
-
--_k096v40-1-
|
|
48
|
-
--_k096v41-1-
|
|
49
|
-
--_k096v42-1-
|
|
46
|
+
._k096v4h-1-7-2 {
|
|
47
|
+
--_k096v40-1-7-2: var(--dt-colors-text-neutral-on-accent-default, #f3f3f6);
|
|
48
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-neutral-on-accent-default, #f3f3f6);
|
|
49
|
+
--_k096v42-1-7-2: var(--dt-colors-border-neutral-accent, #545587);
|
|
50
50
|
}
|
|
51
|
-
._k096v4i-1-
|
|
52
|
-
--_k096v40-1-
|
|
53
|
-
--_k096v41-1-
|
|
54
|
-
--_k096v42-1-
|
|
51
|
+
._k096v4i-1-7-2 {
|
|
52
|
+
--_k096v40-1-7-2: var(--dt-colors-text-primary-disabled, #54558780);
|
|
53
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-primary-disabled, #54558780);
|
|
54
|
+
--_k096v42-1-7-2: var(--dt-colors-border-primary-disabled, #d2d3e180);
|
|
55
55
|
}
|
|
56
|
-
._k096v4j-1-
|
|
57
|
-
--_k096v40-1-
|
|
58
|
-
--_k096v41-1-
|
|
59
|
-
--_k096v42-1-
|
|
56
|
+
._k096v4j-1-7-2 {
|
|
57
|
+
--_k096v40-1-7-2: var(--dt-colors-text-success-disabled, #54558780);
|
|
58
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-success-disabled, #54558780);
|
|
59
|
+
--_k096v42-1-7-2: var(--dt-colors-border-success-disabled, #d2d3e180);
|
|
60
60
|
}
|
|
61
|
-
._k096v4k-1-
|
|
62
|
-
--_k096v40-1-
|
|
63
|
-
--_k096v41-1-
|
|
64
|
-
--_k096v42-1-
|
|
61
|
+
._k096v4k-1-7-2 {
|
|
62
|
+
--_k096v40-1-7-2: var(--dt-colors-text-warning-disabled, #54558780);
|
|
63
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-warning-disabled, #54558780);
|
|
64
|
+
--_k096v42-1-7-2: var(--dt-colors-border-warning-disabled, #d2d3e180);
|
|
65
65
|
}
|
|
66
|
-
._k096v4l-1-
|
|
67
|
-
--_k096v40-1-
|
|
68
|
-
--_k096v41-1-
|
|
69
|
-
--_k096v42-1-
|
|
66
|
+
._k096v4l-1-7-2 {
|
|
67
|
+
--_k096v40-1-7-2: var(--dt-colors-text-critical-disabled, #54558780);
|
|
68
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-critical-disabled, #54558780);
|
|
69
|
+
--_k096v42-1-7-2: var(--dt-colors-border-critical-disabled, #d2d3e180);
|
|
70
70
|
}
|
|
71
|
-
._k096v4m-1-
|
|
72
|
-
--_k096v40-1-
|
|
73
|
-
--_k096v41-1-
|
|
74
|
-
--_k096v42-1-
|
|
71
|
+
._k096v4m-1-7-2 {
|
|
72
|
+
--_k096v40-1-7-2: var(--dt-colors-text-neutral-disabled, #54558780);
|
|
73
|
+
--_k096v41-1-7-2: var(--dt-colors-icon-neutral-disabled, #54558780);
|
|
74
|
+
--_k096v42-1-7-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-
|
|
28
|
-
var colorUtilsVars = { text: "var(--_k096v40-1-
|
|
27
|
+
var colorUtilsCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_k096v43-1-7-2", variantClassNames: { color: { critical: "_k096v44-1-7-2", neutral: "_k096v45-1-7-2", primary: "_k096v46-1-7-2", success: "_k096v47-1-7-2", warning: "_k096v48-1-7-2" }, variant: { "default": "_k096v49-1-7-2", accent: "_k096v4a-1-7-2" }, disabled: { true: "_k096v4b-1-7-2", false: "_k096v4c-1-7-2" } }, defaultVariants: {}, compoundVariants: [[{ color: "primary", variant: "accent" }, "_k096v4d-1-7-2"], [{ color: "success", variant: "accent" }, "_k096v4e-1-7-2"], [{ color: "warning", variant: "accent" }, "_k096v4f-1-7-2"], [{ color: "critical", variant: "accent" }, "_k096v4g-1-7-2"], [{ color: "neutral", variant: "accent" }, "_k096v4h-1-7-2"], [{ color: "primary", disabled: true }, "_k096v4i-1-7-2"], [{ color: "success", disabled: true }, "_k096v4j-1-7-2"], [{ color: "warning", disabled: true }, "_k096v4k-1-7-2"], [{ color: "critical", disabled: true }, "_k096v4l-1-7-2"], [{ color: "neutral", disabled: true }, "_k096v4m-1-7-2"]] });
|
|
28
|
+
var colorUtilsVars = { text: "var(--_k096v40-1-7-2)", icon: "var(--_k096v41-1-7-2)", borderColor: "var(--_k096v42-1-7-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;
|
|
@@ -16,18 +16,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
21
|
-
|
|
19
|
+
var get_inert_value_exports = {};
|
|
20
|
+
__export(get_inert_value_exports, {
|
|
21
|
+
getProperInertValue: () => getProperInertValue
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(get_inert_value_exports);
|
|
24
24
|
var import_react = require("react");
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
return generatedId;
|
|
33
|
-
};
|
|
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
|
+
}
|
package/core/utils/isBrowser.js
CHANGED
|
@@ -22,7 +22,7 @@ __export(isBrowser_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(isBrowser_exports);
|
|
24
24
|
const isBrowser = (() => {
|
|
25
|
-
return !!(typeof window !== "undefined" && window.document && /* eslint-disable-next-line
|
|
25
|
+
return !!(typeof window !== "undefined" && window.document && /* eslint-disable-next-line @typescript-eslint/no-deprecated --
|
|
26
26
|
one overload of createElement is deprecated, apparently our plugin does not get that */
|
|
27
27
|
window.document.createElement);
|
|
28
28
|
})();
|