@dynatrace/strato-components 0.85.60 → 0.85.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/buttons/button/Button.css +17 -17
- package/buttons/button/Button.sty.js +4 -4
- package/buttons/intent-button/IntentButton.d.ts +2 -2
- package/buttons/intent-button/IntentButton.js +5 -2
- package/buttons/intent-button/useIntentButton.js +4 -1
- package/content/progress/ProgressBar.css +14 -14
- package/content/progress/ProgressBar.d.ts +6 -0
- package/content/progress/ProgressBar.js +61 -51
- package/content/progress/ProgressBar.sty.js +2 -2
- package/content/progress/ProgressBarIcon.css +2 -2
- package/content/progress/ProgressBarIcon.sty.js +1 -1
- package/content/progress/ProgressBarLabel.css +4 -4
- package/content/progress/ProgressBarLabel.sty.js +1 -1
- package/content/progress/ProgressBarValue.css +9 -9
- package/content/progress/ProgressBarValue.sty.js +1 -1
- package/content/progress/ProgressCircle.css +15 -15
- package/content/progress/ProgressCircle.d.ts +6 -0
- package/content/progress/ProgressCircle.js +5 -2
- package/content/progress/ProgressCircle.sty.js +6 -6
- package/content/skeleton/Skeleton.css +6 -6
- package/content/skeleton/Skeleton.sty.js +1 -1
- package/core/styles/focusRing.css +66 -79
- package/core/styles/focusRing.sty.d.ts +0 -10
- package/core/styles/focusRing.sty.js +2 -2
- package/core/styles/useFocusRing.d.ts +1 -3
- package/core/styles/useFocusRing.js +1 -10
- package/core/types/role-variant.d.ts +2 -0
- package/core/utils/colorUtils.css +64 -64
- package/core/utils/colorUtils.sty.js +2 -2
- package/core/utils/isBrowser.js +3 -1
- package/esm/buttons/button/Button.css +17 -17
- package/esm/buttons/button/Button.sty.js +4 -4
- package/esm/buttons/button/Button.sty.js.map +2 -2
- package/esm/buttons/intent-button/IntentButton.js +5 -2
- package/esm/buttons/intent-button/IntentButton.js.map +2 -2
- package/esm/buttons/intent-button/useIntentButton.js +4 -1
- package/esm/buttons/intent-button/useIntentButton.js.map +2 -2
- package/esm/content/progress/ProgressBar.css +14 -14
- package/esm/content/progress/ProgressBar.js +61 -51
- package/esm/content/progress/ProgressBar.js.map +2 -2
- package/esm/content/progress/ProgressBar.sty.js +2 -2
- package/esm/content/progress/ProgressBar.sty.js.map +2 -2
- package/esm/content/progress/ProgressBarIcon.css +2 -2
- package/esm/content/progress/ProgressBarIcon.sty.js +1 -1
- package/esm/content/progress/ProgressBarIcon.sty.js.map +1 -1
- package/esm/content/progress/ProgressBarLabel.css +4 -4
- package/esm/content/progress/ProgressBarLabel.sty.js +1 -1
- package/esm/content/progress/ProgressBarLabel.sty.js.map +2 -2
- package/esm/content/progress/ProgressBarValue.css +9 -9
- package/esm/content/progress/ProgressBarValue.sty.js +1 -1
- package/esm/content/progress/ProgressBarValue.sty.js.map +2 -2
- package/esm/content/progress/ProgressCircle.css +15 -15
- package/esm/content/progress/ProgressCircle.js +5 -2
- package/esm/content/progress/ProgressCircle.js.map +2 -2
- package/esm/content/progress/ProgressCircle.sty.js +6 -6
- package/esm/content/progress/ProgressCircle.sty.js.map +2 -2
- package/esm/content/skeleton/Skeleton.css +6 -6
- package/esm/content/skeleton/Skeleton.sty.js +1 -1
- package/esm/content/skeleton/Skeleton.sty.js.map +2 -2
- package/esm/core/styles/focusRing.css +66 -79
- package/esm/core/styles/focusRing.sty.js +2 -2
- package/esm/core/styles/focusRing.sty.js.map +2 -2
- package/esm/core/styles/useFocusRing.js +1 -10
- package/esm/core/styles/useFocusRing.js.map +2 -2
- package/esm/core/types/role-variant.js.map +2 -2
- package/esm/core/utils/colorUtils.css +64 -64
- package/esm/core/utils/colorUtils.sty.js +2 -2
- package/esm/core/utils/colorUtils.sty.js.map +2 -2
- package/esm/core/utils/isBrowser.js +3 -1
- package/esm/core/utils/isBrowser.js.map +2 -2
- package/esm/layouts/container/Container.css +4 -4
- package/esm/layouts/container/Container.sty.js +1 -1
- package/esm/layouts/container/Container.sty.js.map +1 -1
- package/esm/layouts/divider/Divider.css +6 -6
- package/esm/layouts/divider/Divider.sty.js +1 -1
- package/esm/layouts/divider/Divider.sty.js.map +2 -2
- package/esm/layouts/hooks/useBreakpoint.js.map +2 -2
- package/esm/layouts/input-group/InputGroup.css +4 -4
- package/esm/layouts/input-group/InputGroup.sty.js +2 -2
- package/esm/layouts/input-group/InputGroup.sty.js.map +1 -1
- package/esm/layouts/surface/Surface.css +39 -39
- package/esm/layouts/surface/Surface.sty.js +2 -2
- package/esm/layouts/surface/Surface.sty.js.map +2 -2
- package/esm/layouts/surface/variables.sty.js +1 -1
- package/esm/layouts/surface/variables.sty.js.map +1 -1
- package/esm/styles/colorUtils.css +64 -64
- package/esm/styles/colorUtils.sty.js +2 -2
- package/esm/styles/colorUtils.sty.js.map +2 -2
- package/esm/styles/container.css +47 -47
- package/esm/styles/container.sty.js +2 -2
- package/esm/styles/container.sty.js.map +2 -2
- package/esm/styles/ellipsis.css +1 -1
- package/esm/styles/ellipsis.sty.js +1 -1
- package/esm/styles/ellipsis.sty.js.map +1 -1
- package/esm/styles/field.css +153 -153
- package/esm/styles/field.sty.js +2 -2
- package/esm/styles/field.sty.js.map +2 -2
- package/esm/styles/sprinkles.css +262 -262
- package/esm/styles/sprinkles.sty.js +1 -1
- package/esm/styles/sprinkles.sty.js.map +2 -2
- package/esm/styles/textStyle.css +8 -8
- package/esm/styles/textStyle.sty.js +1 -1
- package/esm/styles/textStyle.sty.js.map +2 -2
- package/esm/typography/block-quote/Blockquote.css +2 -2
- package/esm/typography/block-quote/Blockquote.sty.js +1 -1
- package/esm/typography/block-quote/Blockquote.sty.js.map +1 -1
- package/esm/typography/code/Code.css +1 -1
- package/esm/typography/code/Code.sty.js +1 -1
- package/esm/typography/code/Code.sty.js.map +1 -1
- package/esm/typography/emphasis/Emphasis.css +1 -1
- package/esm/typography/emphasis/Emphasis.sty.js +1 -1
- package/esm/typography/emphasis/Emphasis.sty.js.map +1 -1
- package/esm/typography/external-link/ExternalLink.css +14 -14
- package/esm/typography/external-link/ExternalLink.js.map +1 -1
- package/esm/typography/external-link/ExternalLink.sty.js +1 -1
- package/esm/typography/external-link/ExternalLink.sty.js.map +1 -1
- package/esm/typography/heading/Heading.css +7 -7
- package/esm/typography/heading/Heading.sty.js +1 -1
- package/esm/typography/heading/Heading.sty.js.map +2 -2
- package/esm/typography/highlight/Highlight.css +1 -1
- package/esm/typography/highlight/Highlight.js.map +2 -2
- package/esm/typography/highlight/Highlight.sty.js +1 -1
- package/esm/typography/highlight/Highlight.sty.js.map +1 -1
- package/esm/typography/link/Link.css +5 -5
- package/esm/typography/link/Link.js.map +1 -1
- package/esm/typography/link/Link.sty.js +1 -1
- package/esm/typography/link/Link.sty.js.map +1 -1
- package/esm/typography/list/List.css +4 -4
- package/esm/typography/list/List.sty.js +2 -2
- package/esm/typography/list/List.sty.js.map +1 -1
- package/esm/typography/paragraph/Paragraph.css +3 -3
- package/esm/typography/paragraph/Paragraph.sty.js +1 -1
- package/esm/typography/paragraph/Paragraph.sty.js.map +2 -2
- package/esm/typography/strikethrough/Strikethrough.css +1 -1
- package/esm/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/esm/typography/strikethrough/Strikethrough.sty.js.map +1 -1
- package/esm/typography/strong/Strong.css +1 -1
- package/esm/typography/strong/Strong.sty.js +1 -1
- package/esm/typography/strong/Strong.sty.js.map +1 -1
- package/esm/typography/text/Text.css +3 -3
- package/esm/typography/text/Text.sty.js +1 -1
- package/esm/typography/text/Text.sty.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.css +4 -4
- package/esm/typography/text-ellipsis/TextEllipsis.js +14 -2
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +2 -2
- package/layouts/container/Container.css +4 -4
- package/layouts/container/Container.sty.js +1 -1
- package/layouts/divider/Divider.css +6 -6
- package/layouts/divider/Divider.sty.js +1 -1
- package/layouts/input-group/InputGroup.css +4 -4
- package/layouts/input-group/InputGroup.sty.js +2 -2
- package/layouts/surface/Surface.css +39 -39
- package/layouts/surface/Surface.sty.js +2 -2
- package/layouts/surface/variables.sty.js +1 -1
- package/package.json +5 -5
- package/styles/colorUtils.css +64 -64
- package/styles/colorUtils.sty.js +2 -2
- package/styles/container.css +47 -47
- package/styles/container.sty.js +2 -2
- package/styles/ellipsis.css +1 -1
- package/styles/ellipsis.sty.js +1 -1
- package/styles/field.css +153 -153
- package/styles/field.sty.js +2 -2
- package/styles/sprinkles.css +262 -262
- package/styles/sprinkles.sty.js +1 -1
- package/styles/textStyle.css +8 -8
- package/styles/textStyle.sty.js +1 -1
- package/testing/custom-render.d.ts +3 -1
- package/testing/jest/jest-preset.d.ts +3 -0
- package/testing/jest/jest-preset.js +3 -0
- package/testing/mocks/bounding-client-rect-mock.d.ts +6 -2
- package/testing/mocks/canvas-mock.d.ts +4 -1
- package/testing/mocks/create-mock-element.d.ts +3 -1
- package/testing/mocks/create-range-mock.d.ts +4 -1
- package/testing/mocks/dom-rect-mock.d.ts +8 -1
- package/testing/mocks/fetch-mock.d.ts +4 -1
- package/testing/mocks/intersection-observer-mock.d.ts +4 -1
- package/testing/mocks/match-media-mock.d.ts +4 -1
- package/testing/mocks/offset-height-mock.d.ts +6 -2
- package/testing/mocks/offset-width-mock.d.ts +6 -2
- package/testing/mocks/pointer-event-mock.d.ts +6 -2
- package/testing/mocks/resize-observer-mock.d.ts +6 -2
- package/testing/mocks/screen-size-mock.d.ts +6 -2
- package/testing/mocks/scroll-into-view-mock.d.ts +2 -0
- package/testing/mocks/scroll-width-mock.d.ts +6 -2
- package/testing/mocks/select-mock.d.ts +1 -0
- package/testing/mocks/table-virtualization-mock.d.ts +4 -1
- package/testing/mocks/text-ellipsis-mock.d.ts +6 -2
- package/testing/setup.d.ts +6 -2
- package/typography/block-quote/Blockquote.css +2 -2
- package/typography/block-quote/Blockquote.sty.js +1 -1
- package/typography/code/Code.css +1 -1
- package/typography/code/Code.sty.js +1 -1
- package/typography/emphasis/Emphasis.css +1 -1
- package/typography/emphasis/Emphasis.sty.js +1 -1
- package/typography/external-link/ExternalLink.css +14 -14
- package/typography/external-link/ExternalLink.d.ts +2 -2
- package/typography/external-link/ExternalLink.sty.js +1 -1
- package/typography/heading/Heading.css +7 -7
- package/typography/heading/Heading.sty.js +1 -1
- package/typography/highlight/Highlight.css +1 -1
- package/typography/highlight/Highlight.sty.js +1 -1
- package/typography/link/Link.css +5 -5
- package/typography/link/Link.d.ts +2 -2
- package/typography/link/Link.sty.js +1 -1
- package/typography/list/List.css +4 -4
- package/typography/list/List.sty.js +2 -2
- package/typography/paragraph/Paragraph.css +3 -3
- package/typography/paragraph/Paragraph.sty.js +1 -1
- package/typography/strikethrough/Strikethrough.css +1 -1
- package/typography/strikethrough/Strikethrough.sty.js +1 -1
- package/typography/strong/Strong.css +1 -1
- package/typography/strong/Strong.sty.js +1 -1
- package/typography/text/Text.css +3 -3
- package/typography/text/Text.sty.js +1 -1
- package/typography/text-ellipsis/TextEllipsis.css +4 -4
- package/typography/text-ellipsis/TextEllipsis.js +14 -2
- package/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
- package/content/progress/utils.d.ts +0 -2
- package/content/progress/utils.js +0 -50
- package/esm/content/progress/utils.js +0 -22
- package/esm/content/progress/utils.js.map +0 -7
package/typography/link/Link.css
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
._1iksxp40 {
|
|
2
|
-
display: inline
|
|
1
|
+
._1iksxp40-0-85-100 {
|
|
2
|
+
display: inline;
|
|
3
3
|
color: var(--dt-colors-text-primary-default, #454cc9);
|
|
4
4
|
text-decoration: underline;
|
|
5
5
|
overflow-wrap: anywhere;
|
|
6
6
|
}
|
|
7
|
-
._1iksxp40:hover {
|
|
7
|
+
._1iksxp40-0-85-100:hover {
|
|
8
8
|
color: var(--dt-colors-text-primary-default-hover, #3332ae);
|
|
9
9
|
}
|
|
10
|
-
._1iksxp40:active {
|
|
10
|
+
._1iksxp40-0-85-100:active {
|
|
11
11
|
color: var(--dt-colors-text-primary-default-active, #241193);
|
|
12
12
|
}
|
|
13
|
-
._1iksxp40:focus-visible {
|
|
13
|
+
._1iksxp40-0-85-100:focus-visible {
|
|
14
14
|
text-decoration: none;
|
|
15
15
|
}
|
|
@@ -7,8 +7,8 @@ import type { MaskingProps } from '../../core/types/masking-props.js';
|
|
|
7
7
|
*/
|
|
8
8
|
export type LinkProps<E extends ElementType> = PolymorphicComponentProps<E, WithChildren & StylingProps & DataTestId & MaskingProps>;
|
|
9
9
|
/**
|
|
10
|
-
* Use the `Link` component to
|
|
11
|
-
* For external resources
|
|
10
|
+
* Use the `Link` component to link to any internal resources.
|
|
11
|
+
* For external resources (i.e., outside the current environment), use the
|
|
12
12
|
* {@link https://developer.dynatrace.com/design/components/typography/ExternalLink/ | `ExternalLink`}
|
|
13
13
|
* component instead.
|
|
14
14
|
* @public
|
package/typography/list/List.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
._16276mt0 {
|
|
1
|
+
._16276mt0-0-85-100 {
|
|
2
2
|
margin: 0;
|
|
3
3
|
padding-left: var(--dt-spacings-size-40, 40px);
|
|
4
4
|
}
|
|
5
|
-
._16276mt0 ._16276mt0 {
|
|
5
|
+
._16276mt0-0-85-100 ._16276mt0-0-85-100 {
|
|
6
6
|
margin-block: var(--dt-spacings-size-4, 4px);
|
|
7
7
|
padding-left: var(--dt-spacings-size-28, 28px);
|
|
8
8
|
}
|
|
9
|
-
._16276mt1 {
|
|
9
|
+
._16276mt1-0-85-100 {
|
|
10
10
|
position: relative;
|
|
11
11
|
overflow-wrap: break-word;
|
|
12
12
|
margin-block: var(--dt-spacings-size-2, 2px);
|
|
13
13
|
}
|
|
14
|
-
._16276mt1::marker {
|
|
14
|
+
._16276mt1-0-85-100::marker {
|
|
15
15
|
font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
|
|
16
16
|
}
|
|
@@ -22,5 +22,5 @@ __export(List_css_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(List_css_exports);
|
|
24
24
|
var import_List_css_ts_vanilla = require("./List.css");
|
|
25
|
-
var listCSS = "_16276mt0";
|
|
26
|
-
var listItemCSS = "_16276mt1";
|
|
25
|
+
var listCSS = "_16276mt0-0-85-100";
|
|
26
|
+
var listItemCSS = "_16276mt1-0-85-100";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
._487p2n0 {
|
|
1
|
+
._487p2n0-0-85-100 {
|
|
2
2
|
margin-top: 0;
|
|
3
3
|
margin-bottom: 0;
|
|
4
4
|
overflow-wrap: break-word;
|
|
5
5
|
color: inherit;
|
|
6
6
|
font-style: normal;
|
|
7
7
|
}
|
|
8
|
-
._487p2n1 {
|
|
8
|
+
._487p2n1-0-85-100 {
|
|
9
9
|
display: block;
|
|
10
10
|
white-space: nowrap;
|
|
11
11
|
text-overflow: ellipsis;
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
}
|
|
14
|
-
._487p2n2 {
|
|
14
|
+
._487p2n2-0-85-100 {
|
|
15
15
|
display: -webkit-box;
|
|
16
16
|
-webkit-line-clamp: var(--strato-ellipsis-line-clamp);
|
|
17
17
|
-webkit-box-orient: vertical;
|
|
@@ -22,4 +22,4 @@ __export(Paragraph_css_exports, {
|
|
|
22
22
|
module.exports = __toCommonJS(Paragraph_css_exports);
|
|
23
23
|
var import_Paragraph_css_ts_vanilla = require("./Paragraph.css");
|
|
24
24
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
25
|
-
var paragraphCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_487p2n0", variantClassNames: { ellipsis: { singleLine: "_487p2n1", multiLine: "_487p2n2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
25
|
+
var paragraphCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_487p2n0-0-85-100", variantClassNames: { ellipsis: { singleLine: "_487p2n1-0-85-100", multiLine: "_487p2n2-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
|
package/typography/text/Text.css
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.
|
|
1
|
+
._rup8ap0-0-85-100 {
|
|
2
2
|
margin-top: 0;
|
|
3
3
|
margin-bottom: 0;
|
|
4
4
|
min-width: 0;
|
|
5
5
|
overflow-wrap: break-word;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
._rup8ap1-0-85-100 {
|
|
8
8
|
display: block;
|
|
9
9
|
white-space: nowrap;
|
|
10
10
|
text-overflow: ellipsis;
|
|
11
11
|
overflow: hidden;
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
._rup8ap2-0-85-100 {
|
|
14
14
|
display: -webkit-box;
|
|
15
15
|
-webkit-line-clamp: var(--strato-ellipsis-line-clamp);
|
|
16
16
|
-webkit-box-orient: vertical;
|
|
@@ -22,4 +22,4 @@ __export(Text_css_exports, {
|
|
|
22
22
|
module.exports = __toCommonJS(Text_css_exports);
|
|
23
23
|
var import_Text_css_ts_vanilla = require("./Text.css");
|
|
24
24
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
25
|
-
var textCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "
|
|
25
|
+
var textCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_rup8ap0-0-85-100", variantClassNames: { ellipsis: { singleLine: "_rup8ap1-0-85-100", multiLine: "_rup8ap2-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
._1mnpbqs0 {
|
|
1
|
+
._1mnpbqs0-0-85-100 {
|
|
2
2
|
display: inline-block;
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
vertical-align: middle;
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
text-decoration: inherit;
|
|
10
10
|
width: 100%;
|
|
11
11
|
}
|
|
12
|
-
._1mnpbqs1 {
|
|
12
|
+
._1mnpbqs1-0-85-100 {
|
|
13
13
|
text-overflow: ellipsis;
|
|
14
14
|
direction: rtl;
|
|
15
15
|
text-align: left;
|
|
16
16
|
}
|
|
17
|
-
._1mnpbqs2 {
|
|
17
|
+
._1mnpbqs2-0-85-100 {
|
|
18
18
|
text-overflow: clip;
|
|
19
19
|
}
|
|
20
|
-
._1mnpbqs3 {
|
|
20
|
+
._1mnpbqs3-0-85-100 {
|
|
21
21
|
text-overflow: ellipsis;
|
|
22
22
|
}
|
|
@@ -47,7 +47,11 @@ function getFontProps(textWrapper) {
|
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
49
|
function isNativeEllipsisActive(textWrapper, containerWidth) {
|
|
50
|
-
const
|
|
50
|
+
const originalTextWidth = Math.max(
|
|
51
|
+
textWrapper.getBoundingClientRect().width,
|
|
52
|
+
textWrapper.scrollWidth
|
|
53
|
+
);
|
|
54
|
+
const textWidth = Math.floor(originalTextWidth * 100) / 100;
|
|
51
55
|
return textWidth > containerWidth;
|
|
52
56
|
}
|
|
53
57
|
function renderEllipsizedText(originalText, truncationMode, containerRef, wasEllipsized, onTextOverflow) {
|
|
@@ -162,6 +166,14 @@ const CssTextEllipsis = /* @__PURE__ */ (0, import_react.forwardRef)((props, for
|
|
|
162
166
|
});
|
|
163
167
|
const TextEllipsis = /* @__PURE__ */ (0, import_react.forwardRef)((props, forwardedRef) => {
|
|
164
168
|
const cssOnlyEllipsis = !props.onTextOverflow && props.truncationMode !== "middle";
|
|
165
|
-
return cssOnlyEllipsis ?
|
|
169
|
+
return cssOnlyEllipsis ? (
|
|
170
|
+
/* eslint-disable-next-line deprecated-jsx-props/deprecated-props -- The plugin can not properly analyze spread props:
|
|
171
|
+
https://github.com/sebakerckhof/eslint-plugin-deprecated-jsx-props?tab=readme-ov-file#configuration, the deprecations here are in the HTMLAttributes type, which is fine. */
|
|
172
|
+
/* @__PURE__ */ import_react.default.createElement(CssTextEllipsis, { ref: forwardedRef, ...props })
|
|
173
|
+
) : (
|
|
174
|
+
/* eslint-disable-next-line deprecated-jsx-props/deprecated-props -- The plugin can not properly analyze spread props:
|
|
175
|
+
https://github.com/sebakerckhof/eslint-plugin-deprecated-jsx-props?tab=readme-ov-file#configuration, the deprecations here are in the HTMLAttributes type, which is fine. */
|
|
176
|
+
/* @__PURE__ */ import_react.default.createElement(ComputedTextEllipsis, { ref: forwardedRef, ...props })
|
|
177
|
+
);
|
|
166
178
|
});
|
|
167
179
|
TextEllipsis.displayName = "TextEllipsis";
|
|
@@ -22,4 +22,4 @@ __export(TextEllipsis_css_exports, {
|
|
|
22
22
|
module.exports = __toCommonJS(TextEllipsis_css_exports);
|
|
23
23
|
var import_TextEllipsis_css_ts_vanilla = require("./TextEllipsis.css");
|
|
24
24
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
25
|
-
var textEllipsisCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1mnpbqs0", variantClassNames: { truncationMode: { start: "_1mnpbqs1", middle: "_1mnpbqs2", end: "_1mnpbqs3" } }, defaultVariants: {}, compoundVariants: [] });
|
|
25
|
+
var textEllipsisCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1mnpbqs0-0-85-100", variantClassNames: { truncationMode: { start: "_1mnpbqs1-0-85-100", middle: "_1mnpbqs2-0-85-100", end: "_1mnpbqs3-0-85-100" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
var utils_exports = {};
|
|
29
|
-
__export(utils_exports, {
|
|
30
|
-
getFillColorFromVariant: () => getFillColorFromVariant
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(utils_exports);
|
|
33
|
-
var import_colors = __toESM(require("@dynatrace/strato-design-tokens/colors"));
|
|
34
|
-
function getFillColorFromVariant($variant) {
|
|
35
|
-
switch ($variant) {
|
|
36
|
-
case "onAccent":
|
|
37
|
-
return import_colors.default.Border.OnAccent.Default;
|
|
38
|
-
case "primary":
|
|
39
|
-
return import_colors.default.Border.Primary.Accent;
|
|
40
|
-
case "success":
|
|
41
|
-
return import_colors.default.Border.Success.Accent;
|
|
42
|
-
case "warning":
|
|
43
|
-
return import_colors.default.Border.Warning.Accent;
|
|
44
|
-
case "critical":
|
|
45
|
-
return import_colors.default.Border.Critical.Accent;
|
|
46
|
-
case "neutral":
|
|
47
|
-
default:
|
|
48
|
-
return import_colors.default.Border.Neutral.Accent;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import Colors from "@dynatrace/strato-design-tokens/colors";
|
|
2
|
-
function getFillColorFromVariant($variant) {
|
|
3
|
-
switch ($variant) {
|
|
4
|
-
case "onAccent":
|
|
5
|
-
return Colors.Border.OnAccent.Default;
|
|
6
|
-
case "primary":
|
|
7
|
-
return Colors.Border.Primary.Accent;
|
|
8
|
-
case "success":
|
|
9
|
-
return Colors.Border.Success.Accent;
|
|
10
|
-
case "warning":
|
|
11
|
-
return Colors.Border.Warning.Accent;
|
|
12
|
-
case "critical":
|
|
13
|
-
return Colors.Border.Critical.Accent;
|
|
14
|
-
case "neutral":
|
|
15
|
-
default:
|
|
16
|
-
return Colors.Border.Neutral.Accent;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export {
|
|
20
|
-
getFillColorFromVariant
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/content/progress/utils.ts"],
|
|
4
|
-
"sourcesContent": ["import Colors from '@dynatrace/strato-design-tokens/colors';\n\nimport { RoleVariantType } from '../../core/types/role-variant.js';\n\nexport function getFillColorFromVariant($variant: RoleVariantType) {\n switch ($variant) {\n case 'onAccent':\n return Colors.Border.OnAccent.Default;\n case 'primary':\n return Colors.Border.Primary.Accent;\n case 'success':\n return Colors.Border.Success.Accent;\n case 'warning':\n return Colors.Border.Warning.Accent;\n case 'critical':\n return Colors.Border.Critical.Accent;\n case 'neutral':\n default:\n return Colors.Border.Neutral.Accent;\n }\n}\n"],
|
|
5
|
-
"mappings": "AAAA,OAAO,YAAY;AAIZ,SAAS,wBAAwB,UAA2B;AACjE,UAAQ,UAAU;AAAA,IAChB,KAAK;AACH,aAAO,OAAO,OAAO,SAAS;AAAA,IAChC,KAAK;AACH,aAAO,OAAO,OAAO,QAAQ;AAAA,IAC/B,KAAK;AACH,aAAO,OAAO,OAAO,QAAQ;AAAA,IAC/B,KAAK;AACH,aAAO,OAAO,OAAO,QAAQ;AAAA,IAC/B,KAAK;AACH,aAAO,OAAO,OAAO,SAAS;AAAA,IAChC,KAAK;AAAA,IACL;AACE,aAAO,OAAO,OAAO,QAAQ;AAAA,EACjC;AACF;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|