@stokelp/styled-system 2.92.0 → 2.94.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.
Files changed (152) hide show
  1. package/css/conditions.mjs +1 -1
  2. package/css/css.mjs +1 -1
  3. package/css/sva.mjs +9 -4
  4. package/helpers.mjs +12 -20
  5. package/jsx/create-style-context.d.ts +54 -0
  6. package/jsx/create-style-context.mjs +98 -0
  7. package/jsx/factory.mjs +14 -5
  8. package/jsx/index.d.ts +1 -0
  9. package/jsx/index.mjs +1 -0
  10. package/jsx/is-valid-prop.mjs +1 -1
  11. package/package.json +2 -2
  12. package/panda.buildinfo.json +18 -17
  13. package/patterns/aspect-ratio.d.ts +0 -1
  14. package/patterns/aspect-ratio.mjs +2 -2
  15. package/patterns/bleed.d.ts +0 -1
  16. package/patterns/bleed.mjs +3 -3
  17. package/patterns/box.d.ts +0 -1
  18. package/patterns/box.mjs +2 -2
  19. package/patterns/center.d.ts +0 -1
  20. package/patterns/center.mjs +3 -3
  21. package/patterns/circle.d.ts +0 -1
  22. package/patterns/circle.mjs +4 -4
  23. package/patterns/container.d.ts +0 -1
  24. package/patterns/container.mjs +2 -2
  25. package/patterns/cq.d.ts +0 -1
  26. package/patterns/cq.mjs +2 -2
  27. package/patterns/divider.d.ts +0 -1
  28. package/patterns/divider.mjs +2 -2
  29. package/patterns/flex.d.ts +0 -1
  30. package/patterns/flex.mjs +2 -2
  31. package/patterns/float.d.ts +0 -1
  32. package/patterns/float.mjs +5 -5
  33. package/patterns/grid-item.d.ts +0 -1
  34. package/patterns/grid-item.mjs +2 -2
  35. package/patterns/grid.d.ts +0 -1
  36. package/patterns/grid.mjs +4 -4
  37. package/patterns/hstack.d.ts +0 -1
  38. package/patterns/hstack.mjs +3 -3
  39. package/patterns/link-overlay.d.ts +0 -1
  40. package/patterns/link-overlay.mjs +3 -3
  41. package/patterns/spacer.d.ts +0 -1
  42. package/patterns/spacer.mjs +3 -3
  43. package/patterns/square.d.ts +0 -1
  44. package/patterns/square.mjs +4 -4
  45. package/patterns/stack.d.ts +0 -1
  46. package/patterns/stack.mjs +3 -3
  47. package/patterns/visually-hidden.d.ts +0 -1
  48. package/patterns/visually-hidden.mjs +2 -2
  49. package/patterns/vstack.d.ts +0 -1
  50. package/patterns/vstack.mjs +3 -3
  51. package/patterns/wrap.d.ts +0 -1
  52. package/patterns/wrap.mjs +2 -2
  53. package/recipes/accordion.d.ts +4 -1
  54. package/recipes/accordion.mjs +1 -0
  55. package/recipes/action-card.d.ts +4 -3
  56. package/recipes/action-card.mjs +1 -0
  57. package/recipes/alert.d.ts +4 -3
  58. package/recipes/alert.mjs +1 -0
  59. package/recipes/app-navigation-language-select.d.ts +4 -1
  60. package/recipes/app-navigation-language-select.mjs +1 -0
  61. package/recipes/app-navigation.d.ts +4 -3
  62. package/recipes/app-navigation.mjs +1 -0
  63. package/recipes/avatar-group.d.ts +3 -0
  64. package/recipes/avatar.d.ts +4 -1
  65. package/recipes/avatar.mjs +1 -0
  66. package/recipes/breadcrumb.d.ts +4 -1
  67. package/recipes/breadcrumb.mjs +1 -0
  68. package/recipes/button-filter.d.ts +3 -2
  69. package/recipes/button.d.ts +3 -2
  70. package/recipes/chat-document-message.d.ts +3 -2
  71. package/recipes/chat-message.d.ts +3 -2
  72. package/recipes/chat-profile-avatar.d.ts +3 -2
  73. package/recipes/chat-text-input.d.ts +3 -2
  74. package/recipes/chat.d.ts +4 -3
  75. package/recipes/chat.mjs +1 -0
  76. package/recipes/checkbox-card.d.ts +4 -1
  77. package/recipes/checkbox-card.mjs +1 -0
  78. package/recipes/checkbox-group.d.ts +3 -0
  79. package/recipes/checkbox.d.ts +4 -1
  80. package/recipes/checkbox.mjs +1 -0
  81. package/recipes/chip.d.ts +4 -3
  82. package/recipes/chip.mjs +1 -0
  83. package/recipes/collapsible.d.ts +4 -1
  84. package/recipes/collapsible.mjs +5 -0
  85. package/recipes/combobox.d.ts +4 -1
  86. package/recipes/combobox.mjs +5 -0
  87. package/recipes/datepicker.d.ts +4 -1
  88. package/recipes/datepicker.mjs +19 -14
  89. package/recipes/dialog.d.ts +4 -1
  90. package/recipes/dialog.mjs +1 -0
  91. package/recipes/drawer.d.ts +4 -1
  92. package/recipes/drawer.mjs +1 -0
  93. package/recipes/flag.d.ts +3 -0
  94. package/recipes/form-control.d.ts +3 -2
  95. package/recipes/form-helper-text.d.ts +3 -2
  96. package/recipes/form-label.d.ts +4 -3
  97. package/recipes/form-label.mjs +1 -0
  98. package/recipes/heading.d.ts +3 -0
  99. package/recipes/icon-button.d.ts +3 -2
  100. package/recipes/icon.d.ts +3 -0
  101. package/recipes/illustration.d.ts +3 -2
  102. package/recipes/input-addon.d.ts +3 -2
  103. package/recipes/input-group.d.ts +3 -2
  104. package/recipes/input.d.ts +3 -2
  105. package/recipes/menu.d.ts +4 -1
  106. package/recipes/menu.mjs +1 -0
  107. package/recipes/pagination.d.ts +4 -3
  108. package/recipes/pagination.mjs +1 -0
  109. package/recipes/phone-number-input.d.ts +3 -2
  110. package/recipes/popover.d.ts +4 -1
  111. package/recipes/popover.mjs +1 -0
  112. package/recipes/price-tag.d.ts +4 -1
  113. package/recipes/price-tag.mjs +1 -0
  114. package/recipes/product-card-catalog.d.ts +4 -3
  115. package/recipes/product-card-catalog.mjs +1 -0
  116. package/recipes/radio-button-group.d.ts +4 -1
  117. package/recipes/radio-button-group.mjs +1 -0
  118. package/recipes/radio-card-group.d.ts +4 -1
  119. package/recipes/radio-card-group.mjs +1 -0
  120. package/recipes/radio-group.d.ts +4 -1
  121. package/recipes/radio-group.mjs +1 -0
  122. package/recipes/select-language.d.ts +4 -1
  123. package/recipes/select-language.mjs +1 -0
  124. package/recipes/select.d.ts +4 -1
  125. package/recipes/select.mjs +1 -0
  126. package/recipes/status-tag-select.d.ts +4 -1
  127. package/recipes/status-tag-select.mjs +1 -0
  128. package/recipes/switch-card.d.ts +4 -1
  129. package/recipes/switch-card.mjs +1 -0
  130. package/recipes/switch-recipe.d.ts +4 -1
  131. package/recipes/switch-recipe.mjs +1 -0
  132. package/recipes/table-container.d.ts +3 -0
  133. package/recipes/table-empty-row.d.ts +3 -0
  134. package/recipes/table-group-title.d.ts +3 -0
  135. package/recipes/table.d.ts +4 -1
  136. package/recipes/table.mjs +1 -0
  137. package/recipes/tabs-chip.d.ts +3 -2
  138. package/recipes/tabs.d.ts +4 -1
  139. package/recipes/tabs.mjs +1 -0
  140. package/recipes/tag.d.ts +4 -3
  141. package/recipes/tag.mjs +1 -0
  142. package/recipes/text.d.ts +3 -0
  143. package/recipes/textarea.d.ts +3 -0
  144. package/recipes/tooltip.d.ts +4 -1
  145. package/recipes/tooltip.mjs +1 -0
  146. package/tokens/tokens.d.ts +1 -1
  147. package/types/composition.d.ts +83 -23
  148. package/types/conditions.d.ts +11 -7
  149. package/types/jsx.d.ts +25 -10
  150. package/types/prop-type.d.ts +10 -2
  151. package/types/style-props.d.ts +15 -4
  152. package/types/system-types.d.ts +76 -0
