@stokelp/ui 2.96.6 → 2.97.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 (666) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +2 -0
  2. package/dist/_virtual/_commonjsHelpers.cjs.map +1 -0
  3. package/dist/_virtual/_commonjsHelpers.js +10 -0
  4. package/dist/_virtual/_commonjsHelpers.js.map +1 -0
  5. package/dist/_virtual/cjs.cjs +2 -0
  6. package/dist/_virtual/cjs.cjs.map +1 -0
  7. package/dist/_virtual/cjs.js +9 -0
  8. package/dist/_virtual/cjs.js.map +1 -0
  9. package/dist/_virtual/lodash.cjs +2 -0
  10. package/dist/_virtual/lodash.cjs.map +1 -0
  11. package/dist/_virtual/lodash.js +7 -0
  12. package/dist/_virtual/lodash.js.map +1 -0
  13. package/dist/_virtual/lodash2.cjs +2 -0
  14. package/dist/_virtual/lodash2.cjs.map +1 -0
  15. package/dist/_virtual/lodash2.js +6 -0
  16. package/dist/_virtual/lodash2.js.map +1 -0
  17. package/dist/components/accordion/Accordion.cjs +2 -0
  18. package/dist/components/accordion/Accordion.cjs.map +1 -0
  19. package/dist/components/accordion/Accordion.js +29 -0
  20. package/dist/components/accordion/Accordion.js.map +1 -0
  21. package/dist/components/action-card/ActionCard.cjs +2 -0
  22. package/dist/components/action-card/ActionCard.cjs.map +1 -0
  23. package/dist/components/action-card/ActionCard.js +28 -0
  24. package/dist/components/action-card/ActionCard.js.map +1 -0
  25. package/dist/components/alert/Alert.cjs +2 -0
  26. package/dist/components/alert/Alert.cjs.map +1 -0
  27. package/dist/components/alert/Alert.js +85 -0
  28. package/dist/components/alert/Alert.js.map +1 -0
  29. package/dist/components/app/navigation/AppNavigation.cjs +2 -0
  30. package/dist/components/app/navigation/AppNavigation.cjs.map +1 -0
  31. package/dist/components/app/navigation/AppNavigation.js +48 -0
  32. package/dist/components/app/navigation/AppNavigation.js.map +1 -0
  33. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs +2 -0
  34. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.cjs.map +1 -0
  35. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js +120 -0
  36. package/dist/components/app/navigation/language-select/AppNavigationLanguageSelect.js.map +1 -0
  37. package/dist/components/app/price-tag/PriceTag.cjs +2 -0
  38. package/dist/components/app/price-tag/PriceTag.cjs.map +1 -0
  39. package/dist/components/app/price-tag/PriceTag.js +21 -0
  40. package/dist/components/app/price-tag/PriceTag.js.map +1 -0
  41. package/dist/components/app/product-card-catalog/styled.cjs +2 -0
  42. package/dist/components/app/product-card-catalog/styled.cjs.map +1 -0
  43. package/dist/components/app/product-card-catalog/styled.js +22 -0
  44. package/dist/components/app/product-card-catalog/styled.js.map +1 -0
  45. package/dist/components/avatar/styled.cjs +2 -0
  46. package/dist/components/avatar/styled.cjs.map +1 -0
  47. package/dist/components/avatar/styled.js +28 -0
  48. package/dist/components/avatar/styled.js.map +1 -0
  49. package/dist/components/box/Box.cjs +2 -0
  50. package/dist/components/box/Box.cjs.map +1 -0
  51. package/dist/components/box/Box.js +12 -0
  52. package/dist/components/box/Box.js.map +1 -0
  53. package/dist/components/breadcrumb/Breadcrumb.cjs +2 -0
  54. package/dist/components/breadcrumb/Breadcrumb.cjs.map +1 -0
  55. package/dist/components/breadcrumb/Breadcrumb.js +36 -0
  56. package/dist/components/breadcrumb/Breadcrumb.js.map +1 -0
  57. package/dist/components/button/Button.cjs +2 -0
  58. package/dist/components/button/Button.cjs.map +1 -0
  59. package/dist/components/button/Button.js +9 -0
  60. package/dist/components/button/Button.js.map +1 -0
  61. package/dist/components/button-filter/ButtonFilter.cjs +2 -0
  62. package/dist/components/button-filter/ButtonFilter.cjs.map +1 -0
  63. package/dist/components/button-filter/ButtonFilter.js +9 -0
  64. package/dist/components/button-filter/ButtonFilter.js.map +1 -0
  65. package/dist/components/chat/Chat.cjs +2 -0
  66. package/dist/components/chat/Chat.cjs.map +1 -0
  67. package/dist/components/chat/Chat.js +27 -0
  68. package/dist/components/chat/Chat.js.map +1 -0
  69. package/dist/components/chat/ChatDocumentMessage.cjs +2 -0
  70. package/dist/components/chat/ChatDocumentMessage.cjs.map +1 -0
  71. package/dist/components/chat/ChatDocumentMessage.js +33 -0
  72. package/dist/components/chat/ChatDocumentMessage.js.map +1 -0
  73. package/dist/components/chat/ChatMessage.cjs +2 -0
  74. package/dist/components/chat/ChatMessage.cjs.map +1 -0
  75. package/dist/components/chat/ChatMessage.js +9 -0
  76. package/dist/components/chat/ChatMessage.js.map +1 -0
  77. package/dist/components/chat/ChatProfileAvatar.cjs +2 -0
  78. package/dist/components/chat/ChatProfileAvatar.cjs.map +1 -0
  79. package/dist/components/chat/ChatProfileAvatar.js +17 -0
  80. package/dist/components/chat/ChatProfileAvatar.js.map +1 -0
  81. package/dist/components/chat/ChatTextInput.cjs +2 -0
  82. package/dist/components/chat/ChatTextInput.cjs.map +1 -0
  83. package/dist/components/chat/ChatTextInput.js +54 -0
  84. package/dist/components/chat/ChatTextInput.js.map +1 -0
  85. package/dist/components/checkbox/Checkbox.cjs +2 -0
  86. package/dist/components/checkbox/Checkbox.cjs.map +1 -0
  87. package/dist/components/checkbox/Checkbox.js +35 -0
  88. package/dist/components/checkbox/Checkbox.js.map +1 -0
  89. package/dist/components/checkbox-card/CheckboxCard.cjs +2 -0
  90. package/dist/components/checkbox-card/CheckboxCard.cjs.map +1 -0
  91. package/dist/components/checkbox-card/CheckboxCard.js +40 -0
  92. package/dist/components/checkbox-card/CheckboxCard.js.map +1 -0
  93. package/dist/components/checkbox-card/namespace.cjs +2 -0
  94. package/dist/components/checkbox-card/namespace.cjs.map +1 -0
  95. package/dist/components/checkbox-card/namespace.js +10 -0
  96. package/dist/components/checkbox-card/namespace.js.map +1 -0
  97. package/dist/components/chip/Chip.cjs +2 -0
  98. package/dist/components/chip/Chip.cjs.map +1 -0
  99. package/dist/components/chip/Chip.js +25 -0
  100. package/dist/components/chip/Chip.js.map +1 -0
  101. package/dist/components/collapsible/styled.cjs +2 -0
  102. package/dist/components/collapsible/styled.cjs.map +1 -0
  103. package/dist/components/collapsible/styled.js +12 -0
  104. package/dist/components/collapsible/styled.js.map +1 -0
  105. package/dist/components/combobox/Combobox.cjs +2 -0
  106. package/dist/components/combobox/Combobox.cjs.map +1 -0
  107. package/dist/components/combobox/Combobox.js +176 -0
  108. package/dist/components/combobox/Combobox.js.map +1 -0
  109. package/dist/components/date-picker/DatePicker.cjs +2 -0
  110. package/dist/components/date-picker/DatePicker.cjs.map +1 -0
  111. package/dist/components/date-picker/DatePicker.js +129 -0
  112. package/dist/components/date-picker/DatePicker.js.map +1 -0
  113. package/dist/components/dialog/styled.cjs +2 -0
  114. package/dist/components/dialog/styled.cjs.map +1 -0
  115. package/dist/components/dialog/styled.js +67 -0
  116. package/dist/components/dialog/styled.js.map +1 -0
  117. package/dist/components/drawer/Drawer.cjs +2 -0
  118. package/dist/components/drawer/Drawer.cjs.map +1 -0
  119. package/dist/components/drawer/Drawer.js +64 -0
  120. package/dist/components/drawer/Drawer.js.map +1 -0
  121. package/dist/components/flag/styled.cjs +2 -0
  122. package/dist/components/flag/styled.cjs.map +1 -0
  123. package/dist/components/flag/styled.js +3753 -0
  124. package/dist/components/flag/styled.js.map +1 -0
  125. package/dist/components/form/FormControl.cjs +2 -0
  126. package/dist/components/form/FormControl.cjs.map +1 -0
  127. package/dist/components/form/FormControl.js +19 -0
  128. package/dist/components/form/FormControl.js.map +1 -0
  129. package/dist/components/form/FormHelperText.cjs +2 -0
  130. package/dist/components/form/FormHelperText.cjs.map +1 -0
  131. package/dist/components/form/FormHelperText.js +10 -0
  132. package/dist/components/form/FormHelperText.js.map +1 -0
  133. package/dist/components/form/FormLabel.cjs +2 -0
  134. package/dist/components/form/FormLabel.cjs.map +1 -0
  135. package/dist/components/form/FormLabel.js +35 -0
  136. package/dist/components/form/FormLabel.js.map +1 -0
  137. package/dist/components/heading/Heading.cjs +2 -0
  138. package/dist/components/heading/Heading.cjs.map +1 -0
  139. package/dist/components/heading/Heading.js +13 -0
  140. package/dist/components/heading/Heading.js.map +1 -0
  141. package/dist/components/icon/Icon.cjs +2 -0
  142. package/dist/components/icon/Icon.cjs.map +1 -0
  143. package/dist/components/icon/Icon.js +12 -0
  144. package/dist/components/icon/Icon.js.map +1 -0
  145. package/dist/components/icon-button/IconButton.cjs +2 -0
  146. package/dist/components/icon-button/IconButton.cjs.map +1 -0
  147. package/dist/components/icon-button/IconButton.js +8 -0
  148. package/dist/components/icon-button/IconButton.js.map +1 -0
  149. package/dist/components/illustration/Illustration.cjs +2 -0
  150. package/dist/components/illustration/Illustration.cjs.map +1 -0
  151. package/dist/components/illustration/Illustration.js +41 -0
  152. package/dist/components/illustration/Illustration.js.map +1 -0
  153. package/dist/components/illustration/patterns.cjs +2 -0
  154. package/dist/components/illustration/patterns.cjs.map +1 -0
  155. package/dist/{ui.js → components/illustration/patterns.js} +38 -15804
  156. package/dist/components/illustration/patterns.js.map +1 -0
  157. package/dist/components/input/HighlightedInput.cjs +2 -0
  158. package/dist/components/input/HighlightedInput.cjs.map +1 -0
  159. package/dist/components/input/HighlightedInput.js +60 -0
  160. package/dist/components/input/HighlightedInput.js.map +1 -0
  161. package/dist/components/input/Input.cjs +2 -0
  162. package/dist/components/input/Input.cjs.map +1 -0
  163. package/dist/components/input/Input.js +15 -0
  164. package/dist/components/input/Input.js.map +1 -0
  165. package/dist/components/input/InputAddon.cjs +2 -0
  166. package/dist/components/input/InputAddon.cjs.map +1 -0
  167. package/dist/components/input/InputAddon.js +11 -0
  168. package/dist/components/input/InputAddon.js.map +1 -0
  169. package/dist/components/input/InputGroup.cjs +2 -0
  170. package/dist/components/input/InputGroup.cjs.map +1 -0
  171. package/dist/components/input/InputGroup.js +10 -0
  172. package/dist/components/input/InputGroup.js.map +1 -0
  173. package/dist/components/input/PhoneNumberInput.cjs +2 -0
  174. package/dist/components/input/PhoneNumberInput.cjs.map +1 -0
  175. package/dist/components/input/PhoneNumberInput.js +26 -0
  176. package/dist/components/input/PhoneNumberInput.js.map +1 -0
  177. package/dist/components/menu/Menu.cjs +2 -0
  178. package/dist/components/menu/Menu.cjs.map +1 -0
  179. package/dist/components/menu/Menu.js +29 -0
  180. package/dist/components/menu/Menu.js.map +1 -0
  181. package/dist/components/pagination/Pagination.cjs +2 -0
  182. package/dist/components/pagination/Pagination.cjs.map +1 -0
  183. package/dist/components/pagination/Pagination.js +86 -0
  184. package/dist/components/pagination/Pagination.js.map +1 -0
  185. package/dist/components/pagination/use-pagination.cjs +2 -0
  186. package/dist/components/pagination/use-pagination.cjs.map +1 -0
  187. package/dist/components/pagination/use-pagination.js +57 -0
  188. package/dist/components/pagination/use-pagination.js.map +1 -0
  189. package/dist/components/popover/Popover.cjs +2 -0
  190. package/dist/components/popover/Popover.cjs.map +1 -0
  191. package/dist/components/popover/Popover.js +27 -0
  192. package/dist/components/popover/Popover.js.map +1 -0
  193. package/dist/components/radio-button-group/RadioButtonGroup.cjs +2 -0
  194. package/dist/components/radio-button-group/RadioButtonGroup.cjs.map +1 -0
  195. package/dist/components/radio-button-group/RadioButtonGroup.js +22 -0
  196. package/dist/components/radio-button-group/RadioButtonGroup.js.map +1 -0
  197. package/dist/components/radio-card-group/RadioCardGroup.cjs +2 -0
  198. package/dist/components/radio-card-group/RadioCardGroup.cjs.map +1 -0
  199. package/dist/components/radio-card-group/RadioCardGroup.js +23 -0
  200. package/dist/components/radio-card-group/RadioCardGroup.js.map +1 -0
  201. package/dist/components/radio-card-group/namespace.cjs +2 -0
  202. package/dist/components/radio-card-group/namespace.cjs.map +1 -0
  203. package/dist/components/radio-card-group/namespace.js +11 -0
  204. package/dist/components/radio-card-group/namespace.js.map +1 -0
  205. package/dist/components/radio-group/RadioGroup.cjs +2 -0
  206. package/dist/components/radio-group/RadioGroup.cjs.map +1 -0
  207. package/dist/components/radio-group/RadioGroup.js +22 -0
  208. package/dist/components/radio-group/RadioGroup.js.map +1 -0
  209. package/dist/components/select/Select.cjs +2 -0
  210. package/dist/components/select/Select.cjs.map +1 -0
  211. package/dist/components/select/Select.js +146 -0
  212. package/dist/components/select/Select.js.map +1 -0
  213. package/dist/components/select-language/SelectLanguage.cjs +2 -0
  214. package/dist/components/select-language/SelectLanguage.cjs.map +1 -0
  215. package/dist/components/select-language/SelectLanguage.js +89 -0
  216. package/dist/components/select-language/SelectLanguage.js.map +1 -0
  217. package/dist/components/status-tag-select/StatusTagSelect.cjs +2 -0
  218. package/dist/components/status-tag-select/StatusTagSelect.cjs.map +1 -0
  219. package/dist/components/status-tag-select/StatusTagSelect.js +117 -0
  220. package/dist/components/status-tag-select/StatusTagSelect.js.map +1 -0
  221. package/dist/components/switch/Switch.cjs +2 -0
  222. package/dist/components/switch/Switch.cjs.map +1 -0
  223. package/dist/components/switch/Switch.js +20 -0
  224. package/dist/components/switch/Switch.js.map +1 -0
  225. package/dist/components/switch-card/SwitchCard.cjs +2 -0
  226. package/dist/components/switch-card/SwitchCard.cjs.map +1 -0
  227. package/dist/components/switch-card/SwitchCard.js +27 -0
  228. package/dist/components/switch-card/SwitchCard.js.map +1 -0
  229. package/dist/components/switch-card/namespace.cjs +2 -0
  230. package/dist/components/switch-card/namespace.cjs.map +1 -0
  231. package/dist/components/switch-card/namespace.js +10 -0
  232. package/dist/components/switch-card/namespace.js.map +1 -0
  233. package/dist/components/table/Table.cjs +2 -0
  234. package/dist/components/table/Table.cjs.map +1 -0
  235. package/dist/components/table/Table.js +113 -0
  236. package/dist/components/table/Table.js.map +1 -0
  237. package/dist/components/table/TableProvider.cjs +2 -0
  238. package/dist/components/table/TableProvider.cjs.map +1 -0
  239. package/dist/components/table/TableProvider.js +41 -0
  240. package/dist/components/table/TableProvider.js.map +1 -0
  241. package/dist/components/tabs/Tabs.cjs +2 -0
  242. package/dist/components/tabs/Tabs.cjs.map +1 -0
  243. package/dist/components/tabs/Tabs.js +27 -0
  244. package/dist/components/tabs/Tabs.js.map +1 -0
  245. package/dist/components/tag/Tag.cjs +2 -0
  246. package/dist/components/tag/Tag.cjs.map +1 -0
  247. package/dist/components/tag/Tag.js +18 -0
  248. package/dist/components/tag/Tag.js.map +1 -0
  249. package/dist/components/text/Text.cjs +2 -0
  250. package/dist/components/text/Text.cjs.map +1 -0
  251. package/dist/components/text/Text.js +13 -0
  252. package/dist/components/text/Text.js.map +1 -0
  253. package/dist/components/textarea/Textarea.cjs +2 -0
  254. package/dist/components/textarea/Textarea.cjs.map +1 -0
  255. package/dist/components/textarea/Textarea.js +9 -0
  256. package/dist/components/textarea/Textarea.js.map +1 -0
  257. package/dist/components/tooltip/Tooltip.cjs +2 -0
  258. package/dist/components/tooltip/Tooltip.cjs.map +1 -0
  259. package/dist/components/tooltip/Tooltip.js +44 -0
  260. package/dist/components/tooltip/Tooltip.js.map +1 -0
  261. package/dist/{icons.cjs → icons/index.cjs} +1 -1
  262. package/dist/icons/index.cjs.map +1 -0
  263. package/dist/{icons.js → icons/index.js} +1 -1
  264. package/dist/icons/index.js.map +1 -0
  265. package/dist/index.cjs +2 -0
  266. package/dist/index.cjs.map +1 -0
  267. package/dist/index.js +178 -0
  268. package/dist/index.js.map +1 -0
  269. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs +2 -0
  270. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.cjs.map +1 -0
  271. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js +30 -0
  272. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowDownTrayIcon.js.map +1 -0
  273. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs +2 -0
  274. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.cjs.map +1 -0
  275. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js +30 -0
  276. package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowLeftCircleIcon.js.map +1 -0
  277. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs +2 -0
  278. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.cjs.map +1 -0
  279. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js +30 -0
  280. package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentTextIcon.js.map +1 -0
  281. package/dist/node_modules/@pandacss/shared/dist/index.cjs +2 -0
  282. package/dist/node_modules/@pandacss/shared/dist/index.cjs.map +1 -0
  283. package/dist/node_modules/@pandacss/shared/dist/index.js +469 -0
  284. package/dist/node_modules/@pandacss/shared/dist/index.js.map +1 -0
  285. package/dist/node_modules/@zag-js/utils/dist/index.cjs +2 -0
  286. package/dist/node_modules/@zag-js/utils/dist/index.cjs.map +1 -0
  287. package/dist/node_modules/@zag-js/utils/dist/index.js +8 -0
  288. package/dist/node_modules/@zag-js/utils/dist/index.js.map +1 -0
  289. package/dist/node_modules/deepmerge/dist/cjs.cjs +2 -0
  290. package/dist/node_modules/deepmerge/dist/cjs.cjs.map +1 -0
  291. package/dist/node_modules/deepmerge/dist/cjs.js +81 -0
  292. package/dist/node_modules/deepmerge/dist/cjs.js.map +1 -0
  293. package/dist/node_modules/lodash/lodash.cjs +28 -0
  294. package/dist/node_modules/lodash/lodash.cjs.map +1 -0
  295. package/dist/node_modules/lodash/lodash.js +3679 -0
  296. package/dist/node_modules/lodash/lodash.js.map +1 -0
  297. package/dist/preset.cjs +2 -0
  298. package/dist/preset.cjs.map +1 -0
  299. package/dist/preset.js +35 -0
  300. package/dist/preset.js.map +1 -0
  301. package/dist/shared/ConditionalWrapper.cjs +2 -0
  302. package/dist/shared/ConditionalWrapper.cjs.map +1 -0
  303. package/dist/shared/ConditionalWrapper.js +6 -0
  304. package/dist/shared/ConditionalWrapper.js.map +1 -0
  305. package/dist/shared/assets/icons.cjs +2 -0
  306. package/dist/shared/assets/icons.cjs.map +1 -0
  307. package/dist/shared/assets/icons.js +24 -0
  308. package/dist/shared/assets/icons.js.map +1 -0
  309. package/dist/shared/hooks/useUncontrolled.cjs +2 -0
  310. package/dist/shared/hooks/useUncontrolled.cjs.map +1 -0
  311. package/dist/shared/hooks/useUncontrolled.js +18 -0
  312. package/dist/shared/hooks/useUncontrolled.js.map +1 -0
  313. package/dist/shared/utils/events.cjs +2 -0
  314. package/dist/shared/utils/events.cjs.map +1 -0
  315. package/dist/shared/utils/events.js +8 -0
  316. package/dist/shared/utils/events.js.map +1 -0
  317. package/dist/theme/breakpoints.cjs +2 -0
  318. package/dist/theme/breakpoints.cjs.map +1 -0
  319. package/dist/theme/breakpoints.js +11 -0
  320. package/dist/theme/breakpoints.js.map +1 -0
  321. package/dist/theme/conditions.cjs +2 -0
  322. package/dist/theme/conditions.cjs.map +1 -0
  323. package/dist/theme/conditions.js +25 -0
  324. package/dist/theme/conditions.js.map +1 -0
  325. package/dist/theme/containers.cjs +2 -0
  326. package/dist/theme/containers.cjs.map +1 -0
  327. package/dist/theme/containers.js +19 -0
  328. package/dist/theme/containers.js.map +1 -0
  329. package/dist/theme/globalCss.cjs +4 -0
  330. package/dist/theme/globalCss.cjs.map +1 -0
  331. package/dist/theme/globalCss.js +101 -0
  332. package/dist/theme/globalCss.js.map +1 -0
  333. package/dist/theme/keyframes.cjs +2 -0
  334. package/dist/theme/keyframes.cjs.map +1 -0
  335. package/dist/theme/keyframes.js +173 -0
  336. package/dist/theme/keyframes.js.map +1 -0
  337. package/dist/theme/recipes/accordion.cjs +2 -0
  338. package/dist/theme/recipes/accordion.cjs.map +1 -0
  339. package/dist/theme/recipes/accordion.js +112 -0
  340. package/dist/theme/recipes/accordion.js.map +1 -0
  341. package/dist/theme/recipes/action-card.cjs +2 -0
  342. package/dist/theme/recipes/action-card.cjs.map +1 -0
  343. package/dist/theme/recipes/action-card.js +87 -0
  344. package/dist/theme/recipes/action-card.js.map +1 -0
  345. package/dist/theme/recipes/alert.cjs +2 -0
  346. package/dist/theme/recipes/alert.cjs.map +1 -0
  347. package/dist/theme/recipes/alert.js +68 -0
  348. package/dist/theme/recipes/alert.js.map +1 -0
  349. package/dist/theme/recipes/app/navigation-language-select.cjs +2 -0
  350. package/dist/theme/recipes/app/navigation-language-select.cjs.map +1 -0
  351. package/dist/theme/recipes/app/navigation-language-select.js +151 -0
  352. package/dist/theme/recipes/app/navigation-language-select.js.map +1 -0
  353. package/dist/theme/recipes/app/navigation.cjs +2 -0
  354. package/dist/theme/recipes/app/navigation.cjs.map +1 -0
  355. package/dist/theme/recipes/app/navigation.js +271 -0
  356. package/dist/theme/recipes/app/navigation.js.map +1 -0
  357. package/dist/theme/recipes/app/price-tag.cjs +2 -0
  358. package/dist/theme/recipes/app/price-tag.cjs.map +1 -0
  359. package/dist/theme/recipes/app/price-tag.js +73 -0
  360. package/dist/theme/recipes/app/price-tag.js.map +1 -0
  361. package/dist/theme/recipes/app/product-card-catalog.cjs +2 -0
  362. package/dist/theme/recipes/app/product-card-catalog.cjs.map +1 -0
  363. package/dist/theme/recipes/app/product-card-catalog.js +196 -0
  364. package/dist/theme/recipes/app/product-card-catalog.js.map +1 -0
  365. package/dist/theme/recipes/avatar-group.cjs +2 -0
  366. package/dist/theme/recipes/avatar-group.cjs.map +1 -0
  367. package/dist/theme/recipes/avatar-group.js +40 -0
  368. package/dist/theme/recipes/avatar-group.js.map +1 -0
  369. package/dist/theme/recipes/avatar.cjs +2 -0
  370. package/dist/theme/recipes/avatar.cjs.map +1 -0
  371. package/dist/theme/recipes/avatar.js +99 -0
  372. package/dist/theme/recipes/avatar.js.map +1 -0
  373. package/dist/theme/recipes/breadcrumb.cjs +2 -0
  374. package/dist/theme/recipes/breadcrumb.cjs.map +1 -0
  375. package/dist/theme/recipes/breadcrumb.js +34 -0
  376. package/dist/theme/recipes/breadcrumb.js.map +1 -0
  377. package/dist/theme/recipes/button-filter.cjs +2 -0
  378. package/dist/theme/recipes/button-filter.cjs.map +1 -0
  379. package/dist/theme/recipes/button-filter.js +63 -0
  380. package/dist/theme/recipes/button-filter.js.map +1 -0
  381. package/dist/theme/recipes/button.cjs +2 -0
  382. package/dist/theme/recipes/button.cjs.map +1 -0
  383. package/dist/theme/recipes/button.js +298 -0
  384. package/dist/theme/recipes/button.js.map +1 -0
  385. package/dist/theme/recipes/chat/chat-document-message.cjs +2 -0
  386. package/dist/theme/recipes/chat/chat-document-message.cjs.map +1 -0
  387. package/dist/theme/recipes/chat/chat-document-message.js +46 -0
  388. package/dist/theme/recipes/chat/chat-document-message.js.map +1 -0
  389. package/dist/theme/recipes/chat/chat-input-text.cjs +2 -0
  390. package/dist/theme/recipes/chat/chat-input-text.cjs.map +1 -0
  391. package/dist/theme/recipes/chat/chat-input-text.js +30 -0
  392. package/dist/theme/recipes/chat/chat-input-text.js.map +1 -0
  393. package/dist/theme/recipes/chat/chat-message.cjs +2 -0
  394. package/dist/theme/recipes/chat/chat-message.cjs.map +1 -0
  395. package/dist/theme/recipes/chat/chat-message.js +48 -0
  396. package/dist/theme/recipes/chat/chat-message.js.map +1 -0
  397. package/dist/theme/recipes/chat/chat-profile-avatar.cjs +2 -0
  398. package/dist/theme/recipes/chat/chat-profile-avatar.cjs.map +1 -0
  399. package/dist/theme/recipes/chat/chat-profile-avatar.js +28 -0
  400. package/dist/theme/recipes/chat/chat-profile-avatar.js.map +1 -0
  401. package/dist/theme/recipes/chat/chat.cjs +2 -0
  402. package/dist/theme/recipes/chat/chat.cjs.map +1 -0
  403. package/dist/theme/recipes/chat/chat.js +59 -0
  404. package/dist/theme/recipes/chat/chat.js.map +1 -0
  405. package/dist/theme/recipes/checkbox-card.cjs +2 -0
  406. package/dist/theme/recipes/checkbox-card.cjs.map +1 -0
  407. package/dist/theme/recipes/checkbox-card.js +42 -0
  408. package/dist/theme/recipes/checkbox-card.js.map +1 -0
  409. package/dist/theme/recipes/checkbox-group.cjs +2 -0
  410. package/dist/theme/recipes/checkbox-group.cjs.map +1 -0
  411. package/dist/theme/recipes/checkbox-group.js +15 -0
  412. package/dist/theme/recipes/checkbox-group.js.map +1 -0
  413. package/dist/theme/recipes/checkbox.cjs +2 -0
  414. package/dist/theme/recipes/checkbox.cjs.map +1 -0
  415. package/dist/theme/recipes/checkbox.js +131 -0
  416. package/dist/theme/recipes/checkbox.js.map +1 -0
  417. package/dist/theme/recipes/chip.cjs +2 -0
  418. package/dist/theme/recipes/chip.cjs.map +1 -0
  419. package/dist/theme/recipes/chip.js +184 -0
  420. package/dist/theme/recipes/chip.js.map +1 -0
  421. package/dist/theme/recipes/collapsible.cjs +2 -0
  422. package/dist/theme/recipes/collapsible.cjs.map +1 -0
  423. package/dist/theme/recipes/collapsible.js +30 -0
  424. package/dist/theme/recipes/collapsible.js.map +1 -0
  425. package/dist/theme/recipes/combobox.cjs +2 -0
  426. package/dist/theme/recipes/combobox.cjs.map +1 -0
  427. package/dist/theme/recipes/combobox.js +179 -0
  428. package/dist/theme/recipes/combobox.js.map +1 -0
  429. package/dist/theme/recipes/common/group-card.cjs +2 -0
  430. package/dist/theme/recipes/common/group-card.cjs.map +1 -0
  431. package/dist/theme/recipes/common/group-card.js +81 -0
  432. package/dist/theme/recipes/common/group-card.js.map +1 -0
  433. package/dist/theme/recipes/datepicker.cjs +2 -0
  434. package/dist/theme/recipes/datepicker.cjs.map +1 -0
  435. package/dist/theme/recipes/datepicker.js +178 -0
  436. package/dist/theme/recipes/datepicker.js.map +1 -0
  437. package/dist/theme/recipes/dialog.cjs +2 -0
  438. package/dist/theme/recipes/dialog.cjs.map +1 -0
  439. package/dist/theme/recipes/dialog.js +154 -0
  440. package/dist/theme/recipes/dialog.js.map +1 -0
  441. package/dist/theme/recipes/drawer.cjs +2 -0
  442. package/dist/theme/recipes/drawer.cjs.map +1 -0
  443. package/dist/theme/recipes/drawer.js +129 -0
  444. package/dist/theme/recipes/drawer.js.map +1 -0
  445. package/dist/theme/recipes/flag.cjs +2 -0
  446. package/dist/theme/recipes/flag.cjs.map +1 -0
  447. package/dist/theme/recipes/flag.js +33 -0
  448. package/dist/theme/recipes/flag.js.map +1 -0
  449. package/dist/theme/recipes/form/control.cjs +2 -0
  450. package/dist/theme/recipes/form/control.cjs.map +1 -0
  451. package/dist/theme/recipes/form/control.js +37 -0
  452. package/dist/theme/recipes/form/control.js.map +1 -0
  453. package/dist/theme/recipes/form/helper-text.cjs +2 -0
  454. package/dist/theme/recipes/form/helper-text.cjs.map +1 -0
  455. package/dist/theme/recipes/form/helper-text.js +16 -0
  456. package/dist/theme/recipes/form/helper-text.js.map +1 -0
  457. package/dist/theme/recipes/form/label.cjs +2 -0
  458. package/dist/theme/recipes/form/label.cjs.map +1 -0
  459. package/dist/theme/recipes/form/label.js +50 -0
  460. package/dist/theme/recipes/form/label.js.map +1 -0
  461. package/dist/theme/recipes/heading.cjs +2 -0
  462. package/dist/theme/recipes/heading.cjs.map +1 -0
  463. package/dist/theme/recipes/heading.js +37 -0
  464. package/dist/theme/recipes/heading.js.map +1 -0
  465. package/dist/theme/recipes/highlightedInput.cjs +2 -0
  466. package/dist/theme/recipes/highlightedInput.cjs.map +1 -0
  467. package/dist/theme/recipes/highlightedInput.js +48 -0
  468. package/dist/theme/recipes/highlightedInput.js.map +1 -0
  469. package/dist/theme/recipes/icon-button.cjs +2 -0
  470. package/dist/theme/recipes/icon-button.cjs.map +1 -0
  471. package/dist/theme/recipes/icon-button.js +91 -0
  472. package/dist/theme/recipes/icon-button.js.map +1 -0
  473. package/dist/theme/recipes/icon.cjs +2 -0
  474. package/dist/theme/recipes/icon.cjs.map +1 -0
  475. package/dist/theme/recipes/icon.js +44 -0
  476. package/dist/theme/recipes/icon.js.map +1 -0
  477. package/dist/theme/recipes/illustration.cjs +2 -0
  478. package/dist/theme/recipes/illustration.cjs.map +1 -0
  479. package/dist/theme/recipes/illustration.js +50 -0
  480. package/dist/theme/recipes/illustration.js.map +1 -0
  481. package/dist/theme/recipes/index.cjs +2 -0
  482. package/dist/theme/recipes/index.cjs.map +1 -0
  483. package/dist/theme/recipes/index.js +129 -0
  484. package/dist/theme/recipes/index.js.map +1 -0
  485. package/dist/theme/recipes/input-addon.cjs +2 -0
  486. package/dist/theme/recipes/input-addon.cjs.map +1 -0
  487. package/dist/theme/recipes/input-addon.js +27 -0
  488. package/dist/theme/recipes/input-addon.js.map +1 -0
  489. package/dist/theme/recipes/input-group.cjs +2 -0
  490. package/dist/theme/recipes/input-group.cjs.map +1 -0
  491. package/dist/theme/recipes/input-group.js +52 -0
  492. package/dist/theme/recipes/input-group.js.map +1 -0
  493. package/dist/theme/recipes/input.cjs +2 -0
  494. package/dist/theme/recipes/input.cjs.map +1 -0
  495. package/dist/theme/recipes/input.js +64 -0
  496. package/dist/theme/recipes/input.js.map +1 -0
  497. package/dist/theme/recipes/menu.cjs +2 -0
  498. package/dist/theme/recipes/menu.cjs.map +1 -0
  499. package/dist/theme/recipes/menu.js +102 -0
  500. package/dist/theme/recipes/menu.js.map +1 -0
  501. package/dist/theme/recipes/pagination.cjs +2 -0
  502. package/dist/theme/recipes/pagination.cjs.map +1 -0
  503. package/dist/theme/recipes/pagination.js +73 -0
  504. package/dist/theme/recipes/pagination.js.map +1 -0
  505. package/dist/theme/recipes/phone-number-input.cjs +2 -0
  506. package/dist/theme/recipes/phone-number-input.cjs.map +1 -0
  507. package/dist/theme/recipes/phone-number-input.js +68 -0
  508. package/dist/theme/recipes/phone-number-input.js.map +1 -0
  509. package/dist/theme/recipes/popover.cjs +2 -0
  510. package/dist/theme/recipes/popover.cjs.map +1 -0
  511. package/dist/theme/recipes/popover.js +30 -0
  512. package/dist/theme/recipes/popover.js.map +1 -0
  513. package/dist/theme/recipes/radio-button-group.cjs +2 -0
  514. package/dist/theme/recipes/radio-button-group.cjs.map +1 -0
  515. package/dist/theme/recipes/radio-button-group.js +97 -0
  516. package/dist/theme/recipes/radio-button-group.js.map +1 -0
  517. package/dist/theme/recipes/radio-card-group.cjs +2 -0
  518. package/dist/theme/recipes/radio-card-group.cjs.map +1 -0
  519. package/dist/theme/recipes/radio-card-group.js +70 -0
  520. package/dist/theme/recipes/radio-card-group.js.map +1 -0
  521. package/dist/theme/recipes/radio-group.cjs +2 -0
  522. package/dist/theme/recipes/radio-group.cjs.map +1 -0
  523. package/dist/theme/recipes/radio-group.js +121 -0
  524. package/dist/theme/recipes/radio-group.js.map +1 -0
  525. package/dist/theme/recipes/select-language.cjs +2 -0
  526. package/dist/theme/recipes/select-language.cjs.map +1 -0
  527. package/dist/theme/recipes/select-language.js +115 -0
  528. package/dist/theme/recipes/select-language.js.map +1 -0
  529. package/dist/theme/recipes/select.cjs +2 -0
  530. package/dist/theme/recipes/select.cjs.map +1 -0
  531. package/dist/theme/recipes/select.js +209 -0
  532. package/dist/theme/recipes/select.js.map +1 -0
  533. package/dist/theme/recipes/status-tag-select.cjs +2 -0
  534. package/dist/theme/recipes/status-tag-select.cjs.map +1 -0
  535. package/dist/theme/recipes/status-tag-select.js +177 -0
  536. package/dist/theme/recipes/status-tag-select.js.map +1 -0
  537. package/dist/theme/recipes/switch-card.cjs +2 -0
  538. package/dist/theme/recipes/switch-card.cjs.map +1 -0
  539. package/dist/theme/recipes/switch-card.js +44 -0
  540. package/dist/theme/recipes/switch-card.js.map +1 -0
  541. package/dist/theme/recipes/switch.cjs +2 -0
  542. package/dist/theme/recipes/switch.cjs.map +1 -0
  543. package/dist/theme/recipes/switch.js +90 -0
  544. package/dist/theme/recipes/switch.js.map +1 -0
  545. package/dist/theme/recipes/table-container.cjs +2 -0
  546. package/dist/theme/recipes/table-container.cjs.map +1 -0
  547. package/dist/theme/recipes/table-container.js +21 -0
  548. package/dist/theme/recipes/table-container.js.map +1 -0
  549. package/dist/theme/recipes/table-empty-row.cjs +2 -0
  550. package/dist/theme/recipes/table-empty-row.cjs.map +1 -0
  551. package/dist/theme/recipes/table-empty-row.js +19 -0
  552. package/dist/theme/recipes/table-empty-row.js.map +1 -0
  553. package/dist/theme/recipes/table-group-title.cjs +2 -0
  554. package/dist/theme/recipes/table-group-title.cjs.map +1 -0
  555. package/dist/theme/recipes/table-group-title.js +36 -0
  556. package/dist/theme/recipes/table-group-title.js.map +1 -0
  557. package/dist/theme/recipes/table.cjs +2 -0
  558. package/dist/theme/recipes/table.cjs.map +1 -0
  559. package/dist/theme/recipes/table.js +111 -0
  560. package/dist/theme/recipes/table.js.map +1 -0
  561. package/dist/theme/recipes/tabs-chip.cjs +2 -0
  562. package/dist/theme/recipes/tabs-chip.cjs.map +1 -0
  563. package/dist/theme/recipes/tabs-chip.js +49 -0
  564. package/dist/theme/recipes/tabs-chip.js.map +1 -0
  565. package/dist/theme/recipes/tabs.cjs +2 -0
  566. package/dist/theme/recipes/tabs.cjs.map +1 -0
  567. package/dist/theme/recipes/tabs.js +128 -0
  568. package/dist/theme/recipes/tabs.js.map +1 -0
  569. package/dist/theme/recipes/tag.cjs +2 -0
  570. package/dist/theme/recipes/tag.cjs.map +1 -0
  571. package/dist/theme/recipes/tag.js +124 -0
  572. package/dist/theme/recipes/tag.js.map +1 -0
  573. package/dist/theme/recipes/text.cjs +2 -0
  574. package/dist/theme/recipes/text.cjs.map +1 -0
  575. package/dist/theme/recipes/text.js +40 -0
  576. package/dist/theme/recipes/text.js.map +1 -0
  577. package/dist/theme/recipes/textarea.cjs +2 -0
  578. package/dist/theme/recipes/textarea.cjs.map +1 -0
  579. package/dist/theme/recipes/textarea.js +16 -0
  580. package/dist/theme/recipes/textarea.js.map +1 -0
  581. package/dist/theme/recipes/tooltip.cjs +2 -0
  582. package/dist/theme/recipes/tooltip.cjs.map +1 -0
  583. package/dist/theme/recipes/tooltip.js +64 -0
  584. package/dist/theme/recipes/tooltip.js.map +1 -0
  585. package/dist/theme/semantic-tokens/colors.cjs +2 -0
  586. package/dist/theme/semantic-tokens/colors.cjs.map +1 -0
  587. package/dist/theme/semantic-tokens/colors.js +143 -0
  588. package/dist/theme/semantic-tokens/colors.js.map +1 -0
  589. package/dist/theme/semantic-tokens/index.cjs +2 -0
  590. package/dist/theme/semantic-tokens/index.cjs.map +1 -0
  591. package/dist/theme/semantic-tokens/index.js +9 -0
  592. package/dist/theme/semantic-tokens/index.js.map +1 -0
  593. package/dist/theme/text-styles.cjs +2 -0
  594. package/dist/theme/text-styles.cjs.map +1 -0
  595. package/dist/theme/text-styles.js +90 -0
  596. package/dist/theme/text-styles.js.map +1 -0
  597. package/dist/theme/tokens/animations.cjs +2 -0
  598. package/dist/theme/tokens/animations.cjs.map +1 -0
  599. package/dist/theme/tokens/animations.js +48 -0
  600. package/dist/theme/tokens/animations.js.map +1 -0
  601. package/dist/theme/tokens/aspect-ratios.cjs +2 -0
  602. package/dist/theme/tokens/aspect-ratios.cjs.map +1 -0
  603. package/dist/theme/tokens/aspect-ratios.js +14 -0
  604. package/dist/theme/tokens/aspect-ratios.js.map +1 -0
  605. package/dist/theme/tokens/blurs.cjs +2 -0
  606. package/dist/theme/tokens/blurs.cjs.map +1 -0
  607. package/dist/theme/tokens/blurs.js +15 -0
  608. package/dist/theme/tokens/blurs.js.map +1 -0
  609. package/dist/theme/tokens/borders.cjs +2 -0
  610. package/dist/theme/tokens/borders.cjs.map +1 -0
  611. package/dist/theme/tokens/borders.js +11 -0
  612. package/dist/theme/tokens/borders.js.map +1 -0
  613. package/dist/theme/tokens/colors.cjs +2 -0
  614. package/dist/theme/tokens/colors.cjs.map +1 -0
  615. package/dist/theme/tokens/colors.js +80 -0
  616. package/dist/theme/tokens/colors.js.map +1 -0
  617. package/dist/theme/tokens/durations.cjs +2 -0
  618. package/dist/theme/tokens/durations.cjs.map +1 -0
  619. package/dist/theme/tokens/durations.js +15 -0
  620. package/dist/theme/tokens/durations.js.map +1 -0
  621. package/dist/theme/tokens/easings.cjs +51 -0
  622. package/dist/theme/tokens/easings.cjs.map +1 -0
  623. package/dist/theme/tokens/easings.js +95 -0
  624. package/dist/theme/tokens/easings.js.map +1 -0
  625. package/dist/theme/tokens/index.cjs +2 -0
  626. package/dist/theme/tokens/index.cjs.map +1 -0
  627. package/dist/theme/tokens/index.js +37 -0
  628. package/dist/theme/tokens/index.js.map +1 -0
  629. package/dist/theme/tokens/radii.cjs +2 -0
  630. package/dist/theme/tokens/radii.cjs.map +1 -0
  631. package/dist/theme/tokens/radii.js +29 -0
  632. package/dist/theme/tokens/radii.js.map +1 -0
  633. package/dist/theme/tokens/shadows.cjs +2 -0
  634. package/dist/theme/tokens/shadows.cjs.map +1 -0
  635. package/dist/theme/tokens/shadows.js +15 -0
  636. package/dist/theme/tokens/shadows.js.map +1 -0
  637. package/dist/theme/tokens/sizes.cjs +2 -0
  638. package/dist/theme/tokens/sizes.cjs.map +1 -0
  639. package/dist/theme/tokens/sizes.js +87 -0
  640. package/dist/theme/tokens/sizes.js.map +1 -0
  641. package/dist/theme/tokens/spacing.cjs +2 -0
  642. package/dist/theme/tokens/spacing.cjs.map +1 -0
  643. package/dist/theme/tokens/spacing.js +86 -0
  644. package/dist/theme/tokens/spacing.js.map +1 -0
  645. package/dist/theme/tokens/typography.cjs +2 -0
  646. package/dist/theme/tokens/typography.cjs.map +1 -0
  647. package/dist/theme/tokens/typography.js +87 -0
  648. package/dist/theme/tokens/typography.js.map +1 -0
  649. package/dist/theme/tokens/z-index.cjs +2 -0
  650. package/dist/theme/tokens/z-index.cjs.map +1 -0
  651. package/dist/theme/tokens/z-index.js +44 -0
  652. package/dist/theme/tokens/z-index.js.map +1 -0
  653. package/dist/theme/utilities.cjs +2 -0
  654. package/dist/theme/utilities.cjs.map +1 -0
  655. package/dist/theme/utilities.js +17 -0
  656. package/dist/theme/utilities.js.map +1 -0
  657. package/dist/utils/slots.cjs +2 -0
  658. package/dist/utils/slots.cjs.map +1 -0
  659. package/dist/utils/slots.js +42 -0
  660. package/dist/utils/slots.js.map +1 -0
  661. package/package.json +18 -7
  662. package/dist/icons.cjs.map +0 -1
  663. package/dist/icons.js.map +0 -1
  664. package/dist/ui.cjs +0 -79
  665. package/dist/ui.cjs.map +0 -1
  666. package/dist/ui.js.map +0 -1
