@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.
Files changed (224) hide show
  1. package/buttons/button/Button.css +17 -17
  2. package/buttons/button/Button.sty.js +4 -4
  3. package/buttons/intent-button/IntentButton.d.ts +2 -2
  4. package/buttons/intent-button/IntentButton.js +5 -2
  5. package/buttons/intent-button/useIntentButton.js +4 -1
  6. package/content/progress/ProgressBar.css +14 -14
  7. package/content/progress/ProgressBar.d.ts +6 -0
  8. package/content/progress/ProgressBar.js +61 -51
  9. package/content/progress/ProgressBar.sty.js +2 -2
  10. package/content/progress/ProgressBarIcon.css +2 -2
  11. package/content/progress/ProgressBarIcon.sty.js +1 -1
  12. package/content/progress/ProgressBarLabel.css +4 -4
  13. package/content/progress/ProgressBarLabel.sty.js +1 -1
  14. package/content/progress/ProgressBarValue.css +9 -9
  15. package/content/progress/ProgressBarValue.sty.js +1 -1
  16. package/content/progress/ProgressCircle.css +15 -15
  17. package/content/progress/ProgressCircle.d.ts +6 -0
  18. package/content/progress/ProgressCircle.js +5 -2
  19. package/content/progress/ProgressCircle.sty.js +6 -6
  20. package/content/skeleton/Skeleton.css +6 -6
  21. package/content/skeleton/Skeleton.sty.js +1 -1
  22. package/core/styles/focusRing.css +66 -79
  23. package/core/styles/focusRing.sty.d.ts +0 -10
  24. package/core/styles/focusRing.sty.js +2 -2
  25. package/core/styles/useFocusRing.d.ts +1 -3
  26. package/core/styles/useFocusRing.js +1 -10
  27. package/core/types/role-variant.d.ts +2 -0
  28. package/core/utils/colorUtils.css +64 -64
  29. package/core/utils/colorUtils.sty.js +2 -2
  30. package/core/utils/isBrowser.js +3 -1
  31. package/esm/buttons/button/Button.css +17 -17
  32. package/esm/buttons/button/Button.sty.js +4 -4
  33. package/esm/buttons/button/Button.sty.js.map +2 -2
  34. package/esm/buttons/intent-button/IntentButton.js +5 -2
  35. package/esm/buttons/intent-button/IntentButton.js.map +2 -2
  36. package/esm/buttons/intent-button/useIntentButton.js +4 -1
  37. package/esm/buttons/intent-button/useIntentButton.js.map +2 -2
  38. package/esm/content/progress/ProgressBar.css +14 -14
  39. package/esm/content/progress/ProgressBar.js +61 -51
  40. package/esm/content/progress/ProgressBar.js.map +2 -2
  41. package/esm/content/progress/ProgressBar.sty.js +2 -2
  42. package/esm/content/progress/ProgressBar.sty.js.map +2 -2
  43. package/esm/content/progress/ProgressBarIcon.css +2 -2
  44. package/esm/content/progress/ProgressBarIcon.sty.js +1 -1
  45. package/esm/content/progress/ProgressBarIcon.sty.js.map +1 -1
  46. package/esm/content/progress/ProgressBarLabel.css +4 -4
  47. package/esm/content/progress/ProgressBarLabel.sty.js +1 -1
  48. package/esm/content/progress/ProgressBarLabel.sty.js.map +2 -2
  49. package/esm/content/progress/ProgressBarValue.css +9 -9
  50. package/esm/content/progress/ProgressBarValue.sty.js +1 -1
  51. package/esm/content/progress/ProgressBarValue.sty.js.map +2 -2
  52. package/esm/content/progress/ProgressCircle.css +15 -15
  53. package/esm/content/progress/ProgressCircle.js +5 -2
  54. package/esm/content/progress/ProgressCircle.js.map +2 -2
  55. package/esm/content/progress/ProgressCircle.sty.js +6 -6
  56. package/esm/content/progress/ProgressCircle.sty.js.map +2 -2
  57. package/esm/content/skeleton/Skeleton.css +6 -6
  58. package/esm/content/skeleton/Skeleton.sty.js +1 -1
  59. package/esm/content/skeleton/Skeleton.sty.js.map +2 -2
  60. package/esm/core/styles/focusRing.css +66 -79
  61. package/esm/core/styles/focusRing.sty.js +2 -2
  62. package/esm/core/styles/focusRing.sty.js.map +2 -2
  63. package/esm/core/styles/useFocusRing.js +1 -10
  64. package/esm/core/styles/useFocusRing.js.map +2 -2
  65. package/esm/core/types/role-variant.js.map +2 -2
  66. package/esm/core/utils/colorUtils.css +64 -64
  67. package/esm/core/utils/colorUtils.sty.js +2 -2
  68. package/esm/core/utils/colorUtils.sty.js.map +2 -2
  69. package/esm/core/utils/isBrowser.js +3 -1
  70. package/esm/core/utils/isBrowser.js.map +2 -2
  71. package/esm/layouts/container/Container.css +4 -4
  72. package/esm/layouts/container/Container.sty.js +1 -1
  73. package/esm/layouts/container/Container.sty.js.map +1 -1
  74. package/esm/layouts/divider/Divider.css +6 -6
  75. package/esm/layouts/divider/Divider.sty.js +1 -1
  76. package/esm/layouts/divider/Divider.sty.js.map +2 -2
  77. package/esm/layouts/hooks/useBreakpoint.js.map +2 -2
  78. package/esm/layouts/input-group/InputGroup.css +4 -4
  79. package/esm/layouts/input-group/InputGroup.sty.js +2 -2
  80. package/esm/layouts/input-group/InputGroup.sty.js.map +1 -1
  81. package/esm/layouts/surface/Surface.css +39 -39
  82. package/esm/layouts/surface/Surface.sty.js +2 -2
  83. package/esm/layouts/surface/Surface.sty.js.map +2 -2
  84. package/esm/layouts/surface/variables.sty.js +1 -1
  85. package/esm/layouts/surface/variables.sty.js.map +1 -1
  86. package/esm/styles/colorUtils.css +64 -64
  87. package/esm/styles/colorUtils.sty.js +2 -2
  88. package/esm/styles/colorUtils.sty.js.map +2 -2
  89. package/esm/styles/container.css +47 -47
  90. package/esm/styles/container.sty.js +2 -2
  91. package/esm/styles/container.sty.js.map +2 -2
  92. package/esm/styles/ellipsis.css +1 -1
  93. package/esm/styles/ellipsis.sty.js +1 -1
  94. package/esm/styles/ellipsis.sty.js.map +1 -1
  95. package/esm/styles/field.css +153 -153
  96. package/esm/styles/field.sty.js +2 -2
  97. package/esm/styles/field.sty.js.map +2 -2
  98. package/esm/styles/sprinkles.css +262 -262
  99. package/esm/styles/sprinkles.sty.js +1 -1
  100. package/esm/styles/sprinkles.sty.js.map +2 -2
  101. package/esm/styles/textStyle.css +8 -8
  102. package/esm/styles/textStyle.sty.js +1 -1
  103. package/esm/styles/textStyle.sty.js.map +2 -2
  104. package/esm/typography/block-quote/Blockquote.css +2 -2
  105. package/esm/typography/block-quote/Blockquote.sty.js +1 -1
  106. package/esm/typography/block-quote/Blockquote.sty.js.map +1 -1
  107. package/esm/typography/code/Code.css +1 -1
  108. package/esm/typography/code/Code.sty.js +1 -1
  109. package/esm/typography/code/Code.sty.js.map +1 -1
  110. package/esm/typography/emphasis/Emphasis.css +1 -1
  111. package/esm/typography/emphasis/Emphasis.sty.js +1 -1
  112. package/esm/typography/emphasis/Emphasis.sty.js.map +1 -1
  113. package/esm/typography/external-link/ExternalLink.css +14 -14
  114. package/esm/typography/external-link/ExternalLink.js.map +1 -1
  115. package/esm/typography/external-link/ExternalLink.sty.js +1 -1
  116. package/esm/typography/external-link/ExternalLink.sty.js.map +1 -1
  117. package/esm/typography/heading/Heading.css +7 -7
  118. package/esm/typography/heading/Heading.sty.js +1 -1
  119. package/esm/typography/heading/Heading.sty.js.map +2 -2
  120. package/esm/typography/highlight/Highlight.css +1 -1
  121. package/esm/typography/highlight/Highlight.js.map +2 -2
  122. package/esm/typography/highlight/Highlight.sty.js +1 -1
  123. package/esm/typography/highlight/Highlight.sty.js.map +1 -1
  124. package/esm/typography/link/Link.css +5 -5
  125. package/esm/typography/link/Link.js.map +1 -1
  126. package/esm/typography/link/Link.sty.js +1 -1
  127. package/esm/typography/link/Link.sty.js.map +1 -1
  128. package/esm/typography/list/List.css +4 -4
  129. package/esm/typography/list/List.sty.js +2 -2
  130. package/esm/typography/list/List.sty.js.map +1 -1
  131. package/esm/typography/paragraph/Paragraph.css +3 -3
  132. package/esm/typography/paragraph/Paragraph.sty.js +1 -1
  133. package/esm/typography/paragraph/Paragraph.sty.js.map +2 -2
  134. package/esm/typography/strikethrough/Strikethrough.css +1 -1
  135. package/esm/typography/strikethrough/Strikethrough.sty.js +1 -1
  136. package/esm/typography/strikethrough/Strikethrough.sty.js.map +1 -1
  137. package/esm/typography/strong/Strong.css +1 -1
  138. package/esm/typography/strong/Strong.sty.js +1 -1
  139. package/esm/typography/strong/Strong.sty.js.map +1 -1
  140. package/esm/typography/text/Text.css +3 -3
  141. package/esm/typography/text/Text.sty.js +1 -1
  142. package/esm/typography/text/Text.sty.js.map +2 -2
  143. package/esm/typography/text-ellipsis/TextEllipsis.css +4 -4
  144. package/esm/typography/text-ellipsis/TextEllipsis.js +14 -2
  145. package/esm/typography/text-ellipsis/TextEllipsis.js.map +2 -2
  146. package/esm/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
  147. package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +2 -2
  148. package/layouts/container/Container.css +4 -4
  149. package/layouts/container/Container.sty.js +1 -1
  150. package/layouts/divider/Divider.css +6 -6
  151. package/layouts/divider/Divider.sty.js +1 -1
  152. package/layouts/input-group/InputGroup.css +4 -4
  153. package/layouts/input-group/InputGroup.sty.js +2 -2
  154. package/layouts/surface/Surface.css +39 -39
  155. package/layouts/surface/Surface.sty.js +2 -2
  156. package/layouts/surface/variables.sty.js +1 -1
  157. package/package.json +5 -5
  158. package/styles/colorUtils.css +64 -64
  159. package/styles/colorUtils.sty.js +2 -2
  160. package/styles/container.css +47 -47
  161. package/styles/container.sty.js +2 -2
  162. package/styles/ellipsis.css +1 -1
  163. package/styles/ellipsis.sty.js +1 -1
  164. package/styles/field.css +153 -153
  165. package/styles/field.sty.js +2 -2
  166. package/styles/sprinkles.css +262 -262
  167. package/styles/sprinkles.sty.js +1 -1
  168. package/styles/textStyle.css +8 -8
  169. package/styles/textStyle.sty.js +1 -1
  170. package/testing/custom-render.d.ts +3 -1
  171. package/testing/jest/jest-preset.d.ts +3 -0
  172. package/testing/jest/jest-preset.js +3 -0
  173. package/testing/mocks/bounding-client-rect-mock.d.ts +6 -2
  174. package/testing/mocks/canvas-mock.d.ts +4 -1
  175. package/testing/mocks/create-mock-element.d.ts +3 -1
  176. package/testing/mocks/create-range-mock.d.ts +4 -1
  177. package/testing/mocks/dom-rect-mock.d.ts +8 -1
  178. package/testing/mocks/fetch-mock.d.ts +4 -1
  179. package/testing/mocks/intersection-observer-mock.d.ts +4 -1
  180. package/testing/mocks/match-media-mock.d.ts +4 -1
  181. package/testing/mocks/offset-height-mock.d.ts +6 -2
  182. package/testing/mocks/offset-width-mock.d.ts +6 -2
  183. package/testing/mocks/pointer-event-mock.d.ts +6 -2
  184. package/testing/mocks/resize-observer-mock.d.ts +6 -2
  185. package/testing/mocks/screen-size-mock.d.ts +6 -2
  186. package/testing/mocks/scroll-into-view-mock.d.ts +2 -0
  187. package/testing/mocks/scroll-width-mock.d.ts +6 -2
  188. package/testing/mocks/select-mock.d.ts +1 -0
  189. package/testing/mocks/table-virtualization-mock.d.ts +4 -1
  190. package/testing/mocks/text-ellipsis-mock.d.ts +6 -2
  191. package/testing/setup.d.ts +6 -2
  192. package/typography/block-quote/Blockquote.css +2 -2
  193. package/typography/block-quote/Blockquote.sty.js +1 -1
  194. package/typography/code/Code.css +1 -1
  195. package/typography/code/Code.sty.js +1 -1
  196. package/typography/emphasis/Emphasis.css +1 -1
  197. package/typography/emphasis/Emphasis.sty.js +1 -1
  198. package/typography/external-link/ExternalLink.css +14 -14
  199. package/typography/external-link/ExternalLink.d.ts +2 -2
  200. package/typography/external-link/ExternalLink.sty.js +1 -1
  201. package/typography/heading/Heading.css +7 -7
  202. package/typography/heading/Heading.sty.js +1 -1
  203. package/typography/highlight/Highlight.css +1 -1
  204. package/typography/highlight/Highlight.sty.js +1 -1
  205. package/typography/link/Link.css +5 -5
  206. package/typography/link/Link.d.ts +2 -2
  207. package/typography/link/Link.sty.js +1 -1
  208. package/typography/list/List.css +4 -4
  209. package/typography/list/List.sty.js +2 -2
  210. package/typography/paragraph/Paragraph.css +3 -3
  211. package/typography/paragraph/Paragraph.sty.js +1 -1
  212. package/typography/strikethrough/Strikethrough.css +1 -1
  213. package/typography/strikethrough/Strikethrough.sty.js +1 -1
  214. package/typography/strong/Strong.css +1 -1
  215. package/typography/strong/Strong.sty.js +1 -1
  216. package/typography/text/Text.css +3 -3
  217. package/typography/text/Text.sty.js +1 -1
  218. package/typography/text-ellipsis/TextEllipsis.css +4 -4
  219. package/typography/text-ellipsis/TextEllipsis.js +14 -2
  220. package/typography/text-ellipsis/TextEllipsis.sty.js +1 -1
  221. package/content/progress/utils.d.ts +0 -2
  222. package/content/progress/utils.js +0 -50
  223. package/esm/content/progress/utils.js +0 -22
  224. package/esm/content/progress/utils.js.map +0 -7
