@midas-ds/components 10.2.0 → 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 (341) hide show
  1. package/{AccordionItem-Z_c9MpAM.cjs → AccordionItem-BGWiWjxA.cjs} +1 -1
  2. package/{AccordionItem-DZT76sWu.js → AccordionItem-ChHpW8EW.js} +11 -11
  3. package/{BadgeContainer-D3RtqcPF.js → BadgeContainer-DM8TdyMT.js} +4 -4
  4. package/{BadgeContainer-DeUgqGqb.cjs → BadgeContainer-I1XA3OCl.cjs} +1 -1
  5. package/{Breadcrumbs-CmZXtTiS.js → Breadcrumbs-CwDUNIqF.js} +34 -34
  6. package/{Breadcrumbs-Cx09jwZZ.cjs → Breadcrumbs-DtjJ1UmU.cjs} +1 -1
  7. package/{Button-iSiWjocA.cjs → Button-BoJl6JGM.cjs} +1 -1
  8. package/{Button-CbFRzRrF.js → Button-Csih3v23.js} +2 -2
  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/CHANGELOG.md +20 -0
  14. package/Card-0G0mj9q5.cjs +1 -0
  15. package/{Card-CaKKKv9k.js → Card-yrtGzt70.js} +5 -5
  16. package/CharacterCounter-BL_nZHya.js +22 -0
  17. package/{CharacterCounter-CrY8QRuY.cjs → CharacterCounter-CHcTDHO-.cjs} +1 -1
  18. package/Checkbox-5HINZdGu.js +263 -0
  19. package/Checkbox-DqcPg5hz.cjs +1 -0
  20. package/CheckboxGroup-BBrSMuDY.cjs +1 -0
  21. package/CheckboxGroup-CLgixk2p.js +243 -0
  22. package/{Collection-Csx3L9gh.cjs → Collection-BIDsXNhi.cjs} +1 -1
  23. package/{Collection-C5ONNBqd.js → Collection-Brgjpkne.js} +4 -4
  24. package/{ColorSchemeSwitch-CbAWIJCg.js → ColorSchemeSwitch-BpzQ7g0b.js} +9 -9
  25. package/{ColorSchemeSwitch-JRrCyYVv.cjs → ColorSchemeSwitch-C-qWuqkU.cjs} +2 -2
  26. package/{ComboBox-BCaqPEIH.js → ComboBox-CVDyp2a-.js} +331 -327
  27. package/ComboBox-CWJUg9Xx.cjs +1 -0
  28. package/DateField-DeDhiYnW.cjs +1 -0
  29. package/DateField-DhU3q-rG.js +47 -0
  30. package/DateInputDivider-ADvOavHw.cjs +1 -0
  31. package/{DateInputDivider-Dx8n1Lxp.js → DateInputDivider-CF4xWsMT.js} +71 -75
  32. package/DateRangePicker-BsAHhy99.cjs +6 -0
  33. package/{DateRangePicker-BmBvwqo6.js → DateRangePicker-ziD1_k1W.js} +194 -194
  34. package/Dialog-B8GTYbvu.cjs +1 -0
  35. package/{Dialog-CwTEAujZ.cjs → Dialog-BOrYdX50.cjs} +1 -1
  36. package/{Dialog-Bxx8cBEq.js → Dialog-CXNu48AC.js} +25 -25
  37. package/{Dialog-CYxThuMl.js → Dialog-D14MbJ7o.js} +564 -540
  38. package/{DragAndDrop-HvycSrKY.cjs → DragAndDrop-DNth776R.cjs} +1 -1
  39. package/{DragAndDrop-CSwmPhxC.js → DragAndDrop-o3ruz_SR.js} +8 -8
  40. package/{Dropdown-CaGon9OR.cjs → Dropdown-CJ6My6EI.cjs} +1 -1
  41. package/{Dropdown-nkjzsVYX.js → Dropdown-Df58j43I.js} +2 -2
  42. package/FieldError-CAcjosk_.js +46 -0
  43. package/FieldError-CKBb2-mp.cjs +1 -0
  44. package/{FileUpload-DYRZ0M9F.cjs → FileUpload-CxCOtyB9.cjs} +2 -2
  45. package/{FileUpload-ULwcYDxs.js → FileUpload-D6qoEAjn.js} +149 -148
  46. package/FocusScope-5c9SVBcR.cjs +1 -0
  47. package/{FocusScope-DwIqdYpQ.js → FocusScope-CxkURfoc.js} +16 -16
  48. package/{Group-CeSsSQVC.js → Group-B6EslsHZ.js} +5 -5
  49. package/{Heading-BY5-QN4S.js → Heading-BFtiin0g.js} +7 -7
  50. package/{Heading-DoJAtYZf.cjs → Heading-mHhCbGjY.cjs} +1 -1
  51. package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
  52. package/{InfoBanner-CVIBFSWx.js → InfoBanner-BLM-TJJ6.js} +15 -14
  53. package/InfoBanner-C2kTIsrB.cjs +1 -0
  54. package/{Input-D8Ku_FQz.js → Input-BTzwcf72.js} +10 -10
  55. package/Label-7Ybb99CE.cjs +1 -0
  56. package/Label-BwJrdqEE.js +70 -0
  57. package/{Layout-BWeHHnqU.cjs → Layout-1g6bMH62.cjs} +2 -2
  58. package/{Layout-CCt_2L1k.js → Layout-Ey8flY7E.js} +9 -9
  59. package/{Link-DsnCtNeI.cjs → Link-B88l_oaE.cjs} +1 -1
  60. package/{Link-SHMbeyIP.cjs → Link-BQhauBuw.cjs} +1 -1
  61. package/{Link-uFowN4qv.js → Link-DX5BbBnn.js} +1 -1
  62. package/{Link-B-nus-FT.js → Link-yNO2-sqx.js} +17 -17
  63. package/LinkButton-CBpGLETx.cjs +6 -0
  64. package/LinkButton-o6uS1XsR.js +69 -0
  65. package/ListBox-DP9M4H6R.cjs +1 -0
  66. package/{ListBox-DOi_y_Lt.js → ListBox-GnVK_Pdq.js} +72 -73
  67. package/{ListBoxButton-CFeNhJhr.cjs → ListBoxButton-DPBrtXyv.cjs} +1 -1
  68. package/{ListBoxButton-O6zN3P4W.js → ListBoxButton-D_J3jlP0.js} +1 -1
  69. package/{ListBoxSection-DGCP6xpf.cjs → ListBoxSection-BGaigBnG.cjs} +1 -1
  70. package/{ListBoxSection-C1aLKL9p.js → ListBoxSection-C0BGnpB4.js} +9 -9
  71. package/{ListKeyboardDelegate-DNOzQ8nc.js → ListKeyboardDelegate-DNI8GQtX.js} +24 -15
  72. package/ListKeyboardDelegate-DTg9h4v6.cjs +1 -0
  73. package/{OverlayArrow-DorA4Rbr.js → OverlayArrow-CDLXPTew.js} +44 -44
  74. package/Popover-BGGXeD54.js +38 -0
  75. package/Popover-CqNWzPf-.cjs +1 -0
  76. package/{ProgressBar-gmAzSsrz.js → ProgressBar-DMSg-Prr.js} +2 -2
  77. package/ProgressBar-Jbg28j2a.cjs +1 -0
  78. package/Radio-BwqrdhQE.cjs +1 -0
  79. package/{Radio-_ukSkxPT.js → Radio-Cz29wPXd.js} +71 -71
  80. package/RangeCalendar-BehUaydF.cjs +11 -0
  81. package/{RangeCalendar-uXwoBL-O.js → RangeCalendar-RAlAHlNL.js} +25 -27
  82. package/{SearchField-6yBGiojX.cjs → SearchField-CxMwDeUM.cjs} +2 -2
  83. package/{SearchField-DYl2uo7o.js → SearchField-IlvZ3Kh6.js} +11 -11
  84. package/Select-2q1iSzAX.cjs +1 -0
  85. package/{Select-PvCqY7Lp.js → Select-BVQZtoi9.js} +232 -232
  86. package/{SelectionManager-6H88Cv6B.js → SelectionManager-B4ORduja.js} +26 -27
  87. package/SelectionManager-CwYux2h3.cjs +1 -0
  88. package/{Separator-LYnFqh4L.js → Separator-Cu9fYKUM.js} +19 -20
  89. package/Separator-DECIYLtZ.cjs +1 -0
  90. package/{Spinner-DAJtfxqJ.cjs → Spinner-P35rvvsl.cjs} +1 -1
  91. package/Table-B40CGLT-.cjs +16 -0
  92. package/{Table-B_N7wUmA.js → Table-F4oYBtUM.js} +69 -73
  93. package/{Tabs-Ct6D83aR.js → Tabs-B4oZJkZG.js} +39 -39
  94. package/{Tabs-Dtcl2oK2.cjs → Tabs-DA2qXhzb.cjs} +1 -1
  95. package/Tag-DPAGmcMK.cjs +1 -0
  96. package/{Tag-g6HN-YCv.js → Tag-Du7GvSv2.js} +151 -154
  97. package/Text-BoXuUVVH.js +15 -0
  98. package/{Text-BN-g1iWi.js → Text-jWWg0B20.js} +1 -1
  99. package/TextArea-C7JZ_pQd.cjs +1 -0
  100. package/TextArea-XeBCSyzl.js +191 -0
  101. package/TextField-BgNdhZi_.cjs +1 -0
  102. package/{TextField-DBaRuNj7.js → TextField-C-hTPukq.js} +16 -16
  103. package/Toast-AbDA1BOs.cjs +1 -0
  104. package/{Toast-CjpldAI8.js → Toast-Btg21Xge.js} +32 -31
  105. package/{ToggleButtonGroup-Ceh9_yBM.js → ToggleButtonGroup-B5yz1tm2.js} +7 -7
  106. package/{ToggleButtonGroup-BuU_6dYe.cjs → ToggleButtonGroup-BFDoj0P6.cjs} +1 -1
  107. package/{Tooltip-BAIjaYax.js → Tooltip-CMLs7WMw.js} +33 -33
  108. package/{Tooltip-CiWg4zIC.cjs → Tooltip-DeBuBKhS.cjs} +1 -1
  109. package/{VisuallyHidden-CtXvK_Tw.cjs → VisuallyHidden-CLWHbz2n.cjs} +1 -1
  110. package/{VisuallyHidden-D-4z1VgU.js → VisuallyHidden-ZCYf65q4.js} +8 -8
  111. package/accordion/index.cjs +1 -1
  112. package/accordion/index.js +1 -1
  113. package/{arrow-right-Cw48o2oW.cjs → arrow-right-QJ2gXPKQ.cjs} +1 -1
  114. package/assets/Button.css +1 -1
  115. package/assets/Label.css +1 -1
  116. package/assets/LinkButton.css +1 -1
  117. package/assets/Popover.css +1 -0
  118. package/badge/index.cjs +1 -1
  119. package/badge/index.js +1 -1
  120. package/breadcrumbs/index.cjs +1 -1
  121. package/breadcrumbs/index.js +1 -1
  122. package/button/index.cjs +1 -1
  123. package/button/index.js +1 -1
  124. package/calendar/index.cjs +1 -1
  125. package/calendar/index.js +1 -1
  126. package/card/index.cjs +1 -1
  127. package/card/index.js +1 -1
  128. package/character-counter/index.cjs +1 -1
  129. package/character-counter/index.js +1 -1
  130. package/{check-Dw9c62O4.cjs → check-D_KoootC.cjs} +1 -1
  131. package/checkbox/Checkbox.d.ts +2 -2
  132. package/checkbox/CheckboxGroup.d.ts +8 -8
  133. package/checkbox/CheckboxGroupFieldError.d.ts +8 -0
  134. package/checkbox/CheckboxGroupItem.d.ts +3 -0
  135. package/checkbox/CheckboxInner.d.ts +2 -0
  136. package/checkbox/SingleCheckbox.d.ts +3 -0
  137. package/checkbox/context.d.ts +3 -0
  138. package/checkbox/index.cjs +1 -1
  139. package/checkbox/index.d.ts +2 -1
  140. package/checkbox/index.js +2 -2
  141. package/checkbox/intl/translations.json.d.ts +35 -0
  142. package/checkbox/types.d.ts +14 -0
  143. package/checkbox/useSelectAll.d.ts +7 -0
  144. package/{chevron-down-C2E7aZ3N.cjs → chevron-down-jl83cllc.cjs} +1 -1
  145. package/{info-DkzVqB8I.js → circle-check-B9HYcH7Z.js} +4 -16
  146. package/{info-DlzSeKbc.cjs → circle-check-BGo8gML8.cjs} +2 -7
  147. package/color-scheme-switch/index.cjs +1 -1
  148. package/color-scheme-switch/index.js +1 -1
  149. package/combobox/ComboBox.d.ts +3 -1
  150. package/combobox/index.cjs +1 -1
  151. package/combobox/index.js +1 -1
  152. package/{context-B8cn10po.js → context-C81gPYvC.js} +11 -11
  153. package/{createLucideIcon-DAY4oS-S.cjs → createLucideIcon-Cg_wkoIA.cjs} +1 -1
  154. package/date-field/DateField.d.ts +3 -0
  155. package/date-field/index.cjs +1 -1
  156. package/date-field/index.js +2 -2
  157. package/date-picker/DatePicker.d.ts +3 -0
  158. package/date-picker/DateRangePicker.d.ts +3 -0
  159. package/date-picker/index.cjs +1 -1
  160. package/date-picker/index.js +1 -1
  161. package/dropdown/index.cjs +1 -1
  162. package/dropdown/index.js +1 -1
  163. package/field-error/index.cjs +1 -1
  164. package/field-error/index.js +1 -1
  165. package/file-upload/FileUpload.d.ts +3 -0
  166. package/file-upload/index.cjs +1 -1
  167. package/file-upload/index.js +1 -1
  168. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-BhFcYrwL.js} +1 -1
  169. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DDJu9WHU.cjs} +1 -1
  170. package/heading/index.cjs +1 -1
  171. package/heading/index.js +1 -1
  172. package/{index-BSMrH_Du.js → index-CGRFP4CC.js} +7 -7
  173. package/{index-D97L3EBk.cjs → index-Dsz3aiWt.cjs} +2 -2
  174. package/index.cjs +1 -1
  175. package/index.d.ts +1 -0
  176. package/index.js +80 -78
  177. package/inertValue-B3AFhVG4.cjs +1 -0
  178. package/info-BZwphdye.js +15 -0
  179. package/info-CIEIENo6.cjs +6 -0
  180. package/info-banner/index.cjs +1 -1
  181. package/info-banner/index.js +1 -1
  182. package/label/InfoPopover.d.ts +9 -0
  183. package/label/LabelWrapper.d.ts +11 -0
  184. package/label/index.cjs +1 -1
  185. package/label/index.d.ts +1 -0
  186. package/label/index.js +1 -1
  187. package/layout/index.cjs +1 -1
  188. package/layout/index.js +1 -1
  189. package/link/index.cjs +1 -1
  190. package/link/index.js +2 -2
  191. package/link-button/index.cjs +1 -1
  192. package/link-button/index.js +2 -2
  193. package/list-box/index.cjs +1 -1
  194. package/list-box/index.js +2 -2
  195. package/modal/index.cjs +1 -1
  196. package/modal/index.js +2 -2
  197. package/package.json +1 -1
  198. package/popover/Popover.d.ts +7 -0
  199. package/popover/index.cjs +1 -0
  200. package/popover/index.d.ts +1 -0
  201. package/popover/index.js +4 -0
  202. package/progress-bar/index.cjs +1 -1
  203. package/progress-bar/index.js +1 -1
  204. package/radio/Radio.d.ts +3 -0
  205. package/radio/index.cjs +1 -1
  206. package/radio/index.js +1 -1
  207. package/scrollIntoView-C8doLzDd.cjs +1 -0
  208. package/scrollIntoView-Hwb_aaNf.js +87 -0
  209. package/search-field/index.cjs +1 -1
  210. package/search-field/index.js +1 -1
  211. package/select/index.cjs +1 -1
  212. package/select/index.js +1 -1
  213. package/spinner/index.cjs +1 -1
  214. package/{square-arrow-out-up-right-BCAO2eJs.cjs → square-arrow-out-up-right-V4Gd08uI.cjs} +1 -1
  215. package/table/index.cjs +1 -1
  216. package/table/index.js +1 -1
  217. package/tabs/index.cjs +1 -1
  218. package/tabs/index.js +1 -1
  219. package/tag/index.cjs +1 -1
  220. package/tag/index.js +1 -1
  221. package/text/index.js +1 -1
  222. package/textfield/TextFieldBase.d.ts +2 -0
  223. package/textfield/index.cjs +1 -1
  224. package/textfield/index.js +1 -1
  225. package/toast/index.cjs +1 -1
  226. package/toast/index.js +1 -1
  227. package/toggle-button/index.cjs +1 -1
  228. package/toggle-button/index.js +1 -1
  229. package/tooltip/index.cjs +1 -1
  230. package/tooltip/index.js +1 -1
  231. package/{triangle-alert-C0lvfCYH.cjs → triangle-alert-DJW8U7jL.cjs} +1 -1
  232. package/{useButton-C-Lq7CNY.js → useButton-B8dB9sot.js} +6 -6
  233. package/{useButton-B1Fa-6qE.cjs → useButton-cpNi-fY4.cjs} +1 -1
  234. package/{useDateFormatter-g2maMTGH.cjs → useDateFormatter-CnxoJ4jF.cjs} +1 -1
  235. package/{useDateFormatter-C53Uxdli.js → useDateFormatter-EHm4auIg.js} +2 -2
  236. package/{useEvent-CjkbBniY.cjs → useEvent-DxBxMX2V.cjs} +1 -1
  237. package/{useEvent-Cyd2ZL0c.js → useEvent-IsD2Awnh.js} +1 -1
  238. package/useField-CXKYU74k.cjs +1 -0
  239. package/{useField-BPMAlIbU.js → useField-DvpGZkw_.js} +7 -7
  240. package/useFilter-BTgDWHVx.cjs +1 -0
  241. package/{useFilter-ChIbnALW.js → useFilter-CUq74PQ2.js} +1 -1
  242. package/{useFocusRing-BDGH3lpn.js → useFocusRing-XnR3cZjO.js} +1 -1
  243. package/useFocusable-C8uh8K4g.js +125 -0
  244. package/useFocusable-NUVSFcRC.cjs +1 -0
  245. package/{useFormValidation-R8hQIjWP.js → useFormValidation-BIGzfO9h.js} +5 -5
  246. package/{useHasTabbableChild-DsD9AJwE.js → useHasTabbableChild-C-1mZUQe.js} +2 -2
  247. package/useHasTabbableChild-DCBTulUQ.cjs +1 -0
  248. package/{useHighlightSelectionDescription-DFfcgbUj.js → useHighlightSelectionDescription-CnBDT86u.js} +14 -14
  249. package/useHighlightSelectionDescription-CzYucm61.cjs +1 -0
  250. package/{useHover-qRAon4nS.js → useHover-DjIHtjGN.js} +17 -17
  251. package/{useLabels-BZjoZA1Z.js → useLabels-BDwkBYbE.js} +1 -1
  252. package/{useListState-Ca2-uZMO.cjs → useListState-Bx8u4IFG.cjs} +1 -1
  253. package/{useListState-DFQ9d-uE.js → useListState-CrZFZffI.js} +7 -7
  254. package/useLocalizedStringFormatter-BKoxGZf1.js +96 -0
  255. package/useLocalizedStringFormatter-BsxLt89S.cjs +1 -0
  256. package/useLocalizedStringFormatter-D3JQyjb4.js +21 -0
  257. package/useLocalizedStringFormatter-ioacM-Yt.cjs +1 -0
  258. package/useObserveElement-MhzEsCkX.cjs +1 -0
  259. package/usePress-0AjDbW9R.cjs +7 -0
  260. package/{usePress-CUJ3pMOw.js → usePress-CNjmDzap.js} +48 -48
  261. package/{useSingleSelectListState-C-nB8cug.js → useSingleSelectListState-0AGHxvy3.js} +1 -1
  262. package/{useSingleSelectListState-MGNxUTum.cjs → useSingleSelectListState-Cl3KV5E1.cjs} +1 -1
  263. package/{useTextField-CtUDWsUl.cjs → useTextField--czJtyNd.cjs} +1 -1
  264. package/{useTextField-5OZQPyOW.js → useTextField-Cw-33OP_.js} +11 -11
  265. package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
  266. package/{utils-HNTsIwux.js → utils-DIMfEPAt.js} +10 -10
  267. package/{x-CvxiAZTW.cjs → x-H8Zrx8-x.cjs} +1 -1
  268. package/Button-DnhqHU01.cjs +0 -1
  269. package/Button-ZOQy9Ivu.js +0 -78
  270. package/Button.module-CMMhIrkn.js +0 -14
  271. package/Button.module-DO5s9hOk.cjs +0 -1
  272. package/Card-C0BFW3wJ.cjs +0 -1
  273. package/CharacterCounter-CPGdboVJ.js +0 -22
  274. package/Checkbox-CvFsn_FL.js +0 -380
  275. package/Checkbox-DSxGAJX2.cjs +0 -1
  276. package/CheckboxGroup-Bk9DPq4I.cjs +0 -1
  277. package/CheckboxGroup-Dij9zKlF.js +0 -54
  278. package/ComboBox-gveQKHU3.cjs +0 -1
  279. package/DateField-CAQlzuDD.js +0 -46
  280. package/DateField-deVVFwKA.cjs +0 -1
  281. package/DateInputDivider-DnUxETEC.cjs +0 -1
  282. package/DateRangePicker-BzfitoK0.cjs +0 -6
  283. package/Dialog-Bd5hK360.cjs +0 -1
  284. package/FieldError-BZw8UzBk.cjs +0 -1
  285. package/FieldError-CZikNDxX.js +0 -28
  286. package/FieldError-DqdfJ3fs.cjs +0 -1
  287. package/FieldError-Dv3bBEjh.js +0 -23
  288. package/FocusScope-NaPbvuuS.cjs +0 -1
  289. package/InfoBanner-BS-dAfzO.cjs +0 -1
  290. package/Label-C9ivwkAd.js +0 -21
  291. package/Label-CUV21CAv.cjs +0 -1
  292. package/Label-DkDOsmUF.js +0 -16
  293. package/Label-IMWAyoKb.cjs +0 -1
  294. package/LinkButton-CuBilDML.js +0 -69
  295. package/LinkButton-CymMrcGL.cjs +0 -6
  296. package/ListBox-CDOsQChA.cjs +0 -1
  297. package/ListKeyboardDelegate-BqMETvPv.cjs +0 -1
  298. package/LiveAnnouncer-B6177m92.js +0 -51
  299. package/LiveAnnouncer-CwEWPU8b.cjs +0 -1
  300. package/LocalizedStringFormatter-C0C54hjf.cjs +0 -1
  301. package/LocalizedStringFormatter-D-4Qyql0.js +0 -77
  302. package/NumberFormatter-DewVDY5w.cjs +0 -1
  303. package/NumberFormatter-DgOUVrge.js +0 -119
  304. package/PressResponder-C06O3Z5P.cjs +0 -1
  305. package/PressResponder-CVEg5kND.js +0 -33
  306. package/ProgressBar-Bkw9zavs.cjs +0 -1
  307. package/ProgressBar-CEX2WNoW.js +0 -77
  308. package/ProgressBar-Dqh3ftSP.cjs +0 -1
  309. package/Radio-CDKrvQe4.cjs +0 -1
  310. package/RangeCalendar-cbCKBPZv.cjs +0 -11
  311. package/Select-CpHjd1tp.cjs +0 -1
  312. package/SelectionManager-C5NGBzvz.cjs +0 -1
  313. package/Separator-nPra6kD-.cjs +0 -1
  314. package/Table-D9vNc_y-.cjs +0 -16
  315. package/Tag-CVFkzg3s.cjs +0 -1
  316. package/Text-B_H68Tvq.js +0 -15
  317. package/TextArea-DSiQ578a.js +0 -206
  318. package/TextArea-cVyGBRbL.cjs +0 -1
  319. package/TextField-B70CL2qz.cjs +0 -1
  320. package/Toast-DrkOGy4d.cjs +0 -1
  321. package/focusSafely-Bqfo_DH7.cjs +0 -1
  322. package/focusSafely-C48ucRUz.js +0 -56
  323. package/inertValue-BWmZ1afe.cjs +0 -1
  324. package/scrollIntoView-ClEACHUk.js +0 -57
  325. package/scrollIntoView-DRSoJp89.cjs +0 -1
  326. package/useCollator-C_ozeWLo.cjs +0 -1
  327. package/useCollator-CgZcHC8N.js +0 -11
  328. package/useDescription-CVKhFa3c.js +0 -32
  329. package/useDescription-DmQYSEES.cjs +0 -1
  330. package/useField-B1RU0GKs.cjs +0 -1
  331. package/useFilter-CtIwF2qW.cjs +0 -1
  332. package/useFocusable-CaedRTpB.js +0 -74
  333. package/useFocusable-CuPQ7Cm5.cjs +0 -1
  334. package/useHasTabbableChild-DgphNvnk.cjs +0 -1
  335. package/useHighlightSelectionDescription-BizKjvPU.cjs +0 -1
  336. package/useLabel-DDdAJ1JO.js +0 -23
  337. package/useLabel-m_S5xkHy.cjs +0 -1
  338. package/useLocalizedStringFormatter-D07YB2e1.js +0 -22
  339. package/useLocalizedStringFormatter-u9SJaOwk.cjs +0 -1
  340. package/useObserveElement-BzEr5D32.cjs +0 -1
  341. package/usePress-BFa6cT9o.cjs +0 -7
