@dynatrace/strato-components 0.84.42 → 0.85.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/content/index.d.ts +7 -0
- package/content/index.js +25 -0
- package/content/progress/ProgressBar.css +52 -0
- package/content/progress/ProgressBar.d.ts +56 -0
- package/content/progress/ProgressBar.js +191 -0
- package/content/progress/ProgressBar.sty.d.ts +42 -0
- package/content/progress/ProgressBar.sty.js +28 -0
- package/content/progress/ProgressBarIcon.css +5 -0
- package/content/progress/ProgressBarIcon.d.ts +15 -0
- package/content/progress/ProgressBarIcon.js +68 -0
- package/content/progress/ProgressBarIcon.sty.d.ts +1 -0
- package/content/progress/ProgressBarIcon.sty.js +25 -0
- package/content/progress/ProgressBarLabel.css +9 -0
- package/content/progress/ProgressBarLabel.d.ts +15 -0
- package/content/progress/ProgressBarLabel.js +75 -0
- package/content/progress/ProgressBarLabel.sty.d.ts +13 -0
- package/content/progress/ProgressBarLabel.sty.js +26 -0
- package/content/progress/ProgressBarValue.css +28 -0
- package/content/progress/ProgressBarValue.d.ts +15 -0
- package/content/progress/ProgressBarValue.js +72 -0
- package/content/progress/ProgressBarValue.sty.d.ts +34 -0
- package/content/progress/ProgressBarValue.sty.js +26 -0
- package/content/progress/ProgressCircle.css +52 -0
- package/content/progress/ProgressCircle.d.ts +51 -0
- package/content/progress/ProgressCircle.js +174 -0
- package/content/progress/ProgressCircle.sty.d.ts +41 -0
- package/content/progress/ProgressCircle.sty.js +37 -0
- package/content/progress/contexts/SharedProgressBarPropsContext.d.ts +9 -0
- package/content/progress/contexts/SharedProgressBarPropsContext.js +38 -0
- package/content/progress/hooks/useProgressAriaProps.d.ts +38 -0
- package/content/progress/hooks/useProgressAriaProps.js +63 -0
- package/content/progress/hooks/useProgressBarPropsContext.d.ts +2 -0
- package/content/progress/hooks/useProgressBarPropsContext.js +32 -0
- package/content/progress/utils.d.ts +2 -0
- package/content/progress/utils.js +50 -0
- package/core/components/app-root/AppRoot.d.ts +2 -2
- package/core/hooks/useAriaLabelingProps.d.ts +6 -0
- package/core/hooks/useAriaLabelingProps.js +30 -0
- package/core/hooks/useCurrentTheme.d.ts +1 -1
- package/core/hooks/useId.d.ts +12 -0
- package/core/hooks/useId.js +32 -0
- package/core/hooks/useSafeForwardProps.d.ts +10 -0
- package/core/hooks/useSafeForwardProps.js +34 -0
- package/core/index.d.ts +11 -3
- package/core/index.js +12 -0
- package/core/types/a11y-props.d.ts +8 -1
- package/core/types/data-props.d.ts +1 -1
- package/core/types/dom.d.ts +2 -13
- package/core/types/masking-props.d.ts +2 -1
- package/core/types/polymorph.d.ts +10 -7
- package/core/types/role-variant.d.ts +10 -0
- package/core/types/{focusable-element.js → role-variant.js} +17 -2
- package/core/types/styling-props.d.ts +1 -1
- package/core/types/with-children.d.ts +1 -1
- package/core/utils/_is-string-children.d.ts +6 -0
- package/core/utils/_is-string-children.js +44 -0
- package/core/utils/isBrowser.d.ts +1 -1
- package/core/utils/merge-props.d.ts +4 -5
- package/core/utils/seed-random.d.ts +5 -0
- package/core/utils/seed-random.js +34 -0
- package/core/utils/uuidv4.d.ts +5 -0
- package/core/utils/uuidv4.js +31 -0
- package/esm/content/index.js +7 -0
- package/esm/content/index.js.map +7 -0
- package/esm/content/progress/ProgressBar.css +52 -0
- package/esm/content/progress/ProgressBar.js +163 -0
- package/esm/content/progress/ProgressBar.js.map +7 -0
- package/esm/content/progress/ProgressBar.sty.js +10 -0
- package/esm/content/progress/ProgressBar.sty.js.map +7 -0
- package/esm/content/progress/ProgressBarIcon.css +5 -0
- package/esm/content/progress/ProgressBarIcon.js +40 -0
- package/esm/content/progress/ProgressBarIcon.js.map +7 -0
- package/esm/content/progress/ProgressBarIcon.sty.js +7 -0
- package/esm/content/progress/ProgressBarIcon.sty.js.map +7 -0
- package/esm/content/progress/ProgressBarLabel.css +9 -0
- package/esm/content/progress/ProgressBarLabel.js +47 -0
- package/esm/content/progress/ProgressBarLabel.js.map +7 -0
- package/esm/content/progress/ProgressBarLabel.sty.js +8 -0
- package/esm/content/progress/ProgressBarLabel.sty.js.map +7 -0
- package/esm/content/progress/ProgressBarValue.css +28 -0
- package/esm/content/progress/ProgressBarValue.js +44 -0
- package/esm/content/progress/ProgressBarValue.js.map +7 -0
- package/esm/content/progress/ProgressBarValue.sty.js +8 -0
- package/esm/content/progress/ProgressBarValue.sty.js.map +7 -0
- package/esm/content/progress/ProgressCircle.css +52 -0
- package/esm/content/progress/ProgressCircle.js +153 -0
- package/esm/content/progress/ProgressCircle.js.map +7 -0
- package/esm/content/progress/ProgressCircle.sty.js +19 -0
- package/esm/content/progress/ProgressCircle.sty.js.map +7 -0
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js +10 -0
- package/esm/content/progress/contexts/SharedProgressBarPropsContext.js.map +7 -0
- package/esm/content/progress/hooks/useProgressAriaProps.js +45 -0
- package/esm/content/progress/hooks/useProgressAriaProps.js.map +7 -0
- package/esm/content/progress/hooks/useProgressBarPropsContext.js +16 -0
- package/esm/content/progress/hooks/useProgressBarPropsContext.js.map +7 -0
- package/esm/content/progress/utils.js +22 -0
- package/esm/content/progress/utils.js.map +7 -0
- package/esm/core/components/app-root/AppRoot.js.map +1 -1
- package/esm/core/hooks/useAriaLabelingProps.js +12 -0
- package/esm/core/hooks/useAriaLabelingProps.js.map +7 -0
- package/esm/core/hooks/useCurrentTheme.js.map +1 -1
- package/esm/core/hooks/useId.js +14 -0
- package/esm/core/hooks/useId.js.map +7 -0
- package/esm/core/hooks/useSafeForwardProps.js +16 -0
- package/esm/core/hooks/useSafeForwardProps.js.map +7 -0
- package/esm/core/index.js +12 -0
- package/esm/core/index.js.map +2 -2
- package/esm/core/types/role-variant.js +12 -0
- package/esm/core/types/role-variant.js.map +7 -0
- package/esm/core/utils/_is-string-children.js +16 -0
- package/esm/core/utils/_is-string-children.js.map +7 -0
- package/esm/core/utils/isBrowser.js.map +1 -1
- package/esm/core/utils/merge-props.js.map +2 -2
- package/esm/core/utils/seed-random.js +16 -0
- package/esm/core/utils/seed-random.js.map +7 -0
- package/esm/core/utils/uuidv4.js +13 -0
- package/esm/core/utils/uuidv4.js.map +7 -0
- package/esm/index.js +2 -0
- package/esm/index.js.map +2 -2
- package/esm/layouts/container/Container.css +8 -0
- package/esm/layouts/container/Container.js +55 -0
- package/esm/layouts/container/Container.js.map +7 -0
- package/esm/layouts/container/Container.sty.js +7 -0
- package/esm/layouts/container/Container.sty.js.map +7 -0
- package/esm/layouts/flex/Flex.js +46 -0
- package/esm/layouts/flex/Flex.js.map +7 -0
- package/esm/layouts/grid/Grid.js +46 -0
- package/esm/layouts/grid/Grid.js.map +7 -0
- package/esm/layouts/index.js +7 -1
- package/esm/layouts/index.js.map +2 -2
- package/esm/styles/colorUtils.css +80 -0
- package/esm/styles/colorUtils.sty.js +9 -0
- package/esm/styles/colorUtils.sty.js.map +7 -0
- package/esm/styles/container.css +64 -0
- package/esm/styles/container.sty.js +9 -0
- package/esm/styles/container.sty.js.map +7 -0
- package/esm/styles/ellipsis.css +5 -0
- package/esm/styles/ellipsis.sty.js +6 -0
- package/esm/styles/ellipsis.sty.js.map +7 -0
- package/esm/styles/extract-util.js +15 -0
- package/esm/styles/extract-util.js.map +7 -0
- package/esm/styles/getFlexStyles.js +69 -0
- package/esm/styles/getFlexStyles.js.map +7 -0
- package/esm/styles/getGapSprinkles.js +18 -0
- package/esm/styles/getGapSprinkles.js.map +7 -0
- package/esm/styles/getGridFlexPositionSprinkles.js +25 -0
- package/esm/styles/getGridFlexPositionSprinkles.js.map +7 -0
- package/esm/styles/getGridStyles.js +78 -0
- package/esm/styles/getGridStyles.js.map +7 -0
- package/esm/styles/getLayoutSizeStyles.js +21 -0
- package/esm/styles/getLayoutSizeStyles.js.map +7 -0
- package/esm/styles/getSpacingSprinkles.js +50 -0
- package/esm/styles/getSpacingSprinkles.js.map +7 -0
- package/esm/styles/index.js +49 -0
- package/esm/styles/index.js.map +7 -0
- package/esm/styles/safe-sprinkles.js +17 -0
- package/esm/styles/safe-sprinkles.js.map +7 -0
- package/esm/styles/sprinkle-properties.js +137 -0
- package/esm/styles/sprinkle-properties.js.map +7 -0
- package/esm/styles/sprinkles.css +786 -0
- package/esm/styles/sprinkles.sty.js +9 -0
- package/esm/styles/sprinkles.sty.js.map +7 -0
- package/esm/typography/Link/Link.js.map +2 -2
- package/esm/typography/List/List.js.map +1 -1
- package/esm/typography/Text/Text.js.map +1 -1
- package/esm/typography/TextEllipsis/TextEllipsis.js.map +1 -1
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/lang/en.json +6 -0
- package/lang/uncompiled/en.json +4 -0
- package/layouts/container/Container.css +8 -0
- package/layouts/container/Container.d.ts +34 -0
- package/layouts/container/Container.js +80 -0
- package/layouts/container/Container.sty.d.ts +1 -0
- package/layouts/container/Container.sty.js +25 -0
- package/layouts/flex/Flex.d.ts +23 -0
- package/layouts/flex/Flex.js +72 -0
- package/layouts/grid/Grid.d.ts +23 -0
- package/layouts/grid/Grid.js +72 -0
- package/layouts/index.d.ts +4 -0
- package/layouts/index.js +7 -1
- package/package.json +35 -20
- package/styles/colorUtils.css +80 -0
- package/styles/colorUtils.sty.d.ts +56 -0
- package/styles/colorUtils.sty.js +27 -0
- package/styles/container.css +64 -0
- package/styles/container.sty.d.ts +54 -0
- package/styles/container.sty.js +27 -0
- package/styles/ellipsis.css +5 -0
- package/styles/ellipsis.sty.d.ts +5 -0
- package/styles/ellipsis.sty.js +24 -0
- package/styles/extract-util.d.ts +9 -0
- package/styles/extract-util.js +33 -0
- package/styles/getFlexStyles.d.ts +64 -0
- package/styles/getFlexStyles.js +95 -0
- package/styles/getGapSprinkles.d.ts +19 -0
- package/styles/getGapSprinkles.js +36 -0
- package/styles/getGridFlexPositionSprinkles.d.ts +35 -0
- package/styles/getGridFlexPositionSprinkles.js +43 -0
- package/styles/getGridStyles.d.ts +74 -0
- package/styles/getGridStyles.js +100 -0
- package/styles/getLayoutSizeStyles.d.ts +29 -0
- package/styles/getLayoutSizeStyles.js +39 -0
- package/styles/getSpacingSprinkles.d.ts +74 -0
- package/styles/getSpacingSprinkles.js +68 -0
- package/styles/index.d.ts +11 -0
- package/styles/index.js +47 -0
- package/styles/safe-sprinkles.d.ts +6 -0
- package/styles/safe-sprinkles.js +35 -0
- package/styles/sprinkle-properties.d.ts +257 -0
- package/styles/sprinkle-properties.js +165 -0
- package/styles/sprinkles.css +786 -0
- package/styles/sprinkles.sty.d.ts +913 -0
- package/styles/sprinkles.sty.js +27 -0
- package/styles/textStyle.sty.d.ts +1 -0
- package/testing/mocks/canvas-mock.js +6 -1
- package/typography/Link/Link.d.ts +1 -2
- package/typography/List/List.d.ts +4 -4
- package/typography/Text/Text.d.ts +3 -3
- package/typography/TextEllipsis/TextEllipsis.d.ts +3 -3
- package/typography/TextEllipsis/TextEllipsis.js +2 -2
- package/core/types/focusable-element.d.ts +0 -5
- package/esm/core/types/focusable-element.js +0 -1
- package/esm/core/types/focusable-element.js.map +0 -7
package/styles/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
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 styles_exports = {};
|
|
19
|
+
__export(styles_exports, {
|
|
20
|
+
_extract: () => import_extract_util.extract,
|
|
21
|
+
_getGapSprinkles: () => import_getGapSprinkles.getGapSprinkles,
|
|
22
|
+
_getGridFlexPositionSprinkles: () => import_getGridFlexPositionSprinkles.getGridFlexPositionSprinkles,
|
|
23
|
+
_getLayoutSizeStyles: () => import_getLayoutSizeStyles.getLayoutSizeStyles,
|
|
24
|
+
_getSpacingSprinkles: () => import_getSpacingSprinkles.getSpacingSprinkles,
|
|
25
|
+
_globalSprinkles: () => import_safe_sprinkles.globalSprinkles,
|
|
26
|
+
_textStyleCSS: () => import_textStyle_css.textStyleCSS,
|
|
27
|
+
alignContentPositionProps: () => import_sprinkle_properties.alignContentPositionProps,
|
|
28
|
+
alignItemsPositionProps: () => import_sprinkle_properties.alignItemsPositionProps,
|
|
29
|
+
alignSelfPositionProps: () => import_sprinkle_properties.alignSelfPositionProps,
|
|
30
|
+
justifyContentPositionProps: () => import_sprinkle_properties.justifyContentPositionProps,
|
|
31
|
+
justifyItemsPositionProps: () => import_sprinkle_properties.justifyItemsPositionProps,
|
|
32
|
+
justifySelfPositionProps: () => import_sprinkle_properties.justifySelfPositionProps,
|
|
33
|
+
marginProperties: () => import_sprinkle_properties.marginProperties,
|
|
34
|
+
placeContentPositionProps: () => import_sprinkle_properties.placeContentPositionProps,
|
|
35
|
+
placeItemsPositionProps: () => import_sprinkle_properties.placeItemsPositionProps,
|
|
36
|
+
placeSelfPositionProps: () => import_sprinkle_properties.placeSelfPositionProps,
|
|
37
|
+
spacingProperties: () => import_sprinkle_properties.spacingProperties
|
|
38
|
+
});
|
|
39
|
+
module.exports = __toCommonJS(styles_exports);
|
|
40
|
+
var import_getGridFlexPositionSprinkles = require("./getGridFlexPositionSprinkles.js");
|
|
41
|
+
var import_getGapSprinkles = require("./getGapSprinkles.js");
|
|
42
|
+
var import_getSpacingSprinkles = require("./getSpacingSprinkles.js");
|
|
43
|
+
var import_getLayoutSizeStyles = require("./getLayoutSizeStyles.js");
|
|
44
|
+
var import_sprinkle_properties = require("./sprinkle-properties.js");
|
|
45
|
+
var import_extract_util = require("./extract-util.js");
|
|
46
|
+
var import_safe_sprinkles = require("./safe-sprinkles.js");
|
|
47
|
+
var import_textStyle_css = require("./textStyle.sty.js");
|
|
@@ -0,0 +1,35 @@
|
|
|
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 safe_sprinkles_exports = {};
|
|
19
|
+
__export(safe_sprinkles_exports, {
|
|
20
|
+
globalSprinkles: () => globalSprinkles
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(safe_sprinkles_exports);
|
|
23
|
+
var import_sprinkles_css = require("./sprinkles.sty.js");
|
|
24
|
+
function globalSprinkles(...params) {
|
|
25
|
+
try {
|
|
26
|
+
return (0, import_sprinkles_css.internalSprinkles)(...params);
|
|
27
|
+
} catch (err) {
|
|
28
|
+
if (true) {
|
|
29
|
+
if (err instanceof Error) {
|
|
30
|
+
console.log(err.message);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return "";
|
|
35
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the available gapSizes and their mapping to the tokens.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export declare const spacingProperties: {
|
|
6
|
+
0: string;
|
|
7
|
+
2: string;
|
|
8
|
+
4: string;
|
|
9
|
+
6: string;
|
|
10
|
+
8: string;
|
|
11
|
+
12: string;
|
|
12
|
+
16: string;
|
|
13
|
+
20: string;
|
|
14
|
+
24: string;
|
|
15
|
+
32: string;
|
|
16
|
+
40: string;
|
|
17
|
+
48: string;
|
|
18
|
+
56: string;
|
|
19
|
+
64: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Union type of the available SpacingProperties.
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type SpacingProperties = keyof typeof spacingProperties;
|
|
26
|
+
/**
|
|
27
|
+
* Order of the available gap sizes from smallest to largest.
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export declare const spacingPropertiesOrder: SpacingProperties[];
|
|
31
|
+
/**
|
|
32
|
+
* spacing properties with auto margin.
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
35
|
+
export declare const marginProperties: {
|
|
36
|
+
auto: string;
|
|
37
|
+
0: string;
|
|
38
|
+
2: string;
|
|
39
|
+
4: string;
|
|
40
|
+
6: string;
|
|
41
|
+
8: string;
|
|
42
|
+
12: string;
|
|
43
|
+
16: string;
|
|
44
|
+
20: string;
|
|
45
|
+
24: string;
|
|
46
|
+
32: string;
|
|
47
|
+
40: string;
|
|
48
|
+
48: string;
|
|
49
|
+
56: string;
|
|
50
|
+
64: string;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* Union type of the available margins.
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export type MarginProperties = keyof typeof marginProperties;
|
|
57
|
+
/**
|
|
58
|
+
* Defines the available justify self positions.
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
61
|
+
export declare const justifySelfPositionProps: {
|
|
62
|
+
auto: string;
|
|
63
|
+
baseline: string;
|
|
64
|
+
left: string;
|
|
65
|
+
normal: string;
|
|
66
|
+
right: string;
|
|
67
|
+
stretch: string;
|
|
68
|
+
center: string;
|
|
69
|
+
end: string;
|
|
70
|
+
'flex-end': string;
|
|
71
|
+
'flex-start': string;
|
|
72
|
+
'self-end': string;
|
|
73
|
+
'self-start': string;
|
|
74
|
+
start: string;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Union type of the available justify self positions.
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export type JustifySelfPositionProps = keyof typeof justifySelfPositionProps;
|
|
81
|
+
/**
|
|
82
|
+
* Defines the available align self positions.
|
|
83
|
+
* @public
|
|
84
|
+
*/
|
|
85
|
+
export declare const alignSelfPositionProps: {
|
|
86
|
+
auto: string;
|
|
87
|
+
baseline: string;
|
|
88
|
+
normal: string;
|
|
89
|
+
stretch: string;
|
|
90
|
+
center: string;
|
|
91
|
+
end: string;
|
|
92
|
+
'flex-end': string;
|
|
93
|
+
'flex-start': string;
|
|
94
|
+
'self-end': string;
|
|
95
|
+
'self-start': string;
|
|
96
|
+
start: string;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Union type of the available align self positions.
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export type AlignSelfPositionProps = keyof typeof alignSelfPositionProps;
|
|
103
|
+
/**
|
|
104
|
+
* Defines the available place self positions.
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
export declare const placeSelfPositionProps: {
|
|
108
|
+
auto: string;
|
|
109
|
+
baseline: string;
|
|
110
|
+
normal: string;
|
|
111
|
+
stretch: string;
|
|
112
|
+
center: string;
|
|
113
|
+
end: string;
|
|
114
|
+
'flex-end': string;
|
|
115
|
+
'flex-start': string;
|
|
116
|
+
'self-end': string;
|
|
117
|
+
'self-start': string;
|
|
118
|
+
start: string;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Union type of the available place self positions.
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
export type PlaceSelfPositionProps = keyof typeof placeSelfPositionProps;
|
|
125
|
+
/**
|
|
126
|
+
* Defines the available justify items positions.
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
export declare const justifyItemsPositionProps: {
|
|
130
|
+
baseline: string;
|
|
131
|
+
left: string;
|
|
132
|
+
legacy: string;
|
|
133
|
+
normal: string;
|
|
134
|
+
right: string;
|
|
135
|
+
stretch: string;
|
|
136
|
+
center: string;
|
|
137
|
+
end: string;
|
|
138
|
+
'flex-end': string;
|
|
139
|
+
'flex-start': string;
|
|
140
|
+
'self-end': string;
|
|
141
|
+
'self-start': string;
|
|
142
|
+
start: string;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Union type of the available justify items positions.
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
export type JustifyItemsPositionProps = keyof typeof justifyItemsPositionProps;
|
|
149
|
+
/**
|
|
150
|
+
* Defines the available align items positions.
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
export declare const alignItemsPositionProps: {
|
|
154
|
+
baseline: string;
|
|
155
|
+
normal: string;
|
|
156
|
+
stretch: string;
|
|
157
|
+
center: string;
|
|
158
|
+
end: string;
|
|
159
|
+
'flex-end': string;
|
|
160
|
+
'flex-start': string;
|
|
161
|
+
'self-end': string;
|
|
162
|
+
'self-start': string;
|
|
163
|
+
start: string;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Union type of the available align items positions
|
|
167
|
+
* @public
|
|
168
|
+
*/
|
|
169
|
+
export type AlignItemsPositionProps = keyof typeof alignItemsPositionProps;
|
|
170
|
+
/**
|
|
171
|
+
* Defines the available place items positions
|
|
172
|
+
* @public
|
|
173
|
+
*/
|
|
174
|
+
export declare const placeItemsPositionProps: {
|
|
175
|
+
baseline: string;
|
|
176
|
+
normal: string;
|
|
177
|
+
stretch: string;
|
|
178
|
+
center: string;
|
|
179
|
+
end: string;
|
|
180
|
+
'flex-end': string;
|
|
181
|
+
'flex-start': string;
|
|
182
|
+
'self-end': string;
|
|
183
|
+
'self-start': string;
|
|
184
|
+
start: string;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Union type of the available place items positions
|
|
188
|
+
* @public
|
|
189
|
+
*/
|
|
190
|
+
export type PlaceItemsPositionProps = keyof typeof placeItemsPositionProps;
|
|
191
|
+
/**
|
|
192
|
+
* Defines the available justify content positions
|
|
193
|
+
* @public
|
|
194
|
+
*/
|
|
195
|
+
export declare const justifyContentPositionProps: {
|
|
196
|
+
left: string;
|
|
197
|
+
normal: string;
|
|
198
|
+
right: string;
|
|
199
|
+
center: string;
|
|
200
|
+
end: string;
|
|
201
|
+
'flex-end': string;
|
|
202
|
+
'flex-start': string;
|
|
203
|
+
start: string;
|
|
204
|
+
'space-around': string;
|
|
205
|
+
'space-between': string;
|
|
206
|
+
'space-evenly': string;
|
|
207
|
+
stretch: string;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Union type of the available justify content positions
|
|
211
|
+
* @public
|
|
212
|
+
*/
|
|
213
|
+
export type JustifyContentPositionProps = keyof typeof justifyContentPositionProps;
|
|
214
|
+
/**
|
|
215
|
+
* Defines the available align content positions
|
|
216
|
+
* @public
|
|
217
|
+
*/
|
|
218
|
+
export declare const alignContentPositionProps: {
|
|
219
|
+
baseline: string;
|
|
220
|
+
normal: string;
|
|
221
|
+
center: string;
|
|
222
|
+
end: string;
|
|
223
|
+
'flex-end': string;
|
|
224
|
+
'flex-start': string;
|
|
225
|
+
start: string;
|
|
226
|
+
'space-around': string;
|
|
227
|
+
'space-between': string;
|
|
228
|
+
'space-evenly': string;
|
|
229
|
+
stretch: string;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Union type of the available align content positions
|
|
233
|
+
* @public
|
|
234
|
+
*/
|
|
235
|
+
export type AlignContentPositionProps = keyof typeof alignContentPositionProps;
|
|
236
|
+
/**
|
|
237
|
+
* Defines the available place content positions
|
|
238
|
+
* @public
|
|
239
|
+
*/
|
|
240
|
+
export declare const placeContentPositionProps: {
|
|
241
|
+
baseline: string;
|
|
242
|
+
normal: string;
|
|
243
|
+
center: string;
|
|
244
|
+
end: string;
|
|
245
|
+
'flex-end': string;
|
|
246
|
+
'flex-start': string;
|
|
247
|
+
start: string;
|
|
248
|
+
'space-around': string;
|
|
249
|
+
'space-between': string;
|
|
250
|
+
'space-evenly': string;
|
|
251
|
+
stretch: string;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Union type of the available place content positions
|
|
255
|
+
* @public
|
|
256
|
+
*/
|
|
257
|
+
export type PlaceContentPositionProps = keyof typeof placeContentPositionProps;
|
|
@@ -0,0 +1,165 @@
|
|
|
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 sprinkle_properties_exports = {};
|
|
29
|
+
__export(sprinkle_properties_exports, {
|
|
30
|
+
alignContentPositionProps: () => alignContentPositionProps,
|
|
31
|
+
alignItemsPositionProps: () => alignItemsPositionProps,
|
|
32
|
+
alignSelfPositionProps: () => alignSelfPositionProps,
|
|
33
|
+
justifyContentPositionProps: () => justifyContentPositionProps,
|
|
34
|
+
justifyItemsPositionProps: () => justifyItemsPositionProps,
|
|
35
|
+
justifySelfPositionProps: () => justifySelfPositionProps,
|
|
36
|
+
marginProperties: () => marginProperties,
|
|
37
|
+
placeContentPositionProps: () => placeContentPositionProps,
|
|
38
|
+
placeItemsPositionProps: () => placeItemsPositionProps,
|
|
39
|
+
placeSelfPositionProps: () => placeSelfPositionProps,
|
|
40
|
+
spacingProperties: () => spacingProperties,
|
|
41
|
+
spacingPropertiesOrder: () => spacingPropertiesOrder
|
|
42
|
+
});
|
|
43
|
+
module.exports = __toCommonJS(sprinkle_properties_exports);
|
|
44
|
+
var import_spacings = __toESM(require("@dynatrace/strato-design-tokens/spacings"));
|
|
45
|
+
const spacingProperties = {
|
|
46
|
+
0: import_spacings.default.Size0,
|
|
47
|
+
2: import_spacings.default.Size2,
|
|
48
|
+
4: import_spacings.default.Size4,
|
|
49
|
+
6: import_spacings.default.Size6,
|
|
50
|
+
8: import_spacings.default.Size8,
|
|
51
|
+
12: import_spacings.default.Size12,
|
|
52
|
+
16: import_spacings.default.Size16,
|
|
53
|
+
20: import_spacings.default.Size20,
|
|
54
|
+
24: import_spacings.default.Size24,
|
|
55
|
+
32: import_spacings.default.Size32,
|
|
56
|
+
40: import_spacings.default.Size40,
|
|
57
|
+
48: import_spacings.default.Size48,
|
|
58
|
+
56: import_spacings.default.Size56,
|
|
59
|
+
64: import_spacings.default.Size64
|
|
60
|
+
};
|
|
61
|
+
const spacingPropertiesOrder = [
|
|
62
|
+
0,
|
|
63
|
+
2,
|
|
64
|
+
4,
|
|
65
|
+
6,
|
|
66
|
+
8,
|
|
67
|
+
12,
|
|
68
|
+
16,
|
|
69
|
+
20,
|
|
70
|
+
24,
|
|
71
|
+
32,
|
|
72
|
+
40,
|
|
73
|
+
48,
|
|
74
|
+
56,
|
|
75
|
+
64
|
|
76
|
+
];
|
|
77
|
+
const marginProperties = {
|
|
78
|
+
...spacingProperties,
|
|
79
|
+
auto: "auto"
|
|
80
|
+
};
|
|
81
|
+
const selfPosition = {
|
|
82
|
+
center: "center",
|
|
83
|
+
end: "end",
|
|
84
|
+
"flex-end": "flex-end",
|
|
85
|
+
"flex-start": "flex-start",
|
|
86
|
+
"self-end": "self-end",
|
|
87
|
+
"self-start": "self-start",
|
|
88
|
+
start: "start"
|
|
89
|
+
};
|
|
90
|
+
const contentDistribution = {
|
|
91
|
+
"space-around": "space-around",
|
|
92
|
+
"space-between": "space-between",
|
|
93
|
+
"space-evenly": "space-evenly",
|
|
94
|
+
stretch: "stretch"
|
|
95
|
+
};
|
|
96
|
+
const contentPosition = {
|
|
97
|
+
center: "center",
|
|
98
|
+
end: "end",
|
|
99
|
+
"flex-end": "flex-end",
|
|
100
|
+
"flex-start": "flex-start",
|
|
101
|
+
start: "start"
|
|
102
|
+
};
|
|
103
|
+
const justifySelfPositionProps = {
|
|
104
|
+
...selfPosition,
|
|
105
|
+
auto: "auto",
|
|
106
|
+
baseline: "baseline",
|
|
107
|
+
left: "left",
|
|
108
|
+
normal: "normal",
|
|
109
|
+
right: "right",
|
|
110
|
+
stretch: "stretch"
|
|
111
|
+
};
|
|
112
|
+
const alignSelfPositionProps = {
|
|
113
|
+
...selfPosition,
|
|
114
|
+
auto: "auto",
|
|
115
|
+
baseline: "baseline",
|
|
116
|
+
normal: "normal",
|
|
117
|
+
stretch: "stretch"
|
|
118
|
+
};
|
|
119
|
+
const placeSelfPositionProps = {
|
|
120
|
+
...selfPosition,
|
|
121
|
+
auto: "auto",
|
|
122
|
+
baseline: "baseline",
|
|
123
|
+
normal: "normal",
|
|
124
|
+
stretch: "stretch"
|
|
125
|
+
};
|
|
126
|
+
const justifyItemsPositionProps = {
|
|
127
|
+
...selfPosition,
|
|
128
|
+
baseline: "baseline",
|
|
129
|
+
left: "left",
|
|
130
|
+
legacy: "legacy",
|
|
131
|
+
normal: "normal",
|
|
132
|
+
right: "right",
|
|
133
|
+
stretch: "stretch"
|
|
134
|
+
};
|
|
135
|
+
const alignItemsPositionProps = {
|
|
136
|
+
...selfPosition,
|
|
137
|
+
baseline: "baseline",
|
|
138
|
+
normal: "normal",
|
|
139
|
+
stretch: "stretch"
|
|
140
|
+
};
|
|
141
|
+
const placeItemsPositionProps = {
|
|
142
|
+
...selfPosition,
|
|
143
|
+
baseline: "baseline",
|
|
144
|
+
normal: "normal",
|
|
145
|
+
stretch: "stretch"
|
|
146
|
+
};
|
|
147
|
+
const justifyContentPositionProps = {
|
|
148
|
+
...contentDistribution,
|
|
149
|
+
...contentPosition,
|
|
150
|
+
left: "left",
|
|
151
|
+
normal: "normal",
|
|
152
|
+
right: "right"
|
|
153
|
+
};
|
|
154
|
+
const alignContentPositionProps = {
|
|
155
|
+
...contentDistribution,
|
|
156
|
+
...contentPosition,
|
|
157
|
+
baseline: "baseline",
|
|
158
|
+
normal: "normal"
|
|
159
|
+
};
|
|
160
|
+
const placeContentPositionProps = {
|
|
161
|
+
...contentDistribution,
|
|
162
|
+
...contentPosition,
|
|
163
|
+
baseline: "baseline",
|
|
164
|
+
normal: "normal"
|
|
165
|
+
};
|