@midas-ds/components 11.1.0 → 12.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 (330) hide show
  1. package/AccordionItem-DEiRuizp.js +361 -0
  2. package/AccordionItem-Dhr7uo8u.cjs +1 -0
  3. package/BadgeContainer-CxVmqJ7g.cjs +1 -0
  4. package/BadgeContainer-DGJGJMPi.js +37 -0
  5. package/{Breadcrumbs-BBzSV4SK.js → Breadcrumbs-CEyKlcGU.js} +11 -11
  6. package/{Breadcrumbs-CFUryOhf.cjs → Breadcrumbs-CnGzvtbn.cjs} +1 -1
  7. package/{Button-Dq6ugqxT.cjs → Button-DQm2iqKU.cjs} +1 -1
  8. package/{Button-DExMoP5f.cjs → Button-DZzQGk-L.cjs} +1 -1
  9. package/{Button-CepQFEit.js → Button-DtC_ZOyd.js} +12 -12
  10. package/{Button-BjMaGya2.js → Button-akT6Hvug.js} +1 -1
  11. package/CHANGELOG.md +74 -0
  12. package/{Card-BRs1FKX5.js → Card-CwwVnA_a.js} +5 -5
  13. package/Card-DPfOZC7f.cjs +1 -0
  14. package/{CharacterCounter-DpBDwvLw.js → CharacterCounter-DPphWPzA.js} +5 -5
  15. package/{CharacterCounter-DSFBv3Rw.cjs → CharacterCounter-DQJVM-mZ.cjs} +1 -1
  16. package/{Checkbox-EB_SCBEo.js → Checkbox-BN_3F2Hl.js} +21 -21
  17. package/{Checkbox-Co3h0hur.cjs → Checkbox-CZtCj4yR.cjs} +1 -1
  18. package/{CheckboxGroup-oosHSGAt.js → CheckboxGroup--xgOT1Do.js} +11 -11
  19. package/{CheckboxGroup-CT_eqERw.cjs → CheckboxGroup-DGHaqRvb.cjs} +1 -1
  20. package/{Collection-BtBX5IMY.cjs → Collection-B1xL4EdF.cjs} +1 -1
  21. package/{Collection-D2jVTmDW.js → Collection-C5vE9MtJ.js} +11 -11
  22. package/{ColorSchemeSwitch-owUryjYz.cjs → ColorSchemeSwitch-DtyJ9-5B.cjs} +3 -3
  23. package/{ColorSchemeSwitch-Cnyb9EKC.js → ColorSchemeSwitch-DyZ9FAKG.js} +12 -12
  24. package/{ComboBox-D4MsSPBu.js → ComboBox-Dn3tQzri.js} +93 -97
  25. package/{ComboBox-CQ49PhNd.cjs → ComboBox-UadZMhiR.cjs} +1 -1
  26. package/{DateField-BURrxhil.cjs → DateField-CNEoLyf5.cjs} +1 -1
  27. package/{DateField-COs1-CkQ.js → DateField-CZmLugT0.js} +4 -4
  28. package/{DateInputDivider-ToFY-yjB.cjs → DateInputDivider-CCjiq90K.cjs} +1 -1
  29. package/{DateInputDivider-B3oE1_tB.js → DateInputDivider-CJEGWmG0.js} +22 -22
  30. package/DateRangePicker-DhgLEa9P.cjs +6 -0
  31. package/{DateRangePicker-CvEycxmX.js → DateRangePicker-WQ97Psz7.js} +184 -197
  32. package/{Dialog-DtHk3eXI.cjs → Dialog-BT0tVGQb.cjs} +1 -1
  33. package/{Dialog-DKHo0W9B.js → Dialog-BuJdAr0D.js} +48 -48
  34. package/Dialog-DYK8lySl.cjs +1 -0
  35. package/Dialog-L53DWF0Z.js +220 -0
  36. package/{DragAndDrop-DOXLfJaA.js → DragAndDrop-DKxsUpmW.js} +9 -9
  37. package/{DragAndDrop-CSg60YQE.cjs → DragAndDrop-Dgfq6uJ0.cjs} +1 -1
  38. package/{Dropdown-D6WCi_Ll.js → Dropdown-BWbdSQ9U.js} +35 -34
  39. package/Dropdown-CJ-sujKv.cjs +6 -0
  40. package/FieldError-BlKkw9YL.js +46 -0
  41. package/{FieldError-Bv3Q6ZP-.cjs → FieldError-BvU0sueN.cjs} +1 -1
  42. package/{FileUpload-BokzdXVc.js → FileUpload-B89QfnCB.js} +13 -13
  43. package/{FileUpload-Bz9md5zc.cjs → FileUpload-KQ1XAKAc.cjs} +1 -1
  44. package/{FocusScope-vcXLOQiu.cjs → FocusScope-CAgWgk3N.cjs} +1 -1
  45. package/{FocusScope-BCsrRPqD.js → FocusScope-CEgd3xCY.js} +17 -17
  46. package/{Grid--OhtgCo6.js → Grid-B2av0vt8.js} +6 -9
  47. package/Grid-Db5wZrw6.cjs +1 -0
  48. package/{GridItem-XgHmZWXY.cjs → GridItem-BnyULDnc.cjs} +1 -1
  49. package/{GridItem-DlbSdRmB.js → GridItem-orSzD7H5.js} +27 -30
  50. package/{Group-B0vQfHDy.js → Group-B3mRMVy7.js} +11 -11
  51. package/{Group-DOpbdoAi.cjs → Group-Cdy6z9ra.cjs} +1 -1
  52. package/{Heading-D2y_kiC0.js → Heading-DDhdwRAW.js} +7 -7
  53. package/Heading-OUPkdoEJ.cjs +1 -0
  54. package/{Hidden-C9KWUR7b.js → Hidden-B5ir3Lei.js} +2 -2
  55. package/InfoBanner-DpLcq_1R.cjs +1 -0
  56. package/InfoBanner-U5hxOipC.js +99 -0
  57. package/{Input-n-Z20KbW.js → Input-BnpBRnJz.js} +9 -9
  58. package/{Input-MJji5hhq.cjs → Input-DIhhWEPW.cjs} +1 -1
  59. package/{Label-DA6FZwy0.js → Label-ByWt6Lfh.js} +24 -24
  60. package/Label-COpr4xVt.cjs +1 -0
  61. package/Layout-BR3Or1Ga.cjs +16 -0
  62. package/Layout-Bdqauktv.js +498 -0
  63. package/{Link-CibH8uRY.js → Link-CM2N5Jq-.js} +7 -7
  64. package/{Link-ovwNVMfg.js → Link-Dnnv00g9.js} +1 -1
  65. package/{Link-ESjrl63P.cjs → Link-Dq8IFDBx.cjs} +1 -1
  66. package/{Link-CidjjqHb.cjs → Link-ceVlGaWQ.cjs} +1 -1
  67. package/{LinkButton-B6AWNiRn.cjs → LinkButton-BJA9_HzL.cjs} +1 -1
  68. package/{LinkButton-BkZULm2a.js → LinkButton-DH3Nfdis.js} +1 -1
  69. package/{ListBox-B0E1hdEt.cjs → ListBox-D0u9svwm.cjs} +1 -1
  70. package/{ListBox-CsxDGpCA.js → ListBox-y_dw__MI.js} +16 -16
  71. package/{ListBoxButton-BsuHFd_O.cjs → ListBoxButton-C2zp-gXD.cjs} +1 -1
  72. package/{ListBoxButton-DawRfuny.js → ListBoxButton-DiseS_LX.js} +1 -1
  73. package/{ListBoxSection-Cc2cx0_S.js → ListBoxSection-Cv-gN76G.js} +376 -376
  74. package/{ListBoxSection-C-Rz358T.cjs → ListBoxSection-DtsigmC1.cjs} +1 -1
  75. package/{ListKeyboardDelegate-ZKBk2IId.cjs → ListKeyboardDelegate-fZKXmHAk.cjs} +1 -1
  76. package/{ListKeyboardDelegate-C-sPNj0f.js → ListKeyboardDelegate-mcrZobNa.js} +2 -2
  77. package/{Logo-BpH0HC91.cjs → Logo-BW5NXAdu.cjs} +1 -1
  78. package/{Logo-ME4ffCue.js → Logo-qkVS1MCN.js} +1 -1
  79. package/{OverlayArrow-DpZ1FqOd.cjs → OverlayArrow-8praV_Xy.cjs} +1 -1
  80. package/{OverlayArrow-DB_aVTVM.js → OverlayArrow-DfkRZlgG.js} +4 -4
  81. package/{Popover-BDvKByTT.cjs → Popover-C5chAY42.cjs} +1 -1
  82. package/{Popover-DHoXfBp2.js → Popover-viLqHHX2.js} +2 -2
  83. package/{PressResponder-C3APAKsz.js → PressResponder-B_Zqu7b1.js} +9 -9
  84. package/PressResponder-Bm3_RM9c.cjs +1 -0
  85. package/{ProgressBar-ClysdvqU.cjs → ProgressBar-D5mNQTID.cjs} +1 -1
  86. package/{ProgressBar-C0IBfi5I.js → ProgressBar-wQirOG1N.js} +2 -2
  87. package/{Radio-B6N9dCtB.js → Radio-BIomn_sP.js} +23 -23
  88. package/{Radio-Cz0vLIBw.cjs → Radio-CxvJ5Wrl.cjs} +1 -1
  89. package/{RangeCalendar-BY82hPRu.cjs → RangeCalendar-BvvZ2SBj.cjs} +1 -1
  90. package/{RangeCalendar-BCruEq9d.js → RangeCalendar-DGGMbb0j.js} +19 -19
  91. package/{SSRProvider-40TXmsUG.js → SSRProvider-D8lZ0o6A.js} +5 -5
  92. package/{SSRProvider-Bc-sMhsT.cjs → SSRProvider-DZRLwxPS.cjs} +1 -1
  93. package/{SearchField-nwlyszwt.js → SearchField-B0dlPqsW.js} +6 -6
  94. package/{SearchField-QFyuaT-K.cjs → SearchField-Ma3KB8Em.cjs} +2 -2
  95. package/{Select-DMVj2lrG.js → Select-769RSZ9V.js} +114 -114
  96. package/{Select-DiCEyap1.cjs → Select-Go5x0zWl.cjs} +1 -1
  97. package/{SelectionManager-BubxiIKu.js → SelectionManager-BdKKuso-.js} +9 -9
  98. package/{SelectionManager-BJjqIWtf.cjs → SelectionManager-BvREZgeu.cjs} +1 -1
  99. package/{Separator-CEZ5y7tZ.js → Separator-CggS0R7Q.js} +4 -4
  100. package/{Separator-DPLEx950.cjs → Separator-DBsDhqCr.cjs} +1 -1
  101. package/{Spinner-VSyPhiJ9.js → Spinner-AXFRWuT6.js} +2 -2
  102. package/{Spinner-vof0Y9Hh.cjs → Spinner-yHx_DX_4.cjs} +1 -1
  103. package/TabList-0gj27e_e.js +386 -0
  104. package/TabList-Cqpup53E.cjs +1 -0
  105. package/Table-BhtlNY9P.cjs +16 -0
  106. package/{Table-B5Aine4F.js → Table-CTS0J_sQ.js} +289 -268
  107. package/{Tag-Byva_Xuy.js → Tag-B9M-nBTM.js} +49 -49
  108. package/{Tag-bYq-wf5D.cjs → Tag-DkW6zaIS.cjs} +1 -1
  109. package/{Text-DcZqSUN9.js → Text--KL3Auo7.js} +3 -3
  110. package/{Text-BPcfhYQ9.js → Text-BUDAzDjW.js} +1 -1
  111. package/{Text-DBHWi5gA.cjs → Text-DA_gK6a2.cjs} +1 -1
  112. package/{Text-CfcjRtke.cjs → Text-wuw0HQoa.cjs} +1 -1
  113. package/TextArea-CSrrYY05.cjs +1 -0
  114. package/{TextArea-eK7Jx3qs.js → TextArea-DphcH6wE.js} +16 -16
  115. package/{TextField-Dma22dnD.js → TextField-CsyRTSEG.js} +13 -13
  116. package/{TextField-BAX93sq7.cjs → TextField-P5yICj5z.cjs} +1 -1
  117. package/Toast-BEh5yYzO.cjs +1 -0
  118. package/{Toast-CWt_mNIg.js → Toast-BnzpC_5v.js} +130 -137
  119. package/{ToggleButtonGroup-DZ_wo0qx.cjs → ToggleButtonGroup-BwFAhFEi.cjs} +1 -1
  120. package/{ToggleButtonGroup-HjvaTYD4.js → ToggleButtonGroup-CuxAKB3-.js} +7 -7
  121. package/{Tooltip-pN5W3IK6.cjs → Tooltip-Bz0xCZSw.cjs} +1 -1
  122. package/{Tooltip-DjNc93tV.js → Tooltip-EuEQtHZj.js} +12 -12
  123. package/{VisuallyHidden-CYfmTSCD.js → VisuallyHidden-BKslUoMJ.js} +8 -8
  124. package/{VisuallyHidden-Doyzl0F7.cjs → VisuallyHidden-DxDOcIsh.cjs} +1 -1
  125. package/accordion/Accordion.d.ts +8 -2
  126. package/accordion/AccordionContext.d.ts +4 -0
  127. package/accordion/AccordionItem.d.ts +6 -4
  128. package/accordion/index.cjs +1 -1
  129. package/accordion/index.js +1 -1
  130. package/assets/AccordionItem.css +1 -1
  131. package/assets/BadgeContainer.css +1 -1
  132. package/assets/Button.css +1 -1
  133. package/assets/DateRangePicker.css +1 -1
  134. package/assets/Dialog.css +1 -1
  135. package/assets/Layout.css +1 -1
  136. package/assets/LinkButton.css +1 -1
  137. package/assets/ListBoxSection.css +1 -1
  138. package/assets/Table.css +1 -1
  139. package/assets/theme.css +1 -0
  140. package/badge/index.cjs +1 -1
  141. package/badge/index.js +1 -1
  142. package/breadcrumbs/Breadcrumbs.d.ts +0 -2
  143. package/breadcrumbs/index.cjs +1 -1
  144. package/breadcrumbs/index.js +1 -1
  145. package/button/index.cjs +1 -1
  146. package/button/index.js +1 -1
  147. package/calendar/index.cjs +1 -1
  148. package/calendar/index.js +1 -1
  149. package/card/index.cjs +1 -1
  150. package/card/index.js +1 -1
  151. package/character-counter/index.cjs +1 -1
  152. package/character-counter/index.js +1 -1
  153. package/checkbox/index.cjs +1 -1
  154. package/checkbox/index.js +2 -2
  155. package/color-scheme-switch/index.cjs +1 -1
  156. package/color-scheme-switch/index.js +1 -1
  157. package/combobox/ComboBox.d.ts +0 -4
  158. package/combobox/index.cjs +1 -1
  159. package/combobox/index.d.ts +1 -2
  160. package/combobox/index.js +2 -3
  161. package/combobox/types.d.ts +0 -13
  162. package/common/icon-map.d.ts +6 -0
  163. package/common/types.d.ts +8 -0
  164. package/{context-CGNJ3grH.js → context-Dl_saGB6.js} +11 -11
  165. package/{context-Df3XbgBG.cjs → context-UOrD6Zxk.cjs} +1 -1
  166. package/date-field/index.cjs +1 -1
  167. package/date-field/index.js +2 -2
  168. package/date-picker/DatePickerPopover.d.ts +1 -1
  169. package/date-picker/index.cjs +1 -1
  170. package/date-picker/index.js +1 -1
  171. package/dropdown/Dropdown.d.ts +7 -1
  172. package/dropdown/index.cjs +1 -1
  173. package/dropdown/index.js +1 -1
  174. package/field-error/index.cjs +1 -1
  175. package/field-error/index.js +1 -1
  176. package/file-upload/index.cjs +1 -1
  177. package/file-upload/index.js +1 -1
  178. package/grid/Grid.d.ts +0 -8
  179. package/grid/GridItem.d.ts +0 -8
  180. package/grid/index.cjs +1 -1
  181. package/grid/index.d.ts +2 -2
  182. package/grid/index.js +4 -6
  183. package/heading/index.cjs +1 -1
  184. package/heading/index.js +1 -1
  185. package/icon-map-9XcghDra.cjs +11 -0
  186. package/icon-map-uS87FT_Q.js +43 -0
  187. package/{index-CGRFP4CC.js → index-BSMrH_Du.js} +7 -7
  188. package/{index-Dsz3aiWt.cjs → index-D97L3EBk.cjs} +2 -2
  189. package/index.cjs +1 -1
  190. package/index.js +108 -111
  191. package/inertValue-BWmZ1afe.cjs +1 -0
  192. package/info-banner/InfoBanner.d.ts +18 -10
  193. package/info-banner/index.cjs +1 -1
  194. package/info-banner/index.js +1 -1
  195. package/label/index.cjs +1 -1
  196. package/label/index.js +1 -1
  197. package/layout/index.cjs +1 -1
  198. package/layout/index.js +1 -1
  199. package/link/index.cjs +1 -1
  200. package/link/index.js +2 -2
  201. package/link-button/index.cjs +1 -1
  202. package/link-button/index.js +2 -2
  203. package/list-box/index.cjs +1 -1
  204. package/list-box/index.js +2 -2
  205. package/logo/index.cjs +1 -1
  206. package/logo/index.js +1 -1
  207. package/{mergeProps-C1U1OIeJ.js → mergeProps-BYJQ6N1s.js} +11 -11
  208. package/{mergeProps-B5KXZAI3.cjs → mergeProps-C7Sx47fA.cjs} +1 -1
  209. package/modal/index.cjs +1 -1
  210. package/modal/index.js +2 -2
  211. package/package.json +4 -1
  212. package/popover/index.cjs +1 -1
  213. package/popover/index.js +1 -1
  214. package/progress-bar/index.cjs +1 -1
  215. package/progress-bar/index.js +1 -1
  216. package/radio/index.cjs +1 -1
  217. package/radio/index.js +1 -1
  218. package/search-field/index.cjs +1 -1
  219. package/search-field/index.js +1 -1
  220. package/select/index.cjs +1 -1
  221. package/select/index.d.ts +1 -1
  222. package/select/index.js +1 -1
  223. package/select/types.d.ts +1 -13
  224. package/spinner/index.cjs +1 -1
  225. package/spinner/index.js +1 -1
  226. package/table/Table.d.ts +7 -12
  227. package/table/index.cjs +1 -1
  228. package/table/index.js +1 -1
  229. package/tabs/Tabs.d.ts +0 -12
  230. package/tabs/index.cjs +1 -1
  231. package/tabs/index.js +1 -1
  232. package/tag/Tag.d.ts +2 -1
  233. package/tag/index.cjs +1 -1
  234. package/tag/index.js +1 -1
  235. package/text/index.cjs +1 -1
  236. package/text/index.js +1 -1
  237. package/textfield/index.cjs +1 -1
  238. package/textfield/index.js +1 -1
  239. package/theme/index.cjs +1 -1
  240. package/theme/index.d.ts +37 -12
  241. package/theme/index.js +12 -11
  242. package/theme/tokens.d.ts +37 -18
  243. package/toast/Toast.d.ts +2 -1
  244. package/toast/index.cjs +1 -1
  245. package/toast/index.js +1 -1
  246. package/toggle-button/index.cjs +1 -1
  247. package/toggle-button/index.js +1 -1
  248. package/tokens-BWo7EvNX.cjs +1 -0
  249. package/{tokens-r1r3wC04.js → tokens-BtEBd3jO.js} +82 -43
  250. package/tooltip/index.cjs +1 -1
  251. package/tooltip/index.js +1 -1
  252. package/{useButton-BoIV3kDJ.js → useButton-CWHoXYnj.js} +3 -3
  253. package/{useButton-D60q0SQw.cjs → useButton-CwOQUGtY.cjs} +1 -1
  254. package/{useDateFormatter-C7BJgoDR.js → useDateFormatter-DiIUdTak.js} +2 -2
  255. package/{useDateFormatter-BJBt0jk_.cjs → useDateFormatter-bzjwqA2K.cjs} +1 -1
  256. package/{useDescription-CPo72trh.cjs → useDescription-ByNlNIRU.cjs} +1 -1
  257. package/{useDescription-DYfKjGGU.js → useDescription-LmB1V4Tg.js} +1 -1
  258. package/useEvent-CGRyLM2c.cjs +1 -0
  259. package/{useEvent-CigwyJOw.js → useEvent-DqWz89vg.js} +1 -1
  260. package/{useField-CefQB81E.js → useField-5CEdtfab.js} +2 -2
  261. package/{useField-D1UkzeaI.cjs → useField-CoQAzygg.cjs} +1 -1
  262. package/{useFilter-DginflOU.js → useFilter-BKQT28sh.js} +1 -1
  263. package/{useFilter-BhM2yVO3.cjs → useFilter-Bjh5dq2Q.cjs} +1 -1
  264. package/{useFocusRing-B-A1OLhU.cjs → useFocusRing-BM-zcH6L.cjs} +1 -1
  265. package/{useFocusRing-DOfBqnUN.js → useFocusRing-HoJn20X5.js} +2 -2
  266. package/{useFocusWithin-T1ifEM_s.js → useFocusWithin-Cn18Myw6.js} +1 -1
  267. package/{useFocusWithin-CG8mAt2D.cjs → useFocusWithin-o0WjCpEB.cjs} +1 -1
  268. package/{useFocusable-D7I1ujkW.cjs → useFocusable-DbmryjUH.cjs} +1 -1
  269. package/{useFocusable-BjE42axF.js → useFocusable-ZjCKo1ed.js} +14 -14
  270. package/{useFormValidation-BzzruZKm.js → useFormValidation-BW2NSTM4.js} +2 -2
  271. package/{useFormValidation-BlFGdPZB.cjs → useFormValidation-DSRwb9US.cjs} +1 -1
  272. package/useHasTabbableChild-CogBR_6o.cjs +1 -0
  273. package/{useHasTabbableChild-DP62kzkG.js → useHasTabbableChild-CyOmqumh.js} +2 -2
  274. package/{useHighlightSelectionDescription-DmbDkFGY.cjs → useHighlightSelectionDescription-DAhPdEG6.cjs} +1 -1
  275. package/{useHighlightSelectionDescription-xr_16pKd.js → useHighlightSelectionDescription-DTxHtOsw.js} +5 -5
  276. package/{useHover-BE_XKZKe.cjs → useHover-CaFzQrR_.cjs} +1 -1
  277. package/{useHover-DQvJ3Y-W.js → useHover-D8fja4GW.js} +6 -6
  278. package/{useLabels-CSU0kbtJ.cjs → useLabels-BtDN_ALM.cjs} +1 -1
  279. package/{useLabels-LrKQiY11.js → useLabels-DZlvh4P4.js} +1 -1
  280. package/{useListState-wLau6fXo.cjs → useListState-TtWy_rDI.cjs} +1 -1
  281. package/{useListState-DNB7JWoj.js → useListState-e7cL-FOK.js} +1 -1
  282. package/{useLocalizedStringFormatter-BO2iZEL0.cjs → useLocalizedStringFormatter-BSac43NO.cjs} +1 -1
  283. package/useLocalizedStringFormatter-CHAo1AyN.cjs +1 -0
  284. package/{useLocalizedStringFormatter-CL9MUZ8A.js → useLocalizedStringFormatter-CSEh15AZ.js} +1 -1
  285. package/{useLocalizedStringFormatter-N0AyjzbM.js → useLocalizedStringFormatter-aOhh7wdl.js} +1 -1
  286. package/useObserveElement-BzEr5D32.cjs +1 -0
  287. package/{usePress-BooY_CAy.cjs → usePress-BOGIOlm8.cjs} +2 -2
  288. package/{usePress-BW47IcyU.js → usePress-B_jgTf4k.js} +105 -105
  289. package/{useSingleSelectListState-DlO5H9N-.cjs → useSingleSelectListState-BiJMNaOl.cjs} +1 -1
  290. package/{useSingleSelectListState-B0OMoHd_.js → useSingleSelectListState-D7LjjoUJ.js} +1 -1
  291. package/{useTextField-DnRrCg5o.cjs → useTextField-BVIOd8Ld.cjs} +1 -1
  292. package/{useTextField-DjxayZsV.js → useTextField-DFkSHoQN.js} +11 -11
  293. package/{useUpdateEffect-C5YQs_1w.cjs → useUpdateEffect-sk3kiVGz.cjs} +1 -1
  294. package/{utils-DHNZrQmj.cjs → utils-BM2vxlNA.cjs} +1 -1
  295. package/{utils-Dvdohqm9.cjs → utils-C5-CzvX2.cjs} +1 -1
  296. package/{utils-CoCR_Fce.js → utils-CuqJqFqQ.js} +1 -1
  297. package/{utils-KLjWgdLR.js → utils-KYuflGZt.js} +10 -10
  298. package/AccordionItem-BPOQqTkQ.js +0 -323
  299. package/AccordionItem-CS-QKqrU.cjs +0 -1
  300. package/BadgeContainer-CKBIZWsc.js +0 -37
  301. package/BadgeContainer-DWVHS5dn.cjs +0 -1
  302. package/Card-cdL5669N.cjs +0 -1
  303. package/DateRangePicker-Bfibl08v.cjs +0 -6
  304. package/Dialog-B3R3WtL5.cjs +0 -1
  305. package/Dialog-BkUw6PlA.js +0 -221
  306. package/Dropdown-CYakzdJg.cjs +0 -6
  307. package/FieldError-CDCvUjK5.js +0 -46
  308. package/Grid-DVQtOcu9.cjs +0 -1
  309. package/Heading-CKTR4sOz.cjs +0 -1
  310. package/InfoBanner-CzwbOdRG.cjs +0 -1
  311. package/InfoBanner-D05poAe3.js +0 -91
  312. package/Label-ChjDdBlv.cjs +0 -1
  313. package/Layout-BwLxIwtY.cjs +0 -16
  314. package/Layout-CcADAhds.js +0 -498
  315. package/PressResponder-4jE_HLu3.cjs +0 -1
  316. package/TabList-BkSWzbDG.cjs +0 -1
  317. package/TabList-QApx8qRC.js +0 -435
  318. package/Table-DGYC-sDq.cjs +0 -16
  319. package/TextArea-DJKHFKuI.cjs +0 -1
  320. package/Toast-DdmSvNaO.cjs +0 -1
  321. package/circle-check-BErh6TKu.js +0 -26
  322. package/circle-check-OVUGxwp9.cjs +0 -11
  323. package/inertValue-B3AFhVG4.cjs +0 -1
  324. package/tokens-BF-dPard.cjs +0 -1
  325. package/triangle-alert-B_qAPmWC.js +0 -21
  326. package/triangle-alert-BviJNFjf.cjs +0 -6
  327. package/useEvent-DPxMu-X9.cjs +0 -1
  328. package/useHasTabbableChild-CoQRpNbC.cjs +0 -1
  329. package/useLocalizedStringFormatter-BiX5BTlb.cjs +0 -1
  330. package/useObserveElement-MhzEsCkX.cjs +0 -1
