@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,57 @@
1
+ export * from './absolute-center.mjs';
2
+ export * from './badge.mjs';
3
+ export * from './button.mjs';
4
+ export * from './checkmark.mjs';
5
+ export * from './form.mjs';
6
+ export * from './group.mjs';
7
+ export * from './heading.mjs';
8
+ export * from './icon.mjs';
9
+ export * from './input.mjs';
10
+ export * from './input-addon.mjs';
11
+ export * from './mark.mjs';
12
+ export * from './kbd.mjs';
13
+ export * from './link.mjs';
14
+ export * from './skeleton.mjs';
15
+ export * from './spinner.mjs';
16
+ export * from './text.mjs';
17
+ export * from './textarea.mjs';
18
+ export * from './action-bar.mjs';
19
+ export * from './avatar.mjs';
20
+ export * from './breadcrumb.mjs';
21
+ export * from './card.mjs';
22
+ export * from './carousel.mjs';
23
+ export * from './checkbox.mjs';
24
+ export * from './clipboard.mjs';
25
+ export * from './collapsible.mjs';
26
+ export * from './combobox.mjs';
27
+ export * from './data-list.mjs';
28
+ export * from './date-picker.mjs';
29
+ export * from './dialog.mjs';
30
+ export * from './drawer.mjs';
31
+ export * from './drilldown-menu.mjs';
32
+ export * from './field.mjs';
33
+ export * from './fieldset.mjs';
34
+ export * from './floating-panel.mjs';
35
+ export * from './input-group.mjs';
36
+ export * from './menu.mjs';
37
+ export * from './number-input.mjs';
38
+ export * from './pagination.mjs';
39
+ export * from './popover.mjs';
40
+ export * from './progress.mjs';
41
+ export * from './progress-circle.mjs';
42
+ export * from './radio-card-group.mjs';
43
+ export * from './radio-group.mjs';
44
+ export * from './scroll-area.mjs';
45
+ export * from './segment-group.mjs';
46
+ export * from './select.mjs';
47
+ export * from './slider.mjs';
48
+ export * from './stat.mjs';
49
+ export * from './steps.mjs';
50
+ export * from './switch-recipe.mjs';
51
+ export * from './table.mjs';
52
+ export * from './tabs.mjs';
53
+ export * from './tags-input.mjs';
54
+ export * from './toast.mjs';
55
+ export * from './toggle-group.mjs';
56
+ export * from './tooltip.mjs';
57
+ export * from './tree-view.mjs';
@@ -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 InputAddonVariant {
6
+ /**
7
+ * @default "outline"
8
+ */
9
+ variant: "outline" | "surface"
10
+ /**
11
+ * @default "md"
12
+ */
13
+ size: "xs" | "sm" | "md" | "lg" | "xl"
14
+ }
15
+
16
+ type InputAddonVariantMap = {
17
+ [key in keyof InputAddonVariant]: Array<InputAddonVariant[key]>
18
+ }
19
+
20
+
21
+
22
+ export type InputAddonVariantProps = {
23
+ [key in keyof InputAddonVariant]?: ConditionalValue<InputAddonVariant[key]> | undefined
24
+ }
25
+
26
+ export interface InputAddonRecipe {
27
+
28
+ __type: InputAddonVariantProps
29
+ (props?: InputAddonVariantProps): string
30
+ raw: (props?: InputAddonVariantProps) => InputAddonVariantProps
31
+ variantMap: InputAddonVariantMap
32
+ variantKeys: Array<keyof InputAddonVariant>
33
+ splitVariantProps<Props extends InputAddonVariantProps>(props: Props): [InputAddonVariantProps, Pretty<DistributiveOmit<Props, keyof InputAddonVariantProps>>]
34
+ getVariantProps: (props?: InputAddonVariantProps) => InputAddonVariantProps
35
+ }
36
+
37
+
38
+ export declare const inputAddon: InputAddonRecipe
@@ -0,0 +1,39 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const inputAddonFn = /* @__PURE__ */ createRecipe('input-addon', {
5
+ "size": "md",
6
+ "variant": "outline"
7
+ }, [])
8
+
9
+ const inputAddonVariantMap = {
10
+ "variant": [
11
+ "outline",
12
+ "surface"
13
+ ],
14
+ "size": [
15
+ "xs",
16
+ "sm",
17
+ "md",
18
+ "lg",
19
+ "xl"
20
+ ]
21
+ }
22
+
23
+ const inputAddonVariantKeys = Object.keys(inputAddonVariantMap)
24
+
25
+ export const inputAddon = /* @__PURE__ */ Object.assign(memo(inputAddonFn.recipeFn), {
26
+ __recipe__: true,
27
+ __name__: 'inputAddon',
28
+ __getCompoundVariantCss__: inputAddonFn.__getCompoundVariantCss__,
29
+ raw: (props) => props,
30
+ variantKeys: inputAddonVariantKeys,
31
+ variantMap: inputAddonVariantMap,
32
+ merge(recipe) {
33
+ return mergeRecipes(this, recipe)
34
+ },
35
+ splitVariantProps(props) {
36
+ return splitProps(props, inputAddonVariantKeys)
37
+ },
38
+ getVariantProps: inputAddonFn.getVariantProps,
39
+ })
@@ -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 InputGroupVariant {
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "xs" | "sm" | "md" | "lg" | "xl"
10
+ }
11
+
12
+ type InputGroupVariantMap = {
13
+ [key in keyof InputGroupVariant]: Array<InputGroupVariant[key]>
14
+ }
15
+
16
+ type InputGroupSlot = "root" | "element"
17
+
18
+ export type InputGroupVariantProps = {
19
+ [key in keyof InputGroupVariant]?: ConditionalValue<InputGroupVariant[key]> | undefined
20
+ }
21
+
22
+ export interface InputGroupRecipe {
23
+ __slot: InputGroupSlot
24
+ __type: InputGroupVariantProps
25
+ (props?: InputGroupVariantProps): Pretty<Record<InputGroupSlot, string>>
26
+ raw: (props?: InputGroupVariantProps) => InputGroupVariantProps
27
+ variantMap: InputGroupVariantMap
28
+ variantKeys: Array<keyof InputGroupVariant>
29
+ splitVariantProps<Props extends InputGroupVariantProps>(props: Props): [InputGroupVariantProps, Pretty<DistributiveOmit<Props, keyof InputGroupVariantProps>>]
30
+ getVariantProps: (props?: InputGroupVariantProps) => InputGroupVariantProps
31
+ }
32
+
33
+
34
+ export declare const inputGroup: InputGroupRecipe
@@ -0,0 +1,49 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const inputGroupDefaultVariants = {
5
+ "size": "md"
6
+ }
7
+ const inputGroupCompoundVariants = []
8
+
9
+ const inputGroupSlotNames = [
10
+ [
11
+ "root",
12
+ "input-group__root"
13
+ ],
14
+ [
15
+ "element",
16
+ "input-group__element"
17
+ ]
18
+ ]
19
+ const inputGroupSlotFns = /* @__PURE__ */ inputGroupSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, inputGroupDefaultVariants, getSlotCompoundVariant(inputGroupCompoundVariants, slotName))])
20
+
21
+ const inputGroupFn = memo((props = {}) => {
22
+ return Object.fromEntries(inputGroupSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
23
+ })
24
+
25
+ const inputGroupVariantKeys = [
26
+ "size"
27
+ ]
28
+ const getVariantProps = (variants) => ({ ...inputGroupDefaultVariants, ...compact(variants) })
29
+
30
+ export const inputGroup = /* @__PURE__ */ Object.assign(inputGroupFn, {
31
+ __recipe__: false,
32
+ __name__: 'inputGroup',
33
+ raw: (props) => props,
34
+ classNameMap: {},
35
+ variantKeys: inputGroupVariantKeys,
36
+ variantMap: {
37
+ "size": [
38
+ "xs",
39
+ "sm",
40
+ "md",
41
+ "lg",
42
+ "xl"
43
+ ]
44
+ },
45
+ splitVariantProps(props) {
46
+ return splitProps(props, inputGroupVariantKeys)
47
+ },
48
+ getVariantProps
49
+ })
@@ -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 InputVariant {
6
+ /**
7
+ * @default "surface"
8
+ */
9
+ variant: "outline" | "surface" | "plain"
10
+ /**
11
+ * @default "md"
12
+ */
13
+ size: "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
14
+ }
15
+
16
+ type InputVariantMap = {
17
+ [key in keyof InputVariant]: Array<InputVariant[key]>
18
+ }
19
+
20
+
21
+
22
+ export type InputVariantProps = {
23
+ [key in keyof InputVariant]?: ConditionalValue<InputVariant[key]> | undefined
24
+ }
25
+
26
+ export interface InputRecipe {
27
+
28
+ __type: InputVariantProps
29
+ (props?: InputVariantProps): string
30
+ raw: (props?: InputVariantProps) => InputVariantProps
31
+ variantMap: InputVariantMap
32
+ variantKeys: Array<keyof InputVariant>
33
+ splitVariantProps<Props extends InputVariantProps>(props: Props): [InputVariantProps, Pretty<DistributiveOmit<Props, keyof InputVariantProps>>]
34
+ getVariantProps: (props?: InputVariantProps) => InputVariantProps
35
+ }
36
+
37
+
38
+ export declare const input: InputRecipe
@@ -0,0 +1,42 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const inputFn = /* @__PURE__ */ createRecipe('input', {
5
+ "size": "md",
6
+ "variant": "surface"
7
+ }, [])
8
+
9
+ const inputVariantMap = {
10
+ "variant": [
11
+ "outline",
12
+ "surface",
13
+ "plain"
14
+ ],
15
+ "size": [
16
+ "2xs",
17
+ "xs",
18
+ "sm",
19
+ "md",
20
+ "lg",
21
+ "xl",
22
+ "2xl"
23
+ ]
24
+ }
25
+
26
+ const inputVariantKeys = Object.keys(inputVariantMap)
27
+
28
+ export const input = /* @__PURE__ */ Object.assign(memo(inputFn.recipeFn), {
29
+ __recipe__: true,
30
+ __name__: 'input',
31
+ __getCompoundVariantCss__: inputFn.__getCompoundVariantCss__,
32
+ raw: (props) => props,
33
+ variantKeys: inputVariantKeys,
34
+ variantMap: inputVariantMap,
35
+ merge(recipe) {
36
+ return mergeRecipes(this, recipe)
37
+ },
38
+ splitVariantProps(props) {
39
+ return splitProps(props, inputVariantKeys)
40
+ },
41
+ getVariantProps: inputFn.getVariantProps,
42
+ })
@@ -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 KbdVariant {
6
+ /**
7
+ * @default "surface"
8
+ */
9
+ variant: "solid" | "surface" | "outline" | "subtle" | "plain"
10
+ /**
11
+ * @default "md"
12
+ */
13
+ size: "sm" | "md" | "lg" | "xl" | "2xl"
14
+ }
15
+
16
+ type KbdVariantMap = {
17
+ [key in keyof KbdVariant]: Array<KbdVariant[key]>
18
+ }
19
+
20
+
21
+
22
+ export type KbdVariantProps = {
23
+ [key in keyof KbdVariant]?: ConditionalValue<KbdVariant[key]> | undefined
24
+ }
25
+
26
+ export interface KbdRecipe {
27
+
28
+ __type: KbdVariantProps
29
+ (props?: KbdVariantProps): string
30
+ raw: (props?: KbdVariantProps) => KbdVariantProps
31
+ variantMap: KbdVariantMap
32
+ variantKeys: Array<keyof KbdVariant>
33
+ splitVariantProps<Props extends KbdVariantProps>(props: Props): [KbdVariantProps, Pretty<DistributiveOmit<Props, keyof KbdVariantProps>>]
34
+ getVariantProps: (props?: KbdVariantProps) => KbdVariantProps
35
+ }
36
+
37
+
38
+ export declare const kbd: KbdRecipe
@@ -0,0 +1,42 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const kbdFn = /* @__PURE__ */ createRecipe('kbd', {
5
+ "size": "md",
6
+ "variant": "surface"
7
+ }, [])
8
+
9
+ const kbdVariantMap = {
10
+ "variant": [
11
+ "solid",
12
+ "surface",
13
+ "outline",
14
+ "subtle",
15
+ "plain"
16
+ ],
17
+ "size": [
18
+ "sm",
19
+ "md",
20
+ "lg",
21
+ "xl",
22
+ "2xl"
23
+ ]
24
+ }
25
+
26
+ const kbdVariantKeys = Object.keys(kbdVariantMap)
27
+
28
+ export const kbd = /* @__PURE__ */ Object.assign(memo(kbdFn.recipeFn), {
29
+ __recipe__: true,
30
+ __name__: 'kbd',
31
+ __getCompoundVariantCss__: kbdFn.__getCompoundVariantCss__,
32
+ raw: (props) => props,
33
+ variantKeys: kbdVariantKeys,
34
+ variantMap: kbdVariantMap,
35
+ merge(recipe) {
36
+ return mergeRecipes(this, recipe)
37
+ },
38
+ splitVariantProps(props) {
39
+ return splitProps(props, kbdVariantKeys)
40
+ },
41
+ getVariantProps: kbdFn.getVariantProps,
42
+ })
@@ -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 LinkVariant {
6
+ /**
7
+ * @default "plain"
8
+ */
9
+ variant: "plain"
10
+ }
11
+
12
+ type LinkVariantMap = {
13
+ [key in keyof LinkVariant]: Array<LinkVariant[key]>
14
+ }
15
+
16
+
17
+
18
+ export type LinkVariantProps = {
19
+ [key in keyof LinkVariant]?: ConditionalValue<LinkVariant[key]> | undefined
20
+ }
21
+
22
+ export interface LinkRecipe {
23
+
24
+ __type: LinkVariantProps
25
+ (props?: LinkVariantProps): string
26
+ raw: (props?: LinkVariantProps) => LinkVariantProps
27
+ variantMap: LinkVariantMap
28
+ variantKeys: Array<keyof LinkVariant>
29
+ splitVariantProps<Props extends LinkVariantProps>(props: Props): [LinkVariantProps, Pretty<DistributiveOmit<Props, keyof LinkVariantProps>>]
30
+ getVariantProps: (props?: LinkVariantProps) => LinkVariantProps
31
+ }
32
+
33
+
34
+ export declare const link: LinkRecipe
@@ -0,0 +1,30 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const linkFn = /* @__PURE__ */ createRecipe('link', {
5
+ "variant": "plain"
6
+ }, [])
7
+
8
+ const linkVariantMap = {
9
+ "variant": [
10
+ "plain"
11
+ ]
12
+ }
13
+
14
+ const linkVariantKeys = Object.keys(linkVariantMap)
15
+
16
+ export const link = /* @__PURE__ */ Object.assign(memo(linkFn.recipeFn), {
17
+ __recipe__: true,
18
+ __name__: 'link',
19
+ __getCompoundVariantCss__: linkFn.__getCompoundVariantCss__,
20
+ raw: (props) => props,
21
+ variantKeys: linkVariantKeys,
22
+ variantMap: linkVariantMap,
23
+ merge(recipe) {
24
+ return mergeRecipes(this, recipe)
25
+ },
26
+ splitVariantProps(props) {
27
+ return splitProps(props, linkVariantKeys)
28
+ },
29
+ getVariantProps: linkFn.getVariantProps,
30
+ })
@@ -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 MarkVariant {
6
+ /**
7
+ * @default "solid"
8
+ */
9
+ variant: "solid" | "subtle" | "text"
10
+ }
11
+
12
+ type MarkVariantMap = {
13
+ [key in keyof MarkVariant]: Array<MarkVariant[key]>
14
+ }
15
+
16
+
17
+
18
+ export type MarkVariantProps = {
19
+ [key in keyof MarkVariant]?: ConditionalValue<MarkVariant[key]> | undefined
20
+ }
21
+
22
+ export interface MarkRecipe {
23
+
24
+ __type: MarkVariantProps
25
+ (props?: MarkVariantProps): string
26
+ raw: (props?: MarkVariantProps) => MarkVariantProps
27
+ variantMap: MarkVariantMap
28
+ variantKeys: Array<keyof MarkVariant>
29
+ splitVariantProps<Props extends MarkVariantProps>(props: Props): [MarkVariantProps, Pretty<DistributiveOmit<Props, keyof MarkVariantProps>>]
30
+ getVariantProps: (props?: MarkVariantProps) => MarkVariantProps
31
+ }
32
+
33
+
34
+ export declare const mark: MarkRecipe
@@ -0,0 +1,32 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const markFn = /* @__PURE__ */ createRecipe('mark', {
5
+ "variant": "solid"
6
+ }, [])
7
+
8
+ const markVariantMap = {
9
+ "variant": [
10
+ "solid",
11
+ "subtle",
12
+ "text"
13
+ ]
14
+ }
15
+
16
+ const markVariantKeys = Object.keys(markVariantMap)
17
+
18
+ export const mark = /* @__PURE__ */ Object.assign(memo(markFn.recipeFn), {
19
+ __recipe__: true,
20
+ __name__: 'mark',
21
+ __getCompoundVariantCss__: markFn.__getCompoundVariantCss__,
22
+ raw: (props) => props,
23
+ variantKeys: markVariantKeys,
24
+ variantMap: markVariantMap,
25
+ merge(recipe) {
26
+ return mergeRecipes(this, recipe)
27
+ },
28
+ splitVariantProps(props) {
29
+ return splitProps(props, markVariantKeys)
30
+ },
31
+ getVariantProps: markFn.getVariantProps,
32
+ })
@@ -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 MenuVariant {
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "xs" | "sm" | "md" | "lg" | "xl"
10
+ }
11
+
12
+ type MenuVariantMap = {
13
+ [key in keyof MenuVariant]: Array<MenuVariant[key]>
14
+ }
15
+
16
+ type MenuSlot = "arrow" | "arrowTip" | "content" | "contextTrigger" | "indicator" | "item" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "positioner" | "separator" | "trigger" | "triggerItem"
17
+
18
+ export type MenuVariantProps = {
19
+ [key in keyof MenuVariant]?: ConditionalValue<MenuVariant[key]> | undefined
20
+ }
21
+
22
+ export interface MenuRecipe {
23
+ __slot: MenuSlot
24
+ __type: MenuVariantProps
25
+ (props?: MenuVariantProps): Pretty<Record<MenuSlot, string>>
26
+ raw: (props?: MenuVariantProps) => MenuVariantProps
27
+ variantMap: MenuVariantMap
28
+ variantKeys: Array<keyof MenuVariant>
29
+ splitVariantProps<Props extends MenuVariantProps>(props: Props): [MenuVariantProps, Pretty<DistributiveOmit<Props, keyof MenuVariantProps>>]
30
+ getVariantProps: (props?: MenuVariantProps) => MenuVariantProps
31
+ }
32
+
33
+
34
+ export declare const menu: MenuRecipe
@@ -0,0 +1,97 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const menuDefaultVariants = {
5
+ "size": "md"
6
+ }
7
+ const menuCompoundVariants = []
8
+
9
+ const menuSlotNames = [
10
+ [
11
+ "arrow",
12
+ "menu__arrow"
13
+ ],
14
+ [
15
+ "arrowTip",
16
+ "menu__arrowTip"
17
+ ],
18
+ [
19
+ "content",
20
+ "menu__content"
21
+ ],
22
+ [
23
+ "contextTrigger",
24
+ "menu__contextTrigger"
25
+ ],
26
+ [
27
+ "indicator",
28
+ "menu__indicator"
29
+ ],
30
+ [
31
+ "item",
32
+ "menu__item"
33
+ ],
34
+ [
35
+ "itemGroup",
36
+ "menu__itemGroup"
37
+ ],
38
+ [
39
+ "itemGroupLabel",
40
+ "menu__itemGroupLabel"
41
+ ],
42
+ [
43
+ "itemIndicator",
44
+ "menu__itemIndicator"
45
+ ],
46
+ [
47
+ "itemText",
48
+ "menu__itemText"
49
+ ],
50
+ [
51
+ "positioner",
52
+ "menu__positioner"
53
+ ],
54
+ [
55
+ "separator",
56
+ "menu__separator"
57
+ ],
58
+ [
59
+ "trigger",
60
+ "menu__trigger"
61
+ ],
62
+ [
63
+ "triggerItem",
64
+ "menu__triggerItem"
65
+ ]
66
+ ]
67
+ const menuSlotFns = /* @__PURE__ */ menuSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, menuDefaultVariants, getSlotCompoundVariant(menuCompoundVariants, slotName))])
68
+
69
+ const menuFn = memo((props = {}) => {
70
+ return Object.fromEntries(menuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
71
+ })
72
+
73
+ const menuVariantKeys = [
74
+ "size"
75
+ ]
76
+ const getVariantProps = (variants) => ({ ...menuDefaultVariants, ...compact(variants) })
77
+
78
+ export const menu = /* @__PURE__ */ Object.assign(menuFn, {
79
+ __recipe__: false,
80
+ __name__: 'menu',
81
+ raw: (props) => props,
82
+ classNameMap: {},
83
+ variantKeys: menuVariantKeys,
84
+ variantMap: {
85
+ "size": [
86
+ "xs",
87
+ "sm",
88
+ "md",
89
+ "lg",
90
+ "xl"
91
+ ]
92
+ },
93
+ splitVariantProps(props) {
94
+ return splitProps(props, menuVariantKeys)
95
+ },
96
+ getVariantProps
97
+ })
@@ -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 NumberInputVariant {
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "sm" | "md" | "lg" | "xl"
10
+ /**
11
+ * @default "surface"
12
+ */
13
+ variant: "outline" | "surface"
14
+ }
15
+
16
+ type NumberInputVariantMap = {
17
+ [key in keyof NumberInputVariant]: Array<NumberInputVariant[key]>
18
+ }
19
+
20
+ type NumberInputSlot = "root" | "label" | "input" | "control" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber"
21
+
22
+ export type NumberInputVariantProps = {
23
+ [key in keyof NumberInputVariant]?: ConditionalValue<NumberInputVariant[key]> | undefined
24
+ }
25
+
26
+ export interface NumberInputRecipe {
27
+ __slot: NumberInputSlot
28
+ __type: NumberInputVariantProps
29
+ (props?: NumberInputVariantProps): Pretty<Record<NumberInputSlot, string>>
30
+ raw: (props?: NumberInputVariantProps) => NumberInputVariantProps
31
+ variantMap: NumberInputVariantMap
32
+ variantKeys: Array<keyof NumberInputVariant>
33
+ splitVariantProps<Props extends NumberInputVariantProps>(props: Props): [NumberInputVariantProps, Pretty<DistributiveOmit<Props, keyof NumberInputVariantProps>>]
34
+ getVariantProps: (props?: NumberInputVariantProps) => NumberInputVariantProps
35
+ }
36
+
37
+
38
+ export declare const numberInput: NumberInputRecipe