@midas-ds/components 14.0.0 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (334) hide show
  1. package/AccordionItem-DTbu3lqx.js +343 -0
  2. package/AccordionItem-tWS22wDv.cjs +1 -0
  3. package/{Breadcrumbs-DpUPChG9.cjs → Breadcrumbs-BBDGxc68.cjs} +1 -1
  4. package/{Breadcrumbs-CV3rVTjR.js → Breadcrumbs-BenPNv8Z.js} +4 -4
  5. package/Button-1sEX8jKn.cjs +1 -0
  6. package/{Button-xc8A29pm.cjs → Button-BEWKXjlP.cjs} +1 -1
  7. package/{Button-B6lxIKPk.js → Button-BbfVT9Yl.js} +122 -116
  8. package/{Button-CRIYvCRM.js → Button-DdXFHfXw.js} +1 -1
  9. package/CHANGELOG.md +49 -0
  10. package/{Card-CfosvMF5.js → Card-CdqGFff2.js} +3 -3
  11. package/{Card-D2E3gviQ.cjs → Card-Db9xdzJ0.cjs} +1 -1
  12. package/{CharacterCounter-C-PFKoGg.cjs → CharacterCounter-CTpQ12f7.cjs} +1 -1
  13. package/{CharacterCounter-DpFONstE.js → CharacterCounter-gbDGfize.js} +2 -2
  14. package/Checkbox-BgrLxY6P.cjs +1 -0
  15. package/{Checkbox-Cr3MmHPE.js → Checkbox-CdN1D5pD.js} +94 -90
  16. package/{CheckboxGroup-DEY3JDEL.js → CheckboxGroup-CtJJqk_q.js} +7 -7
  17. package/{CheckboxGroup-f9Oa1MhQ.cjs → CheckboxGroup-thvsvOqD.cjs} +1 -1
  18. package/{Collection-j_iWeuZo.js → Collection-BkxwF21i.js} +205 -213
  19. package/Collection-vGO6v3_U.cjs +1 -0
  20. package/{ColorSchemeSwitch-Cur7zN5_.cjs → ColorSchemeSwitch-Ckna0otR.cjs} +1 -1
  21. package/{ColorSchemeSwitch-ChFSNntp.js → ColorSchemeSwitch-aF2UxI20.js} +2 -2
  22. package/{ComboBox-D7eKe-M5.js → ComboBox-BDX4BYWJ.js} +244 -229
  23. package/ComboBox-DFPrJUoV.cjs +1 -0
  24. package/{DateField-BszKZodr.cjs → DateField-B92Cqf9K.cjs} +1 -1
  25. package/{DateField-xyhyDy7u.js → DateField-BPRWrVcu.js} +4 -4
  26. package/DateInputDivider-CCrXjsUB.cjs +1 -0
  27. package/{DateInputDivider-2Wf2hlXA.js → DateInputDivider-DOHpVaNE.js} +191 -188
  28. package/DateRangePicker-COSTCOt8.cjs +6 -0
  29. package/{DateRangePicker-YwKi0ukr.js → DateRangePicker-Cmt9NC35.js} +119 -115
  30. package/Dialog-CPuJA2fm.js +256 -0
  31. package/{Dialog-DOyFzvUa.js → Dialog-D4Py85wi.js} +712 -694
  32. package/Dialog-DtOf0vWx.cjs +1 -0
  33. package/Dialog-DycTLpdr.cjs +6 -0
  34. package/{DragAndDrop-DQ_6tl6K.cjs → DragAndDrop-Cs-V-9ak.cjs} +1 -1
  35. package/{DragAndDrop-DPRU3Y0Y.js → DragAndDrop-DF0VoPJw.js} +1 -1
  36. package/{Dropdown-uC9wc8vd.js → Dropdown-B4lwe0Hn.js} +2 -2
  37. package/{Dropdown-5rmvcHD_.cjs → Dropdown-_g9l5k07.cjs} +1 -1
  38. package/{FieldError-C4kD4yJZ.js → FieldError-CIxlNQCM.js} +13 -13
  39. package/{FieldError-C4WBoCRc.cjs → FieldError-JWxR_EqN.cjs} +1 -1
  40. package/{FileUpload-CTbh7Gic.cjs → FileUpload-C0TjNkuh.cjs} +2 -2
  41. package/{FileUpload-01wGpykv.js → FileUpload-DLBP3VPp.js} +260 -534
  42. package/Group-B0Wj9pI8.cjs +1 -0
  43. package/Group-BAd7alBM.js +46 -0
  44. package/{Heading-CEx2LJyM.js → Heading-CCoGfKQ8.js} +9 -9
  45. package/{Heading-CUShN98j.cjs → Heading-x7y3xadc.cjs} +1 -1
  46. package/{InfoBanner-CRSz8DK2.js → InfoBanner-D7Ta-7PI.js} +1 -1
  47. package/{InfoBanner-D_pNj1J2.cjs → InfoBanner-_M_rGQiu.cjs} +1 -1
  48. package/{Input-CCuE9Sc5.cjs → Input-Bda0PCu5.cjs} +1 -1
  49. package/{Input-CkTOajNJ.js → Input-CQzv-D9g.js} +3 -3
  50. package/{Label-CkIRTC0_.cjs → Label-DpY2SZdQ.cjs} +1 -1
  51. package/{Label-CV9p0K2n.js → Label-FfEnd4ai.js} +4 -4
  52. package/Layout-BrEuHajQ.cjs +16 -0
  53. package/{Layout-IeVrHpT0.js → Layout-Hd1e_MEA.js} +62 -63
  54. package/{Link-BFvUN5Sq.js → Link-BudFjYrw.js} +1 -1
  55. package/{Link-D2K7bDd3.cjs → Link-BvUSTIip.cjs} +1 -1
  56. package/{Link-a3Ymcnoa.cjs → Link-DRU6Qzia.cjs} +1 -1
  57. package/{Link-B9CQXWzE.js → Link-l-nMP-Zd.js} +5 -5
  58. package/{LinkButton-BCn5gR10.cjs → LinkButton-DGdnbTgR.cjs} +1 -1
  59. package/{LinkButton-DN3J1Agu.js → LinkButton-DP9W-E32.js} +1 -1
  60. package/{ListBox-2eEa1l0M.js → ListBox-5GK4ZRj1.js} +189 -178
  61. package/ListBox-FD30iELk.cjs +1 -0
  62. package/{ListBoxSection-dksiACMZ.js → ListBox-LJ3VgZMr.js} +230 -266
  63. package/ListBox-u6ZXp5Yi.cjs +1 -0
  64. package/{ListBoxLoadMoreItem-IcGb_XwN.js → ListBoxLoadMoreItem-B4GFbdYf.js} +3 -3
  65. package/ListBoxLoadMoreItem-DMUOzVtt.cjs +1 -0
  66. package/ListBoxSection-CBlpg0AG.cjs +1 -0
  67. package/ListBoxSection-DjGs1ndn.js +51 -0
  68. package/ListKeyboardDelegate-8zuIfwQ7.cjs +1 -0
  69. package/{ListKeyboardDelegate-Dyu4eFtP.js → ListKeyboardDelegate-BBmpJ-2O.js} +36 -40
  70. package/{OverlayArrow-Bh_G2tJ3.js → OverlayArrow-CjGslX2c.js} +2 -2
  71. package/{OverlayArrow-DJ4nNscD.cjs → OverlayArrow-bcrb_syE.cjs} +1 -1
  72. package/Popover-CS8Yyfrq.js +39 -0
  73. package/Popover-DpB0XDBp.cjs +1 -0
  74. package/{PressResponder-DUhG97jJ.js → PressResponder-BMj6Zvbn.js} +3 -3
  75. package/{PressResponder-AXK2I_yx.cjs → PressResponder-ChvCuOue.cjs} +1 -1
  76. package/{ProgressBar-B-TOuoAC.cjs → ProgressBar-BZqAQTV3.cjs} +1 -1
  77. package/{ProgressBar-B0WEQkyq.js → ProgressBar-BpsvPCKk.js} +12 -12
  78. package/{RSPContexts-BW2SEIqe.js → RSPContexts-B0lEq7qq.js} +5 -3
  79. package/RSPContexts-XUvspq3j.cjs +1 -0
  80. package/Radio-B3FBTn4F.cjs +1 -0
  81. package/Radio-LevFYAg4.js +340 -0
  82. package/{RangeCalendar-B6zKSDju.cjs → RangeCalendar-CH0CyBui.cjs} +2 -2
  83. package/{RangeCalendar-D5TMu8GI.js → RangeCalendar-DT_KVd80.js} +58 -58
  84. package/{SearchField-DnBBlPT7.cjs → SearchField-BX7P7BgV.cjs} +1 -1
  85. package/{SearchField-wojUSY2S.js → SearchField-C-TFzcJF.js} +3 -3
  86. package/Select-C-ykeY_T.js +773 -0
  87. package/Select-CiCng7ZP.js +678 -0
  88. package/Select-D4wi-0Jw.cjs +1 -0
  89. package/Select-JIDW2mN8.cjs +1 -0
  90. package/{FocusScope-8ILtcq9W.js → SelectionIndicator-C2E23-zO.js} +270 -174
  91. package/SelectionIndicator-ClG0GpJu.cjs +1 -0
  92. package/SelectionManager-CNJmHeCF.cjs +1 -0
  93. package/SelectionManager-DoNLJm8c.js +1063 -0
  94. package/{Separator-COlhRmJF.js → Separator-CQfDz_zr.js} +10 -10
  95. package/{Separator-DcbM84B8.cjs → Separator-CSyYDGNE.cjs} +1 -1
  96. package/{Separator-BQkxEZC9.cjs → Separator-DCi4bnBr.cjs} +1 -1
  97. package/{Separator--4b7vckr.js → Separator-DLr4kUJD.js} +2 -2
  98. package/Spinner-D6Fcu_Dp.js +54 -0
  99. package/Spinner-DIapnvIz.cjs +6 -0
  100. package/TabList-BBmBumm6.js +394 -0
  101. package/TabList-DVzXuGXA.cjs +1 -0
  102. package/Table-B1nxmW14.cjs +16 -0
  103. package/{Table-cCSOrPkK.js → Table-DxqKDp7N.js} +707 -703
  104. package/Tag-BL-_PONN.cjs +1 -0
  105. package/Tag-DX1X_NZE.js +774 -0
  106. package/{Text-CkhG15SU.cjs → Text-0wXj3J8E.cjs} +1 -1
  107. package/{Text-BQe1I4-r.js → Text-BBFWBNAH.js} +1 -1
  108. package/{Text-CkhZTTV5.cjs → Text-D5OSv6Uv.cjs} +1 -1
  109. package/{Text-BpERRete.js → Text-bqP9NeVg.js} +1 -1
  110. package/{TextArea-B5TsyJxa.cjs → TextArea-Bjf8CBp0.cjs} +1 -1
  111. package/{TextArea-Cado2arG.js → TextArea-CJPBvogq.js} +8 -8
  112. package/TextField-DtD9-arA.cjs +1 -0
  113. package/{TextField-5AI6T1ol.js → TextField-DyR61bjZ.js} +10 -10
  114. package/{Toast-CgXRE33Y.js → Toast-B99bLWnh.js} +12 -12
  115. package/{Toast-Cs-Uvf1p.cjs → Toast-DUZ5jfG1.cjs} +1 -1
  116. package/{ToggleButtonGroup-SKGgfFs4.js → ToggleButtonGroup-CFRutAZ4.js} +82 -78
  117. package/ToggleButtonGroup-dnvnzkaD.cjs +1 -0
  118. package/{Tooltip-txk48Qof.js → Tooltip-CUdmOznK.js} +4 -4
  119. package/{Tooltip-BrupFzaI.cjs → Tooltip-D-ATlbIM.cjs} +1 -1
  120. package/{VisuallyHidden-Awup6QxT.cjs → VisuallyHidden-BMelU6B0.cjs} +1 -1
  121. package/{VisuallyHidden-D2ZXHTJs.js → VisuallyHidden-DuW70K-5.js} +1 -1
  122. package/accordion/index.cjs +1 -1
  123. package/accordion/index.js +1 -1
  124. package/assets/AccordionItem.css +1 -1
  125. package/assets/FieldError.css +1 -1
  126. package/assets/ListBox.css +1 -0
  127. package/assets/Popover.css +1 -1
  128. package/assets/RangeCalendar.css +1 -1
  129. package/assets/Select.css +1 -1
  130. package/assets/Select2.css +1 -0
  131. package/assets/Spinner.css +1 -1
  132. package/assets/TabList.css +1 -1
  133. package/assets/Tag.css +1 -1
  134. package/assets/default.css +1 -1
  135. package/breadcrumbs/index.cjs +1 -1
  136. package/breadcrumbs/index.js +1 -1
  137. package/button/index.cjs +1 -1
  138. package/button/index.js +1 -1
  139. package/calendar/index.cjs +1 -1
  140. package/calendar/index.js +1 -1
  141. package/card/index.cjs +1 -1
  142. package/card/index.js +1 -1
  143. package/character-counter/index.cjs +1 -1
  144. package/character-counter/index.js +1 -1
  145. package/checkbox/index.cjs +1 -1
  146. package/checkbox/index.js +2 -2
  147. package/color-scheme-switch/index.cjs +1 -1
  148. package/color-scheme-switch/index.js +1 -1
  149. package/combobox/index.cjs +1 -1
  150. package/combobox/index.js +1 -1
  151. package/date-field/index.cjs +1 -1
  152. package/date-field/index.js +2 -2
  153. package/date-picker/index.cjs +1 -1
  154. package/date-picker/index.js +1 -1
  155. package/dropdown/index.cjs +1 -1
  156. package/dropdown/index.js +1 -1
  157. package/field-error/index.cjs +1 -1
  158. package/field-error/index.js +1 -1
  159. package/file-upload/index.cjs +1 -1
  160. package/file-upload/index.js +1 -1
  161. package/{getScrollParent-Ru2U2LlM.js → getScrollParent-DFCzfqHG.js} +1 -1
  162. package/{getScrollParent-DuKmPmUa.cjs → getScrollParent-DjULaF_q.cjs} +1 -1
  163. package/heading/index.cjs +1 -1
  164. package/heading/index.js +1 -1
  165. package/index.cjs +1 -1
  166. package/index.d.ts +1 -0
  167. package/index.js +99 -95
  168. package/info-banner/index.cjs +1 -1
  169. package/info-banner/index.js +1 -1
  170. package/intlStrings-Cd44R5hT.js +278 -0
  171. package/intlStrings-ClBuC6xN.cjs +1 -0
  172. package/label/index.cjs +1 -1
  173. package/label/index.js +1 -1
  174. package/layout/index.cjs +1 -1
  175. package/layout/index.js +1 -1
  176. package/legacy-select/Select.d.ts +8 -0
  177. package/legacy-select/SelectTrigger.d.ts +10 -0
  178. package/legacy-select/index.cjs +1 -0
  179. package/legacy-select/index.d.ts +2 -0
  180. package/legacy-select/index.js +4 -0
  181. package/legacy-select/intl/translations.json.d.ts +17 -0
  182. package/{select → legacy-select}/types.d.ts +2 -2
  183. package/legacy-select/useMultiSelect.d.ts +5 -0
  184. package/link/index.cjs +1 -1
  185. package/link/index.js +2 -2
  186. package/link-button/index.cjs +1 -1
  187. package/link-button/index.js +2 -2
  188. package/list-box/ListBox.d.ts +1 -2
  189. package/list-box/ListBoxHeader.d.ts +3 -0
  190. package/list-box/ListBoxItem.d.ts +9 -3
  191. package/list-box/ListBoxSection.d.ts +1 -1
  192. package/list-box/index.cjs +1 -1
  193. package/list-box/index.d.ts +1 -0
  194. package/list-box/index.js +9 -7
  195. package/menu/index.cjs +1 -1
  196. package/menu/index.js +2 -2
  197. package/modal/index.cjs +1 -1
  198. package/modal/index.js +2 -2
  199. package/package.json +4 -4
  200. package/popover/Popover.d.ts +2 -1
  201. package/popover/index.cjs +1 -1
  202. package/popover/index.js +1 -1
  203. package/progress-bar/index.cjs +1 -1
  204. package/progress-bar/index.js +1 -1
  205. package/radio/index.cjs +1 -1
  206. package/radio/index.js +1 -1
  207. package/scrollIntoView-BVI21Y4-.js +65 -0
  208. package/scrollIntoView-BueMOyGp.cjs +1 -0
  209. package/search-field/index.cjs +1 -1
  210. package/search-field/index.js +1 -1
  211. package/select/Select.d.ts +33 -4
  212. package/select/SelectAll.d.ts +1 -0
  213. package/select/SelectTags.d.ts +4 -0
  214. package/select/SelectTrigger.d.ts +4 -8
  215. package/select/SelectValueTag.d.ts +5 -0
  216. package/select/index.cjs +1 -1
  217. package/select/index.d.ts +1 -2
  218. package/select/index.js +1 -1
  219. package/select/intl/translations.json.d.ts +2 -2
  220. package/spinner/Spinner.d.ts +5 -1
  221. package/spinner/index.cjs +1 -1
  222. package/spinner/index.js +1 -1
  223. package/table/index.cjs +1 -1
  224. package/table/index.js +1 -1
  225. package/tabs/Tabs.d.ts +2 -9
  226. package/tabs/index.cjs +1 -1
  227. package/tabs/index.d.ts +0 -1
  228. package/tabs/index.js +1 -1
  229. package/tag/index.cjs +1 -1
  230. package/tag/index.js +1 -1
  231. package/text/index.cjs +1 -1
  232. package/text/index.js +1 -1
  233. package/textfield/TextArea.d.ts +3 -2
  234. package/textfield/TextField.d.ts +3 -2
  235. package/textfield/index.cjs +1 -1
  236. package/textfield/index.js +1 -1
  237. package/toast/index.cjs +1 -1
  238. package/toast/index.js +1 -1
  239. package/toggle-button/index.cjs +1 -1
  240. package/toggle-button/index.js +1 -1
  241. package/tooltip/index.cjs +1 -1
  242. package/tooltip/index.js +1 -1
  243. package/{useButton-Bh3duhYL.cjs → useButton-C0r5nrqs.cjs} +1 -1
  244. package/{useButton-A-VOfwuT.js → useButton-CRgN6aZf.js} +2 -2
  245. package/useDateFormatter-BrrFo4nY.cjs +1 -0
  246. package/{useDateFormatter-CxlJTAki.js → useDateFormatter-Bs5A6Xtu.js} +353 -322
  247. package/{useField-sSWPm-He.js → useField-Bx76iuoW.js} +1 -1
  248. package/{useField-CY4OYE5a.cjs → useField-DvszkIMx.cjs} +1 -1
  249. package/{useFilter-DHcouDzv.js → useFilter-Dn4vTT3G.js} +1 -1
  250. package/{useFilter-DlZLqsJD.cjs → useFilter-eOgdlVLd.cjs} +1 -1
  251. package/{useFocusRing-Cig5Y0l-.cjs → useFocusRing-C-XVcAE5.cjs} +1 -1
  252. package/{useFocusRing-Copf_tx8.js → useFocusRing-CcxI7nbg.js} +2 -2
  253. package/{useFocusWithin-BKopz9sr.js → useFocusWithin-DhXBuB2O.js} +1 -1
  254. package/{useFocusWithin-TryC2Kkw.cjs → useFocusWithin-GBjoTL5o.cjs} +1 -1
  255. package/{useFocusable-CCh54GIw.js → useFocusable-BJj-Bkig.js} +3 -3
  256. package/{useFocusable-DhdAtEw8.cjs → useFocusable-M4se1KJt.cjs} +1 -1
  257. package/{useFormValidation-DdIIVZ5j.js → useFormValidation-By7G-T7y.js} +1 -1
  258. package/{useFormValidation-BJNizNDf.cjs → useFormValidation-DV2Ioblb.cjs} +1 -1
  259. package/useHasTabbableChild-BJ_VejL5.cjs +1 -0
  260. package/{useHasTabbableChild-BbgOpdGQ.js → useHasTabbableChild-DpISgPsS.js} +1 -1
  261. package/{useHighlightSelectionDescription-D6F-YO6b.cjs → useHighlightSelectionDescription-CBZfyrhy.cjs} +1 -1
  262. package/{useHighlightSelectionDescription-BL_02EKv.js → useHighlightSelectionDescription-Zvo5KTxM.js} +2 -2
  263. package/{useHover-eU40luVI.cjs → useHover-DULSfLuK.cjs} +1 -1
  264. package/{useHover-zCCNtF6g.js → useHover-DkC5FyNd.js} +4 -4
  265. package/{useListState-D2yPZrFZ.js → useListState-CP7AKhOX.js} +1 -1
  266. package/{useListState-BdC308Sq.cjs → useListState-DZFWpD-x.cjs} +1 -1
  267. package/{usePress-4yZ5a87p.js → usePress-BqQIhkNY.js} +43 -43
  268. package/usePress-DmU79HEg.cjs +7 -0
  269. package/{useSingleSelectListState-lyai-bC_.js → useSingleSelectListState-GSY0f4qW.js} +1 -1
  270. package/{useSingleSelectListState-b_SPhYG4.cjs → useSingleSelectListState-JCvbhUVI.cjs} +1 -1
  271. package/{useTextField-DUEQl6sr.cjs → useTextField-CiWV3eeD.cjs} +1 -1
  272. package/{useTextField-DjxrmW7d.js → useTextField-I3QVGvyX.js} +4 -4
  273. package/utils/types.d.ts +5 -0
  274. package/utils-CtICjCYt.cjs +1 -0
  275. package/{utils-BMBoiyL7.js → utils-D2iKpxcZ.js} +43 -39
  276. package/utils-DRIRjPUS.cjs +1 -0
  277. package/{utils-CrT5PVBA.js → utils-Dxh86KaB.js} +19 -17
  278. package/AccordionItem-BJw5IKe0.js +0 -334
  279. package/AccordionItem-DhMimhYo.cjs +0 -1
  280. package/Button-BTX5G3le.cjs +0 -1
  281. package/Checkbox-D-CFY6QF.cjs +0 -1
  282. package/Collection-DaZzboRu.cjs +0 -1
  283. package/ComboBox-C4NybZ32.cjs +0 -1
  284. package/DateInputDivider-BgXKFwB0.cjs +0 -1
  285. package/DateRangePicker-DTPkr3hX.cjs +0 -6
  286. package/Dialog-DLnopN3Z.js +0 -237
  287. package/Dialog-DNu42oLH.cjs +0 -1
  288. package/Dialog-w6EBWT__.cjs +0 -1
  289. package/FocusScope-Dv0F-mG2.cjs +0 -1
  290. package/Group-C2hEIsGV.js +0 -45
  291. package/Group-cuyk9Hsy.cjs +0 -1
  292. package/Layout-CVnlO10z.cjs +0 -16
  293. package/ListBox-Bx9M5vqb.cjs +0 -1
  294. package/ListBoxLoadMoreItem-BBE3OF4J.cjs +0 -1
  295. package/ListBoxSection-kujY2gUl.cjs +0 -1
  296. package/ListKeyboardDelegate-DJDPir-w.cjs +0 -1
  297. package/Popover-BI2Koco0.cjs +0 -1
  298. package/Popover-D7_IfJ3o.js +0 -38
  299. package/RSPContexts-D8hmBfGm.cjs +0 -1
  300. package/Radio-D6KNkSA2.js +0 -333
  301. package/Radio-DsVsutMH.cjs +0 -1
  302. package/Select-D9h_RQ2k.cjs +0 -1
  303. package/Select-Dc6y8gPR.js +0 -654
  304. package/SelectionManager-D-4ThfPZ.js +0 -1043
  305. package/SelectionManager-FYrDfe5v.cjs +0 -1
  306. package/Spinner-CTha503N.js +0 -47
  307. package/Spinner-DKQ9_SQB.cjs +0 -6
  308. package/TabList-BhC96APe.cjs +0 -1
  309. package/TabList-P5HnizZt.js +0 -393
  310. package/Table-BB8Ag5_3.cjs +0 -16
  311. package/Tag-D2vh0KRD.js +0 -765
  312. package/Tag-D32MGLjS.cjs +0 -1
  313. package/TextField-4xfAzdBI.cjs +0 -1
  314. package/ToggleButtonGroup-CiX2eXB8.cjs +0 -1
  315. package/assets/ListBoxSection.css +0 -1
  316. package/scrollIntoView-ClEACHUk.js +0 -57
  317. package/scrollIntoView-DRSoJp89.cjs +0 -1
  318. package/select/useMultiSelect.d.ts +0 -4
  319. package/useDateFormatter-D0bVjgIb.cjs +0 -1
  320. package/useHasTabbableChild-wH3RCjTd.cjs +0 -1
  321. package/useObserveElement-BdI4zgd7.js +0 -27
  322. package/useObserveElement-BzEr5D32.cjs +0 -1
  323. package/usePress-Dj3t18Pf.cjs +0 -7
  324. package/utils-I-LGXGYH.cjs +0 -1
  325. package/utils-cBvgilDa.cjs +0 -1
  326. package/variables-B3KEYyhW.cjs +0 -1
  327. package/variables-DzXcMW2k.js +0 -5
  328. /package/{select → legacy-select}/HiddenMultiSelect.d.ts +0 -0
  329. /package/{select → legacy-select}/MultiSelectValueTag.d.ts +0 -0
  330. /package/{select → legacy-select}/SelectFieldError.d.ts +0 -0
  331. /package/{select → legacy-select}/SelectListBox.d.ts +0 -0
  332. /package/{select → legacy-select}/useMultiSelectListState.d.ts +0 -0
  333. /package/{select → legacy-select}/useMultiSelectState.d.ts +0 -0
  334. /package/{select → legacy-select}/utils.d.ts +0 -0