@@ -1,33 +1,33 @@
1
- import { jsx as _, jsxs as le } from "react/jsx-runtime";
2
- import { $ as oe, a as ne, b as se } from "./ListBox-CsxDGpCA.js";
3
- import { d as re, h as ae } from "./Collection-D2jVTmDW.js";
4
- import w, { useState as S, useRef as C, useMemo as k, useCallback as L, useEffect as he, createContext as X, useContext as A } from "react";
5
- import { $ as E, d as de } from "./mergeProps-C1U1OIeJ.js";
6
- import { $ as F } from "./context-CGNJ3grH.js";
1
+ import { jsx as k, jsxs as lt } from "react/jsx-runtime";
2
+ import { $ as ot, a as nt, b as st } from "./ListBox-y_dw__MI.js";
3
+ import { d as rt, h as at } from "./Collection-C5vE9MtJ.js";
4
+ import w, { useState as S, useRef as C, useMemo as _, useCallback as L, useEffect as ht, createContext as X, useContext as A } from "react";
5
+ import { $ as E, d as dt } from "./mergeProps-BYJQ6N1s.js";
6
+ import { $ as F } from "./context-Dl_saGB6.js";
7
7
  import { flushSync as P } from "react-dom";
8
- import { g as ce } from "./OverlayArrow-DB_aVTVM.js";
9
- import { $ as ue } from "./useEvent-CigwyJOw.js";
8
+ import { g as ct } from "./OverlayArrow-DfkRZlgG.js";
9
+ import { $ as ut } from "./useEvent-DqWz89vg.js";
10
10
  import { c as K } from "./clsx-OuTLNxxd.js";
