@stokelp/styled-system 2.127.0 → 3.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 (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 -61
  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,84 +0,0 @@
1
- import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe } from './create-recipe.mjs';
3
-
4
- const appNavigationDefaultVariants = {
5
- "variant": "prod"
6
- }
7
- const appNavigationCompoundVariants = []
8
-
9
- const appNavigationSlotNames = [
10
- [
11
- "root",
12
- "app-navigation__root"
13
- ],
14
- [
15
- "header",
16
- "app-navigation__header"
17
- ],
18
- [
19
- "miniaturizeTrigger",
20
- "app-navigation__miniaturizeTrigger"
21
- ],
22
- [
23
- "body",
24
- "app-navigation__body"
25
- ],
26
- [
27
- "item",
28
- "app-navigation__item"
29
- ],
30
- [
31
- "itemLabel",
32
- "app-navigation__itemLabel"
33
- ],
34
- [
35
- "itemIcon",
36
- "app-navigation__itemIcon"
37
- ],
38
- [
39
- "itemAlpha",
40
- "app-navigation__itemAlpha"
41
- ],
42
- [
43
- "itemContent",
44
- "app-navigation__itemContent"
45
- ],
46
- [
47
- "itemSubItems",
48
- "app-navigation__itemSubItems"
49
- ],
50
- [
51
- "footer",
52
- "app-navigation__footer"
53
- ]
54
- ]
55
- const appNavigationSlotFns = /* @__PURE__ */ appNavigationSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, appNavigationDefaultVariants, getSlotCompoundVariant(appNavigationCompoundVariants, slotName))])
56
-
57
- const appNavigationFn = memo((props = {}) => {
58
- return Object.fromEntries(appNavigationSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
59
- })
60
-
61
- const appNavigationVariantKeys = [
62
- "variant"
63
- ]
64
- const getVariantProps = (variants) => ({ ...appNavigationDefaultVariants, ...compact(variants) })
65
-
66
- export const appNavigation = /* @__PURE__ */ Object.assign(appNavigationFn, {
67
- __recipe__: false,
68
- __name__: 'appNavigation',
69
- raw: (props) => props,
70
- classNameMap: {},
71
- variantKeys: appNavigationVariantKeys,
72
- variantMap: {
73
- "variant": [
74
- "prod",
75
- "staging",
76
- "dev",
77
- "neutral"
78
- ]
79
- },
80
- splitVariantProps(props) {
81
- return splitProps(props, appNavigationVariantKeys)
82
- },
83
- getVariantProps
84
- })
@@ -1,32 +0,0 @@
1
- import { memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
-
4
- const avatarGroupFn = /* @__PURE__ */ createRecipe('avatar-group', {
5
- "size": "md"
6
- }, [])
7
-
8
- const avatarGroupVariantMap = {
9
- "size": [
10
- "sm",
11
- "md",
12
- "lg"
13
- ]
14
- }
15
-
16
- const avatarGroupVariantKeys = Object.keys(avatarGroupVariantMap)
17
-
18
- export const avatarGroup = /* @__PURE__ */ Object.assign(memo(avatarGroupFn.recipeFn), {
19
- __recipe__: true,
20
- __name__: 'avatarGroup',
21
- __getCompoundVariantCss__: avatarGroupFn.__getCompoundVariantCss__,
22
- raw: (props) => props,
23
- variantKeys: avatarGroupVariantKeys,
24
- variantMap: avatarGroupVariantMap,
25
- merge(recipe) {
26
- return mergeRecipes(this, recipe)
27
- },
28
- splitVariantProps(props) {
29
- return splitProps(props, avatarGroupVariantKeys)
30
- },
31
- getVariantProps: avatarGroupFn.getVariantProps,
32
- })
@@ -1,57 +0,0 @@
1
- import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe } from './create-recipe.mjs';
3
-
4
- const avatarDefaultVariants = {
5
- "size": "md",
6
- "hasBorder": false
7
- }
8
- const avatarCompoundVariants = []
9
-
10
- const avatarSlotNames = [
11
- [
12
- "root",
13
- "avatar__root"
14
- ],
15
- [
16
- "image",
17
- "avatar__image"
18
- ],
19
- [
20
- "fallback",
21
- "avatar__fallback"
22
- ]
23
- ]
24
- const avatarSlotFns = /* @__PURE__ */ avatarSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, avatarDefaultVariants, getSlotCompoundVariant(avatarCompoundVariants, slotName))])
25
-
26
- const avatarFn = memo((props = {}) => {
27
- return Object.fromEntries(avatarSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
28
- })
29
-
30
- const avatarVariantKeys = [
31
- "size",
32
- "hasBorder"
33
- ]
34
- const getVariantProps = (variants) => ({ ...avatarDefaultVariants, ...compact(variants) })
35
-
36
- export const avatar = /* @__PURE__ */ Object.assign(avatarFn, {
37
- __recipe__: false,
38
- __name__: 'avatar',
39
- raw: (props) => props,
40
- classNameMap: {},
41
- variantKeys: avatarVariantKeys,
42
- variantMap: {
43
- "size": [
44
- "sm",
45
- "md",
46
- "lg"
47
- ],
48
- "hasBorder": [
49
- "true",
50
- "false"
51
- ]
52
- },
53
- splitVariantProps(props) {
54
- return splitProps(props, avatarVariantKeys)
55
- },
56
- getVariantProps
57
- })
@@ -1,45 +0,0 @@
1
- import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe } from './create-recipe.mjs';
3
-
4
- const breadcrumbDefaultVariants = {}
5
- const breadcrumbCompoundVariants = []
6
-
7
- const breadcrumbSlotNames = [
8
- [
9
- "root",
10
- "breadcrumb__root"
11
- ],
12
- [
13
- "list",
14
- "breadcrumb__list"
15
- ],
16
- [
17
- "item",
18
- "breadcrumb__item"
19
- ],
20
- [
21
- "link",
22
- "breadcrumb__link"
23
- ]
24
- ]
25
- const breadcrumbSlotFns = /* @__PURE__ */ breadcrumbSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, breadcrumbDefaultVariants, getSlotCompoundVariant(breadcrumbCompoundVariants, slotName))])
26
-
27
- const breadcrumbFn = memo((props = {}) => {
28
- return Object.fromEntries(breadcrumbSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
29
- })
30
-
31
- const breadcrumbVariantKeys = []
32
- const getVariantProps = (variants) => ({ ...breadcrumbDefaultVariants, ...compact(variants) })
33
-
34
- export const breadcrumb = /* @__PURE__ */ Object.assign(breadcrumbFn, {
35
- __recipe__: false,
36
- __name__: 'breadcrumb',
37
- raw: (props) => props,
38
- classNameMap: {},
39
- variantKeys: breadcrumbVariantKeys,
40
- variantMap: {},
41
- splitVariantProps(props) {
42
- return splitProps(props, breadcrumbVariantKeys)
43
- },
44
- getVariantProps
45
- })
@@ -1,24 +0,0 @@
1
- import { memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
-
4
- const buttonFilterFn = /* @__PURE__ */ createRecipe('button-filter', {}, [])
5
-
6
- const buttonFilterVariantMap = {}
7
-
8
- const buttonFilterVariantKeys = Object.keys(buttonFilterVariantMap)
9
-
10
- export const buttonFilter = /* @__PURE__ */ Object.assign(memo(buttonFilterFn.recipeFn), {
11
- __recipe__: true,
12
- __name__: 'buttonFilter',
13
- __getCompoundVariantCss__: buttonFilterFn.__getCompoundVariantCss__,
14
- raw: (props) => props,
15
- variantKeys: buttonFilterVariantKeys,
16
- variantMap: buttonFilterVariantMap,
17
- merge(recipe) {
18
- return mergeRecipes(this, recipe)
19
- },
20
- splitVariantProps(props) {
21
- return splitProps(props, buttonFilterVariantKeys)
22
- },
23
- getVariantProps: buttonFilterFn.getVariantProps,
24
- })
@@ -1,212 +0,0 @@
1
- import { memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
-
4
- const buttonFn = /* @__PURE__ */ createRecipe('button', {
5
- "size": "lg",
6
- "variant": "primary",
7
- "severity": "none"
8
- }, [
9
- {
10
- "variant": "primary",
11
- "size": "sm",
12
- "css": {
13
- "minWidth": "80px"
14
- }
15
- },
16
- {
17
- "variant": "primary",
18
- "size": "md",
19
- "css": {
20
- "minWidth": "120px"
21
- }
22
- },
23
- {
24
- "variant": "primary",
25
- "size": "lg",
26
- "css": {
27
- "minWidth": "120px"
28
- }
29
- },
30
- {
31
- "variant": "primary",
32
- "severity": "danger",
33
- "css": {
34
- "bg": {
35
- "_disabled": {
36
- "_hover": "error.500",
37
- "_active": "error.500",
38
- "base": "error.500"
39
- },
40
- "_active": "error.800",
41
- "_hover": "error.700",
42
- "base": "error.500"
43
- }
44
- }
45
- },
46
- {
47
- "variant": "secondary",
48
- "severity": "danger",
49
- "css": {
50
- "bg": {
51
- "_disabled": {
52
- "_hover": "transparent",
53
- "_active": "transparent",
54
- "base": "transparent"
55
- },
56
- "_active": "error.700",
57
- "_hover": "error.500",
58
- "base": "transparent"
59
- },
60
- "borderColor": {
61
- "base": "error.500",
62
- "_active": "error.700"
63
- },
64
- "borderStyle": "solid",
65
- "color": {
66
- "_disabled": {
67
- "_hover": "error.500",
68
- "_active": "error.500",
69
- "base": "error.500"
70
- },
71
- "base": "error.500",
72
- "_hover": "white",
73
- "_active": "white"
74
- }
75
- }
76
- },
77
- {
78
- "variant": "tertiary",
79
- "severity": "danger",
80
- "css": {
81
- "bg": {
82
- "_disabled": {
83
- "_hover": "transparent",
84
- "_active": "transparent",
85
- "base": "transparent"
86
- },
87
- "_active": "error.200",
88
- "_hover": "error.100",
89
- "base": "transparent"
90
- },
91
- "color": {
92
- "_disabled": {
93
- "_hover": "error.500",
94
- "_active": "error.500",
95
- "base": "error.500"
96
- },
97
- "base": "error.500",
98
- "_hover": "error.700",
99
- "_active": "error.700"
100
- }
101
- }
102
- },
103
- {
104
- "variant": "primary",
105
- "severity": "success",
106
- "css": {
107
- "bg": {
108
- "_disabled": {
109
- "_hover": "success.500",
110
- "_active": "success.500",
111
- "base": "success.500"
112
- },
113
- "_active": "success.800",
114
- "_hover": "success.700",
115
- "base": "success.500"
116
- }
117
- }
118
- },
119
- {
120
- "variant": "secondary",
121
- "severity": "success",
122
- "css": {
123
- "bg": {
124
- "_disabled": {
125
- "_hover": "transparent",
126
- "_active": "transparent",
127
- "base": "transparent"
128
- },
129
- "_active": "success.700",
130
- "_hover": "success.500",
131
- "base": "transparent"
132
- },
133
- "borderColor": {
134
- "base": "success.500",
135
- "_active": "success.700"
136
- },
137
- "borderStyle": "solid",
138
- "color": {
139
- "_disabled": {
140
- "_hover": "success.500",
141
- "_active": "success.500",
142
- "base": "success.500"
143
- },
144
- "base": "success.500",
145
- "_hover": "white",
146
- "_active": "white"
147
- }
148
- }
149
- },
150
- {
151
- "variant": "tertiary",
152
- "severity": "success",
153
- "css": {
154
- "bg": {
155
- "_disabled": {
156
- "_hover": "transparent",
157
- "_active": "transparent",
158
- "base": "transparent"
159
- },
160
- "_active": "success.200",
161
- "_hover": "success.100",
162
- "base": "transparent"
163
- },
164
- "color": {
165
- "_disabled": {
166
- "_hover": "success.500",
167
- "_active": "success.500",
168
- "base": "success.500"
169
- },
170
- "base": "success.500",
171
- "_hover": "success.700",
172
- "_active": "success.700"
173
- }
174
- }
175
- }
176
- ])
177
-
178
- const buttonVariantMap = {
179
- "size": [
180
- "lg",
181
- "md",
182
- "sm"
183
- ],
184
- "variant": [
185
- "primary",
186
- "secondary",
187
- "tertiary"
188
- ],
189
- "severity": [
190
- "none",
191
- "danger",
192
- "success"
193
- ]
194
- }
195
-
196
- const buttonVariantKeys = Object.keys(buttonVariantMap)
197
-
198
- export const button = /* @__PURE__ */ Object.assign(memo(buttonFn.recipeFn), {
199
- __recipe__: true,
200
- __name__: 'button',
201
- __getCompoundVariantCss__: buttonFn.__getCompoundVariantCss__,
202
- raw: (props) => props,
203
- variantKeys: buttonVariantKeys,
204
- variantMap: buttonVariantMap,
205
- merge(recipe) {
206
- return mergeRecipes(this, recipe)
207
- },
208
- splitVariantProps(props) {
209
- return splitProps(props, buttonVariantKeys)
210
- },
211
- getVariantProps: buttonFn.getVariantProps,
212
- })
@@ -1,24 +0,0 @@
1
- import { memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
-
4
- const chatDocumentMessageFn = /* @__PURE__ */ createRecipe('chat-document-message', {}, [])
5
-
6
- const chatDocumentMessageVariantMap = {}
7
-
8
- const chatDocumentMessageVariantKeys = Object.keys(chatDocumentMessageVariantMap)
9
-
10
- export const chatDocumentMessage = /* @__PURE__ */ Object.assign(memo(chatDocumentMessageFn.recipeFn), {
11
- __recipe__: true,
12
- __name__: 'chatDocumentMessage',
13
- __getCompoundVariantCss__: chatDocumentMessageFn.__getCompoundVariantCss__,
14
- raw: (props) => props,
15
- variantKeys: chatDocumentMessageVariantKeys,
16
- variantMap: chatDocumentMessageVariantMap,
17
- merge(recipe) {
18
- return mergeRecipes(this, recipe)
19
- },
20
- splitVariantProps(props) {
21
- return splitProps(props, chatDocumentMessageVariantKeys)
22
- },
23
- getVariantProps: chatDocumentMessageFn.getVariantProps,
24
- })
@@ -1,36 +0,0 @@
1
- import { memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
-
4
- const chatMessageFn = /* @__PURE__ */ createRecipe('chat-message', {
5
- "side": "left",
6
- "variant": "primary"
7
- }, [])
8
-
9
- const chatMessageVariantMap = {
10
- "side": [
11
- "left",
12
- "right"
13
- ],
14
- "variant": [
15
- "primary",
16
- "secondary"
17
- ]
18
- }
19
-
20
- const chatMessageVariantKeys = Object.keys(chatMessageVariantMap)
21
-
22
- export const chatMessage = /* @__PURE__ */ Object.assign(memo(chatMessageFn.recipeFn), {
23
- __recipe__: true,
24
- __name__: 'chatMessage',
25
- __getCompoundVariantCss__: chatMessageFn.__getCompoundVariantCss__,
26
- raw: (props) => props,
27
- variantKeys: chatMessageVariantKeys,
28
- variantMap: chatMessageVariantMap,
29
- merge(recipe) {
30
- return mergeRecipes(this, recipe)
31
- },
32
- splitVariantProps(props) {
33
- return splitProps(props, chatMessageVariantKeys)
34
- },
35
- getVariantProps: chatMessageFn.getVariantProps,
36
- })
@@ -1,31 +0,0 @@
1
- import { memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
-
4
- const chatProfileAvatarFn = /* @__PURE__ */ createRecipe('chat-profile-avatar', {
5
- "side": "left"
6
- }, [])
7
-
8
- const chatProfileAvatarVariantMap = {
9
- "side": [
10
- "left",
11
- "right"
12
- ]
13
- }
14
-
15
- const chatProfileAvatarVariantKeys = Object.keys(chatProfileAvatarVariantMap)
16
-
17
- export const chatProfileAvatar = /* @__PURE__ */ Object.assign(memo(chatProfileAvatarFn.recipeFn), {
18
- __recipe__: true,
19
- __name__: 'chatProfileAvatar',
20
- __getCompoundVariantCss__: chatProfileAvatarFn.__getCompoundVariantCss__,
21
- raw: (props) => props,
22
- variantKeys: chatProfileAvatarVariantKeys,
23
- variantMap: chatProfileAvatarVariantMap,
24
- merge(recipe) {
25
- return mergeRecipes(this, recipe)
26
- },
27
- splitVariantProps(props) {
28
- return splitProps(props, chatProfileAvatarVariantKeys)
29
- },
30
- getVariantProps: chatProfileAvatarFn.getVariantProps,
31
- })
@@ -1,24 +0,0 @@
1
- import { memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
-
4
- const chatTextInputFn = /* @__PURE__ */ createRecipe('chat-input-text', {}, [])
5
-
6
- const chatTextInputVariantMap = {}
7
-
8
- const chatTextInputVariantKeys = Object.keys(chatTextInputVariantMap)
9
-
10
- export const chatTextInput = /* @__PURE__ */ Object.assign(memo(chatTextInputFn.recipeFn), {
11
- __recipe__: true,
12
- __name__: 'chatTextInput',
13
- __getCompoundVariantCss__: chatTextInputFn.__getCompoundVariantCss__,
14
- raw: (props) => props,
15
- variantKeys: chatTextInputVariantKeys,
16
- variantMap: chatTextInputVariantMap,
17
- merge(recipe) {
18
- return mergeRecipes(this, recipe)
19
- },
20
- splitVariantProps(props) {
21
- return splitProps(props, chatTextInputVariantKeys)
22
- },
23
- getVariantProps: chatTextInputFn.getVariantProps,
24
- })
package/recipes/chat.mjs DELETED
@@ -1,45 +0,0 @@
1
- import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe } from './create-recipe.mjs';
3
-
4
- const chatDefaultVariants = {}
5
- const chatCompoundVariants = []
6
-
7
- const chatSlotNames = [
8
- [
9
- "root",
10
- "chat__root"
11
- ],
12
- [
13
- "message-container",
14
- "chat__message-container"
15
- ],
16
- [
17
- "message",
18
- "chat__message"
19
- ],
20
- [
21
- "document-message",
22
- "chat__document-message"
23
- ]
24
- ]
25
- const chatSlotFns = /* @__PURE__ */ chatSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, chatDefaultVariants, getSlotCompoundVariant(chatCompoundVariants, slotName))])
26
-
27
- const chatFn = memo((props = {}) => {
28
- return Object.fromEntries(chatSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
29
- })
30
-
31
- const chatVariantKeys = []
32
- const getVariantProps = (variants) => ({ ...chatDefaultVariants, ...compact(variants) })
33
-
34
- export const chat = /* @__PURE__ */ Object.assign(chatFn, {
35
- __recipe__: false,
36
- __name__: 'chat',
37
- raw: (props) => props,
38
- classNameMap: {},
39
- variantKeys: chatVariantKeys,
40
- variantMap: {},
41
- splitVariantProps(props) {
42
- return splitProps(props, chatVariantKeys)
43
- },
44
- getVariantProps
45
- })
@@ -1,73 +0,0 @@
1
- import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
- import { createRecipe } from './create-recipe.mjs';
3
-
4
- const checkboxCardDefaultVariants = {
5
- "size": "md"
6
- }
7
- const checkboxCardCompoundVariants = []
8
-
9
- const checkboxCardSlotNames = [
10
- [
11
- "root",
12
- "checkbox-card__root"
13
- ],
14
- [
15
- "label",
16
- "checkbox-card__label"
17
- ],
18
- [
19
- "control",
20
- "checkbox-card__control"
21
- ],
22
- [
23
- "indicator",
24
- "checkbox-card__indicator"
25
- ],
26
- [
27
- "group",
28
- "checkbox-card__group"
29
- ],
30
- [
31
- "image",
32
- "checkbox-card__image"
33
- ],
34
- [
35
- "content",
36
- "checkbox-card__content"
37
- ],
38
- [
39
- "title",
40
- "checkbox-card__title"
41
- ],
42
- [
43
- "description",
44
- "checkbox-card__description"
45
- ]
46
- ]
47
- const checkboxCardSlotFns = /* @__PURE__ */ checkboxCardSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, checkboxCardDefaultVariants, getSlotCompoundVariant(checkboxCardCompoundVariants, slotName))])
48
-
49
- const checkboxCardFn = memo((props = {}) => {
50
- return Object.fromEntries(checkboxCardSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
51
- })
52
-
53
- const checkboxCardVariantKeys = [
54
- "size"
55
- ]
56
- const getVariantProps = (variants) => ({ ...checkboxCardDefaultVariants, ...compact(variants) })
57
-
58
- export const checkboxCard = /* @__PURE__ */ Object.assign(checkboxCardFn, {
59
- __recipe__: false,
60
- __name__: 'checkboxCard',
61
- raw: (props) => props,
62
- classNameMap: {},
63
- variantKeys: checkboxCardVariantKeys,
64
- variantMap: {
65
- "size": [
66
- "md"
67
- ]
68
- },
69
- splitVariantProps(props) {
70
- return splitProps(props, checkboxCardVariantKeys)
71
- },
72
- getVariantProps
73
- })