@stokelp/styled-system 2.126.1 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/css/conditions.d.ts +7 -0
  2. package/css/conditions.js +32 -0
  3. package/css/css.d.ts +6 -6
  4. package/css/css.js +63 -0
  5. package/css/cva.d.ts +3 -4
  6. package/css/cva.js +51 -0
  7. package/css/cx.d.ts +5 -4
  8. package/css/{cx.mjs → cx.js} +5 -4
  9. package/css/first-that-works.d.ts +22 -0
  10. package/css/first-that-works.js +1 -0
  11. package/css/index.d.ts +8 -5
  12. package/css/index.js +8 -0
  13. package/css/keyframes.d.ts +5 -0
  14. package/css/keyframes.js +8 -0
  15. package/css/position-try.d.ts +5 -0
  16. package/css/position-try.js +11 -0
  17. package/css/sva.d.ts +2 -3
  18. package/css/sva.js +49 -0
  19. package/css/view-transition.d.ts +7 -0
  20. package/css/view-transition.js +18 -0
  21. package/dist/panda/buildinfo.json +20580 -0
  22. package/dist/panda/lib.json +15 -0
  23. package/dist/panda/preset.mjs +9505 -0
  24. package/helpers.d.ts +67 -0
  25. package/helpers.js +624 -0
  26. package/jsx/aspect-ratio.d.ts +5 -8
  27. package/jsx/aspect-ratio.js +11 -0
  28. package/jsx/bleed.d.ts +6 -9
  29. package/jsx/bleed.js +11 -0
  30. package/jsx/box.d.ts +6 -9
  31. package/jsx/box.js +11 -0
  32. package/jsx/center.d.ts +6 -9
  33. package/jsx/center.js +11 -0
  34. package/jsx/circle.d.ts +6 -9
  35. package/jsx/circle.js +11 -0
  36. package/jsx/container.d.ts +6 -9
  37. package/jsx/container.js +11 -0
  38. package/jsx/cq.d.ts +6 -9
  39. package/jsx/cq.js +11 -0
  40. package/jsx/create-recipe-context.d.ts +31 -0
  41. package/jsx/create-recipe-context.js +38 -0
  42. package/jsx/create-slot-recipe-context.d.ts +49 -0
  43. package/jsx/create-slot-recipe-context.js +124 -0
  44. package/jsx/divider.d.ts +6 -9
  45. package/jsx/divider.js +11 -0
  46. package/jsx/factory.d.ts +3 -3
  47. package/jsx/factory.js +91 -0
  48. package/jsx/flex.d.ts +6 -9
  49. package/jsx/flex.js +11 -0
  50. package/jsx/float.d.ts +6 -9
  51. package/jsx/float.js +11 -0
  52. package/jsx/grid-item.d.ts +6 -9
  53. package/jsx/grid-item.js +11 -0
  54. package/jsx/grid.d.ts +6 -9
  55. package/jsx/grid.js +11 -0
  56. package/jsx/helper.d.ts +34 -0
  57. package/jsx/helper.js +92 -0
  58. package/jsx/hstack.d.ts +6 -9
  59. package/jsx/hstack.js +11 -0
  60. package/jsx/index.d.ts +25 -25
  61. package/jsx/index.js +24 -0
  62. package/jsx/is-valid-prop.d.ts +5 -10
  63. package/jsx/is-valid-prop.js +12 -0
  64. package/jsx/link-overlay.d.ts +6 -9
  65. package/jsx/link-overlay.js +11 -0
  66. package/jsx/spacer.d.ts +6 -9
  67. package/jsx/spacer.js +11 -0
  68. package/jsx/square.d.ts +6 -9
  69. package/jsx/square.js +11 -0
  70. package/jsx/stack.d.ts +6 -9
  71. package/jsx/stack.js +11 -0
  72. package/jsx/visually-hidden.d.ts +6 -9
  73. package/jsx/visually-hidden.js +11 -0
  74. package/jsx/vstack.d.ts +6 -9
  75. package/jsx/vstack.js +11 -0
  76. package/jsx/wrap.d.ts +6 -9
  77. package/jsx/wrap.js +11 -0
  78. package/package.json +32 -18
  79. package/patterns/aspect-ratio.d.ts +8 -9
  80. package/patterns/aspect-ratio.js +37 -0
  81. package/patterns/bleed.d.ts +9 -10
  82. package/patterns/bleed.js +30 -0
  83. package/patterns/box.d.ts +8 -11
  84. package/patterns/box.js +16 -0
  85. package/patterns/center.d.ts +8 -9
  86. package/patterns/center.js +22 -0
  87. package/patterns/circle.d.ts +8 -9
  88. package/patterns/circle.js +26 -0
  89. package/patterns/container.d.ts +8 -11
  90. package/patterns/container.js +26 -0
  91. package/patterns/cq.d.ts +10 -10
  92. package/patterns/cq.js +24 -0
  93. package/patterns/divider.d.ts +11 -11
  94. package/patterns/divider.js +31 -0
  95. package/patterns/flex.d.ts +14 -15
  96. package/patterns/flex.js +27 -0
  97. package/patterns/float.d.ts +12 -12
  98. package/patterns/float.js +78 -0
  99. package/patterns/grid-item.d.ts +13 -14
  100. package/patterns/grid-item.js +26 -0
  101. package/patterns/grid.d.ts +13 -13
  102. package/patterns/grid.js +30 -0
  103. package/patterns/hstack.d.ts +9 -10
  104. package/patterns/hstack.js +27 -0
  105. package/patterns/index.d.ts +20 -21
  106. package/patterns/index.js +20 -0
  107. package/patterns/link-overlay.d.ts +8 -11
  108. package/patterns/link-overlay.js +25 -0
  109. package/patterns/runtime.js +25 -0
  110. package/patterns/spacer.d.ts +9 -9
  111. package/patterns/spacer.js +25 -0
  112. package/patterns/square.d.ts +8 -9
  113. package/patterns/square.js +25 -0
  114. package/patterns/stack.d.ts +11 -12
  115. package/patterns/stack.js +30 -0
  116. package/patterns/visually-hidden.d.ts +8 -11
  117. package/patterns/visually-hidden.js +19 -0
  118. package/patterns/vstack.d.ts +9 -10
  119. package/patterns/vstack.js +27 -0
  120. package/patterns/wrap.d.ts +12 -13
  121. package/patterns/wrap.js +26 -0
  122. package/recipes/accordion.d.ts +10 -26
  123. package/recipes/accordion.js +5 -0
  124. package/recipes/action-card.d.ts +9 -26
  125. package/recipes/action-card.js +5 -0
  126. package/recipes/alert.d.ts +10 -28
  127. package/recipes/alert.js +5 -0
  128. package/recipes/app-navigation-language-select.d.ts +12 -34
  129. package/recipes/app-navigation-language-select.js +5 -0
  130. package/recipes/app-navigation.d.ts +10 -28
  131. package/recipes/app-navigation.js +5 -0
  132. package/recipes/avatar-group.d.ts +8 -26
  133. package/recipes/avatar-group.js +5 -0
  134. package/recipes/avatar.d.ts +11 -30
  135. package/recipes/avatar.js +5 -0
  136. package/recipes/breadcrumb.d.ts +9 -24
  137. package/recipes/breadcrumb.js +5 -0
  138. package/recipes/button-filter.d.ts +8 -27
  139. package/recipes/button-filter.js +5 -0
  140. package/recipes/button.d.ts +10 -37
  141. package/recipes/button.js +5 -0
  142. package/recipes/chat-document-message.d.ts +8 -27
  143. package/recipes/chat-document-message.js +5 -0
  144. package/recipes/chat-message.d.ts +10 -33
  145. package/recipes/chat-message.js +5 -0
  146. package/recipes/chat-profile-avatar.d.ts +9 -29
  147. package/recipes/chat-profile-avatar.js +5 -0
  148. package/recipes/chat-text-input.d.ts +8 -27
  149. package/recipes/chat-text-input.js +5 -0
  150. package/recipes/chat.d.ts +9 -26
  151. package/recipes/chat.js +5 -0
  152. package/recipes/checkbox-card.d.ts +10 -26
  153. package/recipes/checkbox-card.js +5 -0
  154. package/recipes/checkbox-group.d.ts +7 -24
  155. package/recipes/checkbox-group.js +5 -0
  156. package/recipes/checkbox.d.ts +10 -26
  157. package/recipes/checkbox.js +5 -0
  158. package/recipes/chip.d.ts +11 -32
  159. package/recipes/chip.js +5 -0
  160. package/recipes/collapsible.d.ts +9 -24
  161. package/recipes/collapsible.js +5 -0
  162. package/recipes/combobox.d.ts +11 -27
  163. package/recipes/combobox.js +5 -0
  164. package/recipes/datepicker.d.ts +9 -24
  165. package/recipes/datepicker.js +5 -0
  166. package/recipes/dialog.d.ts +9 -24
  167. package/recipes/dialog.js +5 -0
  168. package/recipes/drawer.d.ts +10 -26
  169. package/recipes/drawer.js +5 -0
  170. package/recipes/flag.d.ts +8 -26
  171. package/recipes/flag.js +5 -0
  172. package/recipes/form-control.d.ts +8 -27
  173. package/recipes/form-control.js +5 -0
  174. package/recipes/form-helper-text.d.ts +8 -27
  175. package/recipes/form-helper-text.js +5 -0
  176. package/recipes/form-label.d.ts +10 -28
  177. package/recipes/form-label.js +5 -0
  178. package/recipes/heading.d.ts +10 -28
  179. package/recipes/heading.js +5 -0
  180. package/recipes/highlighted-input.d.ts +9 -26
  181. package/recipes/highlighted-input.js +5 -0
  182. package/recipes/icon-button.d.ts +10 -37
  183. package/recipes/icon-button.js +5 -0
  184. package/recipes/icon.d.ts +8 -26
  185. package/recipes/icon.js +5 -0
  186. package/recipes/illustration.d.ts +9 -29
  187. package/recipes/illustration.js +5 -0
  188. package/recipes/index.d.ts +62 -63
  189. package/recipes/index.js +62 -0
  190. package/recipes/input-addon.d.ts +8 -27
  191. package/recipes/input-addon.js +5 -0
  192. package/recipes/input-group.d.ts +8 -27
  193. package/recipes/input-group.js +5 -0
  194. package/recipes/input.d.ts +9 -29
  195. package/recipes/input.js +5 -0
  196. package/recipes/menu.d.ts +10 -26
  197. package/recipes/menu.js +5 -0
  198. package/recipes/mobile-navigation.d.ts +10 -28
  199. package/recipes/mobile-navigation.js +5 -0
  200. package/recipes/pagination.d.ts +9 -26
  201. package/recipes/pagination.js +5 -0
  202. package/recipes/phone-number-input.d.ts +9 -29
  203. package/recipes/phone-number-input.js +5 -0
  204. package/recipes/popover.d.ts +9 -24
  205. package/recipes/popover.js +5 -0
  206. package/recipes/price-tag.d.ts +10 -26
  207. package/recipes/price-tag.js +5 -0
  208. package/recipes/product-card-catalog.d.ts +9 -26
  209. package/recipes/product-card-catalog.js +5 -0
  210. package/recipes/radio-button-group.d.ts +10 -26
  211. package/recipes/radio-button-group.js +5 -0
  212. package/recipes/radio-card-group.d.ts +10 -26
  213. package/recipes/radio-card-group.js +5 -0
  214. package/recipes/radio-group.d.ts +10 -26
  215. package/recipes/radio-group.js +5 -0
  216. package/recipes/runtime.js +133 -0
  217. package/recipes/select-language.d.ts +10 -26
  218. package/recipes/select-language.js +5 -0
  219. package/recipes/select.d.ts +11 -27
  220. package/recipes/select.js +5 -0
  221. package/recipes/status-tag-select.d.ts +11 -30
  222. package/recipes/status-tag-select.js +5 -0
  223. package/recipes/steps.d.ts +9 -24
  224. package/recipes/steps.js +5 -0
  225. package/recipes/switch-card.d.ts +10 -26
  226. package/recipes/switch-card.js +5 -0
  227. package/recipes/switch-recipe.d.ts +10 -26
  228. package/recipes/switch-recipe.js +5 -0
  229. package/recipes/table-container.d.ts +7 -24
  230. package/recipes/table-container.js +5 -0
  231. package/recipes/table-empty-row.d.ts +7 -24
  232. package/recipes/table-empty-row.js +5 -0
  233. package/recipes/table-group-title.d.ts +8 -26
  234. package/recipes/table-group-title.js +5 -0
  235. package/recipes/table.d.ts +9 -24
  236. package/recipes/table.js +5 -0
  237. package/recipes/tabs-chip.d.ts +9 -29
  238. package/recipes/tabs-chip.js +5 -0
  239. package/recipes/tabs.d.ts +11 -30
  240. package/recipes/tabs.js +5 -0
  241. package/recipes/tag.d.ts +11 -32
  242. package/recipes/tag.js +5 -0
  243. package/recipes/text.d.ts +12 -30
  244. package/recipes/text.js +5 -0
  245. package/recipes/textarea.d.ts +7 -24
  246. package/recipes/textarea.js +5 -0
  247. package/recipes/tooltip.d.ts +9 -24
  248. package/recipes/tooltip.js +5 -0
  249. package/tokens/index.d.ts +4 -5
  250. package/tokens/index.js +18 -0
  251. package/types/index.d.ts +6 -8
  252. package/types/jsx.d.ts +37 -28
  253. package/types/pattern.d.ts +18 -70
  254. package/types/recipe.d.ts +58 -150
  255. package/types/register.d.ts +40 -0
  256. package/types/system.d.ts +1816 -0
  257. package/types/tokens.d.ts +72 -0
  258. package/css/conditions.mjs +0 -36
  259. package/css/css.mjs +0 -45
  260. package/css/cva.mjs +0 -87
  261. package/css/index.mjs +0 -4
  262. package/css/sva.mjs +0 -46
  263. package/helpers.mjs +0 -328
  264. package/jsx/aspect-ratio.mjs +0 -14
  265. package/jsx/bleed.mjs +0 -14
  266. package/jsx/box.mjs +0 -14
  267. package/jsx/center.mjs +0 -14
  268. package/jsx/circle.mjs +0 -14
  269. package/jsx/container.mjs +0 -14
  270. package/jsx/cq.mjs +0 -14
  271. package/jsx/create-style-context.d.ts +0 -54
  272. package/jsx/create-style-context.mjs +0 -118
  273. package/jsx/divider.mjs +0 -14
  274. package/jsx/factory-helper.mjs +0 -22
  275. package/jsx/factory.mjs +0 -89
  276. package/jsx/flex.mjs +0 -14
  277. package/jsx/float.mjs +0 -14
  278. package/jsx/grid-item.mjs +0 -14
  279. package/jsx/grid.mjs +0 -14
  280. package/jsx/hstack.mjs +0 -14
  281. package/jsx/index.mjs +0 -23
  282. package/jsx/is-valid-prop.mjs +0 -17
  283. package/jsx/link-overlay.mjs +0 -14
  284. package/jsx/spacer.mjs +0 -14
  285. package/jsx/square.mjs +0 -14
  286. package/jsx/stack.mjs +0 -14
  287. package/jsx/visually-hidden.mjs +0 -14
  288. package/jsx/vstack.mjs +0 -14
  289. package/jsx/wrap.mjs +0 -14
  290. package/panda.buildinfo.json +0 -471
  291. package/patterns/aspect-ratio.mjs +0 -38
  292. package/patterns/bleed.mjs +0 -24
  293. package/patterns/box.mjs +0 -15
  294. package/patterns/center.mjs +0 -21
  295. package/patterns/circle.mjs +0 -25
  296. package/patterns/container.mjs +0 -21
  297. package/patterns/cq.mjs +0 -21
  298. package/patterns/divider.mjs +0 -25
  299. package/patterns/flex.mjs +0 -26
  300. package/patterns/float.mjs +0 -52
  301. package/patterns/grid-item.mjs +0 -25
  302. package/patterns/grid.mjs +0 -27
  303. package/patterns/hstack.mjs +0 -24
  304. package/patterns/index.mjs +0 -20
  305. package/patterns/link-overlay.mjs +0 -24
  306. package/patterns/spacer.mjs +0 -25
  307. package/patterns/square.mjs +0 -24
  308. package/patterns/stack.mjs +0 -24
  309. package/patterns/visually-hidden.mjs +0 -18
  310. package/patterns/vstack.mjs +0 -24
  311. package/patterns/wrap.mjs +0 -25
  312. package/recipes/accordion.mjs +0 -57
  313. package/recipes/action-card.mjs +0 -45
  314. package/recipes/alert.mjs +0 -57
  315. package/recipes/app-navigation-language-select.mjs +0 -109
  316. package/recipes/app-navigation.mjs +0 -84
  317. package/recipes/avatar-group.mjs +0 -32
  318. package/recipes/avatar.mjs +0 -57
  319. package/recipes/breadcrumb.mjs +0 -45
  320. package/recipes/button-filter.mjs +0 -24
  321. package/recipes/button.mjs +0 -212
  322. package/recipes/chat-document-message.mjs +0 -24
  323. package/recipes/chat-message.mjs +0 -36
  324. package/recipes/chat-profile-avatar.mjs +0 -31
  325. package/recipes/chat-text-input.mjs +0 -24
  326. package/recipes/chat.mjs +0 -45
  327. package/recipes/checkbox-card.mjs +0 -73
  328. package/recipes/checkbox-group.mjs +0 -24
  329. package/recipes/checkbox.mjs +0 -57
  330. package/recipes/chip.mjs +0 -76
  331. package/recipes/collapsible.mjs +0 -45
  332. package/recipes/combobox.mjs +0 -101
  333. package/recipes/create-recipe.mjs +0 -82
  334. package/recipes/datepicker.mjs +0 -133
  335. package/recipes/dialog.mjs +0 -69
  336. package/recipes/drawer.mjs +0 -78
  337. package/recipes/flag.mjs +0 -33
  338. package/recipes/form-control.mjs +0 -24
  339. package/recipes/form-helper-text.mjs +0 -24
  340. package/recipes/form-label.mjs +0 -50
  341. package/recipes/heading.mjs +0 -41
  342. package/recipes/highlighted-input.mjs +0 -45
  343. package/recipes/icon-button.mjs +0 -233
  344. package/recipes/icon.mjs +0 -34
  345. package/recipes/illustration.mjs +0 -37
  346. package/recipes/index.mjs +0 -62
  347. package/recipes/input-addon.mjs +0 -24
  348. package/recipes/input-group.mjs +0 -24
  349. package/recipes/input.mjs +0 -30
  350. package/recipes/menu.mjs +0 -93
  351. package/recipes/mobile-navigation.mjs +0 -56
  352. package/recipes/pagination.mjs +0 -41
  353. package/recipes/phone-number-input.mjs +0 -30
  354. package/recipes/popover.mjs +0 -69
  355. package/recipes/price-tag.mjs +0 -51
  356. package/recipes/product-card-catalog.mjs +0 -73
  357. package/recipes/radio-button-group.mjs +0 -62
  358. package/recipes/radio-card-group.mjs +0 -77
  359. package/recipes/radio-group.mjs +0 -61
  360. package/recipes/select-language.mjs +0 -98
  361. package/recipes/select.mjs +0 -101
  362. package/recipes/status-tag-select.mjs +0 -108
  363. package/recipes/steps.mjs +0 -69
  364. package/recipes/switch-card.mjs +0 -69
  365. package/recipes/switch-recipe.mjs +0 -53
  366. package/recipes/table-container.mjs +0 -24
  367. package/recipes/table-empty-row.mjs +0 -24
  368. package/recipes/table-group-title.mjs +0 -32
  369. package/recipes/table.mjs +0 -61
  370. package/recipes/tabs-chip.mjs +0 -35
  371. package/recipes/tabs.mjs +0 -63
  372. package/recipes/tag.mjs +0 -57
  373. package/recipes/text.mjs +0 -41
  374. package/recipes/textarea.mjs +0 -24
  375. package/recipes/tooltip.mjs +0 -49
  376. package/tokens/index.mjs +0 -1728
  377. package/tokens/tokens.d.ts +0 -63
  378. package/types/composition.d.ts +0 -227
  379. package/types/conditions.d.ts +0 -300
  380. package/types/csstype.d.ts +0 -22570
  381. package/types/global.d.ts +0 -20
  382. package/types/parts.d.ts +0 -8
  383. package/types/prop-type.d.ts +0 -251
  384. package/types/selectors.d.ts +0 -59
  385. package/types/static-css.d.ts +0 -56
  386. package/types/style-props.d.ts +0 -8089
  387. package/types/system-types.d.ts +0 -151
