@dynatrace/strato-components 0.84.21 → 0.84.42

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 (230) hide show
  1. package/core/components/app-root/AppRoot.d.ts +9 -4
  2. package/core/components/app-root/AppRoot.js +6 -2
  3. package/core/contexts/FocusContext.d.ts +1 -1
  4. package/core/hooks/useCurrentTheme.d.ts +4 -1
  5. package/core/hooks/useFontsUpdated.d.ts +9 -0
  6. package/core/hooks/useFontsUpdated.js +51 -0
  7. package/core/hooks/useMergeRefs.d.ts +7 -0
  8. package/core/hooks/useMergeRefs.js +34 -0
  9. package/core/index.d.ts +5 -0
  10. package/core/styles/focusRing.css +88 -0
  11. package/core/styles/focusRing.sty.d.ts +96 -0
  12. package/core/styles/focusRing.sty.js +27 -0
  13. package/core/styles/useFocusRing.d.ts +49 -0
  14. package/core/styles/useFocusRing.js +83 -0
  15. package/core/types/a11y-props.d.ts +19 -0
  16. package/core/types/a11y-props.js +15 -0
  17. package/core/types/data-props.d.ts +1 -0
  18. package/core/types/dom.d.ts +19 -0
  19. package/core/types/dom.js +15 -0
  20. package/core/types/focusable-element.d.ts +5 -0
  21. package/core/types/focusable-element.js +15 -0
  22. package/core/types/heading.d.ts +9 -0
  23. package/core/types/heading.js +15 -0
  24. package/core/types/masking-props.d.ts +9 -0
  25. package/core/types/masking-props.js +15 -0
  26. package/core/types/polymorph.d.ts +25 -0
  27. package/core/types/polymorph.js +15 -0
  28. package/core/types/styling-props.d.ts +3 -2
  29. package/core/types/with-children.d.ts +4 -1
  30. package/core/utils/colorUtils.css +80 -0
  31. package/core/utils/colorUtils.sty.d.ts +48 -0
  32. package/core/utils/colorUtils.sty.js +27 -0
  33. package/esm/core/components/app-root/AppRoot.js +6 -2
  34. package/esm/core/components/app-root/AppRoot.js.map +2 -2
  35. package/esm/core/contexts/FocusContext.js.map +1 -1
  36. package/esm/core/hooks/useCurrentTheme.js.map +2 -2
  37. package/esm/core/hooks/useFontsUpdated.js +33 -0
  38. package/esm/core/hooks/useFontsUpdated.js.map +7 -0
  39. package/esm/core/hooks/useMergeRefs.js +16 -0
  40. package/esm/core/hooks/useMergeRefs.js.map +7 -0
  41. package/esm/core/index.js.map +2 -2
  42. package/esm/core/styles/focusRing.css +88 -0
  43. package/esm/core/styles/focusRing.sty.js +9 -0
  44. package/esm/core/styles/focusRing.sty.js.map +7 -0
  45. package/esm/core/styles/useFocusRing.js +69 -0
  46. package/esm/core/styles/useFocusRing.js.map +7 -0
  47. package/esm/core/types/a11y-props.js +1 -0
  48. package/esm/core/types/a11y-props.js.map +7 -0
  49. package/esm/core/types/dom.js +1 -0
  50. package/esm/core/types/dom.js.map +7 -0
  51. package/esm/core/types/focusable-element.js +1 -0
  52. package/esm/core/types/focusable-element.js.map +7 -0
  53. package/esm/core/types/heading.js +1 -0
  54. package/esm/core/types/heading.js.map +7 -0
  55. package/esm/core/types/masking-props.js +1 -0
  56. package/esm/core/types/masking-props.js.map +7 -0
  57. package/esm/core/types/polymorph.js +1 -0
  58. package/esm/core/types/polymorph.js.map +7 -0
  59. package/esm/core/utils/colorUtils.css +80 -0
  60. package/esm/core/utils/colorUtils.sty.js +9 -0
  61. package/esm/core/utils/colorUtils.sty.js.map +7 -0
  62. package/esm/index.js +2 -0
  63. package/esm/index.js.map +2 -2
  64. package/esm/layouts/Divider/Divider.css +23 -0
  65. package/esm/layouts/Divider/Divider.js +39 -0
  66. package/esm/layouts/Divider/Divider.js.map +7 -0
  67. package/esm/layouts/Divider/Divider.sty.js +8 -0
  68. package/esm/layouts/Divider/Divider.sty.js.map +7 -0
  69. package/esm/layouts/index.js +5 -0
  70. package/esm/layouts/index.js.map +7 -0
  71. package/esm/styles/textStyle.css +64 -0
  72. package/esm/styles/textStyle.sty.js +7 -0
  73. package/esm/styles/textStyle.sty.js.map +7 -0
  74. package/esm/typography/BlockQuote/Blockquote.css +17 -0
  75. package/esm/typography/BlockQuote/Blockquote.js +34 -0
  76. package/esm/typography/BlockQuote/Blockquote.js.map +7 -0
  77. package/esm/typography/BlockQuote/Blockquote.sty.js +6 -0
  78. package/esm/typography/BlockQuote/Blockquote.sty.js.map +7 -0
  79. package/esm/typography/Code/Code.css +16 -0
  80. package/esm/typography/Code/Code.js +34 -0
  81. package/esm/typography/Code/Code.js.map +7 -0
  82. package/esm/typography/Code/Code.sty.js +6 -0
  83. package/esm/typography/Code/Code.sty.js.map +7 -0
  84. package/esm/typography/Emphasis/Emphasis.css +4 -0
  85. package/esm/typography/Emphasis/Emphasis.js +34 -0
  86. package/esm/typography/Emphasis/Emphasis.js.map +7 -0
  87. package/esm/typography/Emphasis/Emphasis.sty.js +6 -0
  88. package/esm/typography/Emphasis/Emphasis.sty.js.map +7 -0
  89. package/esm/typography/ExternalLink/ExternalLink.css +28 -0
  90. package/esm/typography/ExternalLink/ExternalLink.js +56 -0
  91. package/esm/typography/ExternalLink/ExternalLink.js.map +7 -0
  92. package/esm/typography/ExternalLink/ExternalLink.sty.js +6 -0
  93. package/esm/typography/ExternalLink/ExternalLink.sty.js.map +7 -0
  94. package/esm/typography/Heading/Heading.css +54 -0
  95. package/esm/typography/Heading/Heading.js +36 -0
  96. package/esm/typography/Heading/Heading.js.map +7 -0
  97. package/esm/typography/Heading/Heading.sty.js +7 -0
  98. package/esm/typography/Heading/Heading.sty.js.map +7 -0
  99. package/esm/typography/Highlight/Highlight.css +4 -0
  100. package/esm/typography/Highlight/Highlight.js +111 -0
  101. package/esm/typography/Highlight/Highlight.js.map +7 -0
  102. package/esm/typography/Highlight/Highlight.sty.js +6 -0
  103. package/esm/typography/Highlight/Highlight.sty.js.map +7 -0
  104. package/esm/typography/Link/Link.css +15 -0
  105. package/esm/typography/Link/Link.js +49 -0
  106. package/esm/typography/Link/Link.js.map +7 -0
  107. package/esm/typography/Link/Link.sty.js +6 -0
  108. package/esm/typography/Link/Link.sty.js.map +7 -0
  109. package/esm/typography/List/List.css +16 -0
  110. package/esm/typography/List/List.js +81 -0
  111. package/esm/typography/List/List.js.map +7 -0
  112. package/esm/typography/List/List.sty.js +8 -0
  113. package/esm/typography/List/List.sty.js.map +7 -0
  114. package/esm/typography/Paragraph/Paragraph.css +19 -0
  115. package/esm/typography/Paragraph/Paragraph.js +49 -0
  116. package/esm/typography/Paragraph/Paragraph.js.map +7 -0
  117. package/esm/typography/Paragraph/Paragraph.sty.js +7 -0
  118. package/esm/typography/Paragraph/Paragraph.sty.js.map +7 -0
  119. package/esm/typography/Strikethrough/Strikethrough.css +5 -0
  120. package/esm/typography/Strikethrough/Strikethrough.js +32 -0
  121. package/esm/typography/Strikethrough/Strikethrough.js.map +7 -0
  122. package/esm/typography/Strikethrough/Strikethrough.sty.js +6 -0
  123. package/esm/typography/Strikethrough/Strikethrough.sty.js.map +7 -0
  124. package/esm/typography/Strong/Strong.css +4 -0
  125. package/esm/typography/Strong/Strong.js +34 -0
  126. package/esm/typography/Strong/Strong.js.map +7 -0
  127. package/esm/typography/Strong/Strong.sty.js +6 -0
  128. package/esm/typography/Strong/Strong.sty.js.map +7 -0
  129. package/esm/typography/Text/Text.css +18 -0
  130. package/esm/typography/Text/Text.js +43 -0
  131. package/esm/typography/Text/Text.js.map +7 -0
  132. package/esm/typography/Text/Text.sty.js +7 -0
  133. package/esm/typography/Text/Text.sty.js.map +7 -0
  134. package/esm/typography/TextEllipsis/TextEllipsis.css +22 -0
  135. package/esm/typography/TextEllipsis/TextEllipsis.js +143 -0
  136. package/esm/typography/TextEllipsis/TextEllipsis.js.map +7 -0
  137. package/esm/typography/TextEllipsis/TextEllipsis.sty.js +7 -0
  138. package/esm/typography/TextEllipsis/TextEllipsis.sty.js.map +7 -0
  139. package/esm/typography/index.js +43 -0
  140. package/esm/typography/index.js.map +7 -0
  141. package/esm/typography/utils.js +101 -0
  142. package/esm/typography/utils.js.map +7 -0
  143. package/index.d.ts +2 -0
  144. package/index.js +2 -0
  145. package/lang/en.json +6 -0
  146. package/lang/uncompiled/en.json +6 -1
  147. package/layouts/Divider/Divider.css +23 -0
  148. package/layouts/Divider/Divider.d.ts +39 -0
  149. package/layouts/Divider/Divider.js +67 -0
  150. package/layouts/Divider/Divider.sty.d.ts +16 -0
  151. package/layouts/Divider/Divider.sty.js +26 -0
  152. package/layouts/index.d.ts +2 -0
  153. package/layouts/index.js +23 -0
  154. package/package.json +17 -2
  155. package/styles/textStyle.css +64 -0
  156. package/styles/textStyle.sty.d.ts +12 -0
  157. package/styles/textStyle.sty.js +25 -0
  158. package/testing/custom-render.d.ts +1 -1
  159. package/testing/mocks/resize-observer-mock.d.ts +1 -1
  160. package/testing/mocks/text-ellipsis-mock.d.ts +1 -1
  161. package/testing/mocks/text-ellipsis-mock.js +8 -3
  162. package/typography/BlockQuote/Blockquote.css +17 -0
  163. package/typography/BlockQuote/Blockquote.d.ts +19 -0
  164. package/typography/BlockQuote/Blockquote.js +62 -0
  165. package/typography/BlockQuote/Blockquote.sty.d.ts +1 -0
  166. package/typography/BlockQuote/Blockquote.sty.js +24 -0
  167. package/typography/Code/Code.css +16 -0
  168. package/typography/Code/Code.d.ts +17 -0
  169. package/typography/Code/Code.js +62 -0
  170. package/typography/Code/Code.sty.d.ts +1 -0
  171. package/typography/Code/Code.sty.js +24 -0
  172. package/typography/Emphasis/Emphasis.css +4 -0
  173. package/typography/Emphasis/Emphasis.d.ts +14 -0
  174. package/typography/Emphasis/Emphasis.js +62 -0
  175. package/typography/Emphasis/Emphasis.sty.d.ts +1 -0
  176. package/typography/Emphasis/Emphasis.sty.js +24 -0
  177. package/typography/ExternalLink/ExternalLink.css +28 -0
  178. package/typography/ExternalLink/ExternalLink.d.ts +21 -0
  179. package/typography/ExternalLink/ExternalLink.js +82 -0
  180. package/typography/ExternalLink/ExternalLink.sty.d.ts +1 -0
  181. package/typography/ExternalLink/ExternalLink.sty.js +24 -0
  182. package/typography/Heading/Heading.css +54 -0
  183. package/typography/Heading/Heading.d.ts +24 -0
  184. package/typography/Heading/Heading.js +64 -0
  185. package/typography/Heading/Heading.sty.d.ts +52 -0
  186. package/typography/Heading/Heading.sty.js +25 -0
  187. package/typography/Highlight/Highlight.css +4 -0
  188. package/typography/Highlight/Highlight.d.ts +27 -0
  189. package/typography/Highlight/Highlight.js +139 -0
  190. package/typography/Highlight/Highlight.sty.d.ts +1 -0
  191. package/typography/Highlight/Highlight.sty.js +24 -0
  192. package/typography/Link/Link.css +15 -0
  193. package/typography/Link/Link.d.ts +17 -0
  194. package/typography/Link/Link.js +75 -0
  195. package/typography/Link/Link.sty.d.ts +1 -0
  196. package/typography/Link/Link.sty.js +24 -0
  197. package/typography/List/List.css +16 -0
  198. package/typography/List/List.d.ts +39 -0
  199. package/typography/List/List.js +109 -0
  200. package/typography/List/List.sty.d.ts +2 -0
  201. package/typography/List/List.sty.js +26 -0
  202. package/typography/Paragraph/Paragraph.css +19 -0
  203. package/typography/Paragraph/Paragraph.d.ts +19 -0
  204. package/typography/Paragraph/Paragraph.js +77 -0
  205. package/typography/Paragraph/Paragraph.sty.d.ts +16 -0
  206. package/typography/Paragraph/Paragraph.sty.js +25 -0
  207. package/typography/Strikethrough/Strikethrough.css +5 -0
  208. package/typography/Strikethrough/Strikethrough.d.ts +15 -0
  209. package/typography/Strikethrough/Strikethrough.js +60 -0
  210. package/typography/Strikethrough/Strikethrough.sty.d.ts +1 -0
  211. package/typography/Strikethrough/Strikethrough.sty.js +24 -0
  212. package/typography/Strong/Strong.css +4 -0
  213. package/typography/Strong/Strong.d.ts +14 -0
  214. package/typography/Strong/Strong.js +62 -0
  215. package/typography/Strong/Strong.sty.d.ts +1 -0
  216. package/typography/Strong/Strong.sty.js +24 -0
  217. package/typography/Text/Text.css +18 -0
  218. package/typography/Text/Text.d.ts +26 -0
  219. package/typography/Text/Text.js +71 -0
  220. package/typography/Text/Text.sty.d.ts +16 -0
  221. package/typography/Text/Text.sty.js +25 -0
  222. package/typography/TextEllipsis/TextEllipsis.css +22 -0
  223. package/typography/TextEllipsis/TextEllipsis.d.ts +32 -0
  224. package/typography/TextEllipsis/TextEllipsis.js +167 -0
  225. package/typography/TextEllipsis/TextEllipsis.sty.d.ts +15 -0
  226. package/typography/TextEllipsis/TextEllipsis.sty.js +25 -0
  227. package/typography/index.d.ts +28 -0
  228. package/typography/index.js +54 -0
  229. package/typography/utils.d.ts +52 -0
  230. package/typography/utils.js +119 -0
