@midas-ds/components 14.0.0 → 15.0.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 (334) hide show
  1. package/AccordionItem-DTbu3lqx.js +343 -0
  2. package/AccordionItem-tWS22wDv.cjs +1 -0
  3. package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
  4. package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
  5. package/Button-1sEX8jKn.cjs +1 -0
  6. package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
  7. package/{Button-B6lxIKPk.js → Button-BbfVT9Yl.js} +122 -116
  8. package/{Button-CRIYvCRM.js → Button-DdXFHfXw.js} +1 -1
  9. package/CHANGELOG.md +49 -0
  10. package/{Card-CfosvMF5.js → Card-CdqGFff2.js} +3 -3
  11. package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
  12. package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
  13. package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
  14. package/Checkbox-BgrLxY6P.cjs +1 -0
  15. package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
  16. package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-CtJJqk_q.js} +7 -7
  17. package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-thvsvOqD.cjs} +1 -1
  18. package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
  19. package/Collection-vGO6v3_U.cjs +1 -0
  20. package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-Ckna0otR.cjs} +1 -1
  21. package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-aF2UxI20.js} +2 -2
  22. package/{ComboBox-D7eKe-M5.js → ComboBox-BDX4BYWJ.js} +244 -229
  23. package/ComboBox-DFPrJUoV.cjs +1 -0
  24. package/{DateField-BszKZodr.cjs → DateField-B92Cqf9K.cjs} +1 -1
  25. package/{DateField-xyhyDy7u.js → DateField-BPRWrVcu.js} +4 -4
  26. package/DateInputDivider-CCrXjsUB.cjs +1 -0
  27. package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-DOHpVaNE.js} +191 -188
  28. package/DateRangePicker-COSTCOt8.cjs +6 -0
  29. package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-Cmt9NC35.js} +119 -115
  30. package/Dialog-CPuJA2fm.js +256 -0
  31. package/{Dialog-DOyFzvUa.js → Dialog-D4Py85wi.js} +712 -694
  32. package/Dialog-DtOf0vWx.cjs +1 -0
  33. package/Dialog-DycTLpdr.cjs +6 -0
  34. package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
  35. package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
  36. package/{Dropdown-uC9wc8vd.js → Dropdown-B4lwe0Hn.js} +2 -2
  37. package/{Dropdown-5rmvcHD_.cjs → Dropdown-_g9l5k07.cjs} +1 -1
  38. package/{FieldError-C4kD4yJZ.js → FieldError-CIxlNQCM.js} +13 -13
  39. package/{FieldError-C4WBoCRc.cjs → FieldError-JWxR_EqN.cjs} +1 -1
  40. package/{FileUpload-CTbh7Gic.cjs → FileUpload-C0TjNkuh.cjs} +2 -2
  41. package/{FileUpload-01wGpykv.js → FileUpload-DLBP3VPp.js} +260 -534
  42. package/Group-B0Wj9pI8.cjs +1 -0
  43. package/Group-BAd7alBM.js +46 -0
  44. package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
  45. package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
  46. package/{InfoBanner-CRSz8DK2.js → InfoBanner-D7Ta-7PI.js} +1 -1
  47. package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
  48. package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
  49. package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
  50. package/{Label-CkIRTC0_.cjs → Label-DpY2SZdQ.cjs} +1 -1
  51. package/{Label-CV9p0K2n.js → Label-FfEnd4ai.js} +4 -4
  52. package/Layout-BrEuHajQ.cjs +16 -0
  53. package/{Layout-IeVrHpT0.js → Layout-Hd1e_MEA.js} +62 -63
  54. package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
  55. package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
  56. package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
  57. package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
  58. package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
  59. package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
  60. package/{ListBox-2eEa1l0M.js → ListBox-5GK4ZRj1.js} +189 -178
  61. package/ListBox-FD30iELk.cjs +1 -0
  62. package/{ListBoxSection-dksiACMZ.js → ListBox-LJ3VgZMr.js} +230 -266
  63. package/ListBox-u6ZXp5Yi.cjs +1 -0
  64. package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-B4GFbdYf.js} +3 -3
  65. package/ListBoxLoadMoreItem-DMUOzVtt.cjs +1 -0
  66. package/ListBoxSection-CBlpg0AG.cjs +1 -0
  67. package/ListBoxSection-DjGs1ndn.js +51 -0
  68. package/ListKeyboardDelegate-8zuIfwQ7.cjs +1 -0
  69. package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BBmpJ-2O.js} +36 -40
  70. package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
  71. package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
  72. package/Popover-CS8Yyfrq.js +39 -0
  73. package/Popover-DpB0XDBp.cjs +1 -0
  74. package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
  75. package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
  76. package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BZqAQTV3.cjs} +1 -1
  77. package/{ProgressBar-B0WEQkyq.js → ProgressBar-BpsvPCKk.js} +12 -12
  78. package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
  79. package/RSPContexts-XUvspq3j.cjs +1 -0
  80. package/Radio-B3FBTn4F.cjs +1 -0
  81. package/Radio-LevFYAg4.js +340 -0
  82. package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-CH0CyBui.cjs} +2 -2
  83. package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-DT_KVd80.js} +58 -58
  84. package/{SearchField-DnBBlPT7.cjs → SearchField-BX7P7BgV.cjs} +1 -1
  85. package/{SearchField-wojUSY2S.js → SearchField-C-TFzcJF.js} +3 -3
  86. package/Select-C-ykeY_T.js +773 -0
  87. package/Select-CiCng7ZP.js +678 -0
  88. package/Select-D4wi-0Jw.cjs +1 -0
  89. package/Select-JIDW2mN8.cjs +1 -0
  90. package/{FocusScope-8ILtcq9W.js → SelectionIndicator-C2E23-zO.js} +270 -174
  91. package/SelectionIndicator-ClG0GpJu.cjs +1 -0
  92. package/SelectionManager-CNJmHeCF.cjs +1 -0
  93. package/SelectionManager-DoNLJm8c.js +1063 -0
  94. package/{Separator-COlhRmJF.js → Separator-CQfDz_zr.js} +10 -10
  95. package/{Separator-DcbM84B8.cjs → Separator-CSyYDGNE.cjs} +1 -1
  96. package/{Separator-BQkxEZC9.cjs → Separator-DCi4bnBr.cjs} +1 -1
  97. package/{Separator--4b7vckr.js → Separator-DLr4kUJD.js} +2 -2
  98. package/Spinner-D6Fcu_Dp.js +54 -0
  99. package/Spinner-DIapnvIz.cjs +6 -0
  100. package/TabList-BBmBumm6.js +394 -0
  101. package/TabList-DVzXuGXA.cjs +1 -0
  102. package/Table-B1nxmW14.cjs +16 -0
  103. package/{Table-cCSOrPkK.js → Table-DxqKDp7N.js} +707 -703
  104. package/Tag-BL-_PONN.cjs +1 -0
  105. package/Tag-DX1X_NZE.js +774 -0
  106. package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
  107. package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
  108. package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
  109. package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
  110. package/{TextArea-B5TsyJxa.cjs → TextArea-Bjf8CBp0.cjs} +1 -1
  111. package/{TextArea-Cado2arG.js → TextArea-CJPBvogq.js} +8 -8
  112. package/TextField-DtD9-arA.cjs +1 -0
  113. package/{TextField-5AI6T1ol.js → TextField-DyR61bjZ.js} +10 -10
  114. package/{Toast-CgXRE33Y.js → Toast-B99bLWnh.js} +12 -12
  115. package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
  116. package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-CFRutAZ4.js} +82 -78
  117. package/ToggleButtonGroup-dnvnzkaD.cjs +1 -0
  118. package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
  119. package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
  120. package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
  121. package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
  122. package/accordion/index.cjs +1 -1
  123. package/accordion/index.js +1 -1
  124. package/assets/AccordionItem.css +1 -1
  125. package/assets/FieldError.css +1 -1
  126. package/assets/ListBox.css +1 -0
  127. package/assets/Popover.css +1 -1
  128. package/assets/RangeCalendar.css +1 -1
  129. package/assets/Select.css +1 -1
  130. package/assets/Select2.css +1 -0
  131. package/assets/Spinner.css +1 -1
  132. package/assets/TabList.css +1 -1
  133. package/assets/Tag.css +1 -1
  134. package/assets/default.css +1 -1
  135. package/breadcrumbs/index.cjs +1 -1
  136. package/breadcrumbs/index.js +1 -1
  137. package/button/index.cjs +1 -1
  138. package/button/index.js +1 -1
  139. package/calendar/index.cjs +1 -1
  140. package/calendar/index.js +1 -1
  141. package/card/index.cjs +1 -1
  142. package/card/index.js +1 -1
  143. package/character-counter/index.cjs +1 -1
  144. package/character-counter/index.js +1 -1
  145. package/checkbox/index.cjs +1 -1
  146. package/checkbox/index.js +2 -2
  147. package/color-scheme-switch/index.cjs +1 -1
  148. package/color-scheme-switch/index.js +1 -1
  149. package/combobox/index.cjs +1 -1
  150. package/combobox/index.js +1 -1
  151. package/date-field/index.cjs +1 -1
  152. package/date-field/index.js +2 -2
  153. package/date-picker/index.cjs +1 -1
  154. package/date-picker/index.js +1 -1
  155. package/dropdown/index.cjs +1 -1
  156. package/dropdown/index.js +1 -1
  157. package/field-error/index.cjs +1 -1
  158. package/field-error/index.js +1 -1
  159. package/file-upload/index.cjs +1 -1
  160. package/file-upload/index.js +1 -1
  161. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
  162. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
  163. package/heading/index.cjs +1 -1
  164. package/heading/index.js +1 -1
  165. package/index.cjs +1 -1
  166. package/index.d.ts +1 -0
  167. package/index.js +99 -95
  168. package/info-banner/index.cjs +1 -1
  169. package/info-banner/index.js +1 -1
  170. package/intlStrings-Cd44R5hT.js +278 -0
  171. package/intlStrings-ClBuC6xN.cjs +1 -0
  172. package/label/index.cjs +1 -1
  173. package/label/index.js +1 -1
  174. package/layout/index.cjs +1 -1
  175. package/layout/index.js +1 -1
  176. package/legacy-select/Select.d.ts +8 -0
  177. package/legacy-select/SelectTrigger.d.ts +10 -0
  178. package/legacy-select/index.cjs +1 -0
  179. package/legacy-select/index.d.ts +2 -0
  180. package/legacy-select/index.js +4 -0
  181. package/legacy-select/intl/translations.json.d.ts +17 -0
  182. package/{select → legacy-select}/types.d.ts +2 -2
  183. package/legacy-select/useMultiSelect.d.ts +5 -0
  184. package/link/index.cjs +1 -1
  185. package/link/index.js +2 -2
  186. package/link-button/index.cjs +1 -1
  187. package/link-button/index.js +2 -2
  188. package/list-box/ListBox.d.ts +1 -2
  189. package/list-box/ListBoxHeader.d.ts +3 -0
  190. package/list-box/ListBoxItem.d.ts +9 -3
  191. package/list-box/ListBoxSection.d.ts +1 -1
  192. package/list-box/index.cjs +1 -1
  193. package/list-box/index.d.ts +1 -0
  194. package/list-box/index.js +9 -7
  195. package/menu/index.cjs +1 -1
  196. package/menu/index.js +2 -2
  197. package/modal/index.cjs +1 -1
  198. package/modal/index.js +2 -2
  199. package/package.json +4 -4
  200. package/popover/Popover.d.ts +2 -1
  201. package/popover/index.cjs +1 -1
  202. package/popover/index.js +1 -1
  203. package/progress-bar/index.cjs +1 -1
  204. package/progress-bar/index.js +1 -1
  205. package/radio/index.cjs +1 -1
  206. package/radio/index.js +1 -1
  207. package/scrollIntoView-BVI21Y4-.js +65 -0
  208. package/scrollIntoView-BueMOyGp.cjs +1 -0
  209. package/search-field/index.cjs +1 -1
  210. package/search-field/index.js +1 -1
  211. package/select/Select.d.ts +33 -4
  212. package/select/SelectAll.d.ts +1 -0
  213. package/select/SelectTags.d.ts +4 -0
  214. package/select/SelectTrigger.d.ts +4 -8
  215. package/select/SelectValueTag.d.ts +5 -0
  216. package/select/index.cjs +1 -1
  217. package/select/index.d.ts +1 -2
  218. package/select/index.js +1 -1
  219. package/select/intl/translations.json.d.ts +2 -2
  220. package/spinner/Spinner.d.ts +5 -1
  221. package/spinner/index.cjs +1 -1
  222. package/spinner/index.js +1 -1
  223. package/table/index.cjs +1 -1
  224. package/table/index.js +1 -1
  225. package/tabs/Tabs.d.ts +2 -9
  226. package/tabs/index.cjs +1 -1
  227. package/tabs/index.d.ts +0 -1
  228. package/tabs/index.js +1 -1
  229. package/tag/index.cjs +1 -1
  230. package/tag/index.js +1 -1
  231. package/text/index.cjs +1 -1
  232. package/text/index.js +1 -1
  233. package/textfield/TextArea.d.ts +3 -2
  234. package/textfield/TextField.d.ts +3 -2
  235. package/textfield/index.cjs +1 -1
  236. package/textfield/index.js +1 -1
  237. package/toast/index.cjs +1 -1
  238. package/toast/index.js +1 -1
  239. package/toggle-button/index.cjs +1 -1
  240. package/toggle-button/index.js +1 -1
  241. package/tooltip/index.cjs +1 -1
  242. package/tooltip/index.js +1 -1
  243. package/{useButton-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
  244. package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
  245. package/useDateFormatter-BrrFo4nY.cjs +1 -0
  246. package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
  247. package/{useField-sSWPm-He.js → useField-Bx76iuoW.js} +1 -1
  248. package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
  249. package/{useFilter-DHcouDzv.js → useFilter-Dn4vTT3G.js} +1 -1
  250. package/{useFilter-DlZLqsJD.cjs → useFilter-eOgdlVLd.cjs} +1 -1
  251. package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
  252. package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
  253. package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
  254. package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
  255. package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
  256. package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
  257. package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
  258. package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
  259. package/useHasTabbableChild-BJ_VejL5.cjs +1 -0
  260. package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-DpISgPsS.js} +1 -1
  261. package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
  262. package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-Zvo5KTxM.js} +2 -2
  263. package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
  264. package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
  265. package/{useListState-D2yPZrFZ.js → useListState-CP7AKhOX.js} +1 -1
  266. package/{useListState-BdC308Sq.cjs → useListState-DZFWpD-x.cjs} +1 -1
  267. package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
  268. package/usePress-DmU79HEg.cjs +7 -0
  269. package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-GSY0f4qW.js} +1 -1
  270. package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-JCvbhUVI.cjs} +1 -1
  271. package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
  272. package/{useTextField-DjxrmW7d.js → useTextField-I3QVGvyX.js} +4 -4
  273. package/utils/types.d.ts +5 -0
  274. package/utils-CtICjCYt.cjs +1 -0
  275. package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
  276. package/utils-DRIRjPUS.cjs +1 -0
  277. package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
  278. package/AccordionItem-BJw5IKe0.js +0 -334
  279. package/AccordionItem-DhMimhYo.cjs +0 -1
  280. package/Button-BTX5G3le.cjs +0 -1
  281. package/Checkbox-D-CFY6QF.cjs +0 -1
  282. package/Collection-DaZzboRu.cjs +0 -1
  283. package/ComboBox-C4NybZ32.cjs +0 -1
  284. package/DateInputDivider-BgXKFwB0.cjs +0 -1
  285. package/DateRangePicker-DTPkr3hX.cjs +0 -6
  286. package/Dialog-DLnopN3Z.js +0 -237
  287. package/Dialog-DNu42oLH.cjs +0 -1
  288. package/Dialog-w6EBWT__.cjs +0 -1
  289. package/FocusScope-Dv0F-mG2.cjs +0 -1
  290. package/Group-C2hEIsGV.js +0 -45
  291. package/Group-cuyk9Hsy.cjs +0 -1
  292. package/Layout-CVnlO10z.cjs +0 -16
  293. package/ListBox-Bx9M5vqb.cjs +0 -1
  294. package/ListBoxLoadMoreItem-BBE3OF4J.cjs +0 -1
  295. package/ListBoxSection-kujY2gUl.cjs +0 -1
  296. package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
  297. package/Popover-BI2Koco0.cjs +0 -1
  298. package/Popover-D7_IfJ3o.js +0 -38
  299. package/RSPContexts-D8hmBfGm.cjs +0 -1
  300. package/Radio-D6KNkSA2.js +0 -333
  301. package/Radio-DsVsutMH.cjs +0 -1
  302. package/Select-D9h_RQ2k.cjs +0 -1
  303. package/Select-Dc6y8gPR.js +0 -654
  304. package/SelectionManager-D-4ThfPZ.js +0 -1043
  305. package/SelectionManager-FYrDfe5v.cjs +0 -1
  306. package/Spinner-CTha503N.js +0 -47
  307. package/Spinner-DKQ9_SQB.cjs +0 -6
  308. package/TabList-BhC96APe.cjs +0 -1
  309. package/TabList-P5HnizZt.js +0 -393
  310. package/Table-BB8Ag5_3.cjs +0 -16
  311. package/Tag-D2vh0KRD.js +0 -765
  312. package/Tag-D32MGLjS.cjs +0 -1
  313. package/TextField-4xfAzdBI.cjs +0 -1
  314. package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
  315. package/assets/ListBoxSection.css +0 -1
  316. package/scrollIntoView-ClEACHUk.js +0 -57
  317. package/scrollIntoView-DRSoJp89.cjs +0 -1
  318. package/select/useMultiSelect.d.ts +0 -4
  319. package/useDateFormatter-D0bVjgIb.cjs +0 -1
  320. package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
  321. package/useObserveElement-BdI4zgd7.js +0 -27
  322. package/useObserveElement-BzEr5D32.cjs +0 -1
  323. package/usePress-Dj3t18Pf.cjs +0 -7
  324. package/utils-I-LGXGYH.cjs +0 -1
  325. package/utils-cBvgilDa.cjs +0 -1
  326. package/variables-B3KEYyhW.cjs +0 -1
  327. package/variables-DzXcMW2k.js +0 -5
  328. /package/{select → legacy-select}/HiddenMultiSelect.d.ts +0 -0
  329. /package/{select → legacy-select}/MultiSelectValueTag.d.ts +0 -0
  330. /package/{select → legacy-select}/SelectFieldError.d.ts +0 -0
  331. /package/{select → legacy-select}/SelectListBox.d.ts +0 -0
  332. /package/{select → legacy-select}/useMultiSelectListState.d.ts +0 -0
  333. /package/{select → legacy-select}/useMultiSelectState.d.ts +0 -0
  334. /package/{select → legacy-select}/utils.d.ts +0 -0
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/ListBox.css');const M=require("react/jsx-runtime"),J=require("./ListBox-FD30iELk.cjs"),q=require("./Collection-vGO6v3_U.cjs"),c=require("react"),k=require("./mergeProps-Du5A8xi8.cjs"),K=require("./context-UOrD6Zxk.cjs"),E=require("react-dom"),Q=require("./OverlayArrow-bcrb_syE.cjs"),Z=require("./useEvent-C125NAue.cjs"),ee=require("./clsx-DKOfLqne.cjs"),V=require("./SelectionManager-CNJmHeCF.cjs");class te{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){var t,i;return(i=(t=this.getLayoutInfo(e))===null||t===void 0?void 0:t.rect)!==null&&i!==void 0?i:null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class b{copy(){let e=new b(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class x{copy(){return new x(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,t=0){this.x=e,this.y=t}}class g{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new x(this.x,this.y)}get topRight(){return new x(this.maxX,this.y)}get bottomLeft(){return new x(this.x,this.maxY)}get bottomRight(){return new x(this.maxX,this.maxY)}intersects(e){return(process.env.NODE_ENV==="test"&&!process.env.VIRT_ON||this.area>0&&e.area>0)&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),l=Math.max(this.maxX,e.maxX)-t,n=Math.max(this.maxY,e.maxY)-i;return new g(t,i,l,n)}intersection(e){if(!this.intersects(e))return new g(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new g(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new g(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,i=0,l=0){this.x=e,this.y=t,this.width=i,this.height=l}}class ${copy(){return new $(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}}let ie=0;class B{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new ne(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}constructor(e,t){this.virtualizer=e,this.key=++ie,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class le extends B{constructor(e){super(e,"root")}}class ne extends B{constructor(e,t,i){super(e,i),this.parent=t}}function oe(s,e){if(s===e)return!0;if(s.size!==e.size)return!1;for(let t of s)if(!e.has(t))return!1;return!0}class se{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;if(e.height+=t,this.velocity.y<0&&(e.y-=t),this.velocity.x!==0){let i=this.visibleRect.width/3;e.width+=i,this.velocity.x<0&&(e.x-=i)}return e}constructor(){this.startTime=0,this.velocity=new x(0,0),this.visibleRect=new g}}class re{isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:l}=e.layoutInfo;e.content=l||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let l=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,l),l}keyAtPoint(e){let t=new g(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let l of i)if(l.rect.intersects(t))return l.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,l=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),l=Math.max(0,Math.min(this.contentSize.height-t.height,l)),i!==t.x||l!==t.y){let n=new g(i,l,t.width,t.height);this.delegate.setVisibleRect(n)}else this.updateSubviews()}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),l;e&&!(t&&i)?l=new g(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let n=this.layout.getVisibleLayoutInfos(l),o=new Map;for(let a of n)o.set(a.key,a);return o}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let n=e.get(i);(!n||l.parent!==this.getParentView(n))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let n=this._visibleViews.get(i);if(!n)n=this.getReusableView(l),n.parent.children.add(n),this._visibleViews.set(i,n),t.delete(n);else{n.layoutInfo=l;let o=this.collection.getItem(l.key);n.content!==o&&(n.content!=null&&this._renderedContent.delete(n.content),this._renderView(n))}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let l=this._visibleViews.get(i);l.parent.children.delete(l),l.parent.children.add(l)}}render(e){let t=this,i=!1,l=!1,n=!1,o=!1,a=!1,h=!1;return e.collection!==this.collection&&(t.collection=e.collection,i=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=!0),e.persistedKeys&&!oe(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,h=!0),this.visibleRect.equals(e.visibleRect)||(this._overscanManager.setVisibleRect(e.visibleRect),this.layout.shouldInvalidate(e.visibleRect,this.visibleRect)?(l=!e.visibleRect.pointEquals(this.visibleRect),n=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(n||(n=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),o||(o=e.invalidationContext.itemSizeChanged||!1),a||(a=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),i||(i=o||n||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:n,itemSizeChanged:o,layoutOptionsChanged:a,layoutOptions:this._invalidationContext.layoutOptions}):h&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new $,this.visibleRect=new g,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new le(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new se}}const ae=typeof document<"u"?c.useLayoutEffect:()=>{};function he(s){let[e,t]=c.useState(new g(0,0,0,0)),[i,l]=c.useState(!1),[n,o]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new re({collection:s.collection,layout:s.layout,delegate:{setVisibleRect(p){t(p),a.current=!0},renderView:s.renderView,invalidate:o}}));ae(()=>{a.current&&(a.current=!1,s.onVisibleRectChange(e))});let r=c.useMemo(()=>s.layoutOptions!=null?{...n,layoutOptions:s.layoutOptions}:n,[n,s.layoutOptions]),d=h.render({layout:s.layout,collection:s.collection,persistedKeys:s.persistedKeys,layoutOptions:s.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,f=c.useCallback(()=>{l(!0)},[]),v=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:f,endScrolling:v}),[h,d,t,u,i,f,v])}const R=48;class de extends te{get collection(){return this.virtualizer.collection}getLayoutInfo(e){var t;return this.ensureLayoutInfo(e),((t=this.layoutNodes.get(e))===null||t===void 0?void 0:t.layoutInfo)||null}getVisibleLayoutInfos(e){if(e.height>1){var t,i;let o=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:R)+this.gap;e.y=Math.floor(e.y/o)*o,e.height=Math.ceil(e.height/o)*o}this.layoutIfNeeded(e);let l=[],n=o=>{for(let a of o)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&n(a.children))};return n(this.rootNodes),l}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return!this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new g(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new g(0,0,this.contentSize.width,this.contentSize.height),!0):!1}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;var i,l,n,o,a;return e.sizeChanged||this.rowHeight!==((i=t==null?void 0:t.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t==null?void 0:t.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((n=t==null?void 0:t.loaderHeight)!==null&&n!==void 0?n:this.loaderHeight)||this.gap!==((o=t==null?void 0:t.gap)!==null&&o!==void 0?o:this.gap)||this.padding!==((a=t==null?void 0:t.padding)!==null&&a!==void 0?a:this.padding)}shouldInvalidateLayoutOptions(e,t){return e.rowHeight!==t.rowHeight||e.estimatedRowHeight!==t.estimatedRowHeight||e.headingHeight!==t.headingHeight||e.estimatedHeadingHeight!==t.estimatedHeadingHeight||e.loaderHeight!==t.loaderHeight||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;var l;this.rowHeight=(l=i==null?void 0:i.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var n;this.estimatedRowHeight=(n=i==null?void 0:i.estimatedRowHeight)!==null&&n!==void 0?n:this.estimatedRowHeight;var o;this.headingHeight=(o=i==null?void 0:i.headingHeight)!==null&&o!==void 0?o:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i==null?void 0:i.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i==null?void 0:i.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i==null?void 0:i.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i==null?void 0:i.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=i==null?void 0:i.padding)!==null&&u!==void 0?u:this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let f of this.lastCollection.getKeys())t.getItem(f)||this.layoutNodes.get(f)&&this.layoutNodes.delete(f);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=[...t],l=i.filter(r=>r.type==="loader"),n=[],o=(t==null?void 0:t.size)===0;o&&(e=0);for(let r of i){var a,h;let d=((h=(a=this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:R)+this.gap;if(r.type==="item"&&e+d<this.requestedRect.y&&!this.isValid(r,e)){e+=d;continue}let u=this.buildChild(r,this.padding,e,null);if(e=u.layoutInfo.rect.maxY+this.gap,n.push(u),r.type==="loader"){let f=l.indexOf(r);l.splice(f,1)}if((r.type==="item"||r.type==="loader")&&e>this.requestedRect.maxY){let f=i.indexOf(r);for(let v of l){let y=i.indexOf(v);e+=(y-f-1)*d;let p=this.buildChild(v,this.padding,e,null);n.push(p),e=p.layoutInfo.rect.maxY,f=y}e+=(i.length-f-1)*d;break}}return e-=this.gap,e+=o?0:this.padding,this.contentSize=new $(this.virtualizer.visibleRect.width,e),n}isValid(e,t){let i=this.layoutNodes.get(e.key);return!this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect.y&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,l){if(this.isValid(e,i))return this.layoutNodes.get(e.key);let n=this.buildNode(e,t,i);return n.layoutInfo.parentKey=l??null,n.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,n),n}buildNode(e,t,i){switch(e.type){case"section":return this.buildSection(e,t,i);case"item":return this.buildItem(e,t,i);case"header":return this.buildSectionHeader(e,t,i);case"loader":return this.buildLoader(e,t,i);case"separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let l=new g(t,i,this.padding,0),n=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var o,a,h;return l.height=e.props.isLoading?(h=(a=(o=this.loaderHeight)!==null&&o!==void 0?o:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:R:0,{layoutInfo:n,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,n=this.virtualizer.visibleRect.width-this.padding,o=new g(t,i,n-t,0),a=new b(e.type,e.key,o),h=i,r=0,d=[];for(let v of V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,f;let y=((f=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&f!==void 0?f:R)+this.gap;if(i+y<this.requestedRect.y&&!this.isValid(e,i)){i+=y,r++;continue}let p=this.buildChild(v,t,i,a.key);if(i=p.layoutInfo.rect.maxY+this.gap,d.push(p),i>this.requestedRect.maxY){i+=([...V.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*y;break}}return i-=this.gap,o.height=i-h,{layoutInfo:a,children:d,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding,n=this.headingHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key),d=r==null?void 0:r.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),f=this.lastCollection?this.lastCollection.getItem(e.key):null;n=d.rect.height,o=l!==d.rect.width||u!==f||d.estimatedSize}else n=e.rendered?this.estimatedHeadingHeight:0,o=!0}n==null&&(n=R);let a=new g(t,i,l-t,n),h=new b("header",e.key,a);return h.estimatedSize=o,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,n=this.rowHeight,o=!1;if(n==null){let r=this.layoutNodes.get(e.key);r?(n=r.layoutInfo.rect.height,o=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(n=this.estimatedRowHeight,o=!0)}n==null&&(n=R);let a=new g(t,i,l,n),h=new b(e.type,e.key,a);return h.estimatedSize=o,{layoutInfo:h,children:[],validRect:h.rect,node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return!1;let l=this.virtualizer.collection,n=i.layoutInfo;if(n.estimatedSize=!1,n.rect.height!==t.height){let o=n.copy();o.rect.height=t.height,i.layoutInfo=o,this.validRect.height=Math.min(this.validRect.height,n.rect.y-this.validRect.y),this.requestedRect.height+=o.rect.height-n.rect.height,this.updateLayoutNode(e,n,o);let a=n.parentKey!=null?l.getItem(n.parentKey):null;for(;a;)this.updateLayoutNode(a.key,n,o),a=a.parentKey!=null?l.getItem(a.parentKey):null;return!0}return!1}updateLayoutNode(e,t,i){let l=this.layoutNodes.get(e);l&&(l.validRect=l.validRect.intersection(this.validRect),l.layoutInfo===t&&(l.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let l=new g(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),n=this.getVisibleLayoutInfos(l),o=null,a=1/0;for(let u of n){if(!u.rect.intersects(l))continue;let f=Math.abs(u.rect.y-t),v=Math.abs(u.rect.maxY-t),y=Math.min(f,v);y<a&&(a=y,o=u.key)}if(o==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(o);if(!h)return null;let r=h.rect,d={type:"item",key:h.key,dropPosition:"on"};return i(d)?t<=r.y+10&&i({...d,dropPosition:"before"})?d.dropPosition="before":t>=r.maxY-10&&i({...d,dropPosition:"after"})&&(d.dropPosition="after"):t<=r.y+r.height/2&&i({...d,dropPosition:"before"})?d.dropPosition="before":i({...d,dropPosition:"after"})&&(d.dropPosition="after"),d}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;if(e.dropPosition==="before")i=new g(t.rect.x,Math.max(0,t.rect.y-this.dropIndicatorThickness/2),t.rect.width,this.dropIndicatorThickness);else if(e.dropPosition==="after"){let n=this.collection.getItem(e.key);if(n){var l;let o=(l=n.level)!==null&&l!==void 0?l:0,a=this.collection.getKeyAfter(e.key);for(;a!=null;){let h=this.collection.getItem(a);if(!h||h.level<=o)break;t=this.getLayoutInfo(a)||t,a=this.collection.getKeyAfter(a)}}i=new g(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness)}else i=t.rect;return new b("dropIndicator",e.key+":"+e.dropPosition,i)}constructor(e={}){super();var t;this.rowHeight=(t=e.rowHeight)!==null&&t!==void 0?t:null;var i;this.estimatedRowHeight=(i=e.estimatedRowHeight)!==null&&i!==void 0?i:null;var l;this.headingHeight=(l=e.headingHeight)!==null&&l!==void 0?l:null;var n;this.estimatedHeadingHeight=(n=e.estimatedHeadingHeight)!==null&&n!==void 0?n:null;var o;this.loaderHeight=(o=e.loaderHeight)!==null&&o!==void 0?o:null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new g,this.requestedRect=new g,this.contentSize=new $}}let S=null;function ce(s=!1){if(S===null||s){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),l=i.style;return l.width="100px",l.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?S="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?S="negative":S="positive-ascending"),document.body.removeChild(e),S}return S}function ue(s,e){let{scrollLeft:t}=s;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=s;switch(ce()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function fe(s,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:n,onScrollEnd:o,scrollDirection:a="both",...h}=s,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,f]=c.useState(!1),v=c.useCallback(w=>{w.target===w.currentTarget&&(s.onScroll&&s.onScroll(w),E.flushSync(()=>{let m=w.currentTarget.scrollTop,z=ue(w.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(z,t.width-r.width)),i(new g(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,f(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),n&&n());let C=Date.now();r.scrollEndTime<=C+50&&(r.scrollEndTime=C+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(()=>{r.isScrolling=!1,f(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),o&&o()},300))}))},[s,d,r,t,i,n,o]);Z.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",v),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let y=c.useRef(!1),p=k.$8ae05eaa5c114e9c$export$7f54fc3180508a52(w=>{let m=e.current;if(!m||y.current)return;y.current=!0;let z=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,C=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),G=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),N=m.clientWidth,T=m.clientHeight,_=z&&!C?1/0:N,L=z&&!G?1/0:T;(r.width!==_||r.height!==L)&&(r.width=_,r.height=L,w(()=>{i(new g(r.scrollLeft,r.scrollTop,_,L))}),(!z&&N!==m.clientWidth||T!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,w(()=>{i(new g(r.scrollLeft,r.scrollTop,r.width,r.height))}))),y.current=!1}),H=c.useRef(null),[j,F]=c.useState({});k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!y.current&&(H.current==null||!t.equals(H.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){F({}),H.current=t;return}else queueMicrotask(()=>p(E.flushSync));H.current=t}),k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{p(w=>w())},[j]);let U=c.useCallback(()=>{p(E.flushSync)},[p]);Q.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:U});let I={padding:0,...h.style};return a==="horizontal"?(I.overflowX="auto",I.overflowY="hidden"):a==="vertical"||t.width===r.width?(I.overflowY="auto",I.overflowX="hidden"):I.overflow="auto",l={width:Number.isFinite(t.width)?t.width:void 0,height:Number.isFinite(t.height)?t.height:void 0,pointerEvents:u?"none":"auto",position:"relative",...l},{isScrolling:u,scrollViewProps:{...h,style:I},contentProps:{role:"presentation",style:l}}}function ge(s){let{layoutInfo:e,virtualizer:t,ref:i}=s,l=e==null?void 0:e.key,n=c.useCallback(()=>{if(l!=null&&i.current){let o=ye(i.current);t.updateItemSize(l,o)}},[t,l,i]);return k.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&n()}),{updateSize:n}}function ye(s){let e=s.style.height;s.style.height="";let t=new $(s.scrollWidth,s.scrollHeight);return s.style.height=e,t}function Y(s){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:n,children:o}=s,{direction:a}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ge({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...ve(i,a,n),...e}},o)}let O=new WeakMap;function ve(s,e,t){let i=e==="rtl"?"right":"left",l=O.get(s);if(l&&l[i]!=null){if(!t)return l;let h=s.rect.y-t.rect.y,r=s.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let n={top:s.rect.y-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.y:0),[i]:s.rect.x-(t&&!(t.allowOverflow&&s.isSticky)?t.rect.x:0),width:s.rect.width,height:s.rect.height};Object.entries(n).forEach(([h,r])=>{Number.isFinite(r)||(n[h]=void 0)});var o;let a={position:s.isSticky?"sticky":"absolute",display:s.isSticky?"inline-block":void 0,overflow:s.allowOverflow?"visible":"hidden",opacity:s.opacity,zIndex:s.zIndex,transform:(o=s.transform)!==null&&o!==void 0?o:void 0,contain:"size layout style",...n};return O.set(s,a),a}const W=c.createContext(null),D=c.createContext(null);function pe(s){let{children:e,layout:t,layoutOptions:i}=s,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),n=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:we,CollectionBranch:me}),[l]);return c.createElement(q.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:n},c.createElement(D.Provider,{value:{layout:l,layoutOptions:i}},e))}function we({collection:s,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:n,layoutOptions:o}=c.useContext(D),a=(l=n.useLayoutOptions)===null||l===void 0?void 0:l.call(n),h=he({layout:n,collection:s,renderView:(d,u)=>{var f;return u==null||(f=u.render)===null||f===void 0?void 0:f.call(u,u)},onVisibleRectChange(d){let u=t==null?void 0:t.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>o&&a?{...o,...a}:o||a,[o,a])}),{contentProps:r}=fe({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(W.Provider,{value:h},X(null,h.visibleViews,i)))}function me({parent:s,renderDropIndicator:e}){let i=c.useContext(W).virtualizer.getVisibleView(s.key);return X(i,Array.from(i.children),e)}function X(s,e,t){return e.map(i=>be(s,i,t))}function be(s,e,t){let i=c.createElement(Y,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:s==null?void 0:s.layoutInfo},e.rendered),{collection:l,layout:n}=e.virtualizer,o=e.content;return(o==null?void 0:o.type)==="item"&&t&&n.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},P(s,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,q.$7135fc7d473fd974$export$2dbbd341daed716d(l,o,a=>P(s,e,a,t)))),i}function P(s,e,t,i){let l=i(t);if(l){let n=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(Y,{layoutInfo:n,virtualizer:e.virtualizer,parent:s==null?void 0:s.layoutInfo},l)}return l}class xe extends de{getContentSize(){var t;const e=(t=this==null?void 0:this.virtualizer)==null?void 0:t.collection.getKeys();return Array.from(e||[]).forEach(i=>{this.getLayoutInfo(i)}),this.contentSize}}const Ie="_listBox_13mbb_4",Re="_listBoxPopover_13mbb_16",Se="_listBoxSectionHeading_13mbb_31",$e="_listBoxButton_13mbb_43",ze="_listBoxItem_13mbb_55",He="_listBoxLoadMoreItem_13mbb_165",A={listBox:Ie,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:$e,listBoxItem:ze,listBoxLoadMoreItem:He},Ce=({className:s,children:e,...t})=>M.jsx(pe,{layout:xe,layoutOptions:{headingHeight:38},children:M.jsx(J.$eed445e0843c11d0$export$41f133550aa26f48,{className:ee.clsx(A.listBox,s),...t,children:e})});exports.ListBox=Ce;exports.styles=A;
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as m, Fragment as d } from "react/jsx-runtime";
2
2
  import { c as e } from "./clsx-jbLnTBqA.js";
