@dynatrace/strato-components 1.16.1 → 1.18.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 +16 -16
- package/buttons/button/Button.js +12 -9
- package/buttons/button/Button.sty.js +4 -4
- package/buttons/intent-button/IntentButton.d.ts +3 -1
- package/content/progress/ProgressBar.css +71 -71
- package/content/progress/ProgressBar.js +3 -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 +40 -40
- package/content/progress/ProgressCircle.js +3 -1
- package/content/progress/ProgressCircle.sty.js +5 -5
- package/content/skeleton/Skeleton.css +7 -7
- package/content/skeleton/Skeleton.js +3 -0
- package/content/skeleton/Skeleton.sty.js +5 -5
- package/content/skeleton/SkeletonText.js +3 -0
- package/core/hooks/useBehavioralTrackingProps.d.ts +4 -0
- package/core/index.d.ts +2 -0
- package/core/index.js +4 -0
- package/core/styles/focusRing.css +66 -66
- package/core/styles/focusRing.sty.d.ts +10 -6
- package/core/styles/focusRing.sty.js +2 -2
- package/core/styles/focusRingStatic.css +44 -0
- package/core/styles/focusRingStatic.sty.d.ts +77 -0
- package/core/styles/focusRingStatic.sty.js +26 -0
- package/core/styles/useFocusRing.d.ts +7 -6
- package/core/styles/useFocusRing.js +13 -13
- package/core/utils/colorUtils.css +60 -60
- package/core/utils/colorUtils.sty.js +2 -2
- package/esm/buttons/button/Button.css +16 -16
- package/esm/buttons/button/Button.js +12 -9
- 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/index.js.map +1 -1
- package/esm/buttons/intent-button/IntentButton.js.map +2 -2
- package/esm/content/progress/ProgressBar.css +71 -71
- package/esm/content/progress/ProgressBar.js +3 -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 +40 -40
- package/esm/content/progress/ProgressCircle.js +3 -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 +7 -7
- package/esm/content/skeleton/Skeleton.js +3 -0
- package/esm/content/skeleton/Skeleton.js.map +2 -2
- package/esm/content/skeleton/Skeleton.sty.js +5 -5
- package/esm/content/skeleton/Skeleton.sty.js.map +1 -1
- package/esm/content/skeleton/SkeletonText.js +3 -0
- package/esm/content/skeleton/SkeletonText.js.map +2 -2
- package/esm/core/hooks/useBehavioralTrackingProps.js.map +2 -2
- package/esm/core/index.js +6 -0
- package/esm/core/index.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/styles/focusRingStatic.css +44 -0
- package/esm/core/styles/focusRingStatic.sty.js +7 -0
- package/esm/core/styles/focusRingStatic.sty.js.map +7 -0
- package/esm/core/styles/useFocusRing.js +15 -15
- package/esm/core/styles/useFocusRing.js.map +2 -2
- package/esm/core/utils/colorUtils.css +60 -60
- package/esm/core/utils/colorUtils.sty.js +2 -2
- package/esm/core/utils/colorUtils.sty.js.map +1 -1
- package/esm/layouts/container/Container.css +4 -4
- package/esm/layouts/container/Container.sty.js +1 -1
- package/esm/layouts/container/Container.sty.js.map +1 -1
- package/esm/layouts/divider/Divider.css +6 -6
- package/esm/layouts/divider/Divider.sty.js +1 -1
- package/esm/layouts/divider/Divider.sty.js.map +1 -1
- package/esm/layouts/surface/Surface.css +39 -39
- package/esm/layouts/surface/Surface.js +2 -6
- package/esm/layouts/surface/Surface.js.map +2 -2
- 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.js +3 -1
- package/esm/typography/block-quote/Blockquote.js.map +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.js +3 -1
- package/esm/typography/code/Code.js.map +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.js +3 -1
- package/esm/typography/emphasis/Emphasis.js.map +2 -2
- 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 +8 -5
- package/esm/typography/external-link/ExternalLink.js +6 -13
- package/esm/typography/external-link/ExternalLink.js.map +2 -2
- package/esm/typography/external-link/ExternalLink.sty.js +2 -1
- package/esm/typography/external-link/ExternalLink.sty.js.map +2 -2
- package/esm/typography/heading/Heading.css +7 -7
- package/esm/typography/heading/Heading.js +3 -1
- package/esm/typography/heading/Heading.js.map +2 -2
- 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.js +3 -1
- package/esm/typography/highlight/Highlight.js.map +2 -2
- package/esm/typography/highlight/Highlight.sty.js +1 -1
- package/esm/typography/highlight/Highlight.sty.js.map +1 -1
- package/esm/typography/link/Link.css +6 -3
- package/esm/typography/link/Link.js +6 -19
- package/esm/typography/link/Link.js.map +2 -2
- package/esm/typography/link/Link.sty.js +2 -1
- package/esm/typography/link/Link.sty.js.map +2 -2
- package/esm/typography/list/List.css +4 -4
- package/esm/typography/list/List.js +3 -1
- package/esm/typography/list/List.js.map +2 -2
- 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.js +3 -1
- package/esm/typography/paragraph/Paragraph.js.map +2 -2
- 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.js +3 -1
- package/esm/typography/strikethrough/Strikethrough.js.map +2 -2
- 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.js +3 -1
- package/esm/typography/strong/Strong.js.map +2 -2
- 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.js +4 -1
- package/esm/typography/text/Text.js.map +2 -2
- 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 +8 -1
- 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/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.js +2 -6
- package/layouts/surface/Surface.sty.js +2 -2
- package/layouts/surface/variables.sty.js +1 -1
- package/package.json +2 -2
- 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.js +3 -1
- package/typography/block-quote/Blockquote.sty.js +1 -1
- package/typography/code/Code.css +1 -1
- package/typography/code/Code.js +3 -1
- package/typography/code/Code.sty.js +1 -1
- package/typography/emphasis/Emphasis.css +1 -1
- package/typography/emphasis/Emphasis.js +3 -1
- package/typography/emphasis/Emphasis.sty.js +1 -1
- package/typography/external-link/ExternalLink.css +8 -5
- package/typography/external-link/ExternalLink.js +6 -13
- package/typography/external-link/ExternalLink.sty.js +2 -1
- package/typography/heading/Heading.css +7 -7
- package/typography/heading/Heading.js +3 -1
- package/typography/heading/Heading.sty.js +1 -1
- package/typography/highlight/Highlight.css +2 -2
- package/typography/highlight/Highlight.js +3 -1
- package/typography/highlight/Highlight.sty.js +1 -1
- package/typography/link/Link.css +6 -3
- package/typography/link/Link.js +6 -19
- package/typography/link/Link.sty.js +2 -1
- package/typography/list/List.css +4 -4
- package/typography/list/List.js +3 -1
- package/typography/list/List.sty.js +2 -2
- package/typography/paragraph/Paragraph.css +3 -3
- package/typography/paragraph/Paragraph.js +3 -1
- package/typography/paragraph/Paragraph.sty.js +1 -1
- package/typography/strikethrough/Strikethrough.css +1 -1
- package/typography/strikethrough/Strikethrough.js +3 -1
- package/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/typography/strong/Strong.css +1 -1
- package/typography/strong/Strong.js +3 -1
- package/typography/strong/Strong.sty.js +1 -1
- package/typography/text/Text.css +3 -3
- package/typography/text/Text.js +4 -1
- package/typography/text/Text.sty.js +1 -1
- package/typography/text-ellipsis/TextEllipsis.css +6 -6
- package/typography/text-ellipsis/TextEllipsis.js +8 -1
- package/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
|
@@ -36,6 +36,7 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
36
36
|
var import_react = require("react");
|
|
37
37
|
var import_Paragraph_css = require("./Paragraph.sty.js");
|
|
38
38
|
var import_textStyle_css = require("../../styles/textStyle.sty.js");
|
|
39
|
+
const COMPONENT_NAME = "Paragraph";
|
|
39
40
|
const Paragraph = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
|
|
40
41
|
const {
|
|
41
42
|
children,
|
|
@@ -68,8 +69,9 @@ const Paragraph = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
|
|
|
68
69
|
"--strato-ellipsis-line-clamp": maxLines
|
|
69
70
|
},
|
|
70
71
|
...remainingProps,
|
|
72
|
+
"data-dt-component": COMPONENT_NAME,
|
|
71
73
|
children
|
|
72
74
|
}
|
|
73
75
|
);
|
|
74
76
|
});
|
|
75
|
-
Paragraph.displayName =
|
|
77
|
+
Paragraph.displayName = COMPONENT_NAME;
|
|
@@ -23,4 +23,4 @@ __export(Paragraph_css_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(Paragraph_css_exports);
|
|
24
24
|
var import_Paragraph_css_ts_vanilla = require("./Paragraph.css");
|
|
25
25
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
-
var paragraph = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_487p2n0-1-
|
|
26
|
+
var paragraph = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_487p2n0-1-18-0", variantClassNames: { ellipsis: { singleLine: "_487p2n1-1-18-0", multiLine: "_487p2n2-1-18-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -35,6 +35,7 @@ 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_Strikethrough_css = require("./Strikethrough.sty.js");
|
|
38
|
+
const COMPONENT_NAME = "Strikethrough";
|
|
38
39
|
const Strikethrough = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
|
|
39
40
|
const {
|
|
40
41
|
children,
|
|
@@ -55,8 +56,9 @@ const Strikethrough = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref)
|
|
|
55
56
|
className: (0, import_clsx.default)(import_Strikethrough_css.strikethroughCSS, consumerClassName),
|
|
56
57
|
style: consumerStyle,
|
|
57
58
|
...remainingProps,
|
|
59
|
+
"data-dt-component": COMPONENT_NAME,
|
|
58
60
|
children
|
|
59
61
|
}
|
|
60
62
|
);
|
|
61
63
|
});
|
|
62
|
-
Strikethrough.displayName =
|
|
64
|
+
Strikethrough.displayName = COMPONENT_NAME;
|
|
@@ -22,4 +22,4 @@ __export(Strikethrough_css_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(Strikethrough_css_exports);
|
|
24
24
|
var import_Strikethrough_css_ts_vanilla = require("./Strikethrough.css");
|
|
25
|
-
var strikethroughCSS = "_4oao6y0-1-
|
|
25
|
+
var strikethroughCSS = "_4oao6y0-1-18-0";
|
|
@@ -35,6 +35,7 @@ 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_Strong_css = require("./Strong.sty.js");
|
|
38
|
+
const COMPONENT_NAME = "Strong";
|
|
38
39
|
const Strong = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
39
40
|
(props, ref) => {
|
|
40
41
|
const {
|
|
@@ -56,9 +57,10 @@ const Strong = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
56
57
|
className: (0, import_clsx.default)(import_Strong_css.strongCSS, consumerClassName),
|
|
57
58
|
style: consumerStyle,
|
|
58
59
|
...remainingProps,
|
|
60
|
+
"data-dt-component": COMPONENT_NAME,
|
|
59
61
|
children
|
|
60
62
|
}
|
|
61
63
|
);
|
|
62
64
|
}
|
|
63
65
|
);
|
|
64
|
-
Strong.displayName =
|
|
66
|
+
Strong.displayName = COMPONENT_NAME;
|
package/typography/text/Text.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
._rup8ap0-1-
|
|
1
|
+
._rup8ap0-1-18-0 {
|
|
2
2
|
margin-top: 0;
|
|
3
3
|
margin-bottom: 0;
|
|
4
4
|
min-width: 0;
|
|
5
5
|
overflow-wrap: break-word;
|
|
6
6
|
}
|
|
7
|
-
._rup8ap1-1-
|
|
7
|
+
._rup8ap1-1-18-0 {
|
|
8
8
|
display: block;
|
|
9
9
|
white-space: nowrap;
|
|
10
10
|
text-overflow: ellipsis;
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
}
|
|
13
|
-
._rup8ap2-1-
|
|
13
|
+
._rup8ap2-1-18-0 {
|
|
14
14
|
display: -webkit-box;
|
|
15
15
|
-webkit-line-clamp: var(--strato-ellipsis-line-clamp);
|
|
16
16
|
-webkit-box-orient: vertical;
|
package/typography/text/Text.js
CHANGED
|
@@ -36,6 +36,7 @@ var import_clsx = __toESM(require("clsx"));
|
|
|
36
36
|
var import_react = require("react");
|
|
37
37
|
var import_Text_css = require("./Text.sty.js");
|
|
38
38
|
var import_textStyle_css = require("../../styles/textStyle.sty.js");
|
|
39
|
+
const COMPONENT_NAME = "Text";
|
|
39
40
|
const Text = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
40
41
|
({
|
|
41
42
|
children,
|
|
@@ -47,6 +48,7 @@ const Text = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
47
48
|
"data-testid": dataTestId,
|
|
48
49
|
"data-dtrum-mask": dataDtrumMask,
|
|
49
50
|
"data-dtrum-allow": dataDtrumAllow,
|
|
51
|
+
"data-dt-component": dataDtComponent = COMPONENT_NAME,
|
|
50
52
|
...remainingProps
|
|
51
53
|
}, ref) => {
|
|
52
54
|
const TextTag = as || "span";
|
|
@@ -57,6 +59,7 @@ const Text = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
57
59
|
"data-testid": dataTestId,
|
|
58
60
|
"data-dtrum-mask": dataDtrumMask,
|
|
59
61
|
"data-dtrum-allow": dataDtrumAllow,
|
|
62
|
+
"data-dt-component": dataDtComponent,
|
|
60
63
|
ref,
|
|
61
64
|
className: (0, import_clsx.default)([
|
|
62
65
|
(0, import_Text_css.text)({ ellipsis }),
|
|
@@ -70,4 +73,4 @@ const Text = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
|
70
73
|
);
|
|
71
74
|
}
|
|
72
75
|
);
|
|
73
|
-
Text.displayName =
|
|
76
|
+
Text.displayName = COMPONENT_NAME;
|
|
@@ -23,4 +23,4 @@ __export(Text_css_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(Text_css_exports);
|
|
24
24
|
var import_Text_css_ts_vanilla = require("./Text.css");
|
|
25
25
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
-
var text = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_rup8ap0-1-
|
|
26
|
+
var text = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_rup8ap0-1-18-0", variantClassNames: { ellipsis: { singleLine: "_rup8ap1-1-18-0", multiLine: "_rup8ap2-1-18-0" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
._1mnpbqs1-1-
|
|
1
|
+
._1mnpbqs1-1-18-0 {
|
|
2
2
|
display: inline-block;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
vertical-align: middle;
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
text-decoration: inherit;
|
|
10
10
|
width: 100%;
|
|
11
11
|
}
|
|
12
|
-
._1mnpbqs2-1-
|
|
12
|
+
._1mnpbqs2-1-18-0 {
|
|
13
13
|
text-overflow: ellipsis;
|
|
14
14
|
direction: rtl;
|
|
15
15
|
text-align: left;
|
|
16
16
|
}
|
|
17
|
-
._1mnpbqs2-1-
|
|
17
|
+
._1mnpbqs2-1-18-0::after, ._1mnpbqs2-1-18-0::before {
|
|
18
18
|
content: "";
|
|
19
19
|
}
|
|
20
|
-
._1mnpbqs3-1-
|
|
20
|
+
._1mnpbqs3-1-18-0 {
|
|
21
21
|
text-overflow: clip;
|
|
22
22
|
}
|
|
23
|
-
._1mnpbqs3-1-
|
|
23
|
+
._1mnpbqs3-1-18-0._1mnpbqs0-1-18-0:after {
|
|
24
24
|
content: attr(data-sourcetext) / "";
|
|
25
25
|
color: transparent;
|
|
26
26
|
display: table;
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
line-height: 0;
|
|
29
29
|
user-select: none;
|
|
30
30
|
}
|
|
31
|
-
._1mnpbqs4-1-
|
|
31
|
+
._1mnpbqs4-1-18-0 {
|
|
32
32
|
text-overflow: ellipsis;
|
|
33
33
|
}
|
|
@@ -39,6 +39,7 @@ var import_useFontsUpdated = require("../../core/hooks/useFontsUpdated.js");
|
|
|
39
39
|
var import_useMergeRefs = require("../../core/hooks/useMergeRefs.js");
|
|
40
40
|
var import_utils = require("../utils.js");
|
|
41
41
|
var styles = __toESM(require("./TextEllipsis.sty.js"));
|
|
42
|
+
const COMPONENT_NAME = "TextEllipsis";
|
|
42
43
|
function getFontProps(innerSpanElement) {
|
|
43
44
|
const computedStyle = window.getComputedStyle(innerSpanElement, null);
|
|
44
45
|
return {
|
|
@@ -141,6 +142,7 @@ const ComputedTextEllipsis = /* @__PURE__ */ (0, import_react.forwardRef)((props
|
|
|
141
142
|
}),
|
|
142
143
|
style: consumerStyle,
|
|
143
144
|
...remainingProps,
|
|
145
|
+
"data-dt-component": COMPONENT_NAME,
|
|
144
146
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children })
|
|
145
147
|
}
|
|
146
148
|
);
|
|
@@ -152,6 +154,8 @@ const CssTextEllipsis = /* @__PURE__ */ (0, import_react.forwardRef)((props, for
|
|
|
152
154
|
onTextOverflow,
|
|
153
155
|
className: consumerClassName,
|
|
154
156
|
style: consumerStyle,
|
|
157
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
158
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
155
159
|
"data-testid": dataTestId,
|
|
156
160
|
...remainingProps
|
|
157
161
|
} = props;
|
|
@@ -162,9 +166,12 @@ const CssTextEllipsis = /* @__PURE__ */ (0, import_react.forwardRef)((props, for
|
|
|
162
166
|
"aria-label": children,
|
|
163
167
|
"data-ellipsis": true,
|
|
164
168
|
"data-testid": dataTestId,
|
|
169
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
170
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
165
171
|
className: (0, import_clsx.default)(styles.ellipsis({ truncationMode }), consumerClassName),
|
|
166
172
|
style: consumerStyle,
|
|
167
173
|
...remainingProps,
|
|
174
|
+
"data-dt-component": COMPONENT_NAME,
|
|
168
175
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children })
|
|
169
176
|
}
|
|
170
177
|
);
|
|
@@ -173,4 +180,4 @@ const TextEllipsis = /* @__PURE__ */ (0, import_react.forwardRef)((props, forwar
|
|
|
173
180
|
const cssOnlyEllipsis = !props.onTextOverflow && props.truncationMode !== "middle";
|
|
174
181
|
return cssOnlyEllipsis ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CssTextEllipsis, { ref: forwardedRef, ...props }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ComputedTextEllipsis, { ref: forwardedRef, ...props });
|
|
175
182
|
});
|
|
176
|
-
TextEllipsis.displayName =
|
|
183
|
+
TextEllipsis.displayName = COMPONENT_NAME;
|
|
@@ -24,5 +24,5 @@ __export(TextEllipsis_css_exports, {
|
|
|
24
24
|
module.exports = __toCommonJS(TextEllipsis_css_exports);
|
|
25
25
|
var import_TextEllipsis_css_ts_vanilla = require("./TextEllipsis.css");
|
|
26
26
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
27
|
-
var active = "_1mnpbqs0-1-
|
|
28
|
-
var ellipsis = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1mnpbqs1-1-
|
|
27
|
+
var active = "_1mnpbqs0-1-18-0";
|
|
28
|
+
var ellipsis = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1mnpbqs1-1-18-0", variantClassNames: { truncationMode: { start: "_1mnpbqs2-1-18-0", middle: "_1mnpbqs3-1-18-0", end: "_1mnpbqs4-1-18-0" } }, defaultVariants: {}, compoundVariants: [] });
|