@midas-ds/components 10.3.0 → 10.4.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 (363) hide show
  1. package/AccordionItem-BcsoC78F.cjs +1 -0
  2. package/{AccordionItem-ChHpW8EW.js → AccordionItem-BqsgiVWV.js} +38 -36
  3. package/Breadcrumbs-CfW5IuyE.cjs +1 -0
  4. package/{Breadcrumbs-CwDUNIqF.js → Breadcrumbs-D7eoibWk.js} +77 -65
  5. package/{Button-BoJl6JGM.cjs → Button-BXY5ZhqI.cjs} +1 -1
  6. package/{Button-Csih3v23.js → Button-BZUo7vsZ.js} +1 -1
  7. package/{Button-DjBChs7s.js → Button-CFYdzG0H.js} +24 -23
  8. package/Button-DExMoP5f.cjs +1 -0
  9. package/CHANGELOG.md +28 -0
  10. package/{Card-yrtGzt70.js → Card-BaWSgtSF.js} +3 -3
  11. package/{Card-0G0mj9q5.cjs → Card-Cc1TNPcQ.cjs} +1 -1
  12. package/{CharacterCounter-CHcTDHO-.cjs → CharacterCounter-DSFBv3Rw.cjs} +1 -1
  13. package/{CharacterCounter-BL_nZHya.js → CharacterCounter-cLhqPZlk.js} +4 -4
  14. package/Checkbox-Co3h0hur.cjs +1 -0
  15. package/{Checkbox-5HINZdGu.js → Checkbox-LuUwTZ3W.js} +69 -68
  16. package/CheckboxGroup-CUA8_xSx.js +160 -0
  17. package/CheckboxGroup-DmUOM0xl.cjs +1 -0
  18. package/{Collection-Brgjpkne.js → Collection--62xKPm9.js} +17 -16
  19. package/Collection-BtBX5IMY.cjs +1 -0
  20. package/{ColorSchemeSwitch-BpzQ7g0b.js → ColorSchemeSwitch-Cwono7Ap.js} +51 -35
  21. package/ColorSchemeSwitch-DDXdSzqg.cjs +16 -0
  22. package/ComboBox-BBC7jhnm.cjs +1 -0
  23. package/{ComboBox-CVDyp2a-.js → ComboBox-HLIAbb2q.js} +309 -298
  24. package/{DateField-DeDhiYnW.cjs → DateField-B3VjOSde.cjs} +1 -1
  25. package/{DateField-DhU3q-rG.js → DateField-CnLEi7uX.js} +4 -4
  26. package/DateInputDivider-3BvwXXa9.cjs +1 -0
  27. package/{DateInputDivider-CF4xWsMT.js → DateInputDivider-Bi5N-C0c.js} +90 -86
  28. package/DateRangePicker-BPlZ12r8.cjs +6 -0
  29. package/{DateRangePicker-ziD1_k1W.js → DateRangePicker-CFOoGvut.js} +86 -83
  30. package/Dialog-CSnN6baf.cjs +1 -0
  31. package/{Dialog-D14MbJ7o.js → Dialog-CtVrVuMr.js} +101 -98
  32. package/Dialog-SqciohRY.js +221 -0
  33. package/Dialog-pSSy1zwf.cjs +1 -0
  34. package/DragAndDrop-BoEd260f.cjs +1 -0
  35. package/{DragAndDrop-o3ruz_SR.js → DragAndDrop-DkSTL28C.js} +2 -2
  36. package/{Dropdown-Df58j43I.js → Dropdown-CkBp70BH.js} +2 -2
  37. package/{Dropdown-CJ6My6EI.cjs → Dropdown-DAsVShlt.cjs} +1 -1
  38. package/FieldError-B3YFj-an.js +23 -0
  39. package/FieldError-BbR-29BM.js +28 -0
  40. package/FieldError-MVsU-Mgw.cjs +1 -0
  41. package/FieldError-bRTpchvr.cjs +1 -0
  42. package/{FileUpload-D6qoEAjn.js → FileUpload-B4rv-wke.js} +496 -475
  43. package/{FileUpload-CxCOtyB9.cjs → FileUpload-BwMhyLjG.cjs} +2 -2
  44. package/{FocusScope-CxkURfoc.js → FocusScope-D_hwN_TJ.js} +25 -24
  45. package/FocusScope-vcXLOQiu.cjs +1 -0
  46. package/Group-CpkUzEAs.js +45 -0
  47. package/Group-DOpbdoAi.cjs +1 -0
  48. package/{Heading-mHhCbGjY.cjs → Heading-CKTR4sOz.cjs} +1 -1
  49. package/{Heading-BFtiin0g.js → Heading-NxtGri2i.js} +1 -1
  50. package/{InfoBanner-BLM-TJJ6.js → InfoBanner-CBUoad7A.js} +47 -39
  51. package/InfoBanner-CVry6Y8i.cjs +1 -0
  52. package/{Input-BTzwcf72.js → Input-LnjmFI1x.js} +13 -12
  53. package/Input-MJji5hhq.cjs +1 -0
  54. package/Label-CNmTN1YY.cjs +1 -0
  55. package/Label-TVxwGZ-O.js +78 -0
  56. package/Layout-Dw-oCqxd.cjs +16 -0
  57. package/Layout-amz9BESl.js +498 -0
  58. package/{Link-yNO2-sqx.js → Link-Bn8V3ZI0.js} +8 -7
  59. package/Link-CidjjqHb.cjs +1 -0
  60. package/{Link-B88l_oaE.cjs → Link-D92ftFi2.cjs} +1 -1
  61. package/{Link-DX5BbBnn.js → Link-DegonJfl.js} +1 -1
  62. package/{LinkButton-o6uS1XsR.js → LinkButton-CckYzfJ8.js} +1 -1
  63. package/{LinkButton-CBpGLETx.cjs → LinkButton-DKZ4z6zu.cjs} +1 -1
  64. package/ListBox-BCz5-23H.cjs +1 -0
  65. package/{ListBox-GnVK_Pdq.js → ListBox-C-isJIHL.js} +101 -99
  66. package/{ListBoxButton-D_J3jlP0.js → ListBoxButton-C_krklY0.js} +1 -1
  67. package/{ListBoxButton-DPBrtXyv.cjs → ListBoxButton-DNm3gvcT.cjs} +1 -1
  68. package/{ListBoxSection-C0BGnpB4.js → ListBoxSection-BVR2xtOH.js} +9 -9
  69. package/ListBoxSection-CfQZoURJ.cjs +1 -0
  70. package/{ListKeyboardDelegate-DTg9h4v6.cjs → ListKeyboardDelegate-CPsZ7D83.cjs} +1 -1
  71. package/{ListKeyboardDelegate-DNI8GQtX.js → ListKeyboardDelegate-CY6t6y1t.js} +3 -3
  72. package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
  73. package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
  74. package/Logo-BpH0HC91.cjs +1 -0
  75. package/{Logo-BIrOEINM.js → Logo-ME4ffCue.js} +34 -26
  76. package/{OverlayArrow-CDLXPTew.js → OverlayArrow-CfhSYL46.js} +57 -56
  77. package/OverlayArrow-DpZ1FqOd.cjs +1 -0
  78. package/{Popover-BGGXeD54.js → Popover-C8VY1YKi.js} +2 -2
  79. package/{Popover-CqNWzPf-.cjs → Popover-CnAsw3wI.cjs} +1 -1
  80. package/{ProgressBar-DMSg-Prr.js → ProgressBar-BNCjpcv8.js} +2 -2
  81. package/{ProgressBar-Jbg28j2a.cjs → ProgressBar-CcbxcWdT.cjs} +1 -1
  82. package/Radio-B2zfEFdq.cjs +1 -0
  83. package/{Radio-Cz29wPXd.js → Radio-CZYibh9r.js} +50 -47
  84. package/{RangeCalendar-RAlAHlNL.js → RangeCalendar-B16b6tJD.js} +304 -293
  85. package/RangeCalendar-C1LFeOVk.cjs +11 -0
  86. package/SSRProvider-40TXmsUG.js +50 -0
  87. package/SSRProvider-Bc-sMhsT.cjs +1 -0
  88. package/SearchField-CML0kjtn.cjs +6 -0
  89. package/{SearchField-IlvZ3Kh6.js → SearchField-giwECmXS.js} +175 -166
  90. package/Select-DKey6CeS.cjs +1 -0
  91. package/Select-mwaAv20X.js +665 -0
  92. package/SelectionManager-D0jYUYcy.cjs +1 -0
  93. package/{SelectionManager-B4ORduja.js → SelectionManager-zsWy3vsd.js} +91 -90
  94. package/{Separator-DECIYLtZ.cjs → Separator-CxF-3jhR.cjs} +1 -1
  95. package/{Separator-Cu9fYKUM.js → Separator-Dn5LYN5I.js} +4 -4
  96. package/Spinner-CbJ6YAz-.js +53 -0
  97. package/Spinner-yHcy8YHC.cjs +6 -0
  98. package/TabList-7VtCiXxX.cjs +1 -0
  99. package/TabList-CthsM5h6.js +435 -0
  100. package/{Table-F4oYBtUM.js → Table-BcQPvJT3.js} +46 -44
  101. package/Table-DkvNp6xm.cjs +16 -0
  102. package/{Tag-Du7GvSv2.js → Tag-Bs8T2Ei7.js} +131 -129
  103. package/Tag-CFWZ2LQW.cjs +1 -0
  104. package/Text-92cPh38G.js +15 -0
  105. package/{Text-B2K-BJKQ.cjs → Text-CfcjRtke.cjs} +1 -1
  106. package/{Text-3MNwRMpI.cjs → Text-DBHWi5gA.cjs} +1 -1
  107. package/{Text-jWWg0B20.js → Text-DlKqpvSa.js} +1 -1
  108. package/TextArea-DBNAVWqL.js +119 -0
  109. package/TextArea-XJDfeXRs.cjs +1 -0
  110. package/TextField-BdK9KEQ5.cjs +1 -0
  111. package/{TextField-C-hTPukq.js → TextField-ByDJkig9.js} +23 -22
  112. package/{Toast-Btg21Xge.js → Toast-DPPvPhrF.js} +75 -68
  113. package/Toast-l1bKo2oA.cjs +1 -0
  114. package/ToggleButtonGroup-DH8IgR4G.cjs +1 -0
  115. package/{ToggleButtonGroup-B5yz1tm2.js → ToggleButtonGroup-HOWNWtQZ.js} +46 -45
  116. package/{Tooltip-CMLs7WMw.js → Tooltip-5mLWn_wO.js} +29 -27
  117. package/Tooltip-pN5W3IK6.cjs +1 -0
  118. package/{VisuallyHidden-ZCYf65q4.js → VisuallyHidden-CYfmTSCD.js} +2 -2
  119. package/VisuallyHidden-Doyzl0F7.cjs +1 -0
  120. package/accordion/index.cjs +1 -1
  121. package/accordion/index.js +1 -1
  122. package/assets/Checkbox.css +1 -1
  123. package/assets/FileUpload.css +1 -1
  124. package/assets/RangeCalendar.css +1 -1
  125. package/assets/SearchField.css +1 -1
  126. package/assets/Spinner.css +1 -1
  127. package/assets/TabList.css +1 -0
  128. package/breadcrumbs/Breadcrumbs.d.ts +11 -7
  129. package/breadcrumbs/index.cjs +1 -1
  130. package/breadcrumbs/index.d.ts +1 -1
  131. package/breadcrumbs/index.js +1 -1
  132. package/button/index.cjs +1 -1
  133. package/button/index.js +1 -1
  134. package/calendar/CalendarGrid.d.ts +1 -0
  135. package/calendar/index.cjs +1 -1
  136. package/calendar/index.js +1 -1
  137. package/card/index.cjs +1 -1
  138. package/card/index.js +1 -1
  139. package/character-counter/index.cjs +1 -1
  140. package/character-counter/index.js +1 -1
  141. package/checkbox/Checkbox.d.ts +3 -1
  142. package/checkbox/index.cjs +1 -1
  143. package/checkbox/index.js +2 -2
  144. package/checkbox/intl/translations.json.d.ts +2 -30
  145. package/checkbox/types.d.ts +3 -1
  146. package/color-scheme-switch/ColorSchemeSwitch.d.ts +1 -0
  147. package/color-scheme-switch/index.cjs +1 -1
  148. package/color-scheme-switch/index.js +1 -1
  149. package/color-scheme-switch/intl/translations.json.d.ts +15 -0
  150. package/combobox/index.cjs +1 -1
  151. package/combobox/index.js +1 -1
  152. package/combobox/intl/translations.json.d.ts +11 -0
  153. package/{context-C81gPYvC.js → context-CGNJ3grH.js} +1 -1
  154. package/context-Df3XbgBG.cjs +1 -0
  155. package/date-field/index.cjs +1 -1
  156. package/date-field/index.js +2 -2
  157. package/date-picker/index.cjs +1 -1
  158. package/date-picker/index.js +1 -1
  159. package/dropdown/index.cjs +1 -1
  160. package/dropdown/index.js +1 -1
  161. package/field-error/index.cjs +1 -1
  162. package/field-error/index.js +1 -1
  163. package/file-upload/FileUpload.d.ts +1 -0
  164. package/file-upload/index.cjs +1 -1
  165. package/file-upload/index.js +1 -1
  166. package/file-upload/intl/translations.json.d.ts +17 -0
  167. package/{getScrollParent-BhFcYrwL.js → getScrollParent-CT_L9LUr.js} +1 -1
  168. package/{getScrollParent-DDJu9WHU.cjs → getScrollParent-CsZ9ciml.cjs} +1 -1
  169. package/heading/index.cjs +1 -1
  170. package/heading/index.js +1 -1
  171. package/index.cjs +1 -1
  172. package/index.js +100 -97
  173. package/info-banner/index.cjs +1 -1
  174. package/info-banner/index.js +1 -1
  175. package/info-banner/intl/translations.json.d.ts +11 -0
  176. package/label/index.cjs +1 -1
  177. package/label/index.js +1 -1
  178. package/label/intl/translations.json.d.ts +11 -0
  179. package/layout/Layout.d.ts +1 -0
  180. package/layout/context/LayoutContext.d.ts +1 -0
  181. package/layout/index.cjs +1 -1
  182. package/layout/index.js +1 -1
  183. package/layout/intl/translations.json.d.ts +23 -0
  184. package/link/index.cjs +1 -1
  185. package/link/index.js +2 -2
  186. package/link-button/index.cjs +1 -1
  187. package/link-button/index.js +2 -2
  188. package/list-box/index.cjs +1 -1
  189. package/list-box/index.js +2 -2
  190. package/logo/index.cjs +1 -1
  191. package/logo/index.js +1 -1
  192. package/logo/intl/translations.json.d.ts +11 -0
  193. package/mergeProps-B5KXZAI3.cjs +1 -0
  194. package/mergeProps-C1U1OIeJ.js +115 -0
  195. package/modal/index.cjs +1 -1
  196. package/modal/index.js +2 -2
  197. package/modal/intl/translations.json.d.ts +11 -0
  198. package/package.json +1 -1
  199. package/popover/index.cjs +1 -1
  200. package/popover/index.js +1 -1
  201. package/progress-bar/index.cjs +1 -1
  202. package/progress-bar/index.js +1 -1
  203. package/radio/Radio.d.ts +1 -4
  204. package/radio/index.cjs +1 -1
  205. package/radio/index.js +1 -1
  206. package/{scrollIntoView-Hwb_aaNf.js → scrollIntoView-BLnsPvFA.js} +1 -1
  207. package/scrollIntoView-joIyo-Jt.cjs +1 -0
  208. package/search-field/index.cjs +1 -1
  209. package/search-field/index.js +1 -1
  210. package/search-field/intl/translations.json.d.ts +11 -0
  211. package/select/index.cjs +1 -1
  212. package/select/index.js +1 -1
  213. package/select/intl/translations.json.d.ts +17 -0
  214. package/spinner/Spinner.d.ts +1 -0
  215. package/spinner/index.cjs +1 -1
  216. package/spinner/index.js +1 -1
  217. package/spinner/intl/translations.json.d.ts +11 -0
  218. package/table/index.cjs +1 -1
  219. package/table/index.js +1 -1
  220. package/tabs/Tab.d.ts +4 -0
  221. package/tabs/TabList.d.ts +3 -0
  222. package/tabs/TabPanel.d.ts +4 -0
  223. package/tabs/Tabs.d.ts +11 -5
  224. package/tabs/index.cjs +1 -1
  225. package/tabs/index.d.ts +3 -0
  226. package/tabs/index.js +5 -2
  227. package/tag/index.cjs +1 -1
  228. package/tag/index.js +1 -1
  229. package/text/index.cjs +1 -1
  230. package/text/index.js +1 -1
  231. package/textfield/index.cjs +1 -1
  232. package/textfield/index.js +1 -1
  233. package/textfield/intl/translations.json.d.ts +0 -72
  234. package/theme/index.cjs +1 -1
  235. package/theme/index.d.ts +5 -0
  236. package/theme/index.js +2 -2
  237. package/theme/tokens.d.ts +5 -0
  238. package/toast/Toast.d.ts +5 -2
  239. package/toast/index.cjs +1 -1
  240. package/toast/index.js +1 -1
  241. package/toggle-button/index.cjs +1 -1
  242. package/toggle-button/index.js +1 -1
  243. package/{tokens-p6pg1Cea.cjs → tokens-BghDnMdO.cjs} +1 -1
  244. package/{tokens-xp-7KMK7.js → tokens-fEwCQXDv.js} +16 -11
  245. package/tooltip/index.cjs +1 -1
  246. package/tooltip/index.js +1 -1
  247. package/{useButton-B8dB9sot.js → useButton-1-Jf-oHj.js} +3 -3
  248. package/useButton-D60q0SQw.cjs +1 -0
  249. package/{useDateFormatter-CnxoJ4jF.cjs → useDateFormatter-BJBt0jk_.cjs} +1 -1
  250. package/{useDateFormatter-EHm4auIg.js → useDateFormatter-BVCkxVdw.js} +2 -2
  251. package/{useEvent-IsD2Awnh.js → useEvent-CigwyJOw.js} +3 -3
  252. package/useEvent-DPxMu-X9.cjs +1 -0
  253. package/{useField-DvpGZkw_.js → useField-BEBXv5Mh.js} +4 -4
  254. package/useField-D1UkzeaI.cjs +1 -0
  255. package/{useFilter-CUq74PQ2.js → useFilter-CousKe2K.js} +1 -1
  256. package/{useFilter-BTgDWHVx.cjs → useFilter-e2oIVF_O.cjs} +1 -1
  257. package/useFocusRing-B-A1OLhU.cjs +1 -0
  258. package/useFocusRing-DOfBqnUN.js +33 -0
  259. package/useFocusWithin-CG8mAt2D.cjs +1 -0
  260. package/useFocusWithin-T1ifEM_s.js +54 -0
  261. package/{useFocusable-C8uh8K4g.js → useFocusable-ChPA2Jc7.js} +20 -18
  262. package/useFocusable-D7I1ujkW.cjs +1 -0
  263. package/useFormValidation-BlFGdPZB.cjs +1 -0
  264. package/{useFormValidation-BIGzfO9h.js → useFormValidation-BzzruZKm.js} +2 -2
  265. package/{useHasTabbableChild-C-1mZUQe.js → useHasTabbableChild-BE81d_ab.js} +2 -2
  266. package/useHasTabbableChild-CoQRpNbC.cjs +1 -0
  267. package/useHighlightSelectionDescription-BfR_vGOe.cjs +1 -0
  268. package/{useHighlightSelectionDescription-CnBDT86u.js → useHighlightSelectionDescription-D73hrkmn.js} +5 -5
  269. package/useHover-BE_XKZKe.cjs +1 -0
  270. package/useHover-DQvJ3Y-W.js +262 -0
  271. package/useLabels-CSU0kbtJ.cjs +1 -0
  272. package/{useLabels-BDwkBYbE.js → useLabels-LrKQiY11.js} +1 -1
  273. package/{useListState-CrZFZffI.js → useListState-CebsX_1d.js} +1 -1
  274. package/{useListState-Bx8u4IFG.cjs → useListState-DymkJGDF.cjs} +1 -1
  275. package/useLocalizedStringFormatter-BO2iZEL0.cjs +1 -0
  276. package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
  277. package/useLocalizedStringFormatter-CL9MUZ8A.js +22 -0
  278. package/useLocalizedStringFormatter-N0AyjzbM.js +25 -0
  279. package/usePress-BooY_CAy.cjs +7 -0
  280. package/{usePress-CNjmDzap.js → usePress-DuR4pVsE.js} +129 -128
  281. package/{useSingleSelectListState-0AGHxvy3.js → useSingleSelectListState-BLXvGjLI.js} +1 -1
  282. package/{useSingleSelectListState-Cl3KV5E1.cjs → useSingleSelectListState-BPhlCU26.cjs} +1 -1
  283. package/{useTextField-Cw-33OP_.js → useTextField-C-sUypsx.js} +8 -8
  284. package/useTextField-DnRrCg5o.cjs +1 -0
  285. package/utils/intl/useLocalizedStringFormatter.d.ts +2 -0
  286. package/utils-CoCR_Fce.js +234 -0
  287. package/utils-DHNZrQmj.cjs +1 -0
  288. package/utils-DJhAJHk_.js +152 -0
  289. package/utils-Dvdohqm9.cjs +1 -0
  290. package/AccordionItem-BGWiWjxA.cjs +0 -1
  291. package/Breadcrumbs-DtjJ1UmU.cjs +0 -1
  292. package/Button-htW9qIsS.cjs +0 -1
  293. package/Checkbox-DqcPg5hz.cjs +0 -1
  294. package/CheckboxGroup-BBrSMuDY.cjs +0 -1
  295. package/CheckboxGroup-CLgixk2p.js +0 -243
  296. package/Collection-BIDsXNhi.cjs +0 -1
  297. package/ColorSchemeSwitch-C-qWuqkU.cjs +0 -16
  298. package/ComboBox-CWJUg9Xx.cjs +0 -1
  299. package/DateInputDivider-ADvOavHw.cjs +0 -1
  300. package/DateRangePicker-BsAHhy99.cjs +0 -6
  301. package/Dialog-B8GTYbvu.cjs +0 -1
  302. package/Dialog-BOrYdX50.cjs +0 -1
  303. package/Dialog-CXNu48AC.js +0 -208
  304. package/DragAndDrop-DNth776R.cjs +0 -1
  305. package/FieldError-CAcjosk_.js +0 -46
  306. package/FieldError-CKBb2-mp.cjs +0 -1
  307. package/FocusScope-5c9SVBcR.cjs +0 -1
  308. package/Group-B6EslsHZ.js +0 -44
  309. package/Group-CgiqQHH1.cjs +0 -1
  310. package/InfoBanner-C2kTIsrB.cjs +0 -1
  311. package/Input-DKSAYvsw.cjs +0 -1
  312. package/Label-7Ybb99CE.cjs +0 -1
  313. package/Label-BwJrdqEE.js +0 -70
  314. package/Layout-1g6bMH62.cjs +0 -16
  315. package/Layout-Ey8flY7E.js +0 -468
  316. package/Link-BQhauBuw.cjs +0 -1
  317. package/ListBox-DP9M4H6R.cjs +0 -1
  318. package/ListBoxSection-BGaigBnG.cjs +0 -1
  319. package/Logo-DT2_2O43.cjs +0 -1
  320. package/OverlayArrow-D75k-EMl.cjs +0 -1
  321. package/Radio-BwqrdhQE.cjs +0 -1
  322. package/RangeCalendar-BehUaydF.cjs +0 -11
  323. package/SearchField-CxMwDeUM.cjs +0 -6
  324. package/Select-2q1iSzAX.cjs +0 -1
  325. package/Select-BVQZtoi9.js +0 -646
  326. package/SelectionManager-CwYux2h3.cjs +0 -1
  327. package/Spinner-D31SXm-U.js +0 -41
  328. package/Spinner-P35rvvsl.cjs +0 -6
  329. package/Table-B40CGLT-.cjs +0 -16
  330. package/Tabs-B4oZJkZG.js +0 -404
  331. package/Tabs-DA2qXhzb.cjs +0 -1
  332. package/Tag-DPAGmcMK.cjs +0 -1
  333. package/Text-BoXuUVVH.js +0 -15
  334. package/TextArea-C7JZ_pQd.cjs +0 -1
  335. package/TextArea-XeBCSyzl.js +0 -191
  336. package/TextField-BgNdhZi_.cjs +0 -1
  337. package/Toast-AbDA1BOs.cjs +0 -1
  338. package/ToggleButtonGroup-BFDoj0P6.cjs +0 -1
  339. package/Tooltip-DeBuBKhS.cjs +0 -1
  340. package/VisuallyHidden-CLWHbz2n.cjs +0 -1
  341. package/assets/Tabs.css +0 -1
  342. package/context-DjwhtgxQ.cjs +0 -1
  343. package/scrollIntoView-C8doLzDd.cjs +0 -1
  344. package/useButton-cpNi-fY4.cjs +0 -1
  345. package/useEvent-DxBxMX2V.cjs +0 -1
  346. package/useField-CXKYU74k.cjs +0 -1
  347. package/useFocusRing-CbImDrwF.cjs +0 -1
  348. package/useFocusRing-XnR3cZjO.js +0 -82
  349. package/useFocusable-NUVSFcRC.cjs +0 -1
  350. package/useFormValidation-ClximP89.cjs +0 -1
  351. package/useHasTabbableChild-DCBTulUQ.cjs +0 -1
  352. package/useHighlightSelectionDescription-CzYucm61.cjs +0 -1
  353. package/useHover-DjIHtjGN.js +0 -490
  354. package/useHover-_mv5J4_q.cjs +0 -1
  355. package/useLabels-BLOfc6Y-.cjs +0 -1
  356. package/useLocalizedStringFormatter-BKoxGZf1.js +0 -96
  357. package/useLocalizedStringFormatter-BsxLt89S.cjs +0 -1
  358. package/useLocalizedStringFormatter-D3JQyjb4.js +0 -21
  359. package/useLocalizedStringFormatter-ioacM-Yt.cjs +0 -1
  360. package/usePress-0AjDbW9R.cjs +0 -7
  361. package/useTextField--czJtyNd.cjs +0 -1
  362. package/utils-BNtZbAib.cjs +0 -1
  363. package/utils-DIMfEPAt.js +0 -308
