@mekari/pixel3-styled-system 0.0.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 (211) hide show
  1. package/.turbo/turbo-build.log +16 -0
  2. package/chunks/packages__accordion__src__accordion.css +10 -0
  3. package/chunks/packages__avatar2__src__modules__avatar.recipes.css +166 -0
  4. package/chunks/packages__avatar__src__avatar.style.css +150 -0
  5. package/chunks/packages__avatar__src__avatar.styles.css +171 -0
  6. package/chunks/packages__avatar__src__modules__avatar.recipes.css +191 -0
  7. package/chunks/packages__core__node_modules__@mekari__pixel3-accordion__src__accordion.css +10 -0
  8. package/chunks/packages__core__node_modules__@mekari__pixel3-avatar2__src__modules__avatar.recipes.css +166 -0
  9. package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.css +16 -0
  10. package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.style.css +150 -0
  11. package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.styles.css +171 -0
  12. package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__modules__avatar.recipes.css +191 -0
  13. package/css/conditions.mjs +34 -0
  14. package/css/css.d.ts +9 -0
  15. package/css/css.mjs +44 -0
  16. package/css/cva.d.ts +6 -0
  17. package/css/cva.mjs +85 -0
  18. package/css/cx.d.ts +5 -0
  19. package/css/cx.mjs +15 -0
  20. package/css/index.d.ts +5 -0
  21. package/css/index.mjs +4 -0
  22. package/css/sva.d.ts +4 -0
  23. package/css/sva.mjs +35 -0
  24. package/global.css +59 -0
  25. package/helpers.mjs +300 -0
  26. package/jsx/aspect-ratio.d.ts +10 -0
  27. package/jsx/aspect-ratio.mjs +16 -0
  28. package/jsx/bleed.d.ts +10 -0
  29. package/jsx/bleed.mjs +16 -0
  30. package/jsx/box.d.ts +10 -0
  31. package/jsx/box.mjs +16 -0
  32. package/jsx/center.d.ts +10 -0
  33. package/jsx/center.mjs +16 -0
  34. package/jsx/circle.d.ts +10 -0
  35. package/jsx/circle.mjs +16 -0
  36. package/jsx/container.d.ts +10 -0
  37. package/jsx/container.mjs +16 -0
  38. package/jsx/divider.d.ts +10 -0
  39. package/jsx/divider.mjs +16 -0
  40. package/jsx/factory-helper.mjs +22 -0
  41. package/jsx/factory.d.ts +4 -0
  42. package/jsx/factory.mjs +85 -0
  43. package/jsx/flex.d.ts +10 -0
  44. package/jsx/flex.mjs +16 -0
  45. package/jsx/float.d.ts +10 -0
  46. package/jsx/float.mjs +16 -0
  47. package/jsx/grid-item.d.ts +10 -0
  48. package/jsx/grid-item.mjs +16 -0
  49. package/jsx/grid.d.ts +10 -0
  50. package/jsx/grid.mjs +16 -0
  51. package/jsx/hstack.d.ts +10 -0
  52. package/jsx/hstack.mjs +16 -0
  53. package/jsx/index.d.ts +27 -0
  54. package/jsx/index.mjs +22 -0
  55. package/jsx/is-valid-prop.d.ts +5 -0
  56. package/jsx/is-valid-prop.mjs +17 -0
  57. package/jsx/link-box.d.ts +10 -0
  58. package/jsx/link-box.mjs +16 -0
  59. package/jsx/link-overlay.d.ts +10 -0
  60. package/jsx/link-overlay.mjs +16 -0
  61. package/jsx/spacer.d.ts +10 -0
  62. package/jsx/spacer.mjs +16 -0
  63. package/jsx/square.d.ts +10 -0
  64. package/jsx/square.mjs +16 -0
  65. package/jsx/stack.d.ts +10 -0
  66. package/jsx/stack.mjs +16 -0
  67. package/jsx/visually-hidden.d.ts +10 -0
  68. package/jsx/visually-hidden.mjs +16 -0
  69. package/jsx/vstack.d.ts +10 -0
  70. package/jsx/vstack.mjs +16 -0
  71. package/jsx/wrap.d.ts +10 -0
  72. package/jsx/wrap.mjs +16 -0
  73. package/package.json +40 -0
  74. package/patterns/aspect-ratio.d.ts +21 -0
  75. package/patterns/aspect-ratio.mjs +35 -0
  76. package/patterns/bleed.d.ts +22 -0
  77. package/patterns/bleed.mjs +19 -0
  78. package/patterns/box.d.ts +21 -0
  79. package/patterns/box.mjs +12 -0
  80. package/patterns/center.d.ts +21 -0
  81. package/patterns/center.mjs +18 -0
  82. package/patterns/circle.d.ts +21 -0
  83. package/patterns/circle.mjs +22 -0
  84. package/patterns/container.d.ts +21 -0
  85. package/patterns/container.mjs +18 -0
  86. package/patterns/divider.d.ts +23 -0
  87. package/patterns/divider.mjs +21 -0
  88. package/patterns/flex.d.ts +27 -0
  89. package/patterns/flex.mjs +23 -0
  90. package/patterns/float.d.ts +24 -0
  91. package/patterns/float.mjs +45 -0
  92. package/patterns/grid-item.d.ts +26 -0
  93. package/patterns/grid-item.mjs +22 -0
  94. package/patterns/grid.d.ts +25 -0
  95. package/patterns/grid.mjs +22 -0
  96. package/patterns/hstack.d.ts +22 -0
  97. package/patterns/hstack.mjs +20 -0
  98. package/patterns/index.d.ts +21 -0
  99. package/patterns/index.mjs +20 -0
  100. package/patterns/link-box.d.ts +21 -0
  101. package/patterns/link-box.mjs +19 -0
  102. package/patterns/link-overlay.d.ts +21 -0
  103. package/patterns/link-overlay.mjs +24 -0
  104. package/patterns/spacer.d.ts +21 -0
  105. package/patterns/spacer.mjs +18 -0
  106. package/patterns/square.d.ts +21 -0
  107. package/patterns/square.mjs +21 -0
  108. package/patterns/stack.d.ts +24 -0
  109. package/patterns/stack.mjs +20 -0
  110. package/patterns/visually-hidden.d.ts +21 -0
  111. package/patterns/visually-hidden.mjs +15 -0
  112. package/patterns/vstack.d.ts +22 -0
  113. package/patterns/vstack.mjs +20 -0
  114. package/patterns/wrap.d.ts +25 -0
  115. package/patterns/wrap.mjs +22 -0
  116. package/recipes/accordion.d.ts +27 -0
  117. package/recipes/accordion.mjs +50 -0
  118. package/recipes/avatar-group-recipe.d.ts +27 -0
  119. package/recipes/avatar-group-recipe.mjs +43 -0
  120. package/recipes/avatar-group-slot-recipe.d.ts +27 -0
  121. package/recipes/avatar-group-slot-recipe.mjs +43 -0
  122. package/recipes/avatar-recipe.d.ts +30 -0
  123. package/recipes/avatar-recipe.mjs +122 -0
  124. package/recipes/avatar-slot-recipe.d.ts +29 -0
  125. package/recipes/avatar-slot-recipe.mjs +116 -0
  126. package/recipes/badge-recipe.d.ts +29 -0
  127. package/recipes/badge-recipe.mjs +160 -0
  128. package/recipes/button-group-recipe.d.ts +27 -0
  129. package/recipes/button-group-recipe.mjs +22 -0
  130. package/recipes/button-recipe.d.ts +28 -0
  131. package/recipes/button-recipe.mjs +94 -0
  132. package/recipes/checkbox-slot-recipe.d.ts +27 -0
  133. package/recipes/checkbox-slot-recipe.mjs +38 -0
  134. package/recipes/create-recipe.d.ts +1 -0
  135. package/recipes/create-recipe.mjs +79 -0
  136. package/recipes/icon-recipe.d.ts +27 -0
  137. package/recipes/icon-recipe.mjs +29 -0
  138. package/recipes/index.d.ts +30 -0
  139. package/recipes/index.mjs +29 -0
  140. package/recipes/input-addon-recipe.d.ts +29 -0
  141. package/recipes/input-addon-recipe.mjs +107 -0
  142. package/recipes/input-addon-slot-recipe.d.ts +28 -0
  143. package/recipes/input-addon-slot-recipe.mjs +45 -0
  144. package/recipes/input-group-recipe.d.ts +27 -0
  145. package/recipes/input-group-recipe.mjs +30 -0
  146. package/recipes/input-group-slot-recipe.d.ts +27 -0
  147. package/recipes/input-group-slot-recipe.mjs +30 -0
  148. package/recipes/input-recipe.d.ts +30 -0
  149. package/recipes/input-recipe.mjs +63 -0
  150. package/recipes/input-slot-recipe.d.ts +28 -0
  151. package/recipes/input-slot-recipe.mjs +53 -0
  152. package/recipes/popover-content-recipe.d.ts +28 -0
  153. package/recipes/popover-content-recipe.mjs +34 -0
  154. package/recipes/popover-list-item-recipe.d.ts +27 -0
  155. package/recipes/popover-list-item-recipe.mjs +22 -0
  156. package/recipes/popover-list-recipe.d.ts +27 -0
  157. package/recipes/popover-list-recipe.mjs +22 -0
  158. package/recipes/progress-slot-recipe.d.ts +28 -0
  159. package/recipes/progress-slot-recipe.mjs +57 -0
  160. package/recipes/radio-slot-recipe.d.ts +27 -0
  161. package/recipes/radio-slot-recipe.mjs +38 -0
  162. package/recipes/select-slot-recipe.d.ts +27 -0
  163. package/recipes/select-slot-recipe.mjs +51 -0
  164. package/recipes/selected-border-recipe.d.ts +28 -0
  165. package/recipes/selected-border-recipe.mjs +88 -0
  166. package/recipes/shared-slot-recipe.d.ts +27 -0
  167. package/recipes/shared-slot-recipe.mjs +30 -0
  168. package/recipes/spinner-recipe.d.ts +27 -0
  169. package/recipes/spinner-recipe.mjs +29 -0
  170. package/recipes/tab-list-recipe.d.ts +27 -0
  171. package/recipes/tab-list-recipe.mjs +22 -0
  172. package/recipes/tab-recipe.d.ts +28 -0
  173. package/recipes/tab-recipe.mjs +87 -0
  174. package/recipes/table-container-recipe.d.ts +27 -0
  175. package/recipes/table-container-recipe.mjs +22 -0
  176. package/recipes/table-head-recipe.d.ts +27 -0
  177. package/recipes/table-head-recipe.mjs +22 -0
  178. package/recipes/table-recipe.d.ts +27 -0
  179. package/recipes/table-recipe.mjs +22 -0
  180. package/recipes/tag-recipe.d.ts +28 -0
  181. package/recipes/tag-recipe.mjs +66 -0
  182. package/recipes/tag-slot-recipe.d.ts +28 -0
  183. package/recipes/tag-slot-recipe.mjs +66 -0
  184. package/recipes/text-recipe.d.ts +28 -0
  185. package/recipes/text-recipe.mjs +40 -0
  186. package/recipes/textarea-recipe.d.ts +27 -0
  187. package/recipes/textarea-recipe.mjs +26 -0
  188. package/recipes/toggle-slot-recipe.d.ts +27 -0
  189. package/recipes/toggle-slot-recipe.mjs +38 -0
  190. package/recipes/tooltip-recipe.d.ts +27 -0
  191. package/recipes/tooltip-recipe.mjs +22 -0
  192. package/reset.css +214 -0
  193. package/styles.css +246 -0
  194. package/tokens/index.css +179 -0
  195. package/tokens/index.d.ts +9 -0
  196. package/tokens/index.mjs +848 -0
  197. package/tokens/keyframes.css +23 -0
  198. package/tokens/tokens.d.ts +57 -0
  199. package/types/composition.d.ts +111 -0
  200. package/types/conditions.d.ts +256 -0
  201. package/types/csstype.d.ts +20749 -0
  202. package/types/global.d.ts +19 -0
  203. package/types/index.d.ts +8 -0
  204. package/types/jsx.d.ts +54 -0
  205. package/types/parts.d.ts +8 -0
  206. package/types/pattern.d.ts +63 -0
  207. package/types/prop-type.d.ts +317 -0
  208. package/types/recipe.d.ts +146 -0
  209. package/types/selectors.d.ts +59 -0
  210. package/types/style-props.d.ts +653 -0
  211. package/types/system-types.d.ts +93 -0
