@mekari/pixel3-styled-system 0.0.7 → 0.0.8-dev.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 (187) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/css/conditions.mjs +1 -1
  3. package/css/css.d.ts +15 -2
  4. package/css/css.mjs +2 -1
  5. package/css/cva.d.ts +1 -1
  6. package/css/cva.mjs +3 -1
  7. package/css/sva.mjs +8 -2
  8. package/helpers.mjs +44 -48
  9. package/jsx/aspect-ratio.mjs +1 -1
  10. package/jsx/bleed.mjs +1 -1
  11. package/jsx/box.mjs +1 -1
  12. package/jsx/center.mjs +1 -1
  13. package/jsx/circle.mjs +1 -1
  14. package/jsx/container.mjs +1 -1
  15. package/jsx/cq.mjs +1 -1
  16. package/jsx/divider.mjs +1 -1
  17. package/jsx/factory.mjs +46 -18
  18. package/jsx/flex.mjs +1 -1
  19. package/jsx/float.mjs +1 -1
  20. package/jsx/grid-item.mjs +1 -1
  21. package/jsx/grid.mjs +1 -1
  22. package/jsx/hstack.mjs +1 -1
  23. package/jsx/index.d.ts +0 -1
  24. package/jsx/index.mjs +0 -1
  25. package/jsx/is-valid-prop.d.ts +1 -2
  26. package/jsx/is-valid-prop.mjs +2 -2
  27. package/jsx/link-overlay.mjs +1 -1
  28. package/jsx/spacer.mjs +1 -1
  29. package/jsx/square.mjs +1 -1
  30. package/jsx/stack.mjs +1 -1
  31. package/jsx/visually-hidden.mjs +1 -1
  32. package/jsx/vstack.mjs +1 -1
  33. package/jsx/wrap.mjs +1 -1
  34. package/package.json +1 -1
  35. package/patterns/aspect-ratio.d.ts +1 -1
  36. package/patterns/bleed.d.ts +3 -3
  37. package/patterns/box.d.ts +1 -1
  38. package/patterns/center.d.ts +1 -1
  39. package/patterns/circle.d.ts +2 -2
  40. package/patterns/container.d.ts +1 -1
  41. package/patterns/cq.d.ts +2 -2
  42. package/patterns/divider.d.ts +1 -1
  43. package/patterns/flex.d.ts +8 -8
  44. package/patterns/float.d.ts +1 -1
  45. package/patterns/grid-item.d.ts +1 -1
  46. package/patterns/grid.d.ts +4 -4
  47. package/patterns/hstack.d.ts +3 -3
  48. package/patterns/index.d.ts +0 -1
  49. package/patterns/index.mjs +0 -1
  50. package/patterns/link-overlay.d.ts +1 -1
  51. package/patterns/link-overlay.mjs +0 -3
  52. package/patterns/spacer.d.ts +1 -1
  53. package/patterns/square.d.ts +2 -2
  54. package/patterns/stack.d.ts +5 -5
  55. package/patterns/visually-hidden.d.ts +1 -1
  56. package/patterns/vstack.d.ts +3 -3
  57. package/patterns/wrap.d.ts +6 -6
  58. package/recipes/accordion.d.ts +1 -0
  59. package/recipes/accordion.mjs +4 -2
  60. package/recipes/avatar-group-slot-recipe.d.ts +1 -0
  61. package/recipes/avatar-group-slot-recipe.mjs +4 -2
  62. package/recipes/avatar-slot-recipe.d.ts +1 -0
  63. package/recipes/avatar-slot-recipe.mjs +4 -2
  64. package/recipes/badge-recipe.d.ts +1 -0
  65. package/recipes/badge-recipe.mjs +3 -1
  66. package/recipes/banner-close-button-recipe.d.ts +1 -0
  67. package/recipes/banner-close-button-recipe.mjs +3 -1
  68. package/recipes/banner-description-recipe.d.ts +1 -0
  69. package/recipes/banner-description-recipe.mjs +3 -1
  70. package/recipes/banner-icon-slot-recipe.d.ts +1 -0
  71. package/recipes/banner-icon-slot-recipe.mjs +4 -2
  72. package/recipes/banner-link-recipe.d.ts +1 -0
  73. package/recipes/banner-link-recipe.mjs +3 -1
  74. package/recipes/banner-slot-recipe.d.ts +1 -0
  75. package/recipes/banner-slot-recipe.mjs +4 -2
  76. package/recipes/banner-title-recipe.d.ts +1 -0
  77. package/recipes/banner-title-recipe.mjs +3 -1
  78. package/recipes/broadcast-slot-recipe.d.ts +1 -0
  79. package/recipes/broadcast-slot-recipe.mjs +4 -2
  80. package/recipes/button-group-recipe.d.ts +1 -0
  81. package/recipes/button-group-recipe.mjs +3 -1
  82. package/recipes/button-recipe.d.ts +1 -0
  83. package/recipes/button-recipe.mjs +3 -1
  84. package/recipes/calendar-panel-range-recipe.d.ts +1 -0
  85. package/recipes/calendar-panel-range-recipe.mjs +3 -1
  86. package/recipes/carousel-slot-recipe.d.ts +1 -0
  87. package/recipes/carousel-slot-recipe.mjs +4 -2
  88. package/recipes/chart-slot-recipe.d.ts +28 -0
  89. package/recipes/chart-slot-recipe.mjs +80 -0
  90. package/recipes/checkbox-slot-recipe.d.ts +1 -0
  91. package/recipes/checkbox-slot-recipe.mjs +4 -2
  92. package/recipes/create-recipe.mjs +8 -5
  93. package/recipes/date-item-recipe.d.ts +1 -0
  94. package/recipes/date-item-recipe.mjs +3 -1
  95. package/recipes/date-picker-slot-recipe.d.ts +1 -0
  96. package/recipes/date-picker-slot-recipe.mjs +4 -2
  97. package/recipes/day-item-recipe.d.ts +1 -0
  98. package/recipes/day-item-recipe.mjs +3 -1
  99. package/recipes/divider-recipe.d.ts +1 -0
  100. package/recipes/divider-recipe.mjs +3 -1
  101. package/recipes/dropzone-slot-recipe.d.ts +1 -0
  102. package/recipes/dropzone-slot-recipe.mjs +4 -2
  103. package/recipes/form-control-slot-recipe.d.ts +1 -0
  104. package/recipes/form-control-slot-recipe.mjs +4 -2
  105. package/recipes/icon-recipe.d.ts +1 -0
  106. package/recipes/icon-recipe.mjs +3 -1
  107. package/recipes/index.d.ts +2 -1
  108. package/recipes/index.mjs +2 -1
  109. package/recipes/input-addon-slot-recipe.d.ts +1 -0
  110. package/recipes/input-addon-slot-recipe.mjs +4 -2
  111. package/recipes/input-group-slot-recipe.d.ts +1 -0
  112. package/recipes/input-group-slot-recipe.mjs +4 -2
  113. package/recipes/input-slot-recipe.d.ts +1 -0
  114. package/recipes/input-slot-recipe.mjs +4 -2
  115. package/recipes/input-tag-slot-recipe.d.ts +1 -0
  116. package/recipes/input-tag-slot-recipe.mjs +4 -2
  117. package/recipes/modal-slot-recipe.d.ts +6 -1
  118. package/recipes/modal-slot-recipe.mjs +4 -2
  119. package/recipes/month-item-recipe.d.ts +1 -0
  120. package/recipes/month-item-recipe.mjs +3 -1
  121. package/recipes/pinbar-slot-recipe.d.ts +1 -0
  122. package/recipes/pinbar-slot-recipe.mjs +4 -2
  123. package/recipes/popover-content-recipe.d.ts +1 -0
  124. package/recipes/popover-content-recipe.mjs +3 -1
  125. package/recipes/popover-list-item-recipe.d.ts +1 -0
  126. package/recipes/popover-list-item-recipe.mjs +3 -1
  127. package/recipes/popover-list-recipe.d.ts +1 -0
  128. package/recipes/popover-list-recipe.mjs +3 -1
  129. package/recipes/progress-slot-recipe.d.ts +1 -0
  130. package/recipes/progress-slot-recipe.mjs +4 -2
  131. package/recipes/radio-slot-recipe.d.ts +1 -0
  132. package/recipes/radio-slot-recipe.mjs +4 -2
  133. package/recipes/rich-text-editor-slot-recipe.d.ts +1 -0
  134. package/recipes/rich-text-editor-slot-recipe.mjs +4 -2
  135. package/recipes/rtestyle-provider-recipe.d.ts +1 -0
  136. package/recipes/rtestyle-provider-recipe.mjs +3 -1
  137. package/recipes/segmented-control-slot-recipe.d.ts +1 -0
  138. package/recipes/segmented-control-slot-recipe.mjs +4 -2
  139. package/recipes/select-slot-recipe.d.ts +1 -0
  140. package/recipes/select-slot-recipe.mjs +4 -2
  141. package/recipes/selected-border-recipe.d.ts +1 -0
  142. package/recipes/selected-border-recipe.mjs +3 -1
  143. package/recipes/shared-slot-recipe.d.ts +1 -0
  144. package/recipes/shared-slot-recipe.mjs +4 -2
  145. package/recipes/spinner-recipe.d.ts +1 -0
  146. package/recipes/spinner-recipe.mjs +3 -1
  147. package/recipes/tab-list-recipe.d.ts +1 -0
  148. package/recipes/tab-list-recipe.mjs +3 -1
  149. package/recipes/tab-recipe.d.ts +1 -0
  150. package/recipes/tab-recipe.mjs +3 -1
  151. package/recipes/table-container-recipe.d.ts +1 -0
  152. package/recipes/table-container-recipe.mjs +3 -1
  153. package/recipes/table-date-slot-recipe.d.ts +1 -0
  154. package/recipes/table-date-slot-recipe.mjs +4 -2
  155. package/recipes/table-month-slot-recipe.d.ts +1 -0
  156. package/recipes/table-month-slot-recipe.mjs +4 -2
  157. package/recipes/table-recipe.d.ts +1 -0
  158. package/recipes/table-recipe.mjs +3 -1
  159. package/recipes/table-year-slot-recipe.d.ts +1 -0
  160. package/recipes/table-year-slot-recipe.mjs +4 -2
  161. package/recipes/tag-slot-recipe.d.ts +1 -0
  162. package/recipes/tag-slot-recipe.mjs +4 -2
  163. package/recipes/text-recipe.d.ts +1 -0
  164. package/recipes/text-recipe.mjs +3 -1
  165. package/recipes/textarea-recipe.d.ts +1 -0
  166. package/recipes/textarea-recipe.mjs +3 -1
  167. package/recipes/toast-slot-recipe.d.ts +1 -0
  168. package/recipes/toast-slot-recipe.mjs +4 -2
  169. package/recipes/toggle-slot-recipe.d.ts +1 -0
  170. package/recipes/toggle-slot-recipe.mjs +4 -2
  171. package/recipes/tooltip-recipe.d.ts +1 -0
  172. package/recipes/tooltip-recipe.mjs +3 -1
  173. package/recipes/upload-list-slot-recipe.d.ts +1 -0
  174. package/recipes/upload-list-slot-recipe.mjs +4 -2
  175. package/recipes/upload-slot-recipe.d.ts +1 -0
  176. package/recipes/upload-slot-recipe.mjs +4 -2
  177. package/recipes/year-item-recipe.d.ts +1 -0
  178. package/recipes/year-item-recipe.mjs +3 -1
  179. package/tokens/tokens.d.ts +0 -3
  180. package/types/composition.d.ts +39 -12
  181. package/types/conditions.d.ts +24 -26
  182. package/types/pattern.d.ts +4 -0
  183. package/types/prop-type.d.ts +51 -223
  184. package/types/recipe.d.ts +33 -10
  185. package/types/static-css.d.ts +4 -0
  186. package/types/style-props.d.ts +7458 -644
  187. package/types/system-types.d.ts +3 -8
