@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,31 @@
1
- import { jsx as k, jsxs as le } from "react/jsx-runtime";
1
+ import { jsx as k, jsxs as re } from "react/jsx-runtime";
2
2
  import { c as Fe } from "./clsx-OuTLNxxd.js";
3
- import { F as Ma } from "./FieldError-CAcjosk_.js";
4
- import { f as Ve, e as Ke } from "./Button-DjBChs7s.js";
5
- import { d as Oa, c as De, a as Te, b as ke, j as Ue, g as Ne } from "./utils-DIMfEPAt.js";
3
+ import { F as Ma } from "./FieldError-B3YFj-an.js";
4
+ import { f as Ve, e as Ke } from "./Button-CFYdzG0H.js";
5
+ import { $ as Te, a as ke, e as Ue, b as Ne } from "./utils-DJhAJHk_.js";
6
6
  import { $ as He } from "./RSPContexts-BW2SEIqe.js";
7
- import { $ as Ze } from "./Text-BoXuUVVH.js";
8
- import { c as Q, d as R, e as Ae, f as re, g as oe, h as Le, i as Ka, j as Ta, k as he, l as We, m as we, b as j, n as Ie, o as Ua, $ as Ha, p as Z, q as Za, r as La, s as Wa, t as Ge, u as qe, v as Ga, w as qa } from "./useDateFormatter-EHm4auIg.js";
7
+ import { a as Ze } from "./Text-92cPh38G.js";
8
+ import { c as X, d as R, e as Ae, f as le, g as oe, h as Le, i as Oa, j as Ka, k as he, l as We, m as we, b as j, n as ze, o as Ta, $ as Ua, p as Z, q as Ha, r as Za, s as La, t as Ge, u as qe, v as Wa, w as Ga } from "./useDateFormatter-BVCkxVdw.js";
9
+ import { b as qa, a as De } from "./mergeProps-C1U1OIeJ.js";
9
10
  import { $ as Y } from "./filterDOMProps-D6KHYVBX.js";
10
- import x, { useMemo as C, useState as O, useRef as W, useEffect as Ja, forwardRef as G, createContext as ie, useContext as K } from "react";
11
- import { $ as se } from "./context-C81gPYvC.js";
11
+ import x, { useMemo as C, useState as O, useRef as W, useEffect as Ja, forwardRef as q, createContext as ie, useContext as K } from "react";
12
+ import { $ as se } from "./context-CGNJ3grH.js";
12
13
  import { $ as Be } from "./useControlledState-u436Wbp1.js";
13
- import { b as fe } from "./useLocalizedStringFormatter-BKoxGZf1.js";
14
- import { $ as Je } from "./useLabels-BDwkBYbE.js";
14
+ import { $ as fe } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
15
+ import { $ as Je } from "./useLabels-LrKQiY11.js";
15
16
  import { $ as je } from "./useUpdateEffect-CCDx8D4X.js";
16
- import { $ as xe } from "./useEvent-IsD2Awnh.js";
17
- import { v as Qa, r as Xa, $ as Ya } from "./useHover-DjIHtjGN.js";
18
- import { $ as et } from "./getScrollParent-BhFcYrwL.js";
19
- import { a as at, c as tt } from "./scrollIntoView-Hwb_aaNf.js";
20
- import { a as ut } from "./usePress-CNjmDzap.js";
21
- import { $ as ce } from "./VisuallyHidden-ZCYf65q4.js";
22
- import { $ as it } from "./useFocusRing-XnR3cZjO.js";
23
- import { B as _e } from "./Button-Csih3v23.js";
24
- import { H as nt } from "./Heading-BFtiin0g.js";
17
+ import { $ as xe } from "./useEvent-CigwyJOw.js";
18
+ import { m as Qa } from "./utils-CoCR_Fce.js";
19
+ import { $ as Xa } from "./getScrollParent-CT_L9LUr.js";
20
+ import { a as Ya, c as et } from "./scrollIntoView-BLnsPvFA.js";
21
+ import { f as at, $ as tt } from "./useHover-DQvJ3Y-W.js";
22
+ import { a as ut } from "./usePress-DuR4pVsE.js";
23
+ import { $ as ce } from "./VisuallyHidden-CYfmTSCD.js";
24
+ import { $ as it } from "./useFocusRing-DOfBqnUN.js";
25
+ import { B as _e } from "./Button-BZUo7vsZ.js";
26
+ import { H as nt } from "./Heading-NxtGri2i.js";
25
27
  import { c as Qe } from "./createLucideIcon-DeWljiyi.js";
26
- import { T as dt } from "./Text-jWWg0B20.js";
28
+ import { T as dt } from "./Text-DlKqpvSa.js";
27
29
  import './assets/RangeCalendar.css';var Xe = {};