@@ -1,33 +1,14 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
4
-
5
- interface ButtonFilterVariant {
6
-
7
- }
8
-
9
- type ButtonFilterVariantMap = {
10
- [key in keyof ButtonFilterVariant]: Array<ButtonFilterVariant[key]>
11
- }
12
-
1
+ import type { ConditionalValue } from '../types/system.js';
2
+ import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
13
3
 
4
+ export type ButtonFilterVariant = {}
14
5
 
15
6
  export type ButtonFilterVariantProps = {
16
- [key in keyof ButtonFilterVariant]?: ConditionalValue<ButtonFilterVariant[key]> | undefined
7
+ [K in keyof ButtonFilterVariant]?: ConditionalValue<ButtonFilterVariant[K]>
17
8
  }
18
9
 
19
- export interface ButtonFilterRecipe {
20
-
21
- __type: ButtonFilterVariantProps
22
- (props?: ButtonFilterVariantProps): string
23
- raw: (props?: ButtonFilterVariantProps) => ButtonFilterVariantProps
24
- variantMap: ButtonFilterVariantMap
25
- variantKeys: Array<keyof ButtonFilterVariant>
26
- splitVariantProps<Props extends ButtonFilterVariantProps>(props: Props): [ButtonFilterVariantProps, Pretty<DistributiveOmit<Props, keyof ButtonFilterVariantProps>>]
27
- getVariantProps: (props?: ButtonFilterVariantProps) => ButtonFilterVariantProps
28
- }
10
+ export type ButtonFilterVariantMap = RecipeVariantMap<ButtonFilterVariant>
11
+
12
+ export type ButtonFilterRecipe = ConfigRecipeRuntimeFn<ButtonFilterVariantProps, ButtonFilterVariantMap>
29
13
 