@@ -56,4 +56,5 @@ export * from './table-date-slot-recipe';
56
56
  export * from './table-month-slot-recipe';
57
57
  export * from './table-year-slot-recipe';
58
58
  export * from './pinbar-slot-recipe';
59
- export * from './carousel-slot-recipe';
59
+ export * from './carousel-slot-recipe';
60
+ export * from './chart-slot-recipe';
package/recipes/index.mjs CHANGED
@@ -55,4 +55,5 @@ export * from './table-date-slot-recipe.mjs';
55
55
  export * from './table-month-slot-recipe.mjs';
56
56
  export * from './table-year-slot-recipe.mjs';
57
57
  export * from './pinbar-slot-recipe.mjs';
58
- export * from './carousel-slot-recipe.mjs';
58
+ export * from './carousel-slot-recipe.mjs';
59
+ export * from './chart-slot-recipe.mjs';
@@ -22,6 +22,7 @@ export interface InputAddonSlotRecipeRecipe {
22
22
  variantMap: InputAddonSlotRecipeVariantMap
23
23
  variantKeys: Array<keyof InputAddonSlotRecipeVariant>
24
24
  splitVariantProps<Props extends InputAddonSlotRecipeVariantProps>(props: Props): [InputAddonSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputAddonSlotRecipeVariantProps>>]
25
+ getVariantProps: (props?: InputAddonSlotRecipeVariantProps) => InputAddonSlotRecipeVariantProps
25
26
  }