@@ -1,33 +1,29 @@
1
1
  import { jsx as be } from "react/jsx-runtime";
2
2
  import { c as Re } from "./clsx-OuTLNxxd.js";
3
- import { g as Be, d as ee, $ as qu, c as Yu, a as Se, h as Ju, i as Xu, j as Ee, b as Te, k as Ne, e as Qu } from "./utils-HNTsIwux.js";
4
- import { $ as et } from "./FieldError-CZikNDxX.js";
3
+ import { f as Be, c as ee, $ as qu, e as Yu, a as Se, g as Ju, h as Xu, i as Ee, b as Te, j as Ne, l as Qu } from "./utils-DIMfEPAt.js";
4
+ import { $ as et } from "./FieldError-CAcjosk_.js";
5
5
  import { $ as at } from "./Form-CXcEMuBf.js";
6
- import { a as je, $ as ut } from "./Group-CeSsSQVC.js";
7
- import { $ as Ie, a as tt } from "./Input-D8Ku_FQz.js";
8
- import { $ as rt } from "./Label-DkDOsmUF.js";
9
- import { a as nt } from "./Text-B_H68Tvq.js";
10
- import { c as ne, p as ae, x as it, y as dt, w as ot, b as lt, a as st, $ as Q, z as ct, q as mt, t as ft, A as Dt, B as $t, u as Oe } from "./useDateFormatter-C53Uxdli.js";
6
+ import { a as je, $ as ut } from "./Group-B6EslsHZ.js";
7
+ import { $ as Ie, a as tt } from "./Input-BTzwcf72.js";
8
+ import { g as rt, h as nt, f as it, b as dt } from "./Button-DjBChs7s.js";
9
+ import { $ as ot } from "./Text-BoXuUVVH.js";
10
+ import { c as ne, p as ae, x as lt, y as st, w as ct, b as mt, a as ft, $ as Q, z as Dt, q as $t, t as pt, A as bt, B as yt, u as Oe } from "./useDateFormatter-EHm4auIg.js";
11
11
  import { $ as ye } from "./filterDOMProps-D6KHYVBX.js";