11
- import { f as Y } from "./SelectionManager-BubxiIKu.js";
12
- import { a as fe } from "./Dialog-DKHo0W9B.js";
13
- import { e as ge } from "./Separator-CEZ5y7tZ.js";
14
- import './assets/ListBoxSection.css';class ye {
11
+ import { f as Y } from "./SelectionManager-BdKKuso-.js";
12
+ import { a as ft } from "./Dialog-BuJdAr0D.js";
13
+ import { e as gt } from "./Separator-CggS0R7Q.js";
14
+ import './assets/ListBoxSection.css';class yt {
15
15
  /**
16
16
  * Returns whether the layout should invalidate in response to
17
17
  * visible rectangle changes. By default, it only invalidates
18
18
  * when the virtualizer's size changes. Return true always
19
19
  * to make the layout invalidate while scrolling (e.g. sticky headers).
20
20
  */
21
- shouldInvalidate(e, t) {
22
- return e.width !== t.width || e.height !== t.height;
21
+ shouldInvalidate(t, e) {
22
+ return t.width !== e.width || t.height !== e.height;
23
23
  }
24
24
  /**
25
25
  * Returns whether the layout should invalidate when the layout options change.
26
26
  * By default it invalidates when the object identity changes. Override this
27
27
  * method to optimize layout updates based on specific option changes.
28
28
  */
29
- shouldInvalidateLayoutOptions(e, t) {
30
- return e !== t;
29
+ shouldInvalidateLayoutOptions(t, e) {
30
+ return t !== e;
31
31
  }
32
32
  /**
33
33
  * This method allows the layout to perform any pre-computation
@@ -35,12 +35,12 @@ import './assets/ListBoxSection.css';class ye {
35
35
  * Called by the virtualizer before `getVisibleLayoutInfos`
36
36
  * or `getLayoutInfo` are called.
37
37
  */
38
- update(e) {
38
+ update(t) {
39
39
  }
40
40
  /** @private */
41
- getItemRect(e) {
42
- var t, i;
43
- return (i = (t = this.getLayoutInfo(e)) === null || t === void 0 ? void 0 : t.rect) !== null && i !== void 0 ? i : null;
41
+ getItemRect(t) {
42
+ var e, i;
43
+ return (i = (e = this.getLayoutInfo(t)) === null || e === void 0 ? void 0 : e.rect) !== null && i !== void 0 ? i : null;
44
44
  }
45
45
  /** @private */
46
46
  getVisibleRect() {
@@ -55,16 +55,16 @@ class b {
55
55
  * Returns a copy of the LayoutInfo.
56
56
  */
57
57
  copy() {
58
- let e = new b(this.type, this.key, this.rect.copy());
59
- 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;
58
+ let t = new b(this.type, this.key, this.rect.copy());
59
+ return t.estimatedSize = this.estimatedSize, t.opacity = this.opacity, t.transform = this.transform, t.parentKey = this.parentKey, t.content = this.content, t.isSticky = this.isSticky, t.zIndex = this.zIndex, t.allowOverflow = this.allowOverflow, t;
60
60
  }
61
61
  /**
62
62
  * @param type The type of element represented by this LayoutInfo. Should match the `type` of the corresponding collection node.
63
63
  * @param key A unique key for this LayoutInfo. Should match the `key` of the corresponding collection node.
64
64
  * @param rect The rectangle describing the size and position of this element.
65
65
  */
66
- constructor(e, t, i) {
67
- 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;
66
+ constructor(t, e, i) {
67
+ this.type = t, this.key = e, 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;
68
68
  }
69
69
  }
70
70
  class x {
@@ -77,8 +77,8 @@ class x {
77
77
  /**
78
78
  * Checks if two points are equal.
79
79
  */
80
- equals(e) {
81
- return this.x === e.x && this.y === e.y;
80
+ equals(t) {
81
+ return this.x === t.x && this.y === t.y;
82
82
  }
83
83
  /**
84
84
  * Returns true if this point is the origin.
@@ -86,8 +86,8 @@ class x {
86
86
  isOrigin() {
87
87
  return this.x === 0 && this.y === 0;
88
88
  }
89
- constructor(e = 0, t = 0) {
90
- this.x = e, this.y = t;
89
+ constructor(t = 0, e = 0) {
90
+ this.x = t, this.y = e;
91
91
  }
92
92
  }
93
93
  class u {
@@ -137,62 +137,62 @@ class u {
137
137
  * Returns whether this rectangle intersects another rectangle.
138
138
  * @param rect - The rectangle to check.
139
139
  */
140
- intersects(e) {
141
- 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;
140
+ intersects(t) {
141
+ return this.area > 0 && t.area > 0 && this.x <= t.x + t.width && t.x <= this.x + this.width && this.y <= t.y + t.height && t.y <= this.y + this.height;
142
142
  }
143
143
  /**
144
144
  * Returns whether this rectangle fully contains another rectangle.
145
145
  * @param rect - The rectangle to check.
146
146
  */
147
- containsRect(e) {
148
- return this.x <= e.x && this.y <= e.y && this.maxX >= e.maxX && this.maxY >= e.maxY;
147
+ containsRect(t) {
148
+ return this.x <= t.x && this.y <= t.y && this.maxX >= t.maxX && this.maxY >= t.maxY;
149
149
  }
150
150
  /**
151
151
  * Returns whether the rectangle contains the given point.
152
152
  * @param point - The point to check.
153
153
  */
154
- containsPoint(e) {
155
- return this.x <= e.x && this.y <= e.y && this.maxX >= e.x && this.maxY >= e.y;
154
+ containsPoint(t) {
155
+ return this.x <= t.x && this.y <= t.y && this.maxX >= t.x && this.maxY >= t.y;
156
156
  }
157
157
  /**
158
158
  * Returns the first corner of this rectangle (from top to bottom, left to right)
159
159
  * that is contained in the given rectangle, or null of the rectangles do not intersect.
160
160
  * @param rect - The rectangle to check.
161
161
  */
162
- getCornerInRect(e) {
163
- for (let t of [
162
+ getCornerInRect(t) {
163
+ for (let e of [
164
164
  "topLeft",
165
165
  "topRight",
166
166
  "bottomLeft",
167
167
  "bottomRight"
168
168
  ])
169
- if (e.containsPoint(this[t])) return t;
169
+ if (t.containsPoint(this[e])) return e;
170
170
  return null;
171
171
  }
172
- equals(e) {
173
- return e.x === this.x && e.y === this.y && e.width === this.width && e.height === this.height;
172
+ equals(t) {
173
+ return t.x === this.x && t.y === this.y && t.width === this.width && t.height === this.height;
174
174
  }
175
- pointEquals(e) {
176
- return this.x === e.x && this.y === e.y;
175
+ pointEquals(t) {
176
+ return this.x === t.x && this.y === t.y;
177
177
  }
178
- sizeEquals(e) {
179
- return this.width === e.width && this.height === e.height;
178
+ sizeEquals(t) {
179
+ return this.width === t.width && this.height === t.height;
180
180
  }
181
181
  /**
182
182
  * Returns the union of this Rect and another.
183
183
  */
184
- union(e) {
185
- 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;
186
- return new u(t, i, l, o);
184
+ union(t) {
185
+ let e = Math.min(this.x, t.x), i = Math.min(this.y, t.y), l = Math.max(this.maxX, t.maxX) - e, o = Math.max(this.maxY, t.maxY) - i;
186
+ return new u(e, i, l, o);
187
187
  }
188
188
  /**
189
189
  * Returns the intersection of this Rect with another.
190
190
  * If the rectangles do not intersect, an all zero Rect is returned.
191
191
  */
192
- intersection(e) {
193
- if (!this.intersects(e)) return new u(0, 0, 0, 0);
194
- let t = Math.max(this.x, e.x), i = Math.max(this.y, e.y);
195
- return new u(t, i, Math.min(this.maxX, e.maxX) - t, Math.min(this.maxY, e.maxY) - i);
192
+ intersection(t) {
193
+ if (!this.intersects(t)) return new u(0, 0, 0, 0);
194
+ let e = Math.max(this.x, t.x), i = Math.max(this.y, t.y);
195
+ return new u(e, i, Math.min(this.maxX, t.maxX) - e, Math.min(this.maxY, t.maxY) - i);
196
196
  }
197
197
  /**
198
198
  * Returns a copy of this rectangle.
@@ -200,8 +200,8 @@ class u {
200
200
  copy() {
201
201
  return new u(this.x, this.y, this.width, this.height);
202
202
  }
203
- constructor(e = 0, t = 0, i = 0, l = 0) {
204
- this.x = e, this.y = t, this.width = i, this.height = l;
203
+ constructor(t = 0, e = 0, i = 0, l = 0) {
204
+ this.x = t, this.y = e, this.width = i, this.height = l;
205
205
  }
206
206
  }
207
207
  class z {
@@ -214,8 +214,8 @@ class z {
214
214
  /**
215
215
  * Returns whether this size is equal to another one.
216
216
  */
217
- equals(e) {
218
- return this.width === e.width && this.height === e.height;
217
+ equals(t) {
218
+ return this.width === t.width && this.height === t.height;
219
219
  }
220
220
  /**
221
221
  * The total area of the Size.
@@ -223,11 +223,11 @@ class z {
223
223
  get area() {
224
224
  return this.width * this.height;
225
225
  }
226
- constructor(e = 0, t = 0) {
227
- this.width = Math.max(e, 0), this.height = Math.max(t, 0);
226
+ constructor(t = 0, e = 0) {
227
+ this.width = Math.max(t, 0), this.height = Math.max(e, 0);
228
228
  }
229
229
  }
230
- let ve = 0;
230
+ let vt = 0;
231
231
  class j {
232
232
  /**
233
233
  * Prepares the view for reuse. Called just before the view is removed from the DOM.
@@ -235,135 +235,135 @@ class j {
235
235
  prepareForReuse() {
236
236
  this.content = null, this.rendered = null, this.layoutInfo = null;
237
237
  }
238
- getReusableView(e) {
239
- let t = this.reusableViews.get(e);
240
- return t && t.length > 0 ? t.shift() : new me(this.virtualizer, this, e);
238
+ getReusableView(t) {
239
+ let e = this.reusableViews.get(t);
240
+ return e && e.length > 0 ? e.shift() : new mt(this.virtualizer, this, t);
241
241
  }
242
- reuseChild(e) {
243
- e.prepareForReuse();
244
- let t = this.reusableViews.get(e.viewType);
245
- t || (t = [], this.reusableViews.set(e.viewType, t)), t.push(e);
242
+ reuseChild(t) {
243
+ t.prepareForReuse();
244
+ let e = this.reusableViews.get(t.viewType);
245
+ e || (e = [], this.reusableViews.set(t.viewType, e)), e.push(t);
246
246
  }
247
- constructor(e, t) {
248
- this.virtualizer = e, this.key = ++ve, this.viewType = t, this.children = /* @__PURE__ */ new Set(), this.reusableViews = /* @__PURE__ */ new Map(), this.layoutInfo = null, this.content = null, this.rendered = null;
247
+ constructor(t, e) {
248
+ this.virtualizer = t, this.key = ++vt, this.viewType = e, this.children = /* @__PURE__ */ new Set(), this.reusableViews = /* @__PURE__ */ new Map(), this.layoutInfo = null, this.content = null, this.rendered = null;
249
249
  }
250
250
  }
251
- class pe extends j {
252
- constructor(e) {
253
- super(e, "root");
251
+ class pt extends j {
252
+ constructor(t) {
253
+ super(t, "root");
254
254
  }
255
255
  }
256
- class me extends j {
257
- constructor(e, t, i) {
258
- super(e, i), this.parent = t;
256
+ class mt extends j {
257
+ constructor(t, e, i) {
258
+ super(t, i), this.parent = e;
259
259
  }
260
260
  }
261
- function we(n, e) {
262
- if (n === e) return !0;
263
- if (n.size !== e.size) return !1;
264
- for (let t of n)
265
- if (!e.has(t)) return !1;
261
+ function wt(n, t) {
262
+ if (n === t) return !0;
263
+ if (n.size !== t.size) return !1;
264
+ for (let e of n)
265
+ if (!t.has(e)) return !1;
266
266
  return !0;
267
267
  }
268
- class be {
269
- setVisibleRect(e) {
270
- let t = performance.now() - this.startTime;
271
- 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;
268
+ class bt {
269
+ setVisibleRect(t) {
270
+ let e = performance.now() - this.startTime;
271
+ e < 500 && (t.x !== this.visibleRect.x && e > 0 && (this.velocity.x = (t.x - this.visibleRect.x) / e), t.y !== this.visibleRect.y && e > 0 && (this.velocity.y = (t.y - this.visibleRect.y) / e)), this.startTime = performance.now(), this.visibleRect = t;
272
272
  }
273
273
  getOverscannedRect() {
274
- let e = this.visibleRect.copy(), t = this.visibleRect.height / 3;
275
- if (e.height += t, this.velocity.y < 0 && (e.y -= t), this.velocity.x !== 0) {
274
+ let t = this.visibleRect.copy(), e = this.visibleRect.height / 3;
275
+ if (t.height += e, this.velocity.y < 0 && (t.y -= e), this.velocity.x !== 0) {
276
276
  let i = this.visibleRect.width / 3;
277
- e.width += i, this.velocity.x < 0 && (e.x -= i);
277
+ t.width += i, this.velocity.x < 0 && (t.x -= i);
278
278
  }
279
- return e;
279
+ return t;
280
280
  }
281
281
  constructor() {
282
282
  this.startTime = 0, this.velocity = new x(0, 0), this.visibleRect = new u();
283
283
  }
284
284
  }
285
- class xe {
285
+ class xt {
286
286
  /** Returns whether the given key, or an ancestor, is persisted. */
287
- isPersistedKey(e) {
288
- if (this.persistedKeys.has(e)) return !0;
289
- for (let t of this.persistedKeys) for (; t != null; ) {
290
- let i = this.layout.getLayoutInfo(t);
287
+ isPersistedKey(t) {
288
+ if (this.persistedKeys.has(t)) return !0;
289
+ for (let e of this.persistedKeys) for (; e != null; ) {
290
+ let i = this.layout.getLayoutInfo(e);
291
291
  if (!i || i.parentKey == null) break;
292
- if (t = i.parentKey, t === e) return !0;
292
+ if (e = i.parentKey, e === t) return !0;
293
293
  }
294
294
  return !1;
295
295
  }
296
- getParentView(e) {
297
- return e.parentKey != null ? this._visibleViews.get(e.parentKey) : this._rootView;
296
+ getParentView(t) {
297
+ return t.parentKey != null ? this._visibleViews.get(t.parentKey) : this._rootView;
298
298
  }
299
- getReusableView(e) {
300
- let i = this.getParentView(e).getReusableView(e.type);
301
- return i.layoutInfo = e, this._renderView(i), i;
299
+ getReusableView(t) {
300
+ let i = this.getParentView(t).getReusableView(t.type);
301
+ return i.layoutInfo = t, this._renderView(i), i;
302
302
  }
303
- _renderView(e) {
304
- if (e.layoutInfo) {
305
- let { type: t, key: i, content: l } = e.layoutInfo;
306
- e.content = l || this.collection.getItem(i), e.rendered = this._renderContent(t, e.content);
303
+ _renderView(t) {
304
+ if (t.layoutInfo) {
305
+ let { type: e, key: i, content: l } = t.layoutInfo;
306
+ t.content = l || this.collection.getItem(i), t.rendered = this._renderContent(e, t.content);
307
307
  }
308
308
  }
309
- _renderContent(e, t) {
310
- let i = t != null ? this._renderedContent.get(t) : null;
309
+ _renderContent(t, e) {
310
+ let i = e != null ? this._renderedContent.get(e) : null;
311
311
  if (i != null) return i;
312
- let l = this.delegate.renderView(e, t);
313
- return t && this._renderedContent.set(t, l), l;
312
+ let l = this.delegate.renderView(t, e);
313
+ return e && this._renderedContent.set(e, l), l;
314
314
  }
315
315
  /**
316
316
  * Returns the key for the item view currently at the given point.
317
317
  */
318
- keyAtPoint(e) {
319
- let t = new u(e.x, e.y, 1, 1), i = t.area === 0 ? [] : this.layout.getVisibleLayoutInfos(t);
318
+ keyAtPoint(t) {
319
+ let e = new u(t.x, t.y, 1, 1), i = e.area === 0 ? [] : this.layout.getVisibleLayoutInfos(e);
320
320
  for (let l of i)
321
- if (l.rect.intersects(t)) return l.key;
321
+ if (l.rect.intersects(e)) return l.key;
322
322
  return null;
323
323
  }
324
- relayout(e = {}) {
325
- this.layout.update(e), this.contentSize = this.layout.getContentSize();
326
- let t = this.visibleRect, i = e.contentChanged ? 0 : t.x, l = e.contentChanged ? 0 : t.y;
327
- 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) {
328
- let o = new u(i, l, t.width, t.height);
324
+ relayout(t = {}) {
325
+ this.layout.update(t), this.contentSize = this.layout.getContentSize();
326
+ let e = this.visibleRect, i = t.contentChanged ? 0 : e.x, l = t.contentChanged ? 0 : e.y;
327
+ if (i = Math.max(0, Math.min(this.contentSize.width - e.width, i)), l = Math.max(0, Math.min(this.contentSize.height - e.height, l)), i !== e.x || l !== e.y) {
328
+ let o = new u(i, l, e.width, e.height);
329
329
  this.delegate.setVisibleRect(o);
330
330
  } else this.updateSubviews();
331
331
  }
332
332
  getVisibleLayoutInfos() {
333
- 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;
334
- e && !(t && i) ? l = new u(0, 0, this.contentSize.width, this.contentSize.height) : l = this._overscanManager.getOverscannedRect();
333
+ let t = process.env.NODE_ENV === "test" && !process.env.VIRT_ON, e = t && typeof HTMLElement < "u" && Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"), i = t && typeof HTMLElement < "u" && Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"), l;
334
+ t && !(e && i) ? l = new u(0, 0, this.contentSize.width, this.contentSize.height) : l = this._overscanManager.getOverscannedRect();
335
335
  let o = this.layout.getVisibleLayoutInfos(l), s = /* @__PURE__ */ new Map();
336
336
  for (let a of o) s.set(a.key, a);
337
337
  return s;
338
338
  }
339
339
  updateSubviews() {
340
- let e = this.getVisibleLayoutInfos(), t = /* @__PURE__ */ new Set();
340
+ let t = this.getVisibleLayoutInfos(), e = /* @__PURE__ */ new Set();
341
341
  for (let [i, l] of this._visibleViews) {
342
- let o = e.get(i);
343
- (!o || l.parent !== this.getParentView(o)) && (this._visibleViews.delete(i), l.parent.reuseChild(l), t.add(l));
342
+ let o = t.get(i);
343
+ (!o || l.parent !== this.getParentView(o)) && (this._visibleViews.delete(i), l.parent.reuseChild(l), e.add(l));
344
344
  }
345
- for (let [i, l] of e) {
345
+ for (let [i, l] of t) {
346
346
  let o = this._visibleViews.get(i);
347
347
  if (!o)
348
- o = this.getReusableView(l), o.parent.children.add(o), this._visibleViews.set(i, o), t.delete(o);
348
+ o = this.getReusableView(l), o.parent.children.add(o), this._visibleViews.set(i, o), e.delete(o);
349
349
  else {
350
350
  o.layoutInfo = l;
351
351
  let s = this.collection.getItem(l.key);
352
352
  o.content !== s && (o.content != null && this._renderedContent.delete(o.content), this._renderView(o));
353
353
  }
354
354
  }
355
- for (let i of t)
355
+ for (let i of e)
356
356
  i.parent.children.delete(i), i.parent.reusableViews.clear();
357
357
  if (!this._isScrolling)
358
- for (let i of e.keys()) {
358
+ for (let i of t.keys()) {
359
359
  let l = this._visibleViews.get(i);
360
360
  l.parent.children.delete(l), l.parent.children.add(l);
361
361
  }
362
362
  }
363
363
  /** Performs layout and updates visible views as needed. */
364
- render(e) {
365
- let t = this, i = !1, l = !1, o = !1, s = !1, a = !1, h = !1;
366
- 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 && !we(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({
364
+ render(t) {
365
+ let e = this, i = !1, l = !1, o = !1, s = !1, a = !1, h = !1;
366
+ return t.collection !== this.collection && (e.collection = t.collection, i = !0), (t.layout !== this.layout || this.layout.virtualizer !== this) && (this.layout && (this.layout.virtualizer = null), t.layout.virtualizer = this, e.layout = t.layout, i = !0), t.persistedKeys && !wt(t.persistedKeys, this.persistedKeys) && (e.persistedKeys = t.persistedKeys, h = !0), this.visibleRect.equals(t.visibleRect) || (this._overscanManager.setVisibleRect(t.visibleRect), this.layout.shouldInvalidate(t.visibleRect, this.visibleRect) ? (l = !t.visibleRect.pointEquals(this.visibleRect), o = !t.visibleRect.sizeEquals(this.visibleRect), i = !0) : h = !0, e.visibleRect = t.visibleRect), t.invalidationContext !== this._invalidationContext && (t.invalidationContext && (o || (o = t.invalidationContext.sizeChanged || !1), l || (l = t.invalidationContext.offsetChanged || !1), s || (s = t.invalidationContext.itemSizeChanged || !1), a || (a = t.invalidationContext.layoutOptions != null && this._invalidationContext.layoutOptions != null && t.invalidationContext.layoutOptions !== this._invalidationContext.layoutOptions && this.layout.shouldInvalidateLayoutOptions(t.invalidationContext.layoutOptions, this._invalidationContext.layoutOptions)), i || (i = s || o || l || a)), this._invalidationContext = t.invalidationContext), t.isScrolling !== this._isScrolling && (this._isScrolling = t.isScrolling, t.isScrolling || (h = !0)), i ? this.relayout({
367
367
  offsetChanged: l,
368
368
  sizeChanged: o,
369
369
  itemSizeChanged: s,
@@ -371,29 +371,29 @@ class xe {
371
371
  layoutOptions: this._invalidationContext.layoutOptions
372
372
  }) : h && this.updateSubviews(), Array.from(this._rootView.children);
373
373
  }
374
- getVisibleView(e) {
375
- return this._visibleViews.get(e);
374
+ getVisibleView(t) {
375
+ return this._visibleViews.get(t);
376
376
  }
377
- invalidate(e) {
378
- this.delegate.invalidate(e);
377
+ invalidate(t) {
378
+ this.delegate.invalidate(t);
379
379
  }
380
- updateItemSize(e, t) {
380
+ updateItemSize(t, e) {
381
381
  if (!this.layout.updateItemSize) return;
382
- this.layout.updateItemSize(e, t) && this.invalidate({
382
+ this.layout.updateItemSize(t, e) && this.invalidate({
383
383
  itemSizeChanged: !0
384
384
  });
385
385
  }
386
- constructor(e) {
387
- this.delegate = e.delegate, this.collection = e.collection, this.layout = e.layout, this.contentSize = new z(), this.visibleRect = new u(), this.persistedKeys = /* @__PURE__ */ new Set(), this._visibleViews = /* @__PURE__ */ new Map(), this._renderedContent = /* @__PURE__ */ new WeakMap(), this._rootView = new pe(this), this._isScrolling = !1, this._invalidationContext = {}, this._overscanManager = new be();
386
+ constructor(t) {
387
+ this.delegate = t.delegate, this.collection = t.collection, this.layout = t.layout, this.contentSize = new z(), this.visibleRect = new u(), this.persistedKeys = /* @__PURE__ */ new Set(), this._visibleViews = /* @__PURE__ */ new Map(), this._renderedContent = /* @__PURE__ */ new WeakMap(), this._rootView = new pt(this), this._isScrolling = !1, this._invalidationContext = {}, this._overscanManager = new bt();
388
388
  }
389
389
  }
390
- function Ie(n) {
391
- let [e, t] = S(new u(0, 0, 0, 0)), [i, l] = S(!1), [o, s] = S({}), a = C(!1), [h] = S(() => new xe({
390
+ function It(n) {
391
+ let [t, e] = S(new u(0, 0, 0, 0)), [i, l] = S(!1), [o, s] = S({}), a = C(!1), [h] = S(() => new xt({
392
392
  collection: n.collection,
393
393
  layout: n.layout,
394
394
  delegate: {
395
395
  setVisibleRect(p) {
396
- t(p), a.current = !0;
396
+ e(p), a.current = !0;
397
397
  },
398
398
  // TODO: should changing these invalidate the entire cache?
399
399
  renderView: n.renderView,
@@ -401,9 +401,9 @@ function Ie(n) {
401
401
  }
402
402
  }));
403
403
  E(() => {
404
- a.current && (a.current = !1, n.onVisibleRectChange(e));
404
+ a.current && (a.current = !1, n.onVisibleRectChange(t));
405
405
  });
406
- let r = k(() => n.layoutOptions != null ? {
406
+ let r = _(() => n.layoutOptions != null ? {
407
407
  ...o,
408
408
  layoutOptions: n.layoutOptions
409
409
  } : o, [
@@ -414,7 +414,7 @@ function Ie(n) {
414
414
  collection: n.collection,
415
415
  persistedKeys: n.persistedKeys,
416
416
  layoutOptions: n.layoutOptions,
417
- visibleRect: e,
417
+ visibleRect: t,
418
418
  invalidationContext: r,
419
419
  isScrolling: i
420
420
  }), c = h.contentSize, f = L(() => {
@@ -422,10 +422,10 @@ function Ie(n) {
422
422
  }, []), g = L(() => {
423
423
  l(!1);
424
424
  }, []);
425
- return k(() => ({
425
+ return _(() => ({
426
426
  virtualizer: h,
427
427
  visibleViews: d,
428
- setVisibleRect: t,
428
+ setVisibleRect: e,
429
429
  contentSize: c,
430
430
  isScrolling: i,
431
431
  startScrolling: f,
@@ -433,7 +433,7 @@ function Ie(n) {
433
433
  }), [
434
434
  h,
435
435
  d,
436
- t,
436
+ e,
437
437
  c,
438
438
  i,
439
439
  f,
@@ -441,52 +441,52 @@ function Ie(n) {
441
441
  ]);
442
442
  }
443
443
  const R = 48;
444
- class Re extends ye {
444
+ class Rt extends yt {
445
445
  // Backward compatibility for subclassing.
446
446
  get collection() {
447
447
  return this.virtualizer.collection;
448
448
  }
449
- getLayoutInfo(e) {
450
- var t;
451
- return this.ensureLayoutInfo(e), ((t = this.layoutNodes.get(e)) === null || t === void 0 ? void 0 : t.layoutInfo) || null;
449
+ getLayoutInfo(t) {
450
+ var e;
451
+ return this.ensureLayoutInfo(t), ((e = this.layoutNodes.get(t)) === null || e === void 0 ? void 0 : e.layoutInfo) || null;
452
452
  }
453
- getVisibleLayoutInfos(e) {
454
- if (e.height > 1) {
455
- var t, i;
456
- let s = ((i = (t = this.rowHeight) !== null && t !== void 0 ? t : this.estimatedRowHeight) !== null && i !== void 0 ? i : R) + this.gap;
457
- e.y = Math.floor(e.y / s) * s, e.height = Math.ceil(e.height / s) * s;
453
+ getVisibleLayoutInfos(t) {
454
+ if (t.height > 1) {
455
+ var e, i;
456
+ let s = ((i = (e = this.rowHeight) !== null && e !== void 0 ? e : this.estimatedRowHeight) !== null && i !== void 0 ? i : R) + this.gap;
457
+ t.y = Math.floor(t.y / s) * s, t.height = Math.ceil(t.height / s) * s;
458
458
  }
459
- this.layoutIfNeeded(e);
459
+ this.layoutIfNeeded(t);
460
460
  let l = [], o = (s) => {
461
- for (let a of s) this.isVisible(a, e) && (l.push(a.layoutInfo), a.children && o(a.children));
461
+ for (let a of s) this.isVisible(a, t) && (l.push(a.layoutInfo), a.children && o(a.children));
462
462
  };
463
463
  return o(this.rootNodes), l;
464
464
  }
465
- layoutIfNeeded(e) {
465
+ layoutIfNeeded(t) {
466
466
  if (this.lastCollection) {
467
- this.requestedRect.containsRect(e) || (this.requestedRect = this.requestedRect.union(e), this.rootNodes = this.buildCollection());
468
- for (let t of this.virtualizer.persistedKeys)
469
- if (this.ensureLayoutInfo(t)) return;
467
+ this.requestedRect.containsRect(t) || (this.requestedRect = this.requestedRect.union(t), this.rootNodes = this.buildCollection());
468
+ for (let e of this.virtualizer.persistedKeys)
469
+ if (this.ensureLayoutInfo(e)) return;
470
470
  }
471
471
  }
472
- ensureLayoutInfo(e) {
473
- return !this.layoutNodes.has(e) && this.requestedRect.area < this.contentSize.area && this.lastCollection ? (this.requestedRect = new u(0, 0, 1 / 0, 1 / 0), this.rootNodes = this.buildCollection(), this.requestedRect = new u(0, 0, this.contentSize.width, this.contentSize.height), !0) : !1;
472
+ ensureLayoutInfo(t) {
473
+ return !this.layoutNodes.has(t) && this.requestedRect.area < this.contentSize.area && this.lastCollection ? (this.requestedRect = new u(0, 0, 1 / 0, 1 / 0), this.rootNodes = this.buildCollection(), this.requestedRect = new u(0, 0, this.contentSize.width, this.contentSize.height), !0) : !1;
474
474
  }
475
- isVisible(e, t) {
476
- return e.layoutInfo.rect.intersects(t) || e.layoutInfo.isSticky || e.layoutInfo.type === "header" || e.layoutInfo.type === "loader" || this.virtualizer.isPersistedKey(e.layoutInfo.key);
475
+ isVisible(t, e) {
476
+ return t.layoutInfo.rect.intersects(e) || t.layoutInfo.isSticky || t.layoutInfo.type === "header" || t.layoutInfo.type === "loader" || this.virtualizer.isPersistedKey(t.layoutInfo.key);
477
477
  }
478
- shouldInvalidateEverything(e) {
479
- let t = e.layoutOptions;
478
+ shouldInvalidateEverything(t) {
479
+ let e = t.layoutOptions;
480
480
  var i, l, o, s, a;
481
- 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);
481
+ return t.sizeChanged || this.rowHeight !== ((i = e == null ? void 0 : e.rowHeight) !== null && i !== void 0 ? i : this.rowHeight) || this.headingHeight !== ((l = e == null ? void 0 : e.headingHeight) !== null && l !== void 0 ? l : this.headingHeight) || this.loaderHeight !== ((o = e == null ? void 0 : e.loaderHeight) !== null && o !== void 0 ? o : this.loaderHeight) || this.gap !== ((s = e == null ? void 0 : e.gap) !== null && s !== void 0 ? s : this.gap) || this.padding !== ((a = e == null ? void 0 : e.padding) !== null && a !== void 0 ? a : this.padding);
482
482
  }
483
- shouldInvalidateLayoutOptions(e, t) {
484
- 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;
483
+ shouldInvalidateLayoutOptions(t, e) {
484
+ return t.rowHeight !== e.rowHeight || t.estimatedRowHeight !== e.estimatedRowHeight || t.headingHeight !== e.headingHeight || t.estimatedHeadingHeight !== e.estimatedHeadingHeight || t.loaderHeight !== e.loaderHeight || t.dropIndicatorThickness !== e.dropIndicatorThickness || t.gap !== e.gap || t.padding !== e.padding;
485
485
  }
486
- update(e) {
487
- let t = this.virtualizer.collection;
488
- this.invalidateEverything = this.shouldInvalidateEverything(e), this.invalidateEverything && (this.requestedRect = this.virtualizer.visibleRect.copy(), this.layoutNodes.clear());
489
- let i = e.layoutOptions;
486
+ update(t) {
487
+ let e = this.virtualizer.collection;
488
+ this.invalidateEverything = this.shouldInvalidateEverything(t), this.invalidateEverything && (this.requestedRect = this.virtualizer.visibleRect.copy(), this.layoutNodes.clear());
489
+ let i = t.layoutOptions;
490
490
  var l;
491
491
  this.rowHeight = (l = i == null ? void 0 : i.rowHeight) !== null && l !== void 0 ? l : this.rowHeight;
492
492
  var o;
@@ -502,80 +502,80 @@ class Re extends ye {
502
502
  var d;
503
503
  this.gap = (d = i == null ? void 0 : i.gap) !== null && d !== void 0 ? d : this.gap;
504
504
  var c;
505
- if (this.padding = (c = i == null ? void 0 : i.padding) !== null && c !== void 0 ? c : this.padding, this.rootNodes = this.buildCollection(), this.lastCollection && t !== this.lastCollection)
506
- for (let f of this.lastCollection.getKeys()) t.getItem(f) || this.layoutNodes.get(f) && this.layoutNodes.delete(f);
507
- this.lastCollection = t, this.invalidateEverything = !1, this.validRect = this.requestedRect.copy();
508
- }
509
- buildCollection(e = this.padding) {
510
- 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";
511
- o && (e = 0);
512
- for (let r of t) {
505
+ if (this.padding = (c = i == null ? void 0 : i.padding) !== null && c !== void 0 ? c : this.padding, this.rootNodes = this.buildCollection(), this.lastCollection && e !== this.lastCollection)
506
+ for (let f of this.lastCollection.getKeys()) e.getItem(f) || this.layoutNodes.get(f) && this.layoutNodes.delete(f);
507
+ this.lastCollection = e, this.invalidateEverything = !1, this.validRect = this.requestedRect.copy();
508
+ }
509
+ buildCollection(t = this.padding) {
510
+ let e = this.virtualizer.collection, i = 0, l = [], o = (e == null ? void 0 : e.size) === 0 || e.size === 1 && e.getItem(e.getFirstKey()).type === "loader";
511
+ o && (t = 0);
512
+ for (let r of e) {
513
513
  var s, a;
514
514
  let d = ((a = (s = this.rowHeight) !== null && s !== void 0 ? s : this.estimatedRowHeight) !== null && a !== void 0 ? a : R) + this.gap;
515
- if (r.type === "item" && e + d < this.requestedRect.y && !this.isValid(r, e)) {
516
- e += d, i++;
515
+ if (r.type === "item" && t + d < this.requestedRect.y && !this.isValid(r, t)) {
516
+ t += d, i++;
517
517
  continue;
518
518
  }
519
- let c = this.buildChild(r, this.padding, e, null);
520
- if (e = c.layoutInfo.rect.maxY + this.gap, l.push(c), r.type === "item" && e > this.requestedRect.maxY) {
519
+ let c = this.buildChild(r, this.padding, t, null);
520
+ if (t = c.layoutInfo.rect.maxY + this.gap, l.push(c), r.type === "item" && t > this.requestedRect.maxY) {
521
521
  var h;
522
- let f = t.size - (l.length + i), g = t.getItem(t.getLastKey());
523
- if ((g == null ? void 0 : g.type) === "loader" && f--, e += f * d, (g == null ? void 0 : g.type) === "loader" && ((h = l.at(-1)) === null || h === void 0 ? void 0 : h.layoutInfo.type) !== "loader") {
524
- let y = this.buildChild(g, this.padding, e, null);
525
- l.push(y), e = y.layoutInfo.rect.maxY;
522
+ let f = e.size - (l.length + i), g = e.getItem(e.getLastKey());
523
+ if ((g == null ? void 0 : g.type) === "loader" && f--, t += f * d, (g == null ? void 0 : g.type) === "loader" && ((h = l.at(-1)) === null || h === void 0 ? void 0 : h.layoutInfo.type) !== "loader") {
524
+ let y = this.buildChild(g, this.padding, t, null);
525
+ l.push(y), t = y.layoutInfo.rect.maxY;
526
526
  }
527
527
  break;
528
528
  }
529
529
  }
530
- return e -= this.gap, e += o ? 0 : this.padding, this.contentSize = new z(this.virtualizer.visibleRect.width, e), l;
530
+ return t -= this.gap, t += o ? 0 : this.padding, this.contentSize = new z(this.virtualizer.visibleRect.width, t), l;
531
531
  }
532
- isValid(e, t) {
533
- let i = this.layoutNodes.get(e.key);
534
- 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));
532
+ isValid(t, e) {
533
+ let i = this.layoutNodes.get(t.key);
534
+ return !this.invalidateEverything && !!i && i.node === t && e === i.layoutInfo.rect.y && i.layoutInfo.rect.intersects(this.validRect) && i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect));
535
535
  }
536
- buildChild(e, t, i, l) {
537
- if (this.isValid(e, i)) return this.layoutNodes.get(e.key);
538
- let o = this.buildNode(e, t, i);
539
- return o.layoutInfo.parentKey = l ?? null, o.layoutInfo.allowOverflow = !0, this.layoutNodes.set(e.key, o), o;
536
+ buildChild(t, e, i, l) {
537
+ if (this.isValid(t, i)) return this.layoutNodes.get(t.key);
538
+ let o = this.buildNode(t, e, i);
539
+ return o.layoutInfo.parentKey = l ?? null, o.layoutInfo.allowOverflow = !0, this.layoutNodes.set(t.key, o), o;
540
540
  }
541
- buildNode(e, t, i) {
542
- switch (e.type) {
541
+ buildNode(t, e, i) {
542
+ switch (t.type) {
543
543
  case "section":
544
- return this.buildSection(e, t, i);
544
+ return this.buildSection(t, e, i);
545
545
  case "item":
546
- return this.buildItem(e, t, i);
546
+ return this.buildItem(t, e, i);
547
547
  case "header":
548
- return this.buildSectionHeader(e, t, i);
548
+ return this.buildSectionHeader(t, e, i);
549
549
  case "loader":
550
- return this.buildLoader(e, t, i);
550
+ return this.buildLoader(t, e, i);
551
551
  case "separator":
552
- return this.buildItem(e, t, i);
552
+ return this.buildItem(t, e, i);
553
553
  default:
554
- throw new Error("Unsupported node type: " + e.type);
554
+ throw new Error("Unsupported node type: " + t.type);
555
555
  }
556
556
  }
557
- buildLoader(e, t, i) {
558
- let l = new u(t, i, this.padding, 0), o = new b("loader", e.key, l);
559
- l.width = this.virtualizer.contentSize.width - this.padding - t;
557
+ buildLoader(t, e, i) {
558
+ let l = new u(e, i, this.padding, 0), o = new b("loader", t.key, l);
559
+ l.width = this.virtualizer.contentSize.width - this.padding - e;
560
560
  var s, a, h;
561
- 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 : R : 0, {
561
+ return l.height = t.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 : R : 0, {
562
562
  layoutInfo: o,
563
563
  validRect: l.intersection(this.requestedRect)
564
564
  };
565
565
  }
566
- buildSection(e, t, i) {
567
- let l = this.virtualizer.collection, o = this.virtualizer.visibleRect.width - this.padding, s = new u(t, i, o - t, 0), a = new b(e.type, e.key, s), h = i, r = 0, d = [];
568
- for (let g of Y(e, l)) {
566
+ buildSection(t, e, i) {
567
+ let l = this.virtualizer.collection, o = this.virtualizer.visibleRect.width - this.padding, s = new u(e, i, o - e, 0), a = new b(t.type, t.key, s), h = i, r = 0, d = [];
568
+ for (let g of Y(t, l)) {
569
569
  var c, f;
570
570
  let y = ((f = (c = this.rowHeight) !== null && c !== void 0 ? c : this.estimatedRowHeight) !== null && f !== void 0 ? f : R) + this.gap;
571
- if (i + y < this.requestedRect.y && !this.isValid(e, i)) {
571
+ if (i + y < this.requestedRect.y && !this.isValid(t, i)) {
572
572
  i += y, r++;
573
573
  continue;
574
574
  }
575
- let p = this.buildChild(g, t, i, a.key);
575
+ let p = this.buildChild(g, e, i, a.key);
576
576
  if (i = p.layoutInfo.rect.maxY + this.gap, d.push(p), i > this.requestedRect.maxY) {
577
577
  i += ([
578
- ...Y(e, l)
578
+ ...Y(t, l)
579
579
  ].length - (d.length + r)) * y;
580
580
  break;
581
581
  }
@@ -584,50 +584,50 @@ class Re extends ye {
584
584
  layoutInfo: a,
585
585
  children: d,
586
586
  validRect: a.rect.intersection(this.requestedRect),
587
- node: e
587
+ node: t
588
588
  };
589
589
  }
590
- buildSectionHeader(e, t, i) {
590
+ buildSectionHeader(t, e, i) {
591
591
  let l = this.virtualizer.visibleRect.width - this.padding, o = this.headingHeight, s = !1;
592
592
  if (o == null) {
593
- let r = this.layoutNodes.get(e.key), d = r == null ? void 0 : r.layoutInfo;
593
+ let r = this.layoutNodes.get(t.key), d = r == null ? void 0 : r.layoutInfo;
594
594
  if (d) {
595
- let c = this.virtualizer.collection.getItem(e.key), f = this.lastCollection ? this.lastCollection.getItem(e.key) : null;
595
+ let c = this.virtualizer.collection.getItem(t.key), f = this.lastCollection ? this.lastCollection.getItem(t.key) : null;
596
596
  o = d.rect.height, s = l !== d.rect.width || c !== f || d.estimatedSize;
597
597
  } else
598
- o = e.rendered ? this.estimatedHeadingHeight : 0, s = !0;
598
+ o = t.rendered ? this.estimatedHeadingHeight : 0, s = !0;
599
599
  }
600
600
  o == null && (o = R);
601
- let a = new u(t, i, l - t, o), h = new b("header", e.key, a);
601
+ let a = new u(e, i, l - e, o), h = new b("header", t.key, a);
602
602
  return h.estimatedSize = s, {
603
603
  layoutInfo: h,
604
604
  children: [],
605
605
  validRect: h.rect.intersection(this.requestedRect),
606
- node: e
606
+ node: t
607
607
  };
608
608
  }
609
- buildItem(e, t, i) {
610
- let l = this.virtualizer.visibleRect.width - this.padding - t, o = this.rowHeight, s = !1;
609
+ buildItem(t, e, i) {
610
+ let l = this.virtualizer.visibleRect.width - this.padding - e, o = this.rowHeight, s = !1;
611
611
  if (o == null) {
612
- let r = this.layoutNodes.get(e.key);
613
- r ? (o = r.layoutInfo.rect.height, s = l !== r.layoutInfo.rect.width || e !== r.node || r.layoutInfo.estimatedSize) : (o = this.estimatedRowHeight, s = !0);
612
+ let r = this.layoutNodes.get(t.key);
613
+ r ? (o = r.layoutInfo.rect.height, s = l !== r.layoutInfo.rect.width || t !== r.node || r.layoutInfo.estimatedSize) : (o = this.estimatedRowHeight, s = !0);
614
614
  }
615
615
  o == null && (o = R);
616
- let a = new u(t, i, l, o), h = new b(e.type, e.key, a);
616
+ let a = new u(e, i, l, o), h = new b(t.type, t.key, a);
617
617
  return h.estimatedSize = s, {
618
618
  layoutInfo: h,
619
619
  children: [],
620
620
  validRect: h.rect,
621
- node: e
621
+ node: t
622
622
  };
623
623
  }
624
- updateItemSize(e, t) {
625
- let i = this.layoutNodes.get(e);
624
+ updateItemSize(t, e) {
625
+ let i = this.layoutNodes.get(t);
626
626
  if (!i) return !1;
627
627
  let l = this.virtualizer.collection, o = i.layoutInfo;
628
- if (o.estimatedSize = !1, o.rect.height !== t.height) {
628
+ if (o.estimatedSize = !1, o.rect.height !== e.height) {
629
629
  let s = o.copy();
630
- 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);
630
+ s.rect.height = e.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(t, o, s);
631
631
  let a = o.parentKey != null ? l.getItem(o.parentKey) : null;
632
632
  for (; a; )
633
633
  this.updateLayoutNode(a.key, o, s), a = a.parentKey != null ? l.getItem(a.parentKey) : null;
@@ -635,19 +635,19 @@ class Re extends ye {
635
635
  }
636
636
  return !1;
637
637
  }
638
- updateLayoutNode(e, t, i) {
639
- let l = this.layoutNodes.get(e);
640
- l && (l.validRect = l.validRect.intersection(this.validRect), l.layoutInfo === t && (l.layoutInfo = i));
638
+ updateLayoutNode(t, e, i) {
639
+ let l = this.layoutNodes.get(t);
640
+ l && (l.validRect = l.validRect.intersection(this.validRect), l.layoutInfo === e && (l.layoutInfo = i));
641
641
  }
642
642
  getContentSize() {
643
643
  return this.contentSize;
644
644
  }
645
- getDropTargetFromPoint(e, t, i) {
646
- e += this.virtualizer.visibleRect.x, t += this.virtualizer.visibleRect.y;
647
- let l = new u(e, Math.max(0, t - this.gap), 1, Math.max(1, this.gap * 2)), o = this.getVisibleLayoutInfos(l), s = null, a = 1 / 0;
645
+ getDropTargetFromPoint(t, e, i) {
646
+ t += this.virtualizer.visibleRect.x, e += this.virtualizer.visibleRect.y;
647
+ let l = new u(t, Math.max(0, e - this.gap), 1, Math.max(1, this.gap * 2)), o = this.getVisibleLayoutInfos(l), s = null, a = 1 / 0;
648
648
  for (let c of o) {
649
649
  if (!c.rect.intersects(l)) continue;
650
- let f = Math.abs(c.rect.y - t), g = Math.abs(c.rect.maxY - t), y = Math.min(f, g);
650
+ let f = Math.abs(c.rect.y - e), g = Math.abs(c.rect.maxY - e), y = Math.min(f, g);
651
651
  y < a && (a = y, s = c.key);
652
652
  }
653
653
  if (s == null || this.virtualizer.collection.size === 0) return {
@@ -660,13 +660,13 @@ class Re extends ye {
660
660
  key: h.key,
661
661
  dropPosition: "on"
662
662
  };
663
- return i(d) ? t <= r.y + 10 && i({
663
+ return i(d) ? e <= r.y + 10 && i({
664
664
  ...d,
665
665
  dropPosition: "before"
666
- }) ? d.dropPosition = "before" : t >= r.maxY - 10 && i({
666
+ }) ? d.dropPosition = "before" : e >= r.maxY - 10 && i({
667
667
  ...d,
668
668
  dropPosition: "after"
669
- }) && (d.dropPosition = "after") : t <= r.y + r.height / 2 && i({
669
+ }) && (d.dropPosition = "after") : e <= r.y + r.height / 2 && i({
670
670
  ...d,
671
671
  dropPosition: "before"
672
672
  }) ? d.dropPosition = "before" : i({
@@ -674,55 +674,55 @@ class Re extends ye {
674
674
  dropPosition: "after"
675
675
  }) && (d.dropPosition = "after"), d;
676
676
  }
677
- getDropTargetLayoutInfo(e) {
678
- let t = this.getLayoutInfo(e.key), i;
679
- return e.dropPosition === "before" ? i = new u(t.rect.x, t.rect.y - this.dropIndicatorThickness / 2, t.rect.width, this.dropIndicatorThickness) : e.dropPosition === "after" ? i = new u(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);
677
+ getDropTargetLayoutInfo(t) {
678
+ let e = this.getLayoutInfo(t.key), i;
679
+ return t.dropPosition === "before" ? i = new u(e.rect.x, e.rect.y - this.dropIndicatorThickness / 2, e.rect.width, this.dropIndicatorThickness) : t.dropPosition === "after" ? i = new u(e.rect.x, e.rect.maxY - this.dropIndicatorThickness / 2, e.rect.width, this.dropIndicatorThickness) : i = e.rect, new b("dropIndicator", t.key + ":" + t.dropPosition, i);
680
680
  }
681
681
  /**
682
682
  * Creates a new ListLayout with options. See the list of properties below for a description
683
683
  * of the options that can be provided.
684
684
  */
685
- constructor(e = {}) {
685
+ constructor(t = {}) {
686
686
  super();
687
- var t;
688
- this.rowHeight = (t = e.rowHeight) !== null && t !== void 0 ? t : null;
687
+ var e;
688
+ this.rowHeight = (e = t.rowHeight) !== null && e !== void 0 ? e : null;
689
689
  var i;
690
- this.estimatedRowHeight = (i = e.estimatedRowHeight) !== null && i !== void 0 ? i : null;
690
+ this.estimatedRowHeight = (i = t.estimatedRowHeight) !== null && i !== void 0 ? i : null;
691
691
  var l;
692
- this.headingHeight = (l = e.headingHeight) !== null && l !== void 0 ? l : null;
692
+ this.headingHeight = (l = t.headingHeight) !== null && l !== void 0 ? l : null;
693
693
  var o;
694
- this.estimatedHeadingHeight = (o = e.estimatedHeadingHeight) !== null && o !== void 0 ? o : null;
694
+ this.estimatedHeadingHeight = (o = t.estimatedHeadingHeight) !== null && o !== void 0 ? o : null;
695
695
  var s;
696
- 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 = /* @__PURE__ */ new Map(), this.rootNodes = [], this.lastCollection = null, this.invalidateEverything = !1, this.validRect = new u(), this.requestedRect = new u(), this.contentSize = new z();
696
+ this.loaderHeight = (s = t.loaderHeight) !== null && s !== void 0 ? s : null, this.dropIndicatorThickness = t.dropIndicatorThickness || 2, this.gap = t.gap || 0, this.padding = t.padding || 0, this.layoutNodes = /* @__PURE__ */ new Map(), this.rootNodes = [], this.lastCollection = null, this.invalidateEverything = !1, this.validRect = new u(), this.requestedRect = new u(), this.contentSize = new z();
697
697
  }
698
698
  }
699
699
  let $ = null;
700
- function $e(n = !1) {
700
+ function $t(n = !1) {
701
701
  if ($ === null || n) {
702
- const e = document.createElement("div"), t = e.style;
703
- t.width = "50px", t.height = "50px", t.overflow = "scroll", t.direction = "rtl";
702
+ const t = document.createElement("div"), e = t.style;
703
+ e.width = "50px", e.height = "50px", e.overflow = "scroll", e.direction = "rtl";
704
704
  const i = document.createElement("div"), l = i.style;
705
- return l.width = "100px", l.height = "100px", e.appendChild(i), document.body.appendChild(e), e.scrollLeft > 0 ? $ = "positive-descending" : (e.scrollLeft = 1, e.scrollLeft === 0 ? $ = "negative" : $ = "positive-ascending"), document.body.removeChild(e), $;
705
+ return l.width = "100px", l.height = "100px", t.appendChild(i), document.body.appendChild(t), t.scrollLeft > 0 ? $ = "positive-descending" : (t.scrollLeft = 1, t.scrollLeft === 0 ? $ = "negative" : $ = "positive-ascending"), document.body.removeChild(t), $;
706
706
  }
707
707
  return $;
708
708
  }
709
- function Se(n, e) {
710
- let { scrollLeft: t } = n;
711
- if (e === "rtl") {
709
+ function St(n, t) {
710
+ let { scrollLeft: e } = n;
711
+ if (t === "rtl") {
712
712
  let { scrollWidth: i, clientWidth: l } = n;
713
- switch ($e()) {
713
+ switch ($t()) {
714
714
  case "negative":
715
- t = -t;
715
+ e = -e;
716
716
  break;
717
717
  case "positive-descending":
718
- t = i - l - t;
718
+ e = i - l - e;
719
719
  break;
720
720
  }
721
721
  }
722
- return t;
722
+ return e;
723
723
  }
724
- function ze(n, e) {
725
- let { contentSize: t, onVisibleRectChange: i, innerStyle: l, onScrollStart: o, onScrollEnd: s, scrollDirection: a = "both", ...h } = n, r = C({
724
+ function zt(n, t) {
725
+ let { contentSize: e, onVisibleRectChange: i, innerStyle: l, onScrollStart: o, onScrollEnd: s, scrollDirection: a = "both", ...h } = n, r = C({
726
726
  scrollTop: 0,
727
727
  scrollLeft: 0,
728
728
  scrollEndTime: 0,
@@ -732,8 +732,8 @@ function ze(n, e) {
732
732
  isScrolling: !1
733
733
  }).current, { direction: d } = F(), [c, f] = S(!1), g = L((v) => {
734
734
  v.target === v.currentTarget && (n.onScroll && n.onScroll(v), P(() => {
735
- let m = v.currentTarget.scrollTop, H = Se(v.currentTarget, d);
736
- 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 u(r.scrollLeft, r.scrollTop, r.width, r.height)), r.isScrolling || (r.isScrolling = !0, f(!0), window.dispatchEvent(new Event("tk.disconnect-observer")), o && o());
735
+ let m = v.currentTarget.scrollTop, H = St(v.currentTarget, d);
736
+ r.scrollTop = Math.max(0, Math.min(m, e.height - r.height)), r.scrollLeft = Math.max(0, Math.min(H, e.width - r.width)), i(new u(r.scrollLeft, r.scrollTop, r.width, r.height)), r.isScrolling || (r.isScrolling = !0, f(!0), window.dispatchEvent(new Event("tk.disconnect-observer")), o && o());
737
737
  let T = Date.now();
738
738
  r.scrollEndTime <= T + 50 && (r.scrollEndTime = T + 300, r.scrollTimeout != null && clearTimeout(r.scrollTimeout), r.scrollTimeout = setTimeout(() => {
739
739
  r.isScrolling = !1, f(!1), r.scrollTimeout = null, window.dispatchEvent(new Event("tk.connect-observer")), s && s();
@@ -743,55 +743,55 @@ function ze(n, e) {
743
743
  n,
744
744
  d,
745
745
  r,
746
- t,
746
+ e,
747
747
  i,
748
748
  o,
749
749
  s
750
750
  ]);
751
- ue(e, "scroll", g), he(() => () => {
751
+ ut(t, "scroll", g), ht(() => () => {
752
752
  r.scrollTimeout != null && clearTimeout(r.scrollTimeout), r.isScrolling && window.dispatchEvent(new Event("tk.connect-observer"));
753
753
  }, []);
754
- let y = C(!1), p = de((v) => {
755
- let m = e.current;
754
+ let y = C(!1), p = dt((v) => {
755
+ let m = t.current;
756
756
  if (!m || y.current) return;
757
757
  y.current = !0;
758
- let H = process.env.NODE_ENV === "test" && !process.env.VIRT_ON, T = Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"), ie = Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"), q = m.clientWidth, B = m.clientHeight, M = H && !T ? 1 / 0 : q, O = H && !ie ? 1 / 0 : B;
758
+ let H = process.env.NODE_ENV === "test" && !process.env.VIRT_ON, T = Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"), it = Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"), q = m.clientWidth, B = m.clientHeight, M = H && !T ? 1 / 0 : q, O = H && !it ? 1 / 0 : B;
759
759
  (r.width !== M || r.height !== O) && (r.width = M, r.height = O, v(() => {
760
760
  i(new u(r.scrollLeft, r.scrollTop, M, O));
761
761
  }), (!H && q !== m.clientWidth || B !== m.clientHeight) && (r.width = m.clientWidth, r.height = m.clientHeight, v(() => {
762
762
  i(new u(r.scrollLeft, r.scrollTop, r.width, r.height));
763
763
  }))), y.current = !1;
764
- }), N = C(null), [Z, ee] = S({});
764
+ }), N = C(null), [Z, tt] = S({});
765
765
  E(() => {
766
- if (!y.current && (N.current == null || !t.equals(N.current)))
766
+ if (!y.current && (N.current == null || !e.equals(N.current)))
767
767
  if (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") {
768
- ee({}), N.current = t;
768
+ tt({}), N.current = e;
769
769
  return;
770
770
  } else queueMicrotask(() => p(P));
771
- N.current = t;
771
+ N.current = e;
772
772
  }), E(() => {
773
773
  p((v) => v());
774
774
  }, [
775
775
  Z
776
776
  ]);
777
- let te = L(() => {
777
+ let et = L(() => {
778
778
  p(P);
779
779
  }, [
780
780
  p
781
781
  ]);
782
- ce({
783
- ref: e,
782
+ ct({
783
+ ref: t,
784
784
  box: "border-box",
785
- onResize: te
785
+ onResize: et
786
786
  });
787
787
  let I = {
788
788
  // Reset padding so that relative positioning works correctly. Padding will be done in JS layout.
789
789
  padding: 0,
790
790
  ...h.style
791
791
  };
792
- 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 = {
793
- width: Number.isFinite(t.width) ? t.width : void 0,
794
- height: Number.isFinite(t.height) ? t.height : void 0,
792
+ return a === "horizontal" ? (I.overflowX = "auto", I.overflowY = "hidden") : a === "vertical" || e.width === r.width ? (I.overflowY = "auto", I.overflowX = "hidden") : I.overflow = "auto", l = {
793
+ width: Number.isFinite(e.width) ? e.width : void 0,
794
+ height: Number.isFinite(e.height) ? e.height : void 0,
795
795
  pointerEvents: c ? "none" : "auto",
796
796
  position: "relative",
797
797
  ...l
@@ -806,51 +806,51 @@ function ze(n, e) {
806
806
  }
807
807
  };
808
808
  }
809
- function He(n) {
810
- let { layoutInfo: e, virtualizer: t, ref: i } = n, l = e == null ? void 0 : e.key, o = L(() => {
809
+ function Ht(n) {
810
+ let { layoutInfo: t, virtualizer: e, ref: i } = n, l = t == null ? void 0 : t.key, o = L(() => {
811
811
  if (l != null && i.current) {
812
- let s = Ce(i.current);
813
- t.updateItemSize(l, s);
812
+ let s = Ct(i.current);
813
+ e.updateItemSize(l, s);
814
814
  }
815
815
  }, [
816
- t,
816
+ e,
817
817
  l,
818
818
  i
819
819
  ]);
820
820
  return E(() => {
821
- e != null && e.estimatedSize && o();
821
+ t != null && t.estimatedSize && o();
822
822
  }), {
823
823
  updateSize: o
824
824
  };
825
825
  }
826
- function Ce(n) {
827
- let e = n.style.height;
826
+ function Ct(n) {
827
+ let t = n.style.height;
828
828
  n.style.height = "";
829
- let t = new z(n.scrollWidth, n.scrollHeight);
830
- return n.style.height = e, t;
829
+ let e = new z(n.scrollWidth, n.scrollHeight);
830
+ return n.style.height = t, e;
831
831
  }
832
832
  function U(n) {
833
- let { style: e, className: t, layoutInfo: i, virtualizer: l, parent: o, children: s } = n, { direction: a } = F(), h = C(null);
834
- return He({
833
+ let { style: t, className: e, layoutInfo: i, virtualizer: l, parent: o, children: s } = n, { direction: a } = F(), h = C(null);
834
+ return Ht({
835
835
  layoutInfo: i,
836
836
  virtualizer: l,
837
837
  ref: h
838
838
  }), /* @__PURE__ */ w.createElement("div", {
839
839
  role: "presentation",
840
840
  ref: h,
841
- className: t,
841
+ className: e,
842
842
  style: {
843
- ..._e(i, a, o),
844
- ...e
843
+ ...kt(i, a, o),
844
+ ...t
845
845
  }
846
846
  }, s);
847
847
  }
848
848
  let W = /* @__PURE__ */ new WeakMap();
849
- function _e(n, e, t) {
850
- let i = e === "rtl" ? "right" : "left", l = W.get(n);
849
+ function kt(n, t, e) {
850
+ let i = t === "rtl" ? "right" : "left", l = W.get(n);
851
851
  if (l && l[i] != null) {
852
- if (!t) return l;
853
- let h = n.rect.y - t.rect.y, r = n.rect.x - t.rect.x;
852
+ if (!e) return l;
853
+ let h = n.rect.y - e.rect.y, r = n.rect.x - e.rect.x;
854
854
  if (l.top === h && l[i] === r) return l;
855
855
  }
856
856
  let o = {
@@ -858,8 +858,8 @@ function _e(n, e, t) {
858
858
  // which WON'T be the parent since the parent has overflow visible. This means we shouldn't offset the height by the parent's position
859
859
  // Not 100% about this change here since it is quite ambigious what the scrolling container maybe and how its top is positioned with respect to the
860
860
  // calculated layoutInfo.y here
861
- top: n.rect.y - (t && !(t.allowOverflow && n.isSticky) ? t.rect.y : 0),
862
- [i]: n.rect.x - (t && !(t.allowOverflow && n.isSticky) ? t.rect.x : 0),
861
+ top: n.rect.y - (e && !(e.allowOverflow && n.isSticky) ? e.rect.y : 0),
862
+ [i]: n.rect.x - (e && !(e.allowOverflow && n.isSticky) ? e.rect.x : 0),
863
863
  width: n.rect.width,
864
864
  height: n.rect.height
865
865
  };
@@ -881,30 +881,30 @@ function _e(n, e, t) {
881
881
  return W.set(n, a), a;
882
882
  }
883
883
  const G = /* @__PURE__ */ X(null), J = /* @__PURE__ */ X(null);
884
- function ke(n) {
885
- let { children: e, layout: t, layoutOptions: i } = n, l = k(() => typeof t == "function" ? new t() : t, [
886
- t
887
- ]), o = k(() => ({
884
+ function _t(n) {
885
+ let { children: t, layout: e, layoutOptions: i } = n, l = _(() => typeof e == "function" ? new e() : e, [
886
+ e
887
+ ]), o = _(() => ({
888
888
  isVirtualized: !0,
889
889
  layoutDelegate: l,
890
890
  dropTargetDelegate: l.getDropTargetFromPoint ? l : void 0,
891
- CollectionRoot: Le,
892
- CollectionBranch: Ne
891
+ CollectionRoot: Lt,
892
+ CollectionBranch: Nt
893
893
  }), [
894
894
  l
895
895
  ]);
896
- return /* @__PURE__ */ w.createElement(re.Provider, {
896
+ return /* @__PURE__ */ w.createElement(rt.Provider, {
897
897
  value: o
898
898
  }, /* @__PURE__ */ w.createElement(J.Provider, {
899
899
  value: {
900
900
  layout: l,
901
901
  layoutOptions: i
902
902
  }
903
- }, e));
903
+ }, t));
904
904
  }
905
- function Le({ collection: n, persistedKeys: e, scrollRef: t, renderDropIndicator: i }) {
905
+ function Lt({ collection: n, persistedKeys: t, scrollRef: e, renderDropIndicator: i }) {
906
906
  var l;
907
- let { layout: o, layoutOptions: s } = A(J), a = (l = o.useLayoutOptions) === null || l === void 0 ? void 0 : l.call(o), h = Ie({
907
+ let { layout: o, layoutOptions: s } = A(J), a = (l = o.useLayoutOptions) === null || l === void 0 ? void 0 : l.call(o), h = It({
908
908
  layout: o,
909
909
  collection: n,
910
910
  renderView: (d, c) => {
@@ -912,62 +912,62 @@ function Le({ collection: n, persistedKeys: e, scrollRef: t, renderDropIndicator
912
912
  return c == null || (f = c.render) === null || f === void 0 ? void 0 : f.call(c, c);
913
913
  },
914
914
  onVisibleRectChange(d) {
915
- let c = t == null ? void 0 : t.current;
915
+ let c = e == null ? void 0 : e.current;
916
916
  c && (c.scrollLeft = d.x, c.scrollTop = d.y);
917
917
  },
918
- persistedKeys: e,
919
- layoutOptions: k(() => s && a ? {
918
+ persistedKeys: t,
919
+ layoutOptions: _(() => s && a ? {
920
920
  ...s,
921
921
  ...a
922
922
  } : s || a, [
923
923
  s,
924
924
  a
925
925
  ])
926
- }), { contentProps: r } = ze({
926
+ }), { contentProps: r } = zt({
927
927
  onVisibleRectChange: h.setVisibleRect,
928
928
  contentSize: h.contentSize,
929
929
  onScrollStart: h.startScrolling,
930
930
  onScrollEnd: h.endScrolling
931
- }, t);
931
+ }, e);
932
932
  return /* @__PURE__ */ w.createElement("div", r, /* @__PURE__ */ w.createElement(G.Provider, {
933
933
  value: h
934
934
  }, Q(null, h.visibleViews, i)));
935
935
  }
936
- function Ne({ parent: n, renderDropIndicator: e }) {
936
+ function Nt({ parent: n, renderDropIndicator: t }) {
937
937
  let i = A(G).virtualizer.getVisibleView(n.key);
938
- return Q(i, Array.from(i.children), e);
938
+ return Q(i, Array.from(i.children), t);
939
939
  }
940
- function Q(n, e, t) {
941
- return e.map((i) => Te(n, i, t));
940
+ function Q(n, t, e) {
941
+ return t.map((i) => Tt(n, i, e));
942
942
  }
943
- function Te(n, e, t) {
943
+ function Tt(n, t, e) {
944
944
  let i = /* @__PURE__ */ w.createElement(U, {
945
- key: e.key,
946
- layoutInfo: e.layoutInfo,
947
- virtualizer: e.virtualizer,
945
+ key: t.key,
946
+ layoutInfo: t.layoutInfo,
947
+ virtualizer: t.virtualizer,
948
948
  parent: n == null ? void 0 : n.layoutInfo
949
- }, e.rendered), { collection: l, layout: o } = e.virtualizer, s = e.content;
950
- return (s == null ? void 0 : s.type) === "item" && t && o.getDropTargetLayoutInfo && (i = /* @__PURE__ */ w.createElement(w.Fragment, {
951
- key: e.key
952
- }, D(n, e, {
949
+ }, t.rendered), { collection: l, layout: o } = t.virtualizer, s = t.content;
950
+ return (s == null ? void 0 : s.type) === "item" && e && o.getDropTargetLayoutInfo && (i = /* @__PURE__ */ w.createElement(w.Fragment, {
951
+ key: t.key
952
+ }, D(n, t, {
953
953
  type: "item",
954
- key: e.content.key,
954
+ key: t.content.key,
955
955
  dropPosition: "before"
956
- }, t), i, ae(l, s, (a) => D(n, e, a, t)))), i;
956
+ }, e), i, at(l, s, (a) => D(n, t, a, e)))), i;
957
957
  }
958
- function D(n, e, t, i) {
959
- let l = i(t);
958
+ function D(n, t, e, i) {
959
+ let l = i(e);
960
960
  if (l) {
961
- let o = e.virtualizer.layout.getDropTargetLayoutInfo(t);
961
+ let o = t.virtualizer.layout.getDropTargetLayoutInfo(e);
962
962
  l = /* @__PURE__ */ w.createElement(U, {
963
963
  layoutInfo: o,
964
- virtualizer: e.virtualizer,
964
+ virtualizer: t.virtualizer,
965
965
  parent: n == null ? void 0 : n.layoutInfo
966
966
  }, l);
967
967
  }
968
968
  return l;
969
969
  }
970
- class Ee extends Re {
970
+ class Et extends Rt {
971
971
  /**
972
972
  * When using the ListLayout our scroll container height is not calculated properly when the content is partially sectioned.
973
973
  * ```ts
@@ -985,74 +985,74 @@ class Ee extends Re {
985
985
  * This might not be optional for performance, FYI
986
986
  */
987
987
  getContentSize() {
988
- var t;
989
- const e = (t = this == null ? void 0 : this.virtualizer) == null ? void 0 : t.collection.getKeys();
990
- return Array.from(e || []).forEach((i) => {
988
+ var e;
989
+ const t = (e = this == null ? void 0 : this.virtualizer) == null ? void 0 : e.collection.getKeys();
990
+ return Array.from(t || []).forEach((i) => {
991
991
  this.getLayoutInfo(i);
992
992
  }), this.contentSize;
993
993
  }
994
994
  }
995
- const Ve = "_listBox_iev2c_7", Me = "_listBoxPopover_iev2c_19", Oe = "_listBoxSectionHeading_iev2c_31", Pe = "_listBoxButton_iev2c_38", Ke = "_listBoxItem_iev2c_50", V = {
996
- listBox: Ve,
997
- listBoxPopover: Me,
998
- listBoxSectionHeading: Oe,
999
- listBoxButton: Pe,
1000
- listBoxItem: Ke
1001
- }, Ze = ({
995
+ const Vt = "_listBox_1f4kp_7", Mt = "_listBoxPopover_1f4kp_19", Ot = "_listBoxSectionHeading_1f4kp_31", Pt = "_listBoxButton_1f4kp_40", Kt = "_listBoxItem_1f4kp_52", V = {
996
+ listBox: Vt,
997
+ listBoxPopover: Mt,
998
+ listBoxSectionHeading: Ot,
999
+ listBoxButton: Pt,
1000
+ listBoxItem: Kt
1001
+ }, Zt = ({
1002
1002
  className: n,
1003
- children: e,
1004
- ...t
1005
- }) => /* @__PURE__ */ _(
1006
- ke,
1003
+ children: t,
1004
+ ...e
1005
+ }) => /* @__PURE__ */ k(
1006
+ _t,
1007
1007
  {
1008
- layout: Ee,
1008
+ layout: Et,
1009
1009
  layoutOptions: {
1010
1010
  headingHeight: 44
1011
1011
  },
1012
- children: /* @__PURE__ */ _(
1013
- oe,
1012
+ children: /* @__PURE__ */ k(
1013
+ ot,
1014
1014
  {
1015
1015
  className: K(V.listBox, n),
1016
- ...t,
1017
- children: e
1016
+ ...e,
1017
+ children: t
1018
1018
  }
1019
1019
  )
1020
1020
  }
1021
- ), et = ({
1021
+ ), te = ({
1022
1022
  children: n,
1023
- className: e,
1024
- ...t
1025
- }) => /* @__PURE__ */ _(
1026
- ne,
1023
+ className: t,
1024
+ ...e
1025
+ }) => /* @__PURE__ */ k(
1026
+ nt,
1027
1027
  {
1028
- className: K(V.listBoxItem, e),
1029
- ...t,
1028
+ className: K(V.listBoxItem, t),
1029
+ ...e,
1030
1030
  children: n
1031
1031
  }
1032
- ), tt = ({
1032
+ ), ee = ({
1033
1033
  className: n,
1034
- children: e,
1035
- ...t
1036
- }) => /* @__PURE__ */ _(
1037
- fe,
1034
+ children: t,
1035
+ ...e
1036
+ }) => /* @__PURE__ */ k(
1037
+ ft,
1038
1038
  {
1039
1039
  className: K(n, V.listBoxPopover),
1040
1040
  offset: 0,
1041
- ...t,
1042
- children: e
1041
+ ...e,
1042
+ children: t
1043
1043
  }
1044
- ), it = ({
1044
+ ), ie = ({
1045
1045
  children: n,
1046
- name: e,
1047
- ...t
1048
- }) => /* @__PURE__ */ le(se, { ...t, children: [
1049
- /* @__PURE__ */ _(ge, { className: V.listBoxSectionHeading, children: e }),
1046
+ name: t,
1047
+ ...e
1048
+ }) => /* @__PURE__ */ lt(st, { ...e, children: [
1049
+ /* @__PURE__ */ k(gt, { className: V.listBoxSectionHeading, children: t }),
1050
1050
  n
1051
1051
  ] });
1052
1052
  export {
1053
- Ze as L,
1054
- et as a,
1055
- tt as b,
1056
- it as c,
1053
+ Zt as L,
1054
+ te as a,
1055
+ ee as b,
1056
+ ie as c,
1057
1057
  V as s
1058
1058
  };