@commercetools/nimbus 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1105) hide show
  1. package/dist/accordion.d.ts +13 -4
  2. package/dist/alert.d.ts +10 -1
  3. package/dist/avatar.d.ts +9 -0
  4. package/dist/badge.d.ts +9 -0
  5. package/dist/box.d.ts +9 -0
  6. package/dist/button.d.ts +9 -0
  7. package/dist/calendar.d.ts +9 -0
  8. package/dist/card.d.ts +9 -0
  9. package/dist/checkbox.d.ts +9 -0
  10. package/dist/chunks/Button-BtJHe9xY.cjs.js +2 -0
  11. package/dist/chunks/Button-BtJHe9xY.cjs.js.map +1 -0
  12. package/dist/chunks/Button-CNBS3n5a.es.js +73 -0
  13. package/dist/chunks/Button-CNBS3n5a.es.js.map +1 -0
  14. package/dist/chunks/DateField-Dm2Qlhbk.es.js +2685 -0
  15. package/dist/chunks/DateField-Dm2Qlhbk.es.js.map +1 -0
  16. package/dist/chunks/DateField-rweHHCKR.cjs.js +2 -0
  17. package/dist/chunks/DateField-rweHHCKR.cjs.js.map +1 -0
  18. package/dist/chunks/DatePicker-BdV6ICAm.cjs.js +2 -0
  19. package/dist/chunks/DatePicker-BdV6ICAm.cjs.js.map +1 -0
  20. package/dist/chunks/DatePicker-BthC1bZ_.es.js +782 -0
  21. package/dist/chunks/DatePicker-BthC1bZ_.es.js.map +1 -0
  22. package/dist/chunks/Dialog-BeQ6Z6l2.es.js +1924 -0
  23. package/dist/chunks/Dialog-BeQ6Z6l2.es.js.map +1 -0
  24. package/dist/chunks/Dialog-CYa26HlL.cjs.js +2 -0
  25. package/dist/chunks/Dialog-CYa26HlL.cjs.js.map +1 -0
  26. package/dist/chunks/DragAndDrop-ChYb3tCX.es.js.map +1 -1
  27. package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js.map +1 -1
  28. package/dist/chunks/FieldError-CXcEMuBf.es.js.map +1 -1
  29. package/dist/chunks/FieldError-DyGFfqST.cjs.js.map +1 -1
  30. package/dist/chunks/FocusScope-CNO0fzPs.es.js +625 -0
  31. package/dist/chunks/FocusScope-CNO0fzPs.es.js.map +1 -0
  32. package/dist/chunks/FocusScope-DPn5XtSy.cjs.js +2 -0
  33. package/dist/chunks/FocusScope-DPn5XtSy.cjs.js.map +1 -0
  34. package/dist/chunks/Form-BuOomA4T.cjs.js.map +1 -1
  35. package/dist/chunks/Form-CXcEMuBf.es.js.map +1 -1
  36. package/dist/chunks/Group-Cfixd-fh.es.js +46 -0
  37. package/dist/chunks/Group-Cfixd-fh.es.js.map +1 -0
  38. package/dist/chunks/Group-MdeByg6t.cjs.js +2 -0
  39. package/dist/chunks/Group-MdeByg6t.cjs.js.map +1 -0
  40. package/dist/chunks/Heading-BaW6t55l.cjs.js +2 -0
  41. package/dist/chunks/Heading-BaW6t55l.cjs.js.map +1 -0
  42. package/dist/chunks/Heading-DEfy_f01.es.js +1618 -0
  43. package/dist/chunks/Heading-DEfy_f01.es.js.map +1 -0
  44. package/dist/chunks/Hidden-CNJIJ63M.cjs.js.map +1 -1
  45. package/dist/chunks/Hidden-j3Lbt7xL.es.js.map +1 -1
  46. package/dist/chunks/Input-BiHwUBo4.es.js +43 -0
  47. package/dist/chunks/Input-BiHwUBo4.es.js.map +1 -0
  48. package/dist/chunks/Input-HBDt7LmM.cjs.js +2 -0
  49. package/dist/chunks/Input-HBDt7LmM.cjs.js.map +1 -0
  50. package/dist/chunks/Keyboard-Clnp4zAC.es.js.map +1 -1
  51. package/dist/chunks/Keyboard-rYf2KxZN.cjs.js.map +1 -1
  52. package/dist/chunks/Label-B2YyCdLl.es.js.map +1 -1
  53. package/dist/chunks/Label-BgrYyYXn.cjs.js.map +1 -1
  54. package/dist/chunks/ListBox-CikEmFBx.cjs.js +2 -0
  55. package/dist/chunks/ListBox-CikEmFBx.cjs.js.map +1 -0
  56. package/dist/chunks/ListBox-DF3NHeEX.es.js +605 -0
  57. package/dist/chunks/ListBox-DF3NHeEX.es.js.map +1 -0
  58. package/dist/chunks/NumberFormatter-DewVDY5w.cjs.js.map +1 -1
  59. package/dist/chunks/NumberFormatter-DgOUVrge.es.js.map +1 -1
  60. package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js +2 -0
  61. package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js.map +1 -0
  62. package/dist/chunks/OverlayArrow-sJzRZNbO.es.js +491 -0
  63. package/dist/chunks/OverlayArrow-sJzRZNbO.es.js.map +1 -0
  64. package/dist/chunks/ProgressBar-BA3sLh1k.cjs.js +2 -0
  65. package/dist/chunks/ProgressBar-BA3sLh1k.cjs.js.map +1 -0
  66. package/dist/chunks/ProgressBar-DjaUQI7N.es.js +42 -0
  67. package/dist/chunks/ProgressBar-DjaUQI7N.es.js.map +1 -0
  68. package/dist/chunks/RSPContexts-B4yvXuBR.es.js.map +1 -1
  69. package/dist/chunks/RSPContexts-CkSl9jRK.cjs.js.map +1 -1
  70. package/dist/chunks/SSRProvider-Bc-sMhsT.cjs.js.map +1 -1
  71. package/dist/chunks/SSRProvider-Cu8KibIK.es.js.map +1 -1
  72. package/dist/chunks/SelectionManager-CLyu96pU.es.js +1946 -0
  73. package/dist/chunks/SelectionManager-CLyu96pU.es.js.map +1 -0
  74. package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js +18 -0
  75. package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js.map +1 -0
  76. package/dist/chunks/Separator-3-E2tRbk.es.js +92 -0
  77. package/dist/chunks/Separator-3-E2tRbk.es.js.map +1 -0
  78. package/dist/chunks/Separator-CAOg-vqY.cjs.js +2 -0
  79. package/dist/chunks/Separator-CAOg-vqY.cjs.js.map +1 -0
  80. package/dist/chunks/Text-BWSfeB9p.cjs.js.map +1 -1
  81. package/dist/chunks/Text-DOcU1ycg.es.js.map +1 -1
  82. package/dist/chunks/TextArea-BmpgvS0R.es.js +42 -0
  83. package/dist/chunks/TextArea-BmpgvS0R.es.js.map +1 -0
  84. package/dist/chunks/TextArea-D3FFXnUy.cjs.js +2 -0
  85. package/dist/chunks/TextArea-D3FFXnUy.cjs.js.map +1 -0
  86. package/dist/chunks/ToggleButton-C3JL0pgD.es.js +145 -0
  87. package/dist/chunks/ToggleButton-C3JL0pgD.es.js.map +1 -0
  88. package/dist/chunks/ToggleButton-CPAdPTCr.cjs.js +2 -0
  89. package/dist/chunks/ToggleButton-CPAdPTCr.cjs.js.map +1 -0
  90. package/dist/chunks/VisuallyHidden-Bv_AJXZ7.cjs.js +2 -0
  91. package/dist/chunks/VisuallyHidden-Bv_AJXZ7.cjs.js.map +1 -0
  92. package/dist/chunks/VisuallyHidden-VHEPK04F.es.js +41 -0
  93. package/dist/chunks/VisuallyHidden-VHEPK04F.es.js.map +1 -0
  94. package/dist/chunks/accordion-EDJoghXQ.cjs.js +2 -0
  95. package/dist/chunks/accordion-EDJoghXQ.cjs.js.map +1 -0
  96. package/dist/chunks/accordion-UL4pfC2d.es.js +223 -0
  97. package/dist/chunks/accordion-UL4pfC2d.es.js.map +1 -0
  98. package/dist/chunks/alert-BhoRNIWA.cjs.js +2 -0
  99. package/dist/chunks/alert-BhoRNIWA.cjs.js.map +1 -0
  100. package/dist/chunks/alert-D-ddqYG4.es.js +186 -0
  101. package/dist/chunks/alert-D-ddqYG4.es.js.map +1 -0
  102. package/dist/chunks/avatar-Bu12OMzz.es.js +38 -0
  103. package/dist/chunks/avatar-Bu12OMzz.es.js.map +1 -0
  104. package/dist/chunks/avatar-C2KIWewd.cjs.js +2 -0
  105. package/dist/chunks/avatar-C2KIWewd.cjs.js.map +1 -0
  106. package/dist/chunks/avatar.recipe-D3--Rkmb.cjs.js +2 -0
  107. package/dist/chunks/avatar.recipe-D3--Rkmb.cjs.js.map +1 -0
  108. package/dist/chunks/avatar.recipe-DfyPWbFZ.es.js +39 -0
  109. package/dist/chunks/avatar.recipe-DfyPWbFZ.es.js.map +1 -0
  110. package/dist/chunks/badge-BJd-Q81M.es.js +77 -0
  111. package/dist/chunks/badge-BJd-Q81M.es.js.map +1 -0
  112. package/dist/chunks/badge-CCrBksXu.cjs.js +2 -0
  113. package/dist/chunks/badge-CCrBksXu.cjs.js.map +1 -0
  114. package/dist/chunks/box-CWni3A32.cjs.js +2 -0
  115. package/dist/chunks/box-CWni3A32.cjs.js.map +1 -0
  116. package/dist/chunks/box-DuBoAZvq.es.js +12 -0
  117. package/dist/chunks/box-DuBoAZvq.es.js.map +1 -0
  118. package/dist/chunks/button-CRUdodZm.es.js +59 -0
  119. package/dist/chunks/button-CRUdodZm.es.js.map +1 -0
  120. package/dist/chunks/button-CU8FW_Pl.cjs.js +2 -0
  121. package/dist/chunks/button-CU8FW_Pl.cjs.js.map +1 -0
  122. package/dist/chunks/button.recipe-Cqkj3VMo.cjs.js +2 -0
  123. package/dist/chunks/button.recipe-Cqkj3VMo.cjs.js.map +1 -0
  124. package/dist/chunks/button.recipe-NdTb5f8M.es.js +191 -0
  125. package/dist/chunks/button.recipe-NdTb5f8M.es.js.map +1 -0
  126. package/dist/chunks/calendar-DJKWldpV.cjs.js +2 -0
  127. package/dist/chunks/calendar-DJKWldpV.cjs.js.map +1 -0
  128. package/dist/chunks/calendar-DzwFtg1t.es.js +186 -0
  129. package/dist/chunks/calendar-DzwFtg1t.es.js.map +1 -0
  130. package/dist/chunks/card-BfUdf1Fy.es.js +138 -0
  131. package/dist/chunks/card-BfUdf1Fy.es.js.map +1 -0
  132. package/dist/chunks/card-DeWTV05B.cjs.js +2 -0
  133. package/dist/chunks/card-DeWTV05B.cjs.js.map +1 -0
  134. package/dist/chunks/checkbox-6nLo9Jy2.cjs.js +2 -0
  135. package/dist/chunks/checkbox-6nLo9Jy2.cjs.js.map +1 -0
  136. package/dist/chunks/checkbox-GmYxVrZx.es.js +219 -0
  137. package/dist/chunks/checkbox-GmYxVrZx.es.js.map +1 -0
  138. package/dist/chunks/code-Dl7u63Zn.es.js +6 -0
  139. package/dist/chunks/code-Dl7u63Zn.es.js.map +1 -0
  140. package/dist/chunks/code-q31e3vT2.cjs.js +2 -0
  141. package/dist/chunks/code-q31e3vT2.cjs.js.map +1 -0
  142. package/dist/chunks/combobox-DtPDxCo3.cjs.js +2 -0
  143. package/dist/chunks/combobox-DtPDxCo3.cjs.js.map +1 -0
  144. package/dist/chunks/combobox-gIwba2QG.es.js +2392 -0
  145. package/dist/chunks/combobox-gIwba2QG.es.js.map +1 -0
  146. package/dist/chunks/context-OoV8SSWX.cjs.js +2 -0
  147. package/dist/chunks/context-OoV8SSWX.cjs.js.map +1 -0
  148. package/dist/chunks/context-R4YUlO9Y.es.js +108 -0
  149. package/dist/chunks/context-R4YUlO9Y.es.js.map +1 -0
  150. package/dist/chunks/data-table-Cpk3q34E.cjs.js +2 -0
  151. package/dist/chunks/data-table-Cpk3q34E.cjs.js.map +1 -0
  152. package/dist/chunks/data-table-mXLxUWQz.es.js +3563 -0
  153. package/dist/chunks/data-table-mXLxUWQz.es.js.map +1 -0
  154. package/dist/chunks/date-input-D5unoyMt.es.js +16 -0
  155. package/dist/chunks/date-input-D5unoyMt.es.js.map +1 -0
  156. package/dist/chunks/date-input-DJ_aFB9i.cjs.js +2 -0
  157. package/dist/chunks/date-input-DJ_aFB9i.cjs.js.map +1 -0
  158. package/dist/chunks/date-picker-CMqAI1lp.es.js +190 -0
  159. package/dist/chunks/date-picker-CMqAI1lp.es.js.map +1 -0
  160. package/dist/chunks/date-picker-f3TylaP5.cjs.js +2 -0
  161. package/dist/chunks/date-picker-f3TylaP5.cjs.js.map +1 -0
  162. package/dist/chunks/date-range-picker-CxsPpWyX.cjs.js +2 -0
  163. package/dist/chunks/date-range-picker-CxsPpWyX.cjs.js.map +1 -0
  164. package/dist/chunks/date-range-picker-Dtji64Q9.es.js +283 -0
  165. package/dist/chunks/date-range-picker-Dtji64Q9.es.js.map +1 -0
  166. package/dist/chunks/dialog-CVa-E9-A.cjs.js +2 -0
  167. package/dist/chunks/dialog-CVa-E9-A.cjs.js.map +1 -0
  168. package/dist/chunks/dialog-DTSuKnyk.es.js +34 -0
  169. package/dist/chunks/dialog-DTSuKnyk.es.js.map +1 -0
  170. package/dist/chunks/divider--BAm3ca4.es.js +53 -0
  171. package/dist/chunks/divider--BAm3ca4.es.js.map +1 -0
  172. package/dist/chunks/divider-BuizjeAj.cjs.js +2 -0
  173. package/dist/chunks/divider-BuizjeAj.cjs.js.map +1 -0
  174. package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js +2 -0
  175. package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js.map +1 -0
  176. package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js +16 -0
  177. package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js.map +1 -0
  178. package/dist/chunks/extractStyleProps-CZpHKp1I.cjs.js +2 -0
  179. package/dist/chunks/extractStyleProps-CZpHKp1I.cjs.js.map +1 -0
  180. package/dist/chunks/extractStyleProps-vA4cNUoc.es.js +11 -0
  181. package/dist/chunks/extractStyleProps-vA4cNUoc.es.js.map +1 -0
  182. package/dist/chunks/filterDOMProps-BSVCO5jK.es.js.map +1 -1
  183. package/dist/chunks/filterDOMProps-WUskt27c.cjs.js.map +1 -1
  184. package/dist/chunks/focusSafely-DJpphVHF.es.js +27 -0
  185. package/dist/chunks/focusSafely-DJpphVHF.es.js.map +1 -0
  186. package/dist/chunks/focusSafely-jDMW9aEx.cjs.js +2 -0
  187. package/dist/chunks/focusSafely-jDMW9aEx.cjs.js.map +1 -0
  188. package/dist/chunks/focusWithoutScrolling-BlyUcXdY.cjs.js.map +1 -1
  189. package/dist/chunks/focusWithoutScrolling-CDw3JYiq.es.js.map +1 -1
  190. package/dist/chunks/form-field-Dtcfgzyo.es.js +309 -0
  191. package/dist/chunks/form-field-Dtcfgzyo.es.js.map +1 -0
  192. package/dist/chunks/form-field-DxcGAb23.cjs.js +11 -0
  193. package/dist/chunks/form-field-DxcGAb23.cjs.js.map +1 -0
  194. package/dist/chunks/grid-Chuw1xje.cjs.js +2 -0
  195. package/dist/chunks/grid-Chuw1xje.cjs.js.map +1 -0
  196. package/dist/chunks/grid-De8qjf98.es.js +14 -0
  197. package/dist/chunks/grid-De8qjf98.es.js.map +1 -0
  198. package/dist/chunks/group-Buy-O6Mr.cjs.js +2 -0
  199. package/dist/chunks/group-Buy-O6Mr.cjs.js.map +1 -0
  200. package/dist/chunks/group-CqfSQXe7.es.js +14 -0
  201. package/dist/chunks/group-CqfSQXe7.es.js.map +1 -0
  202. package/dist/chunks/icon-BoRbJStV.es.js +31 -0
  203. package/dist/chunks/icon-BoRbJStV.es.js.map +1 -0
  204. package/dist/chunks/icon-Cny8ZtnX.cjs.js +2 -0
  205. package/dist/chunks/icon-Cny8ZtnX.cjs.js.map +1 -0
  206. package/dist/chunks/icon-button-C20Gw8gQ.es.js +14 -0
  207. package/dist/chunks/icon-button-C20Gw8gQ.es.js.map +1 -0
  208. package/dist/chunks/icon-button-Cc0MkBbk.cjs.js +2 -0
  209. package/dist/chunks/icon-button-Cc0MkBbk.cjs.js.map +1 -0
  210. package/dist/chunks/icon-toggle-button-CgHQMDs3.es.js +13 -0
  211. package/dist/chunks/icon-toggle-button-CgHQMDs3.es.js.map +1 -0
  212. package/dist/chunks/icon-toggle-button-D-C99Q0s.cjs.js +2 -0
  213. package/dist/chunks/icon-toggle-button-D-C99Q0s.cjs.js.map +1 -0
  214. package/dist/chunks/image-CGOYoc2s.cjs.js +2 -0
  215. package/dist/chunks/image-CGOYoc2s.cjs.js.map +1 -0
  216. package/dist/chunks/image-DRigLU80.es.js +8 -0
  217. package/dist/chunks/image-DRigLU80.es.js.map +1 -0
  218. package/dist/chunks/index-C8Yrk__l.cjs.js +4 -0
  219. package/dist/chunks/index-C8Yrk__l.cjs.js.map +1 -0
  220. package/dist/chunks/index-jAeaCpRm.es.js +3787 -0
  221. package/dist/chunks/index-jAeaCpRm.es.js.map +1 -0
  222. package/dist/chunks/intlStrings-Cd44R5hT.es.js.map +1 -1
  223. package/dist/chunks/intlStrings-ClBuC6xN.cjs.js.map +1 -1
  224. package/dist/chunks/kbd-BXN9aXRE.es.js +17 -0
  225. package/dist/chunks/kbd-BXN9aXRE.es.js.map +1 -0
  226. package/dist/chunks/kbd-DFeaXiKY.cjs.js +2 -0
  227. package/dist/chunks/kbd-DFeaXiKY.cjs.js.map +1 -0
  228. package/dist/chunks/kbd.recipe-DXiyvrAP.es.js +26 -0
  229. package/dist/chunks/kbd.recipe-DXiyvrAP.es.js.map +1 -0
  230. package/dist/chunks/kbd.recipe-DjQgeTG_.cjs.js +2 -0
  231. package/dist/chunks/kbd.recipe-DjQgeTG_.cjs.js.map +1 -0
  232. package/dist/chunks/link-CFK97sc0.es.js +50 -0
  233. package/dist/chunks/link-CFK97sc0.es.js.map +1 -0
  234. package/dist/chunks/link-DWa1zIUJ.cjs.js +2 -0
  235. package/dist/chunks/link-DWa1zIUJ.cjs.js.map +1 -0
  236. package/dist/chunks/link.recipe-Co4-fl4U.cjs.js +2 -0
  237. package/dist/chunks/link.recipe-Co4-fl4U.cjs.js.map +1 -0
  238. package/dist/chunks/link.recipe-pXiGIJtI.es.js +51 -0
  239. package/dist/chunks/link.recipe-pXiGIJtI.es.js.map +1 -0
  240. package/dist/chunks/list-DJC9BmoC.cjs.js +2 -0
  241. package/dist/chunks/list-DJC9BmoC.cjs.js.map +1 -0
  242. package/dist/chunks/list-Nz5KjWzs.es.js +13 -0
  243. package/dist/chunks/list-Nz5KjWzs.es.js.map +1 -0
  244. package/dist/chunks/loading-spinner-CvggCl-H.es.js +105 -0
  245. package/dist/chunks/loading-spinner-CvggCl-H.es.js.map +1 -0
  246. package/dist/chunks/loading-spinner-DdYXuYkg.cjs.js +2 -0
  247. package/dist/chunks/loading-spinner-DdYXuYkg.cjs.js.map +1 -0
  248. package/dist/chunks/make-element-focusable-C4ZHUSEU.es.js +22 -0
  249. package/dist/chunks/make-element-focusable-C4ZHUSEU.es.js.map +1 -0
  250. package/dist/chunks/make-element-focusable-bPAMXt4D.cjs.js +2 -0
  251. package/dist/chunks/make-element-focusable-bPAMXt4D.cjs.js.map +1 -0
  252. package/dist/chunks/menu-8g9Hn1nm.es.js +157 -0
  253. package/dist/chunks/menu-8g9Hn1nm.es.js.map +1 -0
  254. package/dist/chunks/menu-Bm1u-R6o.cjs.js +2 -0
  255. package/dist/chunks/menu-Bm1u-R6o.cjs.js.map +1 -0
  256. package/dist/chunks/mergeProps-BA5Cwf5w.cjs.js.map +1 -1
  257. package/dist/chunks/mergeProps-B_9syxhT.es.js.map +1 -1
  258. package/dist/chunks/multiline-text-input-BGnvpB1r.es.js +118 -0
  259. package/dist/chunks/multiline-text-input-BGnvpB1r.es.js.map +1 -0
  260. package/dist/chunks/multiline-text-input-sXIlwrvT.cjs.js +12 -0
  261. package/dist/chunks/multiline-text-input-sXIlwrvT.cjs.js.map +1 -0
  262. package/dist/chunks/nimbus-provider-CybdU89B.es.js +101 -0
  263. package/dist/chunks/nimbus-provider-CybdU89B.es.js.map +1 -0
  264. package/dist/chunks/nimbus-provider-D3DvYEDv.cjs.js +2 -0
  265. package/dist/chunks/nimbus-provider-D3DvYEDv.cjs.js.map +1 -0
  266. package/dist/chunks/number-DHvo-MDe.cjs.js.map +1 -1
  267. package/dist/chunks/number-dMxJejI6.es.js.map +1 -1
  268. package/dist/chunks/number-input-CPnA0dO-.cjs.js +2 -0
  269. package/dist/chunks/number-input-CPnA0dO-.cjs.js.map +1 -0
  270. package/dist/chunks/number-input-CzObpfFa.es.js +657 -0
  271. package/dist/chunks/number-input-CzObpfFa.es.js.map +1 -0
  272. package/dist/chunks/openLink-Ctl0AdAy.es.js.map +1 -1
  273. package/dist/chunks/openLink-DkCJYbzq.cjs.js.map +1 -1
  274. package/dist/chunks/password-input-BqhrDjyW.cjs.js +2 -0
  275. package/dist/chunks/password-input-BqhrDjyW.cjs.js.map +1 -0
  276. package/dist/chunks/password-input-C_rdTND7.es.js +50 -0
  277. package/dist/chunks/password-input-C_rdTND7.es.js.map +1 -0
  278. package/dist/chunks/platform-BDLy2vDY.cjs.js.map +1 -1
  279. package/dist/chunks/platform-Z5fvtFmM.es.js.map +1 -1
  280. package/dist/chunks/progress-bar-CrS1rODC.cjs.js +2 -0
  281. package/dist/chunks/progress-bar-CrS1rODC.cjs.js.map +1 -0
  282. package/dist/chunks/progress-bar-pPWJ1Sn8.es.js +77 -0
  283. package/dist/chunks/progress-bar-pPWJ1Sn8.es.js.map +1 -0
  284. package/dist/chunks/radio-input-BTEXrXaF.cjs.js +2 -0
  285. package/dist/chunks/radio-input-BTEXrXaF.cjs.js.map +1 -0
  286. package/dist/chunks/radio-input-OpbQD2zP.es.js +341 -0
  287. package/dist/chunks/radio-input-OpbQD2zP.es.js.map +1 -0
  288. package/dist/chunks/range-calendar-BOP_J_5a.es.js +186 -0
  289. package/dist/chunks/range-calendar-BOP_J_5a.es.js.map +1 -0
  290. package/dist/chunks/range-calendar-CFotnBzs.cjs.js +2 -0
  291. package/dist/chunks/range-calendar-CFotnBzs.cjs.js.map +1 -0
  292. package/dist/chunks/rich-text-input-CItP9BzJ.cjs.js +2 -0
  293. package/dist/chunks/rich-text-input-CItP9BzJ.cjs.js.map +1 -0
  294. package/dist/chunks/rich-text-input-CgrxAPHc.es.js +691 -0
  295. package/dist/chunks/rich-text-input-CgrxAPHc.es.js.map +1 -0
  296. package/dist/chunks/scrollIntoView-BYF_8_6g.es.js.map +1 -1
  297. package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js.map +1 -1
  298. package/dist/chunks/select-CAeD_ZuZ.es.js +558 -0
  299. package/dist/chunks/select-CAeD_ZuZ.es.js.map +1 -0
  300. package/dist/chunks/select-Coyt1pJN.cjs.js +2 -0
  301. package/dist/chunks/select-Coyt1pJN.cjs.js.map +1 -0
  302. package/dist/chunks/simple-grid-Cd2MJxSX.cjs.js +2 -0
  303. package/dist/chunks/simple-grid-Cd2MJxSX.cjs.js.map +1 -0
  304. package/dist/chunks/simple-grid-DU5v66TG.es.js +15 -0
  305. package/dist/chunks/simple-grid-DU5v66TG.es.js.map +1 -0
  306. package/dist/chunks/slate-helpers-BN_9Hky2.cjs.js +24 -0
  307. package/dist/chunks/slate-helpers-BN_9Hky2.cjs.js.map +1 -0
  308. package/dist/chunks/slate-helpers-DunxggA8.es.js +6919 -0
  309. package/dist/chunks/slate-helpers-DunxggA8.es.js.map +1 -0
  310. package/dist/chunks/split-button-BYrr5vRr.cjs.js +2 -0
  311. package/dist/chunks/split-button-BYrr5vRr.cjs.js.map +1 -0
  312. package/dist/chunks/split-button-j2bgcP59.es.js +103 -0
  313. package/dist/chunks/split-button-j2bgcP59.es.js.map +1 -0
  314. package/dist/chunks/stack-CIN13EDn.cjs.js +2 -0
  315. package/dist/chunks/stack-CIN13EDn.cjs.js.map +1 -0
  316. package/dist/chunks/stack-CoNreM7B.es.js +11 -0
  317. package/dist/chunks/stack-CoNreM7B.es.js.map +1 -0
  318. package/dist/chunks/switch-BgNpbn2e.cjs.js +2 -0
  319. package/dist/chunks/switch-BgNpbn2e.cjs.js.map +1 -0
  320. package/dist/chunks/switch-Cid4U3m8.es.js +79 -0
  321. package/dist/chunks/switch-Cid4U3m8.es.js.map +1 -0
  322. package/dist/chunks/tag-group-B3YSTBpb.cjs.js +2 -0
  323. package/dist/chunks/tag-group-B3YSTBpb.cjs.js.map +1 -0
  324. package/dist/chunks/tag-group-CeNHz5QQ.es.js +781 -0
  325. package/dist/chunks/tag-group-CeNHz5QQ.es.js.map +1 -0
  326. package/dist/chunks/text-CCW9kDT_.cjs.js +2 -0
  327. package/dist/chunks/text-CCW9kDT_.cjs.js.map +1 -0
  328. package/dist/chunks/text-DfQpupDi.es.js +24 -0
  329. package/dist/chunks/text-DfQpupDi.es.js.map +1 -0
  330. package/dist/chunks/text-input-C2y4O13I.cjs.js +2 -0
  331. package/dist/chunks/text-input-C2y4O13I.cjs.js.map +1 -0
  332. package/dist/chunks/text-input-TZXg0lEQ.es.js +18 -0
  333. package/dist/chunks/text-input-TZXg0lEQ.es.js.map +1 -0
  334. package/dist/chunks/time-input-CI_HoOGU.es.js +130 -0
  335. package/dist/chunks/time-input-CI_HoOGU.es.js.map +1 -0
  336. package/dist/chunks/time-input-cHUvGWDc.cjs.js +2 -0
  337. package/dist/chunks/time-input-cHUvGWDc.cjs.js.map +1 -0
  338. package/dist/chunks/toggle-button-C9ezVsSp.cjs.js +2 -0
  339. package/dist/chunks/toggle-button-C9ezVsSp.cjs.js.map +1 -0
  340. package/dist/chunks/toggle-button-a0gCembi.es.js +29 -0
  341. package/dist/chunks/toggle-button-a0gCembi.es.js.map +1 -0
  342. package/dist/chunks/toggle-button-group-DX134q7m.cjs.js +2 -0
  343. package/dist/chunks/toggle-button-group-DX134q7m.cjs.js.map +1 -0
  344. package/dist/chunks/toggle-button-group-jRdpdYyd.es.js +81 -0
  345. package/dist/chunks/toggle-button-group-jRdpdYyd.es.js.map +1 -0
  346. package/dist/chunks/toolbar-CLGq6IO7.cjs.js +2 -0
  347. package/dist/chunks/toolbar-CLGq6IO7.cjs.js.map +1 -0
  348. package/dist/chunks/toolbar-hpBfKrTl.es.js +59 -0
  349. package/dist/chunks/toolbar-hpBfKrTl.es.js.map +1 -0
  350. package/dist/chunks/tooltip-B1YdruCE.es.js +269 -0
  351. package/dist/chunks/tooltip-B1YdruCE.es.js.map +1 -0
  352. package/dist/chunks/tooltip-g8-hEdZp.cjs.js +2 -0
  353. package/dist/chunks/tooltip-g8-hEdZp.cjs.js.map +1 -0
  354. package/dist/chunks/tooltip.recipe-Cqi_tgR5.es.js +24 -0
  355. package/dist/chunks/tooltip.recipe-Cqi_tgR5.es.js.map +1 -0
  356. package/dist/chunks/tooltip.recipe-dx7DAJbZ.cjs.js +2 -0
  357. package/dist/chunks/tooltip.recipe-dx7DAJbZ.cjs.js.map +1 -0
  358. package/dist/chunks/use-formatting-state-DVcnyVBl.cjs.js +2 -0
  359. package/dist/chunks/use-formatting-state-DVcnyVBl.cjs.js.map +1 -0
  360. package/dist/chunks/use-formatting-state-DdKYccZs.es.js +247 -0
  361. package/dist/chunks/use-formatting-state-DdKYccZs.es.js.map +1 -0
  362. package/dist/chunks/useButton-BgBfaV_L.cjs.js +2 -0
  363. package/dist/chunks/useButton-BgBfaV_L.cjs.js.map +1 -0
  364. package/dist/chunks/useButton-DAeSjgg9.es.js +57 -0
  365. package/dist/chunks/useButton-DAeSjgg9.es.js.map +1 -0
  366. package/dist/chunks/useCollator-BHMZd1r6.es.js +12 -0
  367. package/dist/chunks/useCollator-BHMZd1r6.es.js.map +1 -0
  368. package/dist/chunks/useCollator-YVJAe1GI.cjs.js +2 -0
  369. package/dist/chunks/useCollator-YVJAe1GI.cjs.js.map +1 -0
  370. package/dist/chunks/useControlledState-D0L6S_5r.cjs.js.map +1 -1
  371. package/dist/chunks/useControlledState-u436Wbp1.es.js.map +1 -1
  372. package/dist/chunks/useDateFormatter-C7Kxzwro.es.js +1601 -0
  373. package/dist/chunks/useDateFormatter-C7Kxzwro.es.js.map +1 -0
  374. package/dist/chunks/useDateFormatter-CS19Cch2.cjs.js +2 -0
  375. package/dist/chunks/useDateFormatter-CS19Cch2.cjs.js.map +1 -0
  376. package/dist/chunks/useEvent-CuUOU5WV.cjs.js.map +1 -1
  377. package/dist/chunks/useEvent-YHhqZvpU.es.js.map +1 -1
  378. package/dist/chunks/useField-Ce9zQxmx.es.js.map +1 -1
  379. package/dist/chunks/useField-DmqO9k7a.cjs.js.map +1 -1
  380. package/dist/chunks/useFilter-CG8lxfCP.cjs.js +2 -0
  381. package/dist/chunks/useFilter-CG8lxfCP.cjs.js.map +1 -0
  382. package/dist/chunks/useFilter-DOfNzeZ9.es.js +36 -0
  383. package/dist/chunks/useFilter-DOfNzeZ9.es.js.map +1 -0
  384. package/dist/chunks/useFocus-BtJ38vev.cjs.js +2 -0
  385. package/dist/chunks/useFocus-BtJ38vev.cjs.js.map +1 -0
  386. package/dist/chunks/useFocus-DkWJ2TJC.es.js +29 -0
  387. package/dist/chunks/useFocus-DkWJ2TJC.es.js.map +1 -0
  388. package/dist/chunks/useFocusRing-CzFer4bD.cjs.js +2 -0
  389. package/dist/chunks/useFocusRing-CzFer4bD.cjs.js.map +1 -0
  390. package/dist/chunks/useFocusRing-updnkDQg.es.js +35 -0
  391. package/dist/chunks/useFocusRing-updnkDQg.es.js.map +1 -0
  392. package/dist/chunks/useFocusVisible-CWDaG0ze.es.js +111 -0
  393. package/dist/chunks/useFocusVisible-CWDaG0ze.es.js.map +1 -0
  394. package/dist/chunks/useFocusVisible-Co0C61s7.cjs.js +2 -0
  395. package/dist/chunks/useFocusVisible-Co0C61s7.cjs.js.map +1 -0
  396. package/dist/chunks/useFocusWithin-BDSWp3rw.cjs.js +2 -0
  397. package/dist/chunks/useFocusWithin-BDSWp3rw.cjs.js.map +1 -0
  398. package/dist/chunks/useFocusWithin-ByYlHjju.es.js +56 -0
  399. package/dist/chunks/useFocusWithin-ByYlHjju.es.js.map +1 -0
  400. package/dist/chunks/useFocusable-CrsD8ZcF.es.js +77 -0
  401. package/dist/chunks/useFocusable-CrsD8ZcF.es.js.map +1 -0
  402. package/dist/chunks/useFocusable-DCgmQxS1.cjs.js +2 -0
  403. package/dist/chunks/useFocusable-DCgmQxS1.cjs.js.map +1 -0
  404. package/dist/chunks/useFormReset--wPlnEOl.cjs.js.map +1 -1
  405. package/dist/chunks/useFormReset-DurgUJL-.es.js.map +1 -1
  406. package/dist/chunks/useFormValidation-4hZ1_a6w.es.js +202 -0
  407. package/dist/chunks/useFormValidation-4hZ1_a6w.es.js.map +1 -0
  408. package/dist/chunks/useFormValidation-BEaCuNx1.cjs.js +2 -0
  409. package/dist/chunks/useFormValidation-BEaCuNx1.cjs.js.map +1 -0
  410. package/dist/chunks/useGlobalListeners-BOOfV5Wh.es.js.map +1 -1
  411. package/dist/chunks/useGlobalListeners-DcmIlwrO.cjs.js.map +1 -1
  412. package/dist/chunks/useHighlightSelectionDescription-BQg1WcM3.es.js +598 -0
  413. package/dist/chunks/useHighlightSelectionDescription-BQg1WcM3.es.js.map +1 -0
  414. package/dist/chunks/useHighlightSelectionDescription-CpDw-Mgj.cjs.js +2 -0
  415. package/dist/chunks/useHighlightSelectionDescription-CpDw-Mgj.cjs.js.map +1 -0
  416. package/dist/chunks/useHover-CiP9jMFy.cjs.js +2 -0
  417. package/dist/chunks/useHover-CiP9jMFy.cjs.js.map +1 -0
  418. package/dist/chunks/useHover-DhoE75lX.es.js +86 -0
  419. package/dist/chunks/useHover-DhoE75lX.es.js.map +1 -0
  420. package/dist/chunks/useLabel-BBmkkrPP.es.js.map +1 -1
  421. package/dist/chunks/useLabel-Y8tWagLu.cjs.js.map +1 -1
  422. package/dist/chunks/useLocalizedStringFormatter-BRnRyxJp.es.js +97 -0
  423. package/dist/chunks/useLocalizedStringFormatter-BRnRyxJp.es.js.map +1 -0
  424. package/dist/chunks/useLocalizedStringFormatter-sB0mFYtL.cjs.js +2 -0
  425. package/dist/chunks/useLocalizedStringFormatter-sB0mFYtL.cjs.js.map +1 -0
  426. package/dist/chunks/useObjectRef-CaJ5pgjX.es.js.map +1 -1
  427. package/dist/chunks/useObjectRef-dXOJdONs.cjs.js.map +1 -1
  428. package/dist/chunks/usePress-C8-hLXJw.cjs.js +8 -0
  429. package/dist/chunks/usePress-C8-hLXJw.cjs.js.map +1 -0
  430. package/dist/chunks/usePress-DHhWHfMz.es.js +456 -0
  431. package/dist/chunks/usePress-DHhWHfMz.es.js.map +1 -0
  432. package/dist/chunks/useProgressBar-DHFmTHqL.es.js +48 -0
  433. package/dist/chunks/useProgressBar-DHFmTHqL.es.js.map +1 -0
  434. package/dist/chunks/useProgressBar-DWH4I0qR.cjs.js +2 -0
  435. package/dist/chunks/useProgressBar-DWH4I0qR.cjs.js.map +1 -0
  436. package/dist/chunks/useSeparator-B-OtWwE7.cjs.js.map +1 -1
  437. package/dist/chunks/useSeparator-Dg70ACBm.es.js.map +1 -1
  438. package/dist/chunks/useSingleSelectListState-D1rjgMv_.es.js +35 -0
  439. package/dist/chunks/useSingleSelectListState-D1rjgMv_.es.js.map +1 -0
  440. package/dist/chunks/useSingleSelectListState-F2WkLZRg.cjs.js +2 -0
  441. package/dist/chunks/useSingleSelectListState-F2WkLZRg.cjs.js.map +1 -0
  442. package/dist/chunks/useSpinButton-C9DPDo0r.es.js +433 -0
  443. package/dist/chunks/useSpinButton-C9DPDo0r.es.js.map +1 -0
  444. package/dist/chunks/useSpinButton-DA7sVP3T.cjs.js +2 -0
  445. package/dist/chunks/useSpinButton-DA7sVP3T.cjs.js.map +1 -0
  446. package/dist/chunks/useSyncRef-DGRbdR4H.es.js.map +1 -1
  447. package/dist/chunks/useSyncRef-bcjp9eId.cjs.js.map +1 -1
  448. package/dist/chunks/useTextField-BcthGRd8.cjs.js +2 -0
  449. package/dist/chunks/useTextField-BcthGRd8.cjs.js.map +1 -0
  450. package/dist/chunks/useTextField-BnL6tOdd.es.js +91 -0
  451. package/dist/chunks/useTextField-BnL6tOdd.es.js.map +1 -0
  452. package/dist/chunks/useToggle-DqruaaTq.es.js +62 -0
  453. package/dist/chunks/useToggle-DqruaaTq.es.js.map +1 -0
  454. package/dist/chunks/useToggle-VJWgbeCC.cjs.js +2 -0
  455. package/dist/chunks/useToggle-VJWgbeCC.cjs.js.map +1 -0
  456. package/dist/chunks/useToggleState-Dl-o05wQ.cjs.js.map +1 -1
  457. package/dist/chunks/useToggleState-Uh0wTgdI.es.js.map +1 -1
  458. package/dist/chunks/useToolbar-Bqn3EANT.cjs.js +2 -0
  459. package/dist/chunks/useToolbar-Bqn3EANT.cjs.js.map +1 -0
  460. package/dist/chunks/useToolbar-CLH6Sjes.es.js +55 -0
  461. package/dist/chunks/useToolbar-CLH6Sjes.es.js.map +1 -0
  462. package/dist/chunks/useUpdateEffect-C5YQs_1w.cjs.js.map +1 -1
  463. package/dist/chunks/useUpdateEffect-CCDx8D4X.es.js.map +1 -1
  464. package/dist/chunks/utils-BGHwK7fd.cjs.js +2 -0
  465. package/dist/chunks/utils-BGHwK7fd.cjs.js.map +1 -0
  466. package/dist/chunks/utils-BHdR5Nww.cjs.js.map +1 -1
  467. package/dist/chunks/utils-BkdW_cdL.es.js.map +1 -1
  468. package/dist/chunks/utils-jpfA6kxk.es.js +188 -0
  469. package/dist/chunks/utils-jpfA6kxk.es.js.map +1 -0
  470. package/dist/chunks/visually-hidden-Bh-G5QHv.cjs.js +2 -0
  471. package/dist/chunks/visually-hidden-Bh-G5QHv.cjs.js.map +1 -0
  472. package/dist/chunks/visually-hidden-BluyWhUI.es.js +11 -0
  473. package/dist/chunks/visually-hidden-BluyWhUI.es.js.map +1 -0
  474. package/dist/code.d.ts +9 -0
  475. package/dist/combobox.d.ts +9 -0
  476. package/dist/components/accordion.cjs +1 -1
  477. package/dist/components/accordion.es.js +1 -1
  478. package/dist/components/alert.cjs +1 -1
  479. package/dist/components/alert.es.js +1 -1
  480. package/dist/components/avatar.cjs +1 -1
  481. package/dist/components/avatar.es.js +1 -1
  482. package/dist/components/badge.cjs +1 -1
  483. package/dist/components/badge.es.js +1 -1
  484. package/dist/components/box.cjs +1 -1
  485. package/dist/components/box.es.js +1 -1
  486. package/dist/components/button.cjs +1 -1
  487. package/dist/components/button.es.js +1 -1
  488. package/dist/components/calendar.cjs +1 -1
  489. package/dist/components/calendar.es.js +1 -1
  490. package/dist/components/card.cjs +1 -1
  491. package/dist/components/card.es.js +1 -1
  492. package/dist/components/checkbox.cjs +1 -1
  493. package/dist/components/checkbox.es.js +1 -1
  494. package/dist/components/code.cjs +1 -1
  495. package/dist/components/code.es.js +1 -1
  496. package/dist/components/combobox.cjs +1 -1
  497. package/dist/components/combobox.es.js +1 -1
  498. package/dist/components/components.cjs +1 -1
  499. package/dist/components/components.es.js +118 -116
  500. package/dist/components/components.es.js.map +1 -1
  501. package/dist/components/constants.cjs +2 -0
  502. package/dist/components/constants.cjs.map +1 -0
  503. package/dist/components/constants.es.js +125 -0
  504. package/dist/components/constants.es.js.map +1 -0
  505. package/dist/components/data-table.cjs +1 -1
  506. package/dist/components/data-table.es.js +10 -11
  507. package/dist/components/date-input.cjs +1 -1
  508. package/dist/components/date-input.es.js +1 -1
  509. package/dist/components/date-picker.cjs +1 -1
  510. package/dist/components/date-picker.es.js +1 -1
  511. package/dist/components/date-range-picker.cjs +1 -1
  512. package/dist/components/date-range-picker.es.js +1 -1
  513. package/dist/components/dialog.cjs +1 -1
  514. package/dist/components/dialog.es.js +1 -1
  515. package/dist/components/divider.cjs +1 -1
  516. package/dist/components/divider.es.js +1 -1
  517. package/dist/components/flex.cjs +1 -1
  518. package/dist/components/flex.es.js +1 -1
  519. package/dist/components/form-field.cjs +1 -1
  520. package/dist/components/form-field.es.js +1 -1
  521. package/dist/components/grid.cjs +1 -1
  522. package/dist/components/grid.es.js +1 -1
  523. package/dist/components/group.cjs +1 -1
  524. package/dist/components/group.es.js +1 -1
  525. package/dist/components/heading.cjs +1 -1
  526. package/dist/components/heading.es.js +2 -2
  527. package/dist/components/hooks.cjs +2 -0
  528. package/dist/components/hooks.cjs.map +1 -0
  529. package/dist/components/hooks.es.js +8 -0
  530. package/dist/components/hooks.es.js.map +1 -0
  531. package/dist/components/icon-button.cjs +1 -1
  532. package/dist/components/icon-button.es.js +1 -1
  533. package/dist/components/icon-toggle-button.cjs +1 -1
  534. package/dist/components/icon-toggle-button.es.js +1 -1
  535. package/dist/components/icon.cjs +1 -1
  536. package/dist/components/icon.es.js +1 -1
  537. package/dist/components/image.cjs +1 -1
  538. package/dist/components/image.es.js +1 -1
  539. package/dist/components/kbd.cjs +1 -1
  540. package/dist/components/kbd.es.js +1 -1
  541. package/dist/components/link.cjs +1 -1
  542. package/dist/components/link.es.js +1 -1
  543. package/dist/components/list.cjs +1 -1
  544. package/dist/components/list.es.js +1 -1
  545. package/dist/components/loading-spinner.cjs +1 -1
  546. package/dist/components/loading-spinner.es.js +1 -1
  547. package/dist/components/multiline-text-input.cjs +1 -1
  548. package/dist/components/multiline-text-input.es.js +1 -1
  549. package/dist/components/nimbus-provider.cjs +1 -1
  550. package/dist/components/nimbus-provider.es.js +1 -1
  551. package/dist/components/number-input.cjs +1 -1
  552. package/dist/components/number-input.es.js +1 -1
  553. package/dist/components/password-input.cjs +1 -1
  554. package/dist/components/password-input.es.js +1 -1
  555. package/dist/components/popover.cjs +2 -0
  556. package/dist/components/popover.cjs.map +1 -0
  557. package/dist/components/popover.es.js +25 -0
  558. package/dist/components/popover.es.js.map +1 -0
  559. package/dist/components/progress-bar.cjs +1 -1
  560. package/dist/components/progress-bar.es.js +1 -1
  561. package/dist/components/radio-input.cjs +1 -1
  562. package/dist/components/radio-input.es.js +1 -1
  563. package/dist/components/range-calendar.cjs +1 -1
  564. package/dist/components/range-calendar.es.js +1 -1
  565. package/dist/components/rich-text-input.cjs +2 -0
  566. package/dist/components/rich-text-input.cjs.map +1 -0
  567. package/dist/components/rich-text-input.es.js +5 -0
  568. package/dist/components/rich-text-input.es.js.map +1 -0
  569. package/dist/components/select.cjs +1 -1
  570. package/dist/components/select.es.js +1 -1
  571. package/dist/components/simple-grid.cjs +1 -1
  572. package/dist/components/simple-grid.es.js +1 -1
  573. package/dist/components/split-button.cjs +1 -1
  574. package/dist/components/split-button.es.js +1 -1
  575. package/dist/components/stack.cjs +1 -1
  576. package/dist/components/stack.es.js +1 -1
  577. package/dist/components/switch.cjs +1 -1
  578. package/dist/components/switch.es.js +1 -1
  579. package/dist/components/table.cjs +1 -1
  580. package/dist/components/table.es.js +2 -2
  581. package/dist/components/tag-group.cjs +1 -1
  582. package/dist/components/tag-group.es.js +1 -1
  583. package/dist/components/text-input.cjs +1 -1
  584. package/dist/components/text-input.es.js +1 -1
  585. package/dist/components/text.cjs +1 -1
  586. package/dist/components/text.es.js +1 -1
  587. package/dist/components/time-input.cjs +1 -1
  588. package/dist/components/time-input.es.js +1 -1
  589. package/dist/components/toggle-button-group.cjs +1 -1
  590. package/dist/components/toggle-button-group.es.js +1 -1
  591. package/dist/components/toggle-button.cjs +1 -1
  592. package/dist/components/toggle-button.es.js +1 -1
  593. package/dist/components/toolbar.cjs +1 -1
  594. package/dist/components/toolbar.es.js +1 -1
  595. package/dist/components/tooltip.cjs +1 -1
  596. package/dist/components/tooltip.es.js +2 -2
  597. package/dist/components/utils.cjs +2 -0
  598. package/dist/components/utils.cjs.map +1 -0
  599. package/dist/components/utils.es.js +76 -0
  600. package/dist/components/utils.es.js.map +1 -0
  601. package/dist/components/visually-hidden.cjs +1 -1
  602. package/dist/components/visually-hidden.es.js +1 -1
  603. package/dist/components.d.ts +221 -86
  604. package/dist/constants.d.ts +129 -0
  605. package/dist/data-table.d.ts +131 -72
  606. package/dist/date-input.d.ts +9 -0
  607. package/dist/date-picker.d.ts +9 -0
  608. package/dist/date-range-picker.d.ts +9 -0
  609. package/dist/dialog.d.ts +9 -0
  610. package/dist/divider.d.ts +9 -0
  611. package/dist/flex.d.ts +9 -0
  612. package/dist/form-field.d.ts +9 -0
  613. package/dist/grid.d.ts +9 -0
  614. package/dist/group.d.ts +9 -0
  615. package/dist/heading.d.ts +10 -1
  616. package/dist/hooks.d.ts +60 -0
  617. package/dist/icon-button.d.ts +9 -0
  618. package/dist/icon-toggle-button.d.ts +9 -0
  619. package/dist/icon.d.ts +9 -0
  620. package/dist/image.d.ts +9 -0
  621. package/dist/index.cjs +1 -1
  622. package/dist/index.cjs.map +1 -1
  623. package/dist/index.d.ts +263 -146
  624. package/dist/index.es.js +422 -286
  625. package/dist/index.es.js.map +1 -1
  626. package/dist/kbd.d.ts +9 -0
  627. package/dist/link.d.ts +9 -0
  628. package/dist/list.d.ts +9 -0
  629. package/dist/loading-spinner.d.ts +9 -0
  630. package/dist/multiline-text-input.d.ts +9 -0
  631. package/dist/nimbus-provider.d.ts +9 -0
  632. package/dist/number-input.d.ts +9 -0
  633. package/dist/password-input.d.ts +9 -0
  634. package/dist/popover.d.ts +27 -0
  635. package/dist/progress-bar.d.ts +13 -2
  636. package/dist/radio-input.d.ts +9 -0
  637. package/dist/range-calendar.d.ts +9 -0
  638. package/dist/rich-text-input.d.ts +79 -0
  639. package/dist/select.d.ts +12 -3
  640. package/dist/setup-jsdom-polyfills.d.ts +9 -0
  641. package/dist/simple-grid.d.ts +10 -1
  642. package/dist/split-button.d.ts +9 -0
  643. package/dist/stack.d.ts +9 -0
  644. package/dist/switch.d.ts +9 -0
  645. package/dist/table.d.ts +9 -0
  646. package/dist/tag-group.d.ts +9 -0
  647. package/dist/text-input.d.ts +9 -0
  648. package/dist/text.d.ts +10 -1
  649. package/dist/time-input.d.ts +9 -0
  650. package/dist/toggle-button-group.d.ts +9 -0
  651. package/dist/toggle-button.d.ts +9 -0
  652. package/dist/toolbar.d.ts +25 -2
  653. package/dist/tooltip.d.ts +9 -0
  654. package/dist/utils.d.ts +164 -0
  655. package/dist/visually-hidden.d.ts +9 -0
  656. package/package.json +31 -31
  657. package/dist/chunks/Button-C-yUWwZg.es.js +0 -73
  658. package/dist/chunks/Button-C-yUWwZg.es.js.map +0 -1
  659. package/dist/chunks/Button-DQ_WkLNH.cjs.js +0 -2
  660. package/dist/chunks/Button-DQ_WkLNH.cjs.js.map +0 -1
  661. package/dist/chunks/Collection-BsItrctR.cjs.js +0 -18
  662. package/dist/chunks/Collection-BsItrctR.cjs.js.map +0 -1
  663. package/dist/chunks/Collection-DFZhstai.es.js +0 -1896
  664. package/dist/chunks/Collection-DFZhstai.es.js.map +0 -1
  665. package/dist/chunks/DateField-D-KvZd-Q.cjs.js +0 -2
  666. package/dist/chunks/DateField-D-KvZd-Q.cjs.js.map +0 -1
  667. package/dist/chunks/DateField-m1BUGo8i.es.js +0 -2672
  668. package/dist/chunks/DateField-m1BUGo8i.es.js.map +0 -1
  669. package/dist/chunks/DatePicker-BQ6EfAU2.cjs.js +0 -2
  670. package/dist/chunks/DatePicker-BQ6EfAU2.cjs.js.map +0 -1
  671. package/dist/chunks/DatePicker-DtefBSoN.es.js +0 -779
  672. package/dist/chunks/DatePicker-DtefBSoN.es.js.map +0 -1
  673. package/dist/chunks/Dialog-B4OIDU7t.cjs.js +0 -2
  674. package/dist/chunks/Dialog-B4OIDU7t.cjs.js.map +0 -1
  675. package/dist/chunks/Dialog-DNPIKkGE.es.js +0 -1904
  676. package/dist/chunks/Dialog-DNPIKkGE.es.js.map +0 -1
  677. package/dist/chunks/FocusScope-B78iFLeF.cjs.js +0 -2
  678. package/dist/chunks/FocusScope-B78iFLeF.cjs.js.map +0 -1
  679. package/dist/chunks/FocusScope-C1Aw7j9H.es.js +0 -625
  680. package/dist/chunks/FocusScope-C1Aw7j9H.es.js.map +0 -1
  681. package/dist/chunks/Group-KVM7Xnxu.cjs.js +0 -2
  682. package/dist/chunks/Group-KVM7Xnxu.cjs.js.map +0 -1
  683. package/dist/chunks/Group-kT8-3NGT.es.js +0 -46
  684. package/dist/chunks/Group-kT8-3NGT.es.js.map +0 -1
  685. package/dist/chunks/Heading-CQJ-3eon.cjs.js +0 -2
  686. package/dist/chunks/Heading-CQJ-3eon.cjs.js.map +0 -1
  687. package/dist/chunks/Heading-DGvdnp7W.es.js +0 -1618
  688. package/dist/chunks/Heading-DGvdnp7W.es.js.map +0 -1
  689. package/dist/chunks/Input-93z9WR_a.cjs.js +0 -2
  690. package/dist/chunks/Input-93z9WR_a.cjs.js.map +0 -1
  691. package/dist/chunks/Input-C4REHQYD.es.js +0 -43
  692. package/dist/chunks/Input-C4REHQYD.es.js.map +0 -1
  693. package/dist/chunks/ListBox-B8Tz7EWS.es.js +0 -615
  694. package/dist/chunks/ListBox-B8Tz7EWS.es.js.map +0 -1
  695. package/dist/chunks/ListBox-CzZFXtHY.cjs.js +0 -2
  696. package/dist/chunks/ListBox-CzZFXtHY.cjs.js.map +0 -1
  697. package/dist/chunks/OverlayArrow-BD-oGsXg.es.js +0 -452
  698. package/dist/chunks/OverlayArrow-BD-oGsXg.es.js.map +0 -1
  699. package/dist/chunks/OverlayArrow-aq8OInch.cjs.js +0 -2
  700. package/dist/chunks/OverlayArrow-aq8OInch.cjs.js.map +0 -1
  701. package/dist/chunks/ProgressBar-BNPexoD9.cjs.js +0 -2
  702. package/dist/chunks/ProgressBar-BNPexoD9.cjs.js.map +0 -1
  703. package/dist/chunks/ProgressBar-BnGsEC_2.es.js +0 -42
  704. package/dist/chunks/ProgressBar-BnGsEC_2.es.js.map +0 -1
  705. package/dist/chunks/Separator-BUmWfQvi.es.js +0 -573
  706. package/dist/chunks/Separator-BUmWfQvi.es.js.map +0 -1
  707. package/dist/chunks/Separator-DBLZ41YB.cjs.js +0 -2
  708. package/dist/chunks/Separator-DBLZ41YB.cjs.js.map +0 -1
  709. package/dist/chunks/TextArea-Cc0cDaeu.cjs.js +0 -2
  710. package/dist/chunks/TextArea-Cc0cDaeu.cjs.js.map +0 -1
  711. package/dist/chunks/TextArea-DIyosEKy.es.js +0 -42
  712. package/dist/chunks/TextArea-DIyosEKy.es.js.map +0 -1
  713. package/dist/chunks/ToggleButton-BbM5Zv6q.cjs.js +0 -2
  714. package/dist/chunks/ToggleButton-BbM5Zv6q.cjs.js.map +0 -1
  715. package/dist/chunks/ToggleButton-CgbTgCVi.es.js +0 -145
  716. package/dist/chunks/ToggleButton-CgbTgCVi.es.js.map +0 -1
  717. package/dist/chunks/VisuallyHidden-B4l0wZHw.cjs.js +0 -2
  718. package/dist/chunks/VisuallyHidden-B4l0wZHw.cjs.js.map +0 -1
  719. package/dist/chunks/VisuallyHidden-C38kRNm0.es.js +0 -41
  720. package/dist/chunks/VisuallyHidden-C38kRNm0.es.js.map +0 -1
  721. package/dist/chunks/accordion-B_MC1ZEv.es.js +0 -223
  722. package/dist/chunks/accordion-B_MC1ZEv.es.js.map +0 -1
  723. package/dist/chunks/accordion-C9-YyEB4.cjs.js +0 -2
  724. package/dist/chunks/accordion-C9-YyEB4.cjs.js.map +0 -1
  725. package/dist/chunks/alert-BcTfv-Kw.es.js +0 -194
  726. package/dist/chunks/alert-BcTfv-Kw.es.js.map +0 -1
  727. package/dist/chunks/alert-Bp15DXZM.cjs.js +0 -2
  728. package/dist/chunks/alert-Bp15DXZM.cjs.js.map +0 -1
  729. package/dist/chunks/avatar-BWG1uDUT.cjs.js +0 -2
  730. package/dist/chunks/avatar-BWG1uDUT.cjs.js.map +0 -1
  731. package/dist/chunks/avatar-d49Ix9eV.es.js +0 -45
  732. package/dist/chunks/avatar-d49Ix9eV.es.js.map +0 -1
  733. package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js +0 -2
  734. package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js.map +0 -1
  735. package/dist/chunks/avatar.recipe-CxXQlkH6.es.js +0 -39
  736. package/dist/chunks/avatar.recipe-CxXQlkH6.es.js.map +0 -1
  737. package/dist/chunks/badge-BeR8OqtD.es.js +0 -78
  738. package/dist/chunks/badge-BeR8OqtD.es.js.map +0 -1
  739. package/dist/chunks/badge-CJK91qKC.cjs.js +0 -2
  740. package/dist/chunks/badge-CJK91qKC.cjs.js.map +0 -1
  741. package/dist/chunks/box-7pkPaNxe.es.js +0 -13
  742. package/dist/chunks/box-7pkPaNxe.es.js.map +0 -1
  743. package/dist/chunks/box-DL4MWnyy.cjs.js +0 -2
  744. package/dist/chunks/box-DL4MWnyy.cjs.js.map +0 -1
  745. package/dist/chunks/button-D5pgTe6f.es.js +0 -57
  746. package/dist/chunks/button-D5pgTe6f.es.js.map +0 -1
  747. package/dist/chunks/button-IGP--12e.cjs.js +0 -2
  748. package/dist/chunks/button-IGP--12e.cjs.js.map +0 -1
  749. package/dist/chunks/button.recipe-ClPhJ93N.cjs.js +0 -2
  750. package/dist/chunks/button.recipe-ClPhJ93N.cjs.js.map +0 -1
  751. package/dist/chunks/button.recipe-D9e9Gh9L.es.js +0 -191
  752. package/dist/chunks/button.recipe-D9e9Gh9L.es.js.map +0 -1
  753. package/dist/chunks/calendar-CYqib6Tm.cjs.js +0 -2
  754. package/dist/chunks/calendar-CYqib6Tm.cjs.js.map +0 -1
  755. package/dist/chunks/calendar-jrs4VkfV.es.js +0 -209
  756. package/dist/chunks/calendar-jrs4VkfV.es.js.map +0 -1
  757. package/dist/chunks/card-4i9NTJKM.cjs.js +0 -2
  758. package/dist/chunks/card-4i9NTJKM.cjs.js.map +0 -1
  759. package/dist/chunks/card-D1BUuNzg.es.js +0 -139
  760. package/dist/chunks/card-D1BUuNzg.es.js.map +0 -1
  761. package/dist/chunks/checkbox-BJQlCxDq.es.js +0 -219
  762. package/dist/chunks/checkbox-BJQlCxDq.es.js.map +0 -1
  763. package/dist/chunks/checkbox-DVb0qX6x.cjs.js +0 -2
  764. package/dist/chunks/checkbox-DVb0qX6x.cjs.js.map +0 -1
  765. package/dist/chunks/code-C245FocZ.es.js +0 -8
  766. package/dist/chunks/code-C245FocZ.es.js.map +0 -1
  767. package/dist/chunks/code-DqjWYzPU.cjs.js +0 -2
  768. package/dist/chunks/code-DqjWYzPU.cjs.js.map +0 -1
  769. package/dist/chunks/combobox-P1kEHLnr.cjs.js +0 -2
  770. package/dist/chunks/combobox-P1kEHLnr.cjs.js.map +0 -1
  771. package/dist/chunks/combobox-eT94voy1.es.js +0 -1947
  772. package/dist/chunks/combobox-eT94voy1.es.js.map +0 -1
  773. package/dist/chunks/config-Mt8_uyhI.cjs.js +0 -2
  774. package/dist/chunks/config-Mt8_uyhI.cjs.js.map +0 -1
  775. package/dist/chunks/config-ufbQ08Vi.es.js +0 -6
  776. package/dist/chunks/config-ufbQ08Vi.es.js.map +0 -1
  777. package/dist/chunks/context-D0_cRaDZ.cjs.js +0 -2
  778. package/dist/chunks/context-D0_cRaDZ.cjs.js.map +0 -1
  779. package/dist/chunks/context-Pt-0ojuK.es.js +0 -94
  780. package/dist/chunks/context-Pt-0ojuK.es.js.map +0 -1
  781. package/dist/chunks/create-recipe-context-BEEJ70DA.cjs.js +0 -2
  782. package/dist/chunks/create-recipe-context-BEEJ70DA.cjs.js.map +0 -1
  783. package/dist/chunks/create-recipe-context-BuajKZ9o.es.js +0 -62
  784. package/dist/chunks/create-recipe-context-BuajKZ9o.es.js.map +0 -1
  785. package/dist/chunks/create-slot-recipe-context-CHGQvGou.cjs.js +0 -2
  786. package/dist/chunks/create-slot-recipe-context-CHGQvGou.cjs.js.map +0 -1
  787. package/dist/chunks/create-slot-recipe-context-DgamNbR-.es.js +0 -104
  788. package/dist/chunks/create-slot-recipe-context-DgamNbR-.es.js.map +0 -1
  789. package/dist/chunks/data-table-BRjRsTel.cjs.js +0 -2
  790. package/dist/chunks/data-table-BRjRsTel.cjs.js.map +0 -1
  791. package/dist/chunks/data-table-CSWloD1b.es.js +0 -3912
  792. package/dist/chunks/data-table-CSWloD1b.es.js.map +0 -1
  793. package/dist/chunks/date-input-BFHLRnBr.cjs.js +0 -2
  794. package/dist/chunks/date-input-BFHLRnBr.cjs.js.map +0 -1
  795. package/dist/chunks/date-input-DADLkfIT.es.js +0 -17
  796. package/dist/chunks/date-input-DADLkfIT.es.js.map +0 -1
  797. package/dist/chunks/date-picker-CgCR5Rwk.es.js +0 -236
  798. package/dist/chunks/date-picker-CgCR5Rwk.es.js.map +0 -1
  799. package/dist/chunks/date-picker-CsspyMz9.cjs.js +0 -2
  800. package/dist/chunks/date-picker-CsspyMz9.cjs.js.map +0 -1
  801. package/dist/chunks/date-range-picker-C6v-n1IH.es.js +0 -283
  802. package/dist/chunks/date-range-picker-C6v-n1IH.es.js.map +0 -1
  803. package/dist/chunks/date-range-picker-D_gkG0on.cjs.js +0 -2
  804. package/dist/chunks/date-range-picker-D_gkG0on.cjs.js.map +0 -1
  805. package/dist/chunks/dialog-B1XThG7_.cjs.js +0 -2
  806. package/dist/chunks/dialog-B1XThG7_.cjs.js.map +0 -1
  807. package/dist/chunks/dialog-De8l1nzr.es.js +0 -1874
  808. package/dist/chunks/dialog-De8l1nzr.es.js.map +0 -1
  809. package/dist/chunks/divider-BicBw1PK.cjs.js +0 -2
  810. package/dist/chunks/divider-BicBw1PK.cjs.js.map +0 -1
  811. package/dist/chunks/divider-DMH0p6Pr.es.js +0 -54
  812. package/dist/chunks/divider-DMH0p6Pr.es.js.map +0 -1
  813. package/dist/chunks/empty-B5_AO6Pg.cjs.js +0 -2
  814. package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +0 -1
  815. package/dist/chunks/empty-D7ZFmvo6.es.js +0 -8
  816. package/dist/chunks/empty-D7ZFmvo6.es.js.map +0 -1
  817. package/dist/chunks/extractStyleProps-BBWaCIdJ.es.js +0 -11
  818. package/dist/chunks/extractStyleProps-BBWaCIdJ.es.js.map +0 -1
  819. package/dist/chunks/extractStyleProps-wjyId_vK.cjs.js +0 -2
  820. package/dist/chunks/extractStyleProps-wjyId_vK.cjs.js.map +0 -1
  821. package/dist/chunks/factory-DUzr3LTt.cjs.js +0 -3
  822. package/dist/chunks/factory-DUzr3LTt.cjs.js.map +0 -1
  823. package/dist/chunks/factory-Dwv06Ntb.es.js +0 -266
  824. package/dist/chunks/factory-Dwv06Ntb.es.js.map +0 -1
  825. package/dist/chunks/flex-9fkV4bsm.es.js +0 -40
  826. package/dist/chunks/flex-9fkV4bsm.es.js.map +0 -1
  827. package/dist/chunks/flex-CDVfeTs4.cjs.js +0 -2
  828. package/dist/chunks/flex-CDVfeTs4.cjs.js.map +0 -1
  829. package/dist/chunks/focusSafely-CpzfaUTO.cjs.js +0 -2
  830. package/dist/chunks/focusSafely-CpzfaUTO.cjs.js.map +0 -1
  831. package/dist/chunks/focusSafely-Di2ArC9L.es.js +0 -27
  832. package/dist/chunks/focusSafely-Di2ArC9L.es.js.map +0 -1
  833. package/dist/chunks/form-field-BHknOPYf.es.js +0 -310
  834. package/dist/chunks/form-field-BHknOPYf.es.js.map +0 -1
  835. package/dist/chunks/form-field-CM_uSyZr.cjs.js +0 -11
  836. package/dist/chunks/form-field-CM_uSyZr.cjs.js.map +0 -1
  837. package/dist/chunks/grid-DcLdIZYK.es.js +0 -14
  838. package/dist/chunks/grid-DcLdIZYK.es.js.map +0 -1
  839. package/dist/chunks/grid-Dm38IozR.cjs.js +0 -2
  840. package/dist/chunks/grid-Dm38IozR.cjs.js.map +0 -1
  841. package/dist/chunks/grid-item-B0PfRhfs.cjs.js +0 -2
  842. package/dist/chunks/grid-item-B0PfRhfs.cjs.js.map +0 -1
  843. package/dist/chunks/grid-item-BZOflk76.es.js +0 -75
  844. package/dist/chunks/grid-item-BZOflk76.es.js.map +0 -1
  845. package/dist/chunks/group-BQeamedA.es.js +0 -14
  846. package/dist/chunks/group-BQeamedA.es.js.map +0 -1
  847. package/dist/chunks/group-BwSwp_8B.cjs.js +0 -2
  848. package/dist/chunks/group-BwSwp_8B.cjs.js.map +0 -1
  849. package/dist/chunks/heading-CEFp09pV.cjs.js +0 -2
  850. package/dist/chunks/heading-CEFp09pV.cjs.js.map +0 -1
  851. package/dist/chunks/heading-DYcfaS5T.es.js +0 -8
  852. package/dist/chunks/heading-DYcfaS5T.es.js.map +0 -1
  853. package/dist/chunks/icon-Cgp53xQ2.es.js +0 -32
  854. package/dist/chunks/icon-Cgp53xQ2.es.js.map +0 -1
  855. package/dist/chunks/icon-DxRnsJFu.cjs.js +0 -2
  856. package/dist/chunks/icon-DxRnsJFu.cjs.js.map +0 -1
  857. package/dist/chunks/icon-button-C2GGAKhI.es.js +0 -14
  858. package/dist/chunks/icon-button-C2GGAKhI.es.js.map +0 -1
  859. package/dist/chunks/icon-button-KMr_sm5y.cjs.js +0 -2
  860. package/dist/chunks/icon-button-KMr_sm5y.cjs.js.map +0 -1
  861. package/dist/chunks/icon-toggle-button-CyhtfTs4.es.js +0 -13
  862. package/dist/chunks/icon-toggle-button-CyhtfTs4.es.js.map +0 -1
  863. package/dist/chunks/icon-toggle-button-p3GT9QUC.cjs.js +0 -2
  864. package/dist/chunks/icon-toggle-button-p3GT9QUC.cjs.js.map +0 -1
  865. package/dist/chunks/image-B_X4IZ54.es.js +0 -8
  866. package/dist/chunks/image-B_X4IZ54.es.js.map +0 -1
  867. package/dist/chunks/image-CenZDDs1.cjs.js +0 -2
  868. package/dist/chunks/image-CenZDDs1.cjs.js.map +0 -1
  869. package/dist/chunks/image-DCZ7u0Yz.cjs.js +0 -2
  870. package/dist/chunks/image-DCZ7u0Yz.cjs.js.map +0 -1
  871. package/dist/chunks/image-Dk3v9f16.es.js +0 -22
  872. package/dist/chunks/image-Dk3v9f16.es.js.map +0 -1
  873. package/dist/chunks/index-CPFuzoME.es.js +0 -3424
  874. package/dist/chunks/index-CPFuzoME.es.js.map +0 -1
  875. package/dist/chunks/index-CcqI-ipN.cjs.js +0 -2
  876. package/dist/chunks/index-CcqI-ipN.cjs.js.map +0 -1
  877. package/dist/chunks/index-DsGIn0AT.es.js +0 -51
  878. package/dist/chunks/index-DsGIn0AT.es.js.map +0 -1
  879. package/dist/chunks/index-XyB4gGC8.cjs.js +0 -4
  880. package/dist/chunks/index-XyB4gGC8.cjs.js.map +0 -1
  881. package/dist/chunks/kbd-CSMHvaH6.cjs.js +0 -2
  882. package/dist/chunks/kbd-CSMHvaH6.cjs.js.map +0 -1
  883. package/dist/chunks/kbd-CUSbYvfc.es.js +0 -16
  884. package/dist/chunks/kbd-CUSbYvfc.es.js.map +0 -1
  885. package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js +0 -2
  886. package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js.map +0 -1
  887. package/dist/chunks/kbd.recipe-BTW0MQqx.es.js +0 -26
  888. package/dist/chunks/kbd.recipe-BTW0MQqx.es.js.map +0 -1
  889. package/dist/chunks/link-B2cOAxZz.cjs.js +0 -2
  890. package/dist/chunks/link-B2cOAxZz.cjs.js.map +0 -1
  891. package/dist/chunks/link-DteZUB4U.es.js +0 -50
  892. package/dist/chunks/link-DteZUB4U.es.js.map +0 -1
  893. package/dist/chunks/link.recipe-BRnFQ5bP.es.js +0 -51
  894. package/dist/chunks/link.recipe-BRnFQ5bP.es.js.map +0 -1
  895. package/dist/chunks/link.recipe-BfCxtKjL.cjs.js +0 -2
  896. package/dist/chunks/link.recipe-BfCxtKjL.cjs.js.map +0 -1
  897. package/dist/chunks/list-Bm8bFcHO.cjs.js +0 -2
  898. package/dist/chunks/list-Bm8bFcHO.cjs.js.map +0 -1
  899. package/dist/chunks/list-De4DYOvu.es.js +0 -23
  900. package/dist/chunks/list-De4DYOvu.es.js.map +0 -1
  901. package/dist/chunks/loading-spinner-BMtvjIcS.es.js +0 -119
  902. package/dist/chunks/loading-spinner-BMtvjIcS.es.js.map +0 -1
  903. package/dist/chunks/loading-spinner-Cap3elI4.cjs.js +0 -2
  904. package/dist/chunks/loading-spinner-Cap3elI4.cjs.js.map +0 -1
  905. package/dist/chunks/make-element-focusable-_FWEyVtG.es.js +0 -22
  906. package/dist/chunks/make-element-focusable-_FWEyVtG.es.js.map +0 -1
  907. package/dist/chunks/make-element-focusable-fn-8kTQK.cjs.js +0 -2
  908. package/dist/chunks/make-element-focusable-fn-8kTQK.cjs.js.map +0 -1
  909. package/dist/chunks/multiline-text-input-CaGDNakb.es.js +0 -120
  910. package/dist/chunks/multiline-text-input-CaGDNakb.es.js.map +0 -1
  911. package/dist/chunks/multiline-text-input-ChVzVZob.cjs.js +0 -12
  912. package/dist/chunks/multiline-text-input-ChVzVZob.cjs.js.map +0 -1
  913. package/dist/chunks/namespace-BayyiBSr.es.js +0 -74
  914. package/dist/chunks/namespace-BayyiBSr.es.js.map +0 -1
  915. package/dist/chunks/namespace-E8aHFVxM.cjs.js +0 -2
  916. package/dist/chunks/namespace-E8aHFVxM.cjs.js.map +0 -1
  917. package/dist/chunks/nimbus-provider-DCCIMVE_.cjs.js +0 -2
  918. package/dist/chunks/nimbus-provider-DCCIMVE_.cjs.js.map +0 -1
  919. package/dist/chunks/nimbus-provider-Dlt9_yol.es.js +0 -101
  920. package/dist/chunks/nimbus-provider-Dlt9_yol.es.js.map +0 -1
  921. package/dist/chunks/number-input-BHHKhYR7.es.js +0 -669
  922. package/dist/chunks/number-input-BHHKhYR7.es.js.map +0 -1
  923. package/dist/chunks/number-input-DFFxFKrR.cjs.js +0 -2
  924. package/dist/chunks/number-input-DFFxFKrR.cjs.js.map +0 -1
  925. package/dist/chunks/password-input-DVcMdFAI.cjs.js +0 -2
  926. package/dist/chunks/password-input-DVcMdFAI.cjs.js.map +0 -1
  927. package/dist/chunks/password-input-DbMYteEW.es.js +0 -65
  928. package/dist/chunks/password-input-DbMYteEW.es.js.map +0 -1
  929. package/dist/chunks/progress-bar-BsWBRJc2.cjs.js +0 -2
  930. package/dist/chunks/progress-bar-BsWBRJc2.cjs.js.map +0 -1
  931. package/dist/chunks/progress-bar-C3sqvC_T.es.js +0 -77
  932. package/dist/chunks/progress-bar-C3sqvC_T.es.js.map +0 -1
  933. package/dist/chunks/provider-BzZZw3fF.cjs.js +0 -16
  934. package/dist/chunks/provider-BzZZw3fF.cjs.js.map +0 -1
  935. package/dist/chunks/provider-DxFdjgyb.es.js +0 -989
  936. package/dist/chunks/provider-DxFdjgyb.es.js.map +0 -1
  937. package/dist/chunks/radio-input-CFNznM66.es.js +0 -341
  938. package/dist/chunks/radio-input-CFNznM66.es.js.map +0 -1
  939. package/dist/chunks/radio-input-D3ePwO1n.cjs.js +0 -2
  940. package/dist/chunks/radio-input-D3ePwO1n.cjs.js.map +0 -1
  941. package/dist/chunks/range-calendar-Bk_im2QK.cjs.js +0 -2
  942. package/dist/chunks/range-calendar-Bk_im2QK.cjs.js.map +0 -1
  943. package/dist/chunks/range-calendar-C5pDvIuq.es.js +0 -187
  944. package/dist/chunks/range-calendar-C5pDvIuq.es.js.map +0 -1
  945. package/dist/chunks/select-BZGHsJAO.es.js +0 -571
  946. package/dist/chunks/select-BZGHsJAO.es.js.map +0 -1
  947. package/dist/chunks/select-DCQjhFbh.cjs.js +0 -2
  948. package/dist/chunks/select-DCQjhFbh.cjs.js.map +0 -1
  949. package/dist/chunks/simple-grid-1F5YBj03.es.js +0 -38
  950. package/dist/chunks/simple-grid-1F5YBj03.es.js.map +0 -1
  951. package/dist/chunks/simple-grid-BfDDcTNA.cjs.js +0 -2
  952. package/dist/chunks/simple-grid-BfDDcTNA.cjs.js.map +0 -1
  953. package/dist/chunks/split-button-CIHXMvxD.cjs.js +0 -2
  954. package/dist/chunks/split-button-CIHXMvxD.cjs.js.map +0 -1
  955. package/dist/chunks/split-button-DJoqZPXX.es.js +0 -262
  956. package/dist/chunks/split-button-DJoqZPXX.es.js.map +0 -1
  957. package/dist/chunks/stack-B2xQMEdj.cjs.js +0 -2
  958. package/dist/chunks/stack-B2xQMEdj.cjs.js.map +0 -1
  959. package/dist/chunks/stack-DosdbBli.es.js +0 -89
  960. package/dist/chunks/stack-DosdbBli.es.js.map +0 -1
  961. package/dist/chunks/switch-C3AG1gUR.cjs.js +0 -2
  962. package/dist/chunks/switch-C3AG1gUR.cjs.js.map +0 -1
  963. package/dist/chunks/switch-DEKbPCQG.es.js +0 -79
  964. package/dist/chunks/switch-DEKbPCQG.es.js.map +0 -1
  965. package/dist/chunks/tag-group-4kwJie4V.es.js +0 -768
  966. package/dist/chunks/tag-group-4kwJie4V.es.js.map +0 -1
  967. package/dist/chunks/tag-group-BYQkpbiY.cjs.js +0 -2
  968. package/dist/chunks/tag-group-BYQkpbiY.cjs.js.map +0 -1
  969. package/dist/chunks/text-DNjTZCtR.cjs.js +0 -2
  970. package/dist/chunks/text-DNjTZCtR.cjs.js.map +0 -1
  971. package/dist/chunks/text-QANNJ4E4.es.js +0 -26
  972. package/dist/chunks/text-QANNJ4E4.es.js.map +0 -1
  973. package/dist/chunks/text-input-COPlnTZU.es.js +0 -19
  974. package/dist/chunks/text-input-COPlnTZU.es.js.map +0 -1
  975. package/dist/chunks/text-input-DnS2RVDs.cjs.js +0 -2
  976. package/dist/chunks/text-input-DnS2RVDs.cjs.js.map +0 -1
  977. package/dist/chunks/time-input-BWkx15sb.cjs.js +0 -2
  978. package/dist/chunks/time-input-BWkx15sb.cjs.js.map +0 -1
  979. package/dist/chunks/time-input-DXMs43_R.es.js +0 -132
  980. package/dist/chunks/time-input-DXMs43_R.es.js.map +0 -1
  981. package/dist/chunks/toggle-button-BEvOqB5n.es.js +0 -30
  982. package/dist/chunks/toggle-button-BEvOqB5n.es.js.map +0 -1
  983. package/dist/chunks/toggle-button-PE5251Fm.cjs.js +0 -2
  984. package/dist/chunks/toggle-button-PE5251Fm.cjs.js.map +0 -1
  985. package/dist/chunks/toggle-button-group-B2G_b7h8.cjs.js +0 -2
  986. package/dist/chunks/toggle-button-group-B2G_b7h8.cjs.js.map +0 -1
  987. package/dist/chunks/toggle-button-group-CXrwjOF0.es.js +0 -82
  988. package/dist/chunks/toggle-button-group-CXrwjOF0.es.js.map +0 -1
  989. package/dist/chunks/toolbar-BJrobBzi.es.js +0 -59
  990. package/dist/chunks/toolbar-BJrobBzi.es.js.map +0 -1
  991. package/dist/chunks/toolbar-BxIQI626.cjs.js +0 -2
  992. package/dist/chunks/toolbar-BxIQI626.cjs.js.map +0 -1
  993. package/dist/chunks/tooltip-Ya7L6lQR.es.js +0 -274
  994. package/dist/chunks/tooltip-Ya7L6lQR.es.js.map +0 -1
  995. package/dist/chunks/tooltip-fOhxG4pp.cjs.js +0 -2
  996. package/dist/chunks/tooltip-fOhxG4pp.cjs.js.map +0 -1
  997. package/dist/chunks/tooltip.recipe-DsVUEki2.es.js +0 -24
  998. package/dist/chunks/tooltip.recipe-DsVUEki2.es.js.map +0 -1
  999. package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js +0 -2
  1000. package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js.map +0 -1
  1001. package/dist/chunks/use-recipe-BZ_iqCkN.cjs.js +0 -2
  1002. package/dist/chunks/use-recipe-BZ_iqCkN.cjs.js.map +0 -1
  1003. package/dist/chunks/use-recipe-CR4W7Dne.es.js +0 -13
  1004. package/dist/chunks/use-recipe-CR4W7Dne.es.js.map +0 -1
  1005. package/dist/chunks/useButton-Cgkz8UEs.es.js +0 -56
  1006. package/dist/chunks/useButton-Cgkz8UEs.es.js.map +0 -1
  1007. package/dist/chunks/useButton-D3BedLtL.cjs.js +0 -2
  1008. package/dist/chunks/useButton-D3BedLtL.cjs.js.map +0 -1
  1009. package/dist/chunks/useCollator-BvjDbml1.es.js +0 -12
  1010. package/dist/chunks/useCollator-BvjDbml1.es.js.map +0 -1
  1011. package/dist/chunks/useCollator-ZqnkTllN.cjs.js +0 -2
  1012. package/dist/chunks/useCollator-ZqnkTllN.cjs.js.map +0 -1
  1013. package/dist/chunks/useDateFormatter-D9HBAX1w.es.js +0 -1601
  1014. package/dist/chunks/useDateFormatter-D9HBAX1w.es.js.map +0 -1
  1015. package/dist/chunks/useDateFormatter-G9oGkNG5.cjs.js +0 -2
  1016. package/dist/chunks/useDateFormatter-G9oGkNG5.cjs.js.map +0 -1
  1017. package/dist/chunks/useFilter-Bh0adxQ-.es.js +0 -36
  1018. package/dist/chunks/useFilter-Bh0adxQ-.es.js.map +0 -1
  1019. package/dist/chunks/useFilter-Du48WXDn.cjs.js +0 -2
  1020. package/dist/chunks/useFilter-Du48WXDn.cjs.js.map +0 -1
  1021. package/dist/chunks/useFocus-BcBbbuWU.cjs.js +0 -2
  1022. package/dist/chunks/useFocus-BcBbbuWU.cjs.js.map +0 -1
  1023. package/dist/chunks/useFocus-CeI1jbl8.es.js +0 -29
  1024. package/dist/chunks/useFocus-CeI1jbl8.es.js.map +0 -1
  1025. package/dist/chunks/useFocusRing-D8cwV0EM.es.js +0 -35
  1026. package/dist/chunks/useFocusRing-D8cwV0EM.es.js.map +0 -1
  1027. package/dist/chunks/useFocusRing-DRIoF592.cjs.js +0 -2
  1028. package/dist/chunks/useFocusRing-DRIoF592.cjs.js.map +0 -1
  1029. package/dist/chunks/useFocusVisible-C5ivHvqm.es.js +0 -111
  1030. package/dist/chunks/useFocusVisible-C5ivHvqm.es.js.map +0 -1
  1031. package/dist/chunks/useFocusVisible-bRnVksaU.cjs.js +0 -2
  1032. package/dist/chunks/useFocusVisible-bRnVksaU.cjs.js.map +0 -1
  1033. package/dist/chunks/useFocusWithin-i-cVKYQ8.cjs.js +0 -2
  1034. package/dist/chunks/useFocusWithin-i-cVKYQ8.cjs.js.map +0 -1
  1035. package/dist/chunks/useFocusWithin-yfiHuOEs.es.js +0 -56
  1036. package/dist/chunks/useFocusWithin-yfiHuOEs.es.js.map +0 -1
  1037. package/dist/chunks/useFocusable-BghVNiQU.es.js +0 -77
  1038. package/dist/chunks/useFocusable-BghVNiQU.es.js.map +0 -1
  1039. package/dist/chunks/useFocusable-avM9w6OE.cjs.js +0 -2
  1040. package/dist/chunks/useFocusable-avM9w6OE.cjs.js.map +0 -1
  1041. package/dist/chunks/useFormValidation-DJMNbIhx.es.js +0 -202
  1042. package/dist/chunks/useFormValidation-DJMNbIhx.es.js.map +0 -1
  1043. package/dist/chunks/useFormValidation-DJy_cdgv.cjs.js +0 -2
  1044. package/dist/chunks/useFormValidation-DJy_cdgv.cjs.js.map +0 -1
  1045. package/dist/chunks/useHighlightSelectionDescription-DAR8wV79.es.js +0 -598
  1046. package/dist/chunks/useHighlightSelectionDescription-DAR8wV79.es.js.map +0 -1
  1047. package/dist/chunks/useHighlightSelectionDescription-DPwy1mkw.cjs.js +0 -2
  1048. package/dist/chunks/useHighlightSelectionDescription-DPwy1mkw.cjs.js.map +0 -1
  1049. package/dist/chunks/useHover-BlZx5CU2.cjs.js +0 -2
  1050. package/dist/chunks/useHover-BlZx5CU2.cjs.js.map +0 -1
  1051. package/dist/chunks/useHover-cJOf02TT.es.js +0 -86
  1052. package/dist/chunks/useHover-cJOf02TT.es.js.map +0 -1
  1053. package/dist/chunks/useLocalizedStringFormatter-CvzOUusg.es.js +0 -97
  1054. package/dist/chunks/useLocalizedStringFormatter-CvzOUusg.es.js.map +0 -1
  1055. package/dist/chunks/useLocalizedStringFormatter-fJnbqb2x.cjs.js +0 -2
  1056. package/dist/chunks/useLocalizedStringFormatter-fJnbqb2x.cjs.js.map +0 -1
  1057. package/dist/chunks/usePress-BquTSwUd.es.js +0 -456
  1058. package/dist/chunks/usePress-BquTSwUd.es.js.map +0 -1
  1059. package/dist/chunks/usePress-D8F1U6qk.cjs.js +0 -8
  1060. package/dist/chunks/usePress-D8F1U6qk.cjs.js.map +0 -1
  1061. package/dist/chunks/useProgressBar-8ZyM2_T3.cjs.js +0 -2
  1062. package/dist/chunks/useProgressBar-8ZyM2_T3.cjs.js.map +0 -1
  1063. package/dist/chunks/useProgressBar-BgURyN6q.es.js +0 -48
  1064. package/dist/chunks/useProgressBar-BgURyN6q.es.js.map +0 -1
  1065. package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js +0 -2
  1066. package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js.map +0 -1
  1067. package/dist/chunks/useResizeObserver-FIPBIG5S.es.js +0 -32
  1068. package/dist/chunks/useResizeObserver-FIPBIG5S.es.js.map +0 -1
  1069. package/dist/chunks/useSingleSelectListState-BpAVpRdZ.cjs.js +0 -2
  1070. package/dist/chunks/useSingleSelectListState-BpAVpRdZ.cjs.js.map +0 -1
  1071. package/dist/chunks/useSingleSelectListState-CiK-JkEX.es.js +0 -35
  1072. package/dist/chunks/useSingleSelectListState-CiK-JkEX.es.js.map +0 -1
  1073. package/dist/chunks/useSpinButton-C-tpK-T9.es.js +0 -433
  1074. package/dist/chunks/useSpinButton-C-tpK-T9.es.js.map +0 -1
  1075. package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js +0 -2
  1076. package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js.map +0 -1
  1077. package/dist/chunks/useTextField-Cv1jQqUp.cjs.js +0 -2
  1078. package/dist/chunks/useTextField-Cv1jQqUp.cjs.js.map +0 -1
  1079. package/dist/chunks/useTextField-Doh-sQHP.es.js +0 -91
  1080. package/dist/chunks/useTextField-Doh-sQHP.es.js.map +0 -1
  1081. package/dist/chunks/useToggle-BK36AEko.cjs.js +0 -2
  1082. package/dist/chunks/useToggle-BK36AEko.cjs.js.map +0 -1
  1083. package/dist/chunks/useToggle-DcdigPKG.es.js +0 -62
  1084. package/dist/chunks/useToggle-DcdigPKG.es.js.map +0 -1
  1085. package/dist/chunks/useToolbar-CYJ2PbtO.es.js +0 -55
  1086. package/dist/chunks/useToolbar-CYJ2PbtO.es.js.map +0 -1
  1087. package/dist/chunks/useToolbar-D3B8DvbF.cjs.js +0 -2
  1088. package/dist/chunks/useToolbar-D3B8DvbF.cjs.js.map +0 -1
  1089. package/dist/chunks/utils-BHVnNfaH.cjs.js +0 -2
  1090. package/dist/chunks/utils-BHVnNfaH.cjs.js.map +0 -1
  1091. package/dist/chunks/utils-Gg3iiYhl.es.js +0 -188
  1092. package/dist/chunks/utils-Gg3iiYhl.es.js.map +0 -1
  1093. package/dist/chunks/visually-hidden-Uhh-2Y-q.cjs.js +0 -2
  1094. package/dist/chunks/visually-hidden-Uhh-2Y-q.cjs.js.map +0 -1
  1095. package/dist/chunks/visually-hidden-vh07nrZa.es.js +0 -11
  1096. package/dist/chunks/visually-hidden-vh07nrZa.es.js.map +0 -1
  1097. package/dist/chunks/walk-object-CvcTxMj1.es.js +0 -27
  1098. package/dist/chunks/walk-object-CvcTxMj1.es.js.map +0 -1
  1099. package/dist/chunks/walk-object-vr3sAS3_.cjs.js +0 -2
  1100. package/dist/chunks/walk-object-vr3sAS3_.cjs.js.map +0 -1
  1101. package/i18n/compiled-data/core.json +0 -146
  1102. package/i18n/compiled-data/de.json +0 -146
  1103. package/i18n/compiled-data/en.json +0 -146
  1104. package/i18n/compiled-data/fr-FR.json +0 -146
  1105. package/i18n/compiled-data/pt-BR.json +0 -146