12
- import O, { useRef as z, useEffect as le, useMemo as P, useState as $e, forwardRef as ue, createContext as xe, useContext as H, cloneElement as pt } from "react";
13
- import { $ as te } from "./context-B8cn10po.js";
14
- import { a as se, $ as bt } from "./LocalizedStringFormatter-D-4Qyql0.js";
15
- import { a as yt, b as xt, e as Ce, f as ht, $ as vt } from "./useFormValidation-R8hQIjWP.js";
16
- import { $ as gt } from "./useControlledState-u436Wbp1.js";
17
- import { b as ze, $ as Me } from "./FocusScope-DwIqdYpQ.js";
18
- import { b as Bt } from "./usePress-CUJ3pMOw.js";
19
- import { $ as Et } from "./useDescription-CVKhFa3c.js";
20
- import { a as Ct, $ as Ft } from "./useFocusRing-BDGH3lpn.js";
21
- import { $ as wt } from "./useField-BPMAlIbU.js";
22
- import { $ as _e, a as Pt } from "./useLocalizedStringFormatter-D07YB2e1.js";
23
- import { $ as kt } from "./useLabels-BZjoZA1Z.js";
24
- import { $ as At } from "./getScrollParent-Ru2U2LlM.js";
25
- import { b as Vt, y as Rt, u as St, $ as Tt } from "./useHover-qRAon4nS.js";
26
- import { $ as me } from "./useEvent-Cyd2ZL0c.js";
27
- import { b as Nt } from "./scrollIntoView-ClEACHUk.js";
28
- import { $ as jt } from "./NumberFormatter-DgOUVrge.js";
29
- import { $ as It } from "./useFilter-ChIbnALW.js";
30
- import { a as Ot, $ as zt } from "./LiveAnnouncer-B6177m92.js";
12
+ import O, { useRef as z, useEffect as le, useMemo as P, useState as $e, forwardRef as ue, createContext as xe, useContext as H, cloneElement as xt } from "react";
13
+ import { $ as te } from "./context-C81gPYvC.js";
14
+ import { b as ze, c as ht, a as se, $ as vt } from "./useLocalizedStringFormatter-BKoxGZf1.js";
15
+ import { a as gt, b as Bt, c as Ce, f as Et, $ as Ct } from "./useFormValidation-BIGzfO9h.js";
16
+ import { $ as Ft } from "./useControlledState-u436Wbp1.js";
17
+ import { b as Me, $ as _e } from "./FocusScope-CxkURfoc.js";
18
+ import { a as wt } from "./usePress-CNjmDzap.js";
19
+ import { a as Pt, c as kt } from "./scrollIntoView-Hwb_aaNf.js";
20
+ import { a as At, $ as Vt } from "./useFocusRing-XnR3cZjO.js";
21
+ import { $ as Rt } from "./useField-DvpGZkw_.js";
22
+ import { $ as St } from "./useLabels-BDwkBYbE.js";
23
+ import { $ as Tt } from "./getScrollParent-BhFcYrwL.js";
24
+ import { b as Nt, y as jt, t as It, $ as Ot } from "./useHover-DjIHtjGN.js";
25
+ import { $ as me } from "./useEvent-IsD2Awnh.js";
26
+ import { $ as zt } from "./useFilter-CUq74PQ2.js";
31
27
  import './assets/DateInputDivider.css';const Mt = new RegExp("^.*\\(.*\\).*$"), _t = [
32
28
  "latn",
33
29
  "arab",
@@ -96,7 +92,7 @@ class Ut {
96
92
  minimumFractionDigits: Math.min(((r = this.options.minimumFractionDigits) !== null && r !== void 0 ? r : 0) + 2, 20),
97
93
  maximumFractionDigits: Math.min(((i = this.options.maximumFractionDigits) !== null && i !== void 0 ? i : 0) + 2, 20)
98
94
  };
99
- return new Ue(this.locale, o).parse(new jt(this.locale, o).format(t));
95
+ return new Ue(this.locale, o).parse(new rt(this.locale, o).format(t));
100
96
  }