@@ -21,4 +21,4 @@ __export(Highlight_css_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(Highlight_css_exports);
23
23
  var import_Highlight_css_ts_vanilla = require("./Highlight.css");
24
- var highlightCSS = "lajjl30";
24
+ var highlightCSS = "_lajjl30-0-85-100";
@@ -1,15 +1,15 @@
1
- ._1iksxp40 {
2
- display: inline-block;
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 navigate to a different page within the application.
11
- * For external resources in a different domain, use the
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
@@ -21,4 +21,4 @@ __export(Link_css_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(Link_css_exports);
23
23
  var import_Link_css_ts_vanilla = require("./Link.css");
24
- var linkCSS = "_1iksxp40";
24
+ var linkCSS = "_1iksxp40-0-85-100";
@@ -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: [] });
@@ -1,4 +1,4 @@
1
- ._4oao6y0 {
1
+ ._4oao6y0-0-85-100 {
2
2
  text-decoration: line-through;
3
3
  text-decoration-style: solid;
4
4
  overflow-wrap: break-word;
@@ -21,4 +21,4 @@ __export(Strikethrough_css_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(Strikethrough_css_exports);
23
23
  var import_Strikethrough_css_ts_vanilla = require("./Strikethrough.css");
24
- var strikethroughCSS = "_4oao6y0";
24
+ var strikethroughCSS = "_4oao6y0-0-85-100";
@@ -1,4 +1,4 @@
1
- .wxp4dd0 {
1
+ ._wxp4dd0-0-85-100 {
2
2
  font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
3
3
  overflow-wrap: break-word;
4
4
  }
@@ -21,4 +21,4 @@ __export(Strong_css_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(Strong_css_exports);
23
23
  var import_Strong_css_ts_vanilla = require("./Strong.css");
24
- var strongCSS = "wxp4dd0";
24
+ var strongCSS = "_wxp4dd0-0-85-100";
@@ -1,16 +1,16 @@
1
- .rup8ap0 {
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
- .rup8ap1 {
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
- .rup8ap2 {
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: "rup8ap0", variantClassNames: { ellipsis: { singleLine: "rup8ap1", multiLine: "rup8ap2" } }, defaultVariants: {}, compoundVariants: [] });
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 textWidth = Math.floor(textWrapper.getBoundingClientRect().width * 100) / 100;
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 ? /* @__PURE__ */ import_react.default.createElement(CssTextEllipsis, { ref: forwardedRef, ...props }) : /* @__PURE__ */ import_react.default.createElement(ComputedTextEllipsis, { ref: forwardedRef, ...props });
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,2 +0,0 @@
1
- import { RoleVariantType } from '../../core/types/role-variant.js';
2
- export declare function getFillColorFromVariant($variant: RoleVariantType): string;
@@ -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
- }