3
- import { s as a } from "./ListBoxSection-dksiACMZ.js";
4
- import { $ as c } from "./ListBox-2eEa1l0M.js";
5
- import { S as l } from "./Spinner-CTha503N.js";
3
+ import { s as a } from "./ListBox-LJ3VgZMr.js";
4
+ import { $ as c } from "./ListBox-5GK4ZRj1.js";
5
+ import { S as l } from "./Spinner-D6Fcu_Dp.js";
6
6
  import { u as p } from "./useLocalizedStringFormatter-aOhh7wdl.js";
7
7
  const S = ({ className: o, children: s, ...r }) => /* @__PURE__ */ t(
8
8
  "button",
@@ -0,0 +1 @@
1
+ "use strict";const t=require("react/jsx-runtime"),r=require("./clsx-DKOfLqne.cjs"),n=require("./ListBox-u6ZXp5Yi.cjs"),c=require("./ListBox-FD30iELk.cjs"),l=require("./Spinner-DIapnvIz.cjs"),d=require("./useLocalizedStringFormatter-BSac43NO.cjs"),x=({className:s,children:e,...o})=>t.jsx("button",{type:"button",className:r.clsx(n.styles.listBoxItem,n.styles.listBoxButton,s),...o,children:e}),u={"loading...":"Loading..."},m={"loading...":"Laddar..."},L={en:u,sv:m},B=({className:s,children:e,isLoading:o,...i})=>{const a=d.useLocalizedStringFormatter(L);return t.jsx(c.$eed445e0843c11d0$export$8e6d031a08cf56a1,{className:r.clsx(n.styles.listBoxLoadMoreItem,s),isLoading:o,...i,children:e||t.jsxs(t.Fragment,{children:[t.jsx(l.Spinner,{small:!0}),t.jsx("span",{"aria-hidden":!0,children:a.format("loading...")})]})})};exports.ListBoxButton=x;exports.ListBoxLoadMoreItem=B;
@@ -0,0 +1 @@
1
+ "use strict";const o=require("react/jsx-runtime"),r=require("./ListBox-FD30iELk.cjs"),c=require("./clsx-DKOfLqne.cjs"),i=require("./ListBox-u6ZXp5Yi.cjs"),n=require("./Dialog-DycTLpdr.cjs"),l=require("./Separator-DCi4bnBr.cjs"),d=({children:s,className:e,hideSelectionIndicator:t,...a})=>o.jsx(r.$eed445e0843c11d0$export$a11e76429ed99b4,{className:c.clsx(i.styles.listBoxItem,e),"data-show-selection":!t||void 0,...a,children:s}),B=({className:s,children:e,...t})=>o.jsx(n.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:c.clsx(s,i.styles.listBoxPopover),offset:0,...t,children:e}),x=({className:s,...e})=>o.jsx(l.$72a5793c14baf454$export$8b251419efc915eb,{className:c.clsx(i.styles.listBoxSectionHeading,s),...e}),$=({children:s,name:e,...t})=>o.jsxs(r.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...t,children:[e&&o.jsx(x,{children:e}),s]});exports.ListBoxHeader=x;exports.ListBoxItem=d;exports.ListBoxPopover=B;exports.ListBoxSection=$;
@@ -0,0 +1,51 @@
1
+ import { jsx as t, jsxs as i } from "react/jsx-runtime";
2
+ import { a as m, b } from "./ListBox-5GK4ZRj1.js";
3
+ import { c as a } from "./clsx-jbLnTBqA.js";
4
+ import { s as r } from "./ListBox-LJ3VgZMr.js";
5
+ import { b as x } from "./Dialog-D4Py85wi.js";
6
+ import { $ as f } from "./Separator-CQfDz_zr.js";
7
+ const h = ({
8
+ children: s,
9
+ className: o,
10
+ hideSelectionIndicator: e,
11
+ ...c
12
+ }) => /* @__PURE__ */ t(
13
+ m,
14
+ {
15
+ className: a(r.listBoxItem, o),
16
+ "data-show-selection": !e || void 0,
17
+ ...c,
18
+ children: s
19
+ }
20
+ ), v = ({
21
+ className: s,
22
+ children: o,
23
+ ...e
24
+ }) => /* @__PURE__ */ t(
25
+ x,
26
+ {
27
+ className: a(s, r.listBoxPopover),
28
+ offset: 0,
29
+ ...e,
30
+ children: o
31
+ }
32
+ ), d = ({ className: s, ...o }) => /* @__PURE__ */ t(
33
+ f,
34
+ {
35
+ className: a(r.listBoxSectionHeading, s),
36
+ ...o
37
+ }
38
+ ), N = ({
39
+ children: s,
40
+ name: o,
41
+ ...e
42
+ }) => /* @__PURE__ */ i(b, { ...e, children: [
43
+ o && /* @__PURE__ */ t(d, { children: o }),
44
+ s
45
+ ] });
46
+ export {
47
+ h as L,
48
+ v as a,
49
+ N as b,
50
+ d as c
51
+ };
@@ -0,0 +1 @@
1
+ "use strict";const u=require("./context-UOrD6Zxk.cjs"),c=require("./SelectionManager-CNJmHeCF.cjs"),h=require("./scrollIntoView-BueMOyGp.cjs");let s=new Map;function g(o){let{locale:e}=u.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=e+(o?Object.entries(o).sort((l,n)=>l[0]<n[0]?-1:1).join():"");if(s.has(t))return s.get(t);let i=new Intl.Collator(e,o);return s.set(t,i),i}class a{getItemRect(e){let t=this.ref.current;if(!t)return null;let i=e!=null?c.$feb5ffebff200149$export$c3d8340acf92597f(this.ref,e):null;if(!i)return null;let l=t.getBoundingClientRect(),n=i.getBoundingClientRect();return{x:n.left-l.left-t.clientLeft+t.scrollLeft,y:n.top-l.top-t.clientTop+t.scrollTop,width:n.width,height:n.height}}getContentSize(){let e=this.ref.current;var t,i;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(i=e==null?void 0:e.scrollHeight)!==null&&i!==void 0?i:0}}getVisibleRect(){let e=this.ref.current;var t,i,l,n;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(i=e==null?void 0:e.scrollTop)!==null&&i!==void 0?i:0,width:(l=e==null?void 0:e.clientWidth)!==null&&l!==void 0?l:0,height:(n=e==null?void 0:e.clientHeight)!==null&&n!==void 0?n:0}}constructor(e){this.ref=e}}class d{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let i=e;for(;i!=null;){let l=this.collection.getItem(i);if((l==null?void 0:l.type)==="item"&&!this.isDisabled(l))return i;i=t(i)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,i=>this.collection.getKeyAfter(i))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,i=>this.collection.getKeyBefore(i))}findKey(e,t,i){let l=e,n=this.layoutDelegate.getItemRect(l);if(!n||l==null)return null;let r=n;do{if(l=t(l),l==null)break;n=this.layoutDelegate.getItemRect(l)}while(n&&i(r,n)&&l!=null);return l}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[t](i))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,i=>this.getNextColumn(i,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[t](i))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,i=>this.getNextColumn(i,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!h.$cc38e7bd3fc7b213$export$2bb74740c4e19def(t))return this.getFirstKey();let l=e;if(this.orientation==="horizontal"){let n=Math.max(0,i.x+i.width-this.layoutDelegate.getVisibleRect().width);for(;i&&i.x>n&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let n=Math.max(0,i.y+i.height-this.layoutDelegate.getVisibleRect().height);for(;i&&i.y>n&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!h.$cc38e7bd3fc7b213$export$2bb74740c4e19def(t))return this.getLastKey();let l=e;if(this.orientation==="horizontal"){let n=Math.min(this.layoutDelegate.getContentSize().width,i.y-i.width+this.layoutDelegate.getVisibleRect().width);for(;i&&i.x<n&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let n=Math.min(this.layoutDelegate.getContentSize().height,i.y-i.height+this.layoutDelegate.getVisibleRect().height);for(;i&&i.y<n&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let i=this.collection,l=t||this.getFirstKey();for(;l!=null;){let n=i.getItem(l);if(!n)return null;let r=n.textValue.slice(0,e.length);if(n.textValue&&this.collator.compare(r,e)===0)return l;l=this.getNextKey(l)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new a(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new a(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}exports.$2a25aae57d74318e$export$a05409b8bb224a5a=d;exports.$325a3faab7a68acd$export$a16aca283550c30d=g;exports.$657e4dc4a6e88df0$export$8f5ed9ff9f511381=a;
@@ -1,27 +1,25 @@
1
- import { createContext as u } from "react";
2
- import { $ as c } from "./context-Dl_saGB6.js";
3
- import { c as g } from "./SelectionManager-D-4ThfPZ.js";
4
- import { $ as a } from "./scrollIntoView-ClEACHUk.js";
5
- const m = /* @__PURE__ */ u(null), b = /* @__PURE__ */ u(null);
1
+ import { $ as u } from "./context-Dl_saGB6.js";
2
+ import { c } from "./SelectionManager-DoNLJm8c.js";
3
+ import { $ as a } from "./scrollIntoView-BVI21Y4-.js";
6
4
  let s = /* @__PURE__ */ new Map();
7
- function x(n) {
8
- let { locale: t } = c(), e = t + (n ? Object.entries(n).sort((l, o) => l[0] < o[0] ? -1 : 1).join() : "");
5
+ function y(o) {
6
+ let { locale: t } = u(), e = t + (o ? Object.entries(o).sort((l, n) => l[0] < n[0] ? -1 : 1).join() : "");
9
7
  if (s.has(e)) return s.get(e);
10
- let i = new Intl.Collator(t, n);
8
+ let i = new Intl.Collator(t, o);
11
9
  return s.set(e, i), i;
12
10
  }
13
11
  class h {
14
12
  getItemRect(t) {
15
13
  let e = this.ref.current;
16
14
  if (!e) return null;
17
- let i = t != null ? g(this.ref, t) : null;
15
+ let i = t != null ? c(this.ref, t) : null;
18
16
  if (!i) return null;
19
- let l = e.getBoundingClientRect(), o = i.getBoundingClientRect();
17
+ let l = e.getBoundingClientRect(), n = i.getBoundingClientRect();
20
18
  return {
21
- x: o.left - l.left + e.scrollLeft,
22
- y: o.top - l.top + e.scrollTop,
23
- width: o.width,
24
- height: o.height
19
+ x: n.left - l.left - e.clientLeft + e.scrollLeft,
20
+ y: n.top - l.top - e.clientTop + e.scrollTop,
21
+ width: n.width,
22
+ height: n.height
25
23
  };
26
24
  }
27
25
  getContentSize() {
@@ -34,19 +32,19 @@ class h {
34
32
  }
35
33
  getVisibleRect() {
36
34
  let t = this.ref.current;
37
- var e, i, l, o;
35
+ var e, i, l, n;
38
36
  return {
39
37
  x: (e = t == null ? void 0 : t.scrollLeft) !== null && e !== void 0 ? e : 0,
40
38
  y: (i = t == null ? void 0 : t.scrollTop) !== null && i !== void 0 ? i : 0,
41
- width: (l = t == null ? void 0 : t.offsetWidth) !== null && l !== void 0 ? l : 0,
42
- height: (o = t == null ? void 0 : t.offsetHeight) !== null && o !== void 0 ? o : 0
39
+ width: (l = t == null ? void 0 : t.clientWidth) !== null && l !== void 0 ? l : 0,
40
+ height: (n = t == null ? void 0 : t.clientHeight) !== null && n !== void 0 ? n : 0
43
41
  };
44
42
  }
45
43
  constructor(t) {
46
44
  this.ref = t;
47
45
  }
48
46
  }
49
- class v {
47
+ class K {
50
48
  isDisabled(t) {
51
49
  var e;
52
50
  return this.disabledBehavior === "all" && (((e = t.props) === null || e === void 0 ? void 0 : e.isDisabled) || this.disabledKeys.has(t.key));
@@ -69,13 +67,13 @@ class v {
69
67
  return e = this.collection.getKeyBefore(e), this.findNextNonDisabled(e, (i) => this.collection.getKeyBefore(i));
70
68
  }
71
69
  findKey(t, e, i) {
72
- let l = t, o = this.layoutDelegate.getItemRect(l);
73
- if (!o || l == null) return null;
74
- let r = o;
70
+ let l = t, n = this.layoutDelegate.getItemRect(l);
71
+ if (!n || l == null) return null;
72
+ let r = n;
75
73
  do {
76
74
  if (l = e(l), l == null) break;
77
- o = this.layoutDelegate.getItemRect(l);
78
- } while (o && i(r, o) && l != null);
75
+ n = this.layoutDelegate.getItemRect(l);
76
+ } while (n && i(r, n) && l != null);
79
77
  return l;
80
78
  }
81
79
  isSameRow(t, e) {
@@ -115,12 +113,12 @@ class v {
115
113
  if (e && !a(e)) return this.getFirstKey();
116
114
  let l = t;
117
115
  if (this.orientation === "horizontal") {
118
- let o = Math.max(0, i.x + i.width - this.layoutDelegate.getVisibleRect().width);
119
- for (; i && i.x > o && l != null; )
116
+ let n = Math.max(0, i.x + i.width - this.layoutDelegate.getVisibleRect().width);
117
+ for (; i && i.x > n && l != null; )
120
118
  l = this.getKeyAbove(l), i = l == null ? null : this.layoutDelegate.getItemRect(l);
121
119
  } else {
122
- let o = Math.max(0, i.y + i.height - this.layoutDelegate.getVisibleRect().height);
123
- for (; i && i.y > o && l != null; )
120
+ let n = Math.max(0, i.y + i.height - this.layoutDelegate.getVisibleRect().height);
121
+ for (; i && i.y > n && l != null; )
124
122
  l = this.getKeyAbove(l), i = l == null ? null : this.layoutDelegate.getItemRect(l);
125
123
  }
126
124
  return l ?? this.getFirstKey();
@@ -131,12 +129,12 @@ class v {
131
129
  if (e && !a(e)) return this.getLastKey();
132
130
  let l = t;
133
131
  if (this.orientation === "horizontal") {
134
- let o = Math.min(this.layoutDelegate.getContentSize().width, i.y - i.width + this.layoutDelegate.getVisibleRect().width);
135
- for (; i && i.x < o && l != null; )
132
+ let n = Math.min(this.layoutDelegate.getContentSize().width, i.y - i.width + this.layoutDelegate.getVisibleRect().width);
133
+ for (; i && i.x < n && l != null; )
136
134
  l = this.getKeyBelow(l), i = l == null ? null : this.layoutDelegate.getItemRect(l);
137
135
  } else {
138
- let o = Math.min(this.layoutDelegate.getContentSize().height, i.y - i.height + this.layoutDelegate.getVisibleRect().height);
139
- for (; i && i.y < o && l != null; )
136
+ let n = Math.min(this.layoutDelegate.getContentSize().height, i.y - i.height + this.layoutDelegate.getVisibleRect().height);
137
+ for (; i && i.y < n && l != null; )
140
138
  l = this.getKeyBelow(l), i = l == null ? null : this.layoutDelegate.getItemRect(l);
141
139
  }
142
140
  return l ?? this.getLastKey();
@@ -145,10 +143,10 @@ class v {
145
143
  if (!this.collator) return null;
146
144
  let i = this.collection, l = e || this.getFirstKey();
147
145
  for (; l != null; ) {
148
- let o = i.getItem(l);
149
- if (!o) return null;
150
- let r = o.textValue.slice(0, t.length);
151
- if (o.textValue && this.collator.compare(r, t) === 0) return l;
146
+ let n = i.getItem(l);
147
+ if (!n) return null;
148
+ let r = n.textValue.slice(0, t.length);
149
+ if (n.textValue && this.collator.compare(r, t) === 0) return l;
152
150
  l = this.getNextKey(l);
153
151
  }
154
152
  return null;
@@ -163,9 +161,7 @@ class v {
163
161
  }
164
162
  }
165
163
  export {
166
- x as $,
167
- b as a,
168
- m as b,
169
- v as c,
170
- h as d
164
+ y as $,
165
+ K as a,
166
+ h as b
171
167
  };
@@ -1,11 +1,11 @@
1
1
  import { $ as Z } from "./mergeProps-Ct8m5-xW.js";
2
2
  import { flushSync as ge } from "react-dom";
3
3
  import $e, { useEffect as Q, useState as D, useCallback as Y, useRef as te, useContext as he, createContext as se, forwardRef as be } from "react";
4
- import { i as xe } from "./useHover-zCCNtF6g.js";
4
+ import { i as xe } from "./useHover-DkC5FyNd.js";
5
5
  import { $ as J } from "./number-BE8InLgI.js";
6
6
  import { $ as we } from "./context-Dl_saGB6.js";
7
7
  import { $ as Ee } from "./useControlledState-u436Wbp1.js";
8
- import { $ as Pe, a as Ce } from "./utils-BMBoiyL7.js";
8
+ import { $ as Pe, a as Ce } from "./utils-D2iKpxcZ.js";
9
9
  import { $ as Le } from "./filterDOMProps-wsa9OcNI.js";
10
10
  function Re() {
11
11
  return typeof window.ResizeObserver < "u";
@@ -1 +1 @@
1
- "use strict";const X=require("./mergeProps-Du5A8xi8.cjs"),me=require("react-dom"),w=require("react"),ve=require("./useHover-eU40luVI.cjs"),J=require("./number-E0x3H9cL.cjs"),ge=require("./context-UOrD6Zxk.cjs"),be=require("./useControlledState-D0L6S_5r.cjs"),ee=require("./utils-cBvgilDa.cjs"),he=require("./filterDOMProps-RRlKPKX0.cjs");function xe(){return typeof window.ResizeObserver<"u"}function K(t){const{ref:e,box:l,onResize:r}=t;w.useEffect(()=>{let o=e==null?void 0:e.current;if(o)if(xe()){const n=new window.ResizeObserver(c=>{c.length&&r()});return n.observe(o,{box:l}),()=>{o&&n.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,l])}function we(t,e=!0){let[l,r]=w.useState(!0),o=l&&e;return X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let n of t.current.getAnimations())n instanceof CSSTransition&&n.cancel()},[t,o]),ae(t,o,w.useCallback(()=>r(!1),[])),o}function Ee(t,e){let[l,r]=w.useState(e?"open":"closed");switch(l){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let o=l==="exiting";return ae(t,o,w.useCallback(()=>{r(n=>n==="exiting"?"closed":n)},[])),o}function ae(t,e,l){X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){l();return}let r=t.current.getAnimations();if(r.length===0){l();return}let o=!1;return Promise.all(r.map(n=>n.finished)).then(()=>{o||me.flushSync(()=>{l()})}).catch(()=>{}),()=>{o=!0}}},[t,e,l])}const M={top:"top",bottom:"top",left:"left",right:"left"},j={top:"bottom",bottom:"top",left:"right",right:"left"},Pe={top:"left",left:"top"},Q={top:"height",left:"width"},ce={width:"totalWidth",height:"totalHeight"},Z={};let C=typeof document<"u"?window.visualViewport:null;function te(t){let e=0,l=0,r=0,o=0,n=0,c=0,i={};var b;let d=((b=C==null?void 0:C.scale)!==null&&b!==void 0?b:1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,o=u.clientHeight;var p;e=(p=C==null?void 0:C.width)!==null&&p!==void 0?p:r;var m;l=(m=C==null?void 0:C.height)!==null&&m!==void 0?m:o,i.top=u.scrollTop||t.scrollTop,i.left=u.scrollLeft||t.scrollLeft,C&&(n=C.offsetTop,c=C.offsetLeft)}else({width:e,height:l,top:n,left:c}=Y(t,!1)),i.top=t.scrollTop,i.left=t.scrollLeft,r=e,o=l;if(ve.$c87311424ea30a05$export$78551043582a6a98()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d){i.top=0,i.left=0;var $;n=($=C==null?void 0:C.pageTop)!==null&&$!==void 0?$:0;var s;c=(s=C==null?void 0:C.pageLeft)!==null&&s!==void 0?s:0}return{width:e,height:l,totalWidth:r,totalHeight:o,scroll:i,top:n,left:c}}function Ce(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function oe(t,e,l,r,o,n,c){var i;let b=(i=o.scroll[t])!==null&&i!==void 0?i:0,d=r[Q[t]],p=r.scroll[M[t]]+n,m=d+r.scroll[M[t]]-n,$=e-b+c[t]-r[M[t]],s=e-b+l+c[t]-r[M[t]];return $<p?p-$:s>m?Math.max(m-s,p-$):0}function Le(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 le(t){if(Z[t])return Z[t];let[e,l]=t.split(" "),r=M[e]||"right",o=Pe[r];M[l]||(l="center");let n=Q[r],c=Q[o];return Z[t]={placement:e,crossPlacement:l,axis:r,crossAxis:o,size:n,crossSize:c},Z[t]}function W(t,e,l,r,o,n,c,i,b,d){let{placement:p,crossPlacement:m,axis:$,crossAxis:s,size:u,crossSize:v}=r,f={};var R;f[s]=(R=t[s])!==null&&R!==void 0?R:0;var a,E,x,S;m==="center"?f[s]+=(((a=t[v])!==null&&a!==void 0?a:0)-((E=l[v])!==null&&E!==void 0?E:0))/2:m!==s&&(f[s]+=((x=t[v])!==null&&x!==void 0?x:0)-((S=l[v])!==null&&S!==void 0?S:0)),f[s]+=n;const g=t[s]-l[v]+b+d,T=t[s]+t[v]-b-d;if(f[s]=J.$9446cca9a3875146$export$7d15b64cf5a3a4c4(f[s],g,T),p===$){const k=i?c[u]:e[ce[u]];f[j[$]]=Math.floor(k-t[$]+o)}else f[$]=Math.floor(t[$]+t[u]+o);return f}function Re(t,e,l,r,o,n,c,i){const b=r?l.height:e[ce.height];var d;let p=t.top!=null?l.top+t.top:l.top+(b-((d=t.bottom)!==null&&d!==void 0?d:0)-c);var m,$,s,u,v,f;let R=i!=="top"?Math.max(0,e.height+e.top+((m=e.scroll.top)!==null&&m!==void 0?m:0)-p-((($=o.top)!==null&&$!==void 0?$:0)+((s=o.bottom)!==null&&s!==void 0?s:0)+n)):Math.max(0,p+c-(e.top+((u=e.scroll.top)!==null&&u!==void 0?u:0))-(((v=o.top)!==null&&v!==void 0?v:0)+((f=o.bottom)!==null&&f!==void 0?f:0)+n));return Math.min(e.height-n*2,R)}function re(t,e,l,r,o,n){let{placement:c,axis:i,size:b}=n;var d,p;if(c===i)return Math.max(0,l[i]-t[i]-((d=t.scroll[i])!==null&&d!==void 0?d:0)+e[i]-((p=r[i])!==null&&p!==void 0?p:0)-r[j[i]]-o);var m;return Math.max(0,t[b]+t[i]+t.scroll[i]-e[i]-l[i]-l[b]-((m=r[i])!==null&&m!==void 0?m:0)-r[j[i]]-o)}function Se(t,e,l,r,o,n,c,i,b,d,p,m,$,s,u,v){let f=le(t),{size:R,crossAxis:a,crossSize:E,placement:x,crossPlacement:S}=f,g=W(e,i,l,f,p,m,d,$,u,v),T=p,k=re(i,d,e,o,n+p,f);if(c&&r[R]>k){let G=le(`${j[x]} ${S}`),$e=W(e,i,l,G,p,m,d,$,u,v);re(i,d,e,o,n+p,G)>k&&(f=G,g=$e,T=p)}let _="bottom";f.axis==="top"?f.placement==="top"?_="top":f.placement==="bottom"&&(_="bottom"):f.crossAxis==="top"&&(f.crossPlacement==="top"?_="bottom":f.crossPlacement==="bottom"&&(_="top"));let y=oe(a,g[a],l[E],i,b,n,d);g[a]+=y;let z=Re(g,i,d,$,o,n,l.height,_);s&&s<z&&(z=s),l.height=Math.min(l.height,z),g=W(e,i,l,f,T,m,d,$,u,v),y=oe(a,g[a],l[E],i,b,n,d),g[a]+=y;let P={},L=e[a]-g[a]-o[M[a]],O=L+.5*e[E];const B=u/2+v;var A,N,F,I;const H=M[a]==="left"?((A=o.left)!==null&&A!==void 0?A:0)+((N=o.right)!==null&&N!==void 0?N:0):((F=o.top)!==null&&F!==void 0?F:0)+((I=o.bottom)!==null&&I!==void 0?I:0),q=l[E]-H-u/2-v,U=e[a]+u/2-(g[a]+o[M[a]]),de=e[a]+e[E]-u/2-(g[a]+o[M[a]]),ue=J.$9446cca9a3875146$export$7d15b64cf5a3a4c4(O,U,de);P[a]=J.$9446cca9a3875146$export$7d15b64cf5a3a4c4(ue,B,q),{placement:x,crossPlacement:S}=f,u?L=P[a]:S==="right"?L+=e[E]:S==="center"&&(L+=e[E]/2);let V=x==="left"||x==="top"?l[R]:0,pe={x:x==="top"||x==="bottom"?L:V,y:x==="left"||x==="right"?L:V};return{position:g,maxHeight:z,arrowOffsetLeft:P.left,arrowOffsetTop:P.top,placement:x,triggerAnchorPoint:pe}}function Te(t){let{placement:e,targetNode:l,overlayNode:r,scrollNode:o,padding:n,shouldFlip:c,boundaryElement:i,offset:b,crossOffset:d,maxHeight:p,arrowSize:m=0,arrowBoundaryOffset:$=0}=t,s=r instanceof HTMLElement?Ae(r):document.documentElement,u=s===document.documentElement;const v=window.getComputedStyle(s).position;let f=!!v&&v!=="static",R=u?Y(l,!1):ne(l,s,!1);if(!u){let{marginTop:P,marginLeft:L}=window.getComputedStyle(l);R.top+=parseInt(P,10)||0,R.left+=parseInt(L,10)||0}let a=Y(r,!0),E=Le(r);var x,S;a.width+=((x=E.left)!==null&&x!==void 0?x:0)+((S=E.right)!==null&&S!==void 0?S:0);var g,T;a.height+=((g=E.top)!==null&&g!==void 0?g:0)+((T=E.bottom)!==null&&T!==void 0?T:0);let k=Ce(o),_=te(i),y=te(s),z=i.tagName==="BODY"?Y(s,!1):ne(s,i,!1);return s.tagName==="HTML"&&i.tagName==="BODY"&&(y.scroll.top=0,y.scroll.left=0),Se(e,R,a,k,E,n,c,_,y,z,b,d,f,p,m,$)}function D(t,e){let{top:l,left:r,width:o,height:n}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(o=t.offsetWidth,n=t.offsetHeight),{top:l,left:r,width:o,height:n}}function Y(t,e){let{top:l,left:r,width:o,height:n}=D(t,e),{scrollTop:c,scrollLeft:i,clientTop:b,clientLeft:d}=document.documentElement;return{top:l+c-b,left:r+i-d,width:o,height:n}}function ne(t,e,l){let r=window.getComputedStyle(t),o;if(r.position==="fixed")o=D(t,l);else{o=Y(t,l);let n=Y(e,l),c=window.getComputedStyle(e);n.top+=(parseInt(c.borderTopWidth,10)||0)-e.scrollTop,n.left+=(parseInt(c.borderLeftWidth,10)||0)-e.scrollLeft,o.top-=n.top,o.left-=n.left}return o.top-=parseInt(r.marginTop,10)||0,o.left-=parseInt(r.marginLeft,10)||0,o}function Ae(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!ie(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!ie(e);)e=e.parentElement;return e||document.documentElement}function ie(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 se=new WeakMap;function He(t){let{triggerRef:e,isOpen:l,onClose:r}=t;w.useEffect(()=>{if(!l||r===null)return;let o=n=>{let c=n.target;if(!e.current||c instanceof Node&&!c.contains(e.current)||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement)return;let i=r||se.get(e.current);i&&i()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[l,r,e])}let h=typeof document<"u"?window.visualViewport:null;function _e(t){let{direction:e}=ge.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{arrowSize:l,targetRef:r,overlayRef:o,arrowRef:n,scrollRef:c=o,placement:i="bottom",containerPadding:b=12,shouldFlip:d=!0,boundaryElement:p=typeof document<"u"?document.body:null,offset:m=0,crossOffset:$=0,shouldUpdatePosition:s=!0,isOpen:u=!0,onClose:v,maxHeight:f,arrowBoundaryOffset:R=0}=t,[a,E]=w.useState(null),x=[s,i,o.current,r.current,n==null?void 0:n.current,c.current,b,d,p,m,$,u,e,f,R,l],S=w.useRef(h==null?void 0:h.scale);w.useEffect(()=>{u&&(S.current=h==null?void 0:h.scale)},[u]);let g=w.useCallback(()=>{if(s===!1||!u||!o.current||!r.current||!p||(h==null?void 0:h.scale)!==S.current)return;let P=null;if(c.current&&c.current.contains(document.activeElement)){var L;let H=(L=document.activeElement)===null||L===void 0?void 0:L.getBoundingClientRect(),q=c.current.getBoundingClientRect();var O;if(P={type:"top",offset:((O=H==null?void 0:H.top)!==null&&O!==void 0?O:0)-q.top},P.offset>q.height/2){P.type="bottom";var B;P.offset=((B=H==null?void 0:H.bottom)!==null&&B!==void 0?B:0)-q.bottom}}let A=o.current;if(!f&&o.current){var N;A.style.top="0px",A.style.bottom="";var F;A.style.maxHeight=((F=(N=window.visualViewport)===null||N===void 0?void 0:N.height)!==null&&F!==void 0?F:window.innerHeight)+"px"}let I=Te({placement:ze(i,e),overlayNode:o.current,targetNode:r.current,scrollNode:c.current||o.current,padding:b,shouldFlip:d,boundaryElement:p,offset:m,crossOffset:$,maxHeight:f,arrowSize:l??(n!=null&&n.current?D(n.current,!0).width:0),arrowBoundaryOffset:R});if(I.position){if(A.style.top="",A.style.bottom="",A.style.left="",A.style.right="",Object.keys(I.position).forEach(H=>A.style[H]=I.position[H]+"px"),A.style.maxHeight=I.maxHeight!=null?I.maxHeight+"px":"",P&&document.activeElement&&c.current){let H=document.activeElement.getBoundingClientRect(),q=c.current.getBoundingClientRect(),U=H[P.type]-q[P.type];c.current.scrollTop+=U-P.offset}E(I)}},x);X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(g,x),ye(g),K({ref:o,onResize:g}),K({ref:r,onResize:g});let T=w.useRef(!1);X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let P,L=()=>{T.current=!0,clearTimeout(P),P=setTimeout(()=>{T.current=!1},500),g()},O=()=>{T.current&&L()};return h==null||h.addEventListener("resize",L),h==null||h.addEventListener("scroll",O),()=>{h==null||h.removeEventListener("resize",L),h==null||h.removeEventListener("scroll",O)}},[g]);let k=w.useCallback(()=>{T.current||v==null||v()},[v,T]);He({triggerRef:r,isOpen:u,onClose:v&&k});var _,y,z;return{overlayProps:{style:{position:a?"absolute":"fixed",top:a?void 0:0,left:a?void 0:0,zIndex:1e5,...a==null?void 0:a.position,maxHeight:(_=a==null?void 0:a.maxHeight)!==null&&_!==void 0?_:"100vh"}},placement:(y=a==null?void 0:a.placement)!==null&&y!==void 0?y:null,triggerAnchorPoint:(z=a==null?void 0:a.triggerAnchorPoint)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:a==null?void 0:a.arrowOffsetLeft,top:a==null?void 0:a.arrowOffsetTop}},updatePosition:g}}function ye(t){X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function ze(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Ie=w.createContext({});function Me(){var t;return(t=w.useContext(Ie))!==null&&t!==void 0?t:{}}function ke(t){let[e,l]=be.$458b0a5536c1a7cf$export$40bfa8c7b0832715(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=w.useCallback(()=>{l(!0)},[l]),o=w.useCallback(()=>{l(!1)},[l]),n=w.useCallback(()=>{l(!e)},[l,e]);return{isOpen:e,setOpen:l,open:r,close:o,toggle:n}}const fe=w.createContext({placement:"bottom"}),Oe=w.forwardRef(function(e,l){[e,l]=ee.$64fa3d84918910a7$export$29f1550f4b0d4415(e,l,fe);let r=e.placement,o={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(o[r]="100%");let n=ee.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});n.style&&Object.keys(n.style).forEach(i=>n.style[i]===void 0&&delete n.style[i]);let c=he.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);return w.createElement("div",{...c,...n,style:{...o,...n.style},ref:l,"data-placement":r})});exports.$2a41e45df1593e64$export$d39e1813b3bdd0e1=_e;exports.$44f671af83e7d9e0$export$2de4954e8ae13b9f=fe;exports.$44f671af83e7d9e0$export$746d02f47f4d381=Oe;exports.$96b38030c423d352$export$9fc1347d4195ccb3=Me;exports.$9daab02d461809db$export$683480f191c0e3ea=K;exports.$d3f049242431219c$export$45fda7c47f93fd48=Ee;exports.$d3f049242431219c$export$6d3443f2c48bfc20=we;exports.$dd149f63282afbbf$export$f6211563215e3b37=se;exports.$fc909762b330b746$export$61c6a8c84e605fb6=ke;
1
+ "use strict";const X=require("./mergeProps-Du5A8xi8.cjs"),me=require("react-dom"),w=require("react"),ve=require("./useHover-DULSfLuK.cjs"),J=require("./number-E0x3H9cL.cjs"),ge=require("./context-UOrD6Zxk.cjs"),be=require("./useControlledState-D0L6S_5r.cjs"),ee=require("./utils-CtICjCYt.cjs"),he=require("./filterDOMProps-RRlKPKX0.cjs");function xe(){return typeof window.ResizeObserver<"u"}function K(t){const{ref:e,box:l,onResize:r}=t;w.useEffect(()=>{let o=e==null?void 0:e.current;if(o)if(xe()){const n=new window.ResizeObserver(c=>{c.length&&r()});return n.observe(o,{box:l}),()=>{o&&n.unobserve(o)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,l])}function we(t,e=!0){let[l,r]=w.useState(!0),o=l&&e;return X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let n of t.current.getAnimations())n instanceof CSSTransition&&n.cancel()},[t,o]),ae(t,o,w.useCallback(()=>r(!1),[])),o}function Ee(t,e){let[l,r]=w.useState(e?"open":"closed");switch(l){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let o=l==="exiting";return ae(t,o,w.useCallback(()=>{r(n=>n==="exiting"?"closed":n)},[])),o}function ae(t,e,l){X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){l();return}let r=t.current.getAnimations();if(r.length===0){l();return}let o=!1;return Promise.all(r.map(n=>n.finished)).then(()=>{o||me.flushSync(()=>{l()})}).catch(()=>{}),()=>{o=!0}}},[t,e,l])}const M={top:"top",bottom:"top",left:"left",right:"left"},j={top:"bottom",bottom:"top",left:"right",right:"left"},Pe={top:"left",left:"top"},Q={top:"height",left:"width"},ce={width:"totalWidth",height:"totalHeight"},Z={};let C=typeof document<"u"?window.visualViewport:null;function te(t){let e=0,l=0,r=0,o=0,n=0,c=0,i={};var b;let d=((b=C==null?void 0:C.scale)!==null&&b!==void 0?b:1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,o=u.clientHeight;var p;e=(p=C==null?void 0:C.width)!==null&&p!==void 0?p:r;var m;l=(m=C==null?void 0:C.height)!==null&&m!==void 0?m:o,i.top=u.scrollTop||t.scrollTop,i.left=u.scrollLeft||t.scrollLeft,C&&(n=C.offsetTop,c=C.offsetLeft)}else({width:e,height:l,top:n,left:c}=Y(t,!1)),i.top=t.scrollTop,i.left=t.scrollLeft,r=e,o=l;if(ve.$c87311424ea30a05$export$78551043582a6a98()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d){i.top=0,i.left=0;var $;n=($=C==null?void 0:C.pageTop)!==null&&$!==void 0?$:0;var s;c=(s=C==null?void 0:C.pageLeft)!==null&&s!==void 0?s:0}return{width:e,height:l,totalWidth:r,totalHeight:o,scroll:i,top:n,left:c}}function Ce(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function oe(t,e,l,r,o,n,c){var i;let b=(i=o.scroll[t])!==null&&i!==void 0?i:0,d=r[Q[t]],p=r.scroll[M[t]]+n,m=d+r.scroll[M[t]]-n,$=e-b+c[t]-r[M[t]],s=e-b+l+c[t]-r[M[t]];return $<p?p-$:s>m?Math.max(m-s,p-$):0}function Le(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 le(t){if(Z[t])return Z[t];let[e,l]=t.split(" "),r=M[e]||"right",o=Pe[r];M[l]||(l="center");let n=Q[r],c=Q[o];return Z[t]={placement:e,crossPlacement:l,axis:r,crossAxis:o,size:n,crossSize:c},Z[t]}function W(t,e,l,r,o,n,c,i,b,d){let{placement:p,crossPlacement:m,axis:$,crossAxis:s,size:u,crossSize:v}=r,f={};var R;f[s]=(R=t[s])!==null&&R!==void 0?R:0;var a,E,x,S;m==="center"?f[s]+=(((a=t[v])!==null&&a!==void 0?a:0)-((E=l[v])!==null&&E!==void 0?E:0))/2:m!==s&&(f[s]+=((x=t[v])!==null&&x!==void 0?x:0)-((S=l[v])!==null&&S!==void 0?S:0)),f[s]+=n;const g=t[s]-l[v]+b+d,T=t[s]+t[v]-b-d;if(f[s]=J.$9446cca9a3875146$export$7d15b64cf5a3a4c4(f[s],g,T),p===$){const k=i?c[u]:e[ce[u]];f[j[$]]=Math.floor(k-t[$]+o)}else f[$]=Math.floor(t[$]+t[u]+o);return f}function Re(t,e,l,r,o,n,c,i){const b=r?l.height:e[ce.height];var d;let p=t.top!=null?l.top+t.top:l.top+(b-((d=t.bottom)!==null&&d!==void 0?d:0)-c);var m,$,s,u,v,f;let R=i!=="top"?Math.max(0,e.height+e.top+((m=e.scroll.top)!==null&&m!==void 0?m:0)-p-((($=o.top)!==null&&$!==void 0?$:0)+((s=o.bottom)!==null&&s!==void 0?s:0)+n)):Math.max(0,p+c-(e.top+((u=e.scroll.top)!==null&&u!==void 0?u:0))-(((v=o.top)!==null&&v!==void 0?v:0)+((f=o.bottom)!==null&&f!==void 0?f:0)+n));return Math.min(e.height-n*2,R)}function re(t,e,l,r,o,n){let{placement:c,axis:i,size:b}=n;var d,p;if(c===i)return Math.max(0,l[i]-t[i]-((d=t.scroll[i])!==null&&d!==void 0?d:0)+e[i]-((p=r[i])!==null&&p!==void 0?p:0)-r[j[i]]-o);var m;return Math.max(0,t[b]+t[i]+t.scroll[i]-e[i]-l[i]-l[b]-((m=r[i])!==null&&m!==void 0?m:0)-r[j[i]]-o)}function Se(t,e,l,r,o,n,c,i,b,d,p,m,$,s,u,v){let f=le(t),{size:R,crossAxis:a,crossSize:E,placement:x,crossPlacement:S}=f,g=W(e,i,l,f,p,m,d,$,u,v),T=p,k=re(i,d,e,o,n+p,f);if(c&&r[R]>k){let G=le(`${j[x]} ${S}`),$e=W(e,i,l,G,p,m,d,$,u,v);re(i,d,e,o,n+p,G)>k&&(f=G,g=$e,T=p)}let _="bottom";f.axis==="top"?f.placement==="top"?_="top":f.placement==="bottom"&&(_="bottom"):f.crossAxis==="top"&&(f.crossPlacement==="top"?_="bottom":f.crossPlacement==="bottom"&&(_="top"));let y=oe(a,g[a],l[E],i,b,n,d);g[a]+=y;let z=Re(g,i,d,$,o,n,l.height,_);s&&s<z&&(z=s),l.height=Math.min(l.height,z),g=W(e,i,l,f,T,m,d,$,u,v),y=oe(a,g[a],l[E],i,b,n,d),g[a]+=y;let P={},L=e[a]-g[a]-o[M[a]],O=L+.5*e[E];const B=u/2+v;var A,N,F,I;const H=M[a]==="left"?((A=o.left)!==null&&A!==void 0?A:0)+((N=o.right)!==null&&N!==void 0?N:0):((F=o.top)!==null&&F!==void 0?F:0)+((I=o.bottom)!==null&&I!==void 0?I:0),q=l[E]-H-u/2-v,U=e[a]+u/2-(g[a]+o[M[a]]),de=e[a]+e[E]-u/2-(g[a]+o[M[a]]),ue=J.$9446cca9a3875146$export$7d15b64cf5a3a4c4(O,U,de);P[a]=J.$9446cca9a3875146$export$7d15b64cf5a3a4c4(ue,B,q),{placement:x,crossPlacement:S}=f,u?L=P[a]:S==="right"?L+=e[E]:S==="center"&&(L+=e[E]/2);let V=x==="left"||x==="top"?l[R]:0,pe={x:x==="top"||x==="bottom"?L:V,y:x==="left"||x==="right"?L:V};return{position:g,maxHeight:z,arrowOffsetLeft:P.left,arrowOffsetTop:P.top,placement:x,triggerAnchorPoint:pe}}function Te(t){let{placement:e,targetNode:l,overlayNode:r,scrollNode:o,padding:n,shouldFlip:c,boundaryElement:i,offset:b,crossOffset:d,maxHeight:p,arrowSize:m=0,arrowBoundaryOffset:$=0}=t,s=r instanceof HTMLElement?Ae(r):document.documentElement,u=s===document.documentElement;const v=window.getComputedStyle(s).position;let f=!!v&&v!=="static",R=u?Y(l,!1):ne(l,s,!1);if(!u){let{marginTop:P,marginLeft:L}=window.getComputedStyle(l);R.top+=parseInt(P,10)||0,R.left+=parseInt(L,10)||0}let a=Y(r,!0),E=Le(r);var x,S;a.width+=((x=E.left)!==null&&x!==void 0?x:0)+((S=E.right)!==null&&S!==void 0?S:0);var g,T;a.height+=((g=E.top)!==null&&g!==void 0?g:0)+((T=E.bottom)!==null&&T!==void 0?T:0);let k=Ce(o),_=te(i),y=te(s),z=i.tagName==="BODY"?Y(s,!1):ne(s,i,!1);return s.tagName==="HTML"&&i.tagName==="BODY"&&(y.scroll.top=0,y.scroll.left=0),Se(e,R,a,k,E,n,c,_,y,z,b,d,f,p,m,$)}function D(t,e){let{top:l,left:r,width:o,height:n}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(o=t.offsetWidth,n=t.offsetHeight),{top:l,left:r,width:o,height:n}}function Y(t,e){let{top:l,left:r,width:o,height:n}=D(t,e),{scrollTop:c,scrollLeft:i,clientTop:b,clientLeft:d}=document.documentElement;return{top:l+c-b,left:r+i-d,width:o,height:n}}function ne(t,e,l){let r=window.getComputedStyle(t),o;if(r.position==="fixed")o=D(t,l);else{o=Y(t,l);let n=Y(e,l),c=window.getComputedStyle(e);n.top+=(parseInt(c.borderTopWidth,10)||0)-e.scrollTop,n.left+=(parseInt(c.borderLeftWidth,10)||0)-e.scrollLeft,o.top-=n.top,o.left-=n.left}return o.top-=parseInt(r.marginTop,10)||0,o.left-=parseInt(r.marginLeft,10)||0,o}function Ae(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!ie(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!ie(e);)e=e.parentElement;return e||document.documentElement}function ie(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 se=new WeakMap;function He(t){let{triggerRef:e,isOpen:l,onClose:r}=t;w.useEffect(()=>{if(!l||r===null)return;let o=n=>{let c=n.target;if(!e.current||c instanceof Node&&!c.contains(e.current)||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement)return;let i=r||se.get(e.current);i&&i()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[l,r,e])}let h=typeof document<"u"?window.visualViewport:null;function _e(t){let{direction:e}=ge.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{arrowSize:l,targetRef:r,overlayRef:o,arrowRef:n,scrollRef:c=o,placement:i="bottom",containerPadding:b=12,shouldFlip:d=!0,boundaryElement:p=typeof document<"u"?document.body:null,offset:m=0,crossOffset:$=0,shouldUpdatePosition:s=!0,isOpen:u=!0,onClose:v,maxHeight:f,arrowBoundaryOffset:R=0}=t,[a,E]=w.useState(null),x=[s,i,o.current,r.current,n==null?void 0:n.current,c.current,b,d,p,m,$,u,e,f,R,l],S=w.useRef(h==null?void 0:h.scale);w.useEffect(()=>{u&&(S.current=h==null?void 0:h.scale)},[u]);let g=w.useCallback(()=>{if(s===!1||!u||!o.current||!r.current||!p||(h==null?void 0:h.scale)!==S.current)return;let P=null;if(c.current&&c.current.contains(document.activeElement)){var L;let H=(L=document.activeElement)===null||L===void 0?void 0:L.getBoundingClientRect(),q=c.current.getBoundingClientRect();var O;if(P={type:"top",offset:((O=H==null?void 0:H.top)!==null&&O!==void 0?O:0)-q.top},P.offset>q.height/2){P.type="bottom";var B;P.offset=((B=H==null?void 0:H.bottom)!==null&&B!==void 0?B:0)-q.bottom}}let A=o.current;if(!f&&o.current){var N;A.style.top="0px",A.style.bottom="";var F;A.style.maxHeight=((F=(N=window.visualViewport)===null||N===void 0?void 0:N.height)!==null&&F!==void 0?F:window.innerHeight)+"px"}let I=Te({placement:ze(i,e),overlayNode:o.current,targetNode:r.current,scrollNode:c.current||o.current,padding:b,shouldFlip:d,boundaryElement:p,offset:m,crossOffset:$,maxHeight:f,arrowSize:l??(n!=null&&n.current?D(n.current,!0).width:0),arrowBoundaryOffset:R});if(I.position){if(A.style.top="",A.style.bottom="",A.style.left="",A.style.right="",Object.keys(I.position).forEach(H=>A.style[H]=I.position[H]+"px"),A.style.maxHeight=I.maxHeight!=null?I.maxHeight+"px":"",P&&document.activeElement&&c.current){let H=document.activeElement.getBoundingClientRect(),q=c.current.getBoundingClientRect(),U=H[P.type]-q[P.type];c.current.scrollTop+=U-P.offset}E(I)}},x);X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(g,x),ye(g),K({ref:o,onResize:g}),K({ref:r,onResize:g});let T=w.useRef(!1);X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let P,L=()=>{T.current=!0,clearTimeout(P),P=setTimeout(()=>{T.current=!1},500),g()},O=()=>{T.current&&L()};return h==null||h.addEventListener("resize",L),h==null||h.addEventListener("scroll",O),()=>{h==null||h.removeEventListener("resize",L),h==null||h.removeEventListener("scroll",O)}},[g]);let k=w.useCallback(()=>{T.current||v==null||v()},[v,T]);He({triggerRef:r,isOpen:u,onClose:v&&k});var _,y,z;return{overlayProps:{style:{position:a?"absolute":"fixed",top:a?void 0:0,left:a?void 0:0,zIndex:1e5,...a==null?void 0:a.position,maxHeight:(_=a==null?void 0:a.maxHeight)!==null&&_!==void 0?_:"100vh"}},placement:(y=a==null?void 0:a.placement)!==null&&y!==void 0?y:null,triggerAnchorPoint:(z=a==null?void 0:a.triggerAnchorPoint)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:a==null?void 0:a.arrowOffsetLeft,top:a==null?void 0:a.arrowOffsetTop}},updatePosition:g}}function ye(t){X.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function ze(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const Ie=w.createContext({});function Me(){var t;return(t=w.useContext(Ie))!==null&&t!==void 0?t:{}}function ke(t){let[e,l]=be.$458b0a5536c1a7cf$export$40bfa8c7b0832715(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const r=w.useCallback(()=>{l(!0)},[l]),o=w.useCallback(()=>{l(!1)},[l]),n=w.useCallback(()=>{l(!e)},[l,e]);return{isOpen:e,setOpen:l,open:r,close:o,toggle:n}}const fe=w.createContext({placement:"bottom"}),Oe=w.forwardRef(function(e,l){[e,l]=ee.$64fa3d84918910a7$export$29f1550f4b0d4415(e,l,fe);let r=e.placement,o={position:"absolute",transform:r==="top"||r==="bottom"?"translateX(-50%)":"translateY(-50%)"};r!=null&&(o[r]="100%");let n=ee.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:r}});n.style&&Object.keys(n.style).forEach(i=>n.style[i]===void 0&&delete n.style[i]);let c=he.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);return w.createElement("div",{...c,...n,style:{...o,...n.style},ref:l,"data-placement":r})});exports.$2a41e45df1593e64$export$d39e1813b3bdd0e1=_e;exports.$44f671af83e7d9e0$export$2de4954e8ae13b9f=fe;exports.$44f671af83e7d9e0$export$746d02f47f4d381=Oe;exports.$96b38030c423d352$export$9fc1347d4195ccb3=Me;exports.$9daab02d461809db$export$683480f191c0e3ea=K;exports.$d3f049242431219c$export$45fda7c47f93fd48=Ee;exports.$d3f049242431219c$export$6d3443f2c48bfc20=we;exports.$dd149f63282afbbf$export$f6211563215e3b37=se;exports.$fc909762b330b746$export$61c6a8c84e605fb6=ke;
@@ -0,0 +1,39 @@
1
+ import { jsxs as f, jsx as o } from "react/jsx-runtime";
2
+ import { c as i } from "./clsx-jbLnTBqA.js";
3
+ import { $ as c } from "./OverlayArrow-CjGslX2c.js";
4
+ import { b as l } from "./Dialog-D4Py85wi.js";
5
+ import './assets/Popover.css';const m = "_popover_94l1i_1", d = "_arrow_94l1i_23", r = {
6
+ popover: m,
7
+ arrow: d
8
+ };
9
+ function $({
10
+ children: e,
11
+ className: s,
12
+ offset: p = 4,
13
+ hideArrow: a = !1,
14
+ ...t
15
+ }) {
16
+ return /* @__PURE__ */ f(
17
+ l,
18
+ {
19
+ ...t,
20
+ offset: p,
21
+ className: i(r.popover, s),
22
+ children: [
23
+ !a && /* @__PURE__ */ o(c, { className: r.arrow, children: /* @__PURE__ */ o(
24
+ "svg",
25
+ {
26
+ width: 8,
27
+ height: 8,
28
+ viewBox: "0 0 8 8",
29
+ children: /* @__PURE__ */ o("path", { d: "M0 0 L4 4 L8 0" })
30
+ }
31
+ ) }),
32
+ e
33
+ ]
34
+ }
35
+ );
36
+ }
37
+ export {
38
+ $ as P
39
+ };
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Popover.css');const r=require("react/jsx-runtime"),a=require("./clsx-DKOfLqne.cjs"),n=require("./OverlayArrow-bcrb_syE.cjs"),l=require("./Dialog-DycTLpdr.cjs"),p="_popover_94l1i_1",x="_arrow_94l1i_23",e={popover:p,arrow:x};function d({children:o,className:s,offset:t=4,hideArrow:c=!1,...i}){return r.jsxs(l.$07b14b47974efb58$export$5b6b19405a83ff9d,{...i,offset:t,className:a.clsx(e.popover,s),children:[!c&&r.jsx(n.$44f671af83e7d9e0$export$746d02f47f4d381,{className:e.arrow,children:r.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:r.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),o]})}exports.Popover=d;
@@ -1,7 +1,7 @@
1
- import { a as s } from "./usePress-4yZ5a87p.js";
1
+ import { a as s } from "./usePress-BqQIhkNY.js";
2
2
  import { a as n } from "./mergeProps-Ct8m5-xW.js";
3
- import { b as d } from "./utils-BMBoiyL7.js";
4
- import { $ as i } from "./useFocusable-CCh54GIw.js";
3
+ import { b as d } from "./utils-D2iKpxcZ.js";
4
+ import { $ as i } from "./useFocusable-BJj-Bkig.js";
5
5
  import f, { useRef as b, useContext as $, useEffect as l, useMemo as u } from "react";
6
6
  const w = /* @__PURE__ */ f.forwardRef(({ children: t, ...o }, r) => {
7
7
  let a = b(!1), e = $(s);
@@ -1 +1 @@
1
- "use strict";const s=require("./usePress-Dj3t18Pf.cjs"),$=require("./mergeProps-Du5A8xi8.cjs"),f=require("./utils-cBvgilDa.cjs"),n=require("./useFocusable-DhdAtEw8.cjs"),r=require("react"),d=r.forwardRef(({children:a,...c},t)=>{let o=r.useRef(!1),e=r.useContext(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5);t=f.$df56164dff5785e2$export$4338b53315abf666(t||(e==null?void 0:e.ref));let b=$.$3ef42575df84b30b$export$9d1611c77c2fe928(e||{},{...c,ref:t,register(){o.current=!0,e&&e.register()}});return n.$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:b},a)});function u({children:a}){let c=r.useMemo(()=>({register:()=>{}}),[]);return r.createElement(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:c},a)}exports.$f1ab8c75478c6f73$export$3351871ee4b288b8=d;exports.$f1ab8c75478c6f73$export$cf75428e0b9ed1ea=u;
1
+ "use strict";const s=require("./usePress-DmU79HEg.cjs"),$=require("./mergeProps-Du5A8xi8.cjs"),f=require("./utils-CtICjCYt.cjs"),n=require("./useFocusable-M4se1KJt.cjs"),r=require("react"),d=r.forwardRef(({children:a,...c},t)=>{let o=r.useRef(!1),e=r.useContext(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5);t=f.$df56164dff5785e2$export$4338b53315abf666(t||(e==null?void 0:e.ref));let b=$.$3ef42575df84b30b$export$9d1611c77c2fe928(e||{},{...c,ref:t,register(){o.current=!0,e&&e.register()}});return n.$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:b},a)});function u({children:a}){let c=r.useMemo(()=>({register:()=>{}}),[]);return r.createElement(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:c},a)}exports.$f1ab8c75478c6f73$export$3351871ee4b288b8=d;exports.$f1ab8c75478c6f73$export$cf75428e0b9ed1ea=u;
@@ -1 +1 @@
1
- "use strict";require('./assets/ProgressBar.css');const e=require("react/jsx-runtime"),u=require("./Button-BTX5G3le.cjs"),i=require("./Label-CkIRTC0_.cjs"),t=require("./clsx-DKOfLqne.cjs"),x="_progressBar_ojm9j_1",d="_label_ojm9j_9",l="_value_ojm9j_14",N="_bar_ojm9j_19",f="_fill_ojm9j_29",c={progressBar:x,label:d,value:l,bar:N,fill:f},v=({label:a,labelProps:s,showValueLabel:r=!1,...n})=>e.jsx(u.$0393f8ab869a0f1a$export$c17561cb55d4db30,{...n,className:t.clsx(c.progressBar,n.className),children:({percentage:j,valueText:m,isIndeterminate:_})=>e.jsxs(e.Fragment,{children:[a&&e.jsx(i.Label,{elementType:"span",...s,className:t.clsx(s==null?void 0:s.className,c.label),children:a}),r&&e.jsx(i.Label,{elementType:"span",...s,id:a?"":s==null?void 0:s.id,className:t.clsx(s==null?void 0:s.className,c.value),children:m}),e.jsx("div",{className:c.bar,children:e.jsx("div",{className:c.fill,style:{width:`${_?50:j}%`}})})]})});exports.ProgressBar=v;
1
+ "use strict";require('./assets/ProgressBar.css');const e=require("react/jsx-runtime"),u=require("./Button-1sEX8jKn.cjs"),i=require("./Label-DpY2SZdQ.cjs"),t=require("./clsx-DKOfLqne.cjs"),x="_progressBar_ojm9j_1",d="_label_ojm9j_9",l="_value_ojm9j_14",N="_bar_ojm9j_19",f="_fill_ojm9j_29",c={progressBar:x,label:d,value:l,bar:N,fill:f},v=({label:a,labelProps:s,showValueLabel:r=!1,...n})=>e.jsx(u.$0393f8ab869a0f1a$export$c17561cb55d4db30,{...n,className:t.clsx(c.progressBar,n.className),children:({percentage:j,valueText:m,isIndeterminate:_})=>e.jsxs(e.Fragment,{children:[a&&e.jsx(i.Label,{elementType:"span",...s,className:t.clsx(s==null?void 0:s.className,c.label),children:a}),r&&e.jsx(i.Label,{elementType:"span",...s,id:a?"":s==null?void 0:s.id,className:t.clsx(s==null?void 0:s.className,c.value),children:m}),e.jsx("div",{className:c.bar,children:e.jsx("div",{className:c.fill,style:{width:`${_?50:j}%`}})})]})});exports.ProgressBar=v;
@@ -1,15 +1,15 @@
1
1
  import { jsx as a, jsxs as j, Fragment as f } from "react/jsx-runtime";
2
- import { c as o } from "./Button-B6lxIKPk.js";
3
- import { L as i } from "./Label-CV9p0K2n.js";
2
+ import { b as o } from "./Button-BbfVT9Yl.js";
3
+ import { L as i } from "./Label-FfEnd4ai.js";
4
4
  import { c as m } from "./clsx-jbLnTBqA.js";
5
- import './assets/ProgressBar.css';const N = "_progressBar_ojm9j_1", v = "_label_ojm9j_9", h = "_value_ojm9j_14", u = "_bar_ojm9j_19", x = "_fill_ojm9j_29", c = {
5
+ import './assets/ProgressBar.css';const N = "_progressBar_ojm9j_1", v = "_label_ojm9j_9", h = "_value_ojm9j_14", u = "_bar_ojm9j_19", x = "_fill_ojm9j_29", e = {
6
6
  progressBar: N,
7
7
  label: v,
8
8
  value: h,
9
9
  bar: u,
10
10
  fill: x
11
11
  }, $ = ({
12
- label: e,
12
+ label: c,
13
13
  labelProps: s,
14
14
  showValueLabel: n = !1,
15
15
  ...t
@@ -17,15 +17,15 @@ import './assets/ProgressBar.css';const N = "_progressBar_ojm9j_1", v = "_label_
17
17
  o,
18
18
  {
19
19
  ...t,
20
- className: m(c.progressBar, t.className),
20
+ className: m(e.progressBar, t.className),
21
21
  children: ({ percentage: r, valueText: _, isIndeterminate: d }) => /* @__PURE__ */ j(f, { children: [
22
- e && /* @__PURE__ */ a(
22
+ c && /* @__PURE__ */ a(
23
23
  i,
24
24
  {
25
25
  elementType: "span",
26
26
  ...s,
27
- className: m(s == null ? void 0 : s.className, c.label),
28
- children: e
27
+ className: m(s == null ? void 0 : s.className, e.label),
28
+ children: c
29
29
  }
30
30
  ),
31
31
  n && /* @__PURE__ */ a(
@@ -33,15 +33,15 @@ import './assets/ProgressBar.css';const N = "_progressBar_ojm9j_1", v = "_label_
33
33
  {
34
34
  elementType: "span",
35
35
  ...s,
36
- id: e ? "" : s == null ? void 0 : s.id,
37
- className: m(s == null ? void 0 : s.className, c.value),
36
+ id: c ? "" : s == null ? void 0 : s.id,
37
+ className: m(s == null ? void 0 : s.className, e.value),
38
38
  children: _
39
39
  }
40
40
  ),
41
- /* @__PURE__ */ a("div", { className: c.bar, children: /* @__PURE__ */ a(
41
+ /* @__PURE__ */ a("div", { className: e.bar, children: /* @__PURE__ */ a(
42
42
  "div",
43
43
  {
44
- className: c.fill,
44
+ className: e.fill,
45
45
  style: { width: `${d ? 50 : r}%` }
46
46
  }
47
47
  ) })
@@ -4,8 +4,10 @@ e(null);
4
4
  e(null);
5
5
  e(null);
6
6
  e(null);
7
- const n = e({});
7
+ const $ = e({}), n = e(null), o = e(null);
8
8
  export {
9
- n as $,
10
- t as a
9
+ o as $,
10
+ $ as a,
11
+ n as b,
12
+ t as c
11
13
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react"),t=e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);e.createContext(null);const $=e.createContext({}),c=e.createContext(null),o=e.createContext(null);exports.$4e85f108e88277b8$export$698f465ec27e93df=o;exports.$4e85f108e88277b8$export$b085522c77523c51=t;exports.$4e85f108e88277b8$export$b0d3ecf7112093a7=c;exports.$4e85f108e88277b8$export$d688439359537581=$;
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Radio.css');const V=require("react/jsx-runtime"),K=require("./Group-B0Wj9pI8.cjs"),P=require("./utils-CtICjCYt.cjs"),_=require("./FieldError-JWxR_EqN.cjs"),z=require("./Form-BuOomA4T.cjs"),J=require("./Button-1sEX8jKn.cjs"),O=require("./SelectionIndicator-ClG0GpJu.cjs"),Q=require("./Text-0wXj3J8E.cjs"),R=require("./mergeProps-Du5A8xi8.cjs"),S=require("./filterDOMProps-RRlKPKX0.cjs"),t=require("react"),w=require("./useFormValidation-DV2Ioblb.cjs"),j=require("./usePress-DmU79HEg.cjs"),X=require("./useFocusable-M4se1KJt.cjs"),Y=require("./utils-DRIRjPUS.cjs"),Z=require("./useFocusWithin-GBjoTL5o.cjs"),ee=require("./useField-DvszkIMx.cjs"),ae=require("./context-UOrD6Zxk.cjs"),ie=require("./useFocusRing-C-XVcAE5.cjs"),de=require("./useHover-DULSfLuK.cjs"),re=require("./VisuallyHidden-BMelU6B0.cjs"),le=require("./useControlledState-D0L6S_5r.cjs"),G=require("./clsx-DKOfLqne.cjs"),L=require("./Label-DpY2SZdQ.cjs"),te=require("./Text-D5OSv6Uv.cjs"),N=new WeakMap;function oe(a,e,d){let{value:l,children:n,"aria-label":r,"aria-labelledby":c,onPressStart:i,onPressEnd:$,onPressChange:u,onPress:o,onPressUp:s,onClick:v}=a;const b=a.isDisabled||e.isDisabled;let g=n!=null,h=r!=null||c!=null;!g&&!h&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let m=e.selectedValue===l,I=F=>{F.stopPropagation(),e.setSelectedValue(l)},{pressProps:C,isPressed:D}=j.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:$,onPressChange:u,onPress:o,onPressUp:s,onClick:v,isDisabled:b}),{pressProps:E,isPressed:x}=j.$f6c31cce2adf654f$export$45712eceda6fad21({onPressStart:i,onPressEnd:$,onPressChange:u,onPressUp:s,onClick:v,isDisabled:b,onPress(F){var M;o==null||o(F),e.setSelectedValue(l),(M=d.current)===null||M===void 0||M.focus()}}),{focusableProps:f}=X.$f645667febf57a63$export$4c014de7c8940b4c(R.$3ef42575df84b30b$export$9d1611c77c2fe928(a,{onFocus:()=>e.setLastFocusedValue(l)}),d),q=R.$3ef42575df84b30b$export$9d1611c77c2fe928(C,f),p=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),y=-1;e.selectedValue!=null?e.selectedValue===l&&(y=0):(e.lastFocusedValue===l||e.lastFocusedValue==null)&&(y=0),b&&(y=void 0);let{name:W,form:H,descriptionId:A,errorMessageId:U,validationBehavior:k}=N.get(e);return w.$99facab73266f662$export$5add1d006293d136(d,e.defaultSelectedValue,e.setSelectedValue),w.$e93e671b31057976$export$b8473d3665f3a75a({validationBehavior:k},e,d),{labelProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(E,t.useMemo(()=>({onClick:F=>F.preventDefault(),onMouseDown:F=>F.preventDefault()}),[])),inputProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(p,{...q,type:"radio",name:W,form:H,tabIndex:y,disabled:b,required:e.isRequired&&k==="native",checked:m,value:l,onChange:I,"aria-describedby":[a["aria-describedby"],e.isInvalid?U:null,A].filter(Boolean).join(" ")||void 0}),isDisabled:b,isSelected:m,isPressed:D||x}}function se(a,e){let{name:d,form:l,isReadOnly:n,isRequired:r,isDisabled:c,orientation:i="vertical",validationBehavior:$="aria"}=a,{direction:u}=ae.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{isInvalid:o,validationErrors:s,validationDetails:v}=e.displayValidation,{labelProps:b,fieldProps:g,descriptionProps:h,errorMessageProps:m}=ee.$2baaea4c71418dea$export$294aa081a6c6f55d({...a,labelElementType:"span",isInvalid:e.isInvalid,errorMessage:a.errorMessage||s}),I=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),{focusWithinProps:C}=Z.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin(x){var f;(f=a.onBlur)===null||f===void 0||f.call(a,x),e.selectedValue||e.setLastFocusedValue(null)},onFocusWithin:a.onFocus,onFocusWithinChange:a.onFocusChange}),D=x=>{let f;switch(x.key){case"ArrowRight":u==="rtl"&&i!=="vertical"?f="prev":f="next";break;case"ArrowLeft":u==="rtl"&&i!=="vertical"?f="next":f="prev";break;case"ArrowDown":f="next";break;case"ArrowUp":f="prev";break;default:return}x.preventDefault();let q=O.$9bf71ea28793e738$export$2d6ec8fc375ceafa(x.currentTarget,{from:x.target,accept:y=>y instanceof Y.$431fbd86ca7dc216$export$f21a1ffae260145a(y).HTMLInputElement&&y.type==="radio"}),p;f==="next"?(p=q.nextNode(),p||(q.currentNode=x.currentTarget,p=q.firstChild())):(p=q.previousNode(),p||(q.currentNode=x.currentTarget,p=q.lastChild())),p&&(p.focus(),e.setSelectedValue(p.value))},E=R.$bdb11010cef70236$export$f680877a34711e37(d);return N.set(e,{name:E,form:l,descriptionId:h.id,errorMessageId:m.id,validationBehavior:$}),{radioGroupProps:R.$3ef42575df84b30b$export$9d1611c77c2fe928(I,{role:"radiogroup",onKeyDown:D,"aria-invalid":e.isInvalid||void 0,"aria-errormessage":a["aria-errormessage"],"aria-readonly":n||void 0,"aria-required":r||void 0,"aria-disabled":c||void 0,"aria-orientation":i,...g,...C}),labelProps:b,descriptionProps:h,errorMessageProps:m,isInvalid:o,validationErrors:s,validationDetails:v}}let ne=Math.round(Math.random()*1e10),ce=0;function ue(a){let e=t.useMemo(()=>a.name||`radio-group-${ne}-${++ce}`,[a.name]);var d;let[l,n]=le.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.value,(d=a.defaultValue)!==null&&d!==void 0?d:null,a.onChange),[r]=t.useState(l),[c,i]=t.useState(null),$=w.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...a,value:l}),u=v=>{!a.isReadOnly&&!a.isDisabled&&(n(v),$.commitValidation())},o=$.displayValidation.isInvalid;var s;return{...$,name:e,selectedValue:l,defaultSelectedValue:a.value!==void 0?r:(s=a.defaultValue)!==null&&s!==void 0?s:null,setSelectedValue:u,lastFocusedValue:c,setLastFocusedValue:i,isDisabled:a.isDisabled||!1,isReadOnly:a.isReadOnly||!1,isRequired:a.isRequired||!1,validationState:a.validationState||(o?"invalid":null),isInvalid:o}}const fe=t.createContext(null),$e=t.createContext(null),T=t.createContext(null),be=t.forwardRef(function(e,d){[e,d]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,fe);let{validationBehavior:l}=P.$64fa3d84918910a7$export$fabf2dc03a41866e(z.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var n,r;let c=(r=(n=e.validationBehavior)!==null&&n!==void 0?n:l)!==null&&r!==void 0?r:"native",i=ue({...e,validationBehavior:c}),[$,u]=P.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:o,labelProps:s,descriptionProps:v,errorMessageProps:b,...g}=se({...e,label:u,validationBehavior:c},i),h=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{orientation:e.orientation||"vertical",isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:i.isRequired,isInvalid:i.isInvalid,state:i},defaultClassName:"react-aria-RadioGroup"}),m=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return t.createElement("div",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(m,h,o),ref:d,slot:e.slot||void 0,"data-orientation":e.orientation||"vertical","data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},t.createElement(P.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[T,i],[J.$01b77f81d0f07f68$export$75b6ee27786ba447,{...s,ref:$,elementType:"span"}],[Q.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:v,errorMessage:b}}],[_.$ee014567cb39d3f0$export$ff05c3ac10437e03,g]]},t.createElement(O.$c8a5a149f625efcf$export$758399f318e6385a,null,h.children)))}),ve=t.forwardRef(function(e,d){let{inputRef:l=null,...n}=e;[e,d]=P.$64fa3d84918910a7$export$29f1550f4b0d4415(n,d,$e);let r=t.useContext(T),c=P.$df56164dff5785e2$export$4338b53315abf666(t.useMemo(()=>P.$5dc95899b306f630$export$c9058316764c140e(l,e.inputRef!==void 0?e.inputRef:null),[l,e.inputRef])),{labelProps:i,inputProps:$,isSelected:u,isDisabled:o,isPressed:s}=oe({...P.$64fa3d84918910a7$export$ef03459518577ad4(e),children:typeof e.children=="function"?!0:e.children},r,c),{isFocused:v,isFocusVisible:b,focusProps:g}=ie.$f7dceffc5ad7768b$export$4e328f61c538687f(),h=o||r.isReadOnly,{hoverProps:m,isHovered:I}=de.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:h}),C=P.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Radio",values:{isSelected:u,isPressed:s,isHovered:I,isFocused:v,isFocusVisible:b,isDisabled:o,isReadOnly:r.isReadOnly,isInvalid:r.isInvalid,isRequired:r.isRequired}}),D=S.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{global:!0});return delete D.id,delete D.onClick,t.createElement("label",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928(D,i,m,C),ref:d,"data-selected":u||void 0,"data-pressed":s||void 0,"data-hovered":I||void 0,"data-focused":v||void 0,"data-focus-visible":b||void 0,"data-disabled":o||void 0,"data-readonly":r.isReadOnly||void 0,"data-invalid":r.isInvalid||void 0,"data-required":r.isRequired||void 0},t.createElement(re.$5c3e21d68f1c4674$export$439d29a4e110a164,{elementType:"span"},t.createElement("input",{...R.$3ef42575df84b30b$export$9d1611c77c2fe928($,g),ref:c})),t.createElement(O.$1d5b8b8664671ef2$export$c9549807523555e0.Provider,{value:{isSelected:u}},C.children))}),pe="_radioGroup_1m1j7_1",xe="_wrap_1m1j7_12",Pe="_radio_1m1j7_1",B={radioGroup:pe,wrap:xe,radio:Pe},he=({label:a,description:e,errorMessage:d,children:l,className:n,errorPosition:r="top",popover:c,...i})=>V.jsxs(be,{...i,className:G.clsx(B.radioGroup,n),children:[V.jsx(L.LabelWrapper,{popover:c,children:a&&V.jsx(L.Label,{children:a})}),e&&V.jsx(te.Text,{slot:"description",children:e}),r==="top"&&V.jsx(_.FieldError,{"data-testid":"fieldError",children:d}),V.jsx(K.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{className:B.wrap,children:l}),r==="bottom"&&V.jsx(_.FieldError,{"data-testid":"fieldError",children:d})]}),me=({className:a,...e})=>V.jsx(ve,{className:G.clsx(B.radio,a),...e});exports.Radio=me;exports.RadioGroup=he;