@midas-ds/components 10.1.1 → 10.3.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 (383) hide show
  1. package/AccordionItem-BGWiWjxA.cjs +1 -0
  2. package/AccordionItem-ChHpW8EW.js +320 -0
  3. package/BadgeContainer-DM8TdyMT.js +37 -0
  4. package/BadgeContainer-I1XA3OCl.cjs +1 -0
  5. package/Breadcrumbs-CwDUNIqF.js +250 -0
  6. package/Breadcrumbs-DtjJ1UmU.cjs +1 -0
  7. package/Button-BoJl6JGM.cjs +1 -0
  8. package/Button-Csih3v23.js +38 -0
  9. package/Button-DjBChs7s.js +340 -0
  10. package/Button-htW9qIsS.cjs +1 -0
  11. package/Button.module-DEQtBYe5.cjs +1 -0
  12. package/Button.module-tti8HGxs.js +14 -0
  13. package/ButtonGroup-DUqW5dzM.cjs +1 -0
  14. package/ButtonGroup-DvVvear6.js +22 -0
  15. package/CHANGELOG.md +68 -0
  16. package/Card-0G0mj9q5.cjs +1 -0
  17. package/Card-yrtGzt70.js +131 -0
  18. package/CharacterCounter-BL_nZHya.js +22 -0
  19. package/CharacterCounter-CHcTDHO-.cjs +1 -0
  20. package/Checkbox-5HINZdGu.js +263 -0
  21. package/Checkbox-DqcPg5hz.cjs +1 -0
  22. package/CheckboxGroup-BBrSMuDY.cjs +1 -0
  23. package/CheckboxGroup-CLgixk2p.js +243 -0
  24. package/Collection-BIDsXNhi.cjs +1 -0
  25. package/Collection-Brgjpkne.js +576 -0
  26. package/ColorSchemeSwitch-BpzQ7g0b.js +106 -0
  27. package/ColorSchemeSwitch-C-qWuqkU.cjs +16 -0
  28. package/ComboBox-CVDyp2a-.js +1379 -0
  29. package/ComboBox-CWJUg9Xx.cjs +1 -0
  30. package/DateField-DeDhiYnW.cjs +1 -0
  31. package/DateField-DhU3q-rG.js +47 -0
  32. package/DateInputDivider-ADvOavHw.cjs +1 -0
  33. package/DateInputDivider-CF4xWsMT.js +2904 -0
  34. package/DateRangePicker-BsAHhy99.cjs +6 -0
  35. package/DateRangePicker-ziD1_k1W.js +881 -0
  36. package/Dialog-B8GTYbvu.cjs +1 -0
  37. package/Dialog-BOrYdX50.cjs +1 -0
  38. package/Dialog-CXNu48AC.js +208 -0
  39. package/Dialog-D14MbJ7o.js +1633 -0
  40. package/DragAndDrop-DNth776R.cjs +1 -0
  41. package/DragAndDrop-o3ruz_SR.js +60 -0
  42. package/Dropdown-CJ6My6EI.cjs +6 -0
  43. package/Dropdown-Df58j43I.js +84 -0
  44. package/FieldError-CAcjosk_.js +46 -0
  45. package/FieldError-CKBb2-mp.cjs +1 -0
  46. package/FileUpload-CxCOtyB9.cjs +2 -0
  47. package/FileUpload-D6qoEAjn.js +2373 -0
  48. package/FocusScope-5c9SVBcR.cjs +1 -0
  49. package/FocusScope-CxkURfoc.js +625 -0
  50. package/Form-BuOomA4T.cjs +1 -0
  51. package/Form-CXcEMuBf.js +5 -0
  52. package/Grid--OhtgCo6.js +27 -0
  53. package/Grid-DVQtOcu9.cjs +1 -0
  54. package/GridItem-DlbSdRmB.js +246 -0
  55. package/GridItem-XgHmZWXY.cjs +1 -0
  56. package/Group-B6EslsHZ.js +44 -0
  57. package/Group-CgiqQHH1.cjs +1 -0
  58. package/Heading-BFtiin0g.js +46 -0
  59. package/Heading-mHhCbGjY.cjs +1 -0
  60. package/Hidden-BxRZGdEW.cjs +1 -0
  61. package/Hidden-C9KWUR7b.js +34 -0
  62. package/InfoBanner-BLM-TJJ6.js +83 -0
  63. package/InfoBanner-C2kTIsrB.cjs +1 -0
  64. package/Input-BTzwcf72.js +41 -0
  65. package/Input-DKSAYvsw.cjs +1 -0
  66. package/Label-7Ybb99CE.cjs +1 -0
  67. package/Label-BwJrdqEE.js +70 -0
  68. package/Layout-1g6bMH62.cjs +16 -0
  69. package/Layout-Ey8flY7E.js +468 -0
  70. package/Link-B88l_oaE.cjs +6 -0
  71. package/Link-BQhauBuw.cjs +1 -0
  72. package/Link-DX5BbBnn.js +59 -0
  73. package/Link-yNO2-sqx.js +71 -0
  74. package/LinkButton-CBpGLETx.cjs +6 -0
  75. package/LinkButton-o6uS1XsR.js +69 -0
  76. package/ListBox-DP9M4H6R.cjs +1 -0
  77. package/ListBox-GnVK_Pdq.js +529 -0
  78. package/ListBoxButton-DPBrtXyv.cjs +1 -0
  79. package/ListBoxButton-D_J3jlP0.js +15 -0
  80. package/ListBoxSection-BGaigBnG.cjs +1 -0
  81. package/ListBoxSection-C0BGnpB4.js +1058 -0
  82. package/ListKeyboardDelegate-DNI8GQtX.js +167 -0
  83. package/ListKeyboardDelegate-DTg9h4v6.cjs +1 -0
  84. package/Logo-BIrOEINM.js +133 -0
  85. package/Logo-DT2_2O43.cjs +1 -0
  86. package/OverlayArrow-CDLXPTew.js +506 -0
  87. package/OverlayArrow-D75k-EMl.cjs +1 -0
  88. package/Popover-BGGXeD54.js +38 -0
  89. package/Popover-CqNWzPf-.cjs +1 -0
  90. package/ProgressBar-DMSg-Prr.js +53 -0
  91. package/ProgressBar-Jbg28j2a.cjs +1 -0
  92. package/RSPContexts-BW2SEIqe.js +11 -0
  93. package/RSPContexts-D8hmBfGm.cjs +1 -0
  94. package/Radio-BwqrdhQE.cjs +1 -0
  95. package/Radio-Cz29wPXd.js +311 -0
  96. package/RangeCalendar-BehUaydF.cjs +11 -0
  97. package/RangeCalendar-RAlAHlNL.js +1683 -0
  98. package/SearchField-CxMwDeUM.cjs +6 -0
  99. package/SearchField-IlvZ3Kh6.js +362 -0
  100. package/Select-2q1iSzAX.cjs +1 -0
  101. package/Select-BVQZtoi9.js +646 -0
  102. package/SelectionManager-B4ORduja.js +1032 -0
  103. package/SelectionManager-CwYux2h3.cjs +1 -0
  104. package/Separator-Cu9fYKUM.js +59 -0
  105. package/Separator-DECIYLtZ.cjs +1 -0
  106. package/Skeleton-BAwbfKBW.cjs +1 -0
  107. package/Skeleton-BePDRmrO.js +40 -0
  108. package/Spinner-D31SXm-U.js +41 -0
  109. package/Spinner-P35rvvsl.cjs +6 -0
  110. package/Table-B40CGLT-.cjs +16 -0
  111. package/Table-F4oYBtUM.js +2447 -0
  112. package/Tabs-B4oZJkZG.js +404 -0
  113. package/Tabs-DA2qXhzb.cjs +1 -0
  114. package/Tag-DPAGmcMK.cjs +1 -0
  115. package/Tag-Du7GvSv2.js +745 -0
  116. package/Text-3MNwRMpI.cjs +1 -0
  117. package/Text-B2K-BJKQ.cjs +1 -0
  118. package/Text-BoXuUVVH.js +15 -0
  119. package/Text-jWWg0B20.js +32 -0
  120. package/TextArea-C7JZ_pQd.cjs +1 -0
  121. package/TextArea-XeBCSyzl.js +191 -0
  122. package/TextField-BgNdhZi_.cjs +1 -0
  123. package/TextField-C-hTPukq.js +119 -0
  124. package/TextField.module-BcpPBWnD.js +13 -0
  125. package/TextField.module-Dw5Rtn9y.cjs +1 -0
  126. package/Toast-AbDA1BOs.cjs +1 -0
  127. package/Toast-Btg21Xge.js +989 -0
  128. package/ToggleButtonGroup-B5yz1tm2.js +210 -0
  129. package/ToggleButtonGroup-BFDoj0P6.cjs +1 -0
  130. package/Tooltip-CMLs7WMw.js +283 -0
  131. package/Tooltip-DeBuBKhS.cjs +1 -0
  132. package/VisuallyHidden-CLWHbz2n.cjs +1 -0
  133. package/VisuallyHidden-ZCYf65q4.js +40 -0
  134. package/accordion/index.cjs +1 -0
  135. package/accordion/index.js +5 -0
  136. package/arrow-right-Dg8sttFO.js +14 -0
  137. package/arrow-right-QJ2gXPKQ.cjs +6 -0
  138. package/assets/AccordionItem.css +1 -0
  139. package/assets/BadgeContainer.css +1 -0
  140. package/assets/Breadcrumbs.css +1 -0
  141. package/assets/Button.css +1 -0
  142. package/assets/ButtonGroup.css +1 -0
  143. package/assets/Card.css +1 -0
  144. package/assets/CharacterCounter.css +1 -0
  145. package/assets/Checkbox.css +1 -0
  146. package/assets/ColorSchemeSwitch.css +1 -0
  147. package/assets/ComboBox.css +1 -0
  148. package/assets/DateField.css +1 -0
  149. package/assets/DateInputDivider.css +1 -0
  150. package/assets/DateRangePicker.css +1 -0
  151. package/assets/Dialog.css +1 -0
  152. package/assets/Dropdown.css +1 -0
  153. package/assets/FieldError.css +1 -0
  154. package/assets/FileUpload.css +1 -0
  155. package/assets/GridItem.css +1 -0
  156. package/assets/Heading.css +1 -0
  157. package/assets/InfoBanner.css +1 -0
  158. package/assets/Label.css +1 -0
  159. package/assets/Layout.css +1 -0
  160. package/assets/Link.css +1 -0
  161. package/assets/LinkButton.css +1 -0
  162. package/assets/ListBoxSection.css +1 -0
  163. package/assets/Logo.css +1 -0
  164. package/assets/Popover.css +1 -0
  165. package/assets/ProgressBar.css +1 -0
  166. package/assets/Radio.css +1 -0
  167. package/assets/RangeCalendar.css +1 -0
  168. package/assets/SearchField.css +1 -0
  169. package/assets/Select.css +1 -0
  170. package/assets/Skeleton.css +1 -0
  171. package/assets/Spinner.css +1 -0
  172. package/assets/Table.css +1 -0
  173. package/assets/Tabs.css +1 -0
  174. package/assets/Tag.css +1 -0
  175. package/assets/Text.css +1 -0
  176. package/assets/TextField.css +1 -0
  177. package/assets/Toast.css +1 -0
  178. package/assets/ToggleButtonGroup.css +1 -0
  179. package/assets/Tooltip.css +1 -0
  180. package/badge/index.cjs +1 -0
  181. package/badge/index.js +5 -0
  182. package/breadcrumbs/index.cjs +1 -0
  183. package/breadcrumbs/index.js +4 -0
  184. package/button/index.cjs +1 -0
  185. package/button/index.js +6 -0
  186. package/calendar/CalendarHeader.d.ts +2 -1
  187. package/calendar/index.cjs +1 -0
  188. package/calendar/index.js +5 -0
  189. package/card/index.cjs +1 -0
  190. package/card/index.js +10 -0
  191. package/character-counter/index.cjs +1 -0
  192. package/character-counter/index.js +4 -0
  193. package/check-CLF6Yxza.js +11 -0
  194. package/check-D_KoootC.cjs +6 -0
  195. package/checkbox/Checkbox.d.ts +2 -2
  196. package/checkbox/CheckboxGroup.d.ts +8 -8
  197. package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
  198. package/checkbox/CheckboxGroupItem.d.ts +3 -0
  199. package/checkbox/CheckboxInner.d.ts +2 -0
  200. package/checkbox/SingleCheckbox.d.ts +3 -0
  201. package/checkbox/context.d.ts +3 -0
  202. package/checkbox/index.cjs +1 -0
  203. package/checkbox/index.d.ts +2 -1
  204. package/checkbox/index.js +6 -0
  205. package/checkbox/intl/translations.json.d.ts +35 -0
  206. package/checkbox/types.d.ts +14 -0
  207. package/checkbox/useSelectAll.d.ts +7 -0
  208. package/chevron-down-Cd1bkzXT.js +13 -0
  209. package/chevron-down-jl83cllc.cjs +6 -0
  210. package/circle-check-B9HYcH7Z.js +26 -0
  211. package/circle-check-BGo8gML8.cjs +11 -0
  212. package/clsx-C11secjj.cjs +1 -0
  213. package/clsx-OuTLNxxd.js +16 -0
  214. package/color-scheme-switch/index.cjs +1 -0
  215. package/color-scheme-switch/index.js +4 -0
  216. package/combobox/ComboBox.d.ts +3 -1
  217. package/combobox/index.cjs +1 -0
  218. package/combobox/index.js +7 -0
  219. package/common/types.d.ts +2 -0
  220. package/context-C81gPYvC.js +80 -0
  221. package/context-DjwhtgxQ.cjs +1 -0
  222. package/createLucideIcon-Cg_wkoIA.cjs +21 -0
  223. package/createLucideIcon-DeWljiyi.js +79 -0
  224. package/date-field/DateField.d.ts +3 -0
  225. package/date-field/index.cjs +1 -0
  226. package/date-field/index.js +8 -0
  227. package/date-picker/DatePicker.d.ts +3 -0
  228. package/date-picker/DateRangePicker.d.ts +3 -0
  229. package/date-picker/index.cjs +1 -0
  230. package/date-picker/index.js +5 -0
  231. package/dropdown/index.cjs +1 -0
  232. package/dropdown/index.js +5 -0
  233. package/field-error/FieldError.d.ts +4 -1
  234. package/field-error/index.cjs +1 -0
  235. package/field-error/index.js +4 -0
  236. package/file-upload/FileUpload.d.ts +3 -0
  237. package/file-upload/index.cjs +1 -0
  238. package/file-upload/index.js +4 -0
  239. package/filterDOMProps-BS2lrgFA.cjs +1 -0
  240. package/filterDOMProps-D6KHYVBX.js +24 -0
  241. package/getScrollParent-BhFcYrwL.js +9 -0
  242. package/getScrollParent-DDJu9WHU.cjs +1 -0
  243. package/grid/Grid.d.ts +15 -4
  244. package/grid/GridItem.d.ts +31 -2
  245. package/grid/index.cjs +1 -0
  246. package/grid/index.d.ts +2 -2
  247. package/grid/index.js +8 -0
  248. package/heading/index.cjs +1 -0
  249. package/heading/index.js +4 -0
  250. package/index-CGRFP4CC.js +120 -0
  251. package/index-Dsz3aiWt.cjs +17 -0
  252. package/index.cjs +1 -169
  253. package/index.d.ts +1 -1
  254. package/index.js +129 -29979
  255. package/inertValue-B3AFhVG4.cjs +1 -0
  256. package/inertValue-B7loUihk.js +8 -0
  257. package/info-BZwphdye.js +15 -0
  258. package/info-CIEIENo6.cjs +6 -0
  259. package/info-banner/index.cjs +1 -0
  260. package/info-banner/index.js +4 -0
  261. package/label/InfoPopover.d.ts +9 -0
  262. package/label/LabelWrapper.d.ts +11 -0
  263. package/label/index.cjs +1 -0
  264. package/label/index.d.ts +1 -0
  265. package/label/index.js +4 -0
  266. package/layout/index.cjs +1 -0
  267. package/layout/index.js +8 -0
  268. package/link/index.cjs +1 -0
  269. package/link/index.js +6 -0
  270. package/link-button/index.cjs +1 -0
  271. package/link-button/index.js +6 -0
  272. package/list-box/index.cjs +1 -0
  273. package/list-box/index.js +9 -0
  274. package/logo/index.cjs +1 -0
  275. package/logo/index.js +4 -0
  276. package/modal/index.cjs +1 -0
  277. package/modal/index.js +6 -0
  278. package/number-BE8InLgI.js +6 -0
  279. package/number-E0x3H9cL.cjs +1 -0
  280. package/package.json +4 -4
  281. package/popover/Popover.d.ts +7 -0
  282. package/popover/index.cjs +1 -0
  283. package/popover/index.d.ts +1 -0
  284. package/popover/index.js +4 -0
  285. package/progress-bar/index.cjs +1 -0
  286. package/progress-bar/index.js +4 -0
  287. package/radio/Radio.d.ts +3 -0
  288. package/radio/index.cjs +1 -0
  289. package/radio/index.js +5 -0
  290. package/scrollIntoView-C8doLzDd.cjs +1 -0
  291. package/scrollIntoView-Hwb_aaNf.js +87 -0
  292. package/search-field/index.cjs +1 -0
  293. package/search-field/index.js +4 -0
  294. package/select/index.cjs +1 -0
  295. package/select/index.js +4 -0
  296. package/skeleton/Skeleton.d.ts +5 -0
  297. package/skeleton/index.cjs +1 -0
  298. package/skeleton/index.js +4 -0
  299. package/spinner/index.cjs +1 -0
  300. package/spinner/index.js +4 -0
  301. package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
  302. package/square-arrow-out-up-right-V4Gd08uI.cjs +6 -0
  303. package/table/Table.d.ts +7 -1
  304. package/table/index.cjs +1 -0
  305. package/table/index.js +9 -0
  306. package/tabs/index.cjs +1 -0
  307. package/tabs/index.js +4 -0
  308. package/tag/index.cjs +1 -0
  309. package/tag/index.js +5 -0
  310. package/text/index.cjs +1 -0
  311. package/text/index.js +4 -0
  312. package/textfield/TextFieldBase.d.ts +2 -0
  313. package/textfield/index.cjs +1 -0
  314. package/textfield/index.js +7 -0
  315. package/theme/index.cjs +1 -0
  316. package/theme/index.d.ts +4 -0
  317. package/{theme.js → theme/index.js} +2 -2
  318. package/theme/tokens.d.ts +10 -0
  319. package/toast/index.cjs +1 -0
  320. package/toast/index.js +9 -0
  321. package/toggle-button/index.cjs +1 -0
  322. package/toggle-button/index.js +5 -0
  323. package/tokens-p6pg1Cea.cjs +1 -0
  324. package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
  325. package/tooltip/index.cjs +1 -0
  326. package/tooltip/index.js +5 -0
  327. package/triangle-alert-DJW8U7jL.cjs +6 -0
  328. package/triangle-alert-wxyxspAl.js +21 -0
  329. package/useButton-B8dB9sot.js +47 -0
  330. package/useButton-cpNi-fY4.cjs +1 -0
  331. package/useControlledState-D0L6S_5r.cjs +1 -0
  332. package/useControlledState-u436Wbp1.js +30 -0
  333. package/useDateFormatter-CnxoJ4jF.cjs +1 -0
  334. package/useDateFormatter-EHm4auIg.js +1571 -0
  335. package/useEvent-DxBxMX2V.cjs +1 -0
  336. package/useEvent-IsD2Awnh.js +21 -0
  337. package/useField-CXKYU74k.cjs +1 -0
  338. package/useField-DvpGZkw_.js +35 -0
  339. package/useFilter-BTgDWHVx.cjs +1 -0
  340. package/useFilter-CUq74PQ2.js +35 -0
  341. package/useFocusRing-CbImDrwF.cjs +1 -0
  342. package/useFocusRing-XnR3cZjO.js +82 -0
  343. package/useFocusable-C8uh8K4g.js +125 -0
  344. package/useFocusable-NUVSFcRC.cjs +1 -0
  345. package/useFormValidation-BIGzfO9h.js +215 -0
  346. package/useFormValidation-ClximP89.cjs +1 -0
  347. package/useHasTabbableChild-C-1mZUQe.js +34 -0
  348. package/useHasTabbableChild-DCBTulUQ.cjs +1 -0
  349. package/useHighlightSelectionDescription-CnBDT86u.js +567 -0
  350. package/useHighlightSelectionDescription-CzYucm61.cjs +1 -0
  351. package/useHover-DjIHtjGN.js +490 -0
  352. package/useHover-_mv5J4_q.cjs +1 -0
  353. package/useLabels-BDwkBYbE.js +17 -0
  354. package/useLabels-BLOfc6Y-.cjs +1 -0
  355. package/useListState-Bx8u4IFG.cjs +1 -0
  356. package/useListState-CrZFZffI.js +132 -0
  357. package/useLocalizedStringFormatter-BKoxGZf1.js +96 -0
  358. package/useLocalizedStringFormatter-BsxLt89S.cjs +1 -0
  359. package/useLocalizedStringFormatter-D3JQyjb4.js +21 -0
  360. package/useLocalizedStringFormatter-ioacM-Yt.cjs +1 -0
  361. package/useObserveElement-BdI4zgd7.js +27 -0
  362. package/useObserveElement-MhzEsCkX.cjs +1 -0
  363. package/usePress-0AjDbW9R.cjs +7 -0
  364. package/usePress-CNjmDzap.js +542 -0
  365. package/useSingleSelectListState-0AGHxvy3.js +34 -0
  366. package/useSingleSelectListState-Cl3KV5E1.cjs +1 -0
  367. package/useTextField--czJtyNd.cjs +1 -0
  368. package/useTextField-Cw-33OP_.js +86 -0
  369. package/useToggleState-Bz5rAf4C.js +18 -0
  370. package/useToggleState-DoIkSQdj.cjs +1 -0
  371. package/useUpdateEffect-C5YQs_1w.cjs +1 -0
  372. package/useUpdateEffect-CCDx8D4X.js +13 -0
  373. package/utils-BNtZbAib.cjs +1 -0
  374. package/utils-DIMfEPAt.js +308 -0
  375. package/x-H8Zrx8-x.cjs +6 -0
  376. package/x-JK7i-TQC.js +14 -0
  377. package/flex/Flex.d.ts +0 -17
  378. package/flex/FlexItem.d.ts +0 -15
  379. package/flex/index.d.ts +0 -2
  380. package/index.css +0 -1
  381. package/theme.cjs +0 -1
  382. package/tokens-COoF1t17.cjs +0 -1
  383. /package/{global.css → assets/global.css} +0 -0
