@luxonis/common-fe-components 1.19.0 → 1.19.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 (365) hide show
  1. package/dist/components/custom/Alert.d.ts +1 -0
  2. package/dist/components/custom/Alert.d.ts.map +1 -1
  3. package/dist/components/custom/Badge.d.ts +1 -0
  4. package/dist/components/custom/Badge.d.ts.map +1 -1
  5. package/dist/components/custom/Button.d.ts +2 -2
  6. package/dist/components/custom/CardList.d.ts.map +1 -1
  7. package/dist/components/custom/CardList.js +1 -1
  8. package/dist/components/custom/CardList.js.map +1 -1
  9. package/dist/components/custom/Checkbox.d.ts.map +1 -1
  10. package/dist/components/custom/Command.d.ts.map +1 -1
  11. package/dist/components/custom/Command.js.map +1 -1
  12. package/dist/components/custom/DropdownMenu.d.ts +918 -822
  13. package/dist/components/custom/DropdownMenu.d.ts.map +1 -1
  14. package/dist/components/custom/Dropzone.d.ts +1 -1
  15. package/dist/components/custom/Dropzone.d.ts.map +1 -1
  16. package/dist/components/custom/EmptyView.d.ts +1 -0
  17. package/dist/components/custom/EmptyView.d.ts.map +1 -1
  18. package/dist/components/custom/ErrorView.d.ts.map +1 -1
  19. package/dist/components/custom/FilterDropdown.d.ts.map +1 -1
  20. package/dist/components/custom/FilterDropdown.js +5 -0
  21. package/dist/components/custom/FilterDropdown.js.map +1 -1
  22. package/dist/components/custom/Form.d.ts.map +1 -1
  23. package/dist/components/custom/Icon.d.ts +1 -0
  24. package/dist/components/custom/Icon.d.ts.map +1 -1
  25. package/dist/components/custom/IconHelp.d.ts +1 -0
  26. package/dist/components/custom/IconHelp.d.ts.map +1 -1
  27. package/dist/components/custom/KpiDisplay.d.ts +1 -0
  28. package/dist/components/custom/KpiDisplay.d.ts.map +1 -1
  29. package/dist/components/custom/Markdown.d.ts +1 -0
  30. package/dist/components/custom/Markdown.d.ts.map +1 -1
  31. package/dist/components/custom/Modal.d.ts +2 -2
  32. package/dist/components/custom/Modal.d.ts.map +1 -1
  33. package/dist/components/custom/ProgressTicker.d.ts +1 -0
  34. package/dist/components/custom/ProgressTicker.d.ts.map +1 -1
  35. package/dist/components/custom/RadioGroup.d.ts +1840 -1648
  36. package/dist/components/custom/RadioGroup.d.ts.map +1 -1
  37. package/dist/components/custom/SelectCards.d.ts.map +1 -1
  38. package/dist/components/custom/Slider.d.ts +1835 -1643
  39. package/dist/components/custom/Slider.d.ts.map +1 -1
  40. package/dist/components/custom/SourceCode.d.ts +1 -0
  41. package/dist/components/custom/SourceCode.d.ts.map +1 -1
  42. package/dist/components/custom/StatusBar.d.ts +1 -0
  43. package/dist/components/custom/StatusBar.d.ts.map +1 -1
  44. package/dist/components/custom/Stepper.d.ts.map +1 -1
  45. package/dist/components/custom/Text.d.ts.map +1 -1
  46. package/dist/components/custom/TimePicker.d.ts +1 -0
  47. package/dist/components/custom/TimePicker.d.ts.map +1 -1
  48. package/dist/components/custom/Toast.d.ts.map +1 -1
  49. package/dist/components/custom/Toast.js +1 -1
  50. package/dist/components/custom/Toast.js.map +1 -1
  51. package/dist/components/custom/Tooltip.d.ts.map +1 -1
  52. package/dist/components/custom/Tooltip.js.map +1 -1
  53. package/dist/components/custom/TurnstileWidget.d.ts +1 -0
  54. package/dist/components/custom/TurnstileWidget.d.ts.map +1 -1
  55. package/dist/components/custom/VideoPlayer.d.ts.map +1 -1
  56. package/dist/components/custom/devices/devices.d.ts.map +1 -1
  57. package/dist/components/shadow-panda/Accordion.js +1 -1
  58. package/dist/components/shadow-panda/Accordion.js.map +1 -1
  59. package/dist/components/shadow-panda/Avatar.d.ts +1 -0
  60. package/dist/components/shadow-panda/Avatar.d.ts.map +1 -1
  61. package/dist/components/shadow-panda/Avatar.js +1 -1
  62. package/dist/components/shadow-panda/Avatar.js.map +1 -1
  63. package/dist/components/shadow-panda/DropdownMenu.d.ts +3 -3
  64. package/dist/components/shadow-panda/DropdownMenu.d.ts.map +1 -1
  65. package/dist/components/shadow-panda/DropdownMenu.js +1 -1
  66. package/dist/components/shadow-panda/DropdownMenu.js.map +1 -1
  67. package/dist/components/shadow-panda/Form.d.ts +1 -1
  68. package/dist/components/shadow-panda/Form.d.ts.map +1 -1
  69. package/dist/components/shadow-panda/Tabs.d.ts +1 -0
  70. package/dist/components/shadow-panda/Tabs.d.ts.map +1 -1
  71. package/dist/components/shadow-panda/Tabs.js +1 -1
  72. package/dist/components/shadow-panda/Tabs.js.map +1 -1
  73. package/dist/components/shadow-panda/_Alert.d.ts.map +1 -1
  74. package/dist/components/shadow-panda/_Button.d.ts +1 -1
  75. package/dist/components/shadow-panda/_Button.d.ts.map +1 -1
  76. package/dist/components/shadow-panda/_Command.d.ts +23 -23
  77. package/dist/components/shadow-panda/_Command.js +1 -1
  78. package/dist/components/shadow-panda/_Command.js.map +1 -1
  79. package/dist/components/shadow-panda/_Dialog.js +1 -1
  80. package/dist/components/shadow-panda/_Dialog.js.map +1 -1
  81. package/dist/components/shadow-panda/_RadioGroup.js +1 -1
  82. package/dist/components/shadow-panda/_RadioGroup.js.map +1 -1
  83. package/dist/components/shadow-panda/_Select.js +1 -1
  84. package/dist/components/shadow-panda/_Select.js.map +1 -1
  85. package/dist/components/shadow-panda/_Slider.d.ts +6 -6
  86. package/dist/components/shadow-panda/_Slider.d.ts.map +1 -1
  87. package/dist/components/shadow-panda/_Toast.d.ts +1 -0
  88. package/dist/components/shadow-panda/_Toast.d.ts.map +1 -1
  89. package/dist/components/shadow-panda/_Tooltip.d.ts +1 -0
  90. package/dist/components/shadow-panda/_Tooltip.d.ts.map +1 -1
  91. package/dist/components/shadow-panda/_Tooltip.js +1 -1
  92. package/dist/components/shadow-panda/_Tooltip.js.map +1 -1
  93. package/dist/components/skeletons/Button.d.ts.map +1 -1
  94. package/dist/components/skeletons/Grid.d.ts +5 -5
  95. package/dist/components/skeletons/Grid.d.ts.map +1 -1
  96. package/dist/components/skeletons/Grid.js +12 -9
  97. package/dist/components/skeletons/Grid.js.map +1 -1
  98. package/dist/components/skeletons/Input.d.ts.map +1 -1
  99. package/dist/components/skeletons/Table.d.ts.map +1 -1
  100. package/dist/components/skeletons/Textarea.d.ts.map +1 -1
  101. package/dist/hooks/dropzone.d.ts.map +1 -1
  102. package/dist/hooks/modal.d.ts.map +1 -1
  103. package/dist/hooks/use-toast.d.ts.map +1 -1
  104. package/dist/hooks/use-translations.d.ts +1 -0
  105. package/dist/hooks/use-translations.d.ts.map +1 -1
  106. package/dist/icons/style-provider.d.ts.map +1 -1
  107. package/dist/icons/svg/AccessDenied.d.ts +1 -0
  108. package/dist/icons/svg/AccessDenied.d.ts.map +1 -1
  109. package/dist/icons/svg/Empty.d.ts +1 -0
  110. package/dist/icons/svg/Empty.d.ts.map +1 -1
  111. package/dist/icons/svg/Error.d.ts +1 -0
  112. package/dist/icons/svg/Error.d.ts.map +1 -1
  113. package/dist/icons/svg/Logo.d.ts +1 -1
  114. package/dist/icons/svg/Logo.d.ts.map +1 -1
  115. package/dist/panda.buildinfo.json +24 -15
  116. package/dist/panda.css +1682 -1621
  117. package/dist/panda.d.ts.map +1 -1
  118. package/dist/panda.js +3 -1
  119. package/dist/panda.js.map +1 -1
  120. package/dist/styled-system/css/conditions.mjs +4 -2
  121. package/dist/styled-system/css/css.d.mts +15 -2
  122. package/dist/styled-system/css/css.mjs +2 -1
  123. package/dist/styled-system/css/cva.d.mts +1 -1
  124. package/dist/styled-system/css/cva.mjs +5 -3
  125. package/dist/styled-system/css/sva.mjs +9 -3
  126. package/dist/styled-system/helpers.mjs +90 -54
  127. package/dist/styled-system/jsx/aspect-ratio.mjs +1 -1
  128. package/dist/styled-system/jsx/bleed.mjs +1 -1
  129. package/dist/styled-system/jsx/box.mjs +1 -1
  130. package/dist/styled-system/jsx/center.mjs +1 -1
  131. package/dist/styled-system/jsx/circle.mjs +1 -1
  132. package/dist/styled-system/jsx/container.mjs +1 -1
  133. package/dist/styled-system/jsx/cq.d.mts +10 -0
  134. package/dist/styled-system/jsx/cq.mjs +14 -0
  135. package/dist/styled-system/jsx/divider.mjs +1 -1
  136. package/dist/styled-system/jsx/factory.mjs +8 -7
  137. package/dist/styled-system/jsx/flex.mjs +1 -1
  138. package/dist/styled-system/jsx/float.mjs +1 -1
  139. package/dist/styled-system/jsx/grid-item.mjs +1 -1
  140. package/dist/styled-system/jsx/grid.mjs +1 -1
  141. package/dist/styled-system/jsx/hstack.mjs +1 -1
  142. package/dist/styled-system/jsx/index.d.mts +1 -1
  143. package/dist/styled-system/jsx/index.mjs +2 -2
  144. package/dist/styled-system/jsx/is-valid-prop.d.mts +7 -1
  145. package/dist/styled-system/jsx/is-valid-prop.mjs +3 -3
  146. package/dist/styled-system/jsx/link-overlay.mjs +1 -1
  147. package/dist/styled-system/jsx/spacer.mjs +1 -1
  148. package/dist/styled-system/jsx/square.mjs +1 -1
  149. package/dist/styled-system/jsx/stack.mjs +1 -1
  150. package/dist/styled-system/jsx/visually-hidden.mjs +1 -1
  151. package/dist/styled-system/jsx/vstack.mjs +1 -1
  152. package/dist/styled-system/jsx/wrap.mjs +1 -1
  153. package/dist/styled-system/patterns/aspect-ratio.d.mts +1 -1
  154. package/dist/styled-system/patterns/aspect-ratio.mjs +5 -2
  155. package/dist/styled-system/patterns/bleed.d.mts +3 -3
  156. package/dist/styled-system/patterns/bleed.mjs +12 -7
  157. package/dist/styled-system/patterns/box.d.mts +1 -1
  158. package/dist/styled-system/patterns/box.mjs +5 -2
  159. package/dist/styled-system/patterns/center.d.mts +1 -1
  160. package/dist/styled-system/patterns/center.mjs +5 -2
  161. package/dist/styled-system/patterns/circle.d.mts +2 -2
  162. package/dist/styled-system/patterns/circle.mjs +5 -2
  163. package/dist/styled-system/patterns/container.d.mts +1 -1
  164. package/dist/styled-system/patterns/container.mjs +5 -2
  165. package/dist/styled-system/patterns/cq.d.mts +22 -0
  166. package/dist/styled-system/patterns/cq.mjs +21 -0
  167. package/dist/styled-system/patterns/divider.d.mts +1 -1
  168. package/dist/styled-system/patterns/divider.mjs +8 -4
  169. package/dist/styled-system/patterns/flex.d.mts +8 -8
  170. package/dist/styled-system/patterns/flex.mjs +5 -2
  171. package/dist/styled-system/patterns/float.d.mts +1 -1
  172. package/dist/styled-system/patterns/float.mjs +10 -3
  173. package/dist/styled-system/patterns/grid-item.d.mts +1 -1
  174. package/dist/styled-system/patterns/grid-item.mjs +5 -2
  175. package/dist/styled-system/patterns/grid.d.mts +4 -4
  176. package/dist/styled-system/patterns/grid.mjs +11 -6
  177. package/dist/styled-system/patterns/hstack.d.mts +3 -3
  178. package/dist/styled-system/patterns/hstack.mjs +8 -4
  179. package/dist/styled-system/patterns/index.d.mts +2 -2
  180. package/dist/styled-system/patterns/index.mjs +2 -2
  181. package/dist/styled-system/patterns/link-overlay.d.mts +1 -1
  182. package/dist/styled-system/patterns/link-overlay.mjs +5 -5
  183. package/dist/styled-system/patterns/spacer.d.mts +1 -1
  184. package/dist/styled-system/patterns/spacer.mjs +5 -2
  185. package/dist/styled-system/patterns/square.d.mts +2 -2
  186. package/dist/styled-system/patterns/square.mjs +5 -2
  187. package/dist/styled-system/patterns/stack.d.mts +5 -5
  188. package/dist/styled-system/patterns/stack.mjs +8 -4
  189. package/dist/styled-system/patterns/visually-hidden.d.mts +1 -1
  190. package/dist/styled-system/patterns/visually-hidden.mjs +5 -2
  191. package/dist/styled-system/patterns/vstack.d.mts +3 -3
  192. package/dist/styled-system/patterns/vstack.mjs +8 -4
  193. package/dist/styled-system/patterns/wrap.d.mts +6 -6
  194. package/dist/styled-system/patterns/wrap.mjs +5 -2
  195. package/dist/styled-system/recipes/accordion.d.mts +6 -1
  196. package/dist/styled-system/recipes/accordion.mjs +6 -4
  197. package/dist/styled-system/recipes/alert-description.d.mts +6 -1
  198. package/dist/styled-system/recipes/alert-description.mjs +4 -2
  199. package/dist/styled-system/recipes/alert-dialog.d.mts +6 -1
  200. package/dist/styled-system/recipes/alert-dialog.mjs +6 -4
  201. package/dist/styled-system/recipes/alert-title.d.mts +6 -1
  202. package/dist/styled-system/recipes/alert-title.mjs +4 -2
  203. package/dist/styled-system/recipes/alert.d.mts +10 -2
  204. package/dist/styled-system/recipes/alert.mjs +4 -2
  205. package/dist/styled-system/recipes/avatar.d.mts +6 -1
  206. package/dist/styled-system/recipes/avatar.mjs +6 -4
  207. package/dist/styled-system/recipes/badge.d.mts +10 -2
  208. package/dist/styled-system/recipes/badge.mjs +4 -2
  209. package/dist/styled-system/recipes/blockquote.d.mts +6 -1
  210. package/dist/styled-system/recipes/blockquote.mjs +4 -2
  211. package/dist/styled-system/recipes/button.d.mts +13 -2
  212. package/dist/styled-system/recipes/button.mjs +4 -2
  213. package/dist/styled-system/recipes/calendar.d.mts +6 -1
  214. package/dist/styled-system/recipes/calendar.mjs +6 -4
  215. package/dist/styled-system/recipes/card-content.d.mts +6 -1
  216. package/dist/styled-system/recipes/card-content.mjs +4 -2
  217. package/dist/styled-system/recipes/card-description.d.mts +6 -1
  218. package/dist/styled-system/recipes/card-description.mjs +4 -2
  219. package/dist/styled-system/recipes/card-footer.d.mts +6 -1
  220. package/dist/styled-system/recipes/card-footer.mjs +4 -2
  221. package/dist/styled-system/recipes/card-header.d.mts +6 -1
  222. package/dist/styled-system/recipes/card-header.mjs +4 -2
  223. package/dist/styled-system/recipes/card-title.d.mts +6 -1
  224. package/dist/styled-system/recipes/card-title.mjs +4 -2
  225. package/dist/styled-system/recipes/card.d.mts +6 -1
  226. package/dist/styled-system/recipes/card.mjs +4 -2
  227. package/dist/styled-system/recipes/checkbox.d.mts +6 -1
  228. package/dist/styled-system/recipes/checkbox.mjs +6 -4
  229. package/dist/styled-system/recipes/collapsible.d.mts +6 -1
  230. package/dist/styled-system/recipes/collapsible.mjs +6 -4
  231. package/dist/styled-system/recipes/command-dialog.d.mts +6 -1
  232. package/dist/styled-system/recipes/command-dialog.mjs +6 -4
  233. package/dist/styled-system/recipes/command.d.mts +6 -1
  234. package/dist/styled-system/recipes/command.mjs +6 -4
  235. package/dist/styled-system/recipes/context-menu.d.mts +10 -2
  236. package/dist/styled-system/recipes/context-menu.mjs +6 -4
  237. package/dist/styled-system/recipes/create-recipe.mjs +8 -5
  238. package/dist/styled-system/recipes/dialog.d.mts +6 -1
  239. package/dist/styled-system/recipes/dialog.mjs +6 -4
  240. package/dist/styled-system/recipes/dropdown-menu.d.mts +6 -1
  241. package/dist/styled-system/recipes/dropdown-menu.mjs +6 -4
  242. package/dist/styled-system/recipes/form-control.d.mts +6 -1
  243. package/dist/styled-system/recipes/form-control.mjs +4 -2
  244. package/dist/styled-system/recipes/form-description.d.mts +6 -1
  245. package/dist/styled-system/recipes/form-description.mjs +4 -2
  246. package/dist/styled-system/recipes/form-item.d.mts +6 -1
  247. package/dist/styled-system/recipes/form-item.mjs +4 -2
  248. package/dist/styled-system/recipes/form-label.d.mts +6 -1
  249. package/dist/styled-system/recipes/form-label.mjs +4 -2
  250. package/dist/styled-system/recipes/form-message.d.mts +6 -1
  251. package/dist/styled-system/recipes/form-message.mjs +4 -2
  252. package/dist/styled-system/recipes/h1.d.mts +6 -1
  253. package/dist/styled-system/recipes/h1.mjs +4 -2
  254. package/dist/styled-system/recipes/h2.d.mts +6 -1
  255. package/dist/styled-system/recipes/h2.mjs +4 -2
  256. package/dist/styled-system/recipes/h3.d.mts +6 -1
  257. package/dist/styled-system/recipes/h3.mjs +4 -2
  258. package/dist/styled-system/recipes/h4.d.mts +6 -1
  259. package/dist/styled-system/recipes/h4.mjs +4 -2
  260. package/dist/styled-system/recipes/hover-card.d.mts +6 -1
  261. package/dist/styled-system/recipes/hover-card.mjs +6 -4
  262. package/dist/styled-system/recipes/icon.d.mts +22 -2
  263. package/dist/styled-system/recipes/icon.mjs +4 -2
  264. package/dist/styled-system/recipes/inline-code.d.mts +6 -1
  265. package/dist/styled-system/recipes/inline-code.mjs +4 -2
  266. package/dist/styled-system/recipes/input.d.mts +6 -1
  267. package/dist/styled-system/recipes/input.mjs +4 -2
  268. package/dist/styled-system/recipes/label.d.mts +6 -1
  269. package/dist/styled-system/recipes/label.mjs +4 -2
  270. package/dist/styled-system/recipes/large.d.mts +6 -1
  271. package/dist/styled-system/recipes/large.mjs +4 -2
  272. package/dist/styled-system/recipes/lead.d.mts +6 -1
  273. package/dist/styled-system/recipes/lead.mjs +4 -2
  274. package/dist/styled-system/recipes/link.d.mts +6 -1
  275. package/dist/styled-system/recipes/link.mjs +4 -2
  276. package/dist/styled-system/recipes/list.d.mts +6 -1
  277. package/dist/styled-system/recipes/list.mjs +4 -2
  278. package/dist/styled-system/recipes/menubar.d.mts +6 -1
  279. package/dist/styled-system/recipes/menubar.mjs +6 -4
  280. package/dist/styled-system/recipes/muted.d.mts +6 -1
  281. package/dist/styled-system/recipes/muted.mjs +4 -2
  282. package/dist/styled-system/recipes/navigation-menu.d.mts +6 -1
  283. package/dist/styled-system/recipes/navigation-menu.mjs +6 -4
  284. package/dist/styled-system/recipes/p.d.mts +6 -1
  285. package/dist/styled-system/recipes/p.mjs +4 -2
  286. package/dist/styled-system/recipes/popover.d.mts +6 -1
  287. package/dist/styled-system/recipes/popover.mjs +6 -4
  288. package/dist/styled-system/recipes/progress.d.mts +6 -1
  289. package/dist/styled-system/recipes/progress.mjs +6 -4
  290. package/dist/styled-system/recipes/radio-group.d.mts +6 -1
  291. package/dist/styled-system/recipes/radio-group.mjs +6 -4
  292. package/dist/styled-system/recipes/scroll-area.d.mts +6 -1
  293. package/dist/styled-system/recipes/scroll-area.mjs +6 -4
  294. package/dist/styled-system/recipes/select.d.mts +6 -1
  295. package/dist/styled-system/recipes/select.mjs +6 -4
  296. package/dist/styled-system/recipes/separator.d.mts +10 -2
  297. package/dist/styled-system/recipes/separator.mjs +4 -2
  298. package/dist/styled-system/recipes/sheet.d.mts +10 -2
  299. package/dist/styled-system/recipes/sheet.mjs +6 -4
  300. package/dist/styled-system/recipes/skeleton.d.mts +6 -1
  301. package/dist/styled-system/recipes/skeleton.mjs +4 -2
  302. package/dist/styled-system/recipes/slider.d.mts +6 -1
  303. package/dist/styled-system/recipes/slider.mjs +6 -4
  304. package/dist/styled-system/recipes/small.d.mts +6 -1
  305. package/dist/styled-system/recipes/small.mjs +4 -2
  306. package/dist/styled-system/recipes/switch-recipe.d.mts +6 -1
  307. package/dist/styled-system/recipes/switch-recipe.mjs +6 -4
  308. package/dist/styled-system/recipes/table-body.d.mts +6 -1
  309. package/dist/styled-system/recipes/table-body.mjs +4 -2
  310. package/dist/styled-system/recipes/table-caption.d.mts +6 -1
  311. package/dist/styled-system/recipes/table-caption.mjs +4 -2
  312. package/dist/styled-system/recipes/table-cell.d.mts +6 -1
  313. package/dist/styled-system/recipes/table-cell.mjs +4 -2
  314. package/dist/styled-system/recipes/table-container.d.mts +6 -1
  315. package/dist/styled-system/recipes/table-container.mjs +4 -2
  316. package/dist/styled-system/recipes/table-footer.d.mts +6 -1
  317. package/dist/styled-system/recipes/table-footer.mjs +4 -2
  318. package/dist/styled-system/recipes/table-head.d.mts +6 -1
  319. package/dist/styled-system/recipes/table-head.mjs +4 -2
  320. package/dist/styled-system/recipes/table-header.d.mts +6 -1
  321. package/dist/styled-system/recipes/table-header.mjs +4 -2
  322. package/dist/styled-system/recipes/table-row.d.mts +6 -1
  323. package/dist/styled-system/recipes/table-row.mjs +4 -2
  324. package/dist/styled-system/recipes/table.d.mts +6 -1
  325. package/dist/styled-system/recipes/table.mjs +4 -2
  326. package/dist/styled-system/recipes/tabs.d.mts +6 -1
  327. package/dist/styled-system/recipes/tabs.mjs +6 -4
  328. package/dist/styled-system/recipes/textarea.d.mts +6 -1
  329. package/dist/styled-system/recipes/textarea.mjs +4 -2
  330. package/dist/styled-system/recipes/toast-viewport.d.mts +6 -1
  331. package/dist/styled-system/recipes/toast-viewport.mjs +4 -2
  332. package/dist/styled-system/recipes/toast.d.mts +10 -2
  333. package/dist/styled-system/recipes/toast.mjs +6 -4
  334. package/dist/styled-system/recipes/toggle.d.mts +13 -2
  335. package/dist/styled-system/recipes/toggle.mjs +4 -2
  336. package/dist/styled-system/recipes/tooltip.d.mts +6 -1
  337. package/dist/styled-system/recipes/tooltip.mjs +6 -4
  338. package/dist/styled-system/recipes/typography-table-container.d.mts +6 -1
  339. package/dist/styled-system/recipes/typography-table-container.mjs +4 -2
  340. package/dist/styled-system/recipes/typography-table.d.mts +6 -1
  341. package/dist/styled-system/recipes/typography-table.mjs +4 -2
  342. package/dist/styled-system/tokens/index.mjs +1711 -1683
  343. package/dist/styled-system/tokens/tokens.d.mts +20 -20
  344. package/dist/styled-system/types/composition.d.mts +65 -12
  345. package/dist/styled-system/types/conditions.d.mts +98 -44
  346. package/dist/styled-system/types/global.d.mts +1 -0
  347. package/dist/styled-system/types/jsx.d.mts +1 -1
  348. package/dist/styled-system/types/pattern.d.mts +17 -2
  349. package/dist/styled-system/types/prop-type.d.mts +58 -231
  350. package/dist/styled-system/types/recipe.d.mts +33 -10
  351. package/dist/styled-system/types/selectors.d.mts +1 -1
  352. package/dist/styled-system/types/static-css.d.mts +13 -4
  353. package/dist/styled-system/types/style-props.d.mts +7541 -678
  354. package/dist/styled-system/types/system-types.d.mts +111 -11
  355. package/dist/translations/i18n-react.d.ts +1 -0
  356. package/dist/translations/i18n-react.d.ts.map +1 -1
  357. package/dist/translations/i18n-util.async.d.ts.map +1 -1
  358. package/dist/translations/i18n-util.d.ts +2 -2
  359. package/dist/translations/i18n-util.d.ts.map +1 -1
  360. package/package.json +7 -7
  361. package/dist/styled-system/jsx/link-box.d.mts +0 -10
  362. package/dist/styled-system/jsx/link-box.mjs +0 -14
  363. package/dist/styled-system/patterns/link-box.d.mts +0 -21
  364. package/dist/styled-system/patterns/link-box.mjs +0 -19
  365. package/dist/styled-system/recipes/create-recipe.d.mts +0 -1
