@dynatrace/strato-components 0.85.0 → 0.85.21
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/README.md +1 -1
- package/buttons/button/Button.css +93 -0
- package/buttons/button/Button.d.ts +94 -0
- package/buttons/button/Button.js +258 -0
- package/buttons/button/Button.sty.d.ts +51 -0
- package/buttons/button/Button.sty.js +33 -0
- package/buttons/button/Label.d.ts +16 -0
- package/buttons/button/Label.js +60 -0
- package/buttons/button/Prefix.d.ts +16 -0
- package/buttons/button/Prefix.js +54 -0
- package/buttons/button/Suffix.d.ts +16 -0
- package/buttons/button/Suffix.js +56 -0
- package/buttons/button/types/button-aria.d.ts +37 -0
- package/buttons/button/types/button-aria.js +15 -0
- package/buttons/button/utils/focus-without-scrolling.d.ts +5 -0
- package/buttons/button/utils/focus-without-scrolling.js +77 -0
- package/buttons/button/utils/is-virtual-event.d.ts +10 -0
- package/buttons/button/utils/is-virtual-event.js +32 -0
- package/buttons/index.d.ts +10 -0
- package/buttons/index.js +30 -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.js +1 -2
- package/content/progress/ProgressCircle.js +1 -2
- 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/esm/buttons/button/Button.css +93 -0
- package/esm/buttons/button/Button.js +233 -0
- package/esm/buttons/button/Button.js.map +7 -0
- package/esm/buttons/button/Button.sty.js +15 -0
- package/esm/buttons/button/Button.sty.js.map +7 -0
- package/esm/buttons/button/Label.js +32 -0
- package/esm/buttons/button/Label.js.map +7 -0
- package/esm/buttons/button/Prefix.js +26 -0
- package/esm/buttons/button/Prefix.js.map +7 -0
- package/esm/buttons/button/Suffix.js +28 -0
- package/esm/buttons/button/Suffix.js.map +7 -0
- package/esm/buttons/button/types/button-aria.js +1 -0
- package/esm/buttons/button/types/button-aria.js.map +7 -0
- package/esm/buttons/button/utils/focus-without-scrolling.js +59 -0
- package/esm/buttons/button/utils/focus-without-scrolling.js.map +7 -0
- package/esm/buttons/button/utils/is-virtual-event.js +14 -0
- package/esm/buttons/button/utils/is-virtual-event.js.map +7 -0
- package/esm/buttons/index.js +15 -0
- package/esm/buttons/index.js.map +7 -0
- 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/progress/ProgressBar.js +2 -3
- package/esm/content/progress/ProgressBar.js.map +2 -2
- package/esm/content/progress/ProgressCircle.js +2 -3
- package/esm/content/progress/ProgressCircle.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/index.js +1 -0
- package/esm/index.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/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 +6 -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/styles/field.css +208 -0
- package/esm/styles/field.sty.js +9 -0
- package/esm/styles/field.sty.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.js.map +7 -0
- 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/external-link/ExternalLink.js.map +7 -0
- 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/index.d.ts +1 -0
- package/index.js +1 -0
- package/lang/en.json +12 -0
- package/lang/ja.json +24 -0
- package/lang/uncompiled/en.json +8 -0
- package/lang/uncompiled/ja.json +14 -1
- package/layouts/{Divider → divider}/Divider.css +5 -5
- 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/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 +6 -2
- package/layouts/index.js +6 -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/styles/field.css +208 -0
- package/styles/field.sty.d.ts +102 -0
- package/styles/field.sty.js +27 -0
- package/styles/sprinkles.sty.d.ts +107 -107
- package/typography/{BlockQuote → block-quote}/Blockquote.css +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.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 +3 -2
- 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.d.ts +2 -2
- 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.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.sty.js +1 -1
- package/{esm/typography/Strikethrough → typography/strikethrough}/Strikethrough.css +1 -1
- package/typography/{Strikethrough → strikethrough}/Strikethrough.d.ts +2 -2
- package/typography/{Strikethrough → strikethrough}/Strikethrough.sty.js +1 -1
- package/{esm/typography/Strong → typography/strong}/Strong.css +1 -1
- 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 +3 -2
- 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 +3 -3
- package/typography/{TextEllipsis → text-ellipsis}/TextEllipsis.sty.js +1 -1
- package/esm/typography/Code/Code.js.map +0 -7
- package/esm/typography/ExternalLink/ExternalLink.js.map +0 -7
- 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.d.ts +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.d.ts +1 -1
- 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.d.ts +1 -1
- 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.sty.d.ts +0 -0
- package/typography/{List → list}/List.d.ts +1 -1
- package/typography/{List → list}/List.sty.d.ts +0 -0
- package/typography/{Paragraph → paragraph}/Paragraph.d.ts +1 -1
- 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.d.ts +1 -1
- /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
package/layouts/index.js
CHANGED
|
@@ -20,10 +20,14 @@ __export(layouts_exports, {
|
|
|
20
20
|
Container: () => import_Container.Container,
|
|
21
21
|
Divider: () => import_Divider.Divider,
|
|
22
22
|
Flex: () => import_Flex.Flex,
|
|
23
|
-
Grid: () => import_Grid.Grid
|
|
23
|
+
Grid: () => import_Grid.Grid,
|
|
24
|
+
Surface: () => import_Surface.Surface,
|
|
25
|
+
_surfaceBorderRadius: () => import_variables_css.surfaceBorderRadius
|
|
24
26
|
});
|
|
25
27
|
module.exports = __toCommonJS(layouts_exports);
|
|
26
28
|
var import_Flex = require("./flex/Flex.js");
|
|
27
29
|
var import_Grid = require("./grid/Grid.js");
|
|
28
|
-
var import_Divider = require("./
|
|
30
|
+
var import_Divider = require("./divider/Divider.js");
|
|
29
31
|
var import_Container = require("./container/Container.js");
|
|
32
|
+
var import_Surface = require("./surface/Surface.js");
|
|
33
|
+
var import_variables_css = require("./surface/variables.sty.js");
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
.Surface_surfaceCSS__1qto6jt6 {
|
|
2
|
+
--surfaceBorderRadius__1igzksy0: var(--dt-borders-radius-surface-default, 16px);
|
|
3
|
+
color: var(--dt-colors-text-neutral-default, #2b2a58);
|
|
4
|
+
text-align: left;
|
|
5
|
+
border: none;
|
|
6
|
+
outline: none;
|
|
7
|
+
position: relative;
|
|
8
|
+
background-color: var(--dt-colors-background-surface-default, #fcfcfd);
|
|
9
|
+
border-radius: var(--surfaceBorderRadius__1igzksy0);
|
|
10
|
+
}
|
|
11
|
+
.Surface_surfaceCSS__1qto6jt6::before, .Surface_surfaceCSS__1qto6jt6::after {
|
|
12
|
+
content: "";
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
position: absolute;
|
|
16
|
+
left: 0;
|
|
17
|
+
top: 0;
|
|
18
|
+
border-radius: var(--surfaceBorderRadius__1igzksy0);
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
}
|
|
21
|
+
.Surface_surfaceCSS__1qto6jt6::after {
|
|
22
|
+
box-shadow: 0px 0px 0px 1px var(--dt-colors-background-base-default, #f3f3f7);
|
|
23
|
+
outline-offset: 1px;
|
|
24
|
+
outline: 2px solid var(--vars_borderColor__17bwkb02);
|
|
25
|
+
opacity: var(--selectionOpacity__1qto6jt4);
|
|
26
|
+
transition: var(--selectionTransition__1qto6jt5);
|
|
27
|
+
}
|
|
28
|
+
.Surface_surfaceCSS_selected_true__1qto6jt7 {
|
|
29
|
+
--selectionOpacity__1qto6jt4: 1;
|
|
30
|
+
--selectionTransition__1qto6jt5: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
|
|
31
|
+
}
|
|
32
|
+
.Surface_surfaceCSS_selected_false__1qto6jt8 {
|
|
33
|
+
--selectionOpacity__1qto6jt4: 0;
|
|
34
|
+
--selectionTransition__1qto6jt5: var(--dt-animations-fade-out-easing, cubic-bezier(0, 0, 0.2, 1)) var(--dt-animations-fade-out-duration-fast, 150ms);
|
|
35
|
+
}
|
|
36
|
+
.Surface_pseudoElementCSS__1qto6jt9 {
|
|
37
|
+
--dragOpacity__1qto6jt1: 0;
|
|
38
|
+
--dragCursor__1qto6jt2: pointer;
|
|
39
|
+
--hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
position: absolute;
|
|
43
|
+
left: 0;
|
|
44
|
+
top: 0;
|
|
45
|
+
border-radius: var(--surfaceBorderRadius__1igzksy0);
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
}
|
|
48
|
+
.Surface_pseudoElementCSS__1qto6jt9::after,.Surface_pseudoElementCSS__1qto6jt9::before {
|
|
49
|
+
content: "";
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
position: absolute;
|
|
53
|
+
left: 0;
|
|
54
|
+
top: 0;
|
|
55
|
+
border-radius: var(--surfaceBorderRadius__1igzksy0);
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
transition: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
|
|
58
|
+
}
|
|
59
|
+
.Surface_pseudoElementCSS__1qto6jt9::after {
|
|
60
|
+
box-shadow: var(--dragElevation__1qto6jt0);
|
|
61
|
+
opacity: var(--dragOpacity__1qto6jt1);
|
|
62
|
+
}
|
|
63
|
+
.Surface_pseudoElementCSS__1qto6jt9::before {
|
|
64
|
+
box-shadow: var(--hoverElevation__1qto6jt3);
|
|
65
|
+
opacity: 0;
|
|
66
|
+
}
|
|
67
|
+
.Surface_pseudoElementCSS_elevation_flat__1qto6jta {
|
|
68
|
+
--dragElevation__1qto6jt0: var(--dt-box-shadows-surface-flat-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
69
|
+
--hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-flat-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
70
|
+
box-shadow: var(--dt-box-shadows-surface-flat-rest, none);
|
|
71
|
+
}
|
|
72
|
+
.Surface_pseudoElementCSS_elevation_raised__1qto6jtb {
|
|
73
|
+
--dragElevation__1qto6jt0: var(--dt-box-shadows-surface-raised-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
74
|
+
--hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-raised-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
|
|
75
|
+
box-shadow: var(--dt-box-shadows-surface-raised-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 4px 8px -2px #2d2e4e12);
|
|
76
|
+
}
|
|
77
|
+
.Surface_pseudoElementCSS_elevation_floating__1qto6jtc {
|
|
78
|
+
--dragElevation__1qto6jt0: var(--dt-box-shadows-surface-floating-drag, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 7px 17px -2px #2d2e4e52);
|
|
79
|
+
--hoverElevation__1qto6jt3: var(--dt-box-shadows-surface-floating-hover, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 6px 14px -2px #2d2e4e3d);
|
|
80
|
+
box-shadow: var(--dt-box-shadows-surface-floating-rest, 0px 0px 0px 1px #2d2e4e08, 0px 1px 2px #2d2e4e0d, 0px 5px 11px -2px #2d2e4e29);
|
|
81
|
+
}
|
|
82
|
+
.Surface_pseudoElementCSS_dragged_true__1qto6jtd {
|
|
83
|
+
--dragOpacity__1qto6jt1: 1;
|
|
84
|
+
--dragCursor__1qto6jt2: grab;
|
|
85
|
+
}
|
|
86
|
+
button.strato-surface:not(:disabled), a.strato-surface:not(:disabled) {
|
|
87
|
+
cursor: pointer;
|
|
88
|
+
}
|
|
89
|
+
button.strato-surface:not(:disabled):hover > div:first-child::before, a.strato-surface:not(:disabled):hover > div:first-child::before {
|
|
90
|
+
opacity: 1;
|
|
91
|
+
}
|
|
92
|
+
button.strato-surface:not(:disabled):active > div:first-child::before, a.strato-surface:not(:disabled):active > div:first-child::before {
|
|
93
|
+
transition: var(--dt-animations-fade-in-easing, cubic-bezier(0.5, 0, 1, 1)) var(--dt-animations-fade-in-duration-fast, 150ms);
|
|
94
|
+
opacity: 0;
|
|
95
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ElementType, type ReactElement } from 'react';
|
|
2
|
+
import type { AriaLabelingProps } from '../../core/types/a11y-props.js';
|
|
3
|
+
import type { DataTestId } from '../../core/types/data-props.js';
|
|
4
|
+
import type { DOMProps } from '../../core/types/dom.js';
|
|
5
|
+
import type { MaskingProps } from '../../core/types/masking-props.js';
|
|
6
|
+
import type { PolymorphicComponentProps } from '../../core/types/polymorph.js';
|
|
7
|
+
import type { StylingProps } from '../../core/types/styling-props.js';
|
|
8
|
+
import type { WithChildren } from '../../core/types/with-children.js';
|
|
9
|
+
import { type SpacingProps } from '../../styles/getSpacingSprinkles.js';
|
|
10
|
+
import type { LayoutSizeCSS } from '../types/layout.types.js';
|
|
11
|
+
/**
|
|
12
|
+
* Accepted properties for Surface
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export interface SurfaceOwnProps extends AriaLabelingProps, SpacingProps, LayoutSizeCSS, DOMProps, WithChildren, StylingProps, DataTestId, MaskingProps {
|
|
16
|
+
/**
|
|
17
|
+
* Color of the border when the surface has focus or is selected.
|
|
18
|
+
* @defaultValue 'neutral'
|
|
19
|
+
*/
|
|
20
|
+
color?: 'neutral' | 'primary' | 'success' | 'critical' | 'warning';
|
|
21
|
+
/**
|
|
22
|
+
* Defines if the surface is selected and should indicate that state with a border.
|
|
23
|
+
* @defaultValue false
|
|
24
|
+
*/
|
|
25
|
+
selected?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Indicates if the surface is currently dragged and then applies the corresponding styles.
|
|
28
|
+
* @defaultValue false
|
|
29
|
+
*/
|
|
30
|
+
dragged?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Defines the surface's elevation to the background.
|
|
33
|
+
* @defaultValue 'flat'
|
|
34
|
+
*/
|
|
35
|
+
elevation?: 'flat' | 'raised' | 'floating';
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Merge own props with others inherited from the underlying element type
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
41
|
+
export type SurfaceProps<E extends ElementType> = PolymorphicComponentProps<E, SurfaceOwnProps>;
|
|
42
|
+
/**
|
|
43
|
+
* The Surface component is used to structure content on a page.
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
export declare const Surface: <E extends ElementType = 'div'>(props: SurfaceProps<E>) => ReactElement | null;
|
|
@@ -0,0 +1,110 @@
|
|
|
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 Surface_exports = {};
|
|
29
|
+
__export(Surface_exports, {
|
|
30
|
+
Surface: () => Surface
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(Surface_exports);
|
|
33
|
+
var import_clsx = __toESM(require("clsx"));
|
|
34
|
+
var import_react = __toESM(require("react"));
|
|
35
|
+
var import_Surface_css = require("./Surface.sty.js");
|
|
36
|
+
var import_useAriaLabelingProps = require("../../core/hooks/useAriaLabelingProps.js");
|
|
37
|
+
var import_useFocusRing = require("../../core/styles/useFocusRing.js");
|
|
38
|
+
var import_merge_props = require("../../core/utils/merge-props.js");
|
|
39
|
+
var import_colorUtils_css = require("../../styles/colorUtils.sty.js");
|
|
40
|
+
var import_getSpacingSprinkles = require("../../styles/getSpacingSprinkles.js");
|
|
41
|
+
var import_textStyle_css = require("../../styles/textStyle.sty.js");
|
|
42
|
+
var import_useLayoutStyles = require("../hooks/useLayoutStyles.js");
|
|
43
|
+
const Surface = /* @__PURE__ */ (0, import_react.forwardRef)(
|
|
44
|
+
(props, forwardedRef) => {
|
|
45
|
+
const {
|
|
46
|
+
elevation = "flat",
|
|
47
|
+
dragged = false,
|
|
48
|
+
selected = false,
|
|
49
|
+
color = "neutral",
|
|
50
|
+
children,
|
|
51
|
+
className: consumerClassName,
|
|
52
|
+
style: consumerStyle,
|
|
53
|
+
"data-testid": dataTestId,
|
|
54
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
55
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
56
|
+
as,
|
|
57
|
+
...remainingProps
|
|
58
|
+
} = props;
|
|
59
|
+
const ariaLabelingProps = (0, import_useAriaLabelingProps.useAriaLabelingProps)(remainingProps);
|
|
60
|
+
const { layoutSizeStyles, remainingProps: surfaceProps } = (0, import_useLayoutStyles.useLayoutStyles)(
|
|
61
|
+
remainingProps,
|
|
62
|
+
{ paddingDefaults: { padding: 24 } }
|
|
63
|
+
);
|
|
64
|
+
const { focusProps, focusClassName } = (0, import_useFocusRing.useFocusRing)({
|
|
65
|
+
variant: color
|
|
66
|
+
});
|
|
67
|
+
const surfaceMergedProps = {
|
|
68
|
+
...(0, import_merge_props.mergeProps)(
|
|
69
|
+
// Need to cast this one as the inference of mergeProps would generate
|
|
70
|
+
// a not allowed overlap. The remainingProps type is too complex due to the
|
|
71
|
+
// polymorphic inheritance.
|
|
72
|
+
surfaceProps,
|
|
73
|
+
focusProps,
|
|
74
|
+
ariaLabelingProps
|
|
75
|
+
)
|
|
76
|
+
};
|
|
77
|
+
const Component = as ?? "div";
|
|
78
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
79
|
+
Component,
|
|
80
|
+
{
|
|
81
|
+
...surfaceMergedProps,
|
|
82
|
+
"data-testid": dataTestId,
|
|
83
|
+
"data-dtrum-mask": dataDtrumMask,
|
|
84
|
+
"data-dtrum-allow": dataDtrumAllow,
|
|
85
|
+
ref: forwardedRef,
|
|
86
|
+
className: (0, import_clsx.default)(
|
|
87
|
+
"strato-surface",
|
|
88
|
+
(0, import_colorUtils_css.colorUtilsCSS)({ color, variant: selected ? "accent" : "default" }),
|
|
89
|
+
(0, import_Surface_css.surfaceCSS)({ selected }),
|
|
90
|
+
focusClassName,
|
|
91
|
+
consumerClassName,
|
|
92
|
+
(0, import_getSpacingSprinkles.getSpacingSprinkles)(remainingProps, { padding: 24 }),
|
|
93
|
+
(0, import_textStyle_css.textStyleCSS)({ textStyle: "base" })
|
|
94
|
+
),
|
|
95
|
+
style: { ...layoutSizeStyles, ...consumerStyle }
|
|
96
|
+
},
|
|
97
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
className: (0, import_clsx.default)(
|
|
101
|
+
"surface-background",
|
|
102
|
+
(0, import_Surface_css.pseudoElementCSS)({ elevation, dragged })
|
|
103
|
+
),
|
|
104
|
+
"aria-hidden": true
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
children
|
|
108
|
+
);
|
|
109
|
+
}
|
|
110
|
+
);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare const surfaceCSS: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
2
|
+
selected: {
|
|
3
|
+
true: {
|
|
4
|
+
vars: {
|
|
5
|
+
[x: string]: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
false: {
|
|
9
|
+
vars: {
|
|
10
|
+
[x: string]: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
export declare const pseudoElementCSS: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
16
|
+
elevation: {
|
|
17
|
+
flat: {
|
|
18
|
+
boxShadow: string;
|
|
19
|
+
vars: {
|
|
20
|
+
[x: string]: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
raised: {
|
|
24
|
+
boxShadow: string;
|
|
25
|
+
vars: {
|
|
26
|
+
[x: string]: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
floating: {
|
|
30
|
+
boxShadow: string;
|
|
31
|
+
vars: {
|
|
32
|
+
[x: string]: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
dragged: {
|
|
37
|
+
true: {
|
|
38
|
+
vars: {
|
|
39
|
+
[x: string]: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
}>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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 Surface_css_exports = {};
|
|
19
|
+
__export(Surface_css_exports, {
|
|
20
|
+
pseudoElementCSS: () => pseudoElementCSS,
|
|
21
|
+
surfaceCSS: () => surfaceCSS
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(Surface_css_exports);
|
|
24
|
+
var import_colorUtils_css_ts_vanilla = require("../../styles/colorUtils.css");
|
|
25
|
+
var import_Surface_css_ts_vanilla = require("./Surface.css");
|
|
26
|
+
var import_createRuntimeFn = require("@vanilla-extract/recipes/createRuntimeFn");
|
|
27
|
+
var pseudoElementCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "Surface_pseudoElementCSS__1qto6jt9", variantClassNames: { elevation: { flat: "Surface_pseudoElementCSS_elevation_flat__1qto6jta", raised: "Surface_pseudoElementCSS_elevation_raised__1qto6jtb", floating: "Surface_pseudoElementCSS_elevation_floating__1qto6jtc" }, dragged: { true: "Surface_pseudoElementCSS_dragged_true__1qto6jtd" } }, defaultVariants: {}, compoundVariants: [] });
|
|
28
|
+
var surfaceCSS = (0, import_createRuntimeFn.createRuntimeFn)({ defaultClassName: "Surface_surfaceCSS__1qto6jt6", variantClassNames: { selected: { true: "Surface_surfaceCSS_selected_true__1qto6jt7", false: "Surface_surfaceCSS_selected_false__1qto6jt8" } }, defaultVariants: {}, compoundVariants: [] });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const surfaceBorderRadius: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
@@ -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 variables_css_exports = {};
|
|
19
|
+
__export(variables_css_exports, {
|
|
20
|
+
surfaceBorderRadius: () => surfaceBorderRadius
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(variables_css_exports);
|
|
23
|
+
var surfaceBorderRadius = "var(--surfaceBorderRadius__1igzksy0)";
|
|
@@ -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.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"lang": "lang/uncompiled",
|
|
@@ -19,6 +19,13 @@
|
|
|
19
19
|
"module": "./esm/index.js",
|
|
20
20
|
"import": "./esm/index.js"
|
|
21
21
|
},
|
|
22
|
+
"./buttons": {
|
|
23
|
+
"types": "./buttons/index.d.ts",
|
|
24
|
+
"require": "./buttons/index.js",
|
|
25
|
+
"browser": "./esm/buttons/index.js",
|
|
26
|
+
"module": "./esm/buttons/index.js",
|
|
27
|
+
"import": "./esm/buttons/index.js"
|
|
28
|
+
},
|
|
22
29
|
"./content": {
|
|
23
30
|
"types": "./content/index.d.ts",
|
|
24
31
|
"require": "./content/index.js",
|
|
@@ -64,7 +71,7 @@
|
|
|
64
71
|
}
|
|
65
72
|
},
|
|
66
73
|
"dependencies": {
|
|
67
|
-
"@dynatrace-sdk/units": "^0.
|
|
74
|
+
"@dynatrace-sdk/units": "^0.14.0",
|
|
68
75
|
"@dynatrace/devkit": "^0.3.2",
|
|
69
76
|
"@formatjs/icu-messageformat-parser": "^2.7.8",
|
|
70
77
|
"@jest/globals": "^29.7.0",
|
|
@@ -72,8 +79,8 @@
|
|
|
72
79
|
"lodash-es": "^4.17.21",
|
|
73
80
|
"wicg-inert": "^3.1.2",
|
|
74
81
|
"use-resize-observer": "^9.1.0",
|
|
75
|
-
"@dynatrace/strato-design-tokens": "0.20.
|
|
76
|
-
"@dynatrace/strato-icons": "0.39.
|
|
82
|
+
"@dynatrace/strato-design-tokens": "0.20.40",
|
|
83
|
+
"@dynatrace/strato-icons": "0.39.1"
|
|
77
84
|
},
|
|
78
85
|
"peerDependencies": {
|
|
79
86
|
"@dynatrace-sdk/app-environment": "^1.0.0",
|