@midas-ds/components 12.0.0 → 12.1.1

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 (457) hide show
  1. package/AccordionItem-CV9Hrare.cjs +1 -0
  2. package/AccordionItem-Dd9VLdsb.js +335 -0
  3. package/{BadgeContainer-DGJGJMPi.js → BadgeContainer-iNNgJKD9.js} +8 -8
  4. package/BadgeContainer-su0iCJKy.cjs +1 -0
  5. package/Breadcrumbs-BQLxFZVm.cjs +1 -0
  6. package/Breadcrumbs-C6B4fyk3.js +271 -0
  7. package/Button-CMIbSc4-.cjs +1 -0
  8. package/{Button-akT6Hvug.js → Button-CUMHt7MG.js} +2 -2
  9. package/{Button-DtC_ZOyd.js → Button-DD5_S-tD.js} +155 -161
  10. package/{Button-DQm2iqKU.cjs → Button-D_tRdPW9.cjs} +1 -1
  11. package/Button.module-BT9wZenr.cjs +1 -0
  12. package/Button.module-CGIVvzVm.js +14 -0
  13. package/{ButtonGroup-DvVvear6.js → ButtonGroup-DC8925jD.js} +1 -1
  14. package/ButtonGroup-zx-9mxbJ.cjs +1 -0
  15. package/CHANGELOG.md +82 -0
  16. package/{Card-CwwVnA_a.js → Card-D2UbrhDW.js} +42 -42
  17. package/Card-UolcSL5O.cjs +1 -0
  18. package/{CharacterCounter-DQJVM-mZ.cjs → CharacterCounter-CnRv-iUP.cjs} +1 -1
  19. package/CharacterCounter-DT7A0wWP.js +22 -0
  20. package/Checkbox-DTuryJdM.js +278 -0
  21. package/Checkbox-dtZfsSfx.cjs +1 -0
  22. package/CheckboxGroup-BmCK0XG9.js +157 -0
  23. package/CheckboxGroup-DbmYdQEv.cjs +1 -0
  24. package/Collection-B0_WAieZ.js +625 -0
  25. package/Collection-BvWp2xBd.cjs +1 -0
  26. package/{ColorSchemeSwitch-DyZ9FAKG.js → ColorSchemeSwitch-CgZfgCG4.js} +20 -28
  27. package/{ColorSchemeSwitch-DtyJ9-5B.cjs → ColorSchemeSwitch-D5juAHPc.cjs} +3 -3
  28. package/{ComboBox-Dn3tQzri.js → ComboBox-Cl6jBB-8.js} +518 -503
  29. package/ComboBox-CvD0t2T2.cjs +1 -0
  30. package/DateField-D2IqGDL5.js +47 -0
  31. package/DateField-DJAQH95Q.cjs +1 -0
  32. package/DateInputDivider-BnSo_Aox.cjs +1 -0
  33. package/{DateInputDivider-CJEGWmG0.js → DateInputDivider-LxS0Kw1H.js} +936 -839
  34. package/DateRangePicker-CNPXbRqx.js +889 -0
  35. package/DateRangePicker-CljQy8oD.cjs +6 -0
  36. package/Dialog-B8swxl24.js +1643 -0
  37. package/Dialog-COpVrq8B.js +240 -0
  38. package/Dialog-DR6nEqMT.cjs +1 -0
  39. package/Dialog-doGnVsJJ.cjs +1 -0
  40. package/DragAndDrop-Dw8JZmrn.cjs +1 -0
  41. package/DragAndDrop-PrUJv--B.js +75 -0
  42. package/{Dropdown-CJ-sujKv.cjs → Dropdown-C_W6Sizy.cjs} +2 -2
  43. package/{Dropdown-BWbdSQ9U.js → Dropdown-DbeUiGYo.js} +8 -8
  44. package/FieldError-Cornph2A.cjs +1 -0
  45. package/FieldError-DdvFyIf4.js +48 -0
  46. package/{FileUpload-B89QfnCB.js → FileUpload-D2gnQKdn.js} +76 -74
  47. package/{FileUpload-KQ1XAKAc.cjs → FileUpload-D3RaARDV.cjs} +2 -2
  48. package/{FocusScope-CEgd3xCY.js → FocusScope-Bj40Ir-g.js} +192 -195
  49. package/FocusScope-Uy3DiY0-.cjs +1 -0
  50. package/{Grid-B2av0vt8.js → Grid-BmX6arAO.js} +1 -1
  51. package/{Grid-Db5wZrw6.cjs → Grid-Bn1bCTH8.cjs} +1 -1
  52. package/GridItem-BtO9kCX9.js +237 -0
  53. package/GridItem-luVsL9lu.cjs +1 -0
  54. package/{Group-Cdy6z9ra.cjs → Group-BKYGeOBr.cjs} +1 -1
  55. package/{Group-B3mRMVy7.js → Group-C73mD_-i.js} +13 -13
  56. package/Heading-BQlmb5Tm.js +46 -0
  57. package/Heading-D3FR_KXb.cjs +1 -0
  58. package/{Hidden-B5ir3Lei.js → Hidden-C9KWUR7b.js} +2 -2
  59. package/InfoBanner-CgmPdsH8.js +83 -0
  60. package/InfoBanner-Y-f3hKVR.cjs +1 -0
  61. package/{Input-BnpBRnJz.js → Input-BLVRv0FK.js} +9 -9
  62. package/{Input-DIhhWEPW.cjs → Input-CzMx2mfl.cjs} +1 -1
  63. package/{Label-ByWt6Lfh.js → Label-C5TNJ0Ku.js} +24 -28
  64. package/Label-Dp85Vue3.cjs +1 -0
  65. package/Layout-Bxd0-ao3.cjs +16 -0
  66. package/Layout-CcXu63hP.js +482 -0
  67. package/Link-CbFSuEI1.js +73 -0
  68. package/Link-ePZ3nrAW.cjs +6 -0
  69. package/Link-lO-Ke97K.js +60 -0
  70. package/Link-wM7cVPlS.cjs +1 -0
  71. package/LinkButton-CJyZh3BS.js +69 -0
  72. package/LinkButton-Cw73pOM2.cjs +6 -0
  73. package/ListBox-ICZKGluC.cjs +1 -0
  74. package/ListBox-LncMQt6I.js +523 -0
  75. package/ListBoxLoadMoreItem-3jGpi90m.cjs +1 -0
  76. package/ListBoxLoadMoreItem-CIFJ3liN.js +41 -0
  77. package/ListBoxSection-BBY8-t3_.js +1085 -0
  78. package/ListBoxSection-BeDwnVZx.cjs +1 -0
  79. package/{ListKeyboardDelegate-mcrZobNa.js → ListKeyboardDelegate-CVxkAn5D.js} +13 -9
  80. package/ListKeyboardDelegate-C_X1wLkh.cjs +1 -0
  81. package/{Logo-BW5NXAdu.cjs → Logo-CFjZc5u2.cjs} +1 -1
  82. package/{Logo-qkVS1MCN.js → Logo-DkagDdKQ.js} +15 -19
  83. package/OverlayArrow-ByH6lM-H.cjs +1 -0
  84. package/OverlayArrow-CvNuu3e3.js +519 -0
  85. package/{Popover-C5chAY42.cjs → Popover-Bi5yJEoE.cjs} +1 -1
  86. package/{Popover-viLqHHX2.js → Popover-CyEVqpJ6.js} +11 -11
  87. package/{PressResponder-B_Zqu7b1.js → PressResponder-CxVtArtP.js} +9 -9
  88. package/PressResponder-DbnYqwGB.cjs +1 -0
  89. package/ProgressBar-BYb9d2kC.js +53 -0
  90. package/ProgressBar-CgbE08QT.cjs +1 -0
  91. package/Radio-BagVPvJX.cjs +1 -0
  92. package/Radio-C98ly9yx.js +333 -0
  93. package/{RangeCalendar-DGGMbb0j.js → RangeCalendar-Bi9jc61A.js} +637 -629
  94. package/RangeCalendar-KcJooXYf.cjs +6 -0
  95. package/{SSRProvider-D8lZ0o6A.js → SSRProvider-40TXmsUG.js} +5 -5
  96. package/{SSRProvider-DZRLwxPS.cjs → SSRProvider-Bc-sMhsT.cjs} +1 -1
  97. package/{SearchField-Ma3KB8Em.cjs → SearchField-BA-X9dzb.cjs} +2 -2
  98. package/{SearchField-B0dlPqsW.js → SearchField-BevjTbcW.js} +52 -56
  99. package/Select-BECa8IyZ.js +654 -0
  100. package/Select-xBp51JSl.cjs +1 -0
  101. package/{SelectionManager-BdKKuso-.js → SelectionManager-Bq-Gw1UT.js} +291 -282
  102. package/SelectionManager-BtbHoHpA.cjs +1 -0
  103. package/Separator-CM0KPvsX.js +105 -0
  104. package/Separator-Cfv2pbWf.cjs +1 -0
  105. package/Separator-DH-5wu9X.js +77 -0
  106. package/Separator-Dgin8BNW.cjs +1 -0
  107. package/Skeleton-Iovq135_.js +35 -0
  108. package/Skeleton-MaBUPqhT.cjs +1 -0
  109. package/Spinner-BZ7i01Kt.js +47 -0
  110. package/{Spinner-yHx_DX_4.cjs → Spinner-DxWDMW6e.cjs} +2 -2
  111. package/TabList-BMyKYLlY.cjs +1 -0
  112. package/TabList-C0mZgIzV.js +397 -0
  113. package/Table-BHY1uCZ0.cjs +16 -0
  114. package/{Table-CTS0J_sQ.js → Table-DzbfeVO7.js} +856 -798
  115. package/Tag-BYUPXbhG.js +765 -0
  116. package/Tag-BweDKw1v.cjs +1 -0
  117. package/Text-BAFsaON-.cjs +1 -0
  118. package/{Text--KL3Auo7.js → Text-Be7WIOwv.js} +3 -3
  119. package/{Text-wuw0HQoa.cjs → Text-BtPiT2P1.cjs} +1 -1
  120. package/Text-CmlsaWMA.js +32 -0
  121. package/TextArea-CDoLq124.js +125 -0
  122. package/TextArea-DJCtwrqV.cjs +1 -0
  123. package/TextField-Bm5916AD.cjs +1 -0
  124. package/TextField-_UY8CXtW.js +134 -0
  125. package/TextField.module-CH39P8ZE.js +13 -0
  126. package/TextField.module-gJ-ruFra.cjs +1 -0
  127. package/{Toast-BEh5yYzO.cjs → Toast-BN3vRCsH.cjs} +1 -1
  128. package/{Toast-BnzpC_5v.js → Toast-DZnQTLDr.js} +129 -143
  129. package/ToggleButtonGroup-CwHPu7w5.js +214 -0
  130. package/ToggleButtonGroup-DY9S3USc.cjs +1 -0
  131. package/Tooltip-BHAtsp9k.js +281 -0
  132. package/Tooltip-CZa9n5sT.cjs +1 -0
  133. package/{VisuallyHidden-BKslUoMJ.js → VisuallyHidden-CGEtjAP7.js} +8 -8
  134. package/{VisuallyHidden-DxDOcIsh.cjs → VisuallyHidden-EjrqodVh.cjs} +1 -1
  135. package/accordion/index.cjs +1 -1
  136. package/accordion/index.js +1 -1
  137. package/assets/AccordionItem.css +1 -1
  138. package/assets/BadgeContainer.css +1 -1
  139. package/assets/Breadcrumbs.css +1 -1
  140. package/assets/Button.css +1 -1
  141. package/assets/ButtonGroup.css +1 -1
  142. package/assets/Card.css +1 -1
  143. package/assets/CharacterCounter.css +1 -1
  144. package/assets/Checkbox.css +1 -1
  145. package/assets/ComboBox.css +1 -1
  146. package/assets/DateField.css +1 -1
  147. package/assets/DateInputDivider.css +1 -1
  148. package/assets/DateRangePicker.css +1 -1
  149. package/assets/Dialog.css +1 -1
  150. package/assets/Dropdown.css +1 -1
  151. package/assets/FieldError.css +1 -1
  152. package/assets/FileUpload.css +1 -1
  153. package/assets/GridItem.css +1 -1
  154. package/assets/Heading.css +1 -1
  155. package/assets/InfoBanner.css +1 -1
  156. package/assets/Label.css +1 -1
  157. package/assets/Layout.css +1 -1
  158. package/assets/Link.css +1 -1
  159. package/assets/LinkButton.css +1 -1
  160. package/assets/ListBoxSection.css +1 -1
  161. package/assets/Logo.css +1 -1
  162. package/assets/Popover.css +1 -1
  163. package/assets/ProgressBar.css +1 -1
  164. package/assets/Radio.css +1 -1
  165. package/assets/RangeCalendar.css +1 -1
  166. package/assets/SearchField.css +1 -1
  167. package/assets/Select.css +1 -1
  168. package/assets/Separator.css +1 -0
  169. package/assets/Skeleton.css +1 -1
  170. package/assets/Spinner.css +1 -1
  171. package/assets/TabList.css +1 -1
  172. package/assets/Table.css +1 -1
  173. package/assets/Tag.css +1 -1
  174. package/assets/Text.css +1 -1
  175. package/assets/TextField.css +1 -1
  176. package/assets/Toast.css +1 -1
  177. package/assets/ToggleButtonGroup.css +1 -1
  178. package/assets/Tooltip.css +1 -1
  179. package/assets/theme.css +1 -1
  180. package/assets/variables.css +1 -0
  181. package/badge/index.cjs +1 -1
  182. package/badge/index.js +1 -1
  183. package/breadcrumbs/index.cjs +1 -1
  184. package/breadcrumbs/index.js +1 -1
  185. package/button/index.cjs +1 -1
  186. package/button/index.js +2 -2
  187. package/calendar/index.cjs +1 -1
  188. package/calendar/index.js +1 -1
  189. package/card/index.cjs +1 -1
  190. package/card/index.js +1 -1
  191. package/character-counter/index.cjs +1 -1
  192. package/character-counter/index.js +1 -1
  193. package/checkbox/index.cjs +1 -1
  194. package/checkbox/index.js +2 -2
  195. package/chevron-right-0-sUFBiR.cjs +6 -0
  196. package/chevron-right-BYYHEJjK.js +11 -0
  197. package/color-scheme-switch/index.cjs +1 -1
  198. package/color-scheme-switch/index.js +1 -1
  199. package/combobox/index.cjs +1 -1
  200. package/combobox/index.d.ts +1 -1
  201. package/combobox/index.js +1 -1
  202. package/combobox/intl/translations.json.d.ts +4 -2
  203. package/{context-Dl_saGB6.js → context-CGNJ3grH.js} +11 -11
  204. package/{context-UOrD6Zxk.cjs → context-Df3XbgBG.cjs} +1 -1
  205. package/date-field/index.cjs +1 -1
  206. package/date-field/index.js +2 -2
  207. package/date-picker/index.cjs +1 -1
  208. package/date-picker/index.js +1 -1
  209. package/dropdown/Dropdown.d.ts +18 -0
  210. package/dropdown/index.cjs +1 -1
  211. package/dropdown/index.js +1 -1
  212. package/field-error/index.cjs +1 -1
  213. package/field-error/index.js +1 -1
  214. package/file-upload/index.cjs +1 -1
  215. package/file-upload/index.js +1 -1
  216. package/filterDOMProps-RRlKPKX0.cjs +1 -0
  217. package/filterDOMProps-wsa9OcNI.js +65 -0
  218. package/grid/index.cjs +1 -1
  219. package/grid/index.js +2 -2
  220. package/heading/index.cjs +1 -1
  221. package/heading/index.js +1 -1
  222. package/{index-BSMrH_Du.js → index-BLPblar-.js} +33 -30
  223. package/{index-D97L3EBk.cjs → index-DSFSh2sC.cjs} +3 -3
  224. package/index.cjs +1 -1
  225. package/index.d.ts +2 -0
  226. package/index.js +140 -125
  227. package/inertValue-B3AFhVG4.cjs +1 -0
  228. package/info-banner/index.cjs +1 -1
  229. package/info-banner/index.js +1 -1
  230. package/label/index.cjs +1 -1
  231. package/label/index.js +1 -1
  232. package/layout/index.cjs +1 -1
  233. package/layout/index.js +1 -1
  234. package/link/index.cjs +1 -1
  235. package/link/index.js +2 -2
  236. package/link-button/index.cjs +1 -1
  237. package/link-button/index.js +2 -2
  238. package/list-box/ListBoxLoadMoreItem.d.ts +4 -0
  239. package/list-box/index.cjs +1 -1
  240. package/list-box/index.d.ts +1 -0
  241. package/list-box/index.js +6 -5
  242. package/list-box/intl/translations.json.d.ts +11 -0
  243. package/logo/index.cjs +1 -1
  244. package/logo/index.js +1 -1
  245. package/menu/Menu.d.ts +13 -0
  246. package/menu/MenuItem.d.ts +5 -0
  247. package/menu/MenuPopover.d.ts +3 -0
  248. package/menu/MenuSection.d.ts +3 -0
  249. package/menu/Separator.d.ts +3 -0
  250. package/menu/index.cjs +1 -0
  251. package/menu/index.d.ts +5 -0
  252. package/menu/index.js +8 -0
  253. package/mergeProps-BSsN7Bgk.js +117 -0
  254. package/mergeProps-JhcJ7uJL.cjs +1 -0
  255. package/modal/index.cjs +1 -1
  256. package/modal/index.js +2 -2
  257. package/package.json +6 -4
  258. package/popover/index.cjs +1 -1
  259. package/popover/index.js +1 -1
  260. package/progress-bar/index.cjs +1 -1
  261. package/progress-bar/index.js +1 -1
  262. package/radio/index.cjs +1 -1
  263. package/radio/index.js +1 -1
  264. package/search-field/index.cjs +1 -1
  265. package/search-field/index.js +1 -1
  266. package/select/Select.d.ts +1 -1
  267. package/select/index.cjs +1 -1
  268. package/select/index.js +1 -1
  269. package/skeleton/index.cjs +1 -1
  270. package/skeleton/index.js +1 -1
  271. package/spinner/index.cjs +1 -1
  272. package/spinner/index.js +1 -1
  273. package/table/index.cjs +1 -1
  274. package/table/index.js +1 -1
  275. package/tabs/index.cjs +1 -1
  276. package/tabs/index.js +1 -1
  277. package/tag/index.cjs +1 -1
  278. package/tag/index.js +1 -1
  279. package/text/index.cjs +1 -1
  280. package/text/index.js +1 -1
  281. package/textfield/Input.d.ts +7 -2
  282. package/textfield/PasswordField.d.ts +1 -1
  283. package/textfield/index.cjs +1 -1
  284. package/textfield/index.js +1 -1
  285. package/theme/generated-object.d.ts +381 -0
  286. package/theme/generated-tokens.d.ts +331 -0
  287. package/theme/index.cjs +1 -1
  288. package/theme/index.d.ts +4 -1
  289. package/theme/index.js +3989 -14
  290. package/theme/tokens.d.ts +30 -1
  291. package/toast/index.cjs +1 -1
  292. package/toast/index.js +1 -1
  293. package/toggle-button/index.cjs +1 -1
  294. package/toggle-button/index.js +1 -1
  295. package/{tokens-BWo7EvNX.cjs → tokens-B3FfJ-rY.cjs} +1 -1
  296. package/{tokens-BtEBd3jO.js → tokens-B9ooUP4g.js} +1 -2
  297. package/tooltip/index.cjs +1 -1
  298. package/tooltip/index.js +1 -1
  299. package/useButton-D6iUB8cN.js +56 -0
  300. package/useButton-R8-i3HLC.cjs +1 -0
  301. package/useDateFormatter-2B0vgHc-.cjs +1 -0
  302. package/{useDateFormatter-DiIUdTak.js → useDateFormatter-BJ1ZyaH1.js} +431 -407
  303. package/{useDescription-LmB1V4Tg.js → useDescription-BLmIkYCq.js} +1 -1
  304. package/{useDescription-ByNlNIRU.cjs → useDescription-BMuiAqI5.cjs} +1 -1
  305. package/useEvent-3ZO5TPSH.cjs +1 -0
  306. package/{useEvent-DqWz89vg.js → useEvent-DpBHTuHJ.js} +1 -1
  307. package/{useField-5CEdtfab.js → useField-BMegM8fA.js} +2 -2
  308. package/{useField-CoQAzygg.cjs → useField-DyeD7MLj.cjs} +1 -1
  309. package/{useFilter-BKQT28sh.js → useFilter-BFnSe_Eq.js} +1 -1
  310. package/{useFilter-Bjh5dq2Q.cjs → useFilter-aoggM85n.cjs} +1 -1
  311. package/{useFocusRing-BM-zcH6L.cjs → useFocusRing-BcbYske2.cjs} +1 -1
  312. package/{useFocusRing-HoJn20X5.js → useFocusRing-DMo8ctYV.js} +2 -2
  313. package/{useFocusWithin-Cn18Myw6.js → useFocusWithin-ClMkhYcq.js} +1 -1
  314. package/{useFocusWithin-o0WjCpEB.cjs → useFocusWithin-DTnk0e8a.cjs} +1 -1
  315. package/{useFocusable-DbmryjUH.cjs → useFocusable-CsG-IPuC.cjs} +1 -1
  316. package/{useFocusable-ZjCKo1ed.js → useFocusable-DXlMChFC.js} +14 -14
  317. package/useFormValidation-BQIRxgbU.cjs +1 -0
  318. package/useFormValidation-L0UHvOsP.js +217 -0
  319. package/{useHasTabbableChild-CyOmqumh.js → useHasTabbableChild-BDaxMsGu.js} +2 -2
  320. package/useHasTabbableChild-CJcLnolh.cjs +1 -0
  321. package/{useHighlightSelectionDescription-DTxHtOsw.js → useHighlightSelectionDescription-BkEv9Jye.js} +5 -5
  322. package/{useHighlightSelectionDescription-DAhPdEG6.cjs → useHighlightSelectionDescription-CQaG611l.cjs} +1 -1
  323. package/{useHover-D8fja4GW.js → useHover-D6bNIkU0.js} +81 -79
  324. package/useHover-DGAmG7jt.cjs +1 -0
  325. package/{useLabels-BtDN_ALM.cjs → useLabels-CvUk-yS3.cjs} +1 -1
  326. package/{useLabels-DZlvh4P4.js → useLabels-Kmq5JCp_.js} +1 -1
  327. package/useListState-D2IEg6_e.cjs +1 -0
  328. package/{useListState-e7cL-FOK.js → useListState-pixYqSLl.js} +43 -42
  329. package/{useLocalizedStringFormatter-BSac43NO.cjs → useLocalizedStringFormatter-BO2iZEL0.cjs} +1 -1
  330. package/useLocalizedStringFormatter-BiX5BTlb.cjs +1 -0
  331. package/{useLocalizedStringFormatter-CSEh15AZ.js → useLocalizedStringFormatter-CL9MUZ8A.js} +1 -1
  332. package/{useLocalizedStringFormatter-aOhh7wdl.js → useLocalizedStringFormatter-N0AyjzbM.js} +1 -1
  333. package/useObserveElement-MhzEsCkX.cjs +1 -0
  334. package/usePress-CicXV7UO.cjs +7 -0
  335. package/{usePress-B_jgTf4k.js → usePress-DMUpU0GU.js} +84 -80
  336. package/{useSingleSelectListState-D7LjjoUJ.js → useSingleSelectListState-BlvpP8y-.js} +1 -1
  337. package/{useSingleSelectListState-BiJMNaOl.cjs → useSingleSelectListState-CwWK_Dx2.cjs} +1 -1
  338. package/useTextField-BC5X_AO_.js +89 -0
  339. package/useTextField-Cxpfu0U3.cjs +1 -0
  340. package/useToggleState-BVOqL4hI.js +21 -0
  341. package/useToggleState-SqDyNfRi.cjs +1 -0
  342. package/{useUpdateEffect-sk3kiVGz.cjs → useUpdateEffect-C5YQs_1w.cjs} +1 -1
  343. package/utils/types.d.ts +4 -0
  344. package/{utils-BM2vxlNA.cjs → utils-CMHKYKlz.cjs} +1 -1
  345. package/{utils-KYuflGZt.js → utils-Cpcjg55U.js} +10 -10
  346. package/utils-DFIwp4PB.js +262 -0
  347. package/utils-__vrf9VZ.cjs +1 -0
  348. package/AccordionItem-DEiRuizp.js +0 -361
  349. package/AccordionItem-Dhr7uo8u.cjs +0 -1
  350. package/BadgeContainer-CxVmqJ7g.cjs +0 -1
  351. package/Breadcrumbs-CEyKlcGU.js +0 -262
  352. package/Breadcrumbs-CnGzvtbn.cjs +0 -1
  353. package/Button-DZzQGk-L.cjs +0 -1
  354. package/Button.module-D-mPLRxe.js +0 -14
  355. package/Button.module-goCEz5qs.cjs +0 -1
  356. package/ButtonGroup-DUqW5dzM.cjs +0 -1
  357. package/Card-DPfOZC7f.cjs +0 -1
  358. package/CharacterCounter-DPphWPzA.js +0 -22
  359. package/Checkbox-BN_3F2Hl.js +0 -264
  360. package/Checkbox-CZtCj4yR.cjs +0 -1
  361. package/CheckboxGroup--xgOT1Do.js +0 -159
  362. package/CheckboxGroup-DGHaqRvb.cjs +0 -1
  363. package/Collection-B1xL4EdF.cjs +0 -1
  364. package/Collection-C5vE9MtJ.js +0 -577
  365. package/ComboBox-UadZMhiR.cjs +0 -1
  366. package/DateField-CNEoLyf5.cjs +0 -1
  367. package/DateField-CZmLugT0.js +0 -47
  368. package/DateInputDivider-CCjiq90K.cjs +0 -1
  369. package/DateRangePicker-DhgLEa9P.cjs +0 -6
  370. package/DateRangePicker-WQ97Psz7.js +0 -870
  371. package/Dialog-BT0tVGQb.cjs +0 -1
  372. package/Dialog-BuJdAr0D.js +0 -1611
  373. package/Dialog-DYK8lySl.cjs +0 -1
  374. package/Dialog-L53DWF0Z.js +0 -220
  375. package/DragAndDrop-DKxsUpmW.js +0 -60
  376. package/DragAndDrop-Dgfq6uJ0.cjs +0 -1
  377. package/FieldError-BlKkw9YL.js +0 -46
  378. package/FieldError-BvU0sueN.cjs +0 -1
  379. package/FocusScope-CAgWgk3N.cjs +0 -1
  380. package/GridItem-BnyULDnc.cjs +0 -1
  381. package/GridItem-orSzD7H5.js +0 -243
  382. package/Heading-DDhdwRAW.js +0 -46
  383. package/Heading-OUPkdoEJ.cjs +0 -1
  384. package/InfoBanner-DpLcq_1R.cjs +0 -1
  385. package/InfoBanner-U5hxOipC.js +0 -99
  386. package/Label-COpr4xVt.cjs +0 -1
  387. package/Layout-BR3Or1Ga.cjs +0 -16
  388. package/Layout-Bdqauktv.js +0 -498
  389. package/Link-CM2N5Jq-.js +0 -72
  390. package/Link-Dnnv00g9.js +0 -60
  391. package/Link-Dq8IFDBx.cjs +0 -6
  392. package/Link-ceVlGaWQ.cjs +0 -1
  393. package/LinkButton-BJA9_HzL.cjs +0 -6
  394. package/LinkButton-DH3Nfdis.js +0 -69
  395. package/ListBox-D0u9svwm.cjs +0 -1
  396. package/ListBox-y_dw__MI.js +0 -531
  397. package/ListBoxButton-C2zp-gXD.cjs +0 -1
  398. package/ListBoxButton-DiseS_LX.js +0 -15
  399. package/ListBoxSection-Cv-gN76G.js +0 -1058
  400. package/ListBoxSection-DtsigmC1.cjs +0 -1
  401. package/ListKeyboardDelegate-fZKXmHAk.cjs +0 -1
  402. package/OverlayArrow-8praV_Xy.cjs +0 -1
  403. package/OverlayArrow-DfkRZlgG.js +0 -507
  404. package/PressResponder-Bm3_RM9c.cjs +0 -1
  405. package/ProgressBar-D5mNQTID.cjs +0 -1
  406. package/ProgressBar-wQirOG1N.js +0 -53
  407. package/Radio-BIomn_sP.js +0 -313
  408. package/Radio-CxvJ5Wrl.cjs +0 -1
  409. package/RangeCalendar-BvvZ2SBj.cjs +0 -11
  410. package/Select-769RSZ9V.js +0 -664
  411. package/Select-Go5x0zWl.cjs +0 -1
  412. package/SelectionManager-BvREZgeu.cjs +0 -1
  413. package/Separator-CggS0R7Q.js +0 -59
  414. package/Separator-DBsDhqCr.cjs +0 -1
  415. package/Skeleton-BAwbfKBW.cjs +0 -1
  416. package/Skeleton-BePDRmrO.js +0 -40
  417. package/Spinner-AXFRWuT6.js +0 -51
  418. package/TabList-0gj27e_e.js +0 -386
  419. package/TabList-Cqpup53E.cjs +0 -1
  420. package/Table-BhtlNY9P.cjs +0 -16
  421. package/Tag-B9M-nBTM.js +0 -748
  422. package/Tag-DkW6zaIS.cjs +0 -1
  423. package/Text-BUDAzDjW.js +0 -32
  424. package/Text-DA_gK6a2.cjs +0 -1
  425. package/TextArea-CSrrYY05.cjs +0 -1
  426. package/TextArea-DphcH6wE.js +0 -119
  427. package/TextField-CsyRTSEG.js +0 -120
  428. package/TextField-P5yICj5z.cjs +0 -1
  429. package/TextField.module-BcpPBWnD.js +0 -13
  430. package/TextField.module-Dw5Rtn9y.cjs +0 -1
  431. package/ToggleButtonGroup-BwFAhFEi.cjs +0 -1
  432. package/ToggleButtonGroup-CuxAKB3-.js +0 -211
  433. package/Tooltip-Bz0xCZSw.cjs +0 -1
  434. package/Tooltip-EuEQtHZj.js +0 -285
  435. package/filterDOMProps-BS2lrgFA.cjs +0 -1
  436. package/filterDOMProps-D6KHYVBX.js +0 -24
  437. package/inertValue-BWmZ1afe.cjs +0 -1
  438. package/mergeProps-BYJQ6N1s.js +0 -115
  439. package/mergeProps-C7Sx47fA.cjs +0 -1
  440. package/useButton-CWHoXYnj.js +0 -47
  441. package/useButton-CwOQUGtY.cjs +0 -1
  442. package/useDateFormatter-bzjwqA2K.cjs +0 -1
  443. package/useEvent-CGRyLM2c.cjs +0 -1
  444. package/useFormValidation-BW2NSTM4.js +0 -215
  445. package/useFormValidation-DSRwb9US.cjs +0 -1
  446. package/useHasTabbableChild-CogBR_6o.cjs +0 -1
  447. package/useHover-CaFzQrR_.cjs +0 -1
  448. package/useListState-TtWy_rDI.cjs +0 -1
  449. package/useLocalizedStringFormatter-CHAo1AyN.cjs +0 -1
  450. package/useObserveElement-BzEr5D32.cjs +0 -1
  451. package/usePress-BOGIOlm8.cjs +0 -7
  452. package/useTextField-BVIOd8Ld.cjs +0 -1
  453. package/useTextField-DFkSHoQN.js +0 -86
  454. package/useToggleState-Bz5rAf4C.js +0 -18
  455. package/useToggleState-DoIkSQdj.cjs +0 -1
  456. package/utils-C5-CzvX2.cjs +0 -1
  457. package/utils-CuqJqFqQ.js +0 -234
