@dynatrace/strato-components 0.84.31 → 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.
- package/core/components/app-root/AppRoot.d.ts +2 -2
- package/core/hooks/useFontsUpdated.d.ts +9 -0
- package/core/hooks/useFontsUpdated.js +51 -0
- package/core/hooks/useMergeRefs.d.ts +7 -0
- package/core/hooks/useMergeRefs.js +34 -0
- package/core/index.d.ts +4 -0
- package/core/styles/focusRing.css +88 -0
- package/core/styles/focusRing.sty.d.ts +96 -0
- package/core/styles/focusRing.sty.js +27 -0
- package/core/styles/useFocusRing.d.ts +49 -0
- package/core/styles/useFocusRing.js +83 -0
- package/core/types/a11y-props.d.ts +19 -0
- package/core/types/a11y-props.js +15 -0
- package/core/types/dom.d.ts +19 -0
- package/core/types/dom.js +15 -0
- package/core/types/focusable-element.d.ts +5 -0
- package/core/types/focusable-element.js +15 -0
- package/core/types/heading.d.ts +9 -0
- package/core/types/heading.js +15 -0
- package/core/types/polymorph.d.ts +25 -0
- package/core/types/polymorph.js +15 -0
- package/core/utils/colorUtils.css +80 -0
- package/core/utils/colorUtils.sty.d.ts +48 -0
- package/core/utils/colorUtils.sty.js +27 -0
- package/esm/core/hooks/useFontsUpdated.js +33 -0
- package/esm/core/hooks/useFontsUpdated.js.map +7 -0
- package/esm/core/hooks/useMergeRefs.js +16 -0
- package/esm/core/hooks/useMergeRefs.js.map +7 -0
- package/esm/core/index.js.map +1 -1
- package/esm/core/styles/focusRing.css +88 -0
- package/esm/core/styles/focusRing.sty.js +9 -0
- package/esm/core/styles/focusRing.sty.js.map +7 -0
- package/esm/core/styles/useFocusRing.js +69 -0
- package/esm/core/styles/useFocusRing.js.map +7 -0
- package/esm/core/types/a11y-props.js +1 -0
- package/esm/core/types/a11y-props.js.map +7 -0
- package/esm/core/types/dom.js +1 -0
- package/esm/core/types/dom.js.map +7 -0
- package/esm/core/types/focusable-element.js +1 -0
- package/esm/core/types/focusable-element.js.map +7 -0
- package/esm/core/types/heading.js +1 -0
- package/esm/core/types/heading.js.map +7 -0
- package/esm/core/types/polymorph.js +1 -0
- package/esm/core/types/polymorph.js.map +7 -0
- package/esm/core/utils/colorUtils.css +80 -0
- package/esm/core/utils/colorUtils.sty.js +9 -0
- package/esm/core/utils/colorUtils.sty.js.map +7 -0
- package/esm/index.js +2 -0
- package/esm/index.js.map +2 -2
- package/esm/layouts/Divider/Divider.css +23 -0
- package/esm/layouts/Divider/Divider.js +39 -0
- package/esm/layouts/Divider/Divider.js.map +7 -0
- package/esm/layouts/Divider/Divider.sty.js +8 -0
- package/esm/layouts/Divider/Divider.sty.js.map +7 -0
- package/esm/layouts/index.js +5 -0
- package/esm/layouts/index.js.map +7 -0
- package/esm/styles/textStyle.css +64 -0
- package/esm/styles/textStyle.sty.js +7 -0
- package/esm/styles/textStyle.sty.js.map +7 -0
- package/esm/typography/BlockQuote/Blockquote.css +17 -0
- package/esm/typography/BlockQuote/Blockquote.js +34 -0
- package/esm/typography/BlockQuote/Blockquote.js.map +7 -0
- package/esm/typography/BlockQuote/Blockquote.sty.js +6 -0
- package/esm/typography/BlockQuote/Blockquote.sty.js.map +7 -0
- package/esm/typography/Code/Code.css +16 -0
- package/esm/typography/Code/Code.js +34 -0
- package/esm/typography/Code/Code.js.map +7 -0
- package/esm/typography/Code/Code.sty.js +6 -0
- package/esm/typography/Code/Code.sty.js.map +7 -0
- package/esm/typography/Emphasis/Emphasis.css +4 -0
- package/esm/typography/Emphasis/Emphasis.js +34 -0
- package/esm/typography/Emphasis/Emphasis.js.map +7 -0
- package/esm/typography/Emphasis/Emphasis.sty.js +6 -0
- package/esm/typography/Emphasis/Emphasis.sty.js.map +7 -0
- package/esm/typography/ExternalLink/ExternalLink.css +28 -0
- package/esm/typography/ExternalLink/ExternalLink.js +56 -0
- package/esm/typography/ExternalLink/ExternalLink.js.map +7 -0
- package/esm/typography/ExternalLink/ExternalLink.sty.js +6 -0
- package/esm/typography/ExternalLink/ExternalLink.sty.js.map +7 -0
- package/esm/typography/Heading/Heading.css +54 -0
- package/esm/typography/Heading/Heading.js +36 -0
- package/esm/typography/Heading/Heading.js.map +7 -0
- package/esm/typography/Heading/Heading.sty.js +7 -0
- package/esm/typography/Heading/Heading.sty.js.map +7 -0
- package/esm/typography/Highlight/Highlight.css +4 -0
- package/esm/typography/Highlight/Highlight.js +111 -0
- package/esm/typography/Highlight/Highlight.js.map +7 -0
- package/esm/typography/Highlight/Highlight.sty.js +6 -0
- package/esm/typography/Highlight/Highlight.sty.js.map +7 -0
- package/esm/typography/Link/Link.css +15 -0
- package/esm/typography/Link/Link.js +49 -0
- package/esm/typography/Link/Link.js.map +7 -0
- package/esm/typography/Link/Link.sty.js +6 -0
- package/esm/typography/Link/Link.sty.js.map +7 -0
- package/esm/typography/List/List.css +16 -0
- package/esm/typography/List/List.js +81 -0
- package/esm/typography/List/List.js.map +7 -0
- package/esm/typography/List/List.sty.js +8 -0
- package/esm/typography/List/List.sty.js.map +7 -0
- package/esm/typography/Paragraph/Paragraph.css +19 -0
- package/esm/typography/Paragraph/Paragraph.js +49 -0
- package/esm/typography/Paragraph/Paragraph.js.map +7 -0
- package/esm/typography/Paragraph/Paragraph.sty.js +7 -0
- package/esm/typography/Paragraph/Paragraph.sty.js.map +7 -0
- package/esm/typography/Strikethrough/Strikethrough.css +5 -0
- package/esm/typography/Strikethrough/Strikethrough.js +32 -0
- package/esm/typography/Strikethrough/Strikethrough.js.map +7 -0
- package/esm/typography/Strikethrough/Strikethrough.sty.js +6 -0
- package/esm/typography/Strikethrough/Strikethrough.sty.js.map +7 -0
- package/esm/typography/Strong/Strong.css +4 -0
- package/esm/typography/Strong/Strong.js +34 -0
- package/esm/typography/Strong/Strong.js.map +7 -0
- package/esm/typography/Strong/Strong.sty.js +6 -0
- package/esm/typography/Strong/Strong.sty.js.map +7 -0
- package/esm/typography/Text/Text.css +18 -0
- package/esm/typography/Text/Text.js +43 -0
- package/esm/typography/Text/Text.js.map +7 -0
- package/esm/typography/Text/Text.sty.js +7 -0
- package/esm/typography/Text/Text.sty.js.map +7 -0
- package/esm/typography/TextEllipsis/TextEllipsis.css +22 -0
- package/esm/typography/TextEllipsis/TextEllipsis.js +143 -0
- package/esm/typography/TextEllipsis/TextEllipsis.js.map +7 -0
- package/esm/typography/TextEllipsis/TextEllipsis.sty.js +7 -0
- package/esm/typography/TextEllipsis/TextEllipsis.sty.js.map +7 -0
- package/esm/typography/index.js +43 -0
- package/esm/typography/index.js.map +7 -0
- package/esm/typography/utils.js +101 -0
- package/esm/typography/utils.js.map +7 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/lang/en.json +6 -0
- package/lang/uncompiled/en.json +6 -1
- package/layouts/Divider/Divider.css +23 -0
- package/layouts/Divider/Divider.d.ts +39 -0
- package/layouts/Divider/Divider.js +67 -0
- package/layouts/Divider/Divider.sty.d.ts +16 -0
- package/layouts/Divider/Divider.sty.js +26 -0
- package/layouts/index.d.ts +2 -0
- package/layouts/index.js +23 -0
- package/package.json +17 -2
- package/styles/textStyle.css +64 -0
- package/styles/textStyle.sty.d.ts +12 -0
- package/styles/textStyle.sty.js +25 -0
- package/testing/mocks/text-ellipsis-mock.d.ts +1 -1
- package/testing/mocks/text-ellipsis-mock.js +8 -3
- package/typography/BlockQuote/Blockquote.css +17 -0
- package/typography/BlockQuote/Blockquote.d.ts +19 -0
- package/typography/BlockQuote/Blockquote.js +62 -0
- package/typography/BlockQuote/Blockquote.sty.d.ts +1 -0
- package/typography/BlockQuote/Blockquote.sty.js +24 -0
- package/typography/Code/Code.css +16 -0
- package/typography/Code/Code.d.ts +17 -0
- package/typography/Code/Code.js +62 -0
- package/typography/Code/Code.sty.d.ts +1 -0
- package/typography/Code/Code.sty.js +24 -0
- package/typography/Emphasis/Emphasis.css +4 -0
- package/typography/Emphasis/Emphasis.d.ts +14 -0
- package/typography/Emphasis/Emphasis.js +62 -0
- package/typography/Emphasis/Emphasis.sty.d.ts +1 -0
- package/typography/Emphasis/Emphasis.sty.js +24 -0
- package/typography/ExternalLink/ExternalLink.css +28 -0
- package/typography/ExternalLink/ExternalLink.d.ts +21 -0
- package/typography/ExternalLink/ExternalLink.js +82 -0
- package/typography/ExternalLink/ExternalLink.sty.d.ts +1 -0
- package/typography/ExternalLink/ExternalLink.sty.js +24 -0
- package/typography/Heading/Heading.css +54 -0
- package/typography/Heading/Heading.d.ts +24 -0
- package/typography/Heading/Heading.js +64 -0
- package/typography/Heading/Heading.sty.d.ts +52 -0
- package/typography/Heading/Heading.sty.js +25 -0
- package/typography/Highlight/Highlight.css +4 -0
- package/typography/Highlight/Highlight.d.ts +27 -0
- package/typography/Highlight/Highlight.js +139 -0
- package/typography/Highlight/Highlight.sty.d.ts +1 -0
- package/typography/Highlight/Highlight.sty.js +24 -0
- package/typography/Link/Link.css +15 -0
- package/typography/Link/Link.d.ts +17 -0
- package/typography/Link/Link.js +75 -0
- package/typography/Link/Link.sty.d.ts +1 -0
- package/typography/Link/Link.sty.js +24 -0
- package/typography/List/List.css +16 -0
- package/typography/List/List.d.ts +39 -0
- package/typography/List/List.js +109 -0
- package/typography/List/List.sty.d.ts +2 -0
- package/typography/List/List.sty.js +26 -0
- package/typography/Paragraph/Paragraph.css +19 -0
- package/typography/Paragraph/Paragraph.d.ts +19 -0
- package/typography/Paragraph/Paragraph.js +77 -0
- package/typography/Paragraph/Paragraph.sty.d.ts +16 -0
- package/typography/Paragraph/Paragraph.sty.js +25 -0
- package/typography/Strikethrough/Strikethrough.css +5 -0
- package/typography/Strikethrough/Strikethrough.d.ts +15 -0
- package/typography/Strikethrough/Strikethrough.js +60 -0
- package/typography/Strikethrough/Strikethrough.sty.d.ts +1 -0
- package/typography/Strikethrough/Strikethrough.sty.js +24 -0
- package/typography/Strong/Strong.css +4 -0
- package/typography/Strong/Strong.d.ts +14 -0
- package/typography/Strong/Strong.js +62 -0
- package/typography/Strong/Strong.sty.d.ts +1 -0
- package/typography/Strong/Strong.sty.js +24 -0
- package/typography/Text/Text.css +18 -0
- package/typography/Text/Text.d.ts +26 -0
- package/typography/Text/Text.js +71 -0
- package/typography/Text/Text.sty.d.ts +16 -0
- package/typography/Text/Text.sty.js +25 -0
- package/typography/TextEllipsis/TextEllipsis.css +22 -0
- package/typography/TextEllipsis/TextEllipsis.d.ts +32 -0
- package/typography/TextEllipsis/TextEllipsis.js +167 -0
- package/typography/TextEllipsis/TextEllipsis.sty.d.ts +15 -0
- package/typography/TextEllipsis/TextEllipsis.sty.js +25 -0
- package/typography/index.d.ts +28 -0
- package/typography/index.js +54 -0
- package/typography/utils.d.ts +52 -0
- package/typography/utils.js +119 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DataTestId } from '../../core/types/data-props.js';
|
|
3
|
+
import { type StylingProps } from '../../core/types/styling-props.js';
|
|
4
|
+
/** @public
|
|
5
|
+
* Divider component props.
|
|
6
|
+
*/
|
|
7
|
+
export interface DividerProps extends StylingProps, DataTestId {
|
|
8
|
+
/**
|
|
9
|
+
* Orientation of the Divider component.
|
|
10
|
+
* @defaultValue 'horizontal'
|
|
11
|
+
*/
|
|
12
|
+
orientation?: 'horizontal' | 'vertical';
|
|
13
|
+
/**
|
|
14
|
+
* Control the HTML tag used for rendering the Divider.
|
|
15
|
+
* @defaultValue 'div'
|
|
16
|
+
*/
|
|
17
|
+
as?: 'hr' | 'div';
|
|
18
|
+
/**
|
|
19
|
+
* Indicate whether the Divider is used inside a Flex component to apply the right styling.
|
|
20
|
+
* If set to false, make sure to have an explicit width/height style set on a parent HTML tag.
|
|
21
|
+
* @defaultValue true
|
|
22
|
+
*/
|
|
23
|
+
flexItem?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The color of the Divider.
|
|
26
|
+
* @defaultValue 'neutral'
|
|
27
|
+
*/
|
|
28
|
+
color?: 'primary' | 'neutral' | 'success' | 'warning' | 'critical';
|
|
29
|
+
/**
|
|
30
|
+
* The visual style of the Divider.
|
|
31
|
+
* @defaultValue 'default'
|
|
32
|
+
*/
|
|
33
|
+
variant?: 'default' | 'accent';
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The `Divider` component visually separates groups of content.
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
39
|
+
export declare const Divider: (props: DividerProps & React.RefAttributes<HTMLDivElement | HTMLHRElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 Divider_exports = {};
|
|
29
|
+
__export(Divider_exports, {
|
|
30
|
+
Divider: () => Divider
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(Divider_exports);
|
|
33
|
+
var import_clsx = __toESM(require("clsx"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_Divider_css = require("./Divider.sty.js");
|
|
36
|
+
var import_colorUtils_css = require("../../core/utils/colorUtils.sty.js");
|
|
37
|
+
const Divider = /* @__PURE__ */ (0, import_react.forwardRef)((props, ref) => {
|
|
38
|
+
const {
|
|
39
|
+
orientation = "horizontal",
|
|
40
|
+
flexItem = true,
|
|
41
|
+
as = "div",
|
|
42
|
+
color = "neutral",
|
|
43
|
+
variant = "default",
|
|
44
|
+
"data-testid": dataTestId,
|
|
45
|
+
className: consumerClassName,
|
|
46
|
+
style: consumerStyle,
|
|
47
|
+
...remainingProps
|
|
48
|
+
} = props;
|
|
49
|
+
const DividerTag = as;
|
|
50
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
51
|
+
DividerTag,
|
|
52
|
+
{
|
|
53
|
+
role: "separator",
|
|
54
|
+
"aria-orientation": orientation === "vertical" ? orientation : void 0,
|
|
55
|
+
ref,
|
|
56
|
+
"data-testid": dataTestId,
|
|
57
|
+
className: (0, import_clsx.default)(
|
|
58
|
+
(0, import_colorUtils_css.colorUtilsCSS)({ color, variant }),
|
|
59
|
+
(0, import_Divider_css.dividerCSS)({ orientation, flexItem }),
|
|
60
|
+
consumerClassName
|
|
61
|
+
),
|
|
62
|
+
style: consumerStyle,
|
|
63
|
+
...remainingProps
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
});
|
|
67
|
+
Divider.displayName = "Divider";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const dividerCSS: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
orientation: {
|
|
3
|
+
horizontal: {
|
|
4
|
+
width: "100%";
|
|
5
|
+
height: string;
|
|
6
|
+
};
|
|
7
|
+
vertical: {
|
|
8
|
+
width: string;
|
|
9
|
+
height: "100%";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
flexItem: {
|
|
13
|
+
true: {};
|
|
14
|
+
false: {};
|
|
15
|
+
};
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 Divider_css_exports = {};
|
|
19
|
+
__export(Divider_css_exports, {
|
|
20
|
+
dividerCSS: () => dividerCSS
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(Divider_css_exports);
|
|
23
|
+
var import_colorUtils_css_ts_vanilla = require("../../core/utils/colorUtils.css");
|
|
24
|
+
var import_Divider_css_ts_vanilla = require("./Divider.css");
|
|
25
|
+
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
26
|
+
var dividerCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "Divider_dividerCSS__1ljcfp90", variantClassNames: { orientation: { horizontal: "Divider_dividerCSS_orientation_horizontal__1ljcfp91", vertical: "Divider_dividerCSS_orientation_vertical__1ljcfp92" }, flexItem: { true: "Divider_dividerCSS_flexItem_true__1ljcfp93", false: "Divider_dividerCSS_flexItem_false__1ljcfp94" } }, defaultVariants: {}, compoundVariants: [[{ orientation: "horizontal", flexItem: false }, "Divider_dividerCSS_compound_0__1ljcfp95"], [{ orientation: "vertical", flexItem: true }, "Divider_dividerCSS_compound_1__1ljcfp96"]] });
|
package/layouts/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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 layouts_exports = {};
|
|
19
|
+
__export(layouts_exports, {
|
|
20
|
+
Divider: () => import_Divider.Divider
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(layouts_exports);
|
|
23
|
+
var import_Divider = require("./Divider/Divider.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/strato-components",
|
|
3
|
-
"version": "0.84.
|
|
3
|
+
"version": "0.84.42",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"lang": "lang/uncompiled",
|
|
@@ -26,6 +26,13 @@
|
|
|
26
26
|
"module": "./esm/core/index.js",
|
|
27
27
|
"import": "./esm/core/index.js"
|
|
28
28
|
},
|
|
29
|
+
"./typography": {
|
|
30
|
+
"types": "./typography/index.d.ts",
|
|
31
|
+
"require": "./typography/index.js",
|
|
32
|
+
"browser": "./esm/typography/index.js",
|
|
33
|
+
"module": "./esm/typography/index.js",
|
|
34
|
+
"import": "./esm/typography/index.js"
|
|
35
|
+
},
|
|
29
36
|
"./testing": {
|
|
30
37
|
"types": "./testing/index.d.ts",
|
|
31
38
|
"require": "./testing/index.js"
|
|
@@ -33,6 +40,13 @@
|
|
|
33
40
|
"./testing/jest": {
|
|
34
41
|
"types": "./testing/jest/index.d.ts",
|
|
35
42
|
"require": "./testing/jest/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./layouts": {
|
|
45
|
+
"types": "./layouts/index.d.ts",
|
|
46
|
+
"require": "./layouts/index.js",
|
|
47
|
+
"browser": "./esm/layouts/index.js",
|
|
48
|
+
"module": "./esm/layouts/index.js",
|
|
49
|
+
"import": "./esm/layouts/index.js"
|
|
36
50
|
}
|
|
37
51
|
},
|
|
38
52
|
"dependencies": {
|
|
@@ -42,7 +56,8 @@
|
|
|
42
56
|
"clsx": "^2.1.0",
|
|
43
57
|
"lodash-es": "^4.17.21",
|
|
44
58
|
"wicg-inert": "^3.1.2",
|
|
45
|
-
"
|
|
59
|
+
"use-resize-observer": "^9.1.0",
|
|
60
|
+
"@dynatrace/strato-design-tokens": "0.20.30",
|
|
46
61
|
"@dynatrace/strato-icons": "0.37.0"
|
|
47
62
|
},
|
|
48
63
|
"peerDependencies": {
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
.textStyle_textStyleCSS_compound_0__da9a8v7 {
|
|
2
|
+
font-family: var(--dt-typography-code-base-default-family, Roboto Mono,monospace);
|
|
3
|
+
font-weight: var(--dt-typography-code-base-default-weight, 400);
|
|
4
|
+
font-size: var(--dt-typography-code-base-default-size, 14px);
|
|
5
|
+
line-height: var(--dt-typography-code-base-default-line-height, 1.4285714286);
|
|
6
|
+
text-decoration: var(--dt-typography-code-base-default-text-decoration, none);
|
|
7
|
+
text-transform: var(--dt-typography-code-base-default-text-transform, none);
|
|
8
|
+
}
|
|
9
|
+
.textStyle_textStyleCSS_compound_1__da9a8v8 {
|
|
10
|
+
font-family: var(--dt-typography-code-base-emphasized-family, Roboto Mono,monospace);
|
|
11
|
+
font-weight: var(--dt-typography-code-base-emphasized-weight, 500);
|
|
12
|
+
font-size: var(--dt-typography-code-base-emphasized-size, 14px);
|
|
13
|
+
line-height: var(--dt-typography-code-base-emphasized-line-height, 1.4285714286);
|
|
14
|
+
text-decoration: var(--dt-typography-code-base-emphasized-text-decoration, none);
|
|
15
|
+
text-transform: var(--dt-typography-code-base-emphasized-text-transform, none);
|
|
16
|
+
}
|
|
17
|
+
.textStyle_textStyleCSS_compound_2__da9a8v9 {
|
|
18
|
+
font-family: var(--dt-typography-code-small-default-family, Roboto Mono,monospace);
|
|
19
|
+
font-weight: var(--dt-typography-code-small-default-weight, 400);
|
|
20
|
+
font-size: var(--dt-typography-code-small-default-size, 12px);
|
|
21
|
+
line-height: var(--dt-typography-code-small-default-line-height, 1.333333333);
|
|
22
|
+
text-decoration: var(--dt-typography-code-small-default-text-decoration, none);
|
|
23
|
+
text-transform: var(--dt-typography-code-small-default-text-transform, none);
|
|
24
|
+
}
|
|
25
|
+
.textStyle_textStyleCSS_compound_3__da9a8va {
|
|
26
|
+
font-family: var(--dt-typography-code-small-emphasized-family, Roboto Mono,monospace);
|
|
27
|
+
font-weight: var(--dt-typography-code-small-emphasized-weight, 500);
|
|
28
|
+
font-size: var(--dt-typography-code-small-emphasized-size, 12px);
|
|
29
|
+
line-height: var(--dt-typography-code-small-emphasized-line-height, 1.333333333);
|
|
30
|
+
text-decoration: var(--dt-typography-code-small-emphasized-text-decoration, none);
|
|
31
|
+
text-transform: var(--dt-typography-code-small-emphasized-text-transform, none);
|
|
32
|
+
}
|
|
33
|
+
.textStyle_textStyleCSS_compound_4__da9a8vb {
|
|
34
|
+
font-family: var(--dt-typography-text-base-default-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
35
|
+
font-weight: var(--dt-typography-text-base-default-weight, 400);
|
|
36
|
+
font-size: var(--dt-typography-text-base-default-size, 14px);
|
|
37
|
+
line-height: var(--dt-typography-text-base-default-line-height, 1.4285714286);
|
|
38
|
+
text-decoration: var(--dt-typography-text-base-default-text-decoration, none);
|
|
39
|
+
text-transform: var(--dt-typography-text-base-default-text-transform, none);
|
|
40
|
+
}
|
|
41
|
+
.textStyle_textStyleCSS_compound_5__da9a8vc {
|
|
42
|
+
font-family: var(--dt-typography-text-base-emphasized-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
43
|
+
font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
|
|
44
|
+
font-size: var(--dt-typography-text-base-emphasized-size, 14px);
|
|
45
|
+
line-height: var(--dt-typography-text-base-emphasized-line-height, 1.4285714286);
|
|
46
|
+
text-decoration: var(--dt-typography-text-base-emphasized-text-decoration, none);
|
|
47
|
+
text-transform: var(--dt-typography-text-base-emphasized-text-transform, none);
|
|
48
|
+
}
|
|
49
|
+
.textStyle_textStyleCSS_compound_6__da9a8vd {
|
|
50
|
+
font-family: var(--dt-typography-text-small-default-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
51
|
+
font-weight: var(--dt-typography-text-small-default-weight, 400);
|
|
52
|
+
font-size: var(--dt-typography-text-small-default-size, 12px);
|
|
53
|
+
line-height: var(--dt-typography-text-small-default-line-height, 1.333333333);
|
|
54
|
+
text-decoration: var(--dt-typography-text-small-default-text-decoration, none);
|
|
55
|
+
text-transform: var(--dt-typography-text-small-default-text-transform, none);
|
|
56
|
+
}
|
|
57
|
+
.textStyle_textStyleCSS_compound_7__da9a8ve {
|
|
58
|
+
font-family: var(--dt-typography-text-small-emphasized-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
59
|
+
font-weight: var(--dt-typography-text-small-emphasized-weight, 500);
|
|
60
|
+
font-size: var(--dt-typography-text-small-emphasized-size, 12px);
|
|
61
|
+
line-height: var(--dt-typography-text-small-emphasized-line-height, 1.333333333);
|
|
62
|
+
text-decoration: var(--dt-typography-text-small-emphasized-text-decoration, none);
|
|
63
|
+
text-transform: var(--dt-typography-text-small-emphasized-text-transform, none);
|
|
64
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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 textStyle_css_exports = {};
|
|
19
|
+
__export(textStyle_css_exports, {
|
|
20
|
+
textStyleCSS: () => textStyleCSS
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(textStyle_css_exports);
|
|
23
|
+
var import_textStyle_css_ts_vanilla = require("./textStyle.css");
|
|
24
|
+
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
25
|
+
var textStyleCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "textStyle__da9a8v0", variantClassNames: { fontStyle: { code: "textStyle_textStyleCSS_fontStyle_code__da9a8v1", text: "textStyle_textStyleCSS_fontStyle_text__da9a8v2" }, textStyle: { base: "textStyle_textStyleCSS_textStyle_base__da9a8v3", "base-emphasized": "textStyle_textStyleCSS_textStyle_base-emphasized__da9a8v4", small: "textStyle_textStyleCSS_textStyle_small__da9a8v5", "small-emphasized": "textStyle_textStyleCSS_textStyle_small-emphasized__da9a8v6" } }, defaultVariants: { fontStyle: "text", textStyle: "base" }, compoundVariants: [[{ fontStyle: "code", textStyle: "base" }, "textStyle_textStyleCSS_compound_0__da9a8v7"], [{ fontStyle: "code", textStyle: "base-emphasized" }, "textStyle_textStyleCSS_compound_1__da9a8v8"], [{ fontStyle: "code", textStyle: "small" }, "textStyle_textStyleCSS_compound_2__da9a8v9"], [{ fontStyle: "code", textStyle: "small-emphasized" }, "textStyle_textStyleCSS_compound_3__da9a8va"], [{ fontStyle: "text", textStyle: "base" }, "textStyle_textStyleCSS_compound_4__da9a8vb"], [{ fontStyle: "text", textStyle: "base-emphasized" }, "textStyle_textStyleCSS_compound_5__da9a8vc"], [{ fontStyle: "text", textStyle: "small" }, "textStyle_textStyleCSS_compound_6__da9a8vd"], [{ fontStyle: "text", textStyle: "small-emphasized" }, "textStyle_textStyleCSS_compound_7__da9a8ve"]] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Mocks DOM properties and functions required for the TextEllipsis component to work. */
|
|
2
|
-
export declare function setupTextEllipsisMock(
|
|
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(
|
|
28
|
-
(0, import_bounding_client_rect_mock.setupGetBoundingClientRectMock)(
|
|
29
|
-
|
|
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,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;
|