@dynatrace/strato-components 1.13.0 → 1.15.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.
Files changed (228) hide show
  1. package/buttons/button/Button.css +16 -16
  2. package/buttons/button/Button.js +10 -10
  3. package/buttons/button/Button.sty.d.ts +4 -4
  4. package/buttons/button/Button.sty.js +8 -8
  5. package/buttons/button/Label.js +1 -1
  6. package/content/progress/ProgressBar.css +71 -71
  7. package/content/progress/ProgressBar.sty.js +5 -5
  8. package/content/progress/ProgressBarIcon.css +2 -2
  9. package/content/progress/ProgressBarIcon.sty.js +1 -1
  10. package/content/progress/ProgressBarLabel.css +3 -3
  11. package/content/progress/ProgressBarLabel.js +3 -3
  12. package/content/progress/ProgressBarLabel.sty.d.ts +1 -1
  13. package/content/progress/ProgressBarLabel.sty.js +2 -2
  14. package/content/progress/ProgressBarValue.css +5 -5
  15. package/content/progress/ProgressBarValue.js +2 -2
  16. package/content/progress/ProgressBarValue.sty.d.ts +1 -1
  17. package/content/progress/ProgressBarValue.sty.js +2 -2
  18. package/content/progress/ProgressCircle.css +40 -40
  19. package/content/progress/ProgressCircle.js +1 -1
  20. package/content/progress/ProgressCircle.sty.js +5 -5
  21. package/content/skeleton/Skeleton.css +7 -7
  22. package/content/skeleton/Skeleton.sty.js +5 -5
  23. package/core/components/app-root/AppRoot.d.ts +13 -1
  24. package/core/components/app-root/AppRoot.js +3 -2
  25. package/core/styles/focusRing.css +66 -66
  26. package/core/styles/focusRing.sty.js +2 -2
  27. package/core/utils/colorUtils.css +60 -60
  28. package/core/utils/colorUtils.sty.js +2 -2
  29. package/core/utils/is-node-environment.d.ts +15 -0
  30. package/core/utils/is-node-environment.js +34 -0
  31. package/core/utils/logging.d.ts +8 -0
  32. package/core/utils/logging.js +33 -0
  33. package/esm/buttons/button/Button.css +16 -16
  34. package/esm/buttons/button/Button.js +11 -11
  35. package/esm/buttons/button/Button.js.map +2 -2
  36. package/esm/buttons/button/Button.sty.js +8 -8
  37. package/esm/buttons/button/Button.sty.js.map +2 -2
  38. package/esm/buttons/button/Label.js +2 -2
  39. package/esm/buttons/button/Label.js.map +2 -2
  40. package/esm/content/progress/ProgressBar.css +71 -71
  41. package/esm/content/progress/ProgressBar.sty.js +5 -5
  42. package/esm/content/progress/ProgressBar.sty.js.map +1 -1
  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 +3 -3
  47. package/esm/content/progress/ProgressBarLabel.js +6 -6
  48. package/esm/content/progress/ProgressBarLabel.js.map +2 -2
  49. package/esm/content/progress/ProgressBarLabel.sty.js +2 -2
  50. package/esm/content/progress/ProgressBarLabel.sty.js.map +2 -2
  51. package/esm/content/progress/ProgressBarValue.css +5 -5
  52. package/esm/content/progress/ProgressBarValue.js +4 -4
  53. package/esm/content/progress/ProgressBarValue.js.map +2 -2
  54. package/esm/content/progress/ProgressBarValue.sty.js +2 -2
  55. package/esm/content/progress/ProgressBarValue.sty.js.map +2 -2
  56. package/esm/content/progress/ProgressCircle.css +40 -40
  57. package/esm/content/progress/ProgressCircle.js +2 -2
  58. package/esm/content/progress/ProgressCircle.js.map +2 -2
  59. package/esm/content/progress/ProgressCircle.sty.js +5 -5
  60. package/esm/content/progress/ProgressCircle.sty.js.map +1 -1
  61. package/esm/content/skeleton/Skeleton.css +7 -7
  62. package/esm/content/skeleton/Skeleton.sty.js +5 -5
  63. package/esm/content/skeleton/Skeleton.sty.js.map +1 -1
  64. package/esm/core/components/app-root/AppRoot.js +3 -2
  65. package/esm/core/components/app-root/AppRoot.js.map +2 -2
  66. package/esm/core/hooks/useId.js.map +2 -2
  67. package/esm/core/styles/focusRing.css +66 -66
  68. package/esm/core/styles/focusRing.sty.js +2 -2
  69. package/esm/core/styles/focusRing.sty.js.map +1 -1
  70. package/esm/core/utils/colorUtils.css +60 -60
  71. package/esm/core/utils/colorUtils.sty.js +2 -2
  72. package/esm/core/utils/colorUtils.sty.js.map +1 -1
  73. package/esm/core/utils/is-node-environment.js +15 -0
  74. package/esm/core/utils/is-node-environment.js.map +7 -0
  75. package/esm/core/utils/logging.js +14 -0
  76. package/esm/core/utils/logging.js.map +7 -0
  77. package/esm/layouts/container/Container.css +4 -4
  78. package/esm/layouts/container/Container.sty.js +1 -1
  79. package/esm/layouts/container/Container.sty.js.map +1 -1
  80. package/esm/layouts/divider/Divider.css +6 -6
  81. package/esm/layouts/divider/Divider.sty.js +1 -1
  82. package/esm/layouts/divider/Divider.sty.js.map +1 -1
  83. package/esm/layouts/surface/Surface.css +39 -39
  84. package/esm/layouts/surface/Surface.js +4 -4
  85. package/esm/layouts/surface/Surface.js.map +2 -2
  86. package/esm/layouts/surface/Surface.sty.js +2 -2
  87. package/esm/layouts/surface/Surface.sty.js.map +1 -1
  88. package/esm/layouts/surface/variables.sty.js +1 -1
  89. package/esm/layouts/surface/variables.sty.js.map +1 -1
  90. package/esm/styles/colorUtils.css +60 -60
  91. package/esm/styles/colorUtils.sty.js +3 -3
  92. package/esm/styles/colorUtils.sty.js.map +2 -2
  93. package/esm/styles/container.css +47 -47
  94. package/esm/styles/container.sty.js +2 -2
  95. package/esm/styles/container.sty.js.map +1 -1
  96. package/esm/styles/ellipsis.css +1 -1
  97. package/esm/styles/ellipsis.sty.js +2 -2
  98. package/esm/styles/ellipsis.sty.js.map +2 -2
  99. package/esm/styles/field.css +153 -153
  100. package/esm/styles/field.sty.js +3 -3
  101. package/esm/styles/field.sty.js.map +2 -2
  102. package/esm/styles/index.js +2 -2
  103. package/esm/styles/index.js.map +2 -2
  104. package/esm/styles/sprinkles.css +262 -262
  105. package/esm/styles/sprinkles.sty.js +1 -1
  106. package/esm/styles/sprinkles.sty.js.map +1 -1
  107. package/esm/styles/textStyle.css +8 -8
  108. package/esm/styles/textStyle.sty.js +2 -2
  109. package/esm/styles/textStyle.sty.js.map +2 -2
  110. package/esm/typography/block-quote/Blockquote.css +2 -2
  111. package/esm/typography/block-quote/Blockquote.sty.js +1 -1
  112. package/esm/typography/block-quote/Blockquote.sty.js.map +1 -1
  113. package/esm/typography/code/Code.css +1 -1
  114. package/esm/typography/code/Code.sty.js +1 -1
  115. package/esm/typography/code/Code.sty.js.map +1 -1
  116. package/esm/typography/emphasis/Emphasis.css +1 -1
  117. package/esm/typography/emphasis/Emphasis.sty.js +1 -1
  118. package/esm/typography/emphasis/Emphasis.sty.js.map +1 -1
  119. package/esm/typography/external-link/ExternalLink.css +5 -5
  120. package/esm/typography/external-link/ExternalLink.js +2 -2
  121. package/esm/typography/external-link/ExternalLink.js.map +2 -2
  122. package/esm/typography/external-link/ExternalLink.sty.js +1 -1
  123. package/esm/typography/external-link/ExternalLink.sty.js.map +1 -1
  124. package/esm/typography/heading/Heading.css +7 -7
  125. package/esm/typography/heading/Heading.sty.js +1 -1
  126. package/esm/typography/heading/Heading.sty.js.map +1 -1
  127. package/esm/typography/highlight/Highlight.css +5 -6
  128. package/esm/typography/highlight/Highlight.js +45 -138
  129. package/esm/typography/highlight/Highlight.js.map +3 -3
  130. package/esm/typography/highlight/Highlight.sty.js +2 -4
  131. package/esm/typography/highlight/Highlight.sty.js.map +2 -2
  132. package/esm/typography/highlight/utils/create-ranged-highlights.js +51 -0
  133. package/esm/typography/highlight/utils/create-ranged-highlights.js.map +7 -0
  134. package/esm/typography/highlight/utils/get-or-create-shared-highlight.js +25 -0
  135. package/esm/typography/highlight/utils/get-or-create-shared-highlight.js.map +7 -0
  136. package/esm/typography/link/Link.css +3 -3
  137. package/esm/typography/link/Link.js +2 -2
  138. package/esm/typography/link/Link.js.map +2 -2
  139. package/esm/typography/link/Link.sty.js +1 -1
  140. package/esm/typography/link/Link.sty.js.map +1 -1
  141. package/esm/typography/list/List.css +4 -4
  142. package/esm/typography/list/List.sty.js +2 -2
  143. package/esm/typography/list/List.sty.js.map +1 -1
  144. package/esm/typography/paragraph/Paragraph.css +3 -3
  145. package/esm/typography/paragraph/Paragraph.js +3 -7
  146. package/esm/typography/paragraph/Paragraph.js.map +2 -2
  147. package/esm/typography/paragraph/Paragraph.sty.js +2 -2
  148. package/esm/typography/paragraph/Paragraph.sty.js.map +2 -2
  149. package/esm/typography/strikethrough/Strikethrough.css +1 -1
  150. package/esm/typography/strikethrough/Strikethrough.sty.js +1 -1
  151. package/esm/typography/strikethrough/Strikethrough.sty.js.map +1 -1
  152. package/esm/typography/strong/Strong.css +1 -1
  153. package/esm/typography/strong/Strong.sty.js +1 -1
  154. package/esm/typography/strong/Strong.sty.js.map +1 -1
  155. package/esm/typography/text/Text.css +3 -3
  156. package/esm/typography/text/Text.js +5 -5
  157. package/esm/typography/text/Text.js.map +2 -2
  158. package/esm/typography/text/Text.sty.js +2 -2
  159. package/esm/typography/text/Text.sty.js.map +2 -2
  160. package/esm/typography/text-ellipsis/TextEllipsis.css +6 -6
  161. package/esm/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
  162. package/esm/typography/text-ellipsis/TextEllipsis.sty.js.map +1 -1
  163. package/layouts/container/Container.css +4 -4
  164. package/layouts/container/Container.sty.js +1 -1
  165. package/layouts/divider/Divider.css +6 -6
  166. package/layouts/divider/Divider.sty.js +1 -1
  167. package/layouts/surface/Surface.css +39 -39
  168. package/layouts/surface/Surface.js +2 -2
  169. package/layouts/surface/Surface.sty.js +2 -2
  170. package/layouts/surface/variables.sty.js +1 -1
  171. package/package.json +3 -3
  172. package/styles/colorUtils.css +60 -60
  173. package/styles/colorUtils.sty.d.ts +1 -1
  174. package/styles/colorUtils.sty.js +3 -3
  175. package/styles/container.css +47 -47
  176. package/styles/container.sty.js +2 -2
  177. package/styles/ellipsis.css +1 -1
  178. package/styles/ellipsis.sty.d.ts +1 -1
  179. package/styles/ellipsis.sty.js +2 -2
  180. package/styles/field.css +153 -153
  181. package/styles/field.sty.d.ts +1 -1
  182. package/styles/field.sty.js +3 -3
  183. package/styles/index.d.ts +1 -1
  184. package/styles/index.js +1 -1
  185. package/styles/sprinkles.css +262 -262
  186. package/styles/sprinkles.sty.js +1 -1
  187. package/styles/textStyle.css +8 -8
  188. package/styles/textStyle.sty.d.ts +1 -1
  189. package/styles/textStyle.sty.js +2 -2
  190. package/typography/block-quote/Blockquote.css +2 -2
  191. package/typography/block-quote/Blockquote.sty.js +1 -1
  192. package/typography/code/Code.css +1 -1
  193. package/typography/code/Code.sty.js +1 -1
  194. package/typography/emphasis/Emphasis.css +1 -1
  195. package/typography/emphasis/Emphasis.sty.js +1 -1
  196. package/typography/external-link/ExternalLink.css +5 -5
  197. package/typography/external-link/ExternalLink.js +2 -2
  198. package/typography/external-link/ExternalLink.sty.js +1 -1
  199. package/typography/heading/Heading.css +7 -7
  200. package/typography/heading/Heading.sty.js +1 -1
  201. package/typography/highlight/Highlight.css +5 -6
  202. package/typography/highlight/Highlight.d.ts +1 -1
  203. package/typography/highlight/Highlight.js +43 -127
  204. package/typography/highlight/Highlight.sty.d.ts +1 -2
  205. package/typography/highlight/Highlight.sty.js +2 -4
  206. package/typography/highlight/utils/create-ranged-highlights.d.ts +10 -0
  207. package/typography/highlight/utils/create-ranged-highlights.js +70 -0
  208. package/typography/highlight/utils/get-or-create-shared-highlight.d.ts +7 -0
  209. package/typography/highlight/utils/get-or-create-shared-highlight.js +44 -0
  210. package/typography/link/Link.css +3 -3
  211. package/typography/link/Link.js +2 -2
  212. package/typography/link/Link.sty.js +1 -1
  213. package/typography/list/List.css +4 -4
  214. package/typography/list/List.sty.js +2 -2
  215. package/typography/paragraph/Paragraph.css +3 -3
  216. package/typography/paragraph/Paragraph.js +1 -5
  217. package/typography/paragraph/Paragraph.sty.d.ts +1 -1
  218. package/typography/paragraph/Paragraph.sty.js +2 -2
  219. package/typography/strikethrough/Strikethrough.css +1 -1
  220. package/typography/strikethrough/Strikethrough.sty.js +1 -1
  221. package/typography/strong/Strong.css +1 -1
  222. package/typography/strong/Strong.sty.js +1 -1
  223. package/typography/text/Text.css +3 -3
  224. package/typography/text/Text.js +3 -3
  225. package/typography/text/Text.sty.d.ts +1 -1
  226. package/typography/text/Text.sty.js +2 -2
  227. package/typography/text-ellipsis/TextEllipsis.css +6 -6
  228. package/typography/text-ellipsis/TextEllipsis.sty.js +2 -2
