@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,30 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface AvatarRecipeVariant {
6
+ variant: "square" | "circle"
7
+ "variant-color": "gray" | "sky" | "teal" | "violet" | "amber" | "rose" | "stone" | "lime" | "pink"
8
+ size: "sm" | "md" | "lg" | "xl"
9
+ "has-border": boolean
10
+ }
11
+
12
+ type AvatarRecipeVariantMap = {
13
+ [key in keyof AvatarRecipeVariant]: Array<AvatarRecipeVariant[key]>
14
+ }
15
+
16
+ export type AvatarRecipeVariantProps = {
17
+ [key in keyof AvatarRecipeVariant]?: AvatarRecipeVariant[key]
18
+ }
19
+
20
+ export interface AvatarRecipeRecipe {
21
+ __type: AvatarRecipeVariantProps
22
+ (props?: AvatarRecipeVariantProps): Pretty<Record<"root" | "fallback" | "image" | "icon", string>>
23
+ raw: (props?: AvatarRecipeVariantProps) => AvatarRecipeVariantProps
24
+ variantMap: AvatarRecipeVariantMap
25
+ variantKeys: Array<keyof AvatarRecipeVariant>
26
+ splitVariantProps<Props extends AvatarRecipeVariantProps>(props: Props): [AvatarRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof AvatarRecipeVariantProps>>]
27
+ }
28
+
29
+
30
+ export declare const avatarRecipe: AvatarRecipeRecipe
@@ -0,0 +1,122 @@
1
+ import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const avatarRecipeDefaultVariants = {
5
+ "size": "md",
6
+ "variant": "circle",
7
+ "has-border": false
8
+ }
9
+ const avatarRecipeCompoundVariants = [
10
+ {
11
+ "size": "sm",
12
+ "variant": "square",
13
+ "css": {
14
+ "root": {
15
+ "borderRadius": "sm"
16
+ },
17
+ "image": {
18
+ "borderRadius": "sm"
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "size": "lg",
24
+ "variant": "square",
25
+ "css": {
26
+ "root": {
27
+ "borderRadius": "lg"
28
+ },
29
+ "image": {
30
+ "borderRadius": "lg"
31
+ }
32
+ }
33
+ },
34
+ {
35
+ "size": "xl",
36
+ "variant": "square",
37
+ "css": {
38
+ "root": {
39
+ "borderRadius": "xl"
40
+ },
41
+ "image": {
42
+ "borderRadius": "xl"
43
+ }
44
+ }
45
+ },
46
+ {
47
+ "variant-color": "gray",
48
+ "css": {
49
+ "root": {
50
+ "color": "gray.600",
51
+ "borderColor": "white"
52
+ }
53
+ }
54
+ }
55
+ ]
56
+
57
+ const avatarRecipeSlotNames = [
58
+ [
59
+ "root",
60
+ "avatar__root"
61
+ ],
62
+ [
63
+ "fallback",
64
+ "avatar__fallback"
65
+ ],
66
+ [
67
+ "image",
68
+ "avatar__image"
69
+ ],
70
+ [
71
+ "icon",
72
+ "avatar__icon"
73
+ ]
74
+ ]
75
+ const avatarRecipeSlotFns = /* @__PURE__ */ avatarRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, avatarRecipeDefaultVariants, getSlotCompoundVariant(avatarRecipeCompoundVariants, slotName))])
76
+
77
+ const avatarRecipeFn = (props = {}) => {
78
+ return Object.fromEntries(avatarRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
79
+ }
80
+
81
+ const avatarRecipeVariantKeys = [
82
+ "variant",
83
+ "variant-color",
84
+ "size",
85
+ "has-border"
86
+ ]
87
+
88
+ export const avatarRecipe = /* @__PURE__ */ Object.assign(avatarRecipeFn, {
89
+ __recipe__: false,
90
+ __name__: 'avatarRecipe',
91
+ raw: (props) => props,
92
+ variantKeys: avatarRecipeVariantKeys,
93
+ variantMap: {
94
+ "variant": [
95
+ "square",
96
+ "circle"
97
+ ],
98
+ "variant-color": [
99
+ "gray",
100
+ "sky",
101
+ "teal",
102
+ "violet",
103
+ "amber",
104
+ "rose",
105
+ "stone",
106
+ "lime",
107
+ "pink"
108
+ ],
109
+ "size": [
110
+ "sm",
111
+ "md",
112
+ "lg",
113
+ "xl"
114
+ ],
115
+ "has-border": [
116
+ "true"
117
+ ]
118
+ },
119
+ splitVariantProps(props) {
120
+ return splitProps(props, avatarRecipeVariantKeys)
121
+ },
122
+ })
@@ -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 AvatarSlotRecipeVariant {
6
+ variant: "square" | "circle"
7
+ variantColor: "gray" | "sky" | "teal" | "violet" | "amber" | "rose" | "stone" | "lime" | "pink"
8
+ size: "sm" | "md" | "lg" | "xl"
9
+ }
10
+
11
+ type AvatarSlotRecipeVariantMap = {
12
+ [key in keyof AvatarSlotRecipeVariant]: Array<AvatarSlotRecipeVariant[key]>
13
+ }
14
+
15
+ export type AvatarSlotRecipeVariantProps = {
16
+ [key in keyof AvatarSlotRecipeVariant]?: AvatarSlotRecipeVariant[key] | undefined
17
+ }
18
+
19
+ export interface AvatarSlotRecipeRecipe {
20
+ __type: AvatarSlotRecipeVariantProps
21
+ (props?: AvatarSlotRecipeVariantProps): Pretty<Record<"root" | "fallback" | "image" | "icon", string>>
22
+ raw: (props?: AvatarSlotRecipeVariantProps) => AvatarSlotRecipeVariantProps
23
+ variantMap: AvatarSlotRecipeVariantMap
24
+ variantKeys: Array<keyof AvatarSlotRecipeVariant>
25
+ splitVariantProps<Props extends AvatarSlotRecipeVariantProps>(props: Props): [AvatarSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof AvatarSlotRecipeVariantProps>>]
26
+ }
27
+
28
+
29
+ export declare const avatarSlotRecipe: AvatarSlotRecipeRecipe
@@ -0,0 +1,116 @@
1
+ import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const avatarSlotRecipeDefaultVariants = {
5
+ "size": "md",
6
+ "variant": "circle"
7
+ }
8
+ const avatarSlotRecipeCompoundVariants = [
9
+ {
10
+ "size": "sm",
11
+ "variant": "square",
12
+ "css": {
13
+ "root": {
14
+ "borderRadius": "sm"
15
+ },
16
+ "image": {
17
+ "borderRadius": "sm"
18
+ }
19
+ }
20
+ },
21
+ {
22
+ "size": "lg",
23
+ "variant": "square",
24
+ "css": {
25
+ "root": {
26
+ "borderRadius": "lg"
27
+ },
28
+ "image": {
29
+ "borderRadius": "lg"
30
+ }
31
+ }
32
+ },
33
+ {
34
+ "size": "xl",
35
+ "variant": "square",
36
+ "css": {
37
+ "root": {
38
+ "borderRadius": "xl"
39
+ },
40
+ "image": {
41
+ "borderRadius": "xl"
42
+ }
43
+ }
44
+ },
45
+ {
46
+ "variantColor": "gray",
47
+ "css": {
48
+ "root": {
49
+ "color": "gray.600"
50
+ }
51
+ }
52
+ }
53
+ ]
54
+
55
+ const avatarSlotRecipeSlotNames = [
56
+ [
57
+ "root",
58
+ "avatar__root"
59
+ ],
60
+ [
61
+ "fallback",
62
+ "avatar__fallback"
63
+ ],
64
+ [
65
+ "image",
66
+ "avatar__image"
67
+ ],
68
+ [
69
+ "icon",
70
+ "avatar__icon"
71
+ ]
72
+ ]
73
+ const avatarSlotRecipeSlotFns = /* @__PURE__ */ avatarSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, avatarSlotRecipeDefaultVariants, getSlotCompoundVariant(avatarSlotRecipeCompoundVariants, slotName))])
74
+
75
+ const avatarSlotRecipeFn = (props = {}) => {
76
+ return Object.fromEntries(avatarSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
77
+ }
78
+
79
+ const avatarSlotRecipeVariantKeys = [
80
+ "variant",
81
+ "variantColor",
82
+ "size"
83
+ ]
84
+
85
+ export const avatarSlotRecipe = /* @__PURE__ */ Object.assign(avatarSlotRecipeFn, {
86
+ __recipe__: false,
87
+ __name__: 'avatarSlotRecipe',
88
+ raw: (props) => props,
89
+ variantKeys: avatarSlotRecipeVariantKeys,
90
+ variantMap: {
91
+ "variant": [
92
+ "square",
93
+ "circle"
94
+ ],
95
+ "variantColor": [
96
+ "gray",
97
+ "sky",
98
+ "teal",
99
+ "violet",
100
+ "amber",
101
+ "rose",
102
+ "stone",
103
+ "lime",
104
+ "pink"
105
+ ],
106
+ "size": [
107
+ "sm",
108
+ "md",
109
+ "lg",
110
+ "xl"
111
+ ]
112
+ },
113
+ splitVariantProps(props) {
114
+ return splitProps(props, avatarSlotRecipeVariantKeys)
115
+ },
116
+ })
@@ -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 BadgeRecipeVariant {
6
+ variant: "solid" | "subtle"
7
+ variantColor: "blue" | "green" | "orange" | "red" | "gray"
8
+ size: "sm" | "md"
9
+ }
10
+
11
+ type BadgeRecipeVariantMap = {
12
+ [key in keyof BadgeRecipeVariant]: Array<BadgeRecipeVariant[key]>
13
+ }
14
+
15
+ export type BadgeRecipeVariantProps = {
16
+ [key in keyof BadgeRecipeVariant]?: BadgeRecipeVariant[key] | undefined
17
+ }
18
+
19
+ export interface BadgeRecipeRecipe {
20
+ __type: BadgeRecipeVariantProps
21
+ (props?: BadgeRecipeVariantProps): string
22
+ raw: (props?: BadgeRecipeVariantProps) => BadgeRecipeVariantProps
23
+ variantMap: BadgeRecipeVariantMap
24
+ variantKeys: Array<keyof BadgeRecipeVariant>
25
+ splitVariantProps<Props extends BadgeRecipeVariantProps>(props: Props): [BadgeRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof BadgeRecipeVariantProps>>]
26
+ }
27
+
28
+
29
+ export declare const badgeRecipe: BadgeRecipeRecipe
@@ -0,0 +1,160 @@
1
+ import { splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const badgeRecipeFn = /* @__PURE__ */ createRecipe('badge', {
5
+ "variant": "solid",
6
+ "size": "md",
7
+ "variantColor": "blue"
8
+ }, [
9
+ {
10
+ "variant": "solid",
11
+ "size": "md",
12
+ "css": {
13
+ "paddingX": "1.5",
14
+ "paddingY": "0.5"
15
+ }
16
+ },
17
+ {
18
+ "variant": "solid",
19
+ "size": "sm",
20
+ "css": {
21
+ "paddingX": "1",
22
+ "paddingY": "0.5"
23
+ }
24
+ },
25
+ {
26
+ "variant": "subtle",
27
+ "size": "md",
28
+ "css": {
29
+ "paddingX": "2",
30
+ "paddingY": "0"
31
+ }
32
+ },
33
+ {
34
+ "variant": "subtle",
35
+ "size": "sm",
36
+ "css": {
37
+ "paddingX": "1",
38
+ "paddingY": "0"
39
+ }
40
+ },
41
+ {
42
+ "variant": "solid",
43
+ "variantColor": "blue",
44
+ "css": {
45
+ "backgroundColor": "sky.400"
46
+ }
47
+ },
48
+ {
49
+ "variant": "solid",
50
+ "variantColor": "green",
51
+ "css": {
52
+ "backgroundColor": "teal.400"
53
+ }
54
+ },
55
+ {
56
+ "variant": "solid",
57
+ "variantColor": "orange",
58
+ "css": {
59
+ "backgroundColor": "amber.400"
60
+ }
61
+ },
62
+ {
63
+ "variant": "solid",
64
+ "variantColor": "red",
65
+ "css": {
66
+ "backgroundColor": "rose.400"
67
+ }
68
+ },
69
+ {
70
+ "variant": "solid",
71
+ "variantColor": "gray",
72
+ "css": {
73
+ "backgroundColor": "stone.400"
74
+ }
75
+ },
76
+ {
77
+ "variant": [
78
+ "subtle"
79
+ ],
80
+ "variantColor": "blue",
81
+ "css": {
82
+ "backgroundColor": "blue.50",
83
+ "color": "blue.700"
84
+ }
85
+ },
86
+ {
87
+ "variant": [
88
+ "subtle"
89
+ ],
90
+ "variantColor": "green",
91
+ "css": {
92
+ "backgroundColor": "green.50",
93
+ "color": "green.700"
94
+ }
95
+ },
96
+ {
97
+ "variant": [
98
+ "subtle"
99
+ ],
100
+ "variantColor": "orange",
101
+ "css": {
102
+ "backgroundColor": "orange.50",
103
+ "color": "orange.700"
104
+ }
105
+ },
106
+ {
107
+ "variant": [
108
+ "subtle"
109
+ ],
110
+ "variantColor": "red",
111
+ "css": {
112
+ "backgroundColor": "red.50",
113
+ "color": "red.700"
114
+ }
115
+ },
116
+ {
117
+ "variant": [
118
+ "subtle"
119
+ ],
120
+ "variantColor": "gray",
121
+ "css": {
122
+ "backgroundColor": "gray.50",
123
+ "color": "black"
124
+ }
125
+ }
126
+ ])
127
+
128
+ const badgeRecipeVariantMap = {
129
+ "variant": [
130
+ "solid",
131
+ "subtle"
132
+ ],
133
+ "variantColor": [
134
+ "blue",
135
+ "green",
136
+ "orange",
137
+ "red",
138
+ "gray"
139
+ ],
140
+ "size": [
141
+ "sm",
142
+ "md"
143
+ ]
144
+ }
145
+
146
+ const badgeRecipeVariantKeys = Object.keys(badgeRecipeVariantMap)
147
+
148
+ export const badgeRecipe = /* @__PURE__ */ Object.assign(badgeRecipeFn, {
149
+ __recipe__: true,
150
+ __name__: 'badgeRecipe',
151
+ raw: (props) => props,
152
+ variantKeys: badgeRecipeVariantKeys,
153
+ variantMap: badgeRecipeVariantMap,
154
+ merge(recipe) {
155
+ return mergeRecipes(this, recipe)
156
+ },
157
+ splitVariantProps(props) {
158
+ return splitProps(props, badgeRecipeVariantKeys)
159
+ },
160
+ })
@@ -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 ButtonGroupRecipeVariant {
6
+
7
+ }
8
+
9
+ type ButtonGroupRecipeVariantMap = {
10
+ [key in keyof ButtonGroupRecipeVariant]: Array<ButtonGroupRecipeVariant[key]>
11
+ }
12
+
13
+ export type ButtonGroupRecipeVariantProps = {
14
+ [key in keyof ButtonGroupRecipeVariant]?: ConditionalValue<ButtonGroupRecipeVariant[key]> | undefined
15
+ }
16
+
17
+ export interface ButtonGroupRecipeRecipe {
18
+ __type: ButtonGroupRecipeVariantProps
19
+ (props?: ButtonGroupRecipeVariantProps): string
20
+ raw: (props?: ButtonGroupRecipeVariantProps) => ButtonGroupRecipeVariantProps
21
+ variantMap: ButtonGroupRecipeVariantMap
22
+ variantKeys: Array<keyof ButtonGroupRecipeVariant>
23
+ splitVariantProps<Props extends ButtonGroupRecipeVariantProps>(props: Props): [ButtonGroupRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ButtonGroupRecipeVariantProps>>]
24
+ }
25
+
26
+
27
+ export declare const buttonGroupRecipe: ButtonGroupRecipeRecipe
@@ -0,0 +1,22 @@
1
+ import { splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const buttonGroupRecipeFn = /* @__PURE__ */ createRecipe('pixel-button-group', {}, [])
5
+
6
+ const buttonGroupRecipeVariantMap = {}
7
+
8
+ const buttonGroupRecipeVariantKeys = Object.keys(buttonGroupRecipeVariantMap)
9
+
10
+ export const buttonGroupRecipe = /* @__PURE__ */ Object.assign(buttonGroupRecipeFn, {
11
+ __recipe__: true,
12
+ __name__: 'buttonGroupRecipe',
13
+ raw: (props) => props,
14
+ variantKeys: buttonGroupRecipeVariantKeys,
15
+ variantMap: buttonGroupRecipeVariantMap,
16
+ merge(recipe) {
17
+ return mergeRecipes(this, recipe)
18
+ },
19
+ splitVariantProps(props) {
20
+ return splitProps(props, buttonGroupRecipeVariantKeys)
21
+ },
22
+ })
@@ -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 ButtonRecipeVariant {
6
+ variant: "primary" | "secondary" | "ghost" | "danger" | "textLink"
7
+ size: "sm" | "md"
8
+ }
9
+
10
+ type ButtonRecipeVariantMap = {
11
+ [key in keyof ButtonRecipeVariant]: Array<ButtonRecipeVariant[key]>
12
+ }
13
+
14
+ export type ButtonRecipeVariantProps = {
15
+ [key in keyof ButtonRecipeVariant]?: ButtonRecipeVariant[key] | undefined
16
+ }
17
+
18
+ export interface ButtonRecipeRecipe {
19
+ __type: ButtonRecipeVariantProps
20
+ (props?: ButtonRecipeVariantProps): string
21
+ raw: (props?: ButtonRecipeVariantProps) => ButtonRecipeVariantProps
22
+ variantMap: ButtonRecipeVariantMap
23
+ variantKeys: Array<keyof ButtonRecipeVariant>
24
+ splitVariantProps<Props extends ButtonRecipeVariantProps>(props: Props): [ButtonRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof ButtonRecipeVariantProps>>]
25
+ }
26
+
27
+
28
+ export declare const buttonRecipe: ButtonRecipeRecipe
@@ -0,0 +1,94 @@
1
+ import { splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const buttonRecipeFn = /* @__PURE__ */ createRecipe('button', {
5
+ "variant": "primary",
6
+ "size": "md"
7
+ }, [
8
+ {
9
+ "variant": [
10
+ "textLink"
11
+ ],
12
+ "css": {
13
+ "paddingX": "0",
14
+ "paddingY": "0",
15
+ "borderRadius": "sm",
16
+ "_focusVisible": {
17
+ "borderColor": "white",
18
+ "boxShadow": "focus"
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "variant": [
24
+ "ghost",
25
+ "textLink"
26
+ ],
27
+ "css": {
28
+ "fontWeight": "regular"
29
+ }
30
+ },
31
+ {
32
+ "variant": [
33
+ "primary",
34
+ "secondary",
35
+ "ghost"
36
+ ],
37
+ "css": {
38
+ "_focusVisible": {
39
+ "borderColor": "blue.400",
40
+ "boxShadow": "focus"
41
+ }
42
+ }
43
+ },
44
+ {
45
+ "variant": [
46
+ "primary",
47
+ "secondary",
48
+ "ghost",
49
+ "danger"
50
+ ],
51
+ "css": {
52
+ "_disabled": {
53
+ "cursor": "not-allowed",
54
+ "color": "gray.400",
55
+ "background": "gray.50",
56
+ "borderColor": "gray.50",
57
+ "_hover": {
58
+ "background": "gray.50",
59
+ "borderColor": "gray.50"
60
+ }
61
+ }
62
+ }
63
+ }
64
+ ])
65
+
66
+ const buttonRecipeVariantMap = {
67
+ "variant": [
68
+ "primary",
69
+ "secondary",
70
+ "ghost",
71
+ "danger",
72
+ "textLink"
73
+ ],
74
+ "size": [
75
+ "sm",
76
+ "md"
77
+ ]
78
+ }
79
+
80
+ const buttonRecipeVariantKeys = Object.keys(buttonRecipeVariantMap)
81
+
82
+ export const buttonRecipe = /* @__PURE__ */ Object.assign(buttonRecipeFn, {
83
+ __recipe__: true,
84
+ __name__: 'buttonRecipe',
85
+ raw: (props) => props,
86
+ variantKeys: buttonRecipeVariantKeys,
87
+ variantMap: buttonRecipeVariantMap,
88
+ merge(recipe) {
89
+ return mergeRecipes(this, recipe)
90
+ },
91
+ splitVariantProps(props) {
92
+ return splitProps(props, buttonRecipeVariantKeys)
93
+ },
94
+ })
@@ -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 CheckboxSlotRecipeVariant {
6
+
7
+ }
8
+
9
+ type CheckboxSlotRecipeVariantMap = {
10
+ [key in keyof CheckboxSlotRecipeVariant]: Array<CheckboxSlotRecipeVariant[key]>
11
+ }
12
+
13
+ export type CheckboxSlotRecipeVariantProps = {
14
+ [key in keyof CheckboxSlotRecipeVariant]?: ConditionalValue<CheckboxSlotRecipeVariant[key]> | undefined
15
+ }
16
+
17
+ export interface CheckboxSlotRecipeRecipe {
18
+ __type: CheckboxSlotRecipeVariantProps
19
+ (props?: CheckboxSlotRecipeVariantProps): Pretty<Record<"root" | "control" | "label", string>>
20
+ raw: (props?: CheckboxSlotRecipeVariantProps) => CheckboxSlotRecipeVariantProps
21
+ variantMap: CheckboxSlotRecipeVariantMap
22
+ variantKeys: Array<keyof CheckboxSlotRecipeVariant>
23
+ splitVariantProps<Props extends CheckboxSlotRecipeVariantProps>(props: Props): [CheckboxSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof CheckboxSlotRecipeVariantProps>>]
24
+ }
25
+
26
+
27
+ export declare const checkboxSlotRecipe: CheckboxSlotRecipeRecipe