28
30
  Xe = {
29
31
  dateRange: (e) => `${e.startDate} إلى ${e.endDate}`,
@@ -159,8 +161,8 @@ da = {
159
161
  todayDate: (e) => `Täna, ${e.date}`,
160
162
  todayDateSelected: (e) => `Täna, ${e.date} valitud`
161
163
  };
162
- var la = {};
163
- la = {
164
+ var ra = {};
165
+ ra = {
164
166
  dateRange: (e) => `${e.startDate} – ${e.endDate}`,
165
167
  dateSelected: (e) => `${e.date} valittu`,
166
168
  finishRangeSelectionPrompt: "Lopeta päivämääräalueen valinta napsauttamalla tätä.",
@@ -174,8 +176,8 @@ la = {
174
176
  todayDate: (e) => `Tänään, ${e.date}`,
175
177
  todayDateSelected: (e) => `Tänään, ${e.date} valittu`
176
178
  };
177
- var ra = {};
178
- ra = {
179
+ var la = {};
180
+ la = {
179
181
  dateRange: (e) => `${e.startDate} à ${e.endDate}`,
180
182
  dateSelected: (e) => `${e.date} sélectionné`,
181
183
  finishRangeSelectionPrompt: "Cliquer pour finir de sélectionner la plage de dates",
@@ -545,8 +547,8 @@ ne = {
545
547
  "en-US": ia,
546
548
  "es-ES": na,
547
549
  "et-EE": da,
548
- "fi-FI": la,
549
- "fr-FR": ra,
550
+ "fi-FI": ra,
551
+ "fr-FR": la,
550
552
  "he-IL": oa,
551
553
  "hr-HR": sa,
552
554
  "hu-HU": ca,
@@ -574,114 +576,114 @@ ne = {
574
576
  function wa(e) {
575
577
  return e && e.__esModule ? e.default : e;
576
578
  }
577
- const ze = /* @__PURE__ */ new WeakMap();
579
+ const Ie = /* @__PURE__ */ new WeakMap();
578
580
  function te(e) {
579
581
  return (e == null ? void 0 : e.calendar.identifier) === "gregory" && e.era === "BC" ? "short" : void 0;
580
582
  }
581
- function lt(e) {
582
- let a = fe(wa(ne), "@react-aria/calendar"), i, t;
583
- var l;
584
- "highlightedRange" in e ? { start: i, end: t } = e.highlightedRange || {} : i = t = (l = e.value) !== null && l !== void 0 ? l : void 0;
585
- let u = Q({
583
+ function rt(e) {
584
+ let a = fe(wa(ne), "@react-aria/calendar"), u, t;
585
+ var r;
586
+ "highlightedRange" in e ? { start: u, end: t } = e.highlightedRange || {} : u = t = (r = e.value) !== null && r !== void 0 ? r : void 0;
587
+ let i = X({
586
588
  weekday: "long",
587
589
  month: "long",
588
590
  year: "numeric",
589
591
  day: "numeric",
590
- era: te(i) || te(t),
592
+ era: te(u) || te(t),
591
593
  timeZone: e.timeZone
592
594
  }), d = "anchorDate" in e ? e.anchorDate : null;
593
595
  return C(() => {
594
- if (!d && i && t)
595
- if (R(i, t)) {
596
- let n = u.format(i.toDate(e.timeZone));
596
+ if (!d && u && t)
597
+ if (R(u, t)) {
598
+ let n = i.format(u.toDate(e.timeZone));
597
599
  return a.format("selectedDateDescription", {
598
600
  date: n
599
601
  });
600
602
  } else {
601
- let n = Re(u, a, i, t, e.timeZone);
603
+ let n = Re(i, a, u, t, e.timeZone);
602
604
  return a.format("selectedRangeDescription", {
603
605
  dateRange: n
604
606
  });
605
607
  }
606
608
  return "";
607
609
  }, [
608
- i,
610
+ u,
609
611
  t,
610
612
  d,
611
613
  e.timeZone,
612
614
  a,
613
- u
615
+ i
614
616
  ]);
615
617
  }
616
- function Ce(e, a, i, t) {
617
- let l = fe(wa(ne), "@react-aria/calendar"), u = te(e) || te(a), d = Q({
618
+ function Ce(e, a, u, t) {
619
+ let r = fe(wa(ne), "@react-aria/calendar"), i = te(e) || te(a), d = X({
618
620
  month: "long",
619
621
  year: "numeric",
620
- era: u,
622
+ era: i,
621
623
  calendar: e.calendar.identifier,
622
- timeZone: i
623
- }), n = Q({
624
+ timeZone: u
625
+ }), n = X({
624
626
  month: "long",
625
627
  year: "numeric",
626
628
  day: "numeric",
627
- era: u,
629
+ era: i,
628
630
  calendar: e.calendar.identifier,
629
- timeZone: i
631
+ timeZone: u
630
632
  });
631
633
  return C(() => {
632
634
  if (R(e, Ae(e))) {
633
635
  let f = e, c = a;
634
- if (e.calendar.getFormattableMonth && (f = e.calendar.getFormattableMonth(e)), a.calendar.getFormattableMonth && (c = a.calendar.getFormattableMonth(a)), R(a, re(e))) return d.format(f.toDate(i));
635
- if (R(a, re(a))) return t ? Re(d, l, f, c, i) : d.formatRange(f.toDate(i), c.toDate(i));
636
+ if (e.calendar.getFormattableMonth && (f = e.calendar.getFormattableMonth(e)), a.calendar.getFormattableMonth && (c = a.calendar.getFormattableMonth(a)), R(a, le(e))) return d.format(f.toDate(u));
637
+ if (R(a, le(a))) return t ? Re(d, r, f, c, u) : d.formatRange(f.toDate(u), c.toDate(u));
636
638
  }
637
- return t ? Re(n, l, e, a, i) : n.formatRange(e.toDate(i), a.toDate(i));
639
+ return t ? Re(n, r, e, a, u) : n.formatRange(e.toDate(u), a.toDate(u));
638
640
  }, [
639
641
  e,
640
642
  a,
641
643
  d,
642
644
  n,
643
- l,
644
- i,
645
+ r,
646
+ u,
645
647
  t
646
648
  ]);
647
649
  }
648
- function Re(e, a, i, t, l) {
649
- let u = e.formatRangeToParts(i.toDate(l), t.toDate(l)), d = -1;
650
- for (let c = 0; c < u.length; c++) {
651
- let o = u[c];
650
+ function Re(e, a, u, t, r) {
651
+ let i = e.formatRangeToParts(u.toDate(r), t.toDate(r)), d = -1;
652
+ for (let c = 0; c < i.length; c++) {
653
+ let o = i[c];
652
654
  if (o.source === "shared" && o.type === "literal") d = c;
653
655
  else if (o.source === "endRange") break;
654
656
  }
655
657
  let n = "", f = "";
656
- for (let c = 0; c < u.length; c++)
657
- c < d ? n += u[c].value : c > d && (f += u[c].value);
658
+ for (let c = 0; c < i.length; c++)
659
+ c < d ? n += i[c].value : c > d && (f += i[c].value);
658
660
  return a.format("dateRange", {
659
661
  startDate: n,
660
662
  endDate: f
661
663
  });
662
664
  }
663
- function rt(e) {
665
+ function lt(e) {
664
666
  return e && e.__esModule ? e.default : e;
665
667
  }
666
- function Ia(e, a) {
667
- let i = fe(rt(ne), "@react-aria/calendar"), t = Y(e), l = Ce(a.visibleRange.start, a.visibleRange.end, a.timeZone, !1), u = Ce(a.visibleRange.start, a.visibleRange.end, a.timeZone, !0);
668
+ function za(e, a) {
669
+ let u = fe(lt(ne), "@react-aria/calendar"), t = Y(e), r = Ce(a.visibleRange.start, a.visibleRange.end, a.timeZone, !1), i = Ce(a.visibleRange.start, a.visibleRange.end, a.timeZone, !0);
668
670
  je(() => {
669
- a.isFocused || Ve(u);
671
+ a.isFocused || Ve(i);
670
672
  }, [
671
- u
673
+ i
672
674
  ]);
673
- let d = lt(a);
675
+ let d = rt(a);
674
676
  je(() => {
675
677
  d && Ve(d, "polite", 4e3);
676
678
  }, [
677
679
  d
678
680
  ]);
679
- let n = Oa([
681
+ let n = qa([
680
682
  !!e.errorMessage,
681
683
  e.isInvalid,
682
684
  e.validationState
683
685
  ]);
684
- ze.set(a, {
686
+ Ie.set(a, {
685
687
  ariaLabel: e["aria-label"],
686
688
  ariaLabelledBy: e["aria-labelledby"],
687
689
  errorMessageId: n,
@@ -695,7 +697,7 @@ function Ia(e, a) {
695
697
  id: e.id,
696
698
  "aria-label": [
697
699
  e["aria-label"],
698
- u
700
+ i
699
701
  ].filter(Boolean).join(", "),
700
702
  "aria-labelledby": e["aria-labelledby"]
701
703
  });
@@ -707,40 +709,40 @@ function Ia(e, a) {
707
709
  }),
708
710
  nextButtonProps: {
709
711
  onPress: () => a.focusNextPage(),
710
- "aria-label": i.format("next"),
712
+ "aria-label": u.format("next"),
711
713
  isDisabled: o,
712
714
  onFocusChange: c
713
715
  },
714
716
  prevButtonProps: {
715
717
  onPress: () => a.focusPreviousPage(),
716
- "aria-label": i.format("previous"),
718
+ "aria-label": u.format("previous"),
717
719
  isDisabled: b,
718
720
  onFocusChange: s
719
721
  },
720
722
  errorMessageProps: {
721
723
  id: n
722
724
  },
723
- title: l
725
+ title: r
724
726
  };
725
727
  }
726
728
  function ot(e, a) {
727
- return Ia(e, a);
729
+ return za(e, a);
728
730
  }
729
- function st(e, a, i) {
730
- let t = Ia(e, a), l = W(!1), u = W(typeof window < "u" ? window : null);
731
- return xe(u, "pointerdown", (n) => {
732
- l.current = n.width === 0 && n.height === 0;
733
- }), xe(u, "pointerup", (n) => {
734
- if (l.current) {
735
- l.current = !1;
731
+ function st(e, a, u) {
732
+ let t = za(e, a), r = W(!1), i = W(typeof window < "u" ? window : null);
733
+ return xe(i, "pointerdown", (n) => {
734
+ r.current = n.width === 0 && n.height === 0;
735
+ }), xe(i, "pointerup", (n) => {
736
+ if (r.current) {
737
+ r.current = !1;
736
738
  return;
737
739
  }
738
740
  if (a.setDragging(!1), !a.anchorDate) return;
739
741
  let f = n.target;
740
- i.current && i.current.contains(document.activeElement) && (!i.current.contains(f) || !f.closest('button, [role="button"]')) && a.selectFocusedDate();
742
+ u.current && u.current.contains(document.activeElement) && (!u.current.contains(f) || !f.closest('button, [role="button"]')) && a.selectFocusedDate();
741
743
  }), t.calendarProps.onBlur = (n) => {
742
- i.current && (!n.relatedTarget || !i.current.contains(n.relatedTarget)) && a.anchorDate && a.selectFocusedDate();
743
- }, xe(i, "touchmove", (n) => {
744
+ u.current && (!n.relatedTarget || !u.current.contains(n.relatedTarget)) && a.anchorDate && a.selectFocusedDate();
745
+ }, xe(u, "touchmove", (n) => {
744
746
  a.isDragging && n.preventDefault();
745
747
  }, {
746
748
  passive: !1,
@@ -748,7 +750,7 @@ function st(e, a, i) {
748
750
  }), t;
749
751
  }
750
752
  function ct(e, a) {
751
- let { startDate: i = a.visibleRange.start, endDate: t = a.visibleRange.end, firstDayOfWeek: l } = e, { direction: u } = se(), d = (m) => {
753
+ let { startDate: u = a.visibleRange.start, endDate: t = a.visibleRange.end, firstDayOfWeek: r } = e, { direction: i } = se(), d = (m) => {
752
754
  switch (m.key) {
753
755
  case "Enter":
754
756
  case " ":
@@ -767,13 +769,13 @@ function ct(e, a) {
767
769
  m.preventDefault(), m.stopPropagation(), a.focusSectionStart();
768
770
  break;
769
771
  case "ArrowLeft":
770
- m.preventDefault(), m.stopPropagation(), u === "rtl" ? a.focusNextDay() : a.focusPreviousDay();
772
+ m.preventDefault(), m.stopPropagation(), i === "rtl" ? a.focusNextDay() : a.focusPreviousDay();
771
773
  break;
772
774
  case "ArrowUp":
773
775
  m.preventDefault(), m.stopPropagation(), a.focusPreviousRow();
774
776
  break;
775
777
  case "ArrowRight":
776
- m.preventDefault(), m.stopPropagation(), u === "rtl" ? a.focusPreviousDay() : a.focusNextDay();
778
+ m.preventDefault(), m.stopPropagation(), i === "rtl" ? a.focusPreviousDay() : a.focusNextDay();
777
779
  break;
778
780
  case "ArrowDown":
779
781
  m.preventDefault(), m.stopPropagation(), a.focusNextRow();
@@ -782,17 +784,17 @@ function ct(e, a) {
782
784
  "setAnchorDate" in a && (m.preventDefault(), a.setAnchorDate(null));
783
785
  break;
784
786
  }
785
- }, n = Ce(i, t, a.timeZone, !0), { ariaLabel: f, ariaLabelledBy: c } = ze.get(a), o = Je({
787
+ }, n = Ce(u, t, a.timeZone, !0), { ariaLabel: f, ariaLabelledBy: c } = Ie.get(a), o = Je({
786
788
  "aria-label": [
787
789
  f,
788
790
  n
789
791
  ].filter(Boolean).join(", "),
790
792
  "aria-labelledby": c
791
- }), B = Q({
793
+ }), B = X({
792
794
  weekday: e.weekdayStyle || "narrow",
793
795
  timeZone: a.timeZone
794
796
  }), { locale: s } = se(), b = C(() => {
795
- let m = oe(Le(a.timeZone), s, l);
797
+ let m = oe(Le(a.timeZone), s, r);
796
798
  return [
797
799
  ...new Array(7).keys()
798
800
  ].map((p) => {
@@ -805,8 +807,8 @@ function ct(e, a) {
805
807
  s,
806
808
  a.timeZone,
807
809
  B,
808
- l
809
- ]), $ = Ka(i, s, l);
810
+ r
811
+ ]), $ = Oa(u, s, r);
810
812
  return {
811
813
  gridProps: De(o, {
812
814
  role: "grid",
@@ -829,8 +831,8 @@ function ct(e, a) {
829
831
  function Dt(e) {
830
832
  return e && e.__esModule ? e.default : e;
831
833
  }
832
- function ft(e, a, i) {
833
- let { date: t, isDisabled: l } = e, { errorMessageId: u, selectedDateDescription: d } = ze.get(a), n = fe(Dt(ne), "@react-aria/calendar"), f = Q({
834
+ function ft(e, a, u) {
835
+ let { date: t, isDisabled: r } = e, { errorMessageId: i, selectedDateDescription: d } = Ie.get(a), n = fe(Dt(ne), "@react-aria/calendar"), f = X({
834
836
  weekday: "long",
835
837
  day: "numeric",
836
838
  month: "long",
@@ -838,9 +840,9 @@ function ft(e, a, i) {
838
840
  era: te(t),
839
841
  timeZone: a.timeZone
840
842
  }), c = a.isSelected(t), o = a.isCellFocused(t);
841
- l = l || a.isCellDisabled(t);
842
- let B = a.isCellUnavailable(t), s = !l && !B, b = a.isValueInvalid && !!("highlightedRange" in a ? !a.anchorDate && a.highlightedRange && t.compare(a.highlightedRange.start) >= 0 && t.compare(a.highlightedRange.end) <= 0 : a.value && R(a.value, t));
843
- b && (c = !0), t = Ta(t, he);
843
+ r = r || a.isCellDisabled(t);
844
+ let B = a.isCellUnavailable(t), s = !r && !B, b = a.isValueInvalid && !!("highlightedRange" in a ? !a.anchorDate && a.highlightedRange && t.compare(a.highlightedRange.start) >= 0 && t.compare(a.highlightedRange.end) <= 0 : a.value && R(a.value, t));
845
+ b && (c = !0), t = Ka(t, he);
844
846
  let $ = C(() => t.toDate(a.timeZone), [
845
847
  t,
846
848
  a.timeZone
@@ -862,7 +864,7 @@ function ft(e, a, i) {
862
864
  d
863
865
  ]), S = "";
864
866
  "anchorDate" in a && o && !a.isReadOnly && s && (a.anchorDate ? S = n.format("finishRangeSelectionPrompt") : S = n.format("startRangeSelectionPrompt"));
865
- let A = at(S), w = W(!1), r = W(!1), E = W(void 0), { pressProps: P, isPressed: _ } = ut({
867
+ let A = Ya(S), w = W(!1), l = W(!1), E = W(void 0), { pressProps: P, isPressed: _ } = ut({
866
868
  // When dragging to select a range, we don't want dragging over the original anchor
867
869
  // again to trigger onPressStart. Cancel presses immediately when the pointer exits.
868
870
  shouldCancelOnPointerExit: "anchorDate" in a && !!a.anchorDate,
@@ -876,10 +878,10 @@ function ft(e, a, i) {
876
878
  if ("highlightedRange" in a && !a.anchorDate && (g.pointerType === "mouse" || g.pointerType === "touch")) {
877
879
  if (a.highlightedRange && !b) {
878
880
  if (R(t, a.highlightedRange.start)) {
879
- a.setAnchorDate(a.highlightedRange.end), a.setFocusedDate(t), a.setDragging(!0), r.current = !0;
881
+ a.setAnchorDate(a.highlightedRange.end), a.setFocusedDate(t), a.setDragging(!0), l.current = !0;
880
882
  return;
881
883
  } else if (R(t, a.highlightedRange.end)) {
882
- a.setAnchorDate(a.highlightedRange.start), a.setFocusedDate(t), a.setDragging(!0), r.current = !0;
884
+ a.setAnchorDate(a.highlightedRange.start), a.setFocusedDate(t), a.setDragging(!0), l.current = !0;
883
885
  return;
884
886
  }
885
887
  }
@@ -890,14 +892,14 @@ function ft(e, a, i) {
890
892
  }
891
893
  },
892
894
  onPressEnd() {
893
- r.current = !1, w.current = !1, clearTimeout(E.current), E.current = void 0;
895
+ l.current = !1, w.current = !1, clearTimeout(E.current), E.current = void 0;
894
896
  },
895
897
  onPress() {
896
898
  !("anchorDate" in a) && !a.isReadOnly && (a.selectDate(t), a.setFocusedDate(t));
897
899
  },
898
900
  onPressUp(g) {
899
901
  if (!a.isReadOnly && ("anchorDate" in a && E.current && (a.selectDate(t), a.setFocusedDate(t)), "anchorDate" in a))
900
- if (r.current)
902
+ if (l.current)
901
903
  a.setAnchorDate(t);
902
904
  else if (a.anchorDate && !w.current)
903
905
  a.selectDate(t), a.setFocusedDate(t);
@@ -912,19 +914,19 @@ function ft(e, a, i) {
912
914
  } else g.pointerType === "virtual" && (a.selectDate(t), a.setFocusedDate(t));
913
915
  }
914
916
  }), M;
915
- l || (M = R(t, a.focusedDate) ? 0 : -1), Ja(() => {
916
- o && i.current && (Qa(i.current), Xa() !== "pointer" && document.activeElement === i.current && tt(i.current, {
917
- containingElement: et(i.current)
917
+ r || (M = R(t, a.focusedDate) ? 0 : -1), Ja(() => {
918
+ o && u.current && (Qa(u.current), at() !== "pointer" && document.activeElement === u.current && et(u.current, {
919
+ containingElement: Xa(u.current)
918
920
  }));
919
921
  }, [
920
922
  o,
921
- i
923
+ u
922
924
  ]);
923
- let N = Q({
925
+ let N = X({
924
926
  day: "numeric",
925
927
  timeZone: a.timeZone,
926
928
  calendar: t.calendar.identifier
927
- }), z = C(() => N.formatToParts($).find((g) => g.type === "day").value, [
929
+ }), I = C(() => N.formatToParts($).find((g) => g.type === "day").value, [
928
930
  N,
929
931
  $
930
932
  ]);
@@ -937,7 +939,7 @@ function ft(e, a, i) {
937
939
  },
938
940
  buttonProps: De(P, {
939
941
  onFocus() {
940
- l || a.setFocusedDate(t);
942
+ r || a.setFocusedDate(t);
941
943
  },
942
944
  tabIndex: M,
943
945
  role: "button",
@@ -945,7 +947,7 @@ function ft(e, a, i) {
945
947
  "aria-label": p,
946
948
  "aria-invalid": b || void 0,
947
949
  "aria-describedby": [
948
- b ? u : void 0,
950
+ b ? i : void 0,
949
951
  A["aria-describedby"]
950
952
  ].filter(Boolean).join(" ") || void 0,
951
953
  onPointerEnter(g) {
@@ -961,82 +963,82 @@ function ft(e, a, i) {
961
963
  isPressed: _,
962
964
  isFocused: o,
963
965
  isSelected: c,
964
- isDisabled: l,
966
+ isDisabled: r,
965
967
  isUnavailable: B,
966
968
  isOutsideVisibleRange: t.compare(a.visibleRange.start) < 0 || t.compare(a.visibleRange.end) > 0,
967
969
  isInvalid: b,
968
- formattedDate: z
970
+ formattedDate: I
969
971
  };
970
972
  }
971
- function J(e, a, i) {
972
- return a != null && e.compare(a) < 0 || i != null && e.compare(i) > 0;
973
+ function Q(e, a, u) {
974
+ return a != null && e.compare(a) < 0 || u != null && e.compare(u) > 0;
973
975
  }
974
- function ye(e, a, i, t, l) {
975
- let u = {};
976
+ function ye(e, a, u, t, r) {
977
+ let i = {};
976
978
  for (let n in a)
977
- u[n] = Math.floor(a[n] / 2), u[n] > 0 && a[n] % 2 === 0 && u[n]--;
978
- let d = L(e, a, i).subtract(u);
979
- return ue(e, d, a, i, t, l);
979
+ i[n] = Math.floor(a[n] / 2), i[n] > 0 && a[n] % 2 === 0 && i[n]--;
980
+ let d = L(e, a, u).subtract(i);
981
+ return ue(e, d, a, u, t, r);
980
982
  }
981
- function L(e, a, i, t, l) {
982
- let u = e;
983
- return a.years ? u = Ua(e) : a.months ? u = Ae(e) : a.weeks && (u = oe(e, i)), ue(e, u, a, i, t, l);
983
+ function L(e, a, u, t, r) {
984
+ let i = e;
985
+ return a.years ? i = Ta(e) : a.months ? i = Ae(e) : a.weeks && (i = oe(e, u)), ue(e, i, a, u, t, r);
984
986
  }
985
- function Ee(e, a, i, t, l) {
986
- let u = {
987
+ function Ee(e, a, u, t, r) {
988
+ let i = {
987
989
  ...a
988
990
  };
989
- u.days ? u.days-- : u.weeks ? u.weeks-- : u.months ? u.months-- : u.years && u.years--;
990
- let d = L(e, a, i).subtract(u);
991
- return ue(e, d, a, i, t, l);
991
+ i.days ? i.days-- : i.weeks ? i.weeks-- : i.months ? i.months-- : i.years && i.years--;
992
+ let d = L(e, a, u).subtract(i);
993
+ return ue(e, d, a, u, t, r);
992
994
  }
993
- function ue(e, a, i, t, l, u) {
994
- if (l && e.compare(l) >= 0) {
995
- let d = we(a, L(j(l), i, t));
995
+ function ue(e, a, u, t, r, i) {
996
+ if (r && e.compare(r) >= 0) {
997
+ let d = we(a, L(j(r), u, t));
996
998
  d && (a = d);
997
999
  }
998
- if (u && e.compare(u) <= 0) {
999
- let d = Ie(a, Ee(j(u), i, t));
1000
+ if (i && e.compare(i) <= 0) {
1001
+ let d = ze(a, Ee(j(i), u, t));
1000
1002
  d && (a = d);
1001
1003
  }
1002
1004
  return a;
1003
1005
  }
1004
- function T(e, a, i) {
1006
+ function T(e, a, u) {
1005
1007
  if (a) {
1006
1008
  let t = we(e, j(a));
1007
1009
  t && (e = t);
1008
1010
  }
1009
- if (i) {
1010
- let t = Ie(e, j(i));
1011
+ if (u) {
1012
+ let t = ze(e, j(u));
1011
1013
  t && (e = t);
1012
1014
  }
1013
1015
  return e;
1014
1016
  }
1015
- function za(e, a, i) {
1016
- if (!i) return e;
1017
- for (; e.compare(a) >= 0 && i(e); ) e = e.subtract({
1017
+ function Ia(e, a, u) {
1018
+ if (!u) return e;
1019
+ for (; e.compare(a) >= 0 && u(e); ) e = e.subtract({
1018
1020
  days: 1
1019
1021
  });
1020
1022
  return e.compare(a) >= 0 ? e : null;
1021
1023
  }
1022
1024
  function Va(e) {
1023
- let a = C(() => new Ha(e.locale), [
1025
+ let a = C(() => new Ua(e.locale), [
1024
1026
  e.locale
1025
- ]), i = C(() => a.resolvedOptions(), [
1027
+ ]), u = C(() => a.resolvedOptions(), [
1026
1028
  a
1027
- ]), { locale: t, createCalendar: l, visibleDuration: u = {
1029
+ ]), { locale: t, createCalendar: r, visibleDuration: i = {
1028
1030
  months: 1
1029
- }, minValue: d, maxValue: n, selectionAlignment: f, isDateUnavailable: c, pageBehavior: o = "visible", firstDayOfWeek: B } = e, s = C(() => l(i.calendar), [
1030
- l,
1031
- i.calendar
1031
+ }, minValue: d, maxValue: n, selectionAlignment: f, isDateUnavailable: c, pageBehavior: o = "visible", firstDayOfWeek: B } = e, s = C(() => r(u.calendar), [
1032
+ r,
1033
+ u.calendar
1032
1034
  ]);
1033
1035
  var b;
1034
1036
  let [$, m] = Be(e.value, (b = e.defaultValue) !== null && b !== void 0 ? b : null, e.onChange), p = C(() => $ ? Z(j($), s) : null, [
1035
1037
  $,
1036
1038
  s
1037
- ]), S = C(() => $ && "timeZone" in $ ? $.timeZone : i.timeZone, [
1039
+ ]), S = C(() => $ && "timeZone" in $ ? $.timeZone : u.timeZone, [
1038
1040
  $,
1039
- i.timeZone
1041
+ u.timeZone
1040
1042
  ]), A = C(() => e.focusedValue ? T(Z(j(e.focusedValue), s), d, n) : void 0, [
1041
1043
  e.focusedValue,
1042
1044
  s,
@@ -1049,52 +1051,52 @@ function Va(e) {
1049
1051
  s,
1050
1052
  d,
1051
1053
  n
1052
- ]), [r, E] = Be(A, w, e.onFocusChange), [P, _] = O(() => {
1054
+ ]), [l, E] = Be(A, w, e.onFocusChange), [P, _] = O(() => {
1053
1055
  switch (f) {
1054
1056
  case "start":
1055
- return L(r, u, t, d, n);
1057
+ return L(l, i, t, d, n);
1056
1058
  case "end":
1057
- return Ee(r, u, t, d, n);
1059
+ return Ee(l, i, t, d, n);
1058
1060
  case "center":
1059
1061
  default:
1060
- return ye(r, u, t, d, n);
1062
+ return ye(l, i, t, d, n);
1061
1063
  }
1062
- }), [M, N] = O(e.autoFocus || !1), z = C(() => {
1064
+ }), [M, N] = O(e.autoFocus || !1), I = C(() => {
1063
1065
  let D = {
1064
- ...u
1066
+ ...i
1065
1067
  };
1066
1068
  return D.days ? D.days-- : D.days = -1, P.add(D);
1067
1069
  }, [
1068
1070
  P,
1069
- u
1071
+ i
1070
1072
  ]), [g, V] = O(s);
1071
- if (!Za(s, g)) {
1072
- let D = Z(r, s);
1073
- _(ye(D, u, t, d, n)), E(D), V(s);
1073
+ if (!Ha(s, g)) {
1074
+ let D = Z(l, s);
1075
+ _(ye(D, i, t, d, n)), E(D), V(s);
1074
1076
  }
1075
- J(r, d, n) ? E(T(r, d, n)) : r.compare(P) < 0 ? _(Ee(r, u, t, d, n)) : r.compare(z) > 0 && _(L(r, u, t, d, n));
1077
+ Q(l, d, n) ? E(T(l, d, n)) : l.compare(P) < 0 ? _(Ee(l, i, t, d, n)) : l.compare(I) > 0 && _(L(l, i, t, d, n));
1076
1078
  function v(D) {
1077
1079
  D = T(D, d, n), E(D);
1078
1080
  }
1079
1081
  function ee(D) {
1080
1082
  if (!e.isDisabled && !e.isReadOnly) {
1081
- let I = D;
1082
- if (I === null) {
1083
+ let z = D;
1084
+ if (z === null) {
1083
1085
  m(null);
1084
1086
  return;
1085
1087
  }
1086
- if (I = T(I, d, n), I = za(I, P, c), !I) return;
1087
- I = Z(I, ($ == null ? void 0 : $.calendar) || new Ge()), $ && "hour" in $ ? m($.set(I)) : m(I);
1088
+ if (z = T(z, d, n), z = Ia(z, P, c), !z) return;
1089
+ z = Z(z, ($ == null ? void 0 : $.calendar) || new Ge()), $ && "hour" in $ ? m($.set(z)) : m(z);
1088
1090
  }
1089
1091
  }
1090
- let de = C(() => p ? c && c(p) ? !0 : J(p, d, n) : !1, [
1092
+ let de = C(() => p ? c && c(p) ? !0 : Q(p, d, n) : !1, [
1091
1093
  p,
1092
1094
  c,
1093
1095
  d,
1094
1096
  n
1095
- ]), pe = e.isInvalid || e.validationState === "invalid" || de, h = pe ? "invalid" : null, y = C(() => o === "visible" ? u : be(u), [
1097
+ ]), pe = e.isInvalid || e.validationState === "invalid" || de, h = pe ? "invalid" : null, y = C(() => o === "visible" ? i : be(i), [
1096
1098
  o,
1097
- u
1099
+ i
1098
1100
  ]);
1099
1101
  var F, U;
1100
1102
  return {
@@ -1104,11 +1106,11 @@ function Va(e) {
1104
1106
  setValue: ee,
1105
1107
  visibleRange: {
1106
1108
  start: P,
1107
- end: z
1109
+ end: I
1108
1110
  },
1109
1111
  minValue: d,
1110
1112
  maxValue: n,
1111
- focusedDate: r,
1113
+ focusedDate: l,
1112
1114
  timeZone: S,
1113
1115
  validationState: h,
1114
1116
  isValueInvalid: pe,
@@ -1116,63 +1118,63 @@ function Va(e) {
1116
1118
  v(D), N(!0);
1117
1119
  },
1118
1120
  focusNextDay() {
1119
- v(r.add({
1121
+ v(l.add({
1120
1122
  days: 1
1121
1123
  }));
1122
1124
  },
1123
1125
  focusPreviousDay() {
1124
- v(r.subtract({
1126
+ v(l.subtract({
1125
1127
  days: 1
1126
1128
  }));
1127
1129
  },
1128
1130
  focusNextRow() {
1129
- u.days ? this.focusNextPage() : (u.weeks || u.months || u.years) && v(r.add({
1131
+ i.days ? this.focusNextPage() : (i.weeks || i.months || i.years) && v(l.add({
1130
1132
  weeks: 1
1131
1133
  }));
1132
1134
  },
1133
1135
  focusPreviousRow() {
1134
- u.days ? this.focusPreviousPage() : (u.weeks || u.months || u.years) && v(r.subtract({
1136
+ i.days ? this.focusPreviousPage() : (i.weeks || i.months || i.years) && v(l.subtract({
1135
1137
  weeks: 1
1136
1138
  }));
1137
1139
  },
1138
1140
  focusNextPage() {
1139
1141
  let D = P.add(y);
1140
- E(T(r.add(y), d, n)), _(L(ue(r, D, y, t, d, n), y, t));
1142
+ E(T(l.add(y), d, n)), _(L(ue(l, D, y, t, d, n), y, t));
1141
1143
  },
1142
1144
  focusPreviousPage() {
1143
1145
  let D = P.subtract(y);
1144
- E(T(r.subtract(y), d, n)), _(L(ue(r, D, y, t, d, n), y, t));
1146
+ E(T(l.subtract(y), d, n)), _(L(ue(l, D, y, t, d, n), y, t));
1145
1147
  },
1146
1148
  focusSectionStart() {
1147
- u.days ? v(P) : u.weeks ? v(oe(r, t)) : (u.months || u.years) && v(Ae(r));
1149
+ i.days ? v(P) : i.weeks ? v(oe(l, t)) : (i.months || i.years) && v(Ae(l));
1148
1150
  },
1149
1151
  focusSectionEnd() {
1150
- u.days ? v(z) : u.weeks ? v(Wa(r, t)) : (u.months || u.years) && v(re(r));
1152
+ i.days ? v(I) : i.weeks ? v(La(l, t)) : (i.months || i.years) && v(le(l));
1151
1153
  },
1152
1154
  focusNextSection(D) {
1153
- if (!D && !u.days) {
1154
- v(r.add(be(u)));
1155
+ if (!D && !i.days) {
1156
+ v(l.add(be(i)));
1155
1157
  return;
1156
1158
  }
1157
- u.days ? this.focusNextPage() : u.weeks ? v(r.add({
1159
+ i.days ? this.focusNextPage() : i.weeks ? v(l.add({
1158
1160
  months: 1
1159
- })) : (u.months || u.years) && v(r.add({
1161
+ })) : (i.months || i.years) && v(l.add({
1160
1162
  years: 1
1161
1163
  }));
1162
1164
  },
1163
1165
  focusPreviousSection(D) {
1164
- if (!D && !u.days) {
1165
- v(r.subtract(be(u)));
1166
+ if (!D && !i.days) {
1167
+ v(l.subtract(be(i)));
1166
1168
  return;
1167
1169
  }
1168
- u.days ? this.focusPreviousPage() : u.weeks ? v(r.subtract({
1170
+ i.days ? this.focusPreviousPage() : i.weeks ? v(l.subtract({
1169
1171
  months: 1
1170
- })) : (u.months || u.years) && v(r.subtract({
1172
+ })) : (i.months || i.years) && v(l.subtract({
1171
1173
  years: 1
1172
1174
  }));
1173
1175
  },
1174
1176
  selectFocusedDate() {
1175
- c && c(r) || ee(r);
1177
+ c && c(l) || ee(l);
1176
1178
  },
1177
1179
  selectDate(D) {
1178
1180
  ee(D);
@@ -1180,16 +1182,16 @@ function Va(e) {
1180
1182
  isFocused: M,
1181
1183
  setFocused: N,
1182
1184
  isInvalid(D) {
1183
- return J(D, d, n);
1185
+ return Q(D, d, n);
1184
1186
  },
1185
1187
  isSelected(D) {
1186
1188
  return p != null && R(D, p) && !this.isCellDisabled(D) && !this.isCellUnavailable(D);
1187
1189
  },
1188
1190
  isCellFocused(D) {
1189
- return M && r && R(D, r);
1191
+ return M && l && R(D, l);
1190
1192
  },
1191
1193
  isCellDisabled(D) {
1192
- return e.isDisabled || D.compare(P) < 0 || D.compare(z) > 0 || this.isInvalid(D);
1194
+ return e.isDisabled || D.compare(P) < 0 || D.compare(I) > 0 || this.isInvalid(D);
1193
1195
  },
1194
1196
  isCellUnavailable(D) {
1195
1197
  return e.isDateUnavailable ? e.isDateUnavailable(D) : !1;
@@ -1201,28 +1203,28 @@ function Va(e) {
1201
1203
  return R(D, P) || this.isInvalid(D);
1202
1204
  },
1203
1205
  isNextVisibleRangeInvalid() {
1204
- let D = z.add({
1206
+ let D = I.add({
1205
1207
  days: 1
1206
1208
  });
1207
- return R(D, z) || this.isInvalid(D);
1209
+ return R(D, I) || this.isInvalid(D);
1208
1210
  },
1209
- getDatesInWeek(D, I = P) {
1210
- let H = I.add({
1211
+ getDatesInWeek(D, z = P) {
1212
+ let H = z.add({
1211
1213
  weeks: D
1212
- }), q = [];
1214
+ }), J = [];
1213
1215
  H = oe(H, t, B);
1214
- let _a = La(H, t, B);
1215
- for (let ae = 0; ae < _a; ae++) q.push(null);
1216
- for (; q.length < 7; ) {
1217
- q.push(H);
1216
+ let _a = Za(H, t, B);
1217
+ for (let ae = 0; ae < _a; ae++) J.push(null);
1218
+ for (; J.length < 7; ) {
1219
+ J.push(H);
1218
1220
  let ae = H.add({
1219
1221
  days: 1
1220
1222
  });
1221
1223
  if (R(H, ae)) break;
1222
1224
  H = ae;
1223
1225
  }
1224
- for (; q.length < 7; ) q.push(null);
1225
- return q;
1226
+ for (; J.length < 7; ) J.push(null);
1227
+ return J;
1226
1228
  }
1227
1229
  };
1228
1230
  }
@@ -1230,15 +1232,15 @@ function be(e) {
1230
1232
  let a = {
1231
1233
  ...e
1232
1234
  };
1233
- for (let i in e) a[i] = 1;
1235
+ for (let u in e) a[u] = 1;
1234
1236
  return a;
1235
1237
  }
1236
1238
  function mt(e) {
1237
- let { value: a, defaultValue: i, onChange: t, createCalendar: l, locale: u, visibleDuration: d = {
1239
+ let { value: a, defaultValue: u, onChange: t, createCalendar: r, locale: i, visibleDuration: d = {
1238
1240
  months: 1
1239
- }, minValue: n, maxValue: f, ...c } = e, [o, B] = Be(a, i || null, t), [s, b] = O(null), $ = "center";
1241
+ }, minValue: n, maxValue: f, ...c } = e, [o, B] = Be(a, u || null, t), [s, b] = O(null), $ = "center";
1240
1242
  if (o && o.start && o.end) {
1241
- let y = ye(j(o.start), d, u, n, f).add(d).subtract({
1243
+ let y = ye(j(o.start), d, i, n, f).add(d).subtract({
1242
1244
  days: 1
1243
1245
  });
1244
1246
  o.end.compare(y) > 0 && ($ = "start");
@@ -1246,34 +1248,34 @@ function mt(e) {
1246
1248
  let m = W(null), [p, S] = O(null), A = C(() => we(n, p == null ? void 0 : p.start), [
1247
1249
  n,
1248
1250
  p
1249
- ]), w = C(() => Ie(f, p == null ? void 0 : p.end), [
1251
+ ]), w = C(() => ze(f, p == null ? void 0 : p.end), [
1250
1252
  f,
1251
1253
  p
1252
- ]), r = Va({
1254
+ ]), l = Va({
1253
1255
  ...c,
1254
1256
  value: o && o.start,
1255
- createCalendar: l,
1256
- locale: u,
1257
+ createCalendar: r,
1258
+ locale: i,
1257
1259
  visibleDuration: d,
1258
1260
  minValue: A,
1259
1261
  maxValue: w,
1260
1262
  selectionAlignment: $
1261
1263
  }), E = (h) => {
1262
1264
  if (h && e.isDateUnavailable && !e.allowsNonContiguousRanges) {
1263
- const y = Oe(h, r, -1), F = Oe(h, r, 1);
1265
+ const y = Oe(h, l, -1), F = Oe(h, l, 1);
1264
1266
  m.current = {
1265
1267
  start: y,
1266
1268
  end: F
1267
1269
  }, S(m.current);
1268
1270
  } else
1269
1271
  m.current = null, S(null);
1270
- }, [P, _] = O(r.visibleRange);
1271
- (!he(r.visibleRange.start, P.start) || !he(r.visibleRange.end, P.end)) && (E(s), _(r.visibleRange));
1272
+ }, [P, _] = O(l.visibleRange);
1273
+ (!he(l.visibleRange.start, P.start) || !he(l.visibleRange.end, P.end)) && (E(s), _(l.visibleRange));
1272
1274
  let M = (h) => {
1273
1275
  h ? (b(h), E(h)) : (b(null), E(null));
1274
- }, N = s ? ve(s, r.focusedDate) : o && ve(o.start, o.end), z = (h) => {
1276
+ }, N = s ? ve(s, l.focusedDate) : o && ve(o.start, o.end), I = (h) => {
1275
1277
  if (e.isReadOnly) return;
1276
- const y = T(h, A, w), F = za(y, r.visibleRange.start, e.isDateUnavailable);
1278
+ const y = T(h, A, w), F = Ia(y, l.visibleRange.start, e.isDateUnavailable);
1277
1279
  if (F)
1278
1280
  if (!s) M(F);
1279
1281
  else {
@@ -1283,7 +1285,7 @@ function mt(e) {
1283
1285
  end: Me(U.end, o == null ? void 0 : o.end)
1284
1286
  }), M(null);
1285
1287
  }
1286
- }, [g, V] = O(!1), { isDateUnavailable: v } = e, ee = C(() => !o || s ? !1 : v && (v(o.start) || v(o.end)) ? !0 : J(o.start, n, f) || J(o.end, n, f), [
1288
+ }, [g, V] = O(!1), { isDateUnavailable: v } = e, ee = C(() => !o || s ? !1 : v && (v(o.start) || v(o.end)) ? !0 : Q(o.start, n, f) || Q(o.end, n, f), [
1287
1289
  v,
1288
1290
  o,
1289
1291
  s,
@@ -1291,7 +1293,7 @@ function mt(e) {
1291
1293
  f
1292
1294
  ]), de = e.isInvalid || e.validationState === "invalid" || ee;
1293
1295
  return {
1294
- ...r,
1296
+ ...l,
1295
1297
  value: o,
1296
1298
  setValue: B,
1297
1299
  anchorDate: s,
@@ -1300,18 +1302,18 @@ function mt(e) {
1300
1302
  validationState: de ? "invalid" : null,
1301
1303
  isValueInvalid: de,
1302
1304
  selectFocusedDate() {
1303
- z(r.focusedDate);
1305
+ I(l.focusedDate);
1304
1306
  },
1305
- selectDate: z,
1307
+ selectDate: I,
1306
1308
  highlightDate(h) {
1307
- s && r.setFocusedDate(h);
1309
+ s && l.setFocusedDate(h);
1308
1310
  },
1309
1311
  isSelected(h) {
1310
- return !!(N && h.compare(N.start) >= 0 && h.compare(N.end) <= 0 && !r.isCellDisabled(h) && !r.isCellUnavailable(h));
1312
+ return !!(N && h.compare(N.start) >= 0 && h.compare(N.end) <= 0 && !l.isCellDisabled(h) && !l.isCellUnavailable(h));
1311
1313
  },
1312
1314
  isInvalid(h) {
1313
1315
  var y, F;
1314
- return r.isInvalid(h) || J(h, (y = m.current) === null || y === void 0 ? void 0 : y.start, (F = m.current) === null || F === void 0 ? void 0 : F.end);
1316
+ return l.isInvalid(h) || Q(h, (y = m.current) === null || y === void 0 ? void 0 : y.start, (F = m.current) === null || F === void 0 ? void 0 : F.end);
1315
1317
  },
1316
1318
  isDragging: g,
1317
1319
  setDragging: V
@@ -1329,39 +1331,39 @@ function ve(e, a) {
1329
1331
  function Me(e, a) {
1330
1332
  return e = Z(e, (a == null ? void 0 : a.calendar) || new Ge()), a && "hour" in a ? a.set(e) : e;
1331
1333
  }
1332
- function Oe(e, a, i) {
1334
+ function Oe(e, a, u) {
1333
1335
  let t = e.add({
1334
- days: i
1336
+ days: u
1335
1337
  });
1336
- for (; (i < 0 ? t.compare(a.visibleRange.start) >= 0 : t.compare(a.visibleRange.end) <= 0) && !a.isCellUnavailable(t); ) t = t.add({
1337
- days: i
1338
+ for (; (u < 0 ? t.compare(a.visibleRange.start) >= 0 : t.compare(a.visibleRange.end) <= 0) && !a.isCellUnavailable(t); ) t = t.add({
1339
+ days: u
1338
1340
  });
1339
1341
  if (a.isCellUnavailable(t)) return t.add({
1340
- days: -i
1342
+ days: -u
1341
1343
  });
1342
1344
  }
1343
- const Pe = /* @__PURE__ */ ie(null), Se = /* @__PURE__ */ ie(null), me = /* @__PURE__ */ ie(null), $e = /* @__PURE__ */ ie(null), $t = /* @__PURE__ */ G(function(a, i) {
1344
- [a, i] = Te(a, i, Pe);
1345
- let { locale: t } = se(), l = Va({
1345
+ const Pe = /* @__PURE__ */ ie(null), Se = /* @__PURE__ */ ie(null), me = /* @__PURE__ */ ie(null), $e = /* @__PURE__ */ ie(null), $t = /* @__PURE__ */ q(function(a, u) {
1346
+ [a, u] = Te(a, u, Pe);
1347
+ let { locale: t } = se(), r = Va({
1346
1348
  ...a,
1347
1349
  locale: t,
1348
1350
  createCalendar: a.createCalendar || qe
1349
- }), { calendarProps: u, prevButtonProps: d, nextButtonProps: n, errorMessageProps: f, title: c } = ot(a, l), o = ke({
1351
+ }), { calendarProps: i, prevButtonProps: d, nextButtonProps: n, errorMessageProps: f, title: c } = ot(a, r), o = ke({
1350
1352
  ...a,
1351
1353
  values: {
1352
- state: l,
1354
+ state: r,
1353
1355
  isDisabled: a.isDisabled || !1,
1354
- isInvalid: l.isValueInvalid
1356
+ isInvalid: r.isValueInvalid
1355
1357
  },
1356
1358
  defaultClassName: "react-aria-Calendar"
1357
1359
  });
1358
1360
  return /* @__PURE__ */ x.createElement("div", {
1359
1361
  ...o,
1360
- ...u,
1361
- ref: i,
1362
+ ...i,
1363
+ ref: u,
1362
1364
  slot: a.slot || void 0,
1363
1365
  "data-disabled": a.isDisabled || void 0,
1364
- "data-invalid": l.isValueInvalid || void 0
1366
+ "data-invalid": r.isValueInvalid || void 0
1365
1367
  }, /* @__PURE__ */ x.createElement(Ue, {
1366
1368
  values: [
1367
1369
  [
@@ -1383,7 +1385,7 @@ const Pe = /* @__PURE__ */ ie(null), Se = /* @__PURE__ */ ie(null), me = /* @__P
1383
1385
  ],
1384
1386
  [
1385
1387
  me,
1386
- l
1388
+ r
1387
1389
  ],
1388
1390
  [
1389
1391
  Pe,
@@ -1398,34 +1400,34 @@ const Pe = /* @__PURE__ */ ie(null), Se = /* @__PURE__ */ ie(null), me = /* @__P
1398
1400
  }
1399
1401
  ]
1400
1402
  ]
1401
- }, /* @__PURE__ */ x.createElement(ce, null, /* @__PURE__ */ x.createElement("h2", null, u["aria-label"])), o.children, /* @__PURE__ */ x.createElement(ce, null, /* @__PURE__ */ x.createElement("button", {
1403
+ }, /* @__PURE__ */ x.createElement(ce, null, /* @__PURE__ */ x.createElement("h2", null, i["aria-label"])), o.children, /* @__PURE__ */ x.createElement(ce, null, /* @__PURE__ */ x.createElement("button", {
1402
1404
  "aria-label": n["aria-label"],
1403
1405
  disabled: n.isDisabled,
1404
- onClick: () => l.focusNextPage(),
1406
+ onClick: () => r.focusNextPage(),
1405
1407
  tabIndex: -1
1406
1408
  }))));
1407
- }), gt = /* @__PURE__ */ G(function(a, i) {
1408
- [a, i] = Te(a, i, Se);
1409
- let { locale: t } = se(), l = mt({
1409
+ }), gt = /* @__PURE__ */ q(function(a, u) {
1410
+ [a, u] = Te(a, u, Se);
1411
+ let { locale: t } = se(), r = mt({
1410
1412
  ...a,
1411
1413
  locale: t,
1412
1414
  createCalendar: a.createCalendar || qe
1413
- }), { calendarProps: u, prevButtonProps: d, nextButtonProps: n, errorMessageProps: f, title: c } = st(a, l, i), o = ke({
1415
+ }), { calendarProps: i, prevButtonProps: d, nextButtonProps: n, errorMessageProps: f, title: c } = st(a, r, u), o = ke({
1414
1416
  ...a,
1415
1417
  values: {
1416
- state: l,
1418
+ state: r,
1417
1419
  isDisabled: a.isDisabled || !1,
1418
- isInvalid: l.isValueInvalid
1420
+ isInvalid: r.isValueInvalid
1419
1421
  },
1420
1422
  defaultClassName: "react-aria-RangeCalendar"
1421
1423
  });
1422
1424
  return /* @__PURE__ */ x.createElement("div", {
1423
1425
  ...o,
1424
- ...u,
1425
- ref: i,
1426
+ ...i,
1427
+ ref: u,
1426
1428
  slot: a.slot || void 0,
1427
1429
  "data-disabled": a.isDisabled || void 0,
1428
- "data-invalid": l.isValueInvalid || void 0
1430
+ "data-invalid": r.isValueInvalid || void 0
1429
1431
  }, /* @__PURE__ */ x.createElement(Ue, {
1430
1432
  values: [
1431
1433
  [
@@ -1447,7 +1449,7 @@ const Pe = /* @__PURE__ */ ie(null), Se = /* @__PURE__ */ ie(null), me = /* @__P
1447
1449
  ],
1448
1450
  [
1449
1451
  $e,
1450
- l
1452
+ r
1451
1453
  ],
1452
1454
  [
1453
1455
  Se,
@@ -1462,19 +1464,19 @@ const Pe = /* @__PURE__ */ ie(null), Se = /* @__PURE__ */ ie(null), me = /* @__P
1462
1464
  }
1463
1465
  ]
1464
1466
  ]
1465
- }, /* @__PURE__ */ x.createElement(ce, null, /* @__PURE__ */ x.createElement("h2", null, u["aria-label"])), o.children, /* @__PURE__ */ x.createElement(ce, null, /* @__PURE__ */ x.createElement("button", {
1467
+ }, /* @__PURE__ */ x.createElement(ce, null, /* @__PURE__ */ x.createElement("h2", null, i["aria-label"])), o.children, /* @__PURE__ */ x.createElement(ce, null, /* @__PURE__ */ x.createElement("button", {
1466
1468
  "aria-label": n["aria-label"],
1467
1469
  disabled: n.isDisabled,
1468
- onClick: () => l.focusNextPage(),
1470
+ onClick: () => r.focusNextPage(),
1469
1471
  tabIndex: -1
1470
1472
  }))));
1471
- }), ge = /* @__PURE__ */ ie(null), pt = /* @__PURE__ */ G(function(a, i) {
1472
- let t = K(me), l = K($e), u = Ne(Pe), d = Ne(Se), n = t ?? l, f = n.visibleRange.start;
1473
+ }), ge = /* @__PURE__ */ ie(null), pt = /* @__PURE__ */ q(function(a, u) {
1474
+ let t = K(me), r = K($e), i = Ne(Pe), d = Ne(Se), n = t ?? r, f = n.visibleRange.start;
1473
1475
  a.offset && (f = f.add(a.offset));
1474
1476
  var c;
1475
- let o = (c = u == null ? void 0 : u.firstDayOfWeek) !== null && c !== void 0 ? c : d == null ? void 0 : d.firstDayOfWeek, { gridProps: B, headerProps: s, weekDays: b, weeksInMonth: $ } = ct({
1477
+ let o = (c = i == null ? void 0 : i.firstDayOfWeek) !== null && c !== void 0 ? c : d == null ? void 0 : d.firstDayOfWeek, { gridProps: B, headerProps: s, weekDays: b, weeksInMonth: $ } = ct({
1476
1478
  startDate: f,
1477
- endDate: re(f),
1479
+ endDate: le(f),
1478
1480
  weekdayStyle: a.weekdayStyle,
1479
1481
  firstDayOfWeek: o
1480
1482
  }, n);
@@ -1489,67 +1491,67 @@ const Pe = /* @__PURE__ */ ie(null), Se = /* @__PURE__ */ ie(null), me = /* @__P
1489
1491
  }, /* @__PURE__ */ x.createElement("table", {
1490
1492
  ...Y(a),
1491
1493
  ...B,
1492
- ref: i,
1494
+ ref: u,
1493
1495
  style: a.style,
1494
1496
  className: (m = a.className) !== null && m !== void 0 ? m : "react-aria-CalendarGrid"
1495
1497
  }, typeof a.children != "function" ? a.children : /* @__PURE__ */ x.createElement(x.Fragment, null, /* @__PURE__ */ x.createElement(bt, null, (p) => /* @__PURE__ */ x.createElement(ht, null, p)), /* @__PURE__ */ x.createElement(Ct, null, a.children))));
1496
1498
  });
1497
1499
  function xt(e, a) {
1498
- let { children: i, style: t, className: l } = e, { headerProps: u, weekDays: d } = K(ge);
1500
+ let { children: u, style: t, className: r } = e, { headerProps: i, weekDays: d } = K(ge);
1499
1501
  return /* @__PURE__ */ x.createElement("thead", {
1500
1502
  ...Y(e),
1501
- ...u,
1503
+ ...i,
1502
1504
  ref: a,
1503
1505
  style: t,
1504
- className: l || "react-aria-CalendarGridHeader"
1505
- }, /* @__PURE__ */ x.createElement("tr", null, d.map((n, f) => /* @__PURE__ */ x.cloneElement(i(n), {
1506
+ className: r || "react-aria-CalendarGridHeader"
1507
+ }, /* @__PURE__ */ x.createElement("tr", null, d.map((n, f) => /* @__PURE__ */ x.cloneElement(u(n), {
1506
1508
  key: f
1507
1509
  }))));
1508
1510
  }
1509
- const bt = /* @__PURE__ */ G(xt);
1511
+ const bt = /* @__PURE__ */ q(xt);
1510
1512
  function vt(e, a) {
1511
- let { children: i, style: t, className: l } = e;
1513
+ let { children: u, style: t, className: r } = e;
1512
1514
  return /* @__PURE__ */ x.createElement("th", {
1513
1515
  ...Y(e),
1514
1516
  ref: a,
1515
1517
  style: t,
1516
- className: l || "react-aria-CalendarHeaderCell"
1517
- }, i);
1518
+ className: r || "react-aria-CalendarHeaderCell"
1519
+ }, u);
1518
1520
  }
1519
- const ht = /* @__PURE__ */ G(vt);
1521
+ const ht = /* @__PURE__ */ q(vt);
1520
1522
  function Bt(e, a) {
1521
- let { children: i, style: t, className: l } = e, u = K(me), d = K($e), n = u ?? d, { startDate: f, weeksInMonth: c } = K(ge);
1523
+ let { children: u, style: t, className: r } = e, i = K(me), d = K($e), n = i ?? d, { startDate: f, weeksInMonth: c } = K(ge);
1522
1524
  return /* @__PURE__ */ x.createElement("tbody", {
1523
1525
  ...Y(e),
1524
1526
  ref: a,
1525
1527
  style: t,
1526
- className: l || "react-aria-CalendarGridBody"
1528
+ className: r || "react-aria-CalendarGridBody"
1527
1529
  }, [
1528
1530
  ...new Array(c).keys()
1529
1531
  ].map((o) => /* @__PURE__ */ x.createElement("tr", {
1530
1532
  key: o
1531
- }, n.getDatesInWeek(o, f).map((B, s) => B ? /* @__PURE__ */ x.cloneElement(i(B), {
1533
+ }, n.getDatesInWeek(o, f).map((B, s) => B ? /* @__PURE__ */ x.cloneElement(u(B), {
1532
1534
  key: s
1533
1535
  }) : /* @__PURE__ */ x.createElement("td", {
1534
1536
  key: s
1535
1537
  })))));
1536
1538
  }
1537
- const Ct = /* @__PURE__ */ G(Bt), Rt = /* @__PURE__ */ G(function({ date: a, ...i }, t) {
1538
- let l = K(me), u = K($e), d = l ?? u;
1539
+ const Ct = /* @__PURE__ */ q(Bt), Rt = /* @__PURE__ */ q(function({ date: a, ...u }, t) {
1540
+ let r = K(me), i = K($e), d = r ?? i;
1539
1541
  var n;
1540
1542
  let { startDate: f } = (n = K(ge)) !== null && n !== void 0 ? n : {
1541
1543
  startDate: d.visibleRange.start
1542
1544
  }, c = W(null), { cellProps: o, buttonProps: B, ...s } = ft({
1543
1545
  date: a
1544
- }, d, c), { hoverProps: b, isHovered: $ } = Ya({
1545
- ...i,
1546
+ }, d, c), { hoverProps: b, isHovered: $ } = tt({
1547
+ ...u,
1546
1548
  isDisabled: s.isDisabled
1547
1549
  }), { focusProps: m, isFocusVisible: p } = it();
1548
1550
  p && (p = s.isFocused);
1549
- let S = !Ga(f, a), A = !1, w = !1;
1551
+ let S = !Wa(f, a), A = !1, w = !1;
1550
1552
  "highlightedRange" in d && d.highlightedRange && (A = R(a, d.highlightedRange.start), w = R(a, d.highlightedRange.end));
1551
- let r = ke({
1552
- ...i,
1553
+ let l = ke({
1554
+ ...u,
1553
1555
  defaultChildren: s.formattedDate,
1554
1556
  defaultClassName: "react-aria-CalendarCell",
1555
1557
  values: {
@@ -1579,7 +1581,7 @@ const Ct = /* @__PURE__ */ G(Bt), Rt = /* @__PURE__ */ G(function({ date: a, ...
1579
1581
  ...o,
1580
1582
  ref: t
1581
1583
  }, /* @__PURE__ */ x.createElement("div", {
1582
- ...De(Y(i), B, m, b, E, r),
1584
+ ...De(Y(u), B, m, b, E, l),
1583
1585
  ref: c
1584
1586
  }));
1585
1587
  });
@@ -1600,24 +1602,27 @@ const yt = Qe("ChevronLeft", [
1600
1602
  */
1601
1603
  const Et = Qe("ChevronRight", [
1602
1604
  ["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]
1603
- ]), Pt = "_container_ex6ht_4", St = "_calendar_ex6ht_9", Ft = "_day_ex6ht_30", kt = "_header_ex6ht_83", At = "_today_ex6ht_153", X = {
1605
+ ]), Pt = "_container_1mzkr_4", St = "_calendar_1mzkr_9", Ft = "_day_1mzkr_30", kt = "_header_1mzkr_83", At = "_range_1mzkr_135", wt = "_today_1mzkr_161", G = {
1604
1606
  container: Pt,
1605
1607
  calendar: St,
1606
1608
  day: Ft,
1607
1609
  header: kt,
1608
- today: At
1610
+ range: At,
1611
+ today: wt
1609
1612
  }, Na = ({
1610
- weekdayStyle: e = "short"
1611
- }) => /* @__PURE__ */ k(pt, { weekdayStyle: e, children: (a) => /* @__PURE__ */ k(
1613
+ weekdayStyle: e = "short",
1614
+ isRange: a = !1
1615
+ }) => /* @__PURE__ */ k(pt, { weekdayStyle: e, children: (u) => /* @__PURE__ */ k(
1612
1616
  Rt,
1613
1617
  {
1614
- date: a,
1618
+ date: u,
1615
1619
  className: Fe(
1616
- X.day,
1617
- We(a, qa()) && X.today
1620
+ G.day,
1621
+ We(u, Ga()) && G.today,
1622
+ a && G.range
1618
1623
  )
1619
1624
  }
1620
- ) }), ja = ({ isDisabled: e }) => /* @__PURE__ */ le("header", { className: X.header, children: [
1625
+ ) }), ja = ({ isDisabled: e }) => /* @__PURE__ */ re("header", { className: G.header, children: [
1621
1626
  /* @__PURE__ */ k(
1622
1627
  _e,
1623
1628
  {
@@ -1642,42 +1647,48 @@ const Et = Qe("ChevronRight", [
1642
1647
  children: /* @__PURE__ */ k(Et, {})
1643
1648
  }
1644
1649
  )
1645
- ] }), iu = ({
1650
+ ] }), ru = ({
1646
1651
  className: e,
1647
1652
  errorMessage: a,
1648
- ...i
1649
- }) => /* @__PURE__ */ le("div", { className: X.container, children: [
1650
- /* @__PURE__ */ le(
1653
+ ...u
1654
+ }) => /* @__PURE__ */ re("div", { className: G.container, children: [
1655
+ /* @__PURE__ */ re(
1651
1656
  $t,
1652
1657
  {
1653
- className: Fe(X.calendar, e),
1654
- ...i,
1658
+ className: Fe(G.calendar, e),
1659
+ ...u,
1655
1660
  children: [
1656
- /* @__PURE__ */ k(ja, { ...i }),
1657
- /* @__PURE__ */ k(Na, { ...i })
1661
+ /* @__PURE__ */ k(ja, { ...u }),
1662
+ /* @__PURE__ */ k(Na, { ...u })
1658
1663
  ]
1659
1664
  }
1660
1665
  ),
1661
- /* @__PURE__ */ k(Ma, { isInvalid: i.isInvalid, children: a })
1662
- ] }), nu = ({
1666
+ /* @__PURE__ */ k(Ma, { isInvalid: u.isInvalid, children: a })
1667
+ ] }), lu = ({
1663
1668
  className: e,
1664
1669
  errorMessage: a,
1665
- ...i
1666
- }) => /* @__PURE__ */ le(
1670
+ ...u
1671
+ }) => /* @__PURE__ */ re(
1667
1672
  gt,
1668
1673
  {
1669
- className: Fe(X.calendar, e),
1670
- ...i,
1674
+ className: Fe(G.calendar, e),
1675
+ ...u,
1671
1676
  children: [
1672
- /* @__PURE__ */ k(ja, { isDisabled: i.isDisabled }),
1673
- /* @__PURE__ */ k(Na, { ...i }),
1677
+ /* @__PURE__ */ k(ja, { isDisabled: u.isDisabled }),
1678
+ /* @__PURE__ */ k(
1679
+ Na,
1680
+ {
1681
+ ...u,
1682
+ isRange: !0
1683
+ }
1684
+ ),
1674
1685
  a && /* @__PURE__ */ k(dt, { slot: "errorMessage", children: a })
1675
1686
  ]
1676
1687
  }
1677
1688
  );
1678
1689
  export {
1679
1690
  Pe as $,
1680
- iu as C,
1681
- nu as R,
1691
+ ru as C,
1692
+ lu as R,
1682
1693
  Se as a
1683
1694
  };