@@ -1,29 +1,33 @@
1
1
  import { jsx as be } from "react/jsx-runtime";
2
2
  import { c as Re } from "./clsx-OuTLNxxd.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
- import { $ as at } from "./Form-CXcEMuBf.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";
3
+ import { $ as Se, b as qu, c as Yu, d as Be, a as Te, e as Ne, f as Ju } from "./utils-DJhAJHk_.js";
4
+ import { $ as Xu } from "./FieldError-BbR-29BM.js";
5
+ import { $ as Qu } from "./Form-CXcEMuBf.js";
6
+ import { a as je, $ as et } from "./Group-CpkUzEAs.js";
7
+ import { $ as Ie, a as at } from "./Input-LnjmFI1x.js";
8
+ import { g as ut, h as tt, f as rt, c as nt } from "./Button-CFYdzG0H.js";
9
+ import { a as it } from "./Text-92cPh38G.js";
10
+ import { c as ne, p as ee, x as dt, y as ot, w as lt, b as st, a as ct, $ as Q, z as mt, q as ft, t as Dt, A as $t, B as pt, u as Oe } from "./useDateFormatter-BVCkxVdw.js";
11
+ import { d as Ee, a as ae, $ as bt, c as yt } from "./mergeProps-C1U1OIeJ.js";
11
12
  import { $ as ye } from "./filterDOMProps-D6KHYVBX.js";