@@ -1 +0,0 @@
1
- "use strict";require('./assets/ListBoxSection.css');const S=require("react/jsx-runtime"),V=require("./ListBox-D0u9svwm.cjs"),Y=require("./Collection-B1xL4EdF.cjs"),c=require("react"),C=require("./mergeProps-C7Sx47fA.cjs"),W=require("./context-UOrD6Zxk.cjs"),T=require("react-dom"),Z=require("./OverlayArrow-8praV_Xy.cjs"),ee=require("./useEvent-CGRyLM2c.cjs"),M=require("./clsx-C11secjj.cjs"),q=require("./SelectionManager-BvREZgeu.cjs"),te=require("./Dialog-BT0tVGQb.cjs"),ie=require("./Separator-DBsDhqCr.cjs");class le{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 f{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 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,o=Math.max(this.maxY,e.maxY)-i;return new f(t,i,l,o)}intersection(e){if(!this.intersects(e))return new f(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new f(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new f(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 z{copy(){return new z(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 oe=0;class D{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 se(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=++oe,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class ne extends D{constructor(e){super(e,"root")}}class se extends D{constructor(e,t,i){super(e,i),this.parent=t}}function re(n,e){if(n===e)return!0;if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}class ae{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 f}}class he{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 f(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 o=new f(i,l,t.width,t.height);this.delegate.setVisibleRect(o)}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 f(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let o=this.layout.getVisibleLayoutInfos(l),s=new Map;for(let a of o)s.set(a.key,a);return s}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let o=e.get(i);(!o||l.parent!==this.getParentView(o))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let o=this._visibleViews.get(i);if(!o)o=this.getReusableView(l),o.parent.children.add(o),this._visibleViews.set(i,o),t.delete(o);else{o.layoutInfo=l;let s=this.collection.getItem(l.key);o.content!==s&&(o.content!=null&&this._renderedContent.delete(o.content),this._renderView(o))}}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,o=!1,s=!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&&!re(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),o=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(o||(o=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),s||(s=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=s||o||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:o,itemSizeChanged:s,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 z,this.visibleRect=new f,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new ne(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new ae}}function de(n){let[e,t]=c.useState(new f(0,0,0,0)),[i,l]=c.useState(!1),[o,s]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new he({collection:n.collection,layout:n.layout,delegate:{setVisibleRect(w){t(w),a.current=!0},renderView:n.renderView,invalidate:s}}));C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{a.current&&(a.current=!1,n.onVisibleRectChange(e))});let r=c.useMemo(()=>n.layoutOptions!=null?{...o,layoutOptions:n.layoutOptions}:o,[o,n.layoutOptions]),d=h.render({layout:n.layout,collection:n.collection,persistedKeys:n.persistedKeys,layoutOptions:n.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,g=c.useCallback(()=>{l(!0)},[]),y=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:g,endScrolling:y}),[h,d,t,u,i,g,y])}const I=48;class ce extends le{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 s=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:I)+this.gap;e.y=Math.floor(e.y/s)*s,e.height=Math.ceil(e.height/s)*s}this.layoutIfNeeded(e);let l=[],o=s=>{for(let a of s)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&o(a.children))};return o(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 f(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new f(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,o,s,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!==((o=t==null?void 0:t.loaderHeight)!==null&&o!==void 0?o:this.loaderHeight)||this.gap!==((s=t==null?void 0:t.gap)!==null&&s!==void 0?s: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 o;this.estimatedRowHeight=(o=i==null?void 0:i.estimatedRowHeight)!==null&&o!==void 0?o:this.estimatedRowHeight;var s;this.headingHeight=(s=i==null?void 0:i.headingHeight)!==null&&s!==void 0?s: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 g of this.lastCollection.getKeys())t.getItem(g)||this.layoutNodes.get(g)&&this.layoutNodes.delete(g);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=0,l=[],o=(t==null?void 0:t.size)===0||t.size===1&&t.getItem(t.getFirstKey()).type==="loader";o&&(e=0);for(let r of t){var s,a;let d=((a=(s=this.rowHeight)!==null&&s!==void 0?s:this.estimatedRowHeight)!==null&&a!==void 0?a:I)+this.gap;if(r.type==="item"&&e+d<this.requestedRect.y&&!this.isValid(r,e)){e+=d,i++;continue}let u=this.buildChild(r,this.padding,e,null);if(e=u.layoutInfo.rect.maxY+this.gap,l.push(u),r.type==="item"&&e>this.requestedRect.maxY){var h;let g=t.size-(l.length+i),y=t.getItem(t.getLastKey());if((y==null?void 0:y.type)==="loader"&&g--,e+=g*d,(y==null?void 0:y.type)==="loader"&&((h=l.at(-1))===null||h===void 0?void 0:h.layoutInfo.type)!=="loader"){let v=this.buildChild(y,this.padding,e,null);l.push(v),e=v.layoutInfo.rect.maxY}break}}return e-=this.gap,e+=o?0:this.padding,this.contentSize=new z(this.virtualizer.visibleRect.width,e),l}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 o=this.buildNode(e,t,i);return o.layoutInfo.parentKey=l??null,o.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,o),o}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 f(t,i,this.padding,0),o=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var s,a,h;return l.height=e.props.isLoading?(h=(a=(s=this.loaderHeight)!==null&&s!==void 0?s:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:I:0,{layoutInfo:o,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,o=this.virtualizer.visibleRect.width-this.padding,s=new f(t,i,o-t,0),a=new b(e.type,e.key,s),h=i,r=0,d=[];for(let y of q.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,g;let v=((g=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&g!==void 0?g:I)+this.gap;if(i+v<this.requestedRect.y&&!this.isValid(e,i)){i+=v,r++;continue}let w=this.buildChild(y,t,i,a.key);if(i=w.layoutInfo.rect.maxY+this.gap,d.push(w),i>this.requestedRect.maxY){i+=([...q.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*v;break}}return i-=this.gap,s.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,o=this.headingHeight,s=!1;if(o==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),g=this.lastCollection?this.lastCollection.getItem(e.key):null;o=d.rect.height,s=l!==d.rect.width||u!==g||d.estimatedSize}else o=e.rendered?this.estimatedHeadingHeight:0,s=!0}o==null&&(o=I);let a=new f(t,i,l-t,o),h=new b("header",e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,o=this.rowHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key);r?(o=r.layoutInfo.rect.height,s=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(o=this.estimatedRowHeight,s=!0)}o==null&&(o=I);let a=new f(t,i,l,o),h=new b(e.type,e.key,a);return h.estimatedSize=s,{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,o=i.layoutInfo;if(o.estimatedSize=!1,o.rect.height!==t.height){let s=o.copy();s.rect.height=t.height,i.layoutInfo=s,this.validRect.height=Math.min(this.validRect.height,o.rect.y-this.validRect.y),this.requestedRect.height+=s.rect.height-o.rect.height,this.updateLayoutNode(e,o,s);let a=o.parentKey!=null?l.getItem(o.parentKey):null;for(;a;)this.updateLayoutNode(a.key,o,s),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 f(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),o=this.getVisibleLayoutInfos(l),s=null,a=1/0;for(let u of o){if(!u.rect.intersects(l))continue;let g=Math.abs(u.rect.y-t),y=Math.abs(u.rect.maxY-t),v=Math.min(g,y);v<a&&(a=v,s=u.key)}if(s==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(s);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;return e.dropPosition==="before"?i=new f(t.rect.x,t.rect.y-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness):e.dropPosition==="after"?i=new f(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness):i=t.rect,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 o;this.estimatedHeadingHeight=(o=e.estimatedHeadingHeight)!==null&&o!==void 0?o:null;var s;this.loaderHeight=(s=e.loaderHeight)!==null&&s!==void 0?s: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 f,this.requestedRect=new f,this.contentSize=new z}}let R=null;function ue(n=!1){if(R===null||n){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?R="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?R="negative":R="positive-ascending"),document.body.removeChild(e),R}return R}function fe(n,e){let{scrollLeft:t}=n;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=n;switch(ue()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function ge(n,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:o,onScrollEnd:s,scrollDirection:a="both",...h}=n,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,g]=c.useState(!1),y=c.useCallback(p=>{p.target===p.currentTarget&&(n.onScroll&&n.onScroll(p),T.flushSync(()=>{let m=p.currentTarget.scrollTop,H=fe(p.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(H,t.width-r.width)),i(new f(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,g(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),o&&o());let L=Date.now();r.scrollEndTime<=L+50&&(r.scrollEndTime=L+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(()=>{r.isScrolling=!1,g(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),s&&s()},300))}))},[n,d,r,t,i,o,s]);ee.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",y),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let v=c.useRef(!1),w=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(p=>{let m=e.current;if(!m||v.current)return;v.current=!0;let H=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,L=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),Q=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),O=m.clientWidth,P=m.clientHeight,N=H&&!L?1/0:O,E=H&&!Q?1/0:P;(r.width!==N||r.height!==E)&&(r.width=N,r.height=E,p(()=>{i(new f(r.scrollLeft,r.scrollTop,N,E))}),(!H&&O!==m.clientWidth||P!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,p(()=>{i(new f(r.scrollLeft,r.scrollTop,r.width,r.height))}))),v.current=!1}),_=c.useRef(null),[U,G]=c.useState({});C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!v.current&&(_.current==null||!t.equals(_.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){G({}),_.current=t;return}else queueMicrotask(()=>w(T.flushSync));_.current=t}),C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{w(p=>p())},[U]);let J=c.useCallback(()=>{w(T.flushSync)},[w]);Z.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:J});let $={padding:0,...h.style};return a==="horizontal"?($.overflowX="auto",$.overflowY="hidden"):a==="vertical"||t.width===r.width?($.overflowY="auto",$.overflowX="hidden"):$.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},{scrollViewProps:{...h,style:$},contentProps:{role:"presentation",style:l}}}function ye(n){let{layoutInfo:e,virtualizer:t,ref:i}=n,l=e==null?void 0:e.key,o=c.useCallback(()=>{if(l!=null&&i.current){let s=ve(i.current);t.updateItemSize(l,s)}},[t,l,i]);return C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&o()}),{updateSize:o}}function ve(n){let e=n.style.height;n.style.height="";let t=new z(n.scrollWidth,n.scrollHeight);return n.style.height=e,t}function X(n){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:o,children:s}=n,{direction:a}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ye({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...pe(i,a,o),...e}},s)}let B=new WeakMap;function pe(n,e,t){let i=e==="rtl"?"right":"left",l=B.get(n);if(l&&l[i]!=null){if(!t)return l;let h=n.rect.y-t.rect.y,r=n.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let o={top:n.rect.y-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.y:0),[i]:n.rect.x-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.x:0),width:n.rect.width,height:n.rect.height};Object.entries(o).forEach(([h,r])=>{Number.isFinite(r)||(o[h]=void 0)});var s;let a={position:n.isSticky?"sticky":"absolute",display:n.isSticky?"inline-block":void 0,overflow:n.allowOverflow?"visible":"hidden",opacity:n.opacity,zIndex:n.zIndex,transform:(s=n.transform)!==null&&s!==void 0?s:void 0,contain:"size layout style",...o};return B.set(n,a),a}const j=c.createContext(null),A=c.createContext(null);function we(n){let{children:e,layout:t,layoutOptions:i}=n,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),o=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:me,CollectionBranch:be}),[l]);return c.createElement(Y.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:o},c.createElement(A.Provider,{value:{layout:l,layoutOptions:i}},e))}function me({collection:n,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:o,layoutOptions:s}=c.useContext(A),a=(l=o.useLayoutOptions)===null||l===void 0?void 0:l.call(o),h=de({layout:o,collection:n,renderView:(d,u)=>{var g;return u==null||(g=u.render)===null||g===void 0?void 0:g.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(()=>s&&a?{...s,...a}:s||a,[s,a])}),{contentProps:r}=ge({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(j.Provider,{value:h},F(null,h.visibleViews,i)))}function be({parent:n,renderDropIndicator:e}){let i=c.useContext(j).virtualizer.getVisibleView(n.key);return F(i,Array.from(i.children),e)}function F(n,e,t){return e.map(i=>xe(n,i,t))}function xe(n,e,t){let i=c.createElement(X,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},e.rendered),{collection:l,layout:o}=e.virtualizer,s=e.content;return(s==null?void 0:s.type)==="item"&&t&&o.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},K(n,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,Y.$7135fc7d473fd974$export$2dbbd341daed716d(l,s,a=>K(n,e,a,t)))),i}function K(n,e,t,i){let l=i(t);if(l){let o=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(X,{layoutInfo:o,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},l)}return l}class $e extends ce{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_1f4kp_7",Re="_listBoxPopover_1f4kp_19",Se="_listBoxSectionHeading_1f4kp_31",ze="_listBoxButton_1f4kp_40",He="_listBoxItem_1f4kp_52",k={listBox:Ie,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:ze,listBoxItem:He},Ce=({className:n,children:e,...t})=>S.jsx(we,{layout:$e,layoutOptions:{headingHeight:44},children:S.jsx(V.$eed445e0843c11d0$export$41f133550aa26f48,{className:M.clsx(k.listBox,n),...t,children:e})}),ke=({children:n,className:e,...t})=>S.jsx(V.$eed445e0843c11d0$export$a11e76429ed99b4,{className:M.clsx(k.listBoxItem,e),...t,children:n}),_e=({className:n,children:e,...t})=>S.jsx(te.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:M.clsx(n,k.listBoxPopover),offset:0,...t,children:e}),Le=({children:n,name:e,...t})=>S.jsxs(V.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...t,children:[S.jsx(ie.$72a5793c14baf454$export$8b251419efc915eb,{className:k.listBoxSectionHeading,children:e}),n]});exports.ListBox=Ce;exports.ListBoxItem=ke;exports.ListBoxPopover=_e;exports.ListBoxSection=Le;exports.styles=k;
@@ -1 +0,0 @@
1
- "use strict";const u=require("./context-UOrD6Zxk.cjs"),c=require("./SelectionManager-BvREZgeu.cjs"),h=require("./scrollIntoView-DRSoJp89.cjs");let s=new Map;function g(n){let{locale:e}=u.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=e+(n?Object.entries(n).sort((l,o)=>l[0]<o[0]?-1:1).join():"");if(s.has(t))return s.get(t);let i=new Intl.Collator(e,n);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(),o=i.getBoundingClientRect();return{x:o.left-l.left+t.scrollLeft,y:o.top-l.top+t.scrollTop,width:o.width,height:o.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,o;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.offsetWidth)!==null&&l!==void 0?l:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o: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,o=this.layoutDelegate.getItemRect(l);if(!o||l==null)return null;let r=o;do{if(l=t(l),l==null)break;o=this.layoutDelegate.getItemRect(l)}while(o&&i(r,o)&&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 o=Math.max(0,i.x+i.width-this.layoutDelegate.getVisibleRect().width);for(;i&&i.x>o&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let o=Math.max(0,i.y+i.height-this.layoutDelegate.getVisibleRect().height);for(;i&&i.y>o&&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 o=Math.min(this.layoutDelegate.getContentSize().width,i.y-i.width+this.layoutDelegate.getVisibleRect().width);for(;i&&i.x<o&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,i.y-i.height+this.layoutDelegate.getVisibleRect().height);for(;i&&i.y<o&&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 o=i.getItem(l);if(!o)return null;let r=o.textValue.slice(0,e.length);if(o.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 +0,0 @@
1
- "use strict";const B=require("./mergeProps-C7Sx47fA.cjs"),fe=require("react-dom"),w=require("react"),ue=require("./useHover-CaFzQrR_.cjs"),G=require("./number-E0x3H9cL.cjs"),pe=require("./context-UOrD6Zxk.cjs"),$e=require("./useControlledState-D0L6S_5r.cjs"),Q=require("./utils-BM2vxlNA.cjs"),me=require("./filterDOMProps-BS2lrgFA.cjs");function ve(){return typeof window.ResizeObserver<"u"}function J(t){const{ref:e,box:l,onResize:n}=t;w.useEffect(()=>{let o=e==null?void 0:e.current;if(o)if(ve()){const r=new window.ResizeObserver(c=>{c.length&&n()});return r.observe(o,{box:l}),()=>{o&&r.unobserve(o)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,e,l])}function ge(t,e=!0){let[l,n]=w.useState(!0),o=l&&e;return B.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(o&&t.current&&"getAnimations"in t.current)for(let r of t.current.getAnimations())r instanceof CSSTransition&&r.cancel()},[t,o]),le(t,o,w.useCallback(()=>n(!1),[])),o}function be(t,e){let[l,n]=w.useState(e?"open":"closed");switch(l){case"open":e||n("exiting");break;case"closed":case"exiting":e&&n("open");break}let o=l==="exiting";return le(t,o,w.useCallback(()=>{n(r=>r==="exiting"?"closed":r)},[])),o}function le(t,e,l){B.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){l();return}let n=t.current.getAnimations();if(n.length===0){l();return}let o=!1;return Promise.all(n.map(r=>r.finished)).then(()=>{o||fe.flushSync(()=>{l()})}).catch(()=>{}),()=>{o=!0}}},[t,e,l])}const M={top:"top",bottom:"top",left:"left",right:"left"},X={top:"bottom",bottom:"top",left:"right",right:"left"},he={top:"left",left:"top"},K={top:"height",left:"width"},ne={width:"totalWidth",height:"totalHeight"},Y={};let P=typeof document<"u"?window.visualViewport:null;function W(t){let e=0,l=0,n=0,o=0,r=0,c=0,i={};var g;let d=((g=P==null?void 0:P.scale)!==null&&g!==void 0?g:1)>1;if(t.tagName==="BODY"){let f=document.documentElement;n=f.clientWidth,o=f.clientHeight;var u;e=(u=P==null?void 0:P.width)!==null&&u!==void 0?u:n;var v;l=(v=P==null?void 0:P.height)!==null&&v!==void 0?v:o,i.top=f.scrollTop||t.scrollTop,i.left=f.scrollLeft||t.scrollLeft,P&&(r=P.offsetTop,c=P.offsetLeft)}else({width:e,height:l,top:r,left:c}=q(t)),i.top=t.scrollTop,i.left=t.scrollLeft,n=e,o=l;if(ue.$c87311424ea30a05$export$78551043582a6a98()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d){i.top=0,i.left=0;var p;r=(p=P==null?void 0:P.pageTop)!==null&&p!==void 0?p:0;var a;c=(a=P==null?void 0:P.pageLeft)!==null&&a!==void 0?a:0}return{width:e,height:l,totalWidth:n,totalHeight:o,scroll:i,top:r,left:c}}function xe(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function D(t,e,l,n,o,r,c){var i;let g=(i=o.scroll[t])!==null&&i!==void 0?i:0,d=n[K[t]],u=n.scroll[M[t]]+r,v=d+n.scroll[M[t]]-r,p=e-g+c[t]-n[M[t]],a=e-g+l+c[t]-n[M[t]];return p<u?u-p:a>v?Math.max(v-a,u-p):0}function we(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 V(t){if(Y[t])return Y[t];let[e,l]=t.split(" "),n=M[e]||"right",o=he[n];M[l]||(l="center");let r=K[n],c=K[o];return Y[t]={placement:e,crossPlacement:l,axis:n,crossAxis:o,size:r,crossSize:c},Y[t]}function U(t,e,l,n,o,r,c,i,g,d){let{placement:u,crossPlacement:v,axis:p,crossAxis:a,size:f,crossSize:b}=n,s={};var $;s[a]=($=t[a])!==null&&$!==void 0?$:0;var m,C,T,S;v==="center"?s[a]+=(((m=t[b])!==null&&m!==void 0?m:0)-((C=l[b])!==null&&C!==void 0?C:0))/2:v!==a&&(s[a]+=((T=t[b])!==null&&T!==void 0?T:0)-((S=l[b])!==null&&S!==void 0?S:0)),s[a]+=r;const h=t[a]-l[b]+g+d,y=t[a]+t[b]-g-d;if(s[a]=G.$9446cca9a3875146$export$7d15b64cf5a3a4c4(s[a],h,y),u===p){const A=i?c[f]:e[ne[f]];s[X[p]]=Math.floor(A-t[p]+o)}else s[p]=Math.floor(t[p]+t[f]+o);return s}function Ee(t,e,l,n,o,r,c,i){const g=n?l.height:e[ne.height];var d;let u=t.top!=null?l.top+t.top:l.top+(g-((d=t.bottom)!==null&&d!==void 0?d:0)-c);var v,p,a,f,b,s;let $=i!=="top"?Math.max(0,e.height+e.top+((v=e.scroll.top)!==null&&v!==void 0?v:0)-u-(((p=o.top)!==null&&p!==void 0?p:0)+((a=o.bottom)!==null&&a!==void 0?a:0)+r)):Math.max(0,u+c-(e.top+((f=e.scroll.top)!==null&&f!==void 0?f:0))-(((b=o.top)!==null&&b!==void 0?b:0)+((s=o.bottom)!==null&&s!==void 0?s:0)+r));return Math.min(e.height-r*2,$)}function ee(t,e,l,n,o,r){let{placement:c,axis:i,size:g}=r;var d,u;if(c===i)return Math.max(0,l[i]-t[i]-((d=t.scroll[i])!==null&&d!==void 0?d:0)+e[i]-((u=n[i])!==null&&u!==void 0?u:0)-n[X[i]]-o);var v;return Math.max(0,t[g]+t[i]+t.scroll[i]-e[i]-l[i]-l[g]-((v=n[i])!==null&&v!==void 0?v:0)-n[X[i]]-o)}function Ce(t,e,l,n,o,r,c,i,g,d,u,v,p,a,f,b){let s=V(t),{size:$,crossAxis:m,crossSize:C,placement:T,crossPlacement:S}=s,h=U(e,i,l,s,u,v,d,p,f,b),y=u,A=ee(i,d,e,o,r+u,s);if(c&&n[$]>A){let j=V(`${X[T]} ${S}`),de=U(e,i,l,j,u,v,d,p,f,b);ee(i,d,e,o,r+u,j)>A&&(s=j,h=de,y=u)}let z="bottom";s.axis==="top"?s.placement==="top"?z="top":s.placement==="bottom"&&(z="bottom"):s.crossAxis==="top"&&(s.crossPlacement==="top"?z="bottom":s.crossPlacement==="bottom"&&(z="top"));let E=D(m,h[m],l[C],i,g,r,d);h[m]+=E;let R=Ee(h,i,d,p,o,r,l.height,z);a&&a<R&&(R=a),l.height=Math.min(l.height,R),h=U(e,i,l,s,y,v,d,p,f,b),E=D(m,h[m],l[C],i,g,r,d),h[m]+=E;let H={},O=e[m]+.5*e[C]-h[m]-o[M[m]];const _=f/2+b;var k,N,I,L;const F=M[m]==="left"?((k=o.left)!==null&&k!==void 0?k:0)+((N=o.right)!==null&&N!==void 0?N:0):((I=o.top)!==null&&I!==void 0?I:0)+((L=o.bottom)!==null&&L!==void 0?L:0),Z=l[C]-F-f/2-b,ae=e[m]+f/2-(h[m]+o[M[m]]),ce=e[m]+e[C]-f/2-(h[m]+o[M[m]]),se=G.$9446cca9a3875146$export$7d15b64cf5a3a4c4(O,ae,ce);return H[m]=G.$9446cca9a3875146$export$7d15b64cf5a3a4c4(se,_,Z),{position:h,maxHeight:R,arrowOffsetLeft:H.left,arrowOffsetTop:H.top,placement:s.placement}}function Pe(t){let{placement:e,targetNode:l,overlayNode:n,scrollNode:o,padding:r,shouldFlip:c,boundaryElement:i,offset:g,crossOffset:d,maxHeight:u,arrowSize:v=0,arrowBoundaryOffset:p=0}=t,a=n instanceof HTMLElement?Se(n):document.documentElement,f=a===document.documentElement;const b=window.getComputedStyle(a).position;let s=!!b&&b!=="static",$=f?q(l):te(l,a);if(!f){let{marginTop:H,marginLeft:O}=window.getComputedStyle(l);$.top+=parseInt(H,10)||0,$.left+=parseInt(O,10)||0}let m=q(n),C=we(n);var T,S;m.width+=((T=C.left)!==null&&T!==void 0?T:0)+((S=C.right)!==null&&S!==void 0?S:0);var h,y;m.height+=((h=C.top)!==null&&h!==void 0?h:0)+((y=C.bottom)!==null&&y!==void 0?y:0);let A=xe(o),z=W(i),E=W(a),R=i.tagName==="BODY"?q(a):te(a,i);return a.tagName==="HTML"&&i.tagName==="BODY"&&(E.scroll.top=0,E.scroll.left=0),Ce(e,$,m,A,C,r,c,z,E,R,g,d,s,u,v,p)}function q(t){let{top:e,left:l,width:n,height:o}=t.getBoundingClientRect(),{scrollTop:r,scrollLeft:c,clientTop:i,clientLeft:g}=document.documentElement;return{top:e+r-i,left:l+c-g,width:n,height:o}}function te(t,e){let l=window.getComputedStyle(t),n;if(l.position==="fixed"){let{top:o,left:r,width:c,height:i}=t.getBoundingClientRect();n={top:o,left:r,width:c,height:i}}else{n=q(t);let o=q(e),r=window.getComputedStyle(e);o.top+=(parseInt(r.borderTopWidth,10)||0)-e.scrollTop,o.left+=(parseInt(r.borderLeftWidth,10)||0)-e.scrollLeft,n.top-=o.top,n.left-=o.left}return n.top-=parseInt(l.marginTop,10)||0,n.left-=parseInt(l.marginLeft,10)||0,n}function Se(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!oe(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!oe(e);)e=e.parentElement;return e||document.documentElement}function oe(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 re=new WeakMap;function Le(t){let{triggerRef:e,isOpen:l,onClose:n}=t;w.useEffect(()=>{if(!l||n===null)return;let o=r=>{let c=r.target;if(!e.current||c instanceof Node&&!c.contains(e.current)||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement)return;let i=n||re.get(e.current);i&&i()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[l,n,e])}let x=typeof document<"u"?window.visualViewport:null;function Re(t){let{direction:e}=pe.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{arrowSize:l=0,targetRef:n,overlayRef:o,scrollRef:r=o,placement:c="bottom",containerPadding:i=12,shouldFlip:g=!0,boundaryElement:d=typeof document<"u"?document.body:null,offset:u=0,crossOffset:v=0,shouldUpdatePosition:p=!0,isOpen:a=!0,onClose:f,maxHeight:b,arrowBoundaryOffset:s=0}=t,[$,m]=w.useState(null),C=[p,c,o.current,n.current,r.current,i,g,d,u,v,a,e,b,s,l],T=w.useRef(x==null?void 0:x.scale);w.useEffect(()=>{a&&(T.current=x==null?void 0:x.scale)},[a]);let S=w.useCallback(()=>{if(p===!1||!a||!o.current||!n.current||!d||(x==null?void 0:x.scale)!==T.current)return;let E=null;if(r.current&&r.current.contains(document.activeElement)){var R;let L=(R=document.activeElement)===null||R===void 0?void 0:R.getBoundingClientRect(),F=r.current.getBoundingClientRect();var H;if(E={type:"top",offset:((H=L==null?void 0:L.top)!==null&&H!==void 0?H:0)-F.top},E.offset>F.height/2){E.type="bottom";var O;E.offset=((O=L==null?void 0:L.bottom)!==null&&O!==void 0?O:0)-F.bottom}}let _=o.current;if(!b&&o.current){var k;_.style.top="0px",_.style.bottom="";var N;_.style.maxHeight=((N=(k=window.visualViewport)===null||k===void 0?void 0:k.height)!==null&&N!==void 0?N:window.innerHeight)+"px"}let I=Pe({placement:He(c,e),overlayNode:o.current,targetNode:n.current,scrollNode:r.current||o.current,padding:i,shouldFlip:g,boundaryElement:d,offset:u,crossOffset:v,maxHeight:b,arrowSize:l,arrowBoundaryOffset:s});if(I.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(I.position).forEach(L=>_.style[L]=I.position[L]+"px"),_.style.maxHeight=I.maxHeight!=null?I.maxHeight+"px":"",E&&document.activeElement&&r.current){let L=document.activeElement.getBoundingClientRect(),F=r.current.getBoundingClientRect(),Z=L[E.type]-F[E.type];r.current.scrollTop+=Z-E.offset}m(I)}},C);B.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(S,C),Te(S),J({ref:o,onResize:S}),J({ref:n,onResize:S});let h=w.useRef(!1);B.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let E,R=()=>{h.current=!0,clearTimeout(E),E=setTimeout(()=>{h.current=!1},500),S()},H=()=>{h.current&&R()};return x==null||x.addEventListener("resize",R),x==null||x.addEventListener("scroll",H),()=>{x==null||x.removeEventListener("resize",R),x==null||x.removeEventListener("scroll",H)}},[S]);let y=w.useCallback(()=>{h.current||f==null||f()},[f,h]);Le({triggerRef:n,isOpen:a,onClose:f&&y});var A,z;return{overlayProps:{style:{position:"absolute",zIndex:1e5,...$==null?void 0:$.position,maxHeight:(A=$==null?void 0:$.maxHeight)!==null&&A!==void 0?A:"100vh"}},placement:(z=$==null?void 0:$.placement)!==null&&z!==void 0?z:null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:$==null?void 0:$.arrowOffsetLeft,top:$==null?void 0:$.arrowOffsetTop}},updatePosition:S}}function Te(t){B.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function He(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}const ze=w.createContext({});function _e(){var t;return(t=w.useContext(ze))!==null&&t!==void 0?t:{}}function ye(t){let[e,l]=$e.$458b0a5536c1a7cf$export$40bfa8c7b0832715(t.isOpen,t.defaultOpen||!1,t.onOpenChange);const n=w.useCallback(()=>{l(!0)},[l]),o=w.useCallback(()=>{l(!1)},[l]),r=w.useCallback(()=>{l(!e)},[l,e]);return{isOpen:e,setOpen:l,open:n,close:o,toggle:r}}const ie=w.createContext({placement:"bottom"}),Ae=w.forwardRef(function(e,l){[e,l]=Q.$64fa3d84918910a7$export$29f1550f4b0d4415(e,l,ie);let n=e.placement,o={position:"absolute",transform:n==="top"||n==="bottom"?"translateX(-50%)":"translateY(-50%)"};n!=null&&(o[n]="100%");let r=Q.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-OverlayArrow",values:{placement:n}});r.style&&Object.keys(r.style).forEach(i=>r.style[i]===void 0&&delete r.style[i]);let c=me.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);return w.createElement("div",{...c,...r,style:{...o,...r.style},ref:l,"data-placement":n})});exports.$2a41e45df1593e64$export$d39e1813b3bdd0e1=Re;exports.$44f671af83e7d9e0$export$2de4954e8ae13b9f=ie;exports.$44f671af83e7d9e0$export$746d02f47f4d381=Ae;exports.$96b38030c423d352$export$9fc1347d4195ccb3=_e;exports.$9daab02d461809db$export$683480f191c0e3ea=J;exports.$d3f049242431219c$export$45fda7c47f93fd48=be;exports.$d3f049242431219c$export$6d3443f2c48bfc20=ge;exports.$dd149f63282afbbf$export$f6211563215e3b37=re;exports.$fc909762b330b746$export$61c6a8c84e605fb6=ye;
@@ -1,507 +0,0 @@
1
- import { $ as Y } from "./mergeProps-BYJQ6N1s.js";
2
- import { flushSync as ue } from "react-dom";
3
- import pe, { useEffect as K, useState as Q, useCallback as F, useRef as W, useContext as me, createContext as re, forwardRef as ve } from "react";
4
- import { i as $e } from "./useHover-D8fja4GW.js";
5
- import { $ as q } from "./number-BE8InLgI.js";
6
- import { $ as ge } from "./context-Dl_saGB6.js";
7
- import { $ as he } from "./useControlledState-u436Wbp1.js";
8
- import { $ as be, a as xe } from "./utils-KYuflGZt.js";
9
- import { $ as we } from "./filterDOMProps-D6KHYVBX.js";
10
- function Ee() {
11
- return typeof window.ResizeObserver < "u";
12
- }
13
- function D(t) {
14
- const { ref: e, box: l, onResize: n } = t;
15
- K(() => {
16
- let o = e == null ? void 0 : e.current;
17
- if (o)
18
- if (Ee()) {
19
- const r = new window.ResizeObserver((c) => {
20
- c.length && n();
21
- });
22
- return r.observe(o, {
23
- box: l
24
- }), () => {
25
- o && r.unobserve(o);
26
- };
27
- } else
28
- return window.addEventListener("resize", n, !1), () => {
29
- window.removeEventListener("resize", n, !1);
30
- };
31
- }, [
32
- n,
33
- e,
34
- l
35
- ]);
36
- }
37
- function Ge(t, e = !0) {
38
- let [l, n] = Q(!0), o = l && e;
39
- return Y(() => {
40
- if (o && t.current && "getAnimations" in t.current)
41
- for (let r of t.current.getAnimations()) r instanceof CSSTransition && r.cancel();
42
- }, [
43
- t,
44
- o
45
- ]), ie(t, o, F(() => n(!1), [])), o;
46
- }
47
- function qe(t, e) {
48
- let [l, n] = Q(e ? "open" : "closed");
49
- switch (l) {
50
- case "open":
51
- e || n("exiting");
52
- break;
53
- case "closed":
54
- case "exiting":
55
- e && n("open");
56
- break;
57
- }
58
- let o = l === "exiting";
59
- return ie(t, o, F(() => {
60
- n((r) => r === "exiting" ? "closed" : r);
61
- }, [])), o;
62
- }
63
- function ie(t, e, l) {
64
- Y(() => {
65
- if (e && t.current) {
66
- if (!("getAnimations" in t.current)) {
67
- l();
68
- return;
69
- }
70
- let n = t.current.getAnimations();
71
- if (n.length === 0) {
72
- l();
73
- return;
74
- }
75
- let o = !1;
76
- return Promise.all(n.map((r) => r.finished)).then(() => {
77
- o || ue(() => {
78
- l();
79
- });
80
- }).catch(() => {
81
- }), () => {
82
- o = !0;
83
- };
84
- }
85
- }, [
86
- t,
87
- e,
88
- l
89
- ]);
90
- }
91
- const I = {
92
- top: "top",
93
- bottom: "top",
94
- left: "left",
95
- right: "left"
96
- }, Z = {
97
- top: "bottom",
98
- bottom: "top",
99
- left: "right",
100
- right: "left"
101
- }, Pe = {
102
- top: "left",
103
- left: "top"
104
- }, J = {
105
- top: "height",
106
- left: "width"
107
- }, ae = {
108
- width: "totalWidth",
109
- height: "totalHeight"
110
- }, X = {};
111
- let P = typeof document < "u" ? window.visualViewport : null;
112
- function V(t) {
113
- let e = 0, l = 0, n = 0, o = 0, r = 0, c = 0, i = {};
114
- var g;
115
- let f = ((g = P == null ? void 0 : P.scale) !== null && g !== void 0 ? g : 1) > 1;
116
- if (t.tagName === "BODY") {
117
- let d = document.documentElement;
118
- n = d.clientWidth, o = d.clientHeight;
119
- var u;
120
- e = (u = P == null ? void 0 : P.width) !== null && u !== void 0 ? u : n;
121
- var $;
122
- l = ($ = P == null ? void 0 : P.height) !== null && $ !== void 0 ? $ : o, i.top = d.scrollTop || t.scrollTop, i.left = d.scrollLeft || t.scrollLeft, P && (r = P.offsetTop, c = P.offsetLeft);
123
- } else
124
- ({ width: e, height: l, top: r, left: c } = B(t)), i.top = t.scrollTop, i.left = t.scrollLeft, n = e, o = l;
125
- if ($e() && (t.tagName === "BODY" || t.tagName === "HTML") && f) {
126
- i.top = 0, i.left = 0;
127
- var p;
128
- r = (p = P == null ? void 0 : P.pageTop) !== null && p !== void 0 ? p : 0;
129
- var a;
130
- c = (a = P == null ? void 0 : P.pageLeft) !== null && a !== void 0 ? a : 0;
131
- }
132
- return {
133
- width: e,
134
- height: l,
135
- totalWidth: n,
136
- totalHeight: o,
137
- scroll: i,
138
- top: r,
139
- left: c
140
- };
141
- }
142
- function Ce(t) {
143
- return {
144
- top: t.scrollTop,
145
- left: t.scrollLeft,
146
- width: t.scrollWidth,
147
- height: t.scrollHeight
148
- };
149
- }
150
- function ee(t, e, l, n, o, r, c) {
151
- var i;
152
- let g = (i = o.scroll[t]) !== null && i !== void 0 ? i : 0, f = n[J[t]], u = n.scroll[I[t]] + r, $ = f + n.scroll[I[t]] - r, p = e - g + c[t] - n[I[t]], a = e - g + l + c[t] - n[I[t]];
153
- return p < u ? u - p : a > $ ? Math.max($ - a, u - p) : 0;
154
- }
155
- function Le(t) {
156
- let e = window.getComputedStyle(t);
157
- return {
158
- top: parseInt(e.marginTop, 10) || 0,
159
- bottom: parseInt(e.marginBottom, 10) || 0,
160
- left: parseInt(e.marginLeft, 10) || 0,
161
- right: parseInt(e.marginRight, 10) || 0
162
- };
163
- }
164
- function te(t) {
165
- if (X[t]) return X[t];
166
- let [e, l] = t.split(" "), n = I[e] || "right", o = Pe[n];
167
- I[l] || (l = "center");
168
- let r = J[n], c = J[o];
169
- return X[t] = {
170
- placement: e,
171
- crossPlacement: l,
172
- axis: n,
173
- crossAxis: o,
174
- size: r,
175
- crossSize: c
176
- }, X[t];
177
- }
178
- function G(t, e, l, n, o, r, c, i, g, f) {
179
- let { placement: u, crossPlacement: $, axis: p, crossAxis: a, size: d, crossSize: h } = n, s = {};
180
- var m;
181
- s[a] = (m = t[a]) !== null && m !== void 0 ? m : 0;
182
- var v, E, R, C;
183
- $ === "center" ? s[a] += (((v = t[h]) !== null && v !== void 0 ? v : 0) - ((E = l[h]) !== null && E !== void 0 ? E : 0)) / 2 : $ !== a && (s[a] += ((R = t[h]) !== null && R !== void 0 ? R : 0) - ((C = l[h]) !== null && C !== void 0 ? C : 0)), s[a] += r;
184
- const b = t[a] - l[h] + g + f, H = t[a] + t[h] - g - f;
185
- if (s[a] = q(s[a], b, H), u === p) {
186
- const y = i ? c[d] : e[ae[d]];
187
- s[Z[p]] = Math.floor(y - t[p] + o);
188
- } else s[p] = Math.floor(t[p] + t[d] + o);
189
- return s;
190
- }
191
- function Se(t, e, l, n, o, r, c, i) {
192
- const g = n ? l.height : e[ae.height];
193
- var f;
194
- let u = t.top != null ? l.top + t.top : l.top + (g - ((f = t.bottom) !== null && f !== void 0 ? f : 0) - c);
195
- var $, p, a, d, h, s;
196
- let m = i !== "top" ? (
197
- // We want the distance between the top of the overlay to the bottom of the boundary
198
- Math.max(0, e.height + e.top + (($ = e.scroll.top) !== null && $ !== void 0 ? $ : 0) - u - (((p = o.top) !== null && p !== void 0 ? p : 0) + ((a = o.bottom) !== null && a !== void 0 ? a : 0) + r))
199
- ) : Math.max(0, u + c - (e.top + ((d = e.scroll.top) !== null && d !== void 0 ? d : 0)) - (((h = o.top) !== null && h !== void 0 ? h : 0) + ((s = o.bottom) !== null && s !== void 0 ? s : 0) + r));
200
- return Math.min(e.height - r * 2, m);
201
- }
202
- function oe(t, e, l, n, o, r) {
203
- let { placement: c, axis: i, size: g } = r;
204
- var f, u;
205
- if (c === i) return Math.max(0, l[i] - t[i] - ((f = t.scroll[i]) !== null && f !== void 0 ? f : 0) + e[i] - ((u = n[i]) !== null && u !== void 0 ? u : 0) - n[Z[i]] - o);
206
- var $;
207
- return Math.max(0, t[g] + t[i] + t.scroll[i] - e[i] - l[i] - l[g] - (($ = n[i]) !== null && $ !== void 0 ? $ : 0) - n[Z[i]] - o);
208
- }
209
- function Re(t, e, l, n, o, r, c, i, g, f, u, $, p, a, d, h) {
210
- let s = te(t), { size: m, crossAxis: v, crossSize: E, placement: R, crossPlacement: C } = s, b = G(e, i, l, s, u, $, f, p, d, h), H = u, y = oe(i, f, e, o, r + u, s);
211
- if (c && n[m] > y) {
212
- let U = te(`${Z[R]} ${C}`), de = G(e, i, l, U, u, $, f, p, d, h);
213
- oe(i, f, e, o, r + u, U) > y && (s = U, b = de, H = u);
214
- }
215
- let _ = "bottom";
216
- s.axis === "top" ? s.placement === "top" ? _ = "top" : s.placement === "bottom" && (_ = "bottom") : s.crossAxis === "top" && (s.crossPlacement === "top" ? _ = "bottom" : s.crossPlacement === "bottom" && (_ = "top"));
217
- let w = ee(v, b[v], l[E], i, g, r, f);
218
- b[v] += w;
219
- let S = Se(b, i, f, p, o, r, l.height, _);
220
- a && a < S && (S = a), l.height = Math.min(l.height, S), b = G(e, i, l, s, H, $, f, p, d, h), w = ee(v, b[v], l[E], i, g, r, f), b[v] += w;
221
- let T = {}, M = e[v] + 0.5 * e[E] - b[v] - o[I[v]];
222
- const z = d / 2 + h;
223
- var O, k, A, L;
224
- const N = I[v] === "left" ? ((O = o.left) !== null && O !== void 0 ? O : 0) + ((k = o.right) !== null && k !== void 0 ? k : 0) : ((A = o.top) !== null && A !== void 0 ? A : 0) + ((L = o.bottom) !== null && L !== void 0 ? L : 0), j = l[E] - N - d / 2 - h, ce = e[v] + d / 2 - (b[v] + o[I[v]]), se = e[v] + e[E] - d / 2 - (b[v] + o[I[v]]), fe = q(M, ce, se);
225
- return T[v] = q(fe, z, j), {
226
- position: b,
227
- maxHeight: S,
228
- arrowOffsetLeft: T.left,
229
- arrowOffsetTop: T.top,
230
- placement: s.placement
231
- };
232
- }
233
- function Te(t) {
234
- let { placement: e, targetNode: l, overlayNode: n, scrollNode: o, padding: r, shouldFlip: c, boundaryElement: i, offset: g, crossOffset: f, maxHeight: u, arrowSize: $ = 0, arrowBoundaryOffset: p = 0 } = t, a = n instanceof HTMLElement ? _e(n) : document.documentElement, d = a === document.documentElement;
235
- const h = window.getComputedStyle(a).position;
236
- let s = !!h && h !== "static", m = d ? B(l) : le(l, a);
237
- if (!d) {
238
- let { marginTop: T, marginLeft: M } = window.getComputedStyle(l);
239
- m.top += parseInt(T, 10) || 0, m.left += parseInt(M, 10) || 0;
240
- }
241
- let v = B(n), E = Le(n);
242
- var R, C;
243
- v.width += ((R = E.left) !== null && R !== void 0 ? R : 0) + ((C = E.right) !== null && C !== void 0 ? C : 0);
244
- var b, H;
245
- v.height += ((b = E.top) !== null && b !== void 0 ? b : 0) + ((H = E.bottom) !== null && H !== void 0 ? H : 0);
246
- let y = Ce(o), _ = V(i), w = V(a), S = i.tagName === "BODY" ? B(a) : le(a, i);
247
- return a.tagName === "HTML" && i.tagName === "BODY" && (w.scroll.top = 0, w.scroll.left = 0), Re(e, m, v, y, E, r, c, _, w, S, g, f, s, u, $, p);
248
- }
249
- function B(t) {
250
- let { top: e, left: l, width: n, height: o } = t.getBoundingClientRect(), { scrollTop: r, scrollLeft: c, clientTop: i, clientLeft: g } = document.documentElement;
251
- return {
252
- top: e + r - i,
253
- left: l + c - g,
254
- width: n,
255
- height: o
256
- };
257
- }
258
- function le(t, e) {
259
- let l = window.getComputedStyle(t), n;
260
- if (l.position === "fixed") {
261
- let { top: o, left: r, width: c, height: i } = t.getBoundingClientRect();
262
- n = {
263
- top: o,
264
- left: r,
265
- width: c,
266
- height: i
267
- };
268
- } else {
269
- n = B(t);
270
- let o = B(e), r = window.getComputedStyle(e);
271
- o.top += (parseInt(r.borderTopWidth, 10) || 0) - e.scrollTop, o.left += (parseInt(r.borderLeftWidth, 10) || 0) - e.scrollLeft, n.top -= o.top, n.left -= o.left;
272
- }
273
- return n.top -= parseInt(l.marginTop, 10) || 0, n.left -= parseInt(l.marginLeft, 10) || 0, n;
274
- }
275
- function _e(t) {
276
- let e = t.offsetParent;
277
- if (e && e === document.body && window.getComputedStyle(e).position === "static" && !ne(e) && (e = document.documentElement), e == null)
278
- for (e = t.parentElement; e && !ne(e); ) e = e.parentElement;
279
- return e || document.documentElement;
280
- }
281
- function ne(t) {
282
- let e = window.getComputedStyle(t);
283
- 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";
284
- }
285
- const ze = /* @__PURE__ */ new WeakMap();
286
- function He(t) {
287
- let { triggerRef: e, isOpen: l, onClose: n } = t;
288
- K(() => {
289
- if (!l || n === null) return;
290
- let o = (r) => {
291
- let c = r.target;
292
- if (!e.current || c instanceof Node && !c.contains(e.current) || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement) return;
293
- let i = n || ze.get(e.current);
294
- i && i();
295
- };
296
- return window.addEventListener("scroll", o, !0), () => {
297
- window.removeEventListener("scroll", o, !0);
298
- };
299
- }, [
300
- l,
301
- n,
302
- e
303
- ]);
304
- }
305
- let x = typeof document < "u" ? window.visualViewport : null;
306
- function Je(t) {
307
- let { direction: e } = ge(), { arrowSize: l = 0, targetRef: n, overlayRef: o, scrollRef: r = o, placement: c = "bottom", containerPadding: i = 12, shouldFlip: g = !0, boundaryElement: f = typeof document < "u" ? document.body : null, offset: u = 0, crossOffset: $ = 0, shouldUpdatePosition: p = !0, isOpen: a = !0, onClose: d, maxHeight: h, arrowBoundaryOffset: s = 0 } = t, [m, v] = Q(null), E = [
308
- p,
309
- c,
310
- o.current,
311
- n.current,
312
- r.current,
313
- i,
314
- g,
315
- f,
316
- u,
317
- $,
318
- a,
319
- e,
320
- h,
321
- s,
322
- l
323
- ], R = W(x == null ? void 0 : x.scale);
324
- K(() => {
325
- a && (R.current = x == null ? void 0 : x.scale);
326
- }, [
327
- a
328
- ]);
329
- let C = F(() => {
330
- if (p === !1 || !a || !o.current || !n.current || !f || (x == null ? void 0 : x.scale) !== R.current) return;
331
- let w = null;
332
- if (r.current && r.current.contains(document.activeElement)) {
333
- var S;
334
- let L = (S = document.activeElement) === null || S === void 0 ? void 0 : S.getBoundingClientRect(), N = r.current.getBoundingClientRect();
335
- var T;
336
- if (w = {
337
- type: "top",
338
- offset: ((T = L == null ? void 0 : L.top) !== null && T !== void 0 ? T : 0) - N.top
339
- }, w.offset > N.height / 2) {
340
- w.type = "bottom";
341
- var M;
342
- w.offset = ((M = L == null ? void 0 : L.bottom) !== null && M !== void 0 ? M : 0) - N.bottom;
343
- }
344
- }
345
- let z = o.current;
346
- if (!h && o.current) {
347
- var O;
348
- z.style.top = "0px", z.style.bottom = "";
349
- var k;
350
- z.style.maxHeight = ((k = (O = window.visualViewport) === null || O === void 0 ? void 0 : O.height) !== null && k !== void 0 ? k : window.innerHeight) + "px";
351
- }
352
- let A = Te({
353
- placement: Ae(c, e),
354
- overlayNode: o.current,
355
- targetNode: n.current,
356
- scrollNode: r.current || o.current,
357
- padding: i,
358
- shouldFlip: g,
359
- boundaryElement: f,
360
- offset: u,
361
- crossOffset: $,
362
- maxHeight: h,
363
- arrowSize: l,
364
- arrowBoundaryOffset: s
365
- });
366
- if (A.position) {
367
- if (z.style.top = "", z.style.bottom = "", z.style.left = "", z.style.right = "", Object.keys(A.position).forEach((L) => z.style[L] = A.position[L] + "px"), z.style.maxHeight = A.maxHeight != null ? A.maxHeight + "px" : "", w && document.activeElement && r.current) {
368
- let L = document.activeElement.getBoundingClientRect(), N = r.current.getBoundingClientRect(), j = L[w.type] - N[w.type];
369
- r.current.scrollTop += j - w.offset;
370
- }
371
- v(A);
372
- }
373
- }, E);
374
- Y(C, E), ye(C), D({
375
- ref: o,
376
- onResize: C
377
- }), D({
378
- ref: n,
379
- onResize: C
380
- });
381
- let b = W(!1);
382
- Y(() => {
383
- let w, S = () => {
384
- b.current = !0, clearTimeout(w), w = setTimeout(() => {
385
- b.current = !1;
386
- }, 500), C();
387
- }, T = () => {
388
- b.current && S();
389
- };
390
- return x == null || x.addEventListener("resize", S), x == null || x.addEventListener("scroll", T), () => {
391
- x == null || x.removeEventListener("resize", S), x == null || x.removeEventListener("scroll", T);
392
- };
393
- }, [
394
- C
395
- ]);
396
- let H = F(() => {
397
- b.current || d == null || d();
398
- }, [
399
- d,
400
- b
401
- ]);
402
- He({
403
- triggerRef: n,
404
- isOpen: a,
405
- onClose: d && H
406
- });
407
- var y, _;
408
- return {
409
- overlayProps: {
410
- style: {
411
- position: "absolute",
412
- zIndex: 1e5,
413
- ...m == null ? void 0 : m.position,
414
- maxHeight: (y = m == null ? void 0 : m.maxHeight) !== null && y !== void 0 ? y : "100vh"
415
- }
416
- },
417
- placement: (_ = m == null ? void 0 : m.placement) !== null && _ !== void 0 ? _ : null,
418
- arrowProps: {
419
- "aria-hidden": "true",
420
- role: "presentation",
421
- style: {
422
- left: m == null ? void 0 : m.arrowOffsetLeft,
423
- top: m == null ? void 0 : m.arrowOffsetTop
424
- }
425
- },
426
- updatePosition: C
427
- };
428
- }
429
- function ye(t) {
430
- Y(() => (window.addEventListener("resize", t, !1), () => {
431
- window.removeEventListener("resize", t, !1);
432
- }), [
433
- t
434
- ]);
435
- }
436
- function Ae(t, e) {
437
- return e === "rtl" ? t.replace("start", "right").replace("end", "left") : t.replace("start", "left").replace("end", "right");
438
- }
439
- const Ie = /* @__PURE__ */ re({});
440
- function Ke() {
441
- var t;
442
- return (t = me(Ie)) !== null && t !== void 0 ? t : {};
443
- }
444
- function Qe(t) {
445
- let [e, l] = he(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
446
- const n = F(() => {
447
- l(!0);
448
- }, [
449
- l
450
- ]), o = F(() => {
451
- l(!1);
452
- }, [
453
- l
454
- ]), r = F(() => {
455
- l(!e);
456
- }, [
457
- l,
458
- e
459
- ]);
460
- return {
461
- isOpen: e,
462
- setOpen: l,
463
- open: n,
464
- close: o,
465
- toggle: r
466
- };
467
- }
468
- const Me = /* @__PURE__ */ re({
469
- placement: "bottom"
470
- }), We = /* @__PURE__ */ ve(function(e, l) {
471
- [e, l] = be(e, l, Me);
472
- let n = e.placement, o = {
473
- position: "absolute",
474
- transform: n === "top" || n === "bottom" ? "translateX(-50%)" : "translateY(-50%)"
475
- };
476
- n != null && (o[n] = "100%");
477
- let r = xe({
478
- ...e,
479
- defaultClassName: "react-aria-OverlayArrow",
480
- values: {
481
- placement: n
482
- }
483
- });
484
- r.style && Object.keys(r.style).forEach((i) => r.style[i] === void 0 && delete r.style[i]);
485
- let c = we(e);
486
- return /* @__PURE__ */ pe.createElement("div", {
487
- ...c,
488
- ...r,
489
- style: {
490
- ...o,
491
- ...r.style
492
- },
493
- ref: l,
494
- "data-placement": n
495
- });
496
- });
497
- export {
498
- We as $,
499
- Qe as a,
500
- qe as b,
501
- Ge as c,
502
- Ke as d,
503
- Je as e,
504
- Me as f,
505
- D as g,
506
- ze as h
507
- };
@@ -1 +0,0 @@
1
- "use strict";const s=require("./usePress-BOGIOlm8.cjs"),$=require("./mergeProps-C7Sx47fA.cjs"),f=require("./utils-BM2vxlNA.cjs"),n=require("./useFocusable-DbmryjUH.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 +0,0 @@
1
- "use strict";require('./assets/ProgressBar.css');const s=require("react/jsx-runtime"),x=require("./Button-DZzQGk-L.cjs"),n=require("./Label-COpr4xVt.cjs"),c=require("./clsx-C11secjj.cjs"),m="_progressBar_1ekuq_4",d="_label_1ekuq_12",q="_value_1ekuq_17",N="_bar_1ekuq_22",f="_fill_1ekuq_28",a={progressBar:m,label:d,value:q,bar:N,fill:f},j=({label:r,labelProps:e,showValueLabel:l=!1,...t})=>s.jsx(x.$0393f8ab869a0f1a$export$c17561cb55d4db30,{...t,className:c.clsx(a.progressBar,t.className),children:({percentage:i,valueText:u,isIndeterminate:_})=>s.jsxs(s.Fragment,{children:[r&&s.jsx(n.Label,{elementType:"span",...e,className:c.clsx(e==null?void 0:e.className,a.label),children:r}),l&&s.jsx(n.Label,{elementType:"span",...e,id:"",className:c.clsx(e==null?void 0:e.className,a.value),children:u}),s.jsx("div",{className:a.bar,children:s.jsx("div",{className:a.fill,style:{width:`${_?50:i}%`}})})]})});exports.ProgressBar=j;