@midas-ds/components 12.0.0 → 12.1.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 (458) hide show
  1. package/AccordionItem-C9dBt-tQ.js +335 -0
  2. package/AccordionItem-SOfjXh3V.cjs +1 -0
  3. package/{BadgeContainer-DGJGJMPi.js → BadgeContainer-iNNgJKD9.js} +8 -8
  4. package/BadgeContainer-su0iCJKy.cjs +1 -0
  5. package/Breadcrumbs-BAHJMPsu.js +271 -0
  6. package/Breadcrumbs-DUcHHI_2.cjs +1 -0
  7. package/Button-CMIbSc4-.cjs +1 -0
  8. package/{Button-DtC_ZOyd.js → Button-DD5_S-tD.js} +155 -161
  9. package/{Button-akT6Hvug.js → Button-DYcmg49Z.js} +2 -2
  10. package/{Button-DQm2iqKU.cjs → Button-DrL5Jv-s.cjs} +1 -1
  11. package/Button.module-BNLcvARn.cjs +1 -0
  12. package/Button.module-Bax2YU6N.js +14 -0
  13. package/ButtonGroup-ClYTgaRc.cjs +1 -0
  14. package/{ButtonGroup-DvVvear6.js → ButtonGroup-WZZDPu9Z.js} +1 -1
  15. package/CHANGELOG.md +65 -0
  16. package/Card-BDDyGAMA.js +131 -0
  17. package/Card-mj5lCIR4.cjs +1 -0
  18. package/{CharacterCounter-DQJVM-mZ.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
  19. package/CharacterCounter-DT7A0wWP.js +22 -0
  20. package/Checkbox-BtM2rFh9.js +278 -0
  21. package/Checkbox-CvdIG43J.cjs +1 -0
  22. package/CheckboxGroup-C94as9Xt.cjs +1 -0
  23. package/CheckboxGroup-CjcDYBRk.js +157 -0
  24. package/Collection-B0_WAieZ.js +625 -0
  25. package/Collection-BvWp2xBd.cjs +1 -0
  26. package/{ColorSchemeSwitch-DyZ9FAKG.js → ColorSchemeSwitch-C4PMYeD5.js} +20 -28
  27. package/{ColorSchemeSwitch-DtyJ9-5B.cjs → ColorSchemeSwitch-CKcoGZM1.cjs} +3 -3
  28. package/ComboBox-B2EmfOyr.cjs +1 -0
  29. package/{ComboBox-Dn3tQzri.js → ComboBox-BWXJZyOR.js} +522 -507
  30. package/DateField-CcQJYDLD.js +47 -0
  31. package/DateField-IpCiF81R.cjs +1 -0
  32. package/{DateInputDivider-CJEGWmG0.js → DateInputDivider-CXkUdlzc.js} +936 -839
  33. package/DateInputDivider-Cf5GZHlM.cjs +1 -0
  34. package/DateRangePicker-B2BJO1KC.js +889 -0
  35. package/DateRangePicker-Dfwe9RhJ.cjs +6 -0
  36. package/Dialog-B8swxl24.js +1643 -0
  37. package/Dialog-DR6nEqMT.cjs +1 -0
  38. package/Dialog-DgJobm71.cjs +1 -0
  39. package/Dialog-P3frHOdq.js +240 -0
  40. package/DragAndDrop-Dw8JZmrn.cjs +1 -0
  41. package/DragAndDrop-PrUJv--B.js +75 -0
  42. package/{Dropdown-BWbdSQ9U.js → Dropdown-CIvWpN3v.js} +8 -8
  43. package/{Dropdown-CJ-sujKv.cjs → Dropdown-DJ2vWAqk.cjs} +2 -2
  44. package/FieldError-Cornph2A.cjs +1 -0
  45. package/FieldError-DdvFyIf4.js +48 -0
  46. package/{FileUpload-B89QfnCB.js → FileUpload-D2gnQKdn.js} +76 -74
  47. package/{FileUpload-KQ1XAKAc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
  48. package/{FocusScope-CEgd3xCY.js → FocusScope-Bj40Ir-g.js} +192 -195
  49. package/FocusScope-Uy3DiY0-.cjs +1 -0
  50. package/{Grid-Db5wZrw6.cjs → Grid-WbEkSCGh.cjs} +1 -1
  51. package/{Grid-B2av0vt8.js → Grid-s8ovKDi8.js} +1 -1
  52. package/GridItem-CIVF1fRW.cjs +1 -0
  53. package/GridItem-D3FZyyO-.js +243 -0
  54. package/{Group-Cdy6z9ra.cjs → Group-BKYGeOBr.cjs} +1 -1
  55. package/{Group-B3mRMVy7.js → Group-C73mD_-i.js} +13 -13
  56. package/Heading-BQlmb5Tm.js +46 -0
  57. package/Heading-D3FR_KXb.cjs +1 -0
  58. package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
  59. package/InfoBanner-CqjnTYaa.cjs +1 -0
  60. package/InfoBanner-CrA8MS3v.js +83 -0
  61. package/{Input-BnpBRnJz.js → Input-BLVRv0FK.js} +9 -9
  62. package/{Input-DIhhWEPW.cjs → Input-CzMx2mfl.cjs} +1 -1
  63. package/{Label-ByWt6Lfh.js → Label-BG7G0iyG.js} +24 -28
  64. package/Label-C00qz3kQ.cjs +1 -0
  65. package/Layout-Bta_Cpq_.cjs +16 -0
  66. package/Layout-CG-Qxr_1.js +482 -0
  67. package/{Link-Dnnv00g9.js → Link-BtxKZ0h3.js} +16 -16
  68. package/Link-Bx6avHVl.cjs +6 -0
  69. package/Link-CbFSuEI1.js +73 -0
  70. package/Link-wM7cVPlS.cjs +1 -0
  71. package/LinkButton-BvXu6vAH.cjs +6 -0
  72. package/LinkButton-D3EnZ65v.js +69 -0
  73. package/ListBox-ICZKGluC.cjs +1 -0
  74. package/ListBox-LncMQt6I.js +523 -0
  75. package/ListBoxLoadMoreItem-Ceo73a2q.cjs +1 -0
  76. package/ListBoxLoadMoreItem-W11V-Lef.js +41 -0
  77. package/ListBoxSection-BCPv9H50.js +1085 -0
  78. package/ListBoxSection-Dx75ZinL.cjs +1 -0
  79. package/{ListKeyboardDelegate-mcrZobNa.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
  80. package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
  81. package/{Logo-BW5NXAdu.cjs → Logo-CFjZc5u2.cjs} +1 -1
  82. package/{Logo-qkVS1MCN.js → Logo-DkagDdKQ.js} +15 -19
  83. package/OverlayArrow-ByH6lM-H.cjs +1 -0
  84. package/OverlayArrow-CvNuu3e3.js +519 -0
  85. package/{Popover-C5chAY42.cjs → Popover-Bi5yJEoE.cjs} +1 -1
  86. package/{Popover-viLqHHX2.js → Popover-CyEVqpJ6.js} +11 -11
  87. package/{PressResponder-B_Zqu7b1.js → PressResponder-CxVtArtP.js} +9 -9
  88. package/PressResponder-DbnYqwGB.cjs +1 -0
  89. package/ProgressBar-CdXHEJh6.js +53 -0
  90. package/ProgressBar-CjuHokVZ.cjs +1 -0
  91. package/Radio-Bll-7H8O.cjs +1 -0
  92. package/Radio-DoWx2AE1.js +333 -0
  93. package/RangeCalendar-A4WQIG7P.cjs +6 -0
  94. package/{RangeCalendar-DGGMbb0j.js → RangeCalendar-D7eFVAPP.js} +638 -630
  95. package/{SSRProvider-D8lZ0o6A.js → SSRProvider-40TXmsUG.js} +5 -5
  96. package/{SSRProvider-DZRLwxPS.cjs → SSRProvider-Bc-sMhsT.cjs} +1 -1
  97. package/{SearchField-Ma3KB8Em.cjs → SearchField-BbrUZpQm.cjs} +2 -2
  98. package/{SearchField-B0dlPqsW.js → SearchField-F2FKgYds.js} +29 -33
  99. package/Select-BnbDXwgD.cjs +1 -0
  100. package/Select-Dpi3LhbI.js +654 -0
  101. package/{SelectionManager-BdKKuso-.js → SelectionManager-Bq-Gw1UT.js} +291 -282
  102. package/SelectionManager-BtbHoHpA.cjs +1 -0
  103. package/Separator-CM0KPvsX.js +105 -0
  104. package/Separator-Cfv2pbWf.cjs +1 -0
  105. package/Separator-DH-5wu9X.js +77 -0
  106. package/Separator-Dgin8BNW.cjs +1 -0
  107. package/Skeleton-BpYj25p8.js +37 -0
  108. package/Skeleton-DMOxEwnd.cjs +1 -0
  109. package/Spinner-D1UBuLy4.cjs +6 -0
  110. package/Spinner-DTKb_LAA.js +47 -0
  111. package/TabList-D4WwgQY3.cjs +1 -0
  112. package/TabList-D9tl2s85.js +397 -0
  113. package/Table-C6k3PiiC.cjs +16 -0
  114. package/{Table-CTS0J_sQ.js → Table-CkN3y69S.js} +856 -798
  115. package/Tag-7dHEMQum.cjs +1 -0
  116. package/Tag-BUJ20HHw.js +765 -0
  117. package/Text-BAFsaON-.cjs +1 -0
  118. package/{Text--KL3Auo7.js → Text-Be7WIOwv.js} +3 -3
  119. package/{Text-wuw0HQoa.cjs → Text-BtPiT2P1.cjs} +1 -1
  120. package/Text-CmlsaWMA.js +32 -0
  121. package/TextArea-BCikUXaD.cjs +1 -0
  122. package/TextArea-h5_oBQH1.js +125 -0
  123. package/TextField-Bm5916AD.cjs +1 -0
  124. package/TextField-_UY8CXtW.js +134 -0
  125. package/TextField.module-C9Zm9unF.js +13 -0
  126. package/TextField.module-GTQtNO0r.cjs +1 -0
  127. package/{Toast-BnzpC_5v.js → Toast-BBkWczCk.js} +202 -214
  128. package/{Toast-BEh5yYzO.cjs → Toast-DclaxvZM.cjs} +1 -1
  129. package/ToggleButtonGroup-BGG64PK1.js +214 -0
  130. package/ToggleButtonGroup-Da330GRT.cjs +1 -0
  131. package/Tooltip-BHAtsp9k.js +281 -0
  132. package/Tooltip-CZa9n5sT.cjs +1 -0
  133. package/{VisuallyHidden-BKslUoMJ.js → VisuallyHidden-CGEtjAP7.js} +8 -8
  134. package/{VisuallyHidden-DxDOcIsh.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
  135. package/accordion/index.cjs +1 -1
  136. package/accordion/index.js +1 -1
  137. package/assets/AccordionItem.css +1 -1
  138. package/assets/BadgeContainer.css +1 -1
  139. package/assets/Breadcrumbs.css +1 -1
  140. package/assets/Button.css +1 -1
  141. package/assets/ButtonGroup.css +1 -1
  142. package/assets/Card.css +1 -1
  143. package/assets/CharacterCounter.css +1 -1
  144. package/assets/Checkbox.css +1 -1
  145. package/assets/ComboBox.css +1 -1
  146. package/assets/DateField.css +1 -1
  147. package/assets/DateInputDivider.css +1 -1
  148. package/assets/DateRangePicker.css +1 -1
  149. package/assets/Dialog.css +1 -1
  150. package/assets/Dropdown.css +1 -1
  151. package/assets/FieldError.css +1 -1
  152. package/assets/FileUpload.css +1 -1
  153. package/assets/GridItem.css +1 -1
  154. package/assets/Heading.css +1 -1
  155. package/assets/InfoBanner.css +1 -1
  156. package/assets/Label.css +1 -1
  157. package/assets/Layout.css +1 -1
  158. package/assets/Link.css +1 -1
  159. package/assets/LinkButton.css +1 -1
  160. package/assets/ListBoxSection.css +1 -1
  161. package/assets/Logo.css +1 -1
  162. package/assets/Popover.css +1 -1
  163. package/assets/ProgressBar.css +1 -1
  164. package/assets/Radio.css +1 -1
  165. package/assets/RangeCalendar.css +1 -1
  166. package/assets/SearchField.css +1 -1
  167. package/assets/Select.css +1 -1
  168. package/assets/Separator.css +1 -0
  169. package/assets/Skeleton.css +1 -1
  170. package/assets/Spinner.css +1 -1
  171. package/assets/TabList.css +1 -1
  172. package/assets/Table.css +1 -1
  173. package/assets/Tag.css +1 -1
  174. package/assets/Text.css +1 -1
  175. package/assets/TextField.css +1 -1
  176. package/assets/Toast.css +1 -1
  177. package/assets/ToggleButtonGroup.css +1 -1
  178. package/assets/Tooltip.css +1 -1
  179. package/assets/theme.css +1 -1
  180. package/assets/variables.css +1 -0
  181. package/badge/index.cjs +1 -1
  182. package/badge/index.js +1 -1
  183. package/breadcrumbs/index.cjs +1 -1
  184. package/breadcrumbs/index.js +1 -1
  185. package/button/index.cjs +1 -1
  186. package/button/index.js +2 -2
  187. package/calendar/index.cjs +1 -1
  188. package/calendar/index.js +1 -1
  189. package/card/index.cjs +1 -1
  190. package/card/index.js +1 -1
  191. package/character-counter/index.cjs +1 -1
  192. package/character-counter/index.js +1 -1
  193. package/checkbox/index.cjs +1 -1
  194. package/checkbox/index.js +2 -2
  195. package/chevron-right-0-sUFBiR.cjs +6 -0
  196. package/chevron-right-BYYHEJjK.js +11 -0
  197. package/color-scheme-switch/index.cjs +1 -1
  198. package/color-scheme-switch/index.js +1 -1
  199. package/combobox/index.cjs +1 -1
  200. package/combobox/index.d.ts +1 -1
  201. package/combobox/index.js +1 -1
  202. package/combobox/intl/translations.json.d.ts +4 -2
  203. package/{context-Dl_saGB6.js → context-CGNJ3grH.js} +11 -11
  204. package/{context-UOrD6Zxk.cjs → context-Df3XbgBG.cjs} +1 -1
  205. package/date-field/index.cjs +1 -1
  206. package/date-field/index.js +2 -2
  207. package/date-picker/index.cjs +1 -1
  208. package/date-picker/index.js +1 -1
  209. package/dropdown/Dropdown.d.ts +18 -0
  210. package/dropdown/index.cjs +1 -1
  211. package/dropdown/index.js +1 -1
  212. package/field-error/index.cjs +1 -1
  213. package/field-error/index.js +1 -1
  214. package/file-upload/index.cjs +1 -1
  215. package/file-upload/index.js +1 -1
  216. package/filterDOMProps-RRlKPKX0.cjs +1 -0
  217. package/filterDOMProps-wsa9OcNI.js +65 -0
  218. package/grid/index.cjs +1 -1
  219. package/grid/index.js +2 -2
  220. package/heading/index.cjs +1 -1
  221. package/heading/index.js +1 -1
  222. package/{index-BSMrH_Du.js → index-BLPblar-.js} +33 -30
  223. package/{index-D97L3EBk.cjs → index-DSFSh2sC.cjs} +3 -3
  224. package/index.cjs +1 -1
  225. package/index.d.ts +2 -0
  226. package/index.js +140 -125
  227. package/inertValue-B3AFhVG4.cjs +1 -0
  228. package/info-banner/index.cjs +1 -1
  229. package/info-banner/index.js +1 -1
  230. package/label/index.cjs +1 -1
  231. package/label/index.js +1 -1
  232. package/layout/index.cjs +1 -1
  233. package/layout/index.js +1 -1
  234. package/link/index.cjs +1 -1
  235. package/link/index.js +2 -2
  236. package/link-button/index.cjs +1 -1
  237. package/link-button/index.js +2 -2
  238. package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
  239. package/list-box/index.cjs +1 -1
  240. package/list-box/index.d.ts +1 -0
  241. package/list-box/index.js +6 -5
  242. package/list-box/intl/translations.json.d.ts +11 -0
  243. package/logo/index.cjs +1 -1
  244. package/logo/index.js +1 -1
  245. package/menu/Menu.d.ts +13 -0
  246. package/menu/MenuItem.d.ts +5 -0
  247. package/menu/MenuPopover.d.ts +3 -0
  248. package/menu/MenuSection.d.ts +3 -0
  249. package/menu/Separator.d.ts +3 -0
  250. package/menu/index.cjs +1 -0
  251. package/menu/index.d.ts +5 -0
  252. package/menu/index.js +8 -0
  253. package/mergeProps-BSsN7Bgk.js +117 -0
  254. package/mergeProps-JhcJ7uJL.cjs +1 -0
  255. package/modal/index.cjs +1 -1
  256. package/modal/index.js +2 -2
  257. package/package.json +6 -4
  258. package/popover/index.cjs +1 -1
  259. package/popover/index.js +1 -1
  260. package/progress-bar/index.cjs +1 -1
  261. package/progress-bar/index.js +1 -1
  262. package/radio/index.cjs +1 -1
  263. package/radio/index.js +1 -1
  264. package/search-field/index.cjs +1 -1
  265. package/search-field/index.js +1 -1
  266. package/select/Select.d.ts +1 -1
  267. package/select/index.cjs +1 -1
  268. package/select/index.js +1 -1
  269. package/skeleton/index.cjs +1 -1
  270. package/skeleton/index.js +1 -1
  271. package/spinner/index.cjs +1 -1
  272. package/spinner/index.js +1 -1
  273. package/table/index.cjs +1 -1
  274. package/table/index.js +1 -1
  275. package/tabs/index.cjs +1 -1
  276. package/tabs/index.js +1 -1
  277. package/tag/index.cjs +1 -1
  278. package/tag/index.js +1 -1
  279. package/text/index.cjs +1 -1
  280. package/text/index.js +1 -1
  281. package/textfield/Input.d.ts +7 -2
  282. package/textfield/PasswordField.d.ts +1 -1
  283. package/textfield/index.cjs +1 -1
  284. package/textfield/index.js +1 -1
  285. package/theme/generated-object.d.ts +384 -0
  286. package/theme/generated-tokens.d.ts +334 -0
  287. package/theme/index.cjs +1 -1
  288. package/theme/index.d.ts +4 -1
  289. package/theme/index.js +4037 -14
  290. package/theme/tokens.d.ts +30 -1
  291. package/toast/index.cjs +1 -1
  292. package/toast/index.js +1 -1
  293. package/toggle-button/index.cjs +1 -1
  294. package/toggle-button/index.js +1 -1
  295. package/{tokens-BWo7EvNX.cjs → tokens-B3FfJ-rY.cjs} +1 -1
  296. package/{tokens-BtEBd3jO.js → tokens-B9ooUP4g.js} +1 -2
  297. package/tooltip/index.cjs +1 -1
  298. package/tooltip/index.js +1 -1
  299. package/useButton-D6iUB8cN.js +56 -0
  300. package/useButton-R8-i3HLC.cjs +1 -0
  301. package/useDateFormatter-2B0vgHc-.cjs +1 -0
  302. package/{useDateFormatter-DiIUdTak.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
  303. package/{useDescription-LmB1V4Tg.js → useDescription-BLmIkYCq.js} +1 -1
  304. package/{useDescription-ByNlNIRU.cjs → useDescription-BMuiAqI5.cjs} +1 -1
  305. package/useEvent-3ZO5TPSH.cjs +1 -0
  306. package/{useEvent-DqWz89vg.js → useEvent-DpBHTuHJ.js} +1 -1
  307. package/{useField-5CEdtfab.js → useField-BMegM8fA.js} +2 -2
  308. package/{useField-CoQAzygg.cjs → useField-DyeD7MLj.cjs} +1 -1
  309. package/{useFilter-BKQT28sh.js → useFilter-BFnSe_Eq.js} +1 -1
  310. package/{useFilter-Bjh5dq2Q.cjs → useFilter-aoggM85n.cjs} +1 -1
  311. package/{useFocusRing-BM-zcH6L.cjs → useFocusRing-BcbYske2.cjs} +1 -1
  312. package/{useFocusRing-HoJn20X5.js → useFocusRing-DMo8ctYV.js} +2 -2
  313. package/{useFocusWithin-Cn18Myw6.js → useFocusWithin-ClMkhYcq.js} +1 -1
  314. package/{useFocusWithin-o0WjCpEB.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
  315. package/{useFocusable-DbmryjUH.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
  316. package/{useFocusable-ZjCKo1ed.js → useFocusable-DXlMChFC.js} +14 -14
  317. package/useFormValidation-BQIRxgbU.cjs +1 -0
  318. package/useFormValidation-L0UHvOsP.js +217 -0
  319. package/{useHasTabbableChild-CyOmqumh.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
  320. package/useHasTabbableChild-CJcLnolh.cjs +1 -0
  321. package/{useHighlightSelectionDescription-DTxHtOsw.js → useHighlightSelectionDescription-BkEv9Jye.js} +5 -5
  322. package/{useHighlightSelectionDescription-DAhPdEG6.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
  323. package/{useHover-D8fja4GW.js → useHover-D6bNIkU0.js} +81 -79
  324. package/useHover-DGAmG7jt.cjs +1 -0
  325. package/{useLabels-BtDN_ALM.cjs → useLabels-CvUk-yS3.cjs} +1 -1
  326. package/{useLabels-DZlvh4P4.js → useLabels-Kmq5JCp_.js} +1 -1
  327. package/useListState-D2IEg6_e.cjs +1 -0
  328. package/{useListState-e7cL-FOK.js → useListState-pixYqSLl.js} +43 -42
  329. package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-BO2iZEL0.cjs} +1 -1
  330. package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
  331. package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
  332. package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-N0AyjzbM.js} +1 -1
  333. package/useObserveElement-MhzEsCkX.cjs +1 -0
  334. package/usePress-CicXV7UO.cjs +7 -0
  335. package/{usePress-B_jgTf4k.js → usePress-DMUpU0GU.js} +84 -80
  336. package/{useSingleSelectListState-D7LjjoUJ.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
  337. package/{useSingleSelectListState-BiJMNaOl.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
  338. package/useTextField-BC5X_AO_.js +89 -0
  339. package/useTextField-Cxpfu0U3.cjs +1 -0
  340. package/useToggleState-BVOqL4hI.js +21 -0
  341. package/useToggleState-SqDyNfRi.cjs +1 -0
  342. package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
  343. package/utils/types.d.ts +4 -0
  344. package/{utils-BM2vxlNA.cjs → utils-CMHKYKlz.cjs} +1 -1
  345. package/{utils-KYuflGZt.js → utils-Cpcjg55U.js} +10 -10
  346. package/utils-DFIwp4PB.js +262 -0
  347. package/utils-__vrf9VZ.cjs +1 -0
  348. package/AccordionItem-DEiRuizp.js +0 -361
  349. package/AccordionItem-Dhr7uo8u.cjs +0 -1
  350. package/BadgeContainer-CxVmqJ7g.cjs +0 -1
  351. package/Breadcrumbs-CEyKlcGU.js +0 -262
  352. package/Breadcrumbs-CnGzvtbn.cjs +0 -1
  353. package/Button-DZzQGk-L.cjs +0 -1
  354. package/Button.module-D-mPLRxe.js +0 -14
  355. package/Button.module-goCEz5qs.cjs +0 -1
  356. package/ButtonGroup-DUqW5dzM.cjs +0 -1
  357. package/Card-CwwVnA_a.js +0 -131
  358. package/Card-DPfOZC7f.cjs +0 -1
  359. package/CharacterCounter-DPphWPzA.js +0 -22
  360. package/Checkbox-BN_3F2Hl.js +0 -264
  361. package/Checkbox-CZtCj4yR.cjs +0 -1
  362. package/CheckboxGroup--xgOT1Do.js +0 -159
  363. package/CheckboxGroup-DGHaqRvb.cjs +0 -1
  364. package/Collection-B1xL4EdF.cjs +0 -1
  365. package/Collection-C5vE9MtJ.js +0 -577
  366. package/ComboBox-UadZMhiR.cjs +0 -1
  367. package/DateField-CNEoLyf5.cjs +0 -1
  368. package/DateField-CZmLugT0.js +0 -47
  369. package/DateInputDivider-CCjiq90K.cjs +0 -1
  370. package/DateRangePicker-DhgLEa9P.cjs +0 -6
  371. package/DateRangePicker-WQ97Psz7.js +0 -870
  372. package/Dialog-BT0tVGQb.cjs +0 -1
  373. package/Dialog-BuJdAr0D.js +0 -1611
  374. package/Dialog-DYK8lySl.cjs +0 -1
  375. package/Dialog-L53DWF0Z.js +0 -220
  376. package/DragAndDrop-DKxsUpmW.js +0 -60
  377. package/DragAndDrop-Dgfq6uJ0.cjs +0 -1
  378. package/FieldError-BlKkw9YL.js +0 -46
  379. package/FieldError-BvU0sueN.cjs +0 -1
  380. package/FocusScope-CAgWgk3N.cjs +0 -1
  381. package/GridItem-BnyULDnc.cjs +0 -1
  382. package/GridItem-orSzD7H5.js +0 -243
  383. package/Heading-DDhdwRAW.js +0 -46
  384. package/Heading-OUPkdoEJ.cjs +0 -1
  385. package/InfoBanner-DpLcq_1R.cjs +0 -1
  386. package/InfoBanner-U5hxOipC.js +0 -99
  387. package/Label-COpr4xVt.cjs +0 -1
  388. package/Layout-BR3Or1Ga.cjs +0 -16
  389. package/Layout-Bdqauktv.js +0 -498
  390. package/Link-CM2N5Jq-.js +0 -72
  391. package/Link-Dq8IFDBx.cjs +0 -6
  392. package/Link-ceVlGaWQ.cjs +0 -1
  393. package/LinkButton-BJA9_HzL.cjs +0 -6
  394. package/LinkButton-DH3Nfdis.js +0 -69
  395. package/ListBox-D0u9svwm.cjs +0 -1
  396. package/ListBox-y_dw__MI.js +0 -531
  397. package/ListBoxButton-C2zp-gXD.cjs +0 -1
  398. package/ListBoxButton-DiseS_LX.js +0 -15
  399. package/ListBoxSection-Cv-gN76G.js +0 -1058
  400. package/ListBoxSection-DtsigmC1.cjs +0 -1
  401. package/ListKeyboardDelegate-fZKXmHAk.cjs +0 -1
  402. package/OverlayArrow-8praV_Xy.cjs +0 -1
  403. package/OverlayArrow-DfkRZlgG.js +0 -507
  404. package/PressResponder-Bm3_RM9c.cjs +0 -1
  405. package/ProgressBar-D5mNQTID.cjs +0 -1
  406. package/ProgressBar-wQirOG1N.js +0 -53
  407. package/Radio-BIomn_sP.js +0 -313
  408. package/Radio-CxvJ5Wrl.cjs +0 -1
  409. package/RangeCalendar-BvvZ2SBj.cjs +0 -11
  410. package/Select-769RSZ9V.js +0 -664
  411. package/Select-Go5x0zWl.cjs +0 -1
  412. package/SelectionManager-BvREZgeu.cjs +0 -1
  413. package/Separator-CggS0R7Q.js +0 -59
  414. package/Separator-DBsDhqCr.cjs +0 -1
  415. package/Skeleton-BAwbfKBW.cjs +0 -1
  416. package/Skeleton-BePDRmrO.js +0 -40
  417. package/Spinner-AXFRWuT6.js +0 -51
  418. package/Spinner-yHx_DX_4.cjs +0 -6
  419. package/TabList-0gj27e_e.js +0 -386
  420. package/TabList-Cqpup53E.cjs +0 -1
  421. package/Table-BhtlNY9P.cjs +0 -16
  422. package/Tag-B9M-nBTM.js +0 -748
  423. package/Tag-DkW6zaIS.cjs +0 -1
  424. package/Text-BUDAzDjW.js +0 -32
  425. package/Text-DA_gK6a2.cjs +0 -1
  426. package/TextArea-CSrrYY05.cjs +0 -1
  427. package/TextArea-DphcH6wE.js +0 -119
  428. package/TextField-CsyRTSEG.js +0 -120
  429. package/TextField-P5yICj5z.cjs +0 -1
  430. package/TextField.module-BcpPBWnD.js +0 -13
  431. package/TextField.module-Dw5Rtn9y.cjs +0 -1
  432. package/ToggleButtonGroup-BwFAhFEi.cjs +0 -1
  433. package/ToggleButtonGroup-CuxAKB3-.js +0 -211
  434. package/Tooltip-Bz0xCZSw.cjs +0 -1
  435. package/Tooltip-EuEQtHZj.js +0 -285
  436. package/filterDOMProps-BS2lrgFA.cjs +0 -1
  437. package/filterDOMProps-D6KHYVBX.js +0 -24
  438. package/inertValue-BWmZ1afe.cjs +0 -1
  439. package/mergeProps-BYJQ6N1s.js +0 -115
  440. package/mergeProps-C7Sx47fA.cjs +0 -1
  441. package/useButton-CWHoXYnj.js +0 -47
  442. package/useButton-CwOQUGtY.cjs +0 -1
  443. package/useDateFormatter-bzjwqA2K.cjs +0 -1
  444. package/useEvent-CGRyLM2c.cjs +0 -1
  445. package/useFormValidation-BW2NSTM4.js +0 -215
  446. package/useFormValidation-DSRwb9US.cjs +0 -1
  447. package/useHasTabbableChild-CogBR_6o.cjs +0 -1
  448. package/useHover-CaFzQrR_.cjs +0 -1
  449. package/useListState-TtWy_rDI.cjs +0 -1
  450. package/useLocalizedStringFormatter-CHAo1AyN.cjs +0 -1
  451. package/useObserveElement-BzEr5D32.cjs +0 -1
  452. package/usePress-BOGIOlm8.cjs +0 -7
  453. package/useTextField-BVIOd8Ld.cjs +0 -1
  454. package/useTextField-DFkSHoQN.js +0 -86
  455. package/useToggleState-Bz5rAf4C.js +0 -18
  456. package/useToggleState-DoIkSQdj.cjs +0 -1
  457. package/utils-C5-CzvX2.cjs +0 -1
  458. package/utils-CuqJqFqQ.js +0 -234
@@ -0,0 +1,889 @@
1
+ import { jsxs as Y, jsx as v } from "react/jsx-runtime";
2
+ import { c as ee } from "./clsx-OuTLNxxd.js";
3
+ import { $ as na, a as ra, C as oa, R as sa } from "./RangeCalendar-D7eFVAPP.js";
4
+ import { c as Fe, d as Ce, e as Oe, f as ua, g as Re, h as ca, i as X, j as G, k as fa, l as Te, m as ba, a as se, D as ue, b as va } from "./DateInputDivider-CXkUdlzc.js";
5
+ import { $ as Ie, F as ae } from "./FieldError-DdvFyIf4.js";
6
+ import { a as Be, L as Ze } from "./Label-BG7G0iyG.js";
7
+ import { T as ke } from "./Text-CmlsaWMA.js";
8
+ import { e as ve, b as me, $ as ma } from "./Button-DD5_S-tD.js";
9
+ import { $ as Me, c as _e, d as we, e as Ee, a as Se, f as We } from "./utils-Cpcjg55U.js";
10
+ import { i as Ne, n as Ue, o as Le, a as $a, l as ha } from "./Dialog-B8swxl24.js";
11
+ import { $ as Ke } from "./Form-CXcEMuBf.js";
12
+ import { $ as $e, a as ga } from "./Group-C73mD_-i.js";
13
+ import { $ as he } from "./Text-Be7WIOwv.js";
14
+ import { c as H, a as le } from "./mergeProps-BSsN7Bgk.js";
15
+ import { $ as ie } from "./filterDOMProps-wsa9OcNI.js";
16
+ import { a as pe, g as je } from "./OverlayArrow-CvNuu3e3.js";
17
+ import J, { useMemo as j, useRef as A, useState as W, forwardRef as ze, createContext as te, useCallback as qe } from "react";
18
+ import { $ as Q, a as ce, b as fe } from "./useDateFormatter-BJ1ZyaH1.js";
19
+ import { d as be, e as De, c as xe, $ as Ge } from "./useFormValidation-L0UHvOsP.js";
20
+ import { $ as Ae } from "./useControlledState-u436Wbp1.js";
21
+ import { b as Xe } from "./FocusScope-Bj40Ir-g.js";
22
+ import { $ as He } from "./useDescription-BLmIkYCq.js";
23
+ import { $ as Je } from "./useFocusWithin-ClMkhYcq.js";
24
+ import { $ as Qe } from "./useField-BMegM8fA.js";
25
+ import { $ as Ye } from "./context-CGNJ3grH.js";
26
+ import { $ as ea } from "./useLocalizedStringFormatter-CL9MUZ8A.js";
27
+ import { $ as aa } from "./useFocusRing-DMo8ctYV.js";
28
+ import { c as ya } from "./createLucideIcon-XRdN60yz.js";
29
+ import './assets/DateRangePicker.css';function Va(e) {
30
+ return e && e.__esModule ? e.default : e;
31
+ }
32
+ function Pa(e, a, t) {
33
+ let s = H(), u = H(), m = H(), o = ea(Va(Oe), "@react-aria/datepicker"), { isInvalid: i, validationErrors: c, validationDetails: l } = a.displayValidation, { labelProps: F, fieldProps: C, descriptionProps: g, errorMessageProps: I } = Qe({
34
+ ...e,
35
+ labelElementType: "span",
36
+ isInvalid: i,
37
+ errorMessage: e.errorMessage || c
38
+ }), O = Fe(a, t), B = C["aria-labelledby"] || C.id, { locale: R } = Ye(), b = a.formatValue(R, {
39
+ month: "long"
40
+ }), Z = b ? o.format("selectedDateDescription", {
41
+ date: b
42
+ }) : "", d = He(Z), T = [
43
+ d["aria-describedby"],
44
+ C["aria-describedby"]
45
+ ].filter(Boolean).join(" ") || void 0, w = ie(e), k = j(() => Xe(t), [
46
+ t
47
+ ]), P = A(!1), { focusWithinProps: _ } = Je({
48
+ ...e,
49
+ isDisabled: a.isOpen,
50
+ onBlurWithin: ($) => {
51
+ let y = document.getElementById(u);
52
+ if (!(y != null && y.contains($.relatedTarget))) {
53
+ var D, M;
54
+ P.current = !1, (D = e.onBlur) === null || D === void 0 || D.call(e, $), (M = e.onFocusChange) === null || M === void 0 || M.call(e, !1);
55
+ }
56
+ },
57
+ onFocusWithin: ($) => {
58
+ if (!P.current) {
59
+ var y, D;
60
+ P.current = !0, (y = e.onFocus) === null || y === void 0 || y.call(e, $), (D = e.onFocusChange) === null || D === void 0 || D.call(e, !0);
61
+ }
62
+ }
63
+ });
64
+ return {
65
+ groupProps: le(w, O, C, d, _, {
66
+ role: "group",
67
+ "aria-disabled": e.isDisabled || null,
68
+ "aria-labelledby": B,
69
+ "aria-describedby": T,
70
+ onKeyDown($) {
71
+ a.isOpen || e.onKeyDown && e.onKeyDown($);
72
+ },
73
+ onKeyUp($) {
74
+ a.isOpen || e.onKeyUp && e.onKeyUp($);
75
+ }
76
+ }),
77
+ labelProps: {
78
+ ...F,
79
+ onClick: () => {
80
+ k.focusFirst();
81
+ }
82
+ },
83
+ fieldProps: {
84
+ ...C,
85
+ id: m,
86
+ [Ce]: "presentation",
87
+ "aria-describedby": T,
88
+ value: a.value,
89
+ defaultValue: a.defaultValue,
90
+ onChange: a.setValue,
91
+ placeholderValue: e.placeholderValue,
92
+ hideTimeZone: e.hideTimeZone,
93
+ hourCycle: e.hourCycle,
94
+ shouldForceLeadingZeros: e.shouldForceLeadingZeros,
95
+ granularity: e.granularity,
96
+ isDisabled: e.isDisabled,
97
+ isReadOnly: e.isReadOnly,
98
+ isRequired: e.isRequired,
99
+ validationBehavior: e.validationBehavior,
100
+ // DatePicker owns the validation state for the date field.
101
+ [be]: a,
102
+ autoFocus: e.autoFocus,
103
+ name: e.name,
104
+ form: e.form
105
+ },
106
+ descriptionProps: g,
107
+ errorMessageProps: I,
108
+ buttonProps: {
109
+ ...d,
110
+ id: s,
111
+ "aria-haspopup": "dialog",
112
+ "aria-label": o.format("calendar"),
113
+ "aria-labelledby": `${s} ${B}`,
114
+ "aria-describedby": T,
115
+ "aria-expanded": a.isOpen,
116
+ isDisabled: e.isDisabled || e.isReadOnly,
117
+ onPress: () => a.setOpen(!0)
118
+ },
119
+ dialogProps: {
120
+ id: u,
121
+ "aria-labelledby": `${s} ${B}`
122
+ },
123
+ calendarProps: {
124
+ autoFocus: !0,
125
+ value: a.dateValue,
126
+ onChange: a.setDateValue,
127
+ minValue: e.minValue,
128
+ maxValue: e.maxValue,
129
+ isDisabled: e.isDisabled,
130
+ isReadOnly: e.isReadOnly,
131
+ isDateUnavailable: e.isDateUnavailable,
132
+ defaultFocusedValue: a.dateValue ? void 0 : e.placeholderValue,
133
+ isInvalid: a.isInvalid,
134
+ errorMessage: typeof e.errorMessage == "function" ? e.errorMessage(a.displayValidation) : e.errorMessage || a.displayValidation.validationErrors.join(" "),
135
+ firstDayOfWeek: e.firstDayOfWeek,
136
+ pageBehavior: e.pageBehavior
137
+ },
138
+ isInvalid: i,
139
+ validationErrors: c,
140
+ validationDetails: l
141
+ };
142
+ }
143
+ function Da(e) {
144
+ return e && e.__esModule ? e.default : e;
145
+ }
146
+ function xa(e, a, t) {
147
+ var s, u, m, o, i;
148
+ let c = ea(Da(Oe), "@react-aria/datepicker"), { isInvalid: l, validationErrors: F, validationDetails: C } = a.displayValidation, { labelProps: g, fieldProps: I, descriptionProps: O, errorMessageProps: B } = Qe({
149
+ ...e,
150
+ labelElementType: "span",
151
+ isInvalid: l,
152
+ errorMessage: e.errorMessage || F
153
+ }), R = I["aria-labelledby"] || I.id, { locale: b } = Ye(), Z = a.formatValue(b, {
154
+ month: "long"
155
+ }), d = Z ? c.format("selectedRangeDescription", {
156
+ startDate: Z.start,
157
+ endDate: Z.end
158
+ }) : "", T = He(d), w = {
159
+ "aria-label": c.format("startDate"),
160
+ "aria-labelledby": R
161
+ }, k = {
162
+ "aria-label": c.format("endDate"),
163
+ "aria-labelledby": R
164
+ }, P = H(), _ = H(), $ = Fe(a, t), y = [
165
+ T["aria-describedby"],
166
+ I["aria-describedby"]
167
+ ].filter(Boolean).join(" ") || void 0, D = j(() => Xe(t, {
168
+ // Exclude the button from the focus manager.
169
+ accept: (n) => n.id !== P
170
+ }), [
171
+ t,
172
+ P
173
+ ]), M = {
174
+ [ua]: D,
175
+ [Ce]: "presentation",
176
+ "aria-describedby": y,
177
+ placeholderValue: e.placeholderValue,
178
+ hideTimeZone: e.hideTimeZone,
179
+ hourCycle: e.hourCycle,
180
+ granularity: e.granularity,
181
+ shouldForceLeadingZeros: e.shouldForceLeadingZeros,
182
+ isDisabled: e.isDisabled,
183
+ isReadOnly: e.isReadOnly,
184
+ isRequired: e.isRequired,
185
+ validationBehavior: e.validationBehavior
186
+ }, V = ie(e), x = A(!1), { focusWithinProps: N } = Je({
187
+ ...e,
188
+ isDisabled: a.isOpen,
189
+ onBlurWithin: (n) => {
190
+ let h = document.getElementById(_);
191
+ if (!(h != null && h.contains(n.relatedTarget))) {
192
+ var E, q;
193
+ x.current = !1, (E = e.onBlur) === null || E === void 0 || E.call(e, n), (q = e.onFocusChange) === null || q === void 0 || q.call(e, !1);
194
+ }
195
+ },
196
+ onFocusWithin: (n) => {
197
+ if (!x.current) {
198
+ var h, E;
199
+ x.current = !0, (h = e.onFocus) === null || h === void 0 || h.call(e, n), (E = e.onFocusChange) === null || E === void 0 || E.call(e, !0);
200
+ }
201
+ }
202
+ }), U = A(De), z = A(De);
203
+ var r, f;
204
+ return {
205
+ groupProps: le(V, $, I, T, N, {
206
+ role: "group",
207
+ "aria-disabled": e.isDisabled || null,
208
+ "aria-describedby": y,
209
+ onKeyDown(n) {
210
+ a.isOpen || e.onKeyDown && e.onKeyDown(n);
211
+ },
212
+ onKeyUp(n) {
213
+ a.isOpen || e.onKeyUp && e.onKeyUp(n);
214
+ }
215
+ }),
216
+ labelProps: {
217
+ ...g,
218
+ onClick: () => {
219
+ D.focusFirst();
220
+ }
221
+ },
222
+ buttonProps: {
223
+ ...T,
224
+ id: P,
225
+ "aria-haspopup": "dialog",
226
+ "aria-label": c.format("calendar"),
227
+ "aria-labelledby": `${P} ${R}`,
228
+ "aria-describedby": y,
229
+ "aria-expanded": a.isOpen,
230
+ isDisabled: e.isDisabled || e.isReadOnly,
231
+ onPress: () => a.setOpen(!0)
232
+ },
233
+ dialogProps: {
234
+ id: _,
235
+ "aria-labelledby": `${P} ${R}`
236
+ },
237
+ startFieldProps: {
238
+ ...w,
239
+ ...M,
240
+ value: (r = (s = a.value) === null || s === void 0 ? void 0 : s.start) !== null && r !== void 0 ? r : null,
241
+ defaultValue: (u = a.defaultValue) === null || u === void 0 ? void 0 : u.start,
242
+ onChange: (n) => a.setDateTime("start", n),
243
+ autoFocus: e.autoFocus,
244
+ name: e.startName,
245
+ form: e.form,
246
+ [be]: {
247
+ realtimeValidation: a.realtimeValidation,
248
+ displayValidation: a.displayValidation,
249
+ updateValidation(n) {
250
+ U.current = n, a.updateValidation(xe(n, z.current));
251
+ },
252
+ resetValidation: a.resetValidation,
253
+ commitValidation: a.commitValidation
254
+ }
255
+ },
256
+ endFieldProps: {
257
+ ...k,
258
+ ...M,
259
+ value: (f = (m = a.value) === null || m === void 0 ? void 0 : m.end) !== null && f !== void 0 ? f : null,
260
+ defaultValue: (o = a.defaultValue) === null || o === void 0 ? void 0 : o.end,
261
+ onChange: (n) => a.setDateTime("end", n),
262
+ name: e.endName,
263
+ form: e.form,
264
+ [be]: {
265
+ realtimeValidation: a.realtimeValidation,
266
+ displayValidation: a.displayValidation,
267
+ updateValidation(n) {
268
+ z.current = n, a.updateValidation(xe(U.current, n));
269
+ },
270
+ resetValidation: a.resetValidation,
271
+ commitValidation: a.commitValidation
272
+ }
273
+ },
274
+ descriptionProps: O,
275
+ errorMessageProps: B,
276
+ calendarProps: {
277
+ autoFocus: !0,
278
+ value: !((i = a.dateRange) === null || i === void 0) && i.start && a.dateRange.end ? a.dateRange : null,
279
+ onChange: a.setDateRange,
280
+ minValue: e.minValue,
281
+ maxValue: e.maxValue,
282
+ isDisabled: e.isDisabled,
283
+ isReadOnly: e.isReadOnly,
284
+ isDateUnavailable: e.isDateUnavailable,
285
+ allowsNonContiguousRanges: e.allowsNonContiguousRanges,
286
+ defaultFocusedValue: a.dateRange ? void 0 : e.placeholderValue,
287
+ isInvalid: a.isInvalid,
288
+ errorMessage: typeof e.errorMessage == "function" ? e.errorMessage(a.displayValidation) : e.errorMessage || a.displayValidation.validationErrors.join(" "),
289
+ firstDayOfWeek: e.firstDayOfWeek,
290
+ pageBehavior: e.pageBehavior
291
+ },
292
+ isInvalid: l,
293
+ validationErrors: F,
294
+ validationDetails: C
295
+ };
296
+ }
297
+ function Fa(e) {
298
+ let a = pe(e), [t, s] = Ae(e.value, e.defaultValue || null, e.onChange), [u] = W(t), m = t || e.placeholderValue || null, [o, i] = Re(m, e.granularity), c = t != null ? t.toDate(i ?? "UTC") : null, l = o === "hour" || o === "minute" || o === "second";
299
+ var F;
300
+ let C = (F = e.shouldCloseOnSelect) !== null && F !== void 0 ? F : !0, [g, I] = W(null), [O, B] = W(null);
301
+ if (t && (g = t, "hour" in t && (O = t)), m && !(o in m)) throw new Error("Invalid granularity " + o + " for value " + m.toString());
302
+ let R = (t == null ? void 0 : t.calendar.identifier) === "gregory" && t.era === "BC", b = j(() => ({
303
+ granularity: o,
304
+ timeZone: i,
305
+ hideTimeZone: e.hideTimeZone,
306
+ hourCycle: e.hourCycle,
307
+ shouldForceLeadingZeros: e.shouldForceLeadingZeros,
308
+ showEra: R
309
+ }), [
310
+ o,
311
+ e.hourCycle,
312
+ e.shouldForceLeadingZeros,
313
+ i,
314
+ e.hideTimeZone,
315
+ R
316
+ ]), { minValue: Z, maxValue: d, isDateUnavailable: T } = e, w = j(() => ca(t, Z, d, T, b), [
317
+ t,
318
+ Z,
319
+ d,
320
+ T,
321
+ b
322
+ ]), k = Ge({
323
+ ...e,
324
+ value: t,
325
+ builtinValidation: w
326
+ }), P = k.displayValidation.isInvalid, _ = e.validationState || (P ? "invalid" : null), $ = (V, x) => {
327
+ s("timeZone" in x ? x.set(fe(V)) : ce(V, x)), I(null), B(null), k.commitValidation();
328
+ }, y = (V) => {
329
+ let x = typeof C == "function" ? C() : C;
330
+ l ? O || x ? $(V, O || G(e.defaultValue || e.placeholderValue)) : I(V) : (s(V), k.commitValidation()), x && a.setOpen(!1);
331
+ }, D = (V) => {
332
+ g && V ? $(g, V) : B(V);
333
+ };
334
+ var M;
335
+ return {
336
+ ...k,
337
+ value: t,
338
+ defaultValue: (M = e.defaultValue) !== null && M !== void 0 ? M : u,
339
+ setValue: s,
340
+ dateValue: g,
341
+ timeValue: O,
342
+ setDateValue: y,
343
+ setTimeValue: D,
344
+ granularity: o,
345
+ hasTime: l,
346
+ ...a,
347
+ setOpen(V) {
348
+ !V && !t && g && l && $(g, O || G(e.defaultValue || e.placeholderValue)), a.setOpen(V);
349
+ },
350
+ validationState: _,
351
+ isInvalid: P,
352
+ formatValue(V, x) {
353
+ if (!c) return "";
354
+ let N = X(x, b);
355
+ return new Q(V, N).format(c);
356
+ },
357
+ getDateFormatter(V, x) {
358
+ let N = {
359
+ ...b,
360
+ ...x
361
+ }, U = X({}, N);
362
+ return new Q(V, U);
363
+ }
364
+ };
365
+ }
366
+ function Ca(e) {
367
+ var a, t;
368
+ let s = pe(e), [u, m] = Ae(e.value, e.defaultValue || null, e.onChange), [o] = W(u), [i, c] = W(() => u || {
369
+ start: null,
370
+ end: null
371
+ });
372
+ u == null && i.start && i.end && (i = {
373
+ start: null,
374
+ end: null
375
+ }, c(i));
376
+ let l = u || i, F = (r) => {
377
+ l = r || {
378
+ start: null,
379
+ end: null
380
+ }, c(l), K(l) ? m(l) : m(null);
381
+ }, C = (l == null ? void 0 : l.start) || (l == null ? void 0 : l.end) || e.placeholderValue || null, [g, I] = Re(C, e.granularity), O = g === "hour" || g === "minute" || g === "second";
382
+ var B;
383
+ let R = (B = e.shouldCloseOnSelect) !== null && B !== void 0 ? B : !0, [b, Z] = W(null), [d, T] = W(null);
384
+ l && K(l) && (b = l, "hour" in l.start && (d = l));
385
+ let w = (r, f) => {
386
+ F({
387
+ start: "timeZone" in f.start ? f.start.set(fe(r.start)) : ce(r.start, f.start),
388
+ end: "timeZone" in f.end ? f.end.set(fe(r.end)) : ce(r.end, f.end)
389
+ }), Z(null), T(null), x.commitValidation();
390
+ }, k = (r) => {
391
+ let f = typeof R == "function" ? R() : R;
392
+ O ? K(r) && (f || d != null && d.start && (d != null && d.end)) ? w(r, {
393
+ start: (d == null ? void 0 : d.start) || G(e.placeholderValue),
394
+ end: (d == null ? void 0 : d.end) || G(e.placeholderValue)
395
+ }) : Z(r) : K(r) ? (F(r), x.commitValidation()) : Z(r), f && s.setOpen(!1);
396
+ }, P = (r) => {
397
+ K(b) && K(r) ? w(b, r) : T(r);
398
+ }, _ = (l == null || (a = l.start) === null || a === void 0 ? void 0 : a.calendar.identifier) === "gregory" && l.start.era === "BC" || (l == null || (t = l.end) === null || t === void 0 ? void 0 : t.calendar.identifier) === "gregory" && l.end.era === "BC", $ = j(() => ({
399
+ granularity: g,
400
+ timeZone: I,
401
+ hideTimeZone: e.hideTimeZone,
402
+ hourCycle: e.hourCycle,
403
+ shouldForceLeadingZeros: e.shouldForceLeadingZeros,
404
+ showEra: _
405
+ }), [
406
+ g,
407
+ e.hourCycle,
408
+ e.shouldForceLeadingZeros,
409
+ I,
410
+ e.hideTimeZone,
411
+ _
412
+ ]), { minValue: y, maxValue: D, isDateUnavailable: M } = e, V = j(() => fa(l, y, D, M, $), [
413
+ l,
414
+ y,
415
+ D,
416
+ M,
417
+ $
418
+ ]), x = Ge({
419
+ ...e,
420
+ value: u,
421
+ name: j(() => [
422
+ e.startName,
423
+ e.endName
424
+ ].filter((r) => r != null), [
425
+ e.startName,
426
+ e.endName
427
+ ]),
428
+ builtinValidation: V
429
+ }), N = x.displayValidation.isInvalid, U = e.validationState || (N ? "invalid" : null);
430
+ var z;
431
+ return {
432
+ ...x,
433
+ value: l,
434
+ defaultValue: (z = e.defaultValue) !== null && z !== void 0 ? z : o,
435
+ setValue: F,
436
+ dateRange: b,
437
+ timeRange: d,
438
+ granularity: g,
439
+ hasTime: O,
440
+ setDate(r, f) {
441
+ var n, h;
442
+ k(r === "start" ? {
443
+ start: f,
444
+ end: (n = b == null ? void 0 : b.end) !== null && n !== void 0 ? n : null
445
+ } : {
446
+ start: (h = b == null ? void 0 : b.start) !== null && h !== void 0 ? h : null,
447
+ end: f
448
+ });
449
+ },
450
+ setTime(r, f) {
451
+ var n, h;
452
+ P(r === "start" ? {
453
+ start: f,
454
+ end: (n = d == null ? void 0 : d.end) !== null && n !== void 0 ? n : null
455
+ } : {
456
+ start: (h = d == null ? void 0 : d.start) !== null && h !== void 0 ? h : null,
457
+ end: f
458
+ });
459
+ },
460
+ setDateTime(r, f) {
461
+ var n, h;
462
+ F(r === "start" ? {
463
+ start: f,
464
+ end: (n = l == null ? void 0 : l.end) !== null && n !== void 0 ? n : null
465
+ } : {
466
+ start: (h = l == null ? void 0 : l.start) !== null && h !== void 0 ? h : null,
467
+ end: f
468
+ });
469
+ },
470
+ setDateRange: k,
471
+ setTimeRange: P,
472
+ ...s,
473
+ setOpen(r) {
474
+ !r && !(l != null && l.start && (l != null && l.end)) && K(b) && O && w(b, {
475
+ start: (d == null ? void 0 : d.start) || G(e.placeholderValue),
476
+ end: (d == null ? void 0 : d.end) || G(e.placeholderValue)
477
+ }), s.setOpen(r);
478
+ },
479
+ validationState: U,
480
+ isInvalid: N,
481
+ formatValue(r, f) {
482
+ if (!l || !l.start || !l.end) return null;
483
+ let n = "timeZone" in l.start ? l.start.timeZone : void 0, h = e.granularity || (l.start && "minute" in l.start ? "minute" : "day"), E = "timeZone" in l.end ? l.end.timeZone : void 0, q = e.granularity || (l.end && "minute" in l.end ? "minute" : "day"), da = X(f, {
484
+ granularity: h,
485
+ timeZone: n,
486
+ hideTimeZone: e.hideTimeZone,
487
+ hourCycle: e.hourCycle,
488
+ showEra: l.start.calendar.identifier === "gregory" && l.start.era === "BC" || l.end.calendar.identifier === "gregory" && l.end.era === "BC"
489
+ }), ge = l.start.toDate(n || "UTC"), ye = l.end.toDate(E || "UTC"), de = new Q(r, da), ne;
490
+ if (n === E && h === q && l.start.compare(l.end) !== 0) {
491
+ try {
492
+ let L = de.formatRangeToParts(ge, ye), re = -1;
493
+ for (let S = 0; S < L.length; S++) {
494
+ let oe = L[S];
495
+ if (oe.source === "shared" && oe.type === "literal") re = S;
496
+ else if (oe.source === "endRange") break;
497
+ }
498
+ let Ve = "", Pe = "";
499
+ for (let S = 0; S < L.length; S++)
500
+ S < re ? Ve += L[S].value : S > re && (Pe += L[S].value);
501
+ return {
502
+ start: Ve,
503
+ end: Pe
504
+ };
505
+ } catch {
506
+ }
507
+ ne = de;
508
+ } else {
509
+ let L = X(f, {
510
+ granularity: q,
511
+ timeZone: E,
512
+ hideTimeZone: e.hideTimeZone,
513
+ hourCycle: e.hourCycle
514
+ });
515
+ ne = new Q(r, L);
516
+ }
517
+ return {
518
+ start: de.format(ge),
519
+ end: ne.format(ye)
520
+ };
521
+ },
522
+ getDateFormatter(r, f) {
523
+ let n = {
524
+ ...$,
525
+ ...f
526
+ }, h = X({}, n);
527
+ return new Q(r, h);
528
+ }
529
+ };
530
+ }
531
+ function K(e) {
532
+ return (e == null ? void 0 : e.start) != null && e.end != null;
533
+ }
534
+ const Oa = /* @__PURE__ */ te(null), Ra = /* @__PURE__ */ te(null), Ta = /* @__PURE__ */ te(null), Ia = /* @__PURE__ */ te(null), la = [
535
+ $e,
536
+ ve,
537
+ me,
538
+ he
539
+ ], Ba = /* @__PURE__ */ ze(function(a, t) {
540
+ [a, t] = Me(a, t, Oa);
541
+ let { validationBehavior: s } = _e(Ke) || {};
542
+ var u, m;
543
+ let o = (m = (u = a.validationBehavior) !== null && u !== void 0 ? u : s) !== null && m !== void 0 ? m : "native", i = Fa({
544
+ ...a,
545
+ validationBehavior: o
546
+ }), c = A(null), [l, F] = we(!a["aria-label"] && !a["aria-labelledby"]), { groupProps: C, labelProps: g, fieldProps: I, buttonProps: O, dialogProps: B, calendarProps: R, descriptionProps: b, errorMessageProps: Z, ...d } = Pa({
547
+ ...Ee(a),
548
+ label: F,
549
+ validationBehavior: o
550
+ }, i, c), [T, w] = W(null), k = qe(() => {
551
+ c.current && w(c.current.offsetWidth + "px");
552
+ }, []);
553
+ je({
554
+ ref: c,
555
+ onResize: k
556
+ });
557
+ let { focusProps: P, isFocused: _, isFocusVisible: $ } = aa({
558
+ within: !0
559
+ }), y = Se({
560
+ ...a,
561
+ values: {
562
+ state: i,
563
+ isFocusWithin: _,
564
+ isFocusVisible: $,
565
+ isDisabled: a.isDisabled || !1,
566
+ isInvalid: i.isInvalid,
567
+ isOpen: i.isOpen
568
+ },
569
+ defaultClassName: "react-aria-DatePicker"
570
+ }), D = ie(a, {
571
+ global: !0
572
+ });
573
+ return delete D.id, /* @__PURE__ */ J.createElement(We, {
574
+ values: [
575
+ [
576
+ Ta,
577
+ i
578
+ ],
579
+ [
580
+ $e,
581
+ {
582
+ ...C,
583
+ ref: c,
584
+ isInvalid: i.isInvalid
585
+ }
586
+ ],
587
+ [
588
+ Te,
589
+ I
590
+ ],
591
+ [
592
+ ve,
593
+ {
594
+ ...O,
595
+ isPressed: i.isOpen
596
+ }
597
+ ],
598
+ [
599
+ me,
600
+ {
601
+ ...g,
602
+ ref: l,
603
+ elementType: "span"
604
+ }
605
+ ],
606
+ [
607
+ na,
608
+ R
609
+ ],
610
+ [
611
+ Ne,
612
+ i
613
+ ],
614
+ [
615
+ Ue,
616
+ {
617
+ trigger: "DatePicker",
618
+ triggerRef: c,
619
+ placement: "bottom start",
620
+ style: {
621
+ "--trigger-width": T
622
+ },
623
+ clearContexts: la
624
+ }
625
+ ],
626
+ [
627
+ Le,
628
+ B
629
+ ],
630
+ [
631
+ he,
632
+ {
633
+ slots: {
634
+ description: b,
635
+ errorMessage: Z
636
+ }
637
+ }
638
+ ],
639
+ [
640
+ Ie,
641
+ d
642
+ ]
643
+ ]
644
+ }, /* @__PURE__ */ J.createElement("div", {
645
+ ...le(D, y, P),
646
+ ref: t,
647
+ slot: a.slot || void 0,
648
+ "data-focus-within": _ || void 0,
649
+ "data-invalid": i.isInvalid || void 0,
650
+ "data-focus-visible": $ || void 0,
651
+ "data-disabled": a.isDisabled || void 0,
652
+ "data-open": i.isOpen || void 0
653
+ }), /* @__PURE__ */ J.createElement(ba, {
654
+ autoComplete: a.autoComplete,
655
+ name: a.name,
656
+ isDisabled: a.isDisabled,
657
+ state: i
658
+ }));
659
+ }), Za = /* @__PURE__ */ ze(function(a, t) {
660
+ [a, t] = Me(a, t, Ra);
661
+ let { validationBehavior: s } = _e(Ke) || {};
662
+ var u, m;
663
+ let o = (m = (u = a.validationBehavior) !== null && u !== void 0 ? u : s) !== null && m !== void 0 ? m : "native", i = Ca({
664
+ ...a,
665
+ validationBehavior: o
666
+ }), c = A(null), [l, F] = we(!a["aria-label"] && !a["aria-labelledby"]), { groupProps: C, labelProps: g, startFieldProps: I, endFieldProps: O, buttonProps: B, dialogProps: R, calendarProps: b, descriptionProps: Z, errorMessageProps: d, ...T } = xa({
667
+ ...Ee(a),
668
+ label: F,
669
+ validationBehavior: o
670
+ }, i, c), [w, k] = W(null), P = qe(() => {
671
+ c.current && k(c.current.offsetWidth + "px");
672
+ }, []);
673
+ je({
674
+ ref: c,
675
+ onResize: P
676
+ });
677
+ let { focusProps: _, isFocused: $, isFocusVisible: y } = aa({
678
+ within: !0
679
+ }), D = Se({
680
+ ...a,
681
+ values: {
682
+ state: i,
683
+ isFocusWithin: $,
684
+ isFocusVisible: y,
685
+ isDisabled: a.isDisabled || !1,
686
+ isInvalid: i.isInvalid,
687
+ isOpen: i.isOpen
688
+ },
689
+ defaultClassName: "react-aria-DateRangePicker"
690
+ }), M = ie(a, {
691
+ global: !0
692
+ });
693
+ return delete M.id, /* @__PURE__ */ J.createElement(We, {
694
+ values: [
695
+ [
696
+ Ia,
697
+ i
698
+ ],
699
+ [
700
+ $e,
701
+ {
702
+ ...C,
703
+ ref: c,
704
+ isInvalid: i.isInvalid
705
+ }
706
+ ],
707
+ [
708
+ ve,
709
+ {
710
+ ...B,
711
+ isPressed: i.isOpen
712
+ }
713
+ ],
714
+ [
715
+ me,
716
+ {
717
+ ...g,
718
+ ref: l,
719
+ elementType: "span"
720
+ }
721
+ ],
722
+ [
723
+ ra,
724
+ b
725
+ ],
726
+ [
727
+ Ne,
728
+ i
729
+ ],
730
+ [
731
+ Ue,
732
+ {
733
+ trigger: "DateRangePicker",
734
+ triggerRef: c,
735
+ placement: "bottom start",
736
+ style: {
737
+ "--trigger-width": w
738
+ },
739
+ clearContexts: la
740
+ }
741
+ ],
742
+ [
743
+ Le,
744
+ R
745
+ ],
746
+ [
747
+ Te,
748
+ {
749
+ slots: {
750
+ start: I,
751
+ end: O
752
+ }
753
+ }
754
+ ],
755
+ [
756
+ he,
757
+ {
758
+ slots: {
759
+ description: Z,
760
+ errorMessage: d
761
+ }
762
+ }
763
+ ],
764
+ [
765
+ Ie,
766
+ T
767
+ ]
768
+ ]
769
+ }, /* @__PURE__ */ J.createElement("div", {
770
+ ...le(M, D, _),
771
+ ref: t,
772
+ slot: a.slot || void 0,
773
+ "data-focus-within": $ || void 0,
774
+ "data-invalid": i.isInvalid || void 0,
775
+ "data-focus-visible": y || void 0,
776
+ "data-disabled": a.isDisabled || void 0,
777
+ "data-open": i.isOpen || void 0
778
+ }));
779
+ });
780
+ /**
781
+ * @license lucide-react v0.525.0 - ISC
782
+ *
783
+ * This source code is licensed under the ISC license.
784
+ * See the LICENSE file in the root directory of this source tree.
785
+ */
786
+ const ka = [
787
+ ["path", { d: "M8 2v4", key: "1cmpym" }],
788
+ ["path", { d: "M16 2v4", key: "4m81vk" }],
789
+ ["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
790
+ ["path", { d: "M3 10h18", key: "8toen8" }],
791
+ ["path", { d: "M8 14h.01", key: "6423bh" }],
792
+ ["path", { d: "M12 14h.01", key: "1etili" }],
793
+ ["path", { d: "M16 14h.01", key: "1gbofw" }],
794
+ ["path", { d: "M8 18h.01", key: "lrp35t" }],
795
+ ["path", { d: "M12 18h.01", key: "mhygvu" }],
796
+ ["path", { d: "M16 18h.01", key: "kzsmim" }]
797
+ ], Ma = ya("calendar-days", ka), _a = "_datePicker_1hb2u_4", wa = "_inputField_1hb2u_11", Ea = "_medium_1hb2u_23", Sa = "_calendarButton_1hb2u_50", Wa = "_dialog_1hb2u_94", p = {
798
+ datePicker: _a,
799
+ inputField: wa,
800
+ medium: Ea,
801
+ calendarButton: Sa,
802
+ dialog: Wa
803
+ }, ia = ({
804
+ children: e,
805
+ isDisabled: a,
806
+ isInvalid: t,
807
+ size: s = "large"
808
+ }) => /* @__PURE__ */ Y(
809
+ ga,
810
+ {
811
+ className: ee(p.inputField, {
812
+ [p.medium]: s === "medium"
813
+ }),
814
+ children: [
815
+ e,
816
+ /* @__PURE__ */ v(
817
+ ma,
818
+ {
819
+ className: ee(p.calendarButton, {
820
+ [p.medium]: s === "medium"
821
+ }),
822
+ "data-invalid": t || void 0,
823
+ isDisabled: a,
824
+ children: /* @__PURE__ */ v(
825
+ Ma,
826
+ {
827
+ "aria-hidden": !0,
828
+ size: 20
829
+ }
830
+ )
831
+ }
832
+ )
833
+ ]
834
+ }
835
+ ), ta = ({
836
+ children: e
837
+ }) => /* @__PURE__ */ v($a, { children: /* @__PURE__ */ v(ha, { className: p.dialog, children: e }) }), bl = ({
838
+ className: e,
839
+ description: a,
840
+ errorMessage: t,
841
+ errorPosition: s = "top",
842
+ label: u,
843
+ popover: m,
844
+ ...o
845
+ }) => /* @__PURE__ */ Y(
846
+ Ba,
847
+ {
848
+ className: ee(p.datePicker, e),
849
+ ...o,
850
+ children: [
851
+ /* @__PURE__ */ v(Be, { popover: m, children: u && /* @__PURE__ */ v(Ze, { children: u }) }),
852
+ a && /* @__PURE__ */ v(ke, { slot: "description", children: a }),
853
+ s === "top" && /* @__PURE__ */ v(ae, { children: t }),
854
+ /* @__PURE__ */ v(ia, { ...o, children: /* @__PURE__ */ v(se, { children: (i) => /* @__PURE__ */ v(ue, { segment: i }) }) }),
855
+ s === "bottom" && /* @__PURE__ */ v(ae, { children: t }),
856
+ /* @__PURE__ */ v(ta, { children: /* @__PURE__ */ v(oa, {}) })
857
+ ]
858
+ }
859
+ ), vl = ({
860
+ className: e,
861
+ description: a,
862
+ errorMessage: t,
863
+ errorPosition: s = "top",
864
+ label: u,
865
+ popover: m,
866
+ ...o
867
+ }) => /* @__PURE__ */ Y(
868
+ Za,
869
+ {
870
+ className: ee(p.datePicker, e),
871
+ ...o,
872
+ children: [
873
+ /* @__PURE__ */ v(Be, { popover: m, children: u && /* @__PURE__ */ v(Ze, { children: u }) }),
874
+ a && /* @__PURE__ */ v(ke, { slot: "description", children: a }),
875
+ s === "top" && /* @__PURE__ */ v(ae, { children: t }),
876
+ /* @__PURE__ */ Y(ia, { ...o, children: [
877
+ /* @__PURE__ */ v(se, { slot: "start", children: (i) => /* @__PURE__ */ v(ue, { segment: i }) }),
878
+ /* @__PURE__ */ v(va, {}),
879
+ /* @__PURE__ */ v(se, { slot: "end", children: (i) => /* @__PURE__ */ v(ue, { segment: i }) })
880
+ ] }),
881
+ s === "bottom" && /* @__PURE__ */ v(ae, { children: t }),
882
+ /* @__PURE__ */ v(ta, { children: /* @__PURE__ */ v(sa, {}) })
883
+ ]
884
+ }
885
+ );
886
+ export {
887
+ bl as D,
888
+ vl as a
889
+ };