@@ -0,0 +1,881 @@
1
+ import { jsxs as H, jsx as $ } from "react/jsx-runtime";
2
+ import * as ce from "react";
3
+ import J, { useMemo as W, useRef as z, useState as L, forwardRef as De, createContext as ee, useCallback as xe } from "react";
4
+ import { c as Q } from "./clsx-OuTLNxxd.js";
5
+ import { $ as da, a as na, C as ra, R as oa } from "./RangeCalendar-RAlAHlNL.js";
6
+ import { c as Fe, d as Re, e as Ce, f as sa, g as Oe, h as ua, i as q, j, k as ca, l as Te, a as ne, D as re, b as fa } from "./DateInputDivider-CF4xWsMT.js";
7
+ import { $ as Ie, F as Y } from "./FieldError-CAcjosk_.js";
8
+ import { a as Ze, L as Me } from "./Label-BwJrdqEE.js";
9
+ import { T as Be } from "./Text-jWWg0B20.js";
10
+ import { e as fe, b as be, $ as ba } from "./Button-DjBChs7s.js";
11
+ import { e as G, c as ke, a as we, g as _e, h as Ee, i as pe, b as Se, j as Ue } from "./utils-DIMfEPAt.js";
12
+ import { i as Ne, m as We, n as Le, a as va, l as ma } from "./Dialog-D14MbJ7o.js";
13
+ import { $ as Ke } from "./Form-CXcEMuBf.js";
14
+ import { a as ve, $ as $a } from "./Group-B6EslsHZ.js";
15
+ import { $ as me } from "./Text-BoXuUVVH.js";
16
+ import { $ as ae } from "./filterDOMProps-D6KHYVBX.js";
17
+ import { a as je, g as ze } from "./OverlayArrow-CDLXPTew.js";
18
+ import { $ as A, a as oe, b as se } from "./useDateFormatter-EHm4auIg.js";
19
+ import { d as ue, e as Pe, c as Ve, $ as qe } from "./useFormValidation-BIGzfO9h.js";
20
+ import { $ as Ge } from "./useControlledState-u436Wbp1.js";
21
+ import { b as Ae } from "./FocusScope-CxkURfoc.js";
22
+ import { a as Xe } from "./scrollIntoView-Hwb_aaNf.js";
23
+ import { a as He, $ as Je } from "./useFocusRing-XnR3cZjO.js";
24
+ import { $ as Qe } from "./useField-DvpGZkw_.js";
25
+ import { $ as Ye } from "./context-C81gPYvC.js";
26
+ import { b as ea } from "./useLocalizedStringFormatter-BKoxGZf1.js";
27
+ import { c as ha } from "./createLucideIcon-DeWljiyi.js";
28
+ import './assets/DateRangePicker.css';function ga(e) {
29
+ return e && e.__esModule ? e.default : e;
30
+ }
31
+ function ya(e, a, i) {
32
+ let f = G(), u = G(), c = G(), s = ea(ga(Ce), "@react-aria/datepicker"), { isInvalid: t, validationErrors: l, validationDetails: x } = a.displayValidation, { labelProps: B, fieldProps: b, descriptionProps: k, errorMessageProps: F } = Qe({
33
+ ...e,
34
+ labelElementType: "span",
35
+ isInvalid: t,
36
+ errorMessage: e.errorMessage || l
37
+ }), R = Fe(a, i), C = b["aria-labelledby"] || b.id, { locale: v } = Ye(), O = a.formatValue(v, {
38
+ month: "long"
39
+ }), d = O ? s.format("selectedDateDescription", {
40
+ date: O
41
+ }) : "", T = Xe(d), I = [
42
+ T["aria-describedby"],
43
+ b["aria-describedby"]
44
+ ].filter(Boolean).join(" ") || void 0, P = ae(e), Z = W(() => Ae(i), [
45
+ i
46
+ ]), M = z(!1), { focusWithinProps: D } = He({
47
+ ...e,
48
+ isDisabled: a.isOpen,
49
+ onBlurWithin: (y) => {
50
+ let V = document.getElementById(u);
51
+ if (!(V != null && V.contains(y.relatedTarget))) {
52
+ var o, g;
53
+ M.current = !1, (o = e.onBlur) === null || o === void 0 || o.call(e, y), (g = e.onFocusChange) === null || g === void 0 || g.call(e, !1);
54
+ }
55
+ },
56
+ onFocusWithin: (y) => {
57
+ if (!M.current) {
58
+ var V, o;
59
+ M.current = !0, (V = e.onFocus) === null || V === void 0 || V.call(e, y), (o = e.onFocusChange) === null || o === void 0 || o.call(e, !0);
60
+ }
61
+ }
62
+ });
63
+ return {
64
+ groupProps: ke(P, R, b, T, D, {
65
+ role: "group",
66
+ "aria-disabled": e.isDisabled || null,
67
+ "aria-labelledby": C,
68
+ "aria-describedby": I,
69
+ onKeyDown(y) {
70
+ a.isOpen || e.onKeyDown && e.onKeyDown(y);
71
+ },
72
+ onKeyUp(y) {
73
+ a.isOpen || e.onKeyUp && e.onKeyUp(y);
74
+ }
75
+ }),
76
+ labelProps: {
77
+ ...B,
78
+ onClick: () => {
79
+ Z.focusFirst();
80
+ }
81
+ },
82
+ fieldProps: {
83
+ ...b,
84
+ id: c,
85
+ [Re]: "presentation",
86
+ "aria-describedby": I,
87
+ value: a.value,
88
+ onChange: a.setValue,
89
+ placeholderValue: e.placeholderValue,
90
+ hideTimeZone: e.hideTimeZone,
91
+ hourCycle: e.hourCycle,
92
+ shouldForceLeadingZeros: e.shouldForceLeadingZeros,
93
+ granularity: e.granularity,
94
+ isDisabled: e.isDisabled,
95
+ isReadOnly: e.isReadOnly,
96
+ isRequired: e.isRequired,
97
+ validationBehavior: e.validationBehavior,
98
+ // DatePicker owns the validation state for the date field.
99
+ [ue]: a,
100
+ autoFocus: e.autoFocus,
101
+ name: e.name
102
+ },
103
+ descriptionProps: k,
104
+ errorMessageProps: F,
105
+ buttonProps: {
106
+ ...T,
107
+ id: f,
108
+ "aria-haspopup": "dialog",
109
+ "aria-label": s.format("calendar"),
110
+ "aria-labelledby": `${f} ${C}`,
111
+ "aria-describedby": I,
112
+ "aria-expanded": a.isOpen,
113
+ isDisabled: e.isDisabled || e.isReadOnly,
114
+ onPress: () => a.setOpen(!0)
115
+ },
116
+ dialogProps: {
117
+ id: u,
118
+ "aria-labelledby": `${f} ${C}`
119
+ },
120
+ calendarProps: {
121
+ autoFocus: !0,
122
+ value: a.dateValue,
123
+ onChange: a.setDateValue,
124
+ minValue: e.minValue,
125
+ maxValue: e.maxValue,
126
+ isDisabled: e.isDisabled,
127
+ isReadOnly: e.isReadOnly,
128
+ isDateUnavailable: e.isDateUnavailable,
129
+ defaultFocusedValue: a.dateValue ? void 0 : e.placeholderValue,
130
+ isInvalid: a.isInvalid,
131
+ errorMessage: typeof e.errorMessage == "function" ? e.errorMessage(a.displayValidation) : e.errorMessage || a.displayValidation.validationErrors.join(" ")
132
+ },
133
+ isInvalid: t,
134
+ validationErrors: l,
135
+ validationDetails: x
136
+ };
137
+ }
138
+ function Pa(e) {
139
+ return e && e.__esModule ? e.default : e;
140
+ }
141
+ function Va(e, a, i) {
142
+ var f, u, c;
143
+ let s = ea(Pa(Ce), "@react-aria/datepicker"), { isInvalid: t, validationErrors: l, validationDetails: x } = a.displayValidation, { labelProps: B, fieldProps: b, descriptionProps: k, errorMessageProps: F } = Qe({
144
+ ...e,
145
+ labelElementType: "span",
146
+ isInvalid: t,
147
+ errorMessage: e.errorMessage || l
148
+ }), R = b["aria-labelledby"] || b.id, { locale: C } = Ye(), v = a.formatValue(C, {
149
+ month: "long"
150
+ }), O = v ? s.format("selectedRangeDescription", {
151
+ startDate: v.start,
152
+ endDate: v.end
153
+ }) : "", d = Xe(O), T = {
154
+ "aria-label": s.format("startDate"),
155
+ "aria-labelledby": R
156
+ }, I = {
157
+ "aria-label": s.format("endDate"),
158
+ "aria-labelledby": R
159
+ }, P = G(), Z = G(), M = Fe(a, i), D = [
160
+ d["aria-describedby"],
161
+ b["aria-describedby"]
162
+ ].filter(Boolean).join(" ") || void 0, y = W(() => Ae(i, {
163
+ // Exclude the button from the focus manager.
164
+ accept: (r) => r.id !== P
165
+ }), [
166
+ i,
167
+ P
168
+ ]), V = {
169
+ [sa]: y,
170
+ [Re]: "presentation",
171
+ "aria-describedby": D,
172
+ placeholderValue: e.placeholderValue,
173
+ hideTimeZone: e.hideTimeZone,
174
+ hourCycle: e.hourCycle,
175
+ granularity: e.granularity,
176
+ shouldForceLeadingZeros: e.shouldForceLeadingZeros,
177
+ isDisabled: e.isDisabled,
178
+ isReadOnly: e.isReadOnly,
179
+ isRequired: e.isRequired,
180
+ validationBehavior: e.validationBehavior
181
+ }, o = ae(e), g = z(!1), { focusWithinProps: E } = He({
182
+ ...e,
183
+ isDisabled: a.isOpen,
184
+ onBlurWithin: (r) => {
185
+ let h = document.getElementById(Z);
186
+ if (!(h != null && h.contains(r.relatedTarget))) {
187
+ var w, K;
188
+ g.current = !1, (w = e.onBlur) === null || w === void 0 || w.call(e, r), (K = e.onFocusChange) === null || K === void 0 || K.call(e, !1);
189
+ }
190
+ },
191
+ onFocusWithin: (r) => {
192
+ if (!g.current) {
193
+ var h, w;
194
+ g.current = !0, (h = e.onFocus) === null || h === void 0 || h.call(e, r), (w = e.onFocusChange) === null || w === void 0 || w.call(e, !0);
195
+ }
196
+ }
197
+ }), p = z(Pe), X = z(Pe);
198
+ var n, m;
199
+ return {
200
+ groupProps: ke(o, M, b, d, E, {
201
+ role: "group",
202
+ "aria-disabled": e.isDisabled || null,
203
+ "aria-describedby": D,
204
+ onKeyDown(r) {
205
+ a.isOpen || e.onKeyDown && e.onKeyDown(r);
206
+ },
207
+ onKeyUp(r) {
208
+ a.isOpen || e.onKeyUp && e.onKeyUp(r);
209
+ }
210
+ }),
211
+ labelProps: {
212
+ ...B,
213
+ onClick: () => {
214
+ y.focusFirst();
215
+ }
216
+ },
217
+ buttonProps: {
218
+ ...d,
219
+ id: P,
220
+ "aria-haspopup": "dialog",
221
+ "aria-label": s.format("calendar"),
222
+ "aria-labelledby": `${P} ${R}`,
223
+ "aria-describedby": D,
224
+ "aria-expanded": a.isOpen,
225
+ isDisabled: e.isDisabled || e.isReadOnly,
226
+ onPress: () => a.setOpen(!0)
227
+ },
228
+ dialogProps: {
229
+ id: Z,
230
+ "aria-labelledby": `${P} ${R}`
231
+ },
232
+ startFieldProps: {
233
+ ...T,
234
+ ...V,
235
+ value: (n = (f = a.value) === null || f === void 0 ? void 0 : f.start) !== null && n !== void 0 ? n : null,
236
+ onChange: (r) => a.setDateTime("start", r),
237
+ autoFocus: e.autoFocus,
238
+ name: e.startName,
239
+ [ue]: {
240
+ realtimeValidation: a.realtimeValidation,
241
+ displayValidation: a.displayValidation,
242
+ updateValidation(r) {
243
+ p.current = r, a.updateValidation(Ve(r, X.current));
244
+ },
245
+ resetValidation: a.resetValidation,
246
+ commitValidation: a.commitValidation
247
+ }
248
+ },
249
+ endFieldProps: {
250
+ ...I,
251
+ ...V,
252
+ value: (m = (u = a.value) === null || u === void 0 ? void 0 : u.end) !== null && m !== void 0 ? m : null,
253
+ onChange: (r) => a.setDateTime("end", r),
254
+ name: e.endName,
255
+ [ue]: {
256
+ realtimeValidation: a.realtimeValidation,
257
+ displayValidation: a.displayValidation,
258
+ updateValidation(r) {
259
+ X.current = r, a.updateValidation(Ve(p.current, r));
260
+ },
261
+ resetValidation: a.resetValidation,
262
+ commitValidation: a.commitValidation
263
+ }
264
+ },
265
+ descriptionProps: k,
266
+ errorMessageProps: F,
267
+ calendarProps: {
268
+ autoFocus: !0,
269
+ value: !((c = a.dateRange) === null || c === void 0) && c.start && a.dateRange.end ? a.dateRange : null,
270
+ onChange: a.setDateRange,
271
+ minValue: e.minValue,
272
+ maxValue: e.maxValue,
273
+ isDisabled: e.isDisabled,
274
+ isReadOnly: e.isReadOnly,
275
+ isDateUnavailable: e.isDateUnavailable,
276
+ allowsNonContiguousRanges: e.allowsNonContiguousRanges,
277
+ defaultFocusedValue: a.dateRange ? void 0 : e.placeholderValue,
278
+ isInvalid: a.isInvalid,
279
+ errorMessage: typeof e.errorMessage == "function" ? e.errorMessage(a.displayValidation) : e.errorMessage || a.displayValidation.validationErrors.join(" ")
280
+ },
281
+ isInvalid: t,
282
+ validationErrors: l,
283
+ validationDetails: x
284
+ };
285
+ }
286
+ function Da(e) {
287
+ let a = je(e), [i, f] = Ge(e.value, e.defaultValue || null, e.onChange), u = i || e.placeholderValue || null, [c, s] = Oe(u, e.granularity), t = i != null ? i.toDate(s ?? "UTC") : null, l = c === "hour" || c === "minute" || c === "second";
288
+ var x;
289
+ let B = (x = e.shouldCloseOnSelect) !== null && x !== void 0 ? x : !0, [b, k] = L(null), [F, R] = L(null);
290
+ if (i && (b = i, "hour" in i && (F = i)), u && !(c in u)) throw new Error("Invalid granularity " + c + " for value " + u.toString());
291
+ let C = (i == null ? void 0 : i.calendar.identifier) === "gregory" && i.era === "BC", v = W(() => ({
292
+ granularity: c,
293
+ timeZone: s,
294
+ hideTimeZone: e.hideTimeZone,
295
+ hourCycle: e.hourCycle,
296
+ shouldForceLeadingZeros: e.shouldForceLeadingZeros,
297
+ showEra: C
298
+ }), [
299
+ c,
300
+ e.hourCycle,
301
+ e.shouldForceLeadingZeros,
302
+ s,
303
+ e.hideTimeZone,
304
+ C
305
+ ]), { minValue: O, maxValue: d, isDateUnavailable: T } = e, I = W(() => ua(i, O, d, T, v), [
306
+ i,
307
+ O,
308
+ d,
309
+ T,
310
+ v
311
+ ]), P = qe({
312
+ ...e,
313
+ value: i,
314
+ builtinValidation: I
315
+ }), Z = P.displayValidation.isInvalid, M = e.validationState || (Z ? "invalid" : null), D = (o, g) => {
316
+ f("timeZone" in g ? g.set(se(o)) : oe(o, g)), k(null), R(null), P.commitValidation();
317
+ };
318
+ return {
319
+ ...P,
320
+ value: i,
321
+ setValue: f,
322
+ dateValue: b,
323
+ timeValue: F,
324
+ setDateValue: (o) => {
325
+ let g = typeof B == "function" ? B() : B;
326
+ l ? F || g ? D(o, F || j(e.defaultValue || e.placeholderValue)) : k(o) : (f(o), P.commitValidation()), g && a.setOpen(!1);
327
+ },
328
+ setTimeValue: (o) => {
329
+ b && o ? D(b, o) : R(o);
330
+ },
331
+ granularity: c,
332
+ hasTime: l,
333
+ ...a,
334
+ setOpen(o) {
335
+ !o && !i && b && l && D(b, F || j(e.defaultValue || e.placeholderValue)), a.setOpen(o);
336
+ },
337
+ validationState: M,
338
+ isInvalid: Z,
339
+ formatValue(o, g) {
340
+ if (!t) return "";
341
+ let E = q(g, v);
342
+ return new A(o, E).format(t);
343
+ },
344
+ getDateFormatter(o, g) {
345
+ let E = {
346
+ ...v,
347
+ ...g
348
+ }, p = q({}, E);
349
+ return new A(o, p);
350
+ }
351
+ };
352
+ }
353
+ function xa(e) {
354
+ var a, i;
355
+ let f = je(e), [u, c] = Ge(e.value, e.defaultValue || null, e.onChange), [s, t] = L(() => u || {
356
+ start: null,
357
+ end: null
358
+ });
359
+ u == null && s.start && s.end && (s = {
360
+ start: null,
361
+ end: null
362
+ }, t(s));
363
+ let l = u || s, x = (n) => {
364
+ t(n || {
365
+ start: null,
366
+ end: null
367
+ }), U(n) ? c(n) : c(null);
368
+ }, B = (l == null ? void 0 : l.start) || (l == null ? void 0 : l.end) || e.placeholderValue || null, [b, k] = Oe(B, e.granularity), F = b === "hour" || b === "minute" || b === "second";
369
+ var R;
370
+ let C = (R = e.shouldCloseOnSelect) !== null && R !== void 0 ? R : !0, [v, O] = L(null), [d, T] = L(null);
371
+ l && U(l) && (v = l, "hour" in l.start && (d = l));
372
+ let I = (n, m) => {
373
+ x({
374
+ start: "timeZone" in m.start ? m.start.set(se(n.start)) : oe(n.start, m.start),
375
+ end: "timeZone" in m.end ? m.end.set(se(n.end)) : oe(n.end, m.end)
376
+ }), O(null), T(null), E.commitValidation();
377
+ }, P = (n) => {
378
+ let m = typeof C == "function" ? C() : C;
379
+ F ? U(n) && (m || d != null && d.start && (d != null && d.end)) ? I(n, {
380
+ start: (d == null ? void 0 : d.start) || j(e.placeholderValue),
381
+ end: (d == null ? void 0 : d.end) || j(e.placeholderValue)
382
+ }) : O(n) : U(n) ? (x(n), E.commitValidation()) : O(n), m && f.setOpen(!1);
383
+ }, Z = (n) => {
384
+ U(v) && U(n) ? I(v, n) : T(n);
385
+ }, M = (l == null || (a = l.start) === null || a === void 0 ? void 0 : a.calendar.identifier) === "gregory" && l.start.era === "BC" || (l == null || (i = l.end) === null || i === void 0 ? void 0 : i.calendar.identifier) === "gregory" && l.end.era === "BC", D = W(() => ({
386
+ granularity: b,
387
+ timeZone: k,
388
+ hideTimeZone: e.hideTimeZone,
389
+ hourCycle: e.hourCycle,
390
+ shouldForceLeadingZeros: e.shouldForceLeadingZeros,
391
+ showEra: M
392
+ }), [
393
+ b,
394
+ e.hourCycle,
395
+ e.shouldForceLeadingZeros,
396
+ k,
397
+ e.hideTimeZone,
398
+ M
399
+ ]), { minValue: y, maxValue: V, isDateUnavailable: o } = e, g = W(() => ca(l, y, V, o, D), [
400
+ l,
401
+ y,
402
+ V,
403
+ o,
404
+ D
405
+ ]), E = qe({
406
+ ...e,
407
+ value: u,
408
+ name: W(() => [
409
+ e.startName,
410
+ e.endName
411
+ ].filter((n) => n != null), [
412
+ e.startName,
413
+ e.endName
414
+ ]),
415
+ builtinValidation: g
416
+ }), p = E.displayValidation.isInvalid, X = e.validationState || (p ? "invalid" : null);
417
+ return {
418
+ ...E,
419
+ value: l,
420
+ setValue: x,
421
+ dateRange: v,
422
+ timeRange: d,
423
+ granularity: b,
424
+ hasTime: F,
425
+ setDate(n, m) {
426
+ var r, h;
427
+ P(n === "start" ? {
428
+ start: m,
429
+ end: (r = v == null ? void 0 : v.end) !== null && r !== void 0 ? r : null
430
+ } : {
431
+ start: (h = v == null ? void 0 : v.start) !== null && h !== void 0 ? h : null,
432
+ end: m
433
+ });
434
+ },
435
+ setTime(n, m) {
436
+ var r, h;
437
+ Z(n === "start" ? {
438
+ start: m,
439
+ end: (r = d == null ? void 0 : d.end) !== null && r !== void 0 ? r : null
440
+ } : {
441
+ start: (h = d == null ? void 0 : d.start) !== null && h !== void 0 ? h : null,
442
+ end: m
443
+ });
444
+ },
445
+ setDateTime(n, m) {
446
+ var r, h;
447
+ x(n === "start" ? {
448
+ start: m,
449
+ end: (r = l == null ? void 0 : l.end) !== null && r !== void 0 ? r : null
450
+ } : {
451
+ start: (h = l == null ? void 0 : l.start) !== null && h !== void 0 ? h : null,
452
+ end: m
453
+ });
454
+ },
455
+ setDateRange: P,
456
+ setTimeRange: Z,
457
+ ...f,
458
+ setOpen(n) {
459
+ !n && !(l != null && l.start && (l != null && l.end)) && U(v) && F && I(v, {
460
+ start: (d == null ? void 0 : d.start) || j(e.placeholderValue),
461
+ end: (d == null ? void 0 : d.end) || j(e.placeholderValue)
462
+ }), f.setOpen(n);
463
+ },
464
+ validationState: X,
465
+ isInvalid: p,
466
+ formatValue(n, m) {
467
+ if (!l || !l.start || !l.end) return null;
468
+ let r = "timeZone" in l.start ? l.start.timeZone : void 0, h = e.granularity || (l.start && "minute" in l.start ? "minute" : "day"), w = "timeZone" in l.end ? l.end.timeZone : void 0, K = e.granularity || (l.end && "minute" in l.end ? "minute" : "day"), ta = q(m, {
469
+ granularity: h,
470
+ timeZone: r,
471
+ hideTimeZone: e.hideTimeZone,
472
+ hourCycle: e.hourCycle,
473
+ showEra: l.start.calendar.identifier === "gregory" && l.start.era === "BC" || l.end.calendar.identifier === "gregory" && l.end.era === "BC"
474
+ }), $e = l.start.toDate(r || "UTC"), he = l.end.toDate(w || "UTC"), le = new A(n, ta), ie;
475
+ if (r === w && h === K && l.start.compare(l.end) !== 0) {
476
+ try {
477
+ let S = le.formatRangeToParts($e, he), te = -1;
478
+ for (let _ = 0; _ < S.length; _++) {
479
+ let de = S[_];
480
+ if (de.source === "shared" && de.type === "literal") te = _;
481
+ else if (de.source === "endRange") break;
482
+ }
483
+ let ge = "", ye = "";
484
+ for (let _ = 0; _ < S.length; _++)
485
+ _ < te ? ge += S[_].value : _ > te && (ye += S[_].value);
486
+ return {
487
+ start: ge,
488
+ end: ye
489
+ };
490
+ } catch {
491
+ }
492
+ ie = le;
493
+ } else {
494
+ let S = q(m, {
495
+ granularity: K,
496
+ timeZone: w,
497
+ hideTimeZone: e.hideTimeZone,
498
+ hourCycle: e.hourCycle
499
+ });
500
+ ie = new A(n, S);
501
+ }
502
+ return {
503
+ start: le.format($e),
504
+ end: ie.format(he)
505
+ };
506
+ },
507
+ getDateFormatter(n, m) {
508
+ let r = {
509
+ ...D,
510
+ ...m
511
+ }, h = q({}, r);
512
+ return new A(n, h);
513
+ }
514
+ };
515
+ }
516
+ function U(e) {
517
+ return (e == null ? void 0 : e.start) != null && e.end != null;
518
+ }
519
+ const Fa = /* @__PURE__ */ ee(null), Ra = /* @__PURE__ */ ee(null), Ca = /* @__PURE__ */ ee(null), Oa = /* @__PURE__ */ ee(null), aa = [
520
+ ve,
521
+ fe,
522
+ be,
523
+ me
524
+ ], Ta = /* @__PURE__ */ De(function(a, i) {
525
+ [a, i] = we(a, i, Fa);
526
+ let { validationBehavior: f } = _e(Ke) || {};
527
+ var u, c;
528
+ let s = (c = (u = a.validationBehavior) !== null && u !== void 0 ? u : f) !== null && c !== void 0 ? c : "native", t = Da({
529
+ ...a,
530
+ validationBehavior: s
531
+ }), l = z(null), [x, B] = Ee(!a["aria-label"] && !a["aria-labelledby"]), { groupProps: b, labelProps: k, fieldProps: F, buttonProps: R, dialogProps: C, calendarProps: v, descriptionProps: O, errorMessageProps: d, ...T } = ya({
532
+ ...pe(a),
533
+ label: B,
534
+ validationBehavior: s
535
+ }, t, l), [I, P] = L(null), Z = xe(() => {
536
+ l.current && P(l.current.offsetWidth + "px");
537
+ }, []);
538
+ ze({
539
+ ref: l,
540
+ onResize: Z
541
+ });
542
+ let { focusProps: M, isFocused: D, isFocusVisible: y } = Je({
543
+ within: !0
544
+ }), V = Se({
545
+ ...a,
546
+ values: {
547
+ state: t,
548
+ isFocusWithin: D,
549
+ isFocusVisible: y,
550
+ isDisabled: a.isDisabled || !1,
551
+ isInvalid: t.isInvalid,
552
+ isOpen: t.isOpen
553
+ },
554
+ defaultClassName: "react-aria-DatePicker"
555
+ }), o = ae(a);
556
+ return delete o.id, /* @__PURE__ */ J.createElement(Ue, {
557
+ values: [
558
+ [
559
+ Ca,
560
+ t
561
+ ],
562
+ [
563
+ ve,
564
+ {
565
+ ...b,
566
+ ref: l,
567
+ isInvalid: t.isInvalid
568
+ }
569
+ ],
570
+ [
571
+ Te,
572
+ F
573
+ ],
574
+ [
575
+ fe,
576
+ {
577
+ ...R,
578
+ isPressed: t.isOpen
579
+ }
580
+ ],
581
+ [
582
+ be,
583
+ {
584
+ ...k,
585
+ ref: x,
586
+ elementType: "span"
587
+ }
588
+ ],
589
+ [
590
+ da,
591
+ v
592
+ ],
593
+ [
594
+ Ne,
595
+ t
596
+ ],
597
+ [
598
+ We,
599
+ {
600
+ trigger: "DatePicker",
601
+ triggerRef: l,
602
+ placement: "bottom start",
603
+ style: {
604
+ "--trigger-width": I
605
+ },
606
+ clearContexts: aa
607
+ }
608
+ ],
609
+ [
610
+ Le,
611
+ C
612
+ ],
613
+ [
614
+ me,
615
+ {
616
+ slots: {
617
+ description: O,
618
+ errorMessage: d
619
+ }
620
+ }
621
+ ],
622
+ [
623
+ Ie,
624
+ T
625
+ ]
626
+ ]
627
+ }, /* @__PURE__ */ J.createElement("div", {
628
+ ...M,
629
+ ...o,
630
+ ...V,
631
+ ref: i,
632
+ slot: a.slot || void 0,
633
+ "data-focus-within": D || void 0,
634
+ "data-invalid": t.isInvalid || void 0,
635
+ "data-focus-visible": y || void 0,
636
+ "data-disabled": a.isDisabled || void 0,
637
+ "data-open": t.isOpen || void 0
638
+ }));
639
+ }), Ia = /* @__PURE__ */ De(function(a, i) {
640
+ [a, i] = we(a, i, Ra);
641
+ let { validationBehavior: f } = _e(Ke) || {};
642
+ var u, c;
643
+ let s = (c = (u = a.validationBehavior) !== null && u !== void 0 ? u : f) !== null && c !== void 0 ? c : "native", t = xa({
644
+ ...a,
645
+ validationBehavior: s
646
+ }), l = z(null), [x, B] = Ee(!a["aria-label"] && !a["aria-labelledby"]), { groupProps: b, labelProps: k, startFieldProps: F, endFieldProps: R, buttonProps: C, dialogProps: v, calendarProps: O, descriptionProps: d, errorMessageProps: T, ...I } = Va({
647
+ ...pe(a),
648
+ label: B,
649
+ validationBehavior: s
650
+ }, t, l), [P, Z] = L(null), M = xe(() => {
651
+ l.current && Z(l.current.offsetWidth + "px");
652
+ }, []);
653
+ ze({
654
+ ref: l,
655
+ onResize: M
656
+ });
657
+ let { focusProps: D, isFocused: y, isFocusVisible: V } = Je({
658
+ within: !0
659
+ }), o = Se({
660
+ ...a,
661
+ values: {
662
+ state: t,
663
+ isFocusWithin: y,
664
+ isFocusVisible: V,
665
+ isDisabled: a.isDisabled || !1,
666
+ isInvalid: t.isInvalid,
667
+ isOpen: t.isOpen
668
+ },
669
+ defaultClassName: "react-aria-DateRangePicker"
670
+ }), g = ae(a);
671
+ return delete g.id, /* @__PURE__ */ J.createElement(Ue, {
672
+ values: [
673
+ [
674
+ Oa,
675
+ t
676
+ ],
677
+ [
678
+ ve,
679
+ {
680
+ ...b,
681
+ ref: l,
682
+ isInvalid: t.isInvalid
683
+ }
684
+ ],
685
+ [
686
+ fe,
687
+ {
688
+ ...C,
689
+ isPressed: t.isOpen
690
+ }
691
+ ],
692
+ [
693
+ be,
694
+ {
695
+ ...k,
696
+ ref: x,
697
+ elementType: "span"
698
+ }
699
+ ],
700
+ [
701
+ na,
702
+ O
703
+ ],
704
+ [
705
+ Ne,
706
+ t
707
+ ],
708
+ [
709
+ We,
710
+ {
711
+ trigger: "DateRangePicker",
712
+ triggerRef: l,
713
+ placement: "bottom start",
714
+ style: {
715
+ "--trigger-width": P
716
+ },
717
+ clearContexts: aa
718
+ }
719
+ ],
720
+ [
721
+ Le,
722
+ v
723
+ ],
724
+ [
725
+ Te,
726
+ {
727
+ slots: {
728
+ start: F,
729
+ end: R
730
+ }
731
+ }
732
+ ],
733
+ [
734
+ me,
735
+ {
736
+ slots: {
737
+ description: d,
738
+ errorMessage: T
739
+ }
740
+ }
741
+ ],
742
+ [
743
+ Ie,
744
+ I
745
+ ]
746
+ ]
747
+ }, /* @__PURE__ */ J.createElement("div", {
748
+ ...D,
749
+ ...g,
750
+ ...o,
751
+ ref: i,
752
+ slot: a.slot || void 0,
753
+ "data-focus-within": y || void 0,
754
+ "data-invalid": t.isInvalid || void 0,
755
+ "data-focus-visible": V || void 0,
756
+ "data-disabled": a.isDisabled || void 0,
757
+ "data-open": t.isOpen || void 0
758
+ }));
759
+ });
760
+ /**
761
+ * @license lucide-react v0.453.0 - ISC
762
+ *
763
+ * This source code is licensed under the ISC license.
764
+ * See the LICENSE file in the root directory of this source tree.
765
+ */
766
+ const Za = ha("CalendarDays", [
767
+ ["path", { d: "M8 2v4", key: "1cmpym" }],
768
+ ["path", { d: "M16 2v4", key: "4m81vk" }],
769
+ ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
770
+ ["path", { d: "M3 10h18", key: "8toen8" }],
771
+ ["path", { d: "M8 14h.01", key: "6423bh" }],
772
+ ["path", { d: "M12 14h.01", key: "1etili" }],
773
+ ["path", { d: "M16 14h.01", key: "1gbofw" }],
774
+ ["path", { d: "M8 18h.01", key: "lrp35t" }],
775
+ ["path", { d: "M12 18h.01", key: "mhygvu" }],
776
+ ["path", { d: "M16 18h.01", key: "kzsmim" }]
777
+ ]), Ma = "_datePicker_1ro4s_4", Ba = "_inputField_1ro4s_11", ka = "_medium_1ro4s_23", wa = "_calendarButton_1ro4s_50", _a = "_dialog_1ro4s_97", N = {
778
+ datePicker: Ma,
779
+ inputField: Ba,
780
+ medium: ka,
781
+ calendarButton: wa,
782
+ dialog: _a
783
+ }, la = ({
784
+ children: e,
785
+ isDisabled: a,
786
+ isInvalid: i,
787
+ size: f = "large"
788
+ }) => /* @__PURE__ */ H(
789
+ $a,
790
+ {
791
+ className: Q(N.inputField, {
792
+ [N.medium]: f === "medium"
793
+ }),
794
+ children: [
795
+ e,
796
+ /* @__PURE__ */ $(
797
+ ba,
798
+ {
799
+ className: Q(N.calendarButton, {
800
+ [N.medium]: f === "medium"
801
+ }),
802
+ "data-invalid": i || void 0,
803
+ isDisabled: a,
804
+ children: /* @__PURE__ */ $(
805
+ Za,
806
+ {
807
+ "aria-hidden": !0,
808
+ size: 20
809
+ }
810
+ )
811
+ }
812
+ )
813
+ ]
814
+ }
815
+ ), ia = ce.forwardRef(({ children: e }, a) => /* @__PURE__ */ $(
816
+ va,
817
+ {
818
+ UNSTABLE_portalContainer: typeof a != "function" && (a == null ? void 0 : a.current) || void 0,
819
+ children: /* @__PURE__ */ $(ma, { className: N.dialog, children: e })
820
+ }
821
+ )), ol = ({
822
+ className: e,
823
+ description: a,
824
+ errorMessage: i,
825
+ errorPosition: f = "top",
826
+ label: u,
827
+ popover: c,
828
+ ...s
829
+ }) => {
830
+ const t = ce.useRef(null);
831
+ return /* @__PURE__ */ H(
832
+ Ta,
833
+ {
834
+ className: Q(N.datePicker, e),
835
+ ref: t,
836
+ ...s,
837
+ children: [
838
+ /* @__PURE__ */ $(Ze, { popover: c, children: u && /* @__PURE__ */ $(Me, { children: u }) }),
839
+ a && /* @__PURE__ */ $(Be, { slot: "description", children: a }),
840
+ f === "top" && /* @__PURE__ */ $(Y, { children: i }),
841
+ /* @__PURE__ */ $(la, { ...s, children: /* @__PURE__ */ $(ne, { children: (l) => /* @__PURE__ */ $(re, { segment: l }) }) }),
842
+ f === "bottom" && /* @__PURE__ */ $(Y, { children: i }),
843
+ /* @__PURE__ */ $(ia, { ref: t, children: /* @__PURE__ */ $(ra, {}) })
844
+ ]
845
+ }
846
+ );
847
+ }, sl = ({
848
+ className: e,
849
+ description: a,
850
+ errorMessage: i,
851
+ errorPosition: f = "top",
852
+ label: u,
853
+ popover: c,
854
+ ...s
855
+ }) => {
856
+ const t = ce.useRef(null);
857
+ return /* @__PURE__ */ H(
858
+ Ia,
859
+ {
860
+ className: Q(N.datePicker, e),
861
+ ref: t,
862
+ ...s,
863
+ children: [
864
+ /* @__PURE__ */ $(Ze, { popover: c, children: u && /* @__PURE__ */ $(Me, { children: u }) }),
865
+ a && /* @__PURE__ */ $(Be, { slot: "description", children: a }),
866
+ f === "top" && /* @__PURE__ */ $(Y, { children: i }),
867
+ /* @__PURE__ */ H(la, { ...s, children: [
868
+ /* @__PURE__ */ $(ne, { slot: "start", children: (l) => /* @__PURE__ */ $(re, { segment: l }) }),
869
+ /* @__PURE__ */ $(fa, {}),
870
+ /* @__PURE__ */ $(ne, { slot: "end", children: (l) => /* @__PURE__ */ $(re, { segment: l }) })
871
+ ] }),
872
+ f === "bottom" && /* @__PURE__ */ $(Y, { children: i }),
873
+ /* @__PURE__ */ $(ia, { ref: t, children: /* @__PURE__ */ $(oa, {}) })
874
+ ]
875
+ }
876
+ );
877
+ };
878
+ export {
879
+ ol as D,
880
+ sl as a
881
+ };