@@ -1,17 +1,15 @@
1
- import { jsx as k, jsxs as ne } from "react/jsx-runtime";
2
- import { a as se, b as re, c as ae } from "./ListBox-2eEa1l0M.js";
3
- import { g as he, m as de } from "./Collection-j_iWeuZo.js";
4
- import w, { useState as $, useRef as C, useMemo as L, useCallback as z, useEffect as ce, createContext as F, useContext as j } from "react";
5
- import { $ as V, d as ue } from "./mergeProps-Ct8m5-xW.js";
6
- import { $ as U } from "./context-Dl_saGB6.js";
7
- import { flushSync as B } from "react-dom";
8
- import { g as fe } from "./OverlayArrow-Bh_G2tJ3.js";
9
- import { $ as W } from "./useEvent-smuTnX4G.js";
10
- import { c as K } from "./clsx-jbLnTBqA.js";
11
- import { f as D } from "./SelectionManager-D-4ThfPZ.js";
12
- import { b as ge } from "./Dialog-DOyFzvUa.js";
13
- import { e as ye } from "./Separator-COlhRmJF.js";
14
- import './assets/ListBoxSection.css';class ve {
1
+ import { jsx as K } from "react/jsx-runtime";
2
+ import { e as te } from "./ListBox-5GK4ZRj1.js";
3
+ import { g as ie, m as le } from "./Collection-BkxwF21i.js";
4
+ import m, { useState as z, useRef as _, useMemo as C, useCallback as k, useEffect as oe, createContext as W, useContext as D } from "react";
5
+ import { d as ne, $ as M } from "./mergeProps-Ct8m5-xW.js";
6
+ import { $ as X } from "./context-Dl_saGB6.js";
7
+ import { flushSync as V } from "react-dom";
8
+ import { g as se } from "./OverlayArrow-CjGslX2c.js";
9
+ import { $ as re } from "./useEvent-smuTnX4G.js";
10
+ import { c as ae } from "./clsx-jbLnTBqA.js";
11
+ import { f as q } from "./SelectionManager-DoNLJm8c.js";
12
+ import './assets/ListBox.css';class he {
15
13
  /**
16
14
  * Returns whether the layout should invalidate in response to
17
15
  * visible rectangle changes. By default, it only invalidates
@@ -204,12 +202,12 @@ class f {
204
202
  this.x = e, this.y = t, this.width = i, this.height = l;
205
203
  }
206
204
  }
207
- class H {
205
+ class $ {
208
206
  /**
209
207
  * Returns a copy of this size.
210
208
  */
211
209
  copy() {
212
- return new H(this.width, this.height);
210
+ return new $(this.width, this.height);
213
211
  }
214
212
  /**
215
213
  * Returns whether this size is equal to another one.
@@ -227,8 +225,8 @@ class H {
227
225
  this.width = Math.max(e, 0), this.height = Math.max(t, 0);
228
226
  }
229
227
  }
230
- let pe = 0;
231
- class G {
228
+ let de = 0;
229
+ class A {
232
230
  /**
233
231
  * Prepares the view for reuse. Called just before the view is removed from the DOM.
234
232
  */
@@ -237,7 +235,7 @@ class G {
237
235
  }
238
236
  getReusableView(e) {
239
237
  let t = this.reusableViews.get(e);
240
- return t && t.length > 0 ? t.shift() : new we(this.virtualizer, this, e);
238
+ return t && t.length > 0 ? t.shift() : new ue(this.virtualizer, this, e);
241
239
  }
242
240
  reuseChild(e) {
243
241
  e.prepareForReuse();
@@ -245,27 +243,27 @@ class G {
245
243
  t || (t = [], this.reusableViews.set(e.viewType, t)), t.push(e);
246
244
  }
247
245
  constructor(e, t) {
248
- this.virtualizer = e, this.key = ++pe, this.viewType = t, this.children = /* @__PURE__ */ new Set(), this.reusableViews = /* @__PURE__ */ new Map(), this.layoutInfo = null, this.content = null, this.rendered = null;
246
+ this.virtualizer = e, this.key = ++de, this.viewType = t, this.children = /* @__PURE__ */ new Set(), this.reusableViews = /* @__PURE__ */ new Map(), this.layoutInfo = null, this.content = null, this.rendered = null;
249
247
  }
250
248
  }
251
- class me extends G {
249
+ class ce extends A {
252
250
  constructor(e) {
253
251
  super(e, "root");
254
252
  }
255
253
  }
256
- class we extends G {
254
+ class ue extends A {
257
255
  constructor(e, t, i) {
258
256
  super(e, i), this.parent = t;
259
257
  }
260
258
  }
261
- function be(n, e) {
262
- if (n === e) return !0;
263
- if (n.size !== e.size) return !1;
264
- for (let t of n)
259
+ function fe(s, e) {
260
+ if (s === e) return !0;
261
+ if (s.size !== e.size) return !1;
262
+ for (let t of s)
265
263
  if (!e.has(t)) return !1;
266
264
  return !0;
267
265
  }
268
- class xe {
266
+ class ge {
269
267
  setVisibleRect(e) {
270
268
  let t = performance.now() - this.startTime;
271
269
  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;
@@ -282,7 +280,7 @@ class xe {
282
280
  this.startTime = 0, this.velocity = new x(0, 0), this.visibleRect = new f();
283
281
  }
284
282
  }
285
- class Ie {
283
+ class ye {
286
284
  /** Returns whether the given key, or an ancestor, is persisted. */
287
285
  isPersistedKey(e) {
288
286
  if (this.persistedKeys.has(e)) return !0;
@@ -332,9 +330,9 @@ class Ie {
332
330
  getVisibleLayoutInfos() {
333
331
  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
332
  e && !(t && i) ? l = new f(0, 0, this.contentSize.width, this.contentSize.height) : l = this._overscanManager.getOverscannedRect();
335
- let o = this.layout.getVisibleLayoutInfos(l), s = /* @__PURE__ */ new Map();
336
- for (let a of o) s.set(a.key, a);
337
- return s;
333
+ let o = this.layout.getVisibleLayoutInfos(l), n = /* @__PURE__ */ new Map();
334
+ for (let a of o) n.set(a.key, a);
335
+ return n;
338
336
  }
339
337
  updateSubviews() {
340
338
  let e = this.getVisibleLayoutInfos(), t = /* @__PURE__ */ new Set();
@@ -348,8 +346,8 @@ class Ie {
348
346
  o = this.getReusableView(l), o.parent.children.add(o), this._visibleViews.set(i, o), t.delete(o);
349
347
  else {
350
348
  o.layoutInfo = l;
351
- let s = this.collection.getItem(l.key);
352
- o.content !== s && (o.content != null && this._renderedContent.delete(o.content), this._renderView(o));
349
+ let n = this.collection.getItem(l.key);
350
+ o.content !== n && (o.content != null && this._renderedContent.delete(o.content), this._renderView(o));
353
351
  }
354
352
  }
355
353
  for (let i of t)
@@ -362,11 +360,11 @@ class Ie {
362
360
  }
363
361
  /** Performs layout and updates visible views as needed. */
364
362
  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 && !be(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({
363
+ let t = this, i = !1, l = !1, o = !1, n = !1, a = !1, h = !1;
364
+ 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 && !fe(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), n || (n = 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 = n || o || l || a)), this._invalidationContext = e.invalidationContext), e.isScrolling !== this._isScrolling && (this._isScrolling = e.isScrolling, e.isScrolling || (h = !0)), i ? this.relayout({
367
365
  offsetChanged: l,
368
366
  sizeChanged: o,
369
- itemSizeChanged: s,
367
+ itemSizeChanged: n,
370
368
  layoutOptionsChanged: a,
371
369
  layoutOptions: this._invalidationContext.layoutOptions
372
370
  }) : h && this.updateSubviews(), Array.from(this._rootView.children);
@@ -384,52 +382,54 @@ class Ie {
384
382
  });
385
383
  }
386
384
  constructor(e) {
387
- this.delegate = e.delegate, this.collection = e.collection, this.layout = e.layout, this.contentSize = new H(), this.visibleRect = new f(), this.persistedKeys = /* @__PURE__ */ new Set(), this._visibleViews = /* @__PURE__ */ new Map(), this._renderedContent = /* @__PURE__ */ new WeakMap(), this._rootView = new me(this), this._isScrolling = !1, this._invalidationContext = {}, this._overscanManager = new xe();
385
+ this.delegate = e.delegate, this.collection = e.collection, this.layout = e.layout, this.contentSize = new $(), this.visibleRect = new f(), this.persistedKeys = /* @__PURE__ */ new Set(), this._visibleViews = /* @__PURE__ */ new Map(), this._renderedContent = /* @__PURE__ */ new WeakMap(), this._rootView = new ce(this), this._isScrolling = !1, this._invalidationContext = {}, this._overscanManager = new ge();
388
386
  }
389
387
  }
390
- function Re(n) {
391
- let [e, t] = $(new f(0, 0, 0, 0)), [i, l] = $(!1), [o, s] = $({}), a = C(!1), [h] = $(() => new Ie({
392
- collection: n.collection,
393
- layout: n.layout,
388
+ const ve = typeof document < "u" ? m.useLayoutEffect : () => {
389
+ };
390
+ function pe(s) {
391
+ let [e, t] = z(new f(0, 0, 0, 0)), [i, l] = z(!1), [o, n] = z({}), a = _(!1), [h] = z(() => new ye({
392
+ collection: s.collection,
393
+ layout: s.layout,
394
394
  delegate: {
395
395
  setVisibleRect(v) {
396
396
  t(v), a.current = !0;
397
397
  },
398
398
  // TODO: should changing these invalidate the entire cache?
399
- renderView: n.renderView,
400
- invalidate: s
399
+ renderView: s.renderView,
400
+ invalidate: n
401
401
  }
402
402
  }));
403
- V(() => {
404
- a.current && (a.current = !1, n.onVisibleRectChange(e));
403
+ ve(() => {
404
+ a.current && (a.current = !1, s.onVisibleRectChange(e));
405
405
  });
406
- let r = L(() => n.layoutOptions != null ? {
406
+ let r = C(() => s.layoutOptions != null ? {
407
407
  ...o,
408
- layoutOptions: n.layoutOptions
408
+ layoutOptions: s.layoutOptions
409
409
  } : o, [
410
410
  o,
411
- n.layoutOptions
411
+ s.layoutOptions
412
412
  ]), d = h.render({
413
- layout: n.layout,
414
- collection: n.collection,
415
- persistedKeys: n.persistedKeys,
416
- layoutOptions: n.layoutOptions,
413
+ layout: s.layout,
414
+ collection: s.collection,
415
+ persistedKeys: s.persistedKeys,
416
+ layoutOptions: s.layoutOptions,
417
417
  visibleRect: e,
418
418
  invalidationContext: r,
419
419
  isScrolling: i
420
- }), c = h.contentSize, u = z(() => {
420
+ }), c = h.contentSize, u = k(() => {
421
421
  l(!0);
422
- }, []), g = z(() => {
422
+ }, []), y = k(() => {
423
423
  l(!1);
424
424
  }, []);
425
- return L(() => ({
425
+ return C(() => ({
426
426
  virtualizer: h,
427
427
  visibleViews: d,
428
428
  setVisibleRect: t,
429
429
  contentSize: c,
430
430
  isScrolling: i,
431
431
  startScrolling: u,
432
- endScrolling: g
432
+ endScrolling: y
433
433
  }), [
434
434
  h,
435
435
  d,
@@ -437,11 +437,11 @@ function Re(n) {
437
437
  c,
438
438
  i,
439
439
  u,
440
- g
440
+ y
441
441
  ]);
442
442
  }
443
443
  const R = 48;
444
- class Se extends ve {
444
+ class me extends he {
445
445
  // Backward compatibility for subclassing.
446
446
  get collection() {
447
447
  return this.virtualizer.collection;
@@ -453,12 +453,12 @@ class Se extends ve {
453
453
  getVisibleLayoutInfos(e) {
454
454
  if (e.height > 1) {
455
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;
456
+ let n = ((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 / n) * n, e.height = Math.ceil(e.height / n) * n;
458
458
  }
459
459
  this.layoutIfNeeded(e);
460
- let l = [], o = (s) => {
461
- for (let a of s) this.isVisible(a, e) && (l.push(a.layoutInfo), a.children && o(a.children));
460
+ let l = [], o = (n) => {
461
+ for (let a of n) this.isVisible(a, e) && (l.push(a.layoutInfo), a.children && o(a.children));
462
462
  };
463
463
  return o(this.rootNodes), l;
464
464
  }
@@ -477,8 +477,8 @@ class Se extends ve {
477
477
  }
478
478
  shouldInvalidateEverything(e) {
479
479
  let t = e.layoutOptions;
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);
480
+ var i, l, o, n, 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 !== ((n = t == null ? void 0 : t.gap) !== null && n !== void 0 ? n : this.gap) || this.padding !== ((a = t == null ? void 0 : t.padding) !== null && a !== void 0 ? a : this.padding);
482
482
  }
483
483
  shouldInvalidateLayoutOptions(e, t) {
484
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;
@@ -491,8 +491,8 @@ class Se extends ve {
491
491
  this.rowHeight = (l = i == null ? void 0 : i.rowHeight) !== null && l !== void 0 ? l : this.rowHeight;
492
492
  var o;
493
493
  this.estimatedRowHeight = (o = i == null ? void 0 : i.estimatedRowHeight) !== null && o !== void 0 ? o : this.estimatedRowHeight;
494
- var s;
495
- this.headingHeight = (s = i == null ? void 0 : i.headingHeight) !== null && s !== void 0 ? s : this.headingHeight;
494
+ var n;
495
+ this.headingHeight = (n = i == null ? void 0 : i.headingHeight) !== null && n !== void 0 ? n : this.headingHeight;
496
496
  var a;
497
497
  this.estimatedHeadingHeight = (a = i == null ? void 0 : i.estimatedHeadingHeight) !== null && a !== void 0 ? a : this.estimatedHeadingHeight;
498
498
  var h;
@@ -509,8 +509,8 @@ class Se extends ve {
509
509
  buildCollection(e = this.padding) {
510
510
  let t = this.virtualizer.collection, i = [
511
511
  ...t
512
- ], l = i.filter((r) => r.type === "loader"), o = [], s = (t == null ? void 0 : t.size) === 0;
513
- s && (e = 0);
512
+ ], l = i.filter((r) => r.type === "loader"), o = [], n = (t == null ? void 0 : t.size) === 0;
513
+ n && (e = 0);
514
514
  for (let r of i) {
515
515
  var a, h;
516
516
  let d = ((h = (a = this.rowHeight) !== null && a !== void 0 ? a : this.estimatedRowHeight) !== null && h !== void 0 ? h : R) + this.gap;
@@ -525,17 +525,17 @@ class Se extends ve {
525
525
  }
526
526
  if ((r.type === "item" || r.type === "loader") && e > this.requestedRect.maxY) {
527
527
  let u = i.indexOf(r);
528
- for (let g of l) {
529
- let y = i.indexOf(g);
530
- e += (y - u - 1) * d;
531
- let v = this.buildChild(g, this.padding, e, null);
532
- o.push(v), e = v.layoutInfo.rect.maxY, u = y;
528
+ for (let y of l) {
529
+ let g = i.indexOf(y);
530
+ e += (g - u - 1) * d;
531
+ let v = this.buildChild(y, this.padding, e, null);
532
+ o.push(v), e = v.layoutInfo.rect.maxY, u = g;
533
533
  }
534
534
  e += (i.length - u - 1) * d;
535
535
  break;
536
536
  }
537
537
  }
538
- return e -= this.gap, e += s ? 0 : this.padding, this.contentSize = new H(this.virtualizer.visibleRect.width, e), o;
538
+ return e -= this.gap, e += n ? 0 : this.padding, this.contentSize = new $(this.virtualizer.visibleRect.width, e), o;
539
539
  }
540
540
  isValid(e, t) {
541
541
  let i = this.layoutNodes.get(e.key);
@@ -565,30 +565,30 @@ class Se extends ve {
565
565
  buildLoader(e, t, i) {
566
566
  let l = new f(t, i, this.padding, 0), o = new b("loader", e.key, l);
567
567
  l.width = this.virtualizer.contentSize.width - this.padding - t;
568
- var s, a, h;
569
- 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, {
568
+ var n, a, h;
569
+ return l.height = e.props.isLoading ? (h = (a = (n = this.loaderHeight) !== null && n !== void 0 ? n : this.rowHeight) !== null && a !== void 0 ? a : this.estimatedRowHeight) !== null && h !== void 0 ? h : R : 0, {
570
570
  layoutInfo: o,
571
571
  validRect: l.intersection(this.requestedRect)
572
572
  };
573
573
  }
574
574
  buildSection(e, t, i) {
575
- 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 = [];
576
- for (let g of D(e, l)) {
575
+ let l = this.virtualizer.collection, o = this.virtualizer.visibleRect.width - this.padding, n = new f(t, i, o - t, 0), a = new b(e.type, e.key, n), h = i, r = 0, d = [];
576
+ for (let y of q(e, l)) {
577
577
  var c, u;
578
- let y = ((u = (c = this.rowHeight) !== null && c !== void 0 ? c : this.estimatedRowHeight) !== null && u !== void 0 ? u : R) + this.gap;
579
- if (i + y < this.requestedRect.y && !this.isValid(e, i)) {
580
- i += y, r++;
578
+ let g = ((u = (c = this.rowHeight) !== null && c !== void 0 ? c : this.estimatedRowHeight) !== null && u !== void 0 ? u : R) + this.gap;
579
+ if (i + g < this.requestedRect.y && !this.isValid(e, i)) {
580
+ i += g, r++;
581
581
  continue;
582
582
  }
583
- let v = this.buildChild(g, t, i, a.key);
583
+ let v = this.buildChild(y, t, i, a.key);
584
584
  if (i = v.layoutInfo.rect.maxY + this.gap, d.push(v), i > this.requestedRect.maxY) {
585
585
  i += ([
586
- ...D(e, l)
587
- ].length - (d.length + r)) * y;
586
+ ...q(e, l)
587
+ ].length - (d.length + r)) * g;
588
588
  break;
589
589
  }
590
590
  }
591
- return i -= this.gap, s.height = i - h, {
591
+ return i -= this.gap, n.height = i - h, {
592
592
  layoutInfo: a,
593
593
  children: d,
594
594
  validRect: a.rect.intersection(this.requestedRect),
@@ -596,18 +596,18 @@ class Se extends ve {
596
596
  };
597
597
  }
598
598
  buildSectionHeader(e, t, i) {
599
- let l = this.virtualizer.visibleRect.width - this.padding, o = this.headingHeight, s = !1;
599
+ let l = this.virtualizer.visibleRect.width - this.padding, o = this.headingHeight, n = !1;
600
600
  if (o == null) {
601
601
  let r = this.layoutNodes.get(e.key), d = r == null ? void 0 : r.layoutInfo;
602
602
  if (d) {
603
603
  let c = this.virtualizer.collection.getItem(e.key), u = this.lastCollection ? this.lastCollection.getItem(e.key) : null;
604
- o = d.rect.height, s = l !== d.rect.width || c !== u || d.estimatedSize;
604
+ o = d.rect.height, n = l !== d.rect.width || c !== u || d.estimatedSize;
605
605
  } else
606
- o = e.rendered ? this.estimatedHeadingHeight : 0, s = !0;
606
+ o = e.rendered ? this.estimatedHeadingHeight : 0, n = !0;
607
607
  }
608
608
  o == null && (o = R);
609
609
  let a = new f(t, i, l - t, o), h = new b("header", e.key, a);
610
- return h.estimatedSize = s, {
610
+ return h.estimatedSize = n, {
611
611
  layoutInfo: h,
612
612
  children: [],
613
613
  validRect: h.rect.intersection(this.requestedRect),
@@ -615,14 +615,14 @@ class Se extends ve {
615
615
  };
616
616
  }
617
617
  buildItem(e, t, i) {
618
- let l = this.virtualizer.visibleRect.width - this.padding - t, o = this.rowHeight, s = !1;
618
+ let l = this.virtualizer.visibleRect.width - this.padding - t, o = this.rowHeight, n = !1;
619
619
  if (o == null) {
620
620
  let r = this.layoutNodes.get(e.key);
621
- r ? (o = r.layoutInfo.rect.height, s = l !== r.layoutInfo.rect.width || e !== r.node || r.layoutInfo.estimatedSize) : (o = this.estimatedRowHeight, s = !0);
621
+ r ? (o = r.layoutInfo.rect.height, n = l !== r.layoutInfo.rect.width || e !== r.node || r.layoutInfo.estimatedSize) : (o = this.estimatedRowHeight, n = !0);
622
622
  }
623
623
  o == null && (o = R);
624
624
  let a = new f(t, i, l, o), h = new b(e.type, e.key, a);
625
- return h.estimatedSize = s, {
625
+ return h.estimatedSize = n, {
626
626
  layoutInfo: h,
627
627
  children: [],
628
628
  validRect: h.rect,
@@ -634,11 +634,11 @@ class Se extends ve {
634
634
  if (!i) return !1;
635
635
  let l = this.virtualizer.collection, o = i.layoutInfo;
636
636
  if (o.estimatedSize = !1, o.rect.height !== t.height) {
637
- let s = o.copy();
638
- 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);
637
+ let n = o.copy();
638
+ n.rect.height = t.height, i.layoutInfo = n, this.validRect.height = Math.min(this.validRect.height, o.rect.y - this.validRect.y), this.requestedRect.height += n.rect.height - o.rect.height, this.updateLayoutNode(e, o, n);
639
639
  let a = o.parentKey != null ? l.getItem(o.parentKey) : null;
640
640
  for (; a; )
641
- this.updateLayoutNode(a.key, o, s), a = a.parentKey != null ? l.getItem(a.parentKey) : null;
641
+ this.updateLayoutNode(a.key, o, n), a = a.parentKey != null ? l.getItem(a.parentKey) : null;
642
642
  return !0;
643
643
  }
644
644
  return !1;
@@ -652,16 +652,16 @@ class Se extends ve {
652
652
  }
653
653
  getDropTargetFromPoint(e, t, i) {
654
654
  e += this.virtualizer.visibleRect.x, t += this.virtualizer.visibleRect.y;
655
- 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;
655
+ let l = new f(e, Math.max(0, t - this.gap), 1, Math.max(1, this.gap * 2)), o = this.getVisibleLayoutInfos(l), n = null, a = 1 / 0;
656
656
  for (let c of o) {
657
657
  if (!c.rect.intersects(l)) continue;
658
- let u = Math.abs(c.rect.y - t), g = Math.abs(c.rect.maxY - t), y = Math.min(u, g);
659
- y < a && (a = y, s = c.key);
658
+ let u = Math.abs(c.rect.y - t), y = Math.abs(c.rect.maxY - t), g = Math.min(u, y);
659
+ g < a && (a = g, n = c.key);
660
660
  }
661
- if (s == null || this.virtualizer.collection.size === 0) return {
661
+ if (n == null || this.virtualizer.collection.size === 0) return {
662
662
  type: "root"
663
663
  };
664
- let h = this.getLayoutInfo(s);
664
+ let h = this.getLayoutInfo(n);
665
665
  if (!h) return null;
666
666
  let r = h.rect, d = {
667
667
  type: "item",
@@ -689,10 +689,10 @@ class Se extends ve {
689
689
  let o = this.collection.getItem(e.key);
690
690
  if (o) {
691
691
  var l;
692
- let s = (l = o.level) !== null && l !== void 0 ? l : 0, a = this.collection.getKeyAfter(e.key);
692
+ let n = (l = o.level) !== null && l !== void 0 ? l : 0, a = this.collection.getKeyAfter(e.key);
693
693
  for (; a != null; ) {
694
694
  let h = this.collection.getItem(a);
695
- if (!h || h.level <= s) break;
695
+ if (!h || h.level <= n) break;
696
696
  t = this.getLayoutInfo(a) || t, a = this.collection.getKeyAfter(a);
697
697
  }
698
698
  }
@@ -714,13 +714,13 @@ class Se extends ve {
714
714
  this.headingHeight = (l = e.headingHeight) !== null && l !== void 0 ? l : null;
715
715
  var o;
716
716
  this.estimatedHeadingHeight = (o = e.estimatedHeadingHeight) !== null && o !== void 0 ? o : null;
717
- var s;
718
- 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 f(), this.requestedRect = new f(), this.contentSize = new H();
717
+ var n;
718
+ this.loaderHeight = (n = e.loaderHeight) !== null && n !== void 0 ? n : 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 f(), this.requestedRect = new f(), this.contentSize = new $();
719
719
  }
720
720
  }
721
721
  let S = null;
722
- function $e(n = !1) {
723
- if (S === null || n) {
722
+ function we(s = !1) {
723
+ if (S === null || s) {
724
724
  const e = document.createElement("div"), t = e.style;
725
725
  t.width = "50px", t.height = "50px", t.overflow = "scroll", t.direction = "rtl";
726
726
  const i = document.createElement("div"), l = i.style;
@@ -728,11 +728,11 @@ function $e(n = !1) {
728
728
  }
729
729
  return S;
730
730
  }
731
- function ze(n, e) {
732
- let { scrollLeft: t } = n;
731
+ function be(s, e) {
732
+ let { scrollLeft: t } = s;
733
733
  if (e === "rtl") {
734
- let { scrollWidth: i, clientWidth: l } = n;
735
- switch ($e()) {
734
+ let { scrollWidth: i, clientWidth: l } = s;
735
+ switch (we()) {
736
736
  case "negative":
737
737
  t = -t;
738
738
  break;
@@ -743,8 +743,8 @@ function ze(n, e) {
743
743
  }
744
744
  return t;
745
745
  }
746
- function He(n, e) {
747
- let { contentSize: t, onVisibleRectChange: i, innerStyle: l, onScrollStart: o, onScrollEnd: s, scrollDirection: a = "both", ...h } = n, r = C({
746
+ function xe(s, e) {
747
+ let { contentSize: t, onVisibleRectChange: i, innerStyle: l, onScrollStart: o, onScrollEnd: n, scrollDirection: a = "both", ...h } = s, r = _({
748
748
  scrollTop: 0,
749
749
  scrollLeft: 0,
750
750
  scrollEndTime: 0,
@@ -752,62 +752,59 @@ function He(n, e) {
752
752
  width: 0,
753
753
  height: 0,
754
754
  isScrolling: !1
755
- }).current, { direction: d } = U(), [c, u] = $(!1), g = z(() => {
756
- r.isScrolling = !1, u(!1), r.scrollTimeout = null, window.dispatchEvent(new Event("tk.connect-observer")), s == null || s();
757
- }, [
758
- r,
759
- s
760
- ]), y = z((p) => {
761
- p.target === p.currentTarget && (n.onScroll && n.onScroll(p), B(() => {
762
- let m = p.currentTarget.scrollTop, _ = ze(p.currentTarget, d);
763
- r.scrollTop = Math.max(0, Math.min(m, t.height - r.height)), r.scrollLeft = Math.max(0, Math.min(_, t.width - r.width)), i(new f(r.scrollLeft, r.scrollTop, r.width, r.height)), r.isScrolling || (r.isScrolling = !0, u(!0), window.dispatchEvent(new Event("tk.disconnect-observer")), o && o());
755
+ }).current, { direction: d } = X(), [c, u] = z(!1), y = k((p) => {
756
+ p.target === p.currentTarget && (s.onScroll && s.onScroll(p), V(() => {
757
+ let w = p.currentTarget.scrollTop, H = be(p.currentTarget, d);
758
+ r.scrollTop = Math.max(0, Math.min(w, 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, u(!0), window.dispatchEvent(new Event("tk.disconnect-observer")), o && o());
764
759
  let E = Date.now();
765
- !("onscrollend" in window) && r.scrollEndTime <= E + 50 && (r.scrollEndTime = E + 300, r.scrollTimeout != null && clearTimeout(r.scrollTimeout), r.scrollTimeout = setTimeout(g, 300));
760
+ r.scrollEndTime <= E + 50 && (r.scrollEndTime = E + 300, r.scrollTimeout != null && clearTimeout(r.scrollTimeout), r.scrollTimeout = setTimeout(() => {
761
+ r.isScrolling = !1, u(!1), r.scrollTimeout = null, window.dispatchEvent(new Event("tk.connect-observer")), n && n();
762
+ }, 300));
766
763
  }));
767
764
  }, [
768
- n,
765
+ s,
769
766
  d,
770
767
  r,
771
768
  t,
772
769
  i,
773
770
  o,
774
- g
771
+ n
775
772
  ]);
776
- W(e, "scroll", y), W(e, "scrollend", g), ce(() => () => {
773
+ re(e, "scroll", y), oe(() => () => {
777
774
  r.scrollTimeout != null && clearTimeout(r.scrollTimeout), r.isScrolling && window.dispatchEvent(new Event("tk.connect-observer"));
778
775
  }, []);
779
- let v = C(!1), N = ue((p) => {
780
- let m = e.current;
781
- if (!m || v.current) return;
782
- v.current = !0;
783
- let _ = process.env.NODE_ENV === "test" && !process.env.VIRT_ON, E = Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"), oe = Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"), q = m.clientWidth, Y = m.clientHeight, O = _ && !E ? 1 / 0 : q, P = _ && !oe ? 1 / 0 : Y;
784
- (r.width !== O || r.height !== P) && (r.width = O, r.height = P, p(() => {
785
- i(new f(r.scrollLeft, r.scrollTop, O, P));
786
- }), (!_ && q !== m.clientWidth || Y !== m.clientHeight) && (r.width = m.clientWidth, r.height = m.clientHeight, p(() => {
776
+ let g = _(!1), v = ne((p) => {
777
+ let w = e.current;
778
+ if (!w || g.current) return;
779
+ g.current = !0;
780
+ let H = process.env.NODE_ENV === "test" && !process.env.VIRT_ON, E = Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"), ee = Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"), O = w.clientWidth, P = w.clientHeight, N = H && !E ? 1 / 0 : O, T = H && !ee ? 1 / 0 : P;
781
+ (r.width !== N || r.height !== T) && (r.width = N, r.height = T, p(() => {
782
+ i(new f(r.scrollLeft, r.scrollTop, N, T));
783
+ }), (!H && O !== w.clientWidth || P !== w.clientHeight) && (r.width = w.clientWidth, r.height = w.clientHeight, p(() => {
787
784
  i(new f(r.scrollLeft, r.scrollTop, r.width, r.height));
788
- }))), v.current = !1;
789
- }), T = C(null), [te, ie] = $({});
790
- V(() => {
791
- if (!v.current && (T.current == null || !t.equals(T.current)))
785
+ }))), g.current = !1;
786
+ }), L = _(null), [J, Q] = z({});
787
+ M(() => {
788
+ if (!g.current && (L.current == null || !t.equals(L.current)))
792
789
  if (typeof IS_REACT_ACT_ENVIRONMENT == "boolean" ? IS_REACT_ACT_ENVIRONMENT : typeof jest < "u") {
793
- ie({}), T.current = t;
790
+ Q({}), L.current = t;
794
791
  return;
795
- } else queueMicrotask(() => N(B));
796
- T.current = t;
797
- }), V(() => {
798
- N((p) => p());
792
+ } else queueMicrotask(() => v(V));
793
+ L.current = t;
794
+ }), M(() => {
795
+ v((p) => p());
799
796
  }, [
800
- te
797
+ J
801
798
  ]);
802
- let le = z(() => {
803
- N(B);
799
+ let Z = k(() => {
800
+ v(V);
804
801
  }, [
805
- N
802
+ v
806
803
  ]);
807
- fe({
804
+ se({
808
805
  ref: e,
809
806
  box: "border-box",
810
- onResize: le
807
+ onResize: Z
811
808
  });
812
809
  let I = {
813
810
  // Reset padding so that relative positioning works correctly. Padding will be done in JS layout.
@@ -832,51 +829,51 @@ function He(n, e) {
832
829
  }
833
830
  };
834
831
  }
835
- function _e(n) {
836
- let { layoutInfo: e, virtualizer: t, ref: i } = n, l = e == null ? void 0 : e.key, o = z(() => {
832
+ function Ie(s) {
833
+ let { layoutInfo: e, virtualizer: t, ref: i } = s, l = e == null ? void 0 : e.key, o = k(() => {
837
834
  if (l != null && i.current) {
838
- let s = Ce(i.current);
839
- t.updateItemSize(l, s);
835
+ let n = Re(i.current);
836
+ t.updateItemSize(l, n);
840
837
  }
841
838
  }, [
842
839
  t,
843
840
  l,
844
841
  i
845
842
  ]);
846
- return V(() => {
843
+ return M(() => {
847
844
  e != null && e.estimatedSize && o();
848
845
  }), {
849
846
  updateSize: o
850
847
  };
851
848
  }
852
- function Ce(n) {
853
- let e = n.style.height;
854
- n.style.height = "";
855
- let t = new H(n.scrollWidth, n.scrollHeight);
856
- return n.style.height = e, t;
849
+ function Re(s) {
850
+ let e = s.style.height;
851
+ s.style.height = "";
852
+ let t = new $(s.scrollWidth, s.scrollHeight);
853
+ return s.style.height = e, t;
857
854
  }
858
- function J(n) {
859
- let { style: e, className: t, layoutInfo: i, virtualizer: l, parent: o, children: s } = n, { direction: a } = U(), h = C(null);
860
- return _e({
855
+ function F(s) {
856
+ let { style: e, className: t, layoutInfo: i, virtualizer: l, parent: o, children: n } = s, { direction: a } = X(), h = _(null);
857
+ return Ie({
861
858
  layoutInfo: i,
862
859
  virtualizer: l,
863
860
  ref: h
864
- }), /* @__PURE__ */ w.createElement("div", {
861
+ }), /* @__PURE__ */ m.createElement("div", {
865
862
  role: "presentation",
866
863
  ref: h,
867
864
  className: t,
868
865
  style: {
869
- ...ke(i, a, o),
866
+ ...Se(i, a, o),
870
867
  ...e
871
868
  }
872
- }, s);
869
+ }, n);
873
870
  }
874
- let X = /* @__PURE__ */ new WeakMap();
875
- function ke(n, e, t) {
876
- let i = e === "rtl" ? "right" : "left", l = X.get(n);
871
+ let B = /* @__PURE__ */ new WeakMap();
872
+ function Se(s, e, t) {
873
+ let i = e === "rtl" ? "right" : "left", l = B.get(s);
877
874
  if (l && l[i] != null) {
878
875
  if (!t) return l;
879
- let h = n.rect.y - t.rect.y, r = n.rect.x - t.rect.x;
876
+ let h = s.rect.y - t.rect.y, r = s.rect.x - t.rect.x;
880
877
  if (l.top === h && l[i] === r) return l;
881
878
  }
882
879
  let o = {
@@ -884,55 +881,55 @@ function ke(n, e, t) {
884
881
  // 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
885
882
  // 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
886
883
  // calculated layoutInfo.y here
887
- top: n.rect.y - (t && !(t.allowOverflow && n.isSticky) ? t.rect.y : 0),
888
- [i]: n.rect.x - (t && !(t.allowOverflow && n.isSticky) ? t.rect.x : 0),
889
- width: n.rect.width,
890
- height: n.rect.height
884
+ top: s.rect.y - (t && !(t.allowOverflow && s.isSticky) ? t.rect.y : 0),
885
+ [i]: s.rect.x - (t && !(t.allowOverflow && s.isSticky) ? t.rect.x : 0),
886
+ width: s.rect.width,
887
+ height: s.rect.height
891
888
  };
892
889
  Object.entries(o).forEach(([h, r]) => {
893
890
  Number.isFinite(r) || (o[h] = void 0);
894
891
  });
895
- var s;
892
+ var n;
896
893
  let a = {
897
- position: n.isSticky ? "sticky" : "absolute",
894
+ position: s.isSticky ? "sticky" : "absolute",
898
895
  // Sticky elements are positioned in normal document flow. Display inline-block so that they don't push other sticky columns onto the following rows.
899
- display: n.isSticky ? "inline-block" : void 0,
900
- overflow: n.allowOverflow ? "visible" : "hidden",
901
- opacity: n.opacity,
902
- zIndex: n.zIndex,
903
- transform: (s = n.transform) !== null && s !== void 0 ? s : void 0,
896
+ display: s.isSticky ? "inline-block" : void 0,
897
+ overflow: s.allowOverflow ? "visible" : "hidden",
898
+ opacity: s.opacity,
899
+ zIndex: s.zIndex,
900
+ transform: (n = s.transform) !== null && n !== void 0 ? n : void 0,
904
901
  contain: "size layout style",
905
902
  ...o
906
903
  };
907
- return X.set(n, a), a;
904
+ return B.set(s, a), a;
908
905
  }
909
- const Q = /* @__PURE__ */ F(null), Z = /* @__PURE__ */ F(null);
910
- function Le(n) {
911
- let { children: e, layout: t, layoutOptions: i } = n, l = L(() => typeof t == "function" ? new t() : t, [
906
+ const j = /* @__PURE__ */ W(null), U = /* @__PURE__ */ W(null);
907
+ function ze(s) {
908
+ let { children: e, layout: t, layoutOptions: i } = s, l = C(() => typeof t == "function" ? new t() : t, [
912
909
  t
913
- ]), o = L(() => ({
910
+ ]), o = C(() => ({
914
911
  isVirtualized: !0,
915
912
  layoutDelegate: l,
916
913
  dropTargetDelegate: l.getDropTargetFromPoint ? l : void 0,
917
- CollectionRoot: Ne,
918
- CollectionBranch: Te
914
+ CollectionRoot: $e,
915
+ CollectionBranch: He
919
916
  }), [
920
917
  l
921
918
  ]);
922
- return /* @__PURE__ */ w.createElement(he.Provider, {
919
+ return /* @__PURE__ */ m.createElement(ie.Provider, {
923
920
  value: o
924
- }, /* @__PURE__ */ w.createElement(Z.Provider, {
921
+ }, /* @__PURE__ */ m.createElement(U.Provider, {
925
922
  value: {
926
923
  layout: l,
927
924
  layoutOptions: i
928
925
  }
929
926
  }, e));
930
927
  }
931
- function Ne({ collection: n, persistedKeys: e, scrollRef: t, renderDropIndicator: i }) {
928
+ function $e({ collection: s, persistedKeys: e, scrollRef: t, renderDropIndicator: i }) {
932
929
  var l;
933
- let { layout: o, layoutOptions: s } = j(Z), a = (l = o.useLayoutOptions) === null || l === void 0 ? void 0 : l.call(o), h = Re({
930
+ let { layout: o, layoutOptions: n } = D(U), a = (l = o.useLayoutOptions) === null || l === void 0 ? void 0 : l.call(o), h = pe({
934
931
  layout: o,
935
- collection: n,
932
+ collection: s,
936
933
  renderView: (d, c) => {
937
934
  var u;
938
935
  return c == null || (u = c.render) === null || u === void 0 ? void 0 : u.call(c, c);
@@ -942,58 +939,58 @@ function Ne({ collection: n, persistedKeys: e, scrollRef: t, renderDropIndicator
942
939
  c && (c.scrollLeft = d.x, c.scrollTop = d.y);
943
940
  },
944
941
  persistedKeys: e,
945
- layoutOptions: L(() => s && a ? {
946
- ...s,
942
+ layoutOptions: C(() => n && a ? {
943
+ ...n,
947
944
  ...a
948
- } : s || a, [
949
- s,
945
+ } : n || a, [
946
+ n,
950
947
  a
951
948
  ])
952
- }), { contentProps: r } = He({
949
+ }), { contentProps: r } = xe({
953
950
  onVisibleRectChange: h.setVisibleRect,
954
951
  contentSize: h.contentSize,
955
952
  onScrollStart: h.startScrolling,
956
953
  onScrollEnd: h.endScrolling
957
954
  }, t);
958
- return /* @__PURE__ */ w.createElement("div", r, /* @__PURE__ */ w.createElement(Q.Provider, {
955
+ return /* @__PURE__ */ m.createElement("div", r, /* @__PURE__ */ m.createElement(j.Provider, {
959
956
  value: h
960
- }, ee(null, h.visibleViews, i)));
957
+ }, G(null, h.visibleViews, i)));
961
958
  }
962
- function Te({ parent: n, renderDropIndicator: e }) {
963
- let i = j(Q).virtualizer.getVisibleView(n.key);
964
- return ee(i, Array.from(i.children), e);
959
+ function He({ parent: s, renderDropIndicator: e }) {
960
+ let i = D(j).virtualizer.getVisibleView(s.key);
961
+ return G(i, Array.from(i.children), e);
965
962
  }
966
- function ee(n, e, t) {
967
- return e.map((i) => Ee(n, i, t));
963
+ function G(s, e, t) {
964
+ return e.map((i) => _e(s, i, t));
968
965
  }
969
- function Ee(n, e, t) {
970
- let i = /* @__PURE__ */ w.createElement(J, {
966
+ function _e(s, e, t) {
967
+ let i = /* @__PURE__ */ m.createElement(F, {
971
968
  key: e.key,
972
969
  layoutInfo: e.layoutInfo,
973
970
  virtualizer: e.virtualizer,
974
- parent: n == null ? void 0 : n.layoutInfo
975
- }, e.rendered), { collection: l, layout: o } = e.virtualizer, s = e.content;
976
- return (s == null ? void 0 : s.type) === "item" && t && o.getDropTargetLayoutInfo && (i = /* @__PURE__ */ w.createElement(w.Fragment, {
971
+ parent: s == null ? void 0 : s.layoutInfo
972
+ }, e.rendered), { collection: l, layout: o } = e.virtualizer, n = e.content;
973
+ return (n == null ? void 0 : n.type) === "item" && t && o.getDropTargetLayoutInfo && (i = /* @__PURE__ */ m.createElement(m.Fragment, {
977
974
  key: e.key
978
- }, A(n, e, {
975
+ }, Y(s, e, {
979
976
  type: "item",
980
977
  key: e.content.key,
981
978
  dropPosition: "before"
982
- }, t), i, de(l, s, (a) => A(n, e, a, t)))), i;
979
+ }, t), i, le(l, n, (a) => Y(s, e, a, t)))), i;
983
980
  }
984
- function A(n, e, t, i) {
981
+ function Y(s, e, t, i) {
985
982
  let l = i(t);
986
983
  if (l) {
987
984
  let o = e.virtualizer.layout.getDropTargetLayoutInfo(t);
988
- l = /* @__PURE__ */ w.createElement(J, {
985
+ l = /* @__PURE__ */ m.createElement(F, {
989
986
  layoutInfo: o,
990
987
  virtualizer: e.virtualizer,
991
- parent: n == null ? void 0 : n.layoutInfo
988
+ parent: s == null ? void 0 : s.layoutInfo
992
989
  }, l);
993
990
  }
994
991
  return l;
995
992
  }
996
- class Ve extends Se {
993
+ class Ce extends me {
997
994
  /**
998
995
  * When using the ListLayout our scroll container height is not calculated properly when the content is partially sectioned.
999
996
  * ```ts
@@ -1018,68 +1015,35 @@ class Ve extends Se {
1018
1015
  }), this.contentSize;
1019
1016
  }
1020
1017
  }
1021
- const Me = "_listBox_ts7z5_4", Oe = "_listBoxPopover_ts7z5_16", Pe = "_listBoxSectionHeading_ts7z5_31", Be = "_listBoxButton_ts7z5_41", Ke = "_listBoxItem_ts7z5_53", qe = "_listBoxLoadMoreItem_ts7z5_99", M = {
1022
- listBox: Me,
1023
- listBoxPopover: Oe,
1024
- listBoxSectionHeading: Pe,
1025
- listBoxButton: Be,
1026
- listBoxItem: Ke,
1027
- listBoxLoadMoreItem: qe
1028
- }, tt = ({
1029
- className: n,
1018
+ const ke = "_listBox_13mbb_4", Le = "_listBoxPopover_13mbb_16", Ee = "_listBoxSectionHeading_13mbb_31", Ne = "_listBoxButton_13mbb_43", Te = "_listBoxItem_13mbb_55", Ve = "_listBoxLoadMoreItem_13mbb_165", Me = {
1019
+ listBox: ke,
1020
+ listBoxPopover: Le,
1021
+ listBoxSectionHeading: Ee,
1022
+ listBoxButton: Ne,
1023
+ listBoxItem: Te,
1024
+ listBoxLoadMoreItem: Ve
1025
+ }, je = ({
1026
+ className: s,
1030
1027
  children: e,
1031
1028
  ...t
1032
- }) => /* @__PURE__ */ k(
1033
- Le,
1029
+ }) => /* @__PURE__ */ K(
1030
+ ze,
1034
1031
  {
1035
- layout: Ve,
1032
+ layout: Ce,
1036
1033
  layoutOptions: {
1037
- headingHeight: 44
1034
+ headingHeight: 38
1038
1035
  },
1039
- children: /* @__PURE__ */ k(
1040
- se,
1036
+ children: /* @__PURE__ */ K(
1037
+ te,
1041
1038
  {
1042
- className: K(M.listBox, n),
1039
+ className: ae(Me.listBox, s),
1043
1040
  ...t,
1044
1041
  children: e
1045
1042
  }
1046
1043
  )
1047
1044
  }
1048
- ), it = ({
1049
- children: n,
1050
- className: e,
1051
- ...t
1052
- }) => /* @__PURE__ */ k(
1053
- re,
1054
- {
1055
- className: K(M.listBoxItem, e),
1056
- ...t,
1057
- children: n
1058
- }
1059
- ), lt = ({
1060
- className: n,
1061
- children: e,
1062
- ...t
1063
- }) => /* @__PURE__ */ k(
1064
- ge,
1065
- {
1066
- className: K(n, M.listBoxPopover),
1067
- offset: 0,
1068
- ...t,
1069
- children: e
1070
- }
1071
- ), ot = ({
1072
- children: n,
1073
- name: e,
1074
- ...t
1075
- }) => /* @__PURE__ */ ne(ae, { ...t, children: [
1076
- /* @__PURE__ */ k(ye, { className: M.listBoxSectionHeading, children: e }),
1077
- n
1078
- ] });
1045
+ );
1079
1046
  export {
1080
- tt as L,
1081
- it as a,
1082
- lt as b,
1083
- ot as c,
1084
- M as s
1047
+ je as L,
1048
+ Me as s
1085
1049
  };