12
13
  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";
14
+ import { $ as te } from "./context-CGNJ3grH.js";
15
+ import { a as se, $ as ht } from "./LocalizedStringFormatter-D-4Qyql0.js";
16
+ import { a as vt, b as gt, c as Ce, f as Bt, $ as Et } from "./useFormValidation-BzzruZKm.js";
17
+ import { $ as Ct } from "./useControlledState-u436Wbp1.js";
18
+ import { b as ze, $ as Me } from "./FocusScope-D_hwN_TJ.js";
19
+ import { a as Ft } from "./usePress-DuR4pVsE.js";
20
+ import { a as wt, c as Pt } from "./scrollIntoView-BLnsPvFA.js";
21
+ import { $ as kt } from "./useFocusWithin-T1ifEM_s.js";
22
+ import { $ as At } from "./useField-BEBXv5Mh.js";
23
+ import { $ as _e, a as Vt } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
24
+ import { $ as Rt } from "./useLabels-LrKQiY11.js";
25
+ import { $ as St } from "./getScrollParent-CT_L9LUr.js";
26
+ import { l as Tt, h as Nt, $ as jt } from "./useHover-DQvJ3Y-W.js";
27
+ import { $ as me } from "./useEvent-CigwyJOw.js";
28
+ import { $ as It } from "./useFilter-CousKe2K.js";
29
+ import { $ as Ot } from "./utils-CoCR_Fce.js";
30
+ import { $ as zt } from "./useFocusRing-DOfBqnUN.js";
27
31
  import './assets/DateInputDivider.css';const Mt = new RegExp("^.*\\(.*\\).*$"), _t = [
28
32
  "latn",
29
33
  "arab",
@@ -92,7 +96,7 @@ class Ut {
92
96
  minimumFractionDigits: Math.min(((r = this.options.minimumFractionDigits) !== null && r !== void 0 ? r : 0) + 2, 20),
93
97
  maximumFractionDigits: Math.min(((i = this.options.maximumFractionDigits) !== null && i !== void 0 ? i : 0) + 2, 20)
94
98
  };
95
- return new Ue(this.locale, o).parse(new rt(this.locale, o).format(t));
99
+ return new Ue(this.locale, o).parse(new ut(this.locale, o).format(t));
96
100
  }
