@dynatrace/strato-components 0.84.42 → 0.84.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/content/index.d.ts +7 -0
  2. package/content/index.js +25 -0
  3. package/content/progress/ProgressBar.css +52 -0
  4. package/content/progress/ProgressBar.d.ts +56 -0
  5. package/content/progress/ProgressBar.js +191 -0
  6. package/content/progress/ProgressBar.sty.d.ts +42 -0
  7. package/content/progress/ProgressBar.sty.js +28 -0
  8. package/content/progress/ProgressBarIcon.css +5 -0
  9. package/content/progress/ProgressBarIcon.d.ts +15 -0
  10. package/content/progress/ProgressBarIcon.js +68 -0
  11. package/content/progress/ProgressBarIcon.sty.d.ts +1 -0
  12. package/content/progress/ProgressBarIcon.sty.js +25 -0
  13. package/content/progress/ProgressBarLabel.css +9 -0
  14. package/content/progress/ProgressBarLabel.d.ts +15 -0
  15. package/content/progress/ProgressBarLabel.js +75 -0
  16. package/content/progress/ProgressBarLabel.sty.d.ts +13 -0
  17. package/content/progress/ProgressBarLabel.sty.js +26 -0
  18. package/content/progress/ProgressBarValue.css +28 -0
  19. package/content/progress/ProgressBarValue.d.ts +15 -0
  20. package/content/progress/ProgressBarValue.js +72 -0
  21. package/content/progress/ProgressBarValue.sty.d.ts +34 -0
  22. package/content/progress/ProgressBarValue.sty.js +26 -0
  23. package/content/progress/ProgressCircle.css +52 -0
  24. package/content/progress/ProgressCircle.d.ts +51 -0
  25. package/content/progress/ProgressCircle.js +174 -0
  26. package/content/progress/ProgressCircle.sty.d.ts +41 -0
  27. package/content/progress/ProgressCircle.sty.js +37 -0
  28. package/content/progress/contexts/SharedProgressBarPropsContext.d.ts +9 -0
  29. package/content/progress/contexts/SharedProgressBarPropsContext.js +38 -0
  30. package/content/progress/hooks/useProgressAriaProps.d.ts +38 -0
  31. package/content/progress/hooks/useProgressAriaProps.js +63 -0
  32. package/content/progress/hooks/useProgressBarPropsContext.d.ts +2 -0
  33. package/content/progress/hooks/useProgressBarPropsContext.js +32 -0
  34. package/content/progress/utils.d.ts +2 -0
  35. package/content/progress/utils.js +50 -0
  36. package/core/components/app-root/AppRoot.d.ts +2 -2
  37. package/core/hooks/useAriaLabelingProps.d.ts +6 -0
  38. package/core/hooks/useAriaLabelingProps.js +30 -0
  39. package/core/hooks/useCurrentTheme.d.ts +1 -1
  40. package/core/hooks/useId.d.ts +12 -0
  41. package/core/hooks/useId.js +32 -0
  42. package/core/hooks/useSafeForwardProps.d.ts +10 -0
  43. package/core/hooks/useSafeForwardProps.js +34 -0
  44. package/core/index.d.ts +11 -3
  45. package/core/index.js +12 -0
  46. package/core/types/a11y-props.d.ts +8 -1
  47. package/core/types/data-props.d.ts +1 -1
  48. package/core/types/dom.d.ts +2 -13
  49. package/core/types/masking-props.d.ts +2 -1
  50. package/core/types/polymorph.d.ts +10 -7
  51. package/core/types/role-variant.d.ts +10 -0
  52. package/core/types/{focusable-element.js → role-variant.js} +17 -2
  53. package/core/types/styling-props.d.ts +1 -1
  54. package/core/types/with-children.d.ts +1 -1
  55. package/core/utils/_is-string-children.d.ts +6 -0
  56. package/core/utils/_is-string-children.js +44 -0
  57. package/core/utils/isBrowser.d.ts +1 -1
  58. package/core/utils/merge-props.d.ts +4 -5
  59. package/core/utils/seed-random.d.ts +5 -0
  60. package/core/utils/seed-random.js +34 -0
  61. package/core/utils/uuidv4.d.ts +5 -0
  62. package/core/utils/uuidv4.js +31 -0
  63. package/esm/content/index.js +7 -0
  64. package/esm/content/index.js.map +7 -0
  65. package/esm/content/progress/ProgressBar.css +52 -0
  66. package/esm/content/progress/ProgressBar.js +163 -0
  67. package/esm/content/progress/ProgressBar.js.map +7 -0
  68. package/esm/content/progress/ProgressBar.sty.js +10 -0
  69. package/esm/content/progress/ProgressBar.sty.js.map +7 -0
  70. package/esm/content/progress/ProgressBarIcon.css +5 -0
  71. package/esm/content/progress/ProgressBarIcon.js +40 -0
  72. package/esm/content/progress/ProgressBarIcon.js.map +7 -0
  73. package/esm/content/progress/ProgressBarIcon.sty.js +7 -0
  74. package/esm/content/progress/ProgressBarIcon.sty.js.map +7 -0
  75. package/esm/content/progress/ProgressBarLabel.css +9 -0
  76. package/esm/content/progress/ProgressBarLabel.js +47 -0
  77. package/esm/content/progress/ProgressBarLabel.js.map +7 -0
  78. package/esm/content/progress/ProgressBarLabel.sty.js +8 -0
  79. package/esm/content/progress/ProgressBarLabel.sty.js.map +7 -0
  80. package/esm/content/progress/ProgressBarValue.css +28 -0
  81. package/esm/content/progress/ProgressBarValue.js +44 -0
  82. package/esm/content/progress/ProgressBarValue.js.map +7 -0
  83. package/esm/content/progress/ProgressBarValue.sty.js +8 -0
  84. package/esm/content/progress/ProgressBarValue.sty.js.map +7 -0
  85. package/esm/content/progress/ProgressCircle.css +52 -0
  86. package/esm/content/progress/ProgressCircle.js +153 -0
  87. package/esm/content/progress/ProgressCircle.js.map +7 -0
  88. package/esm/content/progress/ProgressCircle.sty.js +19 -0
  89. package/esm/content/progress/ProgressCircle.sty.js.map +7 -0
  90. package/esm/content/progress/contexts/SharedProgressBarPropsContext.js +10 -0
  91. package/esm/content/progress/contexts/SharedProgressBarPropsContext.js.map +7 -0
  92. package/esm/content/progress/hooks/useProgressAriaProps.js +45 -0
  93. package/esm/content/progress/hooks/useProgressAriaProps.js.map +7 -0
  94. package/esm/content/progress/hooks/useProgressBarPropsContext.js +16 -0
  95. package/esm/content/progress/hooks/useProgressBarPropsContext.js.map +7 -0
  96. package/esm/content/progress/utils.js +22 -0
  97. package/esm/content/progress/utils.js.map +7 -0
  98. package/esm/core/components/app-root/AppRoot.js.map +1 -1
  99. package/esm/core/hooks/useAriaLabelingProps.js +12 -0
  100. package/esm/core/hooks/useAriaLabelingProps.js.map +7 -0
  101. package/esm/core/hooks/useCurrentTheme.js.map +1 -1
  102. package/esm/core/hooks/useId.js +14 -0
  103. package/esm/core/hooks/useId.js.map +7 -0
  104. package/esm/core/hooks/useSafeForwardProps.js +16 -0
  105. package/esm/core/hooks/useSafeForwardProps.js.map +7 -0
  106. package/esm/core/index.js +12 -0
  107. package/esm/core/index.js.map +2 -2
  108. package/esm/core/types/role-variant.js +12 -0
  109. package/esm/core/types/role-variant.js.map +7 -0
  110. package/esm/core/utils/_is-string-children.js +16 -0
  111. package/esm/core/utils/_is-string-children.js.map +7 -0
  112. package/esm/core/utils/isBrowser.js.map +1 -1
  113. package/esm/core/utils/merge-props.js.map +2 -2
  114. package/esm/core/utils/seed-random.js +16 -0
  115. package/esm/core/utils/seed-random.js.map +7 -0
  116. package/esm/core/utils/uuidv4.js +13 -0
  117. package/esm/core/utils/uuidv4.js.map +7 -0
  118. package/esm/index.js +2 -0
  119. package/esm/index.js.map +2 -2
  120. package/esm/layouts/container/Container.css +8 -0
  121. package/esm/layouts/container/Container.js +55 -0
  122. package/esm/layouts/container/Container.js.map +7 -0
  123. package/esm/layouts/container/Container.sty.js +7 -0
  124. package/esm/layouts/container/Container.sty.js.map +7 -0
  125. package/esm/layouts/flex/Flex.js +46 -0
  126. package/esm/layouts/flex/Flex.js.map +7 -0
  127. package/esm/layouts/grid/Grid.js +46 -0
  128. package/esm/layouts/grid/Grid.js.map +7 -0
  129. package/esm/layouts/index.js +7 -1
  130. package/esm/layouts/index.js.map +2 -2
  131. package/esm/styles/colorUtils.css +80 -0
  132. package/esm/styles/colorUtils.sty.js +9 -0
  133. package/esm/styles/colorUtils.sty.js.map +7 -0
  134. package/esm/styles/container.css +64 -0
  135. package/esm/styles/container.sty.js +9 -0
  136. package/esm/styles/container.sty.js.map +7 -0
  137. package/esm/styles/ellipsis.css +5 -0
  138. package/esm/styles/ellipsis.sty.js +6 -0
  139. package/esm/styles/ellipsis.sty.js.map +7 -0
  140. package/esm/styles/extract-util.js +15 -0
  141. package/esm/styles/extract-util.js.map +7 -0
  142. package/esm/styles/getFlexStyles.js +69 -0
  143. package/esm/styles/getFlexStyles.js.map +7 -0
  144. package/esm/styles/getGapSprinkles.js +18 -0
  145. package/esm/styles/getGapSprinkles.js.map +7 -0
  146. package/esm/styles/getGridFlexPositionSprinkles.js +25 -0
  147. package/esm/styles/getGridFlexPositionSprinkles.js.map +7 -0
  148. package/esm/styles/getGridStyles.js +78 -0
  149. package/esm/styles/getGridStyles.js.map +7 -0
  150. package/esm/styles/getLayoutSizeStyles.js +21 -0
  151. package/esm/styles/getLayoutSizeStyles.js.map +7 -0
  152. package/esm/styles/getSpacingSprinkles.js +50 -0
  153. package/esm/styles/getSpacingSprinkles.js.map +7 -0
  154. package/esm/styles/index.js +49 -0
  155. package/esm/styles/index.js.map +7 -0
  156. package/esm/styles/safe-sprinkles.js +17 -0
  157. package/esm/styles/safe-sprinkles.js.map +7 -0
  158. package/esm/styles/sprinkle-properties.js +137 -0
  159. package/esm/styles/sprinkle-properties.js.map +7 -0
  160. package/esm/styles/sprinkles.css +786 -0
  161. package/esm/styles/sprinkles.sty.js +9 -0
  162. package/esm/styles/sprinkles.sty.js.map +7 -0
  163. package/esm/typography/Link/Link.js.map +2 -2
  164. package/esm/typography/List/List.js.map +1 -1
  165. package/esm/typography/Text/Text.js.map +1 -1
  166. package/esm/typography/TextEllipsis/TextEllipsis.js.map +1 -1
  167. package/index.d.ts +2 -0
  168. package/index.js +2 -0
  169. package/lang/en.json +6 -0
  170. package/lang/uncompiled/en.json +4 -0
  171. package/layouts/container/Container.css +8 -0
  172. package/layouts/container/Container.d.ts +34 -0
  173. package/layouts/container/Container.js +80 -0
  174. package/layouts/container/Container.sty.d.ts +1 -0
  175. package/layouts/container/Container.sty.js +25 -0
  176. package/layouts/flex/Flex.d.ts +23 -0
  177. package/layouts/flex/Flex.js +72 -0
  178. package/layouts/grid/Grid.d.ts +23 -0
  179. package/layouts/grid/Grid.js +72 -0
  180. package/layouts/index.d.ts +4 -0
  181. package/layouts/index.js +7 -1
  182. package/package.json +25 -10
  183. package/styles/colorUtils.css +80 -0
  184. package/styles/colorUtils.sty.d.ts +56 -0
  185. package/styles/colorUtils.sty.js +27 -0
  186. package/styles/container.css +64 -0
  187. package/styles/container.sty.d.ts +54 -0
  188. package/styles/container.sty.js +27 -0
  189. package/styles/ellipsis.css +5 -0
  190. package/styles/ellipsis.sty.d.ts +5 -0
  191. package/styles/ellipsis.sty.js +24 -0
  192. package/styles/extract-util.d.ts +9 -0
  193. package/styles/extract-util.js +33 -0
  194. package/styles/getFlexStyles.d.ts +64 -0
  195. package/styles/getFlexStyles.js +95 -0
  196. package/styles/getGapSprinkles.d.ts +19 -0
  197. package/styles/getGapSprinkles.js +36 -0
  198. package/styles/getGridFlexPositionSprinkles.d.ts +35 -0
  199. package/styles/getGridFlexPositionSprinkles.js +43 -0
  200. package/styles/getGridStyles.d.ts +74 -0
  201. package/styles/getGridStyles.js +100 -0
  202. package/styles/getLayoutSizeStyles.d.ts +29 -0
  203. package/styles/getLayoutSizeStyles.js +39 -0
  204. package/styles/getSpacingSprinkles.d.ts +74 -0
  205. package/styles/getSpacingSprinkles.js +68 -0
  206. package/styles/index.d.ts +11 -0
  207. package/styles/index.js +47 -0
  208. package/styles/safe-sprinkles.d.ts +6 -0
  209. package/styles/safe-sprinkles.js +35 -0
  210. package/styles/sprinkle-properties.d.ts +257 -0
  211. package/styles/sprinkle-properties.js +165 -0
  212. package/styles/sprinkles.css +786 -0
  213. package/styles/sprinkles.sty.d.ts +913 -0
  214. package/styles/sprinkles.sty.js +27 -0
  215. package/styles/textStyle.sty.d.ts +1 -0
  216. package/testing/mocks/canvas-mock.js +6 -1
  217. package/typography/Link/Link.d.ts +1 -2
  218. package/typography/List/List.d.ts +4 -4
  219. package/typography/Text/Text.d.ts +3 -3
  220. package/typography/TextEllipsis/TextEllipsis.d.ts +3 -3
  221. package/typography/TextEllipsis/TextEllipsis.js +2 -2
  222. package/core/types/focusable-element.d.ts +0 -5
  223. package/esm/core/types/focusable-element.js +0 -1
  224. package/esm/core/types/focusable-element.js.map +0 -7
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styles/extract-util.ts"],
4
+ "sourcesContent": ["/**\n * Helper function that will extract all props from an object and will return them.\n * The rest returned are the ones that don\u00B4t belong to the object.\n * @internal\n */\nexport function extract<T extends object, K extends keyof T>(\n obj: T,\n keys: Array<K>,\n): { extracted: Pick<T, K>; rest: Omit<T, K> } {\n const extracted: Pick<T, K> = {} as Pick<T, K>;\n const rest: Omit<T, K> = { ...obj } as Omit<T, K>;\n for (const key of keys) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n extracted[key] = obj[key];\n // @ts-expect-error: Typesafety is not given for hasOwnProperty where it states that key could still be of type K\n delete rest[key];\n }\n }\n\n return { extracted, rest };\n}\n"],
5
+ "mappings": "AAKO,SAAS,QACd,KACA,MAC6C;AAC7C,QAAM,YAAwB,CAAC;AAC/B,QAAM,OAAmB,EAAE,GAAG,IAAI;AAClC,aAAW,OAAO,MAAM;AACtB,QAAI,OAAO,UAAU,eAAe,KAAK,KAAK,GAAG,GAAG;AAClD,gBAAU,GAAG,IAAI,IAAI,GAAG;AAExB,aAAO,KAAK,GAAG;AAAA,IACjB;AAAA,EACF;AAEA,SAAO,EAAE,WAAW,KAAK;AAC3B;",
6
+ "names": []
7
+ }
@@ -0,0 +1,69 @@
1
+ import clsx from "clsx";
2
+ import { extract } from "./extract-util.js";
3
+ import { getGapSprinkles } from "./getGapSprinkles.js";
4
+ import {
5
+ getGridFlexPositionSprinkles
6
+ } from "./getGridFlexPositionSprinkles.js";
7
+ import { getLayoutSizeStyles } from "./getLayoutSizeStyles.js";
8
+ import { getSpacingSprinkles } from "./getSpacingSprinkles.js";
9
+ import { globalSprinkles } from "./safe-sprinkles.js";
10
+ const flexItemPropKeys = ["flexItem"];
11
+ const flexStylePropKeys = [
12
+ /* Flex item props */
13
+ "order",
14
+ "flexGrow",
15
+ "flexShrink",
16
+ "flexBasis",
17
+ "flex",
18
+ /* Grid container props */
19
+ "flexDirection",
20
+ "flexWrap",
21
+ "flexFlow",
22
+ /* Grid item props */
23
+ "gridColumnStart",
24
+ "gridColumnEnd",
25
+ "gridRowStart",
26
+ "gridRowEnd",
27
+ "gridColumn",
28
+ "gridRow",
29
+ "gridArea"
30
+ ];
31
+ function extractFlexItem(props) {
32
+ const { extracted, rest } = extract(props, flexItemPropKeys);
33
+ return { extracted, rest };
34
+ }
35
+ function getFlexStyles(props, defaults = {}) {
36
+ const { extracted: additionalFlexStyles, rest } = extract(
37
+ props,
38
+ flexStylePropKeys
39
+ );
40
+ const [sizeStyles, afterSizeExtraction] = getLayoutSizeStyles(rest, defaults);
41
+ const [gridFlexClassNames, gridFlexRemainingProps] = getGridFlexPositionSprinkles(afterSizeExtraction, defaults);
42
+ const [spacingClassNames, spacingRemainingProps] = getSpacingSprinkles(
43
+ gridFlexRemainingProps,
44
+ defaults
45
+ );
46
+ const [gapClassNames, gapRemainingProps] = getGapSprinkles(
47
+ spacingRemainingProps,
48
+ defaults
49
+ );
50
+ const { extracted: flexItemProps, rest: remainingProps } = extractFlexItem(gapRemainingProps);
51
+ const flexItemClassName = flexItemProps.flexItem ? void 0 : globalSprinkles({ display: "flex" });
52
+ return [
53
+ clsx(
54
+ gridFlexClassNames,
55
+ spacingClassNames,
56
+ gapClassNames,
57
+ flexItemClassName
58
+ ),
59
+ {
60
+ ...sizeStyles,
61
+ ...additionalFlexStyles
62
+ },
63
+ remainingProps
64
+ ];
65
+ }
66
+ export {
67
+ getFlexStyles
68
+ };
69
+ //# sourceMappingURL=getFlexStyles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styles/getFlexStyles.ts"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport React from 'react';\n\nimport { extract } from './extract-util.js';\nimport { GapProps, getGapSprinkles } from './getGapSprinkles.js';\nimport {\n GridFlexPositionProps,\n getGridFlexPositionSprinkles,\n} from './getGridFlexPositionSprinkles.js';\nimport { LayoutSizeProps, getLayoutSizeStyles } from './getLayoutSizeStyles.js';\nimport { SpacingProps, getSpacingSprinkles } from './getSpacingSprinkles.js';\nimport { globalSprinkles } from './safe-sprinkles.js';\n\n/**\n * Defines the flex item style props.\n * @public\n */\nexport interface FlexItemStyleProps {\n /**\n * Determines whether this is a flex item.\n * If true, display: 'flex' style will not be added.\n */\n flexItem?: boolean;\n}\n\n/**\n * Keys that will define the flex item.\n * @public\n */\nconst flexItemPropKeys: Array<keyof FlexItemStyleProps> = ['flexItem'];\n\n/**\n * Defines the flex props.\n * @public\n */\nexport interface FlexStyleProps\n extends GridFlexPositionProps,\n GapProps,\n LayoutSizeProps,\n SpacingProps,\n FlexItemStyleProps {\n /* Flex item props */\n /** Defines order */\n order?: React.CSSProperties['order'];\n /** Defines flex grow */\n flexGrow?: React.CSSProperties['flexGrow'];\n /** Defines flex shrink */\n flexShrink?: React.CSSProperties['flexShrink'];\n /** Defines flex basis */\n flexBasis?: React.CSSProperties['flexBasis'];\n /** Defines flex */\n flex?: React.CSSProperties['flex'];\n /* Flex container props */\n /** Defines flex direction */\n flexDirection?: React.CSSProperties['flexDirection'];\n /** Defines flex wrap */\n flexWrap?: React.CSSProperties['flexWrap'];\n /** Defines flex flow */\n flexFlow?: React.CSSProperties['flexFlow'];\n /* Grid item props */\n /** Defines grid column start */\n gridColumnStart?: React.CSSProperties['gridColumnStart'];\n /** Defines grid column end */\n gridColumnEnd?: React.CSSProperties['gridColumnEnd'];\n /** Defines grid row start */\n gridRowStart?: React.CSSProperties['gridRowStart'];\n /** Defines grid row end */\n gridRowEnd?: React.CSSProperties['gridRowEnd'];\n /** Defines grid column */\n gridColumn?: React.CSSProperties['gridColumn'];\n /** Defines grid row */\n gridRow?: React.CSSProperties['gridRow'];\n /** Defines grid area */\n gridArea?: React.CSSProperties['gridArea'];\n}\n\n/**\n * Keys that will define the flex.\n * @public\n */\nconst flexStylePropKeys: Array<keyof FlexStyleProps> = [\n /* Flex item props */\n 'order',\n 'flexGrow',\n 'flexShrink',\n 'flexBasis',\n 'flex',\n /* Grid container props */\n 'flexDirection',\n 'flexWrap',\n 'flexFlow',\n /* Grid item props */\n 'gridColumnStart',\n 'gridColumnEnd',\n 'gridRowStart',\n 'gridRowEnd',\n 'gridColumn',\n 'gridRow',\n 'gridArea',\n];\n\n// This one is split out of the getFlexStyles to ease typing, as the generic\n// would be overly complex when using inline.\n/**\n * Extracts the flexItem prop from the remaining props.\n * @public\n */\nfunction extractFlexItem<T extends FlexItemStyleProps>(\n props: T,\n): {\n extracted: Pick<T, keyof FlexItemStyleProps>;\n rest: Omit<T, keyof FlexItemStyleProps>;\n} {\n const { extracted, rest } = extract(props, flexItemPropKeys);\n return { extracted, rest };\n}\n\n/**\n * Helper function that will extract all styling relevant props for the Flex styling\n * and will return them as classnames and style attributes.\n * The remaining props returned are the ones that no longer contain any Flex styling\n * related entries.\n * @public\n */\nexport function getFlexStyles<T extends FlexStyleProps>(\n props: T,\n defaults: Partial<FlexStyleProps> = {},\n): [\n className: string,\n style: React.CSSProperties,\n remainingProps: Omit<T, keyof FlexStyleProps>,\n] {\n const { extracted: additionalFlexStyles, rest } = extract(\n props,\n flexStylePropKeys,\n );\n\n const [sizeStyles, afterSizeExtraction] = getLayoutSizeStyles(rest, defaults);\n\n const [gridFlexClassNames, gridFlexRemainingProps] =\n getGridFlexPositionSprinkles(afterSizeExtraction, defaults);\n\n const [spacingClassNames, spacingRemainingProps] = getSpacingSprinkles(\n gridFlexRemainingProps,\n defaults,\n );\n\n const [gapClassNames, gapRemainingProps] = getGapSprinkles(\n spacingRemainingProps,\n defaults,\n );\n\n const { extracted: flexItemProps, rest: remainingProps } =\n extractFlexItem(gapRemainingProps);\n\n const flexItemClassName = flexItemProps.flexItem\n ? undefined\n : globalSprinkles({ display: 'flex' });\n\n return [\n clsx(\n gridFlexClassNames,\n spacingClassNames,\n gapClassNames,\n flexItemClassName,\n ),\n {\n ...sizeStyles,\n ...additionalFlexStyles,\n },\n remainingProps as Omit<T, keyof FlexStyleProps>,\n ];\n}\n"],
5
+ "mappings": "AAAA,OAAO,UAAU;AAGjB,SAAS,eAAe;AACxB,SA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globalSprinkles } from "./safe-sprinkles.js";
3
+ const gapPropKeys = ["gap", "rowGap", "columnGap"];
4
+ function getGapSprinkles(props, defaults = {}) {
5
+ const { extracted, rest } = extract(props, gapPropKeys);
6
+ const { extracted: extractedDefaults } = extract(defaults, gapPropKeys);
7
+ return [
8
+ globalSprinkles({
9
+ ...extractedDefaults,
10
+ ...extracted
11
+ }),
12
+ rest
13
+ ];
14
+ }
15
+ export {
16
+ getGapSprinkles
17
+ };
18
+ //# sourceMappingURL=getGapSprinkles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styles/getGapSprinkles.ts"],
4
+ "sourcesContent": ["import { extract } from './extract-util.js';\nimport { globalSprinkles } from './safe-sprinkles.js';\nimport { type SpacingProperties } from './sprinkle-properties.js';\n\n/**\n * Defines the box gap props.\n * @public\n */\nexport interface GapProps {\n /** Defines gap */\n gap?: SpacingProperties;\n /** Defines row gap */\n rowGap?: SpacingProperties;\n /** Defines column gap */\n columnGap?: SpacingProperties;\n}\n\n/**\n * Keys that will define the gap of a component.\n * @public\n */\nconst gapPropKeys: Array<keyof GapProps> = ['gap', 'rowGap', 'columnGap'];\n\n/**\n * Given a set of props will return the relevant class names for the gap sprinkles\n * and the remaining props.\n * @internal\n */\nexport function getGapSprinkles<T extends GapProps>(\n props: T,\n defaults: Partial<GapProps> = {},\n): [className: string, remainingProps: Omit<T, keyof GapProps>] {\n const { extracted, rest } = extract(props, gapPropKeys);\n const { extracted: extractedDefaults } = extract(defaults, gapPropKeys);\n\n return [\n globalSprinkles({\n ...extractedDefaults,\n ...extracted,\n }),\n rest,\n ];\n}\n"],
5
+ "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,uBAAuB;AAoBhC,MAAM,cAAqC,CAAC,OAAO,UAAU,WAAW;AAOjE,SAAS,gBACd,OACA,WAA8B,CAAC,GAC+B;AAC9D,QAAM,EAAE,WAAW,KAAK,IAAI,QAAQ,OAAO,WAAW;AACtD,QAAM,EAAE,WAAW,kBAAkB,IAAI,QAAQ,UAAU,WAAW;AAEtE,SAAO;AAAA,IACL,gBAAgB;AAAA,MACd,GAAG;AAAA,MACH,GAAG;AAAA,IACL,CAAC;AAAA,IACD;AAAA,EACF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,25 @@
1
+ import { extract } from "./extract-util.js";
2
+ import { globalSprinkles } from "./safe-sprinkles.js";
3
+ const gridFlexPositionPropKeys = [
4
+ "justifySelf",
5
+ "alignSelf",
6
+ "placeSelf",
7
+ "justifyItems",
8
+ "alignItems",
9
+ "placeItems",
10
+ "justifyContent",
11
+ "alignContent",
12
+ "placeContent"
13
+ ];
14
+ function getGridFlexPositionSprinkles(props, defaults = {}) {
15
+ const { extracted, rest } = extract(props, gridFlexPositionPropKeys);
16
+ const { extracted: extractedDefaults } = extract(
17
+ defaults,
18
+ gridFlexPositionPropKeys
19
+ );
20
+ return [globalSprinkles({ ...extractedDefaults, ...extracted }), rest];
21
+ }
22
+ export {
23
+ getGridFlexPositionSprinkles
24
+ };
25
+ //# sourceMappingURL=getGridFlexPositionSprinkles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styles/getGridFlexPositionSprinkles.ts"],
4
+ "sourcesContent": ["import { extract } from './extract-util.js';\nimport { globalSprinkles } from './safe-sprinkles.js';\nimport {\n AlignContentPositionProps,\n AlignItemsPositionProps,\n AlignSelfPositionProps,\n JustifyContentPositionProps,\n JustifyItemsPositionProps,\n JustifySelfPositionProps,\n PlaceContentPositionProps,\n PlaceItemsPositionProps,\n PlaceSelfPositionProps,\n} from './sprinkle-properties.js';\n\n/**\n * Defines the grid flex positions props.\n * @public\n */\nexport interface GridFlexPositionProps {\n /** justify self positions */\n justifySelf?: JustifySelfPositionProps;\n /** align self positions */\n alignSelf?: AlignSelfPositionProps;\n /** place self positions */\n placeSelf?: PlaceSelfPositionProps;\n /** justify items positions */\n justifyItems?: JustifyItemsPositionProps;\n /** align items positions */\n alignItems?: AlignItemsPositionProps;\n /** place items positions */\n placeItems?: PlaceItemsPositionProps;\n /** justify content positions */\n justifyContent?: JustifyContentPositionProps;\n /** align content positions */\n alignContent?: AlignContentPositionProps;\n /** place content positions */\n placeContent?: PlaceContentPositionProps;\n}\n\n/**\n * Keys that will define the grid flex positions.\n * @public\n */\nconst gridFlexPositionPropKeys: Array<keyof GridFlexPositionProps> = [\n 'justifySelf',\n 'alignSelf',\n 'placeSelf',\n 'justifyItems',\n 'alignItems',\n 'placeItems',\n 'justifyContent',\n 'alignContent',\n 'placeContent',\n];\n\n/**\n * Given a set of props, this function will extract the sprinkles props for\n * Grid/Flex Position spinkles and return the appropriate\n * classnames as well as the remaining props.\n * @internal\n * */\nexport function getGridFlexPositionSprinkles<T extends GridFlexPositionProps>(\n props: T,\n defaults: Partial<GridFlexPositionProps> = {},\n): [\n sprinklesClassNames: string,\n remainingProps: Omit<T, keyof GridFlexPositionProps>,\n] {\n const { extracted, rest } = extract(props, gridFlexPositionPropKeys);\n const { extracted: extractedDefaults } = extract(\n defaults,\n gridFlexPositionPropKeys,\n );\n\n return [globalSprinkles({ ...extractedDefaults, ...extracted }), rest];\n}\n"],
5
+ "mappings": "AAAA,SAAS,eAAe;AACxB,SAAS,uBAAuB;AA0ChC,MAAM,2BAA+D;AAAA,EACnE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAQO,SAAS,6BACd,OACA,WAA2C,CAAC,GAI5C;AACA,QAAM,EAAE,WAAW,KAAK,IAAI,QAAQ,OAAO,wBAAwB;AACnE,QAAM,EAAE,WAAW,kBAAkB,IAAI;AAAA,IACvC;AAAA,IACA;AAAA,EACF;AAEA,SAAO,CAAC,gBAAgB,EAAE,GAAG,mBAAmB,GAAG,UAAU,CAAC,GAAG,IAAI;AACvE;",
6
+ "names": []
7
+ }
@@ -0,0 +1,78 @@
1
+ import clsx from "clsx";
2
+ import { extract } from "./extract-util.js";
3
+ import { getGapSprinkles } from "./getGapSprinkles.js";
4
+ import {
5
+ getGridFlexPositionSprinkles
6
+ } from "./getGridFlexPositionSprinkles.js";
7
+ import {
8
+ getLayoutSizeStyles
9
+ } from "./getLayoutSizeStyles.js";
10
+ import {
11
+ getSpacingSprinkles
12
+ } from "./getSpacingSprinkles.js";
13
+ import { globalSprinkles } from "./safe-sprinkles.js";
14
+ const gridItemPropKeys = ["gridItem"];
15
+ const gridStylePropKeys = [
16
+ /* Flex item props */
17
+ "order",
18
+ "flexGrow",
19
+ "flexShrink",
20
+ "flexBasis",
21
+ "flex",
22
+ /* Grid container props */
23
+ "gridTemplateColumns",
24
+ "gridTemplateRows",
25
+ "gridTemplateAreas",
26
+ "gridTemplate",
27
+ "gridAutoColumns",
28
+ "gridAutoRows",
29
+ "gridAutoFlow",
30
+ "grid",
31
+ /* Grid item props */
32
+ "gridColumnStart",
33
+ "gridColumnEnd",
34
+ "gridRowStart",
35
+ "gridRowEnd",
36
+ "gridColumn",
37
+ "gridRow",
38
+ "gridArea"
39
+ ];
40
+ function extractGridItem(props) {
41
+ const { extracted, rest } = extract(props, gridItemPropKeys);
42
+ return { extracted, rest };
43
+ }
44
+ function getGridStyles(props, defaults = {}) {
45
+ const { extracted: additionalGridStyles, rest } = extract(
46
+ props,
47
+ gridStylePropKeys
48
+ );
49
+ const [sizeStyles, afterSizeExtraction] = getLayoutSizeStyles(rest, defaults);
50
+ const [gridFlexClassNames, gridFlexRemainingProps] = getGridFlexPositionSprinkles(afterSizeExtraction, defaults);
51
+ const [spacingClassNames, spacingRemainingProps] = getSpacingSprinkles(
52
+ gridFlexRemainingProps,
53
+ defaults
54
+ );
55
+ const [gapClassNames, gapRemainingProps] = getGapSprinkles(
56
+ spacingRemainingProps,
57
+ defaults
58
+ );
59
+ const { extracted: gridItemProps, rest: remainingProps } = extractGridItem(gapRemainingProps);
60
+ const gridItemClassName = gridItemProps.gridItem ? void 0 : globalSprinkles({ display: "grid" });
61
+ return [
62
+ clsx(
63
+ gridFlexClassNames,
64
+ spacingClassNames,
65
+ gapClassNames,
66
+ gridItemClassName
67
+ ),
68
+ {
69
+ ...sizeStyles,
70
+ ...additionalGridStyles
71
+ },
72
+ remainingProps
73
+ ];
74
+ }
75
+ export {
76
+ getGridStyles
77
+ };
78
+ //# sourceMappingURL=getGridStyles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styles/getGridStyles.ts"],
4
+ "sourcesContent": ["import clsx from 'clsx';\nimport React from 'react';\n\nimport { extract } from './extract-util.js';\nimport { type GapProps, getGapSprinkles } from './getGapSprinkles.js';\nimport {\n type GridFlexPositionProps,\n getGridFlexPositionSprinkles,\n} from './getGridFlexPositionSprinkles.js';\nimport {\n type LayoutSizeProps,\n getLayoutSizeStyles,\n} from './getLayoutSizeStyles.js';\nimport {\n type SpacingProps,\n getSpacingSprinkles,\n} from './getSpacingSprinkles.js';\nimport { globalSprinkles } from './safe-sprinkles.js';\n\n/**\n * Defines the grid item props.\n * @public\n */\nexport interface GridItemStyleProps {\n /**\n * Determines whether this is a grid item.\n * If true, display: 'grid' style will not be added.\n */\n gridItem?: boolean;\n}\n\n/**\n * Keys that will define the grid item\n * @public\n */\nconst gridItemPropKeys: Array<keyof GridItemStyleProps> = ['gridItem'];\n\n/**\n * Defines the grid style props.\n * @public\n */\nexport interface GridStyleProps\n extends GridFlexPositionProps,\n GapProps,\n LayoutSizeProps,\n SpacingProps,\n GridItemStyleProps {\n /* Flex item props */\n /** Defines order */\n order?: React.CSSProperties['order'];\n /** Defines flex grow */\n flexGrow?: React.CSSProperties['flexGrow'];\n /** Defines flex shrink */\n flexShrink?: React.CSSProperties['flexShrink'];\n /** Defines flex basis */\n flexBasis?: React.CSSProperties['flexBasis'];\n /** Defines flex */\n flex?: React.CSSProperties['flex'];\n /* Grid container props */\n /** Defines grid template columns */\n gridTemplateColumns?: React.CSSProperties['gridTemplateColumns'];\n /** Defines grid template rows */\n gridTemplateRows?: React.CSSProperties['gridTemplateRows'];\n /** Defines grid template areas */\n gridTemplateAreas?: React.CSSProperties['gridTemplateAreas'];\n /** Defines grid template */\n gridTemplate?: React.CSSProperties['gridTemplate'];\n /** Defines grid auto columns */\n gridAutoColumns?: React.CSSProperties['gridAutoColumns'];\n /** Defines grid auto rows */\n gridAutoRows?: React.CSSProperties['gridAutoRows'];\n /** Defines grid auto flow */\n gridAutoFlow?: React.CSSProperties['gridAutoFlow'];\n /** Defines grid */\n grid?: React.CSSProperties['grid'];\n /* Grid item props */\n /** Defines grid column start */\n gridColumnStart?: React.CSSProperties['gridColumnStart'];\n /** Defines grid column end */\n gridColumnEnd?: React.CSSProperties['gridColumnEnd'];\n /** Defines grid row start */\n gridRowStart?: React.CSSProperties['gridRowStart'];\n /** Defines grid row end */\n gridRowEnd?: React.CSSProperties['gridRowEnd'];\n /** Defines grid column */\n gridColumn?: React.CSSProperties['gridColumn'];\n /** Defines grid row */\n gridRow?: React.CSSProperties['gridRow'];\n /** Defines grid area */\n gridArea?: React.CSSProperties['gridArea'];\n}\n\n/**\n * Keys that will define the grid style.\n * @public\n */\nconst gridStylePropKeys: Array<keyof GridStyleProps> = [\n /* Flex item props */\n 'order',\n 'flexGrow',\n 'flexShrink',\n 'flexBasis',\n 'flex',\n /* Grid container props */\n 'gridTemplateColumns',\n 'gridTemplateRows',\n 'gridTemplateAreas',\n 'gridTemplate',\n 'gridAutoColumns',\n 'gridAutoRows',\n 'gridAutoFlow',\n 'grid',\n /* Grid item props */\n 'gridColumnStart',\n 'gridColumnEnd',\n 'gridRowStart',\n 'gridRowEnd',\n 'gridColumn',\n 'gridRow',\n 'gridArea',\n];\n\n// This one is split out of the getGridStyles to ease typing, as the generic\n// would be overly complex when using inline.\n/**\n * Extracts the gridItem prop from the remaining props.\n * @internal\n */\nfunction extractGridItem<T extends GridItemStyleProps>(\n props: T,\n): {\n extracted: Pick<T, keyof GridItemStyleProps>;\n rest: Omit<T, keyof GridItemStyleProps>;\n} {\n const { extracted, rest } = extract(props, gridItemPropKeys);\n return { extracted, rest };\n}\n\n/**\n * Helper function that will extract all styling relevant props for the Grid styling\n * and will return them as classnames and style attributes.\n * The remaining props returned are the ones that no longer contain any Grid styling\n * related entries.\n * @internal\n */\nexport function getGridStyles<T extends GridStyleProps>(\n props: T,\n defaults: Partial<GridStyleProps> = {},\n): [\n className: string,\n style: React.CSSProperties,\n remainingProps: Omit<T, keyof GridStyleProps>,\n] {\n const { extracted: additionalGridStyles, rest } = extract(\n props,\n gridStylePropKeys,\n );\n\n const [sizeStyles, afterSizeExtraction] = getLayoutSizeStyles(rest, defaults);\n\n const [gridFlexClassNames, gridFlexRemainingProps] =\n getGridFlexPositionSprinkles(afterSizeExtraction, defaults);\n\n const [spacingClassNames, spacingRemainingProps] = getSpacingSprinkles(\n gridFlexRemainingProps,\n defaults,\n );\n\n const [gapClassNames, gapRemainingProps] = getGapSprinkles(\n spacingRemainingProps,\n defaults,\n );\n\n const { extracted: gridItemProps, rest: remainingProps } =\n extractGridItem(gapRemainingProps);\n\n const gridItemClassName = gridItemProps.gridItem\n ? undefined\n : globalSprinkles({ display: 'grid' });\n\n return [\n clsx(\n gridFlexClassNames,\n spacingClassNames,\n gapClassNames,\n gridItemClassName,\n ),\n {\n ...sizeStyles,\n ...additionalGridStyles,\n },\n remainingProps as Omit<T, keyof GridStyleProps>,\n ];\n}\n"],
5
+ "mappings": "AAAA,OAAO,UAAU;AAGjB,SAAS,eAAe;AACxB,SAAwB,uBAAuB;AAC/C;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP,SAAS,uBAAuB;AAkBhC,MAAM,mBAAoD,CAAC,UAAU;AA6DrE,MAAM,oBAAiD;AAAA;AAAA,EAErD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAQA,SAAS,gBACP,OAIA;AACA,QAAM,EAAE,WAAW,KAAK,IAAI,QAAQ,OAAO,gBAAgB;AAC3D,SAAO,EAAE,WAAW,KAAK;AAC3B;AASO,SAAS,cACd,OACA,WAAoC,CAAC,GAKrC;AACA,QAAM,EAAE,WAAW,sBAAsB,KAAK,IAAI;AAAA,IAChD;AAAA,IACA;AAAA,EACF;AAEA,QAAM,CAAC,YAAY,mBAAmB,IAAI,oBAAoB,MAAM,QAAQ;AAE5E,QAAM,CAAC,oBAAoB,sBAAsB,IAC/C,6BAA6B,qBAAqB,QAAQ;AAE5D,QAAM,CAAC,mBAAmB,qBAAqB,IAAI;AAAA,IACjD;AAAA,IACA;AAAA,EACF;AAEA,QAAM,CAAC,eAAe,iBAAiB,IAAI;AAAA,IACzC;AAAA,IACA;AAAA,EACF;AAEA,QAAM,EAAE,WAAW,eAAe,MAAM,eAAe,IACrD,gBAAgB,iBAAiB;AAEnC,QAAM,oBAAoB,cAAc,WACpC,SACA,gBAAgB,EAAE,SAAS,OAAO,CAAC;AAEvC,SAAO;AAAA,IACL;AAAA,MACE;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,MACE,GAAG;AAAA,MACH,GAAG;AAAA,IACL;AAAA,IACA;AAAA,EACF;AACF;",
6
+ "names": []
7
+ }
@@ -0,0 +1,21 @@
1
+ import { extract } from "./extract-util.js";
2
+ const layoutSizePropKeys = [
3
+ "width",
4
+ "minWidth",
5
+ "maxWidth",
6
+ "height",
7
+ "minHeight",
8
+ "maxHeight"
9
+ ];
10
+ function getLayoutSizeStyles(props, defaults = {}) {
11
+ const { extracted, rest } = extract(props, layoutSizePropKeys);
12
+ const { extracted: extractedDefaults } = extract(
13
+ defaults,
14
+ layoutSizePropKeys
15
+ );
16
+ return [{ ...extractedDefaults, ...extracted }, rest];
17
+ }
18
+ export {
19
+ getLayoutSizeStyles
20
+ };
21
+ //# sourceMappingURL=getLayoutSizeStyles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styles/getLayoutSizeStyles.ts"],
4
+ "sourcesContent": ["import type { CSSProperties } from 'react';\n\nimport { extract } from './extract-util.js';\n\n/**\n * Defines the layout size props.\n * @public\n */\nexport interface LayoutSizeProps {\n /** CSS width property */\n width?: CSSProperties['width'];\n /** CSS min width property */\n minWidth?: CSSProperties['minWidth'];\n /** CSS max width property */\n maxWidth?: CSSProperties['maxWidth'];\n /** CSS height property */\n height?: CSSProperties['height'];\n /** CSS min height property */\n minHeight?: CSSProperties['minHeight'];\n /** CSS max height property */\n maxHeight?: CSSProperties['maxHeight'];\n}\n\n/**\n * Keys that will define the layout size.\n * @public\n */\nconst layoutSizePropKeys: Array<keyof LayoutSizeProps> = [\n 'width',\n 'minWidth',\n 'maxWidth',\n 'height',\n 'minHeight',\n 'maxHeight',\n];\n\n/**\n * Will extract layout sizing relevant styles from the passed props and\n * will return a defaulted styles object as well as the remaining props excluding\n * the sizing relevant props.\n * @internal\n */\nexport function getLayoutSizeStyles<T extends LayoutSizeProps>(\n props: T,\n defaults: Partial<LayoutSizeProps> = {},\n): [\n sizeStyles: Partial<LayoutSizeProps>,\n remainingProps: Omit<T, keyof LayoutSizeProps>,\n] {\n const { extracted, rest } = extract(props, layoutSizePropKeys);\n const { extracted: extractedDefaults } = extract(\n defaults,\n layoutSizePropKeys,\n );\n\n return [{ ...extractedDefaults, ...extracted }, rest];\n}\n"],
5
+ "mappings": "AAEA,SAAS,eAAe;AAyBxB,MAAM,qBAAmD;AAAA,EACvD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAQO,SAAS,oBACd,OACA,WAAqC,CAAC,GAItC;AACA,QAAM,EAAE,WAAW,KAAK,IAAI,QAAQ,OAAO,kBAAkB;AAC7D,QAAM,EAAE,WAAW,kBAAkB,IAAI;AAAA,IACvC;AAAA,IACA;AAAA,EACF;AAEA,SAAO,CAAC,EAAE,GAAG,mBAAmB,GAAG,UAAU,GAAG,IAAI;AACtD;",
6
+ "names": []
7
+ }
@@ -0,0 +1,50 @@
1
+ import { extract } from "./extract-util.js";
2
+ import { globalSprinkles } from "./safe-sprinkles.js";
3
+ const spacingPropKeys = [
4
+ "padding",
5
+ "p",
6
+ "paddingX",
7
+ "px",
8
+ "paddingY",
9
+ "py",
10
+ "paddingTop",
11
+ "pt",
12
+ "paddingRight",
13
+ "pr",
14
+ "paddingBottom",
15
+ "pb",
16
+ "paddingLeft",
17
+ "pl",
18
+ "margin",
19
+ "m",
20
+ "marginX",
21
+ "mx",
22
+ "marginY",
23
+ "my",
24
+ "marginTop",
25
+ "mt",
26
+ "marginRight",
27
+ "mr",
28
+ "marginBottom",
29
+ "mb",
30
+ "marginLeft",
31
+ "ml"
32
+ ];
33
+ function getSpacingSprinkles(props, defaults = {}) {
34
+ const { extracted, rest } = extract(props, spacingPropKeys);
35
+ const spacingSprinkleConfig = {
36
+ paddingTop: extracted.pt ?? extracted.paddingTop ?? defaults.paddingTop ?? extracted.py ?? extracted.paddingY ?? defaults.paddingY ?? extracted.p ?? extracted.padding ?? defaults.padding,
37
+ paddingRight: extracted.pr ?? extracted.paddingRight ?? defaults.paddingRight ?? extracted.px ?? extracted.paddingX ?? defaults.paddingX ?? extracted.p ?? extracted.padding ?? defaults.padding,
38
+ paddingBottom: extracted.pb ?? extracted.paddingBottom ?? defaults.paddingBottom ?? extracted.py ?? extracted.paddingY ?? defaults.paddingY ?? extracted.p ?? extracted.padding ?? defaults.padding,
39
+ paddingLeft: extracted.pl ?? extracted.paddingLeft ?? defaults.paddingLeft ?? extracted.px ?? extracted.paddingX ?? defaults.paddingX ?? extracted.p ?? extracted.padding ?? defaults.padding,
40
+ marginTop: extracted.mt ?? extracted.marginTop ?? defaults.marginTop ?? extracted.my ?? extracted.marginY ?? defaults.marginY ?? extracted.m ?? extracted.margin ?? defaults.margin,
41
+ marginRight: extracted.mr ?? extracted.marginRight ?? defaults.marginRight ?? extracted.mx ?? extracted.marginX ?? defaults.marginX ?? extracted.m ?? extracted.margin ?? defaults.margin,
42
+ marginBottom: extracted.mb ?? extracted.marginBottom ?? defaults.marginBottom ?? extracted.my ?? extracted.marginY ?? defaults.marginY ?? extracted.m ?? extracted.margin ?? defaults.margin,
43
+ marginLeft: extracted.ml ?? extracted.marginLeft ?? defaults.marginLeft ?? extracted.mx ?? extracted.marginX ?? defaults.marginX ?? extracted.m ?? extracted.margin ?? defaults.margin
44
+ };
45
+ return [globalSprinkles(spacingSprinkleConfig), rest];
46
+ }
47
+ export {
48
+ getSpacingSprinkles
49
+ };
50
+ //# sourceMappingURL=getSpacingSprinkles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styles/getSpacingSprinkles.ts"],
4
+ "sourcesContent": ["import { extract } from './extract-util.js';\nimport { globalSprinkles } from './safe-sprinkles.js';\nimport type {\n MarginProperties,\n SpacingProperties,\n} from './sprinkle-properties.js';\n\n/**\n * Defines the box spacing props.\n * @public\n */\nexport interface SpacingProps {\n /** Defines CSS padding property */\n padding?: SpacingProperties;\n /** Defines CSS padding property */\n p?: SpacingProperties;\n\n /** Defines CSS x padding property */\n paddingX?: SpacingProperties;\n /** Defines CSS x padding property */\n px?: SpacingProperties;\n\n /** Defines CSS y padding property */\n paddingY?: SpacingProperties;\n /** Defines CSS y padding property */\n py?: SpacingProperties;\n\n /** Defines CSS top padding property */\n paddingTop?: SpacingProperties;\n /** Defines CSS top padding property */\n pt?: SpacingProperties;\n\n /** Defines CSS right padding property */\n paddingRight?: SpacingProperties;\n /** Defines CSS right padding property */\n pr?: SpacingProperties;\n\n /** Defines CSS bottom padding property */\n paddingBottom?: SpacingProperties;\n /** Defines CSS bottom padding property */\n pb?: SpacingProperties;\n\n /** Defines CSS left padding property */\n paddingLeft?: SpacingProperties;\n /** Defines CSS left padding property */\n pl?: SpacingProperties;\n\n /** Defines CSS margin property */\n margin?: MarginProperties;\n /** Defines CSS margin property */\n m?: MarginProperties;\n\n /** Defines CSS x margin property */\n marginX?: MarginProperties;\n /** Defines CSS x margin property */\n mx?: MarginProperties;\n\n /** Defines CSS y margin property */\n marginY?: MarginProperties;\n /** Definesy CSS margin property */\n my?: MarginProperties;\n\n /** Defines CSS top margin property */\n marginTop?: MarginProperties;\n /** Defines CSS top margin property */\n mt?: MarginProperties;\n\n /** Defines CSS right margin property */\n marginRight?: MarginProperties;\n /** Defines CSS right margin property */\n mr?: MarginProperties;\n\n /** Defines CSS bottom margin property */\n marginBottom?: MarginProperties;\n /** Defines bottom margin property */\n mb?: MarginProperties;\n\n /** Defines CSS left margin property */\n marginLeft?: MarginProperties;\n /** Defines CSS left margin property */\n ml?: MarginProperties;\n}\n\n/**\n * Defines the defaults for spacings\n * @internal\n */\nexport type DefaultSpacingProps = Pick<\n SpacingProps,\n | 'padding'\n | 'paddingX'\n | 'paddingY'\n | 'paddingTop'\n | 'paddingRight'\n | 'paddingBottom'\n | 'paddingLeft'\n | 'margin'\n | 'marginX'\n | 'marginY'\n | 'marginTop'\n | 'marginRight'\n | 'marginBottom'\n | 'marginLeft'\n>;\n\n/**\n * Keys that will define the spacing of a component.\n * @public\n */\nconst spacingPropKeys: Array<keyof SpacingProps> = [\n 'padding',\n 'p',\n 'paddingX',\n 'px',\n 'paddingY',\n 'py',\n 'paddingTop',\n 'pt',\n 'paddingRight',\n 'pr',\n 'paddingBottom',\n 'pb',\n 'paddingLeft',\n 'pl',\n 'margin',\n 'm',\n 'marginX',\n 'mx',\n 'marginY',\n 'my',\n 'marginTop',\n 'mt',\n 'marginRight',\n 'mr',\n 'marginBottom',\n 'mb',\n 'marginLeft',\n 'ml',\n];\n\n/**\n * Given a set of props will return the relevant class names for the spacing sprinkles\n * and the remaining props.\n * @internal\n */\nexport function getSpacingSprinkles<T extends SpacingProps>(\n props: T,\n defaults: DefaultSpacingProps = {},\n): [sprinklesClassNames: string, remainingProps: Omit<T, keyof SpacingProps>] {\n const { extracted, rest } = extract(props, spacingPropKeys);\n\n const spacingSprinkleConfig: Parameters<typeof globalSprinkles>[0] = {\n paddingTop:\n extracted.pt ??\n extracted.paddingTop ??\n defaults.paddingTop ??\n extracted.py ??\n extracted.paddingY ??\n defaults.paddingY ??\n extracted.p ??\n extracted.padding ??\n defaults.padding,\n paddingRight:\n extracted.pr ??\n extracted.paddingRight ??\n defaults.paddingRight ??\n extracted.px ??\n extracted.paddingX ??\n defaults.paddingX ??\n extracted.p ??\n extracted.padding ??\n defaults.padding,\n paddingBottom:\n extracted.pb ??\n extracted.paddingBottom ??\n defaults.paddingBottom ??\n extracted.py ??\n extracted.paddingY ??\n defaults.paddingY ??\n extracted.p ??\n extracted.padding ??\n defaults.padding,\n paddingLeft:\n extracted.pl ??\n extracted.paddingLeft ??\n defaults.paddingLeft ??\n extracted.px ??\n extracted.paddingX ??\n defaults.paddingX ??\n extracted.p ??\n extracted.padding ??\n defaults.padding,\n marginTop:\n extracted.mt ??\n extracted.marginTop ??\n defaults.marginTop ??\n extracted.my ??\n extracted.marginY ??\n defaults.marginY ??\n extracted.m ??\n extracted.margin ??\n defaults.margin,\n marginRight:\n extracted.mr ??\n extracted.marginRight ??\n defaults.marginRight ??\n extracted.mx ??\n extracted.marginX ??\n defaults.marginX ??\n extracted.m ??\n extracted.margin ??\n defaults.margin,\n marginBottom:\n extracted.mb ??\n extracted.marginBottom ??\n defaults.marginBottom ??\n extracted.my ??\n extracted.marginY ??\n defaults.marginY ??\n extracted.m ??\n extracted.margin ??\n defaults.margin,\n marginLeft:\n extracted.ml ??\n extracted.marginLeft ??\n defaults.marginLeft ??\n extracted.mx ??\n extracted.marginX ??\n defaults.marginX ??\n extracted.m ??\n extracted.margin ??\n defaults.margin,\n };\n\n return [globalSprinkles(spacingSprinkleConfig), rest];\n}\n"],
5
+ "mappings": "AA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U,KACV,UAAU,UACV,SAAS;AAAA,IACX,YACE,UAAU,MACV,UAAU,cACV,SAAS,cACT,UAAU,MACV,UAAU,WACV,SAAS,WACT,UAAU,KACV,UAAU,UACV,SAAS;AAAA,EACb;AAEA,SAAO,CAAC,gBAAgB,qBAAqB,GAAG,IAAI;AACtD;",
6
+ "names": []
7
+ }
@@ -0,0 +1,49 @@
1
+ import {
2
+ getGridFlexPositionSprinkles
3
+ } from "./getGridFlexPositionSprinkles.js";
4
+ import {
5
+ getGapSprinkles
6
+ } from "./getGapSprinkles.js";
7
+ import {
8
+ getSpacingSprinkles
9
+ } from "./getSpacingSprinkles.js";
10
+ import {
11
+ getLayoutSizeStyles
12
+ } from "./getLayoutSizeStyles.js";
13
+ import {
14
+ alignContentPositionProps,
15
+ alignItemsPositionProps,
16
+ alignSelfPositionProps,
17
+ justifyContentPositionProps,
18
+ justifyItemsPositionProps,
19
+ justifySelfPositionProps,
20
+ marginProperties,
21
+ placeContentPositionProps,
22
+ placeItemsPositionProps,
23
+ placeSelfPositionProps,
24
+ spacingProperties
25
+ } from "./sprinkle-properties.js";
26
+ import { extract } from "./extract-util.js";
27
+ import { globalSprinkles } from "./safe-sprinkles.js";
28
+ import { textStyleCSS } from "./textStyle.sty.js";
29
+ export {
30
+ extract as _extract,
31
+ getGapSprinkles as _getGapSprinkles,
32
+ getGridFlexPositionSprinkles as _getGridFlexPositionSprinkles,
33
+ getLayoutSizeStyles as _getLayoutSizeStyles,
34
+ getSpacingSprinkles as _getSpacingSprinkles,
35
+ globalSprinkles as _globalSprinkles,
36
+ textStyleCSS as _textStyleCSS,
37
+ alignContentPositionProps,
38
+ alignItemsPositionProps,
39
+ alignSelfPositionProps,
40
+ justifyContentPositionProps,
41
+ justifyItemsPositionProps,
42
+ justifySelfPositionProps,
43
+ marginProperties,
44
+ placeContentPositionProps,
45
+ placeItemsPositionProps,
46
+ placeSelfPositionProps,
47
+ spacingProperties
48
+ };
49
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styles/index.ts"],
4
+ "sourcesContent": ["export type { FlexItemStyleProps, FlexStyleProps } from './getFlexStyles.js';\nexport type { GridItemStyleProps, GridStyleProps } from './getGridStyles.js';\nexport {\n type GridFlexPositionProps,\n getGridFlexPositionSprinkles as _getGridFlexPositionSprinkles,\n} from './getGridFlexPositionSprinkles.js';\nexport {\n type GapProps,\n getGapSprinkles as _getGapSprinkles,\n} from './getGapSprinkles.js';\nexport {\n type SpacingProps,\n type DefaultSpacingProps as _DefaultSpacingProps,\n getSpacingSprinkles as _getSpacingSprinkles,\n} from './getSpacingSprinkles.js';\nexport {\n type LayoutSizeProps,\n getLayoutSizeStyles as _getLayoutSizeStyles,\n} from './getLayoutSizeStyles.js';\nexport {\n alignContentPositionProps,\n alignItemsPositionProps,\n alignSelfPositionProps,\n justifyContentPositionProps,\n justifyItemsPositionProps,\n justifySelfPositionProps,\n marginProperties,\n placeContentPositionProps,\n placeItemsPositionProps,\n placeSelfPositionProps,\n spacingProperties,\n} from './sprinkle-properties.js';\nexport type {\n AlignContentPositionProps,\n AlignItemsPositionProps,\n AlignSelfPositionProps,\n JustifyContentPositionProps,\n JustifyItemsPositionProps,\n JustifySelfPositionProps,\n MarginProperties,\n PlaceContentPositionProps,\n PlaceItemsPositionProps,\n PlaceSelfPositionProps,\n SpacingProperties,\n} from './sprinkle-properties.js';\nexport { extract as _extract } from './extract-util.js';\nexport { globalSprinkles as _globalSprinkles } from './safe-sprinkles.js';\nexport { textStyleCSS as _textStyleCSS } from './textStyle.sty.js';\n"],
5
+ "mappings": "AAEA;AAAA,EAEkC;AAAA,OAC3B;AACP;AAAA,EAEqB;AAAA,OACd;AACP;AAAA,EAGyB;AAAA,OAClB;AACP;AAAA,EAEyB;AAAA,OAClB;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAcP,SAAoB,eAAgB;AACpC,SAA4B,uBAAwB;AACpD,SAAyB,oBAAqB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,17 @@
1
+ import { internalSprinkles } from "./sprinkles.sty.js";
2
+ function globalSprinkles(...params) {
3
+ try {
4
+ return internalSprinkles(...params);
5
+ } catch (err) {
6
+ if (true) {
7
+ if (err instanceof Error) {
8
+ console.log(err.message);
9
+ }
10
+ }
11
+ }
12
+ return "";
13
+ }
14
+ export {
15
+ globalSprinkles
16
+ };
17
+ //# sourceMappingURL=safe-sprinkles.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styles/safe-sprinkles.ts"],
4
+ "sourcesContent": ["// Import without an extension would be ambiguous, as the resolver cannot know\n// if it is .css file that we want to import or a .css.ts file.\n// Typescript is smart enough to understand that a `.js` extensions references a .ts file.\n// In order to avoid custom tooling, resolvers, ect., we are opting to use an import with extension\n// here.\nimport { internalSprinkles } from './sprinkles.sty.js';\n\n/**\n * global sprinkles\n * @internal\n */\nexport function globalSprinkles(\n ...params: Parameters<typeof internalSprinkles>\n): ReturnType<typeof internalSprinkles> {\n try {\n return internalSprinkles(...params);\n } catch (err) {\n if (process.env.NODE_ENV === 'development') {\n if (err instanceof Error) {\n // eslint-disable-next-line no-console\n console.log(err.message);\n }\n }\n }\n return '';\n}\n"],
5
+ "mappings": "AAKA,SAAS,yBAAyB;AAM3B,SAAS,mBACX,QACmC;AACtC,MAAI;AACF,WAAO,kBAAkB,GAAG,MAAM;AAAA,EACpC,SAAS,KAAK;AACZ,QAAI,MAAwC;AAC1C,UAAI,eAAe,OAAO;AAExB,gBAAQ,IAAI,IAAI,OAAO;AAAA,MACzB;AAAA,IACF;AAAA,EACF;AACA,SAAO;AACT;",
6
+ "names": []
7
+ }
@@ -0,0 +1,137 @@
1
+ import Spacings from "@dynatrace/strato-design-tokens/spacings";
2
+ const spacingProperties = {
3
+ 0: Spacings.Size0,
4
+ 2: Spacings.Size2,
5
+ 4: Spacings.Size4,
6
+ 6: Spacings.Size6,
7
+ 8: Spacings.Size8,
8
+ 12: Spacings.Size12,
9
+ 16: Spacings.Size16,
10
+ 20: Spacings.Size20,
11
+ 24: Spacings.Size24,
12
+ 32: Spacings.Size32,
13
+ 40: Spacings.Size40,
14
+ 48: Spacings.Size48,
15
+ 56: Spacings.Size56,
16
+ 64: Spacings.Size64
17
+ };
18
+ const spacingPropertiesOrder = [
19
+ 0,
20
+ 2,
21
+ 4,
22
+ 6,
23
+ 8,
24
+ 12,
25
+ 16,
26
+ 20,
27
+ 24,
28
+ 32,
29
+ 40,
30
+ 48,
31
+ 56,
32
+ 64
33
+ ];
34
+ const marginProperties = {
35
+ ...spacingProperties,
36
+ auto: "auto"
37
+ };
38
+ const selfPosition = {
39
+ center: "center",
40
+ end: "end",
41
+ "flex-end": "flex-end",
42
+ "flex-start": "flex-start",
43
+ "self-end": "self-end",
44
+ "self-start": "self-start",
45
+ start: "start"
46
+ };
47
+ const contentDistribution = {
48
+ "space-around": "space-around",
49
+ "space-between": "space-between",
50
+ "space-evenly": "space-evenly",
51
+ stretch: "stretch"
52
+ };
53
+ const contentPosition = {
54
+ center: "center",
55
+ end: "end",
56
+ "flex-end": "flex-end",
57
+ "flex-start": "flex-start",
58
+ start: "start"
59
+ };
60
+ const justifySelfPositionProps = {
61
+ ...selfPosition,
62
+ auto: "auto",
63
+ baseline: "baseline",
64
+ left: "left",
65
+ normal: "normal",
66
+ right: "right",
67
+ stretch: "stretch"
68
+ };
69
+ const alignSelfPositionProps = {
70
+ ...selfPosition,
71
+ auto: "auto",
72
+ baseline: "baseline",
73
+ normal: "normal",
74
+ stretch: "stretch"
75
+ };
76
+ const placeSelfPositionProps = {
77
+ ...selfPosition,
78
+ auto: "auto",
79
+ baseline: "baseline",
80
+ normal: "normal",
81
+ stretch: "stretch"
82
+ };
83
+ const justifyItemsPositionProps = {
84
+ ...selfPosition,
85
+ baseline: "baseline",
86
+ left: "left",
87
+ legacy: "legacy",
88
+ normal: "normal",
89
+ right: "right",
90
+ stretch: "stretch"
91
+ };
92
+ const alignItemsPositionProps = {
93
+ ...selfPosition,
94
+ baseline: "baseline",
95
+ normal: "normal",
96
+ stretch: "stretch"
97
+ };
98
+ const placeItemsPositionProps = {
99
+ ...selfPosition,
100
+ baseline: "baseline",
101
+ normal: "normal",
102
+ stretch: "stretch"
103
+ };
104
+ const justifyContentPositionProps = {
105
+ ...contentDistribution,
106
+ ...contentPosition,
107
+ left: "left",
108
+ normal: "normal",
109
+ right: "right"
110
+ };
111
+ const alignContentPositionProps = {
112
+ ...contentDistribution,
113
+ ...contentPosition,
114
+ baseline: "baseline",
115
+ normal: "normal"
116
+ };
117
+ const placeContentPositionProps = {
118
+ ...contentDistribution,
119
+ ...contentPosition,
120
+ baseline: "baseline",
121
+ normal: "normal"
122
+ };
123
+ export {
124
+ alignContentPositionProps,
125
+ alignItemsPositionProps,
126
+ alignSelfPositionProps,
127
+ justifyContentPositionProps,
128
+ justifyItemsPositionProps,
129
+ justifySelfPositionProps,
130
+ marginProperties,
131
+ placeContentPositionProps,
132
+ placeItemsPositionProps,
133
+ placeSelfPositionProps,
134
+ spacingProperties,
135
+ spacingPropertiesOrder
136
+ };
137
+ //# sourceMappingURL=sprinkle-properties.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/styles/sprinkle-properties.ts"],
4
+ "sourcesContent": ["import Spacings from '@dynatrace/strato-design-tokens/spacings';\n\n/**\n * Defines the available gapSizes and their mapping to the tokens.\n * @public\n */\nexport const spacingProperties = {\n 0: Spacings.Size0,\n 2: Spacings.Size2,\n 4: Spacings.Size4,\n 6: Spacings.Size6,\n 8: Spacings.Size8,\n 12: Spacings.Size12,\n 16: Spacings.Size16,\n 20: Spacings.Size20,\n 24: Spacings.Size24,\n 32: Spacings.Size32,\n 40: Spacings.Size40,\n 48: Spacings.Size48,\n 56: Spacings.Size56,\n 64: Spacings.Size64,\n};\n\n/**\n * Union type of the available SpacingProperties.\n * @public\n */\nexport type SpacingProperties = keyof typeof spacingProperties;\n\n/**\n * Order of the available gap sizes from smallest to largest.\n * @internal\n */\nexport const spacingPropertiesOrder: SpacingProperties[] = [\n 0, 2, 4, 6, 8, 12, 16, 20, 24, 32, 40, 48, 56, 64,\n];\n\n/**\n * spacing properties with auto margin.\n * @public\n */\nexport const marginProperties = {\n ...spacingProperties,\n auto: 'auto',\n};\n\n/**\n * Union type of the available margins.\n * @public\n */\nexport type MarginProperties = keyof typeof marginProperties;\n\n/**\n * Defines the available self positions.\n * @public\n */\nconst selfPosition = {\n center: 'center',\n end: 'end',\n 'flex-end': 'flex-end',\n 'flex-start': 'flex-start',\n 'self-end': 'self-end',\n 'self-start': 'self-start',\n start: 'start',\n};\n\n/**\n * Defines the available content distribution.\n * @public\n */\nconst contentDistribution = {\n 'space-around': 'space-around',\n 'space-between': 'space-between',\n 'space-evenly': 'space-evenly',\n stretch: 'stretch',\n};\n\n/**\n * Defines the available content positions.\n * @public\n */\nconst contentPosition = {\n center: 'center',\n end: 'end',\n 'flex-end': 'flex-end',\n 'flex-start': 'flex-start',\n start: 'start',\n};\n\n/**\n * Defines the available justify self positions.\n * @public\n */\nexport const justifySelfPositionProps = {\n ...selfPosition,\n auto: 'auto',\n baseline: 'baseline',\n left: 'left',\n normal: 'normal',\n right: 'right',\n stretch: 'stretch',\n};\n\n/**\n * Union type of the available justify self positions.\n * @public\n */\nexport type JustifySelfPositionProps = keyof typeof justifySelfPositionProps;\n\n/**\n * Defines the available align self positions.\n * @public\n */\nexport const alignSelfPositionProps = {\n ...selfPosition,\n auto: 'auto',\n baseline: 'baseline',\n normal: 'normal',\n stretch: 'stretch',\n};\n\n/**\n * Union type of the available align self positions.\n * @public\n */\nexport type AlignSelfPositionProps = keyof typeof alignSelfPositionProps;\n\n/**\n * Defines the available place self positions.\n * @public\n */\nexport const placeSelfPositionProps = {\n ...selfPosition,\n auto: 'auto',\n baseline: 'baseline',\n normal: 'normal',\n stretch: 'stretch',\n};\n\n/**\n * Union type of the available place self positions.\n * @public\n */\nexport type PlaceSelfPositionProps = keyof typeof placeSelfPositionProps;\n\n/**\n * Defines the available justify items positions.\n * @public\n */\nexport const justifyItemsPositionProps = {\n ...selfPosition,\n baseline: 'baseline',\n left: 'left',\n legacy: 'legacy',\n normal: 'normal',\n right: 'right',\n stretch: 'stretch',\n};\n\n/**\n * Union type of the available justify items positions.\n * @public\n */\nexport type JustifyItemsPositionProps = keyof typeof justifyItemsPositionProps;\n\n/**\n * Defines the available align items positions.\n * @public\n */\nexport const alignItemsPositionProps = {\n ...selfPosition,\n baseline: 'baseline',\n normal: 'normal',\n stretch: 'stretch',\n};\n\n/**\n * Union type of the available align items positions\n * @public\n */\nexport type AlignItemsPositionProps = keyof typeof alignItemsPositionProps;\n\n/**\n * Defines the available place items positions\n * @public\n */\nexport const placeItemsPositionProps = {\n ...selfPosition,\n baseline: 'baseline',\n normal: 'normal',\n stretch: 'stretch',\n};\n\n/**\n * Union type of the available place items positions\n * @public\n */\nexport type PlaceItemsPositionProps = keyof typeof placeItemsPositionProps;\n\n/**\n * Defines the available justify content positions\n * @public\n */\nexport const justifyContentPositionProps = {\n ...contentDistribution,\n ...contentPosition,\n left: 'left',\n normal: 'normal',\n right: 'right',\n};\n\n/**\n * Union type of the available justify content positions\n * @public\n */\nexport type JustifyContentPositionProps =\n keyof typeof justifyContentPositionProps;\n\n/**\n * Defines the available align content positions\n * @public\n */\nexport const alignContentPositionProps = {\n ...contentDistribution,\n ...contentPosition,\n baseline: 'baseline',\n normal: 'normal',\n};\n\n/**\n * Union type of the available align content positions\n * @public\n */\nexport type AlignContentPositionProps = keyof typeof alignContentPositionProps;\n\n/**\n * Defines the available place content positions\n * @public\n */\nexport const placeContentPositionProps = {\n ...contentDistribution,\n ...contentPosition,\n baseline: 'baseline',\n normal: 'normal',\n};\n\n/**\n * Union type of the available place content positions\n * @public\n */\nexport type PlaceCont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