@pyck/styled-system 0.0.1

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 (238) hide show
  1. package/dist/css/conditions.mjs +36 -0
  2. package/dist/css/css.d.ts +22 -0
  3. package/dist/css/css.mjs +45 -0
  4. package/dist/css/cva.d.ts +6 -0
  5. package/dist/css/cva.mjs +87 -0
  6. package/dist/css/cx.d.ts +5 -0
  7. package/dist/css/cx.mjs +15 -0
  8. package/dist/css/index.d.ts +5 -0
  9. package/dist/css/index.mjs +4 -0
  10. package/dist/css/sva.d.ts +4 -0
  11. package/dist/css/sva.mjs +46 -0
  12. package/dist/helpers.mjs +328 -0
  13. package/dist/jsx/aspect-ratio.d.ts +10 -0
  14. package/dist/jsx/aspect-ratio.mjs +14 -0
  15. package/dist/jsx/bleed.d.ts +10 -0
  16. package/dist/jsx/bleed.mjs +14 -0
  17. package/dist/jsx/box.d.ts +10 -0
  18. package/dist/jsx/box.mjs +14 -0
  19. package/dist/jsx/center.d.ts +10 -0
  20. package/dist/jsx/center.mjs +14 -0
  21. package/dist/jsx/circle.d.ts +10 -0
  22. package/dist/jsx/circle.mjs +14 -0
  23. package/dist/jsx/container.d.ts +10 -0
  24. package/dist/jsx/container.mjs +14 -0
  25. package/dist/jsx/cq.d.ts +10 -0
  26. package/dist/jsx/cq.mjs +14 -0
  27. package/dist/jsx/create-style-context.d.ts +54 -0
  28. package/dist/jsx/create-style-context.mjs +118 -0
  29. package/dist/jsx/divider.d.ts +10 -0
  30. package/dist/jsx/divider.mjs +14 -0
  31. package/dist/jsx/factory-helper.mjs +22 -0
  32. package/dist/jsx/factory.d.ts +3 -0
  33. package/dist/jsx/factory.mjs +89 -0
  34. package/dist/jsx/flex.d.ts +10 -0
  35. package/dist/jsx/flex.mjs +14 -0
  36. package/dist/jsx/float.d.ts +10 -0
  37. package/dist/jsx/float.mjs +14 -0
  38. package/dist/jsx/grid-item.d.ts +10 -0
  39. package/dist/jsx/grid-item.mjs +14 -0
  40. package/dist/jsx/grid.d.ts +10 -0
  41. package/dist/jsx/grid.mjs +14 -0
  42. package/dist/jsx/hstack.d.ts +10 -0
  43. package/dist/jsx/hstack.mjs +14 -0
  44. package/dist/jsx/index.d.ts +25 -0
  45. package/dist/jsx/index.mjs +23 -0
  46. package/dist/jsx/is-valid-prop.d.ts +11 -0
  47. package/dist/jsx/is-valid-prop.mjs +17 -0
  48. package/dist/jsx/link-overlay.d.ts +10 -0
  49. package/dist/jsx/link-overlay.mjs +14 -0
  50. package/dist/jsx/spacer.d.ts +10 -0
  51. package/dist/jsx/spacer.mjs +14 -0
  52. package/dist/jsx/square.d.ts +10 -0
  53. package/dist/jsx/square.mjs +14 -0
  54. package/dist/jsx/stack.d.ts +10 -0
  55. package/dist/jsx/stack.mjs +14 -0
  56. package/dist/jsx/visually-hidden.d.ts +10 -0
  57. package/dist/jsx/visually-hidden.mjs +14 -0
  58. package/dist/jsx/vstack.d.ts +10 -0
  59. package/dist/jsx/vstack.mjs +14 -0
  60. package/dist/jsx/wrap.d.ts +10 -0
  61. package/dist/jsx/wrap.mjs +14 -0
  62. package/dist/patterns/aspect-ratio.d.ts +20 -0
  63. package/dist/patterns/aspect-ratio.mjs +38 -0
  64. package/dist/patterns/bleed.d.ts +21 -0
  65. package/dist/patterns/bleed.mjs +24 -0
  66. package/dist/patterns/box.d.ts +20 -0
  67. package/dist/patterns/box.mjs +15 -0
  68. package/dist/patterns/center.d.ts +20 -0
  69. package/dist/patterns/center.mjs +21 -0
  70. package/dist/patterns/circle.d.ts +20 -0
  71. package/dist/patterns/circle.mjs +25 -0
  72. package/dist/patterns/container.d.ts +20 -0
  73. package/dist/patterns/container.mjs +22 -0
  74. package/dist/patterns/cq.d.ts +21 -0
  75. package/dist/patterns/cq.mjs +21 -0
  76. package/dist/patterns/divider.d.ts +22 -0
  77. package/dist/patterns/divider.mjs +25 -0
  78. package/dist/patterns/flex.d.ts +26 -0
  79. package/dist/patterns/flex.mjs +26 -0
  80. package/dist/patterns/float.d.ts +23 -0
  81. package/dist/patterns/float.mjs +52 -0
  82. package/dist/patterns/grid-item.d.ts +25 -0
  83. package/dist/patterns/grid-item.mjs +25 -0
  84. package/dist/patterns/grid.d.ts +24 -0
  85. package/dist/patterns/grid.mjs +25 -0
  86. package/dist/patterns/hstack.d.ts +21 -0
  87. package/dist/patterns/hstack.mjs +24 -0
  88. package/dist/patterns/index.d.ts +21 -0
  89. package/dist/patterns/index.mjs +20 -0
  90. package/dist/patterns/link-overlay.d.ts +20 -0
  91. package/dist/patterns/link-overlay.mjs +24 -0
  92. package/dist/patterns/spacer.d.ts +20 -0
  93. package/dist/patterns/spacer.mjs +21 -0
  94. package/dist/patterns/square.d.ts +20 -0
  95. package/dist/patterns/square.mjs +24 -0
  96. package/dist/patterns/stack.d.ts +23 -0
  97. package/dist/patterns/stack.mjs +24 -0
  98. package/dist/patterns/visually-hidden.d.ts +20 -0
  99. package/dist/patterns/visually-hidden.mjs +18 -0
  100. package/dist/patterns/vstack.d.ts +21 -0
  101. package/dist/patterns/vstack.mjs +24 -0
  102. package/dist/patterns/wrap.d.ts +24 -0
  103. package/dist/patterns/wrap.mjs +25 -0
  104. package/dist/recipes/absolute-center.d.ts +34 -0
  105. package/dist/recipes/absolute-center.mjs +32 -0
  106. package/dist/recipes/action-bar.d.ts +31 -0
  107. package/dist/recipes/action-bar.mjs +49 -0
  108. package/dist/recipes/avatar.d.ts +43 -0
  109. package/dist/recipes/avatar.mjs +75 -0
  110. package/dist/recipes/badge.d.ts +38 -0
  111. package/dist/recipes/badge.mjs +40 -0
  112. package/dist/recipes/breadcrumb.d.ts +38 -0
  113. package/dist/recipes/breadcrumb.mjs +70 -0
  114. package/dist/recipes/button.d.ts +38 -0
  115. package/dist/recipes/button.mjs +44 -0
  116. package/dist/recipes/card.d.ts +34 -0
  117. package/dist/recipes/card.mjs +63 -0
  118. package/dist/recipes/carousel.d.ts +35 -0
  119. package/dist/recipes/carousel.mjs +93 -0
  120. package/dist/recipes/checkbox.d.ts +38 -0
  121. package/dist/recipes/checkbox.mjs +67 -0
  122. package/dist/recipes/checkmark.d.ts +38 -0
  123. package/dist/recipes/checkmark.mjs +39 -0
  124. package/dist/recipes/clipboard.d.ts +31 -0
  125. package/dist/recipes/clipboard.mjs +53 -0
  126. package/dist/recipes/collapsible.d.ts +34 -0
  127. package/dist/recipes/collapsible.mjs +54 -0
  128. package/dist/recipes/combobox.d.ts +38 -0
  129. package/dist/recipes/combobox.mjs +112 -0
  130. package/dist/recipes/create-recipe.mjs +82 -0
  131. package/dist/recipes/data-list.d.ts +31 -0
  132. package/dist/recipes/data-list.mjs +53 -0
  133. package/dist/recipes/date-picker.d.ts +31 -0
  134. package/dist/recipes/date-picker.mjs +133 -0
  135. package/dist/recipes/dialog.d.ts +46 -0
  136. package/dist/recipes/dialog.mjs +106 -0
  137. package/dist/recipes/drawer.d.ts +38 -0
  138. package/dist/recipes/drawer.mjs +90 -0
  139. package/dist/recipes/drilldown-menu.d.ts +31 -0
  140. package/dist/recipes/drilldown-menu.mjs +53 -0
  141. package/dist/recipes/field.d.ts +31 -0
  142. package/dist/recipes/field.mjs +61 -0
  143. package/dist/recipes/fieldset.d.ts +31 -0
  144. package/dist/recipes/fieldset.mjs +73 -0
  145. package/dist/recipes/floating-panel.d.ts +31 -0
  146. package/dist/recipes/floating-panel.mjs +73 -0
  147. package/dist/recipes/form.d.ts +31 -0
  148. package/dist/recipes/form.mjs +24 -0
  149. package/dist/recipes/group.d.ts +36 -0
  150. package/dist/recipes/group.mjs +72 -0
  151. package/dist/recipes/heading.d.ts +31 -0
  152. package/dist/recipes/heading.mjs +38 -0
  153. package/dist/recipes/icon.d.ts +34 -0
  154. package/dist/recipes/icon.mjs +36 -0
  155. package/dist/recipes/index.d.ts +58 -0
  156. package/dist/recipes/index.mjs +57 -0
  157. package/dist/recipes/input-addon.d.ts +38 -0
  158. package/dist/recipes/input-addon.mjs +39 -0
  159. package/dist/recipes/input-group.d.ts +34 -0
  160. package/dist/recipes/input-group.mjs +49 -0
  161. package/dist/recipes/input.d.ts +38 -0
  162. package/dist/recipes/input.mjs +42 -0
  163. package/dist/recipes/kbd.d.ts +38 -0
  164. package/dist/recipes/kbd.mjs +42 -0
  165. package/dist/recipes/link.d.ts +34 -0
  166. package/dist/recipes/link.mjs +30 -0
  167. package/dist/recipes/mark.d.ts +34 -0
  168. package/dist/recipes/mark.mjs +32 -0
  169. package/dist/recipes/menu.d.ts +34 -0
  170. package/dist/recipes/menu.mjs +97 -0
  171. package/dist/recipes/number-input.d.ts +38 -0
  172. package/dist/recipes/number-input.mjs +78 -0
  173. package/dist/recipes/pagination.d.ts +31 -0
  174. package/dist/recipes/pagination.mjs +57 -0
  175. package/dist/recipes/popover.d.ts +31 -0
  176. package/dist/recipes/popover.mjs +81 -0
  177. package/dist/recipes/progress-circle.d.ts +34 -0
  178. package/dist/recipes/progress-circle.mjs +75 -0
  179. package/dist/recipes/progress.d.ts +44 -0
  180. package/dist/recipes/progress.mjs +98 -0
  181. package/dist/recipes/radio-card-group.d.ts +38 -0
  182. package/dist/recipes/radio-card-group.mjs +69 -0
  183. package/dist/recipes/radio-group.d.ts +38 -0
  184. package/dist/recipes/radio-group.mjs +68 -0
  185. package/dist/recipes/scroll-area.d.ts +38 -0
  186. package/dist/recipes/scroll-area.mjs +70 -0
  187. package/dist/recipes/segment-group.d.ts +35 -0
  188. package/dist/recipes/segment-group.mjs +69 -0
  189. package/dist/recipes/select.d.ts +38 -0
  190. package/dist/recipes/select.mjs +111 -0
  191. package/dist/recipes/skeleton.d.ts +39 -0
  192. package/dist/recipes/skeleton.mjs +40 -0
  193. package/dist/recipes/slider.d.ts +42 -0
  194. package/dist/recipes/slider.mjs +94 -0
  195. package/dist/recipes/spinner.d.ts +34 -0
  196. package/dist/recipes/spinner.mjs +36 -0
  197. package/dist/recipes/stat.d.ts +31 -0
  198. package/dist/recipes/stat.mjs +41 -0
  199. package/dist/recipes/steps.d.ts +42 -0
  200. package/dist/recipes/steps.mjs +97 -0
  201. package/dist/recipes/switch-recipe.d.ts +38 -0
  202. package/dist/recipes/switch-recipe.mjs +65 -0
  203. package/dist/recipes/table.d.ts +40 -0
  204. package/dist/recipes/table.mjs +83 -0
  205. package/dist/recipes/tabs.d.ts +39 -0
  206. package/dist/recipes/tabs.mjs +72 -0
  207. package/dist/recipes/tags-input.d.ts +38 -0
  208. package/dist/recipes/tags-input.mjs +86 -0
  209. package/dist/recipes/text.d.ts +31 -0
  210. package/dist/recipes/text.mjs +38 -0
  211. package/dist/recipes/textarea.d.ts +38 -0
  212. package/dist/recipes/textarea.mjs +41 -0
  213. package/dist/recipes/toast.d.ts +31 -0
  214. package/dist/recipes/toast.mjs +53 -0
  215. package/dist/recipes/toggle-group.d.ts +31 -0
  216. package/dist/recipes/toggle-group.mjs +44 -0
  217. package/dist/recipes/tooltip.d.ts +34 -0
  218. package/dist/recipes/tooltip.mjs +57 -0
  219. package/dist/recipes/tree-view.d.ts +34 -0
  220. package/dist/recipes/tree-view.mjs +97 -0
  221. package/dist/tokens/index.d.ts +9 -0
  222. package/dist/tokens/index.mjs +3060 -0
  223. package/dist/tokens/tokens.d.ts +63 -0
  224. package/dist/types/composition.d.ts +227 -0
  225. package/dist/types/conditions.d.ts +314 -0
  226. package/dist/types/csstype.d.ts +22570 -0
  227. package/dist/types/global.d.ts +20 -0
  228. package/dist/types/index.d.ts +8 -0
  229. package/dist/types/jsx.d.ts +69 -0
  230. package/dist/types/parts.d.ts +8 -0
  231. package/dist/types/pattern.d.ts +78 -0
  232. package/dist/types/prop-type.d.ts +253 -0
  233. package/dist/types/recipe.d.ts +181 -0
  234. package/dist/types/selectors.d.ts +59 -0
  235. package/dist/types/static-css.d.ts +56 -0
  236. package/dist/types/style-props.d.ts +8091 -0
  237. package/dist/types/system-types.d.ts +151 -0
  238. package/package.json +76 -0