@@ -0,0 +1,176 @@
1
+ "use client";
2
+ import { jsxs as p, jsx as e, Fragment as L } from "react/jsx-runtime";
3
+ import { createListCollection as U, Combobox as r, Portal as e1, useComboboxItemContext as t1 } from "@ark-ui/react";
4
+ import { useState as x, useMemo as P, useCallback as o1, useEffect as n1 } from "react";
5
+ import { styled as i } from "@stokelp/styled-system/jsx";
6
+ import { l as l1 } from "../../_virtual/lodash.js";
7
+ import { combobox as r1 } from "@stokelp/styled-system/recipes";
8
+ import { createStyleContext as i1 } from "../../utils/slots.js";
9
+ import { ConditionalWrapper as v } from "../../shared/ConditionalWrapper.js";
10
+ import { Text as Z } from "../text/Text.js";
11
+ import { Tooltip as B } from "../tooltip/Tooltip.js";
12
+ import { FixedSizeList as c1 } from "react-window";
13
+ import { css as z } from "@stokelp/styled-system/css";
14
+ import { Input as s1 } from "../input/Input.js";
15
+ const { withProvider: h1, withContext: h } = i1(r1), u1 = h1(i(r.Root), "root", {
16
+ defaultProps: {
17
+ loopFocus: !0
18
+ }
19
+ }), a1 = h(i(r.ClearTrigger), "clearTrigger"), d1 = h(i(r.Content), "content"), p1 = h(i(r.Input), "input"), C1 = h(i(r.Control), "control"), S = h(i(r.Item), "item"), g1 = h(i(r.ItemText), "itemText"), f1 = h(i(r.Positioner), "positioner"), m1 = h(i(r.Trigger), "trigger"), w1 = () => /* @__PURE__ */ p("svg", { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
20
+ /* @__PURE__ */ e("rect", { x: "0.5", y: "1", width: "15", height: "15", rx: "3.5", fill: "white" }),
21
+ /* @__PURE__ */ e("rect", { x: "0.5", y: "1", width: "15", height: "15", rx: "3.5", className: z({ stroke: "grey.100" }) })
22
+ ] }), x1 = () => /* @__PURE__ */ p("svg", { width: "16", height: "17", viewBox: "0 0 16 17", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
23
+ /* @__PURE__ */ e("rect", { y: "0.5", width: "16", height: "16", rx: "4", className: z({ fill: "primary.500" }) }),
24
+ /* @__PURE__ */ e(
25
+ "path",
26
+ {
27
+ fillRule: "evenodd",
28
+ clipRule: "evenodd",
29
+ 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",
30
+ fill: "white"
31
+ }
32
+ )
33
+ ] });
34
+ function V({ item: l, isMultiple: c, renderItem: u }) {
35
+ const f = t1();
36
+ return /* @__PURE__ */ p(L, { children: [
37
+ c ? f.selected ? /* @__PURE__ */ e(x1, {}) : /* @__PURE__ */ e(w1, {}) : null,
38
+ u ? u(l) : /* @__PURE__ */ e(g1, { truncate: !0, children: l.label })
39
+ ] });
40
+ }
41
+ const V1 = ({
42
+ items: l = [],
43
+ initialItems: c,
44
+ debounceMs: u = 0,
45
+ placeholder: f,
46
+ emptyLabel: E,
47
+ loadingLabel: O,
48
+ usePortal: j = !0,
49
+ withAutoFilter: C = !0,
50
+ positioning: N,
51
+ loadItems: g,
52
+ renderItem: b,
53
+ onResetInitialItems: y,
54
+ isLoading: Q,
55
+ value: W,
56
+ openDropdownOnFocus: $ = !0,
57
+ clearValueWhenEmpty: q = !0,
58
+ virtualized: A,
59
+ rowHeight: T = 34,
60
+ returnItemsOnEmpty: D,
61
+ ...M
62
+ }) => {
63
+ const [G, a] = x(() => l), [J, I] = x(!1), [K, X] = x(!1), m = typeof g == "function", d = P(
64
+ () => g ? l1.debounce(async (t) => {
65
+ try {
66
+ X(!0), I(!0);
67
+ const o = await g(t);
68
+ a(o);
69
+ } catch (o) {
70
+ console.error(o), a([]);
71
+ } finally {
72
+ I(!1);
73
+ }
74
+ }, u) : null,
75
+ [g, u]
76
+ ), n = [...G, ...c ?? []], Y = o1(
77
+ async (t) => {
78
+ c && c.length > 0 && !c.find((s) => s.label === t.inputValue) && y?.();
79
+ const { inputValue: o } = t;
80
+ if (d)
81
+ d(o);
82
+ else {
83
+ const s = C && o !== "" ? l.filter((F) => F.label.toLowerCase().includes(o.toLowerCase())) : l;
84
+ if (s.length === 0 && D)
85
+ return a(l);
86
+ a(s);
87
+ }
88
+ },
89
+ [d, l, C]
90
+ );
91
+ n1(() => {
92
+ !C && !d && a(l);
93
+ }, [l, C, d]);
94
+ const _ = P(() => U({ items: n }), [n]), H = Q ?? J, R = O ?? /* @__PURE__ */ e(Z, { p: "space-8", textAlign: "center", children: "Chargement..." }), k = E ?? /* @__PURE__ */ e(Z, { p: "space-8", textAlign: "center", children: "Aucun résultat" }), w = !1;
95
+ return /* @__PURE__ */ p(
96
+ u1,
97
+ {
98
+ lazyMount: !0,
99
+ unmountOnExit: !0,
100
+ collection: _,
101
+ positioning: { sameWidth: !0, gutter: 0, ...N },
102
+ "data-recipe": "combobox",
103
+ onInputValueChange: Y,
104
+ value: W,
105
+ ...M,
106
+ multiple: w,
107
+ children: [
108
+ /* @__PURE__ */ p(C1, { children: [
109
+ /* @__PURE__ */ e(r.Context, { children: (t) => /* @__PURE__ */ e(
110
+ p1,
111
+ {
112
+ asChild: !0,
113
+ placeholder: f,
114
+ onInput: (o) => {
115
+ const s = o.currentTarget.value;
116
+ q && s === "" && t.clearValue();
117
+ },
118
+ onFocus: () => {
119
+ !$ || m || t.setOpen(!0);
120
+ },
121
+ children: /* @__PURE__ */ e(s1, {})
122
+ }
123
+ ) }),
124
+ /* @__PURE__ */ e(m1, { asChild: !0, hidden: m && (!c || c.length === 0), children: /* @__PURE__ */ e("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
125
+ "path",
126
+ {
127
+ fillRule: "evenodd",
128
+ clipRule: "evenodd",
129
+ 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",
130
+ fill: "currentColor"
131
+ }
132
+ ) }) }),
133
+ /* @__PURE__ */ e(a1, { disabled: M.readOnly, onClick: y, asChild: !0, children: /* @__PURE__ */ e("button", { children: /* @__PURE__ */ e("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
134
+ "path",
135
+ {
136
+ fillRule: "evenodd",
137
+ clipRule: "evenodd",
138
+ 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",
139
+ fill: "currentColor"
140
+ }
141
+ ) }) }) })
142
+ ] }),
143
+ /* @__PURE__ */ e(v, { when: j, wrapper: (t) => /* @__PURE__ */ e(e1, { children: t }), children: /* @__PURE__ */ e(f1, { children: /* @__PURE__ */ e(d1, { children: H ? R : n.length === 0 ? /* @__PURE__ */ e(L, { children: m ? K ? k : R : k }) : A ? /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(
144
+ c1,
145
+ {
146
+ height: Math.min(T * n.length, 180),
147
+ itemCount: n.length,
148
+ itemSize: T,
149
+ width: "100%",
150
+ children: ({ index: t, style: o }) => /* @__PURE__ */ e(
151
+ v,
152
+ {
153
+ when: !!n[t].tooltip,
154
+ wrapper: (s) => /* @__PURE__ */ e(B, { label: n[t].tooltip, children: s }),
155
+ children: /* @__PURE__ */ e(S, { item: n[t], style: o, children: /* @__PURE__ */ e(V, { renderItem: b, item: n[t], isMultiple: w }) }, n[t].value)
156
+ },
157
+ n[t].value
158
+ )
159
+ }
160
+ ) }) : n.map((t) => /* @__PURE__ */ e(
161
+ v,
162
+ {
163
+ when: !!t.tooltip,
164
+ wrapper: (o) => /* @__PURE__ */ e(B, { label: t.tooltip, children: o }),
165
+ children: /* @__PURE__ */ e(S, { item: t, children: /* @__PURE__ */ e(V, { renderItem: b, item: t, isMultiple: w }) }, t.value)
166
+ },
167
+ t.value
168
+ )) }) }) })
169
+ ]
170
+ }
171
+ );
172
+ };
173
+ export {
174
+ V1 as Combobox
175
+ };
176
+ //# sourceMappingURL=Combobox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Combobox.js","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":";;;;;;;;;;;;;;AAsBA,MAAM,EAAE,cAAAA,IAAc,aAAAC,MAAgBC,GAAmBC,EAAQ,GAG3DC,KAAOJ,GAAaK,EAAOC,EAAY,IAAS,GAAG,QAAQ;AAAA,EAC/D,cAAc;AAAA,IACZ,WAAW;AAAA,EAAA;AAEf,CAAC,GAEKC,KAAeN,EAAYI,EAAOC,EAAY,YAAY,GAAG,cAAc,GAC3EE,KAAUP,EAAYI,EAAOC,EAAY,OAAO,GAAG,SAAS,GAC5DG,KAAQR,EAAYI,EAAOC,EAAY,KAAK,GAAG,OAAO,GACtDI,KAAUT,EAAYI,EAAOC,EAAY,OAAO,GAAG,SAAS,GAC5DK,IAAOV,EAAYI,EAAOC,EAAY,IAAI,GAAG,MAAM,GACnDM,KAAWX,EAAYI,EAAOC,EAAY,QAAQ,GAAG,UAAU,GAC/DO,KAAaZ,EAAYI,EAAOC,EAAY,UAAU,GAAG,YAAY,GACrEQ,KAAUb,EAAYI,EAAOC,EAAY,OAAO,GAAG,SAAS,GA+B5DS,KAAiC,MACrC,gBAAAC,EAAC,OAAA,EAAI,OAAM,MAAK,QAAO,MAAK,SAAQ,aAAY,MAAK,QAAO,OAAM,8BAChE,UAAA;AAAA,EAAA,gBAAAC,EAAC,QAAA,EAAK,GAAE,OAAM,GAAE,KAA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AQ,GAAG;AAAA,YACjD,WAAWA,EAAS;AAAA,YACpB,UAAUhB;AAAA,YACV,OAAM;AAAA,YAEL,UAAA,CAAC,EAAE,OAAAoC,GAAO,OAAAC,EAAA,MACT,gBAAAhE;AAAA,cAAC2D;AAAA,cAAA;AAAA,gBAEC,MAAM,CAAC,CAAChB,EAASoB,CAAK,EAAE;AAAA,gBACxB,SAAS,OAAY,gBAAA/D,EAACiE,GAAA,EAAQ,OAAOtB,EAASoB,CAAK,EAAE,SAAU,UAAAH,EAAA,CAAS;AAAA,gBAExE,UAAA,gBAAA5D,EAACN,KAAiC,MAAMiD,EAASoB,CAAK,GAAG,OAAAC,GACvD,4BAAC7D,GAAA,EAAgB,YAAAG,GAAwB,MAAMqC,EAASoB,CAAK,GAAG,YAAYR,EAAA,CAAU,KAD7EZ,EAASoB,CAAK,EAAE,KAE3B;AAAA,cAAA;AAAA,cANKpB,EAASoB,CAAK,EAAE;AAAA,YAAA;AAAA,UAOvB;AAAA,QAAA,EAEJ,CACF,IAEApB,EAAS,IAAI,CAAAvC,MACX,gBAAAJ;AAAA,UAAC2D;AAAA,UAAA;AAAA,YAEC,MAAM,CAAC,CAACvD,EAAK;AAAA,YACb,SAAS,CAAAwD,MAAY,gBAAA5D,EAACiE,KAAQ,OAAO7D,EAAK,SAAU,UAAAwD,GAAS;AAAA,YAE7D,UAAA,gBAAA5D,EAACN,GAAA,EAAsB,MAAAU,GACrB,UAAA,gBAAAJ,EAACG,GAAA,EAAgB,YAAAG,GAAwB,MAAAF,GAAY,YAAYmD,EAAA,CAAU,EAAA,GADlEnD,EAAK,KAEhB;AAAA,UAAA;AAAA,UANKA,EAAK;AAAA,QAAA,CAQb,EAAA,CAEL,EAAA,CACF,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),p=require("@stokelp/styled-system/recipes"),t=require("@ark-ui/react"),H=require("../../utils/slots.cjs"),T=require("@stokelp/styled-system/jsx"),d=require("../input/InputGroup.cjs"),h=require("../input/InputAddon.cjs"),u=require("../input/Input.cjs"),x=require("../icon-button/IconButton.cjs"),{withProvider:b,withContext:r}=H.createStyleContext(p.datepicker),M=b(t.DatePicker.Root,"root",{defaultProps:{positioning:{placement:"bottom-start"},view:"day",locale:"fr",unmountOnExit:!0,lazyMount:!0,startOfWeek:6}}),L=r(t.DatePicker.Content,"content"),f=r(t.DatePicker.Control,"control"),g=r(t.DatePicker.Input,"input"),Z=r(t.DatePicker.MonthSelect,"monthSelect"),I=r(t.DatePicker.NextTrigger,"nextTrigger"),R=r(t.DatePicker.Positioner,"positioner"),m=r(t.DatePicker.PrevTrigger,"prevTrigger"),y=r(t.DatePicker.TableBody,"tableBody"),B=r(t.DatePicker.TableCell,"tableCell"),S=r(t.DatePicker.TableCellTrigger,"tableCellTrigger"),q=r(t.DatePicker.TableHead,"tableHead"),A=r(t.DatePicker.TableHeader,"tableHeader"),O=r(t.DatePicker.Table,"table"),j=r(t.DatePicker.TableRow,"tableRow"),P=r(t.DatePicker.Trigger,"trigger"),z=r(t.DatePicker.ViewControl,"viewControl"),G=r(t.DatePicker.View,"view"),N=r(t.DatePicker.YearSelect,"yearSelect"),k=r(T.styled(t.DatePicker.ClearTrigger),"clearTrigger"),v=()=>e.jsx("svg",{width:"23",height:"24",viewBox:"0 0 23 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.46875 2.25C6.8657 2.25 7.1875 2.58579 7.1875 3V4.5H15.8125V3C15.8125 2.58579 16.1343 2.25 16.5312 2.25C16.9282 2.25 17.25 2.58579 17.25 3V4.5H17.9688C19.5566 4.5 20.8438 5.84315 20.8438 7.5V18.75C20.8438 20.4069 19.5566 21.75 17.9688 21.75H5.03125C3.44343 21.75 2.15625 20.4069 2.15625 18.75V7.5C2.15625 5.84315 3.44343 4.5 5.03125 4.5H5.75V3C5.75 2.58579 6.0718 2.25 6.46875 2.25ZM5.03125 6C4.23734 6 3.59375 6.67157 3.59375 7.5V8.65135C4.01662 8.39609 4.50759 8.25 5.03125 8.25H17.9688C18.4924 8.25 18.9834 8.39609 19.4062 8.65135V7.5C19.4062 6.67157 18.7627 6 17.9688 6H5.03125ZM19.4062 11.25C19.4062 10.4216 18.7627 9.75 17.9688 9.75H5.03125C4.23734 9.75 3.59375 10.4216 3.59375 11.25V18.75C3.59375 19.5784 4.23734 20.25 5.03125 20.25H17.9688C18.7627 20.25 19.4062 19.5784 19.4062 18.75V11.25ZM10.7812 12.75C10.7812 12.3358 11.103 12 11.5 12H11.5072C11.9041 12 12.2259 12.3358 12.2259 12.75V12.7575C12.2259 13.1717 11.9041 13.5075 11.5072 13.5075H11.5C11.103 13.5075 10.7812 13.1717 10.7812 12.7575V12.75ZM12.9375 12.75C12.9375 12.3358 13.2593 12 13.6562 12H13.6634C14.0604 12 14.3822 12.3358 14.3822 12.75V12.7575C14.3822 13.1717 14.0604 13.5075 13.6634 13.5075H13.6562C13.2593 13.5075 12.9375 13.1717 12.9375 12.7575V12.75ZM15.0938 12.75C15.0938 12.3358 15.4155 12 15.8125 12H15.8197C16.2166 12 16.5384 12.3358 16.5384 12.75V12.7575C16.5384 13.1717 16.2166 13.5075 15.8197 13.5075H15.8125C15.4155 13.5075 15.0938 13.1717 15.0938 12.7575V12.75ZM6.46875 15C6.46875 14.5858 6.79054 14.25 7.1875 14.25H7.19469C7.59164 14.25 7.91344 14.5858 7.91344 15V15.0075C7.91344 15.4217 7.59164 15.7575 7.19469 15.7575H7.1875C6.79054 15.7575 6.46875 15.4217 6.46875 15.0075V15ZM8.625 15C8.625 14.5858 8.94679 14.25 9.34375 14.25H9.35094C9.74789 14.25 10.0697 14.5858 10.0697 15V15.0075C10.0697 15.4217 9.74789 15.7575 9.35094 15.7575H9.34375C8.94679 15.7575 8.625 15.4217 8.625 15.0075V15ZM10.7812 15C10.7812 14.5858 11.103 14.25 11.5 14.25H11.5072C11.9041 14.25 12.2259 14.5858 12.2259 15V15.0075C12.2259 15.4217 11.9041 15.7575 11.5072 15.7575H11.5C11.103 15.7575 10.7812 15.4217 10.7812 15.0075V15ZM12.9375 15C12.9375 14.5858 13.2593 14.25 13.6562 14.25H13.6634C14.0604 14.25 14.3822 14.5858 14.3822 15V15.0075C14.3822 15.4217 14.0604 15.7575 13.6634 15.7575H13.6562C13.2593 15.7575 12.9375 15.4217 12.9375 15.0075V15ZM15.0938 15C15.0938 14.5858 15.4155 14.25 15.8125 14.25H15.8197C16.2166 14.25 16.5384 14.5858 16.5384 15V15.0075C16.5384 15.4217 16.2166 15.7575 15.8197 15.7575H15.8125C15.4155 15.7575 15.0938 15.4217 15.0938 15.0075V15ZM6.46875 17.25C6.46875 16.8358 6.79054 16.5 7.1875 16.5H7.19469C7.59164 16.5 7.91344 16.8358 7.91344 17.25V17.2575C7.91344 17.6717 7.59164 18.0075 7.19469 18.0075H7.1875C6.79054 18.0075 6.46875 17.6717 6.46875 17.2575V17.25ZM8.625 17.25C8.625 16.8358 8.94679 16.5 9.34375 16.5H9.35094C9.74789 16.5 10.0697 16.8358 10.0697 17.25V17.2575C10.0697 17.6717 9.74789 18.0075 9.35094 18.0075H9.34375C8.94679 18.0075 8.625 17.6717 8.625 17.2575V17.25ZM10.7812 17.25C10.7812 16.8358 11.103 16.5 11.5 16.5H11.5072C11.9041 16.5 12.2259 16.8358 12.2259 17.25V17.2575C12.2259 17.6717 11.9041 18.0075 11.5072 18.0075H11.5C11.103 18.0075 10.7812 17.6717 10.7812 17.2575V17.25ZM12.9375 17.25C12.9375 16.8358 13.2593 16.5 13.6562 16.5H13.6634C14.0604 16.5 14.3822 16.8358 14.3822 17.25V17.2575C14.3822 17.6717 14.0604 18.0075 13.6634 18.0075H13.6562C13.2593 18.0075 12.9375 17.6717 12.9375 17.2575V17.25Z",fill:"currentColor"})}),Y=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L10.1464 2.64645C10.3417 2.45119 10.6583 2.45119 10.8536 2.64645C11.0488 2.84171 11.0488 3.15829 10.8536 3.35355L6.20711 8L10.8536 12.6464C11.0488 12.8417 11.0488 13.1583 10.8536 13.3536C10.6583 13.5488 10.3417 13.5488 10.1464 13.3536L5.14645 8.35355Z",fill:"currentColor"})}),F=()=>e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8536 7.64645C11.0488 7.84171 11.0488 8.15829 10.8536 8.35355L5.85355 13.3536C5.65829 13.5488 5.34171 13.5488 5.14645 13.3536C4.95118 13.1583 4.95118 12.8417 5.14645 12.6464L9.79289 8L5.14645 3.35355C4.95118 3.15829 4.95118 2.84171 5.14645 2.64645C5.34171 2.45118 5.65829 2.45118 5.85355 2.64645L10.8536 7.64645Z",fill:"currentColor"})}),W=({placeholder:c,preflightClassName:w,selectionMode:o,clearValueWhenEmpty:s=!0,...C})=>{const D=o==="range";return e.jsxs(M,{startOfWeek:1,...C,selectionMode:o,onValueChange:n=>C.onValueChange?.({...n,valueAsString:n.value.length?[n.value.toString()]:[]}),children:[e.jsx(t.DatePicker.Context,{children:n=>e.jsxs(f,{children:[e.jsxs(d.InputGroup,{children:[e.jsx(g,{asChild:!0,index:0,placeholder:c,children:e.jsx(u.Input,{onInput:i=>{const l=i.currentTarget.value;s&&l===""&&n.clearValue()}})}),e.jsxs(h.InputAddon,{children:[e.jsx(k,{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(P,{style:{cursor:"pointer"},children:e.jsx(v,{})})]})]}),D?e.jsxs(d.InputGroup,{children:[e.jsx(g,{asChild:!0,index:1,placeholder:c,children:e.jsx(u.Input,{onInput:i=>{const l=i.currentTarget.value;s&&l===""&&n.clearValue()}})}),e.jsxs(h.InputAddon,{children:[n.value.length===2?e.jsx(k,{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"})})})}):null,e.jsx(P,{children:e.jsx(v,{})})]})]}):null]})}),e.jsx(t.Portal,{children:e.jsx(R,{className:w,children:e.jsx(L,{children:e.jsx(G,{view:"day",children:e.jsx(t.DatePicker.Context,{children:n=>e.jsxs(e.Fragment,{children:[e.jsxs(z,{children:[e.jsx(m,{asChild:!0,children:e.jsx(x.IconButton,{"aria-label":"prev",variant:"secondary",size:"md",children:e.jsx(Y,{})})}),e.jsx(Z,{}),e.jsx(N,{}),e.jsx(I,{asChild:!0,children:e.jsx(x.IconButton,{"aria-label":"next",variant:"secondary",size:"md",children:e.jsx(F,{})})})]}),e.jsxs(O,{children:[e.jsx(q,{children:e.jsx(j,{children:n.weekDays.map((i,l)=>e.jsx(A,{children:i.short},l))})}),e.jsx(y,{children:n.weeks.map((i,l)=>e.jsx(j,{children:i.map((a,V)=>e.jsx(B,{value:a,children:e.jsx(S,{asChild:!0,children:e.jsx("button",{children:a.day})})},V))},l))})]})]})})})})})})]})};exports.DatePicker=W;
2
+ //# sourceMappingURL=DatePicker.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker.cjs","sources":["../../../src/components/date-picker/DatePicker.tsx"],"sourcesContent":["import { datepicker } from '@stokelp/styled-system/recipes'\nimport { DatePicker as ArkDatePicker, Portal } from '@ark-ui/react'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps, FC } from 'react'\nimport { IconButton, Input, InputAddon, InputGroup } from '~/components'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(datepicker)\n\nconst DatePickerRoot = withProvider(ArkDatePicker.Root, 'root', {\n defaultProps: {\n positioning: {\n placement: 'bottom-start',\n },\n view: 'day',\n locale: 'fr',\n unmountOnExit: true,\n lazyMount: true,\n startOfWeek: 6,\n },\n})\nconst DatePickerContent = withContext(ArkDatePicker.Content, 'content')\nconst DatePickerControl = withContext(ArkDatePicker.Control, 'control')\nconst DatePickerInput = withContext(ArkDatePicker.Input, 'input')\nconst DatePickerMonthSelect = withContext(ArkDatePicker.MonthSelect, 'monthSelect')\nconst DatePickerNextTrigger = withContext(ArkDatePicker.NextTrigger, 'nextTrigger')\nconst DatePickerPositioner = withContext(ArkDatePicker.Positioner, 'positioner')\nconst DatePickerPrevTrigger = withContext(ArkDatePicker.PrevTrigger, 'prevTrigger')\nconst DatePickerTableBody = withContext(ArkDatePicker.TableBody, 'tableBody')\nconst DatePickerTableCell = withContext(ArkDatePicker.TableCell, 'tableCell')\nconst DatePickerTableCellTrigger = withContext(ArkDatePicker.TableCellTrigger, 'tableCellTrigger')\nconst DatePickerTableHead = withContext(ArkDatePicker.TableHead, 'tableHead')\nconst DatePickerTableHeader = withContext(ArkDatePicker.TableHeader, 'tableHeader')\nconst DatePickerTable = withContext(ArkDatePicker.Table, 'table')\nconst DatePickerTableRow = withContext(ArkDatePicker.TableRow, 'tableRow')\nconst DatePickerTrigger = withContext(ArkDatePicker.Trigger, 'trigger')\nconst DatePickerViewControl = withContext(ArkDatePicker.ViewControl, 'viewControl')\nconst DatePickerView = withContext(ArkDatePicker.View, 'view')\nconst DatePickerYearSelect = withContext(ArkDatePicker.YearSelect, 'yearSelect')\nconst ClearTrigger = withContext(styled(ArkDatePicker.ClearTrigger), 'clearTrigger')\n\nexport interface DatePickerProps extends ComponentProps<typeof DatePickerRoot> {\n placeholder?: string\n clearValueWhenEmpty?: boolean\n preflightClassName?: string\n}\n\nconst DateIcon = () => (\n <svg width=\"23\" height=\"24\" viewBox=\"0 0 23 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M6.46875 2.25C6.8657 2.25 7.1875 2.58579 7.1875 3V4.5H15.8125V3C15.8125 2.58579 16.1343 2.25 16.5312 2.25C16.9282 2.25 17.25 2.58579 17.25 3V4.5H17.9688C19.5566 4.5 20.8438 5.84315 20.8438 7.5V18.75C20.8438 20.4069 19.5566 21.75 17.9688 21.75H5.03125C3.44343 21.75 2.15625 20.4069 2.15625 18.75V7.5C2.15625 5.84315 3.44343 4.5 5.03125 4.5H5.75V3C5.75 2.58579 6.0718 2.25 6.46875 2.25ZM5.03125 6C4.23734 6 3.59375 6.67157 3.59375 7.5V8.65135C4.01662 8.39609 4.50759 8.25 5.03125 8.25H17.9688C18.4924 8.25 18.9834 8.39609 19.4062 8.65135V7.5C19.4062 6.67157 18.7627 6 17.9688 6H5.03125ZM19.4062 11.25C19.4062 10.4216 18.7627 9.75 17.9688 9.75H5.03125C4.23734 9.75 3.59375 10.4216 3.59375 11.25V18.75C3.59375 19.5784 4.23734 20.25 5.03125 20.25H17.9688C18.7627 20.25 19.4062 19.5784 19.4062 18.75V11.25ZM10.7812 12.75C10.7812 12.3358 11.103 12 11.5 12H11.5072C11.9041 12 12.2259 12.3358 12.2259 12.75V12.7575C12.2259 13.1717 11.9041 13.5075 11.5072 13.5075H11.5C11.103 13.5075 10.7812 13.1717 10.7812 12.7575V12.75ZM12.9375 12.75C12.9375 12.3358 13.2593 12 13.6562 12H13.6634C14.0604 12 14.3822 12.3358 14.3822 12.75V12.7575C14.3822 13.1717 14.0604 13.5075 13.6634 13.5075H13.6562C13.2593 13.5075 12.9375 13.1717 12.9375 12.7575V12.75ZM15.0938 12.75C15.0938 12.3358 15.4155 12 15.8125 12H15.8197C16.2166 12 16.5384 12.3358 16.5384 12.75V12.7575C16.5384 13.1717 16.2166 13.5075 15.8197 13.5075H15.8125C15.4155 13.5075 15.0938 13.1717 15.0938 12.7575V12.75ZM6.46875 15C6.46875 14.5858 6.79054 14.25 7.1875 14.25H7.19469C7.59164 14.25 7.91344 14.5858 7.91344 15V15.0075C7.91344 15.4217 7.59164 15.7575 7.19469 15.7575H7.1875C6.79054 15.7575 6.46875 15.4217 6.46875 15.0075V15ZM8.625 15C8.625 14.5858 8.94679 14.25 9.34375 14.25H9.35094C9.74789 14.25 10.0697 14.5858 10.0697 15V15.0075C10.0697 15.4217 9.74789 15.7575 9.35094 15.7575H9.34375C8.94679 15.7575 8.625 15.4217 8.625 15.0075V15ZM10.7812 15C10.7812 14.5858 11.103 14.25 11.5 14.25H11.5072C11.9041 14.25 12.2259 14.5858 12.2259 15V15.0075C12.2259 15.4217 11.9041 15.7575 11.5072 15.7575H11.5C11.103 15.7575 10.7812 15.4217 10.7812 15.0075V15ZM12.9375 15C12.9375 14.5858 13.2593 14.25 13.6562 14.25H13.6634C14.0604 14.25 14.3822 14.5858 14.3822 15V15.0075C14.3822 15.4217 14.0604 15.7575 13.6634 15.7575H13.6562C13.2593 15.7575 12.9375 15.4217 12.9375 15.0075V15ZM15.0938 15C15.0938 14.5858 15.4155 14.25 15.8125 14.25H15.8197C16.2166 14.25 16.5384 14.5858 16.5384 15V15.0075C16.5384 15.4217 16.2166 15.7575 15.8197 15.7575H15.8125C15.4155 15.7575 15.0938 15.4217 15.0938 15.0075V15ZM6.46875 17.25C6.46875 16.8358 6.79054 16.5 7.1875 16.5H7.19469C7.59164 16.5 7.91344 16.8358 7.91344 17.25V17.2575C7.91344 17.6717 7.59164 18.0075 7.19469 18.0075H7.1875C6.79054 18.0075 6.46875 17.6717 6.46875 17.2575V17.25ZM8.625 17.25C8.625 16.8358 8.94679 16.5 9.34375 16.5H9.35094C9.74789 16.5 10.0697 16.8358 10.0697 17.25V17.2575C10.0697 17.6717 9.74789 18.0075 9.35094 18.0075H9.34375C8.94679 18.0075 8.625 17.6717 8.625 17.2575V17.25ZM10.7812 17.25C10.7812 16.8358 11.103 16.5 11.5 16.5H11.5072C11.9041 16.5 12.2259 16.8358 12.2259 17.25V17.2575C12.2259 17.6717 11.9041 18.0075 11.5072 18.0075H11.5C11.103 18.0075 10.7812 17.6717 10.7812 17.2575V17.25ZM12.9375 17.25C12.9375 16.8358 13.2593 16.5 13.6562 16.5H13.6634C14.0604 16.5 14.3822 16.8358 14.3822 17.25V17.2575C14.3822 17.6717 14.0604 18.0075 13.6634 18.0075H13.6562C13.2593 18.0075 12.9375 17.6717 12.9375 17.2575V17.25Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n\nconst ChevronLeftIcon = () => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L10.1464 2.64645C10.3417 2.45119 10.6583 2.45119 10.8536 2.64645C11.0488 2.84171 11.0488 3.15829 10.8536 3.35355L6.20711 8L10.8536 12.6464C11.0488 12.8417 11.0488 13.1583 10.8536 13.3536C10.6583 13.5488 10.3417 13.5488 10.1464 13.3536L5.14645 8.35355Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n\nconst ChevronRightIcon = () => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10.8536 7.64645C11.0488 7.84171 11.0488 8.15829 10.8536 8.35355L5.85355 13.3536C5.65829 13.5488 5.34171 13.5488 5.14645 13.3536C4.95118 13.1583 4.95118 12.8417 5.14645 12.6464L9.79289 8L5.14645 3.35355C4.95118 3.15829 4.95118 2.84171 5.14645 2.64645C5.34171 2.45118 5.65829 2.45118 5.85355 2.64645L10.8536 7.64645Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n\nexport const DatePicker: FC<DatePickerProps> = ({\n placeholder,\n preflightClassName,\n selectionMode,\n clearValueWhenEmpty = true,\n ...props\n}) => {\n const isRange = selectionMode === 'range'\n\n return (\n <DatePickerRoot\n startOfWeek={1}\n {...props}\n selectionMode={selectionMode}\n onValueChange={value =>\n props.onValueChange?.({ ...value, valueAsString: value.value.length ? [value.value.toString()] : [] })\n }\n >\n <ArkDatePicker.Context>\n {api => (\n <DatePickerControl>\n <InputGroup>\n <DatePickerInput asChild index={0} placeholder={placeholder}>\n <Input\n onInput={e => {\n const value = e.currentTarget.value\n\n if (clearValueWhenEmpty && value === '') {\n api.clearValue()\n }\n }}\n />\n </DatePickerInput>\n <InputAddon>\n <ClearTrigger 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\n <DatePickerTrigger style={{ cursor: 'pointer' }}>\n <DateIcon />\n </DatePickerTrigger>\n </InputAddon>\n </InputGroup>\n {isRange ? (\n <InputGroup>\n <DatePickerInput asChild index={1} placeholder={placeholder}>\n <Input\n onInput={e => {\n const value = e.currentTarget.value\n\n if (clearValueWhenEmpty && value === '') {\n api.clearValue()\n }\n }}\n />\n </DatePickerInput>\n <InputAddon>\n {api.value.length === 2 ? (\n <ClearTrigger 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 ) : null}\n <DatePickerTrigger>\n <DateIcon />\n </DatePickerTrigger>\n </InputAddon>\n </InputGroup>\n ) : null}\n </DatePickerControl>\n )}\n </ArkDatePicker.Context>\n <Portal>\n <DatePickerPositioner className={preflightClassName}>\n <DatePickerContent>\n <DatePickerView view=\"day\">\n <ArkDatePicker.Context>\n {api => (\n <>\n <DatePickerViewControl>\n <DatePickerPrevTrigger asChild>\n <IconButton aria-label=\"prev\" variant=\"secondary\" size=\"md\">\n <ChevronLeftIcon />\n </IconButton>\n </DatePickerPrevTrigger>\n <DatePickerMonthSelect />\n <DatePickerYearSelect />\n <DatePickerNextTrigger asChild>\n <IconButton aria-label=\"next\" variant=\"secondary\" size=\"md\">\n <ChevronRightIcon />\n </IconButton>\n </DatePickerNextTrigger>\n </DatePickerViewControl>\n <DatePickerTable>\n <DatePickerTableHead>\n <DatePickerTableRow>\n {api.weekDays.map((weekDay, id) => (\n <DatePickerTableHeader key={id}>{weekDay.short}</DatePickerTableHeader>\n ))}\n </DatePickerTableRow>\n </DatePickerTableHead>\n <DatePickerTableBody>\n {api.weeks.map((week, id) => (\n <DatePickerTableRow key={id}>\n {week.map((day, id) => (\n <DatePickerTableCell key={id} value={day}>\n <DatePickerTableCellTrigger asChild>\n <button>{day.day}</button>\n </DatePickerTableCellTrigger>\n </DatePickerTableCell>\n ))}\n </DatePickerTableRow>\n ))}\n </DatePickerTableBody>\n </DatePickerTable>\n </>\n )}\n </ArkDatePicker.Context>\n </DatePickerView>\n </DatePickerContent>\n </DatePickerPositioner>\n </Portal>\n </DatePickerRoot>\n )\n}\n"],"names":["withProvider","withContext","createStyleContext","datepicker","DatePickerRoot","ArkDatePicker","DatePickerContent","DatePickerControl","DatePickerInput","DatePickerMonthSelect","DatePickerNextTrigger","DatePickerPositioner","DatePickerPrevTrigger","DatePickerTableBody","DatePickerTableCell","DatePickerTableCellTrigger","DatePickerTableHead","DatePickerTableHeader","DatePickerTable","DatePickerTableRow","DatePickerTrigger","DatePickerViewControl","DatePickerView","DatePickerYearSelect","ClearTrigger","styled","DateIcon","jsx","ChevronLeftIcon","ChevronRightIcon","DatePicker","placeholder","preflightClassName","selectionMode","clearValueWhenEmpty","props","isRange","jsxs","value","api","InputGroup","Input","e","InputAddon","Portal","Fragment","IconButton","weekDay","id","week","day"],"mappings":"yaAOM,CAAE,aAAAA,EAAc,YAAAC,GAAgBC,EAAAA,mBAAmBC,EAAAA,UAAU,EAE7DC,EAAiBJ,EAAaK,aAAc,KAAM,OAAQ,CAC9D,aAAc,CACZ,YAAa,CACX,UAAW,cAAA,EAEb,KAAM,MACN,OAAQ,KACR,cAAe,GACf,UAAW,GACX,YAAa,CAAA,CAEjB,CAAC,EACKC,EAAoBL,EAAYI,aAAc,QAAS,SAAS,EAChEE,EAAoBN,EAAYI,aAAc,QAAS,SAAS,EAChEG,EAAkBP,EAAYI,aAAc,MAAO,OAAO,EAC1DI,EAAwBR,EAAYI,aAAc,YAAa,aAAa,EAC5EK,EAAwBT,EAAYI,aAAc,YAAa,aAAa,EAC5EM,EAAuBV,EAAYI,aAAc,WAAY,YAAY,EACzEO,EAAwBX,EAAYI,aAAc,YAAa,aAAa,EAC5EQ,EAAsBZ,EAAYI,aAAc,UAAW,WAAW,EACtES,EAAsBb,EAAYI,aAAc,UAAW,WAAW,EACtEU,EAA6Bd,EAAYI,aAAc,iBAAkB,kBAAkB,EAC3FW,EAAsBf,EAAYI,aAAc,UAAW,WAAW,EACtEY,EAAwBhB,EAAYI,aAAc,YAAa,aAAa,EAC5Ea,EAAkBjB,EAAYI,aAAc,MAAO,OAAO,EAC1Dc,EAAqBlB,EAAYI,aAAc,SAAU,UAAU,EACnEe,EAAoBnB,EAAYI,aAAc,QAAS,SAAS,EAChEgB,EAAwBpB,EAAYI,aAAc,YAAa,aAAa,EAC5EiB,EAAiBrB,EAAYI,aAAc,KAAM,MAAM,EACvDkB,EAAuBtB,EAAYI,aAAc,WAAY,YAAY,EACzEmB,EAAevB,EAAYwB,EAAAA,OAAOpB,EAAAA,WAAc,YAAY,EAAG,cAAc,EAQ7EqB,EAAW,IACfC,EAAAA,IAAC,MAAA,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import { datepicker as k } from "@stokelp/styled-system/recipes";
4
+ import { DatePicker as t, Portal as L } from "@ark-ui/react";
5
+ import { createStyleContext as M } from "../../utils/slots.js";
6
+ import { styled as x } from "@stokelp/styled-system/jsx";
7
+ import { InputGroup as s } from "../input/InputGroup.js";
8
+ import { InputAddon as g } from "../input/InputAddon.js";
9
+ import { Input as u } from "../input/Input.js";
10
+ import { IconButton as v } from "../icon-button/IconButton.js";
11
+ const { withProvider: D, withContext: r } = M(k), Z = D(t.Root, "root", {
12
+ defaultProps: {
13
+ positioning: {
14
+ placement: "bottom-start"
15
+ },
16
+ view: "day",
17
+ locale: "fr",
18
+ unmountOnExit: !0,
19
+ lazyMount: !0,
20
+ startOfWeek: 6
21
+ }
22
+ }), R = r(t.Content, "content"), y = r(t.Control, "control"), w = r(t.Input, "input"), I = r(t.MonthSelect, "monthSelect"), B = r(t.NextTrigger, "nextTrigger"), S = r(t.Positioner, "positioner"), z = r(t.PrevTrigger, "prevTrigger"), N = r(t.TableBody, "tableBody"), O = r(t.TableCell, "tableCell"), j = r(t.TableCellTrigger, "tableCellTrigger"), A = r(t.TableHead, "tableHead"), Y = r(t.TableHeader, "tableHeader"), F = r(t.Table, "table"), V = r(t.TableRow, "tableRow"), p = r(t.Trigger, "trigger"), G = r(t.ViewControl, "viewControl"), W = r(t.View, "view"), $ = r(t.YearSelect, "yearSelect"), H = r(x(t.ClearTrigger), "clearTrigger"), m = () => /* @__PURE__ */ e("svg", { width: "23", height: "24", viewBox: "0 0 23 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
23
+ "path",
24
+ {
25
+ fillRule: "evenodd",
26
+ clipRule: "evenodd",
27
+ d: "M6.46875 2.25C6.8657 2.25 7.1875 2.58579 7.1875 3V4.5H15.8125V3C15.8125 2.58579 16.1343 2.25 16.5312 2.25C16.9282 2.25 17.25 2.58579 17.25 3V4.5H17.9688C19.5566 4.5 20.8438 5.84315 20.8438 7.5V18.75C20.8438 20.4069 19.5566 21.75 17.9688 21.75H5.03125C3.44343 21.75 2.15625 20.4069 2.15625 18.75V7.5C2.15625 5.84315 3.44343 4.5 5.03125 4.5H5.75V3C5.75 2.58579 6.0718 2.25 6.46875 2.25ZM5.03125 6C4.23734 6 3.59375 6.67157 3.59375 7.5V8.65135C4.01662 8.39609 4.50759 8.25 5.03125 8.25H17.9688C18.4924 8.25 18.9834 8.39609 19.4062 8.65135V7.5C19.4062 6.67157 18.7627 6 17.9688 6H5.03125ZM19.4062 11.25C19.4062 10.4216 18.7627 9.75 17.9688 9.75H5.03125C4.23734 9.75 3.59375 10.4216 3.59375 11.25V18.75C3.59375 19.5784 4.23734 20.25 5.03125 20.25H17.9688C18.7627 20.25 19.4062 19.5784 19.4062 18.75V11.25ZM10.7812 12.75C10.7812 12.3358 11.103 12 11.5 12H11.5072C11.9041 12 12.2259 12.3358 12.2259 12.75V12.7575C12.2259 13.1717 11.9041 13.5075 11.5072 13.5075H11.5C11.103 13.5075 10.7812 13.1717 10.7812 12.7575V12.75ZM12.9375 12.75C12.9375 12.3358 13.2593 12 13.6562 12H13.6634C14.0604 12 14.3822 12.3358 14.3822 12.75V12.7575C14.3822 13.1717 14.0604 13.5075 13.6634 13.5075H13.6562C13.2593 13.5075 12.9375 13.1717 12.9375 12.7575V12.75ZM15.0938 12.75C15.0938 12.3358 15.4155 12 15.8125 12H15.8197C16.2166 12 16.5384 12.3358 16.5384 12.75V12.7575C16.5384 13.1717 16.2166 13.5075 15.8197 13.5075H15.8125C15.4155 13.5075 15.0938 13.1717 15.0938 12.7575V12.75ZM6.46875 15C6.46875 14.5858 6.79054 14.25 7.1875 14.25H7.19469C7.59164 14.25 7.91344 14.5858 7.91344 15V15.0075C7.91344 15.4217 7.59164 15.7575 7.19469 15.7575H7.1875C6.79054 15.7575 6.46875 15.4217 6.46875 15.0075V15ZM8.625 15C8.625 14.5858 8.94679 14.25 9.34375 14.25H9.35094C9.74789 14.25 10.0697 14.5858 10.0697 15V15.0075C10.0697 15.4217 9.74789 15.7575 9.35094 15.7575H9.34375C8.94679 15.7575 8.625 15.4217 8.625 15.0075V15ZM10.7812 15C10.7812 14.5858 11.103 14.25 11.5 14.25H11.5072C11.9041 14.25 12.2259 14.5858 12.2259 15V15.0075C12.2259 15.4217 11.9041 15.7575 11.5072 15.7575H11.5C11.103 15.7575 10.7812 15.4217 10.7812 15.0075V15ZM12.9375 15C12.9375 14.5858 13.2593 14.25 13.6562 14.25H13.6634C14.0604 14.25 14.3822 14.5858 14.3822 15V15.0075C14.3822 15.4217 14.0604 15.7575 13.6634 15.7575H13.6562C13.2593 15.7575 12.9375 15.4217 12.9375 15.0075V15ZM15.0938 15C15.0938 14.5858 15.4155 14.25 15.8125 14.25H15.8197C16.2166 14.25 16.5384 14.5858 16.5384 15V15.0075C16.5384 15.4217 16.2166 15.7575 15.8197 15.7575H15.8125C15.4155 15.7575 15.0938 15.4217 15.0938 15.0075V15ZM6.46875 17.25C6.46875 16.8358 6.79054 16.5 7.1875 16.5H7.19469C7.59164 16.5 7.91344 16.8358 7.91344 17.25V17.2575C7.91344 17.6717 7.59164 18.0075 7.19469 18.0075H7.1875C6.79054 18.0075 6.46875 17.6717 6.46875 17.2575V17.25ZM8.625 17.25C8.625 16.8358 8.94679 16.5 9.34375 16.5H9.35094C9.74789 16.5 10.0697 16.8358 10.0697 17.25V17.2575C10.0697 17.6717 9.74789 18.0075 9.35094 18.0075H9.34375C8.94679 18.0075 8.625 17.6717 8.625 17.2575V17.25ZM10.7812 17.25C10.7812 16.8358 11.103 16.5 11.5 16.5H11.5072C11.9041 16.5 12.2259 16.8358 12.2259 17.25V17.2575C12.2259 17.6717 11.9041 18.0075 11.5072 18.0075H11.5C11.103 18.0075 10.7812 17.6717 10.7812 17.2575V17.25ZM12.9375 17.25C12.9375 16.8358 13.2593 16.5 13.6562 16.5H13.6634C14.0604 16.5 14.3822 16.8358 14.3822 17.25V17.2575C14.3822 17.6717 14.0604 18.0075 13.6634 18.0075H13.6562C13.2593 18.0075 12.9375 17.6717 12.9375 17.2575V17.25Z",
28
+ fill: "currentColor"
29
+ }
30
+ ) }), q = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
31
+ "path",
32
+ {
33
+ fillRule: "evenodd",
34
+ clipRule: "evenodd",
35
+ d: "M5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L10.1464 2.64645C10.3417 2.45119 10.6583 2.45119 10.8536 2.64645C11.0488 2.84171 11.0488 3.15829 10.8536 3.35355L6.20711 8L10.8536 12.6464C11.0488 12.8417 11.0488 13.1583 10.8536 13.3536C10.6583 13.5488 10.3417 13.5488 10.1464 13.3536L5.14645 8.35355Z",
36
+ fill: "currentColor"
37
+ }
38
+ ) }), E = () => /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
39
+ "path",
40
+ {
41
+ fillRule: "evenodd",
42
+ clipRule: "evenodd",
43
+ d: "M10.8536 7.64645C11.0488 7.84171 11.0488 8.15829 10.8536 8.35355L5.85355 13.3536C5.65829 13.5488 5.34171 13.5488 5.14645 13.3536C4.95118 13.1583 4.95118 12.8417 5.14645 12.6464L9.79289 8L5.14645 3.35355C4.95118 3.15829 4.95118 2.84171 5.14645 2.64645C5.34171 2.45118 5.65829 2.45118 5.85355 2.64645L10.8536 7.64645Z",
44
+ fill: "currentColor"
45
+ }
46
+ ) }), l1 = ({
47
+ placeholder: C,
48
+ preflightClassName: f,
49
+ selectionMode: c,
50
+ clearValueWhenEmpty: a = !0,
51
+ ...d
52
+ }) => {
53
+ const T = c === "range";
54
+ return /* @__PURE__ */ n(
55
+ Z,
56
+ {
57
+ startOfWeek: 1,
58
+ ...d,
59
+ selectionMode: c,
60
+ onValueChange: (l) => d.onValueChange?.({ ...l, valueAsString: l.value.length ? [l.value.toString()] : [] }),
61
+ children: [
62
+ /* @__PURE__ */ e(t.Context, { children: (l) => /* @__PURE__ */ n(y, { children: [
63
+ /* @__PURE__ */ n(s, { children: [
64
+ /* @__PURE__ */ e(w, { asChild: !0, index: 0, placeholder: C, children: /* @__PURE__ */ e(
65
+ u,
66
+ {
67
+ onInput: (i) => {
68
+ const o = i.currentTarget.value;
69
+ a && o === "" && l.clearValue();
70
+ }
71
+ }
72
+ ) }),
73
+ /* @__PURE__ */ n(g, { children: [
74
+ /* @__PURE__ */ e(H, { asChild: !0, children: /* @__PURE__ */ e("button", { children: /* @__PURE__ */ e("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
75
+ "path",
76
+ {
77
+ fillRule: "evenodd",
78
+ clipRule: "evenodd",
79
+ 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",
80
+ fill: "currentColor"
81
+ }
82
+ ) }) }) }),
83
+ /* @__PURE__ */ e(p, { style: { cursor: "pointer" }, children: /* @__PURE__ */ e(m, {}) })
84
+ ] })
85
+ ] }),
86
+ T ? /* @__PURE__ */ n(s, { children: [
87
+ /* @__PURE__ */ e(w, { asChild: !0, index: 1, placeholder: C, children: /* @__PURE__ */ e(
88
+ u,
89
+ {
90
+ onInput: (i) => {
91
+ const o = i.currentTarget.value;
92
+ a && o === "" && l.clearValue();
93
+ }
94
+ }
95
+ ) }),
96
+ /* @__PURE__ */ n(g, { children: [
97
+ l.value.length === 2 ? /* @__PURE__ */ e(H, { asChild: !0, children: /* @__PURE__ */ e("button", { children: /* @__PURE__ */ e("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
98
+ "path",
99
+ {
100
+ fillRule: "evenodd",
101
+ clipRule: "evenodd",
102
+ 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",
103
+ fill: "currentColor"
104
+ }
105
+ ) }) }) }) : null,
106
+ /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(m, {}) })
107
+ ] })
108
+ ] }) : null
109
+ ] }) }),
110
+ /* @__PURE__ */ e(L, { children: /* @__PURE__ */ e(S, { className: f, children: /* @__PURE__ */ e(R, { children: /* @__PURE__ */ e(W, { view: "day", children: /* @__PURE__ */ e(t.Context, { children: (l) => /* @__PURE__ */ n(b, { children: [
111
+ /* @__PURE__ */ n(G, { children: [
112
+ /* @__PURE__ */ e(z, { asChild: !0, children: /* @__PURE__ */ e(v, { "aria-label": "prev", variant: "secondary", size: "md", children: /* @__PURE__ */ e(q, {}) }) }),
113
+ /* @__PURE__ */ e(I, {}),
114
+ /* @__PURE__ */ e($, {}),
115
+ /* @__PURE__ */ e(B, { asChild: !0, children: /* @__PURE__ */ e(v, { "aria-label": "next", variant: "secondary", size: "md", children: /* @__PURE__ */ e(E, {}) }) })
116
+ ] }),
117
+ /* @__PURE__ */ n(F, { children: [
118
+ /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(V, { children: l.weekDays.map((i, o) => /* @__PURE__ */ e(Y, { children: i.short }, o)) }) }),
119
+ /* @__PURE__ */ e(N, { children: l.weeks.map((i, o) => /* @__PURE__ */ e(V, { children: i.map((h, P) => /* @__PURE__ */ e(O, { value: h, children: /* @__PURE__ */ e(j, { asChild: !0, children: /* @__PURE__ */ e("button", { children: h.day }) }) }, P)) }, o)) })
120
+ ] })
121
+ ] }) }) }) }) }) })
122
+ ]
123
+ }
124
+ );
125
+ };
126
+ export {
127
+ l1 as DatePicker
128
+ };
129
+ //# sourceMappingURL=DatePicker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker.js","sources":["../../../src/components/date-picker/DatePicker.tsx"],"sourcesContent":["import { datepicker } from '@stokelp/styled-system/recipes'\nimport { DatePicker as ArkDatePicker, Portal } from '@ark-ui/react'\nimport { createStyleContext } from '~/utils/slots'\nimport { ComponentProps, FC } from 'react'\nimport { IconButton, Input, InputAddon, InputGroup } from '~/components'\nimport { styled } from '@stokelp/styled-system/jsx'\n\nconst { withProvider, withContext } = createStyleContext(datepicker)\n\nconst DatePickerRoot = withProvider(ArkDatePicker.Root, 'root', {\n defaultProps: {\n positioning: {\n placement: 'bottom-start',\n },\n view: 'day',\n locale: 'fr',\n unmountOnExit: true,\n lazyMount: true,\n startOfWeek: 6,\n },\n})\nconst DatePickerContent = withContext(ArkDatePicker.Content, 'content')\nconst DatePickerControl = withContext(ArkDatePicker.Control, 'control')\nconst DatePickerInput = withContext(ArkDatePicker.Input, 'input')\nconst DatePickerMonthSelect = withContext(ArkDatePicker.MonthSelect, 'monthSelect')\nconst DatePickerNextTrigger = withContext(ArkDatePicker.NextTrigger, 'nextTrigger')\nconst DatePickerPositioner = withContext(ArkDatePicker.Positioner, 'positioner')\nconst DatePickerPrevTrigger = withContext(ArkDatePicker.PrevTrigger, 'prevTrigger')\nconst DatePickerTableBody = withContext(ArkDatePicker.TableBody, 'tableBody')\nconst DatePickerTableCell = withContext(ArkDatePicker.TableCell, 'tableCell')\nconst DatePickerTableCellTrigger = withContext(ArkDatePicker.TableCellTrigger, 'tableCellTrigger')\nconst DatePickerTableHead = withContext(ArkDatePicker.TableHead, 'tableHead')\nconst DatePickerTableHeader = withContext(ArkDatePicker.TableHeader, 'tableHeader')\nconst DatePickerTable = withContext(ArkDatePicker.Table, 'table')\nconst DatePickerTableRow = withContext(ArkDatePicker.TableRow, 'tableRow')\nconst DatePickerTrigger = withContext(ArkDatePicker.Trigger, 'trigger')\nconst DatePickerViewControl = withContext(ArkDatePicker.ViewControl, 'viewControl')\nconst DatePickerView = withContext(ArkDatePicker.View, 'view')\nconst DatePickerYearSelect = withContext(ArkDatePicker.YearSelect, 'yearSelect')\nconst ClearTrigger = withContext(styled(ArkDatePicker.ClearTrigger), 'clearTrigger')\n\nexport interface DatePickerProps extends ComponentProps<typeof DatePickerRoot> {\n placeholder?: string\n clearValueWhenEmpty?: boolean\n preflightClassName?: string\n}\n\nconst DateIcon = () => (\n <svg width=\"23\" height=\"24\" viewBox=\"0 0 23 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M6.46875 2.25C6.8657 2.25 7.1875 2.58579 7.1875 3V4.5H15.8125V3C15.8125 2.58579 16.1343 2.25 16.5312 2.25C16.9282 2.25 17.25 2.58579 17.25 3V4.5H17.9688C19.5566 4.5 20.8438 5.84315 20.8438 7.5V18.75C20.8438 20.4069 19.5566 21.75 17.9688 21.75H5.03125C3.44343 21.75 2.15625 20.4069 2.15625 18.75V7.5C2.15625 5.84315 3.44343 4.5 5.03125 4.5H5.75V3C5.75 2.58579 6.0718 2.25 6.46875 2.25ZM5.03125 6C4.23734 6 3.59375 6.67157 3.59375 7.5V8.65135C4.01662 8.39609 4.50759 8.25 5.03125 8.25H17.9688C18.4924 8.25 18.9834 8.39609 19.4062 8.65135V7.5C19.4062 6.67157 18.7627 6 17.9688 6H5.03125ZM19.4062 11.25C19.4062 10.4216 18.7627 9.75 17.9688 9.75H5.03125C4.23734 9.75 3.59375 10.4216 3.59375 11.25V18.75C3.59375 19.5784 4.23734 20.25 5.03125 20.25H17.9688C18.7627 20.25 19.4062 19.5784 19.4062 18.75V11.25ZM10.7812 12.75C10.7812 12.3358 11.103 12 11.5 12H11.5072C11.9041 12 12.2259 12.3358 12.2259 12.75V12.7575C12.2259 13.1717 11.9041 13.5075 11.5072 13.5075H11.5C11.103 13.5075 10.7812 13.1717 10.7812 12.7575V12.75ZM12.9375 12.75C12.9375 12.3358 13.2593 12 13.6562 12H13.6634C14.0604 12 14.3822 12.3358 14.3822 12.75V12.7575C14.3822 13.1717 14.0604 13.5075 13.6634 13.5075H13.6562C13.2593 13.5075 12.9375 13.1717 12.9375 12.7575V12.75ZM15.0938 12.75C15.0938 12.3358 15.4155 12 15.8125 12H15.8197C16.2166 12 16.5384 12.3358 16.5384 12.75V12.7575C16.5384 13.1717 16.2166 13.5075 15.8197 13.5075H15.8125C15.4155 13.5075 15.0938 13.1717 15.0938 12.7575V12.75ZM6.46875 15C6.46875 14.5858 6.79054 14.25 7.1875 14.25H7.19469C7.59164 14.25 7.91344 14.5858 7.91344 15V15.0075C7.91344 15.4217 7.59164 15.7575 7.19469 15.7575H7.1875C6.79054 15.7575 6.46875 15.4217 6.46875 15.0075V15ZM8.625 15C8.625 14.5858 8.94679 14.25 9.34375 14.25H9.35094C9.74789 14.25 10.0697 14.5858 10.0697 15V15.0075C10.0697 15.4217 9.74789 15.7575 9.35094 15.7575H9.34375C8.94679 15.7575 8.625 15.4217 8.625 15.0075V15ZM10.7812 15C10.7812 14.5858 11.103 14.25 11.5 14.25H11.5072C11.9041 14.25 12.2259 14.5858 12.2259 15V15.0075C12.2259 15.4217 11.9041 15.7575 11.5072 15.7575H11.5C11.103 15.7575 10.7812 15.4217 10.7812 15.0075V15ZM12.9375 15C12.9375 14.5858 13.2593 14.25 13.6562 14.25H13.6634C14.0604 14.25 14.3822 14.5858 14.3822 15V15.0075C14.3822 15.4217 14.0604 15.7575 13.6634 15.7575H13.6562C13.2593 15.7575 12.9375 15.4217 12.9375 15.0075V15ZM15.0938 15C15.0938 14.5858 15.4155 14.25 15.8125 14.25H15.8197C16.2166 14.25 16.5384 14.5858 16.5384 15V15.0075C16.5384 15.4217 16.2166 15.7575 15.8197 15.7575H15.8125C15.4155 15.7575 15.0938 15.4217 15.0938 15.0075V15ZM6.46875 17.25C6.46875 16.8358 6.79054 16.5 7.1875 16.5H7.19469C7.59164 16.5 7.91344 16.8358 7.91344 17.25V17.2575C7.91344 17.6717 7.59164 18.0075 7.19469 18.0075H7.1875C6.79054 18.0075 6.46875 17.6717 6.46875 17.2575V17.25ZM8.625 17.25C8.625 16.8358 8.94679 16.5 9.34375 16.5H9.35094C9.74789 16.5 10.0697 16.8358 10.0697 17.25V17.2575C10.0697 17.6717 9.74789 18.0075 9.35094 18.0075H9.34375C8.94679 18.0075 8.625 17.6717 8.625 17.2575V17.25ZM10.7812 17.25C10.7812 16.8358 11.103 16.5 11.5 16.5H11.5072C11.9041 16.5 12.2259 16.8358 12.2259 17.25V17.2575C12.2259 17.6717 11.9041 18.0075 11.5072 18.0075H11.5C11.103 18.0075 10.7812 17.6717 10.7812 17.2575V17.25ZM12.9375 17.25C12.9375 16.8358 13.2593 16.5 13.6562 16.5H13.6634C14.0604 16.5 14.3822 16.8358 14.3822 17.25V17.2575C14.3822 17.6717 14.0604 18.0075 13.6634 18.0075H13.6562C13.2593 18.0075 12.9375 17.6717 12.9375 17.2575V17.25Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n\nconst ChevronLeftIcon = () => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L10.1464 2.64645C10.3417 2.45119 10.6583 2.45119 10.8536 2.64645C11.0488 2.84171 11.0488 3.15829 10.8536 3.35355L6.20711 8L10.8536 12.6464C11.0488 12.8417 11.0488 13.1583 10.8536 13.3536C10.6583 13.5488 10.3417 13.5488 10.1464 13.3536L5.14645 8.35355Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n\nconst ChevronRightIcon = () => (\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10.8536 7.64645C11.0488 7.84171 11.0488 8.15829 10.8536 8.35355L5.85355 13.3536C5.65829 13.5488 5.34171 13.5488 5.14645 13.3536C4.95118 13.1583 4.95118 12.8417 5.14645 12.6464L9.79289 8L5.14645 3.35355C4.95118 3.15829 4.95118 2.84171 5.14645 2.64645C5.34171 2.45118 5.65829 2.45118 5.85355 2.64645L10.8536 7.64645Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n\nexport const DatePicker: FC<DatePickerProps> = ({\n placeholder,\n preflightClassName,\n selectionMode,\n clearValueWhenEmpty = true,\n ...props\n}) => {\n const isRange = selectionMode === 'range'\n\n return (\n <DatePickerRoot\n startOfWeek={1}\n {...props}\n selectionMode={selectionMode}\n onValueChange={value =>\n props.onValueChange?.({ ...value, valueAsString: value.value.length ? [value.value.toString()] : [] })\n }\n >\n <ArkDatePicker.Context>\n {api => (\n <DatePickerControl>\n <InputGroup>\n <DatePickerInput asChild index={0} placeholder={placeholder}>\n <Input\n onInput={e => {\n const value = e.currentTarget.value\n\n if (clearValueWhenEmpty && value === '') {\n api.clearValue()\n }\n }}\n />\n </DatePickerInput>\n <InputAddon>\n <ClearTrigger 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\n <DatePickerTrigger style={{ cursor: 'pointer' }}>\n <DateIcon />\n </DatePickerTrigger>\n </InputAddon>\n </InputGroup>\n {isRange ? (\n <InputGroup>\n <DatePickerInput asChild index={1} placeholder={placeholder}>\n <Input\n onInput={e => {\n const value = e.currentTarget.value\n\n if (clearValueWhenEmpty && value === '') {\n api.clearValue()\n }\n }}\n />\n </DatePickerInput>\n <InputAddon>\n {api.value.length === 2 ? (\n <ClearTrigger 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 ) : null}\n <DatePickerTrigger>\n <DateIcon />\n </DatePickerTrigger>\n </InputAddon>\n </InputGroup>\n ) : null}\n </DatePickerControl>\n )}\n </ArkDatePicker.Context>\n <Portal>\n <DatePickerPositioner className={preflightClassName}>\n <DatePickerContent>\n <DatePickerView view=\"day\">\n <ArkDatePicker.Context>\n {api => (\n <>\n <DatePickerViewControl>\n <DatePickerPrevTrigger asChild>\n <IconButton aria-label=\"prev\" variant=\"secondary\" size=\"md\">\n <ChevronLeftIcon />\n </IconButton>\n </DatePickerPrevTrigger>\n <DatePickerMonthSelect />\n <DatePickerYearSelect />\n <DatePickerNextTrigger asChild>\n <IconButton aria-label=\"next\" variant=\"secondary\" size=\"md\">\n <ChevronRightIcon />\n </IconButton>\n </DatePickerNextTrigger>\n </DatePickerViewControl>\n <DatePickerTable>\n <DatePickerTableHead>\n <DatePickerTableRow>\n {api.weekDays.map((weekDay, id) => (\n <DatePickerTableHeader key={id}>{weekDay.short}</DatePickerTableHeader>\n ))}\n </DatePickerTableRow>\n </DatePickerTableHead>\n <DatePickerTableBody>\n {api.weeks.map((week, id) => (\n <DatePickerTableRow key={id}>\n {week.map((day, id) => (\n <DatePickerTableCell key={id} value={day}>\n <DatePickerTableCellTrigger asChild>\n <button>{day.day}</button>\n </DatePickerTableCellTrigger>\n </DatePickerTableCell>\n ))}\n </DatePickerTableRow>\n ))}\n </DatePickerTableBody>\n </DatePickerTable>\n </>\n )}\n </ArkDatePicker.Context>\n </DatePickerView>\n </DatePickerContent>\n </DatePickerPositioner>\n </Portal>\n </DatePickerRoot>\n )\n}\n"],"names":["withProvider","withContext","createStyleContext","datepicker","DatePickerRoot","ArkDatePicker","DatePickerContent","DatePickerControl","DatePickerInput","DatePickerMonthSelect","DatePickerNextTrigger","DatePickerPositioner","DatePickerPrevTrigger","DatePickerTableBody","DatePickerTableCell","DatePickerTableCellTrigger","DatePickerTableHead","DatePickerTableHeader","DatePickerTable","DatePickerTableRow","DatePickerTrigger","DatePickerViewControl","DatePickerView","DatePickerYearSelect","ClearTrigger","styled","DateIcon","jsx","ChevronLeftIcon","ChevronRightIcon","DatePicker","placeholder","preflightClassName","selectionMode","clearValueWhenEmpty","props","isRange","jsxs","value","api","InputGroup","Input","e","InputAddon","Portal","Fragment","IconButton","weekDay","id","week","day"],"mappings":";;;;;;;;;;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ArB,EAACd,GAAA,EACE,UAAA0B,EAAI,MAAM,IAAI,CAACU,GAAMD,MACpB,gBAAArB,EAACR,KACE,UAAA8B,EAAK,IAAI,CAACC,GAAKF,MACd,gBAAArB,EAACb,GAAA,EAA6B,OAAOoC,GACnC,UAAA,gBAAAvB,EAACZ,GAAA,EAA2B,SAAO,IACjC,4BAAC,UAAA,EAAQ,UAAAmC,EAAI,IAAA,CAAI,GACnB,KAHwBF,CAI1B,CACD,EAAA,GAPsBA,CAQzB,CACD,EAAA,CACH;AAAA,UAAA,EAAA,CACF;AAAA,QAAA,EAAA,CACF,EAAA,CAEJ,EAAA,CACF,EAAA,CACF,EAAA,CACF,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -0,0 +1,2 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("@ark-ui/react"),o=require("@stokelp/styled-system/jsx"),x=require("@stokelp/styled-system/recipes"),c=require("react"),m=require("../../utils/slots.cjs"),T=require("usehooks-ts"),w=require("@stokelp/styled-system/tokens"),j=require("../drawer/Drawer.cjs"),D=require("../icon-button/IconButton.cjs"),{withProvider:k,withContext:r}=m.createStyleContext(x.dialog,{dataAttr:!0}),q=k(e.Dialog.Root,void 0,{defaultProps:{lazyMount:!0,unmountOnExit:!0}}),y=r(o.styled(e.Dialog.Backdrop),"backdrop"),P=r(o.styled(e.Dialog.CloseTrigger),"closeTrigger"),f=c.forwardRef(({children:s,...l},a)=>{const i=T.useMediaQuery(`(max-width: ${w.token("breakpoints.md")})`,{defaultValue:!1}),{open:d,getContentProps:p}=e.useDialogContext();return c.useLayoutEffect(()=>{if(!d)return;const{id:u}=p();u&&setTimeout(()=>{const n=document.getElementById(u);if(n){const g=n.querySelector("footer");g&&(i?n.style.setProperty("--footer-height",`${Math.ceil(g.clientHeight)}px`):n.style.setProperty("--footer-height","70px"))}},0)},[d,i]),t.jsxs(e.Portal,{children:[t.jsx(y,{}),t.jsx(C,{children:t.jsx(e.Dialog.Content,{ref:a,...l,children:s})})]})});f.displayName=e.Dialog.Content.displayName;const v=r(o.styled(f),"content"),h=c.forwardRef(({children:s,showCloseTrigger:l=!0,...a},i)=>t.jsxs(e.ark.header,{...a,ref:i,children:[s,l&&t.jsx(j.DrawerCloseTrigger,{asChild:!0,children:t.jsx(D.IconButton,{ml:"auto","aria-label":"close",variant:"tertiary",children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.64645 3.64645C3.84171 3.45118 4.15829 3.45118 4.35355 3.64645L8 7.29289L11.6464 3.64645C11.8417 3.45118 12.1583 3.45118 12.3536 3.64645C12.5488 3.84171 12.5488 4.15829 12.3536 4.35355L8.70711 8L12.3536 11.6464C12.5488 11.8417 12.5488 12.1583 12.3536 12.3536C12.1583 12.5488 11.8417 12.5488 11.6464 12.3536L8 8.70711L4.35355 12.3536C4.15829 12.5488 3.84171 12.5488 3.64645 12.3536C3.45118 12.1583 3.45118 11.8417 3.64645 11.6464L7.29289 8L3.64645 4.35355C3.45118 4.15829 3.45118 3.84171 3.64645 3.64645Z",fill:"currentColor"})})})})]}));h.displayName="DialogHeader";const B=r(o.styled(h),"header"),L=r(o.styled(e.ark.main),"body"),R=r(o.styled(e.ark.footer),"footer"),C=r(o.styled(e.Dialog.Positioner),"positioner"),b=r(o.styled(e.Dialog.Title),"title"),M=r(o.styled(e.Dialog.Trigger),"trigger");exports.Backdrop=y;exports.Body=L;exports.CloseTrigger=P;exports.Content=v;exports.Footer=R;exports.Header=B;exports.Positioner=C;exports.Root=q;exports.Title=b;exports.Trigger=M;
2
+ //# sourceMappingURL=styled.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styled.cjs","sources":["../../../src/components/dialog/styled.tsx"],"sourcesContent":["import { ark, Dialog as ArkDialog, Portal, useDialogContext } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { dialog } from '@stokelp/styled-system/recipes'\nimport { ComponentProps, ComponentPropsWithoutRef, ElementRef, forwardRef, useLayoutEffect } from 'react'\nimport { createStyleContext } from '~/utils/slots'\nimport { IconButton } from '~/components/icon-button'\nimport { DrawerCloseTrigger } from '~/components'\nimport { useMediaQuery } from 'usehooks-ts'\nimport { token } from '@stokelp/styled-system/tokens'\n\nconst { withProvider, withContext } = createStyleContext(dialog, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(ArkDialog.Root, undefined, {\n defaultProps: {\n lazyMount: true,\n unmountOnExit: true,\n },\n})\nexport const Backdrop = withContext(styled(ArkDialog.Backdrop), 'backdrop')\nexport const CloseTrigger = withContext(styled(ArkDialog.CloseTrigger), 'closeTrigger')\n\nconst InternalContent = forwardRef<\n ElementRef<typeof ArkDialog.Content>,\n ComponentPropsWithoutRef<typeof ArkDialog.Content>\n>(({ children, ...props }, ref) => {\n const isMobile = useMediaQuery(`(max-width: ${token('breakpoints.md')})`, {\n defaultValue: false,\n })\n const { open, getContentProps } = useDialogContext()\n\n useLayoutEffect(() => {\n if (!open) return\n const { id } = getContentProps()\n if (!id) return\n setTimeout(() => {\n const $content = document.getElementById(id)\n\n if ($content) {\n const $footer = $content.querySelector('footer')\n if ($footer) {\n if (isMobile) {\n $content.style.setProperty('--footer-height', `${Math.ceil($footer.clientHeight)}px`)\n } else {\n $content.style.setProperty('--footer-height', `70px`)\n }\n }\n }\n }, 0)\n }, [open, isMobile])\n\n return (\n <Portal>\n <Backdrop />\n <Positioner>\n <ArkDialog.Content ref={ref} {...props}>\n {children}\n </ArkDialog.Content>\n </Positioner>\n </Portal>\n )\n})\nInternalContent.displayName = ArkDialog.Content.displayName\n\nexport const Content = withContext(styled(InternalContent), 'content')\n\ntype HeaderProps = ComponentPropsWithoutRef<typeof ark.header> & {\n showCloseTrigger?: boolean\n}\nconst InternalHeader = forwardRef<ElementRef<typeof ark.header>, HeaderProps>(\n ({ children, showCloseTrigger = true, ...props }, ref) => (\n <ark.header {...props} ref={ref}>\n {children}\n {showCloseTrigger && (\n <DrawerCloseTrigger asChild>\n <IconButton ml=\"auto\" aria-label=\"close\" variant=\"tertiary\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M3.64645 3.64645C3.84171 3.45118 4.15829 3.45118 4.35355 3.64645L8 7.29289L11.6464 3.64645C11.8417 3.45118 12.1583 3.45118 12.3536 3.64645C12.5488 3.84171 12.5488 4.15829 12.3536 4.35355L8.70711 8L12.3536 11.6464C12.5488 11.8417 12.5488 12.1583 12.3536 12.3536C12.1583 12.5488 11.8417 12.5488 11.6464 12.3536L8 8.70711L4.35355 12.3536C4.15829 12.5488 3.84171 12.5488 3.64645 12.3536C3.45118 12.1583 3.45118 11.8417 3.64645 11.6464L7.29289 8L3.64645 4.35355C3.45118 4.15829 3.45118 3.84171 3.64645 3.64645Z\"\n fill=\"currentColor\"\n />\n </svg>\n </IconButton>\n </DrawerCloseTrigger>\n )}\n </ark.header>\n ),\n)\nInternalHeader.displayName = 'DialogHeader'\n\nexport const Header = withContext(styled(InternalHeader), 'header')\nexport const Body = withContext(styled(ark.main), 'body')\nexport const Footer = withContext(styled(ark.footer), 'footer')\nexport const Positioner = withContext(styled(ArkDialog.Positioner), 'positioner')\nexport const Title = withContext(styled(ArkDialog.Title), 'title')\nexport const Trigger = withContext(styled(ArkDialog.Trigger), 'trigger')\n\nexport interface DialogProps extends ComponentProps<typeof Root> {}\nexport interface DialogBackdropProps extends ComponentProps<typeof Backdrop> {}\nexport interface DialogCloseTriggerProps extends ComponentProps<typeof CloseTrigger> {}\nexport interface DialogContentProps extends ComponentProps<typeof Content> {}\nexport interface DialogHeaderProps extends ComponentProps<typeof Header> {}\nexport interface DialogBodyProps extends ComponentProps<typeof Body> {}\nexport interface DialogFooterProps extends ComponentProps<typeof Footer> {}\nexport interface DialogPositionerProps extends ComponentProps<typeof Positioner> {}\nexport interface DialogTitleProps extends ComponentProps<typeof Title> {}\nexport interface DialogTriggerProps extends ComponentProps<typeof Trigger> {}\n"],"names":["withProvider","withContext","createStyleContext","dialog","Root","ArkDialog","Backdrop","styled","CloseTrigger","InternalContent","forwardRef","children","props","ref","isMobile","useMediaQuery","token","open","getContentProps","useDialogContext","useLayoutEffect","id","$content","$footer","Portal","jsx","Positioner","Content","InternalHeader","showCloseTrigger","ark","DrawerCloseTrigger","IconButton","Header","Body","Footer","Title","Trigger"],"mappings":"wbAUM,CAAE,aAAAA,EAAc,YAAAC,GAAgBC,EAAAA,mBAAmBC,EAAAA,OAAQ,CAC/D,SAAU,EACZ,CAAC,EAEYC,EAAOJ,EAAaK,SAAU,KAAM,OAAW,CAC1D,aAAc,CACZ,UAAW,GACX,cAAe,EAAA,CAEnB,CAAC,EACYC,EAAWL,EAAYM,EAAAA,OAAOF,EAAAA,OAAU,QAAQ,EAAG,UAAU,EAC7DG,EAAeP,EAAYM,EAAAA,OAAOF,EAAAA,OAAU,YAAY,EAAG,cAAc,EAEhFI,EAAkBC,EAAAA,WAGtB,CAAC,CAAE,SAAAC,EAAU,GAAGC,CAAA,EAASC,IAAQ,CACjC,MAAMC,EAAWC,EAAAA,cAAc,eAAeC,EAAAA,MAAM,gBAAgB,CAAC,IAAK,CACxE,aAAc,EAAA,CACf,EACK,CAAE,KAAAC,EAAM,gBAAAC,CAAA,EAAoBC,mBAAA,EAElCC,OAAAA,EAAAA,gBAAgB,IAAM,CACpB,GAAI,CAACH,EAAM,OACX,KAAM,CAAE,GAAAI,CAAA,EAAOH,EAAA,EACVG,GACL,WAAW,IAAM,CACf,MAAMC,EAAW,SAAS,eAAeD,CAAE,EAE3C,GAAIC,EAAU,CACZ,MAAMC,EAAUD,EAAS,cAAc,QAAQ,EAC3CC,IACET,EACFQ,EAAS,MAAM,YAAY,kBAAmB,GAAG,KAA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OF,EAAAA,OAAU,UAAU,EAAG,YAAY,EACnE+B,EAAQnC,EAAYM,EAAAA,OAAOF,EAAAA,OAAU,KAAK,EAAG,OAAO,EACpDgC,EAAUpC,EAAYM,EAAAA,OAAOF,EAAAA,OAAU,OAAO,EAAG,SAAS"}
@@ -0,0 +1,67 @@
1
+ "use client";
2
+ import { jsxs as p, jsx as r } from "react/jsx-runtime";
3
+ import { Dialog as o, ark as c, useDialogContext as y, Portal as x } from "@ark-ui/react";
4
+ import { styled as t } from "@stokelp/styled-system/jsx";
5
+ import { dialog as w } from "@stokelp/styled-system/recipes";
6
+ import { forwardRef as u, useLayoutEffect as L } from "react";
7
+ import { createStyleContext as T } from "../../utils/slots.js";
8
+ import { useMediaQuery as v } from "usehooks-ts";
9
+ import { token as P } from "@stokelp/styled-system/tokens";
10
+ import { DrawerCloseTrigger as k } from "../drawer/Drawer.js";
11
+ import { IconButton as B } from "../icon-button/IconButton.js";
12
+ const { withProvider: b, withContext: e } = T(w, {
13
+ dataAttr: !0
14
+ }), A = b(o.Root, void 0, {
15
+ defaultProps: {
16
+ lazyMount: !0,
17
+ unmountOnExit: !0
18
+ }
19
+ }), M = e(t(o.Backdrop), "backdrop"), F = e(t(o.CloseTrigger), "closeTrigger"), g = u(({ children: l, ...s }, a) => {
20
+ const i = v(`(max-width: ${P("breakpoints.md")})`, {
21
+ defaultValue: !1
22
+ }), { open: d, getContentProps: C } = y();
23
+ return L(() => {
24
+ if (!d) return;
25
+ const { id: m } = C();
26
+ m && setTimeout(() => {
27
+ const n = document.getElementById(m);
28
+ if (n) {
29
+ const f = n.querySelector("footer");
30
+ f && (i ? n.style.setProperty("--footer-height", `${Math.ceil(f.clientHeight)}px`) : n.style.setProperty("--footer-height", "70px"));
31
+ }
32
+ }, 0);
33
+ }, [d, i]), /* @__PURE__ */ p(x, { children: [
34
+ /* @__PURE__ */ r(M, {}),
35
+ /* @__PURE__ */ r(R, { children: /* @__PURE__ */ r(o.Content, { ref: a, ...s, children: l }) })
36
+ ] });
37
+ });
38
+ g.displayName = o.Content.displayName;
39
+ const O = e(t(g), "content"), h = u(
40
+ ({ children: l, showCloseTrigger: s = !0, ...a }, i) => /* @__PURE__ */ p(c.header, { ...a, ref: i, children: [
41
+ l,
42
+ s && /* @__PURE__ */ r(k, { asChild: !0, children: /* @__PURE__ */ r(B, { ml: "auto", "aria-label": "close", variant: "tertiary", children: /* @__PURE__ */ r("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r(
43
+ "path",
44
+ {
45
+ fillRule: "evenodd",
46
+ clipRule: "evenodd",
47
+ d: "M3.64645 3.64645C3.84171 3.45118 4.15829 3.45118 4.35355 3.64645L8 7.29289L11.6464 3.64645C11.8417 3.45118 12.1583 3.45118 12.3536 3.64645C12.5488 3.84171 12.5488 4.15829 12.3536 4.35355L8.70711 8L12.3536 11.6464C12.5488 11.8417 12.5488 12.1583 12.3536 12.3536C12.1583 12.5488 11.8417 12.5488 11.6464 12.3536L8 8.70711L4.35355 12.3536C4.15829 12.5488 3.84171 12.5488 3.64645 12.3536C3.45118 12.1583 3.45118 11.8417 3.64645 11.6464L7.29289 8L3.64645 4.35355C3.45118 4.15829 3.45118 3.84171 3.64645 3.64645Z",
48
+ fill: "currentColor"
49
+ }
50
+ ) }) }) })
51
+ ] })
52
+ );
53
+ h.displayName = "DialogHeader";
54
+ const Q = e(t(h), "header"), V = e(t(c.main), "body"), Z = e(t(c.footer), "footer"), R = e(t(o.Positioner), "positioner"), G = e(t(o.Title), "title"), J = e(t(o.Trigger), "trigger");
55
+ export {
56
+ M as Backdrop,
57
+ V as Body,
58
+ F as CloseTrigger,
59
+ O as Content,
60
+ Z as Footer,
61
+ Q as Header,
62
+ R as Positioner,
63
+ A as Root,
64
+ G as Title,
65
+ J as Trigger
66
+ };
67
+ //# sourceMappingURL=styled.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styled.js","sources":["../../../src/components/dialog/styled.tsx"],"sourcesContent":["import { ark, Dialog as ArkDialog, Portal, useDialogContext } from '@ark-ui/react'\nimport { styled } from '@stokelp/styled-system/jsx'\nimport { dialog } from '@stokelp/styled-system/recipes'\nimport { ComponentProps, ComponentPropsWithoutRef, ElementRef, forwardRef, useLayoutEffect } from 'react'\nimport { createStyleContext } from '~/utils/slots'\nimport { IconButton } from '~/components/icon-button'\nimport { DrawerCloseTrigger } from '~/components'\nimport { useMediaQuery } from 'usehooks-ts'\nimport { token } from '@stokelp/styled-system/tokens'\n\nconst { withProvider, withContext } = createStyleContext(dialog, {\n dataAttr: true,\n})\n\nexport const Root = withProvider(ArkDialog.Root, undefined, {\n defaultProps: {\n lazyMount: true,\n unmountOnExit: true,\n },\n})\nexport const Backdrop = withContext(styled(ArkDialog.Backdrop), 'backdrop')\nexport const CloseTrigger = withContext(styled(ArkDialog.CloseTrigger), 'closeTrigger')\n\nconst InternalContent = forwardRef<\n ElementRef<typeof ArkDialog.Content>,\n ComponentPropsWithoutRef<typeof ArkDialog.Content>\n>(({ children, ...props }, ref) => {\n const isMobile = useMediaQuery(`(max-width: ${token('breakpoints.md')})`, {\n defaultValue: false,\n })\n const { open, getContentProps } = useDialogContext()\n\n useLayoutEffect(() => {\n if (!open) return\n const { id } = getContentProps()\n if (!id) return\n setTimeout(() => {\n const $content = document.getElementById(id)\n\n if ($content) {\n const $footer = $content.querySelector('footer')\n if ($footer) {\n if (isMobile) {\n $content.style.setProperty('--footer-height', `${Math.ceil($footer.clientHeight)}px`)\n } else {\n $content.style.setProperty('--footer-height', `70px`)\n }\n }\n }\n }, 0)\n }, [open, isMobile])\n\n return (\n <Portal>\n <Backdrop />\n <Positioner>\n <ArkDialog.Content ref={ref} {...props}>\n {children}\n </ArkDialog.Content>\n </Positioner>\n </Portal>\n )\n})\nInternalContent.displayName = ArkDialog.Content.displayName\n\nexport const Content = withContext(styled(InternalContent), 'content')\n\ntype HeaderProps = ComponentPropsWithoutRef<typeof ark.header> & {\n showCloseTrigger?: boolean\n}\nconst InternalHeader = forwardRef<ElementRef<typeof ark.header>, HeaderProps>(\n ({ children, showCloseTrigger = true, ...props }, ref) => (\n <ark.header {...props} ref={ref}>\n {children}\n {showCloseTrigger && (\n <DrawerCloseTrigger asChild>\n <IconButton ml=\"auto\" aria-label=\"close\" variant=\"tertiary\">\n <svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M3.64645 3.64645C3.84171 3.45118 4.15829 3.45118 4.35355 3.64645L8 7.29289L11.6464 3.64645C11.8417 3.45118 12.1583 3.45118 12.3536 3.64645C12.5488 3.84171 12.5488 4.15829 12.3536 4.35355L8.70711 8L12.3536 11.6464C12.5488 11.8417 12.5488 12.1583 12.3536 12.3536C12.1583 12.5488 11.8417 12.5488 11.6464 12.3536L8 8.70711L4.35355 12.3536C4.15829 12.5488 3.84171 12.5488 3.64645 12.3536C3.45118 12.1583 3.45118 11.8417 3.64645 11.6464L7.29289 8L3.64645 4.35355C3.45118 4.15829 3.45118 3.84171 3.64645 3.64645Z\"\n fill=\"currentColor\"\n />\n </svg>\n </IconButton>\n </DrawerCloseTrigger>\n )}\n </ark.header>\n ),\n)\nInternalHeader.displayName = 'DialogHeader'\n\nexport const Header = withContext(styled(InternalHeader), 'header')\nexport const Body = withContext(styled(ark.main), 'body')\nexport const Footer = withContext(styled(ark.footer), 'footer')\nexport const Positioner = withContext(styled(ArkDialog.Positioner), 'positioner')\nexport const Title = withContext(styled(ArkDialog.Title), 'title')\nexport const Trigger = withContext(styled(ArkDialog.Trigger), 'trigger')\n\nexport interface DialogProps extends ComponentProps<typeof Root> {}\nexport interface DialogBackdropProps extends ComponentProps<typeof Backdrop> {}\nexport interface DialogCloseTriggerProps extends ComponentProps<typeof CloseTrigger> {}\nexport interface DialogContentProps extends ComponentProps<typeof Content> {}\nexport interface DialogHeaderProps extends ComponentProps<typeof Header> {}\nexport interface DialogBodyProps extends ComponentProps<typeof Body> {}\nexport interface DialogFooterProps extends ComponentProps<typeof Footer> {}\nexport interface DialogPositionerProps extends ComponentProps<typeof Positioner> {}\nexport interface DialogTitleProps extends ComponentProps<typeof Title> {}\nexport interface DialogTriggerProps extends ComponentProps<typeof Trigger> {}\n"],"names":["withProvider","withContext","createStyleContext","dialog","Root","ArkDialog","Backdrop","styled","CloseTrigger","InternalContent","forwardRef","children","props","ref","isMobile","useMediaQuery","token","open","getContentProps","useDialogContext","useLayoutEffect","id","$content","$footer","Portal","jsx","Positioner","Content","InternalHeader","showCloseTrigger","ark","DrawerCloseTrigger","IconButton","Header","Body","Footer","Title","Trigger"],"mappings":";;;;;;;;;;;AAUA,MAAM,EAAE,cAAAA,GAAc,aAAAC,MAAgBC,EAAmBC,GAAQ;AAAA,EAC/D,UAAU;AACZ,CAAC,GAEYC,IAAOJ,EAAaK,EAAU,MAAM,QAAW;AAAA,EAC1D,cAAc;AAAA,IACZ,WAAW;AAAA,IACX,eAAe;AAAA,EAAA;AAEnB,CAAC,GACYC,IAAWL,EAAYM,EAAOF,EAAU,QAAQ,GAAG,UAAU,GAC7DG,IAAeP,EAAYM,EAAOF,EAAU,YAAY,GAAG,cAAc,GAEhFI,IAAkBC,EAGtB,CAAC,EAAE,UAAAC,GAAU,GAAGC,EAAA,GAASC,MAAQ;AACjC,QAAMC,IAAWC,EAAc,eAAeC,EAAM,gBAAgB,CAAC,KAAK;AAAA,IACxE,cAAc;AAAA,EAAA,CACf,GACK,EAAE,MAAAC,GAAM,iBAAAC,EAAA,IAAoBC,EAAA;AAElC,SAAAC,EAAgB,MAAM;AACpB,QAAI,CAACH,EAAM;AACX,UAAM,EAAE,IAAAI,EAAA,IAAOH,EAAA;AACf,IAAKG,KACL,WAAW,MAAM;AACf,YAAMC,IAAW,SAAS,eAAeD,CAAE;AAE3C,UAAIC,GAAU;AACZ,cAAMC,IAAUD,EAAS,cAAc,QAAQ;AAC/C,QAAI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