@commercetools/nimbus 0.0.0-canary-20251001152303 → 0.0.0-canary-20251006121034

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 (440) hide show
  1. package/dist/chunks/{Button-B6xR_FqM.es.js → Button-B4rWEUgy.es.js} +3 -3
  2. package/dist/chunks/{Button-B6xR_FqM.es.js.map → Button-B4rWEUgy.es.js.map} +1 -1
  3. package/dist/chunks/{Button-BBCRIYjC.cjs.js → Button-BX9V1fKa.cjs.js} +2 -2
  4. package/dist/chunks/{Button-BBCRIYjC.cjs.js.map → Button-BX9V1fKa.cjs.js.map} +1 -1
  5. package/dist/chunks/{Separator-HDKQdp4v.es.js → CollectionBuilder-CnAf_Hbh.es.js} +171 -220
  6. package/dist/chunks/CollectionBuilder-CnAf_Hbh.es.js.map +1 -0
  7. package/dist/chunks/CollectionBuilder-ktWuMEDl.cjs.js +18 -0
  8. package/dist/chunks/CollectionBuilder-ktWuMEDl.cjs.js.map +1 -0
  9. package/dist/chunks/{DateField-ilC6DQcU.es.js → DateField-CJaVAtIO.es.js} +29 -28
  10. package/dist/chunks/{DateField-ilC6DQcU.es.js.map → DateField-CJaVAtIO.es.js.map} +1 -1
  11. package/dist/chunks/DateField-bECiqmOq.cjs.js +2 -0
  12. package/dist/chunks/{DateField-XplnfOh0.cjs.js.map → DateField-bECiqmOq.cjs.js.map} +1 -1
  13. package/dist/chunks/{DatePicker-DmiNa1e-.es.js → DatePicker-CNFrZo-Y.es.js} +11 -11
  14. package/dist/chunks/{DatePicker-DmiNa1e-.es.js.map → DatePicker-CNFrZo-Y.es.js.map} +1 -1
  15. package/dist/chunks/{DatePicker-Cy1-NRmz.cjs.js → DatePicker-Jp1k0J8J.cjs.js} +2 -2
  16. package/dist/chunks/{DatePicker-Cy1-NRmz.cjs.js.map → DatePicker-Jp1k0J8J.cjs.js.map} +1 -1
  17. package/dist/chunks/{Dialog-SvkYfu5i.es.js → Dialog-BES3uitF.es.js} +34 -32
  18. package/dist/chunks/{Dialog-SvkYfu5i.es.js.map → Dialog-BES3uitF.es.js.map} +1 -1
  19. package/dist/chunks/Dialog-BjViQ1kS.cjs.js +2 -0
  20. package/dist/chunks/{Dialog-BhqTE75I.cjs.js.map → Dialog-BjViQ1kS.cjs.js.map} +1 -1
  21. package/dist/chunks/DragAndDrop-BHROhXqz.cjs.js +2 -0
  22. package/dist/chunks/DragAndDrop-BHROhXqz.cjs.js.map +1 -0
  23. package/dist/chunks/DragAndDrop-pO79ecrt.es.js +76 -0
  24. package/dist/chunks/DragAndDrop-pO79ecrt.es.js.map +1 -0
  25. package/dist/chunks/{FocusScope-9EbM1-n6.es.js → FocusScope-DX4XeOlU.es.js} +3 -3
  26. package/dist/chunks/{FocusScope-9EbM1-n6.es.js.map → FocusScope-DX4XeOlU.es.js.map} +1 -1
  27. package/dist/chunks/{Group-DI0poa1g.es.js → Group-BxpOGeri.es.js} +2 -2
  28. package/dist/chunks/{Group-DI0poa1g.es.js.map → Group-BxpOGeri.es.js.map} +1 -1
  29. package/dist/chunks/{Header-CnkbxL1Z.es.js → Header-Ct80DBHo.es.js} +16 -15
  30. package/dist/chunks/{Header-CnkbxL1Z.es.js.map → Header-Ct80DBHo.es.js.map} +1 -1
  31. package/dist/chunks/Header-DaJELAp2.cjs.js +2 -0
  32. package/dist/chunks/{Header-BzYpow-F.cjs.js.map → Header-DaJELAp2.cjs.js.map} +1 -1
  33. package/dist/chunks/Heading-DTQGnC9u.cjs.js +2 -0
  34. package/dist/chunks/{Heading-B83Y0yT_.cjs.js.map → Heading-DTQGnC9u.cjs.js.map} +1 -1
  35. package/dist/chunks/{Heading-DK3LFGss.es.js → Heading-XAXXCxH_.es.js} +19 -18
  36. package/dist/chunks/{Heading-DK3LFGss.es.js.map → Heading-XAXXCxH_.es.js.map} +1 -1
  37. package/dist/chunks/{Input-C_bvHj-u.es.js → Input-PIGi4zSb.es.js} +2 -2
  38. package/dist/chunks/{Input-C_bvHj-u.es.js.map → Input-PIGi4zSb.es.js.map} +1 -1
  39. package/dist/chunks/{Label-DJtK5B3m.es.js → Label-Bnr234yV.es.js} +2 -2
  40. package/dist/chunks/{Label-DJtK5B3m.es.js.map → Label-Bnr234yV.es.js.map} +1 -1
  41. package/dist/chunks/ListBox-Cvau7xVd.es.js +482 -0
  42. package/dist/chunks/ListBox-Cvau7xVd.es.js.map +1 -0
  43. package/dist/chunks/ListBox-a0CeLtdT.cjs.js +2 -0
  44. package/dist/chunks/ListBox-a0CeLtdT.cjs.js.map +1 -0
  45. package/dist/chunks/ListKeyboardDelegate-BVAEoSYa.es.js +159 -0
  46. package/dist/chunks/ListKeyboardDelegate-BVAEoSYa.es.js.map +1 -0
  47. package/dist/chunks/ListKeyboardDelegate-CQ06Y8PS.cjs.js +2 -0
  48. package/dist/chunks/ListKeyboardDelegate-CQ06Y8PS.cjs.js.map +1 -0
  49. package/dist/chunks/{ProgressBar-BTjAZZI-.es.js → ProgressBar-8CLctnNS.es.js} +4 -4
  50. package/dist/chunks/{ProgressBar-BTjAZZI-.es.js.map → ProgressBar-8CLctnNS.es.js.map} +1 -1
  51. package/dist/chunks/{ProgressBar-BA3sLh1k.cjs.js → ProgressBar-C9Y3C7_B.cjs.js} +2 -2
  52. package/dist/chunks/{ProgressBar-BA3sLh1k.cjs.js.map → ProgressBar-C9Y3C7_B.cjs.js.map} +1 -1
  53. package/dist/chunks/SelectionManager-D0SrvztK.cjs.js +2 -0
  54. package/dist/chunks/SelectionManager-D0SrvztK.cjs.js.map +1 -0
  55. package/dist/chunks/SelectionManager-ZjjLBkhT.es.js +1112 -0
  56. package/dist/chunks/SelectionManager-ZjjLBkhT.es.js.map +1 -0
  57. package/dist/chunks/Separator-ByzNXVMY.cjs.js +2 -0
  58. package/dist/chunks/Separator-ByzNXVMY.cjs.js.map +1 -0
  59. package/dist/chunks/Separator-uzjdFtzc.es.js +55 -0
  60. package/dist/chunks/Separator-uzjdFtzc.es.js.map +1 -0
  61. package/dist/chunks/{TextArea-P6n8ajPu.es.js → TextArea-C1f7sxZE.es.js} +2 -2
  62. package/dist/chunks/{TextArea-P6n8ajPu.es.js.map → TextArea-C1f7sxZE.es.js.map} +1 -1
  63. package/dist/chunks/{ToggleButton-Xg4v21hw.es.js → ToggleButton-fDDAsgbh.es.js} +3 -3
  64. package/dist/chunks/{ToggleButton-Xg4v21hw.es.js.map → ToggleButton-fDDAsgbh.es.js.map} +1 -1
  65. package/dist/chunks/{accordion-CdIEuDDs.cjs.js → accordion-CTf-EezL.cjs.js} +2 -2
  66. package/dist/chunks/{accordion-CdIEuDDs.cjs.js.map → accordion-CTf-EezL.cjs.js.map} +1 -1
  67. package/dist/chunks/{accordion-1xPIt07g.es.js → accordion-CrhSXh2g.es.js} +4 -4
  68. package/dist/chunks/{accordion-1xPIt07g.es.js.map → accordion-CrhSXh2g.es.js.map} +1 -1
  69. package/dist/chunks/{alert-CZEBRJ9p.cjs.js → alert-1SD3W0NM.cjs.js} +2 -2
  70. package/dist/chunks/{alert-CZEBRJ9p.cjs.js.map → alert-1SD3W0NM.cjs.js.map} +1 -1
  71. package/dist/chunks/{alert-Blp_hf9F.es.js → alert-CXasIq6Y.es.js} +2 -2
  72. package/dist/chunks/{alert-Blp_hf9F.es.js.map → alert-CXasIq6Y.es.js.map} +1 -1
  73. package/dist/chunks/{button-tLehmoCt.es.js → button-B217AifM.es.js} +4 -4
  74. package/dist/chunks/{button-tLehmoCt.es.js.map → button-B217AifM.es.js.map} +1 -1
  75. package/dist/chunks/{button-BSWhqzIJ.cjs.js → button-BhVhRwdZ.cjs.js} +2 -2
  76. package/dist/chunks/{button-BSWhqzIJ.cjs.js.map → button-BhVhRwdZ.cjs.js.map} +1 -1
  77. package/dist/chunks/{calendar-xPQsLl6L.cjs.js → calendar-DZ6QCilR.cjs.js} +2 -2
  78. package/dist/chunks/{calendar-xPQsLl6L.cjs.js.map → calendar-DZ6QCilR.cjs.js.map} +1 -1
  79. package/dist/chunks/{calendar-B58zfVhs.es.js → calendar-euzrPJOE.es.js} +8 -8
  80. package/dist/chunks/{calendar-B58zfVhs.es.js.map → calendar-euzrPJOE.es.js.map} +1 -1
  81. package/dist/chunks/{checkbox-CLR3YHZW.cjs.js → checkbox-B9rVYe9E.cjs.js} +2 -2
  82. package/dist/chunks/{checkbox-CLR3YHZW.cjs.js.map → checkbox-B9rVYe9E.cjs.js.map} +1 -1
  83. package/dist/chunks/{checkbox-D1Y9DVYF.es.js → checkbox-qG3rh1-g.es.js} +3 -3
  84. package/dist/chunks/{checkbox-D1Y9DVYF.es.js.map → checkbox-qG3rh1-g.es.js.map} +1 -1
  85. package/dist/chunks/{collapsible-motion-BvdtYGQE.es.js → collapsible-motion-CAkBCbL5.es.js} +3 -3
  86. package/dist/chunks/{collapsible-motion-BvdtYGQE.es.js.map → collapsible-motion-CAkBCbL5.es.js.map} +1 -1
  87. package/dist/chunks/{collapsible-motion-D3QM37Qz.cjs.js → collapsible-motion-DcEuO0Jb.cjs.js} +2 -2
  88. package/dist/chunks/{collapsible-motion-D3QM37Qz.cjs.js.map → collapsible-motion-DcEuO0Jb.cjs.js.map} +1 -1
  89. package/dist/chunks/{combobox-BWJoplDo.es.js → combobox-C36COJXy.es.js} +436 -433
  90. package/dist/chunks/{combobox-BWJoplDo.es.js.map → combobox-C36COJXy.es.js.map} +1 -1
  91. package/dist/chunks/combobox-kAy7Um1J.cjs.js +2 -0
  92. package/dist/chunks/{combobox-B60AWpPC.cjs.js.map → combobox-kAy7Um1J.cjs.js.map} +1 -1
  93. package/dist/chunks/context-C2UT8Mt7.es.js +7 -0
  94. package/dist/chunks/context-C2UT8Mt7.es.js.map +1 -0
  95. package/dist/chunks/context-DZZvJXRR.cjs.js +2 -0
  96. package/dist/chunks/context-DZZvJXRR.cjs.js.map +1 -0
  97. package/dist/chunks/{data-table-D4e35rxu.es.js → data-table-Cb4Mijem.es.js} +69 -64
  98. package/dist/chunks/{data-table-D4e35rxu.es.js.map → data-table-Cb4Mijem.es.js.map} +1 -1
  99. package/dist/chunks/data-table-DLEAOjew.cjs.js +2 -0
  100. package/dist/chunks/{data-table-BJVv7I8A.cjs.js.map → data-table-DLEAOjew.cjs.js.map} +1 -1
  101. package/dist/chunks/{date-input-CK3WtPkJ.cjs.js → date-input-BgYuUcmm.cjs.js} +2 -2
  102. package/dist/chunks/{date-input-CK3WtPkJ.cjs.js.map → date-input-BgYuUcmm.cjs.js.map} +1 -1
  103. package/dist/chunks/{date-input-Daj_CPWN.es.js → date-input-CjCaMm5y.es.js} +4 -4
  104. package/dist/chunks/{date-input-Daj_CPWN.es.js.map → date-input-CjCaMm5y.es.js.map} +1 -1
  105. package/dist/chunks/{date-picker-mE3ZgF5x.cjs.js → date-picker-B_DRiOBl.cjs.js} +2 -2
  106. package/dist/chunks/{date-picker-mE3ZgF5x.cjs.js.map → date-picker-B_DRiOBl.cjs.js.map} +1 -1
  107. package/dist/chunks/{date-picker-BLb_IHhd.es.js → date-picker-h7yCCEf6.es.js} +14 -14
  108. package/dist/chunks/{date-picker-BLb_IHhd.es.js.map → date-picker-h7yCCEf6.es.js.map} +1 -1
  109. package/dist/chunks/{date-range-picker--g9Bzar4.cjs.js → date-range-picker-mZXccOfF.cjs.js} +2 -2
  110. package/dist/chunks/{date-range-picker--g9Bzar4.cjs.js.map → date-range-picker-mZXccOfF.cjs.js.map} +1 -1
  111. package/dist/chunks/{date-range-picker-B5KfWxe9.es.js → date-range-picker-sR1EqD5o.es.js} +14 -14
  112. package/dist/chunks/{date-range-picker-B5KfWxe9.es.js.map → date-range-picker-sR1EqD5o.es.js.map} +1 -1
  113. package/dist/chunks/{dialog-Bx0O1gKI.es.js → dialog-c3MhpudZ.es.js} +2 -2
  114. package/dist/chunks/{dialog-Bx0O1gKI.es.js.map → dialog-c3MhpudZ.es.js.map} +1 -1
  115. package/dist/chunks/{dialog-Bech4WpU.cjs.js → dialog-stSUnU4Z.cjs.js} +2 -2
  116. package/dist/chunks/{dialog-Bech4WpU.cjs.js.map → dialog-stSUnU4Z.cjs.js.map} +1 -1
  117. package/dist/chunks/{dialog.title-CfwJLUeB.es.js → dialog.title-BQzTm9Ja.es.js} +8 -8
  118. package/dist/chunks/{dialog.title-CfwJLUeB.es.js.map → dialog.title-BQzTm9Ja.es.js.map} +1 -1
  119. package/dist/chunks/{dialog.title-RLHmO1dx.cjs.js → dialog.title-a62Dfq9N.cjs.js} +2 -2
  120. package/dist/chunks/{dialog.title-RLHmO1dx.cjs.js.map → dialog.title-a62Dfq9N.cjs.js.map} +1 -1
  121. package/dist/chunks/{extractStyleProps-DjVNA871.es.js → extractStyleProps-X2q7HF5R.es.js} +2 -2
  122. package/dist/chunks/{extractStyleProps-DjVNA871.es.js.map → extractStyleProps-X2q7HF5R.es.js.map} +1 -1
  123. package/dist/chunks/{extractStyleProps-Q5HTdHwJ.cjs.js → extractStyleProps-Y0FOIaxn.cjs.js} +2 -2
  124. package/dist/chunks/{extractStyleProps-Q5HTdHwJ.cjs.js.map → extractStyleProps-Y0FOIaxn.cjs.js.map} +1 -1
  125. package/dist/chunks/{form-field-8JwWMQy1.cjs.js → form-field-CjukL5Yf.cjs.js} +2 -2
  126. package/dist/chunks/{form-field-8JwWMQy1.cjs.js.map → form-field-CjukL5Yf.cjs.js.map} +1 -1
  127. package/dist/chunks/{form-field-BBRdeEEq.es.js → form-field-qKegjjTB.es.js} +4 -4
  128. package/dist/chunks/{form-field-BBRdeEEq.es.js.map → form-field-qKegjjTB.es.js.map} +1 -1
  129. package/dist/chunks/getScrollParent-BP68S0-T.es.js +10 -0
  130. package/dist/chunks/getScrollParent-BP68S0-T.es.js.map +1 -0
  131. package/dist/chunks/getScrollParent-DMjBbTR5.cjs.js +2 -0
  132. package/dist/chunks/getScrollParent-DMjBbTR5.cjs.js.map +1 -0
  133. package/dist/chunks/{group-DRLYSxIt.es.js → group-Bkcnezrb.es.js} +2 -2
  134. package/dist/chunks/{group-DRLYSxIt.es.js.map → group-Bkcnezrb.es.js.map} +1 -1
  135. package/dist/chunks/{heading-C3E6ZfYZ.es.js → heading-BcPZEIqe.es.js} +2 -2
  136. package/dist/chunks/{heading-C3E6ZfYZ.es.js.map → heading-BcPZEIqe.es.js.map} +1 -1
  137. package/dist/chunks/{icon-button-CctfLs8I.es.js → icon-button-Cbuscfqi.es.js} +2 -2
  138. package/dist/chunks/{icon-button-CctfLs8I.es.js.map → icon-button-Cbuscfqi.es.js.map} +1 -1
  139. package/dist/chunks/{icon-button-BeIGRIFN.cjs.js → icon-button-D31vHiXo.cjs.js} +2 -2
  140. package/dist/chunks/{icon-button-BeIGRIFN.cjs.js.map → icon-button-D31vHiXo.cjs.js.map} +1 -1
  141. package/dist/chunks/{icon-toggle-button-ONFPX0qS.cjs.js → icon-toggle-button-BpiDxtRW.cjs.js} +2 -2
  142. package/dist/chunks/{icon-toggle-button-ONFPX0qS.cjs.js.map → icon-toggle-button-BpiDxtRW.cjs.js.map} +1 -1
  143. package/dist/chunks/{icon-toggle-button-0s_KaTfe.es.js → icon-toggle-button-BvziQy83.es.js} +2 -2
  144. package/dist/chunks/{icon-toggle-button-0s_KaTfe.es.js.map → icon-toggle-button-BvziQy83.es.js.map} +1 -1
  145. package/dist/chunks/{index-SuWPp512.cjs.js → index-BER2ZcrK.cjs.js} +5 -5
  146. package/dist/chunks/index-BER2ZcrK.cjs.js.map +1 -0
  147. package/dist/chunks/{index-fjbcWgyz.es.js → index-Rp8alyOt.es.js} +364 -79
  148. package/dist/chunks/index-Rp8alyOt.es.js.map +1 -0
  149. package/dist/chunks/inertValue-B3AFhVG4.cjs.js +2 -0
  150. package/dist/chunks/inertValue-B3AFhVG4.cjs.js.map +1 -0
  151. package/dist/chunks/inertValue-B7loUihk.es.js +9 -0
  152. package/dist/chunks/inertValue-B7loUihk.es.js.map +1 -0
  153. package/dist/chunks/{kbd-DwetANiO.es.js → kbd-B-9k-UDU.es.js} +2 -2
  154. package/dist/chunks/{kbd-DwetANiO.es.js.map → kbd-B-9k-UDU.es.js.map} +1 -1
  155. package/dist/chunks/{loading-spinner-CcVJ_X-1.es.js → loading-spinner-Bh75bpAx.es.js} +2 -2
  156. package/dist/chunks/{loading-spinner-CcVJ_X-1.es.js.map → loading-spinner-Bh75bpAx.es.js.map} +1 -1
  157. package/dist/chunks/{loading-spinner-CSKBo1bM.cjs.js → loading-spinner-DDhqsR0J.cjs.js} +2 -2
  158. package/dist/chunks/{loading-spinner-CSKBo1bM.cjs.js.map → loading-spinner-DDhqsR0J.cjs.js.map} +1 -1
  159. package/dist/chunks/localized-field-Da_lO0Xv.cjs.js +2 -0
  160. package/dist/chunks/{localized-field-hQsX33XN.cjs.js.map → localized-field-Da_lO0Xv.cjs.js.map} +1 -1
  161. package/dist/chunks/{localized-field-C2cbHq3g.es.js → localized-field-jmL7ErGy.es.js} +13 -13
  162. package/dist/chunks/{localized-field-C2cbHq3g.es.js.map → localized-field-jmL7ErGy.es.js.map} +1 -1
  163. package/dist/chunks/menu-CbZRD4Zi.cjs.js +2 -0
  164. package/dist/chunks/{menu-CbBblVAx.cjs.js.map → menu-CbZRD4Zi.cjs.js.map} +1 -1
  165. package/dist/chunks/{menu-BjwsANQd.es.js → menu-D_dDdteu.es.js} +7 -7
  166. package/dist/chunks/{menu-BjwsANQd.es.js.map → menu-D_dDdteu.es.js.map} +1 -1
  167. package/dist/chunks/{money-input-Cs8XrifY.es.js → money-input-CSG-fXjp.es.js} +6 -6
  168. package/dist/chunks/{money-input-Cs8XrifY.es.js.map → money-input-CSG-fXjp.es.js.map} +1 -1
  169. package/dist/chunks/{money-input-CdGqdo4S.cjs.js → money-input-yydxUj05.cjs.js} +2 -2
  170. package/dist/chunks/{money-input-CdGqdo4S.cjs.js.map → money-input-yydxUj05.cjs.js.map} +1 -1
  171. package/dist/chunks/{multiline-text-input-n_bb3ViF.cjs.js → multiline-text-input-CBVUPT8X.cjs.js} +2 -2
  172. package/dist/chunks/{multiline-text-input-n_bb3ViF.cjs.js.map → multiline-text-input-CBVUPT8X.cjs.js.map} +1 -1
  173. package/dist/chunks/{multiline-text-input-DGMceBRu.es.js → multiline-text-input-CKTjmjYI.es.js} +4 -4
  174. package/dist/chunks/{multiline-text-input-DGMceBRu.es.js.map → multiline-text-input-CKTjmjYI.es.js.map} +1 -1
  175. package/dist/chunks/{nimbus-provider-BND7wasE.es.js → nimbus-provider-DpLvY2wG.es.js} +2 -2
  176. package/dist/chunks/{nimbus-provider-BND7wasE.es.js.map → nimbus-provider-DpLvY2wG.es.js.map} +1 -1
  177. package/dist/chunks/{nimbus-provider-ChYtQ95-.cjs.js → nimbus-provider-QPipJ-cQ.cjs.js} +2 -2
  178. package/dist/chunks/{nimbus-provider-ChYtQ95-.cjs.js.map → nimbus-provider-QPipJ-cQ.cjs.js.map} +1 -1
  179. package/dist/chunks/{number-input-BQvDkOaw.cjs.js → number-input-DsdncH9m.cjs.js} +2 -2
  180. package/dist/chunks/{number-input-BQvDkOaw.cjs.js.map → number-input-DsdncH9m.cjs.js.map} +1 -1
  181. package/dist/chunks/{number-input-DVUK5Vqy.es.js → number-input-bsf603FR.es.js} +7 -7
  182. package/dist/chunks/{number-input-DVUK5Vqy.es.js.map → number-input-bsf603FR.es.js.map} +1 -1
  183. package/dist/chunks/{pagination-DtowryRO.cjs.js → pagination-CZlgjftl.cjs.js} +2 -2
  184. package/dist/chunks/{pagination-DtowryRO.cjs.js.map → pagination-CZlgjftl.cjs.js.map} +1 -1
  185. package/dist/chunks/{pagination-BOCer9DU.es.js → pagination-CiGXK9Nx.es.js} +5 -5
  186. package/dist/chunks/{pagination-BOCer9DU.es.js.map → pagination-CiGXK9Nx.es.js.map} +1 -1
  187. package/dist/chunks/{password-input-Brdfp_j8.es.js → password-input-BPXjJmT0.es.js} +4 -4
  188. package/dist/chunks/{password-input-Brdfp_j8.es.js.map → password-input-BPXjJmT0.es.js.map} +1 -1
  189. package/dist/chunks/{password-input-B-YRh6bw.cjs.js → password-input-SzoKF46U.cjs.js} +2 -2
  190. package/dist/chunks/{password-input-B-YRh6bw.cjs.js.map → password-input-SzoKF46U.cjs.js.map} +1 -1
  191. package/dist/chunks/{popover-diWkZ07x.es.js → popover-CbT_ZnVZ.es.js} +2 -2
  192. package/dist/chunks/{popover-diWkZ07x.es.js.map → popover-CbT_ZnVZ.es.js.map} +1 -1
  193. package/dist/chunks/{popover-QYDVIaQN.cjs.js → popover-CsS8xrcN.cjs.js} +2 -2
  194. package/dist/chunks/{popover-QYDVIaQN.cjs.js.map → popover-CsS8xrcN.cjs.js.map} +1 -1
  195. package/dist/chunks/{progress-bar-hYGJlvcE.es.js → progress-bar-6kijUYy7.es.js} +4 -4
  196. package/dist/chunks/{progress-bar-hYGJlvcE.es.js.map → progress-bar-6kijUYy7.es.js.map} +1 -1
  197. package/dist/chunks/{progress-bar-m6NsCg7W.cjs.js → progress-bar-CZWi2j-A.cjs.js} +2 -2
  198. package/dist/chunks/{progress-bar-m6NsCg7W.cjs.js.map → progress-bar-CZWi2j-A.cjs.js.map} +1 -1
  199. package/dist/chunks/{radio-input-CVk4E1vl.cjs.js → radio-input-BQnglpND.cjs.js} +2 -2
  200. package/dist/chunks/{radio-input-CVk4E1vl.cjs.js.map → radio-input-BQnglpND.cjs.js.map} +1 -1
  201. package/dist/chunks/{radio-input-DpkravQW.es.js → radio-input-D3wcXcML.es.js} +7 -7
  202. package/dist/chunks/{radio-input-DpkravQW.es.js.map → radio-input-D3wcXcML.es.js.map} +1 -1
  203. package/dist/chunks/{range-calendar-BA_Ep3Zy.cjs.js → range-calendar-1fYdOUsX.cjs.js} +2 -2
  204. package/dist/chunks/{range-calendar-BA_Ep3Zy.cjs.js.map → range-calendar-1fYdOUsX.cjs.js.map} +1 -1
  205. package/dist/chunks/{range-calendar-4rEdNmr4.es.js → range-calendar-6jFNAEAg.es.js} +8 -8
  206. package/dist/chunks/{range-calendar-4rEdNmr4.es.js.map → range-calendar-6jFNAEAg.es.js.map} +1 -1
  207. package/dist/chunks/{rich-text-input-DxCnw4AP.cjs.js → rich-text-input-BuUFifqH.cjs.js} +2 -2
  208. package/dist/chunks/{rich-text-input-DxCnw4AP.cjs.js.map → rich-text-input-BuUFifqH.cjs.js.map} +1 -1
  209. package/dist/chunks/{rich-text-input-MyC1ucSo.es.js → rich-text-input-y3Ztu4u-.es.js} +11 -11
  210. package/dist/chunks/{rich-text-input-MyC1ucSo.es.js.map → rich-text-input-y3Ztu4u-.es.js.map} +1 -1
  211. package/dist/chunks/scrollIntoView-BMOHri7A.es.js +88 -0
  212. package/dist/chunks/scrollIntoView-BMOHri7A.es.js.map +1 -0
  213. package/dist/chunks/scrollIntoView-BUxnYRy-.cjs.js +2 -0
  214. package/dist/chunks/scrollIntoView-BUxnYRy-.cjs.js.map +1 -0
  215. package/dist/chunks/search-input-B33iZIwM.cjs.js +2 -0
  216. package/dist/chunks/search-input-B33iZIwM.cjs.js.map +1 -0
  217. package/dist/chunks/search-input-C0VUR3O4.es.js +361 -0
  218. package/dist/chunks/search-input-C0VUR3O4.es.js.map +1 -0
  219. package/dist/chunks/select-BqdAI1d_.cjs.js +2 -0
  220. package/dist/chunks/{select-ARr1JS_7.cjs.js.map → select-BqdAI1d_.cjs.js.map} +1 -1
  221. package/dist/chunks/{select-Du-L0KgJ.es.js → select-E5CfVqRs.es.js} +28 -27
  222. package/dist/chunks/{select-Du-L0KgJ.es.js.map → select-E5CfVqRs.es.js.map} +1 -1
  223. package/dist/chunks/{separator-CqI23She.cjs.js → separator-CS7cUP_r.cjs.js} +2 -2
  224. package/dist/chunks/{separator-CqI23She.cjs.js.map → separator-CS7cUP_r.cjs.js.map} +1 -1
  225. package/dist/chunks/{separator-DgdTy5cy.es.js → separator-k-QUBrJe.es.js} +3 -3
  226. package/dist/chunks/{separator-DgdTy5cy.es.js.map → separator-k-QUBrJe.es.js.map} +1 -1
  227. package/dist/chunks/{split-button-R-totPZa.es.js → split-button-BSxaJzSu.es.js} +5 -5
  228. package/dist/chunks/{split-button-R-totPZa.es.js.map → split-button-BSxaJzSu.es.js.map} +1 -1
  229. package/dist/chunks/{split-button-I1ltM4Vj.cjs.js → split-button-kxg9fMmr.cjs.js} +2 -2
  230. package/dist/chunks/{split-button-I1ltM4Vj.cjs.js.map → split-button-kxg9fMmr.cjs.js.map} +1 -1
  231. package/dist/chunks/{switch-DZ8nNXLD.es.js → switch-D7qvzxdp.es.js} +3 -3
  232. package/dist/chunks/{switch-DZ8nNXLD.es.js.map → switch-D7qvzxdp.es.js.map} +1 -1
  233. package/dist/chunks/{switch-CWUuLZOP.cjs.js → switch-Dz5p7iWo.cjs.js} +2 -2
  234. package/dist/chunks/{switch-CWUuLZOP.cjs.js.map → switch-Dz5p7iWo.cjs.js.map} +1 -1
  235. package/dist/chunks/tabs-Cr0ipoWy.cjs.js +2 -0
  236. package/dist/chunks/tabs-Cr0ipoWy.cjs.js.map +1 -0
  237. package/dist/chunks/tabs-paRlExWA.es.js +430 -0
  238. package/dist/chunks/tabs-paRlExWA.es.js.map +1 -0
  239. package/dist/chunks/{tag-group-85VbFf5V.es.js → tag-group-C8YHWK4s.es.js} +114 -109
  240. package/dist/chunks/{tag-group-85VbFf5V.es.js.map → tag-group-C8YHWK4s.es.js.map} +1 -1
  241. package/dist/chunks/tag-group-DzP8p-QW.cjs.js +2 -0
  242. package/dist/chunks/{tag-group-B5zBt0aa.cjs.js.map → tag-group-DzP8p-QW.cjs.js.map} +1 -1
  243. package/dist/chunks/{text-05SUCJIk.es.js → text-hbdb3OKq.es.js} +2 -2
  244. package/dist/chunks/{text-05SUCJIk.es.js.map → text-hbdb3OKq.es.js.map} +1 -1
  245. package/dist/chunks/{text-input-CaBBSE9c.cjs.js → text-input-Cou0PlND.cjs.js} +2 -2
  246. package/dist/chunks/{text-input-CaBBSE9c.cjs.js.map → text-input-Cou0PlND.cjs.js.map} +1 -1
  247. package/dist/chunks/{text-input-iDHRgozX.es.js → text-input-DnnGLiDh.es.js} +5 -5
  248. package/dist/chunks/{text-input-iDHRgozX.es.js.map → text-input-DnnGLiDh.es.js.map} +1 -1
  249. package/dist/chunks/{time-input-DUfC3pNm.es.js → time-input-BITK76gN.es.js} +3 -3
  250. package/dist/chunks/{time-input-DUfC3pNm.es.js.map → time-input-BITK76gN.es.js.map} +1 -1
  251. package/dist/chunks/{time-input-YZY-GzT7.cjs.js → time-input-CCEpvukz.cjs.js} +2 -2
  252. package/dist/chunks/{time-input-YZY-GzT7.cjs.js.map → time-input-CCEpvukz.cjs.js.map} +1 -1
  253. package/dist/chunks/{toggle-button-BFJvsG3g.es.js → toggle-button-Bj1GlXaK.es.js} +4 -4
  254. package/dist/chunks/{toggle-button-BFJvsG3g.es.js.map → toggle-button-Bj1GlXaK.es.js.map} +1 -1
  255. package/dist/chunks/{toggle-button-BKz5tJB3.cjs.js → toggle-button-DJsTTTOM.cjs.js} +2 -2
  256. package/dist/chunks/{toggle-button-BKz5tJB3.cjs.js.map → toggle-button-DJsTTTOM.cjs.js.map} +1 -1
  257. package/dist/chunks/{toggle-button-group-CYpa7G3-.es.js → toggle-button-group-DAEAd7Nm.es.js} +2 -2
  258. package/dist/chunks/{toggle-button-group-CYpa7G3-.es.js.map → toggle-button-group-DAEAd7Nm.es.js.map} +1 -1
  259. package/dist/chunks/{toolbar-BbuClYWc.cjs.js → toolbar-CF3BTufP.cjs.js} +2 -2
  260. package/dist/chunks/{toolbar-BbuClYWc.cjs.js.map → toolbar-CF3BTufP.cjs.js.map} +1 -1
  261. package/dist/chunks/{toolbar-kJJMLzLV.es.js → toolbar-vfoF3ud8.es.js} +5 -5
  262. package/dist/chunks/{toolbar-kJJMLzLV.es.js.map → toolbar-vfoF3ud8.es.js.map} +1 -1
  263. package/dist/chunks/{tooltip-B8OD-6ed.es.js → tooltip-DizSCM3_.es.js} +2 -2
  264. package/dist/chunks/{tooltip-B8OD-6ed.es.js.map → tooltip-DizSCM3_.es.js.map} +1 -1
  265. package/dist/chunks/{useField-BHGdzEiI.es.js → useField-B0j4t47V.es.js} +2 -2
  266. package/dist/chunks/{useField-BHGdzEiI.es.js.map → useField-B0j4t47V.es.js.map} +1 -1
  267. package/dist/chunks/{useField-DmqO9k7a.cjs.js → useField-C_piDZ9g.cjs.js} +2 -2
  268. package/dist/chunks/{useField-DmqO9k7a.cjs.js.map → useField-C_piDZ9g.cjs.js.map} +1 -1
  269. package/dist/chunks/useHasTabbableChild-C3FHoie4.es.js +35 -0
  270. package/dist/chunks/useHasTabbableChild-C3FHoie4.es.js.map +1 -0
  271. package/dist/chunks/useHasTabbableChild-DJr0E8t3.cjs.js +2 -0
  272. package/dist/chunks/useHasTabbableChild-DJr0E8t3.cjs.js.map +1 -0
  273. package/dist/chunks/{useHighlightSelectionDescription-pmA2R2J7.es.js → useHighlightSelectionDescription-DVczidDc.es.js} +72 -102
  274. package/dist/chunks/useHighlightSelectionDescription-DVczidDc.es.js.map +1 -0
  275. package/dist/chunks/useHighlightSelectionDescription-za7k4xi0.cjs.js +2 -0
  276. package/dist/chunks/useHighlightSelectionDescription-za7k4xi0.cjs.js.map +1 -0
  277. package/dist/chunks/useLabel-Cv-EvK4W.es.js +24 -0
  278. package/dist/chunks/useLabel-Cv-EvK4W.es.js.map +1 -0
  279. package/dist/chunks/useLabel-neE14Yau.cjs.js +2 -0
  280. package/dist/chunks/useLabel-neE14Yau.cjs.js.map +1 -0
  281. package/dist/chunks/useLabels-82wzG8z1.es.js +18 -0
  282. package/dist/chunks/useLabels-82wzG8z1.es.js.map +1 -0
  283. package/dist/chunks/useLabels-BsHtLxGl.cjs.js +2 -0
  284. package/dist/chunks/useLabels-BsHtLxGl.cjs.js.map +1 -0
  285. package/dist/chunks/useListState-B0BkBIvd.cjs.js +2 -0
  286. package/dist/chunks/useListState-B0BkBIvd.cjs.js.map +1 -0
  287. package/dist/chunks/useListState-B0YyV_fC.es.js +134 -0
  288. package/dist/chunks/useListState-B0YyV_fC.es.js.map +1 -0
  289. package/dist/chunks/{useProgressBar-C9zDMfHv.es.js → useProgressBar-BsSMDAsi.es.js} +2 -2
  290. package/dist/chunks/{useProgressBar-C9zDMfHv.es.js.map → useProgressBar-BsSMDAsi.es.js.map} +1 -1
  291. package/dist/chunks/{useProgressBar-DWH4I0qR.cjs.js → useProgressBar-COda2Qef.cjs.js} +2 -2
  292. package/dist/chunks/{useProgressBar-DWH4I0qR.cjs.js.map → useProgressBar-COda2Qef.cjs.js.map} +1 -1
  293. package/dist/chunks/{useSingleSelectListState-CYgE8tvg.es.js → useSingleSelectListState-D9X8vhB2.es.js} +2 -2
  294. package/dist/chunks/{useSingleSelectListState-CYgE8tvg.es.js.map → useSingleSelectListState-D9X8vhB2.es.js.map} +1 -1
  295. package/dist/chunks/useSingleSelectListState-IRmbVjo8.cjs.js +2 -0
  296. package/dist/chunks/{useSingleSelectListState-DbqMu5y_.cjs.js.map → useSingleSelectListState-IRmbVjo8.cjs.js.map} +1 -1
  297. package/dist/chunks/{useTextField-CFlmp99F.es.js → useTextField-B2flD0sa.es.js} +2 -2
  298. package/dist/chunks/{useTextField-CFlmp99F.es.js.map → useTextField-B2flD0sa.es.js.map} +1 -1
  299. package/dist/chunks/{useTextField-BcthGRd8.cjs.js → useTextField-Bm8ZxINN.cjs.js} +2 -2
  300. package/dist/chunks/{useTextField-BcthGRd8.cjs.js.map → useTextField-Bm8ZxINN.cjs.js.map} +1 -1
  301. package/dist/chunks/{useToolbar-DAsENCEY.es.js → useToolbar-CbYkKT36.es.js} +2 -2
  302. package/dist/chunks/{useToolbar-DAsENCEY.es.js.map → useToolbar-CbYkKT36.es.js.map} +1 -1
  303. package/dist/chunks/{utils-DkbE8ciF.es.js → utils-D5g6AoR2.es.js} +4 -4
  304. package/dist/chunks/{utils-DkbE8ciF.es.js.map → utils-D5g6AoR2.es.js.map} +1 -1
  305. package/dist/components/accordion.cjs +1 -1
  306. package/dist/components/accordion.es.js +1 -1
  307. package/dist/components/alert.cjs +1 -1
  308. package/dist/components/alert.es.js +1 -1
  309. package/dist/components/button.cjs +1 -1
  310. package/dist/components/button.es.js +1 -1
  311. package/dist/components/calendar.cjs +1 -1
  312. package/dist/components/calendar.es.js +1 -1
  313. package/dist/components/checkbox.cjs +1 -1
  314. package/dist/components/checkbox.es.js +1 -1
  315. package/dist/components/collapsible-motion.cjs +1 -1
  316. package/dist/components/collapsible-motion.es.js +1 -1
  317. package/dist/components/combobox.cjs +1 -1
  318. package/dist/components/combobox.es.js +1 -1
  319. package/dist/components/components.cjs +1 -1
  320. package/dist/components/components.es.js +1 -1
  321. package/dist/components/data-table.cjs +1 -1
  322. package/dist/components/data-table.es.js +1 -1
  323. package/dist/components/date-input.cjs +1 -1
  324. package/dist/components/date-input.es.js +1 -1
  325. package/dist/components/date-picker.cjs +1 -1
  326. package/dist/components/date-picker.es.js +1 -1
  327. package/dist/components/date-range-picker.cjs +1 -1
  328. package/dist/components/date-range-picker.es.js +1 -1
  329. package/dist/components/dialog.cjs +1 -1
  330. package/dist/components/dialog.es.js +1 -1
  331. package/dist/components/form-field.cjs +1 -1
  332. package/dist/components/form-field.es.js +1 -1
  333. package/dist/components/group.es.js +1 -1
  334. package/dist/components/heading.es.js +1 -1
  335. package/dist/components/icon-button.cjs +1 -1
  336. package/dist/components/icon-button.es.js +1 -1
  337. package/dist/components/icon-toggle-button.cjs +1 -1
  338. package/dist/components/icon-toggle-button.es.js +1 -1
  339. package/dist/components/kbd.es.js +1 -1
  340. package/dist/components/loading-spinner.cjs +1 -1
  341. package/dist/components/loading-spinner.es.js +1 -1
  342. package/dist/components/localized-field.cjs +1 -1
  343. package/dist/components/localized-field.es.js +1 -1
  344. package/dist/components/money-input.cjs +1 -1
  345. package/dist/components/money-input.es.js +1 -1
  346. package/dist/components/multiline-text-input.cjs +1 -1
  347. package/dist/components/multiline-text-input.es.js +1 -1
  348. package/dist/components/nimbus-provider.cjs +1 -1
  349. package/dist/components/nimbus-provider.es.js +1 -1
  350. package/dist/components/number-input.cjs +1 -1
  351. package/dist/components/number-input.es.js +1 -1
  352. package/dist/components/pagination.cjs +1 -1
  353. package/dist/components/pagination.es.js +1 -1
  354. package/dist/components/password-input.cjs +1 -1
  355. package/dist/components/password-input.es.js +1 -1
  356. package/dist/components/popover.cjs +1 -1
  357. package/dist/components/popover.es.js +1 -1
  358. package/dist/components/progress-bar.cjs +1 -1
  359. package/dist/components/progress-bar.es.js +1 -1
  360. package/dist/components/radio-input.cjs +1 -1
  361. package/dist/components/radio-input.es.js +1 -1
  362. package/dist/components/range-calendar.cjs +1 -1
  363. package/dist/components/range-calendar.es.js +1 -1
  364. package/dist/components/rich-text-input.cjs +1 -1
  365. package/dist/components/rich-text-input.es.js +1 -1
  366. package/dist/components/search-input.cjs +2 -0
  367. package/dist/components/search-input.cjs.map +1 -0
  368. package/dist/components/search-input.es.js +5 -0
  369. package/dist/components/search-input.es.js.map +1 -0
  370. package/dist/components/select.cjs +1 -1
  371. package/dist/components/select.es.js +1 -1
  372. package/dist/components/separator.cjs +1 -1
  373. package/dist/components/separator.es.js +1 -1
  374. package/dist/components/split-button.cjs +1 -1
  375. package/dist/components/split-button.es.js +1 -1
  376. package/dist/components/switch.cjs +1 -1
  377. package/dist/components/switch.es.js +1 -1
  378. package/dist/components/tabs.cjs +2 -0
  379. package/dist/components/tabs.cjs.map +1 -0
  380. package/dist/components/tabs.es.js +10 -0
  381. package/dist/components/tabs.es.js.map +1 -0
  382. package/dist/components/tag-group.cjs +1 -1
  383. package/dist/components/tag-group.es.js +1 -1
  384. package/dist/components/text-input.cjs +1 -1
  385. package/dist/components/text-input.es.js +1 -1
  386. package/dist/components/text.es.js +1 -1
  387. package/dist/components/time-input.cjs +1 -1
  388. package/dist/components/time-input.es.js +1 -1
  389. package/dist/components/toggle-button-group.es.js +1 -1
  390. package/dist/components/toggle-button.cjs +1 -1
  391. package/dist/components/toggle-button.es.js +1 -1
  392. package/dist/components/toolbar.cjs +1 -1
  393. package/dist/components/toolbar.es.js +1 -1
  394. package/dist/components/tooltip.es.js +1 -1
  395. package/dist/index.cjs +1 -1
  396. package/dist/index.cjs.map +1 -1
  397. package/dist/index.es.js +118 -109
  398. package/dist/index.es.js.map +1 -1
  399. package/dist/search-input.d.ts +90 -0
  400. package/dist/tabs.d.ts +308 -0
  401. package/package.json +5 -5
  402. package/dist/chunks/DateField-XplnfOh0.cjs.js +0 -2
  403. package/dist/chunks/Dialog-BhqTE75I.cjs.js +0 -2
  404. package/dist/chunks/DragAndDrop-BnOybCz1.es.js +0 -81
  405. package/dist/chunks/DragAndDrop-BnOybCz1.es.js.map +0 -1
  406. package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js +0 -2
  407. package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js.map +0 -1
  408. package/dist/chunks/Header-BzYpow-F.cjs.js +0 -2
  409. package/dist/chunks/Heading-B83Y0yT_.cjs.js +0 -2
  410. package/dist/chunks/ListBox-BBHyjoJ_.cjs.js +0 -2
  411. package/dist/chunks/ListBox-BBHyjoJ_.cjs.js.map +0 -1
  412. package/dist/chunks/ListBox-CkDiOBnJ.es.js +0 -606
  413. package/dist/chunks/ListBox-CkDiOBnJ.es.js.map +0 -1
  414. package/dist/chunks/SelectionManager-CSt4dh97.es.js +0 -1268
  415. package/dist/chunks/SelectionManager-CSt4dh97.es.js.map +0 -1
  416. package/dist/chunks/SelectionManager-rtNqqyQQ.cjs.js +0 -2
  417. package/dist/chunks/SelectionManager-rtNqqyQQ.cjs.js.map +0 -1
  418. package/dist/chunks/Separator-CqqJM-tW.cjs.js +0 -18
  419. package/dist/chunks/Separator-CqqJM-tW.cjs.js.map +0 -1
  420. package/dist/chunks/Separator-HDKQdp4v.es.js.map +0 -1
  421. package/dist/chunks/combobox-B60AWpPC.cjs.js +0 -2
  422. package/dist/chunks/data-table-BJVv7I8A.cjs.js +0 -2
  423. package/dist/chunks/index-SuWPp512.cjs.js.map +0 -1
  424. package/dist/chunks/index-fjbcWgyz.es.js.map +0 -1
  425. package/dist/chunks/localized-field-hQsX33XN.cjs.js +0 -2
  426. package/dist/chunks/menu-CbBblVAx.cjs.js +0 -2
  427. package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js +0 -2
  428. package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js.map +0 -1
  429. package/dist/chunks/scrollIntoView-CAVHG58T.es.js +0 -94
  430. package/dist/chunks/scrollIntoView-CAVHG58T.es.js.map +0 -1
  431. package/dist/chunks/select-ARr1JS_7.cjs.js +0 -2
  432. package/dist/chunks/tag-group-B5zBt0aa.cjs.js +0 -2
  433. package/dist/chunks/useHighlightSelectionDescription-CpDw-Mgj.cjs.js +0 -2
  434. package/dist/chunks/useHighlightSelectionDescription-CpDw-Mgj.cjs.js.map +0 -1
  435. package/dist/chunks/useHighlightSelectionDescription-pmA2R2J7.es.js.map +0 -1
  436. package/dist/chunks/useLabel-CzA-UqrL.es.js +0 -37
  437. package/dist/chunks/useLabel-CzA-UqrL.es.js.map +0 -1
  438. package/dist/chunks/useLabel-Y8tWagLu.cjs.js +0 -2
  439. package/dist/chunks/useLabel-Y8tWagLu.cjs.js.map +0 -1
  440. package/dist/chunks/useSingleSelectListState-DbqMu5y_.cjs.js +0 -2
