@dynatrace/strato-components 1.10.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/buttons/button/Button.css +18 -18
- package/buttons/button/Button.d.ts +2 -3
- package/buttons/button/Button.sty.js +4 -4
- package/content/progress/ProgressBar.css +73 -73
- package/content/progress/ProgressBar.js +2 -1
- package/content/progress/ProgressBar.sty.js +5 -5
- package/content/progress/ProgressBarIcon.css +2 -2
- package/content/progress/ProgressBarIcon.sty.js +1 -1
- package/content/progress/ProgressBarLabel.css +3 -3
- package/content/progress/ProgressBarLabel.sty.js +1 -1
- package/content/progress/ProgressBarValue.css +5 -5
- package/content/progress/ProgressBarValue.sty.js +1 -1
- package/content/progress/ProgressCircle.css +41 -41
- package/content/progress/ProgressCircle.js +2 -1
- package/content/progress/ProgressCircle.sty.js +5 -5
- package/content/skeleton/Skeleton.css +19 -25
- package/content/skeleton/Skeleton.js +11 -2
- package/content/skeleton/Skeleton.sty.d.ts +4 -0
- package/content/skeleton/Skeleton.sty.js +10 -2
- package/content/skeleton/SkeletonText.js +43 -31
- package/content/skeleton/utils.d.ts +19 -0
- package/content/skeleton/utils.js +79 -0
- package/core/components/app-root/AppRoot.css +32 -21
- package/core/hooks/useId.d.ts +24 -0
- package/core/hooks/useId.js +31 -0
- package/core/index.d.ts +1 -0
- package/core/index.js +3 -1
- package/core/styles/focusRing.css +61 -61
- package/core/styles/focusRing.sty.js +2 -2
- package/core/utils/colorUtils.css +60 -60
- package/core/utils/colorUtils.sty.js +2 -2
- package/esm/buttons/button/Button.css +18 -18
- 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/content/progress/ProgressBar.css +73 -73
- package/esm/content/progress/ProgressBar.js +1 -1
- 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.sty.js +1 -1
- package/esm/content/progress/ProgressBarIcon.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarLabel.css +3 -3
- package/esm/content/progress/ProgressBarLabel.sty.js +1 -1
- package/esm/content/progress/ProgressBarLabel.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarValue.css +5 -5
- package/esm/content/progress/ProgressBarValue.sty.js +1 -1
- package/esm/content/progress/ProgressBarValue.sty.js.map +1 -1
- package/esm/content/progress/ProgressCircle.css +41 -41
- package/esm/content/progress/ProgressCircle.js +2 -1
- 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/skeleton/Skeleton.css +19 -25
- package/esm/content/skeleton/Skeleton.js +13 -4
- package/esm/content/skeleton/Skeleton.js.map +2 -2
- package/esm/content/skeleton/Skeleton.sty.js +10 -2
- package/esm/content/skeleton/Skeleton.sty.js.map +2 -2
- package/esm/content/skeleton/SkeletonText.js +44 -32
- package/esm/content/skeleton/SkeletonText.js.map +3 -3
- package/esm/content/skeleton/utils.js +54 -0
- package/esm/content/skeleton/utils.js.map +7 -0
- package/esm/core/components/app-root/AppRoot.css +32 -21
- package/esm/core/hooks/useId.js +12 -0
- package/esm/core/hooks/useId.js.map +7 -0
- package/esm/core/index.js +3 -1
- package/esm/core/index.js.map +2 -2
- package/esm/core/styles/focusRing.css +61 -61
- package/esm/core/styles/focusRing.sty.js +2 -2
- package/esm/core/styles/focusRing.sty.js.map +1 -1
- package/esm/core/utils/colorUtils.css +60 -60
- package/esm/core/utils/colorUtils.sty.js +2 -2
- package/esm/core/utils/colorUtils.sty.js.map +1 -1
- package/esm/layouts/container/Container.css +5 -5
- 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 +2 -2
- 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 +5 -5
- 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 +2 -2
- package/esm/typography/highlight/Highlight.sty.js +2 -2
- package/esm/typography/highlight/Highlight.sty.js.map +1 -1
- package/esm/typography/link/Link.css +3 -6
- package/esm/typography/link/Link.js +7 -4
- package/esm/typography/link/Link.js.map +2 -2
- package/esm/typography/link/Link.sty.js +2 -2
- package/esm/typography/link/Link.sty.js.map +2 -2
- 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 +5 -5
- 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 +4 -4
- 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 +2 -2
- 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 +5 -5
- 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 +2 -2
- package/typography/highlight/Highlight.sty.js +2 -2
- package/typography/link/Link.css +3 -6
- package/typography/link/Link.js +7 -4
- package/typography/link/Link.sty.d.ts +1 -1
- package/typography/link/Link.sty.js +2 -2
- 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
|
@@ -35,6 +35,8 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
35
35
|
var import_clsx = __toESM(require("clsx"));
|
|
36
36
|
var import_react = require("react");
|
|
37
37
|
var import_Skeleton_css = require("./Skeleton.sty.js");
|
|
38
|
+
var import_utils = require("./utils.js");
|
|
39
|
+
var import_core = require("../../core/index.js");
|
|
38
40
|
const Skeleton = (0, import_react.forwardRef)(
|
|
39
41
|
(props, forwardedRef) => {
|
|
40
42
|
const {
|
|
@@ -47,7 +49,8 @@ const Skeleton = (0, import_react.forwardRef)(
|
|
|
47
49
|
"data-testid": dataTestId,
|
|
48
50
|
...remainingProps
|
|
49
51
|
} = props;
|
|
50
|
-
|
|
52
|
+
const gradientId = (0, import_core.useId)();
|
|
53
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
51
54
|
"div",
|
|
52
55
|
{
|
|
53
56
|
"data-testid": dataTestId,
|
|
@@ -55,7 +58,13 @@ const Skeleton = (0, import_react.forwardRef)(
|
|
|
55
58
|
className: (0, import_clsx.default)((0, import_Skeleton_css.skeletonPlaceholderCSS)({ variant }), consumerClassName),
|
|
56
59
|
style: { width, height, ...consumerStyle },
|
|
57
60
|
...remainingProps,
|
|
58
|
-
children
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { className: import_Skeleton_css.skeletonSvgCSS, children: [
|
|
63
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_utils.SkeletonGradient, { id: gradientId }) }),
|
|
64
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_utils.SkeletonDrawer, { gradientId })
|
|
65
|
+
] }),
|
|
66
|
+
children
|
|
67
|
+
]
|
|
59
68
|
}
|
|
60
69
|
);
|
|
61
70
|
}
|
|
@@ -8,3 +8,7 @@ export declare const skeletonPlaceholderCSS: import("@vanilla-extract/recipes").
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
}>;
|
|
11
|
+
export declare const skeletonSvgCSS: string;
|
|
12
|
+
export declare const skeletonSvgGradientCSS: string;
|
|
13
|
+
export declare const skeletonSvgBackgroundFillCSS: string;
|
|
14
|
+
export declare const skeletonSvgGradientRectCSS: string;
|
|
@@ -18,9 +18,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var Skeleton_css_exports = {};
|
|
20
20
|
__export(Skeleton_css_exports, {
|
|
21
|
-
skeletonPlaceholderCSS: () => skeletonPlaceholderCSS
|
|
21
|
+
skeletonPlaceholderCSS: () => skeletonPlaceholderCSS,
|
|
22
|
+
skeletonSvgBackgroundFillCSS: () => skeletonSvgBackgroundFillCSS,
|
|
23
|
+
skeletonSvgCSS: () => skeletonSvgCSS,
|
|
24
|
+
skeletonSvgGradientCSS: () => skeletonSvgGradientCSS,
|
|
25
|
+
skeletonSvgGradientRectCSS: () => skeletonSvgGradientRectCSS
|
|
22
26
|
});
|
|
23
27
|
module.exports = __toCommonJS(Skeleton_css_exports);
|
|
24
28
|
var import_Skeleton_css_ts_vanilla = require("./Skeleton.css");
|
|
25
29
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
-
var skeletonPlaceholderCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "
|
|
30
|
+
var skeletonPlaceholderCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1a1ozfd0-1-12-0", variantClassNames: { variant: { "default": "_1a1ozfd1-1-12-0", rounded: "_1a1ozfd2-1-12-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
31
|
+
var skeletonSvgBackgroundFillCSS = "_1a1ozfd5-1-12-0";
|
|
32
|
+
var skeletonSvgCSS = "_1a1ozfd3-1-12-0";
|
|
33
|
+
var skeletonSvgGradientCSS = "_1a1ozfd4-1-12-0";
|
|
34
|
+
var skeletonSvgGradientRectCSS = "_1a1ozfd6-1-12-0";
|
|
@@ -23,8 +23,20 @@ __export(SkeletonText_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(SkeletonText_exports);
|
|
24
24
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
25
|
var import_react = require("react");
|
|
26
|
-
var
|
|
27
|
-
var
|
|
26
|
+
var import_Skeleton_css = require("./Skeleton.sty.js");
|
|
27
|
+
var import_utils = require("./utils.js");
|
|
28
|
+
var import_core = require("../../core/index.js");
|
|
29
|
+
const lineHeight = 12;
|
|
30
|
+
const linePadding = 8;
|
|
31
|
+
const baseYOffset = linePadding * 0.5;
|
|
32
|
+
const lineCapSize = lineHeight * 0.5;
|
|
33
|
+
const lineStep = lineHeight + linePadding;
|
|
34
|
+
const getSkeletonLinesMargin = (line, lines) => {
|
|
35
|
+
if (lines === 1) {
|
|
36
|
+
return 0;
|
|
37
|
+
}
|
|
38
|
+
return (line + 2) % 3 * lineHeight;
|
|
39
|
+
};
|
|
28
40
|
const SkeletonText = (0, import_react.forwardRef)(
|
|
29
41
|
(props, forwardedRef) => {
|
|
30
42
|
const {
|
|
@@ -35,41 +47,41 @@ const SkeletonText = (0, import_react.forwardRef)(
|
|
|
35
47
|
"data-testid": dataTestId,
|
|
36
48
|
...remainingProps
|
|
37
49
|
} = props;
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
return 0;
|
|
41
|
-
}
|
|
42
|
-
return (line + 2) % 3 * 12;
|
|
43
|
-
};
|
|
44
|
-
const getSkeletonLines = (lines2) => {
|
|
45
|
-
const render = [];
|
|
46
|
-
for (let line = 0; line < lines2; line++) {
|
|
47
|
-
const width2 = `calc(100% - ${getSkeletonLinesMargin(line, lines2)}px)`;
|
|
48
|
-
render.push(
|
|
49
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
50
|
-
import_Skeleton.Skeleton,
|
|
51
|
-
{
|
|
52
|
-
width: width2,
|
|
53
|
-
height: "12px"
|
|
54
|
-
},
|
|
55
|
-
`${lines2}-${line}`
|
|
56
|
-
)
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
return render;
|
|
60
|
-
};
|
|
50
|
+
const maskId = (0, import_core.useId)();
|
|
51
|
+
const gradientId = (0, import_core.useId)();
|
|
61
52
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
62
|
-
|
|
53
|
+
"div",
|
|
63
54
|
{
|
|
64
55
|
"data-testid": dataTestId,
|
|
65
56
|
ref: forwardedRef,
|
|
66
|
-
flexDirection: "column",
|
|
67
|
-
gap: 8,
|
|
68
|
-
paddingY: 4,
|
|
69
57
|
className: consumerClassName,
|
|
70
|
-
style: {
|
|
58
|
+
style: {
|
|
59
|
+
width,
|
|
60
|
+
height: `${lineStep * lines}px`,
|
|
61
|
+
...consumerStyle
|
|
62
|
+
},
|
|
71
63
|
...remainingProps,
|
|
72
|
-
children:
|
|
64
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { className: import_Skeleton_css.skeletonSvgCSS, children: [
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_utils.SkeletonGradient, { id: gradientId }) }),
|
|
66
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("mask", { id: maskId, children: new Array(lines).fill(null).map((_, lineIndex) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
67
|
+
"rect",
|
|
68
|
+
{
|
|
69
|
+
y: baseYOffset + lineStep * lineIndex,
|
|
70
|
+
height: lineHeight,
|
|
71
|
+
rx: lineCapSize,
|
|
72
|
+
fill: "white",
|
|
73
|
+
style: {
|
|
74
|
+
// we also substract 1px, to make sure the line cap is fully within the svg, and isn't cut
|
|
75
|
+
width: `calc(100% - 1px - ${getSkeletonLinesMargin(
|
|
76
|
+
lineIndex,
|
|
77
|
+
lines
|
|
78
|
+
)}px)`
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
`${lines}-${lineIndex}`
|
|
82
|
+
)) }),
|
|
83
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("g", { mask: `url(#${maskId})`, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_utils.SkeletonDrawer, { gradientId }) })
|
|
84
|
+
] })
|
|
73
85
|
}
|
|
74
86
|
);
|
|
75
87
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders the svg gradient used by the skeleton animations.
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const SkeletonGradient: (props: {
|
|
6
|
+
id: string;
|
|
7
|
+
}) => import("react/jsx-runtime.js").JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Renders the svg base background in skeleton animations.
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export declare const SkeletonBackgroundFill: () => import("react/jsx-runtime.js").JSX.Element;
|
|
13
|
+
/**
|
|
14
|
+
* Renders the animated skeleton svg contents.
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const SkeletonDrawer: (props: {
|
|
18
|
+
gradientId: string;
|
|
19
|
+
}) => import("react/jsx-runtime.js").JSX.Element;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
var utils_exports = {};
|
|
30
|
+
__export(utils_exports, {
|
|
31
|
+
SkeletonBackgroundFill: () => SkeletonBackgroundFill,
|
|
32
|
+
SkeletonDrawer: () => SkeletonDrawer,
|
|
33
|
+
SkeletonGradient: () => SkeletonGradient
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(utils_exports);
|
|
36
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
+
var import_timings_js = __toESM(require("@dynatrace/strato-design-tokens/timings-js"));
|
|
38
|
+
var import_Skeleton_css = require("./Skeleton.sty.js");
|
|
39
|
+
const gradientWidth = 400;
|
|
40
|
+
const SkeletonGradient = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
41
|
+
"linearGradient",
|
|
42
|
+
{
|
|
43
|
+
className: import_Skeleton_css.skeletonSvgGradientCSS,
|
|
44
|
+
id: props.id,
|
|
45
|
+
x1: "0",
|
|
46
|
+
x2: "1",
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "0%", stopOpacity: "0.0" }),
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "50%", stopOpacity: "1.0" }),
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", { offset: "100%", stopOpacity: "0.0" })
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
const SkeletonBackgroundFill = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", { className: import_Skeleton_css.skeletonSvgBackgroundFillCSS });
|
|
55
|
+
const SkeletonDrawer = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SkeletonBackgroundFill, {}),
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
58
|
+
"rect",
|
|
59
|
+
{
|
|
60
|
+
className: import_Skeleton_css.skeletonSvgGradientRectCSS,
|
|
61
|
+
width: `${gradientWidth}px`,
|
|
62
|
+
height: "100%",
|
|
63
|
+
fill: `url(#${props.gradientId})`,
|
|
64
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
65
|
+
"animate",
|
|
66
|
+
{
|
|
67
|
+
attributeName: "x",
|
|
68
|
+
from: `-${gradientWidth}px`,
|
|
69
|
+
to: "100%",
|
|
70
|
+
dur: `${import_timings_js.default.Slowest.Gentle}s`,
|
|
71
|
+
repeatCount: "indefinite",
|
|
72
|
+
keyTimes: "0; 1",
|
|
73
|
+
calcMode: "spline",
|
|
74
|
+
keySplines: "0.4, 0, 0.2, 1"
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] });
|
|
@@ -123,12 +123,12 @@
|
|
|
123
123
|
--dt-borders-style-dashed: dashed;
|
|
124
124
|
--dt-borders-width-default: 1px;
|
|
125
125
|
--dt-borders-width-emphasized: 2px;
|
|
126
|
-
--dt-borders-radius-surface-subdued:
|
|
127
|
-
--dt-borders-radius-surface-default:
|
|
128
|
-
--dt-borders-radius-container-subdued:
|
|
129
|
-
--dt-borders-radius-container-default:
|
|
130
|
-
--dt-borders-radius-field-subdued:
|
|
131
|
-
--dt-borders-radius-field-default:
|
|
126
|
+
--dt-borders-radius-surface-subdued: 9px;
|
|
127
|
+
--dt-borders-radius-surface-default: 12px;
|
|
128
|
+
--dt-borders-radius-container-subdued: 6px;
|
|
129
|
+
--dt-borders-radius-container-default: 9px;
|
|
130
|
+
--dt-borders-radius-field-subdued: 3px;
|
|
131
|
+
--dt-borders-radius-field-default: 6px;
|
|
132
132
|
--dt-borders-radius-field-emphasized: 9999px;
|
|
133
133
|
--dt-box-shadows-surface-flat-rest: 0px 0px 0px 1px #2d2e4e0d;
|
|
134
134
|
--dt-box-shadows-surface-flat-hover: 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12;
|
|
@@ -928,6 +928,7 @@
|
|
|
928
928
|
--dt-easings-slow-in-fast-out: cubic-bezier(0.8, 0, 0.5, 1);
|
|
929
929
|
--dt-easings-fast-in-slow-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
930
930
|
--dt-easings-out-back: cubic-bezier(0.4, 1.6, 0.7, 1);
|
|
931
|
+
--dt-easings-rotate-elastic: cubic-bezier(0.8, 0.3, 0.3, 0.8);
|
|
931
932
|
--dt-timings-instant-default: 0ms;
|
|
932
933
|
--dt-timings-offset-short: 20ms;
|
|
933
934
|
--dt-timings-offset-medium: 30ms;
|
|
@@ -942,6 +943,9 @@
|
|
|
942
943
|
--dt-timings-slow-default: 400ms;
|
|
943
944
|
--dt-timings-slow-moderate: 600ms;
|
|
944
945
|
--dt-timings-slow-gentle: 800ms;
|
|
946
|
+
--dt-timings-slowest-default: 1000ms;
|
|
947
|
+
--dt-timings-slowest-moderate: 1200ms;
|
|
948
|
+
--dt-timings-slowest-gentle: 1500ms;
|
|
945
949
|
--scrollbar-track: transparent;
|
|
946
950
|
--scrollbar-thumb: var(--dt-colors-background-field-neutral-emphasized, #e4e5eb);
|
|
947
951
|
--scrollbar-thumb--hover: var(--dt-colors-background-field-neutral-emphasized-hover, #dadbe4);
|
|
@@ -952,12 +956,12 @@
|
|
|
952
956
|
--dt-borders-style-dashed: dashed;
|
|
953
957
|
--dt-borders-width-default: 1px;
|
|
954
958
|
--dt-borders-width-emphasized: 2px;
|
|
955
|
-
--dt-borders-radius-surface-subdued:
|
|
956
|
-
--dt-borders-radius-surface-default:
|
|
957
|
-
--dt-borders-radius-container-subdued:
|
|
958
|
-
--dt-borders-radius-container-default:
|
|
959
|
-
--dt-borders-radius-field-subdued:
|
|
960
|
-
--dt-borders-radius-field-default:
|
|
959
|
+
--dt-borders-radius-surface-subdued: 9px;
|
|
960
|
+
--dt-borders-radius-surface-default: 12px;
|
|
961
|
+
--dt-borders-radius-container-subdued: 6px;
|
|
962
|
+
--dt-borders-radius-container-default: 9px;
|
|
963
|
+
--dt-borders-radius-field-subdued: 3px;
|
|
964
|
+
--dt-borders-radius-field-default: 6px;
|
|
961
965
|
--dt-borders-radius-field-emphasized: 9999px;
|
|
962
966
|
--dt-box-shadows-surface-flat-rest: 0px 0px 0px 1px #f0f0f514;
|
|
963
967
|
--dt-box-shadows-surface-flat-hover: 0px 0px 0px 1px #f0f0f514, 0px 1px 2px #112, 0px 4px 8px #112c;
|
|
@@ -1757,6 +1761,7 @@
|
|
|
1757
1761
|
--dt-easings-slow-in-fast-out: cubic-bezier(0.8, 0, 0.5, 1);
|
|
1758
1762
|
--dt-easings-fast-in-slow-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1759
1763
|
--dt-easings-out-back: cubic-bezier(0.4, 1.6, 0.7, 1);
|
|
1764
|
+
--dt-easings-rotate-elastic: cubic-bezier(0.8, 0.3, 0.3, 0.8);
|
|
1760
1765
|
--dt-timings-instant-default: 0ms;
|
|
1761
1766
|
--dt-timings-offset-short: 20ms;
|
|
1762
1767
|
--dt-timings-offset-medium: 30ms;
|
|
@@ -1771,6 +1776,9 @@
|
|
|
1771
1776
|
--dt-timings-slow-default: 400ms;
|
|
1772
1777
|
--dt-timings-slow-moderate: 600ms;
|
|
1773
1778
|
--dt-timings-slow-gentle: 800ms;
|
|
1779
|
+
--dt-timings-slowest-default: 1000ms;
|
|
1780
|
+
--dt-timings-slowest-moderate: 1200ms;
|
|
1781
|
+
--dt-timings-slowest-gentle: 1500ms;
|
|
1774
1782
|
}
|
|
1775
1783
|
html, body {
|
|
1776
1784
|
margin: 0;
|
|
@@ -1816,12 +1824,12 @@ body {
|
|
|
1816
1824
|
--dt-borders-style-dashed: dashed;
|
|
1817
1825
|
--dt-borders-width-default: 1px;
|
|
1818
1826
|
--dt-borders-width-emphasized: 2px;
|
|
1819
|
-
--dt-borders-radius-surface-subdued:
|
|
1820
|
-
--dt-borders-radius-surface-default:
|
|
1821
|
-
--dt-borders-radius-container-subdued:
|
|
1822
|
-
--dt-borders-radius-container-default:
|
|
1823
|
-
--dt-borders-radius-field-subdued:
|
|
1824
|
-
--dt-borders-radius-field-default:
|
|
1827
|
+
--dt-borders-radius-surface-subdued: 9px;
|
|
1828
|
+
--dt-borders-radius-surface-default: 12px;
|
|
1829
|
+
--dt-borders-radius-container-subdued: 6px;
|
|
1830
|
+
--dt-borders-radius-container-default: 9px;
|
|
1831
|
+
--dt-borders-radius-field-subdued: 3px;
|
|
1832
|
+
--dt-borders-radius-field-default: 6px;
|
|
1825
1833
|
--dt-borders-radius-field-emphasized: 9999px;
|
|
1826
1834
|
--dt-box-shadows-surface-flat-rest: 0px 0px 0px 1px #2d2e4e0d;
|
|
1827
1835
|
--dt-box-shadows-surface-flat-hover: 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12;
|
|
@@ -2621,6 +2629,7 @@ body {
|
|
|
2621
2629
|
--dt-easings-slow-in-fast-out: cubic-bezier(0.8, 0, 0.5, 1);
|
|
2622
2630
|
--dt-easings-fast-in-slow-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
2623
2631
|
--dt-easings-out-back: cubic-bezier(0.4, 1.6, 0.7, 1);
|
|
2632
|
+
--dt-easings-rotate-elastic: cubic-bezier(0.8, 0.3, 0.3, 0.8);
|
|
2624
2633
|
--dt-timings-instant-default: 0ms;
|
|
2625
2634
|
--dt-timings-offset-short: 20ms;
|
|
2626
2635
|
--dt-timings-offset-medium: 30ms;
|
|
@@ -2635,14 +2644,16 @@ body {
|
|
|
2635
2644
|
--dt-timings-slow-default: 400ms;
|
|
2636
2645
|
--dt-timings-slow-moderate: 600ms;
|
|
2637
2646
|
--dt-timings-slow-gentle: 800ms;
|
|
2647
|
+
--dt-timings-slowest-default: 1000ms;
|
|
2648
|
+
--dt-timings-slowest-moderate: 1200ms;
|
|
2649
|
+
--dt-timings-slowest-gentle: 1500ms;
|
|
2638
2650
|
}
|
|
2639
2651
|
html, body {
|
|
2640
2652
|
background-color: transparent;
|
|
2641
2653
|
}
|
|
2642
2654
|
}
|
|
2643
2655
|
@supports (-moz-appearance:none) {
|
|
2644
|
-
|
|
2645
|
-
scrollbar-color: var(--dt-colors-
|
|
2646
|
-
scrollbar-width: thin;
|
|
2656
|
+
* {
|
|
2657
|
+
scrollbar-color: var(--dt-colors-border-neutral-default, #dadbe4) transparent;
|
|
2647
2658
|
}
|
|
2648
2659
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom hook to generate a sanitized react useId for use in DOM selectors.
|
|
3
|
+
*
|
|
4
|
+
* React's `useId()` may return IDs containing colons (e.g., `:r1:`), which are valid in HTML
|
|
5
|
+
* but **not valid CSS identifiers**. This can cause issues when using `querySelector` or when
|
|
6
|
+
* libraries like `nwsapi` attempt to parse selectors, especially in test environments like jest
|
|
7
|
+
* with jsdom.
|
|
8
|
+
*
|
|
9
|
+
* This hook replaces colons with a safe, reversible encoding (`«` and `»`) to ensure the ID
|
|
10
|
+
* remains unique and usable in CSS selectors. The characters are chosen to be the same as in the
|
|
11
|
+
* react 19.2+ implementation.
|
|
12
|
+
*
|
|
13
|
+
* Background:
|
|
14
|
+
* - React previously used colons in generated IDs to avoid collisions.
|
|
15
|
+
* - This caused parsing errors in selector engines like `nwsapi` when used in test environments.
|
|
16
|
+
* - React addressed this in [facebook/react#32001](https://github.com/facebook/react/pull/32001) in React 19.2+.
|
|
17
|
+
*
|
|
18
|
+
* This hook provides a workaround for environments still using older React versions or needing
|
|
19
|
+
* compatibility with selector engines that strictly enforce CSS syntax.
|
|
20
|
+
*
|
|
21
|
+
* @returns A sanitized ID string safe for use in `querySelector` and CSS selectors.
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
24
|
+
export declare function useId(): string;
|
|
@@ -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 useId_exports = {};
|
|
20
|
+
__export(useId_exports, {
|
|
21
|
+
useId: () => useId
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(useId_exports);
|
|
24
|
+
var import_react = require("react");
|
|
25
|
+
function useId() {
|
|
26
|
+
const id = (0, import_react.useId)();
|
|
27
|
+
const sanitizedId = (0, import_react.useMemo)(() => {
|
|
28
|
+
return id.replace(":", "\xAB").replace(":", "\xBB");
|
|
29
|
+
}, [id]);
|
|
30
|
+
return sanitizedId;
|
|
31
|
+
}
|
package/core/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ 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 } from './hooks/useId.js';
|
|
21
22
|
export { useSafeForwardProps as _useSafeForwardProps } from './hooks/useSafeForwardProps.js';
|
|
22
23
|
export type { UseSafeForwardReturnProps as _UseSafeForwardReturnProps } from './hooks/useSafeForwardProps.js';
|
|
23
24
|
export type { AriaDisabledProps, AriaLabelingProps, } from './types/a11y-props.js';
|
package/core/index.js
CHANGED
|
@@ -33,7 +33,8 @@ __export(core_exports, {
|
|
|
33
33
|
_useAriaLabelingProps: () => import_useAriaLabelingProps.useAriaLabelingProps,
|
|
34
34
|
_useFocusContext: () => import_useFocusContext.useFocusContext,
|
|
35
35
|
_useSafeForwardProps: () => import_useSafeForwardProps.useSafeForwardProps,
|
|
36
|
-
useCurrentTheme: () => import_useCurrentTheme.useCurrentTheme
|
|
36
|
+
useCurrentTheme: () => import_useCurrentTheme.useCurrentTheme,
|
|
37
|
+
useId: () => import_useId.useId
|
|
37
38
|
});
|
|
38
39
|
module.exports = __toCommonJS(core_exports);
|
|
39
40
|
var import_AppRoot = require("./components/app-root/AppRoot.js");
|
|
@@ -49,6 +50,7 @@ var import_is_focusable = require("./utils/focus-management/is-focusable.js");
|
|
|
49
50
|
var import_isBrowser = require("./utils/isBrowser.js");
|
|
50
51
|
var import_merge_props = require("./utils/merge-props.js");
|
|
51
52
|
var import_useAriaLabelingProps = require("./hooks/useAriaLabelingProps.js");
|
|
53
|
+
var import_useId = require("./hooks/useId.js");
|
|
52
54
|
var import_useSafeForwardProps = require("./hooks/useSafeForwardProps.js");
|
|
53
55
|
var import_can_receive_default_text_format = require("./utils/can-receive-default-text-format.js");
|
|
54
56
|
var import_parse_boolean = require("./utils/parse-boolean.js");
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
._z2r50s3-1-
|
|
1
|
+
._z2r50s3-1-12-0 {
|
|
2
2
|
outline: none;
|
|
3
3
|
}
|
|
4
|
-
._z2r50s3-1-
|
|
4
|
+
._z2r50s3-1-12-0:focus-visible {
|
|
5
5
|
outline: none;
|
|
6
6
|
}
|
|
7
|
-
._z2r50s4-1-
|
|
8
|
-
border-radius: var(--dt-borders-radius-field-subdued,
|
|
9
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-1-
|
|
10
|
-
background-color: var(--_z2r50s2-1-
|
|
7
|
+
._z2r50s4-1-12-0 {
|
|
8
|
+
border-radius: var(--dt-borders-radius-field-subdued, 3px);
|
|
9
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-1-12-0);
|
|
10
|
+
background-color: var(--_z2r50s2-1-12-0);
|
|
11
11
|
}
|
|
12
|
-
._z2r50s5-1-
|
|
13
|
-
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-1-
|
|
12
|
+
._z2r50s5-1-12-0._z2r50s5-1-12-0 {
|
|
13
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-1-12-0), inset 0 0 0 calc(var(--dt-borders-width-emphasized, 2px) + 1px) var(--_z2r50s1-1-12-0);
|
|
14
14
|
}
|
|
15
|
-
._z2r50s6-1-
|
|
16
|
-
--_z2r50s0-1-
|
|
17
|
-
--_z2r50s1-1-
|
|
18
|
-
--_z2r50s2-1-
|
|
15
|
+
._z2r50s6-1-12-0 {
|
|
16
|
+
--_z2r50s0-1-12-0: var(--dt-colors-border-neutral-accent, #595a7d);
|
|
17
|
+
--_z2r50s1-1-12-0: var(--dt-colors-border-neutral-default, #dadbe4);
|
|
18
|
+
--_z2r50s2-1-12-0: var(--dt-colors-background-field-neutral-emphasized, #e4e5eb);
|
|
19
19
|
}
|
|
20
|
-
._z2r50s7-1-
|
|
21
|
-
--_z2r50s0-1-
|
|
22
|
-
--_z2r50s1-1-
|
|
23
|
-
--_z2r50s2-1-
|
|
20
|
+
._z2r50s7-1-12-0 {
|
|
21
|
+
--_z2r50s0-1-12-0: var(--dt-colors-border-primary-accent, #464cce);
|
|
22
|
+
--_z2r50s1-1-12-0: var(--dt-colors-border-primary-default, #d5dbf6);
|
|
23
|
+
--_z2r50s2-1-12-0: var(--dt-colors-background-field-primary-emphasized, #e1e5f7);
|
|
24
24
|
}
|
|
25
|
-
._z2r50s8-1-
|
|
26
|
-
--_z2r50s0-1-
|
|
27
|
-
--_z2r50s1-1-
|
|
28
|
-
--_z2r50s2-1-
|
|
25
|
+
._z2r50s8-1-12-0 {
|
|
26
|
+
--_z2r50s0-1-12-0: var(--dt-colors-border-success-accent, #2d6761);
|
|
27
|
+
--_z2r50s1-1-12-0: var(--dt-colors-border-success-default, #d3dedd);
|
|
28
|
+
--_z2r50s2-1-12-0: var(--dt-colors-background-field-success-emphasized, #e0e7e6);
|
|
29
29
|
}
|
|
30
|
-
._z2r50s9-1-
|
|
31
|
-
--_z2r50s0-1-
|
|
32
|
-
--_z2r50s1-1-
|
|
33
|
-
--_z2r50s2-1-
|
|
30
|
+
._z2r50s9-1-12-0 {
|
|
31
|
+
--_z2r50s0-1-12-0: var(--dt-colors-border-warning-accent, #855400);
|
|
32
|
+
--_z2r50s1-1-12-0: var(--dt-colors-border-warning-default, #f9ebdb);
|
|
33
|
+
--_z2r50s2-1-12-0: var(--dt-colors-background-field-warning-emphasized, #f9f0e5);
|
|
34
34
|
}
|
|
35
|
-
._z2r50sa-1-
|
|
36
|
-
--_z2r50s0-1-
|
|
37
|
-
--_z2r50s1-1-
|
|
38
|
-
--_z2r50s2-1-
|
|
35
|
+
._z2r50sa-1-12-0 {
|
|
36
|
+
--_z2r50s0-1-12-0: var(--dt-colors-border-critical-accent, #bb0731);
|
|
37
|
+
--_z2r50s1-1-12-0: var(--dt-colors-border-critical-default, #f6d6d5);
|
|
38
|
+
--_z2r50s2-1-12-0: var(--dt-colors-background-field-critical-emphasized, #f8e1e1);
|
|
39
39
|
}
|
|
40
|
-
._z2r50sb-1-
|
|
40
|
+
._z2r50sb-1-12-0:focus-within {
|
|
41
41
|
outline: none;
|
|
42
42
|
}
|
|
43
|
-
._z2r50sc-1-
|
|
44
|
-
border-radius: var(--dt-borders-radius-field-subdued,
|
|
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-
|
|
43
|
+
._z2r50sc-1-12-0:focus-within {
|
|
44
|
+
border-radius: var(--dt-borders-radius-field-subdued, 3px);
|
|
45
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-default, 1px) var(--_z2r50s0-1-12-0);
|
|
46
|
+
background-color: var(--_z2r50s2-1-12-0);
|
|
47
|
+
}
|
|
48
|
+
._z2r50sd-1-12-0:focus-within {
|
|
49
|
+
box-shadow: inset 0 0 0 var(--dt-borders-width-emphasized, 2px) var(--_z2r50s0-1-12-0), inset 0 0 0 calc(var(--dt-borders-width-emphasized, 2px) + 1px) var(--_z2r50s1-1-12-0);
|
|
50
|
+
}
|
|
51
|
+
._z2r50se-1-12-0 {
|
|
52
|
+
--_z2r50s0-1-12-0: var(--dt-colors-border-neutral-accent, #595a7d);
|
|
53
|
+
--_z2r50s1-1-12-0: var(--dt-colors-border-neutral-default, #dadbe4);
|
|
54
|
+
--_z2r50s2-1-12-0: var(--dt-colors-background-field-neutral-emphasized, #e4e5eb);
|
|
55
|
+
}
|
|
56
|
+
._z2r50sf-1-12-0 {
|
|
57
|
+
--_z2r50s0-1-12-0: var(--dt-colors-border-primary-accent, #464cce);
|
|
58
|
+
--_z2r50s1-1-12-0: var(--dt-colors-border-primary-default, #d5dbf6);
|
|
59
|
+
--_z2r50s2-1-12-0: var(--dt-colors-background-field-primary-emphasized, #e1e5f7);
|
|
60
|
+
}
|
|
61
|
+
._z2r50sg-1-12-0 {
|
|
62
|
+
--_z2r50s0-1-12-0: var(--dt-colors-border-success-accent, #2d6761);
|
|
63
|
+
--_z2r50s1-1-12-0: var(--dt-colors-border-success-default, #d3dedd);
|
|
64
|
+
--_z2r50s2-1-12-0: var(--dt-colors-background-field-success-emphasized, #e0e7e6);
|
|
65
|
+
}
|
|
66
|
+
._z2r50sh-1-12-0 {
|
|
67
|
+
--_z2r50s0-1-12-0: var(--dt-colors-border-warning-accent, #855400);
|
|
68
|
+
--_z2r50s1-1-12-0: var(--dt-colors-border-warning-default, #f9ebdb);
|
|
69
|
+
--_z2r50s2-1-12-0: var(--dt-colors-background-field-warning-emphasized, #f9f0e5);
|
|
70
|
+
}
|
|
71
|
+
._z2r50si-1-12-0 {
|
|
72
|
+
--_z2r50s0-1-12-0: var(--dt-colors-border-critical-accent, #bb0731);
|
|
73
|
+
--_z2r50s1-1-12-0: var(--dt-colors-border-critical-default, #f6d6d5);
|
|
74
|
+
--_z2r50s2-1-12-0: var(--dt-colors-background-field-critical-emphasized, #f8e1e1);
|
|
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-12-0", variantClassNames: { minimal: { true: "_z2r50s4-1-12-0", false: "_z2r50s5-1-12-0" }, variant: { neutral: "_z2r50s6-1-12-0", primary: "_z2r50s7-1-12-0", success: "_z2r50s8-1-12-0", warning: "_z2r50s9-1-12-0", critical: "_z2r50sa-1-12-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
28
|
+
var focusRingFocusWithinCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_z2r50sb-1-12-0", variantClassNames: { minimal: { true: "_z2r50sc-1-12-0", false: "_z2r50sd-1-12-0" }, variant: { neutral: "_z2r50se-1-12-0", primary: "_z2r50sf-1-12-0", success: "_z2r50sg-1-12-0", warning: "_z2r50sh-1-12-0", critical: "_z2r50si-1-12-0" } }, defaultVariants: {}, compoundVariants: [] });
|