97
101
  return this.options.currencySign === "accounting" && Mt.test(a) && (t = -1 * t), t;
98
102
  }
@@ -355,7 +359,7 @@ function Lt(e) {
355
359
  function Gt(e) {
356
360
  const a = z(void 0);
357
361
  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;
358
- const y = ze(Lt(Ba), "@react-aria/spinbutton"), x = () => clearTimeout(a.current);
362
+ const y = _e(Lt(Ba), "@react-aria/spinbutton"), x = () => clearTimeout(a.current);
359
363
  le(() => () => x(), []);
360
364
  let A = (p) => {
361
365
  if (!(p.ctrlKey || p.metaKey || p.shiftKey || p.altKey || f))
@@ -391,22 +395,22 @@ function Gt(e) {
391
395
  S.current = !1;
392
396
  }, T = t === "" ? y.format("Empty") : (t || `${u}`).replace("-", "−");
393
397
  le(() => {
394
- S.current && (nt("assertive"), it(T, "assertive"));
398
+ S.current && (tt("assertive"), rt(T, "assertive"));
395
399
  }, [
396
400
  T
397
401
  ]);
398
- const I = Be((p) => {
402
+ const I = Ee((p) => {
399
403
  x(), c == null || c(), a.current = window.setTimeout(() => {
400
404
  (i === void 0 || isNaN(i) || u === void 0 || isNaN(u) || u < i) && I(60);
401
405
  }, p);
402
- }), N = Be((p) => {
406
+ }), N = Ee((p) => {
403
407
  x(), s == null || s(), a.current = window.setTimeout(() => {
404
408
  (r === void 0 || isNaN(r) || u === void 0 || isNaN(u) || u > r) && N(60);
405
409
  }, p);
406
410
  });
407
411
  let k = (p) => {
408
412
  p.preventDefault();
409
- }, { addGlobalListener: M, removeAllGlobalListeners: $ } = Nt();
413
+ }, { addGlobalListener: M, removeAllGlobalListeners: $ } = Ot();
410
414
  return {
411
415
  spinButtonProps: {
412
416
  role: "spinbutton",
@@ -1127,7 +1131,7 @@ he = {
1127
1131
  "zh-TW": tu
1128
1132
  };
1129
1133
  function Wt(e, a, u) {
1130
- let { direction: t } = te(), r = P(() => Me(a), [
1134
+ let { direction: t } = te(), r = P(() => ze(a), [
1131
1135
  a
1132
1136
  ]), i = (n) => {
1133
1137
  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))
@@ -1152,7 +1156,7 @@ function Wt(e, a, u) {
1152
1156
  }, o = () => {
1153
1157
  var n;
1154
1158
  if (!a.current) return;
1155
- let c = (n = window.event) === null || n === void 0 ? void 0 : n.target, l = _e(a.current, {
1159
+ let c = (n = window.event) === null || n === void 0 ? void 0 : n.target, l = Me(a.current, {
1156
1160
  tabbable: !0
1157
1161
  });
1158
1162
  if (c && (l.currentNode = c, c = l.previousNode()), !c) {
@@ -1167,7 +1171,7 @@ function Wt(e, a, u) {
1167
1171
  else break;
1168
1172
  }
1169
1173
  c && c.focus();
1170
- }, { pressProps: f } = wt({
1174
+ }, { pressProps: f } = Ft({
1171
1175
  preventFocusOnPress: !0,
1172
1176
  allowTextSelectionOnPress: !0,
1173
1177
  onPressStart(n) {
@@ -1177,12 +1181,12 @@ function Wt(e, a, u) {
1177
1181
  (n.pointerType === "touch" || n.pointerType === "pen") && o();
1178
1182
  }
1179
1183
  });
1180
- return ee(f, {
1184
+ return ae(f, {
1181
1185
  onKeyDown: i
1182
1186
  });
1183
1187
  }
1184
1188
  function Ae(e, a, u) {
1185
- let t = _e(e, {
1189
+ let t = Me(e, {
1186
1190
  tabbable: !0
1187
1191
  }), r = t.nextNode(), i = null, o = 1 / 0;
1188
1192
  for (; r; ) {
@@ -1197,12 +1201,12 @@ function Ht(e) {
1197
1201
  const ru = /* @__PURE__ */ new WeakMap(), De = "__role_" + Date.now(), qt = "__focusManager_" + Date.now();
1198
1202
  function nu(e, a, u) {
1199
1203
  var t;
1200
- let { isInvalid: r, validationErrors: i, validationDetails: o } = a.displayValidation, { labelProps: f, fieldProps: n, descriptionProps: c, errorMessageProps: l } = Rt({
1204
+ let { isInvalid: r, validationErrors: i, validationDetails: o } = a.displayValidation, { labelProps: f, fieldProps: n, descriptionProps: c, errorMessageProps: l } = At({
1201
1205
  ...e,
1202
1206
  labelElementType: "span",
1203
1207
  isInvalid: r,
1204
1208
  errorMessage: e.errorMessage || i
1205
- }), s = z(null), { focusWithinProps: D } = At({
1209
+ }), s = z(null), { focusWithinProps: D } = kt({
1206
1210
  ...e,
1207
1211
  onFocusWithin($) {
1208
1212
  var p;
@@ -1213,14 +1217,14 @@ function nu(e, a, u) {
1213
1217
  a.confirmPlaceholder(), a.value !== s.current && a.commitValidation(), (p = e.onBlur) === null || p === void 0 || p.call(e, $);
1214
1218
  },
1215
1219
  onFocusWithinChange: e.onFocusChange
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, {
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, {
1217
1221
  [y]: a.formatValue({
1218
1222
  month: "long"
1219
1223
  })
1220
- }) : "", A = Pt(x), S = e[De] === "presentation" ? n["aria-describedby"] : [
1224
+ }) : "", A = wt(x), S = e[De] === "presentation" ? n["aria-describedby"] : [
1221
1225
  A["aria-describedby"],
1222
1226
  n["aria-describedby"]
1223
- ].filter(Boolean).join(" ") || void 0, C = e[qt], E = P(() => C || Me(u), [
1227
+ ].filter(Boolean).join(" ") || void 0, C = e[qt], E = P(() => C || ze(u), [
1224
1228
  C,
1225
1229
  u
1226
1230
  ]), T = Wt(a, u, e[De] === "presentation");
@@ -1236,7 +1240,7 @@ function nu(e, a, u) {
1236
1240
  let I = z(e.autoFocus), N;
1237
1241
  e[De] === "presentation" ? N = {
1238
1242
  role: "presentation"
1239
- } : N = ee(n, {
1243
+ } : N = ae(n, {
1240
1244
  role: "group",
1241
1245
  "aria-disabled": e.isDisabled || void 0,
1242
1246
  "aria-describedby": S
@@ -1244,7 +1248,7 @@ function nu(e, a, u) {
1244
1248
  I.current && E.focusFirst(), I.current = !1;
1245
1249
  }, [
1246
1250
  E
1247
- ]), gt(e.inputRef, a.value, a.setValue), Bt({
1251
+ ]), vt(e.inputRef, a.value, a.setValue), gt({
1248
1252
  ...e,
1249
1253
  focus() {
1250
1254
  E.focusFirst();
@@ -1266,7 +1270,7 @@ function nu(e, a, u) {
1266
1270
  E.focusFirst();
1267
1271
  }
1268
1272
  },
1269
- fieldProps: ee(M, N, T, D, {
1273
+ fieldProps: ae(M, N, T, D, {
1270
1274
  onKeyDown($) {
1271
1275
  e.onKeyDown && e.onKeyDown($);
1272
1276
  },
@@ -1289,7 +1293,7 @@ function Yt(e) {
1289
1293
  return e && e.__esModule ? e.default : e;
1290
1294
  }
1291
1295
  function Jt() {
1292
- let { locale: e } = te(), a = ht(Yt(he), "@react-aria/datepicker");
1296
+ let { locale: e } = te(), a = Vt(Yt(he), "@react-aria/datepicker");
1293
1297
  return P(() => {
1294
1298
  try {
1295
1299
  return new Intl.DisplayNames(e, {
@@ -1365,14 +1369,14 @@ function Qt(e, a, u) {
1365
1369
  d = h === 0 ? "" : d, d.length === 0 || h === 0 ? a.clearSegment(e.type) : a.setSegment(e.type, h), t.current = d;
1366
1370
  } else e.type === "dayPeriod" && a.clearSegment(e.type);
1367
1371
  }, S = (d) => {
1368
- if (d.key === "a" && (It() ? d.metaKey : d.ctrlKey) && d.preventDefault(), !(d.ctrlKey || d.metaKey || d.shiftKey || d.altKey))
1372
+ if (d.key === "a" && (Nt() ? d.metaKey : d.ctrlKey) && d.preventDefault(), !(d.ctrlKey || d.metaKey || d.shiftKey || d.altKey))
1369
1373
  switch (d.key) {
1370
1374
  case "Backspace":
1371
1375
  case "Delete":
1372
1376
  d.preventDefault(), d.stopPropagation(), A();
1373
1377
  break;
1374
1378
  }
1375
- }, { startsWith: C } = zt({
1379
+ }, { startsWith: C } = It({
1376
1380
  sensitivity: "base"
1377
1381
  }), E = ne({
1378
1382
  hour: "numeric",
@@ -1393,7 +1397,7 @@ function Qt(e, a, u) {
1393
1397
  timeZone: "UTC"
1394
1398
  }), k = P(() => {
1395
1399
  if (e.type !== "era") return [];
1396
- let d = ae(new lt(1, 1, 1), a.calendar), h = a.calendar.getEras().map((R) => {
1400
+ let d = ee(new dt(1, 1, 1), a.calendar), h = a.calendar.getEras().map((R) => {
1397
1401
  let L = d.set({
1398
1402
  year: 1,
1399
1403
  month: 1,
@@ -1452,8 +1456,8 @@ function Qt(e, a, u) {
1452
1456
  }
1453
1457
  }
1454
1458
  }, $ = () => {
1455
- t.current = "", u.current && kt(u.current, {
1456
- containingElement: Tt(u.current)
1459
+ t.current = "", u.current && Pt(u.current, {
1460
+ containingElement: St(u.current)
1457
1461
  });
1458
1462
  let d = window.getSelection();
1459
1463
  d == null || d.collapse(u.current);
@@ -1485,7 +1489,7 @@ function Qt(e, a, u) {
1485
1489
  u.current && (u.current.textContent = V.current), B != null && (C(T, B) || C(I, B)) && M(B);
1486
1490
  break;
1487
1491
  }
1488
- }), qu(() => {
1492
+ }), bt(() => {
1489
1493
  let d = u.current;
1490
1494
  return () => {
1491
1495
  document.activeElement === d && (l.focusPrevious() || l.focusNext());
@@ -1494,7 +1498,7 @@ function Qt(e, a, u) {
1494
1498
  u,
1495
1499
  l
1496
1500
  ]);
1497
- let b = jt() || e.type === "timeZoneName" ? {
1501
+ let b = Tt() || e.type === "timeZoneName" ? {
1498
1502
  role: "textbox",
1499
1503
  "aria-valuemax": null,
1500
1504
  "aria-valuemin": null,
@@ -1504,7 +1508,7 @@ function Qt(e, a, u) {
1504
1508
  a.segments
1505
1509
  ]);
1506
1510
  e !== _ && !a.isInvalid && (c = void 0);
1507
- let q = Yu(), U = !a.isDisabled && !a.isReadOnly && e.isEditable, F = e.type === "literal" ? "" : o.of(e.type), Z = St({
1511
+ let q = yt(), U = !a.isDisabled && !a.isReadOnly && e.isEditable, F = e.type === "literal" ? "" : o.of(e.type), Z = Rt({
1508
1512
  "aria-label": `${F}${f ? `, ${f}` : ""}${n ? ", " : ""}`,
1509
1513
  "aria-labelledby": n
1510
1514
  });
@@ -1522,7 +1526,7 @@ function Qt(e, a, u) {
1522
1526
  (d === "numeric" || d === "2-digit") && (K.direction = "ltr");
1523
1527
  }
1524
1528
  return {
1525
- segmentProps: ee(y, Z, {
1529
+ segmentProps: ae(y, Z, {
1526
1530
  id: q,
1527
1531
  ...b,
1528
1532
  "aria-invalid": a.isInvalid ? "true" : void 0,
@@ -1842,7 +1846,7 @@ function Uu() {
1842
1846
  function pe(e, a, u, t, r) {
1843
1847
  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 = [];
1844
1848
  if (n) {
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;
1849
+ let l = Uu(), s = se.getGlobalDictionaryForPackage("@react-stately/datepicker") || _u, D = new ht(l, s), g = new Q(l, de({}, r)), v = g.resolvedOptions().timeZone;
1846
1850
  o && a != null && c.push(D.format("rangeUnderflow", {
1847
1851
  minValue: g.format(a.toDate(v))
1848
1852
  })), i && u != null && c.push(D.format("rangeOverflow", {
@@ -1867,7 +1871,7 @@ function pe(e, a, u, t, r) {
1867
1871
  }
1868
1872
  };
1869
1873
  }
1870
- function Zr(e, a, u, t, r) {
1874
+ function Wr(e, a, u, t, r) {
1871
1875
  var i;
1872
1876
  let o = pe((i = e == null ? void 0 : e.start) !== null && i !== void 0 ? i : null, a, u, t, r);
1873
1877
  var f;
@@ -1880,7 +1884,7 @@ function Zr(e, a, u, t, r) {
1880
1884
  l.getStringForLocale("rangeReversed", Uu())
1881
1885
  ],
1882
1886
  validationDetails: {
1883
- ...Et,
1887
+ ...Bt,
1884
1888
  rangeUnderflow: !0,
1885
1889
  rangeOverflow: !0,
1886
1890
  valid: !1
@@ -1918,23 +1922,23 @@ function de(e, a) {
1918
1922
  let n = r.slice(o, f + 1).reduce((l, s) => (l[s] = e[s], l), {});
1919
1923
  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;
1920
1924
  }
1921
- function Kr(e) {
1922
- return e && "hour" in e ? e : new Dt();
1925
+ function Hr(e) {
1926
+ return e && "hour" in e ? e : new mt();
1923
1927
  }
1924
1928
  function Zu(e, a) {
1925
1929
  if (e === null) return null;
1926
1930
  if (e)
1927
- return ae(e, a);
1931
+ return ee(e, a);
1928
1932
  }
1929
1933
  function X(e, a, u, t) {
1930
1934
  if (e) return Zu(e, u);
1931
- let r = ae(st(t ?? ct()).set({
1935
+ let r = ee(ot(t ?? lt()).set({
1932
1936
  hour: 0,
1933
1937
  minute: 0,
1934
1938
  second: 0,
1935
1939
  millisecond: 0
1936
1940
  }), u);
1937
- return a === "year" || a === "month" || a === "day" ? mt(r) : t ? r : ft(r);
1941
+ return a === "year" || a === "month" || a === "day" ? st(r) : t ? r : ct(r);
1938
1942
  }
1939
1943
  function rr(e, a) {
1940
1944
  let u = e && "timeZone" in e ? e.timeZone : void 0, t = e && "minute" in e ? "minute" : "day";
@@ -2367,7 +2371,7 @@ function Lu(e) {
2367
2371
  v
2368
2372
  ]);
2369
2373
  var x;
2370
- let [A, S] = Ft(e.value, (x = e.defaultValue) !== null && x !== void 0 ? x : null, e.onChange), C = P(() => {
2374
+ let [A, S] = Ct(e.value, (x = e.defaultValue) !== null && x !== void 0 ? x : null, e.onChange), C = P(() => {
2371
2375
  var m;
2372
2376
  return (m = Zu(A, y)) !== null && m !== void 0 ? m : null;
2373
2377
  }, [
@@ -2405,7 +2409,7 @@ function Lu(e) {
2405
2409
  ...V
2406
2410
  } : {}), q = z(null), U = z(y);
2407
2411
  le(() => {
2408
- $t(y, U.current) || (U.current = y, T((m) => Object.keys(b).length > 0 ? ae(m, y) : X(e.placeholderValue, s, y, D)));
2412
+ ft(y, U.current) || (U.current = y, T((m) => Object.keys(b).length > 0 ? ee(m, y) : X(e.placeholderValue, s, y, D)));
2409
2413
  }, [
2410
2414
  y,
2411
2415
  s,
@@ -2418,7 +2422,7 @@ function Lu(e) {
2418
2422
  let F = C && Object.keys(b).length >= Object.keys(V).length ? C : E, Z = (m) => {
2419
2423
  if (e.isDisabled || e.isReadOnly) return;
2420
2424
  let w = Object.keys(b), j = Object.keys(V);
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;
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 = ee(m, (l == null ? void 0 : l.calendar) || new Dt()), S(m)) : T(m), q.current = null;
2422
2426
  }, K = P(() => F.toDate(g), [
2423
2427
  F,
2424
2428
  g
@@ -2455,7 +2459,7 @@ function Lu(e) {
2455
2459
  n,
2456
2460
  c,
2457
2461
  k
2458
- ]), L = Ct({
2462
+ ]), L = Et({
2459
2463
  ...e,
2460
2464
  value: A,
2461
2465
  builtinValidation: R
@@ -2592,13 +2596,13 @@ function ie(e, a, u) {
2592
2596
  case "month":
2593
2597
  return {
2594
2598
  value: e.month,
2595
- minValue: yt(e),
2599
+ minValue: pt(e),
2596
2600
  maxValue: e.calendar.getMonthsInYear(e)
2597
2601
  };
2598
2602
  case "day":
2599
2603
  return {
2600
2604
  value: e.day,
2601
- minValue: bt(e),
2605
+ minValue: $t(e),
2602
2606
  maxValue: e.calendar.getDaysInMonth(e)
2603
2607
  };
2604
2608
  }
@@ -2695,22 +2699,22 @@ function lr(e, a, u, t) {
2695
2699
  }
2696
2700
  throw new Error("Unknown segment: " + a);
2697
2701
  }
2698
- const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__PURE__ */ xe(null), Lr = /* @__PURE__ */ ue(function(a, u) {
2702
+ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__PURE__ */ xe(null), qr = /* @__PURE__ */ ue(function(a, u) {
2699
2703
  [a, u] = Se(a, u, Gu);
2700
- let { validationBehavior: t } = Ju(at) || {};
2704
+ let { validationBehavior: t } = qu(Qu) || {};
2701
2705
  var r, i;
2702
2706
  let o = (i = (r = a.validationBehavior) !== null && r !== void 0 ? r : t) !== null && i !== void 0 ? i : "native", { locale: f } = te(), n = Lu({
2703
2707
  ...a,
2704
2708
  locale: f,
2705
2709
  createCalendar: Oe,
2706
2710
  validationBehavior: o
2707
- }), c = z(null), [l, s] = Xu(!a["aria-label"] && !a["aria-labelledby"]), D = z(null), { labelProps: g, fieldProps: v, inputProps: y, descriptionProps: x, errorMessageProps: A, ...S } = nu({
2708
- ...Ee(a),
2711
+ }), c = z(null), [l, s] = Yu(!a["aria-label"] && !a["aria-labelledby"]), D = z(null), { labelProps: g, fieldProps: v, inputProps: y, descriptionProps: x, errorMessageProps: A, ...S } = nu({
2712
+ ...Be(a),
2709
2713
  label: s,
2710
2714
  inputRef: D,
2711
2715
  validationBehavior: o
2712
2716
  }, n, c), C = Te({
2713
- ...Ee(a),
2717
+ ...Be(a),
2714
2718
  values: {
2715
2719
  state: n,
2716
2720
  isInvalid: n.isInvalid,
@@ -2741,7 +2745,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2741
2745
  }
2742
2746
  ],
2743
2747
  [
2744
- dt,
2748
+ nt,
2745
2749
  {
2746
2750
  ...g,
2747
2751
  ref: l,
@@ -2749,7 +2753,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2749
2753
  }
2750
2754
  ],
2751
2755
  [
2752
- ot,
2756
+ it,
2753
2757
  {
2754
2758
  slots: {
2755
2759
  description: x,
@@ -2758,7 +2762,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2758
2762
  }
2759
2763
  ],
2760
2764
  [
2761
- et,
2765
+ Xu,
2762
2766
  S
2763
2767
  ]
2764
2768
  ]
@@ -2816,7 +2820,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2816
2820
  }, /* @__PURE__ */ O.createElement(Wu, e));
2817
2821
  }), Wu = /* @__PURE__ */ ue((e, a) => {
2818
2822
  let { className: u, children: t } = e, r = H(re), i = H(ve), o = r ?? i;
2819
- return /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(ut, {
2823
+ return /* @__PURE__ */ O.createElement(O.Fragment, null, /* @__PURE__ */ O.createElement(et, {
2820
2824
  ...e,
2821
2825
  ref: a,
2822
2826
  slot: e.slot || void 0,
@@ -2825,9 +2829,9 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2825
2829
  isDisabled: o.isDisabled
2826
2830
  }, o.segments.map((f, n) => /* @__PURE__ */ xt(t(f), {
2827
2831
  key: n
2828
- }))), /* @__PURE__ */ O.createElement(tt, null));
2832
+ }))), /* @__PURE__ */ O.createElement(at, null));
2829
2833
  }), mr = /* @__PURE__ */ ue(function({ segment: a, ...u }, t) {
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({
2834
+ let r = H(re), i = H(ve), o = r ?? i, f = Ju(t), { segmentProps: n } = Qt(a, o, f), { focusProps: c, isFocused: l, isFocusVisible: s } = zt(), { hoverProps: D, isHovered: g } = jt({
2831
2835
  ...u,
2832
2836
  isDisabled: o.isDisabled || a.type === "literal"
2833
2837
  }), { isEditable: v, ...y } = a, x = Te({
@@ -2845,7 +2849,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2845
2849
  defaultClassName: "react-aria-DateSegment"
2846
2850
  });
2847
2851
  return /* @__PURE__ */ O.createElement("span", {
2848
- ...ee(ye(u), n, c, D),
2852
+ ...ae(ye(u), n, c, D),
2849
2853
  ...x,
2850
2854
  style: n.style,
2851
2855
  ref: f,
@@ -2860,7 +2864,7 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2860
2864
  });
2861
2865
  }), fr = "_dateSegment_1lvsj_4", Dr = {
2862
2866
  dateSegment: fr
2863
- }, Gr = ({
2867
+ }, Yr = ({
2864
2868
  className: e,
2865
2869
  ...a
2866
2870
  }) => /* @__PURE__ */ be(
@@ -2872,13 +2876,13 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2872
2876
  ), $r = "_dateInput_bhs3c_4", pr = "_divider_bhs3c_24", Hu = {
2873
2877
  dateInput: $r,
2874
2878
  divider: pr
2875
- }, Wr = ({ className: e, ...a }) => /* @__PURE__ */ be(
2879
+ }, Jr = ({ className: e, ...a }) => /* @__PURE__ */ be(
2876
2880
  sr,
2877
2881
  {
2878
2882
  className: Re(Hu.dateInput, e),
2879
2883
  ...a
2880
2884
  }
2881
- ), Hr = () => /* @__PURE__ */ be(
2885
+ ), Xr = () => /* @__PURE__ */ be(
2882
2886
  "span",
2883
2887
  {
2884
2888
  "aria-hidden": "true",
@@ -2887,10 +2891,10 @@ const Gu = /* @__PURE__ */ xe(null), re = /* @__PURE__ */ xe(null), ve = /* @__P
2887
2891
  }
2888
2892
  );
2889
2893
  export {
2890
- Lr as $,
2891
- Gr as D,
2892
- Wr as a,
2893
- Hr as b,
2894
+ qr as $,
2895
+ Yr as D,
2896
+ Jr as a,
2897
+ Xr as b,
2894
2898
  Wt as c,
2895
2899
  De as d,
2896
2900
  he as e,
@@ -2898,7 +2902,7 @@ export {
2898
2902
  rr as g,
2899
2903
  pe as h,
2900
2904
  de as i,
2901
- Kr as j,
2902
- Zr as k,
2905
+ Hr as j,
2906
+ Wr as k,
2903
2907
  Gu as l
2904
2908
  };
@@ -0,0 +1,6 @@
1
+ "use strict";require('./assets/DateRangePicker.css');const $=require("react/jsx-runtime"),s=require("react"),J=require("./clsx-C11secjj.cjs"),ee=require("./RangeCalendar-C1LFeOVk.cjs"),f=require("./DateInputDivider-3BvwXXa9.cjs"),Q=require("./FieldError-bRTpchvr.cjs"),Y=require("./Label-CNmTN1YY.cjs"),$e=require("./Text-DBHWi5gA.cjs"),A=require("./Button-DExMoP5f.cjs"),S=require("./utils-DHNZrQmj.cjs"),N=require("./Dialog-CSnN6baf.cjs"),ve=require("./FieldError-MVsU-Mgw.cjs"),me=require("./Form-BuOomA4T.cjs"),ae=require("./Group-DOpbdoAi.cjs"),oe=require("./Text-CfcjRtke.cjs"),te=require("./filterDOMProps-BS2lrgFA.cjs"),le=require("./OverlayArrow-DpZ1FqOd.cjs"),E=require("./useDateFormatter-BJBt0jk_.cjs"),L=require("./useFormValidation-BlFGdPZB.cjs"),xe=require("./useControlledState-D0L6S_5r.cjs"),he=require("./FocusScope-vcXLOQiu.cjs"),z=require("./mergeProps-B5KXZAI3.cjs"),ge=require("./scrollIntoView-joIyo-Jt.cjs"),ye=require("./useFocusWithin-CG8mAt2D.cjs"),Pe=require("./useField-D1UkzeaI.cjs"),De=require("./context-Df3XbgBG.cjs"),Ve=require("./useLocalizedStringFormatter-BiX5BTlb.cjs"),pe=require("./useFocusRing-B-A1OLhU.cjs"),Te=require("./createLucideIcon-Cg_wkoIA.cjs");function Ie(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=Ie(s);function Me(e){return e&&e.__esModule?e.default:e}function je(e,a,l){let c=z.$bdb11010cef70236$export$f680877a34711e37(),b=z.$bdb11010cef70236$export$f680877a34711e37(),v=z.$bdb11010cef70236$export$f680877a34711e37(),u=Ve.$fca6afa0e843324b$export$f12b703ca79dfbb1(Me(f.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:i,validationErrors:t,validationDetails:F}=a.displayValidation,{labelProps:k,fieldProps:m,descriptionProps:B,errorMessageProps:R}=Pe.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||t}),C=f.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,l),O=m["aria-labelledby"]||m.id,{locale:x}=De.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),T=a.formatValue(x,{month:"long"}),d=T?u.format("selectedDateDescription",{date:T}):"",I=ge.$ef06256079686ba0$export$f8aeda7b10753fa1(d),M=[I["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,D=te.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),j=s.useMemo(()=>he.$9bf71ea28793e738$export$c5251b9e124bf29(l),[l]),Z=s.useRef(!1),{focusWithinProps:p}=ye.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:P=>{let V=document.getElementById(b);if(!(V!=null&&V.contains(P.relatedTarget))){var o,y;Z.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(!Z.current){var V,o;Z.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:z.$3ef42575df84b30b$export$9d1611c77c2fe928(D,C,m,I,p,{role:"group","aria-disabled":e.isDisabled||null,"aria-labelledby":O,"aria-describedby":M,onKeyDown(P){a.isOpen||e.onKeyDown&&e.onKeyDown(P)},onKeyUp(P){a.isOpen||e.onKeyUp&&e.onKeyUp(P)}}),labelProps:{...k,onClick:()=>{j.focusFirst()}},fieldProps:{...m,id:v,[f.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":M,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:B,errorMessageProps:R,buttonProps:{...I,id:c,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${c} ${O}`,"aria-describedby":M,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:b,"aria-labelledby":`${c} ${O}`},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:F}}function Ze(e){return e&&e.__esModule?e.default:e}function ke(e,a,l){var c,b,v;let u=Ve.$fca6afa0e843324b$export$f12b703ca79dfbb1(Ze(f.$dfb4eba373ed9493$exports),"@react-aria/datepicker"),{isInvalid:i,validationErrors:t,validationDetails:F}=a.displayValidation,{labelProps:k,fieldProps:m,descriptionProps:B,errorMessageProps:R}=Pe.$2baaea4c71418dea$export$294aa081a6c6f55d({...e,labelElementType:"span",isInvalid:i,errorMessage:e.errorMessage||t}),C=m["aria-labelledby"]||m.id,{locale:O}=De.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),x=a.formatValue(O,{month:"long"}),T=x?u.format("selectedRangeDescription",{startDate:x.start,endDate:x.end}):"",d=ge.$ef06256079686ba0$export$f8aeda7b10753fa1(T),I={"aria-label":u.format("startDate"),"aria-labelledby":C},M={"aria-label":u.format("endDate"),"aria-labelledby":C},D=z.$bdb11010cef70236$export$f680877a34711e37(),j=z.$bdb11010cef70236$export$f680877a34711e37(),Z=f.$3dfb0f96be0d6a08$export$4a931266a3838b86(a,l),p=[d["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,P=s.useMemo(()=>he.$9bf71ea28793e738$export$c5251b9e124bf29(l,{accept:n=>n.id!==D}),[l,D]),V={[f.$16f0b7bb276bc17e$export$7b3062cd49e80452]:P,[f.$16f0b7bb276bc17e$export$300019f83c56d282]:"presentation","aria-describedby":p,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=te.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),y=s.useRef(!1),{focusWithinProps:_}=ye.$9ab94262bd0047c7$export$420e68273165f4ec({...e,isDisabled:a.isOpen,onBlurWithin:n=>{let g=document.getElementById(j);if(!(g!=null&&g.contains(n.relatedTarget))){var w,X;y.current=!1,(w=e.onBlur)===null||w===void 0||w.call(e,n),(X=e.onFocusChange)===null||X===void 0||X.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)}}}),W=s.useRef(L.$e5be200c675c3b3a$export$dad6ae84456c676a),H=s.useRef(L.$e5be200c675c3b3a$export$dad6ae84456c676a);var r,h;return{groupProps:z.$3ef42575df84b30b$export$9d1611c77c2fe928(o,Z,m,d,_,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":p,onKeyDown(n){a.isOpen||e.onKeyDown&&e.onKeyDown(n)},onKeyUp(n){a.isOpen||e.onKeyUp&&e.onKeyUp(n)}}),labelProps:{...k,onClick:()=>{P.focusFirst()}},buttonProps:{...d,id:D,"aria-haspopup":"dialog","aria-label":u.format("calendar"),"aria-labelledby":`${D} ${C}`,"aria-describedby":p,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:j,"aria-labelledby":`${D} ${C}`},startFieldProps:{...I,...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){W.current=n,a.updateValidation(L.$e5be200c675c3b3a$export$75ee7c75d68f5b0e(n,H.current))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},endFieldProps:{...M,...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(W.current,n))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},descriptionProps:B,errorMessageProps:R,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:F}}function Be(e){let a=le.$fc909762b330b746$export$61c6a8c84e605fb6(e),[l,c]=xe.$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 F;let k=(F=e.shouldCloseOnSelect)!==null&&F!==void 0?F:!0,[m,B]=s.useState(null),[R,C]=s.useState(null);if(l&&(m=l,"hour"in l&&(R=l)),b&&!(v in b))throw new Error("Invalid granularity "+v+" for value "+b.toString());let O=(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:O}),[v,e.hourCycle,e.shouldForceLeadingZeros,u,e.hideTimeZone,O]),{minValue:T,maxValue:d,isDateUnavailable:I}=e,M=s.useMemo(()=>f.$35a22f14a1f04b11$export$f18627323ab57ac0(l,T,d,I,x),[l,T,d,I,x]),D=L.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:l,builtinValidation:M}),j=D.displayValidation.isInvalid,Z=e.validationState||(j?"invalid":null),p=(o,y)=>{c("timeZone"in y?y.set(E.$11d87f3f76e88657$export$93522d1a439f3617(o)):E.$11d87f3f76e88657$export$b21e0b124e224484(o,y)),B(null),C(null),D.commitValidation()};return{...D,value:l,setValue:c,dateValue:m,timeValue:R,setDateValue:o=>{let y=typeof k=="function"?k():k;t?R||y?p(o,R||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)):B(o):(c(o),D.commitValidation()),y&&a.setOpen(!1)},setTimeValue:o=>{m&&o?p(m,o):C(o)},granularity:v,hasTime:t,...a,setOpen(o){!o&&!l&&m&&t&&p(m,R||f.$35a22f14a1f04b11$export$c5221a78ef73c5e9(e.defaultValue||e.placeholderValue)),a.setOpen(o)},validationState:Z,isInvalid:j,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},W=f.$35a22f14a1f04b11$export$7e319ea407e63bc0({},_);return new E.$fb18d541ea1ad717$export$ad991b66133851cf(o,W)}}}function Se(e){var a,l;let c=le.$fc909762b330b746$export$61c6a8c84e605fb6(e),[b,v]=xe.$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,F=r=>{i(r||{start:null,end:null}),K(r)?v(r):v(null)},k=(t==null?void 0:t.start)||(t==null?void 0:t.end)||e.placeholderValue||null,[m,B]=f.$35a22f14a1f04b11$export$2440da353cedad43(k,e.granularity),R=m==="hour"||m==="minute"||m==="second";var C;let O=(C=e.shouldCloseOnSelect)!==null&&C!==void 0?C:!0,[x,T]=s.useState(null),[d,I]=s.useState(null);t&&K(t)&&(x=t,"hour"in t.start&&(d=t));let M=(r,h)=>{F({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)}),T(null),I(null),_.commitValidation()},D=r=>{let h=typeof O=="function"?O():O;R?K(r)&&(h||d!=null&&d.start&&(d!=null&&d.end))?M(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)}):T(r):K(r)?(F(r),_.commitValidation()):T(r),h&&c.setOpen(!1)},j=r=>{K(x)&&K(r)?M(x,r):I(r)},Z=(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",p=s.useMemo(()=>({granularity:m,timeZone:B,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:Z}),[m,e.hourCycle,e.shouldForceLeadingZeros,B,e.hideTimeZone,Z]),{minValue:P,maxValue:V,isDateUnavailable:o}=e,y=s.useMemo(()=>f.$35a22f14a1f04b11$export$80ff8fc0ae339c13(t,P,V,o,p),[t,P,V,o,p]),_=L.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:b,name:s.useMemo(()=>[e.startName,e.endName].filter(r=>r!=null),[e.startName,e.endName]),builtinValidation:y}),W=_.displayValidation.isInvalid,H=e.validationState||(W?"invalid":null);return{..._,value:t,setValue:F,dateRange:x,timeRange:d,granularity:m,hasTime:R,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;j(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;F(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:j,...c,setOpen(r){!r&&!(t!=null&&t.start&&(t!=null&&t.end))&&K(x)&&R&&M(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:W,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,X=e.granularity||(t.end&&"minute"in t.end?"minute":"day"),Oe=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,Oe),de;if(n===w&&g===X&&t.start.compare(t.end)!==0){try{let U=ie.formatRangeToParts(ce,ue),re=-1;for(let q=0;q<U.length;q++){let ne=U[q];if(ne.source==="shared"&&ne.type==="literal")re=q;else if(ne.source==="endRange")break}let fe="",be="";for(let q=0;q<U.length;q++)q<re?fe+=U[q].value:q>re&&(be+=U[q].value);return{start:fe,end:be}}catch{}de=ie}else{let U=f.$35a22f14a1f04b11$export$7e319ea407e63bc0(h,{granularity:X,timeZone:w,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});de=new E.$fb18d541ea1ad717$export$ad991b66133851cf(r,U)}return{start:ie.format(ce),end:de.format(ue)}},getDateFormatter(r,h){let n={...p,...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 we=s.createContext(null),qe=s.createContext(null),Ee=s.createContext(null),_e=s.createContext(null),Fe=[ae.$a049562f99e7db0e$export$f9c6924e160136d1,A.$d2b4bc8c273e7be6$export$24d547caef80ccd1,A.$01b77f81d0f07f68$export$75b6ee27786ba447,oe.$514c0188e459b4c0$export$9afb8bc826b033ea],Le=s.forwardRef(function(a,l){[a,l]=S.$64fa3d84918910a7$export$29f1550f4b0d4415(a,l,we);let{validationBehavior:c}=S.$64fa3d84918910a7$export$fabf2dc03a41866e(me.$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=Be({...a,validationBehavior:u}),t=s.useRef(null),[F,k]=S.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:m,labelProps:B,fieldProps:R,buttonProps:C,dialogProps:O,calendarProps:x,descriptionProps:T,errorMessageProps:d,...I}=je({...S.$64fa3d84918910a7$export$ef03459518577ad4(a),label:k,validationBehavior:u},i,t),[M,D]=s.useState(null),j=s.useCallback(()=>{t.current&&D(t.current.offsetWidth+"px")},[]);le.$9daab02d461809db$export$683480f191c0e3ea({ref:t,onResize:j});let{focusProps:Z,isFocused:p,isFocusVisible:P}=pe.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),V=S.$64fa3d84918910a7$export$4d86445c2cf5e3({...a,values:{state:i,isFocusWithin:p,isFocusVisible:P,isDisabled:a.isDisabled||!1,isInvalid:i.isInvalid,isOpen:i.isOpen},defaultClassName:"react-aria-DatePicker"}),o=te.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a);return delete o.id,s.createElement(S.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[Ee,i],[ae.$a049562f99e7db0e$export$f9c6924e160136d1,{...m,ref:t,isInvalid:i.isInvalid}],[f.$40825cdb76e74f70$export$7b3e670c86da5fe8,R],[A.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...C,isPressed:i.isOpen}],[A.$01b77f81d0f07f68$export$75b6ee27786ba447,{...B,ref:F,elementType:"span"}],[ee.$dfd62f934fc76fed$export$3b805cea1f178355,x],[N.$de32f1b87079253c$export$d2f961adcb0afbe,i],[N.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DatePicker",triggerRef:t,placement:"bottom start",style:{"--trigger-width":M},clearContexts:Fe}],[N.$de32f1b87079253c$export$8b93a07348a7730c,O],[oe.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:T,errorMessage:d}}],[ve.$ee014567cb39d3f0$export$ff05c3ac10437e03,I]]},s.createElement("div",{...Z,...o,...V,ref:l,slot:a.slot||void 0,"data-focus-within":p||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}))}),We=s.forwardRef(function(a,l){[a,l]=S.$64fa3d84918910a7$export$29f1550f4b0d4415(a,l,qe);let{validationBehavior:c}=S.$64fa3d84918910a7$export$fabf2dc03a41866e(me.$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=Se({...a,validationBehavior:u}),t=s.useRef(null),[F,k]=S.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!a["aria-label"]&&!a["aria-labelledby"]),{groupProps:m,labelProps:B,startFieldProps:R,endFieldProps:C,buttonProps:O,dialogProps:x,calendarProps:T,descriptionProps:d,errorMessageProps:I,...M}=ke({...S.$64fa3d84918910a7$export$ef03459518577ad4(a),label:k,validationBehavior:u},i,t),[D,j]=s.useState(null),Z=s.useCallback(()=>{t.current&&j(t.current.offsetWidth+"px")},[]);le.$9daab02d461809db$export$683480f191c0e3ea({ref:t,onResize:Z});let{focusProps:p,isFocused:P,isFocusVisible:V}=pe.$f7dceffc5ad7768b$export$4e328f61c538687f({within:!0}),o=S.$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=te.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a);return delete y.id,s.createElement(S.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[_e,i],[ae.$a049562f99e7db0e$export$f9c6924e160136d1,{...m,ref:t,isInvalid:i.isInvalid}],[A.$d2b4bc8c273e7be6$export$24d547caef80ccd1,{...O,isPressed:i.isOpen}],[A.$01b77f81d0f07f68$export$75b6ee27786ba447,{...B,ref:F,elementType:"span"}],[ee.$dfd62f934fc76fed$export$233dd9682e1ad64b,T],[N.$de32f1b87079253c$export$d2f961adcb0afbe,i],[N.$07b14b47974efb58$export$9b9a0cd73afb7ca4,{trigger:"DateRangePicker",triggerRef:t,placement:"bottom start",style:{"--trigger-width":D},clearContexts:Fe}],[N.$de32f1b87079253c$export$8b93a07348a7730c,x],[f.$40825cdb76e74f70$export$7b3e670c86da5fe8,{slots:{start:R,end:C}}],[oe.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:d,errorMessage:I}}],[ve.$ee014567cb39d3f0$export$ff05c3ac10437e03,M]]},s.createElement("div",{...p,...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 Ne=Te.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"}]]),Ue="_datePicker_1ro4s_4",Ke="_inputField_1ro4s_11",ze="_medium_1ro4s_23",Ge="_calendarButton_1ro4s_50",Ae="_dialog_1ro4s_97",G={datePicker:Ue,inputField:Ke,medium:ze,calendarButton:Ge,dialog:Ae},Re=({children:e,isDisabled:a,isInvalid:l,size:c="large"})=>$.jsxs(ae.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{className:J.clsx(G.inputField,{[G.medium]:c==="medium"}),children:[e,$.jsx(A.$d2b4bc8c273e7be6$export$353f5b6fc5456de1,{className:J.clsx(G.calendarButton,{[G.medium]:c==="medium"}),"data-invalid":l||void 0,isDisabled:a,children:$.jsx(Ne,{"aria-hidden":!0,size:20})})]}),Ce=se.forwardRef(({children:e},a)=>$.jsx(N.$07b14b47974efb58$export$5b6b19405a83ff9d,{UNSTABLE_portalContainer:typeof a!="function"&&(a==null?void 0:a.current)||void 0,children:$.jsx(N.$de32f1b87079253c$export$3ddf2d174ce01153,{className:G.dialog,children:e})})),Xe=({className:e,description:a,errorMessage:l,errorPosition:c="top",label:b,popover:v,...u})=>{const i=se.useRef(null);return $.jsxs(Le,{className:J.clsx(G.datePicker,e),ref:i,...u,children:[$.jsx(Y.LabelWrapper,{popover:v,children:b&&$.jsx(Y.Label,{children:b})}),a&&$.jsx($e.Text,{slot:"description",children:a}),c==="top"&&$.jsx(Q.FieldError,{children:l}),$.jsx(Re,{...u,children:$.jsx(f.DateInput,{children:t=>$.jsx(f.DateSegment,{segment:t})})}),c==="bottom"&&$.jsx(Q.FieldError,{children:l}),$.jsx(Ce,{ref:i,children:$.jsx(ee.Calendar,{})})]})},He=({className:e,description:a,errorMessage:l,errorPosition:c="top",label:b,popover:v,...u})=>{const i=se.useRef(null);return $.jsxs(We,{className:J.clsx(G.datePicker,e),ref:i,...u,children:[$.jsx(Y.LabelWrapper,{popover:v,children:b&&$.jsx(Y.Label,{children:b})}),a&&$.jsx($e.Text,{slot:"description",children:a}),c==="top"&&$.jsx(Q.FieldError,{children:l}),$.jsxs(Re,{...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(Q.FieldError,{children:l}),$.jsx(Ce,{ref:i,children:$.jsx(ee.RangeCalendar,{})})]})};exports.DatePicker=Xe;exports.DateRangePicker=He;