@@ -0,0 +1,38 @@
1
+ import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const checkboxSlotRecipeDefaultVariants = {}
5
+ const checkboxSlotRecipeCompoundVariants = []
6
+
7
+ const checkboxSlotRecipeSlotNames = [
8
+ [
9
+ "root",
10
+ "checkbox__root"
11
+ ],
12
+ [
13
+ "control",
14
+ "checkbox__control"
15
+ ],
16
+ [
17
+ "label",
18
+ "checkbox__label"
19
+ ]
20
+ ]
21
+ const checkboxSlotRecipeSlotFns = /* @__PURE__ */ checkboxSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, checkboxSlotRecipeDefaultVariants, getSlotCompoundVariant(checkboxSlotRecipeCompoundVariants, slotName))])
22
+
23
+ const checkboxSlotRecipeFn = (props = {}) => {
24
+ return Object.fromEntries(checkboxSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
25
+ }
26
+
27
+ const checkboxSlotRecipeVariantKeys = []
28
+
29
+ export const checkboxSlotRecipe = /* @__PURE__ */ Object.assign(checkboxSlotRecipeFn, {
30
+ __recipe__: false,
31
+ __name__: 'checkboxSlotRecipe',
32
+ raw: (props) => props,
33
+ variantKeys: checkboxSlotRecipeVariantKeys,
34
+ variantMap: {},
35
+ splitVariantProps(props) {
36
+ return splitProps(props, checkboxSlotRecipeVariantKeys)
37
+ },
38
+ })
@@ -0,0 +1 @@
1
+ /* eslint-disable */
@@ -0,0 +1,79 @@
1
+ import { finalizeConditions, sortConditions } from '../css/conditions.mjs';
2
+ import { css } from '../css/css.mjs';
3
+ import { assertCompoundVariant, getCompoundVariantCss } from '../css/cva.mjs';
4
+ import { cx } from '../css/cx.mjs';
5
+ import { compact, createCss, splitProps, uniq, withoutSpace } from '../helpers.mjs';
6
+
7
+ export const createRecipe = (name, defaultVariants, compoundVariants) => {
8
+ const getRecipeStyles = (variants) => {
9
+ return {
10
+ [name]: '__ignore__',
11
+ ...defaultVariants,
12
+ ...compact(variants),
13
+ };
14
+ };
15
+
16
+ const recipeFn = (variants, withCompoundVariants = true) => {
17
+ const transform = (prop, value) => {
18
+ assertCompoundVariant(name, compoundVariants, variants, prop)
19
+
20
+ if (value === '__ignore__') {
21
+ return { className: name }
22
+ }
23
+
24
+ value = withoutSpace(value)
25
+ return { className: `${name}--${prop}_${value}` }
26
+ }
27
+
28
+ const recipeCss = createCss({
29
+
30
+ conditions: {
31
+ shift: sortConditions,
32
+ finalize: finalizeConditions,
33
+ breakpoints: { keys: ["base","sm","md","lg","xl"] }
34
+ },
35
+ utility: {
36
+ prefix: "mp",
37
+ transform,
38
+ }
39
+ })
40
+
41
+ const recipeStyles = getRecipeStyles(variants)
42
+
43
+ if (withCompoundVariants) {
44
+ const compoundVariantStyles = getCompoundVariantCss(compoundVariants, recipeStyles)
45
+ return cx(recipeCss(recipeStyles), css(compoundVariantStyles))
46
+ }
47
+
48
+ return recipeCss(recipeStyles)
49
+ }
50
+
51
+ return Object.assign(recipeFn, {
52
+ __getCompoundVariantCss__: (variants) => {
53
+ return getCompoundVariantCss(compoundVariants, getRecipeStyles(variants));
54
+ },
55
+ })
56
+ }
57
+
58
+ export const mergeRecipes = (recipeA, recipeB) => {
59
+ if (recipeA && !recipeB) return recipeA
60
+ if (!recipeA && recipeB) return recipeB
61
+
62
+ const recipeFn = (...args) => cx(recipeA(...args), recipeB(...args))
63
+ const variantKeys = uniq(recipeA.variantKeys, recipeB.variantKeys)
64
+ const variantMap = variantKeys.reduce((acc, key) => {
65
+ acc[key] = uniq(recipeA.variantMap[key], recipeB.variantMap[key])
66
+ return acc
67
+ }, {})
68
+
69
+ return Object.assign(recipeFn, {
70
+ __recipe__: true,
71
+ __name__: `${recipeA.__name__} ${recipeB.__name__}`,
72
+ raw: (props) => props,
73
+ variantKeys,
74
+ variantMap,
75
+ splitVariantProps(props) {
76
+ return splitProps(props, variantKeys)
77
+ },
78
+ })
79
+ }
@@ -0,0 +1,27 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface IconRecipeVariant {
6
+ size: "sm" | "md"
7
+ }
8
+
9
+ type IconRecipeVariantMap = {
10
+ [key in keyof IconRecipeVariant]: Array<IconRecipeVariant[key]>
11
+ }
12
+
13
+ export type IconRecipeVariantProps = {
14
+ [key in keyof IconRecipeVariant]?: ConditionalValue<IconRecipeVariant[key]> | undefined
15
+ }
16
+
17
+ export interface IconRecipeRecipe {
18
+ __type: IconRecipeVariantProps
19
+ (props?: IconRecipeVariantProps): string
20
+ raw: (props?: IconRecipeVariantProps) => IconRecipeVariantProps
21
+ variantMap: IconRecipeVariantMap
22
+ variantKeys: Array<keyof IconRecipeVariant>
23
+ splitVariantProps<Props extends IconRecipeVariantProps>(props: Props): [IconRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof IconRecipeVariantProps>>]
24
+ }
25
+
26
+
27
+ export declare const iconRecipe: IconRecipeRecipe
@@ -0,0 +1,29 @@
1
+ import { splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const iconRecipeFn = /* @__PURE__ */ createRecipe('icon', {
5
+ "size": "md"
6
+ }, [])
7
+
8
+ const iconRecipeVariantMap = {
9
+ "size": [
10
+ "sm",
11
+ "md"
12
+ ]
13
+ }
14
+
15
+ const iconRecipeVariantKeys = Object.keys(iconRecipeVariantMap)
16
+
17
+ export const iconRecipe = /* @__PURE__ */ Object.assign(iconRecipeFn, {
18
+ __recipe__: true,
19
+ __name__: 'iconRecipe',
20
+ raw: (props) => props,
21
+ variantKeys: iconRecipeVariantKeys,
22
+ variantMap: iconRecipeVariantMap,
23
+ merge(recipe) {
24
+ return mergeRecipes(this, recipe)
25
+ },
26
+ splitVariantProps(props) {
27
+ return splitProps(props, iconRecipeVariantKeys)
28
+ },
29
+ })
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ export * from './button-recipe';
3
+ export * from './button-group-recipe';
4
+ export * from './text-recipe';
5
+ export * from './icon-recipe';
6
+ export * from './spinner-recipe';
7
+ export * from './popover-content-recipe';
8
+ export * from './popover-list-recipe';
9
+ export * from './popover-list-item-recipe';
10
+ export * from './badge-recipe';
11
+ export * from './textarea-recipe';
12
+ export * from './tooltip-recipe';
13
+ export * from './tab-list-recipe';
14
+ export * from './tab-recipe';
15
+ export * from './selected-border-recipe';
16
+ export * from './table-recipe';
17
+ export * from './table-container-recipe';
18
+ export * from './accordion';
19
+ export * from './checkbox-slot-recipe';
20
+ export * from './radio-slot-recipe';
21
+ export * from './shared-slot-recipe';
22
+ export * from './progress-slot-recipe';
23
+ export * from './toggle-slot-recipe';
24
+ export * from './tag-slot-recipe';
25
+ export * from './input-slot-recipe';
26
+ export * from './input-group-slot-recipe';
27
+ export * from './input-addon-slot-recipe';
28
+ export * from './avatar-slot-recipe';
29
+ export * from './avatar-group-slot-recipe';
30
+ export * from './select-slot-recipe';
@@ -0,0 +1,29 @@
1
+ export * from './button-recipe.mjs';
2
+ export * from './button-group-recipe.mjs';
3
+ export * from './text-recipe.mjs';
4
+ export * from './icon-recipe.mjs';
5
+ export * from './spinner-recipe.mjs';
6
+ export * from './popover-content-recipe.mjs';
7
+ export * from './popover-list-recipe.mjs';
8
+ export * from './popover-list-item-recipe.mjs';
9
+ export * from './badge-recipe.mjs';
10
+ export * from './textarea-recipe.mjs';
11
+ export * from './tooltip-recipe.mjs';
12
+ export * from './tab-list-recipe.mjs';
13
+ export * from './tab-recipe.mjs';
14
+ export * from './selected-border-recipe.mjs';
15
+ export * from './table-recipe.mjs';
16
+ export * from './table-container-recipe.mjs';
17
+ export * from './accordion.mjs';
18
+ export * from './checkbox-slot-recipe.mjs';
19
+ export * from './radio-slot-recipe.mjs';
20
+ export * from './shared-slot-recipe.mjs';
21
+ export * from './progress-slot-recipe.mjs';
22
+ export * from './toggle-slot-recipe.mjs';
23
+ export * from './tag-slot-recipe.mjs';
24
+ export * from './input-slot-recipe.mjs';
25
+ export * from './input-group-slot-recipe.mjs';
26
+ export * from './input-addon-slot-recipe.mjs';
27
+ export * from './avatar-slot-recipe.mjs';
28
+ export * from './avatar-group-slot-recipe.mjs';
29
+ export * from './select-slot-recipe.mjs';
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface InputAddonRecipeVariant {
6
+ placement: "left" | "right"
7
+ size: "sm" | "md"
8
+ "has-background": boolean
9
+ }
10
+
11
+ type InputAddonRecipeVariantMap = {
12
+ [key in keyof InputAddonRecipeVariant]: Array<InputAddonRecipeVariant[key]>
13
+ }
14
+
15
+ export type InputAddonRecipeVariantProps = {
16
+ [key in keyof InputAddonRecipeVariant]?: InputAddonRecipeVariant[key]
17
+ }
18
+
19
+ export interface InputAddonRecipeRecipe {
20
+ __type: InputAddonRecipeVariantProps
21
+ (props?: InputAddonRecipeVariantProps): Pretty<Record<"root", string>>
22
+ raw: (props?: InputAddonRecipeVariantProps) => InputAddonRecipeVariantProps
23
+ variantMap: InputAddonRecipeVariantMap
24
+ variantKeys: Array<keyof InputAddonRecipeVariant>
25
+ splitVariantProps<Props extends InputAddonRecipeVariantProps>(props: Props): [InputAddonRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputAddonRecipeVariantProps>>]
26
+ }
27
+
28
+
29
+ export declare const inputAddonRecipe: InputAddonRecipeRecipe
@@ -0,0 +1,107 @@
1
+ import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const inputAddonRecipeDefaultVariants = {
5
+ "size": "md",
6
+ "placement": "left",
7
+ "has-background": false
8
+ }
9
+ const inputAddonRecipeCompoundVariants = [
10
+ {
11
+ "placement": "left",
12
+ "has-background": true,
13
+ "size": "sm",
14
+ "css": {
15
+ "root": {
16
+ "left": "0.5"
17
+ }
18
+ }
19
+ },
20
+ {
21
+ "placement": "right",
22
+ "has-background": true,
23
+ "size": "sm",
24
+ "css": {
25
+ "root": {
26
+ "right": "0.5"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "placement": "left",
32
+ "has-background": true,
33
+ "size": "md",
34
+ "css": {
35
+ "root": {
36
+ "left": "1"
37
+ }
38
+ }
39
+ },
40
+ {
41
+ "placement": "right",
42
+ "has-background": true,
43
+ "size": "md",
44
+ "css": {
45
+ "root": {
46
+ "right": "1"
47
+ }
48
+ }
49
+ },
50
+ {
51
+ "has-background": true,
52
+ "css": {
53
+ "root": {
54
+ "backgroundColor": "gray.50"
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "has-background": false,
60
+ "css": {
61
+ "root": {
62
+ "backgroundColor": "transparent"
63
+ }
64
+ }
65
+ }
66
+ ]
67
+
68
+ const inputAddonRecipeSlotNames = [
69
+ [
70
+ "root",
71
+ "input-addon__root"
72
+ ]
73
+ ]
74
+ const inputAddonRecipeSlotFns = /* @__PURE__ */ inputAddonRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputAddonRecipeDefaultVariants, getSlotCompoundVariant(inputAddonRecipeCompoundVariants, slotName))])
75
+
76
+ const inputAddonRecipeFn = (props = {}) => {
77
+ return Object.fromEntries(inputAddonRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
78
+ }
79
+
80
+ const inputAddonRecipeVariantKeys = [
81
+ "placement",
82
+ "size",
83
+ "has-background"
84
+ ]
85
+
86
+ export const inputAddonRecipe = /* @__PURE__ */ Object.assign(inputAddonRecipeFn, {
87
+ __recipe__: false,
88
+ __name__: 'inputAddonRecipe',
89
+ raw: (props) => props,
90
+ variantKeys: inputAddonRecipeVariantKeys,
91
+ variantMap: {
92
+ "placement": [
93
+ "left",
94
+ "right"
95
+ ],
96
+ "size": [
97
+ "sm",
98
+ "md"
99
+ ],
100
+ "has-background": [
101
+ "true"
102
+ ]
103
+ },
104
+ splitVariantProps(props) {
105
+ return splitProps(props, inputAddonRecipeVariantKeys)
106
+ },
107
+ })
@@ -0,0 +1,28 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface InputAddonSlotRecipeVariant {
6
+ placement: "left" | "right"
7
+ size: "sm" | "md"
8
+ }
9
+
10
+ type InputAddonSlotRecipeVariantMap = {
11
+ [key in keyof InputAddonSlotRecipeVariant]: Array<InputAddonSlotRecipeVariant[key]>
12
+ }
13
+
14
+ export type InputAddonSlotRecipeVariantProps = {
15
+ [key in keyof InputAddonSlotRecipeVariant]?: ConditionalValue<InputAddonSlotRecipeVariant[key]> | undefined
16
+ }
17
+
18
+ export interface InputAddonSlotRecipeRecipe {
19
+ __type: InputAddonSlotRecipeVariantProps
20
+ (props?: InputAddonSlotRecipeVariantProps): Pretty<Record<"root", string>>
21
+ raw: (props?: InputAddonSlotRecipeVariantProps) => InputAddonSlotRecipeVariantProps
22
+ variantMap: InputAddonSlotRecipeVariantMap
23
+ variantKeys: Array<keyof InputAddonSlotRecipeVariant>
24
+ splitVariantProps<Props extends InputAddonSlotRecipeVariantProps>(props: Props): [InputAddonSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputAddonSlotRecipeVariantProps>>]
25
+ }
26
+
27
+
28
+ export declare const inputAddonSlotRecipe: InputAddonSlotRecipeRecipe
@@ -0,0 +1,45 @@
1
+ import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const inputAddonSlotRecipeDefaultVariants = {
5
+ "size": "md",
6
+ "placement": "left"
7
+ }
8
+ const inputAddonSlotRecipeCompoundVariants = []
9
+
10
+ const inputAddonSlotRecipeSlotNames = [
11
+ [
12
+ "root",
13
+ "input-addon__root"
14
+ ]
15
+ ]
16
+ const inputAddonSlotRecipeSlotFns = /* @__PURE__ */ inputAddonSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputAddonSlotRecipeDefaultVariants, getSlotCompoundVariant(inputAddonSlotRecipeCompoundVariants, slotName))])
17
+
18
+ const inputAddonSlotRecipeFn = (props = {}) => {
19
+ return Object.fromEntries(inputAddonSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
20
+ }
21
+
22
+ const inputAddonSlotRecipeVariantKeys = [
23
+ "placement",
24
+ "size"
25
+ ]
26
+
27
+ export const inputAddonSlotRecipe = /* @__PURE__ */ Object.assign(inputAddonSlotRecipeFn, {
28
+ __recipe__: false,
29
+ __name__: 'inputAddonSlotRecipe',
30
+ raw: (props) => props,
31
+ variantKeys: inputAddonSlotRecipeVariantKeys,
32
+ variantMap: {
33
+ "placement": [
34
+ "left",
35
+ "right"
36
+ ],
37
+ "size": [
38
+ "sm",
39
+ "md"
40
+ ]
41
+ },
42
+ splitVariantProps(props) {
43
+ return splitProps(props, inputAddonSlotRecipeVariantKeys)
44
+ },
45
+ })
@@ -0,0 +1,27 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface InputGroupRecipeVariant {
6
+
7
+ }
8
+
9
+ type InputGroupRecipeVariantMap = {
10
+ [key in keyof InputGroupRecipeVariant]: Array<InputGroupRecipeVariant[key]>
11
+ }
12
+
13
+ export type InputGroupRecipeVariantProps = {
14
+ [key in keyof InputGroupRecipeVariant]?: ConditionalValue<InputGroupRecipeVariant[key]>
15
+ }
16
+
17
+ export interface InputGroupRecipeRecipe {
18
+ __type: InputGroupRecipeVariantProps
19
+ (props?: InputGroupRecipeVariantProps): Pretty<Record<"root", string>>
20
+ raw: (props?: InputGroupRecipeVariantProps) => InputGroupRecipeVariantProps
21
+ variantMap: InputGroupRecipeVariantMap
22
+ variantKeys: Array<keyof InputGroupRecipeVariant>
23
+ splitVariantProps<Props extends InputGroupRecipeVariantProps>(props: Props): [InputGroupRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputGroupRecipeVariantProps>>]
24
+ }
25
+
26
+
27
+ export declare const inputGroupRecipe: InputGroupRecipeRecipe
@@ -0,0 +1,30 @@
1
+ import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const inputGroupRecipeDefaultVariants = {}
5
+ const inputGroupRecipeCompoundVariants = []
6
+
7
+ const inputGroupRecipeSlotNames = [
8
+ [
9
+ "root",
10
+ "input-group__root"
11
+ ]
12
+ ]
13
+ const inputGroupRecipeSlotFns = /* @__PURE__ */ inputGroupRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputGroupRecipeDefaultVariants, getSlotCompoundVariant(inputGroupRecipeCompoundVariants, slotName))])
14
+
15
+ const inputGroupRecipeFn = (props = {}) => {
16
+ return Object.fromEntries(inputGroupRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
17
+ }
18
+
19
+ const inputGroupRecipeVariantKeys = []
20
+
21
+ export const inputGroupRecipe = /* @__PURE__ */ Object.assign(inputGroupRecipeFn, {
22
+ __recipe__: false,
23
+ __name__: 'inputGroupRecipe',
24
+ raw: (props) => props,
25
+ variantKeys: inputGroupRecipeVariantKeys,
26
+ variantMap: {},
27
+ splitVariantProps(props) {
28
+ return splitProps(props, inputGroupRecipeVariantKeys)
29
+ },
30
+ })
@@ -0,0 +1,27 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface InputGroupSlotRecipeVariant {
6
+
7
+ }
8
+
9
+ type InputGroupSlotRecipeVariantMap = {
10
+ [key in keyof InputGroupSlotRecipeVariant]: Array<InputGroupSlotRecipeVariant[key]>
11
+ }
12
+
13
+ export type InputGroupSlotRecipeVariantProps = {
14
+ [key in keyof InputGroupSlotRecipeVariant]?: ConditionalValue<InputGroupSlotRecipeVariant[key]> | undefined
15
+ }
16
+
17
+ export interface InputGroupSlotRecipeRecipe {
18
+ __type: InputGroupSlotRecipeVariantProps
19
+ (props?: InputGroupSlotRecipeVariantProps): Pretty<Record<"root", string>>
20
+ raw: (props?: InputGroupSlotRecipeVariantProps) => InputGroupSlotRecipeVariantProps
21
+ variantMap: InputGroupSlotRecipeVariantMap
22
+ variantKeys: Array<keyof InputGroupSlotRecipeVariant>
23
+ splitVariantProps<Props extends InputGroupSlotRecipeVariantProps>(props: Props): [InputGroupSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputGroupSlotRecipeVariantProps>>]
24
+ }
25
+
26
+
27
+ export declare const inputGroupSlotRecipe: InputGroupSlotRecipeRecipe
@@ -0,0 +1,30 @@
1
+ import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const inputGroupSlotRecipeDefaultVariants = {}
5
+ const inputGroupSlotRecipeCompoundVariants = []
6
+
7
+ const inputGroupSlotRecipeSlotNames = [
8
+ [
9
+ "root",
10
+ "input-group__root"
11
+ ]
12
+ ]
13
+ const inputGroupSlotRecipeSlotFns = /* @__PURE__ */ inputGroupSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputGroupSlotRecipeDefaultVariants, getSlotCompoundVariant(inputGroupSlotRecipeCompoundVariants, slotName))])
14
+
15
+ const inputGroupSlotRecipeFn = (props = {}) => {
16
+ return Object.fromEntries(inputGroupSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
17
+ }
18
+
19
+ const inputGroupSlotRecipeVariantKeys = []
20
+
21
+ export const inputGroupSlotRecipe = /* @__PURE__ */ Object.assign(inputGroupSlotRecipeFn, {
22
+ __recipe__: false,
23
+ __name__: 'inputGroupSlotRecipe',
24
+ raw: (props) => props,
25
+ variantKeys: inputGroupSlotRecipeVariantKeys,
26
+ variantMap: {},
27
+ splitVariantProps(props) {
28
+ return splitProps(props, inputGroupSlotRecipeVariantKeys)
29
+ },
30
+ })
@@ -0,0 +1,30 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface InputRecipeVariant {
6
+ variant: "unstyled" | "outline"
7
+ size: "sm" | "md"
8
+ "is-invalid": boolean
9
+ "is-full-width": boolean
10
+ }
11
+
12
+ type InputRecipeVariantMap = {
13
+ [key in keyof InputRecipeVariant]: Array<InputRecipeVariant[key]>
14
+ }
15
+
16
+ export type InputRecipeVariantProps = {
17
+ [key in keyof InputRecipeVariant]?: ConditionalValue<InputRecipeVariant[key]>
18
+ }
19
+
20
+ export interface InputRecipeRecipe {
21
+ __type: InputRecipeVariantProps
22
+ (props?: InputRecipeVariantProps): Pretty<Record<"root" | "control" | "clear", string>>
23
+ raw: (props?: InputRecipeVariantProps) => InputRecipeVariantProps
24
+ variantMap: InputRecipeVariantMap
25
+ variantKeys: Array<keyof InputRecipeVariant>
26
+ splitVariantProps<Props extends InputRecipeVariantProps>(props: Props): [InputRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof InputRecipeVariantProps>>]
27
+ }
28
+
29
+
30
+ export declare const inputRecipe: InputRecipeRecipe
@@ -0,0 +1,63 @@
1
+ import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const inputRecipeDefaultVariants = {
5
+ "size": "md",
6
+ "variant": "outline",
7
+ "is-invalid": false,
8
+ "is-full-width": true
9
+ }
10
+ const inputRecipeCompoundVariants = []
11
+
12
+ const inputRecipeSlotNames = [
13
+ [
14
+ "root",
15
+ "input__root"
16
+ ],
17
+ [
18
+ "control",
19
+ "input__control"
20
+ ],
21
+ [
22
+ "clear",
23
+ "input__clear"
24
+ ]
25
+ ]
26
+ const inputRecipeSlotFns = /* @__PURE__ */ inputRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputRecipeDefaultVariants, getSlotCompoundVariant(inputRecipeCompoundVariants, slotName))])
27
+
28
+ const inputRecipeFn = (props = {}) => {
29
+ return Object.fromEntries(inputRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
30
+ }
31
+
32
+ const inputRecipeVariantKeys = [
33
+ "variant",
34
+ "size",
35
+ "is-invalid",
36
+ "is-full-width"
37
+ ]
38
+
39
+ export const inputRecipe = /* @__PURE__ */ Object.assign(inputRecipeFn, {
40
+ __recipe__: false,
41
+ __name__: 'inputRecipe',
42
+ raw: (props) => props,
43
+ variantKeys: inputRecipeVariantKeys,
44
+ variantMap: {
45
+ "variant": [
46
+ "unstyled",
47
+ "outline"
48
+ ],
49
+ "size": [
50
+ "sm",
51
+ "md"
52
+ ],
53
+ "is-invalid": [
54
+ "true"
55
+ ],
56
+ "is-full-width": [
57
+ "true"
58
+ ]
59
+ },
60
+ splitVariantProps(props) {
61
+ return splitProps(props, inputRecipeVariantKeys)
62
+ },
63
+ })