@stokelp/ui 2.102.0 → 2.104.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 (710) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +1 -0
  2. package/dist/_virtual/_rolldown/runtime.js +21 -0
  3. package/dist/components/accordion/Accordion.cjs +2 -2
  4. package/dist/components/accordion/Accordion.cjs.map +1 -1
  5. package/dist/components/accordion/Accordion.js +22 -27
  6. package/dist/components/accordion/Accordion.js.map +1 -1
  7. package/dist/components/action-card/ActionCard.cjs +2 -2
  8. package/dist/components/action-card/ActionCard.cjs.map +1 -1
  9. package/dist/components/action-card/ActionCard.js +23 -26
  10. package/dist/components/action-card/ActionCard.js.map +1 -1
  11. package/dist/components/alert/Alert.cjs +2 -2
  12. package/dist/components/alert/Alert.cjs.map +1 -1
  13. package/dist/components/alert/Alert.js +117 -84
  14. package/dist/components/alert/Alert.js.map +1 -1
  15. package/dist/components/app/mobile-card/MobileCardEntityRow.cjs +2 -2
  16. package/dist/components/app/mobile-card/MobileCardEntityRow.cjs.map +1 -1
  17. package/dist/components/app/mobile-card/MobileCardEntityRow.js +44 -25
  18. package/dist/components/app/mobile-card/MobileCardEntityRow.js.map +1 -1
  19. package/dist/components/app/mobile-card/MobileCardHeader.cjs +2 -2
  20. package/dist/components/app/mobile-card/MobileCardHeader.cjs.map +1 -1
  21. package/dist/components/app/mobile-card/MobileCardHeader.js +18 -20
  22. package/dist/components/app/mobile-card/MobileCardHeader.js.map +1 -1
  23. package/dist/components/app/mobile-card/MobileCardNotificationBadge.cjs +2 -2
  24. package/dist/components/app/mobile-card/MobileCardNotificationBadge.cjs.map +1 -1
  25. package/dist/components/app/mobile-card/MobileCardNotificationBadge.js +31 -13
  26. package/dist/components/app/mobile-card/MobileCardNotificationBadge.js.map +1 -1
  27. package/dist/components/app/mobile-card/MobileCardShell.cjs +2 -2
  28. package/dist/components/app/mobile-card/MobileCardShell.cjs.map +1 -1
  29. package/dist/components/app/mobile-card/MobileCardShell.js +17 -19
  30. package/dist/components/app/mobile-card/MobileCardShell.js.map +1 -1
  31. package/dist/components/app/mobile-card/MobileCardSkeleton.cjs +2 -2
  32. package/dist/components/app/mobile-card/MobileCardSkeleton.cjs.map +1 -1
  33. package/dist/components/app/mobile-card/MobileCardSkeleton.js +45 -22
  34. package/dist/components/app/mobile-card/MobileCardSkeleton.js.map +1 -1
  35. package/dist/components/app/mobile-navigation/MobileNavigation.cjs +2 -2
  36. package/dist/components/app/mobile-navigation/MobileNavigation.cjs.map +1 -1
  37. package/dist/components/app/mobile-navigation/MobileNavigation.js +16 -18
  38. package/dist/components/app/mobile-navigation/MobileNavigation.js.map +1 -1
  39. package/dist/components/app/navigation/AppNavigation.cjs +2 -2
  40. package/dist/components/app/navigation/AppNavigation.cjs.map +1 -1
  41. package/dist/components/app/navigation/AppNavigation.js +35 -47
  42. package/dist/components/app/navigation/AppNavigation.js.map +1 -1
  43. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs +2 -2
  44. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs.map +1 -1
  45. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js +188 -119
  46. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js.map +1 -1
  47. package/dist/components/app/price-tag/PriceTag.cjs +2 -2
  48. package/dist/components/app/price-tag/PriceTag.cjs.map +1 -1
  49. package/dist/components/app/price-tag/PriceTag.js +25 -19
  50. package/dist/components/app/price-tag/PriceTag.js.map +1 -1
  51. package/dist/components/app/product-card-catalog/styled.cjs +2 -2
  52. package/dist/components/app/product-card-catalog/styled.cjs.map +1 -1
  53. package/dist/components/app/product-card-catalog/styled.js +23 -21
  54. package/dist/components/app/product-card-catalog/styled.js.map +1 -1
  55. package/dist/components/avatar/styled.cjs +2 -2
  56. package/dist/components/avatar/styled.cjs.map +1 -1
  57. package/dist/components/avatar/styled.d.ts +2 -2
  58. package/dist/components/avatar/styled.js +28 -27
  59. package/dist/components/avatar/styled.js.map +1 -1
  60. package/dist/components/box/Box.cjs +2 -2
  61. package/dist/components/box/Box.cjs.map +1 -1
  62. package/dist/components/box/Box.js +11 -10
  63. package/dist/components/box/Box.js.map +1 -1
  64. package/dist/components/breadcrumb/Breadcrumb.cjs +2 -2
  65. package/dist/components/breadcrumb/Breadcrumb.cjs.map +1 -1
  66. package/dist/components/breadcrumb/Breadcrumb.d.ts +4 -6
  67. package/dist/components/breadcrumb/Breadcrumb.js +39 -35
  68. package/dist/components/breadcrumb/Breadcrumb.js.map +1 -1
  69. package/dist/components/button/Button.cjs +2 -2
  70. package/dist/components/button/Button.cjs.map +1 -1
  71. package/dist/components/button/Button.js +9 -8
  72. package/dist/components/button/Button.js.map +1 -1
  73. package/dist/components/button-filter/ButtonFilter.cjs +2 -2
  74. package/dist/components/button-filter/ButtonFilter.cjs.map +1 -1
  75. package/dist/components/button-filter/ButtonFilter.js +9 -8
  76. package/dist/components/button-filter/ButtonFilter.js.map +1 -1
  77. package/dist/components/chat/Chat.cjs +2 -2
  78. package/dist/components/chat/Chat.cjs.map +1 -1
  79. package/dist/components/chat/Chat.d.ts +6 -4
  80. package/dist/components/chat/Chat.js +27 -26
  81. package/dist/components/chat/Chat.js.map +1 -1
  82. package/dist/components/chat/ChatDocumentMessage.cjs +2 -2
  83. package/dist/components/chat/ChatDocumentMessage.cjs.map +1 -1
  84. package/dist/components/chat/ChatDocumentMessage.js +32 -31
  85. package/dist/components/chat/ChatDocumentMessage.js.map +1 -1
  86. package/dist/components/chat/ChatMessage.cjs +2 -2
  87. package/dist/components/chat/ChatMessage.cjs.map +1 -1
  88. package/dist/components/chat/ChatMessage.js +8 -7
  89. package/dist/components/chat/ChatMessage.js.map +1 -1
  90. package/dist/components/chat/ChatProfileAvatar.cjs +2 -2
  91. package/dist/components/chat/ChatProfileAvatar.cjs.map +1 -1
  92. package/dist/components/chat/ChatProfileAvatar.js +24 -16
  93. package/dist/components/chat/ChatProfileAvatar.js.map +1 -1
  94. package/dist/components/chat/ChatTextInput.cjs +2 -2
  95. package/dist/components/chat/ChatTextInput.cjs.map +1 -1
  96. package/dist/components/chat/ChatTextInput.d.ts +2 -2
  97. package/dist/components/chat/ChatTextInput.js +44 -52
  98. package/dist/components/chat/ChatTextInput.js.map +1 -1
  99. package/dist/components/checkbox/Checkbox.cjs +2 -2
  100. package/dist/components/checkbox/Checkbox.cjs.map +1 -1
  101. package/dist/components/checkbox/Checkbox.js +36 -34
  102. package/dist/components/checkbox/Checkbox.js.map +1 -1
  103. package/dist/components/checkbox-card/CheckboxCard.cjs +2 -2
  104. package/dist/components/checkbox-card/CheckboxCard.cjs.map +1 -1
  105. package/dist/components/checkbox-card/CheckboxCard.js +33 -38
  106. package/dist/components/checkbox-card/CheckboxCard.js.map +1 -1
  107. package/dist/components/checkbox-card/namespace.cjs +2 -2
  108. package/dist/components/checkbox-card/namespace.cjs.map +1 -1
  109. package/dist/components/checkbox-card/namespace.js +14 -9
  110. package/dist/components/checkbox-card/namespace.js.map +1 -1
  111. package/dist/components/chip/Chip.cjs +2 -2
  112. package/dist/components/chip/Chip.cjs.map +1 -1
  113. package/dist/components/chip/Chip.js +23 -23
  114. package/dist/components/chip/Chip.js.map +1 -1
  115. package/dist/components/collapsible/styled.cjs +2 -2
  116. package/dist/components/collapsible/styled.cjs.map +1 -1
  117. package/dist/components/collapsible/styled.js +15 -11
  118. package/dist/components/collapsible/styled.js.map +1 -1
  119. package/dist/components/combobox/Combobox.cjs +2 -2
  120. package/dist/components/combobox/Combobox.cjs.map +1 -1
  121. package/dist/components/combobox/Combobox.js +206 -173
  122. package/dist/components/combobox/Combobox.js.map +1 -1
  123. package/dist/components/date-picker/DatePicker.cjs +2 -2
  124. package/dist/components/date-picker/DatePicker.cjs.map +1 -1
  125. package/dist/components/date-picker/DatePicker.d.ts +2 -2
  126. package/dist/components/date-picker/DatePicker.js +151 -127
  127. package/dist/components/date-picker/DatePicker.js.map +1 -1
  128. package/dist/components/dialog/styled.cjs +2 -2
  129. package/dist/components/dialog/styled.cjs.map +1 -1
  130. package/dist/components/dialog/styled.js +75 -65
  131. package/dist/components/dialog/styled.js.map +1 -1
  132. package/dist/components/drawer/Drawer.cjs +2 -2
  133. package/dist/components/drawer/Drawer.cjs.map +1 -1
  134. package/dist/components/drawer/Drawer.js +62 -68
  135. package/dist/components/drawer/Drawer.js.map +1 -1
  136. package/dist/components/flag/styled.cjs +2 -2
  137. package/dist/components/flag/styled.cjs.map +1 -1
  138. package/dist/components/flag/styled.d.ts +2 -2
  139. package/dist/components/flag/styled.js +8437 -3751
  140. package/dist/components/flag/styled.js.map +1 -1
  141. package/dist/components/form/FormControl.cjs +2 -2
  142. package/dist/components/form/FormControl.cjs.map +1 -1
  143. package/dist/components/form/FormControl.d.ts +2 -2
  144. package/dist/components/form/FormControl.js +13 -18
  145. package/dist/components/form/FormControl.js.map +1 -1
  146. package/dist/components/form/FormHelperText.cjs +2 -2
  147. package/dist/components/form/FormHelperText.cjs.map +1 -1
  148. package/dist/components/form/FormHelperText.js +8 -9
  149. package/dist/components/form/FormHelperText.js.map +1 -1
  150. package/dist/components/form/FormLabel.cjs +2 -2
  151. package/dist/components/form/FormLabel.cjs.map +1 -1
  152. package/dist/components/form/FormLabel.d.ts +2 -2
  153. package/dist/components/form/FormLabel.js +38 -33
  154. package/dist/components/form/FormLabel.js.map +1 -1
  155. package/dist/components/heading/Heading.cjs +2 -2
  156. package/dist/components/heading/Heading.cjs.map +1 -1
  157. package/dist/components/heading/Heading.js +14 -10
  158. package/dist/components/heading/Heading.js.map +1 -1
  159. package/dist/components/icon/Icon.cjs +2 -2
  160. package/dist/components/icon/Icon.cjs.map +1 -1
  161. package/dist/components/icon/Icon.d.ts +2 -2
  162. package/dist/components/icon/Icon.js +15 -10
  163. package/dist/components/icon/Icon.js.map +1 -1
  164. package/dist/components/icon-button/IconButton.cjs +2 -2
  165. package/dist/components/icon-button/IconButton.cjs.map +1 -1
  166. package/dist/components/icon-button/IconButton.d.ts +2 -3
  167. package/dist/components/icon-button/IconButton.js +8 -7
  168. package/dist/components/icon-button/IconButton.js.map +1 -1
  169. package/dist/components/illustration/Illustration.cjs +2 -2
  170. package/dist/components/illustration/Illustration.cjs.map +1 -1
  171. package/dist/components/illustration/Illustration.js +35 -39
  172. package/dist/components/illustration/Illustration.js.map +1 -1
  173. package/dist/components/illustration/patterns.cjs +2 -2
  174. package/dist/components/illustration/patterns.cjs.map +1 -1
  175. package/dist/components/illustration/patterns.js +5563 -8897
  176. package/dist/components/illustration/patterns.js.map +1 -1
  177. package/dist/components/input/HighlightedInput.cjs +2 -2
  178. package/dist/components/input/HighlightedInput.cjs.map +1 -1
  179. package/dist/components/input/HighlightedInput.d.ts +9 -12
  180. package/dist/components/input/HighlightedInput.js +43 -58
  181. package/dist/components/input/HighlightedInput.js.map +1 -1
  182. package/dist/components/input/Input.cjs +2 -2
  183. package/dist/components/input/Input.cjs.map +1 -1
  184. package/dist/components/input/Input.d.ts +1 -2
  185. package/dist/components/input/Input.js +12 -13
  186. package/dist/components/input/Input.js.map +1 -1
  187. package/dist/components/input/InputAddon.cjs +2 -2
  188. package/dist/components/input/InputAddon.cjs.map +1 -1
  189. package/dist/components/input/InputAddon.js +8 -9
  190. package/dist/components/input/InputAddon.js.map +1 -1
  191. package/dist/components/input/InputGroup.cjs +2 -2
  192. package/dist/components/input/InputGroup.cjs.map +1 -1
  193. package/dist/components/input/InputGroup.js +8 -9
  194. package/dist/components/input/InputGroup.js.map +1 -1
  195. package/dist/components/input/PhoneNumberInput.cjs +2 -2
  196. package/dist/components/input/PhoneNumberInput.cjs.map +1 -1
  197. package/dist/components/input/PhoneNumberInput.js +21 -23
  198. package/dist/components/input/PhoneNumberInput.js.map +1 -1
  199. package/dist/components/menu/Menu.cjs +2 -2
  200. package/dist/components/menu/Menu.cjs.map +1 -1
  201. package/dist/components/menu/Menu.js +32 -28
  202. package/dist/components/menu/Menu.js.map +1 -1
  203. package/dist/components/pagination/Pagination.cjs +2 -2
  204. package/dist/components/pagination/Pagination.cjs.map +1 -1
  205. package/dist/components/pagination/Pagination.js +76 -84
  206. package/dist/components/pagination/Pagination.js.map +1 -1
  207. package/dist/components/pagination/use-pagination.cjs +2 -2
  208. package/dist/components/pagination/use-pagination.cjs.map +1 -1
  209. package/dist/components/pagination/use-pagination.js +56 -54
  210. package/dist/components/pagination/use-pagination.js.map +1 -1
  211. package/dist/components/popover/Popover.cjs +2 -2
  212. package/dist/components/popover/Popover.cjs.map +1 -1
  213. package/dist/components/popover/Popover.js +21 -25
  214. package/dist/components/popover/Popover.js.map +1 -1
  215. package/dist/components/radio-button-group/RadioButtonGroup.cjs +2 -2
  216. package/dist/components/radio-button-group/RadioButtonGroup.cjs.map +1 -1
  217. package/dist/components/radio-button-group/RadioButtonGroup.js +20 -20
  218. package/dist/components/radio-button-group/RadioButtonGroup.js.map +1 -1
  219. package/dist/components/radio-card-group/RadioCardGroup.cjs +2 -2
  220. package/dist/components/radio-card-group/RadioCardGroup.cjs.map +1 -1
  221. package/dist/components/radio-card-group/RadioCardGroup.js +21 -22
  222. package/dist/components/radio-card-group/RadioCardGroup.js.map +1 -1
  223. package/dist/components/radio-card-group/namespace.cjs +2 -2
  224. package/dist/components/radio-card-group/namespace.cjs.map +1 -1
  225. package/dist/components/radio-card-group/namespace.js +15 -10
  226. package/dist/components/radio-card-group/namespace.js.map +1 -1
  227. package/dist/components/radio-group/RadioGroup.cjs +2 -2
  228. package/dist/components/radio-group/RadioGroup.cjs.map +1 -1
  229. package/dist/components/radio-group/RadioGroup.js +21 -21
  230. package/dist/components/radio-group/RadioGroup.js.map +1 -1
  231. package/dist/components/select/Select.cjs +2 -2
  232. package/dist/components/select/Select.cjs.map +1 -1
  233. package/dist/components/select/Select.js +194 -141
  234. package/dist/components/select/Select.js.map +1 -1
  235. package/dist/components/select-language/SelectLanguage.cjs +2 -2
  236. package/dist/components/select-language/SelectLanguage.cjs.map +1 -1
  237. package/dist/components/select-language/SelectLanguage.js +114 -88
  238. package/dist/components/select-language/SelectLanguage.js.map +1 -1
  239. package/dist/components/status-tag-select/StatusTagSelect.cjs +2 -2
  240. package/dist/components/status-tag-select/StatusTagSelect.cjs.map +1 -1
  241. package/dist/components/status-tag-select/StatusTagSelect.js +93 -115
  242. package/dist/components/status-tag-select/StatusTagSelect.js.map +1 -1
  243. package/dist/components/switch/Switch.cjs +2 -2
  244. package/dist/components/switch/Switch.cjs.map +1 -1
  245. package/dist/components/switch/Switch.js +30 -18
  246. package/dist/components/switch/Switch.js.map +1 -1
  247. package/dist/components/switch-card/SwitchCard.cjs +2 -2
  248. package/dist/components/switch-card/SwitchCard.cjs.map +1 -1
  249. package/dist/components/switch-card/SwitchCard.js +28 -25
  250. package/dist/components/switch-card/SwitchCard.js.map +1 -1
  251. package/dist/components/switch-card/namespace.cjs +2 -2
  252. package/dist/components/switch-card/namespace.cjs.map +1 -1
  253. package/dist/components/switch-card/namespace.js +14 -9
  254. package/dist/components/switch-card/namespace.js.map +1 -1
  255. package/dist/components/table/Table.cjs +2 -2
  256. package/dist/components/table/Table.cjs.map +1 -1
  257. package/dist/components/table/Table.d.ts +3 -4
  258. package/dist/components/table/Table.js +133 -109
  259. package/dist/components/table/Table.js.map +1 -1
  260. package/dist/components/table/TableProvider.cjs +2 -2
  261. package/dist/components/table/TableProvider.cjs.map +1 -1
  262. package/dist/components/table/TableProvider.js +36 -39
  263. package/dist/components/table/TableProvider.js.map +1 -1
  264. package/dist/components/tabs/Tabs.cjs +2 -2
  265. package/dist/components/tabs/Tabs.cjs.map +1 -1
  266. package/dist/components/tabs/Tabs.js +18 -26
  267. package/dist/components/tabs/Tabs.js.map +1 -1
  268. package/dist/components/tag/Tag.cjs +2 -2
  269. package/dist/components/tag/Tag.cjs.map +1 -1
  270. package/dist/components/tag/Tag.js +22 -16
  271. package/dist/components/tag/Tag.js.map +1 -1
  272. package/dist/components/text/Text.cjs +2 -2
  273. package/dist/components/text/Text.cjs.map +1 -1
  274. package/dist/components/text/Text.js +12 -11
  275. package/dist/components/text/Text.js.map +1 -1
  276. package/dist/components/textarea/Textarea.cjs +2 -2
  277. package/dist/components/textarea/Textarea.cjs.map +1 -1
  278. package/dist/components/textarea/Textarea.d.ts +1 -2
  279. package/dist/components/textarea/Textarea.js +9 -8
  280. package/dist/components/textarea/Textarea.js.map +1 -1
  281. package/dist/components/tooltip/Tooltip.cjs +2 -2
  282. package/dist/components/tooltip/Tooltip.cjs.map +1 -1
  283. package/dist/components/tooltip/Tooltip.js +38 -42
  284. package/dist/components/tooltip/Tooltip.js.map +1 -1
  285. package/dist/icons/index.cjs +2 -2
  286. package/dist/icons/index.cjs.map +1 -1
  287. package/dist/icons/index.js +65 -58
  288. package/dist/icons/index.js.map +1 -1
  289. package/dist/index.cjs +1 -2
  290. package/dist/index.js +66 -191
  291. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs +2 -2
  292. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs.map +1 -1
  293. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js +22 -27
  294. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js.map +1 -1
  295. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs +2 -2
  296. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs.map +1 -1
  297. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js +22 -27
  298. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js.map +1 -1
  299. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs +2 -2
  300. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.cjs.map +1 -1
  301. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js +22 -27
  302. package/dist/node_modules/@heroicons/react/24/outline/esm/ChatBubbleLeftRightIcon.js.map +1 -1
  303. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs +2 -2
  304. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs.map +1 -1
  305. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js +22 -27
  306. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js.map +1 -1
  307. package/dist/node_modules/deepmerge/dist/cjs.cjs +2 -2
  308. package/dist/node_modules/deepmerge/dist/cjs.cjs.map +1 -1
  309. package/dist/node_modules/deepmerge/dist/cjs.js +76 -80
  310. package/dist/node_modules/deepmerge/dist/cjs.js.map +1 -1
  311. package/dist/preset.cjs +2 -2
  312. package/dist/preset.cjs.map +1 -1
  313. package/dist/preset.js +30 -31
  314. package/dist/preset.js.map +1 -1
  315. package/dist/shared/ConditionalWrapper.cjs +2 -2
  316. package/dist/shared/ConditionalWrapper.cjs.map +1 -1
  317. package/dist/shared/ConditionalWrapper.js +6 -5
  318. package/dist/shared/ConditionalWrapper.js.map +1 -1
  319. package/dist/shared/assets/icons.cjs +2 -2
  320. package/dist/shared/assets/icons.cjs.map +1 -1
  321. package/dist/shared/assets/icons.js +30 -22
  322. package/dist/shared/assets/icons.js.map +1 -1
  323. package/dist/shared/hooks/useUncontrolled.cjs +2 -2
  324. package/dist/shared/hooks/useUncontrolled.cjs.map +1 -1
  325. package/dist/shared/hooks/useUncontrolled.js +19 -16
  326. package/dist/shared/hooks/useUncontrolled.js.map +1 -1
  327. package/dist/shared/utils/events.cjs +2 -2
  328. package/dist/shared/utils/events.cjs.map +1 -1
  329. package/dist/shared/utils/events.js +7 -6
  330. package/dist/shared/utils/events.js.map +1 -1
  331. package/dist/theme/breakpoints.cjs +2 -2
  332. package/dist/theme/breakpoints.cjs.map +1 -1
  333. package/dist/theme/breakpoints.js +10 -9
  334. package/dist/theme/breakpoints.js.map +1 -1
  335. package/dist/theme/conditions.cjs +2 -2
  336. package/dist/theme/conditions.cjs.map +1 -1
  337. package/dist/theme/conditions.js +23 -24
  338. package/dist/theme/conditions.js.map +1 -1
  339. package/dist/theme/containers.cjs +2 -2
  340. package/dist/theme/containers.cjs.map +1 -1
  341. package/dist/theme/containers.js +18 -17
  342. package/dist/theme/containers.js.map +1 -1
  343. package/dist/theme/globalCss.cjs +4 -4
  344. package/dist/theme/globalCss.cjs.map +1 -1
  345. package/dist/theme/globalCss.js +94 -99
  346. package/dist/theme/globalCss.js.map +1 -1
  347. package/dist/theme/keyframes.cjs +2 -2
  348. package/dist/theme/keyframes.cjs.map +1 -1
  349. package/dist/theme/keyframes.js +256 -171
  350. package/dist/theme/keyframes.js.map +1 -1
  351. package/dist/theme/recipes/accordion.cjs +2 -2
  352. package/dist/theme/recipes/accordion.cjs.map +1 -1
  353. package/dist/theme/recipes/accordion.js +93 -110
  354. package/dist/theme/recipes/accordion.js.map +1 -1
  355. package/dist/theme/recipes/action-card.cjs +2 -2
  356. package/dist/theme/recipes/action-card.cjs.map +1 -1
  357. package/dist/theme/recipes/action-card.js +88 -84
  358. package/dist/theme/recipes/action-card.js.map +1 -1
  359. package/dist/theme/recipes/alert.cjs +2 -2
  360. package/dist/theme/recipes/alert.cjs.map +1 -1
  361. package/dist/theme/recipes/alert.js +52 -65
  362. package/dist/theme/recipes/alert.js.map +1 -1
  363. package/dist/theme/recipes/app/mobile-navigation.cjs +2 -2
  364. package/dist/theme/recipes/app/mobile-navigation.cjs.map +1 -1
  365. package/dist/theme/recipes/app/mobile-navigation.js +94 -108
  366. package/dist/theme/recipes/app/mobile-navigation.js.map +1 -1
  367. package/dist/theme/recipes/app/navigation-language-select.cjs +2 -2
  368. package/dist/theme/recipes/app/navigation-language-select.cjs.map +1 -1
  369. package/dist/theme/recipes/app/navigation-language-select.js +135 -148
  370. package/dist/theme/recipes/app/navigation-language-select.js.map +1 -1
  371. package/dist/theme/recipes/app/navigation.cjs +2 -2
  372. package/dist/theme/recipes/app/navigation.cjs.map +1 -1
  373. package/dist/theme/recipes/app/navigation.js +214 -269
  374. package/dist/theme/recipes/app/navigation.js.map +1 -1
  375. package/dist/theme/recipes/app/price-tag.cjs +2 -2
  376. package/dist/theme/recipes/app/price-tag.cjs.map +1 -1
  377. package/dist/theme/recipes/app/price-tag.js +59 -70
  378. package/dist/theme/recipes/app/price-tag.js.map +1 -1
  379. package/dist/theme/recipes/app/product-card-catalog.cjs +2 -2
  380. package/dist/theme/recipes/app/product-card-catalog.cjs.map +1 -1
  381. package/dist/theme/recipes/app/product-card-catalog.js +189 -194
  382. package/dist/theme/recipes/app/product-card-catalog.js.map +1 -1
  383. package/dist/theme/recipes/avatar-group.cjs +2 -2
  384. package/dist/theme/recipes/avatar-group.cjs.map +1 -1
  385. package/dist/theme/recipes/avatar-group.js +27 -38
  386. package/dist/theme/recipes/avatar-group.js.map +1 -1
  387. package/dist/theme/recipes/avatar.cjs +2 -2
  388. package/dist/theme/recipes/avatar.cjs.map +1 -1
  389. package/dist/theme/recipes/avatar.js +97 -95
  390. package/dist/theme/recipes/avatar.js.map +1 -1
  391. package/dist/theme/recipes/breadcrumb.cjs +2 -2
  392. package/dist/theme/recipes/breadcrumb.cjs.map +1 -1
  393. package/dist/theme/recipes/breadcrumb.js +35 -31
  394. package/dist/theme/recipes/breadcrumb.js.map +1 -1
  395. package/dist/theme/recipes/button-filter.cjs +2 -2
  396. package/dist/theme/recipes/button-filter.cjs.map +1 -1
  397. package/dist/theme/recipes/button-filter.js +57 -60
  398. package/dist/theme/recipes/button-filter.js.map +1 -1
  399. package/dist/theme/recipes/button.cjs +2 -2
  400. package/dist/theme/recipes/button.cjs.map +1 -1
  401. package/dist/theme/recipes/button.js +287 -295
  402. package/dist/theme/recipes/button.js.map +1 -1
  403. package/dist/theme/recipes/chat/chat-document-message.cjs +2 -2
  404. package/dist/theme/recipes/chat/chat-document-message.cjs.map +1 -1
  405. package/dist/theme/recipes/chat/chat-document-message.js +38 -43
  406. package/dist/theme/recipes/chat/chat-document-message.js.map +1 -1
  407. package/dist/theme/recipes/chat/chat-input-text.cjs +2 -2
  408. package/dist/theme/recipes/chat/chat-input-text.cjs.map +1 -1
  409. package/dist/theme/recipes/chat/chat-input-text.js +26 -27
  410. package/dist/theme/recipes/chat/chat-input-text.js.map +1 -1
  411. package/dist/theme/recipes/chat/chat-message.cjs +2 -2
  412. package/dist/theme/recipes/chat/chat-message.cjs.map +1 -1
  413. package/dist/theme/recipes/chat/chat-message.js +49 -45
  414. package/dist/theme/recipes/chat/chat-message.js.map +1 -1
  415. package/dist/theme/recipes/chat/chat-profile-avatar.cjs +2 -2
  416. package/dist/theme/recipes/chat/chat-profile-avatar.cjs.map +1 -1
  417. package/dist/theme/recipes/chat/chat-profile-avatar.js +20 -25
  418. package/dist/theme/recipes/chat/chat-profile-avatar.js.map +1 -1
  419. package/dist/theme/recipes/chat/chat.cjs +2 -2
  420. package/dist/theme/recipes/chat/chat.cjs.map +1 -1
  421. package/dist/theme/recipes/chat/chat.js +51 -56
  422. package/dist/theme/recipes/chat/chat.js.map +1 -1
  423. package/dist/theme/recipes/checkbox-card.cjs +2 -2
  424. package/dist/theme/recipes/checkbox-card.cjs.map +1 -1
  425. package/dist/theme/recipes/checkbox-card.js +44 -40
  426. package/dist/theme/recipes/checkbox-card.js.map +1 -1
  427. package/dist/theme/recipes/checkbox-group.cjs +2 -2
  428. package/dist/theme/recipes/checkbox-group.cjs.map +1 -1
  429. package/dist/theme/recipes/checkbox-group.js +13 -12
  430. package/dist/theme/recipes/checkbox-group.js.map +1 -1
  431. package/dist/theme/recipes/checkbox.cjs +2 -2
  432. package/dist/theme/recipes/checkbox.cjs.map +1 -1
  433. package/dist/theme/recipes/checkbox.js +110 -129
  434. package/dist/theme/recipes/checkbox.js.map +1 -1
  435. package/dist/theme/recipes/chip.cjs +2 -2
  436. package/dist/theme/recipes/chip.cjs.map +1 -1
  437. package/dist/theme/recipes/chip.js +144 -182
  438. package/dist/theme/recipes/chip.js.map +1 -1
  439. package/dist/theme/recipes/collapsible.cjs +2 -2
  440. package/dist/theme/recipes/collapsible.cjs.map +1 -1
  441. package/dist/theme/recipes/collapsible.js +30 -28
  442. package/dist/theme/recipes/collapsible.js.map +1 -1
  443. package/dist/theme/recipes/combobox.cjs +2 -2
  444. package/dist/theme/recipes/combobox.cjs.map +1 -1
  445. package/dist/theme/recipes/combobox.js +149 -176
  446. package/dist/theme/recipes/combobox.js.map +1 -1
  447. package/dist/theme/recipes/common/group-card.cjs +2 -2
  448. package/dist/theme/recipes/common/group-card.cjs.map +1 -1
  449. package/dist/theme/recipes/common/group-card.js +60 -80
  450. package/dist/theme/recipes/common/group-card.js.map +1 -1
  451. package/dist/theme/recipes/datepicker.cjs +2 -2
  452. package/dist/theme/recipes/datepicker.cjs.map +1 -1
  453. package/dist/theme/recipes/datepicker.js +149 -176
  454. package/dist/theme/recipes/datepicker.js.map +1 -1
  455. package/dist/theme/recipes/dialog.cjs +2 -2
  456. package/dist/theme/recipes/dialog.cjs.map +1 -1
  457. package/dist/theme/recipes/dialog.js +137 -151
  458. package/dist/theme/recipes/dialog.js.map +1 -1
  459. package/dist/theme/recipes/drawer.cjs +2 -2
  460. package/dist/theme/recipes/drawer.cjs.map +1 -1
  461. package/dist/theme/recipes/drawer.js +105 -125
  462. package/dist/theme/recipes/drawer.js.map +1 -1
  463. package/dist/theme/recipes/flag.cjs +2 -2
  464. package/dist/theme/recipes/flag.cjs.map +1 -1
  465. package/dist/theme/recipes/flag.js +21 -30
  466. package/dist/theme/recipes/flag.js.map +1 -1
  467. package/dist/theme/recipes/form/control.cjs +2 -2
  468. package/dist/theme/recipes/form/control.cjs.map +1 -1
  469. package/dist/theme/recipes/form/control.js +27 -34
  470. package/dist/theme/recipes/form/control.js.map +1 -1
  471. package/dist/theme/recipes/form/helper-text.cjs +2 -2
  472. package/dist/theme/recipes/form/helper-text.cjs.map +1 -1
  473. package/dist/theme/recipes/form/helper-text.js +14 -13
  474. package/dist/theme/recipes/form/helper-text.js.map +1 -1
  475. package/dist/theme/recipes/form/label.cjs +2 -2
  476. package/dist/theme/recipes/form/label.cjs.map +1 -1
  477. package/dist/theme/recipes/form/label.js +47 -48
  478. package/dist/theme/recipes/form/label.js.map +1 -1
  479. package/dist/theme/recipes/heading.cjs +2 -2
  480. package/dist/theme/recipes/heading.cjs.map +1 -1
  481. package/dist/theme/recipes/heading.js +25 -34
  482. package/dist/theme/recipes/heading.js.map +1 -1
  483. package/dist/theme/recipes/highlightedInput.cjs +2 -2
  484. package/dist/theme/recipes/highlightedInput.cjs.map +1 -1
  485. package/dist/theme/recipes/highlightedInput.js +54 -45
  486. package/dist/theme/recipes/highlightedInput.js.map +1 -1
  487. package/dist/theme/recipes/icon-button.cjs +2 -2
  488. package/dist/theme/recipes/icon-button.cjs.map +1 -1
  489. package/dist/theme/recipes/icon-button.js +81 -89
  490. package/dist/theme/recipes/icon-button.js.map +1 -1
  491. package/dist/theme/recipes/icon.cjs +2 -2
  492. package/dist/theme/recipes/icon.cjs.map +1 -1
  493. package/dist/theme/recipes/icon.js +39 -42
  494. package/dist/theme/recipes/icon.js.map +1 -1
  495. package/dist/theme/recipes/illustration.cjs +2 -2
  496. package/dist/theme/recipes/illustration.cjs.map +1 -1
  497. package/dist/theme/recipes/illustration.js +29 -48
  498. package/dist/theme/recipes/illustration.js.map +1 -1
  499. package/dist/theme/recipes/index.cjs +2 -2
  500. package/dist/theme/recipes/index.cjs.map +1 -1
  501. package/dist/theme/recipes/index.js +127 -127
  502. package/dist/theme/recipes/index.js.map +1 -1
  503. package/dist/theme/recipes/input-addon.cjs +2 -2
  504. package/dist/theme/recipes/input-addon.cjs.map +1 -1
  505. package/dist/theme/recipes/input-addon.js +24 -24
  506. package/dist/theme/recipes/input-addon.js.map +1 -1
  507. package/dist/theme/recipes/input-group.cjs +2 -2
  508. package/dist/theme/recipes/input-group.cjs.map +1 -1
  509. package/dist/theme/recipes/input-group.js +40 -49
  510. package/dist/theme/recipes/input-group.js.map +1 -1
  511. package/dist/theme/recipes/input.cjs +2 -2
  512. package/dist/theme/recipes/input.cjs.map +1 -1
  513. package/dist/theme/recipes/input.js +48 -61
  514. package/dist/theme/recipes/input.js.map +1 -1
  515. package/dist/theme/recipes/menu.cjs +2 -2
  516. package/dist/theme/recipes/menu.cjs.map +1 -1
  517. package/dist/theme/recipes/menu.js +96 -100
  518. package/dist/theme/recipes/menu.js.map +1 -1
  519. package/dist/theme/recipes/pagination.cjs +2 -2
  520. package/dist/theme/recipes/pagination.cjs.map +1 -1
  521. package/dist/theme/recipes/pagination.js +76 -71
  522. package/dist/theme/recipes/pagination.js.map +1 -1
  523. package/dist/theme/recipes/phone-number-input.cjs +2 -2
  524. package/dist/theme/recipes/phone-number-input.cjs.map +1 -1
  525. package/dist/theme/recipes/phone-number-input.js +55 -66
  526. package/dist/theme/recipes/phone-number-input.js.map +1 -1
  527. package/dist/theme/recipes/popover.cjs +2 -2
  528. package/dist/theme/recipes/popover.cjs.map +1 -1
  529. package/dist/theme/recipes/popover.js +30 -28
  530. package/dist/theme/recipes/popover.js.map +1 -1
  531. package/dist/theme/recipes/radio-button-group.cjs +2 -2
  532. package/dist/theme/recipes/radio-button-group.cjs.map +1 -1
  533. package/dist/theme/recipes/radio-button-group.js +83 -94
  534. package/dist/theme/recipes/radio-button-group.js.map +1 -1
  535. package/dist/theme/recipes/radio-card-group.cjs +2 -2
  536. package/dist/theme/recipes/radio-card-group.cjs.map +1 -1
  537. package/dist/theme/recipes/radio-card-group.js +64 -67
  538. package/dist/theme/recipes/radio-card-group.js.map +1 -1
  539. package/dist/theme/recipes/radio-group.cjs +2 -2
  540. package/dist/theme/recipes/radio-group.cjs.map +1 -1
  541. package/dist/theme/recipes/radio-group.js +101 -118
  542. package/dist/theme/recipes/radio-group.js.map +1 -1
  543. package/dist/theme/recipes/select-language.cjs +2 -2
  544. package/dist/theme/recipes/select-language.cjs.map +1 -1
  545. package/dist/theme/recipes/select-language.js +93 -112
  546. package/dist/theme/recipes/select-language.js.map +1 -1
  547. package/dist/theme/recipes/select.cjs +2 -2
  548. package/dist/theme/recipes/select.cjs.map +1 -1
  549. package/dist/theme/recipes/select.js +194 -206
  550. package/dist/theme/recipes/select.js.map +1 -1
  551. package/dist/theme/recipes/status-tag-select.cjs +2 -2
  552. package/dist/theme/recipes/status-tag-select.cjs.map +1 -1
  553. package/dist/theme/recipes/status-tag-select.js +162 -175
  554. package/dist/theme/recipes/status-tag-select.js.map +1 -1
  555. package/dist/theme/recipes/switch-card.cjs +2 -2
  556. package/dist/theme/recipes/switch-card.cjs.map +1 -1
  557. package/dist/theme/recipes/switch-card.js +43 -42
  558. package/dist/theme/recipes/switch-card.js.map +1 -1
  559. package/dist/theme/recipes/switch.cjs +2 -2
  560. package/dist/theme/recipes/switch.cjs.map +1 -1
  561. package/dist/theme/recipes/switch.js +71 -86
  562. package/dist/theme/recipes/switch.js.map +1 -1
  563. package/dist/theme/recipes/table-container.cjs +2 -2
  564. package/dist/theme/recipes/table-container.cjs.map +1 -1
  565. package/dist/theme/recipes/table-container.js +19 -18
  566. package/dist/theme/recipes/table-container.js.map +1 -1
  567. package/dist/theme/recipes/table-empty-row.cjs +2 -2
  568. package/dist/theme/recipes/table-empty-row.cjs.map +1 -1
  569. package/dist/theme/recipes/table-empty-row.js +17 -16
  570. package/dist/theme/recipes/table-empty-row.js.map +1 -1
  571. package/dist/theme/recipes/table-group-title.cjs +2 -2
  572. package/dist/theme/recipes/table-group-title.cjs.map +1 -1
  573. package/dist/theme/recipes/table-group-title.js +26 -33
  574. package/dist/theme/recipes/table-group-title.js.map +1 -1
  575. package/dist/theme/recipes/table.cjs +2 -2
  576. package/dist/theme/recipes/table.cjs.map +1 -1
  577. package/dist/theme/recipes/table.js +111 -109
  578. package/dist/theme/recipes/table.js.map +1 -1
  579. package/dist/theme/recipes/tabs-chip.cjs +2 -2
  580. package/dist/theme/recipes/tabs-chip.cjs.map +1 -1
  581. package/dist/theme/recipes/tabs-chip.js +43 -46
  582. package/dist/theme/recipes/tabs-chip.js.map +1 -1
  583. package/dist/theme/recipes/tabs.cjs +2 -2
  584. package/dist/theme/recipes/tabs.cjs.map +1 -1
  585. package/dist/theme/recipes/tabs.js +92 -125
  586. package/dist/theme/recipes/tabs.js.map +1 -1
  587. package/dist/theme/recipes/tag.cjs +2 -2
  588. package/dist/theme/recipes/tag.cjs.map +1 -1
  589. package/dist/theme/recipes/tag.js +110 -121
  590. package/dist/theme/recipes/tag.js.map +1 -1
  591. package/dist/theme/recipes/text.cjs +2 -2
  592. package/dist/theme/recipes/text.cjs.map +1 -1
  593. package/dist/theme/recipes/text.js +25 -38
  594. package/dist/theme/recipes/text.js.map +1 -1
  595. package/dist/theme/recipes/textarea.cjs +2 -2
  596. package/dist/theme/recipes/textarea.cjs.map +1 -1
  597. package/dist/theme/recipes/textarea.js +15 -14
  598. package/dist/theme/recipes/textarea.js.map +1 -1
  599. package/dist/theme/recipes/tooltip.cjs +2 -2
  600. package/dist/theme/recipes/tooltip.cjs.map +1 -1
  601. package/dist/theme/recipes/tooltip.js +47 -62
  602. package/dist/theme/recipes/tooltip.js.map +1 -1
  603. package/dist/theme/semantic-tokens/colors.cjs +2 -2
  604. package/dist/theme/semantic-tokens/colors.cjs.map +1 -1
  605. package/dist/theme/semantic-tokens/colors.js +189 -140
  606. package/dist/theme/semantic-tokens/colors.js.map +1 -1
  607. package/dist/theme/semantic-tokens/index.cjs +2 -2
  608. package/dist/theme/semantic-tokens/index.cjs.map +1 -1
  609. package/dist/theme/semantic-tokens/index.js +7 -8
  610. package/dist/theme/semantic-tokens/index.js.map +1 -1
  611. package/dist/theme/text-styles.cjs +2 -2
  612. package/dist/theme/text-styles.cjs.map +1 -1
  613. package/dist/theme/text-styles.js +70 -87
  614. package/dist/theme/text-styles.js.map +1 -1
  615. package/dist/theme/tokens/animations.cjs +2 -2
  616. package/dist/theme/tokens/animations.cjs.map +1 -1
  617. package/dist/theme/tokens/animations.js +22 -45
  618. package/dist/theme/tokens/animations.js.map +1 -1
  619. package/dist/theme/tokens/aspect-ratios.cjs +2 -2
  620. package/dist/theme/tokens/aspect-ratios.cjs.map +1 -1
  621. package/dist/theme/tokens/aspect-ratios.js +12 -11
  622. package/dist/theme/tokens/aspect-ratios.js.map +1 -1
  623. package/dist/theme/tokens/blurs.cjs +2 -2
  624. package/dist/theme/tokens/blurs.cjs.map +1 -1
  625. package/dist/theme/tokens/blurs.js +13 -12
  626. package/dist/theme/tokens/blurs.js.map +1 -1
  627. package/dist/theme/tokens/borders.cjs +2 -2
  628. package/dist/theme/tokens/borders.cjs.map +1 -1
  629. package/dist/theme/tokens/borders.js +6 -9
  630. package/dist/theme/tokens/borders.js.map +1 -1
  631. package/dist/theme/tokens/colors.cjs +2 -2
  632. package/dist/theme/tokens/colors.cjs.map +1 -1
  633. package/dist/theme/tokens/colors.js +78 -77
  634. package/dist/theme/tokens/colors.js.map +1 -1
  635. package/dist/theme/tokens/durations.cjs +2 -2
  636. package/dist/theme/tokens/durations.cjs.map +1 -1
  637. package/dist/theme/tokens/durations.js +14 -13
  638. package/dist/theme/tokens/durations.js.map +1 -1
  639. package/dist/theme/tokens/easings.cjs +3 -3
  640. package/dist/theme/tokens/easings.cjs.map +1 -1
  641. package/dist/theme/tokens/easings.js +24 -92
  642. package/dist/theme/tokens/easings.js.map +1 -1
  643. package/dist/theme/tokens/index.cjs +2 -2
  644. package/dist/theme/tokens/index.cjs.map +1 -1
  645. package/dist/theme/tokens/index.js +36 -35
  646. package/dist/theme/tokens/index.js.map +1 -1
  647. package/dist/theme/tokens/radii.cjs +2 -2
  648. package/dist/theme/tokens/radii.cjs.map +1 -1
  649. package/dist/theme/tokens/radii.js +28 -27
  650. package/dist/theme/tokens/radii.js.map +1 -1
  651. package/dist/theme/tokens/shadows.cjs +2 -2
  652. package/dist/theme/tokens/shadows.cjs.map +1 -1
  653. package/dist/theme/tokens/shadows.js +14 -13
  654. package/dist/theme/tokens/shadows.js.map +1 -1
  655. package/dist/theme/tokens/sizes.cjs +2 -2
  656. package/dist/theme/tokens/sizes.cjs.map +1 -1
  657. package/dist/theme/tokens/sizes.js +35 -84
  658. package/dist/theme/tokens/sizes.js.map +1 -1
  659. package/dist/theme/tokens/spacing.cjs +2 -2
  660. package/dist/theme/tokens/spacing.cjs.map +1 -1
  661. package/dist/theme/tokens/spacing.js +32 -83
  662. package/dist/theme/tokens/spacing.js.map +1 -1
  663. package/dist/theme/tokens/typography.cjs +2 -2
  664. package/dist/theme/tokens/typography.cjs.map +1 -1
  665. package/dist/theme/tokens/typography.js +82 -85
  666. package/dist/theme/tokens/typography.js.map +1 -1
  667. package/dist/theme/tokens/z-index.cjs +2 -2
  668. package/dist/theme/tokens/z-index.cjs.map +1 -1
  669. package/dist/theme/tokens/z-index.js +18 -41
  670. package/dist/theme/tokens/z-index.js.map +1 -1
  671. package/dist/theme/utilities.cjs +2 -2
  672. package/dist/theme/utilities.cjs.map +1 -1
  673. package/dist/theme/utilities.js +15 -16
  674. package/dist/theme/utilities.js.map +1 -1
  675. package/dist/ui.css +2 -1
  676. package/dist/utils/slots.cjs +2 -2
  677. package/dist/utils/slots.cjs.map +1 -1
  678. package/dist/utils/slots.js +42 -40
  679. package/dist/utils/slots.js.map +1 -1
  680. package/package.json +11 -7
  681. package/dist/_virtual/_commonjsHelpers.cjs +0 -2
  682. package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
  683. package/dist/_virtual/_commonjsHelpers.js +0 -10
  684. package/dist/_virtual/_commonjsHelpers.js.map +0 -1
  685. package/dist/_virtual/cjs.cjs +0 -2
  686. package/dist/_virtual/cjs.cjs.map +0 -1
  687. package/dist/_virtual/cjs.js +0 -9
  688. package/dist/_virtual/cjs.js.map +0 -1
  689. package/dist/_virtual/lodash.cjs +0 -2
  690. package/dist/_virtual/lodash.cjs.map +0 -1
  691. package/dist/_virtual/lodash.js +0 -7
  692. package/dist/_virtual/lodash.js.map +0 -1
  693. package/dist/_virtual/lodash2.cjs +0 -2
  694. package/dist/_virtual/lodash2.cjs.map +0 -1
  695. package/dist/_virtual/lodash2.js +0 -6
  696. package/dist/_virtual/lodash2.js.map +0 -1
  697. package/dist/index.cjs.map +0 -1
  698. package/dist/index.js.map +0 -1
  699. package/dist/node_modules/@pandacss/shared/dist/index.cjs +0 -2
  700. package/dist/node_modules/@pandacss/shared/dist/index.cjs.map +0 -1
  701. package/dist/node_modules/@pandacss/shared/dist/index.js +0 -469
  702. package/dist/node_modules/@pandacss/shared/dist/index.js.map +0 -1
  703. package/dist/node_modules/@zag-js/utils/dist/functions.cjs +0 -2
  704. package/dist/node_modules/@zag-js/utils/dist/functions.cjs.map +0 -1
  705. package/dist/node_modules/@zag-js/utils/dist/functions.js +0 -6
  706. package/dist/node_modules/@zag-js/utils/dist/functions.js.map +0 -1
  707. package/dist/node_modules/lodash/lodash.cjs +0 -21
  708. package/dist/node_modules/lodash/lodash.cjs.map +0 -1
  709. package/dist/node_modules/lodash/lodash.js +0 -3686
  710. package/dist/node_modules/lodash/lodash.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxCard.cjs","sources":["../../../src/components/checkbox-card/CheckboxCard.tsx"],"sourcesContent":["import { ark, Checkbox as ArkCheckbox, type CheckboxRootProps } from '@ark-ui/react'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { splitCssProps, styled } from '@stokelp/styled-system/jsx'\nimport { checkboxCard, type CheckboxCardVariantProps } from '@stokelp/styled-system/recipes'\nimport type { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { ComponentProps, forwardRef } from 'react'\nimport { createStyleContext } from '~/utils/slots'\nimport { type CheckboxProps } from '~/components/checkbox'\nimport { CheckIcon, MinusIcon } from '~/shared/assets/icons'\n\ntype StyledCheckboxRootProps = Assign<JsxStyleProps, CheckboxRootProps>\n\nexport interface CheckboxCardProps extends Omit<StyledCheckboxRootProps, 'value'>, CheckboxCardVariantProps {\n value?: string | number\n}\n\nconst { withProvider, withContext } = createStyleContext(checkboxCard, {\n dataAttr: true,\n})\n\nconst CheckboxCardRoot = withProvider(styled(ArkCheckbox.Root))\n\nexport const CheckboxCardTitle = withContext(styled(ArkCheckbox.Label), 'title')\nexport const CheckboxCardContent = withContext(styled('div'), 'content')\nexport const CheckboxCardDescription = withContext(styled('p'), 'description')\nexport const CheckboxCardImage = withContext(styled(ark.img), 'image')\n\nexport type CheckboxCardTitleProps = ComponentProps<typeof CheckboxCardTitle>\nexport type CheckboxCardContentProps = ComponentProps<typeof CheckboxCardContent>\nexport type CheckboxCardDescriptionProps = ComponentProps<typeof CheckboxCardDescription>\nexport type CheckboxCardImageProps = ComponentProps<typeof CheckboxCardImage>\n\nexport const CheckboxCard = forwardRef<HTMLLabelElement, CheckboxProps>((props, ref) => {\n const [variantProps, checkboxProps] = checkboxCard.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(checkboxProps)\n const { children, className, ...rootProps } = localProps\n const styles = checkboxCard(variantProps)\n\n return (\n <CheckboxCardRoot\n ref={ref}\n className={cx(styles.root, css(cssProps), className)}\n {...rootProps}\n value={rootProps.value as string | undefined}\n >\n <ArkCheckbox.Control className={styles.control}>\n <ArkCheckbox.Indicator>\n <CheckIcon />\n </ArkCheckbox.Indicator>\n <ArkCheckbox.Indicator indeterminate>\n <MinusIcon />\n </ArkCheckbox.Indicator>\n </ArkCheckbox.Control>\n {children}\n <ArkCheckbox.HiddenInput />\n </CheckboxCardRoot>\n )\n})\n\nCheckboxCard.displayName = 'CheckboxCard'\n"],"names":["withProvider","withContext","createStyleContext","checkboxCard","CheckboxCardRoot","styled","ArkCheckbox","CheckboxCardTitle","CheckboxCardContent","CheckboxCardDescription","CheckboxCardImage","ark","CheckboxCard","forwardRef","props","ref","variantProps","checkboxProps","cssProps","localProps","splitCssProps","children","className","rootProps","styles","jsxs","cx","css","jsx","CheckIcon","MinusIcon"],"mappings":"0XAgBM,CAAE,aAAAA,EAAc,YAAAC,GAAgBC,EAAAA,mBAAmBC,EAAAA,aAAc,CACrE,SAAU,EACZ,CAAC,EAEKC,EAAmBJ,EAAaK,EAAAA,OAAOC,EAAAA,SAAY,IAAI,CAAC,EAEjDC,EAAoBN,EAAYI,EAAAA,OAAOC,EAAAA,SAAY,KAAK,EAAG,OAAO,EAClEE,EAAsBP,EAAYI,SAAO,KAAK,EAAG,SAAS,EAC1DI,EAA0BR,EAAYI,SAAO,GAAG,EAAG,aAAa,EAChEK,EAAoBT,EAAYI,EAAAA,OAAOM,EAAAA,IAAI,GAAG,EAAG,OAAO,EAOxDC,EAAeC,EAAAA,WAA4C,CAACC,EAAOC,IAAQ,CACtF,KAAM,CAACC,EAAcC,CAAa,EAAId,EAAAA,aAAa,kBAAkBW,CAAK,EACpE,CAACI,EAAUC,CAAU,EAAIC,EAAAA,cAAcH,CAAa,EACpD,CAAE,SAAAI,EAAU,UAAAC,EAAW,GAAGC,GAAcJ,EACxCK,EAASrB,EAAAA,aAAaa,CAAY,EAExC,OACES,EAAAA,KAACrB,EAAA,CACC,IAAAW,EACA,UAAWW,EAAAA,GAAGF,EAAO,KAAMG,EAAAA,IAAIT,CAAQ,EAAGI,CAAS,EAClD,GAAGC,EACJ,MAAOA,EAAU,MAEjB,SAAA,CAAAE,EAAAA,KAACnB,EAAAA,SAAY,QAAZ,CAAoB,UAAWkB,EAAO,QACrC,SAAA,CAAAI,MAACtB,EAAAA,SAAY,UAAZ,CACC,SAAAsB,EAAAA,IAACC,EAAAA,YAAU,EACb,EACAD,MAACtB,EAAAA,SAAY,UAAZ,CAAsB,cAAa,GAClC,SAAAsB,EAAAA,IAACE,cAAU,CAAA,CACb,CAAA,EACF,EACCT,EACDO,MAACtB,EAAAA,SAAY,YAAZ,CAAA,CAAwB,CAAA,CAAA,CAAA,CAG/B,CAAC,EAEDM,EAAa,YAAc"}
1
+ {"version":3,"file":"CheckboxCard.cjs","names":[],"sources":["../../../src/components/checkbox-card/CheckboxCard.tsx"],"sourcesContent":["import { ark, Checkbox as ArkCheckbox, type CheckboxRootProps } from '@ark-ui/react'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { splitCssProps, styled } from '@stokelp/styled-system/jsx'\nimport { checkboxCard, type CheckboxCardVariantProps } from '@stokelp/styled-system/recipes'\nimport type { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { ComponentProps, forwardRef } from 'react'\nimport { createStyleContext } from '~/utils/slots'\nimport { type CheckboxProps } from '~/components/checkbox'\nimport { CheckIcon, MinusIcon } from '~/shared/assets/icons'\n\ntype StyledCheckboxRootProps = Assign<JsxStyleProps, CheckboxRootProps>\n\nexport interface CheckboxCardProps extends Omit<StyledCheckboxRootProps, 'value'>, CheckboxCardVariantProps {\n value?: string | number\n}\n\nconst { withProvider, withContext } = createStyleContext(checkboxCard, {\n dataAttr: true,\n})\n\nconst CheckboxCardRoot = withProvider(styled(ArkCheckbox.Root))\n\nexport const CheckboxCardTitle = withContext(styled(ArkCheckbox.Label), 'title')\nexport const CheckboxCardContent = withContext(styled('div'), 'content')\nexport const CheckboxCardDescription = withContext(styled('p'), 'description')\nexport const CheckboxCardImage = withContext(styled(ark.img), 'image')\n\nexport type CheckboxCardTitleProps = ComponentProps<typeof CheckboxCardTitle>\nexport type CheckboxCardContentProps = ComponentProps<typeof CheckboxCardContent>\nexport type CheckboxCardDescriptionProps = ComponentProps<typeof CheckboxCardDescription>\nexport type CheckboxCardImageProps = ComponentProps<typeof CheckboxCardImage>\n\nexport const CheckboxCard = forwardRef<HTMLLabelElement, CheckboxProps>((props, ref) => {\n const [variantProps, checkboxProps] = checkboxCard.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(checkboxProps)\n const { children, className, ...rootProps } = localProps\n const styles = checkboxCard(variantProps)\n\n return (\n <CheckboxCardRoot\n ref={ref}\n className={cx(styles.root, css(cssProps), className)}\n {...rootProps}\n value={rootProps.value as string | undefined}\n >\n <ArkCheckbox.Control className={styles.control}>\n <ArkCheckbox.Indicator>\n <CheckIcon />\n </ArkCheckbox.Indicator>\n <ArkCheckbox.Indicator indeterminate>\n <MinusIcon />\n </ArkCheckbox.Indicator>\n </ArkCheckbox.Control>\n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,GAEtB,CAAC,EAED,EAAa,YAAc"}
@@ -1,40 +1,35 @@
1
1
  "use client";
2
- import { jsxs as i, jsx as t } from "react/jsx-runtime";
3
- import { ark as k, Checkbox as o } from "@ark-ui/react";
4
- import { cx as b, css as f } from "@stokelp/styled-system/css";
5
- import { styled as r, splitCssProps as u } from "@stokelp/styled-system/jsx";
6
- import { checkboxCard as c } from "@stokelp/styled-system/recipes";
7
- import { forwardRef as P } from "react";
8
- import { createStyleContext as I } from "../../utils/slots.js";
9
- import { CheckIcon as v, MinusIcon as y } from "../../shared/assets/icons.js";
10
- const { withProvider: N, withContext: e } = I(c, {
11
- dataAttr: !0
12
- }), g = N(r(o.Root)), T = e(r(o.Label), "title"), V = e(r("div"), "content"), q = e(r("p"), "description"), z = e(r(k.img), "image"), w = P((a, d) => {
13
- const [l, m] = c.splitVariantProps(a), [p, C] = u(m), { children: h, className: x, ...s } = C, n = c(l);
14
- return /* @__PURE__ */ i(
15
- g,
16
- {
17
- ref: d,
18
- className: b(n.root, f(p), x),
19
- ...s,
20
- value: s.value,
21
- children: [
22
- /* @__PURE__ */ i(o.Control, { className: n.control, children: [
23
- /* @__PURE__ */ t(o.Indicator, { children: /* @__PURE__ */ t(v, {}) }),
24
- /* @__PURE__ */ t(o.Indicator, { indeterminate: !0, children: /* @__PURE__ */ t(y, {}) })
25
- ] }),
26
- h,
27
- /* @__PURE__ */ t(o.HiddenInput, {})
28
- ]
29
- }
30
- );
2
+ import { createStyleContext as e } from "../../utils/slots.js";
3
+ import { CheckIcon as t, MinusIcon as n } from "../../shared/assets/icons.js";
4
+ import { Checkbox as r, ark as i } from "@ark-ui/react";
5
+ import { splitCssProps as a, styled as o } from "@stokelp/styled-system/jsx";
6
+ import { checkboxCard as s } from "@stokelp/styled-system/recipes";
7
+ import { forwardRef as c } from "react";
8
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
9
+ import { css as d, cx as f } from "@stokelp/styled-system/css";
10
+ //#region src/components/checkbox-card/CheckboxCard.tsx
11
+ var { withProvider: p, withContext: m } = e(s, { dataAttr: !0 }), h = p(o(r.Root)), g = m(o(r.Label), "title"), _ = m(o("div"), "content"), v = m(o("p"), "description"), y = m(o(i.img), "image"), b = c((e, i) => {
12
+ let [o, c] = s.splitVariantProps(e), [p, m] = a(c), { children: g, className: _, ...v } = m, y = s(o);
13
+ return /* @__PURE__ */ u(h, {
14
+ ref: i,
15
+ className: f(y.root, d(p), _),
16
+ ...v,
17
+ value: v.value,
18
+ children: [
19
+ /* @__PURE__ */ u(r.Control, {
20
+ className: y.control,
21
+ children: [/* @__PURE__ */ l(r.Indicator, { children: /* @__PURE__ */ l(t, {}) }), /* @__PURE__ */ l(r.Indicator, {
22
+ indeterminate: !0,
23
+ children: /* @__PURE__ */ l(n, {})
24
+ })]
25
+ }),
26
+ g,
27
+ /* @__PURE__ */ l(r.HiddenInput, {})
28
+ ]
29
+ });
31
30
  });
32
- w.displayName = "CheckboxCard";
33
- export {
34
- w as CheckboxCard,
35
- V as CheckboxCardContent,
36
- q as CheckboxCardDescription,
37
- z as CheckboxCardImage,
38
- T as CheckboxCardTitle
39
- };
40
- //# sourceMappingURL=CheckboxCard.js.map
31
+ b.displayName = "CheckboxCard";
32
+ //#endregion
33
+ export { b as CheckboxCard, _ as CheckboxCardContent, v as CheckboxCardDescription, y as CheckboxCardImage, g as CheckboxCardTitle };
34
+
35
+ //# sourceMappingURL=CheckboxCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxCard.js","sources":["../../../src/components/checkbox-card/CheckboxCard.tsx"],"sourcesContent":["import { ark, Checkbox as ArkCheckbox, type CheckboxRootProps } from '@ark-ui/react'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { splitCssProps, styled } from '@stokelp/styled-system/jsx'\nimport { checkboxCard, type CheckboxCardVariantProps } from '@stokelp/styled-system/recipes'\nimport type { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { ComponentProps, forwardRef } from 'react'\nimport { createStyleContext } from '~/utils/slots'\nimport { type CheckboxProps } from '~/components/checkbox'\nimport { CheckIcon, MinusIcon } from '~/shared/assets/icons'\n\ntype StyledCheckboxRootProps = Assign<JsxStyleProps, CheckboxRootProps>\n\nexport interface CheckboxCardProps extends Omit<StyledCheckboxRootProps, 'value'>, CheckboxCardVariantProps {\n value?: string | number\n}\n\nconst { withProvider, withContext } = createStyleContext(checkboxCard, {\n dataAttr: true,\n})\n\nconst CheckboxCardRoot = withProvider(styled(ArkCheckbox.Root))\n\nexport const CheckboxCardTitle = withContext(styled(ArkCheckbox.Label), 'title')\nexport const CheckboxCardContent = withContext(styled('div'), 'content')\nexport const CheckboxCardDescription = withContext(styled('p'), 'description')\nexport const CheckboxCardImage = withContext(styled(ark.img), 'image')\n\nexport type CheckboxCardTitleProps = ComponentProps<typeof CheckboxCardTitle>\nexport type CheckboxCardContentProps = ComponentProps<typeof CheckboxCardContent>\nexport type CheckboxCardDescriptionProps = ComponentProps<typeof CheckboxCardDescription>\nexport type CheckboxCardImageProps = ComponentProps<typeof CheckboxCardImage>\n\nexport const CheckboxCard = forwardRef<HTMLLabelElement, CheckboxProps>((props, ref) => {\n const [variantProps, checkboxProps] = checkboxCard.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(checkboxProps)\n const { children, className, ...rootProps } = localProps\n const styles = checkboxCard(variantProps)\n\n return (\n <CheckboxCardRoot\n ref={ref}\n className={cx(styles.root, css(cssProps), className)}\n {...rootProps}\n value={rootProps.value as string | undefined}\n >\n <ArkCheckbox.Control className={styles.control}>\n <ArkCheckbox.Indicator>\n <CheckIcon />\n </ArkCheckbox.Indicator>\n <ArkCheckbox.Indicator indeterminate>\n <MinusIcon />\n </ArkCheckbox.Indicator>\n </ArkCheckbox.Control>\n {children}\n <ArkCheckbox.HiddenInput />\n </CheckboxCardRoot>\n )\n})\n\nCheckboxCard.displayName = 'CheckboxCard'\n"],"names":["withProvider","withContext","createStyleContext","checkboxCard","CheckboxCardRoot","styled","ArkCheckbox","CheckboxCardTitle","CheckboxCardContent","CheckboxCardDescription","CheckboxCardImage","ark","CheckboxCard","forwardRef","props","ref","variantProps","checkboxProps","cssProps","localProps","splitCssProps","children","className","rootProps","styles","jsxs","cx","css","jsx","CheckIcon","MinusIcon"],"mappings":";;;;;;;;;AAgBA,MAAM,EAAE,cAAAA,GAAc,aAAAC,MAAgBC,EAAmBC,GAAc;AAAA,EACrE,UAAU;AACZ,CAAC,GAEKC,IAAmBJ,EAAaK,EAAOC,EAAY,IAAI,CAAC,GAEjDC,IAAoBN,EAAYI,EAAOC,EAAY,KAAK,GAAG,OAAO,GAClEE,IAAsBP,EAAYI,EAAO,KAAK,GAAG,SAAS,GAC1DI,IAA0BR,EAAYI,EAAO,GAAG,GAAG,aAAa,GAChEK,IAAoBT,EAAYI,EAAOM,EAAI,GAAG,GAAG,OAAO,GAOxDC,IAAeC,EAA4C,CAACC,GAAOC,MAAQ;AACtF,QAAM,CAACC,GAAcC,CAAa,IAAId,EAAa,kBAAkBW,CAAK,GACpE,CAACI,GAAUC,CAAU,IAAIC,EAAcH,CAAa,GACpD,EAAE,UAAAI,GAAU,WAAAC,GAAW,GAAGC,MAAcJ,GACxCK,IAASrB,EAAaa,CAAY;AAExC,SACE,gBAAAS;AAAA,IAACrB;AAAA,IAAA;AAAA,MACC,KAAAW;AAAA,MACA,WAAWW,EAAGF,EAAO,MAAMG,EAAIT,CAAQ,GAAGI,CAAS;AAAA,MAClD,GAAGC;AAAA,MACJ,OAAOA,EAAU;AAAA,MAEjB,UAAA;AAAA,QAAA,gBAAAE,EAACnB,EAAY,SAAZ,EAAoB,WAAWkB,EAAO,SACrC,UAAA;AAAA,UAAA,gBAAAI,EAACtB,EAAY,WAAZ,EACC,UAAA,gBAAAsB,EAACC,KAAU,GACb;AAAA,UACA,gBAAAD,EAACtB,EAAY,WAAZ,EAAsB,eAAa,IAClC,UAAA,gBAAAsB,EAACE,KAAU,EAAA,CACb;AAAA,QAAA,GACF;AAAA,QACCT;AAAA,QACD,gBAAAO,EAACtB,EAAY,aAAZ,CAAA,CAAwB;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG/B,CAAC;AAEDM,EAAa,cAAc;"}
1
+ {"version":3,"file":"CheckboxCard.js","names":[],"sources":["../../../src/components/checkbox-card/CheckboxCard.tsx"],"sourcesContent":["import { ark, Checkbox as ArkCheckbox, type CheckboxRootProps } from '@ark-ui/react'\nimport { css, cx } from '@stokelp/styled-system/css'\nimport { splitCssProps, styled } from '@stokelp/styled-system/jsx'\nimport { checkboxCard, type CheckboxCardVariantProps } from '@stokelp/styled-system/recipes'\nimport type { Assign, JsxStyleProps } from '@stokelp/styled-system/types'\nimport { ComponentProps, forwardRef } from 'react'\nimport { createStyleContext } from '~/utils/slots'\nimport { type CheckboxProps } from '~/components/checkbox'\nimport { CheckIcon, MinusIcon } from '~/shared/assets/icons'\n\ntype StyledCheckboxRootProps = Assign<JsxStyleProps, CheckboxRootProps>\n\nexport interface CheckboxCardProps extends Omit<StyledCheckboxRootProps, 'value'>, CheckboxCardVariantProps {\n value?: string | number\n}\n\nconst { withProvider, withContext } = createStyleContext(checkboxCard, {\n dataAttr: true,\n})\n\nconst CheckboxCardRoot = withProvider(styled(ArkCheckbox.Root))\n\nexport const CheckboxCardTitle = withContext(styled(ArkCheckbox.Label), 'title')\nexport const CheckboxCardContent = withContext(styled('div'), 'content')\nexport const CheckboxCardDescription = withContext(styled('p'), 'description')\nexport const CheckboxCardImage = withContext(styled(ark.img), 'image')\n\nexport type CheckboxCardTitleProps = ComponentProps<typeof CheckboxCardTitle>\nexport type CheckboxCardContentProps = ComponentProps<typeof CheckboxCardContent>\nexport type CheckboxCardDescriptionProps = ComponentProps<typeof CheckboxCardDescription>\nexport type CheckboxCardImageProps = ComponentProps<typeof CheckboxCardImage>\n\nexport const CheckboxCard = forwardRef<HTMLLabelElement, CheckboxProps>((props, ref) => {\n const [variantProps, checkboxProps] = checkboxCard.splitVariantProps(props)\n const [cssProps, localProps] = splitCssProps(checkboxProps)\n const { children, className, ...rootProps } = localProps\n const styles = checkboxCard(variantProps)\n\n return (\n <CheckboxCardRoot\n ref={ref}\n className={cx(styles.root, css(cssProps), className)}\n {...rootProps}\n value={rootProps.value as string | undefined}\n >\n <ArkCheckbox.Control className={styles.control}>\n <ArkCheckbox.Indicator>\n <CheckIcon />\n </ArkCheckbox.Indicator>\n <ArkCheckbox.Indicator indeterminate>\n <MinusIcon />\n </ArkCheckbox.Indicator>\n </ArkCheckbox.Control>\n {children}\n <ArkCheckbox.HiddenInput />\n </CheckboxCardRoot>\n )\n})\n\nCheckboxCard.displayName = 'CheckboxCard'\n"],"mappings":";;;;;;;;;;AAgBA,IAAM,EAAE,iBAAc,mBAAgB,EAAmB,GAAc,EACrE,UAAU,GACZ,CAAC,GAEK,IAAmB,EAAa,EAAO,EAAY,IAAI,CAAC,GAEjD,IAAoB,EAAY,EAAO,EAAY,KAAK,GAAG,OAAO,GAClE,IAAsB,EAAY,EAAO,KAAK,GAAG,SAAS,GAC1D,IAA0B,EAAY,EAAO,GAAG,GAAG,aAAa,GAChE,IAAoB,EAAY,EAAO,EAAI,GAAG,GAAG,OAAO,GAOxD,IAAe,GAA6C,GAAO,MAAQ;CACtF,IAAM,CAAC,GAAc,KAAiB,EAAa,kBAAkB,CAAK,GACpE,CAAC,GAAU,KAAc,EAAc,CAAa,GACpD,EAAE,aAAU,cAAW,GAAG,MAAc,GACxC,IAAS,EAAa,CAAY;CAExC,OACE,kBAAC,GAAD;EACO;EACL,WAAW,EAAG,EAAO,MAAM,EAAI,CAAQ,GAAG,CAAS;EACnD,GAAI;EACJ,OAAO,EAAU;YAJnB;GAME,kBAAC,EAAY,SAAb;IAAqB,WAAW,EAAO;cAAvC,CACE,kBAAC,EAAY,WAAb,EAAA,UACE,kBAAC,GAAD,CAAY,CAAA,EACS,CAAA,GACvB,kBAAC,EAAY,WAAb;KAAuB,eAAA;eACrB,kBAAC,GAAD,CAAY,CAAA;IACS,CAAA,CACJ;;GACpB;GACD,kBAAC,EAAY,aAAb,CAA0B,CAAA;EACV;;AAEtB,CAAC;AAED,EAAa,cAAc"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CheckboxCard.cjs");exports.Content=e.CheckboxCardContent;exports.Description=e.CheckboxCardDescription;exports.Image=e.CheckboxCardImage;exports.Root=e.CheckboxCard;exports.Title=e.CheckboxCardTitle;
2
- //# sourceMappingURL=namespace.cjs.map
1
+ "use client";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("./CheckboxCard.cjs");var n=e.__exportAll({Content:()=>t.CheckboxCardContent,Description:()=>t.CheckboxCardDescription,Image:()=>t.CheckboxCardImage,Root:()=>t.CheckboxCard,Title:()=>t.CheckboxCardTitle});Object.defineProperty(exports,"namespace_exports",{enumerable:!0,get:function(){return n}});
2
+ //# sourceMappingURL=namespace.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"namespace.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"namespace.cjs","names":[],"sources":["../../../src/components/checkbox-card/namespace.ts"],"sourcesContent":["export {\n CheckboxCard as Root,\n CheckboxCardContent as Content,\n CheckboxCardTitle as Title,\n CheckboxCardDescription as Description,\n CheckboxCardImage as Image,\n} from './CheckboxCard'\n\nexport type {\n CheckboxCardProps as RootProps,\n CheckboxCardContentProps as ContentProps,\n CheckboxCardTitleProps as TitleProps,\n CheckboxCardDescriptionProps as DescriptionProps,\n CheckboxCardImageProps as ImageProps,\n} from './CheckboxCard'\n"],"mappings":""}
@@ -1,10 +1,15 @@
1
1
  "use client";
2
- import { CheckboxCardContent as a, CheckboxCardDescription as C, CheckboxCardImage as t, CheckboxCard as r, CheckboxCardTitle as c } from "./CheckboxCard.js";
3
- export {
4
- a as Content,
5
- C as Description,
6
- t as Image,
7
- r as Root,
8
- c as Title
9
- };
10
- //# sourceMappingURL=namespace.js.map
2
+ import { __exportAll as e } from "../../_virtual/_rolldown/runtime.js";
3
+ import { CheckboxCard as t, CheckboxCardContent as n, CheckboxCardDescription as r, CheckboxCardImage as i, CheckboxCardTitle as a } from "./CheckboxCard.js";
4
+ //#region src/components/checkbox-card/namespace.ts
5
+ var o = /* @__PURE__ */ e({
6
+ Content: () => n,
7
+ Description: () => r,
8
+ Image: () => i,
9
+ Root: () => t,
10
+ Title: () => a
11
+ });
12
+ //#endregion
13
+ export { o as namespace_exports };
14
+
15
+ //# sourceMappingURL=namespace.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"namespace.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"namespace.js","names":[],"sources":["../../../src/components/checkbox-card/namespace.ts"],"sourcesContent":["export {\n CheckboxCard as Root,\n CheckboxCardContent as Content,\n CheckboxCardTitle as Title,\n CheckboxCardDescription as Description,\n CheckboxCardImage as Image,\n} from './CheckboxCard'\n\nexport type {\n CheckboxCardProps as RootProps,\n CheckboxCardContentProps as ContentProps,\n CheckboxCardTitleProps as TitleProps,\n CheckboxCardDescriptionProps as DescriptionProps,\n CheckboxCardImageProps as ImageProps,\n} from './CheckboxCard'\n"],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),t=require("@ark-ui/react"),e=require("@stokelp/styled-system/jsx"),s=require("@stokelp/styled-system/recipes"),o=require("../../utils/slots.cjs"),{withProvider:n,withContext:r}=o.createStyleContext(s.chip),l=n(e.styled(t.ark.span),"root"),a=r(e.styled("img"),"avatar"),c=r(e.styled(t.ark.span),"body"),h=r(e.styled(t.ark.button),"clearTrigger",{defaultProps:{type:"button",children:i.jsx("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{d:"M11.0833 3.73917L10.2608 2.91667L6.99996 6.17751L3.73913 2.91667L2.91663 3.73917L6.17746 7L2.91663 10.2608L3.73913 11.0833L6.99996 7.8225L10.2608 11.0833L11.0833 10.2608L7.82246 7L11.0833 3.73917Z",fill:"currentColor"})})}});exports.Chip=l;exports.ChipAvatar=a;exports.ChipClearTrigger=h;exports.ChipLabel=c;
2
- //# sourceMappingURL=Chip.cjs.map
1
+ "use client";const e=require("../../utils/slots.cjs");let t=require("@ark-ui/react"),n=require("@stokelp/styled-system/jsx"),r=require("@stokelp/styled-system/recipes"),i=require("react/jsx-runtime");var{withProvider:a,withContext:o}=e.createStyleContext(r.chip),s=a((0,n.styled)(t.ark.span),`root`),c=o((0,n.styled)(`img`),`avatar`),l=o((0,n.styled)(t.ark.span),`body`),u=o((0,n.styled)(t.ark.button),`clearTrigger`,{defaultProps:{type:`button`,children:(0,i.jsx)(`svg`,{width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,i.jsx)(`path`,{d:`M11.0833 3.73917L10.2608 2.91667L6.99996 6.17751L3.73913 2.91667L2.91663 3.73917L6.17746 7L2.91663 10.2608L3.73913 11.0833L6.99996 7.8225L10.2608 11.0833L11.0833 10.2608L7.82246 7L11.0833 3.73917Z`,fill:`currentColor`})})}});exports.Chip=s,exports.ChipAvatar=c,exports.ChipClearTrigger=u,exports.ChipLabel=l;
2
+ //# sourceMappingURL=Chip.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.cjs","sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { chip } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { type ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(chip)\n\nexport const Chip = withProvider(styled(ark.span), 'root')\nexport const ChipAvatar = withContext(styled('img'), 'avatar')\nexport const ChipLabel = withContext(styled(ark.span), 'body')\nexport const ChipClearTrigger = withContext(styled(ark.button), 'clearTrigger', {\n defaultProps: {\n type: 'button',\n children: (\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M11.0833 3.73917L10.2608 2.91667L6.99996 6.17751L3.73913 2.91667L2.91663 3.73917L6.17746 7L2.91663 10.2608L3.73913 11.0833L6.99996 7.8225L10.2608 11.0833L11.0833 10.2608L7.82246 7L11.0833 3.73917Z\"\n fill=\"currentColor\"\n />\n </svg>\n ),\n },\n})\n\nexport interface ChipProps extends ComponentProps<typeof Chip> {}\nexport interface ChipAvatarProps extends ComponentProps<typeof ChipAvatar> {}\nexport interface ChipLabelProps extends ComponentProps<typeof ChipLabel> {}\nexport interface ChipClearTriggerProps extends ComponentProps<typeof ChipClearTrigger> {}\n"],"names":["withProvider","withContext","createStyleContext","chip","Chip","styled","ark","ChipAvatar","ChipLabel","ChipClearTrigger","jsx"],"mappings":"oRAMM,CAAE,aAAAA,EAAc,YAAAC,GAAgBC,EAAAA,mBAAmBC,EAAAA,IAAI,EAEhDC,EAAOJ,EAAaK,EAAAA,OAAOC,EAAAA,IAAI,IAAI,EAAG,MAAM,EAC5CC,EAAaN,EAAYI,SAAO,KAAK,EAAG,QAAQ,EAChDG,EAAYP,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,IAAI,EAAG,MAAM,EAChDG,EAAmBR,EAAYI,EAAAA,OAAOC,EAAAA,IAAI,MAAM,EAAG,eAAgB,CAC9E,aAAc,CACZ,KAAM,SACN,SACEI,EAAAA,IAAC,MAAA,CAAI,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,MAAM,6BAChE,SAAAA,EAAAA,IAAC,OAAA,CACC,EAAE,uMACF,KAAK,cAAA,CAAA,CACP,CACF,CAAA,CAGN,CAAC"}
1
+ {"version":3,"file":"Chip.cjs","names":[],"sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { chip } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { type ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(chip)\n\nexport const Chip = withProvider(styled(ark.span), 'root')\nexport const ChipAvatar = withContext(styled('img'), 'avatar')\nexport const ChipLabel = withContext(styled(ark.span), 'body')\nexport const ChipClearTrigger = withContext(styled(ark.button), 'clearTrigger', {\n defaultProps: {\n type: 'button',\n children: (\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M11.0833 3.73917L10.2608 2.91667L6.99996 6.17751L3.73913 2.91667L2.91663 3.73917L6.17746 7L2.91663 10.2608L3.73913 11.0833L6.99996 7.8225L10.2608 11.0833L11.0833 10.2608L7.82246 7L11.0833 3.73917Z\"\n fill=\"currentColor\"\n />\n </svg>\n ),\n },\n})\n\nexport interface ChipProps extends ComponentProps<typeof Chip> {}\nexport interface ChipAvatarProps extends ComponentProps<typeof ChipAvatar> {}\nexport interface ChipLabelProps extends ComponentProps<typeof ChipLabel> {}\nexport interface ChipClearTriggerProps extends ComponentProps<typeof ChipClearTrigger> {}\n"],"mappings":"wMAMA,GAAM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,IAAI,EAEhD,EAAO,GAAA,EAAA,EAAA,QAAoB,EAAA,IAAI,IAAI,EAAG,MAAM,EAC5C,EAAa,GAAA,EAAA,EAAA,QAAmB,KAAK,EAAG,QAAQ,EAChD,EAAY,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,IAAI,EAAG,MAAM,EAChD,EAAmB,GAAA,EAAA,EAAA,QAAmB,EAAA,IAAI,MAAM,EAAG,eAAgB,CAC9E,aAAc,CACZ,KAAM,SACN,UACE,EAAA,EAAA,KAAC,MAAD,CAAK,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OAAO,MAAM,uCAChE,EAAA,EAAA,KAAC,OAAD,CACE,EAAE,uMACF,KAAK,cACN,CAAA,CACE,CAAA,CAET,CACF,CAAC"}
@@ -1,25 +1,25 @@
1
1
  "use client";
2
+ import { createStyleContext as e } from "../../utils/slots.js";
3
+ import { ark as t } from "@ark-ui/react";
4
+ import { styled as n } from "@stokelp/styled-system/jsx";
5
+ import { chip as r } from "@stokelp/styled-system/recipes";
2
6
  import { jsx as i } from "react/jsx-runtime";
3
- import { ark as r } from "@ark-ui/react";
4
- import { styled as t } from "@stokelp/styled-system/jsx";
5
- import { chip as e } from "@stokelp/styled-system/recipes";
6
- import { createStyleContext as n } from "../../utils/slots.js";
7
- const { withProvider: p, withContext: o } = n(e), c = p(t(r.span), "root"), m = o(t("img"), "avatar"), g = o(t(r.span), "body"), d = o(t(r.button), "clearTrigger", {
8
- defaultProps: {
9
- type: "button",
10
- children: /* @__PURE__ */ i("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ i(
11
- "path",
12
- {
13
- d: "M11.0833 3.73917L10.2608 2.91667L6.99996 6.17751L3.73913 2.91667L2.91663 3.73917L6.17746 7L2.91663 10.2608L3.73913 11.0833L6.99996 7.8225L10.2608 11.0833L11.0833 10.2608L7.82246 7L11.0833 3.73917Z",
14
- fill: "currentColor"
15
- }
16
- ) })
17
- }
18
- });
19
- export {
20
- c as Chip,
21
- m as ChipAvatar,
22
- d as ChipClearTrigger,
23
- g as ChipLabel
24
- };
25
- //# sourceMappingURL=Chip.js.map
7
+ //#region src/components/chip/Chip.tsx
8
+ var { withProvider: a, withContext: o } = e(r), s = a(n(t.span), "root"), c = o(n("img"), "avatar"), l = o(n(t.span), "body"), u = o(n(t.button), "clearTrigger", { defaultProps: {
9
+ type: "button",
10
+ children: /* @__PURE__ */ i("svg", {
11
+ width: "14",
12
+ height: "14",
13
+ viewBox: "0 0 14 14",
14
+ fill: "none",
15
+ xmlns: "http://www.w3.org/2000/svg",
16
+ children: /* @__PURE__ */ i("path", {
17
+ d: "M11.0833 3.73917L10.2608 2.91667L6.99996 6.17751L3.73913 2.91667L2.91663 3.73917L6.17746 7L2.91663 10.2608L3.73913 11.0833L6.99996 7.8225L10.2608 11.0833L11.0833 10.2608L7.82246 7L11.0833 3.73917Z",
18
+ fill: "currentColor"
19
+ })
20
+ })
21
+ } });
22
+ //#endregion
23
+ export { s as Chip, c as ChipAvatar, u as ChipClearTrigger, l as ChipLabel };
24
+
25
+ //# sourceMappingURL=Chip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.js","sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { chip } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { type ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(chip)\n\nexport const Chip = withProvider(styled(ark.span), 'root')\nexport const ChipAvatar = withContext(styled('img'), 'avatar')\nexport const ChipLabel = withContext(styled(ark.span), 'body')\nexport const ChipClearTrigger = withContext(styled(ark.button), 'clearTrigger', {\n defaultProps: {\n type: 'button',\n children: (\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M11.0833 3.73917L10.2608 2.91667L6.99996 6.17751L3.73913 2.91667L2.91663 3.73917L6.17746 7L2.91663 10.2608L3.73913 11.0833L6.99996 7.8225L10.2608 11.0833L11.0833 10.2608L7.82246 7L11.0833 3.73917Z\"\n fill=\"currentColor\"\n />\n </svg>\n ),\n },\n})\n\nexport interface ChipProps extends ComponentProps<typeof Chip> {}\nexport interface ChipAvatarProps extends ComponentProps<typeof ChipAvatar> {}\nexport interface ChipLabelProps extends ComponentProps<typeof ChipLabel> {}\nexport interface ChipClearTriggerProps extends ComponentProps<typeof ChipClearTrigger> {}\n"],"names":["withProvider","withContext","createStyleContext","chip","Chip","styled","ark","ChipAvatar","ChipLabel","ChipClearTrigger","jsx"],"mappings":";;;;;;AAMA,MAAM,EAAE,cAAAA,GAAc,aAAAC,MAAgBC,EAAmBC,CAAI,GAEhDC,IAAOJ,EAAaK,EAAOC,EAAI,IAAI,GAAG,MAAM,GAC5CC,IAAaN,EAAYI,EAAO,KAAK,GAAG,QAAQ,GAChDG,IAAYP,EAAYI,EAAOC,EAAI,IAAI,GAAG,MAAM,GAChDG,IAAmBR,EAAYI,EAAOC,EAAI,MAAM,GAAG,gBAAgB;AAAA,EAC9E,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,UACE,gBAAAI,EAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAChE,UAAA,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAE;AAAA,QACF,MAAK;AAAA,MAAA;AAAA,IAAA,EACP,CACF;AAAA,EAAA;AAGN,CAAC;"}
1
+ {"version":3,"file":"Chip.js","names":[],"sources":["../../../src/components/chip/Chip.tsx"],"sourcesContent":["import { ark } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { chip } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { type ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(chip)\n\nexport const Chip = withProvider(styled(ark.span), 'root')\nexport const ChipAvatar = withContext(styled('img'), 'avatar')\nexport const ChipLabel = withContext(styled(ark.span), 'body')\nexport const ChipClearTrigger = withContext(styled(ark.button), 'clearTrigger', {\n defaultProps: {\n type: 'button',\n children: (\n <svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n d=\"M11.0833 3.73917L10.2608 2.91667L6.99996 6.17751L3.73913 2.91667L2.91663 3.73917L6.17746 7L2.91663 10.2608L3.73913 11.0833L6.99996 7.8225L10.2608 11.0833L11.0833 10.2608L7.82246 7L11.0833 3.73917Z\"\n fill=\"currentColor\"\n />\n </svg>\n ),\n },\n})\n\nexport interface ChipProps extends ComponentProps<typeof Chip> {}\nexport interface ChipAvatarProps extends ComponentProps<typeof ChipAvatar> {}\nexport interface ChipLabelProps extends ComponentProps<typeof ChipLabel> {}\nexport interface ChipClearTriggerProps extends ComponentProps<typeof ChipClearTrigger> {}\n"],"mappings":";;;;;;;AAMA,IAAM,EAAE,iBAAc,mBAAgB,EAAmB,CAAI,GAEhD,IAAO,EAAa,EAAO,EAAI,IAAI,GAAG,MAAM,GAC5C,IAAa,EAAY,EAAO,KAAK,GAAG,QAAQ,GAChD,IAAY,EAAY,EAAO,EAAI,IAAI,GAAG,MAAM,GAChD,IAAmB,EAAY,EAAO,EAAI,MAAM,GAAG,gBAAgB,EAC9E,cAAc;CACZ,MAAM;CACN,UACE,kBAAC,OAAD;EAAK,OAAM;EAAK,QAAO;EAAK,SAAQ;EAAY,MAAK;EAAO,OAAM;YAChE,kBAAC,QAAD;GACE,GAAE;GACF,MAAK;EACN,CAAA;CACE,CAAA;AAET,EACF,CAAC"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@ark-ui/react"),r=require("@stokelp/styled-system/recipes"),t=require("@stokelp/styled-system/jsx"),s=require("../../utils/slots.cjs"),{withProvider:l,withContext:o}=s.createStyleContext(r.collapsible),n=l(t.styled(e.Collapsible.Root),"root"),i=o(t.styled(e.Collapsible.Content),"content"),c=o(t.styled(e.Collapsible.Trigger),"trigger");exports.Content=i;exports.Root=n;exports.Trigger=c;
2
- //# sourceMappingURL=styled.cjs.map
1
+ "use client";const e=require("../../_virtual/_rolldown/runtime.cjs"),t=require("../../utils/slots.cjs");let n=require("@ark-ui/react"),r=require("@stokelp/styled-system/jsx"),i=require("@stokelp/styled-system/recipes");var a=e.__exportAll({Content:()=>l,Root:()=>c,Trigger:()=>u}),{withProvider:o,withContext:s}=t.createStyleContext(i.collapsible),c=o((0,r.styled)(n.Collapsible.Root),`root`),l=s((0,r.styled)(n.Collapsible.Content),`content`),u=s((0,r.styled)(n.Collapsible.Trigger),`trigger`);Object.defineProperty(exports,"styled_exports",{enumerable:!0,get:function(){return a}});
2
+ //# sourceMappingURL=styled.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.cjs","sources":["../../../src/components/collapsible/styled.ts"],"sourcesContent":["import { Collapsible as ArkCollapsible } from '@ark-ui/react'\nimport { collapsible } from '@stokelp/styled-system/recipes'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(collapsible)\n\nexport const Root = withProvider(styled(ArkCollapsible.Root), 'root')\nexport const Content = withContext(styled(ArkCollapsible.Content), 'content')\nexport const Trigger = withContext(styled(ArkCollapsible.Trigger), 'trigger')\n\nexport interface CollapsibleProps extends ComponentProps<typeof Root> {}\nexport interface CollapsibleContentProps extends ComponentProps<typeof Content> {}\nexport interface CollapsibleTriggerProps extends ComponentProps<typeof Trigger> {}\n"],"names":["withProvider","withContext","createStyleContext","collapsible","Root","styled","ArkCollapsible","Content","Trigger"],"mappings":"qPAMM,CAAE,aAAAA,EAAc,YAAAC,GAAgBC,EAAAA,mBAAmBC,EAAAA,WAAW,EAEvDC,EAAOJ,EAAaK,EAAAA,OAAOC,EAAAA,YAAe,IAAI,EAAG,MAAM,EACvDC,EAAUN,EAAYI,EAAAA,OAAOC,EAAAA,YAAe,OAAO,EAAG,SAAS,EAC/DE,EAAUP,EAAYI,EAAAA,OAAOC,EAAAA,YAAe,OAAO,EAAG,SAAS"}
1
+ {"version":3,"file":"styled.cjs","names":[],"sources":["../../../src/components/collapsible/styled.ts"],"sourcesContent":["import { Collapsible as ArkCollapsible } from '@ark-ui/react'\nimport { collapsible } from '@stokelp/styled-system/recipes'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(collapsible)\n\nexport const Root = withProvider(styled(ArkCollapsible.Root), 'root')\nexport const Content = withContext(styled(ArkCollapsible.Content), 'content')\nexport const Trigger = withContext(styled(ArkCollapsible.Trigger), 'trigger')\n\nexport interface CollapsibleProps extends ComponentProps<typeof Root> {}\nexport interface CollapsibleContentProps extends ComponentProps<typeof Content> {}\nexport interface CollapsibleTriggerProps extends ComponentProps<typeof Trigger> {}\n"],"mappings":"yRAMM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,WAAW,EAEvD,EAAO,GAAA,EAAA,EAAA,QAAoB,EAAA,YAAe,IAAI,EAAG,MAAM,EACvD,EAAU,GAAA,EAAA,EAAA,QAAmB,EAAA,YAAe,OAAO,EAAG,SAAS,EAC/D,EAAU,GAAA,EAAA,EAAA,QAAmB,EAAA,YAAe,OAAO,EAAG,SAAS"}
@@ -1,12 +1,16 @@
1
1
  "use client";
2
- import { Collapsible as t } from "@ark-ui/react";
3
- import { collapsible as e } from "@stokelp/styled-system/recipes";
4
- import { styled as o } from "@stokelp/styled-system/jsx";
5
- import { createStyleContext as i } from "../../utils/slots.js";
6
- const { withProvider: n, withContext: r } = i(e), p = n(o(t.Root), "root"), g = r(o(t.Content), "content"), C = r(o(t.Trigger), "trigger");
7
- export {
8
- g as Content,
9
- p as Root,
10
- C as Trigger
11
- };
12
- //# sourceMappingURL=styled.js.map
2
+ import { __exportAll as e } from "../../_virtual/_rolldown/runtime.js";
3
+ import { createStyleContext as t } from "../../utils/slots.js";
4
+ import { Collapsible as n } from "@ark-ui/react";
5
+ import { styled as r } from "@stokelp/styled-system/jsx";
6
+ import { collapsible as i } from "@stokelp/styled-system/recipes";
7
+ //#region src/components/collapsible/styled.ts
8
+ var a = /* @__PURE__ */ e({
9
+ Content: () => l,
10
+ Root: () => c,
11
+ Trigger: () => u
12
+ }), { withProvider: o, withContext: s } = t(i), c = o(r(n.Root), "root"), l = s(r(n.Content), "content"), u = s(r(n.Trigger), "trigger");
13
+ //#endregion
14
+ export { a as styled_exports };
15
+
16
+ //# sourceMappingURL=styled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","sources":["../../../src/components/collapsible/styled.ts"],"sourcesContent":["import { Collapsible as ArkCollapsible } from '@ark-ui/react'\nimport { collapsible } from '@stokelp/styled-system/recipes'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(collapsible)\n\nexport const Root = withProvider(styled(ArkCollapsible.Root), 'root')\nexport const Content = withContext(styled(ArkCollapsible.Content), 'content')\nexport const Trigger = withContext(styled(ArkCollapsible.Trigger), 'trigger')\n\nexport interface CollapsibleProps extends ComponentProps<typeof Root> {}\nexport interface CollapsibleContentProps extends ComponentProps<typeof Content> {}\nexport interface CollapsibleTriggerProps extends ComponentProps<typeof Trigger> {}\n"],"names":["withProvider","withContext","createStyleContext","collapsible","Root","styled","ArkCollapsible","Content","Trigger"],"mappings":";;;;;AAMA,MAAM,EAAE,cAAAA,GAAc,aAAAC,MAAgBC,EAAmBC,CAAW,GAEvDC,IAAOJ,EAAaK,EAAOC,EAAe,IAAI,GAAG,MAAM,GACvDC,IAAUN,EAAYI,EAAOC,EAAe,OAAO,GAAG,SAAS,GAC/DE,IAAUP,EAAYI,EAAOC,EAAe,OAAO,GAAG,SAAS;"}
1
+ {"version":3,"file":"styled.js","names":[],"sources":["../../../src/components/collapsible/styled.ts"],"sourcesContent":["import { Collapsible as ArkCollapsible } from '@ark-ui/react'\nimport { collapsible } from '@stokelp/styled-system/recipes'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps } from 'react'\n\nconst { withProvider, withContext } = createStyleContext(collapsible)\n\nexport const Root = withProvider(styled(ArkCollapsible.Root), 'root')\nexport const Content = withContext(styled(ArkCollapsible.Content), 'content')\nexport const Trigger = withContext(styled(ArkCollapsible.Trigger), 'trigger')\n\nexport interface CollapsibleProps extends ComponentProps<typeof Root> {}\nexport interface CollapsibleContentProps extends ComponentProps<typeof Content> {}\nexport interface CollapsibleTriggerProps extends ComponentProps<typeof Trigger> {}\n"],"mappings":";;;;;;;;;;;IAMM,EAAE,iBAAc,mBAAgB,EAAmB,CAAW,GAEvD,IAAO,EAAa,EAAO,EAAe,IAAI,GAAG,MAAM,GACvD,IAAU,EAAY,EAAO,EAAe,OAAO,GAAG,SAAS,GAC/D,IAAU,EAAY,EAAO,EAAe,OAAO,GAAG,SAAS"}
@@ -1,2 +1,2 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("@ark-ui/react"),a=require("react"),s=require("@stokelp/styled-system/jsx"),_=require("../../_virtual/lodash.cjs"),H=require("@stokelp/styled-system/recipes"),F=require("../../utils/slots.cjs"),w=require("../../shared/ConditionalWrapper.cjs"),q=require("../text/Text.cjs"),I=require("../tooltip/Tooltip.cjs"),U=require("react-window"),P=require("@stokelp/styled-system/css"),ee=require("../input/Input.cjs"),{withProvider:te,withContext:u}=F.createStyleContext(H.combobox),oe=te(s.styled(n.Combobox.Root),"root",{defaultProps:{loopFocus:!0}}),ne=u(s.styled(n.Combobox.ClearTrigger),"clearTrigger"),le=u(s.styled(n.Combobox.Content),"content"),re=u(s.styled(n.Combobox.Input),"input"),se=u(s.styled(n.Combobox.Control),"control"),R=u(s.styled(n.Combobox.Item),"item"),ie=u(s.styled(n.Combobox.ItemText),"itemText"),ce=u(s.styled(n.Combobox.Positioner),"positioner"),ue=u(s.styled(n.Combobox.Trigger),"trigger"),ae=()=>e.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{x:"0.5",y:"1",width:"15",height:"15",rx:"3.5",fill:"white"}),e.jsx("rect",{x:"0.5",y:"1",width:"15",height:"15",rx:"3.5",className:P.css({stroke:"grey.100"})})]}),de=()=>e.jsxs("svg",{width:"16",height:"17",viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{y:"0.5",width:"16",height:"16",rx:"4",className:P.css({fill:"primary.500"})}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.958 4.81298C12.1303 4.92787 12.1769 5.16069 12.062 5.33301L7.56202 12.083C7.4997 12.1765 7.39875 12.2371 7.28695 12.2482C7.17515 12.2592 7.06428 12.2196 6.98483 12.1402L3.98483 9.14017C3.83839 8.99372 3.83839 8.75628 3.98483 8.60984C4.13128 8.46339 4.36872 8.46339 4.51517 8.60984L7.19172 11.2864L11.438 4.91699C11.5529 4.74467 11.7857 4.6981 11.958 4.81298Z",fill:"white"})]});function S({item:r,isMultiple:i,renderItem:d}){const p=n.useComboboxItemContext();return e.jsxs(e.Fragment,{children:[i?p.selected?e.jsx(de,{}):e.jsx(ae,{}):null,d?d(r):e.jsx(ie,{truncate:!0,children:r.label})]})}const he=({items:r=[],initialItems:i,debounceMs:d=0,placeholder:p,emptyLabel:W,loadingLabel:k,usePortal:Z=!0,withAutoFilter:C=!0,positioning:B,loadItems:g,renderItem:f,onResetInitialItems:m,isLoading:O,value:V,openDropdownOnFocus:z=!0,clearValueWhenEmpty:E=!0,virtualized:N,rowHeight:y=34,returnItemsOnEmpty:Q,...v})=>{const[$,h]=a.useState(()=>r),[A,L]=a.useState(!1),[D,G]=a.useState(!1),j=typeof g=="function",x=a.useMemo(()=>g?_.lodashExports.debounce(async t=>{try{G(!0),L(!0);const o=await g(t);h(o)}catch(o){console.error(o),h([])}finally{L(!1)}},d):null,[g,d]),l=[...$,...i??[]],J=a.useCallback(async t=>{i&&i.length>0&&!i.find(c=>c.label===t.inputValue)&&m?.();const{inputValue:o}=t;if(x)x(o);else{const c=C&&o!==""?r.filter(Y=>Y.label.toLowerCase().includes(o.toLowerCase())):r;if(c.length===0&&Q)return h(r);h(c)}},[x,r,C]);a.useEffect(()=>{!C&&!x&&h(r)},[r,C,x]);const K=a.useMemo(()=>n.createListCollection({items:l}),[l]),X=O??A,T=k??e.jsx(q.Text,{p:"space-8",textAlign:"center",children:"Chargement..."}),M=W??e.jsx(q.Text,{p:"space-8",textAlign:"center",children:"Aucun résultat"}),b=!1;return e.jsxs(oe,{lazyMount:!0,unmountOnExit:!0,collection:K,positioning:{sameWidth:!0,gutter:0,...B},"data-recipe":"combobox",onInputValueChange:J,value:V,...v,multiple:b,children:[e.jsxs(se,{children:[e.jsx(n.Combobox.Context,{children:t=>e.jsx(re,{asChild:!0,placeholder:p,onInput:o=>{const c=o.currentTarget.value;E&&c===""&&t.clearValue()},onFocus:()=>{!z||j||t.setOpen(!0)},children:e.jsx(ee.Input,{})})}),e.jsx(ue,{asChild:!0,hidden:j&&(!i||i.length===0),children:e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z",fill:"currentColor"})})}),e.jsx(ne,{disabled:v.readOnly,onClick:m,asChild:!0,children:e.jsx("button",{children:e.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM7.68306 7.68306C7.92714 7.43898 8.32286 7.43898 8.56694 7.68306L10 9.11612L11.4331 7.68306C11.6771 7.43898 12.0729 7.43898 12.3169 7.68306C12.561 7.92714 12.561 8.32286 12.3169 8.56694L10.8839 10L12.3169 11.4331C12.561 11.6771 12.561 12.0729 12.3169 12.3169C12.0729 12.561 11.6771 12.561 11.4331 12.3169L10 10.8839L8.56694 12.3169C8.32286 12.561 7.92714 12.561 7.68306 12.3169C7.43898 12.0729 7.43898 11.6771 7.68306 11.4331L9.11612 10L7.68306 8.56694C7.43898 8.32286 7.43898 7.92714 7.68306 7.68306Z",fill:"currentColor"})})})})]}),e.jsx(w.ConditionalWrapper,{when:Z,wrapper:t=>e.jsx(n.Portal,{children:t}),children:e.jsx(ce,{children:e.jsx(le,{children:X?T:l.length===0?e.jsx(e.Fragment,{children:j?D?M:T:M}):N?e.jsx(e.Fragment,{children:e.jsx(U.FixedSizeList,{height:Math.min(y*l.length,180),itemCount:l.length,itemSize:y,width:"100%",children:({index:t,style:o})=>e.jsx(w.ConditionalWrapper,{when:!!l[t].tooltip,wrapper:c=>e.jsx(I.Tooltip,{label:l[t].tooltip,children:c}),children:e.jsx(R,{item:l[t],style:o,children:e.jsx(S,{renderItem:f,item:l[t],isMultiple:b})},l[t].value)},l[t].value)})}):l.map(t=>e.jsx(w.ConditionalWrapper,{when:!!t.tooltip,wrapper:o=>e.jsx(I.Tooltip,{label:t.tooltip,children:o}),children:e.jsx(R,{item:t,children:e.jsx(S,{renderItem:f,item:t,isMultiple:b})},t.value)},t.value))})})})]})};exports.Combobox=he;
2
- //# sourceMappingURL=Combobox.cjs.map
1
+ "use client";const e=require("../../utils/slots.cjs"),t=require("../tooltip/Tooltip.cjs"),n=require("../text/Text.cjs"),r=require("../../shared/ConditionalWrapper.cjs"),i=require("../input/Input.cjs");let a=require("@ark-ui/react"),o=require("@stokelp/styled-system/jsx"),s=require("@stokelp/styled-system/recipes"),c=require("react"),l=require("react/jsx-runtime"),u=require("@stokelp/styled-system/css"),d=require("react-window"),f=require("lodash");var{withProvider:p,withContext:m}=e.createStyleContext(s.combobox),h=p((0,o.styled)(a.Combobox.Root),`root`,{defaultProps:{loopFocus:!0}}),g=m((0,o.styled)(a.Combobox.ClearTrigger),`clearTrigger`),_=m((0,o.styled)(a.Combobox.Content),`content`),v=m((0,o.styled)(a.Combobox.Input),`input`),y=m((0,o.styled)(a.Combobox.Control),`control`),b=m((0,o.styled)(a.Combobox.Item),`item`),x=m((0,o.styled)(a.Combobox.ItemText),`itemText`),S=m((0,o.styled)(a.Combobox.Positioner),`positioner`),C=m((0,o.styled)(a.Combobox.Trigger),`trigger`),w=()=>(0,l.jsxs)(`svg`,{width:`16`,height:`17`,viewBox:`0 0 16 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,l.jsx)(`rect`,{x:`0.5`,y:`1`,width:`15`,height:`15`,rx:`3.5`,fill:`white`}),(0,l.jsx)(`rect`,{x:`0.5`,y:`1`,width:`15`,height:`15`,rx:`3.5`,className:(0,u.css)({stroke:`grey.100`})})]}),T=()=>(0,l.jsxs)(`svg`,{width:`16`,height:`17`,viewBox:`0 0 16 17`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,l.jsx)(`rect`,{y:`0.5`,width:`16`,height:`16`,rx:`4`,className:(0,u.css)({fill:`primary.500`})}),(0,l.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M11.958 4.81298C12.1303 4.92787 12.1769 5.16069 12.062 5.33301L7.56202 12.083C7.4997 12.1765 7.39875 12.2371 7.28695 12.2482C7.17515 12.2592 7.06428 12.2196 6.98483 12.1402L3.98483 9.14017C3.83839 8.99372 3.83839 8.75628 3.98483 8.60984C4.13128 8.46339 4.36872 8.46339 4.51517 8.60984L7.19172 11.2864L11.438 4.91699C11.5529 4.74467 11.7857 4.6981 11.958 4.81298Z`,fill:`white`})]});function E({item:e,isMultiple:t,renderItem:n}){let r=(0,a.useComboboxItemContext)();return(0,l.jsxs)(l.Fragment,{children:[t?r.selected?(0,l.jsx)(T,{}):(0,l.jsx)(w,{}):null,n?n(e):(0,l.jsx)(x,{truncate:!0,children:e.label})]})}var D=({items:e=[],initialItems:o,debounceMs:s=0,placeholder:u,emptyLabel:p,loadingLabel:m,usePortal:x=!0,withAutoFilter:w=!0,positioning:T,loadItems:D,renderItem:O,onResetInitialItems:k,isLoading:A,value:j,openDropdownOnFocus:M=!0,clearValueWhenEmpty:N=!0,virtualized:P,rowHeight:F=34,returnItemsOnEmpty:I,...L})=>{let[R,z]=(0,c.useState)(()=>e),[B,V]=(0,c.useState)(!1),[H,U]=(0,c.useState)(!1),W=typeof D==`function`,G=(0,c.useMemo)(()=>D?(0,f.debounce)(async e=>{try{U(!0),V(!0),z(await D(e))}catch(e){console.error(e),z([])}finally{V(!1)}},s):null,[D,s]),K=[...R,...o??[]],q=(0,c.useCallback)(async t=>{o&&o.length>0&&!o.find(e=>e.label===t.inputValue)&&k?.();let{inputValue:n}=t;if(G)G(n);else{let t=w&&n!==``?e.filter(e=>e.label.toLowerCase().includes(n.toLowerCase())):e;if(t.length===0&&I)return z(e);z(t)}},[G,e,w]);(0,c.useEffect)(()=>{!w&&!G&&z(e)},[e,w,G]);let J=(0,c.useMemo)(()=>(0,a.createListCollection)({items:K}),[K]),Y=A??B,X=m??(0,l.jsx)(n.Text,{p:`space-8`,textAlign:`center`,children:`Chargement...`}),Z=p??(0,l.jsx)(n.Text,{p:`space-8`,textAlign:`center`,children:`Aucun résultat`});return(0,l.jsxs)(h,{lazyMount:!0,unmountOnExit:!0,collection:J,positioning:{sameWidth:!0,gutter:0,...T},"data-recipe":`combobox`,onInputValueChange:q,value:j,...L,multiple:!1,children:[(0,l.jsxs)(y,{children:[(0,l.jsx)(a.Combobox.Context,{children:e=>(0,l.jsx)(v,{asChild:!0,placeholder:u,onInput:t=>{let n=t.currentTarget.value;N&&n===``&&e.clearValue()},onFocus:()=>{!M||W||e.setOpen(!0)},children:(0,l.jsx)(i.Input,{})})}),(0,l.jsx)(C,{asChild:!0,hidden:W&&(!o||o.length===0),children:(0,l.jsx)(`svg`,{width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,l.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z`,fill:`currentColor`})})}),(0,l.jsx)(g,{disabled:L.readOnly,onClick:k,asChild:!0,children:(0,l.jsx)(`button`,{children:(0,l.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,l.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM7.68306 7.68306C7.92714 7.43898 8.32286 7.43898 8.56694 7.68306L10 9.11612L11.4331 7.68306C11.6771 7.43898 12.0729 7.43898 12.3169 7.68306C12.561 7.92714 12.561 8.32286 12.3169 8.56694L10.8839 10L12.3169 11.4331C12.561 11.6771 12.561 12.0729 12.3169 12.3169C12.0729 12.561 11.6771 12.561 11.4331 12.3169L10 10.8839L8.56694 12.3169C8.32286 12.561 7.92714 12.561 7.68306 12.3169C7.43898 12.0729 7.43898 11.6771 7.68306 11.4331L9.11612 10L7.68306 8.56694C7.43898 8.32286 7.43898 7.92714 7.68306 7.68306Z`,fill:`currentColor`})})})})]}),(0,l.jsx)(r.ConditionalWrapper,{when:x,wrapper:e=>(0,l.jsx)(a.Portal,{children:e}),children:(0,l.jsx)(S,{children:(0,l.jsx)(_,{children:Y?X:K.length===0?(0,l.jsx)(l.Fragment,{children:W?H?Z:X:Z}):P?(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(d.FixedSizeList,{height:Math.min(F*K.length,180),itemCount:K.length,itemSize:F,width:`100%`,children:({index:e,style:n})=>(0,l.jsx)(r.ConditionalWrapper,{when:!!K[e].tooltip,wrapper:n=>(0,l.jsx)(t.Tooltip,{label:K[e].tooltip,children:n}),children:(0,l.jsx)(b,{item:K[e],style:n,children:(0,l.jsx)(E,{renderItem:O,item:K[e],isMultiple:!1})},K[e].value)},K[e].value)})}):K.map(e=>(0,l.jsx)(r.ConditionalWrapper,{when:!!e.tooltip,wrapper:n=>(0,l.jsx)(t.Tooltip,{label:e.tooltip,children:n}),children:(0,l.jsx)(b,{item:e,children:(0,l.jsx)(E,{renderItem:O,item:e,isMultiple:!1})},e.value)},e.value))})})})]})};exports.Combobox=D;
2
+ //# sourceMappingURL=Combobox.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.cjs","sources":["../../../src/components/combobox/Combobox.tsx"],"sourcesContent":["import {\n Combobox as ArkCombobox,\n type ComboboxRootProps,\n createListCollection,\n Portal,\n useComboboxItemContext,\n} from '@ark-ui/react'\nimport { FC, ReactNode, useCallback, useEffect, useMemo, useState } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { debounce } from 'lodash'\n\nimport { combobox } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Input as UIInput } from '~/components/input'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { Text } from '~/components/text/Text'\nimport { Tooltip } from '~/components/tooltip/Tooltip'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { FixedSizeList } from 'react-window'\nimport { css } from '@stokelp/styled-system/css'\n\nconst { withProvider, withContext } = createStyleContext(combobox)\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst Root = withProvider(styled(ArkCombobox.Root<any>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst ClearTrigger = withContext(styled(ArkCombobox.ClearTrigger), 'clearTrigger')\nconst Content = withContext(styled(ArkCombobox.Content), 'content')\nconst Input = withContext(styled(ArkCombobox.Input), 'input')\nconst Control = withContext(styled(ArkCombobox.Control), 'control')\nconst Item = withContext(styled(ArkCombobox.Item), 'item')\nconst ItemText = withContext(styled(ArkCombobox.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkCombobox.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkCombobox.Trigger), 'trigger')\n\nexport type ComboboxItem = {\n value: string | number\n label: string\n disabled?: boolean\n tooltip?: ReactNode\n}\n\nexport type ComboboxProps<T extends ComboboxItem> = Omit<ComboboxRootProps<T>, 'collection' | 'value'> & {\n value?: Array<string | number>\n items?: T[]\n initialItems?: T[]\n renderItem?: (item: T) => ReactNode\n loadItems?: (inputValue: string) => Promise<T[]>\n debounceMs?: number\n emptyLabel?: ReactNode\n loadingLabel?: ReactNode\n placeholder?: string\n usePortal?: boolean\n isLoading?: boolean\n withAutoFilter?: boolean\n onResetInitialItems?: () => void\n openDropdownOnFocus?: boolean\n clearValueWhenEmpty?: boolean\n virtualized?: boolean\n rowHeight?: number\n returnItemsOnEmpty?: boolean\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof combobox>\n\nconst MultipleUncheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" fill=\"white\" />\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" className={css({ stroke: 'grey.100' })} />\n </svg>\n)\n\nconst MultipleCheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect y=\"0.5\" width=\"16\" height=\"16\" rx=\"4\" className={css({ fill: 'primary.500' })} />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11.958 4.81298C12.1303 4.92787 12.1769 5.16069 12.062 5.33301L7.56202 12.083C7.4997 12.1765 7.39875 12.2371 7.28695 12.2482C7.17515 12.2592 7.06428 12.2196 6.98483 12.1402L3.98483 9.14017C3.83839 8.99372 3.83839 8.75628 3.98483 8.60984C4.13128 8.46339 4.36872 8.46339 4.51517 8.60984L7.19172 11.2864L11.438 4.91699C11.5529 4.74467 11.7857 4.6981 11.958 4.81298Z\"\n fill=\"white\"\n />\n </svg>\n)\n\ninterface InnerItemProps<Item extends ComboboxItem> {\n item: Item\n isMultiple?: boolean\n renderItem?: (item: Item) => ReactNode\n}\n\nfunction CustomInnerItem<Item extends ComboboxItem>({ item, isMultiple, renderItem }: InnerItemProps<Item>) {\n const context = useComboboxItemContext()\n\n return (\n <>\n {isMultiple ? context.selected ? <MultipleCheckedIndicator /> : <MultipleUncheckedIndicator /> : null}\n {renderItem ? renderItem(item) : <ItemText truncate>{item.label}</ItemText>}\n </>\n )\n}\n\nexport const Combobox = <T extends ComboboxItem>({\n items: itemsFromUsers = [],\n initialItems,\n debounceMs = 0,\n placeholder,\n emptyLabel,\n loadingLabel,\n usePortal = true,\n withAutoFilter = true,\n positioning,\n loadItems,\n renderItem,\n onResetInitialItems,\n isLoading: controlledIsLoading,\n value,\n openDropdownOnFocus = true,\n clearValueWhenEmpty = true,\n virtualized,\n rowHeight = 34,\n returnItemsOnEmpty,\n ...props\n}: ComboboxProps<T>) => {\n const [items, setItems] = useState(() => itemsFromUsers)\n const [isLoading, setIsLoading] = useState(false)\n const [firstQueryTriggered, setFirstQueryTriggered] = useState(false)\n const asyncMode = typeof loadItems === 'function'\n\n const debouncedLoadItems = useMemo(\n () =>\n loadItems\n ? debounce(async (value: string) => {\n try {\n setFirstQueryTriggered(true)\n setIsLoading(true)\n const newItems = await loadItems(value)\n setItems(newItems)\n } catch (error) {\n console.error(error)\n setItems([])\n } finally {\n setIsLoading(false)\n }\n }, debounceMs)\n : null,\n [loadItems, debounceMs],\n )\n\n const allItems = [...items, ...(initialItems ?? [])]\n\n const handleInputChange = useCallback(\n async (details: ArkCombobox.InputValueChangeDetails) => {\n if (initialItems && initialItems.length > 0 && !initialItems.find(item => item.label === details.inputValue)) {\n onResetInitialItems?.()\n }\n const { inputValue } = details\n\n if (debouncedLoadItems) {\n debouncedLoadItems(inputValue)\n } else {\n const items =\n withAutoFilter && inputValue !== ''\n ? itemsFromUsers.filter(item => item.label.toLowerCase().includes(inputValue.toLowerCase()))\n : itemsFromUsers\n\n if (items.length === 0 && returnItemsOnEmpty) {\n return setItems(itemsFromUsers)\n }\n setItems(items)\n }\n },\n [debouncedLoadItems, itemsFromUsers, withAutoFilter],\n )\n\n useEffect(() => {\n if (!withAutoFilter && !debouncedLoadItems) {\n setItems(itemsFromUsers)\n }\n }, [itemsFromUsers, withAutoFilter, debouncedLoadItems])\n\n const collection = useMemo(() => createListCollection({ items: allItems }), [allItems])\n\n const effectiveIsLoading = controlledIsLoading ?? isLoading\n\n const loadingContent = loadingLabel ?? (\n <Text p=\"space-8\" textAlign=\"center\">\n Chargement...\n </Text>\n )\n const emptyContent = emptyLabel ?? (\n <Text p=\"space-8\" textAlign=\"center\">\n Aucun résultat\n </Text>\n )\n // TODO: const multiple = props.multiple\n // TODO: multiple design, using input chips https://ark-ui.com/reat/examples/combobox-with-tags-input\n const multiple = false\n\n return (\n <Root\n lazyMount\n unmountOnExit\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"combobox\"\n onInputValueChange={handleInputChange}\n value={value as string[] | undefined}\n {...props}\n // TODO: multiple design\n multiple={multiple}\n >\n <Control>\n <ArkCombobox.Context>\n {api => (\n <Input\n asChild\n placeholder={placeholder}\n onInput={e => {\n const value = e.currentTarget.value\n\n if (clearValueWhenEmpty && value === '') {\n api.clearValue()\n }\n }}\n onFocus={() => {\n if (!openDropdownOnFocus || asyncMode) return\n api.setOpen(true)\n }}\n >\n <UIInput />\n </Input>\n )}\n </ArkCombobox.Context>\n <Trigger asChild hidden={asyncMode && (!initialItems || initialItems.length === 0)}>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Trigger>\n <ClearTrigger disabled={props.readOnly} onClick={onResetInitialItems} asChild>\n <button>\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM7.68306 7.68306C7.92714 7.43898 8.32286 7.43898 8.56694 7.68306L10 9.11612L11.4331 7.68306C11.6771 7.43898 12.0729 7.43898 12.3169 7.68306C12.561 7.92714 12.561 8.32286 12.3169 8.56694L10.8839 10L12.3169 11.4331C12.561 11.6771 12.561 12.0729 12.3169 12.3169C12.0729 12.561 11.6771 12.561 11.4331 12.3169L10 10.8839L8.56694 12.3169C8.32286 12.561 7.92714 12.561 7.68306 12.3169C7.43898 12.0729 7.43898 11.6771 7.68306 11.4331L9.11612 10L7.68306 8.56694C7.43898 8.32286 7.43898 7.92714 7.68306 7.68306Z\"\n fill=\"currentColor\"\n />\n </svg>\n </button>\n </ClearTrigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal>{children}</Portal>}>\n <Positioner>\n <Content>\n {effectiveIsLoading ? (\n loadingContent\n ) : allItems.length === 0 ? (\n <>{asyncMode ? (firstQueryTriggered ? emptyContent : loadingContent) : emptyContent}</>\n ) : virtualized ? (\n <>\n <FixedSizeList\n height={Math.min(rowHeight * allItems.length, 180)}\n itemCount={allItems.length}\n itemSize={rowHeight}\n width=\"100%\"\n >\n {({ index, style }) => (\n <ConditionalWrapper\n key={allItems[index].value}\n when={!!allItems[index].tooltip}\n wrapper={children => <Tooltip label={allItems[index].tooltip}>{children}</Tooltip>}\n >\n <Item key={allItems[index].value} item={allItems[index]} style={style}>\n <CustomInnerItem renderItem={renderItem} item={allItems[index]} isMultiple={multiple} />\n </Item>\n </ConditionalWrapper>\n )}\n </FixedSizeList>\n </>\n ) : (\n allItems.map(item => (\n <ConditionalWrapper\n key={item.value}\n when={!!item.tooltip}\n wrapper={children => <Tooltip label={item.tooltip}>{children}</Tooltip>}\n >\n <Item key={item.value} item={item}>\n <CustomInnerItem renderItem={renderItem} item={item} isMultiple={multiple} />\n </Item>\n </ConditionalWrapper>\n ))\n )}\n </Content>\n </Positioner>\n </ConditionalWrapper>\n </Root>\n )\n}\n"],"names":["withProvider","withContext","createStyleContext","combobox","Root","styled","ArkCombobox","ClearTrigger","Content","Input","Control","Item","ItemText","Positioner","Trigger","MultipleUncheckedIndicator","jsxs","jsx","css","MultipleCheckedIndicator","CustomInnerItem","item","isMultiple","renderItem","context","useComboboxItemContext","Fragment","Combobox","itemsFromUsers","initialItems","debounceMs","placeholder","emptyLabel","loadingLabel","usePortal","withAutoFilter","positioning","loadItems","onResetInitialItems","controlledIsLoading","value","openDropdownOnFocus","clearValueWhenEmpty","virtualized","rowHeight","returnItemsOnEmpty","props","items","setItems","useState","isLoading","setIsLoading","firstQueryTriggered","setFirstQueryTriggered","asyncMode","debouncedLoadItems","useMemo","debounce","newItems","error","allItems","handleInputChange","useCallback","details","inputValue","useEffect","collection","createListCollection","effectiveIsLoading","loadingContent","Text","emptyContent","multiple","api","e","UIInput","ConditionalWrapper","children","Portal","FixedSizeList","index","style","Tooltip"],"mappings":"oiBAsBM,CAAE,aAAAA,GAAc,YAAAC,GAAgBC,EAAAA,mBAAmBC,EAAAA,QAAQ,EAG3DC,GAAOJ,GAAaK,EAAAA,OAAOC,EAAAA,SAAY,IAAS,EAAG,OAAQ,CAC/D,aAAc,CACZ,UAAW,EAAA,CAEf,CAAC,EAEKC,GAAeN,EAAYI,EAAAA,OAAOC,EAAAA,SAAY,YAAY,EAAG,cAAc,EAC3EE,GAAUP,EAAYI,EAAAA,OAAOC,EAAAA,SAAY,OAAO,EAAG,SAAS,EAC5DG,GAAQR,EAAYI,EAAAA,OAAOC,EAAAA,SAAY,KAAK,EAAG,OAAO,EACtDI,GAAUT,EAAYI,EAAAA,OAAOC,EAAAA,SAAY,OAAO,EAAG,SAAS,EAC5DK,EAAOV,EAAYI,EAAAA,OAAOC,EAAAA,SAAY,IAAI,EAAG,MAAM,EACnDM,GAAWX,EAAYI,EAAAA,OAAOC,EAAAA,SAAY,QAAQ,EAAG,UAAU,EAC/DO,GAAaZ,EAAYI,EAAAA,OAAOC,EAAAA,SAAY,UAAU,EAAG,YAAY,EACrEQ,GAAUb,EAAYI,EAAAA,OAAOC,EAAAA,SAAY,OAAO,EAAG,SAAS,EA+B5DS,GAAiC,IAC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R,CAAA,CAAU,GAD7EZ,EAASoB,CAAK,EAAE,KAE3B,CAAA,EANKpB,EAASoB,CAAK,EAAE,KAAA,CAOvB,CAAA,CAEJ,CACF,EAEApB,EAAS,IAAIvC,GACXJ,EAAAA,IAAC2D,EAAAA,mBAAA,CAEC,KAAM,CAAC,CAACvD,EAAK,QACb,QAASwD,GAAY5D,EAAAA,IAACiE,EAAAA,SAAQ,MAAO7D,EAAK,QAAU,SAAAwD,EAAS,EAE7D,SAAA5D,EAAAA,IAACN,EAAA,CAAsB,KAAAU,EACrB,SAAAJ,EAAAA,IAACG,EAAA,CAAgB,WAAAG,EAAwB,KAAAF,EAAY,WAAYmD,CAAA,CAAU,CAAA,EADlEnD,EAAK,KAEhB,CAAA,EANKA,EAAK,KAAA,CAQb,CAAA,CAEL,CAAA,CACF,CAAA,CACF,CAAA,CAAA,CAAA,CAGN"}
1
+ {"version":3,"file":"Combobox.cjs","names":[],"sources":["../../../src/components/combobox/Combobox.tsx"],"sourcesContent":["import {\n Combobox as ArkCombobox,\n type ComboboxRootProps,\n createListCollection,\n Portal,\n useComboboxItemContext,\n} from '@ark-ui/react'\nimport { FC, ReactNode, useCallback, useEffect, useMemo, useState } from 'react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { debounce } from 'lodash'\n\nimport { combobox } from '@stokelp/styled-system/recipes'\nimport { createStyleContext } from '~/utils/slots'\nimport { Input as UIInput } from '~/components/input'\n\nimport { ConditionalWrapper } from '~/shared/ConditionalWrapper'\nimport { Text } from '~/components/text/Text'\nimport { Tooltip } from '~/components/tooltip/Tooltip'\nimport { HTMLStyledProps, RecipeVariantProps } from '@stokelp/styled-system/types'\nimport { FixedSizeList } from 'react-window'\nimport { css } from '@stokelp/styled-system/css'\n\nconst { withProvider, withContext } = createStyleContext(combobox)\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst Root = withProvider(styled(ArkCombobox.Root<any>), 'root', {\n defaultProps: {\n loopFocus: true,\n },\n})\n\nconst ClearTrigger = withContext(styled(ArkCombobox.ClearTrigger), 'clearTrigger')\nconst Content = withContext(styled(ArkCombobox.Content), 'content')\nconst Input = withContext(styled(ArkCombobox.Input), 'input')\nconst Control = withContext(styled(ArkCombobox.Control), 'control')\nconst Item = withContext(styled(ArkCombobox.Item), 'item')\nconst ItemText = withContext(styled(ArkCombobox.ItemText), 'itemText')\nconst Positioner = withContext(styled(ArkCombobox.Positioner), 'positioner')\nconst Trigger = withContext(styled(ArkCombobox.Trigger), 'trigger')\n\nexport type ComboboxItem = {\n value: string | number\n label: string\n disabled?: boolean\n tooltip?: ReactNode\n}\n\nexport type ComboboxProps<T extends ComboboxItem> = Omit<ComboboxRootProps<T>, 'collection' | 'value'> & {\n value?: Array<string | number>\n items?: T[]\n initialItems?: T[]\n renderItem?: (item: T) => ReactNode\n loadItems?: (inputValue: string) => Promise<T[]>\n debounceMs?: number\n emptyLabel?: ReactNode\n loadingLabel?: ReactNode\n placeholder?: string\n usePortal?: boolean\n isLoading?: boolean\n withAutoFilter?: boolean\n onResetInitialItems?: () => void\n openDropdownOnFocus?: boolean\n clearValueWhenEmpty?: boolean\n virtualized?: boolean\n rowHeight?: number\n returnItemsOnEmpty?: boolean\n} & HTMLStyledProps<'div'> &\n RecipeVariantProps<typeof combobox>\n\nconst MultipleUncheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" fill=\"white\" />\n <rect x=\"0.5\" y=\"1\" width=\"15\" height=\"15\" rx=\"3.5\" className={css({ stroke: 'grey.100' })} />\n </svg>\n)\n\nconst MultipleCheckedIndicator: FC = () => (\n <svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect y=\"0.5\" width=\"16\" height=\"16\" rx=\"4\" className={css({ fill: 'primary.500' })} />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11.958 4.81298C12.1303 4.92787 12.1769 5.16069 12.062 5.33301L7.56202 12.083C7.4997 12.1765 7.39875 12.2371 7.28695 12.2482C7.17515 12.2592 7.06428 12.2196 6.98483 12.1402L3.98483 9.14017C3.83839 8.99372 3.83839 8.75628 3.98483 8.60984C4.13128 8.46339 4.36872 8.46339 4.51517 8.60984L7.19172 11.2864L11.438 4.91699C11.5529 4.74467 11.7857 4.6981 11.958 4.81298Z\"\n fill=\"white\"\n />\n </svg>\n)\n\ninterface InnerItemProps<Item extends ComboboxItem> {\n item: Item\n isMultiple?: boolean\n renderItem?: (item: Item) => ReactNode\n}\n\nfunction CustomInnerItem<Item extends ComboboxItem>({ item, isMultiple, renderItem }: InnerItemProps<Item>) {\n const context = useComboboxItemContext()\n\n return (\n <>\n {isMultiple ? context.selected ? <MultipleCheckedIndicator /> : <MultipleUncheckedIndicator /> : null}\n {renderItem ? renderItem(item) : <ItemText truncate>{item.label}</ItemText>}\n </>\n )\n}\n\nexport const Combobox = <T extends ComboboxItem>({\n items: itemsFromUsers = [],\n initialItems,\n debounceMs = 0,\n placeholder,\n emptyLabel,\n loadingLabel,\n usePortal = true,\n withAutoFilter = true,\n positioning,\n loadItems,\n renderItem,\n onResetInitialItems,\n isLoading: controlledIsLoading,\n value,\n openDropdownOnFocus = true,\n clearValueWhenEmpty = true,\n virtualized,\n rowHeight = 34,\n returnItemsOnEmpty,\n ...props\n}: ComboboxProps<T>) => {\n const [items, setItems] = useState(() => itemsFromUsers)\n const [isLoading, setIsLoading] = useState(false)\n const [firstQueryTriggered, setFirstQueryTriggered] = useState(false)\n const asyncMode = typeof loadItems === 'function'\n\n const debouncedLoadItems = useMemo(\n () =>\n loadItems\n ? debounce(async (value: string) => {\n try {\n setFirstQueryTriggered(true)\n setIsLoading(true)\n const newItems = await loadItems(value)\n setItems(newItems)\n } catch (error) {\n console.error(error)\n setItems([])\n } finally {\n setIsLoading(false)\n }\n }, debounceMs)\n : null,\n [loadItems, debounceMs],\n )\n\n const allItems = [...items, ...(initialItems ?? [])]\n\n const handleInputChange = useCallback(\n async (details: ArkCombobox.InputValueChangeDetails) => {\n if (\n initialItems &&\n initialItems.length > 0 &&\n !initialItems.find((item: ComboboxItem) => item.label === details.inputValue)\n ) {\n onResetInitialItems?.()\n }\n const { inputValue } = details\n\n if (debouncedLoadItems) {\n debouncedLoadItems(inputValue)\n } else {\n const items =\n withAutoFilter && inputValue !== ''\n ? itemsFromUsers.filter((item: ComboboxItem) => item.label.toLowerCase().includes(inputValue.toLowerCase()))\n : itemsFromUsers\n\n if (items.length === 0 && returnItemsOnEmpty) {\n return setItems(itemsFromUsers)\n }\n setItems(items)\n }\n },\n [debouncedLoadItems, itemsFromUsers, withAutoFilter],\n )\n\n useEffect(() => {\n if (!withAutoFilter && !debouncedLoadItems) {\n setItems(itemsFromUsers)\n }\n }, [itemsFromUsers, withAutoFilter, debouncedLoadItems])\n\n const collection = useMemo(() => createListCollection({ items: allItems }), [allItems])\n\n const effectiveIsLoading = controlledIsLoading ?? isLoading\n\n const loadingContent = loadingLabel ?? (\n <Text p=\"space-8\" textAlign=\"center\">\n Chargement...\n </Text>\n )\n const emptyContent = emptyLabel ?? (\n <Text p=\"space-8\" textAlign=\"center\">\n Aucun résultat\n </Text>\n )\n // TODO: const multiple = props.multiple\n // TODO: multiple design, using input chips https://ark-ui.com/reat/examples/combobox-with-tags-input\n const multiple = false\n\n return (\n <Root\n lazyMount\n unmountOnExit\n collection={collection}\n positioning={{ sameWidth: true, gutter: 0, ...positioning }}\n data-recipe=\"combobox\"\n onInputValueChange={handleInputChange}\n value={value as string[] | undefined}\n {...props}\n // TODO: multiple design\n multiple={multiple}\n >\n <Control>\n <ArkCombobox.Context>\n {api => (\n <Input\n asChild\n placeholder={placeholder}\n onInput={(e: React.FormEvent<HTMLInputElement>) => {\n const value = e.currentTarget.value\n\n if (clearValueWhenEmpty && value === '') {\n api.clearValue()\n }\n }}\n onFocus={() => {\n if (!openDropdownOnFocus || asyncMode) return\n api.setOpen(true)\n }}\n >\n <UIInput />\n </Input>\n )}\n </ArkCombobox.Context>\n <Trigger asChild hidden={asyncMode && (!initialItems || initialItems.length === 0)}>\n <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M12.5303 16.2803C12.2374 16.5732 11.7626 16.5732 11.4697 16.2803L3.96967 8.78033C3.67678 8.48744 3.67678 8.01256 3.96967 7.71967C4.26256 7.42678 4.73744 7.42678 5.03033 7.71967L12 14.6893L18.9697 7.71967C19.2626 7.42678 19.7374 7.42678 20.0303 7.71967C20.3232 8.01256 20.3232 8.48744 20.0303 8.78033L12.5303 16.2803Z\"\n fill=\"currentColor\"\n />\n </svg>\n </Trigger>\n <ClearTrigger disabled={props.readOnly} onClick={onResetInitialItems} asChild>\n <button>\n <svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10 3.125C6.20304 3.125 3.125 6.20304 3.125 10C3.125 13.797 6.20304 16.875 10 16.875C13.797 16.875 16.875 13.797 16.875 10C16.875 6.20304 13.797 3.125 10 3.125ZM1.875 10C1.875 5.51269 5.51269 1.875 10 1.875C14.4873 1.875 18.125 5.51269 18.125 10C18.125 14.4873 14.4873 18.125 10 18.125C5.51269 18.125 1.875 14.4873 1.875 10ZM7.68306 7.68306C7.92714 7.43898 8.32286 7.43898 8.56694 7.68306L10 9.11612L11.4331 7.68306C11.6771 7.43898 12.0729 7.43898 12.3169 7.68306C12.561 7.92714 12.561 8.32286 12.3169 8.56694L10.8839 10L12.3169 11.4331C12.561 11.6771 12.561 12.0729 12.3169 12.3169C12.0729 12.561 11.6771 12.561 11.4331 12.3169L10 10.8839L8.56694 12.3169C8.32286 12.561 7.92714 12.561 7.68306 12.3169C7.43898 12.0729 7.43898 11.6771 7.68306 11.4331L9.11612 10L7.68306 8.56694C7.43898 8.32286 7.43898 7.92714 7.68306 7.68306Z\"\n fill=\"currentColor\"\n />\n </svg>\n </button>\n </ClearTrigger>\n </Control>\n <ConditionalWrapper when={usePortal} wrapper={children => <Portal>{children}</Portal>}>\n <Positioner>\n <Content>\n {effectiveIsLoading ? (\n loadingContent\n ) : allItems.length === 0 ? (\n <>{asyncMode ? (firstQueryTriggered ? emptyContent : loadingContent) : emptyContent}</>\n ) : virtualized ? (\n <>\n <FixedSizeList\n height={Math.min(rowHeight * allItems.length, 180)}\n itemCount={allItems.length}\n itemSize={rowHeight}\n width=\"100%\"\n >\n {({ index, style }) => (\n <ConditionalWrapper\n key={allItems[index].value}\n when={!!allItems[index].tooltip}\n wrapper={children => <Tooltip label={allItems[index].tooltip}>{children}</Tooltip>}\n >\n <Item key={allItems[index].value} item={allItems[index]} style={style}>\n <CustomInnerItem renderItem={renderItem} item={allItems[index]} isMultiple={multiple} />\n </Item>\n </ConditionalWrapper>\n )}\n </FixedSizeList>\n </>\n ) : (\n allItems.map(item => (\n <ConditionalWrapper\n key={item.value}\n when={!!item.tooltip}\n wrapper={children => <Tooltip label={item.tooltip}>{children}</Tooltip>}\n >\n <Item key={item.value} item={item}>\n <CustomInnerItem renderItem={renderItem} item={item} isMultiple={multiple} />\n </Item>\n </ConditionalWrapper>\n ))\n )}\n </Content>\n </Positioner>\n </ConditionalWrapper>\n </Root>\n )\n}\n"],"mappings":"ocAsBA,GAAM,CAAE,eAAc,eAAgB,EAAA,mBAAmB,EAAA,QAAQ,EAG3D,EAAO,GAAA,EAAA,EAAA,QAAoB,EAAA,SAAY,IAAS,EAAG,OAAQ,CAC/D,aAAc,CACZ,UAAW,EACb,CACF,CAAC,EAEK,EAAe,GAAA,EAAA,EAAA,QAAmB,EAAA,SAAY,YAAY,EAAG,cAAc,EAC3E,EAAU,GAAA,EAAA,EAAA,QAAm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