@@ -1,4 +1,4 @@
1
- import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const avatarDefaultVariants = {}
@@ -32,11 +32,12 @@ const avatarSlotNames = [
32
32
  ]
33
33
  const avatarSlotFns = /* @__PURE__ */ avatarSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, avatarDefaultVariants, getSlotCompoundVariant(avatarCompoundVariants, slotName))])
34
34
 
35
- const avatarFn = (props = {}) => {
36
- return Object.fromEntries(avatarSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
37
- }
35
+ const avatarFn = memo((props = {}) => {
36
+ return Object.fromEntries(avatarSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
37
+ })
38
38
 
39
39
  const avatarVariantKeys = []
40
+ const getVariantProps = (variants) => ({ ...avatarDefaultVariants, ...compact(variants) })
40
41
 
41
42
  export const avatar = /* @__PURE__ */ Object.assign(avatarFn, {
42
43
  __recipe__: false,
@@ -47,4 +48,5 @@ export const avatar = /* @__PURE__ */ Object.assign(avatarFn, {
47
48
  splitVariantProps(props) {
48
49
  return splitProps(props, avatarVariantKeys)
49
50
  },
51
+ getVariantProps
50
52
  })
@@ -3,7 +3,10 @@ import type { ConditionalValue } from '../types/index.d.mts';
3
3
  import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
4
4
 
5
5
  interface BadgeVariant {
6
- variant: "default" | "secondary" | "destructive" | "outline"
6
+ /**
7
+ * @default "default"
8
+ */
9
+ variant: "default" | "secondary" | "destructive" | "outline"
7
10
  }
8
11
 
9
12
  type BadgeVariantMap = {
@@ -21,7 +24,12 @@ export interface BadgeRecipe {
21
24
  variantMap: BadgeVariantMap
22
25
  variantKeys: Array<keyof BadgeVariant>
23
26
  splitVariantProps<Props extends BadgeVariantProps>(props: Props): [BadgeVariantProps, Pretty<DistributiveOmit<Props, keyof BadgeVariantProps>>]
27
+ getVariantProps: (props?: BadgeVariantProps) => BadgeVariantProps
24
28
  }
25
29
 
26
- /** Styles for the Badge component */
30
+ /**
31
+ * Styles for the Badge component
32
+
33
+
34
+ */
27
35
  export declare const badge: BadgeRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps } from '../helpers.mjs';
1
+ import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
4
  const badgeFn = /* @__PURE__ */ createRecipe('badge', {
@@ -16,9 +16,10 @@ const badgeVariantMap = {
16
16
 
17
17
  const badgeVariantKeys = Object.keys(badgeVariantMap)
18
18
 
19
- export const badge = /* @__PURE__ */ Object.assign(badgeFn, {
19
+ export const badge = /* @__PURE__ */ Object.assign(memo(badgeFn.recipeFn), {
20
20
  __recipe__: true,
21
21
  __name__: 'badge',
22
+ __getCompoundVariantCss__: badgeFn.__getCompoundVariantCss__,
22
23
  raw: (props) => props,
23
24
  variantKeys: badgeVariantKeys,
24
25
  variantMap: badgeVariantMap,
@@ -28,4 +29,5 @@ export const badge = /* @__PURE__ */ Object.assign(badgeFn, {
28
29
  splitVariantProps(props) {
29
30
  return splitProps(props, badgeVariantKeys)
30
31
  },
32
+ getVariantProps: badgeFn.getVariantProps,
31
33
  })
@@ -21,7 +21,12 @@ export interface BlockquoteRecipe {
21
21
  variantMap: BlockquoteVariantMap
22
22
  variantKeys: Array<keyof BlockquoteVariant>
23
23
  splitVariantProps<Props extends BlockquoteVariantProps>(props: Props): [BlockquoteVariantProps, Pretty<DistributiveOmit<Props, keyof BlockquoteVariantProps>>]
24
+ getVariantProps: (props?: BlockquoteVariantProps) => BlockquoteVariantProps
24
25
  }
25
26
 
26
- /** Typography - blockquote style */
27
+ /**
28
+ * Typography - blockquote style
29
+
30
+
31
+ */
27
32
  export declare const blockquote: BlockquoteRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps } from '../helpers.mjs';
1
+ import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
4
  const blockquoteFn = /* @__PURE__ */ createRecipe('blockquote', {}, [])
@@ -7,9 +7,10 @@ const blockquoteVariantMap = {}
7
7
 
8
8
  const blockquoteVariantKeys = Object.keys(blockquoteVariantMap)
9
9
 
10
- export const blockquote = /* @__PURE__ */ Object.assign(blockquoteFn, {
10
+ export const blockquote = /* @__PURE__ */ Object.assign(memo(blockquoteFn.recipeFn), {
11
11
  __recipe__: true,
12
12
  __name__: 'blockquote',
13
+ __getCompoundVariantCss__: blockquoteFn.__getCompoundVariantCss__,
13
14
  raw: (props) => props,
14
15
  variantKeys: blockquoteVariantKeys,
15
16
  variantMap: blockquoteVariantMap,
@@ -19,4 +20,5 @@ export const blockquote = /* @__PURE__ */ Object.assign(blockquoteFn, {
19
20
  splitVariantProps(props) {
20
21
  return splitProps(props, blockquoteVariantKeys)
21
22
  },
23
+ getVariantProps: blockquoteFn.getVariantProps,
22
24
  })
@@ -3,7 +3,13 @@ import type { ConditionalValue } from '../types/index.d.mts';
3
3
  import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
4
4
 
5
5
  interface ButtonVariant {
6
- variant: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link"
6
+ /**
7
+ * @default "default"
8
+ */
9
+ variant: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link"
10
+ /**
11
+ * @default "default"
12
+ */
7
13
  size: "default" | "sm" | "lg" | "icon"
8
14
  }
9
15
 
@@ -22,7 +28,12 @@ export interface ButtonRecipe {
22
28
  variantMap: ButtonVariantMap
23
29
  variantKeys: Array<keyof ButtonVariant>
24
30
  splitVariantProps<Props extends ButtonVariantProps>(props: Props): [ButtonVariantProps, Pretty<DistributiveOmit<Props, keyof ButtonVariantProps>>]
31
+ getVariantProps: (props?: ButtonVariantProps) => ButtonVariantProps
25
32
  }
26
33
 
27
- /** Styles for the Button component */
34
+ /**
35
+ * Styles for the Button component
36
+
37
+
38
+ */
28
39
  export declare const button: ButtonRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps } from '../helpers.mjs';
1
+ import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
4
  const buttonFn = /* @__PURE__ */ createRecipe('button', {
@@ -25,9 +25,10 @@ const buttonVariantMap = {
25
25
 
26
26
  const buttonVariantKeys = Object.keys(buttonVariantMap)
27
27
 
28
- export const button = /* @__PURE__ */ Object.assign(buttonFn, {
28
+ export const button = /* @__PURE__ */ Object.assign(memo(buttonFn.recipeFn), {
29
29
  __recipe__: true,
30
30
  __name__: 'button',
31
+ __getCompoundVariantCss__: buttonFn.__getCompoundVariantCss__,
31
32
  raw: (props) => props,
32
33
  variantKeys: buttonVariantKeys,
33
34
  variantMap: buttonVariantMap,
@@ -37,4 +38,5 @@ export const button = /* @__PURE__ */ Object.assign(buttonFn, {
37
38
  splitVariantProps(props) {
38
39
  return splitProps(props, buttonVariantKeys)
39
40
  },
41
+ getVariantProps: buttonFn.getVariantProps,
40
42
  })
@@ -21,7 +21,12 @@ export interface CalendarRecipe {
21
21
  variantMap: CalendarVariantMap
22
22
  variantKeys: Array<keyof CalendarVariant>
23
23
  splitVariantProps<Props extends CalendarVariantProps>(props: Props): [CalendarVariantProps, Pretty<DistributiveOmit<Props, keyof CalendarVariantProps>>]
24
+ getVariantProps: (props?: CalendarVariantProps) => CalendarVariantProps
24
25
  }
25
26
 
26
- /** Styles for the Calendar component */
27
+ /**
28
+ * Styles for the Calendar component
29
+
30
+
31
+ */
27
32
  export declare const calendar: CalendarRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const calendarDefaultVariants = {}
@@ -192,11 +192,12 @@ const calendarSlotNames = [
192
192
  ]
193
193
  const calendarSlotFns = /* @__PURE__ */ calendarSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, calendarDefaultVariants, getSlotCompoundVariant(calendarCompoundVariants, slotName))])
194
194
 
195
- const calendarFn = (props = {}) => {
196
- return Object.fromEntries(calendarSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
197
- }
195
+ const calendarFn = memo((props = {}) => {
196
+ return Object.fromEntries(calendarSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
197
+ })
198
198
 
199
199
  const calendarVariantKeys = []
200
+ const getVariantProps = (variants) => ({ ...calendarDefaultVariants, ...compact(variants) })
200
201
 
201
202
  export const calendar = /* @__PURE__ */ Object.assign(calendarFn, {
202
203
  __recipe__: false,
@@ -207,4 +208,5 @@ export const calendar = /* @__PURE__ */ Object.assign(calendarFn, {
207
208
  splitVariantProps(props) {
208
209
  return splitProps(props, calendarVariantKeys)
209
210
  },
211
+ getVariantProps
210
212
  })
@@ -21,7 +21,12 @@ export interface CardContentRecipe {
21
21
  variantMap: CardContentVariantMap
22
22
  variantKeys: Array<keyof CardContentVariant>
23
23
  splitVariantProps<Props extends CardContentVariantProps>(props: Props): [CardContentVariantProps, Pretty<DistributiveOmit<Props, keyof CardContentVariantProps>>]
24
+ getVariantProps: (props?: CardContentVariantProps) => CardContentVariantProps
24
25
  }
25
26
 
26
- /** Styles for the CardContent component */
27
+ /**
28
+ * Styles for the CardContent component
29
+
30
+
31
+ */
27
32
  export declare const cardContent: CardContentRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps } from '../helpers.mjs';
1
+ import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
4
  const cardContentFn = /* @__PURE__ */ createRecipe('cardContent', {}, [])
@@ -7,9 +7,10 @@ const cardContentVariantMap = {}
7
7
 
8
8
  const cardContentVariantKeys = Object.keys(cardContentVariantMap)
9
9
 
10
- export const cardContent = /* @__PURE__ */ Object.assign(cardContentFn, {
10
+ export const cardContent = /* @__PURE__ */ Object.assign(memo(cardContentFn.recipeFn), {
11
11
  __recipe__: true,
12
12
  __name__: 'cardContent',
13
+ __getCompoundVariantCss__: cardContentFn.__getCompoundVariantCss__,
13
14
  raw: (props) => props,
14
15
  variantKeys: cardContentVariantKeys,
15
16
  variantMap: cardContentVariantMap,
@@ -19,4 +20,5 @@ export const cardContent = /* @__PURE__ */ Object.assign(cardContentFn, {
19
20
  splitVariantProps(props) {
20
21
  return splitProps(props, cardContentVariantKeys)
21
22
  },
23
+ getVariantProps: cardContentFn.getVariantProps,
22
24
  })
@@ -21,7 +21,12 @@ export interface CardDescriptionRecipe {
21
21
  variantMap: CardDescriptionVariantMap
22
22
  variantKeys: Array<keyof CardDescriptionVariant>
23
23
  splitVariantProps<Props extends CardDescriptionVariantProps>(props: Props): [CardDescriptionVariantProps, Pretty<DistributiveOmit<Props, keyof CardDescriptionVariantProps>>]
24
+ getVariantProps: (props?: CardDescriptionVariantProps) => CardDescriptionVariantProps
24
25
  }
25
26
 
26
- /** Styles for the CardDescription component */
27
+ /**
28
+ * Styles for the CardDescription component
29
+
30
+
31
+ */
27
32
  export declare const cardDescription: CardDescriptionRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps } from '../helpers.mjs';
1
+ import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
4
  const cardDescriptionFn = /* @__PURE__ */ createRecipe('cardDescription', {}, [])
@@ -7,9 +7,10 @@ const cardDescriptionVariantMap = {}
7
7
 
8
8
  const cardDescriptionVariantKeys = Object.keys(cardDescriptionVariantMap)
9
9
 
10
- export const cardDescription = /* @__PURE__ */ Object.assign(cardDescriptionFn, {
10
+ export const cardDescription = /* @__PURE__ */ Object.assign(memo(cardDescriptionFn.recipeFn), {
11
11
  __recipe__: true,
12
12
  __name__: 'cardDescription',
13
+ __getCompoundVariantCss__: cardDescriptionFn.__getCompoundVariantCss__,
13
14
  raw: (props) => props,
14
15
  variantKeys: cardDescriptionVariantKeys,
15
16
  variantMap: cardDescriptionVariantMap,
@@ -19,4 +20,5 @@ export const cardDescription = /* @__PURE__ */ Object.assign(cardDescriptionFn,
19
20
  splitVariantProps(props) {
20
21
  return splitProps(props, cardDescriptionVariantKeys)
21
22
  },
23
+ getVariantProps: cardDescriptionFn.getVariantProps,
22
24
  })
@@ -21,7 +21,12 @@ export interface CardFooterRecipe {
21
21
  variantMap: CardFooterVariantMap
22
22
  variantKeys: Array<keyof CardFooterVariant>
23
23
  splitVariantProps<Props extends CardFooterVariantProps>(props: Props): [CardFooterVariantProps, Pretty<DistributiveOmit<Props, keyof CardFooterVariantProps>>]
24
+ getVariantProps: (props?: CardFooterVariantProps) => CardFooterVariantProps
24
25
  }
25
26
 
26
- /** Styles for the CardFooter component */
27
+ /**
28
+ * Styles for the CardFooter component
29
+
30
+
31
+ */
27
32
  export declare const cardFooter: CardFooterRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps } from '../helpers.mjs';
1
+ import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
4
  const cardFooterFn = /* @__PURE__ */ createRecipe('cardFooter', {}, [])
@@ -7,9 +7,10 @@ const cardFooterVariantMap = {}
7
7
 
8
8
  const cardFooterVariantKeys = Object.keys(cardFooterVariantMap)
9
9
 
10
- export const cardFooter = /* @__PURE__ */ Object.assign(cardFooterFn, {
10
+ export const cardFooter = /* @__PURE__ */ Object.assign(memo(cardFooterFn.recipeFn), {
11
11
  __recipe__: true,
12
12
  __name__: 'cardFooter',
13
+ __getCompoundVariantCss__: cardFooterFn.__getCompoundVariantCss__,
13
14
  raw: (props) => props,
14
15
  variantKeys: cardFooterVariantKeys,
15
16
  variantMap: cardFooterVariantMap,
@@ -19,4 +20,5 @@ export const cardFooter = /* @__PURE__ */ Object.assign(cardFooterFn, {
19
20
  splitVariantProps(props) {
20
21
  return splitProps(props, cardFooterVariantKeys)
21
22
  },
23
+ getVariantProps: cardFooterFn.getVariantProps,
22
24
  })
@@ -21,7 +21,12 @@ export interface CardHeaderRecipe {
21
21
  variantMap: CardHeaderVariantMap
22
22
  variantKeys: Array<keyof CardHeaderVariant>
23
23
  splitVariantProps<Props extends CardHeaderVariantProps>(props: Props): [CardHeaderVariantProps, Pretty<DistributiveOmit<Props, keyof CardHeaderVariantProps>>]
24
+ getVariantProps: (props?: CardHeaderVariantProps) => CardHeaderVariantProps
24
25
  }
25
26
 
26
- /** Styles for the CardHeader component */
27
+ /**
28
+ * Styles for the CardHeader component
29
+
30
+
31
+ */
27
32
  export declare const cardHeader: CardHeaderRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps } from '../helpers.mjs';
1
+ import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
4
  const cardHeaderFn = /* @__PURE__ */ createRecipe('cardHeader', {}, [])
@@ -7,9 +7,10 @@ const cardHeaderVariantMap = {}
7
7
 
8
8
  const cardHeaderVariantKeys = Object.keys(cardHeaderVariantMap)
9
9
 
10
- export const cardHeader = /* @__PURE__ */ Object.assign(cardHeaderFn, {
10
+ export const cardHeader = /* @__PURE__ */ Object.assign(memo(cardHeaderFn.recipeFn), {
11
11
  __recipe__: true,
12
12
  __name__: 'cardHeader',
13
+ __getCompoundVariantCss__: cardHeaderFn.__getCompoundVariantCss__,
13
14
  raw: (props) => props,
14
15
  variantKeys: cardHeaderVariantKeys,
15
16
  variantMap: cardHeaderVariantMap,
@@ -19,4 +20,5 @@ export const cardHeader = /* @__PURE__ */ Object.assign(cardHeaderFn, {
19
20
  splitVariantProps(props) {
20
21
  return splitProps(props, cardHeaderVariantKeys)
21
22
  },
23
+ getVariantProps: cardHeaderFn.getVariantProps,
22
24
  })
@@ -21,7 +21,12 @@ export interface CardTitleRecipe {
21
21
  variantMap: CardTitleVariantMap
22
22
  variantKeys: Array<keyof CardTitleVariant>
23
23
  splitVariantProps<Props extends CardTitleVariantProps>(props: Props): [CardTitleVariantProps, Pretty<DistributiveOmit<Props, keyof CardTitleVariantProps>>]
24
+ getVariantProps: (props?: CardTitleVariantProps) => CardTitleVariantProps
24
25
  }
25
26
 
26
- /** Styles for the CardTitle component */
27
+ /**
28
+ * Styles for the CardTitle component
29
+
30
+
31
+ */
27
32
  export declare const cardTitle: CardTitleRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps } from '../helpers.mjs';
1
+ import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
4
  const cardTitleFn = /* @__PURE__ */ createRecipe('cardTitle', {}, [])
@@ -7,9 +7,10 @@ const cardTitleVariantMap = {}
7
7
 
8
8
  const cardTitleVariantKeys = Object.keys(cardTitleVariantMap)
9
9
 
10
- export const cardTitle = /* @__PURE__ */ Object.assign(cardTitleFn, {
10
+ export const cardTitle = /* @__PURE__ */ Object.assign(memo(cardTitleFn.recipeFn), {
11
11
  __recipe__: true,
12
12
  __name__: 'cardTitle',
13
+ __getCompoundVariantCss__: cardTitleFn.__getCompoundVariantCss__,
13
14
  raw: (props) => props,
14
15
  variantKeys: cardTitleVariantKeys,
15
16
  variantMap: cardTitleVariantMap,
@@ -19,4 +20,5 @@ export const cardTitle = /* @__PURE__ */ Object.assign(cardTitleFn, {
19
20
  splitVariantProps(props) {
20
21
  return splitProps(props, cardTitleVariantKeys)
21
22
  },
23
+ getVariantProps: cardTitleFn.getVariantProps,
22
24
  })
@@ -21,7 +21,12 @@ export interface CardRecipe {
21
21
  variantMap: CardVariantMap
22
22
  variantKeys: Array<keyof CardVariant>
23
23
  splitVariantProps<Props extends CardVariantProps>(props: Props): [CardVariantProps, Pretty<DistributiveOmit<Props, keyof CardVariantProps>>]
24
+ getVariantProps: (props?: CardVariantProps) => CardVariantProps
24
25
  }
25
26
 
26
- /** Styles for the Card component */
27
+ /**
28
+ * Styles for the Card component
29
+
30
+
31
+ */
27
32
  export declare const card: CardRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps } from '../helpers.mjs';
1
+ import { memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe, mergeRecipes } from './create-recipe.mjs';
3
3
 
4
4
  const cardFn = /* @__PURE__ */ createRecipe('card', {}, [])
@@ -7,9 +7,10 @@ const cardVariantMap = {}
7
7
 
8
8
  const cardVariantKeys = Object.keys(cardVariantMap)
9
9
 
10
- export const card = /* @__PURE__ */ Object.assign(cardFn, {
10
+ export const card = /* @__PURE__ */ Object.assign(memo(cardFn.recipeFn), {
11
11
  __recipe__: true,
12
12
  __name__: 'card',
13
+ __getCompoundVariantCss__: cardFn.__getCompoundVariantCss__,
13
14
  raw: (props) => props,
14
15
  variantKeys: cardVariantKeys,
15
16
  variantMap: cardVariantMap,
@@ -19,4 +20,5 @@ export const card = /* @__PURE__ */ Object.assign(cardFn, {
19
20
  splitVariantProps(props) {
20
21
  return splitProps(props, cardVariantKeys)
21
22
  },
23
+ getVariantProps: cardFn.getVariantProps,
22
24
  })
@@ -21,7 +21,12 @@ export interface CheckboxRecipe {
21
21
  variantMap: CheckboxVariantMap
22
22
  variantKeys: Array<keyof CheckboxVariant>
23
23
  splitVariantProps<Props extends CheckboxVariantProps>(props: Props): [CheckboxVariantProps, Pretty<DistributiveOmit<Props, keyof CheckboxVariantProps>>]
24
+ getVariantProps: (props?: CheckboxVariantProps) => CheckboxVariantProps
24
25
  }
25
26
 
26
- /** Styles for the Checkbox component */
27
+ /**
28
+ * Styles for the Checkbox component
29
+
30
+
31
+ */
27
32
  export declare const checkbox: CheckboxRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const checkboxDefaultVariants = {}
@@ -24,11 +24,12 @@ const checkboxSlotNames = [
24
24
  ]
25
25
  const checkboxSlotFns = /* @__PURE__ */ checkboxSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, checkboxDefaultVariants, getSlotCompoundVariant(checkboxCompoundVariants, slotName))])
26
26
 
27
- const checkboxFn = (props = {}) => {
28
- return Object.fromEntries(checkboxSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
29
- }
27
+ const checkboxFn = memo((props = {}) => {
28
+ return Object.fromEntries(checkboxSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
29
+ })
30
30
 
31
31
  const checkboxVariantKeys = []
32
+ const getVariantProps = (variants) => ({ ...checkboxDefaultVariants, ...compact(variants) })
32
33
 
33
34
  export const checkbox = /* @__PURE__ */ Object.assign(checkboxFn, {
34
35
  __recipe__: false,
@@ -39,4 +40,5 @@ export const checkbox = /* @__PURE__ */ Object.assign(checkboxFn, {
39
40
  splitVariantProps(props) {
40
41
  return splitProps(props, checkboxVariantKeys)
41
42
  },
43
+ getVariantProps
42
44
  })
@@ -21,7 +21,12 @@ export interface CollapsibleRecipe {
21
21
  variantMap: CollapsibleVariantMap
22
22
  variantKeys: Array<keyof CollapsibleVariant>
23
23
  splitVariantProps<Props extends CollapsibleVariantProps>(props: Props): [CollapsibleVariantProps, Pretty<DistributiveOmit<Props, keyof CollapsibleVariantProps>>]
24
+ getVariantProps: (props?: CollapsibleVariantProps) => CollapsibleVariantProps
24
25
  }
25
26
 
26
- /** Styles for the Collapsible component */
27
+ /**
28
+ * Styles for the Collapsible component
29
+
30
+
31
+ */
27
32
  export declare const collapsible: CollapsibleRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const collapsibleDefaultVariants = {}
@@ -32,11 +32,12 @@ const collapsibleSlotNames = [
32
32
  ]
33
33
  const collapsibleSlotFns = /* @__PURE__ */ collapsibleSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, collapsibleDefaultVariants, getSlotCompoundVariant(collapsibleCompoundVariants, slotName))])
34
34
 
35
- const collapsibleFn = (props = {}) => {
36
- return Object.fromEntries(collapsibleSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
37
- }
35
+ const collapsibleFn = memo((props = {}) => {
36
+ return Object.fromEntries(collapsibleSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
37
+ })
38
38
 
39
39
  const collapsibleVariantKeys = []
40
+ const getVariantProps = (variants) => ({ ...collapsibleDefaultVariants, ...compact(variants) })
40
41
 
41
42
  export const collapsible = /* @__PURE__ */ Object.assign(collapsibleFn, {
42
43
  __recipe__: false,
@@ -47,4 +48,5 @@ export const collapsible = /* @__PURE__ */ Object.assign(collapsibleFn, {
47
48
  splitVariantProps(props) {
48
49
  return splitProps(props, collapsibleVariantKeys)
49
50
  },
51
+ getVariantProps
50
52
  })
@@ -21,7 +21,12 @@ export interface CommandDialogRecipe {
21
21
  variantMap: CommandDialogVariantMap
22
22
  variantKeys: Array<keyof CommandDialogVariant>
23
23
  splitVariantProps<Props extends CommandDialogVariantProps>(props: Props): [CommandDialogVariantProps, Pretty<DistributiveOmit<Props, keyof CommandDialogVariantProps>>]
24
+ getVariantProps: (props?: CommandDialogVariantProps) => CommandDialogVariantProps
24
25
  }
25
26
 
26
- /** Styles for the CommandDialog component */
27
+ /**
28
+ * Styles for the CommandDialog component
29
+
30
+
31
+ */
27
32
  export declare const commandDialog: CommandDialogRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const commandDialogDefaultVariants = {}
@@ -24,11 +24,12 @@ const commandDialogSlotNames = [
24
24
  ]
25
25
  const commandDialogSlotFns = /* @__PURE__ */ commandDialogSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, commandDialogDefaultVariants, getSlotCompoundVariant(commandDialogCompoundVariants, slotName))])
26
26
 
27
- const commandDialogFn = (props = {}) => {
28
- return Object.fromEntries(commandDialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
29
- }
27
+ const commandDialogFn = memo((props = {}) => {
28
+ return Object.fromEntries(commandDialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
29
+ })
30
30
 
31
31
  const commandDialogVariantKeys = []
32
+ const getVariantProps = (variants) => ({ ...commandDialogDefaultVariants, ...compact(variants) })
32
33
 
33
34
  export const commandDialog = /* @__PURE__ */ Object.assign(commandDialogFn, {
34
35
  __recipe__: false,
@@ -39,4 +40,5 @@ export const commandDialog = /* @__PURE__ */ Object.assign(commandDialogFn, {
39
40
  splitVariantProps(props) {
40
41
  return splitProps(props, commandDialogVariantKeys)
41
42
  },
43
+ getVariantProps
42
44
  })
@@ -21,7 +21,12 @@ export interface CommandRecipe {
21
21
  variantMap: CommandVariantMap
22
22
  variantKeys: Array<keyof CommandVariant>
23
23
  splitVariantProps<Props extends CommandVariantProps>(props: Props): [CommandVariantProps, Pretty<DistributiveOmit<Props, keyof CommandVariantProps>>]
24
+ getVariantProps: (props?: CommandVariantProps) => CommandVariantProps
24
25
  }
25
26
 
26
- /** Styles for the Command component */
27
+ /**
28
+ * Styles for the Command component
29
+
30
+
31
+ */
27
32
  export declare const command: CommandRecipe
@@ -1,4 +1,4 @@
1
- import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
2
  import { createRecipe } from './create-recipe.mjs';
3
3
 
4
4
  const commandDefaultVariants = {}
@@ -88,11 +88,12 @@ const commandSlotNames = [
88
88
  ]
89
89
  const commandSlotFns = /* @__PURE__ */ commandSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, commandDefaultVariants, getSlotCompoundVariant(commandCompoundVariants, slotName))])
90
90
 
91
- const commandFn = (props = {}) => {
92
- return Object.fromEntries(commandSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
93
- }
91
+ const commandFn = memo((props = {}) => {
92
+ return Object.fromEntries(commandSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
93
+ })
94
94
 
95
95
  const commandVariantKeys = []
96
+ const getVariantProps = (variants) => ({ ...commandDefaultVariants, ...compact(variants) })
96
97
 
97
98
  export const command = /* @__PURE__ */ Object.assign(commandFn, {
98
99
  __recipe__: false,
@@ -103,4 +104,5 @@ export const command = /* @__PURE__ */ Object.assign(commandFn, {
103
104
  splitVariantProps(props) {
104
105
  return splitProps(props, commandVariantKeys)
105
106
  },
107
+ getVariantProps
106
108
  })
@@ -3,7 +3,10 @@ import type { ConditionalValue } from '../types/index.d.mts';
3
3
  import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
4
4
 
5
5
  interface ContextMenuVariant {
6
- inset: boolean
6
+ /**
7
+ * @default false
8
+ */
9
+ inset: boolean
7
10
  }
8
11
 
9
12
  type ContextMenuVariantMap = {
@@ -21,7 +24,12 @@ export interface ContextMenuRecipe {
21
24
  variantMap: ContextMenuVariantMap
22
25
  variantKeys: Array<keyof ContextMenuVariant>
23
26
  splitVariantProps<Props extends ContextMenuVariantProps>(props: Props): [ContextMenuVariantProps, Pretty<DistributiveOmit<Props, keyof ContextMenuVariantProps>>]
27
+ getVariantProps: (props?: ContextMenuVariantProps) => ContextMenuVariantProps
24
28
  }
25
29
 
26
- /** Styles for the ContextMenu component */
30
+ /**
31
+ * Styles for the ContextMenu component
32
+
33
+
34
+ */
27
35
  export declare const contextMenu: ContextMenuRecipe