@@ -0,0 +1,34 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface AbsoluteCenterVariant {
6
+ /**
7
+ * @default "both"
8
+ */
9
+ axis: "horizontal" | "vertical" | "both"
10
+ }
11
+
12
+ type AbsoluteCenterVariantMap = {
13
+ [key in keyof AbsoluteCenterVariant]: Array<AbsoluteCenterVariant[key]>
14
+ }
15
+
16
+
17
+
18
+ export type AbsoluteCenterVariantProps = {
19
+ [key in keyof AbsoluteCenterVariant]?: ConditionalValue<AbsoluteCenterVariant[key]> | undefined
20
+ }
21
+
22
+ export interface AbsoluteCenterRecipe {
23
+
24
+ __type: AbsoluteCenterVariantProps
25
+ (props?: AbsoluteCenterVariantProps): string
26
+ raw: (props?: AbsoluteCenterVariantProps) => AbsoluteCenterVariantProps
27
+ variantMap: AbsoluteCenterVariantMap
28
+ variantKeys: Array<keyof AbsoluteCenterVariant>
29
+ splitVariantProps<Props extends AbsoluteCenterVariantProps>(props: Props): [AbsoluteCenterVariantProps, Pretty<DistributiveOmit<Props, keyof AbsoluteCenterVariantProps>>]
30
+ getVariantProps: (props?: AbsoluteCenterVariantProps) => AbsoluteCenterVariantProps
31
+ }
32
+
33
+
34
+ export declare const absoluteCenter: AbsoluteCenterRecipe
@@ -0,0 +1,32 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const absoluteCenterFn = /* @__PURE__ */ createRecipe('absolute-center', {
5
+ "axis": "both"
6
+ }, [])
7
+
8
+ const absoluteCenterVariantMap = {
9
+ "axis": [
10
+ "horizontal",
11
+ "vertical",
12
+ "both"
13
+ ]
14
+ }
15
+
16
+ const absoluteCenterVariantKeys = Object.keys(absoluteCenterVariantMap)
17
+
18
+ export const absoluteCenter = /* @__PURE__ */ Object.assign(memo(absoluteCenterFn.recipeFn), {
19
+ __recipe__: true,
20
+ __name__: 'absoluteCenter',
21
+ __getCompoundVariantCss__: absoluteCenterFn.__getCompoundVariantCss__,
22
+ raw: (props) => props,
23
+ variantKeys: absoluteCenterVariantKeys,
24
+ variantMap: absoluteCenterVariantMap,
25
+ merge(recipe) {
26
+ return mergeRecipes(this, recipe)
27
+ },
28
+ splitVariantProps(props) {
29
+ return splitProps(props, absoluteCenterVariantKeys)
30
+ },
31
+ getVariantProps: absoluteCenterFn.getVariantProps,
32
+ })
@@ -0,0 +1,31 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface ActionBarVariant {
6
+
7
+ }
8
+
9
+ type ActionBarVariantMap = {
10
+ [key in keyof ActionBarVariant]: Array<ActionBarVariant[key]>
11
+ }
12
+
13
+ type ActionBarSlot = "positioner" | "content" | "selectionText" | "closeTrigger" | "separator"
14
+
15
+ export type ActionBarVariantProps = {
16
+ [key in keyof ActionBarVariant]?: ConditionalValue<ActionBarVariant[key]> | undefined
17
+ }
18
+
19
+ export interface ActionBarRecipe {
20
+ __slot: ActionBarSlot
21
+ __type: ActionBarVariantProps
22
+ (props?: ActionBarVariantProps): Pretty<Record<ActionBarSlot, string>>
23
+ raw: (props?: ActionBarVariantProps) => ActionBarVariantProps
24
+ variantMap: ActionBarVariantMap
25
+ variantKeys: Array<keyof ActionBarVariant>
26
+ splitVariantProps<Props extends ActionBarVariantProps>(props: Props): [ActionBarVariantProps, Pretty<DistributiveOmit<Props, keyof ActionBarVariantProps>>]
27
+ getVariantProps: (props?: ActionBarVariantProps) => ActionBarVariantProps
28
+ }
29
+
30
+
31
+ export declare const actionBar: ActionBarRecipe
@@ -0,0 +1,49 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const actionBarDefaultVariants = {}
5
+ const actionBarCompoundVariants = []
6
+
7
+ const actionBarSlotNames = [
8
+ [
9
+ "positioner",
10
+ "action-bar__positioner"
11
+ ],
12
+ [
13
+ "content",
14
+ "action-bar__content"
15
+ ],
16
+ [
17
+ "selectionText",
18
+ "action-bar__selectionText"
19
+ ],
20
+ [
21
+ "closeTrigger",
22
+ "action-bar__closeTrigger"
23
+ ],
24
+ [
25
+ "separator",
26
+ "action-bar__separator"
27
+ ]
28
+ ]
29
+ const actionBarSlotFns = /* @__PURE__ */ actionBarSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, actionBarDefaultVariants, getSlotCompoundVariant(actionBarCompoundVariants, slotName))])
30
+
31
+ const actionBarFn = memo((props = {}) => {
32
+ return Object.fromEntries(actionBarSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
33
+ })
34
+
35
+ const actionBarVariantKeys = []
36
+ const getVariantProps = (variants) => ({ ...actionBarDefaultVariants, ...compact(variants) })
37
+
38
+ export const actionBar = /* @__PURE__ */ Object.assign(actionBarFn, {
39
+ __recipe__: false,
40
+ __name__: 'actionBar',
41
+ raw: (props) => props,
42
+ classNameMap: {},
43
+ variantKeys: actionBarVariantKeys,
44
+ variantMap: {},
45
+ splitVariantProps(props) {
46
+ return splitProps(props, actionBarVariantKeys)
47
+ },
48
+ getVariantProps
49
+ })
@@ -0,0 +1,43 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface AvatarVariant {
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "full" | "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
10
+ /**
11
+ * @default "subtle"
12
+ */
13
+ variant: "solid" | "surface" | "subtle" | "outline"
14
+ borderless: boolean
15
+ /**
16
+ * @default "full"
17
+ */
18
+ shape: "square" | "rounded" | "full"
19
+ }
20
+
21
+ type AvatarVariantMap = {
22
+ [key in keyof AvatarVariant]: Array<AvatarVariant[key]>
23
+ }
24
+
25
+ type AvatarSlot = "root" | "image" | "fallback"
26
+
27
+ export type AvatarVariantProps = {
28
+ [key in keyof AvatarVariant]?: ConditionalValue<AvatarVariant[key]> | undefined
29
+ }
30
+
31
+ export interface AvatarRecipe {
32
+ __slot: AvatarSlot
33
+ __type: AvatarVariantProps
34
+ (props?: AvatarVariantProps): Pretty<Record<AvatarSlot, string>>
35
+ raw: (props?: AvatarVariantProps) => AvatarVariantProps
36
+ variantMap: AvatarVariantMap
37
+ variantKeys: Array<keyof AvatarVariant>
38
+ splitVariantProps<Props extends AvatarVariantProps>(props: Props): [AvatarVariantProps, Pretty<DistributiveOmit<Props, keyof AvatarVariantProps>>]
39
+ getVariantProps: (props?: AvatarVariantProps) => AvatarVariantProps
40
+ }
41
+
42
+
43
+ export declare const avatar: AvatarRecipe
@@ -0,0 +1,75 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const avatarDefaultVariants = {
5
+ "size": "md",
6
+ "shape": "full",
7
+ "variant": "subtle"
8
+ }
9
+ const avatarCompoundVariants = []
10
+
11
+ const avatarSlotNames = [
12
+ [
13
+ "root",
14
+ "avatar__root"
15
+ ],
16
+ [
17
+ "image",
18
+ "avatar__image"
19
+ ],
20
+ [
21
+ "fallback",
22
+ "avatar__fallback"
23
+ ]
24
+ ]
25
+ const avatarSlotFns = /* @__PURE__ */ avatarSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, avatarDefaultVariants, getSlotCompoundVariant(avatarCompoundVariants, slotName))])
26
+
27
+ const avatarFn = memo((props = {}) => {
28
+ return Object.fromEntries(avatarSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
29
+ })
30
+
31
+ const avatarVariantKeys = [
32
+ "size",
33
+ "variant",
34
+ "borderless",
35
+ "shape"
36
+ ]
37
+ const getVariantProps = (variants) => ({ ...avatarDefaultVariants, ...compact(variants) })
38
+
39
+ export const avatar = /* @__PURE__ */ Object.assign(avatarFn, {
40
+ __recipe__: false,
41
+ __name__: 'avatar',
42
+ raw: (props) => props,
43
+ classNameMap: {},
44
+ variantKeys: avatarVariantKeys,
45
+ variantMap: {
46
+ "size": [
47
+ "full",
48
+ "2xs",
49
+ "xs",
50
+ "sm",
51
+ "md",
52
+ "lg",
53
+ "xl",
54
+ "2xl"
55
+ ],
56
+ "variant": [
57
+ "solid",
58
+ "surface",
59
+ "subtle",
60
+ "outline"
61
+ ],
62
+ "borderless": [
63
+ "true"
64
+ ],
65
+ "shape": [
66
+ "square",
67
+ "rounded",
68
+ "full"
69
+ ]
70
+ },
71
+ splitVariantProps(props) {
72
+ return splitProps(props, avatarVariantKeys)
73
+ },
74
+ getVariantProps
75
+ })
@@ -0,0 +1,38 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface BadgeVariant {
6
+ /**
7
+ * @default "subtle"
8
+ */
9
+ variant: "solid" | "surface" | "subtle" | "outline"
10
+ /**
11
+ * @default "md"
12
+ */
13
+ size: "sm" | "md" | "lg" | "xl"
14
+ }
15
+
16
+ type BadgeVariantMap = {
17
+ [key in keyof BadgeVariant]: Array<BadgeVariant[key]>
18
+ }
19
+
20
+
21
+
22
+ export type BadgeVariantProps = {
23
+ [key in keyof BadgeVariant]?: ConditionalValue<BadgeVariant[key]> | undefined
24
+ }
25
+
26
+ export interface BadgeRecipe {
27
+
28
+ __type: BadgeVariantProps
29
+ (props?: BadgeVariantProps): string
30
+ raw: (props?: BadgeVariantProps) => BadgeVariantProps
31
+ variantMap: BadgeVariantMap
32
+ variantKeys: Array<keyof BadgeVariant>
33
+ splitVariantProps<Props extends BadgeVariantProps>(props: Props): [BadgeVariantProps, Pretty<DistributiveOmit<Props, keyof BadgeVariantProps>>]
34
+ getVariantProps: (props?: BadgeVariantProps) => BadgeVariantProps
35
+ }
36
+
37
+
38
+ export declare const badge: BadgeRecipe
@@ -0,0 +1,40 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const badgeFn = /* @__PURE__ */ createRecipe('badge', {
5
+ "variant": "subtle",
6
+ "size": "md"
7
+ }, [])
8
+
9
+ const badgeVariantMap = {
10
+ "variant": [
11
+ "solid",
12
+ "surface",
13
+ "subtle",
14
+ "outline"
15
+ ],
16
+ "size": [
17
+ "sm",
18
+ "md",
19
+ "lg",
20
+ "xl"
21
+ ]
22
+ }
23
+
24
+ const badgeVariantKeys = Object.keys(badgeVariantMap)
25
+
26
+ export const badge = /* @__PURE__ */ Object.assign(memo(badgeFn.recipeFn), {
27
+ __recipe__: true,
28
+ __name__: 'badge',
29
+ __getCompoundVariantCss__: badgeFn.__getCompoundVariantCss__,
30
+ raw: (props) => props,
31
+ variantKeys: badgeVariantKeys,
32
+ variantMap: badgeVariantMap,
33
+ merge(recipe) {
34
+ return mergeRecipes(this, recipe)
35
+ },
36
+ splitVariantProps(props) {
37
+ return splitProps(props, badgeVariantKeys)
38
+ },
39
+ getVariantProps: badgeFn.getVariantProps,
40
+ })
@@ -0,0 +1,38 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface BreadcrumbVariant {
6
+ /**
7
+ * @default "plain"
8
+ */
9
+ variant: "underline" | "plain"
10
+ /**
11
+ * @default "md"
12
+ */
13
+ size: "xs" | "sm" | "md" | "lg"
14
+ }
15
+
16
+ type BreadcrumbVariantMap = {
17
+ [key in keyof BreadcrumbVariant]: Array<BreadcrumbVariant[key]>
18
+ }
19
+
20
+ type BreadcrumbSlot = "root" | "list" | "link" | "item" | "separator" | "ellipsis"
21
+
22
+ export type BreadcrumbVariantProps = {
23
+ [key in keyof BreadcrumbVariant]?: ConditionalValue<BreadcrumbVariant[key]> | undefined
24
+ }
25
+
26
+ export interface BreadcrumbRecipe {
27
+ __slot: BreadcrumbSlot
28
+ __type: BreadcrumbVariantProps
29
+ (props?: BreadcrumbVariantProps): Pretty<Record<BreadcrumbSlot, string>>
30
+ raw: (props?: BreadcrumbVariantProps) => BreadcrumbVariantProps
31
+ variantMap: BreadcrumbVariantMap
32
+ variantKeys: Array<keyof BreadcrumbVariant>
33
+ splitVariantProps<Props extends BreadcrumbVariantProps>(props: Props): [BreadcrumbVariantProps, Pretty<DistributiveOmit<Props, keyof BreadcrumbVariantProps>>]
34
+ getVariantProps: (props?: BreadcrumbVariantProps) => BreadcrumbVariantProps
35
+ }
36
+
37
+
38
+ export declare const breadcrumb: BreadcrumbRecipe
@@ -0,0 +1,70 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const breadcrumbDefaultVariants = {
5
+ "variant": "plain",
6
+ "size": "md"
7
+ }
8
+ const breadcrumbCompoundVariants = []
9
+
10
+ const breadcrumbSlotNames = [
11
+ [
12
+ "root",
13
+ "breadcrumb__root"
14
+ ],
15
+ [
16
+ "list",
17
+ "breadcrumb__list"
18
+ ],
19
+ [
20
+ "link",
21
+ "breadcrumb__link"
22
+ ],
23
+ [
24
+ "item",
25
+ "breadcrumb__item"
26
+ ],
27
+ [
28
+ "separator",
29
+ "breadcrumb__separator"
30
+ ],
31
+ [
32
+ "ellipsis",
33
+ "breadcrumb__ellipsis"
34
+ ]
35
+ ]
36
+ const breadcrumbSlotFns = /* @__PURE__ */ breadcrumbSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, breadcrumbDefaultVariants, getSlotCompoundVariant(breadcrumbCompoundVariants, slotName))])
37
+
38
+ const breadcrumbFn = memo((props = {}) => {
39
+ return Object.fromEntries(breadcrumbSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
40
+ })
41
+
42
+ const breadcrumbVariantKeys = [
43
+ "variant",
44
+ "size"
45
+ ]
46
+ const getVariantProps = (variants) => ({ ...breadcrumbDefaultVariants, ...compact(variants) })
47
+
48
+ export const breadcrumb = /* @__PURE__ */ Object.assign(breadcrumbFn, {
49
+ __recipe__: false,
50
+ __name__: 'breadcrumb',
51
+ raw: (props) => props,
52
+ classNameMap: {},
53
+ variantKeys: breadcrumbVariantKeys,
54
+ variantMap: {
55
+ "variant": [
56
+ "underline",
57
+ "plain"
58
+ ],
59
+ "size": [
60
+ "xs",
61
+ "sm",
62
+ "md",
63
+ "lg"
64
+ ]
65
+ },
66
+ splitVariantProps(props) {
67
+ return splitProps(props, breadcrumbVariantKeys)
68
+ },
69
+ getVariantProps
70
+ })
@@ -0,0 +1,38 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface ButtonVariant {
6
+ /**
7
+ * @default "solid"
8
+ */
9
+ variant: "solid" | "surface" | "subtle" | "outline" | "plain"
10
+ /**
11
+ * @default "md"
12
+ */
13
+ size: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
14
+ }
15
+
16
+ type ButtonVariantMap = {
17
+ [key in keyof ButtonVariant]: Array<ButtonVariant[key]>
18
+ }
19
+
20
+
21
+
22
+ export type ButtonVariantProps = {
23
+ [key in keyof ButtonVariant]?: ConditionalValue<ButtonVariant[key]> | undefined
24
+ }
25
+
26
+ export interface ButtonRecipe {
27
+
28
+ __type: ButtonVariantProps
29
+ (props?: ButtonVariantProps): string
30
+ raw: (props?: ButtonVariantProps) => ButtonVariantProps
31
+ variantMap: ButtonVariantMap
32
+ variantKeys: Array<keyof ButtonVariant>
33
+ splitVariantProps<Props extends ButtonVariantProps>(props: Props): [ButtonVariantProps, Pretty<DistributiveOmit<Props, keyof ButtonVariantProps>>]
34
+ getVariantProps: (props?: ButtonVariantProps) => ButtonVariantProps
35
+ }
36
+
37
+
38
+ export declare const button: ButtonRecipe
@@ -0,0 +1,44 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const buttonFn = /* @__PURE__ */ createRecipe('button', {
5
+ "variant": "solid",
6
+ "size": "md"
7
+ }, [])
8
+
9
+ const buttonVariantMap = {
10
+ "variant": [
11
+ "solid",
12
+ "surface",
13
+ "subtle",
14
+ "outline",
15
+ "plain"
16
+ ],
17
+ "size": [
18
+ "2xs",
19
+ "xs",
20
+ "sm",
21
+ "md",
22
+ "lg",
23
+ "xl",
24
+ "2xl"
25
+ ]
26
+ }
27
+
28
+ const buttonVariantKeys = Object.keys(buttonVariantMap)
29
+
30
+ export const button = /* @__PURE__ */ Object.assign(memo(buttonFn.recipeFn), {
31
+ __recipe__: true,
32
+ __name__: 'button',
33
+ __getCompoundVariantCss__: buttonFn.__getCompoundVariantCss__,
34
+ raw: (props) => props,
35
+ variantKeys: buttonVariantKeys,
36
+ variantMap: buttonVariantMap,
37
+ merge(recipe) {
38
+ return mergeRecipes(this, recipe)
39
+ },
40
+ splitVariantProps(props) {
41
+ return splitProps(props, buttonVariantKeys)
42
+ },
43
+ getVariantProps: buttonFn.getVariantProps,
44
+ })
@@ -0,0 +1,34 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface CardVariant {
6
+ /**
7
+ * @default "outline"
8
+ */
9
+ variant: "elevated" | "outline" | "subtle"
10
+ }
11
+
12
+ type CardVariantMap = {
13
+ [key in keyof CardVariant]: Array<CardVariant[key]>
14
+ }
15
+
16
+ type CardSlot = "root" | "header" | "body" | "footer" | "title" | "description"
17
+
18
+ export type CardVariantProps = {
19
+ [key in keyof CardVariant]?: ConditionalValue<CardVariant[key]> | undefined
20
+ }
21
+
22
+ export interface CardRecipe {
23
+ __slot: CardSlot
24
+ __type: CardVariantProps
25
+ (props?: CardVariantProps): Pretty<Record<CardSlot, string>>
26
+ raw: (props?: CardVariantProps) => CardVariantProps
27
+ variantMap: CardVariantMap
28
+ variantKeys: Array<keyof CardVariant>
29
+ splitVariantProps<Props extends CardVariantProps>(props: Props): [CardVariantProps, Pretty<DistributiveOmit<Props, keyof CardVariantProps>>]
30
+ getVariantProps: (props?: CardVariantProps) => CardVariantProps
31
+ }
32
+
33
+
34
+ export declare const card: CardRecipe
@@ -0,0 +1,63 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const cardDefaultVariants = {
5
+ "variant": "outline"
6
+ }
7
+ const cardCompoundVariants = []
8
+
9
+ const cardSlotNames = [
10
+ [
11
+ "root",
12
+ "card__root"
13
+ ],
14
+ [
15
+ "header",
16
+ "card__header"
17
+ ],
18
+ [
19
+ "body",
20
+ "card__body"
21
+ ],
22
+ [
23
+ "footer",
24
+ "card__footer"
25
+ ],
26
+ [
27
+ "title",
28
+ "card__title"
29
+ ],
30
+ [
31
+ "description",
32
+ "card__description"
33
+ ]
34
+ ]
35
+ const cardSlotFns = /* @__PURE__ */ cardSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, cardDefaultVariants, getSlotCompoundVariant(cardCompoundVariants, slotName))])
36
+
37
+ const cardFn = memo((props = {}) => {
38
+ return Object.fromEntries(cardSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
39
+ })
40
+
41
+ const cardVariantKeys = [
42
+ "variant"
43
+ ]
44
+ const getVariantProps = (variants) => ({ ...cardDefaultVariants, ...compact(variants) })
45
+
46
+ export const card = /* @__PURE__ */ Object.assign(cardFn, {
47
+ __recipe__: false,
48
+ __name__: 'card',
49
+ raw: (props) => props,
50
+ classNameMap: {},
51
+ variantKeys: cardVariantKeys,
52
+ variantMap: {
53
+ "variant": [
54
+ "elevated",
55
+ "outline",
56
+ "subtle"
57
+ ]
58
+ },
59
+ splitVariantProps(props) {
60
+ return splitProps(props, cardVariantKeys)
61
+ },
62
+ getVariantProps
63
+ })
@@ -0,0 +1,35 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface CarouselVariant {
6
+ inline: boolean
7
+ /**
8
+ * @default "md"
9
+ */
10
+ size: "md"
11
+ }
12
+
13
+ type CarouselVariantMap = {
14
+ [key in keyof CarouselVariant]: Array<CarouselVariant[key]>
15
+ }
16
+
17
+ type CarouselSlot = "root" | "itemGroup" | "item" | "control" | "nextTrigger" | "prevTrigger" | "indicatorGroup" | "indicator" | "autoplayTrigger" | "progressText" | "progressText" | "autoplayIndicator" | "image"
18
+
19
+ export type CarouselVariantProps = {
20
+ [key in keyof CarouselVariant]?: ConditionalValue<CarouselVariant[key]> | undefined
21
+ }
22
+
23
+ export interface CarouselRecipe {
24
+ __slot: CarouselSlot
25
+ __type: CarouselVariantProps
26
+ (props?: CarouselVariantProps): Pretty<Record<CarouselSlot, string>>
27
+ raw: (props?: CarouselVariantProps) => CarouselVariantProps
28
+ variantMap: CarouselVariantMap
29
+ variantKeys: Array<keyof CarouselVariant>
30
+ splitVariantProps<Props extends CarouselVariantProps>(props: Props): [CarouselVariantProps, Pretty<DistributiveOmit<Props, keyof CarouselVariantProps>>]
31
+ getVariantProps: (props?: CarouselVariantProps) => CarouselVariantProps
32
+ }
33
+
34
+
35
+ export declare const carousel: CarouselRecipe