@@ -1,1268 +0,0 @@
1
- import L, { createContext as Q, useRef as w, useEffect as j, useMemo as W, isValidElement as Me, cloneElement as Le, useState as oe } from "react";
2
- import { $ as Pe, c as Te } from "./utils-bpt7OfyH.es.js";
3
- import { b as ye, a as Y, $ as Ie, c as pe, e as Oe } from "./mergeProps-CzyOU2NE.es.js";
4
- import { $ as ae } from "./focusWithoutScrolling-CDw3JYiq.es.js";
5
- import { a as Ee, d as ze } from "./openLink-BMfblNBC.es.js";
6
- import { $ as Z } from "./useEvent-Bh_fbauk.es.js";
7
- import { a as Ve, b as Ue, c as ve, d as ge } from "./scrollIntoView-CAVHG58T.es.js";
8
- import { b as He } from "./FocusScope-9EbM1-n6.es.js";
9
- import { b as be } from "./useFocusVisible-BQJ0cc5O.es.js";
10
- import { $ as fe } from "./focusSafely-Bi_1H1qm.es.js";
11
- import { flushSync as We } from "react-dom";
12
- import { $ as qe } from "./context-R4YUlO9Y.es.js";
13
- import { b as Ge, g as je } from "./platform-Z5fvtFmM.es.js";
14
- import { $ as ke } from "./usePress-DWxMRKB2.es.js";
15
- import { $ as Ye } from "./useGlobalListeners-BOOfV5Wh.es.js";
16
- import { j as Xe } from "./Separator-HDKQdp4v.es.js";
17
- import { $ as Ze } from "./useControlledState-u436Wbp1.es.js";
18
- const At = /* @__PURE__ */ Q(null), Ct = /* @__PURE__ */ Q(null);
19
- function me(n, e) {
20
- const t = w(!0), l = w(null);
21
- ye(() => (t.current = !0, () => {
22
- t.current = !1;
23
- }), []), ye(() => {
24
- t.current ? t.current = !1 : (!l.current || e.some((i, s) => !Object.is(i, l[s]))) && n(), l.current = e;
25
- }, e);
26
- }
27
- const Je = "react-aria-clear-focus", Qe = "react-aria-focus";
28
- function H(n) {
29
- return Ge() ? n.metaKey : n.ctrlKey;
30
- }
31
- const Ne = 500;
32
- function _e(n) {
33
- let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: s = Ne, accessibilityDescription: o } = n;
34
- const f = w(void 0);
35
- let { addGlobalListener: a, removeGlobalListener: $ } = Ye(), { pressProps: I } = ke({
36
- isDisabled: e,
37
- onPressStart(v) {
38
- if (v.continuePropagation(), (v.pointerType === "mouse" || v.pointerType === "touch") && (t && t({
39
- ...v,
40
- type: "longpressstart"
41
- }), f.current = setTimeout(() => {
42
- v.target.dispatchEvent(new PointerEvent("pointercancel", {
43
- bubbles: !0
44
- })), Pe(v.target).activeElement !== v.target && ae(v.target), i && i({
45
- ...v,
46
- type: "longpress"
47
- }), f.current = void 0;
48
- }, s), v.pointerType === "touch")) {
49
- let m = (g) => {
50
- g.preventDefault();
51
- };
52
- a(v.target, "contextmenu", m, {
53
- once: !0
54
- }), a(window, "pointerup", () => {
55
- setTimeout(() => {
56
- $(v.target, "contextmenu", m);
57
- }, 30);
58
- }, {
59
- once: !0
60
- });
61
- }
62
- },
63
- onPressEnd(v) {
64
- f.current && clearTimeout(f.current), l && (v.pointerType === "mouse" || v.pointerType === "touch") && l({
65
- ...v,
66
- type: "longpressend"
67
- });
68
- }
69
- }), b = Ve(i && !e ? o : void 0);
70
- return {
71
- longPressProps: Y(I, b)
72
- };
73
- }
74
- function Ae(n) {
75
- let e = tt(Pe(n));
76
- e !== n && (e && et(e, n), n && Ce(n, e));
77
- }
78
- function et(n, e) {
79
- n.dispatchEvent(new FocusEvent("blur", {
80
- relatedTarget: e
81
- })), n.dispatchEvent(new FocusEvent("focusout", {
82
- bubbles: !0,
83
- relatedTarget: e
84
- }));
85
- }
86
- function Ce(n, e) {
87
- n.dispatchEvent(new FocusEvent("focus", {
88
- relatedTarget: e
89
- })), n.dispatchEvent(new FocusEvent("focusin", {
90
- bubbles: !0,
91
- relatedTarget: e
92
- }));
93
- }
94
- function tt(n) {
95
- let e = Te(n), t = e?.getAttribute("aria-activedescendant");
96
- return t && n.getElementById(t) || e;
97
- }
98
- function de(n) {
99
- return je() ? n.altKey : n.ctrlKey;
100
- }
101
- function J(n, e) {
102
- var t, l;
103
- let i = `[data-key="${CSS.escape(String(e))}"]`, s = (t = n.current) === null || t === void 0 ? void 0 : t.dataset.collection;
104
- return s && (i = `[data-collection="${CSS.escape(s)}"]${i}`), (l = n.current) === null || l === void 0 ? void 0 : l.querySelector(i);
105
- }
106
- const Re = /* @__PURE__ */ new WeakMap();
107
- function lt(n) {
108
- let e = Ie();
109
- return Re.set(n, e), e;
110
- }
111
- function it(n) {
112
- return Re.get(n);
113
- }
114
- const nt = 1e3;
115
- function rt(n) {
116
- let { keyboardDelegate: e, selectionManager: t, onTypeSelect: l } = n, i = w({
117
- search: "",
118
- timeout: void 0
119
- }).current, s = (o) => {
120
- let f = st(o.key);
121
- if (!(!f || o.ctrlKey || o.metaKey || !o.currentTarget.contains(o.target) || i.search.length === 0 && f === " ")) {
122
- if (f === " " && i.search.trim().length > 0 && (o.preventDefault(), "continuePropagation" in o || o.stopPropagation()), i.search += f, e.getKeyForSearch != null) {
123
- let a = e.getKeyForSearch(i.search, t.focusedKey);
124
- a == null && (a = e.getKeyForSearch(i.search)), a != null && (t.setFocusedKey(a), l && l(a));
125
- }
126
- clearTimeout(i.timeout), i.timeout = setTimeout(() => {
127
- i.search = "";
128
- }, nt);
129
- }
130
- };
131
- return {
132
- typeSelectProps: {
133
- // Using a capturing listener to catch the keydown event before
134
- // other hooks in order to handle the Spacebar event.
135
- onKeyDownCapture: e.getKeyForSearch ? s : void 0
136
- }
137
- };
138
- }
139
- function st(n) {
140
- return n.length === 1 || !/^[A-Z]/i.test(n) ? n : "";
141
- }
142
- function Rt(n) {
143
- let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: s = !1, disallowEmptySelection: o = !1, disallowSelectAll: f = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: $ = e.selectionBehavior === "replace", disallowTypeAhead: I = !1, shouldUseVirtualFocus: b, allowsTabNavigation: v = !1, isVirtualized: m, scrollRef: g = l, linkBehavior: E = "action" } = n, { direction: y } = qe(), h = Ee(), S = (c) => {
144
- var d;
145
- if (c.altKey && c.key === "Tab" && c.preventDefault(), !(!((d = l.current) === null || d === void 0) && d.contains(c.target))) return;
146
- const r = (u, V) => {
147
- if (u != null) {
148
- if (e.isLink(u) && E === "selection" && $ && !de(c)) {
149
- We(() => {
150
- e.setFocusedKey(u, V);
151
- });
152
- let U = J(l, u), he = e.getItemProps(u);
153
- U && h.open(U, c, he.href, he.routerOptions);
154
- return;
155
- }
156
- if (e.setFocusedKey(u, V), e.isLink(u) && E === "override") return;
157
- c.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : $ && !de(c) && e.replaceSelection(u);
158
- }
159
- };
160
- switch (c.key) {
161
- case "ArrowDown":
162
- if (t.getKeyBelow) {
163
- var K, T, P;
164
- let u = e.focusedKey != null ? (K = t.getKeyBelow) === null || K === void 0 ? void 0 : K.call(t, e.focusedKey) : (T = t.getFirstKey) === null || T === void 0 ? void 0 : T.call(t);
165
- u == null && s && (u = (P = t.getFirstKey) === null || P === void 0 ? void 0 : P.call(t, e.focusedKey)), u != null && (c.preventDefault(), r(u));
166
- }
167
- break;
168
- case "ArrowUp":
169
- if (t.getKeyAbove) {
170
- var M, z, ee;
171
- let u = e.focusedKey != null ? (M = t.getKeyAbove) === null || M === void 0 ? void 0 : M.call(t, e.focusedKey) : (z = t.getLastKey) === null || z === void 0 ? void 0 : z.call(t);
172
- u == null && s && (u = (ee = t.getLastKey) === null || ee === void 0 ? void 0 : ee.call(t, e.focusedKey)), u != null && (c.preventDefault(), r(u));
173
- }
174
- break;
175
- case "ArrowLeft":
176
- if (t.getKeyLeftOf) {
177
- var te, le, ie;
178
- let u = e.focusedKey != null ? (te = t.getKeyLeftOf) === null || te === void 0 ? void 0 : te.call(t, e.focusedKey) : null;
179
- u == null && s && (u = y === "rtl" ? (le = t.getFirstKey) === null || le === void 0 ? void 0 : le.call(t, e.focusedKey) : (ie = t.getLastKey) === null || ie === void 0 ? void 0 : ie.call(t, e.focusedKey)), u != null && (c.preventDefault(), r(u, y === "rtl" ? "first" : "last"));
180
- }
181
- break;
182
- case "ArrowRight":
183
- if (t.getKeyRightOf) {
184
- var ne, re, se;
185
- let u = e.focusedKey != null ? (ne = t.getKeyRightOf) === null || ne === void 0 ? void 0 : ne.call(t, e.focusedKey) : null;
186
- u == null && s && (u = y === "rtl" ? (re = t.getLastKey) === null || re === void 0 ? void 0 : re.call(t, e.focusedKey) : (se = t.getFirstKey) === null || se === void 0 ? void 0 : se.call(t, e.focusedKey)), u != null && (c.preventDefault(), r(u, y === "rtl" ? "last" : "first"));
187
- }
188
- break;
189
- case "Home":
190
- if (t.getFirstKey) {
191
- if (e.focusedKey === null && c.shiftKey) return;
192
- c.preventDefault();
193
- let u = t.getFirstKey(e.focusedKey, H(c));
194
- e.setFocusedKey(u), u != null && (H(c) && c.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : $ && e.replaceSelection(u));
195
- }
196
- break;
197
- case "End":
198
- if (t.getLastKey) {
199
- if (e.focusedKey === null && c.shiftKey) return;
200
- c.preventDefault();
201
- let u = t.getLastKey(e.focusedKey, H(c));
202
- e.setFocusedKey(u), u != null && (H(c) && c.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(u) : $ && e.replaceSelection(u));
203
- }
204
- break;
205
- case "PageDown":
206
- if (t.getKeyPageBelow && e.focusedKey != null) {
207
- let u = t.getKeyPageBelow(e.focusedKey);
208
- u != null && (c.preventDefault(), r(u));
209
- }
210
- break;
211
- case "PageUp":
212
- if (t.getKeyPageAbove && e.focusedKey != null) {
213
- let u = t.getKeyPageAbove(e.focusedKey);
214
- u != null && (c.preventDefault(), r(u));
215
- }
216
- break;
217
- case "a":
218
- H(c) && e.selectionMode === "multiple" && f !== !0 && (c.preventDefault(), e.selectAll());
219
- break;
220
- case "Escape":
221
- a === "clearSelection" && !o && e.selectedKeys.size !== 0 && (c.stopPropagation(), c.preventDefault(), e.clearSelection());
222
- break;
223
- case "Tab":
224
- if (!v) {
225
- if (c.shiftKey) l.current.focus();
226
- else {
227
- let u = He(l.current, {
228
- tabbable: !0
229
- }), V, U;
230
- do
231
- U = u.lastChild(), U && (V = U);
232
- while (U);
233
- V && !V.contains(document.activeElement) && ae(V);
234
- }
235
- break;
236
- }
237
- }
238
- }, p = w({
239
- top: 0,
240
- left: 0
241
- });
242
- Z(g, "scroll", m ? void 0 : () => {
243
- var c, d, r, K;
244
- p.current = {
245
- top: (r = (c = g.current) === null || c === void 0 ? void 0 : c.scrollTop) !== null && r !== void 0 ? r : 0,
246
- left: (K = (d = g.current) === null || d === void 0 ? void 0 : d.scrollLeft) !== null && K !== void 0 ? K : 0
247
- };
248
- });
249
- let D = (c) => {
250
- if (e.isFocused) {
251
- c.currentTarget.contains(c.target) || e.setFocused(!1);
252
- return;
253
- }
254
- if (c.currentTarget.contains(c.target)) {
255
- if (e.setFocused(!0), e.focusedKey == null) {
256
- var d, r;
257
- let P = (z) => {
258
- z != null && (e.setFocusedKey(z), $ && !e.isSelected(z) && e.replaceSelection(z));
259
- }, M = c.relatedTarget;
260
- var K, T;
261
- M && c.currentTarget.compareDocumentPosition(M) & Node.DOCUMENT_POSITION_FOLLOWING ? P((K = e.lastSelectedKey) !== null && K !== void 0 ? K : (d = t.getLastKey) === null || d === void 0 ? void 0 : d.call(t)) : P((T = e.firstSelectedKey) !== null && T !== void 0 ? T : (r = t.getFirstKey) === null || r === void 0 ? void 0 : r.call(t));
262
- } else !m && g.current && (g.current.scrollTop = p.current.top, g.current.scrollLeft = p.current.left);
263
- if (e.focusedKey != null && g.current) {
264
- let P = J(l, e.focusedKey);
265
- P instanceof HTMLElement && (!P.contains(document.activeElement) && !b && ae(P), be() === "keyboard" && ve(P, {
266
- containingElement: l.current
267
- }));
268
- }
269
- }
270
- }, k = (c) => {
271
- c.currentTarget.contains(c.relatedTarget) || e.setFocused(!1);
272
- }, A = w(!1);
273
- Z(l, Qe, b ? (c) => {
274
- let { detail: d } = c;
275
- c.stopPropagation(), e.setFocused(!0), d?.focusStrategy === "first" && (A.current = !0);
276
- } : void 0);
277
- let R = pe(() => {
278
- var c, d;
279
- let r = (d = (c = t.getFirstKey) === null || c === void 0 ? void 0 : c.call(t)) !== null && d !== void 0 ? d : null;
280
- if (r == null) {
281
- let K = Te();
282
- Ae(l.current), Ce(K, null), e.collection.size > 0 && (A.current = !1);
283
- } else
284
- e.setFocusedKey(r), A.current = !1;
285
- });
286
- me(() => {
287
- A.current && R();
288
- }, [
289
- e.collection,
290
- R
291
- ]);
292
- let F = pe(() => {
293
- e.collection.size > 0 && (A.current = !1);
294
- });
295
- me(() => {
296
- F();
297
- }, [
298
- e.focusedKey,
299
- F
300
- ]), Z(l, Je, b ? (c) => {
301
- var d;
302
- c.stopPropagation(), e.setFocused(!1), !((d = c.detail) === null || d === void 0) && d.clearFocusKey && e.setFocusedKey(null);
303
- } : void 0);
304
- const q = w(i), B = w(!1);
305
- j(() => {
306
- if (q.current) {
307
- var c, d;
308
- let T = null;
309
- var r;
310
- i === "first" && (T = (r = (c = t.getFirstKey) === null || c === void 0 ? void 0 : c.call(t)) !== null && r !== void 0 ? r : null);
311
- var K;
312
- i === "last" && (T = (K = (d = t.getLastKey) === null || d === void 0 ? void 0 : d.call(t)) !== null && K !== void 0 ? K : null);
313
- let P = e.selectedKeys;
314
- if (P.size) {
315
- for (let M of P) if (e.canSelectItem(M)) {
316
- T = M;
317
- break;
318
- }
319
- }
320
- e.setFocused(!0), e.setFocusedKey(T), T == null && !b && l.current && fe(l.current), e.collection.size > 0 && (q.current = !1, B.current = !0);
321
- }
322
- });
323
- let O = w(e.focusedKey), x = w(null);
324
- j(() => {
325
- if (e.isFocused && e.focusedKey != null && (e.focusedKey !== O.current || B.current) && g.current && l.current) {
326
- let c = be(), d = J(l, e.focusedKey);
327
- if (!(d instanceof HTMLElement))
328
- return;
329
- (c === "keyboard" || B.current) && (x.current && cancelAnimationFrame(x.current), x.current = requestAnimationFrame(() => {
330
- g.current && (Ue(g.current, d), c !== "virtual" && ve(d, {
331
- containingElement: l.current
332
- }));
333
- }));
334
- }
335
- !b && e.isFocused && e.focusedKey == null && O.current != null && l.current && fe(l.current), O.current = e.focusedKey, B.current = !1;
336
- }), j(() => () => {
337
- x.current && cancelAnimationFrame(x.current);
338
- }, []), Z(l, "react-aria-focus-scope-restore", (c) => {
339
- c.preventDefault(), e.setFocused(!0);
340
- });
341
- let G = {
342
- onKeyDown: S,
343
- onFocus: D,
344
- onBlur: k,
345
- onMouseDown(c) {
346
- g.current === c.target && c.preventDefault();
347
- }
348
- }, { typeSelectProps: N } = rt({
349
- keyboardDelegate: t,
350
- selectionManager: e
351
- });
352
- I || (G = Y(N, G));
353
- let X;
354
- b || (X = e.focusedKey == null ? 0 : -1);
355
- let _ = lt(e.collection);
356
- return {
357
- collectionProps: Y(G, {
358
- tabIndex: X,
359
- "data-collection": _
360
- })
361
- };
362
- }
363
- function Bt(n) {
364
- let { id: e, selectionManager: t, key: l, ref: i, shouldSelectOnPressUp: s, shouldUseVirtualFocus: o, focus: f, isDisabled: a, onAction: $, allowsDifferentPressOrigin: I, linkBehavior: b = "action" } = n, v = Ee();
365
- e = Ie(e);
366
- let m = (r) => {
367
- if (r.pointerType === "keyboard" && de(r)) t.toggleSelection(l);
368
- else {
369
- if (t.selectionMode === "none") return;
370
- if (t.isLink(l)) {
371
- if (b === "selection" && i.current) {
372
- let K = t.getItemProps(l);
373
- v.open(i.current, r, K.href, K.routerOptions), t.setSelectedKeys(t.selectedKeys);
374
- return;
375
- } else if (b === "override" || b === "none") return;
376
- }
377
- t.selectionMode === "single" ? t.isSelected(l) && !t.disallowEmptySelection ? t.toggleSelection(l) : t.replaceSelection(l) : r && r.shiftKey ? t.extendSelection(l) : t.selectionBehavior === "toggle" || r && (H(r) || r.pointerType === "touch" || r.pointerType === "virtual") ? t.toggleSelection(l) : t.replaceSelection(l);
378
- }
379
- };
380
- j(() => {
381
- l === t.focusedKey && t.isFocused && (o ? Ae(i.current) : f ? f() : document.activeElement !== i.current && i.current && fe(i.current));
382
- }, [
383
- i,
384
- l,
385
- t.focusedKey,
386
- t.childFocusStrategy,
387
- t.isFocused,
388
- o
389
- ]), a = a || t.isDisabled(l);
390
- let g = {};
391
- !o && !a ? g = {
392
- tabIndex: l === t.focusedKey ? 0 : -1,
393
- onFocus(r) {
394
- r.target === i.current && t.setFocusedKey(l);
395
- }
396
- } : a && (g.onMouseDown = (r) => {
397
- r.preventDefault();
398
- });
399
- let E = t.isLink(l) && b === "override", y = t.isLink(l) && b !== "selection" && b !== "none", h = !a && t.canSelectItem(l) && !E, S = ($ || y) && !a, p = S && (t.selectionBehavior === "replace" ? !h : !h || t.isEmpty), D = S && h && t.selectionBehavior === "replace", k = p || D, A = w(null), R = k && h, F = w(!1), q = w(!1), B = t.getItemProps(l), O = (r) => {
400
- $ && $(), y && i.current && v.open(i.current, r, B.href, B.routerOptions);
401
- }, x = {
402
- ref: i
403
- };
404
- if (s ? (x.onPressStart = (r) => {
405
- A.current = r.pointerType, F.current = R, r.pointerType === "keyboard" && (!k || Ke()) && m(r);
406
- }, I ? (x.onPressUp = p ? void 0 : (r) => {
407
- r.pointerType === "mouse" && h && m(r);
408
- }, x.onPress = p ? O : (r) => {
409
- r.pointerType !== "keyboard" && r.pointerType !== "mouse" && h && m(r);
410
- }) : x.onPress = (r) => {
411
- if (p || D && r.pointerType !== "mouse") {
412
- if (r.pointerType === "keyboard" && !$e()) return;
413
- O(r);
414
- } else r.pointerType !== "keyboard" && h && m(r);
415
- }) : (x.onPressStart = (r) => {
416
- A.current = r.pointerType, F.current = R, q.current = p, h && (r.pointerType === "mouse" && !p || r.pointerType === "keyboard" && (!S || Ke())) && m(r);
417
- }, x.onPress = (r) => {
418
- (r.pointerType === "touch" || r.pointerType === "pen" || r.pointerType === "virtual" || r.pointerType === "keyboard" && k && $e() || r.pointerType === "mouse" && q.current) && (k ? O(r) : h && m(r));
419
- }), g["data-collection"] = it(t.collection), g["data-key"] = l, x.preventFocusOnPress = o, o && (x = Y(x, {
420
- onPressStart(r) {
421
- r.pointerType !== "touch" && (t.setFocused(!0), t.setFocusedKey(l));
422
- },
423
- onPress(r) {
424
- r.pointerType === "touch" && (t.setFocused(!0), t.setFocusedKey(l));
425
- }
426
- })), B)
427
- for (let r of [
428
- "onPressStart",
429
- "onPressEnd",
430
- "onPressChange",
431
- "onPress",
432
- "onPressUp",
433
- "onClick"
434
- ]) B[r] && (x[r] = Oe(x[r], B[r]));
435
- let { pressProps: G, isPressed: N } = ke(x), X = D ? (r) => {
436
- A.current === "mouse" && (r.stopPropagation(), r.preventDefault(), O(r));
437
- } : void 0, { longPressProps: _ } = _e({
438
- isDisabled: !R,
439
- onLongPress(r) {
440
- r.pointerType === "touch" && (m(r), t.setSelectionBehavior("toggle"));
441
- }
442
- }), c = (r) => {
443
- A.current === "touch" && F.current && r.preventDefault();
444
- }, d = b !== "none" && t.isLink(l) ? (r) => {
445
- ze.isOpening || r.preventDefault();
446
- } : void 0;
447
- return {
448
- itemProps: Y(
449
- g,
450
- h || p || o && !a ? G : {},
451
- R ? _ : {},
452
- {
453
- onDoubleClick: X,
454
- onDragStartCapture: c,
455
- onClick: d,
456
- id: e
457
- },
458
- // Prevent DOM focus from moving on mouse down when using virtual focus
459
- o ? {
460
- onMouseDown: (r) => r.preventDefault()
461
- } : void 0
462
- ),
463
- isPressed: N,
464
- isSelected: t.isSelected(l),
465
- isFocused: t.isFocused && t.focusedKey === l,
466
- isDisabled: a,
467
- allowsSelection: h,
468
- hasAction: k
469
- };
470
- }
471
- function $e() {
472
- let n = window.event;
473
- return n?.key === "Enter";
474
- }
475
- function Ke() {
476
- let n = window.event;
477
- return n?.key === " " || n?.code === "Space";
478
- }
479
- class Se {
480
- getItemRect(e) {
481
- let t = this.ref.current;
482
- if (!t) return null;
483
- let l = e != null ? J(this.ref, e) : null;
484
- if (!l) return null;
485
- let i = t.getBoundingClientRect(), s = l.getBoundingClientRect();
486
- return {
487
- x: s.left - i.left + t.scrollLeft,
488
- y: s.top - i.top + t.scrollTop,
489
- width: s.width,
490
- height: s.height
491
- };
492
- }
493
- getContentSize() {
494
- let e = this.ref.current;
495
- var t, l;
496
- return {
497
- width: (t = e?.scrollWidth) !== null && t !== void 0 ? t : 0,
498
- height: (l = e?.scrollHeight) !== null && l !== void 0 ? l : 0
499
- };
500
- }
501
- getVisibleRect() {
502
- let e = this.ref.current;
503
- var t, l, i, s;
504
- return {
505
- x: (t = e?.scrollLeft) !== null && t !== void 0 ? t : 0,
506
- y: (l = e?.scrollTop) !== null && l !== void 0 ? l : 0,
507
- width: (i = e?.offsetWidth) !== null && i !== void 0 ? i : 0,
508
- height: (s = e?.offsetHeight) !== null && s !== void 0 ? s : 0
509
- };
510
- }
511
- constructor(e) {
512
- this.ref = e;
513
- }
514
- }
515
- class Mt {
516
- isDisabled(e) {
517
- var t;
518
- return this.disabledBehavior === "all" && (((t = e.props) === null || t === void 0 ? void 0 : t.isDisabled) || this.disabledKeys.has(e.key));
519
- }
520
- findNextNonDisabled(e, t) {
521
- let l = e;
522
- for (; l != null; ) {
523
- let i = this.collection.getItem(l);
524
- if (i?.type === "item" && !this.isDisabled(i)) return l;
525
- l = t(l);
526
- }
527
- return null;
528
- }
529
- getNextKey(e) {
530
- let t = e;
531
- return t = this.collection.getKeyAfter(t), this.findNextNonDisabled(t, (l) => this.collection.getKeyAfter(l));
532
- }
533
- getPreviousKey(e) {
534
- let t = e;
535
- return t = this.collection.getKeyBefore(t), this.findNextNonDisabled(t, (l) => this.collection.getKeyBefore(l));
536
- }
537
- findKey(e, t, l) {
538
- let i = e, s = this.layoutDelegate.getItemRect(i);
539
- if (!s || i == null) return null;
540
- let o = s;
541
- do {
542
- if (i = t(i), i == null) break;
543
- s = this.layoutDelegate.getItemRect(i);
544
- } while (s && l(o, s) && i != null);
545
- return i;
546
- }
547
- isSameRow(e, t) {
548
- return e.y === t.y || e.x !== t.x;
549
- }
550
- isSameColumn(e, t) {
551
- return e.x === t.x || e.y !== t.y;
552
- }
553
- getKeyBelow(e) {
554
- return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getNextKey(t), this.isSameRow) : this.getNextKey(e);
555
- }
556
- getKeyAbove(e) {
557
- return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getPreviousKey(t), this.isSameRow) : this.getPreviousKey(e);
558
- }
559
- getNextColumn(e, t) {
560
- return t ? this.getPreviousKey(e) : this.getNextKey(e);
561
- }
562
- getKeyRightOf(e) {
563
- let t = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
564
- return this.layoutDelegate[t] ? (e = this.layoutDelegate[t](e), this.findNextNonDisabled(e, (l) => this.layoutDelegate[t](l))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(e, this.direction === "rtl") : this.findKey(e, (l) => this.getNextColumn(l, this.direction === "rtl"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(e, this.direction === "rtl") : null;
565
- }
566
- getKeyLeftOf(e) {
567
- let t = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
568
- return this.layoutDelegate[t] ? (e = this.layoutDelegate[t](e), this.findNextNonDisabled(e, (l) => this.layoutDelegate[t](l))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(e, this.direction === "ltr") : this.findKey(e, (l) => this.getNextColumn(l, this.direction === "ltr"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(e, this.direction === "ltr") : null;
569
- }
570
- getFirstKey() {
571
- let e = this.collection.getFirstKey();
572
- return this.findNextNonDisabled(e, (t) => this.collection.getKeyAfter(t));
573
- }
574
- getLastKey() {
575
- let e = this.collection.getLastKey();
576
- return this.findNextNonDisabled(e, (t) => this.collection.getKeyBefore(t));
577
- }
578
- getKeyPageAbove(e) {
579
- let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
580
- if (!l) return null;
581
- if (t && !ge(t)) return this.getFirstKey();
582
- let i = e;
583
- if (this.orientation === "horizontal") {
584
- let s = Math.max(0, l.x + l.width - this.layoutDelegate.getVisibleRect().width);
585
- for (; l && l.x > s && i != null; )
586
- i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
587
- } else {
588
- let s = Math.max(0, l.y + l.height - this.layoutDelegate.getVisibleRect().height);
589
- for (; l && l.y > s && i != null; )
590
- i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
591
- }
592
- return i ?? this.getFirstKey();
593
- }
594
- getKeyPageBelow(e) {
595
- let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
596
- if (!l) return null;
597
- if (t && !ge(t)) return this.getLastKey();
598
- let i = e;
599
- if (this.orientation === "horizontal") {
600
- let s = Math.min(this.layoutDelegate.getContentSize().width, l.y - l.width + this.layoutDelegate.getVisibleRect().width);
601
- for (; l && l.x < s && i != null; )
602
- i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
603
- } else {
604
- let s = Math.min(this.layoutDelegate.getContentSize().height, l.y - l.height + this.layoutDelegate.getVisibleRect().height);
605
- for (; l && l.y < s && i != null; )
606
- i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
607
- }
608
- return i ?? this.getLastKey();
609
- }
610
- getKeyForSearch(e, t) {
611
- if (!this.collator) return null;
612
- let l = this.collection, i = t || this.getFirstKey();
613
- for (; i != null; ) {
614
- let s = l.getItem(i);
615
- if (!s) return null;
616
- let o = s.textValue.slice(0, e.length);
617
- if (s.textValue && this.collator.compare(o, e) === 0) return i;
618
- i = this.getNextKey(i);
619
- }
620
- return null;
621
- }
622
- constructor(...e) {
623
- if (e.length === 1) {
624
- let t = e[0];
625
- 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 Se(t.ref);
626
- } else
627
- 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 Se(this.ref);
628
- this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
629
- }
630
- }
631
- class ot {
632
- build(e, t) {
633
- return this.context = t, xe(() => this.iterateCollection(e));
634
- }
635
- *iterateCollection(e) {
636
- let { children: t, items: l } = e;
637
- if (L.isValidElement(t) && t.type === L.Fragment) yield* this.iterateCollection({
638
- children: t.props.children,
639
- items: l
640
- });
641
- else if (typeof t == "function") {
642
- if (!l) throw new Error("props.children was a function but props.items is missing");
643
- let i = 0;
644
- for (let s of l)
645
- yield* this.getFullNode({
646
- value: s,
647
- index: i
648
- }, {
649
- renderer: t
650
- }), i++;
651
- } else {
652
- let i = [];
653
- L.Children.forEach(t, (o) => {
654
- o && i.push(o);
655
- });
656
- let s = 0;
657
- for (let o of i) {
658
- let f = this.getFullNode({
659
- element: o,
660
- index: s
661
- }, {});
662
- for (let a of f)
663
- s++, yield a;
664
- }
665
- }
666
- }
667
- getKey(e, t, l, i) {
668
- if (e.key != null) return e.key;
669
- if (t.type === "cell" && t.key != null) return `${i}${t.key}`;
670
- let s = t.value;
671
- if (s != null) {
672
- var o;
673
- let f = (o = s.key) !== null && o !== void 0 ? o : s.id;
674
- if (f == null) throw new Error("No key found for item");
675
- return f;
676
- }
677
- return i ? `${i}.${t.index}` : `$.${t.index}`;
678
- }
679
- getChildState(e, t) {
680
- return {
681
- renderer: t.renderer || e.renderer
682
- };
683
- }
684
- *getFullNode(e, t, l, i) {
685
- if (L.isValidElement(e.element) && e.element.type === L.Fragment) {
686
- let y = [];
687
- L.Children.forEach(e.element.props.children, (S) => {
688
- y.push(S);
689
- });
690
- var s;
691
- let h = (s = e.index) !== null && s !== void 0 ? s : 0;
692
- for (const S of y) yield* this.getFullNode({
693
- element: S,
694
- index: h++
695
- }, t, l, i);
696
- return;
697
- }
698
- let o = e.element;
699
- if (!o && e.value && t && t.renderer) {
700
- let y = this.cache.get(e.value);
701
- if (y && (!y.shouldInvalidate || !y.shouldInvalidate(this.context))) {
702
- y.index = e.index, y.parentKey = i ? i.key : null, yield y;
703
- return;
704
- }
705
- o = t.renderer(e.value);
706
- }
707
- if (L.isValidElement(o)) {
708
- let y = o.type;
709
- if (typeof y != "function" && typeof y.getCollectionNode != "function") {
710
- let D = o.type;
711
- throw new Error(`Unknown element <${D}> in collection.`);
712
- }
713
- let h = y.getCollectionNode(o.props, this.context);
714
- var f;
715
- let S = (f = e.index) !== null && f !== void 0 ? f : 0, p = h.next();
716
- for (; !p.done && p.value; ) {
717
- let D = p.value;
718
- e.index = S;
719
- var a;
720
- let k = (a = D.key) !== null && a !== void 0 ? a : null;
721
- k == null && (k = D.element ? null : this.getKey(o, e, t, l));
722
- let R = [
723
- ...this.getFullNode({
724
- ...D,
725
- key: k,
726
- index: S,
727
- wrapper: ct(e.wrapper, D.wrapper)
728
- }, this.getChildState(t, D), l ? `${l}${o.key}` : o.key, i)
729
- ];
730
- for (let F of R) {
731
- var $, I;
732
- F.value = (I = ($ = D.value) !== null && $ !== void 0 ? $ : e.value) !== null && I !== void 0 ? I : null, F.value && this.cache.set(F.value, F);
733
- var b;
734
- if (e.type && F.type !== e.type) throw new Error(`Unsupported type <${ce(F.type)}> in <${ce((b = i?.type) !== null && b !== void 0 ? b : "unknown parent type")}>. Only <${ce(e.type)}> is supported.`);
735
- S++, yield F;
736
- }
737
- p = h.next(R);
738
- }
739
- return;
740
- }
741
- if (e.key == null || e.type == null) return;
742
- let v = this;
743
- var m, g;
744
- let E = {
745
- type: e.type,
746
- props: e.props,
747
- key: e.key,
748
- parentKey: i ? i.key : null,
749
- value: (m = e.value) !== null && m !== void 0 ? m : null,
750
- level: i ? i.level + 1 : 0,
751
- index: e.index,
752
- rendered: e.rendered,
753
- textValue: (g = e.textValue) !== null && g !== void 0 ? g : "",
754
- "aria-label": e["aria-label"],
755
- wrapper: e.wrapper,
756
- shouldInvalidate: e.shouldInvalidate,
757
- hasChildNodes: e.hasChildNodes || !1,
758
- childNodes: xe(function* () {
759
- if (!e.hasChildNodes || !e.childNodes) return;
760
- let y = 0;
761
- for (let h of e.childNodes()) {
762
- h.key != null && (h.key = `${E.key}${h.key}`);
763
- let S = v.getFullNode({
764
- ...h,
765
- index: y
766
- }, v.getChildState(t, h), E.key, E);
767
- for (let p of S)
768
- y++, yield p;
769
- }
770
- })
771
- };
772
- yield E;
773
- }
774
- constructor() {
775
- this.cache = /* @__PURE__ */ new WeakMap();
776
- }
777
- }
778
- function xe(n) {
779
- let e = [], t = null;
780
- return {
781
- *[Symbol.iterator]() {
782
- for (let l of e) yield l;
783
- t || (t = n());
784
- for (let l of t)
785
- e.push(l), yield l;
786
- }
787
- };
788
- }
789
- function ct(n, e) {
790
- if (n && e) return (t) => n(e(t));
791
- if (n) return n;
792
- if (e) return e;
793
- }
794
- function ce(n) {
795
- return n[0].toUpperCase() + n.slice(1);
796
- }
797
- function Lt(n, e, t) {
798
- let l = W(() => new ot(), []), { children: i, items: s, collection: o } = n;
799
- return W(() => {
800
- if (o) return o;
801
- let a = l.build({
802
- children: i,
803
- items: s
804
- }, t);
805
- return e(a);
806
- }, [
807
- l,
808
- i,
809
- s,
810
- o,
811
- t,
812
- e
813
- ]);
814
- }
815
- function ut(n, e) {
816
- return typeof e.getChildren == "function" ? e.getChildren(n.key) : n.childNodes;
817
- }
818
- function at(n) {
819
- return ft(n, 0);
820
- }
821
- function ft(n, e) {
822
- if (e < 0) return;
823
- let t = 0;
824
- for (let l of n) {
825
- if (t === e) return l;
826
- t++;
827
- }
828
- }
829
- function Ot(n) {
830
- let e;
831
- for (let t of n) e = t;
832
- return e;
833
- }
834
- function ue(n, e, t) {
835
- if (e.parentKey === t.parentKey) return e.index - t.index;
836
- let l = [
837
- ...we(n, e),
838
- e
839
- ], i = [
840
- ...we(n, t),
841
- t
842
- ], s = l.slice(0, i.length).findIndex((o, f) => o !== i[f]);
843
- return s !== -1 ? (e = l[s], t = i[s], e.index - t.index) : l.findIndex((o) => o === t) >= 0 ? 1 : (i.findIndex((o) => o === e) >= 0, -1);
844
- }
845
- function we(n, e) {
846
- let t = [], l = e;
847
- for (; l?.parentKey != null; )
848
- l = n.getItem(l.parentKey), l && t.unshift(l);
849
- return t;
850
- }
851
- const zt = /* @__PURE__ */ Q(null), dt = {
852
- CollectionRoot({ collection: n, renderDropIndicator: e }) {
853
- return De(n, null, e);
854
- },
855
- CollectionBranch({ collection: n, parent: e, renderDropIndicator: t }) {
856
- return De(n, e, t);
857
- }
858
- };
859
- function De(n, e, t) {
860
- return Xe({
861
- items: e ? n.getChildren(e.key) : n,
862
- dependencies: [
863
- t
864
- ],
865
- children(l) {
866
- let i = l.render(l);
867
- return !t || l.type !== "item" ? i : /* @__PURE__ */ L.createElement(L.Fragment, null, t({
868
- type: "item",
869
- key: l.key,
870
- dropPosition: "before"
871
- }), i, ht(n, l, t));
872
- }
873
- });
874
- }
875
- function ht(n, e, t) {
876
- let l = e.key, i = n.getKeyAfter(l), s = i != null ? n.getItem(i) : null;
877
- for (; s != null && s.type !== "item"; )
878
- i = n.getKeyAfter(s.key), s = i != null ? n.getItem(i) : null;
879
- let o = e.nextKey != null ? n.getItem(e.nextKey) : null;
880
- for (; o != null && o.type !== "item"; ) o = o.nextKey != null ? n.getItem(o.nextKey) : null;
881
- let f = [];
882
- if (o == null) {
883
- let a = e;
884
- for (; a && (!s || a.parentKey !== s.parentKey && s.level < a.level); ) {
885
- let $ = t({
886
- type: "item",
887
- key: a.key,
888
- dropPosition: "after"
889
- });
890
- /* @__PURE__ */ Me($) && f.push(/* @__PURE__ */ Le($, {
891
- key: `${a.key}-after`
892
- })), a = a.parentKey != null ? n.getItem(a.parentKey) : null;
893
- }
894
- }
895
- return f;
896
- }
897
- const Vt = /* @__PURE__ */ Q(dt);
898
- function Ut(n) {
899
- return W(() => n != null ? /* @__PURE__ */ new Set([
900
- n
901
- ]) : null, [
902
- n
903
- ]);
904
- }
905
- class C extends Set {
906
- constructor(e, t, l) {
907
- super(e), e instanceof C ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = l ?? null);
908
- }
909
- }
910
- function yt(n, e) {
911
- if (n.size !== e.size) return !1;
912
- for (let t of n)
913
- if (!e.has(t)) return !1;
914
- return !0;
915
- }
916
- function Ht(n) {
917
- let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: s = "all" } = n, o = w(!1), [, f] = oe(!1), a = w(null), $ = w(null), [, I] = oe(null), b = W(() => Fe(n.selectedKeys), [
918
- n.selectedKeys
919
- ]), v = W(() => Fe(n.defaultSelectedKeys, new C()), [
920
- n.defaultSelectedKeys
921
- ]), [m, g] = Ze(b, v, n.onSelectionChange), E = W(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
922
- n.disabledKeys
923
- ]), [y, h] = oe(i);
924
- i === "replace" && y === "toggle" && typeof m == "object" && m.size === 0 && h("replace");
925
- let S = w(i);
926
- return j(() => {
927
- i !== S.current && (h(i), S.current = i);
928
- }, [
929
- i
930
- ]), {
931
- selectionMode: e,
932
- disallowEmptySelection: t,
933
- selectionBehavior: y,
934
- setSelectionBehavior: h,
935
- get isFocused() {
936
- return o.current;
937
- },
938
- setFocused(p) {
939
- o.current = p, f(p);
940
- },
941
- get focusedKey() {
942
- return a.current;
943
- },
944
- get childFocusStrategy() {
945
- return $.current;
946
- },
947
- setFocusedKey(p, D = "first") {
948
- a.current = p, $.current = D, I(p);
949
- },
950
- selectedKeys: m,
951
- setSelectedKeys(p) {
952
- (l || !yt(p, m)) && g(p);
953
- },
954
- disabledKeys: E,
955
- disabledBehavior: s
956
- };
957
- }
958
- function Fe(n, e) {
959
- return n ? n === "all" ? "all" : new C(n) : e;
960
- }
961
- class Be {
962
- /**
963
- * The type of selection that is allowed in the collection.
964
- */
965
- get selectionMode() {
966
- return this.state.selectionMode;
967
- }
968
- /**
969
- * Whether the collection allows empty selection.
970
- */
971
- get disallowEmptySelection() {
972
- return this.state.disallowEmptySelection;
973
- }
974
- /**
975
- * The selection behavior for the collection.
976
- */
977
- get selectionBehavior() {
978
- return this.state.selectionBehavior;
979
- }
980
- /**
981
- * Sets the selection behavior for the collection.
982
- */
983
- setSelectionBehavior(e) {
984
- this.state.setSelectionBehavior(e);
985
- }
986
- /**
987
- * Whether the collection is currently focused.
988
- */
989
- get isFocused() {
990
- return this.state.isFocused;
991
- }
992
- /**
993
- * Sets whether the collection is focused.
994
- */
995
- setFocused(e) {
996
- this.state.setFocused(e);
997
- }
998
- /**
999
- * The current focused key in the collection.
1000
- */
1001
- get focusedKey() {
1002
- return this.state.focusedKey;
1003
- }
1004
- /** Whether the first or last child of the focused key should receive focus. */
1005
- get childFocusStrategy() {
1006
- return this.state.childFocusStrategy;
1007
- }
1008
- /**
1009
- * Sets the focused key.
1010
- */
1011
- setFocusedKey(e, t) {
1012
- (e == null || this.collection.getItem(e)) && this.state.setFocusedKey(e, t);
1013
- }
1014
- /**
1015
- * The currently selected keys in the collection.
1016
- */
1017
- get selectedKeys() {
1018
- return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
1019
- }
1020
- /**
1021
- * The raw selection value for the collection.
1022
- * Either 'all' for select all, or a set of keys.
1023
- */
1024
- get rawSelection() {
1025
- return this.state.selectedKeys;
1026
- }
1027
- /**
1028
- * Returns whether a key is selected.
1029
- */
1030
- isSelected(e) {
1031
- if (this.state.selectionMode === "none") return !1;
1032
- let t = this.getKey(e);
1033
- return t == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(t) : this.state.selectedKeys.has(t);
1034
- }
1035
- /**
1036
- * Whether the selection is empty.
1037
- */
1038
- get isEmpty() {
1039
- return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
1040
- }
1041
- /**
1042
- * Whether all items in the collection are selected.
1043
- */
1044
- get isSelectAll() {
1045
- if (this.isEmpty) return !1;
1046
- if (this.state.selectedKeys === "all") return !0;
1047
- if (this._isSelectAll != null) return this._isSelectAll;
1048
- let e = this.getSelectAllKeys(), t = this.state.selectedKeys;
1049
- return this._isSelectAll = e.every((l) => t.has(l)), this._isSelectAll;
1050
- }
1051
- get firstSelectedKey() {
1052
- let e = null;
1053
- for (let l of this.state.selectedKeys) {
1054
- let i = this.collection.getItem(l);
1055
- (!e || i && ue(this.collection, i, e) < 0) && (e = i);
1056
- }
1057
- var t;
1058
- return (t = e?.key) !== null && t !== void 0 ? t : null;
1059
- }
1060
- get lastSelectedKey() {
1061
- let e = null;
1062
- for (let l of this.state.selectedKeys) {
1063
- let i = this.collection.getItem(l);
1064
- (!e || i && ue(this.collection, i, e) > 0) && (e = i);
1065
- }
1066
- var t;
1067
- return (t = e?.key) !== null && t !== void 0 ? t : null;
1068
- }
1069
- get disabledKeys() {
1070
- return this.state.disabledKeys;
1071
- }
1072
- get disabledBehavior() {
1073
- return this.state.disabledBehavior;
1074
- }
1075
- /**
1076
- * Extends the selection to the given key.
1077
- */
1078
- extendSelection(e) {
1079
- if (this.selectionMode === "none") return;
1080
- if (this.selectionMode === "single") {
1081
- this.replaceSelection(e);
1082
- return;
1083
- }
1084
- let t = this.getKey(e);
1085
- if (t == null) return;
1086
- let l;
1087
- if (this.state.selectedKeys === "all") l = new C([
1088
- t
1089
- ], t, t);
1090
- else {
1091
- let o = this.state.selectedKeys;
1092
- var i;
1093
- let f = (i = o.anchorKey) !== null && i !== void 0 ? i : t;
1094
- l = new C(o, f, t);
1095
- var s;
1096
- for (let a of this.getKeyRange(f, (s = o.currentKey) !== null && s !== void 0 ? s : t)) l.delete(a);
1097
- for (let a of this.getKeyRange(t, f)) this.canSelectItem(a) && l.add(a);
1098
- }
1099
- this.state.setSelectedKeys(l);
1100
- }
1101
- getKeyRange(e, t) {
1102
- let l = this.collection.getItem(e), i = this.collection.getItem(t);
1103
- return l && i ? ue(this.collection, l, i) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
1104
- }
1105
- getKeyRangeInternal(e, t) {
1106
- var l;
1107
- if (!((l = this.layoutDelegate) === null || l === void 0) && l.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
1108
- let i = [], s = e;
1109
- for (; s != null; ) {
1110
- let o = this.collection.getItem(s);
1111
- if (o && (o.type === "item" || o.type === "cell" && this.allowsCellSelection) && i.push(s), s === t) return i;
1112
- s = this.collection.getKeyAfter(s);
1113
- }
1114
- return [];
1115
- }
1116
- getKey(e) {
1117
- let t = this.collection.getItem(e);
1118
- if (!t || t.type === "cell" && this.allowsCellSelection) return e;
1119
- for (; t && t.type !== "item" && t.parentKey != null; ) t = this.collection.getItem(t.parentKey);
1120
- return !t || t.type !== "item" ? null : t.key;
1121
- }
1122
- /**
1123
- * Toggles whether the given key is selected.
1124
- */
1125
- toggleSelection(e) {
1126
- if (this.selectionMode === "none") return;
1127
- if (this.selectionMode === "single" && !this.isSelected(e)) {
1128
- this.replaceSelection(e);
1129
- return;
1130
- }
1131
- let t = this.getKey(e);
1132
- if (t == null) return;
1133
- let l = new C(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
1134
- l.has(t) ? l.delete(t) : this.canSelectItem(t) && (l.add(t), l.anchorKey = t, l.currentKey = t), !(this.disallowEmptySelection && l.size === 0) && this.state.setSelectedKeys(l);
1135
- }
1136
- /**
1137
- * Replaces the selection with only the given key.
1138
- */
1139
- replaceSelection(e) {
1140
- if (this.selectionMode === "none") return;
1141
- let t = this.getKey(e);
1142
- if (t == null) return;
1143
- let l = this.canSelectItem(t) ? new C([
1144
- t
1145
- ], t, t) : new C();
1146
- this.state.setSelectedKeys(l);
1147
- }
1148
- /**
1149
- * Replaces the selection with the given keys.
1150
- */
1151
- setSelectedKeys(e) {
1152
- if (this.selectionMode === "none") return;
1153
- let t = new C();
1154
- for (let l of e) {
1155
- let i = this.getKey(l);
1156
- if (i != null && (t.add(i), this.selectionMode === "single"))
1157
- break;
1158
- }
1159
- this.state.setSelectedKeys(t);
1160
- }
1161
- getSelectAllKeys() {
1162
- let e = [], t = (l) => {
1163
- for (; l != null; ) {
1164
- if (this.canSelectItem(l)) {
1165
- var i;
1166
- let o = this.collection.getItem(l);
1167
- o?.type === "item" && e.push(l);
1168
- var s;
1169
- o?.hasChildNodes && (this.allowsCellSelection || o.type !== "item") && t((s = (i = at(ut(o, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && s !== void 0 ? s : null);
1170
- }
1171
- l = this.collection.getKeyAfter(l);
1172
- }
1173
- };
1174
- return t(this.collection.getFirstKey()), e;
1175
- }
1176
- /**
1177
- * Selects all items in the collection.
1178
- */
1179
- selectAll() {
1180
- !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
1181
- }
1182
- /**
1183
- * Removes all keys from the selection.
1184
- */
1185
- clearSelection() {
1186
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new C());
1187
- }
1188
- /**
1189
- * Toggles between select all and an empty selection.
1190
- */
1191
- toggleSelectAll() {
1192
- this.isSelectAll ? this.clearSelection() : this.selectAll();
1193
- }
1194
- select(e, t) {
1195
- 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));
1196
- }
1197
- /**
1198
- * Returns whether the current selection is equal to the given selection.
1199
- */
1200
- isSelectionEqual(e) {
1201
- if (e === this.state.selectedKeys) return !0;
1202
- let t = this.selectedKeys;
1203
- if (e.size !== t.size) return !1;
1204
- for (let l of e)
1205
- if (!t.has(l)) return !1;
1206
- for (let l of t)
1207
- if (!e.has(l)) return !1;
1208
- return !0;
1209
- }
1210
- canSelectItem(e) {
1211
- var t;
1212
- if (this.state.selectionMode === "none" || this.state.disabledKeys.has(e)) return !1;
1213
- let l = this.collection.getItem(e);
1214
- return !(!l || !(l == null || (t = l.props) === null || t === void 0) && t.isDisabled || l.type === "cell" && !this.allowsCellSelection);
1215
- }
1216
- isDisabled(e) {
1217
- var t, l;
1218
- return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(e) || !!(!((l = this.collection.getItem(e)) === null || l === void 0 || (t = l.props) === null || t === void 0) && t.isDisabled));
1219
- }
1220
- isLink(e) {
1221
- var t, l;
1222
- return !!(!((l = this.collection.getItem(e)) === null || l === void 0 || (t = l.props) === null || t === void 0) && t.href);
1223
- }
1224
- getItemProps(e) {
1225
- var t;
1226
- return (t = this.collection.getItem(e)) === null || t === void 0 ? void 0 : t.props;
1227
- }
1228
- withCollection(e) {
1229
- return new Be(e, this.state, {
1230
- allowsCellSelection: this.allowsCellSelection,
1231
- layoutDelegate: this.layoutDelegate || void 0
1232
- });
1233
- }
1234
- constructor(e, t, l) {
1235
- this.collection = e, this.state = t;
1236
- var i;
1237
- this.allowsCellSelection = (i = l?.allowsCellSelection) !== null && i !== void 0 ? i : !1, this._isSelectAll = null, this.layoutDelegate = l?.layoutDelegate || null;
1238
- }
1239
- }
1240
- export {
1241
- Mt as $,
1242
- Rt as a,
1243
- ut as b,
1244
- Bt as c,
1245
- Ht as d,
1246
- Lt as e,
1247
- Be as f,
1248
- Vt as g,
1249
- At as h,
1250
- zt as i,
1251
- rt as j,
1252
- dt as k,
1253
- Ut as l,
1254
- Ot as m,
1255
- at as n,
1256
- ft as o,
1257
- Se as p,
1258
- Ct as q,
1259
- Ce as r,
1260
- Qe as s,
1261
- Ae as t,
1262
- Je as u,
1263
- et as v,
1264
- H as w,
1265
- tt as x,
1266
- _e as y
1267
- };
1268
- //# sourceMappingURL=SelectionManager-CSt4dh97.es.js.map