30
- /**
31
- * The styles for the ButtonFilter component
32
- */
33
- export declare const buttonFilter: ButtonFilterRecipe
14
+ export declare const buttonFilter: ButtonFilterRecipe;
@@ -0,0 +1,5 @@
1
+ import { createRecipe } from './runtime.js';
2
+
3
+ const buttonFilterConfig = {"name":"buttonFilter","className":"button-filter"}
4
+
5
+ export const buttonFilter = /* @__PURE__ */ createRecipe(buttonFilterConfig)
@@ -1,44 +1,17 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
1
+ import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
4
2
 
5
- interface ButtonVariant {
6
- /**
7
- * @default "lg"
8
- */
9
- size: "lg" | "md" | "sm"
10
- /**
11
- * @default "primary"
12
- */
13
- variant: "primary" | "secondary" | "tertiary"
14
- /**
15
- * @default "none"
16
- */
17
- severity: "none" | "danger" | "success"
3
+ export type ButtonVariant = {
4
+ size?: "lg" | "md" | "sm"
5
+ variant?: "primary" | "secondary" | "tertiary"
6
+ severity?: "none" | "danger" | "success"
18
7
  }
19
8
 
20
- type ButtonVariantMap = {
21
- [key in keyof ButtonVariant]: Array<ButtonVariant[key]>
22
- }
23
-
24
-
25
-
26
9
  export type ButtonVariantProps = {
27
- [key in keyof ButtonVariant]?: ButtonVariant[key] | undefined
10
+ [K in keyof ButtonVariant]?: ButtonVariant[K] | undefined
28
11
  }
29
12
 
30
- export interface ButtonRecipe {
31
-
32
- __type: ButtonVariantProps
33
- (props?: ButtonVariantProps): string
34
- raw: (props?: ButtonVariantProps) => ButtonVariantProps
35
- variantMap: ButtonVariantMap
36
- variantKeys: Array<keyof ButtonVariant>
37
- splitVariantProps<Props extends ButtonVariantProps>(props: Props): [ButtonVariantProps, Pretty<DistributiveOmit<Props, keyof ButtonVariantProps>>]
38
- getVariantProps: (props?: ButtonVariantProps) => ButtonVariantProps
39
- }
13
+ export type ButtonVariantMap = RecipeVariantMap<ButtonVariant>
14
+
15
+ export type ButtonRecipe = ConfigRecipeRuntimeFn<ButtonVariantProps, ButtonVariantMap>
40
16
 
41
- /**
42
- * The styles for the Button component
43
- */
44
- export declare const button: ButtonRecipe
17
+ export declare const button: ButtonRecipe;
@@ -0,0 +1,5 @@
1
+ import { createRecipe } from './runtime.js';
2
+
3
+ const buttonConfig = {"name":"button","defaultVariants":{"severity":"none","size":"lg","variant":"primary"},"compoundVariants":[{"size":"sm","variant":"primary","className":"button--compound__size_sm__variant_primary"},{"size":"md","variant":"primary","className":"button--compound__size_md__variant_primary"},{"size":"lg","variant":"primary","className":"button--compound__size_lg__variant_primary"},{"severity":"danger","variant":"primary","className":"button--compound__severity_danger__variant_primary"},{"severity":"danger","variant":"secondary","className":"button--compound__severity_danger__variant_secondary"},{"severity":"danger","variant":"tertiary","className":"button--compound__severity_danger__variant_tertiary"},{"severity":"success","variant":"primary","className":"button--compound__severity_success__variant_primary"},{"severity":"success","variant":"secondary","className":"button--compound__severity_success__variant_secondary"},{"severity":"success","variant":"tertiary","className":"button--compound__severity_success__variant_tertiary"}],"variantMap":{"size":["lg","md","sm"],"variant":["primary","secondary","tertiary"],"severity":["none","danger","success"]}}
4
+
5
+ export const button = /* @__PURE__ */ createRecipe(buttonConfig)
@@ -1,33 +1,14 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
4
-
5
- interface ChatDocumentMessageVariant {
6
-
7
- }
8
-
9
- type ChatDocumentMessageVariantMap = {
10
- [key in keyof ChatDocumentMessageVariant]: Array<ChatDocumentMessageVariant[key]>
11
- }
12
-
1
+ import type { ConditionalValue } from '../types/system.js';
2
+ import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
13
3
 
4
+ export type ChatDocumentMessageVariant = {}
14
5
 
15
6
  export type ChatDocumentMessageVariantProps = {
16
- [key in keyof ChatDocumentMessageVariant]?: ConditionalValue<ChatDocumentMessageVariant[key]> | undefined
7
+ [K in keyof ChatDocumentMessageVariant]?: ConditionalValue<ChatDocumentMessageVariant[K]>
17
8
  }
18
9
 
19
- export interface ChatDocumentMessageRecipe {
20
-
21
- __type: ChatDocumentMessageVariantProps
22
- (props?: ChatDocumentMessageVariantProps): string
23
- raw: (props?: ChatDocumentMessageVariantProps) => ChatDocumentMessageVariantProps
24
- variantMap: ChatDocumentMessageVariantMap
25
- variantKeys: Array<keyof ChatDocumentMessageVariant>
26
- splitVariantProps<Props extends ChatDocumentMessageVariantProps>(props: Props): [ChatDocumentMessageVariantProps, Pretty<DistributiveOmit<Props, keyof ChatDocumentMessageVariantProps>>]
27
- getVariantProps: (props?: ChatDocumentMessageVariantProps) => ChatDocumentMessageVariantProps
28
- }
10
+ export type ChatDocumentMessageVariantMap = RecipeVariantMap<ChatDocumentMessageVariant>
11
+
12
+ export type ChatDocumentMessageRecipe = ConfigRecipeRuntimeFn<ChatDocumentMessageVariantProps, ChatDocumentMessageVariantMap>
29
13
 
30
- /**
31
- * The styles for the Chat document message component
32
- */
33
- export declare const chatDocumentMessage: ChatDocumentMessageRecipe
14
+ export declare const chatDocumentMessage: ChatDocumentMessageRecipe;
@@ -0,0 +1,5 @@
1
+ import { createRecipe } from './runtime.js';
2
+
3
+ const chatDocumentMessageConfig = {"name":"chatDocumentMessage","className":"chat-document-message"}
4
+
5
+ export const chatDocumentMessage = /* @__PURE__ */ createRecipe(chatDocumentMessageConfig)
@@ -1,40 +1,17 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
1
+ import type { ConditionalValue } from '../types/system.js';
2
+ import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
4
3
 
5
- interface ChatMessageVariant {
6
- /**
7
- * @default "left"
8
- */
9
- side: "left" | "right"
10
- /**
11
- * @default "primary"
12
- */
13
- variant: "primary" | "secondary"
4
+ export type ChatMessageVariant = {
5
+ side?: "left" | "right"
6
+ variant?: "primary" | "secondary"
14
7
  }
15
8
 
16
- type ChatMessageVariantMap = {
17
- [key in keyof ChatMessageVariant]: Array<ChatMessageVariant[key]>
18
- }
19
-
20
-
21
-
22
9
  export type ChatMessageVariantProps = {
23
- [key in keyof ChatMessageVariant]?: ConditionalValue<ChatMessageVariant[key]> | undefined
10
+ [K in keyof ChatMessageVariant]?: ConditionalValue<ChatMessageVariant[K]>
24
11
  }
25
12
 
26
- export interface ChatMessageRecipe {
27
-
28
- __type: ChatMessageVariantProps
29
- (props?: ChatMessageVariantProps): string
30
- raw: (props?: ChatMessageVariantProps) => ChatMessageVariantProps
31
- variantMap: ChatMessageVariantMap
32
- variantKeys: Array<keyof ChatMessageVariant>
33
- splitVariantProps<Props extends ChatMessageVariantProps>(props: Props): [ChatMessageVariantProps, Pretty<DistributiveOmit<Props, keyof ChatMessageVariantProps>>]
34
- getVariantProps: (props?: ChatMessageVariantProps) => ChatMessageVariantProps
35
- }
13
+ export type ChatMessageVariantMap = RecipeVariantMap<ChatMessageVariant>
14
+
15
+ export type ChatMessageRecipe = ConfigRecipeRuntimeFn<ChatMessageVariantProps, ChatMessageVariantMap>
36
16
 
37
- /**
38
- * The styles for the Chat message component
39
- */
40
- export declare const chatMessage: ChatMessageRecipe
17
+ export declare const chatMessage: ChatMessageRecipe;
@@ -0,0 +1,5 @@
1
+ import { createRecipe } from './runtime.js';
2
+
3
+ const chatMessageConfig = {"name":"chatMessage","className":"chat-message","defaultVariants":{"side":"left","variant":"primary"},"variantMap":{"side":["left","right"],"variant":["primary","secondary"]}}
4
+
5
+ export const chatMessage = /* @__PURE__ */ createRecipe(chatMessageConfig)
@@ -1,36 +1,16 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
1
+ import type { ConditionalValue } from '../types/system.js';
2
+ import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
4
3
 
5
- interface ChatProfileAvatarVariant {
6
- /**
7
- * @default "left"
8
- */
9
- side: "left" | "right"
4
+ export type ChatProfileAvatarVariant = {
5
+ side?: "left" | "right"
10
6
  }
11
7
 
12
- type ChatProfileAvatarVariantMap = {
13
- [key in keyof ChatProfileAvatarVariant]: Array<ChatProfileAvatarVariant[key]>
14
- }
15
-
16
-
17
-
18
8
  export type ChatProfileAvatarVariantProps = {
19
- [key in keyof ChatProfileAvatarVariant]?: ConditionalValue<ChatProfileAvatarVariant[key]> | undefined
9
+ [K in keyof ChatProfileAvatarVariant]?: ConditionalValue<ChatProfileAvatarVariant[K]>
20
10
  }
21
11
 
22
- export interface ChatProfileAvatarRecipe {
23
-
24
- __type: ChatProfileAvatarVariantProps
25
- (props?: ChatProfileAvatarVariantProps): string
26
- raw: (props?: ChatProfileAvatarVariantProps) => ChatProfileAvatarVariantProps
27
- variantMap: ChatProfileAvatarVariantMap
28
- variantKeys: Array<keyof ChatProfileAvatarVariant>
29
- splitVariantProps<Props extends ChatProfileAvatarVariantProps>(props: Props): [ChatProfileAvatarVariantProps, Pretty<DistributiveOmit<Props, keyof ChatProfileAvatarVariantProps>>]
30
- getVariantProps: (props?: ChatProfileAvatarVariantProps) => ChatProfileAvatarVariantProps
31
- }
12
+ export type ChatProfileAvatarVariantMap = RecipeVariantMap<ChatProfileAvatarVariant>
13
+
14
+ export type ChatProfileAvatarRecipe = ConfigRecipeRuntimeFn<ChatProfileAvatarVariantProps, ChatProfileAvatarVariantMap>
32
15
 
33
- /**
34
- * The styles for the Chat profile avatar component
35
- */
36
- export declare const chatProfileAvatar: ChatProfileAvatarRecipe
16
+ export declare const chatProfileAvatar: ChatProfileAvatarRecipe;
@@ -0,0 +1,5 @@
1
+ import { createRecipe } from './runtime.js';
2
+
3
+ const chatProfileAvatarConfig = {"name":"chatProfileAvatar","className":"chat-profile-avatar","defaultVariants":{"side":"left"},"variantMap":{"side":["left","right"]}}
4
+
5
+ export const chatProfileAvatar = /* @__PURE__ */ createRecipe(chatProfileAvatarConfig)
@@ -1,33 +1,14 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
4
-
5
- interface ChatTextInputVariant {
6
-
7
- }
8
-
9
- type ChatTextInputVariantMap = {
10
- [key in keyof ChatTextInputVariant]: Array<ChatTextInputVariant[key]>
11
- }
12
-
1
+ import type { ConditionalValue } from '../types/system.js';
2
+ import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
13
3
 
4
+ export type ChatTextInputVariant = {}
14
5
 
15
6
  export type ChatTextInputVariantProps = {
16
- [key in keyof ChatTextInputVariant]?: ConditionalValue<ChatTextInputVariant[key]> | undefined
7
+ [K in keyof ChatTextInputVariant]?: ConditionalValue<ChatTextInputVariant[K]>
17
8
  }
18
9
 
19
- export interface ChatTextInputRecipe {
20
-
21
- __type: ChatTextInputVariantProps
22
- (props?: ChatTextInputVariantProps): string
23
- raw: (props?: ChatTextInputVariantProps) => ChatTextInputVariantProps
24
- variantMap: ChatTextInputVariantMap
25
- variantKeys: Array<keyof ChatTextInputVariant>
26
- splitVariantProps<Props extends ChatTextInputVariantProps>(props: Props): [ChatTextInputVariantProps, Pretty<DistributiveOmit<Props, keyof ChatTextInputVariantProps>>]
27
- getVariantProps: (props?: ChatTextInputVariantProps) => ChatTextInputVariantProps
28
- }
10
+ export type ChatTextInputVariantMap = RecipeVariantMap<ChatTextInputVariant>
11
+
12
+ export type ChatTextInputRecipe = ConfigRecipeRuntimeFn<ChatTextInputVariantProps, ChatTextInputVariantMap>
29
13
 
30
- /**
31
- * The styles for the Chat input text component
32
- */
33
- export declare const chatTextInput: ChatTextInputRecipe
14
+ export declare const chatTextInput: ChatTextInputRecipe;
@@ -0,0 +1,5 @@
1
+ import { createRecipe } from './runtime.js';
2
+
3
+ const chatTextInputConfig = {"name":"chatTextInput","className":"chat-input-text"}
4
+
5
+ export const chatTextInput = /* @__PURE__ */ createRecipe(chatTextInputConfig)
package/recipes/chat.d.ts CHANGED
@@ -1,33 +1,16 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
1
+ import type { ConditionalValue } from '../types/system.js';
2
+ import type { ConfigSlotRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
4
3
 
5
- interface ChatVariant {
6
-
7
- }
4
+ export type ChatVariant = {}
8
5
 
9
- type ChatVariantMap = {
10
- [key in keyof ChatVariant]: Array<ChatVariant[key]>
6
+ export type ChatVariantProps = {
7
+ [K in keyof ChatVariant]?: ConditionalValue<ChatVariant[K]>
11
8
  }
12
9
 
13
- type ChatSlot = "root" | "message-container" | "message" | "document-message"
10
+ export type ChatVariantMap = RecipeVariantMap<ChatVariant>
14
11
 
15
- export type ChatVariantProps = {
16
- [key in keyof ChatVariant]?: ConditionalValue<ChatVariant[key]> | undefined
17
- }
12
+ export type ChatSlot = "root" | "message-container" | "message" | "document-message"
18
13
 
19
- export interface ChatRecipe {
20
- __slot: ChatSlot
21
- __type: ChatVariantProps
22
- (props?: ChatVariantProps): Pretty<Record<ChatSlot, string>>
23
- raw: (props?: ChatVariantProps) => ChatVariantProps
24
- variantMap: ChatVariantMap
25
- variantKeys: Array<keyof ChatVariant>
26
- splitVariantProps<Props extends ChatVariantProps>(props: Props): [ChatVariantProps, Pretty<DistributiveOmit<Props, keyof ChatVariantProps>>]
27
- getVariantProps: (props?: ChatVariantProps) => ChatVariantProps
28
- }
14
+ export type ChatRecipe = ConfigSlotRecipeRuntimeFn<ChatSlot, ChatVariantProps, ChatVariantMap>
29
15
 
30
- /**
31
- * The styles for the Chat component.
32
- */
33
- export declare const chat: ChatRecipe
16
+ export declare const chat: ChatRecipe;
@@ -0,0 +1,5 @@
1
+ import { createSlotRecipe } from './runtime.js';
2
+
3
+ const chatConfig = {"name":"chat","slots":["root","message-container","message","document-message"]}
4
+
5
+ export const chat = /* @__PURE__ */ createSlotRecipe(chatConfig)
@@ -1,34 +1,18 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
1
+ import type { ConditionalValue } from '../types/system.js';
2
+ import type { ConfigSlotRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
4
3
 
5
- interface CheckboxCardVariant {
6
- /**
7
- * @default "md"
8
- */
9
- size: "md"
4
+ export type CheckboxCardVariant = {
5
+ size?: "md"
10
6
  }
11
7
 
12
- type CheckboxCardVariantMap = {
13
- [key in keyof CheckboxCardVariant]: Array<CheckboxCardVariant[key]>
14
- }
15
-
16
- type CheckboxCardSlot = "root" | "label" | "control" | "indicator" | "group" | "image" | "content" | "title" | "description"
17
-
18
8
  export type CheckboxCardVariantProps = {
19
- [key in keyof CheckboxCardVariant]?: ConditionalValue<CheckboxCardVariant[key]> | undefined
9
+ [K in keyof CheckboxCardVariant]?: ConditionalValue<CheckboxCardVariant[K]>
20
10
  }
21
11
 
22
- export interface CheckboxCardRecipe {
23
- __slot: CheckboxCardSlot
24
- __type: CheckboxCardVariantProps
25
- (props?: CheckboxCardVariantProps): Pretty<Record<CheckboxCardSlot, string>>
26
- raw: (props?: CheckboxCardVariantProps) => CheckboxCardVariantProps
27
- variantMap: CheckboxCardVariantMap
28
- variantKeys: Array<keyof CheckboxCardVariant>
29
- splitVariantProps<Props extends CheckboxCardVariantProps>(props: Props): [CheckboxCardVariantProps, Pretty<DistributiveOmit<Props, keyof CheckboxCardVariantProps>>]
30
- getVariantProps: (props?: CheckboxCardVariantProps) => CheckboxCardVariantProps
31
- }
12
+ export type CheckboxCardVariantMap = RecipeVariantMap<CheckboxCardVariant>
13
+
14
+ export type CheckboxCardSlot = "root" | "label" | "control" | "indicator" | "group" | "image" | "content" | "title" | "description"
32
15
 
16
+ export type CheckboxCardRecipe = ConfigSlotRecipeRuntimeFn<CheckboxCardSlot, CheckboxCardVariantProps, CheckboxCardVariantMap>
33
17
 
34
- export declare const checkboxCard: CheckboxCardRecipe
18
+ export declare const checkboxCard: CheckboxCardRecipe;
@@ -0,0 +1,5 @@
1
+ import { createSlotRecipe } from './runtime.js';
2
+
3
+ const checkboxCardConfig = {"name":"checkboxCard","className":"checkbox-card","slots":["root","label","control","indicator","group","image","content","title","description"],"defaultVariants":{"size":"md"},"variantMap":{"size":["md"]}}
4
+
5
+ export const checkboxCard = /* @__PURE__ */ createSlotRecipe(checkboxCardConfig)
@@ -1,31 +1,14 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
4
-
5
- interface CheckboxGroupVariant {
6
-
7
- }
8
-
9
- type CheckboxGroupVariantMap = {
10
- [key in keyof CheckboxGroupVariant]: Array<CheckboxGroupVariant[key]>
11
- }
12
-
1
+ import type { ConditionalValue } from '../types/system.js';
2
+ import type { ConfigRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
13
3
 
4
+ export type CheckboxGroupVariant = {}
14
5
 
15
6
  export type CheckboxGroupVariantProps = {
16
- [key in keyof CheckboxGroupVariant]?: ConditionalValue<CheckboxGroupVariant[key]> | undefined
7
+ [K in keyof CheckboxGroupVariant]?: ConditionalValue<CheckboxGroupVariant[K]>
17
8
  }
18
9
 
19
- export interface CheckboxGroupRecipe {
20
-
21
- __type: CheckboxGroupVariantProps
22
- (props?: CheckboxGroupVariantProps): string
23
- raw: (props?: CheckboxGroupVariantProps) => CheckboxGroupVariantProps
24
- variantMap: CheckboxGroupVariantMap
25
- variantKeys: Array<keyof CheckboxGroupVariant>
26
- splitVariantProps<Props extends CheckboxGroupVariantProps>(props: Props): [CheckboxGroupVariantProps, Pretty<DistributiveOmit<Props, keyof CheckboxGroupVariantProps>>]
27
- getVariantProps: (props?: CheckboxGroupVariantProps) => CheckboxGroupVariantProps
28
- }
10
+ export type CheckboxGroupVariantMap = RecipeVariantMap<CheckboxGroupVariant>
29
11
 
12
+ export type CheckboxGroupRecipe = ConfigRecipeRuntimeFn<CheckboxGroupVariantProps, CheckboxGroupVariantMap>
30
13
 
31
- export declare const checkboxGroup: CheckboxGroupRecipe
14
+ export declare const checkboxGroup: CheckboxGroupRecipe;
@@ -0,0 +1,5 @@
1
+ import { createRecipe } from './runtime.js';
2
+
3
+ const checkboxGroupConfig = {"name":"checkboxGroup","className":"checkbox-group"}
4
+
5
+ export const checkboxGroup = /* @__PURE__ */ createRecipe(checkboxGroupConfig)
@@ -1,34 +1,18 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
1
+ import type { ConditionalValue } from '../types/system.js';
2
+ import type { ConfigSlotRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
4
3
 
5
- interface CheckboxVariant {
6
- /**
7
- * @default "md"
8
- */
9
- size: "md"
4
+ export type CheckboxVariant = {
5
+ size?: "md"
10
6
  }
11
7
 
12
- type CheckboxVariantMap = {
13
- [key in keyof CheckboxVariant]: Array<CheckboxVariant[key]>
14
- }
15
-
16
- type CheckboxSlot = "root" | "label" | "control" | "indicator" | "group"
17
-
18
8
  export type CheckboxVariantProps = {
19
- [key in keyof CheckboxVariant]?: ConditionalValue<CheckboxVariant[key]> | undefined
9
+ [K in keyof CheckboxVariant]?: ConditionalValue<CheckboxVariant[K]>
20
10
  }
21
11
 
22
- export interface CheckboxRecipe {
23
- __slot: CheckboxSlot
24
- __type: CheckboxVariantProps
25
- (props?: CheckboxVariantProps): Pretty<Record<CheckboxSlot, string>>
26
- raw: (props?: CheckboxVariantProps) => CheckboxVariantProps
27
- variantMap: CheckboxVariantMap
28
- variantKeys: Array<keyof CheckboxVariant>
29
- splitVariantProps<Props extends CheckboxVariantProps>(props: Props): [CheckboxVariantProps, Pretty<DistributiveOmit<Props, keyof CheckboxVariantProps>>]
30
- getVariantProps: (props?: CheckboxVariantProps) => CheckboxVariantProps
31
- }
12
+ export type CheckboxVariantMap = RecipeVariantMap<CheckboxVariant>
13
+
14
+ export type CheckboxSlot = "root" | "label" | "control" | "indicator" | "group"
32
15
 
16
+ export type CheckboxRecipe = ConfigSlotRecipeRuntimeFn<CheckboxSlot, CheckboxVariantProps, CheckboxVariantMap>
33
17
 
34
- export declare const checkbox: CheckboxRecipe
18
+ export declare const checkbox: CheckboxRecipe;
@@ -0,0 +1,5 @@
1
+ import { createSlotRecipe } from './runtime.js';
2
+
3
+ const checkboxConfig = {"name":"checkbox","slots":["root","label","control","indicator","group"],"defaultVariants":{"size":"md"},"variantMap":{"size":["md"]}}
4
+
5
+ export const checkbox = /* @__PURE__ */ createSlotRecipe(checkboxConfig)
package/recipes/chip.d.ts CHANGED
@@ -1,40 +1,19 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
1
+ import type { ConditionalValue } from '../types/system.js';
2
+ import type { ConfigSlotRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
4
3
 
5
- interface ChipVariant {
6
- /**
7
- * @default "md"
8
- */
9
- size: "lg" | "md" | "sm"
10
- /**
11
- * @default "secondary"
12
- */
13
- colorScheme: "secondary" | "grey" | "red" | "yellow" | "green" | "blue" | "purple" | "brown" | "error" | "warning" | "fish" | "meat" | "fruit" | "vegetable" | "cereal" | "oil" | "aromatic"
4
+ export type ChipVariant = {
5
+ size?: "lg" | "md" | "sm"
6
+ colorScheme?: "secondary" | "grey" | "red" | "yellow" | "green" | "blue" | "purple" | "brown" | "error" | "warning" | "fish" | "meat" | "fruit" | "vegetable" | "cereal" | "oil" | "aromatic"
14
7
  }
15
8
 
16
- type ChipVariantMap = {
17
- [key in keyof ChipVariant]: Array<ChipVariant[key]>
9
+ export type ChipVariantProps = {
10
+ [K in keyof ChipVariant]?: ConditionalValue<ChipVariant[K]>
18
11
  }
19
12
 
20
- type ChipSlot = "root" | "avatar" | "body" | "clearTrigger"
13
+ export type ChipVariantMap = RecipeVariantMap<ChipVariant>
21
14
 
22
- export type ChipVariantProps = {
23
- [key in keyof ChipVariant]?: ConditionalValue<ChipVariant[key]> | undefined
24
- }
15
+ export type ChipSlot = "root" | "avatar" | "body" | "clearTrigger"
25
16
 
26
- export interface ChipRecipe {
27
- __slot: ChipSlot
28
- __type: ChipVariantProps
29
- (props?: ChipVariantProps): Pretty<Record<ChipSlot, string>>
30
- raw: (props?: ChipVariantProps) => ChipVariantProps
31
- variantMap: ChipVariantMap
32
- variantKeys: Array<keyof ChipVariant>
33
- splitVariantProps<Props extends ChipVariantProps>(props: Props): [ChipVariantProps, Pretty<DistributiveOmit<Props, keyof ChipVariantProps>>]
34
- getVariantProps: (props?: ChipVariantProps) => ChipVariantProps
35
- }
17
+ export type ChipRecipe = ConfigSlotRecipeRuntimeFn<ChipSlot, ChipVariantProps, ChipVariantMap>
36
18
 
37
- /**
38
- * The styles for the Chip component
39
- */
40
- export declare const chip: ChipRecipe
19
+ export declare const chip: ChipRecipe;
@@ -0,0 +1,5 @@
1
+ import { createSlotRecipe } from './runtime.js';
2
+
3
+ const chipConfig = {"name":"chip","slots":["root","avatar","body","clearTrigger"],"defaultVariants":{"colorScheme":"secondary","size":"md"},"variantMap":{"size":["lg","md","sm"],"colorScheme":["secondary","grey","red","yellow","green","blue","purple","brown","error","warning","fish","meat","fruit","vegetable","cereal","oil","aromatic"]}}
4
+
5
+ export const chip = /* @__PURE__ */ createSlotRecipe(chipConfig)
@@ -1,31 +1,16 @@
1
- /* eslint-disable */
2
- import type { ConditionalValue } from '../types/index';
3
- import type { DistributiveOmit, Pretty } from '../types/system-types';
1
+ import type { ConditionalValue } from '../types/system.js';
2
+ import type { ConfigSlotRecipeRuntimeFn, RecipeVariantMap } from '../types/recipe.js';
4
3
 
5
- interface CollapsibleVariant {
6
-
7
- }
8
-
9
- type CollapsibleVariantMap = {
10
- [key in keyof CollapsibleVariant]: Array<CollapsibleVariant[key]>
11
- }
12
-
13
- type CollapsibleSlot = "root" | "trigger" | "content" | "indicator"
4
+ export type CollapsibleVariant = {}
14
5
 
15
6
  export type CollapsibleVariantProps = {
16
- [key in keyof CollapsibleVariant]?: ConditionalValue<CollapsibleVariant[key]> | undefined
7
+ [K in keyof CollapsibleVariant]?: ConditionalValue<CollapsibleVariant[K]>
17
8
  }
18
9
 
19
- export interface CollapsibleRecipe {
20
- __slot: CollapsibleSlot
21
- __type: CollapsibleVariantProps
22
- (props?: CollapsibleVariantProps): Pretty<Record<CollapsibleSlot, string>>
23
- raw: (props?: CollapsibleVariantProps) => CollapsibleVariantProps
24
- variantMap: CollapsibleVariantMap
25
- variantKeys: Array<keyof CollapsibleVariant>
26
- splitVariantProps<Props extends CollapsibleVariantProps>(props: Props): [CollapsibleVariantProps, Pretty<DistributiveOmit<Props, keyof CollapsibleVariantProps>>]
27
- getVariantProps: (props?: CollapsibleVariantProps) => CollapsibleVariantProps
28
- }
10
+ export type CollapsibleVariantMap = RecipeVariantMap<CollapsibleVariant>
11
+
12
+ export type CollapsibleSlot = "root" | "trigger" | "content" | "indicator"
29
13
 
14
+ export type CollapsibleRecipe = ConfigSlotRecipeRuntimeFn<CollapsibleSlot, CollapsibleVariantProps, CollapsibleVariantMap>
30
15
 
31
- export declare const collapsible: CollapsibleRecipe
16
+ export declare const collapsible: CollapsibleRecipe;
@@ -0,0 +1,5 @@
1
+ import { createSlotRecipe } from './runtime.js';
2
+
3
+ const collapsibleConfig = {"name":"collapsible","slots":["root","trigger","content","indicator"]}
4
+
5
+ export const collapsible = /* @__PURE__ */ createSlotRecipe(collapsibleConfig)