@midas-ds/components 10.1.1 → 10.2.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 (373) hide show
  1. package/AccordionItem-DZT76sWu.js +320 -0
  2. package/AccordionItem-Z_c9MpAM.cjs +1 -0
  3. package/BadgeContainer-D3RtqcPF.js +37 -0
  4. package/BadgeContainer-DeUgqGqb.cjs +1 -0
  5. package/Breadcrumbs-CmZXtTiS.js +250 -0
  6. package/Breadcrumbs-Cx09jwZZ.cjs +1 -0
  7. package/Button-CbFRzRrF.js +38 -0
  8. package/Button-DnhqHU01.cjs +1 -0
  9. package/Button-ZOQy9Ivu.js +78 -0
  10. package/Button-iSiWjocA.cjs +1 -0
  11. package/Button.module-CMMhIrkn.js +14 -0
  12. package/Button.module-DO5s9hOk.cjs +1 -0
  13. package/ButtonGroup-DUqW5dzM.cjs +1 -0
  14. package/ButtonGroup-DvVvear6.js +22 -0
  15. package/CHANGELOG.md +48 -0
  16. package/Card-C0BFW3wJ.cjs +1 -0
  17. package/Card-CaKKKv9k.js +131 -0
  18. package/CharacterCounter-CPGdboVJ.js +22 -0
  19. package/CharacterCounter-CrY8QRuY.cjs +1 -0
  20. package/Checkbox-CvFsn_FL.js +380 -0
  21. package/Checkbox-DSxGAJX2.cjs +1 -0
  22. package/CheckboxGroup-Bk9DPq4I.cjs +1 -0
  23. package/CheckboxGroup-Dij9zKlF.js +54 -0
  24. package/Collection-C5ONNBqd.js +576 -0
  25. package/Collection-Csx3L9gh.cjs +1 -0
  26. package/ColorSchemeSwitch-CbAWIJCg.js +106 -0
  27. package/ColorSchemeSwitch-JRrCyYVv.cjs +16 -0
  28. package/ComboBox-BCaqPEIH.js +1375 -0
  29. package/ComboBox-gveQKHU3.cjs +1 -0
  30. package/DateField-CAQlzuDD.js +46 -0
  31. package/DateField-deVVFwKA.cjs +1 -0
  32. package/DateInputDivider-DnUxETEC.cjs +1 -0
  33. package/DateInputDivider-Dx8n1Lxp.js +2908 -0
  34. package/DateRangePicker-BmBvwqo6.js +881 -0
  35. package/DateRangePicker-BzfitoK0.cjs +6 -0
  36. package/Dialog-Bd5hK360.cjs +1 -0
  37. package/Dialog-Bxx8cBEq.js +208 -0
  38. package/Dialog-CYxThuMl.js +1609 -0
  39. package/Dialog-CwTEAujZ.cjs +1 -0
  40. package/DragAndDrop-CSwmPhxC.js +60 -0
  41. package/DragAndDrop-HvycSrKY.cjs +1 -0
  42. package/Dropdown-CaGon9OR.cjs +6 -0
  43. package/Dropdown-nkjzsVYX.js +84 -0
  44. package/FieldError-BZw8UzBk.cjs +1 -0
  45. package/FieldError-CZikNDxX.js +28 -0
  46. package/FieldError-DqdfJ3fs.cjs +1 -0
  47. package/FieldError-Dv3bBEjh.js +23 -0
  48. package/FileUpload-DYRZ0M9F.cjs +2 -0
  49. package/FileUpload-ULwcYDxs.js +2372 -0
  50. package/FocusScope-DwIqdYpQ.js +625 -0
  51. package/FocusScope-NaPbvuuS.cjs +1 -0
  52. package/Form-BuOomA4T.cjs +1 -0
  53. package/Form-CXcEMuBf.js +5 -0
  54. package/Grid--OhtgCo6.js +27 -0
  55. package/Grid-DVQtOcu9.cjs +1 -0
  56. package/GridItem-DlbSdRmB.js +246 -0
  57. package/GridItem-XgHmZWXY.cjs +1 -0
  58. package/Group-CeSsSQVC.js +44 -0
  59. package/Group-CgiqQHH1.cjs +1 -0
  60. package/Heading-BY5-QN4S.js +46 -0
  61. package/Heading-DoJAtYZf.cjs +1 -0
  62. package/Hidden-B5ir3Lei.js +34 -0
  63. package/Hidden-BxRZGdEW.cjs +1 -0
  64. package/InfoBanner-BS-dAfzO.cjs +1 -0
  65. package/InfoBanner-CVIBFSWx.js +82 -0
  66. package/Input-D8Ku_FQz.js +41 -0
  67. package/Input-DKSAYvsw.cjs +1 -0
  68. package/Label-C9ivwkAd.js +21 -0
  69. package/Label-CUV21CAv.cjs +1 -0
  70. package/Label-DkDOsmUF.js +16 -0
  71. package/Label-IMWAyoKb.cjs +1 -0
  72. package/Layout-BWeHHnqU.cjs +16 -0
  73. package/Layout-CCt_2L1k.js +468 -0
  74. package/Link-B-nus-FT.js +71 -0
  75. package/Link-DsnCtNeI.cjs +6 -0
  76. package/Link-SHMbeyIP.cjs +1 -0
  77. package/Link-uFowN4qv.js +59 -0
  78. package/LinkButton-CuBilDML.js +69 -0
  79. package/LinkButton-CymMrcGL.cjs +6 -0
  80. package/ListBox-CDOsQChA.cjs +1 -0
  81. package/ListBox-DOi_y_Lt.js +530 -0
  82. package/ListBoxButton-CFeNhJhr.cjs +1 -0
  83. package/ListBoxButton-O6zN3P4W.js +15 -0
  84. package/ListBoxSection-C1aLKL9p.js +1058 -0
  85. package/ListBoxSection-DGCP6xpf.cjs +1 -0
  86. package/ListKeyboardDelegate-BqMETvPv.cjs +1 -0
  87. package/ListKeyboardDelegate-DNOzQ8nc.js +158 -0
  88. package/LiveAnnouncer-B6177m92.js +51 -0
  89. package/LiveAnnouncer-CwEWPU8b.cjs +1 -0
  90. package/LocalizedStringFormatter-C0C54hjf.cjs +1 -0
  91. package/LocalizedStringFormatter-D-4Qyql0.js +77 -0
  92. package/Logo-BIrOEINM.js +133 -0
  93. package/Logo-DT2_2O43.cjs +1 -0
  94. package/NumberFormatter-DewVDY5w.cjs +1 -0
  95. package/NumberFormatter-DgOUVrge.js +119 -0
  96. package/OverlayArrow-D75k-EMl.cjs +1 -0
  97. package/OverlayArrow-DorA4Rbr.js +506 -0
  98. package/PressResponder-C06O3Z5P.cjs +1 -0
  99. package/PressResponder-CVEg5kND.js +33 -0
  100. package/ProgressBar-Bkw9zavs.cjs +1 -0
  101. package/ProgressBar-CEX2WNoW.js +77 -0
  102. package/ProgressBar-Dqh3ftSP.cjs +1 -0
  103. package/ProgressBar-gmAzSsrz.js +53 -0
  104. package/RSPContexts-BW2SEIqe.js +11 -0
  105. package/RSPContexts-D8hmBfGm.cjs +1 -0
  106. package/Radio-CDKrvQe4.cjs +1 -0
  107. package/Radio-_ukSkxPT.js +311 -0
  108. package/RangeCalendar-cbCKBPZv.cjs +11 -0
  109. package/RangeCalendar-uXwoBL-O.js +1685 -0
  110. package/SearchField-6yBGiojX.cjs +6 -0
  111. package/SearchField-DYl2uo7o.js +362 -0
  112. package/Select-CpHjd1tp.cjs +1 -0
  113. package/Select-PvCqY7Lp.js +646 -0
  114. package/SelectionManager-6H88Cv6B.js +1033 -0
  115. package/SelectionManager-C5NGBzvz.cjs +1 -0
  116. package/Separator-LYnFqh4L.js +60 -0
  117. package/Separator-nPra6kD-.cjs +1 -0
  118. package/Skeleton-BAwbfKBW.cjs +1 -0
  119. package/Skeleton-BePDRmrO.js +40 -0
  120. package/Spinner-D31SXm-U.js +41 -0
  121. package/Spinner-DAJtfxqJ.cjs +6 -0
  122. package/Table-B_N7wUmA.js +2451 -0
  123. package/Table-D9vNc_y-.cjs +16 -0
  124. package/Tabs-Ct6D83aR.js +404 -0
  125. package/Tabs-Dtcl2oK2.cjs +1 -0
  126. package/Tag-CVFkzg3s.cjs +1 -0
  127. package/Tag-g6HN-YCv.js +748 -0
  128. package/Text-3MNwRMpI.cjs +1 -0
  129. package/Text-B2K-BJKQ.cjs +1 -0
  130. package/Text-BN-g1iWi.js +32 -0
  131. package/Text-B_H68Tvq.js +15 -0
  132. package/TextArea-DSiQ578a.js +206 -0
  133. package/TextArea-cVyGBRbL.cjs +1 -0
  134. package/TextField-B70CL2qz.cjs +1 -0
  135. package/TextField-DBaRuNj7.js +119 -0
  136. package/TextField.module-BcpPBWnD.js +13 -0
  137. package/TextField.module-Dw5Rtn9y.cjs +1 -0
  138. package/Toast-CjpldAI8.js +988 -0
  139. package/Toast-DrkOGy4d.cjs +1 -0
  140. package/ToggleButtonGroup-BuU_6dYe.cjs +1 -0
  141. package/ToggleButtonGroup-Ceh9_yBM.js +210 -0
  142. package/Tooltip-BAIjaYax.js +283 -0
  143. package/Tooltip-CiWg4zIC.cjs +1 -0
  144. package/VisuallyHidden-CtXvK_Tw.cjs +1 -0
  145. package/VisuallyHidden-D-4z1VgU.js +40 -0
  146. package/accordion/index.cjs +1 -0
  147. package/accordion/index.js +5 -0
  148. package/arrow-right-Cw48o2oW.cjs +6 -0
  149. package/arrow-right-Dg8sttFO.js +14 -0
  150. package/assets/AccordionItem.css +1 -0
  151. package/assets/BadgeContainer.css +1 -0
  152. package/assets/Breadcrumbs.css +1 -0
  153. package/assets/Button.css +1 -0
  154. package/assets/ButtonGroup.css +1 -0
  155. package/assets/Card.css +1 -0
  156. package/assets/CharacterCounter.css +1 -0
  157. package/assets/Checkbox.css +1 -0
  158. package/assets/ColorSchemeSwitch.css +1 -0
  159. package/assets/ComboBox.css +1 -0
  160. package/assets/DateField.css +1 -0
  161. package/assets/DateInputDivider.css +1 -0
  162. package/assets/DateRangePicker.css +1 -0
  163. package/assets/Dialog.css +1 -0
  164. package/assets/Dropdown.css +1 -0
  165. package/assets/FieldError.css +1 -0
  166. package/assets/FileUpload.css +1 -0
  167. package/assets/GridItem.css +1 -0
  168. package/assets/Heading.css +1 -0
  169. package/assets/InfoBanner.css +1 -0
  170. package/assets/Label.css +1 -0
  171. package/assets/Layout.css +1 -0
  172. package/assets/Link.css +1 -0
  173. package/assets/LinkButton.css +1 -0
  174. package/assets/ListBoxSection.css +1 -0
  175. package/assets/Logo.css +1 -0
  176. package/assets/ProgressBar.css +1 -0
  177. package/assets/Radio.css +1 -0
  178. package/assets/RangeCalendar.css +1 -0
  179. package/assets/SearchField.css +1 -0
  180. package/assets/Select.css +1 -0
  181. package/assets/Skeleton.css +1 -0
  182. package/assets/Spinner.css +1 -0
  183. package/assets/Table.css +1 -0
  184. package/assets/Tabs.css +1 -0
  185. package/assets/Tag.css +1 -0
  186. package/assets/Text.css +1 -0
  187. package/assets/TextField.css +1 -0
  188. package/assets/Toast.css +1 -0
  189. package/assets/ToggleButtonGroup.css +1 -0
  190. package/assets/Tooltip.css +1 -0
  191. package/badge/index.cjs +1 -0
  192. package/badge/index.js +5 -0
  193. package/breadcrumbs/index.cjs +1 -0
  194. package/breadcrumbs/index.js +4 -0
  195. package/button/index.cjs +1 -0
  196. package/button/index.js +6 -0
  197. package/calendar/CalendarHeader.d.ts +2 -1
  198. package/calendar/index.cjs +1 -0
  199. package/calendar/index.js +5 -0
  200. package/card/index.cjs +1 -0
  201. package/card/index.js +10 -0
  202. package/character-counter/index.cjs +1 -0
  203. package/character-counter/index.js +4 -0
  204. package/check-CLF6Yxza.js +11 -0
  205. package/check-Dw9c62O4.cjs +6 -0
  206. package/checkbox/index.cjs +1 -0
  207. package/checkbox/index.js +6 -0
  208. package/chevron-down-C2E7aZ3N.cjs +6 -0
  209. package/chevron-down-Cd1bkzXT.js +13 -0
  210. package/clsx-C11secjj.cjs +1 -0
  211. package/clsx-OuTLNxxd.js +16 -0
  212. package/color-scheme-switch/index.cjs +1 -0
  213. package/color-scheme-switch/index.js +4 -0
  214. package/combobox/index.cjs +1 -0
  215. package/combobox/index.js +7 -0
  216. package/common/types.d.ts +2 -0
  217. package/context-B8cn10po.js +80 -0
  218. package/context-DjwhtgxQ.cjs +1 -0
  219. package/createLucideIcon-DAY4oS-S.cjs +21 -0
  220. package/createLucideIcon-DeWljiyi.js +79 -0
  221. package/date-field/index.cjs +1 -0
  222. package/date-field/index.js +8 -0
  223. package/date-picker/index.cjs +1 -0
  224. package/date-picker/index.js +5 -0
  225. package/dropdown/index.cjs +1 -0
  226. package/dropdown/index.js +5 -0
  227. package/field-error/FieldError.d.ts +4 -1
  228. package/field-error/index.cjs +1 -0
  229. package/field-error/index.js +4 -0
  230. package/file-upload/index.cjs +1 -0
  231. package/file-upload/index.js +4 -0
  232. package/filterDOMProps-BS2lrgFA.cjs +1 -0
  233. package/filterDOMProps-D6KHYVBX.js +24 -0
  234. package/focusSafely-Bqfo_DH7.cjs +1 -0
  235. package/focusSafely-C48ucRUz.js +56 -0
  236. package/getScrollParent-DuKmPmUa.cjs +1 -0
  237. package/getScrollParent-Ru2U2LlM.js +9 -0
  238. package/grid/Grid.d.ts +15 -4
  239. package/grid/GridItem.d.ts +31 -2
  240. package/grid/index.cjs +1 -0
  241. package/grid/index.d.ts +2 -2
  242. package/grid/index.js +8 -0
  243. package/heading/index.cjs +1 -0
  244. package/heading/index.js +4 -0
  245. package/index-BSMrH_Du.js +120 -0
  246. package/index-D97L3EBk.cjs +17 -0
  247. package/index.cjs +1 -169
  248. package/index.d.ts +0 -1
  249. package/index.js +127 -29979
  250. package/inertValue-B7loUihk.js +8 -0
  251. package/inertValue-BWmZ1afe.cjs +1 -0
  252. package/info-DkzVqB8I.js +38 -0
  253. package/info-DlzSeKbc.cjs +16 -0
  254. package/info-banner/index.cjs +1 -0
  255. package/info-banner/index.js +4 -0
  256. package/label/index.cjs +1 -0
  257. package/label/index.js +4 -0
  258. package/layout/index.cjs +1 -0
  259. package/layout/index.js +8 -0
  260. package/link/index.cjs +1 -0
  261. package/link/index.js +6 -0
  262. package/link-button/index.cjs +1 -0
  263. package/link-button/index.js +6 -0
  264. package/list-box/index.cjs +1 -0
  265. package/list-box/index.js +9 -0
  266. package/logo/index.cjs +1 -0
  267. package/logo/index.js +4 -0
  268. package/modal/index.cjs +1 -0
  269. package/modal/index.js +6 -0
  270. package/number-BE8InLgI.js +6 -0
  271. package/number-E0x3H9cL.cjs +1 -0
  272. package/package.json +4 -4
  273. package/progress-bar/index.cjs +1 -0
  274. package/progress-bar/index.js +4 -0
  275. package/radio/index.cjs +1 -0
  276. package/radio/index.js +5 -0
  277. package/scrollIntoView-ClEACHUk.js +57 -0
  278. package/scrollIntoView-DRSoJp89.cjs +1 -0
  279. package/search-field/index.cjs +1 -0
  280. package/search-field/index.js +4 -0
  281. package/select/index.cjs +1 -0
  282. package/select/index.js +4 -0
  283. package/skeleton/Skeleton.d.ts +5 -0
  284. package/skeleton/index.cjs +1 -0
  285. package/skeleton/index.js +4 -0
  286. package/spinner/index.cjs +1 -0
  287. package/spinner/index.js +4 -0
  288. package/square-arrow-out-up-right-BCAO2eJs.cjs +6 -0
  289. package/square-arrow-out-up-right-BkyqV2PN.js +15 -0
  290. package/table/Table.d.ts +7 -1
  291. package/table/index.cjs +1 -0
  292. package/table/index.js +9 -0
  293. package/tabs/index.cjs +1 -0
  294. package/tabs/index.js +4 -0
  295. package/tag/index.cjs +1 -0
  296. package/tag/index.js +5 -0
  297. package/text/index.cjs +1 -0
  298. package/text/index.js +4 -0
  299. package/textfield/index.cjs +1 -0
  300. package/textfield/index.js +7 -0
  301. package/theme/index.cjs +1 -0
  302. package/theme/index.d.ts +4 -0
  303. package/{theme.js → theme/index.js} +2 -2
  304. package/theme/tokens.d.ts +10 -0
  305. package/toast/index.cjs +1 -0
  306. package/toast/index.js +9 -0
  307. package/toggle-button/index.cjs +1 -0
  308. package/toggle-button/index.js +5 -0
  309. package/tokens-p6pg1Cea.cjs +1 -0
  310. package/{tokens-C0U7hdoO.js → tokens-xp-7KMK7.js} +18 -8
  311. package/tooltip/index.cjs +1 -0
  312. package/tooltip/index.js +5 -0
  313. package/triangle-alert-C0lvfCYH.cjs +6 -0
  314. package/triangle-alert-wxyxspAl.js +21 -0
  315. package/useButton-B1Fa-6qE.cjs +1 -0
  316. package/useButton-C-Lq7CNY.js +47 -0
  317. package/useCollator-C_ozeWLo.cjs +1 -0
  318. package/useCollator-CgZcHC8N.js +11 -0
  319. package/useControlledState-D0L6S_5r.cjs +1 -0
  320. package/useControlledState-u436Wbp1.js +30 -0
  321. package/useDateFormatter-C53Uxdli.js +1571 -0
  322. package/useDateFormatter-g2maMTGH.cjs +1 -0
  323. package/useDescription-CVKhFa3c.js +32 -0
  324. package/useDescription-DmQYSEES.cjs +1 -0
  325. package/useEvent-CjkbBniY.cjs +1 -0
  326. package/useEvent-Cyd2ZL0c.js +21 -0
  327. package/useField-B1RU0GKs.cjs +1 -0
  328. package/useField-BPMAlIbU.js +35 -0
  329. package/useFilter-ChIbnALW.js +35 -0
  330. package/useFilter-CtIwF2qW.cjs +1 -0
  331. package/useFocusRing-BDGH3lpn.js +82 -0
  332. package/useFocusRing-CbImDrwF.cjs +1 -0
  333. package/useFocusable-CaedRTpB.js +74 -0
  334. package/useFocusable-CuPQ7Cm5.cjs +1 -0
  335. package/useFormValidation-ClximP89.cjs +1 -0
  336. package/useFormValidation-R8hQIjWP.js +215 -0
  337. package/useHasTabbableChild-DgphNvnk.cjs +1 -0
  338. package/useHasTabbableChild-DsD9AJwE.js +34 -0
  339. package/useHighlightSelectionDescription-BizKjvPU.cjs +1 -0
  340. package/useHighlightSelectionDescription-DFfcgbUj.js +567 -0
  341. package/useHover-_mv5J4_q.cjs +1 -0
  342. package/useHover-qRAon4nS.js +490 -0
  343. package/useLabel-DDdAJ1JO.js +23 -0
  344. package/useLabel-m_S5xkHy.cjs +1 -0
  345. package/useLabels-BLOfc6Y-.cjs +1 -0
  346. package/useLabels-BZjoZA1Z.js +17 -0
  347. package/useListState-Ca2-uZMO.cjs +1 -0
  348. package/useListState-DFQ9d-uE.js +132 -0
  349. package/useLocalizedStringFormatter-D07YB2e1.js +22 -0
  350. package/useLocalizedStringFormatter-u9SJaOwk.cjs +1 -0
  351. package/useObserveElement-BdI4zgd7.js +27 -0
  352. package/useObserveElement-BzEr5D32.cjs +1 -0
  353. package/usePress-BFa6cT9o.cjs +7 -0
  354. package/usePress-CUJ3pMOw.js +542 -0
  355. package/useSingleSelectListState-C-nB8cug.js +34 -0
  356. package/useSingleSelectListState-MGNxUTum.cjs +1 -0
  357. package/useTextField-5OZQPyOW.js +86 -0
  358. package/useTextField-CtUDWsUl.cjs +1 -0
  359. package/useToggleState-Bz5rAf4C.js +18 -0
  360. package/useToggleState-DoIkSQdj.cjs +1 -0
  361. package/useUpdateEffect-CCDx8D4X.js +13 -0
  362. package/useUpdateEffect-sk3kiVGz.cjs +1 -0
  363. package/utils-BNtZbAib.cjs +1 -0
  364. package/utils-HNTsIwux.js +308 -0
  365. package/x-CvxiAZTW.cjs +6 -0
  366. package/x-JK7i-TQC.js +14 -0
  367. package/flex/Flex.d.ts +0 -17
  368. package/flex/FlexItem.d.ts +0 -15
  369. package/flex/index.d.ts +0 -2
  370. package/index.css +0 -1
  371. package/theme.cjs +0 -1
  372. package/tokens-COoF1t17.cjs +0 -1
  373. /package/{global.css → assets/global.css} +0 -0