@@ -0,0 +1,70 @@
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 create_ranged_highlights_exports = {};
20
+ __export(create_ranged_highlights_exports, {
21
+ createRangedHighlights: () => createRangedHighlights
22
+ });
23
+ module.exports = __toCommonJS(create_ranged_highlights_exports);
24
+ var import_logging = require("../../../core/utils/logging.js");
25
+ function collectTextNodes(node, textNodes = []) {
26
+ if (node.nodeType === Node.TEXT_NODE) {
27
+ textNodes.push(node);
28
+ } else {
29
+ for (const child of Array.from(node.childNodes)) {
30
+ collectTextNodes(child, textNodes);
31
+ }
32
+ }
33
+ return textNodes;
34
+ }
35
+ function getTextRangeForHighlight(element, terms, caseSensitive) {
36
+ const textNodes = collectTextNodes(element);
37
+ const ranges = [];
38
+ for (const textNode of textNodes) {
39
+ const textContent = textNode.textContent ?? "";
40
+ const searchText = caseSensitive ? textContent : textContent.toLocaleLowerCase();
41
+ for (const term of terms) {
42
+ const searchTerm = caseSensitive ? term : term.toLocaleLowerCase();
43
+ let index = 0;
44
+ while ((index = searchText.indexOf(searchTerm, index)) !== -1) {
45
+ const range = new Range();
46
+ range.setStart(textNode, index);
47
+ range.setEnd(textNode, index + term.length);
48
+ ranges.push(range);
49
+ index += term.length;
50
+ }
51
+ }
52
+ }
53
+ return ranges;
54
+ }
55
+ function createRangedHighlights(targetElement, terms, caseSensitive, highlight) {
56
+ const storedRanges = [];
57
+ if (terms.length === 0) {
58
+ return storedRanges;
59
+ }
60
+ const ranges = getTextRangeForHighlight(targetElement, terms, caseSensitive);
61
+ for (const range of ranges) {
62
+ try {
63
+ highlight.add(range);
64
+ storedRanges.push(range);
65
+ } catch {
66
+ (0, import_logging.devLog)("Failed to add range", range);
67
+ }
68
+ }
69
+ return storedRanges;
70
+ }
@@ -0,0 +1,7 @@
1
+ export declare const HIGHLIGHT_NAME = "strato-typography-highlight";
2
+ /**
3
+ * Gets or creates the shared text highlight.
4
+ * All Highlight components share the same highlight instance.
5
+ * @internal
6
+ */
7
+ export declare function getOrCreateSharedHighlight(): Set<AbstractRange> | Highlight;
@@ -0,0 +1,44 @@
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 get_or_create_shared_highlight_exports = {};
20
+ __export(get_or_create_shared_highlight_exports, {
21
+ HIGHLIGHT_NAME: () => HIGHLIGHT_NAME,
22
+ getOrCreateSharedHighlight: () => getOrCreateSharedHighlight
23
+ });
24
+ module.exports = __toCommonJS(get_or_create_shared_highlight_exports);
25
+ var import_logging = require("../../../core/utils/logging.js");
26
+ const HIGHLIGHT_NAME = "strato-typography-highlight";
27
+ let sharedHighlight = null;
28
+ function getOrCreateSharedHighlight() {
29
+ if (sharedHighlight) {
30
+ return sharedHighlight;
31
+ }
32
+ if ("Highlight" in window) {
33
+ sharedHighlight = new Highlight();
34
+ if (sharedHighlight instanceof Highlight) {
35
+ CSS.highlights.set(HIGHLIGHT_NAME, sharedHighlight);
36
+ }
37
+ } else {
38
+ sharedHighlight = /* @__PURE__ */ new Set();
39
+ (0, import_logging.devLog)(
40
+ "CSS Highlight API is not supported in this browser. Text highlighting will not be visible."
41
+ );
42
+ }
43
+ return sharedHighlight;
44
+ }
@@ -1,12 +1,12 @@
1
- ._1iksxp40-1-13-0 {
1
+ ._1iksxp40-1-15-0 {
2
2
  display: inline;
3
3
  color: var(--dt-colors-text-primary-default, #464cce);
4
4
  text-decoration: underline;
5
5
  overflow-wrap: anywhere;
6
6
  }
7
- ._1iksxp40-1-13-0:hover {
7
+ ._1iksxp40-1-15-0:hover {
8
8
  color: var(--dt-colors-text-primary-default-hover, #3431b3);
9
9
  }
10
- ._1iksxp40-1-13-0:active {
10
+ ._1iksxp40-1-15-0:active {
11
11
  color: var(--dt-colors-text-primary-default-active, #250f98);
12
12
  }
@@ -62,8 +62,8 @@ const Link = /* @__PURE__ */ (0, import_react.forwardRef)(
62
62
  "data-dtrum-allow": dataDtrumAllow,
63
63
  className: (0, import_clsx.default)(focusClassName, styles.link, consumerClassName),
64
64
  style: {
65
- ...consumerStyle,
66
- textDecoration: isFocusVisible ? "none" : void 0
65
+ ...isFocusVisible && { textDecoration: "none" },
66
+ ...consumerStyle
67
67
  },
68
68
  ...(0, import_merge_props.mergeProps)(
69
69
  // Need to cast this one as the inference of mergeProps would generate
@@ -22,4 +22,4 @@ __export(Link_css_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(Link_css_exports);
24
24
  var import_Link_css_ts_vanilla = require("./Link.css");
25
- var link = "_1iksxp40-1-13-0";
25
+ var link = "_1iksxp40-1-15-0";
@@ -1,16 +1,16 @@
1
- ._16276mt0-1-13-0 {
1
+ ._16276mt0-1-15-0 {
2
2
  margin: 0;
3
3
  padding-left: var(--dt-spacings-size-40, 40px);
4
4
  }
5
- ._16276mt0-1-13-0 ._16276mt0-1-13-0 {
5
+ ._16276mt0-1-15-0 ._16276mt0-1-15-0 {
6
6
  margin-block: var(--dt-spacings-size-4, 4px);
7
7
  padding-left: var(--dt-spacings-size-28, 28px);
8
8
  }
9
- ._16276mt1-1-13-0 {
9
+ ._16276mt1-1-15-0 {
10
10
  position: relative;
11
11
  overflow-wrap: break-word;
12
12
  margin-block: var(--dt-spacings-size-2, 2px);
13
13
  }
14
- ._16276mt1-1-13-0::marker {
14
+ ._16276mt1-1-15-0::marker {
15
15
  font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
16
16
  }
@@ -23,5 +23,5 @@ __export(List_css_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(List_css_exports);
25
25
  var import_List_css_ts_vanilla = require("./List.css");
26
- var listCSS = "_16276mt0-1-13-0";
27
- var listItemCSS = "_16276mt1-1-13-0";
26
+ var listCSS = "_16276mt0-1-15-0";
27
+ var listItemCSS = "_16276mt1-1-15-0";
@@ -1,17 +1,17 @@
1
- ._487p2n0-1-13-0 {
1
+ ._487p2n0-1-15-0 {
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-1-13-0 {
8
+ ._487p2n1-1-15-0 {
9
9
  display: block;
10
10
  white-space: nowrap;
11
11
  text-overflow: ellipsis;
12
12
  overflow: hidden;
13
13
  }
14
- ._487p2n2-1-13-0 {
14
+ ._487p2n2-1-15-0 {
15
15
  display: -webkit-box;
16
16
  -webkit-line-clamp: var(--strato-ellipsis-line-clamp);
17
17
  -webkit-box-orient: vertical;
@@ -62,11 +62,7 @@ const Paragraph = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
62
62
  "data-testid": dataTestId,
63
63
  "data-dtrum-mask": dataDtrumMask,
64
64
  "data-dtrum-allow": dataDtrumAllow,
65
- className: (0, import_clsx.default)(
66
- (0, import_Paragraph_css.paragraphCSS)({ ellipsis }),
67
- (0, import_textStyle_css.textStyleCSS)(),
68
- consumerClassName
69
- ),
65
+ className: (0, import_clsx.default)((0, import_Paragraph_css.paragraph)({ ellipsis }), (0, import_textStyle_css.textStyle)(), consumerClassName),
70
66
  style: {
71
67
  ...consumerStyle,
72
68
  "--strato-ellipsis-line-clamp": maxLines
@@ -1,4 +1,4 @@
1
- export declare const paragraphCSS: import("@vanilla-extract/recipes").RuntimeFn<{
1
+ export declare const paragraph: import("@vanilla-extract/recipes").RuntimeFn<{
2
2
  ellipsis: {
3
3
  singleLine: {
4
4
  display: "block";
@@ -18,9 +18,9 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var Paragraph_css_exports = {};
20
20
  __export(Paragraph_css_exports, {
21
- paragraphCSS: () => paragraphCSS
21
+ paragraph: () => paragraph
22
22
  });
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 paragraphCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_487p2n0-1-13-0", variantClassNames: { ellipsis: { singleLine: "_487p2n1-1-13-0", multiLine: "_487p2n2-1-13-0" } }, defaultVariants: {}, compoundVariants: [] });
26
+ var paragraph = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_487p2n0-1-15-0", variantClassNames: { ellipsis: { singleLine: "_487p2n1-1-15-0", multiLine: "_487p2n2-1-15-0" } }, defaultVariants: {}, compoundVariants: [] });
@@ -1,4 +1,4 @@
1
- ._4oao6y0-1-13-0 {
1
+ ._4oao6y0-1-15-0 {
2
2
  text-decoration: line-through;
3
3
  text-decoration-style: solid;
4
4
  overflow-wrap: break-word;
@@ -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-13-0";
25
+ var strikethroughCSS = "_4oao6y0-1-15-0";
@@ -1,4 +1,4 @@
1
- ._wxp4dd0-1-13-0 {
1
+ ._wxp4dd0-1-15-0 {
2
2
  font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
3
3
  overflow-wrap: break-word;
4
4
  }
@@ -22,4 +22,4 @@ __export(Strong_css_exports, {
22
22
  });
23
23
  module.exports = __toCommonJS(Strong_css_exports);
24
24
  var import_Strong_css_ts_vanilla = require("./Strong.css");
25
- var strongCSS = "_wxp4dd0-1-13-0";
25
+ var strongCSS = "_wxp4dd0-1-15-0";
@@ -1,16 +1,16 @@
1
- ._rup8ap0-1-13-0 {
1
+ ._rup8ap0-1-15-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-13-0 {
7
+ ._rup8ap1-1-15-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-0 {
13
+ ._rup8ap2-1-15-0 {
14
14
  display: -webkit-box;
15
15
  -webkit-line-clamp: var(--strato-ellipsis-line-clamp);
16
16
  -webkit-box-orient: vertical;
@@ -39,7 +39,7 @@ var import_textStyle_css = require("../../styles/textStyle.sty.js");
39
39
  const Text = /* @__PURE__ */ (0, import_react.forwardRef)(
40
40
  ({
41
41
  children,
42
- textStyle,
42
+ textStyle: textStyleProp,
43
43
  fontStyle,
44
44
  as,
45
45
  className: consumerClassName,
@@ -59,8 +59,8 @@ const Text = /* @__PURE__ */ (0, import_react.forwardRef)(
59
59
  "data-dtrum-allow": dataDtrumAllow,
60
60
  ref,
61
61
  className: (0, import_clsx.default)([
62
- (0, import_Text_css.textCSS)({ ellipsis }),
63
- (fontStyle || textStyle) && (0, import_textStyle_css.textStyleCSS)({ fontStyle, textStyle }),
62
+ (0, import_Text_css.text)({ ellipsis }),
63
+ (fontStyle || textStyleProp) && (0, import_textStyle_css.textStyle)({ fontStyle, textStyle: textStyleProp }),
64
64
  consumerClassName
65
65
  ]),
66
66
  style: consumerStyle,
@@ -1,4 +1,4 @@
1
- export declare const textCSS: import("@vanilla-extract/recipes").RuntimeFn<{
1
+ export declare const text: import("@vanilla-extract/recipes").RuntimeFn<{
2
2
  ellipsis: {
3
3
  singleLine: {
4
4
  display: "block";
@@ -18,9 +18,9 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var Text_css_exports = {};
20
20
  __export(Text_css_exports, {
21
- textCSS: () => textCSS
21
+ text: () => text
22
22
  });
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 textCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_rup8ap0-1-13-0", variantClassNames: { ellipsis: { singleLine: "_rup8ap1-1-13-0", multiLine: "_rup8ap2-1-13-0" } }, defaultVariants: {}, compoundVariants: [] });
26
+ var text = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_rup8ap0-1-15-0", variantClassNames: { ellipsis: { singleLine: "_rup8ap1-1-15-0", multiLine: "_rup8ap2-1-15-0" } }, defaultVariants: {}, compoundVariants: [] });
@@ -1,4 +1,4 @@
1
- ._1mnpbqs1-1-13-0 {
1
+ ._1mnpbqs1-1-15-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-13-0 {
12
+ ._1mnpbqs2-1-15-0 {
13
13
  text-overflow: ellipsis;
14
14
  direction: rtl;
15
15
  text-align: left;
16
16
  }
17
- ._1mnpbqs2-1-13-0::after, ._1mnpbqs2-1-13-0::before {
17
+ ._1mnpbqs2-1-15-0::after, ._1mnpbqs2-1-15-0::before {
18
18
  content: "‎";
19
19
  }
20
- ._1mnpbqs3-1-13-0 {
20
+ ._1mnpbqs3-1-15-0 {
21
21
  text-overflow: clip;
22
22
  }
23
- ._1mnpbqs3-1-13-0._1mnpbqs0-1-13-0:after {
23
+ ._1mnpbqs3-1-15-0._1mnpbqs0-1-15-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-13-0 {
31
+ ._1mnpbqs4-1-15-0 {
32
32
  text-overflow: ellipsis;
33
33
  }
@@ -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-13-0";
28
- var ellipsis = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1mnpbqs1-1-13-0", variantClassNames: { truncationMode: { start: "_1mnpbqs2-1-13-0", middle: "_1mnpbqs3-1-13-0", end: "_1mnpbqs4-1-13-0" } }, defaultVariants: {}, compoundVariants: [] });
27
+ var active = "_1mnpbqs0-1-15-0";
28
+ var ellipsis = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "_1mnpbqs1-1-15-0", variantClassNames: { truncationMode: { start: "_1mnpbqs2-1-15-0", middle: "_1mnpbqs3-1-15-0", end: "_1mnpbqs4-1-15-0" } }, defaultVariants: {}, compoundVariants: [] });