@@ -1,4 +1,4 @@
1
1
  /** Mocks DOM properties and functions required for the TextEllipsis component to work. */
2
- export declare function setupTextEllipsisMock(availableWidth?: number, textWidth?: number, mockCanvas?: boolean): void;
2
+ export declare function setupTextEllipsisMock(containerWidth?: number, textWidth?: number, mockCanvas?: boolean): void;
3
3
  /** Clears mocked DOM properties and functions required for the TextEllipsis component to work. */
4
4
  export declare function clearTextEllipsisMock(): void;
@@ -23,10 +23,15 @@ __export(text_ellipsis_mock_exports, {
23
23
  module.exports = __toCommonJS(text_ellipsis_mock_exports);
24
24
  var import_bounding_client_rect_mock = require("./bounding-client-rect-mock.js");
25
25
  var import_canvas_mock = require("./canvas-mock.js");
26
+ var import_dom_rect_mock = require("./dom-rect-mock.js");
26
27
  var import_scroll_width_mock = require("./scroll-width-mock.js");
27
- function setupTextEllipsisMock(availableWidth = 250, textWidth = 200, mockCanvas = false) {
28
- (0, import_bounding_client_rect_mock.setupGetBoundingClientRectMock)(availableWidth);
29
- (0, import_scroll_width_mock.setupScrollWidthMock)(textWidth);
28
+ function setupTextEllipsisMock(containerWidth = 250, textWidth = 200, mockCanvas = false) {
29
+ (0, import_bounding_client_rect_mock.setupGetBoundingClientRectMock)(function() {
30
+ if (this.getAttribute("data-ellipsis") !== null) {
31
+ return (0, import_dom_rect_mock.createDOMRect)(containerWidth, 0);
32
+ }
33
+ return (0, import_dom_rect_mock.createDOMRect)(textWidth, 0);
34
+ });
30
35
  if (mockCanvas) {
31
36
  (0, import_canvas_mock.setupCanvasMeasureTextMock)();
32
37
  }
@@ -0,0 +1,17 @@
1
+ .Blockquote_blockquoteCSS__18f615k0 {
2
+ position: relative;
3
+ margin: var(--dt-spacings-size-0, 0);
4
+ padding-left: var(--dt-spacings-size-40, 40px);
5
+ word-break: normal;
6
+ overflow-wrap: anywhere;
7
+ }
8
+ .Blockquote_blockquoteCSS__18f615k0:before {
9
+ content: "";
10
+ position: absolute;
11
+ top: 0;
12
+ left: calc(var(--dt-spacings-size-40, 40px) - var(--dt-spacings-size-12, 12px));
13
+ width: var(--dt-borders-width-emphasized, 2px);
14
+ border-radius: var(--dt-borders-radius-field-emphasized, 9999px);
15
+ height: 100%;
16
+ background: var(--dt-colors-border-neutral-default, #d2d3e1);
17
+ }
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { DataTestId, StylingProps, WithChildren } from '../../core/index.js';
3
+ import type { MaskingProps } from '../../core/types/masking-props.js';
4
+ /**
5
+ * The props for the Blockquote component.
6
+ * @public
7
+ */
8
+ export interface BlockquoteProps extends WithChildren, StylingProps, DataTestId, MaskingProps {
9
+ /**
10
+ * A URL that designates a source document or message for the information quoted.
11
+ * This attribute is intended to point to information explaining the context for the quoted content.
12
+ */
13
+ cite?: string;
14
+ }
15
+ /**
16
+ * @public
17
+ * The `Blockquote` component wraps longer text blocks and indicates that the passage is quoted from another source.
18
+ */
19
+ export declare const Blockquote: (props: BlockquoteProps & React.RefAttributes<HTMLQuoteElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,62 @@
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 Blockquote_exports = {};
29
+ __export(Blockquote_exports, {
30
+ Blockquote: () => Blockquote
31
+ });
32
+ module.exports = __toCommonJS(Blockquote_exports);
33
+ var import_clsx = __toESM(require("clsx"));
34
+ var import_react = __toESM(require("react"));
35
+ var import_Blockquote_css = require("./Blockquote.sty.js");
36
+ const Blockquote = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
37
+ const {
38
+ children,
39
+ cite,
40
+ "data-testid": dataTestId,
41
+ "data-dtrum-mask": dataDtrumMask,
42
+ "data-dtrum-allow": dataDtrumAllow,
43
+ className: consumerClassName,
44
+ style: consumerStyle,
45
+ ...remainingProps
46
+ } = props;
47
+ return /* @__PURE__ */ import_react.default.createElement(
48
+ "blockquote",
49
+ {
50
+ cite,
51
+ ref,
52
+ "data-testid": dataTestId,
53
+ "data-dtrum-mask": dataDtrumMask,
54
+ "data-dtrum-allow": dataDtrumAllow,
55
+ className: (0, import_clsx.default)(import_Blockquote_css.blockquoteCSS, consumerClassName),
56
+ style: consumerStyle,
57
+ ...remainingProps
58
+ },
59
+ children
60
+ );
61
+ });
62
+ Blockquote.displayName = "Blockquote";
@@ -0,0 +1 @@
1
+ export declare const blockquoteCSS: string;
@@ -0,0 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var Blockquote_css_exports = {};
19
+ __export(Blockquote_css_exports, {
20
+ blockquoteCSS: () => blockquoteCSS
21
+ });
22
+ module.exports = __toCommonJS(Blockquote_css_exports);
23
+ var import_Blockquote_css_ts_vanilla = require("./Blockquote.css");
24
+ var blockquoteCSS = "Blockquote_blockquoteCSS__18f615k0";
@@ -0,0 +1,16 @@
1
+ .Code_codeCSS__1lx0ryl0 {
2
+ background: var(--dt-colors-background-field-neutral-emphasized, #dadbe7);
3
+ padding-top: var(--dt-spacings-size-0, 0);
4
+ padding-bottom: var(--dt-spacings-size-0, 0);
5
+ padding-left: var(--dt-spacings-size-4, 4px);
6
+ padding-right: var(--dt-spacings-size-4, 4px);
7
+ border-radius: var(--dt-borders-radius-field-subdued, 4px);
8
+ overflow-wrap: break-word;
9
+ font-style: normal;
10
+ font-family: var(--dt-typography-code-base-default-family, Roboto Mono,monospace);
11
+ font-weight: var(--dt-typography-code-base-default-weight, 400);
12
+ text-transform: var(--dt-typography-code-base-default-text-transform, none);
13
+ text-decoration: var(--dt-typography-code-base-default-text-decoration, none);
14
+ box-decoration-break: clone;
15
+ -webkit-box-decoration-break: clone;
16
+ }
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { type DataTestId, type StylingProps, type WithChildren } from '../../core/index.js';
3
+ import type { MaskingProps } from '../../core/types/masking-props.js';
4
+ /**
5
+ * The props for the Code component.
6
+ * @public
7
+ */
8
+ export interface CodeProps extends WithChildren, StylingProps, DataTestId, MaskingProps {
9
+ }
10
+ /**
11
+ * @public
12
+ * Use the `Code` component to display snippets of code inline. If you want to
13
+ * display a block of code, use the
14
+ * {@link https://developer.dynatrace.com/reference/design-system/preview/content/CodeSnippet/ | `CodeSnippet`}
15
+ * component instead.
16
+ */
17
+ export declare const Code: (props: CodeProps & React.RefAttributes<HTMLElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,62 @@
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 Code_exports = {};
29
+ __export(Code_exports, {
30
+ Code: () => Code
31
+ });
32
+ module.exports = __toCommonJS(Code_exports);
33
+ var import_clsx = __toESM(require("clsx"));
34
+ var import_react = __toESM(require("react"));
35
+ var import_Code_css = require("./Code.sty.js");
36
+ const Code = /* @__PURE__ */ (0, import_react.forwardRef)(
37
+ (props, ref) => {
38
+ const {
39
+ children,
40
+ "data-testid": dataTestId,
41
+ "data-dtrum-mask": dataDtrumMask,
42
+ "data-dtrum-allow": dataDtrumAllow,
43
+ className: consumerClassName,
44
+ style: consumerStyle,
45
+ ...remainingProps
46
+ } = props;
47
+ return /* @__PURE__ */ import_react.default.createElement(
48
+ "code",
49
+ {
50
+ ref,
51
+ "data-testid": dataTestId,
52
+ "data-dtrum-mask": dataDtrumMask,
53
+ "data-dtrum-allow": dataDtrumAllow,
54
+ className: (0, import_clsx.default)(import_Code_css.codeCSS, consumerClassName),
55
+ style: consumerStyle,
56
+ ...remainingProps
57
+ },
58
+ children
59
+ );
60
+ }
61
+ );
62
+ Code.displayName = "Code";
@@ -0,0 +1 @@
1
+ export declare const codeCSS: string;
@@ -0,0 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var Code_css_exports = {};
19
+ __export(Code_css_exports, {
20
+ codeCSS: () => codeCSS
21
+ });
22
+ module.exports = __toCommonJS(Code_css_exports);
23
+ var import_Code_css_ts_vanilla = require("./Code.css");
24
+ var codeCSS = "Code_codeCSS__1lx0ryl0";
@@ -0,0 +1,4 @@
1
+ .Emphasis_emphasisCSS__19xtnhr0 {
2
+ font-style: italic;
3
+ overflow-wrap: break-word;
4
+ }
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { type DataTestId, type StylingProps, type WithChildren } from '../../core/index.js';
3
+ import type { MaskingProps } from '../../core/types/masking-props.js';
4
+ /**
5
+ * The props for the Emphasis component.
6
+ * @public
7
+ */
8
+ export interface EmphasisProps extends WithChildren, StylingProps, DataTestId, MaskingProps {
9
+ }
10
+ /**
11
+ * @public
12
+ * The `Emphasis` component adds visual and semantic emphasis to stressed or essential content.
13
+ */
14
+ export declare const Emphasis: (props: EmphasisProps & React.RefAttributes<HTMLElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,62 @@
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 Emphasis_exports = {};
29
+ __export(Emphasis_exports, {
30
+ Emphasis: () => Emphasis
31
+ });
32
+ module.exports = __toCommonJS(Emphasis_exports);
33
+ var import_clsx = __toESM(require("clsx"));
34
+ var import_react = __toESM(require("react"));
35
+ var import_Emphasis_css = require("./Emphasis.sty.js");
36
+ const Emphasis = /* @__PURE__ */ (0, import_react.forwardRef)(
37
+ (props, ref) => {
38
+ const {
39
+ children,
40
+ "data-testid": dataTestId,
41
+ "data-dtrum-mask": dataDtrumMask,
42
+ "data-dtrum-allow": dataDtrumAllow,
43
+ className: consumerClassName,
44
+ style: consumerStyle,
45
+ ...remainingProps
46
+ } = props;
47
+ return /* @__PURE__ */ import_react.default.createElement(
48
+ "em",
49
+ {
50
+ ref,
51
+ "data-testid": dataTestId,
52
+ "data-dtrum-mask": dataDtrumMask,
53
+ "data-dtrum-allow": dataDtrumAllow,
54
+ className: (0, import_clsx.default)(import_Emphasis_css.emphasisCSS, consumerClassName),
55
+ style: consumerStyle,
56
+ ...remainingProps
57
+ },
58
+ children
59
+ );
60
+ }
61
+ );
62
+ Emphasis.displayName = "Emphasis";
@@ -0,0 +1 @@
1
+ export declare const emphasisCSS: string;
@@ -0,0 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var Emphasis_css_exports = {};
19
+ __export(Emphasis_css_exports, {
20
+ emphasisCSS: () => emphasisCSS
21
+ });
22
+ module.exports = __toCommonJS(Emphasis_css_exports);
23
+ var import_Emphasis_css_ts_vanilla = require("./Emphasis.css");
24
+ var emphasisCSS = "Emphasis_emphasisCSS__19xtnhr0";
@@ -0,0 +1,28 @@
1
+ .ExternalLink_externalLinkCSS__8noiqs0 {
2
+ display: inline-block;
3
+ color: var(--dt-colors-text-primary-default, #454cc9);
4
+ text-decoration: underline;
5
+ overflow-wrap: anywhere;
6
+ }
7
+ .ExternalLink_externalLinkCSS__8noiqs0:hover {
8
+ color: var(--dt-colors-text-primary-default-hover, #3332ae);
9
+ }
10
+ .ExternalLink_externalLinkCSS__8noiqs0:active {
11
+ color: var(--dt-colors-text-primary-default-active, #241193);
12
+ }
13
+ .ExternalLink_externalLinkCSS__8noiqs0:focus-visible {
14
+ text-decoration: none;
15
+ }
16
+ .ExternalLink_externalLinkCSS__8noiqs0 > span {
17
+ white-space: nowrap;
18
+ display: inline-flex;
19
+ }
20
+ .ExternalLink_externalLinkCSS__8noiqs0 > span > svg {
21
+ margin-left: var(--dt-spacings-size-2, 2px);
22
+ align-self: center;
23
+ min-width: var(--dt-spacings-size-20, 20px);
24
+ width: calc(20em / 14);
25
+ height: calc(20em / 14);
26
+ max-width: var(--dt-spacings-size-24, 24px);
27
+ max-height: var(--dt-spacings-size-24, 24px);
28
+ }
@@ -0,0 +1,21 @@
1
+ import React, { MouseEventHandler } from 'react';
2
+ import { type DataTestId, type StylingProps, type WithChildren } from '../../core/index.js';
3
+ import type { MaskingProps } from '../../core/types/masking-props.js';
4
+ /**
5
+ * The props for the ExternalLink component.
6
+ * @public
7
+ */
8
+ export interface ExternalLinkProps extends WithChildren, StylingProps, DataTestId, MaskingProps {
9
+ /** The href used for the link. */
10
+ href: string;
11
+ /** Callback handler called on click. */
12
+ onClick?: MouseEventHandler;
13
+ }
14
+ /**
15
+ * @public
16
+ * Use the `ExternalLink` component to link outside of the
17
+ * Dynatrace platform. For resources within the Dynatrace platform, use the
18
+ * {@link https://developer.dynatrace.com/reference/design-system/preview/typography/Link/ | `Link`}
19
+ * component instead.
20
+ */
21
+ export declare const ExternalLink: (props: ExternalLinkProps & React.RefAttributes<HTMLAnchorElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
@@ -0,0 +1,82 @@
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 ExternalLink_exports = {};
29
+ __export(ExternalLink_exports, {
30
+ ExternalLink: () => ExternalLink
31
+ });
32
+ module.exports = __toCommonJS(ExternalLink_exports);
33
+ var import_clsx = __toESM(require("clsx"));
34
+ var import_react = __toESM(require("react"));
35
+ var import_react_intl = require("react-intl");
36
+ var import_strato_icons = require("@dynatrace/strato-icons");
37
+ var import_ExternalLink_css = require("./ExternalLink.sty.js");
38
+ var import_core = require("../../core/index.js");
39
+ var import_useFocusRing = require("../../core/styles/useFocusRing.js");
40
+ const ExternalLink = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
41
+ const {
42
+ children,
43
+ "data-testid": dataTestId,
44
+ "data-dtrum-mask": dataDtrumMask,
45
+ "data-dtrum-allow": dataDtrumAllow,
46
+ className: consumerClassName,
47
+ style: consumerStyle,
48
+ ...remainingProps
49
+ } = props;
50
+ const { focusProps, focusClassName } = (0, import_useFocusRing.useFocusRing)({
51
+ variant: "primary",
52
+ isMinimal: true
53
+ });
54
+ const intl = (0, import_react_intl.useIntl)();
55
+ return /* @__PURE__ */ import_react.default.createElement(
56
+ "a",
57
+ {
58
+ ref,
59
+ target: "_blank",
60
+ rel: "noopener noreferrer",
61
+ "data-testid": dataTestId,
62
+ "data-dtrum-mask": dataDtrumMask,
63
+ "data-dtrum-allow": dataDtrumAllow,
64
+ className: (0, import_clsx.default)(focusClassName, import_ExternalLink_css.externalLinkCSS, consumerClassName),
65
+ style: consumerStyle,
66
+ ...(0, import_core._mergeProps)(remainingProps, focusProps)
67
+ },
68
+ children,
69
+ /* @__PURE__ */ import_react.default.createElement("span", null, "\uFEFF", /* @__PURE__ */ import_react.default.createElement(
70
+ import_strato_icons.ExternalLinkIcon,
71
+ {
72
+ "aria-hidden": "false",
73
+ "aria-label": intl.formatMessage({
74
+ defaultMessage: "Opening the link in a new window",
75
+ id: "JzYy8MUVfPcyf4l5",
76
+ description: "External link icon that describes the external link icon"
77
+ })
78
+ }
79
+ ))
80
+ );
81
+ });
82
+ ExternalLink.displayName = "ExternalLink";
@@ -0,0 +1 @@
1
+ export declare const externalLinkCSS: string;
@@ -0,0 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var ExternalLink_css_exports = {};
19
+ __export(ExternalLink_css_exports, {
20
+ externalLinkCSS: () => externalLinkCSS
21
+ });
22
+ module.exports = __toCommonJS(ExternalLink_css_exports);
23
+ var import_ExternalLink_css_ts_vanilla = require("./ExternalLink.css");
24
+ var externalLinkCSS = "ExternalLink_externalLinkCSS__8noiqs0";
@@ -0,0 +1,54 @@
1
+ .Heading_headingCSS__u4t9450 {
2
+ margin: 0;
3
+ overflow-wrap: break-word;
4
+ font-style: normal;
5
+ color: var(--dt-colors-text-neutral-default, #2b2a58);
6
+ }
7
+ .Heading_headingCSS_visualLevel_1__u4t9451 {
8
+ font-family: var(--dt-typography-heading-level-1-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
9
+ font-size: var(--dt-typography-heading-level-1-size, 32px);
10
+ font-weight: var(--dt-typography-heading-level-1-weight, 600);
11
+ line-height: var(--dt-typography-heading-level-1-line-height, 1.25);
12
+ text-transform: var(--dt-typography-heading-level-1-text-transform, none);
13
+ text-decoration: var(--dt-typography-heading-level-1-text-decoration, none);
14
+ }
15
+ .Heading_headingCSS_visualLevel_2__u4t9452 {
16
+ font-family: var(--dt-typography-heading-level-2-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
17
+ font-size: var(--dt-typography-heading-level-2-size, 28px);
18
+ font-weight: var(--dt-typography-heading-level-2-weight, 600);
19
+ line-height: var(--dt-typography-heading-level-2-line-height, 1.2857142857);
20
+ text-transform: var(--dt-typography-heading-level-2-text-transform, none);
21
+ text-decoration: var(--dt-typography-heading-level-2-text-decoration, none);
22
+ }
23
+ .Heading_headingCSS_visualLevel_3__u4t9453 {
24
+ font-family: var(--dt-typography-heading-level-3-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
25
+ font-size: var(--dt-typography-heading-level-3-size, 24px);
26
+ font-weight: var(--dt-typography-heading-level-3-weight, 600);
27
+ line-height: var(--dt-typography-heading-level-3-line-height, 1.3333333333);
28
+ text-transform: var(--dt-typography-heading-level-3-text-transform, none);
29
+ text-decoration: var(--dt-typography-heading-level-3-text-decoration, none);
30
+ }
31
+ .Heading_headingCSS_visualLevel_4__u4t9454 {
32
+ font-family: var(--dt-typography-heading-level-4-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
33
+ font-size: var(--dt-typography-heading-level-4-size, 20px);
34
+ font-weight: var(--dt-typography-heading-level-4-weight, 600);
35
+ line-height: var(--dt-typography-heading-level-4-line-height, 1.4);
36
+ text-transform: var(--dt-typography-heading-level-4-text-transform, none);
37
+ text-decoration: var(--dt-typography-heading-level-4-text-decoration, none);
38
+ }
39
+ .Heading_headingCSS_visualLevel_5__u4t9455 {
40
+ font-family: var(--dt-typography-heading-level-5-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
41
+ font-size: var(--dt-typography-heading-level-5-size, 16px);
42
+ font-weight: var(--dt-typography-heading-level-5-weight, 600);
43
+ line-height: var(--dt-typography-heading-level-5-line-height, 1.5);
44
+ text-transform: var(--dt-typography-heading-level-5-text-transform, none);
45
+ text-decoration: var(--dt-typography-heading-level-5-text-decoration, none);
46
+ }
47
+ .Heading_headingCSS_visualLevel_6__u4t9456 {
48
+ font-family: var(--dt-typography-heading-level-6-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
49
+ font-size: var(--dt-typography-heading-level-6-size, 14px);
50
+ font-weight: var(--dt-typography-heading-level-6-weight, 600);
51
+ line-height: var(--dt-typography-heading-level-6-line-height, 1.4285714286);
52
+ text-transform: var(--dt-typography-heading-level-6-text-transform, none);
53
+ text-decoration: var(--dt-typography-heading-level-6-text-decoration, none);
54
+ }
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { type DataTestId, type StylingProps, type WithChildren, type MaskingProps } from '../../core/index.js';
3
+ import type { DOMProps } from '../../core/types/dom.js';
4
+ /**
5
+ * @public
6
+ * Props used for the Heading component */
7
+ export interface HeadingProps extends DOMProps, WithChildren, StylingProps, DataTestId, MaskingProps {
8
+ /**
9
+ * The visual level of the heading.
10
+ * @defaultValue 1
11
+ */
12
+ level?: 1 | 2 | 3 | 4 | 5 | 6;
13
+ /**
14
+ * The polymorphed HTML tag that determines the semantic level of the heading.
15
+ * @defaultValue 'h1'
16
+ */
17
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
18
+ }
19
+ /**
20
+ * @public
21
+ * Use the `Heading` to render semantic HTML heading elements (`h1`, `h2`, etc.).
22
+ * The component allows you to independently define both the visual and the semantic level of the heading.
23
+ */
24
+ export declare const Heading: (props: HeadingProps & React.RefAttributes<HTMLHeadingElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;