@@ -0,0 +1,119 @@
1
+ let u = /* @__PURE__ */ new Map(), f = !1;
2
+ try {
3
+ f = new Intl.NumberFormat("de-DE", {
4
+ signDisplay: "exceptZero"
5
+ }).resolvedOptions().signDisplay === "exceptZero";
6
+ } catch {
7
+ }
8
+ let l = !1;
9
+ try {
10
+ l = new Intl.NumberFormat("de-DE", {
11
+ style: "unit",
12
+ unit: "degree"
13
+ }).resolvedOptions().style === "unit";
14
+ } catch {
15
+ }
16
+ const c = {
17
+ degree: {
18
+ narrow: {
19
+ default: "°",
20
+ "ja-JP": " 度",
21
+ "zh-TW": "度",
22
+ "sl-SI": " °"
23
+ }
24
+ }
25
+ };
26
+ class d {
27
+ /** Formats a number value as a string, according to the locale and options provided to the constructor. */
28
+ format(t) {
29
+ let e = "";
30
+ if (!f && this.options.signDisplay != null ? e = m(this.numberFormatter, this.options.signDisplay, t) : e = this.numberFormatter.format(t), this.options.style === "unit" && !l) {
31
+ var i;
32
+ let { unit: a, unitDisplay: s = "short", locale: n } = this.resolvedOptions();
33
+ if (!a) return e;
34
+ let o = (i = c[a]) === null || i === void 0 ? void 0 : i[s];
35
+ e += o[n] || o.default;
36
+ }
37
+ return e;
38
+ }
39
+ /** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
40
+ formatToParts(t) {
41
+ return this.numberFormatter.formatToParts(t);
42
+ }
43
+ /** Formats a number range as a string. */
44
+ formatRange(t, e) {
45
+ if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(t, e);
46
+ if (e < t) throw new RangeError("End date must be >= start date");
47
+ return `${this.format(t)} – ${this.format(e)}`;
48
+ }
49
+ /** Formats a number range as an array of parts. */
50
+ formatRangeToParts(t, e) {
51
+ if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(t, e);
52
+ if (e < t) throw new RangeError("End date must be >= start date");
53
+ let i = this.numberFormatter.formatToParts(t), a = this.numberFormatter.formatToParts(e);
54
+ return [
55
+ ...i.map((s) => ({
56
+ ...s,
57
+ source: "startRange"
58
+ })),
59
+ {
60
+ type: "literal",
61
+ value: " – ",
62
+ source: "shared"
63
+ },
64
+ ...a.map((s) => ({
65
+ ...s,
66
+ source: "endRange"
67
+ }))
68
+ ];
69
+ }
70
+ /** Returns the resolved formatting options based on the values passed to the constructor. */
71
+ resolvedOptions() {
72
+ let t = this.numberFormatter.resolvedOptions();
73
+ return !f && this.options.signDisplay != null && (t = {
74
+ ...t,
75
+ signDisplay: this.options.signDisplay
76
+ }), !l && this.options.style === "unit" && (t = {
77
+ ...t,
78
+ style: "unit",
79
+ unit: this.options.unit,
80
+ unitDisplay: this.options.unitDisplay
81
+ }), t;
82
+ }
83
+ constructor(t, e = {}) {
84
+ this.numberFormatter = p(t, e), this.options = e;
85
+ }
86
+ }
87
+ function p(r, t = {}) {
88
+ let { numberingSystem: e } = t;
89
+ if (e && r.includes("-nu-") && (r.includes("-u-") || (r += "-u-"), r += `-nu-${e}`), t.style === "unit" && !l) {
90
+ var i;
91
+ let { unit: n, unitDisplay: o = "short" } = t;
92
+ if (!n) throw new Error('unit option must be provided with style: "unit"');
93
+ if (!(!((i = c[n]) === null || i === void 0) && i[o])) throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);
94
+ t = {
95
+ ...t,
96
+ style: "decimal"
97
+ };
98
+ }
99
+ let a = r + (t ? Object.entries(t).sort((n, o) => n[0] < o[0] ? -1 : 1).join() : "");
100
+ if (u.has(a)) return u.get(a);
101
+ let s = new Intl.NumberFormat(r, t);
102
+ return u.set(a, s), s;
103
+ }
104
+ function m(r, t, e) {
105
+ if (t === "auto") return r.format(e);
106
+ if (t === "never") return r.format(Math.abs(e));
107
+ {
108
+ let i = !1;
109
+ if (t === "always" ? i = e > 0 || Object.is(e, 0) : t === "exceptZero" && (Object.is(e, -0) || Object.is(e, 0) ? e = Math.abs(e) : i = e > 0), i) {
110
+ let a = r.format(-e), s = r.format(e), n = a.replace(s, "").replace(/\u200e|\u061C/, "");
111
+ return [
112
+ ...n
113
+ ].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), a.replace(s, "!!!").replace(n, "+").replace("!!!", s);
114
+ } else return r.format(e);
115
+ }
116
+ }
117
+ export {
118
+ d as $
119
+ };
@@ -0,0 +1 @@
1
+ "use strict";const q=require("./utils-BNtZbAib.cjs"),de=require("react-dom"),w=require("react"),fe=require("./useHover-_mv5J4_q.cjs"),G=require("./number-E0x3H9cL.cjs"),ue=require("./context-DjwhtgxQ.cjs"),pe=require("./useControlledState-D0L6S_5r.cjs"),$e=require("./filterDOMProps-BS2lrgFA.cjs");function me(){return typeof window.ResizeObserver<"u"}function J(t){const{ref:e,box:l,onResize:n}=t;w.useEffect(()=>{let o=e==null?void 0:e.current;if(o)if(me()){const r=new window.ResizeObserver(c=>{c.length&&n()});return r.observe(o,{box:l}),()=>{o&&r.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e,l])}function ve(t,e=!0){let[l,n]=w.useState(!0),o=l&&e;return q.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let r of t.current.getAnimations())r instanceof CSSTransition&&r.cancel()},[t,o]),oe(t,o,w.useCallback(()=>n(!1),[])),o}function ge(t,e){let[l,n]=w.useState(e?"open":"closed");switch(l){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let o=l==="exiting";return oe(t,o,w.useCallback(()=>{n(r=>r==="exiting"?"closed":r)},[])),o}function oe(t,e,l){q.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){l();return}let n=t.current.getAnimations();if(n.length===0){l();return}let o=!1;return Promise.all(n.map(r=>r.finished)).then(()=>{o||de.flushSync(()=>{l()})}).catch(()=>{}),()=>{o=!0}}},[t,e,l])}const M={top:"top",bottom:"top",left:"left",right:"left"},X={top:"bottom",bottom:"top",left:"right",right:"left"},be={top:"left",left:"top"},K={top:"height",left:"width"},le={width:"totalWidth",height:"totalHeight"},Y={};let P=typeof document<"u"?window.visualViewport:null;function Q(t){let e=0,l=0,n=0,o=0,r=0,c=0,i={};var g;let d=((g=P==null?void 0:P.scale)!==null&&g!==void 0?g:1)>1;if(t.tagName==="BODY"){let f=document.documentElement;n=f.clientWidth,o=f.clientHeight;var u;e=(u=P==null?void 0:P.width)!==null&&u!==void 0?u:n;var v;l=(v=P==null?void 0:P.height)!==null&&v!==void 0?v:o,i.top=f.scrollTop||t.scrollTop,i.left=f.scrollLeft||t.scrollLeft,P&&(r=P.offsetTop,c=P.offsetLeft)}else({width:e,height:l,top:r,left:c}=B(t)),i.top=t.scrollTop,i.left=t.scrollLeft,n=e,o=l;if(fe.$c87311424ea30a05$export$78551043582a6a98()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d){i.top=0,i.left=0;var p;r=(p=P==null?void 0:P.pageTop)!==null&&p!==void 0?p:0;var a;c=(a=P==null?void 0:P.pageLeft)!==null&&a!==void 0?a:0}return{width:e,height:l,totalWidth:n,totalHeight:o,scroll:i,top:r,left:c}}function he(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function W(t,e,l,n,o,r,c){var i;let g=(i=o.scroll[t])!==null&&i!==void 0?i:0,d=n[K[t]],u=n.scroll[M[t]]+r,v=d+n.scroll[M[t]]-r,p=e-g+c[t]-n[M[t]],a=e-g+l+c[t]-n[M[t]];return p<u?u-p:a>v?Math.max(v-a,u-p):0}function xe(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function D(t){if(Y[t])return Y[t];let[e,l]=t.split(" "),n=M[e]||"right",o=be[n];M[l]||(l="center");let r=K[n],c=K[o];return Y[t]={placement:e,crossPlacement:l,axis:n,crossAxis:o,size:r,crossSize:c},Y[t]}function U(t,e,l,n,o,r,c,i,g,d){let{placement:u,crossPlacement:v,axis:p,crossAxis:a,size:f,crossSize:b}=n,s={};var $;s[a]=($=t[a])!==null&&$!==void 0?$:0;var m,C,T,S;v==="center"?s[a]+=(((m=t[b])!==null&&m!==void 0?m:0)-((C=l[b])!==null&&C!==void 0?C:0))/2:v!==a&&(s[a]+=((T=t[b])!==null&&T!==void 0?T:0)-((S=l[b])!==null&&S!==void 0?S:0)),s[a]+=r;const h=t[a]-l[b]+g+d,y=t[a]+t[b]-g-d;if(s[a]=G.$9446cca9a3875146$export$7d15b64cf5a3a4c4(s[a],h,y),u===p){const A=i?c[f]:e[le[f]];s[X[p]]=Math.floor(A-t[p]+o)}else s[p]=Math.floor(t[p]+t[f]+o);return s}function we(t,e,l,n,o,r,c,i){const g=n?l.height:e[le.height];var d;let u=t.top!=null?l.top+t.top:l.top+(g-((d=t.bottom)!==null&&d!==void 0?d:0)-c);var v,p,a,f,b,s;let $=i!=="top"?Math.max(0,e.height+e.top+((v=e.scroll.top)!==null&&v!==void 0?v:0)-u-(((p=o.top)!==null&&p!==void 0?p:0)+((a=o.bottom)!==null&&a!==void 0?a:0)+r)):Math.max(0,u+c-(e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0))-(((b=o.top)!==null&&b!==void 0?b:0)+((s=o.bottom)!==null&&s!==void 0?s:0)+r));return Math.min(e.height-r*2,$)}function V(t,e,l,n,o,r){let{placement:c,axis:i,size:g}=r;var d,u;if(c===i)return Math.max(0,l[i]-t[i]-((d=t.scroll[i])!==null&&d!==void 0?d:0)+e[i]-((u=n[i])!==null&&u!==void 0?u:0)-n[X[i]]-o);var v;return Math.max(0,t[g]+t[i]+t.scroll[i]-e[i]-l[i]-l[g]-((v=n[i])!==null&&v!==void 0?v:0)-n[X[i]]-o)}function Ee(t,e,l,n,o,r,c,i,g,d,u,v,p,a,f,b){let s=D(t),{size:$,crossAxis:m,crossSize:C,placement:T,crossPlacement:S}=s,h=U(e,i,l,s,u,v,d,p,f,b),y=u,A=V(i,d,e,o,r+u,s);if(c&&n[$]>A){let j=D(`${X[T]} ${S}`),se=U(e,i,l,j,u,v,d,p,f,b);V(i,d,e,o,r+u,j)>A&&(s=j,h=se,y=u)}let z="bottom";s.axis==="top"?s.placement==="top"?z="top":s.placement==="bottom"&&(z="bottom"):s.crossAxis==="top"&&(s.crossPlacement==="top"?z="bottom":s.crossPlacement==="bottom"&&(z="top"));let E=W(m,h[m],l[C],i,g,r,d);h[m]+=E;let R=we(h,i,d,p,o,r,l.height,z);a&&a<R&&(R=a),l.height=Math.min(l.height,R),h=U(e,i,l,s,y,v,d,p,f,b),E=W(m,h[m],l[C],i,g,r,d),h[m]+=E;let H={},O=e[m]+.5*e[C]-h[m]-o[M[m]];const _=f/2+b;var k,N,I,L;const F=M[m]==="left"?((k=o.left)!==null&&k!==void 0?k:0)+((N=o.right)!==null&&N!==void 0?N:0):((I=o.top)!==null&&I!==void 0?I:0)+((L=o.bottom)!==null&&L!==void 0?L:0),Z=l[C]-F-f/2-b,ie=e[m]+f/2-(h[m]+o[M[m]]),ae=e[m]+e[C]-f/2-(h[m]+o[M[m]]),ce=G.$9446cca9a3875146$export$7d15b64cf5a3a4c4(O,ie,ae);return H[m]=G.$9446cca9a3875146$export$7d15b64cf5a3a4c4(ce,_,Z),{position:h,maxHeight:R,arrowOffsetLeft:H.left,arrowOffsetTop:H.top,placement:s.placement}}function Ce(t){let{placement:e,targetNode:l,overlayNode:n,scrollNode:o,padding:r,shouldFlip:c,boundaryElement:i,offset:g,crossOffset:d,maxHeight:u,arrowSize:v=0,arrowBoundaryOffset:p=0}=t,a=n instanceof HTMLElement?Pe(n):document.documentElement,f=a===document.documentElement;const b=window.getComputedStyle(a).position;let s=!!b&&b!=="static",$=f?B(l):ee(l,a);if(!f){let{marginTop:H,marginLeft:O}=window.getComputedStyle(l);$.top+=parseInt(H,10)||0,$.left+=parseInt(O,10)||0}let m=B(n),C=xe(n);var T,S;m.width+=((T=C.left)!==null&&T!==void 0?T:0)+((S=C.right)!==null&&S!==void 0?S:0);var h,y;m.height+=((h=C.top)!==null&&h!==void 0?h:0)+((y=C.bottom)!==null&&y!==void 0?y:0);let A=he(o),z=Q(i),E=Q(a),R=i.tagName==="BODY"?B(a):ee(a,i);return a.tagName==="HTML"&&i.tagName==="BODY"&&(E.scroll.top=0,E.scroll.left=0),Ee(e,$,m,A,C,r,c,z,E,R,g,d,s,u,v,p)}function B(t){let{top:e,left:l,width:n,height:o}=t.getBoundingClientRect(),{scrollTop:r,scrollLeft:c,clientTop:i,clientLeft:g}=document.documentElement;return{top:e+r-i,left:l+c-g,width:n,height:o}}function ee(t,e){let l=window.getComputedStyle(t),n;if(l.position==="fixed"){let{top:o,left:r,width:c,height:i}=t.getBoundingClientRect();n={top:o,left:r,width:c,height:i}}else{n=B(t);let o=B(e),r=window.getComputedStyle(e);o.top+=(parseInt(r.borderTopWidth,10)||0)-e.scrollTop,o.left+=(parseInt(r.borderLeftWidth,10)||0)-e.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(l.marginTop,10)||0,n.left-=parseInt(l.marginLeft,10)||0,n}function Pe(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!te(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!te(e);)e=e.parentElement;return e||document.documentElement}function te(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}const ne=new WeakMap;function Se(t){let{triggerRef:e,isOpen:l,onClose:n}=t;w.useEffect(()=>{if(!l||n===null)return;let o=r=>{let c=r.target;if(!e.current||c instanceof Node&&!c.contains(e.current)||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement)return;let i=n||ne.get(e.current);i&&i()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[l,n,e])}let x=typeof document<"u"?window.visualViewport:null;function Le(t){let{direction:e}=ue.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{arrowSize:l=0,targetRef:n,overlayRef:o,scrollRef:r=o,placement:c="bottom",containerPadding:i=12,shouldFlip:g=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:u=0,crossOffset:v=0,shouldUpdatePosition:p=!0,isOpen:a=!0,onClose:f,maxHeight:b,arrowBoundaryOffset:s=0}=t,[$,m]=w.useState(null),C=[p,c,o.current,n.current,r.current,i,g,d,u,v,a,e,b,s,l],T=w.useRef(x==null?void 0:x.scale);w.useEffect(()=>{a&&(T.current=x==null?void 0:x.scale)},[a]);let S=w.useCallback(()=>{if(p===!1||!a||!o.current||!n.current||!d||(x==null?void 0:x.scale)!==T.current)return;let E=null;if(r.current&&r.current.contains(document.activeElement)){var R;let L=(R=document.activeElement)===null||R===void 0?void 0:R.getBoundingClientRect(),F=r.current.getBoundingClientRect();var H;if(E={type:"top",offset:((H=L==null?void 0:L.top)!==null&&H!==void 0?H:0)-F.top},E.offset>F.height/2){E.type="bottom";var O;E.offset=((O=L==null?void 0:L.bottom)!==null&&O!==void 0?O:0)-F.bottom}}let _=o.current;if(!b&&o.current){var k;_.style.top="0px",_.style.bottom="";var N;_.style.maxHeight=((N=(k=window.visualViewport)===null||k===void 0?void 0:k.height)!==null&&N!==void 0?N:window.innerHeight)+"px"}let I=Ce({placement:Te(c,e),overlayNode:o.current,targetNode:n.current,scrollNode:r.current||o.current,padding:i,shouldFlip:g,boundaryElement:d,offset:u,crossOffset:v,maxHeight:b,arrowSize:l,arrowBoundaryOffset:s});if(I.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(I.position).forEach(L=>_.style[L]=I.position[L]+"px"),_.style.maxHeight=I.maxHeight!=null?I.maxHeight+"px":"",E&&document.activeElement&&r.current){let L=document.activeElement.getBoundingClientRect(),F=r.current.getBoundingClientRect(),Z=L[E.type]-F[E.type];r.current.scrollTop+=Z-E.offset}m(I)}},C);q.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(S,C),Re(S),J({ref:o,onResize:S}),J({ref:n,onResize:S});let h=w.useRef(!1);q.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let E,R=()=>{h.current=!0,clearTimeout(E),E=setTimeout(()=>{h.current=!1},500),S()},H=()=>{h.current&&R()};return x==null||x.addEventListener("resize",R),x==null||x.addEventListener("scroll",H),()=>{x==null||x.removeEventListener("resize",R),x==null||x.removeEventListener("scroll",H)}},[S]);let y=w.useCallback(()=>{h.current||f==null||f()},[f,h]);Se({triggerRef:n,isOpen:a,onClose:f&&y});var A,z;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(A=$==null?void 0:$.maxHeight)!==null&&A!==void 0?A:"100vh"}},placement:(z=$==null?void 0:$.placement)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:S}}function Re(t){q.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Te(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const He=w.createContext({});function ze(){var t;return(t=w.useContext(He))!==null&&t!==void 0?t:{}}function _e(t){let[e,l]=pe.$458b0a5536c1a7cf$export$40bfa8c7b0832715(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=w.useCallback(()=>{l(!0)},[l]),o=w.useCallback(()=>{l(!1)},[l]),r=w.useCallback(()=>{l(!e)},[l,e]);return{isOpen:e,setOpen:l,open:n,close:o,toggle:r}}const re=w.createContext({placement:"bottom"}),ye=w.forwardRef(function(e,l){[e,l]=q.$64fa3d84918910a7$export$29f1550f4b0d4415(e,l,re);let n=e.placement,o={position:"absolute",transform:n==="top"||n==="bottom"?"translateX(-50%)":"translateY(-50%)"};n!=null&&(o[n]="100%");let r=q.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:n}});r.style&&Object.keys(r.style).forEach(i=>r.style[i]===void 0&&delete r.style[i]);let c=$e.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);return w.createElement("div",{...c,...r,style:{...o,...r.style},ref:l,"data-placement":n})});exports.$2a41e45df1593e64$export$d39e1813b3bdd0e1=Le;exports.$44f671af83e7d9e0$export$2de4954e8ae13b9f=re;exports.$44f671af83e7d9e0$export$746d02f47f4d381=ye;exports.$96b38030c423d352$export$9fc1347d4195ccb3=ze;exports.$9daab02d461809db$export$683480f191c0e3ea=J;exports.$d3f049242431219c$export$45fda7c47f93fd48=ge;exports.$d3f049242431219c$export$6d3443f2c48bfc20=ve;exports.$dd149f63282afbbf$export$f6211563215e3b37=ne;exports.$fc909762b330b746$export$61c6a8c84e605fb6=_e;
@@ -0,0 +1,506 @@
1
+ import { $ as Y, a as ue, b as pe } from "./utils-HNTsIwux.js";
2
+ import { flushSync as me } from "react-dom";
3
+ import ve, { useEffect as K, useState as Q, useCallback as F, useRef as W, useContext as $e, createContext as re, forwardRef as ge } from "react";
4
+ import { v as he } from "./useHover-qRAon4nS.js";
5
+ import { $ as q } from "./number-BE8InLgI.js";
6
+ import { $ as be } from "./context-B8cn10po.js";
7
+ import { $ as xe } from "./useControlledState-u436Wbp1.js";
8
+ import { $ as we } from "./filterDOMProps-D6KHYVBX.js";
9
+ function Ee() {
10
+ return typeof window.ResizeObserver < "u";
11
+ }
12
+ function D(t) {
13
+ const { ref: e, box: l, onResize: n } = t;
14
+ K(() => {
15
+ let o = e == null ? void 0 : e.current;
16
+ if (o)
17
+ if (Ee()) {
18
+ const r = new window.ResizeObserver((c) => {
19
+ c.length && n();
20
+ });
21
+ return r.observe(o, {
22
+ box: l
23
+ }), () => {
24
+ o && r.unobserve(o);
25
+ };
26
+ } else
27
+ return window.addEventListener("resize", n, !1), () => {
28
+ window.removeEventListener("resize", n, !1);
29
+ };
30
+ }, [
31
+ n,
32
+ e,
33
+ l
34
+ ]);
35
+ }
36
+ function Ue(t, e = !0) {
37
+ let [l, n] = Q(!0), o = l && e;
38
+ return Y(() => {
39
+ if (o && t.current && "getAnimations" in t.current)
40
+ for (let r of t.current.getAnimations()) r instanceof CSSTransition && r.cancel();
41
+ }, [
42
+ t,
43
+ o
44
+ ]), ie(t, o, F(() => n(!1), [])), o;
45
+ }
46
+ function Ge(t, e) {
47
+ let [l, n] = Q(e ? "open" : "closed");
48
+ switch (l) {
49
+ case "open":
50
+ e || n("exiting");
51
+ break;
52
+ case "closed":
53
+ case "exiting":
54
+ e && n("open");
55
+ break;
56
+ }
57
+ let o = l === "exiting";
58
+ return ie(t, o, F(() => {
59
+ n((r) => r === "exiting" ? "closed" : r);
60
+ }, [])), o;
61
+ }
62
+ function ie(t, e, l) {
63
+ Y(() => {
64
+ if (e && t.current) {
65
+ if (!("getAnimations" in t.current)) {
66
+ l();
67
+ return;
68
+ }
69
+ let n = t.current.getAnimations();
70
+ if (n.length === 0) {
71
+ l();
72
+ return;
73
+ }
74
+ let o = !1;
75
+ return Promise.all(n.map((r) => r.finished)).then(() => {
76
+ o || me(() => {
77
+ l();
78
+ });
79
+ }).catch(() => {
80
+ }), () => {
81
+ o = !0;
82
+ };
83
+ }
84
+ }, [
85
+ t,
86
+ e,
87
+ l
88
+ ]);
89
+ }
90
+ const I = {
91
+ top: "top",
92
+ bottom: "top",
93
+ left: "left",
94
+ right: "left"
95
+ }, Z = {
96
+ top: "bottom",
97
+ bottom: "top",
98
+ left: "right",
99
+ right: "left"
100
+ }, Pe = {
101
+ top: "left",
102
+ left: "top"
103
+ }, J = {
104
+ top: "height",
105
+ left: "width"
106
+ }, ae = {
107
+ width: "totalWidth",
108
+ height: "totalHeight"
109
+ }, X = {};
110
+ let P = typeof document < "u" ? window.visualViewport : null;
111
+ function V(t) {
112
+ let e = 0, l = 0, n = 0, o = 0, r = 0, c = 0, i = {};
113
+ var g;
114
+ let f = ((g = P == null ? void 0 : P.scale) !== null && g !== void 0 ? g : 1) > 1;
115
+ if (t.tagName === "BODY") {
116
+ let d = document.documentElement;
117
+ n = d.clientWidth, o = d.clientHeight;
118
+ var u;
119
+ e = (u = P == null ? void 0 : P.width) !== null && u !== void 0 ? u : n;
120
+ var $;
121
+ l = ($ = P == null ? void 0 : P.height) !== null && $ !== void 0 ? $ : o, i.top = d.scrollTop || t.scrollTop, i.left = d.scrollLeft || t.scrollLeft, P && (r = P.offsetTop, c = P.offsetLeft);
122
+ } else
123
+ ({ width: e, height: l, top: r, left: c } = B(t)), i.top = t.scrollTop, i.left = t.scrollLeft, n = e, o = l;
124
+ if (he() && (t.tagName === "BODY" || t.tagName === "HTML") && f) {
125
+ i.top = 0, i.left = 0;
126
+ var p;
127
+ r = (p = P == null ? void 0 : P.pageTop) !== null && p !== void 0 ? p : 0;
128
+ var a;
129
+ c = (a = P == null ? void 0 : P.pageLeft) !== null && a !== void 0 ? a : 0;
130
+ }
131
+ return {
132
+ width: e,
133
+ height: l,
134
+ totalWidth: n,
135
+ totalHeight: o,
136
+ scroll: i,
137
+ top: r,
138
+ left: c
139
+ };
140
+ }
141
+ function Ce(t) {
142
+ return {
143
+ top: t.scrollTop,
144
+ left: t.scrollLeft,
145
+ width: t.scrollWidth,
146
+ height: t.scrollHeight
147
+ };
148
+ }
149
+ function ee(t, e, l, n, o, r, c) {
150
+ var i;
151
+ let g = (i = o.scroll[t]) !== null && i !== void 0 ? i : 0, f = n[J[t]], u = n.scroll[I[t]] + r, $ = f + n.scroll[I[t]] - r, p = e - g + c[t] - n[I[t]], a = e - g + l + c[t] - n[I[t]];
152
+ return p < u ? u - p : a > $ ? Math.max($ - a, u - p) : 0;
153
+ }
154
+ function Le(t) {
155
+ let e = window.getComputedStyle(t);
156
+ return {
157
+ top: parseInt(e.marginTop, 10) || 0,
158
+ bottom: parseInt(e.marginBottom, 10) || 0,
159
+ left: parseInt(e.marginLeft, 10) || 0,
160
+ right: parseInt(e.marginRight, 10) || 0
161
+ };
162
+ }
163
+ function te(t) {
164
+ if (X[t]) return X[t];
165
+ let [e, l] = t.split(" "), n = I[e] || "right", o = Pe[n];
166
+ I[l] || (l = "center");
167
+ let r = J[n], c = J[o];
168
+ return X[t] = {
169
+ placement: e,
170
+ crossPlacement: l,
171
+ axis: n,
172
+ crossAxis: o,
173
+ size: r,
174
+ crossSize: c
175
+ }, X[t];
176
+ }
177
+ function G(t, e, l, n, o, r, c, i, g, f) {
178
+ let { placement: u, crossPlacement: $, axis: p, crossAxis: a, size: d, crossSize: h } = n, s = {};
179
+ var m;
180
+ s[a] = (m = t[a]) !== null && m !== void 0 ? m : 0;
181
+ var v, E, R, C;
182
+ $ === "center" ? s[a] += (((v = t[h]) !== null && v !== void 0 ? v : 0) - ((E = l[h]) !== null && E !== void 0 ? E : 0)) / 2 : $ !== a && (s[a] += ((R = t[h]) !== null && R !== void 0 ? R : 0) - ((C = l[h]) !== null && C !== void 0 ? C : 0)), s[a] += r;
183
+ const b = t[a] - l[h] + g + f, H = t[a] + t[h] - g - f;
184
+ if (s[a] = q(s[a], b, H), u === p) {
185
+ const y = i ? c[d] : e[ae[d]];
186
+ s[Z[p]] = Math.floor(y - t[p] + o);
187
+ } else s[p] = Math.floor(t[p] + t[d] + o);
188
+ return s;
189
+ }
190
+ function Se(t, e, l, n, o, r, c, i) {
191
+ const g = n ? l.height : e[ae.height];
192
+ var f;
193
+ let u = t.top != null ? l.top + t.top : l.top + (g - ((f = t.bottom) !== null && f !== void 0 ? f : 0) - c);
194
+ var $, p, a, d, h, s;
195
+ let m = i !== "top" ? (
196
+ // We want the distance between the top of the overlay to the bottom of the boundary
197
+ Math.max(0, e.height + e.top + (($ = e.scroll.top) !== null && $ !== void 0 ? $ : 0) - u - (((p = o.top) !== null && p !== void 0 ? p : 0) + ((a = o.bottom) !== null && a !== void 0 ? a : 0) + r))
198
+ ) : Math.max(0, u + c - (e.top + ((d = e.scroll.top) !== null && d !== void 0 ? d : 0)) - (((h = o.top) !== null && h !== void 0 ? h : 0) + ((s = o.bottom) !== null && s !== void 0 ? s : 0) + r));
199
+ return Math.min(e.height - r * 2, m);
200
+ }
201
+ function oe(t, e, l, n, o, r) {
202
+ let { placement: c, axis: i, size: g } = r;
203
+ var f, u;
204
+ if (c === i) return Math.max(0, l[i] - t[i] - ((f = t.scroll[i]) !== null && f !== void 0 ? f : 0) + e[i] - ((u = n[i]) !== null && u !== void 0 ? u : 0) - n[Z[i]] - o);
205
+ var $;
206
+ return Math.max(0, t[g] + t[i] + t.scroll[i] - e[i] - l[i] - l[g] - (($ = n[i]) !== null && $ !== void 0 ? $ : 0) - n[Z[i]] - o);
207
+ }
208
+ function Re(t, e, l, n, o, r, c, i, g, f, u, $, p, a, d, h) {
209
+ let s = te(t), { size: m, crossAxis: v, crossSize: E, placement: R, crossPlacement: C } = s, b = G(e, i, l, s, u, $, f, p, d, h), H = u, y = oe(i, f, e, o, r + u, s);
210
+ if (c && n[m] > y) {
211
+ let U = te(`${Z[R]} ${C}`), de = G(e, i, l, U, u, $, f, p, d, h);
212
+ oe(i, f, e, o, r + u, U) > y && (s = U, b = de, H = u);
213
+ }
214
+ let _ = "bottom";
215
+ s.axis === "top" ? s.placement === "top" ? _ = "top" : s.placement === "bottom" && (_ = "bottom") : s.crossAxis === "top" && (s.crossPlacement === "top" ? _ = "bottom" : s.crossPlacement === "bottom" && (_ = "top"));
216
+ let w = ee(v, b[v], l[E], i, g, r, f);
217
+ b[v] += w;
218
+ let S = Se(b, i, f, p, o, r, l.height, _);
219
+ a && a < S && (S = a), l.height = Math.min(l.height, S), b = G(e, i, l, s, H, $, f, p, d, h), w = ee(v, b[v], l[E], i, g, r, f), b[v] += w;
220
+ let T = {}, M = e[v] + 0.5 * e[E] - b[v] - o[I[v]];
221
+ const z = d / 2 + h;
222
+ var O, k, A, L;
223
+ const N = I[v] === "left" ? ((O = o.left) !== null && O !== void 0 ? O : 0) + ((k = o.right) !== null && k !== void 0 ? k : 0) : ((A = o.top) !== null && A !== void 0 ? A : 0) + ((L = o.bottom) !== null && L !== void 0 ? L : 0), j = l[E] - N - d / 2 - h, ce = e[v] + d / 2 - (b[v] + o[I[v]]), se = e[v] + e[E] - d / 2 - (b[v] + o[I[v]]), fe = q(M, ce, se);
224
+ return T[v] = q(fe, z, j), {
225
+ position: b,
226
+ maxHeight: S,
227
+ arrowOffsetLeft: T.left,
228
+ arrowOffsetTop: T.top,
229
+ placement: s.placement
230
+ };
231
+ }
232
+ function Te(t) {
233
+ let { placement: e, targetNode: l, overlayNode: n, scrollNode: o, padding: r, shouldFlip: c, boundaryElement: i, offset: g, crossOffset: f, maxHeight: u, arrowSize: $ = 0, arrowBoundaryOffset: p = 0 } = t, a = n instanceof HTMLElement ? _e(n) : document.documentElement, d = a === document.documentElement;
234
+ const h = window.getComputedStyle(a).position;
235
+ let s = !!h && h !== "static", m = d ? B(l) : le(l, a);
236
+ if (!d) {
237
+ let { marginTop: T, marginLeft: M } = window.getComputedStyle(l);
238
+ m.top += parseInt(T, 10) || 0, m.left += parseInt(M, 10) || 0;
239
+ }
240
+ let v = B(n), E = Le(n);
241
+ var R, C;
242
+ v.width += ((R = E.left) !== null && R !== void 0 ? R : 0) + ((C = E.right) !== null && C !== void 0 ? C : 0);
243
+ var b, H;
244
+ v.height += ((b = E.top) !== null && b !== void 0 ? b : 0) + ((H = E.bottom) !== null && H !== void 0 ? H : 0);
245
+ let y = Ce(o), _ = V(i), w = V(a), S = i.tagName === "BODY" ? B(a) : le(a, i);
246
+ return a.tagName === "HTML" && i.tagName === "BODY" && (w.scroll.top = 0, w.scroll.left = 0), Re(e, m, v, y, E, r, c, _, w, S, g, f, s, u, $, p);
247
+ }
248
+ function B(t) {
249
+ let { top: e, left: l, width: n, height: o } = t.getBoundingClientRect(), { scrollTop: r, scrollLeft: c, clientTop: i, clientLeft: g } = document.documentElement;
250
+ return {
251
+ top: e + r - i,
252
+ left: l + c - g,
253
+ width: n,
254
+ height: o
255
+ };
256
+ }
257
+ function le(t, e) {
258
+ let l = window.getComputedStyle(t), n;
259
+ if (l.position === "fixed") {
260
+ let { top: o, left: r, width: c, height: i } = t.getBoundingClientRect();
261
+ n = {
262
+ top: o,
263
+ left: r,
264
+ width: c,
265
+ height: i
266
+ };
267
+ } else {
268
+ n = B(t);
269
+ let o = B(e), r = window.getComputedStyle(e);
270
+ o.top += (parseInt(r.borderTopWidth, 10) || 0) - e.scrollTop, o.left += (parseInt(r.borderLeftWidth, 10) || 0) - e.scrollLeft, n.top -= o.top, n.left -= o.left;
271
+ }
272
+ return n.top -= parseInt(l.marginTop, 10) || 0, n.left -= parseInt(l.marginLeft, 10) || 0, n;
273
+ }
274
+ function _e(t) {
275
+ let e = t.offsetParent;
276
+ if (e && e === document.body && window.getComputedStyle(e).position === "static" && !ne(e) && (e = document.documentElement), e == null)
277
+ for (e = t.parentElement; e && !ne(e); ) e = e.parentElement;
278
+ return e || document.documentElement;
279
+ }
280
+ function ne(t) {
281
+ let e = window.getComputedStyle(t);
282
+ return e.transform !== "none" || /transform|perspective/.test(e.willChange) || e.filter !== "none" || e.contain === "paint" || "backdropFilter" in e && e.backdropFilter !== "none" || "WebkitBackdropFilter" in e && e.WebkitBackdropFilter !== "none";
283
+ }
284
+ const ze = /* @__PURE__ */ new WeakMap();
285
+ function He(t) {
286
+ let { triggerRef: e, isOpen: l, onClose: n } = t;
287
+ K(() => {
288
+ if (!l || n === null) return;
289
+ let o = (r) => {
290
+ let c = r.target;
291
+ if (!e.current || c instanceof Node && !c.contains(e.current) || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement) return;
292
+ let i = n || ze.get(e.current);
293
+ i && i();
294
+ };
295
+ return window.addEventListener("scroll", o, !0), () => {
296
+ window.removeEventListener("scroll", o, !0);
297
+ };
298
+ }, [
299
+ l,
300
+ n,
301
+ e
302
+ ]);
303
+ }
304
+ let x = typeof document < "u" ? window.visualViewport : null;
305
+ function qe(t) {
306
+ let { direction: e } = be(), { arrowSize: l = 0, targetRef: n, overlayRef: o, scrollRef: r = o, placement: c = "bottom", containerPadding: i = 12, shouldFlip: g = !0, boundaryElement: f = typeof document < "u" ? document.body : null, offset: u = 0, crossOffset: $ = 0, shouldUpdatePosition: p = !0, isOpen: a = !0, onClose: d, maxHeight: h, arrowBoundaryOffset: s = 0 } = t, [m, v] = Q(null), E = [
307
+ p,
308
+ c,
309
+ o.current,
310
+ n.current,
311
+ r.current,
312
+ i,
313
+ g,
314
+ f,
315
+ u,
316
+ $,
317
+ a,
318
+ e,
319
+ h,
320
+ s,
321
+ l
322
+ ], R = W(x == null ? void 0 : x.scale);
323
+ K(() => {
324
+ a && (R.current = x == null ? void 0 : x.scale);
325
+ }, [
326
+ a
327
+ ]);
328
+ let C = F(() => {
329
+ if (p === !1 || !a || !o.current || !n.current || !f || (x == null ? void 0 : x.scale) !== R.current) return;
330
+ let w = null;
331
+ if (r.current && r.current.contains(document.activeElement)) {
332
+ var S;
333
+ let L = (S = document.activeElement) === null || S === void 0 ? void 0 : S.getBoundingClientRect(), N = r.current.getBoundingClientRect();
334
+ var T;
335
+ if (w = {
336
+ type: "top",
337
+ offset: ((T = L == null ? void 0 : L.top) !== null && T !== void 0 ? T : 0) - N.top
338
+ }, w.offset > N.height / 2) {
339
+ w.type = "bottom";
340
+ var M;
341
+ w.offset = ((M = L == null ? void 0 : L.bottom) !== null && M !== void 0 ? M : 0) - N.bottom;
342
+ }
343
+ }
344
+ let z = o.current;
345
+ if (!h && o.current) {
346
+ var O;
347
+ z.style.top = "0px", z.style.bottom = "";
348
+ var k;
349
+ z.style.maxHeight = ((k = (O = window.visualViewport) === null || O === void 0 ? void 0 : O.height) !== null && k !== void 0 ? k : window.innerHeight) + "px";
350
+ }
351
+ let A = Te({
352
+ placement: Ae(c, e),
353
+ overlayNode: o.current,
354
+ targetNode: n.current,
355
+ scrollNode: r.current || o.current,
356
+ padding: i,
357
+ shouldFlip: g,
358
+ boundaryElement: f,
359
+ offset: u,
360
+ crossOffset: $,
361
+ maxHeight: h,
362
+ arrowSize: l,
363
+ arrowBoundaryOffset: s
364
+ });
365
+ if (A.position) {
366
+ if (z.style.top = "", z.style.bottom = "", z.style.left = "", z.style.right = "", Object.keys(A.position).forEach((L) => z.style[L] = A.position[L] + "px"), z.style.maxHeight = A.maxHeight != null ? A.maxHeight + "px" : "", w && document.activeElement && r.current) {
367
+ let L = document.activeElement.getBoundingClientRect(), N = r.current.getBoundingClientRect(), j = L[w.type] - N[w.type];
368
+ r.current.scrollTop += j - w.offset;
369
+ }
370
+ v(A);
371
+ }
372
+ }, E);
373
+ Y(C, E), ye(C), D({
374
+ ref: o,
375
+ onResize: C
376
+ }), D({
377
+ ref: n,
378
+ onResize: C
379
+ });
380
+ let b = W(!1);
381
+ Y(() => {
382
+ let w, S = () => {
383
+ b.current = !0, clearTimeout(w), w = setTimeout(() => {
384
+ b.current = !1;
385
+ }, 500), C();
386
+ }, T = () => {
387
+ b.current && S();
388
+ };
389
+ return x == null || x.addEventListener("resize", S), x == null || x.addEventListener("scroll", T), () => {
390
+ x == null || x.removeEventListener("resize", S), x == null || x.removeEventListener("scroll", T);
391
+ };
392
+ }, [
393
+ C
394
+ ]);
395
+ let H = F(() => {
396
+ b.current || d == null || d();
397
+ }, [
398
+ d,
399
+ b
400
+ ]);
401
+ He({
402
+ triggerRef: n,
403
+ isOpen: a,
404
+ onClose: d && H
405
+ });
406
+ var y, _;
407
+ return {
408
+ overlayProps: {
409
+ style: {
410
+ position: "absolute",
411
+ zIndex: 1e5,
412
+ ...m == null ? void 0 : m.position,
413
+ maxHeight: (y = m == null ? void 0 : m.maxHeight) !== null && y !== void 0 ? y : "100vh"
414
+ }
415
+ },
416
+ placement: (_ = m == null ? void 0 : m.placement) !== null && _ !== void 0 ? _ : null,
417
+ arrowProps: {
418
+ "aria-hidden": "true",
419
+ role: "presentation",
420
+ style: {
421
+ left: m == null ? void 0 : m.arrowOffsetLeft,
422
+ top: m == null ? void 0 : m.arrowOffsetTop
423
+ }
424
+ },
425
+ updatePosition: C
426
+ };
427
+ }
428
+ function ye(t) {
429
+ Y(() => (window.addEventListener("resize", t, !1), () => {
430
+ window.removeEventListener("resize", t, !1);
431
+ }), [
432
+ t
433
+ ]);
434
+ }
435
+ function Ae(t, e) {
436
+ return e === "rtl" ? t.replace("start", "right").replace("end", "left") : t.replace("start", "left").replace("end", "right");
437
+ }
438
+ const Ie = /* @__PURE__ */ re({});
439
+ function Je() {
440
+ var t;
441
+ return (t = $e(Ie)) !== null && t !== void 0 ? t : {};
442
+ }
443
+ function Ke(t) {
444
+ let [e, l] = xe(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
445
+ const n = F(() => {
446
+ l(!0);
447
+ }, [
448
+ l
449
+ ]), o = F(() => {
450
+ l(!1);
451
+ }, [
452
+ l
453
+ ]), r = F(() => {
454
+ l(!e);
455
+ }, [
456
+ l,
457
+ e
458
+ ]);
459
+ return {
460
+ isOpen: e,
461
+ setOpen: l,
462
+ open: n,
463
+ close: o,
464
+ toggle: r
465
+ };
466
+ }
467
+ const Me = /* @__PURE__ */ re({
468
+ placement: "bottom"
469
+ }), Qe = /* @__PURE__ */ ge(function(e, l) {
470
+ [e, l] = ue(e, l, Me);
471
+ let n = e.placement, o = {
472
+ position: "absolute",
473
+ transform: n === "top" || n === "bottom" ? "translateX(-50%)" : "translateY(-50%)"
474
+ };
475
+ n != null && (o[n] = "100%");
476
+ let r = pe({
477
+ ...e,
478
+ defaultClassName: "react-aria-OverlayArrow",
479
+ values: {
480
+ placement: n
481
+ }
482
+ });
483
+ r.style && Object.keys(r.style).forEach((i) => r.style[i] === void 0 && delete r.style[i]);
484
+ let c = we(e);
485
+ return /* @__PURE__ */ ve.createElement("div", {
486
+ ...c,
487
+ ...r,
488
+ style: {
489
+ ...o,
490
+ ...r.style
491
+ },
492
+ ref: l,
493
+ "data-placement": n
494
+ });
495
+ });
496
+ export {
497
+ Ke as $,
498
+ Ge as a,
499
+ Ue as b,
500
+ Je as c,
501
+ qe as d,
502
+ Me as e,
503
+ Qe as f,
504
+ D as g,
505
+ ze as h
506
+ };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("./usePress-BFa6cT9o.cjs"),b=require("./utils-BNtZbAib.cjs"),$=require("./focusSafely-Bqfo_DH7.cjs"),r=require("react"),n=r.forwardRef(({children:a,...c},t)=>{let o=r.useRef(!1),e=r.useContext(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5);t=b.$df56164dff5785e2$export$4338b53315abf666(t||(e==null?void 0:e.ref));let f=b.$3ef42575df84b30b$export$9d1611c77c2fe928(e||{},{...c,ref:t,register(){o.current=!0,e&&e.register()}});return $.$e7801be82b4b2a53$export$4debdb1a3f0fa79e(e,t),r.useEffect(()=>{o.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=!0)},[]),r.createElement(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:f},a)});function d({children:a}){let c=r.useMemo(()=>({register:()=>{}}),[]);return r.createElement(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:c},a)}exports.$f1ab8c75478c6f73$export$3351871ee4b288b8=n;exports.$f1ab8c75478c6f73$export$cf75428e0b9ed1ea=d;
@@ -0,0 +1,33 @@
1
+ import { a as s } from "./usePress-CUJ3pMOw.js";
2
+ import { e as d, d as n } from "./utils-HNTsIwux.js";
3
+ import { $ as i } from "./focusSafely-C48ucRUz.js";
4
+ import f, { useRef as $, useContext as b, useEffect as l, useMemo as u } from "react";
5
+ const v = /* @__PURE__ */ f.forwardRef(({ children: t, ...o }, r) => {
6
+ let a = $(!1), e = b(s);
7
+ r = d(r || (e == null ? void 0 : e.ref));
8
+ let c = n(e || {}, {
9
+ ...o,
10
+ ref: r,
11
+ register() {
12
+ a.current = !0, e && e.register();
13
+ }
14
+ });
15
+ return i(e, r), l(() => {
16
+ a.current || (process.env.NODE_ENV !== "production" && console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."), a.current = !0);
17
+ }, []), /* @__PURE__ */ f.createElement(s.Provider, {
18
+ value: c
19
+ }, t);
20
+ });
21
+ function w({ children: t }) {
22
+ let o = u(() => ({
23
+ register: () => {
24
+ }
25
+ }), []);
26
+ return /* @__PURE__ */ f.createElement(s.Provider, {
27
+ value: o
28
+ }, t);
29
+ }
30
+ export {
31
+ v as $,
32
+ w as a
33
+ };