@dynatrace/strato-components 0.85.10 → 0.85.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/buttons/button/Button.css +1 -0
- package/buttons/button/Button.d.ts +4 -4
- package/buttons/button/Label.d.ts +1 -1
- package/buttons/button/Prefix.d.ts +1 -1
- package/buttons/button/Suffix.d.ts +1 -1
- package/buttons/index.d.ts +2 -0
- package/buttons/index.js +2 -0
- package/buttons/intent-button/IntentButton.d.ts +44 -0
- package/buttons/intent-button/IntentButton.js +102 -0
- package/buttons/intent-button/useIntentButton.d.ts +12 -0
- package/buttons/intent-button/useIntentButton.js +72 -0
- package/content/index.d.ts +4 -0
- package/content/index.js +5 -1
- package/content/progress/ProgressBar.d.ts +4 -4
- package/content/progress/ProgressBarIcon.d.ts +1 -1
- package/content/progress/ProgressBarLabel.d.ts +1 -1
- package/content/progress/ProgressBarValue.d.ts +1 -1
- package/content/progress/ProgressCircle.d.ts +1 -1
- package/content/skeleton/Skeleton.css +33 -0
- package/content/skeleton/Skeleton.d.ts +30 -0
- package/content/skeleton/Skeleton.js +60 -0
- package/content/skeleton/Skeleton.sty.d.ts +10 -0
- package/content/skeleton/Skeleton.sty.js +25 -0
- package/content/skeleton/SkeletonText.d.ts +24 -0
- package/content/skeleton/SkeletonText.js +84 -0
- package/core/components/app-root/AppRoot.d.ts +2 -2
- package/core/components/focus-scope/FocusScope.d.ts +1 -1
- package/core/contexts/FocusContext.d.ts +1 -2
- package/core/providers/FocusProvider.d.ts +2 -3
- package/esm/buttons/button/Button.css +1 -0
- package/esm/buttons/index.js +2 -0
- package/esm/buttons/index.js.map +2 -2
- package/esm/buttons/intent-button/IntentButton.js +74 -0
- package/esm/buttons/intent-button/IntentButton.js.map +7 -0
- package/esm/buttons/intent-button/useIntentButton.js +57 -0
- package/esm/buttons/intent-button/useIntentButton.js.map +7 -0
- package/esm/content/index.js +5 -1
- package/esm/content/index.js.map +2 -2
- package/esm/content/skeleton/Skeleton.css +33 -0
- package/esm/content/skeleton/Skeleton.js +32 -0
- package/esm/content/skeleton/Skeleton.js.map +7 -0
- package/esm/content/skeleton/Skeleton.sty.js +7 -0
- package/esm/content/skeleton/Skeleton.sty.js.map +7 -0
- package/esm/content/skeleton/SkeletonText.js +56 -0
- package/esm/content/skeleton/SkeletonText.js.map +7 -0
- package/esm/core/components/focus-scope/FocusScope.js.map +1 -1
- package/esm/core/contexts/FocusContext.js.map +2 -2
- package/esm/core/providers/FocusProvider.js.map +2 -2
- package/esm/layouts/{Divider → divider}/Divider.css +5 -5
- package/esm/layouts/{Divider → divider}/Divider.js.map +1 -1
- package/esm/layouts/{Divider → divider}/Divider.sty.js +1 -1
- package/esm/layouts/{Divider → divider}/Divider.sty.js.map +2 -2
- package/esm/layouts/helpers/spacingToCss.js +13 -0
- package/esm/layouts/helpers/spacingToCss.js.map +7 -0
- package/esm/layouts/hooks/useBreakpoint.js +44 -0
- package/esm/layouts/hooks/useBreakpoint.js.map +7 -0
- package/esm/layouts/hooks/useLayoutSizeProps.js +15 -0
- package/esm/layouts/hooks/useLayoutSizeProps.js.map +7 -0
- package/esm/layouts/hooks/useLayoutStyles.js +105 -0
- package/esm/layouts/hooks/useLayoutStyles.js.map +7 -0
- package/esm/layouts/hooks/useMarginProps.js +55 -0
- package/esm/layouts/hooks/useMarginProps.js.map +7 -0
- package/esm/layouts/hooks/usePaddingProps.js +59 -0
- package/esm/layouts/hooks/usePaddingProps.js.map +7 -0
- package/esm/layouts/index.js +8 -2
- package/esm/layouts/index.js.map +2 -2
- package/esm/layouts/surface/Surface.css +95 -0
- package/esm/layouts/surface/Surface.js +84 -0
- package/esm/layouts/surface/Surface.js.map +7 -0
- package/esm/layouts/surface/Surface.sty.js +10 -0
- package/esm/layouts/surface/Surface.sty.js.map +7 -0
- package/esm/layouts/surface/variables.sty.js +5 -0
- package/esm/layouts/surface/variables.sty.js.map +7 -0
- package/esm/layouts/types/layout.types.js +1 -0
- package/esm/layouts/types/layout.types.js.map +7 -0
- package/esm/typography/{BlockQuote → block-quote}/Blockquote.css +2 -2
- package/esm/typography/{BlockQuote → block-quote}/Blockquote.js.map +2 -2
- package/esm/typography/{BlockQuote → block-quote}/Blockquote.sty.js +1 -1
- package/esm/typography/{BlockQuote → block-quote}/Blockquote.sty.js.map +2 -2
- package/{typography/Code → esm/typography/code}/Code.css +1 -1
- package/esm/typography/{Code → code}/Code.js.map +2 -2
- package/esm/typography/{Code → code}/Code.sty.js +1 -1
- package/esm/typography/{Code → code}/Code.sty.js.map +2 -2
- package/esm/typography/{Emphasis → emphasis}/Emphasis.css +1 -1
- package/esm/typography/{Emphasis → emphasis}/Emphasis.js.map +2 -2
- package/esm/typography/{Emphasis → emphasis}/Emphasis.sty.js +1 -1
- package/esm/typography/{Emphasis → emphasis}/Emphasis.sty.js.map +2 -2
- package/{typography/ExternalLink → esm/typography/external-link}/ExternalLink.css +6 -6
- package/esm/typography/{ExternalLink → external-link}/ExternalLink.js.map +2 -2
- package/esm/typography/{ExternalLink → external-link}/ExternalLink.sty.js +1 -1
- package/esm/typography/{ExternalLink → external-link}/ExternalLink.sty.js.map +2 -2
- package/esm/typography/{Heading → heading}/Heading.css +7 -7
- package/esm/typography/heading/Heading.js.map +7 -0
- package/esm/typography/heading/Heading.sty.js +7 -0
- package/esm/typography/{Heading → heading}/Heading.sty.js.map +2 -2
- package/esm/typography/{Highlight → highlight}/Highlight.css +1 -1
- package/esm/typography/{Highlight → highlight}/Highlight.js.map +2 -2
- package/esm/typography/{Highlight → highlight}/Highlight.sty.js +1 -1
- package/esm/typography/{Highlight → highlight}/Highlight.sty.js.map +2 -2
- package/esm/typography/index.js +13 -13
- package/esm/typography/index.js.map +1 -1
- package/{typography/Link → esm/typography/link}/Link.css +4 -4
- package/esm/typography/{Link → link}/Link.js +1 -1
- package/esm/typography/link/Link.js.map +7 -0
- package/esm/typography/{Link → link}/Link.sty.js +1 -1
- package/esm/typography/{Link → link}/Link.sty.js.map +2 -2
- package/esm/typography/{List → list}/List.css +4 -4
- package/esm/typography/{List → list}/List.js +1 -1
- package/esm/typography/{List → list}/List.js.map +2 -2
- package/esm/typography/{List → list}/List.sty.js +2 -2
- package/esm/typography/{List → list}/List.sty.js.map +2 -2
- package/esm/typography/{Paragraph → paragraph}/Paragraph.css +3 -3
- package/esm/typography/{Paragraph → paragraph}/Paragraph.js.map +2 -2
- package/esm/typography/{Paragraph → paragraph}/Paragraph.sty.js +1 -1
- package/esm/typography/{Paragraph → paragraph}/Paragraph.sty.js.map +2 -2
- package/{typography/Strikethrough → esm/typography/strikethrough}/Strikethrough.css +1 -1
- package/esm/typography/strikethrough/Strikethrough.js.map +7 -0
- package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js +1 -1
- package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js.map +2 -2
- package/{typography/Strong → esm/typography/strong}/Strong.css +1 -1
- package/esm/typography/{Strong → strong}/Strong.js.map +2 -2
- package/esm/typography/{Strong → strong}/Strong.sty.js +1 -1
- package/esm/typography/{Strong → strong}/Strong.sty.js.map +2 -2
- package/{typography/Text → esm/typography/text}/Text.css +3 -3
- package/esm/typography/text/Text.js.map +7 -0
- package/esm/typography/{Text → text}/Text.sty.js +1 -1
- package/esm/typography/{Text → text}/Text.sty.js.map +2 -2
- package/{typography/TextEllipsis → esm/typography/text-ellipsis}/TextEllipsis.css +4 -4
- package/esm/typography/text-ellipsis/TextEllipsis.js.map +7 -0
- package/esm/typography/text-ellipsis/TextEllipsis.sty.js +7 -0
- package/esm/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.js.map +2 -2
- package/lang/en.json +6 -0
- package/lang/ja.json +24 -0
- package/lang/uncompiled/en.json +4 -0
- package/lang/uncompiled/ja.json +14 -1
- package/layouts/{Divider → divider}/Divider.css +5 -5
- package/layouts/{Divider → divider}/Divider.d.ts +1 -1
- package/layouts/{Divider → divider}/Divider.sty.js +1 -1
- package/layouts/helpers/spacingToCss.d.ts +6 -0
- package/layouts/helpers/spacingToCss.js +29 -0
- package/layouts/hooks/useBreakpoint.d.ts +27 -0
- package/layouts/hooks/useBreakpoint.js +62 -0
- package/layouts/hooks/useLayoutSizeProps.d.ts +6 -0
- package/layouts/hooks/useLayoutSizeProps.js +33 -0
- package/layouts/hooks/useLayoutStyles.d.ts +7 -0
- package/layouts/hooks/useLayoutStyles.js +123 -0
- package/layouts/hooks/useMarginProps.d.ts +7 -0
- package/layouts/hooks/useMarginProps.js +73 -0
- package/layouts/hooks/usePaddingProps.d.ts +7 -0
- package/layouts/hooks/usePaddingProps.js +77 -0
- package/layouts/index.d.ts +7 -2
- package/layouts/index.js +8 -2
- package/layouts/surface/Surface.css +95 -0
- package/layouts/surface/Surface.d.ts +46 -0
- package/layouts/surface/Surface.js +110 -0
- package/layouts/surface/Surface.sty.d.ts +43 -0
- package/layouts/surface/Surface.sty.js +28 -0
- package/layouts/surface/variables.sty.d.ts +1 -0
- package/layouts/surface/variables.sty.js +23 -0
- package/layouts/types/layout.types.d.ts +64 -0
- package/layouts/types/layout.types.js +15 -0
- package/package.json +11 -4
- package/typography/{BlockQuote → block-quote}/Blockquote.css +2 -2
- package/typography/{BlockQuote → block-quote}/Blockquote.d.ts +2 -2
- package/typography/{BlockQuote → block-quote}/Blockquote.sty.js +1 -1
- package/{esm/typography/Code → typography/code}/Code.css +1 -1
- package/typography/{Code → code}/Code.d.ts +2 -2
- package/typography/{Code → code}/Code.sty.js +1 -1
- package/typography/{Emphasis → emphasis}/Emphasis.css +1 -1
- package/typography/{Emphasis → emphasis}/Emphasis.d.ts +2 -2
- package/typography/{Emphasis → emphasis}/Emphasis.sty.js +1 -1
- package/{esm/typography/ExternalLink → typography/external-link}/ExternalLink.css +6 -6
- package/typography/{ExternalLink → external-link}/ExternalLink.d.ts +2 -2
- package/typography/{ExternalLink → external-link}/ExternalLink.sty.js +1 -1
- package/typography/{Heading → heading}/Heading.css +7 -7
- package/typography/{Heading → heading}/Heading.d.ts +4 -3
- package/typography/{Heading → heading}/Heading.sty.js +1 -1
- package/typography/{Highlight → highlight}/Highlight.css +1 -1
- package/typography/{Highlight → highlight}/Highlight.sty.js +1 -1
- package/typography/index.d.ts +26 -26
- package/typography/index.js +13 -13
- package/{esm/typography/Link → typography/link}/Link.css +4 -4
- package/typography/{Link → link}/Link.js +1 -1
- package/typography/{Link → link}/Link.sty.js +1 -1
- package/typography/{List → list}/List.css +4 -4
- package/typography/{List → list}/List.d.ts +2 -2
- package/typography/{List → list}/List.js +1 -1
- package/typography/{List → list}/List.sty.js +2 -2
- package/typography/{Paragraph → paragraph}/Paragraph.css +3 -3
- package/typography/{Paragraph → paragraph}/Paragraph.d.ts +2 -2
- package/typography/{Paragraph → paragraph}/Paragraph.sty.js +1 -1
- package/{esm/typography/Strikethrough → typography/strikethrough}/Strikethrough.css +1 -1
- package/typography/{Strikethrough → strikethrough}/Strikethrough.d.ts +3 -3
- package/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js +1 -1
- package/{esm/typography/Strong → typography/strong}/Strong.css +1 -1
- package/typography/{Strong → strong}/Strong.d.ts +2 -2
- package/typography/{Strong → strong}/Strong.sty.js +1 -1
- package/{esm/typography/Text → typography/text}/Text.css +3 -3
- package/typography/{Text → text}/Text.d.ts +5 -3
- package/typography/{Text → text}/Text.sty.js +1 -1
- package/{esm/typography/TextEllipsis → typography/text-ellipsis}/TextEllipsis.css +4 -4
- package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.d.ts +4 -4
- package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.js +1 -1
- package/esm/typography/Heading/Heading.js.map +0 -7
- package/esm/typography/Heading/Heading.sty.js +0 -7
- package/esm/typography/Link/Link.js.map +0 -7
- package/esm/typography/Strikethrough/Strikethrough.js.map +0 -7
- package/esm/typography/Text/Text.js.map +0 -7
- package/esm/typography/TextEllipsis/TextEllipsis.js.map +0 -7
- package/esm/typography/TextEllipsis/TextEllipsis.sty.js +0 -7
- package/esm/layouts/{Divider → divider}/Divider.js +0 -0
- package/esm/typography/{BlockQuote → block-quote}/Blockquote.js +0 -0
- package/esm/typography/{Code → code}/Code.js +0 -0
- package/esm/typography/{Emphasis → emphasis}/Emphasis.js +0 -0
- package/esm/typography/{ExternalLink → external-link}/ExternalLink.js +0 -0
- package/esm/typography/{Heading → heading}/Heading.js +0 -0
- package/esm/typography/{Highlight → highlight}/Highlight.js +0 -0
- package/esm/typography/{Paragraph → paragraph}/Paragraph.js +0 -0
- package/esm/typography/{Strikethrough → strikethrough}/Strikethrough.js +0 -0
- package/esm/typography/{Strong → strong}/Strong.js +0 -0
- package/esm/typography/{Text → text}/Text.js +0 -0
- package/esm/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.js +0 -0
- package/layouts/{Divider → divider}/Divider.js +0 -0
- package/layouts/{Divider → divider}/Divider.sty.d.ts +0 -0
- package/typography/{BlockQuote → block-quote}/Blockquote.js +0 -0
- package/typography/{BlockQuote → block-quote}/Blockquote.sty.d.ts +0 -0
- package/typography/{Code → code}/Code.js +0 -0
- package/typography/{Code → code}/Code.sty.d.ts +0 -0
- package/typography/{Emphasis → emphasis}/Emphasis.js +0 -0
- package/typography/{Emphasis → emphasis}/Emphasis.sty.d.ts +0 -0
- package/typography/{ExternalLink → external-link}/ExternalLink.js +0 -0
- package/typography/{ExternalLink → external-link}/ExternalLink.sty.d.ts +0 -0
- package/typography/{Heading → heading}/Heading.js +0 -0
- package/typography/{Heading → heading}/Heading.sty.d.ts +0 -0
- package/typography/{Highlight → highlight}/Highlight.d.ts +1 -1
- package/typography/{Highlight → highlight}/Highlight.js +0 -0
- package/typography/{Highlight → highlight}/Highlight.sty.d.ts +0 -0
- package/typography/{Link → link}/Link.d.ts +1 -1
- /package/typography/{Link → link}/Link.sty.d.ts +0 -0
- /package/typography/{List → list}/List.sty.d.ts +0 -0
- /package/typography/{Paragraph → paragraph}/Paragraph.js +0 -0
- /package/typography/{Paragraph → paragraph}/Paragraph.sty.d.ts +0 -0
- /package/typography/{Strikethrough → strikethrough}/Strikethrough.js +0 -0
- /package/typography/{Strikethrough → strikethrough}/Strikethrough.sty.d.ts +0 -0
- /package/typography/{Strong → strong}/Strong.js +0 -0
- /package/typography/{Strong → strong}/Strong.sty.d.ts +0 -0
- /package/typography/{Text → text}/Text.js +0 -0
- /package/typography/{Text → text}/Text.sty.d.ts +0 -0
- /package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.js +0 -0
- /package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.d.ts +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import { SpacingProps } from '../../styles/getSpacingSprinkles.js';
|
|
3
|
+
import type { MarginProperties, SpacingProperties } from '../../styles/sprinkle-properties.js';
|
|
4
|
+
/**
|
|
5
|
+
* Type for layout size CSS properties, picking specific properties from CSSProperties.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type LayoutSizeCSS = Pick<CSSProperties, 'width' | 'minWidth' | 'maxWidth' | 'height' | 'minHeight' | 'maxHeight'>;
|
|
9
|
+
/**
|
|
10
|
+
* Type for layout styles, including padding, margin, layout size CSS properties, and remaining properties.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export type LayoutStyles = {
|
|
14
|
+
paddingStyles: PaddingCSS;
|
|
15
|
+
marginStyles: MarginCSS;
|
|
16
|
+
layoutSizeStyles: LayoutSizeCSS;
|
|
17
|
+
remainingProps: unknown;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Type for layout size CSS properties, picking specific properties from CSSProperties.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export type LayoutSizeProps = LayoutSizeCSS;
|
|
24
|
+
/**
|
|
25
|
+
* Type for padding CSS properties, picking specific properties from CSSProperties.
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export type PaddingCSS = Pick<CSSProperties, 'paddingTop' | 'paddingRight' | 'paddingBottom' | 'paddingLeft'>;
|
|
29
|
+
/**
|
|
30
|
+
* Type for margin CSS properties, picking specific properties from CSSProperties.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export type MarginCSS = Pick<CSSProperties, 'marginTop' | 'marginRight' | 'marginBottom' | 'marginLeft'>;
|
|
34
|
+
/**
|
|
35
|
+
* Type for default styles, including default padding, margin, and layout size properties.
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export type DefaultStyles = {
|
|
39
|
+
paddingDefaults?: SpacingProps;
|
|
40
|
+
marginDefaults?: SpacingProps;
|
|
41
|
+
layoutSizeDefaults?: LayoutSizeProps;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Type for default padding properties, including individual padding values for each side.
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
export type DefaultPadding = {
|
|
48
|
+
padding?: SpacingProperties;
|
|
49
|
+
paddingTop?: SpacingProperties;
|
|
50
|
+
paddingRight?: SpacingProperties;
|
|
51
|
+
paddingBottom?: SpacingProperties;
|
|
52
|
+
paddingLeft?: SpacingProperties;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Type for default margin properties, including individual margin values for each side.
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
export type DefaultMargin = {
|
|
59
|
+
margin?: MarginProperties;
|
|
60
|
+
marginTop?: MarginProperties;
|
|
61
|
+
marginRight?: MarginProperties;
|
|
62
|
+
marginBottom?: MarginProperties;
|
|
63
|
+
marginLeft?: MarginProperties;
|
|
64
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var layout_types_exports = {};
|
|
15
|
+
module.exports = __toCommonJS(layout_types_exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/strato-components",
|
|
3
|
-
"version": "0.85.
|
|
3
|
+
"version": "0.85.32",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"lang": "lang/uncompiled",
|
|
@@ -71,16 +71,20 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@dynatrace-sdk/units": "^0.
|
|
74
|
+
"@dynatrace-sdk/units": "^0.14.0",
|
|
75
75
|
"@dynatrace/devkit": "^0.3.2",
|
|
76
76
|
"@formatjs/icu-messageformat-parser": "^2.7.8",
|
|
77
77
|
"@jest/globals": "^29.7.0",
|
|
78
|
+
"@vanilla-extract/css": "^1.15.5",
|
|
79
|
+
"@vanilla-extract/dynamic": "^2.1.0",
|
|
80
|
+
"@vanilla-extract/recipes": "^0.5.5",
|
|
81
|
+
"@vanilla-extract/sprinkles": "^1.6.3",
|
|
78
82
|
"clsx": "^2.1.1",
|
|
79
83
|
"lodash-es": "^4.17.21",
|
|
80
84
|
"wicg-inert": "^3.1.2",
|
|
81
85
|
"use-resize-observer": "^9.1.0",
|
|
82
86
|
"@dynatrace/strato-design-tokens": "0.20.40",
|
|
83
|
-
"@dynatrace/strato-icons": "0.39.
|
|
87
|
+
"@dynatrace/strato-icons": "0.39.2"
|
|
84
88
|
},
|
|
85
89
|
"peerDependencies": {
|
|
86
90
|
"@dynatrace-sdk/app-environment": "^1.0.0",
|
|
@@ -107,5 +111,8 @@
|
|
|
107
111
|
"./esm/core/components/app-root/AppRoot.css",
|
|
108
112
|
"./core/components/app-root/AppRoot.sty.js",
|
|
109
113
|
"./esm/core/components/app-root/AppRoot.sty.js"
|
|
110
|
-
]
|
|
114
|
+
],
|
|
115
|
+
"dt": {
|
|
116
|
+
"migrations": []
|
|
117
|
+
}
|
|
111
118
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.
|
|
1
|
+
.Blockquote_blockquoteCSS__1knl9z60 {
|
|
2
2
|
position: relative;
|
|
3
3
|
margin: var(--dt-spacings-size-0, 0);
|
|
4
4
|
padding-left: var(--dt-spacings-size-40, 40px);
|
|
5
5
|
word-break: normal;
|
|
6
6
|
overflow-wrap: anywhere;
|
|
7
7
|
}
|
|
8
|
-
.
|
|
8
|
+
.Blockquote_blockquoteCSS__1knl9z60:before {
|
|
9
9
|
content: "";
|
|
10
10
|
position: absolute;
|
|
11
11
|
top: 0;
|
|
@@ -13,7 +13,7 @@ export interface BlockquoteProps extends WithChildren, StylingProps, DataTestId,
|
|
|
13
13
|
cite?: string;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* @public
|
|
17
16
|
* The `Blockquote` component wraps longer text blocks and indicates that the passage is quoted from another source.
|
|
17
|
+
* @public
|
|
18
18
|
*/
|
|
19
|
-
export declare const Blockquote: (props: BlockquoteProps & React.RefAttributes<HTMLQuoteElement>) => React.ReactElement
|
|
19
|
+
export declare const Blockquote: (props: BlockquoteProps & React.RefAttributes<HTMLQuoteElement>) => React.ReactElement | null;
|
|
@@ -21,4 +21,4 @@ __export(Blockquote_css_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(Blockquote_css_exports);
|
|
23
23
|
var import_Blockquote_css_ts_vanilla = require("./Blockquote.css");
|
|
24
|
-
var blockquoteCSS = "
|
|
24
|
+
var blockquoteCSS = "Blockquote_blockquoteCSS__1knl9z60";
|
|
@@ -8,10 +8,10 @@ import type { MaskingProps } from '../../core/types/masking-props.js';
|
|
|
8
8
|
export interface CodeProps extends WithChildren, StylingProps, DataTestId, MaskingProps {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* @public
|
|
12
11
|
* Use the `Code` component to display snippets of code inline. If you want to
|
|
13
12
|
* display a block of code, use the
|
|
14
13
|
* {@link https://developer.dynatrace.com/design/components-preview/content/CodeSnippet/ | `CodeSnippet`}
|
|
15
14
|
* component instead.
|
|
15
|
+
* @public
|
|
16
16
|
*/
|
|
17
|
-
export declare const Code: (props: CodeProps & React.RefAttributes<HTMLElement>) => React.ReactElement
|
|
17
|
+
export declare const Code: (props: CodeProps & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
|
|
@@ -8,7 +8,7 @@ import type { MaskingProps } from '../../core/types/masking-props.js';
|
|
|
8
8
|
export interface EmphasisProps extends WithChildren, StylingProps, DataTestId, MaskingProps {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* @public
|
|
12
11
|
* The `Emphasis` component adds visual and semantic emphasis to stressed or essential content.
|
|
12
|
+
* @public
|
|
13
13
|
*/
|
|
14
|
-
export declare const Emphasis: (props: EmphasisProps & React.RefAttributes<HTMLElement>) => React.ReactElement
|
|
14
|
+
export declare const Emphasis: (props: EmphasisProps & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
|
|
@@ -21,4 +21,4 @@ __export(Emphasis_css_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(Emphasis_css_exports);
|
|
23
23
|
var import_Emphasis_css_ts_vanilla = require("./Emphasis.css");
|
|
24
|
-
var emphasisCSS = "
|
|
24
|
+
var emphasisCSS = "Emphasis_emphasisCSS__1r35rtu0";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ExternalLink_externalLinkCSS__1v1skpy0 {
|
|
2
2
|
display: inline-block;
|
|
3
3
|
color: var(--dt-colors-text-primary-default, #454cc9);
|
|
4
4
|
text-decoration: underline;
|
|
5
5
|
overflow-wrap: anywhere;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
.ExternalLink_externalLinkCSS__1v1skpy0:hover {
|
|
8
8
|
color: var(--dt-colors-text-primary-default-hover, #3332ae);
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.ExternalLink_externalLinkCSS__1v1skpy0:active {
|
|
11
11
|
color: var(--dt-colors-text-primary-default-active, #241193);
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.ExternalLink_externalLinkCSS__1v1skpy0:focus-visible {
|
|
14
14
|
text-decoration: none;
|
|
15
15
|
}
|
|
16
|
-
.
|
|
16
|
+
.ExternalLink_externalLinkCSS__1v1skpy0 > span {
|
|
17
17
|
white-space: nowrap;
|
|
18
18
|
display: inline-flex;
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.ExternalLink_externalLinkCSS__1v1skpy0 > span > svg {
|
|
21
21
|
margin-left: var(--dt-spacings-size-2, 2px);
|
|
22
22
|
align-self: center;
|
|
23
23
|
min-width: var(--dt-spacings-size-20, 20px);
|
|
@@ -12,10 +12,10 @@ export interface ExternalLinkProps extends WithChildren, StylingProps, DataTestI
|
|
|
12
12
|
onClick?: MouseEventHandler;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* @public
|
|
16
15
|
* Use the `ExternalLink` component to link outside of the
|
|
17
16
|
* Dynatrace platform. For resources within the Dynatrace platform, use the
|
|
18
17
|
* {@link https://developer.dynatrace.com/design/components/typography/Link/ | `Link`}
|
|
19
18
|
* component instead.
|
|
19
|
+
* @public
|
|
20
20
|
*/
|
|
21
|
-
export declare const ExternalLink: (props: ExternalLinkProps & React.RefAttributes<HTMLAnchorElement>) => React.ReactElement
|
|
21
|
+
export declare const ExternalLink: (props: ExternalLinkProps & React.RefAttributes<HTMLAnchorElement>) => React.ReactElement | null;
|
|
@@ -21,4 +21,4 @@ __export(ExternalLink_css_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(ExternalLink_css_exports);
|
|
23
23
|
var import_ExternalLink_css_ts_vanilla = require("./ExternalLink.css");
|
|
24
|
-
var externalLinkCSS = "
|
|
24
|
+
var externalLinkCSS = "ExternalLink_externalLinkCSS__1v1skpy0";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.
|
|
1
|
+
.Heading_headingCSS__5ei34w0 {
|
|
2
2
|
margin: 0;
|
|
3
3
|
overflow-wrap: break-word;
|
|
4
4
|
font-style: normal;
|
|
5
5
|
color: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
.Heading_headingCSS_visualLevel_1__5ei34w1 {
|
|
8
8
|
font-family: var(--dt-typography-heading-level-1-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
9
9
|
font-size: var(--dt-typography-heading-level-1-size, 32px);
|
|
10
10
|
font-weight: var(--dt-typography-heading-level-1-weight, 600);
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
text-transform: var(--dt-typography-heading-level-1-text-transform, none);
|
|
13
13
|
text-decoration: var(--dt-typography-heading-level-1-text-decoration, none);
|
|
14
14
|
}
|
|
15
|
-
.
|
|
15
|
+
.Heading_headingCSS_visualLevel_2__5ei34w2 {
|
|
16
16
|
font-family: var(--dt-typography-heading-level-2-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
17
17
|
font-size: var(--dt-typography-heading-level-2-size, 28px);
|
|
18
18
|
font-weight: var(--dt-typography-heading-level-2-weight, 600);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
text-transform: var(--dt-typography-heading-level-2-text-transform, none);
|
|
21
21
|
text-decoration: var(--dt-typography-heading-level-2-text-decoration, none);
|
|
22
22
|
}
|
|
23
|
-
.
|
|
23
|
+
.Heading_headingCSS_visualLevel_3__5ei34w3 {
|
|
24
24
|
font-family: var(--dt-typography-heading-level-3-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
25
25
|
font-size: var(--dt-typography-heading-level-3-size, 24px);
|
|
26
26
|
font-weight: var(--dt-typography-heading-level-3-weight, 600);
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
text-transform: var(--dt-typography-heading-level-3-text-transform, none);
|
|
29
29
|
text-decoration: var(--dt-typography-heading-level-3-text-decoration, none);
|
|
30
30
|
}
|
|
31
|
-
.
|
|
31
|
+
.Heading_headingCSS_visualLevel_4__5ei34w4 {
|
|
32
32
|
font-family: var(--dt-typography-heading-level-4-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
33
33
|
font-size: var(--dt-typography-heading-level-4-size, 20px);
|
|
34
34
|
font-weight: var(--dt-typography-heading-level-4-weight, 600);
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
text-transform: var(--dt-typography-heading-level-4-text-transform, none);
|
|
37
37
|
text-decoration: var(--dt-typography-heading-level-4-text-decoration, none);
|
|
38
38
|
}
|
|
39
|
-
.
|
|
39
|
+
.Heading_headingCSS_visualLevel_5__5ei34w5 {
|
|
40
40
|
font-family: var(--dt-typography-heading-level-5-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
41
41
|
font-size: var(--dt-typography-heading-level-5-size, 16px);
|
|
42
42
|
font-weight: var(--dt-typography-heading-level-5-weight, 600);
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
text-transform: var(--dt-typography-heading-level-5-text-transform, none);
|
|
45
45
|
text-decoration: var(--dt-typography-heading-level-5-text-decoration, none);
|
|
46
46
|
}
|
|
47
|
-
.
|
|
47
|
+
.Heading_headingCSS_visualLevel_6__5ei34w6 {
|
|
48
48
|
font-family: var(--dt-typography-heading-level-6-family, DynatraceFlow,Roboto,Helvetica,sans-serif);
|
|
49
49
|
font-size: var(--dt-typography-heading-level-6-size, 14px);
|
|
50
50
|
font-weight: var(--dt-typography-heading-level-6-weight, 600);
|
|
@@ -2,8 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { type DataTestId, type StylingProps, type WithChildren, type MaskingProps } from '../../core/index.js';
|
|
3
3
|
import type { DOMProps } from '../../core/types/dom.js';
|
|
4
4
|
/**
|
|
5
|
+
* Props used for the Heading component
|
|
5
6
|
* @public
|
|
6
|
-
|
|
7
|
+
*/
|
|
7
8
|
export interface HeadingProps extends DOMProps, WithChildren, StylingProps, DataTestId, MaskingProps {
|
|
8
9
|
/**
|
|
9
10
|
* The visual level of the heading.
|
|
@@ -17,8 +18,8 @@ export interface HeadingProps extends DOMProps, WithChildren, StylingProps, Data
|
|
|
17
18
|
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
|
-
* @public
|
|
21
21
|
* Use the `Heading` to render semantic HTML heading elements (`h1`, `h2`, etc.).
|
|
22
22
|
* The component allows you to independently define both the visual and the semantic level of the heading.
|
|
23
|
+
* @public
|
|
23
24
|
*/
|
|
24
|
-
export declare const Heading: (props: HeadingProps & React.RefAttributes<HTMLHeadingElement>) => React.ReactElement
|
|
25
|
+
export declare const Heading: (props: HeadingProps & React.RefAttributes<HTMLHeadingElement>) => React.ReactElement | null;
|
|
@@ -22,4 +22,4 @@ __export(Heading_css_exports, {
|
|
|
22
22
|
module.exports = __toCommonJS(Heading_css_exports);
|
|
23
23
|
var import_Heading_css_ts_vanilla = require("./Heading.css");
|
|
24
24
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
25
|
-
var headingCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "
|
|
25
|
+
var headingCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "Heading_headingCSS__5ei34w0", variantClassNames: { visualLevel: { "1": "Heading_headingCSS_visualLevel_1__5ei34w1", "2": "Heading_headingCSS_visualLevel_2__5ei34w2", "3": "Heading_headingCSS_visualLevel_3__5ei34w3", "4": "Heading_headingCSS_visualLevel_4__5ei34w4", "5": "Heading_headingCSS_visualLevel_5__5ei34w5", "6": "Heading_headingCSS_visualLevel_6__5ei34w6" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -21,4 +21,4 @@ __export(Highlight_css_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(Highlight_css_exports);
|
|
23
23
|
var import_Highlight_css_ts_vanilla = require("./Highlight.css");
|
|
24
|
-
var highlightCSS = "
|
|
24
|
+
var highlightCSS = "Highlight_highlightCSS__lajjl30";
|
package/typography/index.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export { Blockquote } from './
|
|
2
|
-
export type { BlockquoteProps } from './
|
|
3
|
-
export { Code } from './
|
|
4
|
-
export type { CodeProps } from './
|
|
5
|
-
export { Emphasis } from './
|
|
6
|
-
export type { EmphasisProps } from './
|
|
7
|
-
export { ExternalLink } from './
|
|
8
|
-
export type { ExternalLinkProps } from './
|
|
9
|
-
export { Heading } from './
|
|
10
|
-
export type { HeadingProps } from './
|
|
11
|
-
export { Highlight } from './
|
|
12
|
-
export type { HighlightProps } from './
|
|
13
|
-
export { Link } from './
|
|
14
|
-
export type { LinkProps } from './
|
|
15
|
-
export { List } from './
|
|
16
|
-
export type { ListProps } from './
|
|
17
|
-
export { Paragraph } from './
|
|
18
|
-
export type { ParagraphProps } from './
|
|
19
|
-
export { Strikethrough } from './
|
|
20
|
-
export type { StrikethroughProps } from './
|
|
21
|
-
export { Strong } from './
|
|
22
|
-
export type { StrongProps } from './
|
|
23
|
-
export { Text } from './
|
|
24
|
-
export type { TextOwnProps, TextProps } from './
|
|
25
|
-
export { TextEllipsis } from './
|
|
26
|
-
export type { TextEllipsisProps, _TruncationMode, } from './
|
|
1
|
+
export { Blockquote } from './block-quote/Blockquote.js';
|
|
2
|
+
export type { BlockquoteProps } from './block-quote/Blockquote.js';
|
|
3
|
+
export { Code } from './code/Code.js';
|
|
4
|
+
export type { CodeProps } from './code/Code.js';
|
|
5
|
+
export { Emphasis } from './emphasis/Emphasis.js';
|
|
6
|
+
export type { EmphasisProps } from './emphasis/Emphasis.js';
|
|
7
|
+
export { ExternalLink } from './external-link/ExternalLink.js';
|
|
8
|
+
export type { ExternalLinkProps } from './external-link/ExternalLink.js';
|
|
9
|
+
export { Heading } from './heading/Heading.js';
|
|
10
|
+
export type { HeadingProps } from './heading/Heading.js';
|
|
11
|
+
export { Highlight } from './highlight/Highlight.js';
|
|
12
|
+
export type { HighlightProps } from './highlight/Highlight.js';
|
|
13
|
+
export { Link } from './link/Link.js';
|
|
14
|
+
export type { LinkProps } from './link/Link.js';
|
|
15
|
+
export { List } from './list/List.js';
|
|
16
|
+
export type { ListProps } from './list/List.js';
|
|
17
|
+
export { Paragraph } from './paragraph/Paragraph.js';
|
|
18
|
+
export type { ParagraphProps } from './paragraph/Paragraph.js';
|
|
19
|
+
export { Strikethrough } from './strikethrough/Strikethrough.js';
|
|
20
|
+
export type { StrikethroughProps } from './strikethrough/Strikethrough.js';
|
|
21
|
+
export { Strong } from './strong/Strong.js';
|
|
22
|
+
export type { StrongProps } from './strong/Strong.js';
|
|
23
|
+
export { Text } from './text/Text.js';
|
|
24
|
+
export type { TextOwnProps, TextProps } from './text/Text.js';
|
|
25
|
+
export { TextEllipsis } from './text-ellipsis/TextEllipsis.js';
|
|
26
|
+
export type { TextEllipsisProps, _TruncationMode, } from './text-ellipsis/TextEllipsis.js';
|
|
27
27
|
export { _calculateEllipsisInfo, _getTextHeight, _centerEllipsizeText, _getTextWidth, _ELLIPSIS_APPROXIMATION_THRESHOLD, _ELLIPSIS_CHARACTER, } from './utils.js';
|
|
28
28
|
export type { _Font } from './utils.js';
|
package/typography/index.js
CHANGED
|
@@ -38,17 +38,17 @@ __export(typography_exports, {
|
|
|
38
38
|
_getTextWidth: () => import_utils._getTextWidth
|
|
39
39
|
});
|
|
40
40
|
module.exports = __toCommonJS(typography_exports);
|
|
41
|
-
var import_Blockquote = require("./
|
|
42
|
-
var import_Code = require("./
|
|
43
|
-
var import_Emphasis = require("./
|
|
44
|
-
var import_ExternalLink = require("./
|
|
45
|
-
var import_Heading = require("./
|
|
46
|
-
var import_Highlight = require("./
|
|
47
|
-
var import_Link = require("./
|
|
48
|
-
var import_List = require("./
|
|
49
|
-
var import_Paragraph = require("./
|
|
50
|
-
var import_Strikethrough = require("./
|
|
51
|
-
var import_Strong = require("./
|
|
52
|
-
var import_Text = require("./
|
|
53
|
-
var import_TextEllipsis = require("./
|
|
41
|
+
var import_Blockquote = require("./block-quote/Blockquote.js");
|
|
42
|
+
var import_Code = require("./code/Code.js");
|
|
43
|
+
var import_Emphasis = require("./emphasis/Emphasis.js");
|
|
44
|
+
var import_ExternalLink = require("./external-link/ExternalLink.js");
|
|
45
|
+
var import_Heading = require("./heading/Heading.js");
|
|
46
|
+
var import_Highlight = require("./highlight/Highlight.js");
|
|
47
|
+
var import_Link = require("./link/Link.js");
|
|
48
|
+
var import_List = require("./list/List.js");
|
|
49
|
+
var import_Paragraph = require("./paragraph/Paragraph.js");
|
|
50
|
+
var import_Strikethrough = require("./strikethrough/Strikethrough.js");
|
|
51
|
+
var import_Strong = require("./strong/Strong.js");
|
|
52
|
+
var import_Text = require("./text/Text.js");
|
|
53
|
+
var import_TextEllipsis = require("./text-ellipsis/TextEllipsis.js");
|
|
54
54
|
var import_utils = require("./utils.js");
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
.
|
|
1
|
+
.Link_linkCSS__1iksxp40 {
|
|
2
2
|
display: inline-block;
|
|
3
3
|
color: var(--dt-colors-text-primary-default, #454cc9);
|
|
4
4
|
text-decoration: underline;
|
|
5
5
|
overflow-wrap: anywhere;
|
|
6
6
|
}
|
|
7
|
-
.
|
|
7
|
+
.Link_linkCSS__1iksxp40:hover {
|
|
8
8
|
color: var(--dt-colors-text-primary-default-hover, #3332ae);
|
|
9
9
|
}
|
|
10
|
-
.
|
|
10
|
+
.Link_linkCSS__1iksxp40:active {
|
|
11
11
|
color: var(--dt-colors-text-primary-default-active, #241193);
|
|
12
12
|
}
|
|
13
|
-
.
|
|
13
|
+
.Link_linkCSS__1iksxp40:focus-visible {
|
|
14
14
|
text-decoration: none;
|
|
15
15
|
}
|
|
@@ -32,9 +32,9 @@ __export(Link_exports, {
|
|
|
32
32
|
module.exports = __toCommonJS(Link_exports);
|
|
33
33
|
var import_clsx = __toESM(require("clsx"));
|
|
34
34
|
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_Link_css = require("./Link.sty.js");
|
|
35
36
|
var import_core = require("../../core/index.js");
|
|
36
37
|
var import_useFocusRing = require("../../core/styles/useFocusRing.js");
|
|
37
|
-
var import_Link_css = require("../Link/Link.sty.js");
|
|
38
38
|
const Link = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
39
39
|
({
|
|
40
40
|
children,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
.
|
|
1
|
+
.List_listCSS__16276mt0 {
|
|
2
2
|
margin: 0;
|
|
3
3
|
padding-left: var(--dt-spacings-size-40, 40px);
|
|
4
4
|
}
|
|
5
|
-
.
|
|
5
|
+
.List_listCSS__16276mt0 .List_listCSS__16276mt0 {
|
|
6
6
|
margin-block: var(--dt-spacings-size-4, 4px);
|
|
7
7
|
padding-left: var(--dt-spacings-size-28, 28px);
|
|
8
8
|
}
|
|
9
|
-
.
|
|
9
|
+
.List_listItemCSS__16276mt1 {
|
|
10
10
|
position: relative;
|
|
11
11
|
overflow-wrap: break-word;
|
|
12
12
|
margin-block: var(--dt-spacings-size-2, 2px);
|
|
13
13
|
}
|
|
14
|
-
.
|
|
14
|
+
.List_listItemCSS__16276mt1::marker {
|
|
15
15
|
font-weight: var(--dt-typography-text-base-emphasized-weight, 500);
|
|
16
16
|
}
|
|
@@ -31,9 +31,9 @@ export interface ListProps<TOrdered extends boolean = false> extends WithChildre
|
|
|
31
31
|
start?: number;
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
|
-
* @public
|
|
35
34
|
* The `List` component groups a set of related content in a list and can be arbitrarily nested.
|
|
36
35
|
* List items are preceded by either a consecutive number (for ordered lists) or a bullet point
|
|
37
36
|
* (for unordered lists).
|
|
37
|
+
* @public
|
|
38
38
|
*/
|
|
39
|
-
export declare const List: <TOrdered extends boolean = false>(props: ListProps<TOrdered> & React.RefAttributes<TOrdered extends true ? HTMLOListElement : HTMLUListElement>) => React.ReactElement
|
|
39
|
+
export declare const List: <TOrdered extends boolean = false>(props: ListProps<TOrdered> & React.RefAttributes<TOrdered extends true ? HTMLOListElement : HTMLUListElement>) => React.ReactElement | null;
|
|
@@ -33,7 +33,7 @@ module.exports = __toCommonJS(List_exports);
|
|
|
33
33
|
var import_clsx = __toESM(require("clsx"));
|
|
34
34
|
var import_react = __toESM(require("react"));
|
|
35
35
|
var import_List_css = require("./List.sty.js");
|
|
36
|
-
var import_Text = require("../
|
|
36
|
+
var import_Text = require("../text/Text.js");
|
|
37
37
|
function interleaveListItems(listItems) {
|
|
38
38
|
const items = [];
|
|
39
39
|
import_react.default.Children.forEach(listItems, (listItem) => {
|
|
@@ -22,5 +22,5 @@ __export(List_css_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(List_css_exports);
|
|
24
24
|
var import_List_css_ts_vanilla = require("./List.css");
|
|
25
|
-
var listCSS = "
|
|
26
|
-
var listItemCSS = "
|
|
25
|
+
var listCSS = "List_listCSS__16276mt0";
|
|
26
|
+
var listItemCSS = "List_listItemCSS__16276mt1";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
.
|
|
1
|
+
.Paragraph_paragraphCSS__487p2n0 {
|
|
2
2
|
margin-top: 0;
|
|
3
3
|
margin-bottom: 0;
|
|
4
4
|
overflow-wrap: break-word;
|
|
5
5
|
color: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
6
6
|
font-style: normal;
|
|
7
7
|
}
|
|
8
|
-
.
|
|
8
|
+
.Paragraph_paragraphCSS_ellipsis_singleLine__487p2n1 {
|
|
9
9
|
display: block;
|
|
10
10
|
white-space: nowrap;
|
|
11
11
|
text-overflow: ellipsis;
|
|
12
12
|
overflow: hidden;
|
|
13
13
|
}
|
|
14
|
-
.
|
|
14
|
+
.Paragraph_paragraphCSS_ellipsis_multiLine__487p2n2 {
|
|
15
15
|
display: -webkit-box;
|
|
16
16
|
-webkit-line-clamp: var(--strato-ellipsis-line-clamp);
|
|
17
17
|
-webkit-box-orient: vertical;
|
|
@@ -13,7 +13,7 @@ export interface ParagraphProps extends WithChildren, DOMProps, StylingProps, Da
|
|
|
13
13
|
maxLines?: number;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
* @public
|
|
17
16
|
* The `Paragraph` component displays a block of text with the default text style and supports text truncation.
|
|
17
|
+
* @public
|
|
18
18
|
*/
|
|
19
|
-
export declare const Paragraph: (props: ParagraphProps & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement
|
|
19
|
+
export declare const Paragraph: (props: ParagraphProps & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement | null;
|
|
@@ -22,4 +22,4 @@ __export(Paragraph_css_exports, {
|
|
|
22
22
|
module.exports = __toCommonJS(Paragraph_css_exports);
|
|
23
23
|
var import_Paragraph_css_ts_vanilla = require("./Paragraph.css");
|
|
24
24
|
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
25
|
-
var paragraphCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "
|
|
25
|
+
var paragraphCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "Paragraph_paragraphCSS__487p2n0", variantClassNames: { ellipsis: { singleLine: "Paragraph_paragraphCSS_ellipsis_singleLine__487p2n1", multiLine: "Paragraph_paragraphCSS_ellipsis_multiLine__487p2n2" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -4,12 +4,12 @@ import type { MaskingProps } from '../../core/types/masking-props.js';
|
|
|
4
4
|
/**
|
|
5
5
|
* The props for the Strikethrough component.
|
|
6
6
|
* @public
|
|
7
|
-
|
|
7
|
+
*/
|
|
8
8
|
export interface StrikethroughProps extends WithChildren, StylingProps, DataTestId, MaskingProps {
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* @public
|
|
12
11
|
* The `Strikethrough` component renders text with a line through it. Use it to
|
|
13
12
|
* represent things that are no longer relevant or accurate.
|
|
13
|
+
* @public
|
|
14
14
|
*/
|
|
15
|
-
export declare const Strikethrough: (props: StrikethroughProps & React.RefAttributes<HTMLElement>) => React.ReactElement
|
|
15
|
+
export declare const Strikethrough: (props: StrikethroughProps & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
|
|
@@ -21,4 +21,4 @@ __export(Strikethrough_css_exports, {
|
|
|
21
21
|
});
|
|
22
22
|
module.exports = __toCommonJS(Strikethrough_css_exports);
|
|
23
23
|
var import_Strikethrough_css_ts_vanilla = require("./Strikethrough.css");
|
|
24
|
-
var strikethroughCSS = "
|
|
24
|
+
var strikethroughCSS = "Strikethrough_strikethroughCSS__4oao6y0";
|