@@ -9,7 +9,6 @@ export interface CenterProperties {
9
9
  inline?: ConditionalValue<boolean>
10
10
  }
11
11
 
12
-
13
12
  interface CenterStyles extends CenterProperties, DistributiveOmit<SystemStyleObject, keyof CenterProperties > {}
14
13
 
15
14
  interface CenterPatternFn {
@@ -2,10 +2,10 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const centerConfig = {
5
- transform(props14) {
6
- const { inline, ...rest } = props14;
5
+ transform(props15) {
6
+ const { inline: inline2, ...rest } = props15;
7
7
  return {
8
- display: inline ? "inline-flex" : "flex",
8
+ display: inline2 ? "inline-flex" : "flex",
9
9
  alignItems: "center",
10
10
  justifyContent: "center",
11
11
  ...rest
@@ -9,7 +9,6 @@ export interface CircleProperties {
9
9
  size?: SystemProperties["width"]
10
10
  }
11
11
 
12
-
13
12
  interface CircleStyles extends CircleProperties, DistributiveOmit<SystemStyleObject, keyof CircleProperties > {}
14
13
 
15
14
  interface CirclePatternFn {
@@ -2,15 +2,15 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const circleConfig = {
5
- transform(props14) {
6
- const { size, ...rest } = props14;
5
+ transform(props15) {
6
+ const { size: size3, ...rest } = props15;
7
7
  return {
8
8
  display: "flex",
9
9
  alignItems: "center",
10
10
  justifyContent: "center",
11
11
  flex: "0 0 auto",
12
- width: size,
13
- height: size,
12
+ width: size3,
13
+ height: size3,
14
14
  borderRadius: "9999px",
15
15
  ...rest
16
16
  };
@@ -9,7 +9,6 @@ export interface ContainerProperties {
9
9
 
10
10
  }
11
11
 
12
-
13
12
  interface ContainerStyles extends ContainerProperties, DistributiveOmit<SystemStyleObject, keyof ContainerProperties > {}
14
13
 
15
14
  interface ContainerPatternFn {
@@ -2,13 +2,13 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const containerConfig = {
5
- transform(props14) {
5
+ transform(props15) {
6
6
  return {
7
7
  position: "relative",
8
8
  maxWidth: "8xl",
9
9
  mx: "auto",
10
10
  px: { base: "4", md: "6", lg: "8" },
11
- ...props14
11
+ ...props15
12
12
  };
13
13
  }}
14
14
 
package/patterns/cq.d.ts CHANGED
@@ -10,7 +10,6 @@ export interface CqProperties {
10
10
  type?: SystemProperties["containerType"]
11
11
  }
12
12
 
13
-
14
13
  interface CqStyles extends CqProperties, DistributiveOmit<SystemStyleObject, keyof CqProperties > {}
15
14
 
16
15
  interface CqPatternFn {
package/patterns/cq.mjs CHANGED
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const cqConfig = {
5
- transform(props14) {
6
- const { name, type, ...rest } = props14;
5
+ transform(props15) {
6
+ const { name, type, ...rest } = props15;
7
7
  return {
8
8
  containerType: type,
9
9
  containerName: name,
@@ -11,7 +11,6 @@ export interface DividerProperties {
11
11
  color?: ConditionalValue<Tokens["colors"] | Properties["borderColor"]>
12
12
  }
13
13
 
14
-
15
14
  interface DividerStyles extends DividerProperties, DistributiveOmit<SystemStyleObject, keyof DividerProperties > {}
16
15
 
17
16
  interface DividerPatternFn {
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const dividerConfig = {
5
- transform(props14, { map }) {
6
- const { orientation, thickness, color, ...rest } = props14;
5
+ transform(props15, { map }) {
6
+ const { orientation, thickness, color, ...rest } = props15;
7
7
  return {
8
8
  "--thickness": thickness,
9
9
  width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
@@ -15,7 +15,6 @@ export interface FlexProperties {
15
15
  shrink?: SystemProperties["flexShrink"]
16
16
  }
17
17
 
18
-
19
18
  interface FlexStyles extends FlexProperties, DistributiveOmit<SystemStyleObject, keyof FlexProperties > {}
20
19
 
21
20
  interface FlexPatternFn {
package/patterns/flex.mjs CHANGED
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const flexConfig = {
5
- transform(props14) {
6
- const { direction, align, justify, wrap: wrap22, basis, grow, shrink, ...rest } = props14;
5
+ transform(props15) {
6
+ const { direction, align, justify, wrap: wrap22, basis, grow, shrink, ...rest } = props15;
7
7
  return {
8
8
  display: "flex",
9
9
  flexDirection: direction,
@@ -12,7 +12,6 @@ export interface FloatProperties {
12
12
  placement?: ConditionalValue<"bottom-end" | "bottom-start" | "top-end" | "top-start" | "bottom-center" | "top-center" | "middle-center" | "middle-end" | "middle-start">
13
13
  }
14
14
 
15
-
16
15
  interface FloatStyles extends FloatProperties, DistributiveOmit<SystemStyleObject, keyof FloatProperties > {}
17
16
 
18
17
  interface FloatPatternFn {
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const floatConfig = {
5
- transform(props14, { map }) {
6
- const { offset, offsetX, offsetY, placement, ...rest } = props14;
5
+ transform(props15, { map }) {
6
+ const { offset: offset3, offsetX, offsetY, placement, ...rest } = props15;
7
7
  return {
8
8
  display: "inline-flex",
9
9
  justifyContent: "center",
@@ -38,9 +38,9 @@ transform(props14, { map }) {
38
38
  ...rest
39
39
  };
40
40
  },
41
- defaultValues(props14) {
42
- const offset = props14.offset || "0";
43
- return { offset, offsetX: offset, offsetY: offset, placement: "top-end" };
41
+ defaultValues(props15) {
42
+ const offset3 = props15.offset || "0";
43
+ return { offset: offset3, offsetX: offset3, offsetY: offset3, placement: "top-end" };
44
44
  }}
45
45
 
46
46
  export const getFloatStyle = (styles = {}) => {
@@ -14,7 +14,6 @@ export interface GridItemProperties {
14
14
  rowEnd?: ConditionalValue<number>
15
15
  }
16
16
 
17
-
18
17
  interface GridItemStyles extends GridItemProperties, DistributiveOmit<SystemStyleObject, keyof GridItemProperties > {}
19
18
 
20
19
  interface GridItemPatternFn {
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const gridItemConfig = {
5
- transform(props14, { map }) {
6
- const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props14;
5
+ transform(props15, { map }) {
6
+ const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props15;
7
7
  const spanFn = (v) => v === "auto" ? v : `span ${v}`;
8
8
  return {
9
9
  gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
@@ -13,7 +13,6 @@ export interface GridProperties {
13
13
  minChildWidth?: ConditionalValue<Tokens["sizes"] | Properties["width"]>
14
14
  }
15
15
 
16
-
17
16
  interface GridStyles extends GridProperties, DistributiveOmit<SystemStyleObject, keyof GridProperties > {}
18
17
 
19
18
  interface GridPatternFn {
package/patterns/grid.mjs CHANGED
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const gridConfig = {
5
- transform(props14, { map, isCssUnit }) {
6
- const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props14;
5
+ transform(props15, { map, isCssUnit }) {
6
+ const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props15;
7
7
  const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
8
8
  return {
9
9
  display: "grid",
@@ -14,8 +14,8 @@ transform(props14, { map, isCssUnit }) {
14
14
  ...rest
15
15
  };
16
16
  },
17
- defaultValues(props14) {
18
- return { gap: props14.columnGap || props14.rowGap ? void 0 : "10px" };
17
+ defaultValues(props15) {
18
+ return { gap: props15.columnGap || props15.rowGap ? void 0 : "8px" };
19
19
  }}
20
20
 
21
21
  export const getGridStyle = (styles = {}) => {
@@ -10,7 +10,6 @@ export interface HstackProperties {
10
10
  gap?: SystemProperties["gap"]
11
11
  }
12
12
 
13
-
14
13
  interface HstackStyles extends HstackProperties, DistributiveOmit<SystemStyleObject, keyof HstackProperties > {}
15
14
 
16
15
  interface HstackPatternFn {
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const hstackConfig = {
5
- transform(props14) {
6
- const { justify, gap, ...rest } = props14;
5
+ transform(props15) {
6
+ const { justify, gap, ...rest } = props15;
7
7
  return {
8
8
  display: "flex",
9
9
  alignItems: "center",
@@ -13,7 +13,7 @@ transform(props14) {
13
13
  ...rest
14
14
  };
15
15
  },
16
- defaultValues:{gap:'10px'}}
16
+ defaultValues:{gap:'8px'}}
17
17
 
18
18
  export const getHstackStyle = (styles = {}) => {
19
19
  const _styles = getPatternStyles(hstackConfig, styles)
@@ -9,7 +9,6 @@ export interface LinkOverlayProperties {
9
9
 
10
10
  }
11
11
 
12
-
13
12
  interface LinkOverlayStyles extends LinkOverlayProperties, DistributiveOmit<SystemStyleObject, keyof LinkOverlayProperties > {}
14
13
 
15
14
  interface LinkOverlayPatternFn {
@@ -2,16 +2,16 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const linkOverlayConfig = {
5
- transform(props14) {
5
+ transform(props15) {
6
6
  return {
7
7
  _before: {
8
8
  content: '""',
9
9
  position: "absolute",
10
10
  inset: "0",
11
11
  zIndex: "0",
12
- ...props14["_before"]
12
+ ...props15["_before"]
13
13
  },
14
- ...props14
14
+ ...props15
15
15
  };
16
16
  }}
17
17
 
@@ -9,7 +9,6 @@ export interface SpacerProperties {
9
9
  size?: ConditionalValue<Tokens["spacing"]>
10
10
  }
11
11
 
12
-
13
12
  interface SpacerStyles extends SpacerProperties, DistributiveOmit<SystemStyleObject, keyof SpacerProperties > {}
14
13
 
15
14
  interface SpacerPatternFn {
@@ -2,12 +2,12 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const spacerConfig = {
5
- transform(props14, { map }) {
6
- const { size, ...rest } = props14;
5
+ transform(props15, { map }) {
6
+ const { size: size3, ...rest } = props15;
7
7
  return {
8
8
  alignSelf: "stretch",
9
9
  justifySelf: "stretch",
10
- flex: map(size, (v) => v == null ? "1" : `0 0 ${v}`),
10
+ flex: map(size3, (v) => v == null ? "1" : `0 0 ${v}`),
11
11
  ...rest
12
12
  };
13
13
  }}
@@ -9,7 +9,6 @@ export interface SquareProperties {
9
9
  size?: SystemProperties["width"]
10
10
  }
11
11
 
12
-
13
12
  interface SquareStyles extends SquareProperties, DistributiveOmit<SystemStyleObject, keyof SquareProperties > {}
14
13
 
15
14
  interface SquarePatternFn {
@@ -2,15 +2,15 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const squareConfig = {
5
- transform(props14) {
6
- const { size, ...rest } = props14;
5
+ transform(props15) {
6
+ const { size: size3, ...rest } = props15;
7
7
  return {
8
8
  display: "flex",
9
9
  alignItems: "center",
10
10
  justifyContent: "center",
11
11
  flex: "0 0 auto",
12
- width: size,
13
- height: size,
12
+ width: size3,
13
+ height: size3,
14
14
  ...rest
15
15
  };
16
16
  }}
@@ -12,7 +12,6 @@ export interface StackProperties {
12
12
  gap?: SystemProperties["gap"]
13
13
  }
14
14
 
15
-
16
15
  interface StackStyles extends StackProperties, DistributiveOmit<SystemStyleObject, keyof StackProperties > {}
17
16
 
18
17
  interface StackPatternFn {
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const stackConfig = {
5
- transform(props14) {
6
- const { align, justify, direction, gap, ...rest } = props14;
5
+ transform(props15) {
6
+ const { align, justify, direction, gap, ...rest } = props15;
7
7
  return {
8
8
  display: "flex",
9
9
  flexDirection: direction,
@@ -13,7 +13,7 @@ transform(props14) {
13
13
  ...rest
14
14
  };
15
15
  },
16
- defaultValues:{direction:'column',gap:'10px'}}
16
+ defaultValues:{direction:'column',gap:'8px'}}
17
17
 
18
18
  export const getStackStyle = (styles = {}) => {
19
19
  const _styles = getPatternStyles(stackConfig, styles)
@@ -9,7 +9,6 @@ export interface VisuallyHiddenProperties {
9
9
 
10
10
  }
11
11
 
12
-
13
12
  interface VisuallyHiddenStyles extends VisuallyHiddenProperties, DistributiveOmit<SystemStyleObject, keyof VisuallyHiddenProperties > {}
14
13
 
15
14
  interface VisuallyHiddenPatternFn {
@@ -2,10 +2,10 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const visuallyHiddenConfig = {
5
- transform(props14) {
5
+ transform(props15) {
6
6
  return {
7
7
  srOnly: true,
8
- ...props14
8
+ ...props15
9
9
  };
10
10
  }}
11
11
 
@@ -10,7 +10,6 @@ export interface VstackProperties {
10
10
  gap?: SystemProperties["gap"]
11
11
  }
12
12
 
13
-
14
13
  interface VstackStyles extends VstackProperties, DistributiveOmit<SystemStyleObject, keyof VstackProperties > {}
15
14
 
16
15
  interface VstackPatternFn {
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const vstackConfig = {
5
- transform(props14) {
6
- const { justify, gap, ...rest } = props14;
5
+ transform(props15) {
6
+ const { justify, gap, ...rest } = props15;
7
7
  return {
8
8
  display: "flex",
9
9
  alignItems: "center",
@@ -13,7 +13,7 @@ transform(props14) {
13
13
  ...rest
14
14
  };
15
15
  },
16
- defaultValues:{gap:'10px'}}
16
+ defaultValues:{gap:'8px'}}
17
17
 
18
18
  export const getVstackStyle = (styles = {}) => {
19
19
  const _styles = getPatternStyles(vstackConfig, styles)
@@ -13,7 +13,6 @@ export interface WrapProperties {
13
13
  justify?: SystemProperties["justifyContent"]
14
14
  }
15
15
 
16
-
17
16
  interface WrapStyles extends WrapProperties, DistributiveOmit<SystemStyleObject, keyof WrapProperties > {}
18
17
 
19
18
  interface WrapPatternFn {
package/patterns/wrap.mjs CHANGED
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const wrapConfig = {
5
- transform(props14) {
6
- const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", align, justify, ...rest } = props14;
5
+ transform(props15) {
6
+ const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "8px", align, justify, ...rest } = props15;
7
7
  return {
8
8
  display: "flex",
9
9
  flexWrap: "wrap",
@@ -13,13 +13,16 @@ type AccordionVariantMap = {
13
13
  [key in keyof AccordionVariant]: Array<AccordionVariant[key]>
14
14
  }
15
15
 
16
+ type AccordionSlot = "root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator"
17
+
16
18
  export type AccordionVariantProps = {
17
19
  [key in keyof AccordionVariant]?: ConditionalValue<AccordionVariant[key]> | undefined
18
20
  }
19
21
 
20
22
  export interface AccordionRecipe {
23
+ __slot: AccordionSlot
21
24
  __type: AccordionVariantProps
22
- (props?: AccordionVariantProps): Pretty<Record<"root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator", string>>
25
+ (props?: AccordionVariantProps): Pretty<Record<AccordionSlot, string>>
23
26
  raw: (props?: AccordionVariantProps) => AccordionVariantProps
24
27
  variantMap: AccordionVariantMap
25
28
  variantKeys: Array<keyof AccordionVariant>
@@ -43,6 +43,7 @@ export const accordion = /* @__PURE__ */ Object.assign(accordionFn, {
43
43
  __recipe__: false,
44
44
  __name__: 'accordion',
45
45
  raw: (props) => props,
46
+ classNameMap: {},
46
47
  variantKeys: accordionVariantKeys,
47
48
  variantMap: {
48
49
  "size": [
@@ -10,13 +10,16 @@ type ActionCardVariantMap = {
10
10
  [key in keyof ActionCardVariant]: Array<ActionCardVariant[key]>
11
11
  }
12
12
 
13
+ type ActionCardSlot = "root" | "title" | "description" | "icon"
14
+
13
15
  export type ActionCardVariantProps = {
14
16
  [key in keyof ActionCardVariant]?: ConditionalValue<ActionCardVariant[key]> | undefined
15
17
  }
16
18
 
17
19
  export interface ActionCardRecipe {
20
+ __slot: ActionCardSlot
18
21
  __type: ActionCardVariantProps
19
- (props?: ActionCardVariantProps): Pretty<Record<"root" | "title" | "description" | "icon", string>>
22
+ (props?: ActionCardVariantProps): Pretty<Record<ActionCardSlot, string>>
20
23
  raw: (props?: ActionCardVariantProps) => ActionCardVariantProps
21
24
  variantMap: ActionCardVariantMap
22
25
  variantKeys: Array<keyof ActionCardVariant>
@@ -26,7 +29,5 @@ export interface ActionCardRecipe {
26
29
 
27
30
  /**
28
31
  * The styles for the ActionCard component
29
-
30
-
31
32
  */
32
33
  export declare const actionCard: ActionCardRecipe
@@ -35,6 +35,7 @@ export const actionCard = /* @__PURE__ */ Object.assign(actionCardFn, {
35
35
  __recipe__: false,
36
36
  __name__: 'actionCard',
37
37
  raw: (props) => props,
38
+ classNameMap: {},
38
39
  variantKeys: actionCardVariantKeys,
39
40
  variantMap: {},
40
41
  splitVariantProps(props) {
@@ -13,13 +13,16 @@ type AlertVariantMap = {
13
13
  [key in keyof AlertVariant]: Array<AlertVariant[key]>
14
14
  }
15
15
 
16
+ type AlertSlot = "root" | "icon" | "title" | "description"
17
+
16
18
  export type AlertVariantProps = {
17
19
  [key in keyof AlertVariant]?: ConditionalValue<AlertVariant[key]> | undefined
18
20
  }
19
21
 
20
22
  export interface AlertRecipe {
23
+ __slot: AlertSlot
21
24
  __type: AlertVariantProps
22
- (props?: AlertVariantProps): Pretty<Record<"root" | "icon" | "title" | "description", string>>
25
+ (props?: AlertVariantProps): Pretty<Record<AlertSlot, string>>
23
26
  raw: (props?: AlertVariantProps) => AlertVariantProps
24
27
  variantMap: AlertVariantMap
25
28
  variantKeys: Array<keyof AlertVariant>
@@ -29,7 +32,5 @@ export interface AlertRecipe {
29
32
 
30
33
  /**
31
34
  * The styles for the Alert component
32
-
33
-
34
35
  */
35
36
  export declare const alert: AlertRecipe
package/recipes/alert.mjs CHANGED
@@ -39,6 +39,7 @@ export const alert = /* @__PURE__ */ Object.assign(alertFn, {
39
39
  __recipe__: false,
40
40
  __name__: 'alert',
41
41
  raw: (props) => props,
42
+ classNameMap: {},
42
43
  variantKeys: alertVariantKeys,
43
44
  variantMap: {
44
45
  "severity": [
@@ -21,13 +21,16 @@ type AppNavigationLanguageSelectVariantMap = {
21
21
  [key in keyof AppNavigationLanguageSelectVariant]: Array<AppNavigationLanguageSelectVariant[key]>
22
22
  }
23
23
 
24
+ type AppNavigationLanguageSelectSlot = "label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText"
25
+
24
26
  export type AppNavigationLanguageSelectVariantProps = {
25
27
  [key in keyof AppNavigationLanguageSelectVariant]?: ConditionalValue<AppNavigationLanguageSelectVariant[key]> | undefined
26
28
  }
27
29
 
28
30
  export interface AppNavigationLanguageSelectRecipe {
31
+ __slot: AppNavigationLanguageSelectSlot
29
32
  __type: AppNavigationLanguageSelectVariantProps
30
- (props?: AppNavigationLanguageSelectVariantProps): Pretty<Record<"label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText", string>>
33
+ (props?: AppNavigationLanguageSelectVariantProps): Pretty<Record<AppNavigationLanguageSelectSlot, string>>
31
34
  raw: (props?: AppNavigationLanguageSelectVariantProps) => AppNavigationLanguageSelectVariantProps
32
35
  variantMap: AppNavigationLanguageSelectVariantMap
33
36
  variantKeys: Array<keyof AppNavigationLanguageSelectVariant>
@@ -87,6 +87,7 @@ export const appNavigationLanguageSelect = /* @__PURE__ */ Object.assign(appNavi
87
87
  __recipe__: false,
88
88
  __name__: 'appNavigationLanguageSelect',
89
89
  raw: (props) => props,
90
+ classNameMap: {},
90
91
  variantKeys: appNavigationLanguageSelectVariantKeys,
91
92
  variantMap: {
92
93
  "isMiniaturized": [
@@ -13,13 +13,16 @@ type AppNavigationVariantMap = {
13
13
  [key in keyof AppNavigationVariant]: Array<AppNavigationVariant[key]>
14
14
  }
15
15
 
16
+ type AppNavigationSlot = "root" | "header" | "miniaturizeTrigger" | "body" | "item" | "itemLabel" | "itemIcon" | "itemAlpha" | "itemContent" | "itemSubItems" | "footer"
17
+
16
18
  export type AppNavigationVariantProps = {
17
19
  [key in keyof AppNavigationVariant]?: ConditionalValue<AppNavigationVariant[key]> | undefined
18
20
  }
19
21
 
20
22
  export interface AppNavigationRecipe {
23
+ __slot: AppNavigationSlot
21
24
  __type: AppNavigationVariantProps
22
- (props?: AppNavigationVariantProps): Pretty<Record<"root" | "header" | "miniaturizeTrigger" | "body" | "item" | "itemLabel" | "itemIcon" | "itemAlpha" | "itemContent" | "itemSubItems" | "footer", string>>
25
+ (props?: AppNavigationVariantProps): Pretty<Record<AppNavigationSlot, string>>
23
26
  raw: (props?: AppNavigationVariantProps) => AppNavigationVariantProps
24
27
  variantMap: AppNavigationVariantMap
25
28
  variantKeys: Array<keyof AppNavigationVariant>
@@ -29,7 +32,5 @@ export interface AppNavigationRecipe {
29
32
 
30
33
  /**
31
34
  * The styles for the AppNavigation component
32
-
33
-
34
35
  */
35
36
  export declare const appNavigation: AppNavigationRecipe
@@ -67,6 +67,7 @@ export const appNavigation = /* @__PURE__ */ Object.assign(appNavigationFn, {
67
67
  __recipe__: false,
68
68
  __name__: 'appNavigation',
69
69
  raw: (props) => props,
70
+ classNameMap: {},
70
71
  variantKeys: appNavigationVariantKeys,
71
72
  variantMap: {
72
73
  "variant": [
@@ -13,11 +13,14 @@ type AvatarGroupVariantMap = {
13
13
  [key in keyof AvatarGroupVariant]: Array<AvatarGroupVariant[key]>
14
14
  }
15
15
 
16
+
17
+
16
18
  export type AvatarGroupVariantProps = {
17
19
  [key in keyof AvatarGroupVariant]?: ConditionalValue<AvatarGroupVariant[key]> | undefined
18
20
  }
19
21
 
20
22
  export interface AvatarGroupRecipe {
23
+
21
24
  __type: AvatarGroupVariantProps
22
25
  (props?: AvatarGroupVariantProps): string
23
26
  raw: (props?: AvatarGroupVariantProps) => AvatarGroupVariantProps