@@ -1,1896 +0,0 @@
1
- import S, { useRef as k, useEffect as Y, useMemo as B, cloneElement as He, forwardRef as qe, useContext as H, createContext as G, useCallback as X, useState as ie, isValidElement as st } from "react";
2
- import { a as We, d as Ge } from "./utils-Gg3iiYhl.es.js";
3
- import { c as ge, $ as Z, a as _e, d as we, e as ot } from "./mergeProps-B_9syxhT.es.js";
4
- import { $ as me } from "./focusWithoutScrolling-CDw3JYiq.es.js";
5
- import { $ as je, d as ut } from "./openLink-Ctl0AdAy.es.js";
6
- import { $ as ee } from "./useEvent-YHhqZvpU.es.js";
7
- import { a as at, b as ct, c as De, d as ke } from "./scrollIntoView-BYF_8_6g.es.js";
8
- import { b as dt } from "./FocusScope-C1Aw7j9H.es.js";
9
- import { b as Ee } from "./useFocusVisible-C5ivHvqm.es.js";
10
- import { $ as be } from "./focusSafely-Di2ArC9L.es.js";
11
- import { flushSync as ft, createPortal as ht } from "react-dom";
12
- import { $ as yt } from "./context-Pt-0ojuK.es.js";
13
- import { b as pt, g as vt } from "./platform-Z5fvtFmM.es.js";
14
- import { $ as Ye } from "./usePress-BquTSwUd.es.js";
15
- import { $ as gt } from "./useGlobalListeners-BOOfV5Wh.es.js";
16
- import { a as mt } from "./Hidden-j3Lbt7xL.es.js";
17
- import { b as Ie } from "./useFocusable-BghVNiQU.es.js";
18
- import { $ as Xe } from "./SSRProvider-Cu8KibIK.es.js";
19
- import { $ as bt } from "./useControlledState-u436Wbp1.es.js";
20
- function Pe(r, e) {
21
- const t = k(!0), i = k(null);
22
- ge(() => (t.current = !0, () => {
23
- t.current = !1;
24
- }), []), ge(() => {
25
- t.current ? t.current = !1 : (!i.current || e.some((l, n) => !Object.is(l, i[n]))) && r(), i.current = e;
26
- }, e);
27
- }
28
- const St = "react-aria-clear-focus", Kt = "react-aria-focus";
29
- function q(r) {
30
- return pt() ? r.metaKey : r.ctrlKey;
31
- }
32
- const $t = 500;
33
- function xt(r) {
34
- let { isDisabled: e, onLongPressStart: t, onLongPressEnd: i, onLongPress: l, threshold: n = $t, accessibilityDescription: s } = r;
35
- const c = k(void 0);
36
- let { addGlobalListener: u, removeGlobalListener: v } = gt(), { pressProps: $ } = Ye({
37
- isDisabled: e,
38
- onPressStart(f) {
39
- if (f.continuePropagation(), (f.pointerType === "mouse" || f.pointerType === "touch") && (t && t({
40
- ...f,
41
- type: "longpressstart"
42
- }), c.current = setTimeout(() => {
43
- f.target.dispatchEvent(new PointerEvent("pointercancel", {
44
- bubbles: !0
45
- })), We(f.target).activeElement !== f.target && me(f.target), l && l({
46
- ...f,
47
- type: "longpress"
48
- }), c.current = void 0;
49
- }, n), f.pointerType === "touch")) {
50
- let h = (p) => {
51
- p.preventDefault();
52
- };
53
- u(f.target, "contextmenu", h, {
54
- once: !0
55
- }), u(window, "pointerup", () => {
56
- setTimeout(() => {
57
- v(f.target, "contextmenu", h);
58
- }, 30);
59
- }, {
60
- once: !0
61
- });
62
- }
63
- },
64
- onPressEnd(f) {
65
- c.current && clearTimeout(c.current), i && (f.pointerType === "mouse" || f.pointerType === "touch") && i({
66
- ...f,
67
- type: "longpressend"
68
- });
69
- }
70
- }), d = at(l && !e ? s : void 0);
71
- return {
72
- longPressProps: Z($, d)
73
- };
74
- }
75
- function Ze(r) {
76
- let e = wt(We(r));
77
- e !== r && (e && Ct(e, r), r && Je(r, e));
78
- }
79
- function Ct(r, e) {
80
- r.dispatchEvent(new FocusEvent("blur", {
81
- relatedTarget: e
82
- })), r.dispatchEvent(new FocusEvent("focusout", {
83
- bubbles: !0,
84
- relatedTarget: e
85
- }));
86
- }
87
- function Je(r, e) {
88
- r.dispatchEvent(new FocusEvent("focus", {
89
- relatedTarget: e
90
- })), r.dispatchEvent(new FocusEvent("focusin", {
91
- bubbles: !0,
92
- relatedTarget: e
93
- }));
94
- }
95
- function wt(r) {
96
- let e = Ge(r), t = e?.getAttribute("aria-activedescendant");
97
- return t && r.getElementById(t) || e;
98
- }
99
- function Se(r) {
100
- return vt() ? r.altKey : r.ctrlKey;
101
- }
102
- function le(r, e) {
103
- var t, i;
104
- let l = `[data-key="${CSS.escape(String(e))}"]`, n = (t = r.current) === null || t === void 0 ? void 0 : t.dataset.collection;
105
- return n && (l = `[data-collection="${CSS.escape(n)}"]${l}`), (i = r.current) === null || i === void 0 ? void 0 : i.querySelector(l);
106
- }
107
- const Qe = /* @__PURE__ */ new WeakMap();
108
- function Dt(r) {
109
- let e = _e();
110
- return Qe.set(r, e), e;
111
- }
112
- function kt(r) {
113
- return Qe.get(r);
114
- }
115
- const Et = 1e3;
116
- function It(r) {
117
- let { keyboardDelegate: e, selectionManager: t, onTypeSelect: i } = r, l = k({
118
- search: "",
119
- timeout: void 0
120
- }).current, n = (s) => {
121
- let c = Pt(s.key);
122
- if (!(!c || s.ctrlKey || s.metaKey || !s.currentTarget.contains(s.target) || l.search.length === 0 && c === " ")) {
123
- if (c === " " && l.search.trim().length > 0 && (s.preventDefault(), "continuePropagation" in s || s.stopPropagation()), l.search += c, e.getKeyForSearch != null) {
124
- let u = e.getKeyForSearch(l.search, t.focusedKey);
125
- u == null && (u = e.getKeyForSearch(l.search)), u != null && (t.setFocusedKey(u), i && i(u));
126
- }
127
- clearTimeout(l.timeout), l.timeout = setTimeout(() => {
128
- l.search = "";
129
- }, Et);
130
- }
131
- };
132
- return {
133
- typeSelectProps: {
134
- // Using a capturing listener to catch the keydown event before
135
- // other hooks in order to handle the Spacebar event.
136
- onKeyDownCapture: e.getKeyForSearch ? n : void 0
137
- }
138
- };
139
- }
140
- function Pt(r) {
141
- return r.length === 1 || !/^[A-Z]/i.test(r) ? r : "";
142
- }
143
- function yi(r) {
144
- let { selectionManager: e, keyboardDelegate: t, ref: i, autoFocus: l = !1, shouldFocusWrap: n = !1, disallowEmptySelection: s = !1, disallowSelectAll: c = !1, escapeKeyBehavior: u = "clearSelection", selectOnFocus: v = e.selectionBehavior === "replace", disallowTypeAhead: $ = !1, shouldUseVirtualFocus: d, allowsTabNavigation: f = !1, isVirtualized: h, scrollRef: p = i, linkBehavior: K = "action" } = r, { direction: g } = yt(), m = je(), C = (a) => {
145
- var b;
146
- if (a.altKey && a.key === "Tab" && a.preventDefault(), !(!((b = i.current) === null || b === void 0) && b.contains(a.target))) return;
147
- const o = (y, z) => {
148
- if (y != null) {
149
- if (e.isLink(y) && K === "selection" && v && !Se(a)) {
150
- ft(() => {
151
- e.setFocusedKey(y, z);
152
- });
153
- let U = le(i, y), Ce = e.getItemProps(y);
154
- U && m.open(U, a, Ce.href, Ce.routerOptions);
155
- return;
156
- }
157
- if (e.setFocusedKey(y, z), e.isLink(y) && K === "override") return;
158
- a.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(y) : v && !Se(a) && e.replaceSelection(y);
159
- }
160
- };
161
- switch (a.key) {
162
- case "ArrowDown":
163
- if (t.getKeyBelow) {
164
- var w, F, P;
165
- let y = e.focusedKey != null ? (w = t.getKeyBelow) === null || w === void 0 ? void 0 : w.call(t, e.focusedKey) : (F = t.getFirstKey) === null || F === void 0 ? void 0 : F.call(t);
166
- y == null && n && (y = (P = t.getFirstKey) === null || P === void 0 ? void 0 : P.call(t, e.focusedKey)), y != null && (a.preventDefault(), o(y));
167
- }
168
- break;
169
- case "ArrowUp":
170
- if (t.getKeyAbove) {
171
- var L, N, se;
172
- let y = e.focusedKey != null ? (L = t.getKeyAbove) === null || L === void 0 ? void 0 : L.call(t, e.focusedKey) : (N = t.getLastKey) === null || N === void 0 ? void 0 : N.call(t);
173
- y == null && n && (y = (se = t.getLastKey) === null || se === void 0 ? void 0 : se.call(t, e.focusedKey)), y != null && (a.preventDefault(), o(y));
174
- }
175
- break;
176
- case "ArrowLeft":
177
- if (t.getKeyLeftOf) {
178
- var oe, ue, ae;
179
- let y = e.focusedKey != null ? (oe = t.getKeyLeftOf) === null || oe === void 0 ? void 0 : oe.call(t, e.focusedKey) : null;
180
- y == null && n && (y = g === "rtl" ? (ue = t.getFirstKey) === null || ue === void 0 ? void 0 : ue.call(t, e.focusedKey) : (ae = t.getLastKey) === null || ae === void 0 ? void 0 : ae.call(t, e.focusedKey)), y != null && (a.preventDefault(), o(y, g === "rtl" ? "first" : "last"));
181
- }
182
- break;
183
- case "ArrowRight":
184
- if (t.getKeyRightOf) {
185
- var ce, de, fe;
186
- let y = e.focusedKey != null ? (ce = t.getKeyRightOf) === null || ce === void 0 ? void 0 : ce.call(t, e.focusedKey) : null;
187
- y == null && n && (y = g === "rtl" ? (de = t.getLastKey) === null || de === void 0 ? void 0 : de.call(t, e.focusedKey) : (fe = t.getFirstKey) === null || fe === void 0 ? void 0 : fe.call(t, e.focusedKey)), y != null && (a.preventDefault(), o(y, g === "rtl" ? "last" : "first"));
188
- }
189
- break;
190
- case "Home":
191
- if (t.getFirstKey) {
192
- if (e.focusedKey === null && a.shiftKey) return;
193
- a.preventDefault();
194
- let y = t.getFirstKey(e.focusedKey, q(a));
195
- e.setFocusedKey(y), y != null && (q(a) && a.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(y) : v && e.replaceSelection(y));
196
- }
197
- break;
198
- case "End":
199
- if (t.getLastKey) {
200
- if (e.focusedKey === null && a.shiftKey) return;
201
- a.preventDefault();
202
- let y = t.getLastKey(e.focusedKey, q(a));
203
- e.setFocusedKey(y), y != null && (q(a) && a.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(y) : v && e.replaceSelection(y));
204
- }
205
- break;
206
- case "PageDown":
207
- if (t.getKeyPageBelow && e.focusedKey != null) {
208
- let y = t.getKeyPageBelow(e.focusedKey);
209
- y != null && (a.preventDefault(), o(y));
210
- }
211
- break;
212
- case "PageUp":
213
- if (t.getKeyPageAbove && e.focusedKey != null) {
214
- let y = t.getKeyPageAbove(e.focusedKey);
215
- y != null && (a.preventDefault(), o(y));
216
- }
217
- break;
218
- case "a":
219
- q(a) && e.selectionMode === "multiple" && c !== !0 && (a.preventDefault(), e.selectAll());
220
- break;
221
- case "Escape":
222
- u === "clearSelection" && !s && e.selectedKeys.size !== 0 && (a.stopPropagation(), a.preventDefault(), e.clearSelection());
223
- break;
224
- case "Tab":
225
- if (!f) {
226
- if (a.shiftKey) i.current.focus();
227
- else {
228
- let y = dt(i.current, {
229
- tabbable: !0
230
- }), z, U;
231
- do
232
- U = y.lastChild(), U && (z = U);
233
- while (U);
234
- z && !z.contains(document.activeElement) && me(z);
235
- }
236
- break;
237
- }
238
- }
239
- }, x = k({
240
- top: 0,
241
- left: 0
242
- });
243
- ee(p, "scroll", h ? void 0 : () => {
244
- var a, b, o, w;
245
- x.current = {
246
- top: (o = (a = p.current) === null || a === void 0 ? void 0 : a.scrollTop) !== null && o !== void 0 ? o : 0,
247
- left: (w = (b = p.current) === null || b === void 0 ? void 0 : b.scrollLeft) !== null && w !== void 0 ? w : 0
248
- };
249
- });
250
- let E = (a) => {
251
- if (e.isFocused) {
252
- a.currentTarget.contains(a.target) || e.setFocused(!1);
253
- return;
254
- }
255
- if (a.currentTarget.contains(a.target)) {
256
- if (e.setFocused(!0), e.focusedKey == null) {
257
- var b, o;
258
- let P = (N) => {
259
- N != null && (e.setFocusedKey(N), v && !e.isSelected(N) && e.replaceSelection(N));
260
- }, L = a.relatedTarget;
261
- var w, F;
262
- L && a.currentTarget.compareDocumentPosition(L) & Node.DOCUMENT_POSITION_FOLLOWING ? P((w = e.lastSelectedKey) !== null && w !== void 0 ? w : (b = t.getLastKey) === null || b === void 0 ? void 0 : b.call(t)) : P((F = e.firstSelectedKey) !== null && F !== void 0 ? F : (o = t.getFirstKey) === null || o === void 0 ? void 0 : o.call(t));
263
- } else !h && p.current && (p.current.scrollTop = x.current.top, p.current.scrollLeft = x.current.left);
264
- if (e.focusedKey != null && p.current) {
265
- let P = le(i, e.focusedKey);
266
- P instanceof HTMLElement && (!P.contains(document.activeElement) && !d && me(P), Ee() === "keyboard" && De(P, {
267
- containingElement: i.current
268
- }));
269
- }
270
- }
271
- }, M = (a) => {
272
- a.currentTarget.contains(a.relatedTarget) || e.setFocused(!1);
273
- }, A = k(!1);
274
- ee(i, Kt, d ? (a) => {
275
- let { detail: b } = a;
276
- a.stopPropagation(), e.setFocused(!0), b?.focusStrategy === "first" && (A.current = !0);
277
- } : void 0);
278
- let T = we(() => {
279
- var a, b;
280
- let o = (b = (a = t.getFirstKey) === null || a === void 0 ? void 0 : a.call(t)) !== null && b !== void 0 ? b : null;
281
- if (o == null) {
282
- let w = Ge();
283
- Ze(i.current), Je(w, null), e.collection.size > 0 && (A.current = !1);
284
- } else
285
- e.setFocusedKey(o), A.current = !1;
286
- });
287
- Pe(() => {
288
- A.current && T();
289
- }, [
290
- e.collection,
291
- T
292
- ]);
293
- let I = we(() => {
294
- e.collection.size > 0 && (A.current = !1);
295
- });
296
- Pe(() => {
297
- I();
298
- }, [
299
- e.focusedKey,
300
- I
301
- ]), ee(i, St, d ? (a) => {
302
- var b;
303
- a.stopPropagation(), e.setFocused(!1), !((b = a.detail) === null || b === void 0) && b.clearFocusKey && e.setFocusedKey(null);
304
- } : void 0);
305
- const _ = k(l), O = k(!1);
306
- Y(() => {
307
- if (_.current) {
308
- var a, b;
309
- let F = null;
310
- var o;
311
- l === "first" && (F = (o = (a = t.getFirstKey) === null || a === void 0 ? void 0 : a.call(t)) !== null && o !== void 0 ? o : null);
312
- var w;
313
- l === "last" && (F = (w = (b = t.getLastKey) === null || b === void 0 ? void 0 : b.call(t)) !== null && w !== void 0 ? w : null);
314
- let P = e.selectedKeys;
315
- if (P.size) {
316
- for (let L of P) if (e.canSelectItem(L)) {
317
- F = L;
318
- break;
319
- }
320
- }
321
- e.setFocused(!0), e.setFocusedKey(F), F == null && !d && i.current && be(i.current), e.collection.size > 0 && (_.current = !1, O.current = !0);
322
- }
323
- });
324
- let V = k(e.focusedKey), D = k(null);
325
- Y(() => {
326
- if (e.isFocused && e.focusedKey != null && (e.focusedKey !== V.current || O.current) && p.current && i.current) {
327
- let a = Ee(), b = le(i, e.focusedKey);
328
- if (!(b instanceof HTMLElement))
329
- return;
330
- (a === "keyboard" || O.current) && (D.current && cancelAnimationFrame(D.current), D.current = requestAnimationFrame(() => {
331
- p.current && (ct(p.current, b), a !== "virtual" && De(b, {
332
- containingElement: i.current
333
- }));
334
- }));
335
- }
336
- !d && e.isFocused && e.focusedKey == null && V.current != null && i.current && be(i.current), V.current = e.focusedKey, O.current = !1;
337
- }), Y(() => () => {
338
- D.current && cancelAnimationFrame(D.current);
339
- }, []), ee(i, "react-aria-focus-scope-restore", (a) => {
340
- a.preventDefault(), e.setFocused(!0);
341
- });
342
- let j = {
343
- onKeyDown: C,
344
- onFocus: E,
345
- onBlur: M,
346
- onMouseDown(a) {
347
- p.current === a.target && a.preventDefault();
348
- }
349
- }, { typeSelectProps: ne } = It({
350
- keyboardDelegate: t,
351
- selectionManager: e
352
- });
353
- $ || (j = Z(ne, j));
354
- let Q;
355
- d || (Q = e.focusedKey == null ? 0 : -1);
356
- let re = Dt(e.collection);
357
- return {
358
- collectionProps: Z(j, {
359
- tabIndex: Q,
360
- "data-collection": re
361
- })
362
- };
363
- }
364
- function pi(r) {
365
- let { id: e, selectionManager: t, key: i, ref: l, shouldSelectOnPressUp: n, shouldUseVirtualFocus: s, focus: c, isDisabled: u, onAction: v, allowsDifferentPressOrigin: $, linkBehavior: d = "action" } = r, f = je();
366
- e = _e(e);
367
- let h = (o) => {
368
- if (o.pointerType === "keyboard" && Se(o)) t.toggleSelection(i);
369
- else {
370
- if (t.selectionMode === "none") return;
371
- if (t.isLink(i)) {
372
- if (d === "selection" && l.current) {
373
- let w = t.getItemProps(i);
374
- f.open(l.current, o, w.href, w.routerOptions), t.setSelectedKeys(t.selectedKeys);
375
- return;
376
- } else if (d === "override" || d === "none") return;
377
- }
378
- t.selectionMode === "single" ? t.isSelected(i) && !t.disallowEmptySelection ? t.toggleSelection(i) : t.replaceSelection(i) : o && o.shiftKey ? t.extendSelection(i) : t.selectionBehavior === "toggle" || o && (q(o) || o.pointerType === "touch" || o.pointerType === "virtual") ? t.toggleSelection(i) : t.replaceSelection(i);
379
- }
380
- };
381
- Y(() => {
382
- i === t.focusedKey && t.isFocused && (s ? Ze(l.current) : c ? c() : document.activeElement !== l.current && l.current && be(l.current));
383
- }, [
384
- l,
385
- i,
386
- t.focusedKey,
387
- t.childFocusStrategy,
388
- t.isFocused,
389
- s
390
- ]), u = u || t.isDisabled(i);
391
- let p = {};
392
- !s && !u ? p = {
393
- tabIndex: i === t.focusedKey ? 0 : -1,
394
- onFocus(o) {
395
- o.target === l.current && t.setFocusedKey(i);
396
- }
397
- } : u && (p.onMouseDown = (o) => {
398
- o.preventDefault();
399
- });
400
- let K = t.isLink(i) && d === "override", g = t.isLink(i) && d !== "selection" && d !== "none", m = !u && t.canSelectItem(i) && !K, C = (v || g) && !u, x = C && (t.selectionBehavior === "replace" ? !m : !m || t.isEmpty), E = C && m && t.selectionBehavior === "replace", M = x || E, A = k(null), T = M && m, I = k(!1), _ = k(!1), O = t.getItemProps(i), V = (o) => {
401
- v && v(), g && l.current && f.open(l.current, o, O.href, O.routerOptions);
402
- }, D = {
403
- ref: l
404
- };
405
- if (n ? (D.onPressStart = (o) => {
406
- A.current = o.pointerType, I.current = T, o.pointerType === "keyboard" && (!M || Me()) && h(o);
407
- }, $ ? (D.onPressUp = x ? void 0 : (o) => {
408
- o.pointerType === "mouse" && m && h(o);
409
- }, D.onPress = x ? V : (o) => {
410
- o.pointerType !== "keyboard" && o.pointerType !== "mouse" && m && h(o);
411
- }) : D.onPress = (o) => {
412
- if (x || E && o.pointerType !== "mouse") {
413
- if (o.pointerType === "keyboard" && !Fe()) return;
414
- V(o);
415
- } else o.pointerType !== "keyboard" && m && h(o);
416
- }) : (D.onPressStart = (o) => {
417
- A.current = o.pointerType, I.current = T, _.current = x, m && (o.pointerType === "mouse" && !x || o.pointerType === "keyboard" && (!C || Me())) && h(o);
418
- }, D.onPress = (o) => {
419
- (o.pointerType === "touch" || o.pointerType === "pen" || o.pointerType === "virtual" || o.pointerType === "keyboard" && M && Fe() || o.pointerType === "mouse" && _.current) && (M ? V(o) : m && h(o));
420
- }), p["data-collection"] = kt(t.collection), p["data-key"] = i, D.preventFocusOnPress = s, s && (D = Z(D, {
421
- onPressStart(o) {
422
- o.pointerType !== "touch" && (t.setFocused(!0), t.setFocusedKey(i));
423
- },
424
- onPress(o) {
425
- o.pointerType === "touch" && (t.setFocused(!0), t.setFocusedKey(i));
426
- }
427
- })), O)
428
- for (let o of [
429
- "onPressStart",
430
- "onPressEnd",
431
- "onPressChange",
432
- "onPress",
433
- "onPressUp",
434
- "onClick"
435
- ]) O[o] && (D[o] = ot(D[o], O[o]));
436
- let { pressProps: j, isPressed: ne } = Ye(D), Q = E ? (o) => {
437
- A.current === "mouse" && (o.stopPropagation(), o.preventDefault(), V(o));
438
- } : void 0, { longPressProps: re } = xt({
439
- isDisabled: !T,
440
- onLongPress(o) {
441
- o.pointerType === "touch" && (h(o), t.setSelectionBehavior("toggle"));
442
- }
443
- }), a = (o) => {
444
- A.current === "touch" && I.current && o.preventDefault();
445
- }, b = d !== "none" && t.isLink(i) ? (o) => {
446
- ut.isOpening || o.preventDefault();
447
- } : void 0;
448
- return {
449
- itemProps: Z(
450
- p,
451
- m || x || s && !u ? j : {},
452
- T ? re : {},
453
- {
454
- onDoubleClick: Q,
455
- onDragStartCapture: a,
456
- onClick: b,
457
- id: e
458
- },
459
- // Prevent DOM focus from moving on mouse down when using virtual focus
460
- s ? {
461
- onMouseDown: (o) => o.preventDefault()
462
- } : void 0
463
- ),
464
- isPressed: ne,
465
- isSelected: t.isSelected(i),
466
- isFocused: t.isFocused && t.focusedKey === i,
467
- isDisabled: u,
468
- allowsSelection: m,
469
- hasAction: M
470
- };
471
- }
472
- function Fe() {
473
- let r = window.event;
474
- return r?.key === "Enter";
475
- }
476
- function Me() {
477
- let r = window.event;
478
- return r?.key === " " || r?.code === "Space";
479
- }
480
- class Ae {
481
- getItemRect(e) {
482
- let t = this.ref.current;
483
- if (!t) return null;
484
- let i = e != null ? le(this.ref, e) : null;
485
- if (!i) return null;
486
- let l = t.getBoundingClientRect(), n = i.getBoundingClientRect();
487
- return {
488
- x: n.left - l.left + t.scrollLeft,
489
- y: n.top - l.top + t.scrollTop,
490
- width: n.width,
491
- height: n.height
492
- };
493
- }
494
- getContentSize() {
495
- let e = this.ref.current;
496
- var t, i;
497
- return {
498
- width: (t = e?.scrollWidth) !== null && t !== void 0 ? t : 0,
499
- height: (i = e?.scrollHeight) !== null && i !== void 0 ? i : 0
500
- };
501
- }
502
- getVisibleRect() {
503
- let e = this.ref.current;
504
- var t, i, l, n;
505
- return {
506
- x: (t = e?.scrollLeft) !== null && t !== void 0 ? t : 0,
507
- y: (i = e?.scrollTop) !== null && i !== void 0 ? i : 0,
508
- width: (l = e?.offsetWidth) !== null && l !== void 0 ? l : 0,
509
- height: (n = e?.offsetHeight) !== null && n !== void 0 ? n : 0
510
- };
511
- }
512
- constructor(e) {
513
- this.ref = e;
514
- }
515
- }
516
- class vi {
517
- isDisabled(e) {
518
- var t;
519
- return this.disabledBehavior === "all" && (((t = e.props) === null || t === void 0 ? void 0 : t.isDisabled) || this.disabledKeys.has(e.key));
520
- }
521
- findNextNonDisabled(e, t) {
522
- let i = e;
523
- for (; i != null; ) {
524
- let l = this.collection.getItem(i);
525
- if (l?.type === "item" && !this.isDisabled(l)) return i;
526
- i = t(i);
527
- }
528
- return null;
529
- }
530
- getNextKey(e) {
531
- let t = e;
532
- return t = this.collection.getKeyAfter(t), this.findNextNonDisabled(t, (i) => this.collection.getKeyAfter(i));
533
- }
534
- getPreviousKey(e) {
535
- let t = e;
536
- return t = this.collection.getKeyBefore(t), this.findNextNonDisabled(t, (i) => this.collection.getKeyBefore(i));
537
- }
538
- findKey(e, t, i) {
539
- let l = e, n = this.layoutDelegate.getItemRect(l);
540
- if (!n || l == null) return null;
541
- let s = n;
542
- do {
543
- if (l = t(l), l == null) break;
544
- n = this.layoutDelegate.getItemRect(l);
545
- } while (n && i(s, n) && l != null);
546
- return l;
547
- }
548
- isSameRow(e, t) {
549
- return e.y === t.y || e.x !== t.x;
550
- }
551
- isSameColumn(e, t) {
552
- return e.x === t.x || e.y !== t.y;
553
- }
554
- getKeyBelow(e) {
555
- return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getNextKey(t), this.isSameRow) : this.getNextKey(e);
556
- }
557
- getKeyAbove(e) {
558
- return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getPreviousKey(t), this.isSameRow) : this.getPreviousKey(e);
559
- }
560
- getNextColumn(e, t) {
561
- return t ? this.getPreviousKey(e) : this.getNextKey(e);
562
- }
563
- getKeyRightOf(e) {
564
- let t = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
565
- return this.layoutDelegate[t] ? (e = this.layoutDelegate[t](e), this.findNextNonDisabled(e, (i) => this.layoutDelegate[t](i))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(e, this.direction === "rtl") : this.findKey(e, (i) => this.getNextColumn(i, this.direction === "rtl"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(e, this.direction === "rtl") : null;
566
- }
567
- getKeyLeftOf(e) {
568
- let t = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
569
- return this.layoutDelegate[t] ? (e = this.layoutDelegate[t](e), this.findNextNonDisabled(e, (i) => this.layoutDelegate[t](i))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(e, this.direction === "ltr") : this.findKey(e, (i) => this.getNextColumn(i, this.direction === "ltr"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(e, this.direction === "ltr") : null;
570
- }
571
- getFirstKey() {
572
- let e = this.collection.getFirstKey();
573
- return this.findNextNonDisabled(e, (t) => this.collection.getKeyAfter(t));
574
- }
575
- getLastKey() {
576
- let e = this.collection.getLastKey();
577
- return this.findNextNonDisabled(e, (t) => this.collection.getKeyBefore(t));
578
- }
579
- getKeyPageAbove(e) {
580
- let t = this.ref.current, i = this.layoutDelegate.getItemRect(e);
581
- if (!i) return null;
582
- if (t && !ke(t)) return this.getFirstKey();
583
- let l = e;
584
- if (this.orientation === "horizontal") {
585
- let n = Math.max(0, i.x + i.width - this.layoutDelegate.getVisibleRect().width);
586
- for (; i && i.x > n && l != null; )
587
- l = this.getKeyAbove(l), i = l == null ? null : this.layoutDelegate.getItemRect(l);
588
- } else {
589
- let n = Math.max(0, i.y + i.height - this.layoutDelegate.getVisibleRect().height);
590
- for (; i && i.y > n && l != null; )
591
- l = this.getKeyAbove(l), i = l == null ? null : this.layoutDelegate.getItemRect(l);
592
- }
593
- return l ?? this.getFirstKey();
594
- }
595
- getKeyPageBelow(e) {
596
- let t = this.ref.current, i = this.layoutDelegate.getItemRect(e);
597
- if (!i) return null;
598
- if (t && !ke(t)) return this.getLastKey();
599
- let l = e;
600
- if (this.orientation === "horizontal") {
601
- let n = Math.min(this.layoutDelegate.getContentSize().width, i.y - i.width + this.layoutDelegate.getVisibleRect().width);
602
- for (; i && i.x < n && l != null; )
603
- l = this.getKeyBelow(l), i = l == null ? null : this.layoutDelegate.getItemRect(l);
604
- } else {
605
- let n = Math.min(this.layoutDelegate.getContentSize().height, i.y - i.height + this.layoutDelegate.getVisibleRect().height);
606
- for (; i && i.y < n && l != null; )
607
- l = this.getKeyBelow(l), i = l == null ? null : this.layoutDelegate.getItemRect(l);
608
- }
609
- return l ?? this.getLastKey();
610
- }
611
- getKeyForSearch(e, t) {
612
- if (!this.collator) return null;
613
- let i = this.collection, l = t || this.getFirstKey();
614
- for (; l != null; ) {
615
- let n = i.getItem(l);
616
- if (!n) return null;
617
- let s = n.textValue.slice(0, e.length);
618
- if (n.textValue && this.collator.compare(s, e) === 0) return l;
619
- l = this.getNextKey(l);
620
- }
621
- return null;
622
- }
623
- constructor(...e) {
624
- if (e.length === 1) {
625
- let t = e[0];
626
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ new Set(), this.disabledBehavior = t.disabledBehavior || "all", this.orientation = t.orientation || "vertical", this.direction = t.direction, this.layout = t.layout || "stack", this.layoutDelegate = t.layoutDelegate || new Ae(t.ref);
627
- } else
628
- this.collection = e[0], this.disabledKeys = e[1], this.ref = e[2], this.collator = e[3], this.layout = "stack", this.orientation = "vertical", this.disabledBehavior = "all", this.layoutDelegate = new Ae(this.ref);
629
- this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
630
- }
631
- }
632
- class Ft {
633
- build(e, t) {
634
- return this.context = t, Re(() => this.iterateCollection(e));
635
- }
636
- *iterateCollection(e) {
637
- let { children: t, items: i } = e;
638
- if (S.isValidElement(t) && t.type === S.Fragment) yield* this.iterateCollection({
639
- children: t.props.children,
640
- items: i
641
- });
642
- else if (typeof t == "function") {
643
- if (!i) throw new Error("props.children was a function but props.items is missing");
644
- let l = 0;
645
- for (let n of i)
646
- yield* this.getFullNode({
647
- value: n,
648
- index: l
649
- }, {
650
- renderer: t
651
- }), l++;
652
- } else {
653
- let l = [];
654
- S.Children.forEach(t, (s) => {
655
- s && l.push(s);
656
- });
657
- let n = 0;
658
- for (let s of l) {
659
- let c = this.getFullNode({
660
- element: s,
661
- index: n
662
- }, {});
663
- for (let u of c)
664
- n++, yield u;
665
- }
666
- }
667
- }
668
- getKey(e, t, i, l) {
669
- if (e.key != null) return e.key;
670
- if (t.type === "cell" && t.key != null) return `${l}${t.key}`;
671
- let n = t.value;
672
- if (n != null) {
673
- var s;
674
- let c = (s = n.key) !== null && s !== void 0 ? s : n.id;
675
- if (c == null) throw new Error("No key found for item");
676
- return c;
677
- }
678
- return l ? `${l}.${t.index}` : `$.${t.index}`;
679
- }
680
- getChildState(e, t) {
681
- return {
682
- renderer: t.renderer || e.renderer
683
- };
684
- }
685
- *getFullNode(e, t, i, l) {
686
- if (S.isValidElement(e.element) && e.element.type === S.Fragment) {
687
- let g = [];
688
- S.Children.forEach(e.element.props.children, (C) => {
689
- g.push(C);
690
- });
691
- var n;
692
- let m = (n = e.index) !== null && n !== void 0 ? n : 0;
693
- for (const C of g) yield* this.getFullNode({
694
- element: C,
695
- index: m++
696
- }, t, i, l);
697
- return;
698
- }
699
- let s = e.element;
700
- if (!s && e.value && t && t.renderer) {
701
- let g = this.cache.get(e.value);
702
- if (g && (!g.shouldInvalidate || !g.shouldInvalidate(this.context))) {
703
- g.index = e.index, g.parentKey = l ? l.key : null, yield g;
704
- return;
705
- }
706
- s = t.renderer(e.value);
707
- }
708
- if (S.isValidElement(s)) {
709
- let g = s.type;
710
- if (typeof g != "function" && typeof g.getCollectionNode != "function") {
711
- let E = s.type;
712
- throw new Error(`Unknown element <${E}> in collection.`);
713
- }
714
- let m = g.getCollectionNode(s.props, this.context);
715
- var c;
716
- let C = (c = e.index) !== null && c !== void 0 ? c : 0, x = m.next();
717
- for (; !x.done && x.value; ) {
718
- let E = x.value;
719
- e.index = C;
720
- var u;
721
- let M = (u = E.key) !== null && u !== void 0 ? u : null;
722
- M == null && (M = E.element ? null : this.getKey(s, e, t, i));
723
- let T = [
724
- ...this.getFullNode({
725
- ...E,
726
- key: M,
727
- index: C,
728
- wrapper: Mt(e.wrapper, E.wrapper)
729
- }, this.getChildState(t, E), i ? `${i}${s.key}` : s.key, l)
730
- ];
731
- for (let I of T) {
732
- var v, $;
733
- I.value = ($ = (v = E.value) !== null && v !== void 0 ? v : e.value) !== null && $ !== void 0 ? $ : null, I.value && this.cache.set(I.value, I);
734
- var d;
735
- if (e.type && I.type !== e.type) throw new Error(`Unsupported type <${he(I.type)}> in <${he((d = l?.type) !== null && d !== void 0 ? d : "unknown parent type")}>. Only <${he(e.type)}> is supported.`);
736
- C++, yield I;
737
- }
738
- x = m.next(T);
739
- }
740
- return;
741
- }
742
- if (e.key == null || e.type == null) return;
743
- let f = this;
744
- var h, p;
745
- let K = {
746
- type: e.type,
747
- props: e.props,
748
- key: e.key,
749
- parentKey: l ? l.key : null,
750
- value: (h = e.value) !== null && h !== void 0 ? h : null,
751
- level: l ? l.level + 1 : 0,
752
- index: e.index,
753
- rendered: e.rendered,
754
- textValue: (p = e.textValue) !== null && p !== void 0 ? p : "",
755
- "aria-label": e["aria-label"],
756
- wrapper: e.wrapper,
757
- shouldInvalidate: e.shouldInvalidate,
758
- hasChildNodes: e.hasChildNodes || !1,
759
- childNodes: Re(function* () {
760
- if (!e.hasChildNodes || !e.childNodes) return;
761
- let g = 0;
762
- for (let m of e.childNodes()) {
763
- m.key != null && (m.key = `${K.key}${m.key}`);
764
- let C = f.getFullNode({
765
- ...m,
766
- index: g
767
- }, f.getChildState(t, m), K.key, K);
768
- for (let x of C)
769
- g++, yield x;
770
- }
771
- })
772
- };
773
- yield K;
774
- }
775
- constructor() {
776
- this.cache = /* @__PURE__ */ new WeakMap();
777
- }
778
- }
779
- function Re(r) {
780
- let e = [], t = null;
781
- return {
782
- *[Symbol.iterator]() {
783
- for (let i of e) yield i;
784
- t || (t = r());
785
- for (let i of t)
786
- e.push(i), yield i;
787
- }
788
- };
789
- }
790
- function Mt(r, e) {
791
- if (r && e) return (t) => r(e(t));
792
- if (r) return r;
793
- if (e) return e;
794
- }
795
- function he(r) {
796
- return r[0].toUpperCase() + r.slice(1);
797
- }
798
- function gi(r, e, t) {
799
- let i = B(() => new Ft(), []), { children: l, items: n, collection: s } = r;
800
- return B(() => {
801
- if (s) return s;
802
- let u = i.build({
803
- children: l,
804
- items: n
805
- }, t);
806
- return e(u);
807
- }, [
808
- i,
809
- l,
810
- n,
811
- s,
812
- t,
813
- e
814
- ]);
815
- }
816
- function At(r, e) {
817
- return typeof e.getChildren == "function" ? e.getChildren(r.key) : r.childNodes;
818
- }
819
- function Rt(r) {
820
- return Tt(r, 0);
821
- }
822
- function Tt(r, e) {
823
- if (e < 0) return;
824
- let t = 0;
825
- for (let i of r) {
826
- if (t === e) return i;
827
- t++;
828
- }
829
- }
830
- function mi(r) {
831
- let e;
832
- for (let t of r) e = t;
833
- return e;
834
- }
835
- function ye(r, e, t) {
836
- if (e.parentKey === t.parentKey) return e.index - t.index;
837
- let i = [
838
- ...Te(r, e),
839
- e
840
- ], l = [
841
- ...Te(r, t),
842
- t
843
- ], n = i.slice(0, l.length).findIndex((s, c) => s !== l[c]);
844
- return n !== -1 ? (e = i[n], t = l[n], e.index - t.index) : i.findIndex((s) => s === t) >= 0 ? 1 : (l.findIndex((s) => s === e) >= 0, -1);
845
- }
846
- function Te(r, e) {
847
- let t = [], i = e;
848
- for (; i?.parentKey != null; )
849
- i = r.getItem(i.parentKey), i && t.unshift(i);
850
- return t;
851
- }
852
- var te = { exports: {} }, pe = {};
853
- /**
854
- * @license React
855
- * use-sync-external-store-shim.production.js
856
- *
857
- * Copyright (c) Meta Platforms, Inc. and affiliates.
858
- *
859
- * This source code is licensed under the MIT license found in the
860
- * LICENSE file in the root directory of this source tree.
861
- */
862
- var Oe;
863
- function Ot() {
864
- if (Oe) return pe;
865
- Oe = 1;
866
- var r = S;
867
- function e(d, f) {
868
- return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
869
- }
870
- var t = typeof Object.is == "function" ? Object.is : e, i = r.useState, l = r.useEffect, n = r.useLayoutEffect, s = r.useDebugValue;
871
- function c(d, f) {
872
- var h = f(), p = i({ inst: { value: h, getSnapshot: f } }), K = p[0].inst, g = p[1];
873
- return n(
874
- function() {
875
- K.value = h, K.getSnapshot = f, u(K) && g({ inst: K });
876
- },
877
- [d, h, f]
878
- ), l(
879
- function() {
880
- return u(K) && g({ inst: K }), d(function() {
881
- u(K) && g({ inst: K });
882
- });
883
- },
884
- [d]
885
- ), s(h), h;
886
- }
887
- function u(d) {
888
- var f = d.getSnapshot;
889
- d = d.value;
890
- try {
891
- var h = f();
892
- return !t(d, h);
893
- } catch {
894
- return !0;
895
- }
896
- }
897
- function v(d, f) {
898
- return f();
899
- }
900
- var $ = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? v : c;
901
- return pe.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : $, pe;
902
- }
903
- var ve = {};
904
- /**
905
- * @license React
906
- * use-sync-external-store-shim.development.js
907
- *
908
- * Copyright (c) Meta Platforms, Inc. and affiliates.
909
- *
910
- * This source code is licensed under the MIT license found in the
911
- * LICENSE file in the root directory of this source tree.
912
- */
913
- var Le;
914
- function Lt() {
915
- return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
916
- function r(h, p) {
917
- return h === p && (h !== 0 || 1 / h === 1 / p) || h !== h && p !== p;
918
- }
919
- function e(h, p) {
920
- $ || l.startTransition === void 0 || ($ = !0, console.error(
921
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
922
- ));
923
- var K = p();
924
- if (!d) {
925
- var g = p();
926
- n(K, g) || (console.error(
927
- "The result of getSnapshot should be cached to avoid an infinite loop"
928
- ), d = !0);
929
- }
930
- g = s({
931
- inst: { value: K, getSnapshot: p }
932
- });
933
- var m = g[0].inst, C = g[1];
934
- return u(
935
- function() {
936
- m.value = K, m.getSnapshot = p, t(m) && C({ inst: m });
937
- },
938
- [h, K, p]
939
- ), c(
940
- function() {
941
- return t(m) && C({ inst: m }), h(function() {
942
- t(m) && C({ inst: m });
943
- });
944
- },
945
- [h]
946
- ), v(K), K;
947
- }
948
- function t(h) {
949
- var p = h.getSnapshot;
950
- h = h.value;
951
- try {
952
- var K = p();
953
- return !n(h, K);
954
- } catch {
955
- return !0;
956
- }
957
- }
958
- function i(h, p) {
959
- return p();
960
- }
961
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
962
- var l = S, n = typeof Object.is == "function" ? Object.is : r, s = l.useState, c = l.useEffect, u = l.useLayoutEffect, v = l.useDebugValue, $ = !1, d = !1, f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? i : e;
963
- ve.useSyncExternalStore = l.useSyncExternalStore !== void 0 ? l.useSyncExternalStore : f, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
964
- }()), ve;
965
- }
966
- var Be;
967
- function Bt() {
968
- return Be || (Be = 1, process.env.NODE_ENV === "production" ? te.exports = Ot() : te.exports = Lt()), te.exports;
969
- }
970
- var Vt = /* @__PURE__ */ Bt();
971
- class $e {
972
- get childNodes() {
973
- throw new Error("childNodes is not supported");
974
- }
975
- clone() {
976
- let e = new $e(this.type, this.key);
977
- return e.value = this.value, e.level = this.level, e.hasChildNodes = this.hasChildNodes, e.rendered = this.rendered, e.textValue = this.textValue, e["aria-label"] = this["aria-label"], e.index = this.index, e.parentKey = this.parentKey, e.prevKey = this.prevKey, e.nextKey = this.nextKey, e.firstChildKey = this.firstChildKey, e.lastChildKey = this.lastChildKey, e.props = this.props, e.render = this.render, e.colSpan = this.colSpan, e.colIndex = this.colIndex, e;
978
- }
979
- constructor(e, t) {
980
- this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = e, this.key = t;
981
- }
982
- }
983
- class xe {
984
- get size() {
985
- return this.itemCount;
986
- }
987
- getKeys() {
988
- return this.keyMap.keys();
989
- }
990
- *[Symbol.iterator]() {
991
- let e = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
992
- for (; e; )
993
- yield e, e = e.nextKey != null ? this.keyMap.get(e.nextKey) : void 0;
994
- }
995
- getChildren(e) {
996
- let t = this.keyMap;
997
- return {
998
- *[Symbol.iterator]() {
999
- let i = t.get(e), l = i?.firstChildKey != null ? t.get(i.firstChildKey) : null;
1000
- for (; l; )
1001
- yield l, l = l.nextKey != null ? t.get(l.nextKey) : void 0;
1002
- }
1003
- };
1004
- }
1005
- getKeyBefore(e) {
1006
- let t = this.keyMap.get(e);
1007
- if (!t) return null;
1008
- if (t.prevKey != null) {
1009
- for (t = this.keyMap.get(t.prevKey); t && t.type !== "item" && t.lastChildKey != null; ) t = this.keyMap.get(t.lastChildKey);
1010
- var i;
1011
- return (i = t?.key) !== null && i !== void 0 ? i : null;
1012
- }
1013
- return t.parentKey;
1014
- }
1015
- getKeyAfter(e) {
1016
- let t = this.keyMap.get(e);
1017
- if (!t) return null;
1018
- if (t.type !== "item" && t.firstChildKey != null) return t.firstChildKey;
1019
- for (; t; ) {
1020
- if (t.nextKey != null) return t.nextKey;
1021
- if (t.parentKey != null) t = this.keyMap.get(t.parentKey);
1022
- else return null;
1023
- }
1024
- return null;
1025
- }
1026
- getFirstKey() {
1027
- return this.firstKey;
1028
- }
1029
- getLastKey() {
1030
- let e = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
1031
- for (; e?.lastChildKey != null; ) e = this.keyMap.get(e.lastChildKey);
1032
- var t;
1033
- return (t = e?.key) !== null && t !== void 0 ? t : null;
1034
- }
1035
- getItem(e) {
1036
- var t;
1037
- return (t = this.keyMap.get(e)) !== null && t !== void 0 ? t : null;
1038
- }
1039
- at() {
1040
- throw new Error("Not implemented");
1041
- }
1042
- clone() {
1043
- let e = this.constructor, t = new e();
1044
- return t.keyMap = new Map(this.keyMap), t.firstKey = this.firstKey, t.lastKey = this.lastKey, t.itemCount = this.itemCount, t;
1045
- }
1046
- addNode(e) {
1047
- if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
1048
- e.type === "item" && this.keyMap.get(e.key) == null && this.itemCount++, this.keyMap.set(e.key, e);
1049
- }
1050
- removeNode(e) {
1051
- if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
1052
- let t = this.keyMap.get(e);
1053
- t != null && t.type === "item" && this.itemCount--, this.keyMap.delete(e);
1054
- }
1055
- commit(e, t, i = !1) {
1056
- if (this.frozen) throw new Error("Cannot commit a frozen collection");
1057
- this.firstKey = e, this.lastKey = t, this.frozen = !i;
1058
- }
1059
- // TODO: this is pretty specific to menu, will need to check if it is generic enough
1060
- // Will need to handle varying levels I assume but will revisit after I get searchable menu working for base menu
1061
- // TODO: an alternative is to simply walk the collection and add all item nodes that match the filter and any sections/separators we encounter
1062
- // to an array, then walk that new array and fix all the next/Prev keys while adding them to the new collection
1063
- UNSTABLE_filter(e) {
1064
- let t = new xe(), i = null;
1065
- for (let l of this)
1066
- if (l.type === "section" && l.hasChildNodes) {
1067
- let n = l.clone(), s = null;
1068
- for (let c of this.getChildren(l.key)) if (Ve(c, e, this, t)) {
1069
- let u = c.clone();
1070
- s == null && (n.firstChildKey = u.key), t.firstKey == null && (t.firstKey = n.key), s && s.parentKey === u.parentKey ? (s.nextKey = u.key, u.prevKey = s.key) : u.prevKey = null, u.nextKey = null, t.addNode(u), s = u;
1071
- }
1072
- s && (s.type !== "header" ? (n.lastChildKey = s.key, i == null ? n.prevKey = null : (i.type === "section" || i.type === "separator") && (i.nextKey = n.key, n.prevKey = i.key), n.nextKey = null, i = n, t.addNode(n)) : (t.firstKey === n.key && (t.firstKey = null), t.removeNode(s.key)));
1073
- } else if (l.type === "separator") {
1074
- let n = l.clone();
1075
- n.nextKey = null, i?.type === "section" && (i.nextKey = n.key, n.prevKey = i.key, i = n, t.addNode(n));
1076
- } else {
1077
- let n = l.clone();
1078
- Ve(n, e, this, t) && (t.firstKey == null && (t.firstKey = n.key), i != null && i.type !== "section" && i.type !== "separator" && i.parentKey === n.parentKey ? (i.nextKey = n.key, n.prevKey = i.key) : n.prevKey = null, n.nextKey = null, t.addNode(n), i = n);
1079
- }
1080
- if (i?.type === "separator" && i.nextKey === null) {
1081
- let l;
1082
- i.prevKey != null && (l = t.getItem(i.prevKey), l.nextKey = null), t.removeNode(i.key), i = l;
1083
- }
1084
- return t.lastKey = i?.key || null, t;
1085
- }
1086
- constructor() {
1087
- this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
1088
- }
1089
- }
1090
- function Ve(r, e, t, i) {
1091
- if (r.type === "subdialogtrigger" || r.type === "submenutrigger") {
1092
- let l = [
1093
- ...t.getChildren(r.key)
1094
- ][0];
1095
- if (l && e(l.textValue)) {
1096
- let n = l.clone();
1097
- return i.addNode(n), !0;
1098
- } else return !1;
1099
- } else return r.type === "header" ? !0 : e(r.textValue);
1100
- }
1101
- class et {
1102
- *[Symbol.iterator]() {
1103
- let e = this.firstChild;
1104
- for (; e; )
1105
- yield e, e = e.nextSibling;
1106
- }
1107
- get firstChild() {
1108
- return this._firstChild;
1109
- }
1110
- set firstChild(e) {
1111
- this._firstChild = e, this.ownerDocument.markDirty(this);
1112
- }
1113
- get lastChild() {
1114
- return this._lastChild;
1115
- }
1116
- set lastChild(e) {
1117
- this._lastChild = e, this.ownerDocument.markDirty(this);
1118
- }
1119
- get previousSibling() {
1120
- return this._previousSibling;
1121
- }
1122
- set previousSibling(e) {
1123
- this._previousSibling = e, this.ownerDocument.markDirty(this);
1124
- }
1125
- get nextSibling() {
1126
- return this._nextSibling;
1127
- }
1128
- set nextSibling(e) {
1129
- this._nextSibling = e, this.ownerDocument.markDirty(this);
1130
- }
1131
- get parentNode() {
1132
- return this._parentNode;
1133
- }
1134
- set parentNode(e) {
1135
- this._parentNode = e, this.ownerDocument.markDirty(this);
1136
- }
1137
- get isConnected() {
1138
- var e;
1139
- return ((e = this.parentNode) === null || e === void 0 ? void 0 : e.isConnected) || !1;
1140
- }
1141
- invalidateChildIndices(e) {
1142
- (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || e.index < this._minInvalidChildIndex.index) && (this._minInvalidChildIndex = e, this.ownerDocument.markDirty(this));
1143
- }
1144
- updateChildIndices() {
1145
- let e = this._minInvalidChildIndex;
1146
- for (; e; )
1147
- e.index = e.previousSibling ? e.previousSibling.index + 1 : 0, e = e.nextSibling;
1148
- this._minInvalidChildIndex = null;
1149
- }
1150
- appendChild(e) {
1151
- e.parentNode && e.parentNode.removeChild(e), this.firstChild == null && (this.firstChild = e), this.lastChild ? (this.lastChild.nextSibling = e, e.index = this.lastChild.index + 1, e.previousSibling = this.lastChild) : (e.previousSibling = null, e.index = 0), e.parentNode = this, e.nextSibling = null, this.lastChild = e, this.ownerDocument.markDirty(this), this.isConnected && this.ownerDocument.queueUpdate();
1152
- }
1153
- insertBefore(e, t) {
1154
- if (t == null) return this.appendChild(e);
1155
- e.parentNode && e.parentNode.removeChild(e), e.nextSibling = t, e.previousSibling = t.previousSibling, e.index = t.index - 1, this.firstChild === t ? this.firstChild = e : t.previousSibling && (t.previousSibling.nextSibling = e), t.previousSibling = e, e.parentNode = t.parentNode, this.invalidateChildIndices(e), this.isConnected && this.ownerDocument.queueUpdate();
1156
- }
1157
- removeChild(e) {
1158
- e.parentNode !== this || !this.ownerDocument.isMounted || (this._minInvalidChildIndex === e && (this._minInvalidChildIndex = null), e.nextSibling && (this.invalidateChildIndices(e.nextSibling), e.nextSibling.previousSibling = e.previousSibling), e.previousSibling && (e.previousSibling.nextSibling = e.nextSibling), this.firstChild === e && (this.firstChild = e.nextSibling), this.lastChild === e && (this.lastChild = e.previousSibling), e.parentNode = null, e.nextSibling = null, e.previousSibling = null, e.index = 0, this.ownerDocument.markDirty(e), this.isConnected && this.ownerDocument.queueUpdate());
1159
- }
1160
- addEventListener() {
1161
- }
1162
- removeEventListener() {
1163
- }
1164
- get previousVisibleSibling() {
1165
- let e = this.previousSibling;
1166
- for (; e && e.isHidden; ) e = e.previousSibling;
1167
- return e;
1168
- }
1169
- get nextVisibleSibling() {
1170
- let e = this.nextSibling;
1171
- for (; e && e.isHidden; ) e = e.nextSibling;
1172
- return e;
1173
- }
1174
- get firstVisibleChild() {
1175
- let e = this.firstChild;
1176
- for (; e && e.isHidden; ) e = e.nextSibling;
1177
- return e;
1178
- }
1179
- get lastVisibleChild() {
1180
- let e = this.lastChild;
1181
- for (; e && e.isHidden; ) e = e.previousSibling;
1182
- return e;
1183
- }
1184
- constructor(e) {
1185
- this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
1186
- }
1187
- }
1188
- class W extends et {
1189
- get index() {
1190
- return this._index;
1191
- }
1192
- set index(e) {
1193
- this._index = e, this.ownerDocument.markDirty(this);
1194
- }
1195
- get level() {
1196
- return this.parentNode instanceof W ? this.parentNode.level + (this.node.type === "item" ? 1 : 0) : 0;
1197
- }
1198
- /**
1199
- * Lazily gets a mutable instance of a Node. If the node has already
1200
- * been cloned during this update cycle, it just returns the existing one.
1201
- */
1202
- getMutableNode() {
1203
- return this.isMutated || (this.node = this.node.clone(), this.isMutated = !0), this.ownerDocument.markDirty(this), this.node;
1204
- }
1205
- updateNode() {
1206
- var e, t, i;
1207
- let l = this.nextVisibleSibling, n = this.getMutableNode();
1208
- n.index = this.index, n.level = this.level, n.parentKey = this.parentNode instanceof W ? this.parentNode.node.key : null;
1209
- var s;
1210
- n.prevKey = (s = (e = this.previousVisibleSibling) === null || e === void 0 ? void 0 : e.node.key) !== null && s !== void 0 ? s : null;
1211
- var c;
1212
- n.nextKey = (c = l?.node.key) !== null && c !== void 0 ? c : null, n.hasChildNodes = !!this.firstChild;
1213
- var u;
1214
- n.firstChildKey = (u = (t = this.firstVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && u !== void 0 ? u : null;
1215
- var v;
1216
- if (n.lastChildKey = (v = (i = this.lastVisibleChild) === null || i === void 0 ? void 0 : i.node.key) !== null && v !== void 0 ? v : null, (n.colSpan != null || n.colIndex != null) && l) {
1217
- var $, d;
1218
- let f = (($ = n.colIndex) !== null && $ !== void 0 ? $ : n.index) + ((d = n.colSpan) !== null && d !== void 0 ? d : 1);
1219
- if (f !== l.node.colIndex) {
1220
- let h = l.getMutableNode();
1221
- h.colIndex = f;
1222
- }
1223
- }
1224
- }
1225
- setProps(e, t, i, l) {
1226
- let n = this.getMutableNode(), { value: s, textValue: c, id: u, ...v } = e;
1227
- if (v.ref = t, n.props = v, n.rendered = i, n.render = l, n.value = s, n.textValue = c || (typeof v.children == "string" ? v.children : "") || e["aria-label"] || "", u != null && u !== n.key) {
1228
- if (this.hasSetProps) throw new Error("Cannot change the id of an item");
1229
- n.key = u;
1230
- }
1231
- v.colSpan != null && (n.colSpan = v.colSpan), this.hasSetProps = !0, this.isConnected && this.ownerDocument.queueUpdate();
1232
- }
1233
- get style() {
1234
- let e = this;
1235
- return {
1236
- get display() {
1237
- return e.isHidden ? "none" : "";
1238
- },
1239
- set display(t) {
1240
- let i = t === "none";
1241
- if (e.isHidden !== i) {
1242
- var l, n;
1243
- (((l = e.parentNode) === null || l === void 0 ? void 0 : l.firstVisibleChild) === e || ((n = e.parentNode) === null || n === void 0 ? void 0 : n.lastVisibleChild) === e) && e.ownerDocument.markDirty(e.parentNode);
1244
- let s = e.previousVisibleSibling, c = e.nextVisibleSibling;
1245
- s && e.ownerDocument.markDirty(s), c && e.ownerDocument.markDirty(c), e.isHidden = i, e.ownerDocument.markDirty(e);
1246
- }
1247
- }
1248
- };
1249
- }
1250
- hasAttribute() {
1251
- }
1252
- setAttribute() {
1253
- }
1254
- setAttributeNS() {
1255
- }
1256
- removeAttribute() {
1257
- }
1258
- constructor(e, t) {
1259
- super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.hasSetProps = !1, this.isHidden = !1, this.node = new $e(e, `react-aria-${++t.nodeId}`);
1260
- }
1261
- }
1262
- class Nt extends et {
1263
- get isConnected() {
1264
- return this.isMounted;
1265
- }
1266
- createElement(e) {
1267
- return new W(e, this);
1268
- }
1269
- getMutableCollection() {
1270
- return this.nextCollection || (this.nextCollection = this.collection.clone()), this.nextCollection;
1271
- }
1272
- markDirty(e) {
1273
- this.dirtyNodes.add(e);
1274
- }
1275
- addNode(e) {
1276
- if (e.isHidden) return;
1277
- let t = this.getMutableCollection();
1278
- if (!t.getItem(e.node.key)) for (let i of e) this.addNode(i);
1279
- t.addNode(e.node);
1280
- }
1281
- removeNode(e) {
1282
- for (let i of e) this.removeNode(i);
1283
- this.getMutableCollection().removeNode(e.node.key);
1284
- }
1285
- /** Finalizes the collection update, updating all nodes and freezing the collection. */
1286
- getCollection() {
1287
- return this.inSubscription ? this.collection.clone() : (this.queuedRender = !1, this.updateCollection(), this.collection);
1288
- }
1289
- updateCollection() {
1290
- for (let n of this.dirtyNodes) n instanceof W && (!n.isConnected || n.isHidden) ? this.removeNode(n) : n.updateChildIndices();
1291
- for (let n of this.dirtyNodes) n instanceof W && (n.isConnected && !n.isHidden && (n.updateNode(), this.addNode(n)), n.isMutated = !1);
1292
- if (this.dirtyNodes.clear(), this.nextCollection) {
1293
- var e, t, i, l;
1294
- this.nextCollection.commit((i = (e = this.firstVisibleChild) === null || e === void 0 ? void 0 : e.node.key) !== null && i !== void 0 ? i : null, (l = (t = this.lastVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && l !== void 0 ? l : null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null);
1295
- }
1296
- }
1297
- queueUpdate() {
1298
- if (!(this.dirtyNodes.size === 0 || this.queuedRender)) {
1299
- this.queuedRender = !0, this.inSubscription = !0;
1300
- for (let e of this.subscriptions) e();
1301
- this.inSubscription = !1;
1302
- }
1303
- }
1304
- subscribe(e) {
1305
- return this.subscriptions.add(e), () => this.subscriptions.delete(e);
1306
- }
1307
- resetAfterSSR() {
1308
- this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0);
1309
- }
1310
- constructor(e) {
1311
- super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.isMounted = !0, this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
1312
- }
1313
- }
1314
- function tt(r) {
1315
- let { children: e, items: t, idScope: i, addIdAndValue: l, dependencies: n = [] } = r, s = B(() => /* @__PURE__ */ new WeakMap(), n);
1316
- return B(() => {
1317
- if (t && typeof e == "function") {
1318
- let v = [];
1319
- for (let $ of t) {
1320
- let d = s.get($);
1321
- if (!d) {
1322
- d = e($);
1323
- var c, u;
1324
- let f = (u = (c = d.props.id) !== null && c !== void 0 ? c : $.key) !== null && u !== void 0 ? u : $.id;
1325
- if (f == null) throw new Error("Could not determine key for item");
1326
- i && (f = i + ":" + f), d = He(d, l ? {
1327
- key: f,
1328
- id: f,
1329
- value: $
1330
- } : {
1331
- key: f
1332
- }), s.set($, d);
1333
- }
1334
- v.push(d);
1335
- }
1336
- return v;
1337
- } else if (typeof e != "function") return e;
1338
- }, [
1339
- e,
1340
- t,
1341
- s,
1342
- i,
1343
- l
1344
- ]);
1345
- }
1346
- const it = /* @__PURE__ */ G(!1), J = /* @__PURE__ */ G(null);
1347
- function bi(r) {
1348
- if (H(J))
1349
- return r.content;
1350
- let { collection: t, document: i } = qt(r.createCollection);
1351
- return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(mt, null, /* @__PURE__ */ S.createElement(J.Provider, {
1352
- value: i
1353
- }, r.content)), /* @__PURE__ */ S.createElement(zt, {
1354
- render: r.children,
1355
- collection: t
1356
- }));
1357
- }
1358
- function zt({ collection: r, render: e }) {
1359
- return e(r);
1360
- }
1361
- function Ut(r, e, t) {
1362
- let i = Xe(), l = k(i);
1363
- l.current = i;
1364
- let n = X(() => l.current ? t() : e(), [
1365
- e,
1366
- t
1367
- ]);
1368
- return Vt.useSyncExternalStore(r, n);
1369
- }
1370
- const Ht = typeof S.useSyncExternalStore == "function" ? S.useSyncExternalStore : Ut;
1371
- function qt(r) {
1372
- let [e] = ie(() => new Nt(r?.() || new xe())), t = X((s) => e.subscribe(s), [
1373
- e
1374
- ]), i = X(() => {
1375
- let s = e.getCollection();
1376
- return e.isSSR && e.resetAfterSSR(), s;
1377
- }, [
1378
- e
1379
- ]), l = X(() => (e.isSSR = !0, e.getCollection()), [
1380
- e
1381
- ]), n = Ht(t, i, l);
1382
- return ge(() => (e.isMounted = !0, () => {
1383
- e.isMounted = !1;
1384
- }), [
1385
- e
1386
- ]), {
1387
- collection: n,
1388
- document: e
1389
- };
1390
- }
1391
- const Ke = /* @__PURE__ */ G(null);
1392
- function lt(r, e, t, i, l, n) {
1393
- let s = X((u) => {
1394
- u?.setProps(e, t, i, n);
1395
- }, [
1396
- e,
1397
- t,
1398
- i,
1399
- n
1400
- ]), c = H(Ke);
1401
- if (c) {
1402
- let u = c.ownerDocument.nodesByProps.get(e);
1403
- return u || (u = c.ownerDocument.createElement(r), u.setProps(e, t, i, n), c.appendChild(u), c.ownerDocument.updateCollection(), c.ownerDocument.nodesByProps.set(e, u)), l ? /* @__PURE__ */ S.createElement(Ke.Provider, {
1404
- value: u
1405
- }, l) : null;
1406
- }
1407
- return /* @__PURE__ */ S.createElement(r, {
1408
- ref: s
1409
- }, l);
1410
- }
1411
- function Si(r, e) {
1412
- let t = ({ node: l }) => e(l.props, l.props.ref, l), i = qe((l, n) => {
1413
- let s = H(Ie);
1414
- if (!H(it)) {
1415
- if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
1416
- return e(l, n);
1417
- }
1418
- return lt(r, l, n, "children" in l ? l.children : null, null, (u) => (
1419
- // Forward FocusableContext to real DOM tree so tooltips work.
1420
- /* @__PURE__ */ S.createElement(Ie.Provider, {
1421
- value: s
1422
- }, /* @__PURE__ */ S.createElement(t, {
1423
- node: u
1424
- }))
1425
- ));
1426
- });
1427
- return i.displayName = e.name, i;
1428
- }
1429
- function Ki(r, e, t = nt) {
1430
- let i = ({ node: n }) => e(n.props, n.props.ref, n), l = qe((n, s) => {
1431
- let c = t(n);
1432
- var u;
1433
- return (u = lt(r, n, s, null, c, (v) => /* @__PURE__ */ S.createElement(i, {
1434
- node: v
1435
- }))) !== null && u !== void 0 ? u : /* @__PURE__ */ S.createElement(S.Fragment, null);
1436
- });
1437
- return l.displayName = e.name, l;
1438
- }
1439
- function nt(r) {
1440
- return tt({
1441
- ...r,
1442
- addIdAndValue: !0
1443
- });
1444
- }
1445
- const Ne = /* @__PURE__ */ G(null);
1446
- function $i(r) {
1447
- let e = H(Ne), t = (e?.dependencies || []).concat(r.dependencies), i = r.idScope || e?.idScope, l = nt({
1448
- ...r,
1449
- idScope: i,
1450
- dependencies: t
1451
- });
1452
- return H(J) && (l = /* @__PURE__ */ S.createElement(Wt, null, l)), e = B(() => ({
1453
- dependencies: t,
1454
- idScope: i
1455
- }), [
1456
- i,
1457
- ...t
1458
- ]), /* @__PURE__ */ S.createElement(Ne.Provider, {
1459
- value: e
1460
- }, l);
1461
- }
1462
- function Wt({ children: r }) {
1463
- let e = H(J), t = B(() => /* @__PURE__ */ S.createElement(J.Provider, {
1464
- value: null
1465
- }, /* @__PURE__ */ S.createElement(it.Provider, {
1466
- value: !0
1467
- }, r)), [
1468
- r
1469
- ]);
1470
- return Xe() ? /* @__PURE__ */ S.createElement(Ke.Provider, {
1471
- value: e
1472
- }, t) : /* @__PURE__ */ ht(t, e);
1473
- }
1474
- class R extends Set {
1475
- constructor(e, t, i) {
1476
- super(e), e instanceof R ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = i ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = i ?? null);
1477
- }
1478
- }
1479
- function Gt(r, e) {
1480
- if (r.size !== e.size) return !1;
1481
- for (let t of r)
1482
- if (!e.has(t)) return !1;
1483
- return !0;
1484
- }
1485
- function xi(r) {
1486
- let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: i, selectionBehavior: l = "toggle", disabledBehavior: n = "all" } = r, s = k(!1), [, c] = ie(!1), u = k(null), v = k(null), [, $] = ie(null), d = B(() => ze(r.selectedKeys), [
1487
- r.selectedKeys
1488
- ]), f = B(() => ze(r.defaultSelectedKeys, new R()), [
1489
- r.defaultSelectedKeys
1490
- ]), [h, p] = bt(d, f, r.onSelectionChange), K = B(() => r.disabledKeys ? new Set(r.disabledKeys) : /* @__PURE__ */ new Set(), [
1491
- r.disabledKeys
1492
- ]), [g, m] = ie(l);
1493
- l === "replace" && g === "toggle" && typeof h == "object" && h.size === 0 && m("replace");
1494
- let C = k(l);
1495
- return Y(() => {
1496
- l !== C.current && (m(l), C.current = l);
1497
- }, [
1498
- l
1499
- ]), {
1500
- selectionMode: e,
1501
- disallowEmptySelection: t,
1502
- selectionBehavior: g,
1503
- setSelectionBehavior: m,
1504
- get isFocused() {
1505
- return s.current;
1506
- },
1507
- setFocused(x) {
1508
- s.current = x, c(x);
1509
- },
1510
- get focusedKey() {
1511
- return u.current;
1512
- },
1513
- get childFocusStrategy() {
1514
- return v.current;
1515
- },
1516
- setFocusedKey(x, E = "first") {
1517
- u.current = x, v.current = E, $(x);
1518
- },
1519
- selectedKeys: h,
1520
- setSelectedKeys(x) {
1521
- (i || !Gt(x, h)) && p(x);
1522
- },
1523
- disabledKeys: K,
1524
- disabledBehavior: n
1525
- };
1526
- }
1527
- function ze(r, e) {
1528
- return r ? r === "all" ? "all" : new R(r) : e;
1529
- }
1530
- class rt {
1531
- /**
1532
- * The type of selection that is allowed in the collection.
1533
- */
1534
- get selectionMode() {
1535
- return this.state.selectionMode;
1536
- }
1537
- /**
1538
- * Whether the collection allows empty selection.
1539
- */
1540
- get disallowEmptySelection() {
1541
- return this.state.disallowEmptySelection;
1542
- }
1543
- /**
1544
- * The selection behavior for the collection.
1545
- */
1546
- get selectionBehavior() {
1547
- return this.state.selectionBehavior;
1548
- }
1549
- /**
1550
- * Sets the selection behavior for the collection.
1551
- */
1552
- setSelectionBehavior(e) {
1553
- this.state.setSelectionBehavior(e);
1554
- }
1555
- /**
1556
- * Whether the collection is currently focused.
1557
- */
1558
- get isFocused() {
1559
- return this.state.isFocused;
1560
- }
1561
- /**
1562
- * Sets whether the collection is focused.
1563
- */
1564
- setFocused(e) {
1565
- this.state.setFocused(e);
1566
- }
1567
- /**
1568
- * The current focused key in the collection.
1569
- */
1570
- get focusedKey() {
1571
- return this.state.focusedKey;
1572
- }
1573
- /** Whether the first or last child of the focused key should receive focus. */
1574
- get childFocusStrategy() {
1575
- return this.state.childFocusStrategy;
1576
- }
1577
- /**
1578
- * Sets the focused key.
1579
- */
1580
- setFocusedKey(e, t) {
1581
- (e == null || this.collection.getItem(e)) && this.state.setFocusedKey(e, t);
1582
- }
1583
- /**
1584
- * The currently selected keys in the collection.
1585
- */
1586
- get selectedKeys() {
1587
- return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
1588
- }
1589
- /**
1590
- * The raw selection value for the collection.
1591
- * Either 'all' for select all, or a set of keys.
1592
- */
1593
- get rawSelection() {
1594
- return this.state.selectedKeys;
1595
- }
1596
- /**
1597
- * Returns whether a key is selected.
1598
- */
1599
- isSelected(e) {
1600
- if (this.state.selectionMode === "none") return !1;
1601
- let t = this.getKey(e);
1602
- return t == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(t) : this.state.selectedKeys.has(t);
1603
- }
1604
- /**
1605
- * Whether the selection is empty.
1606
- */
1607
- get isEmpty() {
1608
- return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
1609
- }
1610
- /**
1611
- * Whether all items in the collection are selected.
1612
- */
1613
- get isSelectAll() {
1614
- if (this.isEmpty) return !1;
1615
- if (this.state.selectedKeys === "all") return !0;
1616
- if (this._isSelectAll != null) return this._isSelectAll;
1617
- let e = this.getSelectAllKeys(), t = this.state.selectedKeys;
1618
- return this._isSelectAll = e.every((i) => t.has(i)), this._isSelectAll;
1619
- }
1620
- get firstSelectedKey() {
1621
- let e = null;
1622
- for (let i of this.state.selectedKeys) {
1623
- let l = this.collection.getItem(i);
1624
- (!e || l && ye(this.collection, l, e) < 0) && (e = l);
1625
- }
1626
- var t;
1627
- return (t = e?.key) !== null && t !== void 0 ? t : null;
1628
- }
1629
- get lastSelectedKey() {
1630
- let e = null;
1631
- for (let i of this.state.selectedKeys) {
1632
- let l = this.collection.getItem(i);
1633
- (!e || l && ye(this.collection, l, e) > 0) && (e = l);
1634
- }
1635
- var t;
1636
- return (t = e?.key) !== null && t !== void 0 ? t : null;
1637
- }
1638
- get disabledKeys() {
1639
- return this.state.disabledKeys;
1640
- }
1641
- get disabledBehavior() {
1642
- return this.state.disabledBehavior;
1643
- }
1644
- /**
1645
- * Extends the selection to the given key.
1646
- */
1647
- extendSelection(e) {
1648
- if (this.selectionMode === "none") return;
1649
- if (this.selectionMode === "single") {
1650
- this.replaceSelection(e);
1651
- return;
1652
- }
1653
- let t = this.getKey(e);
1654
- if (t == null) return;
1655
- let i;
1656
- if (this.state.selectedKeys === "all") i = new R([
1657
- t
1658
- ], t, t);
1659
- else {
1660
- let s = this.state.selectedKeys;
1661
- var l;
1662
- let c = (l = s.anchorKey) !== null && l !== void 0 ? l : t;
1663
- i = new R(s, c, t);
1664
- var n;
1665
- for (let u of this.getKeyRange(c, (n = s.currentKey) !== null && n !== void 0 ? n : t)) i.delete(u);
1666
- for (let u of this.getKeyRange(t, c)) this.canSelectItem(u) && i.add(u);
1667
- }
1668
- this.state.setSelectedKeys(i);
1669
- }
1670
- getKeyRange(e, t) {
1671
- let i = this.collection.getItem(e), l = this.collection.getItem(t);
1672
- return i && l ? ye(this.collection, i, l) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
1673
- }
1674
- getKeyRangeInternal(e, t) {
1675
- var i;
1676
- if (!((i = this.layoutDelegate) === null || i === void 0) && i.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
1677
- let l = [], n = e;
1678
- for (; n != null; ) {
1679
- let s = this.collection.getItem(n);
1680
- if (s && (s.type === "item" || s.type === "cell" && this.allowsCellSelection) && l.push(n), n === t) return l;
1681
- n = this.collection.getKeyAfter(n);
1682
- }
1683
- return [];
1684
- }
1685
- getKey(e) {
1686
- let t = this.collection.getItem(e);
1687
- if (!t || t.type === "cell" && this.allowsCellSelection) return e;
1688
- for (; t && t.type !== "item" && t.parentKey != null; ) t = this.collection.getItem(t.parentKey);
1689
- return !t || t.type !== "item" ? null : t.key;
1690
- }
1691
- /**
1692
- * Toggles whether the given key is selected.
1693
- */
1694
- toggleSelection(e) {
1695
- if (this.selectionMode === "none") return;
1696
- if (this.selectionMode === "single" && !this.isSelected(e)) {
1697
- this.replaceSelection(e);
1698
- return;
1699
- }
1700
- let t = this.getKey(e);
1701
- if (t == null) return;
1702
- let i = new R(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
1703
- i.has(t) ? i.delete(t) : this.canSelectItem(t) && (i.add(t), i.anchorKey = t, i.currentKey = t), !(this.disallowEmptySelection && i.size === 0) && this.state.setSelectedKeys(i);
1704
- }
1705
- /**
1706
- * Replaces the selection with only the given key.
1707
- */
1708
- replaceSelection(e) {
1709
- if (this.selectionMode === "none") return;
1710
- let t = this.getKey(e);
1711
- if (t == null) return;
1712
- let i = this.canSelectItem(t) ? new R([
1713
- t
1714
- ], t, t) : new R();
1715
- this.state.setSelectedKeys(i);
1716
- }
1717
- /**
1718
- * Replaces the selection with the given keys.
1719
- */
1720
- setSelectedKeys(e) {
1721
- if (this.selectionMode === "none") return;
1722
- let t = new R();
1723
- for (let i of e) {
1724
- let l = this.getKey(i);
1725
- if (l != null && (t.add(l), this.selectionMode === "single"))
1726
- break;
1727
- }
1728
- this.state.setSelectedKeys(t);
1729
- }
1730
- getSelectAllKeys() {
1731
- let e = [], t = (i) => {
1732
- for (; i != null; ) {
1733
- if (this.canSelectItem(i)) {
1734
- var l;
1735
- let s = this.collection.getItem(i);
1736
- s?.type === "item" && e.push(i);
1737
- var n;
1738
- s?.hasChildNodes && (this.allowsCellSelection || s.type !== "item") && t((n = (l = Rt(At(s, this.collection))) === null || l === void 0 ? void 0 : l.key) !== null && n !== void 0 ? n : null);
1739
- }
1740
- i = this.collection.getKeyAfter(i);
1741
- }
1742
- };
1743
- return t(this.collection.getFirstKey()), e;
1744
- }
1745
- /**
1746
- * Selects all items in the collection.
1747
- */
1748
- selectAll() {
1749
- !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
1750
- }
1751
- /**
1752
- * Removes all keys from the selection.
1753
- */
1754
- clearSelection() {
1755
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new R());
1756
- }
1757
- /**
1758
- * Toggles between select all and an empty selection.
1759
- */
1760
- toggleSelectAll() {
1761
- this.isSelectAll ? this.clearSelection() : this.selectAll();
1762
- }
1763
- select(e, t) {
1764
- this.selectionMode !== "none" && (this.selectionMode === "single" ? this.isSelected(e) && !this.disallowEmptySelection ? this.toggleSelection(e) : this.replaceSelection(e) : this.selectionBehavior === "toggle" || t && (t.pointerType === "touch" || t.pointerType === "virtual") ? this.toggleSelection(e) : this.replaceSelection(e));
1765
- }
1766
- /**
1767
- * Returns whether the current selection is equal to the given selection.
1768
- */
1769
- isSelectionEqual(e) {
1770
- if (e === this.state.selectedKeys) return !0;
1771
- let t = this.selectedKeys;
1772
- if (e.size !== t.size) return !1;
1773
- for (let i of e)
1774
- if (!t.has(i)) return !1;
1775
- for (let i of t)
1776
- if (!e.has(i)) return !1;
1777
- return !0;
1778
- }
1779
- canSelectItem(e) {
1780
- var t;
1781
- if (this.state.selectionMode === "none" || this.state.disabledKeys.has(e)) return !1;
1782
- let i = this.collection.getItem(e);
1783
- return !(!i || !(i == null || (t = i.props) === null || t === void 0) && t.isDisabled || i.type === "cell" && !this.allowsCellSelection);
1784
- }
1785
- isDisabled(e) {
1786
- var t, i;
1787
- return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(e) || !!(!((i = this.collection.getItem(e)) === null || i === void 0 || (t = i.props) === null || t === void 0) && t.isDisabled));
1788
- }
1789
- isLink(e) {
1790
- var t, i;
1791
- return !!(!((i = this.collection.getItem(e)) === null || i === void 0 || (t = i.props) === null || t === void 0) && t.href);
1792
- }
1793
- getItemProps(e) {
1794
- var t;
1795
- return (t = this.collection.getItem(e)) === null || t === void 0 ? void 0 : t.props;
1796
- }
1797
- withCollection(e) {
1798
- return new rt(e, this.state, {
1799
- allowsCellSelection: this.allowsCellSelection,
1800
- layoutDelegate: this.layoutDelegate || void 0
1801
- });
1802
- }
1803
- constructor(e, t, i) {
1804
- this.collection = e, this.state = t;
1805
- var l;
1806
- this.allowsCellSelection = (l = i?.allowsCellSelection) !== null && l !== void 0 ? l : !1, this._isSelectAll = null, this.layoutDelegate = i?.layoutDelegate || null;
1807
- }
1808
- }
1809
- const Ci = /* @__PURE__ */ G(null), _t = {
1810
- CollectionRoot({ collection: r, renderDropIndicator: e }) {
1811
- return Ue(r, null, e);
1812
- },
1813
- CollectionBranch({ collection: r, parent: e, renderDropIndicator: t }) {
1814
- return Ue(r, e, t);
1815
- }
1816
- };
1817
- function Ue(r, e, t) {
1818
- return tt({
1819
- items: e ? r.getChildren(e.key) : r,
1820
- dependencies: [
1821
- t
1822
- ],
1823
- children(i) {
1824
- let l = i.render(i);
1825
- return !t || i.type !== "item" ? l : /* @__PURE__ */ S.createElement(S.Fragment, null, t({
1826
- type: "item",
1827
- key: i.key,
1828
- dropPosition: "before"
1829
- }), l, jt(r, i, t));
1830
- }
1831
- });
1832
- }
1833
- function jt(r, e, t) {
1834
- let i = e.key, l = r.getKeyAfter(i), n = l != null ? r.getItem(l) : null;
1835
- for (; n != null && n.type !== "item"; )
1836
- l = r.getKeyAfter(n.key), n = l != null ? r.getItem(l) : null;
1837
- let s = e.nextKey != null ? r.getItem(e.nextKey) : null;
1838
- for (; s != null && s.type !== "item"; ) s = s.nextKey != null ? r.getItem(s.nextKey) : null;
1839
- let c = [];
1840
- if (s == null) {
1841
- let u = e;
1842
- for (; u && (!n || u.parentKey !== n.parentKey && n.level < u.level); ) {
1843
- let v = t({
1844
- type: "item",
1845
- key: u.key,
1846
- dropPosition: "after"
1847
- });
1848
- /* @__PURE__ */ st(v) && c.push(/* @__PURE__ */ He(v, {
1849
- key: `${u.key}-after`
1850
- })), u = u.parentKey != null ? r.getItem(u.parentKey) : null;
1851
- }
1852
- }
1853
- return c;
1854
- }
1855
- const wi = /* @__PURE__ */ G(_t);
1856
- function Di(r) {
1857
- return B(() => r != null ? /* @__PURE__ */ new Set([
1858
- r
1859
- ]) : null, [
1860
- r
1861
- ]);
1862
- }
1863
- export {
1864
- pi as $,
1865
- tt as A,
1866
- xe as B,
1867
- $e as C,
1868
- xt as D,
1869
- xi as a,
1870
- gi as b,
1871
- rt as c,
1872
- Si as d,
1873
- Ki as e,
1874
- bi as f,
1875
- $i as g,
1876
- wi as h,
1877
- vi as i,
1878
- Ci as j,
1879
- It as k,
1880
- yi as l,
1881
- At as m,
1882
- Kt as n,
1883
- Ze as o,
1884
- St as p,
1885
- Ct as q,
1886
- Je as r,
1887
- q as s,
1888
- wt as t,
1889
- _t as u,
1890
- Di as v,
1891
- mi as w,
1892
- Rt as x,
1893
- Tt as y,
1894
- Ae as z
1895
- };
1896
- //# sourceMappingURL=Collection-DFZhstai.es.js.map