101
97
  return this.options.currencySign === "accounting" && Mt.test(a) && (t = -1 * t), t;
102
98
  }
@@ -359,7 +355,7 @@ function Lt(e) {
359
355
  function Gt(e) {
360
356
  const a = z(void 0);
361
357
  let { value: u, textValue: t, minValue: r, maxValue: i, isDisabled: o, isReadOnly: f, isRequired: n, onIncrement: c, onIncrementPage: l, onDecrement: s, onDecrementPage: D, onDecrementToMin: g, onIncrementToMax: v } = e;
362
- const y = _e(Lt(Ba), "@react-aria/spinbutton"), x = () => clearTimeout(a.current);
358
+ const y = ze(Lt(Ba), "@react-aria/spinbutton"), x = () => clearTimeout(a.current);
363
359
  le(() => () => x(), []);
364
360
  let A = (p) => {
365
361
  if (!(p.ctrlKey || p.metaKey || p.shiftKey || p.altKey || f))
@@ -395,7 +391,7 @@ function Gt(e) {
395
391
  S.current = !1;
396
392
  }, T = t === "" ? y.format("Empty") : (t || `${u}`).replace("-", "−");
397
393
  le(() => {
398
- S.current && (Ot("assertive"), zt(T, "assertive"));
394
+ S.current && (nt("assertive"), it(T, "assertive"));
399
395
  }, [
400
396
  T
401
397
  ]);
@@ -410,7 +406,7 @@ function Gt(e) {
410
406
  });
411
407
  let k = (p) => {
412
408
  p.preventDefault();
413
- }, { addGlobalListener: M, removeAllGlobalListeners: $ } = Vt();
409
+ }, { addGlobalListener: M, removeAllGlobalListeners: $ } = Nt();
414
410
  return {
415
411
  spinButtonProps: {
416
412
  role: "spinbutton",
@@ -1131,7 +1127,7 @@ he = {
1131
1127
  "zh-TW": tu
1132
1128
  };
1133
1129
  function Wt(e, a, u) {
1134
- let { direction: t } = te(), r = P(() => ze(a), [
1130
+ let { direction: t } = te(), r = P(() => Me(a), [
1135
1131
  a
1136
1132
  ]), i = (n) => {
1137
1133
  if (n.currentTarget.contains(n.target) && (n.altKey && (n.key === "ArrowDown" || n.key === "ArrowUp") && "setOpen" in e && (n.preventDefault(), n.stopPropagation(), e.setOpen(!0)), !u))
@@ -1156,7 +1152,7 @@ function Wt(e, a, u) {
1156
1152
  }, o = () => {
1157
1153
  var n;
1158
1154
  if (!a.current) return;
1159
- let c = (n = window.event) === null || n === void 0 ? void 0 : n.target, l = Me(a.current, {
1155
+ let c = (n = window.event) === null || n === void 0 ? void 0 : n.target, l = _e(a.current, {
1160
1156
  tabbable: !0
1161
1157
  });
1162
1158
  if (c && (l.currentNode = c, c = l.previousNode()), !c) {
@@ -1171,7 +1167,7 @@ function Wt(e, a, u) {
1171
1167
  else break;
1172
1168
  }
1173
1169
  c && c.focus();
1174
- }, { pressProps: f } = Bt({
1170
+ }, { pressProps: f } = wt({
1175
1171
  preventFocusOnPress: !0,
1176
1172
  allowTextSelectionOnPress: !0,
1177
1173
  onPressStart(n) {
@@ -1186,7 +1182,7 @@ function Wt(e, a, u) {
1186
1182
  });
1187
1183
  }
1188
1184
  function Ae(e, a, u) {
1189
- let t = Me(e, {
1185
+ let t = _e(e, {
1190
1186
  tabbable: !0
1191
1187
  }), r = t.nextNode(), i = null, o = 1 / 0;
1192
1188
  for (; r; ) {
@@ -1201,12 +1197,12 @@ function Ht(e) {
1201
1197
  const ru = /* @__PURE__ */ new WeakMap(), De = "__role_" + Date.now(), qt = "__focusManager_" + Date.now();
1202
1198
  function nu(e, a, u) {
1203
1199
  var t;
1204
- let { isInvalid: r, validationErrors: i, validationDetails: o } = a.displayValidation, { labelProps: f, fieldProps: n, descriptionProps: c, errorMessageProps: l } = wt({
1200
+ let { isInvalid: r, validationErrors: i, validationDetails: o } = a.displayValidation, { labelProps: f, fieldProps: n, descriptionProps: c, errorMessageProps: l } = Rt({
1205
1201
  ...e,
1206
1202
  labelElementType: "span",
1207
1203
  isInvalid: r,
1208
1204
  errorMessage: e.errorMessage || i
1209
- }), s = z(null), { focusWithinProps: D } = Ct({
1205
+ }), s = z(null), { focusWithinProps: D } = At({
1210
1206
  ...e,
1211
1207
  onFocusWithin($) {
1212
1208
  var p;
@@ -1217,14 +1213,14 @@ function nu(e, a, u) {
1217
1213
  a.confirmPlaceholder(), a.value !== s.current && a.commitValidation(), (p = e.onBlur) === null || p === void 0 || p.call(e, $);
1218
1214
  },
1219
1215
  onFocusWithinChange: e.onFocusChange
1220
- }), g = _e(Ht(he), "@react-aria/datepicker"), v = a.maxGranularity === "hour" ? "selectedTimeDescription" : "selectedDateDescription", y = a.maxGranularity === "hour" ? "time" : "date", x = a.value ? g.format(v, {
1216
+ }), g = ze(Ht(he), "@react-aria/datepicker"), v = a.maxGranularity === "hour" ? "selectedTimeDescription" : "selectedDateDescription", y = a.maxGranularity === "hour" ? "time" : "date", x = a.value ? g.format(v, {
1221
1217
  [y]: a.formatValue({
1222
1218
  month: "long"
1223
1219
  })
1224
- }) : "", A = Et(x), S = e[De] === "presentation" ? n["aria-describedby"] : [
1220
+ }) : "", A = Pt(x), S = e[De] === "presentation" ? n["aria-describedby"] : [
1225
1221
  A["aria-describedby"],
1226
1222
  n["aria-describedby"]
1227
- ].filter(Boolean).join(" ") || void 0, C = e[qt], E = P(() => C || ze(u), [
1223
+ ].filter(Boolean).join(" ") || void 0, C = e[qt], E = P(() => C || Me(u), [
1228
1224
  C,
1229
1225
  u
1230
1226
  ]), T = Wt(a, u, e[De] === "presentation");
@@ -1248,7 +1244,7 @@ function nu(e, a, u) {
1248
1244
  I.current && E.focusFirst(), I.current = !1;
1249
1245
  }, [
1250
1246
  E
1251
- ]), yt(e.inputRef, a.value, a.setValue), xt({
1247
+ ]), gt(e.inputRef, a.value, a.setValue), Bt({
1252
1248
  ...e,
1253
1249
  focus() {
1254
1250
  E.focusFirst();
@@ -1293,7 +1289,7 @@ function Yt(e) {
1293
1289
  return e && e.__esModule ? e.default : e;
1294
1290
  }
1295
1291
  function Jt() {
1296
- let { locale: e } = te(), a = Pt(Yt(he), "@react-aria/datepicker");
1292
+ let { locale: e } = te(), a = ht(Yt(he), "@react-aria/datepicker");
1297
1293
  return P(() => {
1298
1294
  try {
1299
1295
  return new Intl.DisplayNames(e, {
@@ -1369,14 +1365,14 @@ function Qt(e, a, u) {
1369
1365
  d = h === 0 ? "" : d, d.length === 0 || h === 0 ? a.clearSegment(e.type) : a.setSegment(e.type, h), t.current = d;
1370
1366
  } else e.type === "dayPeriod" && a.clearSegment(e.type);
1371
1367
  }, S = (d) => {
1372
- if (d.key === "a" && (St() ? d.metaKey : d.ctrlKey) && d.preventDefault(), !(d.ctrlKey || d.metaKey || d.shiftKey || d.altKey))
1368
+ if (d.key === "a" && (It() ? d.metaKey : d.ctrlKey) && d.preventDefault(), !(d.ctrlKey || d.metaKey || d.shiftKey || d.altKey))
1373
1369
  switch (d.key) {
1374
1370
  case "Backspace":
1375
1371
  case "Delete":
1376
1372
  d.preventDefault(), d.stopPropagation(), A();
1377
1373
  break;
1378
1374
  }
1379
- }, { startsWith: C } = It({
1375
+ }, { startsWith: C } = zt({
1380
1376
  sensitivity: "base"
1381
1377
  }), E = ne({
1382
1378
  hour: "numeric",
@@ -1397,7 +1393,7 @@ function Qt(e, a, u) {
1397
1393
  timeZone: "UTC"
1398
1394
  }), k = P(() => {
1399
1395
  if (e.type !== "era") return [];
1400
- let d = ae(new it(1, 1, 1), a.calendar), h = a.calendar.getEras().map((R) => {
1396
+ let d = ae(new lt(1, 1, 1), a.calendar), h = a.calendar.getEras().map((R) => {
1401
1397
  let L = d.set({
1402
1398
  year: 1,
1403
1399
  month: 1,
@@ -1456,8 +1452,8 @@ function Qt(e, a, u) {
1456
1452
  }
1457
1453
  }
1458
1454
  }, $ = () => {
1459
- t.current = "", u.current && Nt(u.current, {
1460
- containingElement: At(u.current)
1455
+ t.current = "", u.current && kt(u.current, {
1456
+ containingElement: Tt(u.current)
1461
1457
  });
1462
1458
  let d = window.getSelection();
1463
1459
  d == null || d.collapse(u.current);
@@ -1498,7 +1494,7 @@ function Qt(e, a, u) {
1498
1494
  u,
1499
1495
  l
1500
1496
  ]);
1501
- let b = Rt() || e.type === "timeZoneName" ? {
1497
+ let b = jt() || e.type === "timeZoneName" ? {
1502
1498
  role: "textbox",
1503
1499
  "aria-valuemax": null,
1504
1500
  "aria-valuemin": null,
@@ -1508,7 +1504,7 @@ function Qt(e, a, u) {
1508
1504
  a.segments
1509
1505
  ]);
1510
1506
  e !== _ && !a.isInvalid && (c = void 0);
1511
- let q = Yu(), U = !a.isDisabled && !a.isReadOnly && e.isEditable, F = e.type === "literal" ? "" : o.of(e.type), Z = kt({
1507
+ let q = Yu(), U = !a.isDisabled && !a.isReadOnly && e.isEditable, F = e.type === "literal" ? "" : o.of(e.type), Z = St({
1512
1508
  "aria-label": `${F}${f ? `, ${f}` : ""}${n ? ", " : ""}`,
1513
1509
  "aria-labelledby": n
1514
1510
  });
@@ -1846,7 +1842,7 @@ function Uu() {
1846
1842
  function pe(e, a, u, t, r) {
1847
1843
  let i = e != null && u != null && e.compare(u) > 0, o = e != null && a != null && e.compare(a) < 0, f = e != null && (t == null ? void 0 : t(e)) || !1, n = i || o || f, c = [];
1848
1844
  if (n) {
1849
- let l = Uu(), s = se.getGlobalDictionaryForPackage("@react-stately/datepicker") || _u, D = new bt(l, s), g = new Q(l, de({}, r)), v = g.resolvedOptions().timeZone;
1845
+ let l = Uu(), s = se.getGlobalDictionaryForPackage("@react-stately/datepicker") || _u, D = new vt(l, s), g = new Q(l, de({}, r)), v = g.resolvedOptions().timeZone;
1850
1846
  o && a != null && c.push(D.format("rangeUnderflow", {
1851
1847
  minValue: g.format(a.toDate(v))
1852
1848
  })), i && u != null && c.push(D.format("rangeOverflow", {
@@ -1871,7 +1867,7 @@ function pe(e, a, u, t, r) {
1871
1867
  }
1872
1868
  };
1873
1869
  }
1874
- function Wr(e, a, u, t, r) {
1870
+ function Zr(e, a, u, t, r) {
1875
1871
  var i;
1876
1872
  let o = pe((i = e == null ? void 0 : e.start) !== null && i !== void 0 ? i : null, a, u, t, r);
1877
1873
  var f;
@@ -1884,7 +1880,7 @@ function Wr(e, a, u, t, r) {
1884
1880
  l.getStringForLocale("rangeReversed", Uu())
1885
1881
  ],
1886
1882
  validationDetails: {
1887
- ...ht,
1883
+ ...Et,
1888
1884
  rangeUnderflow: !0,
1889
1885
  rangeOverflow: !0,
1890
1886
  valid: !1
@@ -1922,8 +1918,8 @@ function de(e, a) {
1922
1918
  let n = r.slice(o, f + 1).reduce((l, s) => (l[s] = e[s], l), {});
1923
1919
  return a.hourCycle != null && (n.hour12 = a.hourCycle === 12), n.timeZone = a.timeZone || "UTC", (t === "hour" || t === "minute" || t === "second") && a.timeZone && !a.hideTimeZone && (n.timeZoneName = "short"), a.showEra && o === 0 && (n.era = "short"), n;
1924
1920
  }
1925
- function Hr(e) {
1926
- return e && "hour" in e ? e : new ct();
1921
+ function Kr(e) {
1922
+ return e && "hour" in e ? e : new Dt();
1927
1923
  }
1928
1924
  function Zu(e, a) {
1929
1925
  if (e === null) return null;
@@ -1932,13 +1928,13 @@ function Zu(e, a) {
1932
1928
  }
1933
1929
  function X(e, a, u, t) {
1934
1930
  if (e) return Zu(e, u);
1935
- let r = ae(dt(t ?? ot()).set({
1931
+ let r = ae(st(t ?? ct()).set({
1936
1932
  hour: 0,
1937
1933
  minute: 0,
1938
1934
  second: 0,
1939
1935
  millisecond: 0
1940
1936
  }), u);
1941
- return a === "year" || a === "month" || a === "day" ? lt(r) : t ? r : st(r);
1937
+ return a === "year" || a === "month" || a === "day" ? mt(r) : t ? r : ft(r);
1942
1938
  }
1943
1939
  function rr(e, a) {
1944
1940
  let u = e && "timeZone" in e ? e.timeZone : void 0, t = e && "minute" in e ? "minute" : "day";
@@ -2371,7 +2367,7 @@ function Lu(e) {
2371
2367
  v
2372
2368
  ]);
2373
2369
  var x;
2374
- let [A, S] = gt(e.value, (x = e.defaultValue) !== null && x !== void 0 ? x : null, e.onChange), C = P(() => {
2370
+ let [A, S] = Ft(e.value, (x = e.defaultValue) !== null && x !== void 0 ? x : null, e.onChange), C = P(() => {
2375
2371
  var m;
2376
2372
  return (m = Zu(A, y)) !== null && m !== void 0 ? m : null;
2377
2373
  }, [
@@ -2409,7 +2405,7 @@ function Lu(e) {
2409
2405
  ...V
2410
2406
  } : {}), q = z(null), U = z(y);
2411
2407
  le(() => {
2412
- mt(y, U.current) || (U.current = y, T((m) => Object.keys(b).length > 0 ? ae(m, y) : X(e.placeholderValue, s, y, D)));
2408
+ $t(y, U.current) || (U.current = y, T((m) => Object.keys(b).length > 0 ? ae(m, y) : X(e.placeholderValue, s, y, D)));
2413
2409
  }, [
2414
2410
  y,
2415
2411
  s,
@@ -2422,7 +2418,7 @@ function Lu(e) {
2422
2418
  let F = C && Object.keys(b).length >= Object.keys(V).length ? C : E, Z = (m) => {
2423
2419
  if (e.isDisabled || e.isReadOnly) return;
2424
2420
  let w = Object.keys(b), j = Object.keys(V);
2425
- m == null ? (S(null), T(X(e.placeholderValue, s, y, D)), _({})) : w.length >= j.length || w.length === j.length - 1 && V.dayPeriod && !b.dayPeriod && q.current !== "dayPeriod" ? (m = ae(m, (l == null ? void 0 : l.calendar) || new ft()), S(m)) : T(m), q.current = null;
2421
+ m == null ? (S(null), T(X(e.placeholderValue, s, y, D)), _({})) : w.length >= j.length || w.length === j.length - 1 && V.dayPeriod && !b.dayPeriod && q.current !== "dayPeriod" ? (m = ae(m, (l == null ? void 0 : l.calendar) || new pt()), S(m)) : T(m), q.current = null;
2426
2422
  }, K = P(() => F.toDate(g), [
2427
2423
  F,
2428
2424
  g
@@ -2459,7 +2455,7 @@ function Lu(e) {
2459
2455
  n,
2460
2456
  c,
2461
2457
  k
2462
- ]), L = vt({
2458
+ ]), L = Ct({
2463
2459
  ...e,
2464
2460
  value: A,
2465
2461
  builtinValidation: R
@@ -2596,13 +2592,13 @@ function ie(e, a, u) {
2596
2592
  case "month":
2597
2593
  return {
2598
2594
  value: e.month,
2599
- minValue: $t(e),
2595
+ minValue: yt(e),
2600
2596
  maxValue: e.calendar.getMonthsInYear(e)
2601
2597
  };
2602
2598
  case "day":
2603
2599
  return {
2604
2600
  value: e.day,
2605
- minValue: Dt(e),
2601
+ minValue: bt(e),
2606
2602
  maxValue: e.calendar.getDaysInMonth(e)
2607
2603
  };
2608
2604
  }
@@ -2699,7 +2695,7 @@ function lr(e, a, u, t) {
2699
2695
  }
2700
2696
  throw new Error("Unknown segment: " + a);
2701
2697
  }
2702
- const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__PURE__ */ xe(null), qr = /* @__PURE__ */ ue(function(a, u) {
2698
+ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__PURE__ */ xe(null), Lr = /* @__PURE__ */ ue(function(a, u) {
2703
2699
  [a, u] = Se(a, u, Gu);
2704
2700
  let { validationBehavior: t } = Ju(at) || {};
2705
2701
  var r, i;
@@ -2745,7 +2741,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2745
2741
  }
2746
2742
  ],
2747
2743
  [
2748
- rt,
2744
+ dt,
2749
2745
  {
2750
2746
  ...g,
2751
2747
  ref: l,
@@ -2753,7 +2749,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2753
2749
  }
2754
2750
  ],
2755
2751
  [
2756
- nt,
2752
+ ot,
2757
2753
  {
2758
2754
  slots: {
2759
2755
  description: x,
@@ -2827,11 +2823,11 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2827
2823
  className: u ?? "react-aria-DateInput",
2828
2824
  isInvalid: o.isInvalid,
2829
2825
  isDisabled: o.isDisabled
2830
- }, o.segments.map((f, n) => /* @__PURE__ */ pt(t(f), {
2826
+ }, o.segments.map((f, n) => /* @__PURE__ */ xt(t(f), {
2831
2827
  key: n
2832
2828
  }))), /* @__PURE__ */ O.createElement(tt, null));
2833
2829
  }), mr = /* @__PURE__ */ ue(function({ segment: a, ...u }, t) {
2834
- let r = H(re), i = H(ve), o = r ?? i, f = Qu(t), { segmentProps: n } = Qt(a, o, f), { focusProps: c, isFocused: l, isFocusVisible: s } = Ft(), { hoverProps: D, isHovered: g } = Tt({
2830
+ let r = H(re), i = H(ve), o = r ?? i, f = Qu(t), { segmentProps: n } = Qt(a, o, f), { focusProps: c, isFocused: l, isFocusVisible: s } = Vt(), { hoverProps: D, isHovered: g } = Ot({
2835
2831
  ...u,
2836
2832
  isDisabled: o.isDisabled || a.type === "literal"
2837
2833
  }), { isEditable: v, ...y } = a, x = Te({
@@ -2864,7 +2860,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2864
2860
  });
2865
2861
  }), fr = "_dateSegment_1lvsj_4", Dr = {
2866
2862
  dateSegment: fr
2867
- }, Yr = ({
2863
+ }, Gr = ({
2868
2864
  className: e,
2869
2865
  ...a
2870
2866
  }) => /* @__PURE__ */ be(
@@ -2876,13 +2872,13 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2876
2872
  ), $r = "_dateInput_bhs3c_4", pr = "_divider_bhs3c_24", Hu = {
2877
2873
  dateInput: $r,
2878
2874
  divider: pr
2879
- }, Jr = ({ className: e, ...a }) => /* @__PURE__ */ be(
2875
+ }, Wr = ({ className: e, ...a }) => /* @__PURE__ */ be(
2880
2876
  sr,
2881
2877
  {
2882
2878
  className: Re(Hu.dateInput, e),
2883
2879
  ...a
2884
2880
  }
2885
- ), Xr = () => /* @__PURE__ */ be(
2881
+ ), Hr = () => /* @__PURE__ */ be(
2886
2882
  "span",
2887
2883
  {
2888
2884
  "aria-hidden": "true",
@@ -2891,10 +2887,10 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2891
2887
  }
2892
2888
  );
2893
2889
  export {
2894
- qr as $,
2895
- Yr as D,
2896
- Jr as a,
2897
- Xr as b,
2890
+ Lr as $,
2891
+ Gr as D,
2892
+ Wr as a,
2893
+ Hr as b,
2898
2894
  Wt as c,
2899
2895
  De as d,
2900
2896
  he as e,
@@ -2902,7 +2898,7 @@ export {
2902
2898
  rr as g,
2903
2899
  pe as h,
2904
2900
  de as i,
2905
- Hr as j,
2906
- Wr as k,
2901
+ Kr as j,
2902
+ Zr as k,
2907
2903
  Gu as l
2908
2904
  };
@@ -0,0 +1,6 @@
1
+ "use strict";require('./assets/DateRangePicker.css');const $=require("react/jsx-runtime"),s=require("react"),J=require("./clsx-C11secjj.cjs"),Y=require("./RangeCalendar-BehUaydF.cjs"),f=require("./DateInputDivider-ADvOavHw.cjs"),X=require("./FieldError-CKBb2-mp.cjs"),Q=require("./Label-7Ybb99CE.cjs"),$e=require("./Text-3MNwRMpI.cjs"),G=require("./Button-htW9qIsS.cjs"),p=require("./utils-BNtZbAib.cjs"),U=require("./Dialog-B8GTYbvu.cjs"),ve=require("./Form-BuOomA4T.cjs"),ee=require("./Group-CgiqQHH1.cjs"),oe=require("./Text-B2K-BJKQ.cjs"),ae=require("./filterDOMProps-BS2lrgFA.cjs"),te=require("./OverlayArrow-D75k-EMl.cjs"),E=require("./useDateFormatter-CnxoJ4jF.cjs"),L=require("./useFormValidation-ClximP89.cjs"),me=require("./useControlledState-D0L6S_5r.cjs"),xe=require("./FocusScope-5c9SVBcR.cjs"),he=require("./scrollIntoView-C8doLzDd.cjs"),le=require("./useFocusRing-CbImDrwF.cjs"),ge=require("./useField-CXKYU74k.cjs"),ye=require("./context-DjwhtgxQ.cjs"),Pe=require("./useLocalizedStringFormatter-BsxLt89S.cjs"),Re=require("./createLucideIcon-Cg_wkoIA.cjs");function Ce(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const c=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(a,l,c.get?c:{enumerable:!0,get:()=>e[l]})}}return a.default=e,Object.freeze(a)}const se=Ce(s);function Oe(e){return e&&e.__esModule?e.default:e}function Te(e,a,l){let c=p.$bdb11010cef70236$export$f680877a34711e37(),b=p.$bdb11010cef70236$export$f680877a34711e37(),v=p.$bdb11010cef70236$export$f680877a34711e37(),u=Pe.$fca6afa0e843324b$export$f12b703ca79dfbb1(Oe(f.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:i,validationErrors:t,validationDetails:R}=a.displayValidation,{labelProps:B,fieldProps:m,descriptionProps:S,errorMessageProps:C}=ge.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||t}),O=f.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,l),T=m["aria-labelledby"]||m.id,{locale:x}=ye.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),I=a.formatValue(x,{month:"long"}),d=I?u.format("selectedDateDescription",{date:I}):"",M=he.$ef06256079686ba0$export$f8aeda7b10753fa1(d),j=[M["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=ae.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),Z=s.useMemo(()=>xe.$9bf71ea28793e738$export$c5251b9e124bf29(l),[l]),k=s.useRef(!1),{focusWithinProps:F}=le.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:P=>{let V=document.getElementById(b);if(!(V!=null&&V.contains(P.relatedTarget))){var o,y;k.current=!1,(o=e.onBlur)===null||o===void 0||o.call(e,P),(y=e.onFocusChange)===null||y===void 0||y.call(e,!1)}},onFocusWithin:P=>{if(!k.current){var V,o;k.current=!0,(V=e.onFocus)===null||V===void 0||V.call(e,P),(o=e.onFocusChange)===null||o===void 0||o.call(e,!0)}}});return{groupProps:p.$3ef42575df84b30b$export$9d1611c77c2fe928(D,O,m,M,F,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":T,"aria-describedby":j,onKeyDown(P){a.isOpen||e.onKeyDown&&e.onKeyDown(P)},onKeyUp(P){a.isOpen||e.onKeyUp&&e.onKeyUp(P)}}),labelProps:{...B,onClick:()=>{Z.focusFirst()}},fieldProps:{...m,id:v,[f.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":j,value:a.value,onChange:a.setValue,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,granularity:e.granularity,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:a,autoFocus:e.autoFocus,name:e.name},descriptionProps:S,errorMessageProps:C,buttonProps:{...M,id:c,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${c} ${T}`,"aria-describedby":j,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:b,"aria-labelledby":`${c} ${T}`},calendarProps:{autoFocus:!0,value:a.dateValue,onChange:a.setDateValue,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,defaultFocusedValue:a.dateValue?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" ")},isInvalid:i,validationErrors:t,validationDetails:R}}function Ie(e){return e&&e.__esModule?e.default:e}function Me(e,a,l){var c,b,v;let u=Pe.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ie(f.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:i,validationErrors:t,validationDetails:R}=a.displayValidation,{labelProps:B,fieldProps:m,descriptionProps:S,errorMessageProps:C}=ge.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||t}),O=m["aria-labelledby"]||m.id,{locale:T}=ye.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),x=a.formatValue(T,{month:"long"}),I=x?u.format("selectedRangeDescription",{startDate:x.start,endDate:x.end}):"",d=he.$ef06256079686ba0$export$f8aeda7b10753fa1(I),M={"aria-label":u.format("startDate"),"aria-labelledby":O},j={"aria-label":u.format("endDate"),"aria-labelledby":O},D=p.$bdb11010cef70236$export$f680877a34711e37(),Z=p.$bdb11010cef70236$export$f680877a34711e37(),k=f.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,l),F=[d["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,P=s.useMemo(()=>xe.$9bf71ea28793e738$export$c5251b9e124bf29(l,{accept:n=>n.id!==D}),[l,D]),V={[f.$16f0b7bb276bc17e$export$7b3062cd49e80452]:P,[f.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":F,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},o=ae.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),y=s.useRef(!1),{focusWithinProps:_}=le.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:n=>{let g=document.getElementById(Z);if(!(g!=null&&g.contains(n.relatedTarget))){var w,A;y.current=!1,(w=e.onBlur)===null||w===void 0||w.call(e,n),(A=e.onFocusChange)===null||A===void 0||A.call(e,!1)}},onFocusWithin:n=>{if(!y.current){var g,w;y.current=!0,(g=e.onFocus)===null||g===void 0||g.call(e,n),(w=e.onFocusChange)===null||w===void 0||w.call(e,!0)}}}),N=s.useRef(L.$e5be200c675c3b3a$export$dad6ae84456c676a),H=s.useRef(L.$e5be200c675c3b3a$export$dad6ae84456c676a);var r,h;return{groupProps:p.$3ef42575df84b30b$export$9d1611c77c2fe928(o,k,m,d,_,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":F,onKeyDown(n){a.isOpen||e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){a.isOpen||e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...B,onClick:()=>{P.focusFirst()}},buttonProps:{...d,id:D,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${D} ${O}`,"aria-describedby":F,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:Z,"aria-labelledby":`${D} ${O}`},startFieldProps:{...M,...V,value:(r=(c=a.value)===null||c===void 0?void 0:c.start)!==null&&r!==void 0?r:null,onChange:n=>a.setDateTime("start",n),autoFocus:e.autoFocus,name:e.startName,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(n){N.current=n,a.updateValidation(L.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(n,H.current))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},endFieldProps:{...j,...V,value:(h=(b=a.value)===null||b===void 0?void 0:b.end)!==null&&h!==void 0?h:null,onChange:n=>a.setDateTime("end",n),name:e.endName,[L.$e5be200c675c3b3a$export$a763b9476acd3eb]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(n){H.current=n,a.updateValidation(L.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(N.current,n))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},descriptionProps:S,errorMessageProps:C,calendarProps:{autoFocus:!0,value:!((v=a.dateRange)===null||v===void 0)&&v.start&&a.dateRange.end?a.dateRange:null,onChange:a.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:a.dateRange?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:typeof e.errorMessage=="function"?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" ")},isInvalid:i,validationErrors:t,validationDetails:R}}function je(e){let a=te.$fc909762b330b746$export$61c6a8c84e605fb6(e),[l,c]=me.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||null,e.onChange),b=l||e.placeholderValue||null,[v,u]=f.$35a22f14a1f04b11$export$2440da353cedad43(b,e.granularity),i=l!=null?l.toDate(u??"UTC"):null,t=v==="hour"||v==="minute"||v==="second";var R;let B=(R=e.shouldCloseOnSelect)!==null&&R!==void 0?R:!0,[m,S]=s.useState(null),[C,O]=s.useState(null);if(l&&(m=l,"hour"in l&&(C=l)),b&&!(v in b))throw new Error("Invalid granularity "+v+" for value "+b.toString());let T=(l==null?void 0:l.calendar.identifier)==="gregory"&&l.era==="BC",x=s.useMemo(()=>({granularity:v,timeZone:u,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:T}),[v,e.hourCycle,e.shouldForceLeadingZeros,u,e.hideTimeZone,T]),{minValue:I,maxValue:d,isDateUnavailable:M}=e,j=s.useMemo(()=>f.$35a22f14a1f04b11$export$f18627323ab57ac0(l,I,d,M,x),[l,I,d,M,x]),D=L.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:l,builtinValidation:j}),Z=D.displayValidation.isInvalid,k=e.validationState||(Z?"invalid":null),F=(o,y)=>{c("timeZone"in y?y.set(E.$11d87f3f76e88657$export$93522d1a439f3617(o)):E.$11d87f3f76e88657$export$b21e0b124e224484(o,y)),S(null),O(null),D.commitValidation()};return{...D,value:l,setValue:c,dateValue:m,timeValue:C,setDateValue:o=>{let y=typeof B=="function"?B():B;t?C||y?F(o,C||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)):S(o):(c(o),D.commitValidation()),y&&a.setOpen(!1)},setTimeValue:o=>{m&&o?F(m,o):O(o)},granularity:v,hasTime:t,...a,setOpen(o){!o&&!l&&m&&t&&F(m,C||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)),a.setOpen(o)},validationState:k,isInvalid:Z,formatValue(o,y){if(!i)return"";let _=f.$35a22f14a1f04b11$export$7e319ea407e63bc0(y,x);return new E.$fb18d541ea1ad717$export$ad991b66133851cf(o,_).format(i)},getDateFormatter(o,y){let _={...x,...y},N=f.$35a22f14a1f04b11$export$7e319ea407e63bc0({},_);return new E.$fb18d541ea1ad717$export$ad991b66133851cf(o,N)}}}function Ze(e){var a,l;let c=te.$fc909762b330b746$export$61c6a8c84e605fb6(e),[b,v]=me.$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||null,e.onChange),[u,i]=s.useState(()=>b||{start:null,end:null});b==null&&u.start&&u.end&&(u={start:null,end:null},i(u));let t=b||u,R=r=>{i(r||{start:null,end:null}),K(r)?v(r):v(null)},B=(t==null?void 0:t.start)||(t==null?void 0:t.end)||e.placeholderValue||null,[m,S]=f.$35a22f14a1f04b11$export$2440da353cedad43(B,e.granularity),C=m==="hour"||m==="minute"||m==="second";var O;let T=(O=e.shouldCloseOnSelect)!==null&&O!==void 0?O:!0,[x,I]=s.useState(null),[d,M]=s.useState(null);t&&K(t)&&(x=t,"hour"in t.start&&(d=t));let j=(r,h)=>{R({start:"timeZone"in h.start?h.start.set(E.$11d87f3f76e88657$export$93522d1a439f3617(r.start)):E.$11d87f3f76e88657$export$b21e0b124e224484(r.start,h.start),end:"timeZone"in h.end?h.end.set(E.$11d87f3f76e88657$export$93522d1a439f3617(r.end)):E.$11d87f3f76e88657$export$b21e0b124e224484(r.end,h.end)}),I(null),M(null),_.commitValidation()},D=r=>{let h=typeof T=="function"?T():T;C?K(r)&&(h||d!=null&&d.start&&(d!=null&&d.end))?j(r,{start:(d==null?void 0:d.start)||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue),end:(d==null?void 0:d.end)||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)}):I(r):K(r)?(R(r),_.commitValidation()):I(r),h&&c.setOpen(!1)},Z=r=>{K(x)&&K(r)?j(x,r):M(r)},k=(t==null||(a=t.start)===null||a===void 0?void 0:a.calendar.identifier)==="gregory"&&t.start.era==="BC"||(t==null||(l=t.end)===null||l===void 0?void 0:l.calendar.identifier)==="gregory"&&t.end.era==="BC",F=s.useMemo(()=>({granularity:m,timeZone:S,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:k}),[m,e.hourCycle,e.shouldForceLeadingZeros,S,e.hideTimeZone,k]),{minValue:P,maxValue:V,isDateUnavailable:o}=e,y=s.useMemo(()=>f.$35a22f14a1f04b11$export$80ff8fc0ae339c13(t,P,V,o,F),[t,P,V,o,F]),_=L.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:b,name:s.useMemo(()=>[e.startName,e.endName].filter(r=>r!=null),[e.startName,e.endName]),builtinValidation:y}),N=_.displayValidation.isInvalid,H=e.validationState||(N?"invalid":null);return{..._,value:t,setValue:R,dateRange:x,timeRange:d,granularity:m,hasTime:C,setDate(r,h){var n,g;D(r==="start"?{start:h,end:(n=x==null?void 0:x.end)!==null&&n!==void 0?n:null}:{start:(g=x==null?void 0:x.start)!==null&&g!==void 0?g:null,end:h})},setTime(r,h){var n,g;Z(r==="start"?{start:h,end:(n=d==null?void 0:d.end)!==null&&n!==void 0?n:null}:{start:(g=d==null?void 0:d.start)!==null&&g!==void 0?g:null,end:h})},setDateTime(r,h){var n,g;R(r==="start"?{start:h,end:(n=t==null?void 0:t.end)!==null&&n!==void 0?n:null}:{start:(g=t==null?void 0:t.start)!==null&&g!==void 0?g:null,end:h})},setDateRange:D,setTimeRange:Z,...c,setOpen(r){!r&&!(t!=null&&t.start&&(t!=null&&t.end))&&K(x)&&C&&j(x,{start:(d==null?void 0:d.start)||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue),end:(d==null?void 0:d.end)||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)}),c.setOpen(r)},validationState:H,isInvalid:N,formatValue(r,h){if(!t||!t.start||!t.end)return null;let n="timeZone"in t.start?t.start.timeZone:void 0,g=e.granularity||(t.start&&"minute"in t.start?"minute":"day"),w="timeZone"in t.end?t.end.timeZone:void 0,A=e.granularity||(t.end&&"minute"in t.end?"minute":"day"),Fe=f.$35a22f14a1f04b11$export$7e319ea407e63bc0(h,{granularity:g,timeZone:n,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:t.start.calendar.identifier==="gregory"&&t.start.era==="BC"||t.end.calendar.identifier==="gregory"&&t.end.era==="BC"}),ce=t.start.toDate(n||"UTC"),ue=t.end.toDate(w||"UTC"),ie=new E.$fb18d541ea1ad717$export$ad991b66133851cf(r,Fe),de;if(n===w&&g===A&&t.start.compare(t.end)!==0){try{let W=ie.formatRangeToParts(ce,ue),re=-1;for(let q=0;q<W.length;q++){let ne=W[q];if(ne.source==="shared"&&ne.type==="literal")re=q;else if(ne.source==="endRange")break}let fe="",be="";for(let q=0;q<W.length;q++)q<re?fe+=W[q].value:q>re&&(be+=W[q].value);return{start:fe,end:be}}catch{}de=ie}else{let W=f.$35a22f14a1f04b11$export$7e319ea407e63bc0(h,{granularity:A,timeZone:w,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});de=new E.$fb18d541ea1ad717$export$ad991b66133851cf(r,W)}return{start:ie.format(ce),end:de.format(ue)}},getDateFormatter(r,h){let n={...F,...h},g=f.$35a22f14a1f04b11$export$7e319ea407e63bc0({},n);return new E.$fb18d541ea1ad717$export$ad991b66133851cf(r,g)}}}function K(e){return(e==null?void 0:e.start)!=null&&e.end!=null}const ke=s.createContext(null),Be=s.createContext(null),Se=s.createContext(null),we=s.createContext(null),De=[ee.$a049562f99e7db0e$export$f9c6924e160136d1,G.$d2b4bc8c273e7be6$export$24d547caef80ccd1,G.$01b77f81d0f07f68$export$75b6ee27786ba447,oe.$514c0188e459b4c0$export$9afb8bc826b033ea],qe=s.forwardRef(function(a,l){[a,l]=p.$64fa3d84918910a7$export$29f1550f4b0d4415(a,l,ke);let{validationBehavior:c}=p.$64fa3d84918910a7$export$fabf2dc03a41866e(ve.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var b,v;let u=(v=(b=a.validationBehavior)!==null&&b!==void 0?b:c)!==null&&v!==void 0?v:"native",i=je({...a,validationBehavior:u}),t=s.useRef(null),[R,B]=p.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:m,labelProps:S,fieldProps:C,buttonProps:O,dialogProps:T,calendarProps:x,descriptionProps:I,errorMessageProps:d,...M}=Te({...p.$64fa3d84918910a7$export$ef03459518577ad4(a),label:B,validationBehavior:u},i,t),[j,D]=s.useState(null),Z=s.useCallback(()=>{t.current&&D(t.current.offsetWidth+"px")},[]);te.$9daab02d461809db$export$683480f191c0e3ea({ref:t,onResize:Z});let{focusProps:k,isFocused:F,isFocusVisible:P}=le.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),V=p.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:i,isFocusWithin:F,isFocusVisible:P,isDisabled:a.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DatePicker"}),o=ae.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a);return delete o.id,s.createElement(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Se,i],[ee.$a049562f99e7db0e$export$f9c6924e160136d1,{...m,ref:t,isInvalid:i.isInvalid}],[f.$40825cdb76e74f70$export$7b3e670c86da5fe8,C],[G.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...O,isPressed:i.isOpen}],[G.$01b77f81d0f07f68$export$75b6ee27786ba447,{...S,ref:R,elementType:"span"}],[Y.$dfd62f934fc76fed$export$3b805cea1f178355,x],[U.$de32f1b87079253c$export$d2f961adcb0afbe,i],[U.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DatePicker",triggerRef:t,placement:"bottom start",style:{"--trigger-width":j},clearContexts:De}],[U.$de32f1b87079253c$export$8b93a07348a7730c,T],[oe.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:I,errorMessage:d}}],[X.$ee014567cb39d3f0$export$ff05c3ac10437e03,M]]},s.createElement("div",{...k,...o,...V,ref:l,slot:a.slot||void 0,"data-focus-within":F||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":P||void 0,"data-disabled":a.isDisabled||void 0,"data-open":i.isOpen||void 0}))}),Ee=s.forwardRef(function(a,l){[a,l]=p.$64fa3d84918910a7$export$29f1550f4b0d4415(a,l,Be);let{validationBehavior:c}=p.$64fa3d84918910a7$export$fabf2dc03a41866e(ve.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var b,v;let u=(v=(b=a.validationBehavior)!==null&&b!==void 0?b:c)!==null&&v!==void 0?v:"native",i=Ze({...a,validationBehavior:u}),t=s.useRef(null),[R,B]=p.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:m,labelProps:S,startFieldProps:C,endFieldProps:O,buttonProps:T,dialogProps:x,calendarProps:I,descriptionProps:d,errorMessageProps:M,...j}=Me({...p.$64fa3d84918910a7$export$ef03459518577ad4(a),label:B,validationBehavior:u},i,t),[D,Z]=s.useState(null),k=s.useCallback(()=>{t.current&&Z(t.current.offsetWidth+"px")},[]);te.$9daab02d461809db$export$683480f191c0e3ea({ref:t,onResize:k});let{focusProps:F,isFocused:P,isFocusVisible:V}=le.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),o=p.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:i,isFocusWithin:P,isFocusVisible:V,isDisabled:a.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DateRangePicker"}),y=ae.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a);return delete y.id,s.createElement(p.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[we,i],[ee.$a049562f99e7db0e$export$f9c6924e160136d1,{...m,ref:t,isInvalid:i.isInvalid}],[G.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...T,isPressed:i.isOpen}],[G.$01b77f81d0f07f68$export$75b6ee27786ba447,{...S,ref:R,elementType:"span"}],[Y.$dfd62f934fc76fed$export$233dd9682e1ad64b,I],[U.$de32f1b87079253c$export$d2f961adcb0afbe,i],[U.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DateRangePicker",triggerRef:t,placement:"bottom start",style:{"--trigger-width":D},clearContexts:De}],[U.$de32f1b87079253c$export$8b93a07348a7730c,x],[f.$40825cdb76e74f70$export$7b3e670c86da5fe8,{slots:{start:C,end:O}}],[oe.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:d,errorMessage:M}}],[X.$ee014567cb39d3f0$export$ff05c3ac10437e03,j]]},s.createElement("div",{...F,...y,...o,ref:l,slot:a.slot||void 0,"data-focus-within":P||void 0,"data-invalid":i.isInvalid||void 0,"data-focus-visible":V||void 0,"data-disabled":a.isDisabled||void 0,"data-open":i.isOpen||void 0}))});/**
2
+ * @license lucide-react v0.453.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const _e=Re.createLucideIcon("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]),Le="_datePicker_1ro4s_4",Ne="_inputField_1ro4s_11",Ue="_medium_1ro4s_23",We="_calendarButton_1ro4s_50",Ke="_dialog_1ro4s_97",z={datePicker:Le,inputField:Ne,medium:Ue,calendarButton:We,dialog:Ke},Ve=({children:e,isDisabled:a,isInvalid:l,size:c="large"})=>$.jsxs(ee.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{className:J.clsx(z.inputField,{[z.medium]:c==="medium"}),children:[e,$.jsx(G.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{className:J.clsx(z.calendarButton,{[z.medium]:c==="medium"}),"data-invalid":l||void 0,isDisabled:a,children:$.jsx(_e,{"aria-hidden":!0,size:20})})]}),pe=se.forwardRef(({children:e},a)=>$.jsx(U.$07b14b47974efb58$export$5b6b19405a83ff9d,{UNSTABLE_portalContainer:typeof a!="function"&&(a==null?void 0:a.current)||void 0,children:$.jsx(U.$de32f1b87079253c$export$3ddf2d174ce01153,{className:z.dialog,children:e})})),ze=({className:e,description:a,errorMessage:l,errorPosition:c="top",label:b,popover:v,...u})=>{const i=se.useRef(null);return $.jsxs(qe,{className:J.clsx(z.datePicker,e),ref:i,...u,children:[$.jsx(Q.LabelWrapper,{popover:v,children:b&&$.jsx(Q.Label,{children:b})}),a&&$.jsx($e.Text,{slot:"description",children:a}),c==="top"&&$.jsx(X.FieldError,{children:l}),$.jsx(Ve,{...u,children:$.jsx(f.DateInput,{children:t=>$.jsx(f.DateSegment,{segment:t})})}),c==="bottom"&&$.jsx(X.FieldError,{children:l}),$.jsx(pe,{ref:i,children:$.jsx(Y.Calendar,{})})]})},Ge=({className:e,description:a,errorMessage:l,errorPosition:c="top",label:b,popover:v,...u})=>{const i=se.useRef(null);return $.jsxs(Ee,{className:J.clsx(z.datePicker,e),ref:i,...u,children:[$.jsx(Q.LabelWrapper,{popover:v,children:b&&$.jsx(Q.Label,{children:b})}),a&&$.jsx($e.Text,{slot:"description",children:a}),c==="top"&&$.jsx(X.FieldError,{children:l}),$.jsxs(Ve,{...u,children:[$.jsx(f.DateInput,{slot:"start",children:t=>$.jsx(f.DateSegment,{segment:t})}),$.jsx(f.DateInputDivider,{}),$.jsx(f.DateInput,{slot:"end",children:t=>$.jsx(f.DateSegment,{segment:t})})]}),c==="bottom"&&$.jsx(X.FieldError,{children:l}),$.jsx(pe,{ref:i,children:$.jsx(Y.RangeCalendar,{})})]})};exports.DatePicker=ze;exports.DateRangePicker=Ge;