26
27
 
27
28
 
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const inputAddonSlotRecipeDefaultVariants = {
@@ -16,13 +16,14 @@ const inputAddonSlotRecipeSlotNames = [
16
16
  const inputAddonSlotRecipeSlotFns = /* @__PURE__ */ inputAddonSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputAddonSlotRecipeDefaultVariants, getSlotCompoundVariant(inputAddonSlotRecipeCompoundVariants, slotName))])
17
17
 
18
18
  const inputAddonSlotRecipeFn = memo((props = {}) => {
19
- return Object.fromEntries(inputAddonSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
19
+ return Object.fromEntries(inputAddonSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
20
20
  })
21
21
 
22
22
  const inputAddonSlotRecipeVariantKeys = [
23
23
  "placement",
24
24
  "size"
25
25
  ]
26
+ const getVariantProps = (variants) => ({ ...inputAddonSlotRecipeDefaultVariants, ...compact(variants) })
26
27
 
27
28
  export const inputAddonSlotRecipe = /* @__PURE__ */ Object.assign(inputAddonSlotRecipeFn, {
28
29
  __recipe__: false,
@@ -42,4 +43,5 @@ export const inputAddonSlotRecipe = /* @__PURE__ */ Object.assign(inputAddonSlot
42
43
  splitVariantProps(props) {
43
44
  return splitProps(props, inputAddonSlotRecipeVariantKeys)
44
45
  },
46
+ getVariantProps
45
47
  })
@@ -21,6 +21,7 @@ export interface InputGroupSlotRecipeRecipe {
21
21
  variantMap: InputGroupSlotRecipeVariantMap
22
22
  variantKeys: Array<keyof InputGroupSlotRecipeVariant>
23
23
  splitVariantProps<Props extends InputGroupSlotRecipeVariantProps>(props: Props): [InputGroupSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputGroupSlotRecipeVariantProps>>]
24
+ getVariantProps: (props?: InputGroupSlotRecipeVariantProps) => InputGroupSlotRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const inputGroupSlotRecipeDefaultVariants = {}
@@ -13,10 +13,11 @@ const inputGroupSlotRecipeSlotNames = [
13
13
  const inputGroupSlotRecipeSlotFns = /* @__PURE__ */ inputGroupSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputGroupSlotRecipeDefaultVariants, getSlotCompoundVariant(inputGroupSlotRecipeCompoundVariants, slotName))])
14
14
 
15
15
  const inputGroupSlotRecipeFn = memo((props = {}) => {
16
- return Object.fromEntries(inputGroupSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
16
+ return Object.fromEntries(inputGroupSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
17
17
  })
18
18
 
19
19
  const inputGroupSlotRecipeVariantKeys = []
20
+ const getVariantProps = (variants) => ({ ...inputGroupSlotRecipeDefaultVariants, ...compact(variants) })
20
21
 
21
22
  export const inputGroupSlotRecipe = /* @__PURE__ */ Object.assign(inputGroupSlotRecipeFn, {
22
23
  __recipe__: false,
@@ -27,4 +28,5 @@ export const inputGroupSlotRecipe = /* @__PURE__ */ Object.assign(inputGroupSlot
27
28
  splitVariantProps(props) {
28
29
  return splitProps(props, inputGroupSlotRecipeVariantKeys)
29
30
  },
31
+ getVariantProps
30
32
  })
@@ -22,6 +22,7 @@ export interface InputSlotRecipeRecipe {
22
22
  variantMap: InputSlotRecipeVariantMap
23
23
  variantKeys: Array<keyof InputSlotRecipeVariant>
24
24
  splitVariantProps<Props extends InputSlotRecipeVariantProps>(props: Props): [InputSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputSlotRecipeVariantProps>>]
25
+ getVariantProps: (props?: InputSlotRecipeVariantProps) => InputSlotRecipeVariantProps
25
26
  }
26
27
 
27
28
 
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const inputSlotRecipeDefaultVariants = {
@@ -24,13 +24,14 @@ const inputSlotRecipeSlotNames = [
24
24
  const inputSlotRecipeSlotFns = /* @__PURE__ */ inputSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputSlotRecipeDefaultVariants, getSlotCompoundVariant(inputSlotRecipeCompoundVariants, slotName))])
25
25
 
26
26
  const inputSlotRecipeFn = memo((props = {}) => {
27
- return Object.fromEntries(inputSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
27
+ return Object.fromEntries(inputSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
28
28
  })
29
29
 
30
30
  const inputSlotRecipeVariantKeys = [
31
31
  "variant",
32
32
  "size"
33
33
  ]
34
+ const getVariantProps = (variants) => ({ ...inputSlotRecipeDefaultVariants, ...compact(variants) })
34
35
 
35
36
  export const inputSlotRecipe = /* @__PURE__ */ Object.assign(inputSlotRecipeFn, {
36
37
  __recipe__: false,
@@ -50,4 +51,5 @@ export const inputSlotRecipe = /* @__PURE__ */ Object.assign(inputSlotRecipeFn,
50
51
  splitVariantProps(props) {
51
52
  return splitProps(props, inputSlotRecipeVariantKeys)
52
53
  },
54
+ getVariantProps
53
55
  })
@@ -21,6 +21,7 @@ export interface InputTagSlotRecipeRecipe {
21
21
  variantMap: InputTagSlotRecipeVariantMap
22
22
  variantKeys: Array<keyof InputTagSlotRecipeVariant>
23
23
  splitVariantProps<Props extends InputTagSlotRecipeVariantProps>(props: Props): [InputTagSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputTagSlotRecipeVariantProps>>]
24
+ getVariantProps: (props?: InputTagSlotRecipeVariantProps) => InputTagSlotRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const inputTagSlotRecipeDefaultVariants = {}
@@ -53,10 +53,11 @@ const inputTagSlotRecipeSlotNames = [
53
53
  const inputTagSlotRecipeSlotFns = /* @__PURE__ */ inputTagSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputTagSlotRecipeDefaultVariants, getSlotCompoundVariant(inputTagSlotRecipeCompoundVariants, slotName))])
54
54
 
55
55
  const inputTagSlotRecipeFn = memo((props = {}) => {
56
- return Object.fromEntries(inputTagSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
56
+ return Object.fromEntries(inputTagSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
57
57
  })
58
58
 
59
59
  const inputTagSlotRecipeVariantKeys = []
60
+ const getVariantProps = (variants) => ({ ...inputTagSlotRecipeDefaultVariants, ...compact(variants) })
60
61
 
61
62
  export const inputTagSlotRecipe = /* @__PURE__ */ Object.assign(inputTagSlotRecipeFn, {
62
63
  __recipe__: false,
@@ -67,4 +68,5 @@ export const inputTagSlotRecipe = /* @__PURE__ */ Object.assign(inputTagSlotReci
67
68
  splitVariantProps(props) {
68
69
  return splitProps(props, inputTagSlotRecipeVariantKeys)
69
70
  },
71
+ getVariantProps
70
72
  })
@@ -21,7 +21,12 @@ export interface ModalSlotRecipeRecipe {
21
21
  variantMap: ModalSlotRecipeVariantMap
22
22
  variantKeys: Array<keyof ModalSlotRecipeVariant>
23
23
  splitVariantProps<Props extends ModalSlotRecipeVariantProps>(props: Props): [ModalSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ModalSlotRecipeVariantProps>>]
24
+ getVariantProps: (props?: ModalSlotRecipeVariantProps) => ModalSlotRecipeVariantProps
24
25
  }
25
26
 
26
- /** The styles for the Modal component */
27
+ /**
28
+ * The styles for the Modal component
29
+
30
+
31
+ */
27
32
  export declare const modalSlotRecipe: ModalSlotRecipeRecipe
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const modalSlotRecipeDefaultVariants = {
@@ -51,12 +51,13 @@ const modalSlotRecipeSlotNames = [
51
51
  const modalSlotRecipeSlotFns = /* @__PURE__ */ modalSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, modalSlotRecipeDefaultVariants, getSlotCompoundVariant(modalSlotRecipeCompoundVariants, slotName))])
52
52
 
53
53
  const modalSlotRecipeFn = memo((props = {}) => {
54
- return Object.fromEntries(modalSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
54
+ return Object.fromEntries(modalSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
55
55
  })
56
56
 
57
57
  const modalSlotRecipeVariantKeys = [
58
58
  "full"
59
59
  ]
60
+ const getVariantProps = (variants) => ({ ...modalSlotRecipeDefaultVariants, ...compact(variants) })
60
61
 
61
62
  export const modalSlotRecipe = /* @__PURE__ */ Object.assign(modalSlotRecipeFn, {
62
63
  __recipe__: false,
@@ -72,4 +73,5 @@ export const modalSlotRecipe = /* @__PURE__ */ Object.assign(modalSlotRecipeFn,
72
73
  splitVariantProps(props) {
73
74
  return splitProps(props, modalSlotRecipeVariantKeys)
74
75
  },
76
+ getVariantProps
75
77
  })
@@ -21,6 +21,7 @@ export interface MonthItemRecipeRecipe {
21
21
  variantMap: MonthItemRecipeVariantMap
22
22
  variantKeys: Array<keyof MonthItemRecipeVariant>
23
23
  splitVariantProps<Props extends MonthItemRecipeVariantProps>(props: Props): [MonthItemRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof MonthItemRecipeVariantProps>>]
24
+ getVariantProps: (props?: MonthItemRecipeVariantProps) => MonthItemRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -15,9 +15,10 @@ const monthItemRecipeVariantMap = {
15
15
 
16
16
  const monthItemRecipeVariantKeys = Object.keys(monthItemRecipeVariantMap)
17
17
 
18
- export const monthItemRecipe = /* @__PURE__ */ Object.assign(memo(monthItemRecipeFn), {
18
+ export const monthItemRecipe = /* @__PURE__ */ Object.assign(memo(monthItemRecipeFn.recipeFn), {
19
19
  __recipe__: true,
20
20
  __name__: 'monthItemRecipe',
21
+ __getCompoundVariantCss__: monthItemRecipeFn.__getCompoundVariantCss__,
21
22
  raw: (props) => props,
22
23
  variantKeys: monthItemRecipeVariantKeys,
23
24
  variantMap: monthItemRecipeVariantMap,
@@ -27,4 +28,5 @@ export const monthItemRecipe = /* @__PURE__ */ Object.assign(memo(monthItemRecip
27
28
  splitVariantProps(props) {
28
29
  return splitProps(props, monthItemRecipeVariantKeys)
29
30
  },
31
+ getVariantProps: monthItemRecipeFn.getVariantProps,
30
32
  })
@@ -21,6 +21,7 @@ export interface PinbarSlotRecipeRecipe {
21
21
  variantMap: PinbarSlotRecipeVariantMap
22
22
  variantKeys: Array<keyof PinbarSlotRecipeVariant>
23
23
  splitVariantProps<Props extends PinbarSlotRecipeVariantProps>(props: Props): [PinbarSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof PinbarSlotRecipeVariantProps>>]
24
+ getVariantProps: (props?: PinbarSlotRecipeVariantProps) => PinbarSlotRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const pinbarSlotRecipeDefaultVariants = {}
@@ -17,10 +17,11 @@ const pinbarSlotRecipeSlotNames = [
17
17
  const pinbarSlotRecipeSlotFns = /* @__PURE__ */ pinbarSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, pinbarSlotRecipeDefaultVariants, getSlotCompoundVariant(pinbarSlotRecipeCompoundVariants, slotName))])
18
18
 
19
19
  const pinbarSlotRecipeFn = memo((props = {}) => {
20
- return Object.fromEntries(pinbarSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
20
+ return Object.fromEntries(pinbarSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
21
21
  })
22
22
 
23
23
  const pinbarSlotRecipeVariantKeys = []
24
+ const getVariantProps = (variants) => ({ ...pinbarSlotRecipeDefaultVariants, ...compact(variants) })
24
25
 
25
26
  export const pinbarSlotRecipe = /* @__PURE__ */ Object.assign(pinbarSlotRecipeFn, {
26
27
  __recipe__: false,
@@ -31,4 +32,5 @@ export const pinbarSlotRecipe = /* @__PURE__ */ Object.assign(pinbarSlotRecipeFn
31
32
  splitVariantProps(props) {
32
33
  return splitProps(props, pinbarSlotRecipeVariantKeys)
33
34
  },
35
+ getVariantProps
34
36
  })
@@ -22,6 +22,7 @@ export interface PopoverContentRecipeRecipe {
22
22
  variantMap: PopoverContentRecipeVariantMap
23
23
  variantKeys: Array<keyof PopoverContentRecipeVariant>
24
24
  splitVariantProps<Props extends PopoverContentRecipeVariantProps>(props: Props): [PopoverContentRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof PopoverContentRecipeVariantProps>>]
25
+ getVariantProps: (props?: PopoverContentRecipeVariantProps) => PopoverContentRecipeVariantProps
25
26
  }
26
27
 
27
28
 
@@ -19,9 +19,10 @@ const popoverContentRecipeVariantMap = {
19
19
 
20
20
  const popoverContentRecipeVariantKeys = Object.keys(popoverContentRecipeVariantMap)
21
21
 
22
- export const popoverContentRecipe = /* @__PURE__ */ Object.assign(memo(popoverContentRecipeFn), {
22
+ export const popoverContentRecipe = /* @__PURE__ */ Object.assign(memo(popoverContentRecipeFn.recipeFn), {
23
23
  __recipe__: true,
24
24
  __name__: 'popoverContentRecipe',
25
+ __getCompoundVariantCss__: popoverContentRecipeFn.__getCompoundVariantCss__,
25
26
  raw: (props) => props,
26
27
  variantKeys: popoverContentRecipeVariantKeys,
27
28
  variantMap: popoverContentRecipeVariantMap,
@@ -31,4 +32,5 @@ export const popoverContentRecipe = /* @__PURE__ */ Object.assign(memo(popoverCo
31
32
  splitVariantProps(props) {
32
33
  return splitProps(props, popoverContentRecipeVariantKeys)
33
34
  },
35
+ getVariantProps: popoverContentRecipeFn.getVariantProps,
34
36
  })
@@ -21,6 +21,7 @@ export interface PopoverListItemRecipeRecipe {
21
21
  variantMap: PopoverListItemRecipeVariantMap
22
22
  variantKeys: Array<keyof PopoverListItemRecipeVariant>
23
23
  splitVariantProps<Props extends PopoverListItemRecipeVariantProps>(props: Props): [PopoverListItemRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof PopoverListItemRecipeVariantProps>>]
24
+ getVariantProps: (props?: PopoverListItemRecipeVariantProps) => PopoverListItemRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -7,9 +7,10 @@ const popoverListItemRecipeVariantMap = {}
7
7
 
8
8
  const popoverListItemRecipeVariantKeys = Object.keys(popoverListItemRecipeVariantMap)
9
9
 
10
- export const popoverListItemRecipe = /* @__PURE__ */ Object.assign(memo(popoverListItemRecipeFn), {
10
+ export const popoverListItemRecipe = /* @__PURE__ */ Object.assign(memo(popoverListItemRecipeFn.recipeFn), {
11
11
  __recipe__: true,
12
12
  __name__: 'popoverListItemRecipe',
13
+ __getCompoundVariantCss__: popoverListItemRecipeFn.__getCompoundVariantCss__,
13
14
  raw: (props) => props,
14
15
  variantKeys: popoverListItemRecipeVariantKeys,
15
16
  variantMap: popoverListItemRecipeVariantMap,
@@ -19,4 +20,5 @@ export const popoverListItemRecipe = /* @__PURE__ */ Object.assign(memo(popoverL
19
20
  splitVariantProps(props) {
20
21
  return splitProps(props, popoverListItemRecipeVariantKeys)
21
22
  },
23
+ getVariantProps: popoverListItemRecipeFn.getVariantProps,
22
24
  })
@@ -21,6 +21,7 @@ export interface PopoverListRecipeRecipe {
21
21
  variantMap: PopoverListRecipeVariantMap
22
22
  variantKeys: Array<keyof PopoverListRecipeVariant>
23
23
  splitVariantProps<Props extends PopoverListRecipeVariantProps>(props: Props): [PopoverListRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof PopoverListRecipeVariantProps>>]
24
+ getVariantProps: (props?: PopoverListRecipeVariantProps) => PopoverListRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -7,9 +7,10 @@ const popoverListRecipeVariantMap = {}
7
7
 
8
8
  const popoverListRecipeVariantKeys = Object.keys(popoverListRecipeVariantMap)
9
9
 
10
- export const popoverListRecipe = /* @__PURE__ */ Object.assign(memo(popoverListRecipeFn), {
10
+ export const popoverListRecipe = /* @__PURE__ */ Object.assign(memo(popoverListRecipeFn.recipeFn), {
11
11
  __recipe__: true,
12
12
  __name__: 'popoverListRecipe',
13
+ __getCompoundVariantCss__: popoverListRecipeFn.__getCompoundVariantCss__,
13
14
  raw: (props) => props,
14
15
  variantKeys: popoverListRecipeVariantKeys,
15
16
  variantMap: popoverListRecipeVariantMap,
@@ -19,4 +20,5 @@ export const popoverListRecipe = /* @__PURE__ */ Object.assign(memo(popoverListR
19
20
  splitVariantProps(props) {
20
21
  return splitProps(props, popoverListRecipeVariantKeys)
21
22
  },
23
+ getVariantProps: popoverListRecipeFn.getVariantProps,
22
24
  })
@@ -22,6 +22,7 @@ export interface ProgressSlotRecipeRecipe {
22
22
  variantMap: ProgressSlotRecipeVariantMap
23
23
  variantKeys: Array<keyof ProgressSlotRecipeVariant>
24
24
  splitVariantProps<Props extends ProgressSlotRecipeVariantProps>(props: Props): [ProgressSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ProgressSlotRecipeVariantProps>>]
25
+ getVariantProps: (props?: ProgressSlotRecipeVariantProps) => ProgressSlotRecipeVariantProps
25
26
  }
26
27
 
27
28
 
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const progressSlotRecipeDefaultVariants = {
@@ -28,13 +28,14 @@ const progressSlotRecipeSlotNames = [
28
28
  const progressSlotRecipeSlotFns = /* @__PURE__ */ progressSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, progressSlotRecipeDefaultVariants, getSlotCompoundVariant(progressSlotRecipeCompoundVariants, slotName))])
29
29
 
30
30
  const progressSlotRecipeFn = memo((props = {}) => {
31
- return Object.fromEntries(progressSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
31
+ return Object.fromEntries(progressSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
32
32
  })
33
33
 
34
34
  const progressSlotRecipeVariantKeys = [
35
35
  "size",
36
36
  "variant"
37
37
  ]
38
+ const getVariantProps = (variants) => ({ ...progressSlotRecipeDefaultVariants, ...compact(variants) })
38
39
 
39
40
  export const progressSlotRecipe = /* @__PURE__ */ Object.assign(progressSlotRecipeFn, {
40
41
  __recipe__: false,
@@ -54,4 +55,5 @@ export const progressSlotRecipe = /* @__PURE__ */ Object.assign(progressSlotReci
54
55
  splitVariantProps(props) {
55
56
  return splitProps(props, progressSlotRecipeVariantKeys)
56
57
  },
58
+ getVariantProps
57
59
  })
@@ -21,6 +21,7 @@ export interface RadioSlotRecipeRecipe {
21
21
  variantMap: RadioSlotRecipeVariantMap
22
22
  variantKeys: Array<keyof RadioSlotRecipeVariant>
23
23
  splitVariantProps<Props extends RadioSlotRecipeVariantProps>(props: Props): [RadioSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof RadioSlotRecipeVariantProps>>]
24
+ getVariantProps: (props?: RadioSlotRecipeVariantProps) => RadioSlotRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const radioSlotRecipeDefaultVariants = {}
@@ -21,10 +21,11 @@ const radioSlotRecipeSlotNames = [
21
21
  const radioSlotRecipeSlotFns = /* @__PURE__ */ radioSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, radioSlotRecipeDefaultVariants, getSlotCompoundVariant(radioSlotRecipeCompoundVariants, slotName))])
22
22
 
23
23
  const radioSlotRecipeFn = memo((props = {}) => {
24
- return Object.fromEntries(radioSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
24
+ return Object.fromEntries(radioSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
25
25
  })
26
26
 
27
27
  const radioSlotRecipeVariantKeys = []
28
+ const getVariantProps = (variants) => ({ ...radioSlotRecipeDefaultVariants, ...compact(variants) })
28
29
 
29
30
  export const radioSlotRecipe = /* @__PURE__ */ Object.assign(radioSlotRecipeFn, {
30
31
  __recipe__: false,
@@ -35,4 +36,5 @@ export const radioSlotRecipe = /* @__PURE__ */ Object.assign(radioSlotRecipeFn,
35
36
  splitVariantProps(props) {
36
37
  return splitProps(props, radioSlotRecipeVariantKeys)
37
38
  },
39
+ getVariantProps
38
40
  })
@@ -21,6 +21,7 @@ export interface RichTextEditorSlotRecipeRecipe {
21
21
  variantMap: RichTextEditorSlotRecipeVariantMap
22
22
  variantKeys: Array<keyof RichTextEditorSlotRecipeVariant>
23
23
  splitVariantProps<Props extends RichTextEditorSlotRecipeVariantProps>(props: Props): [RichTextEditorSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof RichTextEditorSlotRecipeVariantProps>>]
24
+ getVariantProps: (props?: RichTextEditorSlotRecipeVariantProps) => RichTextEditorSlotRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const richTextEditorSlotRecipeDefaultVariants = {}
@@ -21,10 +21,11 @@ const richTextEditorSlotRecipeSlotNames = [
21
21
  const richTextEditorSlotRecipeSlotFns = /* @__PURE__ */ richTextEditorSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, richTextEditorSlotRecipeDefaultVariants, getSlotCompoundVariant(richTextEditorSlotRecipeCompoundVariants, slotName))])
22
22
 
23
23
  const richTextEditorSlotRecipeFn = memo((props = {}) => {
24
- return Object.fromEntries(richTextEditorSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
24
+ return Object.fromEntries(richTextEditorSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
25
25
  })
26
26
 
27
27
  const richTextEditorSlotRecipeVariantKeys = []
28
+ const getVariantProps = (variants) => ({ ...richTextEditorSlotRecipeDefaultVariants, ...compact(variants) })
28
29
 
29
30
  export const richTextEditorSlotRecipe = /* @__PURE__ */ Object.assign(richTextEditorSlotRecipeFn, {
30
31
  __recipe__: false,
@@ -35,4 +36,5 @@ export const richTextEditorSlotRecipe = /* @__PURE__ */ Object.assign(richTextEd
35
36
  splitVariantProps(props) {
36
37
  return splitProps(props, richTextEditorSlotRecipeVariantKeys)
37
38
  },
39
+ getVariantProps
38
40
  })
@@ -21,6 +21,7 @@ export interface RTEStyleProviderRecipeRecipe {
21
21
  variantMap: RTEStyleProviderRecipeVariantMap
22
22
  variantKeys: Array<keyof RTEStyleProviderRecipeVariant>
23
23
  splitVariantProps<Props extends RTEStyleProviderRecipeVariantProps>(props: Props): [RTEStyleProviderRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof RTEStyleProviderRecipeVariantProps>>]
24
+ getVariantProps: (props?: RTEStyleProviderRecipeVariantProps) => RTEStyleProviderRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -7,9 +7,10 @@ const RTEStyleProviderRecipeVariantMap = {}
7
7
 
8
8
  const RTEStyleProviderRecipeVariantKeys = Object.keys(RTEStyleProviderRecipeVariantMap)
9
9
 
10
- export const RTEStyleProviderRecipe = /* @__PURE__ */ Object.assign(memo(RTEStyleProviderRecipeFn), {
10
+ export const RTEStyleProviderRecipe = /* @__PURE__ */ Object.assign(memo(RTEStyleProviderRecipeFn.recipeFn), {
11
11
  __recipe__: true,
12
12
  __name__: 'RTEStyleProviderRecipe',
13
+ __getCompoundVariantCss__: RTEStyleProviderRecipeFn.__getCompoundVariantCss__,
13
14
  raw: (props) => props,
14
15
  variantKeys: RTEStyleProviderRecipeVariantKeys,
15
16
  variantMap: RTEStyleProviderRecipeVariantMap,
@@ -19,4 +20,5 @@ export const RTEStyleProviderRecipe = /* @__PURE__ */ Object.assign(memo(RTEStyl
19
20
  splitVariantProps(props) {
20
21
  return splitProps(props, RTEStyleProviderRecipeVariantKeys)
21
22
  },
23
+ getVariantProps: RTEStyleProviderRecipeFn.getVariantProps,
22
24
  })
@@ -21,6 +21,7 @@ export interface SegmentedControlSlotRecipeRecipe {
21
21
  variantMap: SegmentedControlSlotRecipeVariantMap
22
22
  variantKeys: Array<keyof SegmentedControlSlotRecipeVariant>
23
23
  splitVariantProps<Props extends SegmentedControlSlotRecipeVariantProps>(props: Props): [SegmentedControlSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SegmentedControlSlotRecipeVariantProps>>]
24
+ getVariantProps: (props?: SegmentedControlSlotRecipeVariantProps) => SegmentedControlSlotRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const segmentedControlSlotRecipeDefaultVariants = {}
@@ -33,10 +33,11 @@ const segmentedControlSlotRecipeSlotNames = [
33
33
  const segmentedControlSlotRecipeSlotFns = /* @__PURE__ */ segmentedControlSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, segmentedControlSlotRecipeDefaultVariants, getSlotCompoundVariant(segmentedControlSlotRecipeCompoundVariants, slotName))])
34
34
 
35
35
  const segmentedControlSlotRecipeFn = memo((props = {}) => {
36
- return Object.fromEntries(segmentedControlSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
36
+ return Object.fromEntries(segmentedControlSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
37
37
  })
38
38
 
39
39
  const segmentedControlSlotRecipeVariantKeys = []
40
+ const getVariantProps = (variants) => ({ ...segmentedControlSlotRecipeDefaultVariants, ...compact(variants) })
40
41
 
41
42
  export const segmentedControlSlotRecipe = /* @__PURE__ */ Object.assign(segmentedControlSlotRecipeFn, {
42
43
  __recipe__: false,
@@ -47,4 +48,5 @@ export const segmentedControlSlotRecipe = /* @__PURE__ */ Object.assign(segmente
47
48
  splitVariantProps(props) {
48
49
  return splitProps(props, segmentedControlSlotRecipeVariantKeys)
49
50
  },
51
+ getVariantProps
50
52
  })
@@ -21,6 +21,7 @@ export interface SelectSlotRecipeRecipe {
21
21
  variantMap: SelectSlotRecipeVariantMap
22
22
  variantKeys: Array<keyof SelectSlotRecipeVariant>
23
23
  splitVariantProps<Props extends SelectSlotRecipeVariantProps>(props: Props): [SelectSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SelectSlotRecipeVariantProps>>]
24
+ getVariantProps: (props?: SelectSlotRecipeVariantProps) => SelectSlotRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const selectSlotRecipeDefaultVariants = {
@@ -27,12 +27,13 @@ const selectSlotRecipeSlotNames = [
27
27
  const selectSlotRecipeSlotFns = /* @__PURE__ */ selectSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, selectSlotRecipeDefaultVariants, getSlotCompoundVariant(selectSlotRecipeCompoundVariants, slotName))])
28
28
 
29
29
  const selectSlotRecipeFn = memo((props = {}) => {
30
- return Object.fromEntries(selectSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
30
+ return Object.fromEntries(selectSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
31
31
  })
32
32
 
33
33
  const selectSlotRecipeVariantKeys = [
34
34
  "size"
35
35
  ]
36
+ const getVariantProps = (variants) => ({ ...selectSlotRecipeDefaultVariants, ...compact(variants) })
36
37
 
37
38
  export const selectSlotRecipe = /* @__PURE__ */ Object.assign(selectSlotRecipeFn, {
38
39
  __recipe__: false,
@@ -48,4 +49,5 @@ export const selectSlotRecipe = /* @__PURE__ */ Object.assign(selectSlotRecipeFn
48
49
  splitVariantProps(props) {
49
50
  return splitProps(props, selectSlotRecipeVariantKeys)
50
51
  },
52
+ getVariantProps
51
53
  })
@@ -22,6 +22,7 @@ export interface SelectedBorderRecipeRecipe {
22
22
  variantMap: SelectedBorderRecipeVariantMap
23
23
  variantKeys: Array<keyof SelectedBorderRecipeVariant>
24
24
  splitVariantProps<Props extends SelectedBorderRecipeVariantProps>(props: Props): [SelectedBorderRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SelectedBorderRecipeVariantProps>>]
25
+ getVariantProps: (props?: SelectedBorderRecipeVariantProps) => SelectedBorderRecipeVariantProps
25
26
  }
26
27
 
27
28
 
@@ -73,9 +73,10 @@ const selectedBorderRecipeVariantMap = {
73
73
 
74
74
  const selectedBorderRecipeVariantKeys = Object.keys(selectedBorderRecipeVariantMap)
75
75
 
76
- export const selectedBorderRecipe = /* @__PURE__ */ Object.assign(memo(selectedBorderRecipeFn), {
76
+ export const selectedBorderRecipe = /* @__PURE__ */ Object.assign(memo(selectedBorderRecipeFn.recipeFn), {
77
77
  __recipe__: true,
78
78
  __name__: 'selectedBorderRecipe',
79
+ __getCompoundVariantCss__: selectedBorderRecipeFn.__getCompoundVariantCss__,
79
80
  raw: (props) => props,
80
81
  variantKeys: selectedBorderRecipeVariantKeys,
81
82
  variantMap: selectedBorderRecipeVariantMap,
@@ -85,4 +86,5 @@ export const selectedBorderRecipe = /* @__PURE__ */ Object.assign(memo(selectedB
85
86
  splitVariantProps(props) {
86
87
  return splitProps(props, selectedBorderRecipeVariantKeys)
87
88
  },
89
+ getVariantProps: selectedBorderRecipeFn.getVariantProps,
88
90
  })
@@ -21,6 +21,7 @@ export interface SharedSlotRecipeRecipe {
21
21
  variantMap: SharedSlotRecipeVariantMap
22
22
  variantKeys: Array<keyof SharedSlotRecipeVariant>
23
23
  splitVariantProps<Props extends SharedSlotRecipeVariantProps>(props: Props): [SharedSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SharedSlotRecipeVariantProps>>]
24
+ getVariantProps: (props?: SharedSlotRecipeVariantProps) => SharedSlotRecipeVariantProps
24
25
  }
25
26
 
26
27
 
@@ -1,4 +1,4 @@
1
- import { getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const sharedSlotRecipeDefaultVariants = {}
@@ -13,10 +13,11 @@ const sharedSlotRecipeSlotNames = [
13
13
  const sharedSlotRecipeSlotFns = /* @__PURE__ */ sharedSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, sharedSlotRecipeDefaultVariants, getSlotCompoundVariant(sharedSlotRecipeCompoundVariants, slotName))])
14
14
 
15
15
  const sharedSlotRecipeFn = memo((props = {}) => {
16
- return Object.fromEntries(sharedSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
16
+ return Object.fromEntries(sharedSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
17
17
  })
18
18
 
19
19
  const sharedSlotRecipeVariantKeys = []
20
+ const getVariantProps = (variants) => ({ ...sharedSlotRecipeDefaultVariants, ...compact(variants) })
20
21
 
21
22
  export const sharedSlotRecipe = /* @__PURE__ */ Object.assign(sharedSlotRecipeFn, {
22
23
  __recipe__: false,
@@ -27,4 +28,5 @@ export const sharedSlotRecipe = /* @__PURE__ */ Object.assign(sharedSlotRecipeFn
27
28
  splitVariantProps(props) {
28
29
  return splitProps(props, sharedSlotRecipeVariantKeys)
29
30
  },
31
+ getVariantProps
30
32
  })
@@ -21,6 +21,7 @@ export interface SpinnerRecipeRecipe {
21
21
  variantMap: SpinnerRecipeVariantMap
22
22
  variantKeys: Array<keyof SpinnerRecipeVariant>
23
23
  splitVariantProps<Props extends SpinnerRecipeVariantProps>(props: Props): [SpinnerRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SpinnerRecipeVariantProps>>]
24
+ getVariantProps: (props?: SpinnerRecipeVariantProps) => SpinnerRecipeVariantProps
24
25
  }
25
26
 
26
27