@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,68 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const radioGroupDefaultVariants = {
5
+ "variant": "solid",
6
+ "size": "md"
7
+ }
8
+ const radioGroupCompoundVariants = []
9
+
10
+ const radioGroupSlotNames = [
11
+ [
12
+ "root",
13
+ "radio-group__root"
14
+ ],
15
+ [
16
+ "label",
17
+ "radio-group__label"
18
+ ],
19
+ [
20
+ "item",
21
+ "radio-group__item"
22
+ ],
23
+ [
24
+ "itemText",
25
+ "radio-group__itemText"
26
+ ],
27
+ [
28
+ "itemControl",
29
+ "radio-group__itemControl"
30
+ ],
31
+ [
32
+ "indicator",
33
+ "radio-group__indicator"
34
+ ]
35
+ ]
36
+ const radioGroupSlotFns = /* @__PURE__ */ radioGroupSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, radioGroupDefaultVariants, getSlotCompoundVariant(radioGroupCompoundVariants, slotName))])
37
+
38
+ const radioGroupFn = memo((props = {}) => {
39
+ return Object.fromEntries(radioGroupSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
40
+ })
41
+
42
+ const radioGroupVariantKeys = [
43
+ "variant",
44
+ "size"
45
+ ]
46
+ const getVariantProps = (variants) => ({ ...radioGroupDefaultVariants, ...compact(variants) })
47
+
48
+ export const radioGroup = /* @__PURE__ */ Object.assign(radioGroupFn, {
49
+ __recipe__: false,
50
+ __name__: 'radioGroup',
51
+ raw: (props) => props,
52
+ classNameMap: {},
53
+ variantKeys: radioGroupVariantKeys,
54
+ variantMap: {
55
+ "variant": [
56
+ "solid"
57
+ ],
58
+ "size": [
59
+ "sm",
60
+ "md",
61
+ "lg"
62
+ ]
63
+ },
64
+ splitVariantProps(props) {
65
+ return splitProps(props, radioGroupVariantKeys)
66
+ },
67
+ getVariantProps
68
+ })
@@ -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 ScrollAreaVariant {
6
+ /**
7
+ * @default "auto"
8
+ */
9
+ scrollbar: "auto" | "visible"
10
+ /**
11
+ * @default "md"
12
+ */
13
+ size: "xs" | "sm" | "md" | "lg"
14
+ }
15
+
16
+ type ScrollAreaVariantMap = {
17
+ [key in keyof ScrollAreaVariant]: Array<ScrollAreaVariant[key]>
18
+ }
19
+
20
+ type ScrollAreaSlot = "root" | "viewport" | "content" | "scrollbar" | "thumb" | "corner"
21
+
22
+ export type ScrollAreaVariantProps = {
23
+ [key in keyof ScrollAreaVariant]?: ConditionalValue<ScrollAreaVariant[key]> | undefined
24
+ }
25
+
26
+ export interface ScrollAreaRecipe {
27
+ __slot: ScrollAreaSlot
28
+ __type: ScrollAreaVariantProps
29
+ (props?: ScrollAreaVariantProps): Pretty<Record<ScrollAreaSlot, string>>
30
+ raw: (props?: ScrollAreaVariantProps) => ScrollAreaVariantProps
31
+ variantMap: ScrollAreaVariantMap
32
+ variantKeys: Array<keyof ScrollAreaVariant>
33
+ splitVariantProps<Props extends ScrollAreaVariantProps>(props: Props): [ScrollAreaVariantProps, Pretty<DistributiveOmit<Props, keyof ScrollAreaVariantProps>>]
34
+ getVariantProps: (props?: ScrollAreaVariantProps) => ScrollAreaVariantProps
35
+ }
36
+
37
+
38
+ export declare const scrollArea: ScrollAreaRecipe
@@ -0,0 +1,70 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const scrollAreaDefaultVariants = {
5
+ "size": "md",
6
+ "scrollbar": "auto"
7
+ }
8
+ const scrollAreaCompoundVariants = []
9
+
10
+ const scrollAreaSlotNames = [
11
+ [
12
+ "root",
13
+ "scroll-area__root"
14
+ ],
15
+ [
16
+ "viewport",
17
+ "scroll-area__viewport"
18
+ ],
19
+ [
20
+ "content",
21
+ "scroll-area__content"
22
+ ],
23
+ [
24
+ "scrollbar",
25
+ "scroll-area__scrollbar"
26
+ ],
27
+ [
28
+ "thumb",
29
+ "scroll-area__thumb"
30
+ ],
31
+ [
32
+ "corner",
33
+ "scroll-area__corner"
34
+ ]
35
+ ]
36
+ const scrollAreaSlotFns = /* @__PURE__ */ scrollAreaSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, scrollAreaDefaultVariants, getSlotCompoundVariant(scrollAreaCompoundVariants, slotName))])
37
+
38
+ const scrollAreaFn = memo((props = {}) => {
39
+ return Object.fromEntries(scrollAreaSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
40
+ })
41
+
42
+ const scrollAreaVariantKeys = [
43
+ "scrollbar",
44
+ "size"
45
+ ]
46
+ const getVariantProps = (variants) => ({ ...scrollAreaDefaultVariants, ...compact(variants) })
47
+
48
+ export const scrollArea = /* @__PURE__ */ Object.assign(scrollAreaFn, {
49
+ __recipe__: false,
50
+ __name__: 'scrollArea',
51
+ raw: (props) => props,
52
+ classNameMap: {},
53
+ variantKeys: scrollAreaVariantKeys,
54
+ variantMap: {
55
+ "scrollbar": [
56
+ "auto",
57
+ "visible"
58
+ ],
59
+ "size": [
60
+ "xs",
61
+ "sm",
62
+ "md",
63
+ "lg"
64
+ ]
65
+ },
66
+ splitVariantProps(props) {
67
+ return splitProps(props, scrollAreaVariantKeys)
68
+ },
69
+ getVariantProps
70
+ })
@@ -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 SegmentGroupVariant {
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "xs" | "sm" | "md" | "lg" | "xl"
10
+ fitted: boolean
11
+ }
12
+
13
+ type SegmentGroupVariantMap = {
14
+ [key in keyof SegmentGroupVariant]: Array<SegmentGroupVariant[key]>
15
+ }
16
+
17
+ type SegmentGroupSlot = "root" | "label" | "item" | "itemText" | "itemControl" | "indicator"
18
+
19
+ export type SegmentGroupVariantProps = {
20
+ [key in keyof SegmentGroupVariant]?: ConditionalValue<SegmentGroupVariant[key]> | undefined
21
+ }
22
+
23
+ export interface SegmentGroupRecipe {
24
+ __slot: SegmentGroupSlot
25
+ __type: SegmentGroupVariantProps
26
+ (props?: SegmentGroupVariantProps): Pretty<Record<SegmentGroupSlot, string>>
27
+ raw: (props?: SegmentGroupVariantProps) => SegmentGroupVariantProps
28
+ variantMap: SegmentGroupVariantMap
29
+ variantKeys: Array<keyof SegmentGroupVariant>
30
+ splitVariantProps<Props extends SegmentGroupVariantProps>(props: Props): [SegmentGroupVariantProps, Pretty<DistributiveOmit<Props, keyof SegmentGroupVariantProps>>]
31
+ getVariantProps: (props?: SegmentGroupVariantProps) => SegmentGroupVariantProps
32
+ }
33
+
34
+
35
+ export declare const segmentGroup: SegmentGroupRecipe
@@ -0,0 +1,69 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const segmentGroupDefaultVariants = {
5
+ "size": "md"
6
+ }
7
+ const segmentGroupCompoundVariants = []
8
+
9
+ const segmentGroupSlotNames = [
10
+ [
11
+ "root",
12
+ "segment-group__root"
13
+ ],
14
+ [
15
+ "label",
16
+ "segment-group__label"
17
+ ],
18
+ [
19
+ "item",
20
+ "segment-group__item"
21
+ ],
22
+ [
23
+ "itemText",
24
+ "segment-group__itemText"
25
+ ],
26
+ [
27
+ "itemControl",
28
+ "segment-group__itemControl"
29
+ ],
30
+ [
31
+ "indicator",
32
+ "segment-group__indicator"
33
+ ]
34
+ ]
35
+ const segmentGroupSlotFns = /* @__PURE__ */ segmentGroupSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, segmentGroupDefaultVariants, getSlotCompoundVariant(segmentGroupCompoundVariants, slotName))])
36
+
37
+ const segmentGroupFn = memo((props = {}) => {
38
+ return Object.fromEntries(segmentGroupSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
39
+ })
40
+
41
+ const segmentGroupVariantKeys = [
42
+ "size",
43
+ "fitted"
44
+ ]
45
+ const getVariantProps = (variants) => ({ ...segmentGroupDefaultVariants, ...compact(variants) })
46
+
47
+ export const segmentGroup = /* @__PURE__ */ Object.assign(segmentGroupFn, {
48
+ __recipe__: false,
49
+ __name__: 'segmentGroup',
50
+ raw: (props) => props,
51
+ classNameMap: {},
52
+ variantKeys: segmentGroupVariantKeys,
53
+ variantMap: {
54
+ "size": [
55
+ "xs",
56
+ "sm",
57
+ "md",
58
+ "lg",
59
+ "xl"
60
+ ],
61
+ "fitted": [
62
+ "true"
63
+ ]
64
+ },
65
+ splitVariantProps(props) {
66
+ return splitProps(props, segmentGroupVariantKeys)
67
+ },
68
+ getVariantProps
69
+ })
@@ -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 SelectVariant {
6
+ /**
7
+ * @default "surface"
8
+ */
9
+ variant: "outline" | "surface"
10
+ /**
11
+ * @default "md"
12
+ */
13
+ size: "xs" | "sm" | "md" | "lg" | "xl"
14
+ }
15
+
16
+ type SelectVariantMap = {
17
+ [key in keyof SelectVariant]: Array<SelectVariant[key]>
18
+ }
19
+
20
+ type SelectSlot = "label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText" | "indicatorGroup"
21
+
22
+ export type SelectVariantProps = {
23
+ [key in keyof SelectVariant]?: ConditionalValue<SelectVariant[key]> | undefined
24
+ }
25
+
26
+ export interface SelectRecipe {
27
+ __slot: SelectSlot
28
+ __type: SelectVariantProps
29
+ (props?: SelectVariantProps): Pretty<Record<SelectSlot, string>>
30
+ raw: (props?: SelectVariantProps) => SelectVariantProps
31
+ variantMap: SelectVariantMap
32
+ variantKeys: Array<keyof SelectVariant>
33
+ splitVariantProps<Props extends SelectVariantProps>(props: Props): [SelectVariantProps, Pretty<DistributiveOmit<Props, keyof SelectVariantProps>>]
34
+ getVariantProps: (props?: SelectVariantProps) => SelectVariantProps
35
+ }
36
+
37
+
38
+ export declare const select: SelectRecipe
@@ -0,0 +1,111 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const selectDefaultVariants = {
5
+ "size": "md",
6
+ "variant": "surface"
7
+ }
8
+ const selectCompoundVariants = []
9
+
10
+ const selectSlotNames = [
11
+ [
12
+ "label",
13
+ "select__label"
14
+ ],
15
+ [
16
+ "positioner",
17
+ "select__positioner"
18
+ ],
19
+ [
20
+ "trigger",
21
+ "select__trigger"
22
+ ],
23
+ [
24
+ "indicator",
25
+ "select__indicator"
26
+ ],
27
+ [
28
+ "clearTrigger",
29
+ "select__clearTrigger"
30
+ ],
31
+ [
32
+ "item",
33
+ "select__item"
34
+ ],
35
+ [
36
+ "itemText",
37
+ "select__itemText"
38
+ ],
39
+ [
40
+ "itemIndicator",
41
+ "select__itemIndicator"
42
+ ],
43
+ [
44
+ "itemGroup",
45
+ "select__itemGroup"
46
+ ],
47
+ [
48
+ "itemGroupLabel",
49
+ "select__itemGroupLabel"
50
+ ],
51
+ [
52
+ "list",
53
+ "select__list"
54
+ ],
55
+ [
56
+ "content",
57
+ "select__content"
58
+ ],
59
+ [
60
+ "root",
61
+ "select__root"
62
+ ],
63
+ [
64
+ "control",
65
+ "select__control"
66
+ ],
67
+ [
68
+ "valueText",
69
+ "select__valueText"
70
+ ],
71
+ [
72
+ "indicatorGroup",
73
+ "select__indicatorGroup"
74
+ ]
75
+ ]
76
+ const selectSlotFns = /* @__PURE__ */ selectSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, selectDefaultVariants, getSlotCompoundVariant(selectCompoundVariants, slotName))])
77
+
78
+ const selectFn = memo((props = {}) => {
79
+ return Object.fromEntries(selectSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
80
+ })
81
+
82
+ const selectVariantKeys = [
83
+ "variant",
84
+ "size"
85
+ ]
86
+ const getVariantProps = (variants) => ({ ...selectDefaultVariants, ...compact(variants) })
87
+
88
+ export const select = /* @__PURE__ */ Object.assign(selectFn, {
89
+ __recipe__: false,
90
+ __name__: 'select',
91
+ raw: (props) => props,
92
+ classNameMap: {},
93
+ variantKeys: selectVariantKeys,
94
+ variantMap: {
95
+ "variant": [
96
+ "outline",
97
+ "surface"
98
+ ],
99
+ "size": [
100
+ "xs",
101
+ "sm",
102
+ "md",
103
+ "lg",
104
+ "xl"
105
+ ]
106
+ },
107
+ splitVariantProps(props) {
108
+ return splitProps(props, selectVariantKeys)
109
+ },
110
+ getVariantProps
111
+ })
@@ -0,0 +1,39 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface SkeletonVariant {
6
+ /**
7
+ * @default true
8
+ */
9
+ loading: boolean
10
+ circle: boolean
11
+ /**
12
+ * @default "pulse"
13
+ */
14
+ variant: "pulse" | "shine" | "none"
15
+ }
16
+
17
+ type SkeletonVariantMap = {
18
+ [key in keyof SkeletonVariant]: Array<SkeletonVariant[key]>
19
+ }
20
+
21
+
22
+
23
+ export type SkeletonVariantProps = {
24
+ [key in keyof SkeletonVariant]?: ConditionalValue<SkeletonVariant[key]> | undefined
25
+ }
26
+
27
+ export interface SkeletonRecipe {
28
+
29
+ __type: SkeletonVariantProps
30
+ (props?: SkeletonVariantProps): string
31
+ raw: (props?: SkeletonVariantProps) => SkeletonVariantProps
32
+ variantMap: SkeletonVariantMap
33
+ variantKeys: Array<keyof SkeletonVariant>
34
+ splitVariantProps<Props extends SkeletonVariantProps>(props: Props): [SkeletonVariantProps, Pretty<DistributiveOmit<Props, keyof SkeletonVariantProps>>]
35
+ getVariantProps: (props?: SkeletonVariantProps) => SkeletonVariantProps
36
+ }
37
+
38
+
39
+ export declare const skeleton: SkeletonRecipe
@@ -0,0 +1,40 @@
1
+ import { memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
+
4
+ const skeletonFn = /* @__PURE__ */ createRecipe('skeleton', {
5
+ "variant": "pulse",
6
+ "loading": true
7
+ }, [])
8
+
9
+ const skeletonVariantMap = {
10
+ "loading": [
11
+ "true",
12
+ "false"
13
+ ],
14
+ "circle": [
15
+ "true"
16
+ ],
17
+ "variant": [
18
+ "pulse",
19
+ "shine",
20
+ "none"
21
+ ]
22
+ }
23
+
24
+ const skeletonVariantKeys = Object.keys(skeletonVariantMap)
25
+
26
+ export const skeleton = /* @__PURE__ */ Object.assign(memo(skeletonFn.recipeFn), {
27
+ __recipe__: true,
28
+ __name__: 'skeleton',
29
+ __getCompoundVariantCss__: skeletonFn.__getCompoundVariantCss__,
30
+ raw: (props) => props,
31
+ variantKeys: skeletonVariantKeys,
32
+ variantMap: skeletonVariantMap,
33
+ merge(recipe) {
34
+ return mergeRecipes(this, recipe)
35
+ },
36
+ splitVariantProps(props) {
37
+ return splitProps(props, skeletonVariantKeys)
38
+ },
39
+ getVariantProps: skeletonFn.getVariantProps,
40
+ })
@@ -0,0 +1,42 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface SliderVariant {
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "sm" | "md" | "lg"
10
+ /**
11
+ * @default "outline"
12
+ */
13
+ variant: "outline"
14
+ /**
15
+ * @default "horizontal"
16
+ */
17
+ orientation: "vertical" | "horizontal"
18
+ }
19
+
20
+ type SliderVariantMap = {
21
+ [key in keyof SliderVariant]: Array<SliderVariant[key]>
22
+ }
23
+
24
+ type SliderSlot = "root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator" | "markerIndicator"
25
+
26
+ export type SliderVariantProps = {
27
+ [key in keyof SliderVariant]?: ConditionalValue<SliderVariant[key]> | undefined
28
+ }
29
+
30
+ export interface SliderRecipe {
31
+ __slot: SliderSlot
32
+ __type: SliderVariantProps
33
+ (props?: SliderVariantProps): Pretty<Record<SliderSlot, string>>
34
+ raw: (props?: SliderVariantProps) => SliderVariantProps
35
+ variantMap: SliderVariantMap
36
+ variantKeys: Array<keyof SliderVariant>
37
+ splitVariantProps<Props extends SliderVariantProps>(props: Props): [SliderVariantProps, Pretty<DistributiveOmit<Props, keyof SliderVariantProps>>]
38
+ getVariantProps: (props?: SliderVariantProps) => SliderVariantProps
39
+ }
40
+
41
+
42
+ export declare const slider: SliderRecipe
@@ -0,0 +1,94 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const sliderDefaultVariants = {
5
+ "size": "md",
6
+ "variant": "outline",
7
+ "orientation": "horizontal"
8
+ }
9
+ const sliderCompoundVariants = []
10
+
11
+ const sliderSlotNames = [
12
+ [
13
+ "root",
14
+ "slider__root"
15
+ ],
16
+ [
17
+ "label",
18
+ "slider__label"
19
+ ],
20
+ [
21
+ "thumb",
22
+ "slider__thumb"
23
+ ],
24
+ [
25
+ "valueText",
26
+ "slider__valueText"
27
+ ],
28
+ [
29
+ "track",
30
+ "slider__track"
31
+ ],
32
+ [
33
+ "range",
34
+ "slider__range"
35
+ ],
36
+ [
37
+ "control",
38
+ "slider__control"
39
+ ],
40
+ [
41
+ "markerGroup",
42
+ "slider__markerGroup"
43
+ ],
44
+ [
45
+ "marker",
46
+ "slider__marker"
47
+ ],
48
+ [
49
+ "draggingIndicator",
50
+ "slider__draggingIndicator"
51
+ ],
52
+ [
53
+ "markerIndicator",
54
+ "slider__markerIndicator"
55
+ ]
56
+ ]
57
+ const sliderSlotFns = /* @__PURE__ */ sliderSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, sliderDefaultVariants, getSlotCompoundVariant(sliderCompoundVariants, slotName))])
58
+
59
+ const sliderFn = memo((props = {}) => {
60
+ return Object.fromEntries(sliderSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
61
+ })
62
+
63
+ const sliderVariantKeys = [
64
+ "size",
65
+ "variant",
66
+ "orientation"
67
+ ]
68
+ const getVariantProps = (variants) => ({ ...sliderDefaultVariants, ...compact(variants) })
69
+
70
+ export const slider = /* @__PURE__ */ Object.assign(sliderFn, {
71
+ __recipe__: false,
72
+ __name__: 'slider',
73
+ raw: (props) => props,
74
+ classNameMap: {},
75
+ variantKeys: sliderVariantKeys,
76
+ variantMap: {
77
+ "size": [
78
+ "sm",
79
+ "md",
80
+ "lg"
81
+ ],
82
+ "variant": [
83
+ "outline"
84
+ ],
85
+ "orientation": [
86
+ "vertical",
87
+ "horizontal"
88
+ ]
89
+ },
90
+ splitVariantProps(props) {
91
+ return splitProps(props, sliderVariantKeys)
92
+ },
93
+ getVariantProps
94
+ })
@@ -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 SpinnerVariant {
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "inherit" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl"
10
+ }
11
+
12
+ type SpinnerVariantMap = {
13
+ [key in keyof SpinnerVariant]: Array<SpinnerVariant[key]>
14
+ }
15
+
16
+
17
+
18
+ export type SpinnerVariantProps = {
19
+ [key in keyof SpinnerVariant]?: ConditionalValue<SpinnerVariant[key]> | undefined
20
+ }
21
+
22
+ export interface SpinnerRecipe {
23
+
24
+ __type: SpinnerVariantProps
25
+ (props?: SpinnerVariantProps): string
26
+ raw: (props?: SpinnerVariantProps) => SpinnerVariantProps
27
+ variantMap: SpinnerVariantMap
28
+ variantKeys: Array<keyof SpinnerVariant>
29
+ splitVariantProps<Props extends SpinnerVariantProps>(props: Props): [SpinnerVariantProps, Pretty<DistributiveOmit<Props, keyof SpinnerVariantProps>>]
30
+ getVariantProps: (props?: SpinnerVariantProps) => SpinnerVariantProps
31
+ }
32
+
33
+
34
+ export declare const spinner: SpinnerRecipe