@commercetools/nimbus 0.0.10 → 0.0.12-rc1

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 (1030) hide show
  1. package/dist/accordion.d.ts +9 -2
  2. package/dist/alert.d.ts +9 -7
  3. package/dist/avatar.d.ts +4 -4
  4. package/dist/badge.d.ts +7 -13
  5. package/dist/box.d.ts +8 -1
  6. package/dist/button.d.ts +10 -3
  7. package/dist/calendar.d.ts +9 -2
  8. package/dist/card.d.ts +11 -4
  9. package/dist/checkbox.d.ts +5 -11
  10. package/dist/chunks/Button-BLHXvl6m.es.js +80 -0
  11. package/dist/chunks/Button-BLHXvl6m.es.js.map +1 -0
  12. package/dist/chunks/Button-BjOgrRmH.cjs.js +2 -0
  13. package/dist/chunks/Button-BjOgrRmH.cjs.js.map +1 -0
  14. package/dist/chunks/DateField-Aj6J_Ms0.es.js +2589 -0
  15. package/dist/chunks/DateField-Aj6J_Ms0.es.js.map +1 -0
  16. package/dist/chunks/DateField-G0i9Cflc.cjs.js +2 -0
  17. package/dist/chunks/DateField-G0i9Cflc.cjs.js.map +1 -0
  18. package/dist/chunks/DatePicker-BD8RjPSL.cjs.js +2 -0
  19. package/dist/chunks/DatePicker-BD8RjPSL.cjs.js.map +1 -0
  20. package/dist/chunks/DatePicker-BnQyHiTi.es.js +762 -0
  21. package/dist/chunks/DatePicker-BnQyHiTi.es.js.map +1 -0
  22. package/dist/chunks/Dialog-Btds5x4W.cjs.js +2 -0
  23. package/dist/chunks/Dialog-Btds5x4W.cjs.js.map +1 -0
  24. package/dist/chunks/Dialog-CTf0VB6B.es.js +1888 -0
  25. package/dist/chunks/Dialog-CTf0VB6B.es.js.map +1 -0
  26. package/dist/chunks/FocusScope-BEOPrcCH.cjs.js +2 -0
  27. package/dist/chunks/FocusScope-BEOPrcCH.cjs.js.map +1 -0
  28. package/dist/chunks/FocusScope-qJgAziUV.es.js +671 -0
  29. package/dist/chunks/FocusScope-qJgAziUV.es.js.map +1 -0
  30. package/dist/chunks/Group-apcpZquv.cjs.js +2 -0
  31. package/dist/chunks/Group-apcpZquv.cjs.js.map +1 -0
  32. package/dist/chunks/Group-nelci54o.es.js +78 -0
  33. package/dist/chunks/Group-nelci54o.es.js.map +1 -0
  34. package/dist/chunks/Heading-CYQ_Jn6M.es.js +1605 -0
  35. package/dist/chunks/Heading-CYQ_Jn6M.es.js.map +1 -0
  36. package/dist/chunks/Heading-DiqU5dbv.cjs.js +2 -0
  37. package/dist/chunks/Heading-DiqU5dbv.cjs.js.map +1 -0
  38. package/dist/chunks/Hidden-X9vuhkMZ.es.js +28 -0
  39. package/dist/chunks/Hidden-X9vuhkMZ.es.js.map +1 -0
  40. package/dist/chunks/Input-BEgGe6bw.cjs.js +2 -0
  41. package/dist/chunks/Input-BEgGe6bw.cjs.js.map +1 -0
  42. package/dist/chunks/Input-Cvh_r_c1.es.js +43 -0
  43. package/dist/chunks/Input-Cvh_r_c1.es.js.map +1 -0
  44. package/dist/chunks/Keyboard-Clnp4zAC.es.js +6 -0
  45. package/dist/chunks/Keyboard-Clnp4zAC.es.js.map +1 -0
  46. package/dist/chunks/Keyboard-rYf2KxZN.cjs.js +2 -0
  47. package/dist/chunks/Keyboard-rYf2KxZN.cjs.js.map +1 -0
  48. package/dist/chunks/Label-BhU-HP65.es.js +17 -0
  49. package/dist/chunks/Label-BhU-HP65.es.js.map +1 -0
  50. package/dist/chunks/Label-DFXyfxZM.cjs.js +2 -0
  51. package/dist/chunks/Label-DFXyfxZM.cjs.js.map +1 -0
  52. package/dist/chunks/ListBox-0C7L4Sat.es.js +645 -0
  53. package/dist/chunks/ListBox-0C7L4Sat.es.js.map +1 -0
  54. package/dist/chunks/ListBox-BEZfjFMq.cjs.js +2 -0
  55. package/dist/chunks/ListBox-BEZfjFMq.cjs.js.map +1 -0
  56. package/dist/chunks/LiveAnnouncer-BkrEjKY8.cjs.js +2 -0
  57. package/dist/chunks/LiveAnnouncer-BkrEjKY8.cjs.js.map +1 -0
  58. package/dist/chunks/LiveAnnouncer-CsPyaceH.es.js +52 -0
  59. package/dist/chunks/LiveAnnouncer-CsPyaceH.es.js.map +1 -0
  60. package/dist/chunks/NumberFormatter-DewVDY5w.cjs.js.map +1 -1
  61. package/dist/chunks/NumberFormatter-DgOUVrge.es.js.map +1 -1
  62. package/dist/chunks/OverlayArrow-BcRQfR_V.cjs.js +2 -0
  63. package/dist/chunks/OverlayArrow-BcRQfR_V.cjs.js.map +1 -0
  64. package/dist/chunks/OverlayArrow-C1hn2WBd.es.js +479 -0
  65. package/dist/chunks/OverlayArrow-C1hn2WBd.es.js.map +1 -0
  66. package/dist/chunks/ProgressBar-Cot0VLjE.cjs.js +2 -0
  67. package/dist/chunks/ProgressBar-Cot0VLjE.cjs.js.map +1 -0
  68. package/dist/chunks/ProgressBar-DrSArMks.es.js +39 -0
  69. package/dist/chunks/ProgressBar-DrSArMks.es.js.map +1 -0
  70. package/dist/chunks/SSRProvider-DZRLwxPS.cjs.js.map +1 -1
  71. package/dist/chunks/SSRProvider-eIEwc-2s.es.js.map +1 -1
  72. package/dist/chunks/Separator-BFKzWOOv.cjs.js +18 -0
  73. package/dist/chunks/Separator-BFKzWOOv.cjs.js.map +1 -0
  74. package/dist/chunks/Separator-ChieGwKF.es.js +2435 -0
  75. package/dist/chunks/Separator-ChieGwKF.es.js.map +1 -0
  76. package/dist/chunks/TextArea-BleoN8N2.es.js +42 -0
  77. package/dist/chunks/TextArea-BleoN8N2.es.js.map +1 -0
  78. package/dist/chunks/TextArea-ciW_61Jv.cjs.js +2 -0
  79. package/dist/chunks/TextArea-ciW_61Jv.cjs.js.map +1 -0
  80. package/dist/chunks/ToggleButton-CXa3lkD6.cjs.js +2 -0
  81. package/dist/chunks/ToggleButton-CXa3lkD6.cjs.js.map +1 -0
  82. package/dist/chunks/ToggleButton-CcA_6EjA.es.js +189 -0
  83. package/dist/chunks/ToggleButton-CcA_6EjA.es.js.map +1 -0
  84. package/dist/chunks/VisuallyHidden-Cqkg4RzT.cjs.js +2 -0
  85. package/dist/chunks/VisuallyHidden-Cqkg4RzT.cjs.js.map +1 -0
  86. package/dist/chunks/VisuallyHidden-vVsCehgl.es.js +41 -0
  87. package/dist/chunks/VisuallyHidden-vVsCehgl.es.js.map +1 -0
  88. package/dist/chunks/accordion-4C7hF2JJ.es.js +223 -0
  89. package/dist/chunks/accordion-4C7hF2JJ.es.js.map +1 -0
  90. package/dist/chunks/accordion-B-0SAOc-.cjs.js +2 -0
  91. package/dist/chunks/accordion-B-0SAOc-.cjs.js.map +1 -0
  92. package/dist/chunks/alert-C9I2_j1h.es.js +187 -0
  93. package/dist/chunks/alert-C9I2_j1h.es.js.map +1 -0
  94. package/dist/chunks/alert-DWA7Mm4i.cjs.js +2 -0
  95. package/dist/chunks/alert-DWA7Mm4i.cjs.js.map +1 -0
  96. package/dist/chunks/avatar-DDCMu1RQ.es.js +38 -0
  97. package/dist/chunks/avatar-DDCMu1RQ.es.js.map +1 -0
  98. package/dist/chunks/avatar-Dps7PI8I.cjs.js +2 -0
  99. package/dist/chunks/avatar-Dps7PI8I.cjs.js.map +1 -0
  100. package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js +2 -0
  101. package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js.map +1 -0
  102. package/dist/chunks/avatar.recipe-CxXQlkH6.es.js +39 -0
  103. package/dist/chunks/avatar.recipe-CxXQlkH6.es.js.map +1 -0
  104. package/dist/chunks/badge-Do9L64AE.cjs.js +2 -0
  105. package/dist/chunks/badge-Do9L64AE.cjs.js.map +1 -0
  106. package/dist/chunks/badge-Iq596jRa.es.js +78 -0
  107. package/dist/chunks/badge-Iq596jRa.es.js.map +1 -0
  108. package/dist/chunks/box-BOsRGQEm.cjs.js +2 -0
  109. package/dist/chunks/box-BOsRGQEm.cjs.js.map +1 -0
  110. package/dist/chunks/box-Cd4iddEV.es.js +13 -0
  111. package/dist/chunks/box-Cd4iddEV.es.js.map +1 -0
  112. package/dist/chunks/button-CdEn0J7Z.cjs.js +2 -0
  113. package/dist/chunks/button-CdEn0J7Z.cjs.js.map +1 -0
  114. package/dist/chunks/button-CueBxdjn.es.js +57 -0
  115. package/dist/chunks/button-CueBxdjn.es.js.map +1 -0
  116. package/dist/chunks/button.recipe-ClPhJ93N.cjs.js +2 -0
  117. package/dist/chunks/button.recipe-ClPhJ93N.cjs.js.map +1 -0
  118. package/dist/chunks/button.recipe-D9e9Gh9L.es.js +191 -0
  119. package/dist/chunks/button.recipe-D9e9Gh9L.es.js.map +1 -0
  120. package/dist/chunks/calendar-DssRRpmr.cjs.js +2 -0
  121. package/dist/chunks/calendar-DssRRpmr.cjs.js.map +1 -0
  122. package/dist/chunks/calendar-DwmLJswz.es.js +187 -0
  123. package/dist/chunks/calendar-DwmLJswz.es.js.map +1 -0
  124. package/dist/chunks/card-BZEVZLCo.cjs.js +2 -0
  125. package/dist/chunks/card-BZEVZLCo.cjs.js.map +1 -0
  126. package/dist/chunks/card-CDFYX3Fk.es.js +139 -0
  127. package/dist/chunks/card-CDFYX3Fk.es.js.map +1 -0
  128. package/dist/chunks/checkbox-C9AJOro3.es.js +90 -0
  129. package/dist/chunks/checkbox-C9AJOro3.es.js.map +1 -0
  130. package/dist/chunks/checkbox-Cc2Yab3K.cjs.js +2 -0
  131. package/dist/chunks/checkbox-Cc2Yab3K.cjs.js.map +1 -0
  132. package/dist/chunks/code-7P3tH99x.cjs.js +2 -0
  133. package/dist/chunks/code-7P3tH99x.cjs.js.map +1 -0
  134. package/dist/chunks/code-C44qm68X.es.js +8 -0
  135. package/dist/chunks/code-C44qm68X.es.js.map +1 -0
  136. package/dist/chunks/combobox-BuL7gWCK.cjs.js +2 -0
  137. package/dist/chunks/combobox-BuL7gWCK.cjs.js.map +1 -0
  138. package/dist/chunks/combobox-qAi2j415.es.js +1918 -0
  139. package/dist/chunks/combobox-qAi2j415.es.js.map +1 -0
  140. package/dist/chunks/config-Mt8_uyhI.cjs.js +2 -0
  141. package/dist/chunks/config-Mt8_uyhI.cjs.js.map +1 -0
  142. package/dist/chunks/config-ufbQ08Vi.es.js +6 -0
  143. package/dist/chunks/config-ufbQ08Vi.es.js.map +1 -0
  144. package/dist/chunks/context-D3RF-nTI.es.js.map +1 -1
  145. package/dist/chunks/context-DURpz5en.cjs.js.map +1 -1
  146. package/dist/chunks/create-recipe-context-BfiKn3k_.cjs.js +2 -0
  147. package/dist/chunks/create-recipe-context-BfiKn3k_.cjs.js.map +1 -0
  148. package/dist/chunks/create-recipe-context-c0qjq1fz.es.js +62 -0
  149. package/dist/chunks/create-recipe-context-c0qjq1fz.es.js.map +1 -0
  150. package/dist/chunks/create-slot-recipe-context-7JMdJHPF.cjs.js +2 -0
  151. package/dist/chunks/create-slot-recipe-context-7JMdJHPF.cjs.js.map +1 -0
  152. package/dist/chunks/create-slot-recipe-context-Cv3lncUO.es.js +104 -0
  153. package/dist/chunks/create-slot-recipe-context-Cv3lncUO.es.js.map +1 -0
  154. package/dist/chunks/date-input-CCTsf1nI.es.js +17 -0
  155. package/dist/chunks/date-input-CCTsf1nI.es.js.map +1 -0
  156. package/dist/chunks/date-input-CmiFb8SU.cjs.js +2 -0
  157. package/dist/chunks/date-input-CmiFb8SU.cjs.js.map +1 -0
  158. package/dist/chunks/date-picker-BFVj989W.es.js +187 -0
  159. package/dist/chunks/date-picker-BFVj989W.es.js.map +1 -0
  160. package/dist/chunks/date-picker-BwlDu__G.cjs.js +2 -0
  161. package/dist/chunks/date-picker-BwlDu__G.cjs.js.map +1 -0
  162. package/dist/chunks/date-range-picker-Cx9WSfmc.cjs.js +2 -0
  163. package/dist/chunks/date-range-picker-Cx9WSfmc.cjs.js.map +1 -0
  164. package/dist/chunks/date-range-picker-Cxe6UXcI.es.js +277 -0
  165. package/dist/chunks/date-range-picker-Cxe6UXcI.es.js.map +1 -0
  166. package/dist/chunks/dialog-7iIFtc75.cjs.js +2 -0
  167. package/dist/chunks/dialog-7iIFtc75.cjs.js.map +1 -0
  168. package/dist/chunks/dialog-CbMKp4zh.es.js +1874 -0
  169. package/dist/chunks/dialog-CbMKp4zh.es.js.map +1 -0
  170. package/dist/chunks/divider-CEphvk-H.es.js +60 -0
  171. package/dist/chunks/divider-CEphvk-H.es.js.map +1 -0
  172. package/dist/chunks/divider-CjCxQeVK.cjs.js +2 -0
  173. package/dist/chunks/divider-CjCxQeVK.cjs.js.map +1 -0
  174. package/dist/chunks/domHelpers-InH3T0qs.es.js +16 -0
  175. package/dist/chunks/domHelpers-InH3T0qs.es.js.map +1 -0
  176. package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js +2 -0
  177. package/dist/chunks/domHelpers-YAYZ9fE9.cjs.js.map +1 -0
  178. package/dist/chunks/empty-B5_AO6Pg.cjs.js +2 -0
  179. package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +1 -0
  180. package/dist/chunks/empty-D7ZFmvo6.es.js +8 -0
  181. package/dist/chunks/empty-D7ZFmvo6.es.js.map +1 -0
  182. package/dist/chunks/extractStyleProps-CRJEfqqS.cjs.js +2 -0
  183. package/dist/chunks/extractStyleProps-CRJEfqqS.cjs.js.map +1 -0
  184. package/dist/chunks/extractStyleProps-KcWE_ep4.es.js +11 -0
  185. package/dist/chunks/extractStyleProps-KcWE_ep4.es.js.map +1 -0
  186. package/dist/chunks/factory-BpGQXckI.es.js +266 -0
  187. package/dist/chunks/factory-BpGQXckI.es.js.map +1 -0
  188. package/dist/chunks/factory-DNbWS0Ob.cjs.js +3 -0
  189. package/dist/chunks/factory-DNbWS0Ob.cjs.js.map +1 -0
  190. package/dist/chunks/filterDOMProps-HzsCnE3d.es.js +25 -0
  191. package/dist/chunks/filterDOMProps-HzsCnE3d.es.js.map +1 -0
  192. package/dist/chunks/filterDOMProps-_f3L9QML.cjs.js +2 -0
  193. package/dist/chunks/filterDOMProps-_f3L9QML.cjs.js.map +1 -0
  194. package/dist/chunks/flex-DgabwPpo.es.js +40 -0
  195. package/dist/chunks/flex-DgabwPpo.es.js.map +1 -0
  196. package/dist/chunks/flex-DgsstZZT.cjs.js +2 -0
  197. package/dist/chunks/flex-DgsstZZT.cjs.js.map +1 -0
  198. package/dist/chunks/focusSafely-BEP7qH8R.cjs.js +2 -0
  199. package/dist/chunks/focusSafely-BEP7qH8R.cjs.js.map +1 -0
  200. package/dist/chunks/focusSafely-DJGT4IAS.es.js +69 -0
  201. package/dist/chunks/focusSafely-DJGT4IAS.es.js.map +1 -0
  202. package/dist/chunks/focusWithoutScrolling-BlyUcXdY.cjs.js.map +1 -1
  203. package/dist/chunks/focusWithoutScrolling-CDw3JYiq.es.js.map +1 -1
  204. package/dist/chunks/form-field-CZ9tkW04.cjs.js +11 -0
  205. package/dist/chunks/form-field-CZ9tkW04.cjs.js.map +1 -0
  206. package/dist/chunks/form-field-cwuj6464.es.js +310 -0
  207. package/dist/chunks/form-field-cwuj6464.es.js.map +1 -0
  208. package/dist/chunks/grid-D2EDS3Nw.cjs.js +2 -0
  209. package/dist/chunks/grid-D2EDS3Nw.cjs.js.map +1 -0
  210. package/dist/chunks/grid-item-BHKNxWuU.es.js +75 -0
  211. package/dist/chunks/grid-item-BHKNxWuU.es.js.map +1 -0
  212. package/dist/chunks/grid-item-Bwt35oD8.cjs.js +2 -0
  213. package/dist/chunks/grid-item-Bwt35oD8.cjs.js.map +1 -0
  214. package/dist/chunks/grid-ksgCqjX_.es.js +14 -0
  215. package/dist/chunks/grid-ksgCqjX_.es.js.map +1 -0
  216. package/dist/chunks/heading-C9DC5cG8.es.js +8 -0
  217. package/dist/chunks/heading-C9DC5cG8.es.js.map +1 -0
  218. package/dist/chunks/heading-CbGsyynP.cjs.js +2 -0
  219. package/dist/chunks/heading-CbGsyynP.cjs.js.map +1 -0
  220. package/dist/chunks/icon-BSGub7AG.es.js +32 -0
  221. package/dist/chunks/icon-BSGub7AG.es.js.map +1 -0
  222. package/dist/chunks/icon-H-rP9kq5.cjs.js +2 -0
  223. package/dist/chunks/icon-H-rP9kq5.cjs.js.map +1 -0
  224. package/dist/chunks/icon-button-C7MMcLBN.es.js +14 -0
  225. package/dist/chunks/icon-button-C7MMcLBN.es.js.map +1 -0
  226. package/dist/chunks/icon-button-DF2_vh-X.cjs.js +2 -0
  227. package/dist/chunks/icon-button-DF2_vh-X.cjs.js.map +1 -0
  228. package/dist/chunks/icon-toggle-button-BJBv57G-.es.js +13 -0
  229. package/dist/chunks/icon-toggle-button-BJBv57G-.es.js.map +1 -0
  230. package/dist/chunks/icon-toggle-button-D3QOY_O9.cjs.js +2 -0
  231. package/dist/chunks/icon-toggle-button-D3QOY_O9.cjs.js.map +1 -0
  232. package/dist/chunks/image-B-WEdENT.cjs.js +2 -0
  233. package/dist/chunks/image-B-WEdENT.cjs.js.map +1 -0
  234. package/dist/chunks/image-BVUCjLWP.es.js +22 -0
  235. package/dist/chunks/image-BVUCjLWP.es.js.map +1 -0
  236. package/dist/chunks/image-BwlmPt3P.es.js +8 -0
  237. package/dist/chunks/image-BwlmPt3P.es.js.map +1 -0
  238. package/dist/chunks/image-CIQlu9WX.cjs.js +2 -0
  239. package/dist/chunks/image-CIQlu9WX.cjs.js.map +1 -0
  240. package/dist/chunks/index--oJQaJZy.es.js +3316 -0
  241. package/dist/chunks/index--oJQaJZy.es.js.map +1 -0
  242. package/dist/chunks/index-Ca-OEf5O.cjs.js +4 -0
  243. package/dist/chunks/index-Ca-OEf5O.cjs.js.map +1 -0
  244. package/dist/chunks/kbd-D4NGKYuV.cjs.js +2 -0
  245. package/dist/chunks/kbd-D4NGKYuV.cjs.js.map +1 -0
  246. package/dist/chunks/kbd-r-if98_U.es.js +16 -0
  247. package/dist/chunks/kbd-r-if98_U.es.js.map +1 -0
  248. package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js +2 -0
  249. package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js.map +1 -0
  250. package/dist/chunks/kbd.recipe-BTW0MQqx.es.js +26 -0
  251. package/dist/chunks/kbd.recipe-BTW0MQqx.es.js.map +1 -0
  252. package/dist/chunks/link-BzKZPUDc.cjs.js +2 -0
  253. package/dist/chunks/link-BzKZPUDc.cjs.js.map +1 -0
  254. package/dist/chunks/link-CpCTJrhi.es.js +51 -0
  255. package/dist/chunks/link-CpCTJrhi.es.js.map +1 -0
  256. package/dist/chunks/link.recipe-BRnFQ5bP.es.js +51 -0
  257. package/dist/chunks/link.recipe-BRnFQ5bP.es.js.map +1 -0
  258. package/dist/chunks/link.recipe-BfCxtKjL.cjs.js +2 -0
  259. package/dist/chunks/link.recipe-BfCxtKjL.cjs.js.map +1 -0
  260. package/dist/chunks/list-BaX7-sRB.cjs.js +2 -0
  261. package/dist/chunks/list-BaX7-sRB.cjs.js.map +1 -0
  262. package/dist/chunks/list-BhODpevn.es.js +23 -0
  263. package/dist/chunks/list-BhODpevn.es.js.map +1 -0
  264. package/dist/chunks/loading-spinner-DJg5GzG_.cjs.js +2 -0
  265. package/dist/chunks/loading-spinner-DJg5GzG_.cjs.js.map +1 -0
  266. package/dist/chunks/loading-spinner-DchMqwoe.es.js +106 -0
  267. package/dist/chunks/loading-spinner-DchMqwoe.es.js.map +1 -0
  268. package/dist/chunks/make-element-focusable-Ca78aIFw.es.js +22 -0
  269. package/dist/chunks/make-element-focusable-Ca78aIFw.es.js.map +1 -0
  270. package/dist/chunks/make-element-focusable-DDGKtWBN.cjs.js +2 -0
  271. package/dist/chunks/make-element-focusable-DDGKtWBN.cjs.js.map +1 -0
  272. package/dist/chunks/menu-B3lbUDtQ.cjs.js +2 -0
  273. package/dist/chunks/menu-B3lbUDtQ.cjs.js.map +1 -0
  274. package/dist/chunks/menu-Bcxace3m.es.js +167 -0
  275. package/dist/chunks/menu-Bcxace3m.es.js.map +1 -0
  276. package/dist/chunks/mergeProps-C0OSi2w3.es.js +129 -0
  277. package/dist/chunks/mergeProps-C0OSi2w3.es.js.map +1 -0
  278. package/dist/chunks/mergeProps-VvQrkhSh.cjs.js +2 -0
  279. package/dist/chunks/mergeProps-VvQrkhSh.cjs.js.map +1 -0
  280. package/dist/chunks/multiline-text-input-CsC1RnrK.cjs.js +12 -0
  281. package/dist/chunks/multiline-text-input-CsC1RnrK.cjs.js.map +1 -0
  282. package/dist/chunks/multiline-text-input-mG88SzQO.es.js +120 -0
  283. package/dist/chunks/multiline-text-input-mG88SzQO.es.js.map +1 -0
  284. package/dist/chunks/namespace-BXD5i_90.cjs.js +2 -0
  285. package/dist/chunks/namespace-BXD5i_90.cjs.js.map +1 -0
  286. package/dist/chunks/namespace-BmDr3F-d.es.js +74 -0
  287. package/dist/chunks/namespace-BmDr3F-d.es.js.map +1 -0
  288. package/dist/chunks/nimbus-provider-DJEIgoZl.cjs.js +2 -0
  289. package/dist/chunks/nimbus-provider-DJEIgoZl.cjs.js.map +1 -0
  290. package/dist/chunks/nimbus-provider-DPlYG_b9.es.js +101 -0
  291. package/dist/chunks/nimbus-provider-DPlYG_b9.es.js.map +1 -0
  292. package/dist/chunks/number-5qMXmHyn.es.js.map +1 -1
  293. package/dist/chunks/number-CnrRPi4_.cjs.js.map +1 -1
  294. package/dist/chunks/number-input-BNL4jPo5.cjs.js +2 -0
  295. package/dist/chunks/number-input-BNL4jPo5.cjs.js.map +1 -0
  296. package/dist/chunks/number-input-xPBvFtO8.es.js +670 -0
  297. package/dist/chunks/number-input-xPBvFtO8.es.js.map +1 -0
  298. package/dist/chunks/openLink-BRnXRj9w.es.js +101 -0
  299. package/dist/chunks/openLink-BRnXRj9w.es.js.map +1 -0
  300. package/dist/chunks/openLink-BjodHrGD.cjs.js +2 -0
  301. package/dist/chunks/openLink-BjodHrGD.cjs.js.map +1 -0
  302. package/dist/chunks/password-input-ClTF8ndK.cjs.js +2 -0
  303. package/dist/chunks/password-input-ClTF8ndK.cjs.js.map +1 -0
  304. package/dist/chunks/password-input-SKlXZSjb.es.js +50 -0
  305. package/dist/chunks/password-input-SKlXZSjb.es.js.map +1 -0
  306. package/dist/chunks/platform-D-bXaP3n.es.js +45 -0
  307. package/dist/chunks/platform-D-bXaP3n.es.js.map +1 -0
  308. package/dist/chunks/progress-bar-D0NErylg.cjs.js +2 -0
  309. package/dist/chunks/progress-bar-D0NErylg.cjs.js.map +1 -0
  310. package/dist/chunks/progress-bar-D6DHvllq.es.js +73 -0
  311. package/dist/chunks/progress-bar-D6DHvllq.es.js.map +1 -0
  312. package/dist/chunks/provider-CUesptNK.cjs.js +16 -0
  313. package/dist/chunks/provider-CUesptNK.cjs.js.map +1 -0
  314. package/dist/chunks/provider-D5u1b72_.es.js +989 -0
  315. package/dist/chunks/provider-D5u1b72_.es.js.map +1 -0
  316. package/dist/chunks/radio-input-CigGVjie.es.js +320 -0
  317. package/dist/chunks/radio-input-CigGVjie.es.js.map +1 -0
  318. package/dist/chunks/radio-input-K6pvxMCL.cjs.js +2 -0
  319. package/dist/chunks/radio-input-K6pvxMCL.cjs.js.map +1 -0
  320. package/dist/chunks/range-calendar-BPSLYP1r.cjs.js +2 -0
  321. package/dist/chunks/range-calendar-BPSLYP1r.cjs.js.map +1 -0
  322. package/dist/chunks/range-calendar-CREtOSp1.es.js +187 -0
  323. package/dist/chunks/range-calendar-CREtOSp1.es.js.map +1 -0
  324. package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js +2 -0
  325. package/dist/chunks/scrollIntoView-B2eLOBfw.cjs.js.map +1 -0
  326. package/dist/chunks/scrollIntoView-C5qp-va8.es.js +64 -0
  327. package/dist/chunks/scrollIntoView-C5qp-va8.es.js.map +1 -0
  328. package/dist/chunks/select-C-s_r1_Z.es.js +795 -0
  329. package/dist/chunks/select-C-s_r1_Z.es.js.map +1 -0
  330. package/dist/chunks/select-Cjftrm7h.cjs.js +2 -0
  331. package/dist/chunks/select-Cjftrm7h.cjs.js.map +1 -0
  332. package/dist/chunks/simple-grid-BYgtLdTo.cjs.js +2 -0
  333. package/dist/chunks/simple-grid-BYgtLdTo.cjs.js.map +1 -0
  334. package/dist/chunks/simple-grid-QwCuXJDe.es.js +38 -0
  335. package/dist/chunks/simple-grid-QwCuXJDe.es.js.map +1 -0
  336. package/dist/chunks/stack-CFOuBCxS.es.js +89 -0
  337. package/dist/chunks/stack-CFOuBCxS.es.js.map +1 -0
  338. package/dist/chunks/stack-CSKcZxll.cjs.js +2 -0
  339. package/dist/chunks/stack-CSKcZxll.cjs.js.map +1 -0
  340. package/dist/chunks/switch-B3aegNjN.cjs.js +2 -0
  341. package/dist/chunks/switch-B3aegNjN.cjs.js.map +1 -0
  342. package/dist/chunks/switch-CBphZKZD.es.js +79 -0
  343. package/dist/chunks/switch-CBphZKZD.es.js.map +1 -0
  344. package/dist/chunks/tag-group-CZ0CriPC.es.js +1348 -0
  345. package/dist/chunks/tag-group-CZ0CriPC.es.js.map +1 -0
  346. package/dist/chunks/tag-group-sIFeH1CP.cjs.js +2 -0
  347. package/dist/chunks/tag-group-sIFeH1CP.cjs.js.map +1 -0
  348. package/dist/chunks/text-CcMvqWol.es.js +26 -0
  349. package/dist/chunks/text-CcMvqWol.es.js.map +1 -0
  350. package/dist/chunks/text-input-7wLAgfnj.cjs.js +2 -0
  351. package/dist/chunks/text-input-7wLAgfnj.cjs.js.map +1 -0
  352. package/dist/chunks/text-input-BWQuGlA8.es.js +19 -0
  353. package/dist/chunks/text-input-BWQuGlA8.es.js.map +1 -0
  354. package/dist/chunks/text-tO5nXPfT.cjs.js +2 -0
  355. package/dist/chunks/text-tO5nXPfT.cjs.js.map +1 -0
  356. package/dist/chunks/time-input-7bQqoZ8n.cjs.js +2 -0
  357. package/dist/chunks/time-input-7bQqoZ8n.cjs.js.map +1 -0
  358. package/dist/chunks/time-input-Bdh2yhge.es.js +132 -0
  359. package/dist/chunks/time-input-Bdh2yhge.es.js.map +1 -0
  360. package/dist/chunks/toggle-button-C-rQJENJ.cjs.js +2 -0
  361. package/dist/chunks/toggle-button-C-rQJENJ.cjs.js.map +1 -0
  362. package/dist/chunks/toggle-button-FiX9ip7L.es.js +30 -0
  363. package/dist/chunks/toggle-button-FiX9ip7L.es.js.map +1 -0
  364. package/dist/chunks/toggle-button-group-Cx9CekN6.es.js +82 -0
  365. package/dist/chunks/toggle-button-group-Cx9CekN6.es.js.map +1 -0
  366. package/dist/chunks/toggle-button-group-Cxx4yqgI.cjs.js +2 -0
  367. package/dist/chunks/toggle-button-group-Cxx4yqgI.cjs.js.map +1 -0
  368. package/dist/chunks/tooltip-CjYTweG9.cjs.js +2 -0
  369. package/dist/chunks/tooltip-CjYTweG9.cjs.js.map +1 -0
  370. package/dist/chunks/tooltip-D5cpNfnp.es.js +273 -0
  371. package/dist/chunks/tooltip-D5cpNfnp.es.js.map +1 -0
  372. package/dist/chunks/tooltip.recipe-DsVUEki2.es.js +24 -0
  373. package/dist/chunks/tooltip.recipe-DsVUEki2.es.js.map +1 -0
  374. package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js +2 -0
  375. package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js.map +1 -0
  376. package/dist/chunks/use-recipe-CJAjTxPP.cjs.js +2 -0
  377. package/dist/chunks/use-recipe-CJAjTxPP.cjs.js.map +1 -0
  378. package/dist/chunks/use-recipe-dUXCQYfa.es.js +13 -0
  379. package/dist/chunks/use-recipe-dUXCQYfa.es.js.map +1 -0
  380. package/dist/chunks/useButton-Bnd1IfAy.cjs.js +2 -0
  381. package/dist/chunks/useButton-Bnd1IfAy.cjs.js.map +1 -0
  382. package/dist/chunks/useButton-Codl22pH.es.js +48 -0
  383. package/dist/chunks/useButton-Codl22pH.es.js.map +1 -0
  384. package/dist/chunks/useControlledState-D0L6S_5r.cjs.js.map +1 -1
  385. package/dist/chunks/useControlledState-u436Wbp1.es.js.map +1 -1
  386. package/dist/chunks/useDateFormatter-Byp_7yyY.cjs.js +2 -0
  387. package/dist/chunks/useDateFormatter-Byp_7yyY.cjs.js.map +1 -0
  388. package/dist/chunks/useDateFormatter-zNqeIcSK.es.js +1581 -0
  389. package/dist/chunks/useDateFormatter-zNqeIcSK.es.js.map +1 -0
  390. package/dist/chunks/useDescription-Bb-vj5q6.cjs.js +2 -0
  391. package/dist/chunks/useDescription-Bb-vj5q6.cjs.js.map +1 -0
  392. package/dist/chunks/useDescription-CMy9RMYn.es.js +33 -0
  393. package/dist/chunks/useDescription-CMy9RMYn.es.js.map +1 -0
  394. package/dist/chunks/useEvent-DxQcG2ZD.es.js +22 -0
  395. package/dist/chunks/useEvent-DxQcG2ZD.es.js.map +1 -0
  396. package/dist/chunks/useEvent-ZeHBdflg.cjs.js +2 -0
  397. package/dist/chunks/useEvent-ZeHBdflg.cjs.js.map +1 -0
  398. package/dist/chunks/useField-Bj5XOvuD.es.js +36 -0
  399. package/dist/chunks/useField-Bj5XOvuD.es.js.map +1 -0
  400. package/dist/chunks/useField-Doh1_zqa.cjs.js +2 -0
  401. package/dist/chunks/useField-Doh1_zqa.cjs.js.map +1 -0
  402. package/dist/chunks/useFocus-CRjxQc9J.cjs.js +2 -0
  403. package/dist/chunks/useFocus-CRjxQc9J.cjs.js.map +1 -0
  404. package/dist/chunks/useFocus-DyrL604F.es.js +189 -0
  405. package/dist/chunks/useFocus-DyrL604F.es.js.map +1 -0
  406. package/dist/chunks/useFocusRing-BOPRvfsD.es.js +34 -0
  407. package/dist/chunks/useFocusRing-BOPRvfsD.es.js.map +1 -0
  408. package/dist/chunks/useFocusRing-wD8IMPEh.cjs.js +2 -0
  409. package/dist/chunks/useFocusRing-wD8IMPEh.cjs.js.map +1 -0
  410. package/dist/chunks/useFocusWithin-B5GNsbfr.cjs.js +2 -0
  411. package/dist/chunks/useFocusWithin-B5GNsbfr.cjs.js.map +1 -0
  412. package/dist/chunks/useFocusWithin-DH1ei7eA.es.js +55 -0
  413. package/dist/chunks/useFocusWithin-DH1ei7eA.es.js.map +1 -0
  414. package/dist/chunks/useFocusable-Bbz310Qf.cjs.js +2 -0
  415. package/dist/chunks/useFocusable-Bbz310Qf.cjs.js.map +1 -0
  416. package/dist/chunks/useFocusable-BzkEaBA7.es.js +100 -0
  417. package/dist/chunks/useFocusable-BzkEaBA7.es.js.map +1 -0
  418. package/dist/chunks/useFormReset-B_4kzDrc.es.js +21 -0
  419. package/dist/chunks/useFormReset-B_4kzDrc.es.js.map +1 -0
  420. package/dist/chunks/useFormReset-C6y6YYJp.cjs.js +2 -0
  421. package/dist/chunks/useFormReset-C6y6YYJp.cjs.js.map +1 -0
  422. package/dist/chunks/useFormValidation-D5EJ50gR.cjs.js +2 -0
  423. package/dist/chunks/useFormValidation-D5EJ50gR.cjs.js.map +1 -0
  424. package/dist/chunks/useFormValidation-x8TYT3v1.es.js +200 -0
  425. package/dist/chunks/useFormValidation-x8TYT3v1.es.js.map +1 -0
  426. package/dist/chunks/useHover-B4ryD1zd.cjs.js +2 -0
  427. package/dist/chunks/useHover-B4ryD1zd.cjs.js.map +1 -0
  428. package/dist/chunks/useHover-EutQBS3I.es.js +85 -0
  429. package/dist/chunks/useHover-EutQBS3I.es.js.map +1 -0
  430. package/dist/chunks/useLabel-Dsvi6pv1.es.js +37 -0
  431. package/dist/chunks/useLabel-Dsvi6pv1.es.js.map +1 -0
  432. package/dist/chunks/useLabel-f5x32F8v.cjs.js +2 -0
  433. package/dist/chunks/useLabel-f5x32F8v.cjs.js.map +1 -0
  434. package/dist/chunks/useLocalizedStringFormatter-B_O_C-A0.es.js +97 -0
  435. package/dist/chunks/useLocalizedStringFormatter-B_O_C-A0.es.js.map +1 -0
  436. package/dist/chunks/useLocalizedStringFormatter-ZUZDzNOP.cjs.js +2 -0
  437. package/dist/chunks/useLocalizedStringFormatter-ZUZDzNOP.cjs.js.map +1 -0
  438. package/dist/chunks/useObjectRef-4v2MxSjQ.cjs.js.map +1 -1
  439. package/dist/chunks/useObjectRef-CaJ5pgjX.es.js.map +1 -1
  440. package/dist/chunks/usePress--0XlnE9U.es.js +469 -0
  441. package/dist/chunks/usePress--0XlnE9U.es.js.map +1 -0
  442. package/dist/chunks/usePress-Cqy1fzvV.cjs.js +8 -0
  443. package/dist/chunks/usePress-Cqy1fzvV.cjs.js.map +1 -0
  444. package/dist/chunks/useProgressBar-3tBtQD6p.cjs.js +2 -0
  445. package/dist/chunks/useProgressBar-3tBtQD6p.cjs.js.map +1 -0
  446. package/dist/chunks/useProgressBar-BcErX3zh.es.js +48 -0
  447. package/dist/chunks/useProgressBar-BcErX3zh.es.js.map +1 -0
  448. package/dist/chunks/useSeparator-CZKjqF0N.cjs.js +2 -0
  449. package/dist/chunks/useSeparator-CZKjqF0N.cjs.js.map +1 -0
  450. package/dist/chunks/useSeparator-g1ilWvTX.es.js +19 -0
  451. package/dist/chunks/useSeparator-g1ilWvTX.es.js.map +1 -0
  452. package/dist/chunks/useSingleSelectListState-BLYvCKPf.cjs.js +2 -0
  453. package/dist/chunks/useSingleSelectListState-BLYvCKPf.cjs.js.map +1 -0
  454. package/dist/chunks/useSingleSelectListState-IunZbRoh.es.js +35 -0
  455. package/dist/chunks/useSingleSelectListState-IunZbRoh.es.js.map +1 -0
  456. package/dist/chunks/useSpinButton-DkqZHy9E.cjs.js +2 -0
  457. package/dist/chunks/useSpinButton-DkqZHy9E.cjs.js.map +1 -0
  458. package/dist/chunks/useSpinButton-_qIyNcRw.es.js +461 -0
  459. package/dist/chunks/useSpinButton-_qIyNcRw.es.js.map +1 -0
  460. package/dist/chunks/useTextField-DOho5fCG.es.js +88 -0
  461. package/dist/chunks/useTextField-DOho5fCG.es.js.map +1 -0
  462. package/dist/chunks/useTextField-J5W2QB4G.cjs.js +2 -0
  463. package/dist/chunks/useTextField-J5W2QB4G.cjs.js.map +1 -0
  464. package/dist/chunks/useToggle-BLG4h8I9.es.js +50 -0
  465. package/dist/chunks/useToggle-BLG4h8I9.es.js.map +1 -0
  466. package/dist/chunks/useToggle-VMBvyMfl.cjs.js +2 -0
  467. package/dist/chunks/useToggle-VMBvyMfl.cjs.js.map +1 -0
  468. package/dist/chunks/useToggleState-bO90kfqG.cjs.js.map +1 -1
  469. package/dist/chunks/useToggleState-mKFEFD2Q.es.js.map +1 -1
  470. package/dist/chunks/useUpdateEffect-CCDx8D4X.es.js.map +1 -1
  471. package/dist/chunks/useUpdateEffect-sk3kiVGz.cjs.js.map +1 -1
  472. package/dist/chunks/utils-BR34o1UE.es.js +269 -0
  473. package/dist/chunks/utils-BR34o1UE.es.js.map +1 -0
  474. package/dist/chunks/utils-C4ruQppN.es.js +128 -0
  475. package/dist/chunks/utils-C4ruQppN.es.js.map +1 -0
  476. package/dist/chunks/utils-CThuzDqT.cjs.js +2 -0
  477. package/dist/chunks/utils-CThuzDqT.cjs.js.map +1 -0
  478. package/dist/chunks/utils-sWqo2nmW.cjs.js +2 -0
  479. package/dist/chunks/utils-sWqo2nmW.cjs.js.map +1 -0
  480. package/dist/chunks/visually-hidden-XBx29_tJ.es.js +11 -0
  481. package/dist/chunks/visually-hidden-XBx29_tJ.es.js.map +1 -0
  482. package/dist/chunks/visually-hidden-YFEW-yS7.cjs.js +2 -0
  483. package/dist/chunks/visually-hidden-YFEW-yS7.cjs.js.map +1 -0
  484. package/dist/chunks/walk-object-BGye4E3_.cjs.js +2 -0
  485. package/dist/chunks/walk-object-BGye4E3_.cjs.js.map +1 -0
  486. package/dist/chunks/walk-object-D9P1kanu.es.js +27 -0
  487. package/dist/chunks/walk-object-D9P1kanu.es.js.map +1 -0
  488. package/dist/code.d.ts +6 -0
  489. package/dist/combobox.d.ts +10 -4
  490. package/dist/components/accordion.cjs +1 -1
  491. package/dist/components/accordion.es.js +1 -1
  492. package/dist/components/alert.cjs +1 -1
  493. package/dist/components/alert.es.js +1 -1
  494. package/dist/components/avatar.cjs +1 -1
  495. package/dist/components/avatar.es.js +1 -1
  496. package/dist/components/badge.cjs +1 -1
  497. package/dist/components/badge.es.js +1 -1
  498. package/dist/components/box.cjs +1 -1
  499. package/dist/components/box.es.js +1 -1
  500. package/dist/components/button.cjs +1 -1
  501. package/dist/components/button.es.js +1 -1
  502. package/dist/components/calendar.cjs +1 -1
  503. package/dist/components/calendar.es.js +1 -1
  504. package/dist/components/card.cjs +1 -1
  505. package/dist/components/card.es.js +1 -1
  506. package/dist/components/checkbox.cjs +1 -1
  507. package/dist/components/checkbox.es.js +1 -1
  508. package/dist/components/code.cjs +1 -1
  509. package/dist/components/code.es.js +1 -1
  510. package/dist/components/combobox.cjs +1 -1
  511. package/dist/components/combobox.es.js +1 -1
  512. package/dist/components/components.cjs +1 -1
  513. package/dist/components/components.es.js +138 -118
  514. package/dist/components/components.es.js.map +1 -1
  515. package/dist/components/date-input.cjs +1 -1
  516. package/dist/components/date-input.es.js +1 -1
  517. package/dist/components/date-picker.cjs +1 -1
  518. package/dist/components/date-picker.es.js +1 -1
  519. package/dist/components/date-range-picker.cjs +2 -0
  520. package/dist/components/date-range-picker.cjs.map +1 -0
  521. package/dist/components/date-range-picker.es.js +5 -0
  522. package/dist/components/date-range-picker.es.js.map +1 -0
  523. package/dist/components/dialog.cjs +1 -1
  524. package/dist/components/dialog.es.js +1 -1
  525. package/dist/components/divider.cjs +1 -1
  526. package/dist/components/divider.es.js +1 -1
  527. package/dist/components/flex.cjs +1 -1
  528. package/dist/components/flex.es.js +1 -1
  529. package/dist/components/form-field.cjs +1 -1
  530. package/dist/components/form-field.es.js +1 -1
  531. package/dist/components/grid.cjs +1 -1
  532. package/dist/components/grid.es.js +1 -1
  533. package/dist/components/heading.cjs +1 -1
  534. package/dist/components/heading.es.js +2 -2
  535. package/dist/components/icon-button.cjs +1 -1
  536. package/dist/components/icon-button.es.js +1 -1
  537. package/dist/components/icon-toggle-button.cjs +2 -0
  538. package/dist/components/icon-toggle-button.cjs.map +1 -0
  539. package/dist/components/icon-toggle-button.es.js +5 -0
  540. package/dist/components/icon-toggle-button.es.js.map +1 -0
  541. package/dist/components/icon.cjs +1 -1
  542. package/dist/components/icon.es.js +1 -1
  543. package/dist/components/image.cjs +1 -1
  544. package/dist/components/image.es.js +1 -1
  545. package/dist/components/kbd.cjs +1 -1
  546. package/dist/components/kbd.es.js +1 -1
  547. package/dist/components/link.cjs +1 -1
  548. package/dist/components/link.es.js +1 -1
  549. package/dist/components/list.cjs +1 -1
  550. package/dist/components/list.es.js +1 -1
  551. package/dist/components/loading-spinner.cjs +1 -1
  552. package/dist/components/loading-spinner.es.js +1 -1
  553. package/dist/components/multiline-text-input.cjs +1 -1
  554. package/dist/components/multiline-text-input.es.js +1 -1
  555. package/dist/components/nimbus-provider.cjs +1 -1
  556. package/dist/components/nimbus-provider.es.js +1 -1
  557. package/dist/components/number-input.cjs +1 -1
  558. package/dist/components/number-input.es.js +1 -1
  559. package/dist/components/password-input.cjs +1 -1
  560. package/dist/components/password-input.es.js +1 -1
  561. package/dist/components/progress-bar.cjs +1 -1
  562. package/dist/components/progress-bar.es.js +1 -1
  563. package/dist/components/radio-input.cjs +1 -1
  564. package/dist/components/radio-input.es.js +1 -1
  565. package/dist/components/range-calendar.cjs +2 -0
  566. package/dist/components/range-calendar.cjs.map +1 -0
  567. package/dist/components/range-calendar.es.js +5 -0
  568. package/dist/components/range-calendar.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/stack.cjs +1 -1
  574. package/dist/components/stack.es.js +1 -1
  575. package/dist/components/switch.cjs +1 -1
  576. package/dist/components/switch.es.js +1 -1
  577. package/dist/components/table.cjs +1 -1
  578. package/dist/components/table.es.js +2 -2
  579. package/dist/components/tag-group.cjs +1 -1
  580. package/dist/components/tag-group.es.js +1 -1
  581. package/dist/components/text-input.cjs +1 -1
  582. package/dist/components/text-input.es.js +1 -1
  583. package/dist/components/text.cjs +1 -1
  584. package/dist/components/text.es.js +1 -1
  585. package/dist/components/time-input.cjs +1 -1
  586. package/dist/components/time-input.es.js +1 -1
  587. package/dist/components/toggle-button-group.cjs +1 -1
  588. package/dist/components/toggle-button-group.es.js +1 -1
  589. package/dist/components/toggle-button.cjs +2 -0
  590. package/dist/components/toggle-button.cjs.map +1 -0
  591. package/dist/components/toggle-button.es.js +5 -0
  592. package/dist/components/toggle-button.es.js.map +1 -0
  593. package/dist/components/tooltip.cjs +1 -1
  594. package/dist/components/tooltip.es.js +2 -2
  595. package/dist/components/visually-hidden.cjs +1 -1
  596. package/dist/components/visually-hidden.es.js +1 -1
  597. package/dist/components.d.ts +684 -134
  598. package/dist/date-input.d.ts +16 -7
  599. package/dist/date-picker.d.ts +30 -9
  600. package/dist/date-range-picker.d.ts +111 -0
  601. package/dist/dialog.d.ts +7 -1
  602. package/dist/divider.d.ts +4 -4
  603. package/dist/flex.d.ts +1 -1
  604. package/dist/form-field.d.ts +8 -6
  605. package/dist/grid.d.ts +4 -6
  606. package/dist/heading.d.ts +1 -1
  607. package/dist/icon-button.d.ts +8 -7
  608. package/dist/icon-toggle-button.d.ts +149 -0
  609. package/dist/icon.d.ts +13 -5
  610. package/dist/image.d.ts +5 -3
  611. package/dist/index.cjs +1 -1
  612. package/dist/index.cjs.map +1 -1
  613. package/dist/index.d.ts +684 -134
  614. package/dist/index.es.js +173 -152
  615. package/dist/index.es.js.map +1 -1
  616. package/dist/kbd.d.ts +15 -5
  617. package/dist/link.d.ts +7 -13
  618. package/dist/list.d.ts +6 -1
  619. package/dist/loading-spinner.d.ts +8 -6
  620. package/dist/multiline-text-input.d.ts +6 -12
  621. package/dist/nimbus-provider.d.ts +7 -0
  622. package/dist/number-input.d.ts +6 -13
  623. package/dist/password-input.d.ts +6 -11
  624. package/dist/progress-bar.d.ts +4 -4
  625. package/dist/radio-input.d.ts +10 -3
  626. package/dist/range-calendar.d.ts +33 -0
  627. package/dist/select.d.ts +9 -2
  628. package/dist/setup-jsdom-polyfills.cjs.map +1 -1
  629. package/dist/setup-jsdom-polyfills.es.js.map +1 -1
  630. package/dist/simple-grid.d.ts +4 -6
  631. package/dist/stack.d.ts +8 -1
  632. package/dist/switch.d.ts +7 -5
  633. package/dist/table.d.ts +1 -1
  634. package/dist/tag-group.d.ts +3 -3
  635. package/dist/text-input.d.ts +6 -11
  636. package/dist/text.d.ts +5 -3
  637. package/dist/time-input.d.ts +4 -4
  638. package/dist/toggle-button-group.d.ts +10 -3
  639. package/dist/toggle-button.d.ts +144 -0
  640. package/dist/tooltip.d.ts +8 -10
  641. package/dist/visually-hidden.d.ts +7 -0
  642. package/package.json +18 -13
  643. package/dist/chunks/Button-BOMjcccZ.es.js +0 -80
  644. package/dist/chunks/Button-BOMjcccZ.es.js.map +0 -1
  645. package/dist/chunks/Button-Whc4raea.cjs.js +0 -2
  646. package/dist/chunks/Button-Whc4raea.cjs.js.map +0 -1
  647. package/dist/chunks/DateField-BjIjR7y5.cjs.js +0 -2
  648. package/dist/chunks/DateField-BjIjR7y5.cjs.js.map +0 -1
  649. package/dist/chunks/DateField-DbAaUSAR.es.js +0 -2565
  650. package/dist/chunks/DateField-DbAaUSAR.es.js.map +0 -1
  651. package/dist/chunks/Dialog-B6tbMgyU.cjs.js +0 -2
  652. package/dist/chunks/Dialog-B6tbMgyU.cjs.js.map +0 -1
  653. package/dist/chunks/Dialog-Ct6jqZ14.es.js +0 -870
  654. package/dist/chunks/Dialog-Ct6jqZ14.es.js.map +0 -1
  655. package/dist/chunks/FocusScope-BUeBbhRq.cjs.js +0 -2
  656. package/dist/chunks/FocusScope-BUeBbhRq.cjs.js.map +0 -1
  657. package/dist/chunks/FocusScope-BacYMT5s.es.js +0 -628
  658. package/dist/chunks/FocusScope-BacYMT5s.es.js.map +0 -1
  659. package/dist/chunks/Group-CTSushH_.es.js +0 -78
  660. package/dist/chunks/Group-CTSushH_.es.js.map +0 -1
  661. package/dist/chunks/Group-DCFj0iWW.cjs.js +0 -2
  662. package/dist/chunks/Group-DCFj0iWW.cjs.js.map +0 -1
  663. package/dist/chunks/Hidden-CeBYiBUb.es.js +0 -28
  664. package/dist/chunks/Hidden-CeBYiBUb.es.js.map +0 -1
  665. package/dist/chunks/Input-CiHYWjLE.cjs.js +0 -2
  666. package/dist/chunks/Input-CiHYWjLE.cjs.js.map +0 -1
  667. package/dist/chunks/Input-DN0K3GJf.es.js +0 -43
  668. package/dist/chunks/Input-DN0K3GJf.es.js.map +0 -1
  669. package/dist/chunks/Label-CNMvF_U4.cjs.js +0 -2
  670. package/dist/chunks/Label-CNMvF_U4.cjs.js.map +0 -1
  671. package/dist/chunks/Label-DBDcs-md.es.js +0 -17
  672. package/dist/chunks/Label-DBDcs-md.es.js.map +0 -1
  673. package/dist/chunks/ListBox-ABeVGjvU.es.js +0 -3007
  674. package/dist/chunks/ListBox-ABeVGjvU.es.js.map +0 -1
  675. package/dist/chunks/ListBox-DCA-jDGn.cjs.js +0 -18
  676. package/dist/chunks/ListBox-DCA-jDGn.cjs.js.map +0 -1
  677. package/dist/chunks/LiveAnnouncer-B6177m92.es.js +0 -52
  678. package/dist/chunks/LiveAnnouncer-B6177m92.es.js.map +0 -1
  679. package/dist/chunks/LiveAnnouncer-CwEWPU8b.cjs.js +0 -2
  680. package/dist/chunks/LiveAnnouncer-CwEWPU8b.cjs.js.map +0 -1
  681. package/dist/chunks/OverlayArrow-BpI9oaqU.es.js +0 -479
  682. package/dist/chunks/OverlayArrow-BpI9oaqU.es.js.map +0 -1
  683. package/dist/chunks/OverlayArrow-HjwHXXDg.cjs.js +0 -2
  684. package/dist/chunks/OverlayArrow-HjwHXXDg.cjs.js.map +0 -1
  685. package/dist/chunks/ProgressBar-CjzD-Z5i.es.js +0 -39
  686. package/dist/chunks/ProgressBar-CjzD-Z5i.es.js.map +0 -1
  687. package/dist/chunks/ProgressBar-DpsMzb_5.cjs.js +0 -2
  688. package/dist/chunks/ProgressBar-DpsMzb_5.cjs.js.map +0 -1
  689. package/dist/chunks/TextArea-BeSyeRBk.es.js +0 -42
  690. package/dist/chunks/TextArea-BeSyeRBk.es.js.map +0 -1
  691. package/dist/chunks/TextArea-C0Ozz1GB.cjs.js +0 -2
  692. package/dist/chunks/TextArea-C0Ozz1GB.cjs.js.map +0 -1
  693. package/dist/chunks/VisuallyHidden-BeFoHnz-.cjs.js +0 -2
  694. package/dist/chunks/VisuallyHidden-BeFoHnz-.cjs.js.map +0 -1
  695. package/dist/chunks/VisuallyHidden-D5E2DfM-.es.js +0 -41
  696. package/dist/chunks/VisuallyHidden-D5E2DfM-.es.js.map +0 -1
  697. package/dist/chunks/accordion-BqC_0cQF.cjs.js +0 -2
  698. package/dist/chunks/accordion-BqC_0cQF.cjs.js.map +0 -1
  699. package/dist/chunks/accordion-Dc0-jhj-.es.js +0 -221
  700. package/dist/chunks/accordion-Dc0-jhj-.es.js.map +0 -1
  701. package/dist/chunks/alert-0lZycfTS.cjs.js +0 -2
  702. package/dist/chunks/alert-0lZycfTS.cjs.js.map +0 -1
  703. package/dist/chunks/alert-CLgnvjGx.es.js +0 -186
  704. package/dist/chunks/alert-CLgnvjGx.es.js.map +0 -1
  705. package/dist/chunks/avatar-BLun8TXk.cjs.js +0 -2
  706. package/dist/chunks/avatar-BLun8TXk.cjs.js.map +0 -1
  707. package/dist/chunks/avatar-DgvfEdwK.es.js +0 -37
  708. package/dist/chunks/avatar-DgvfEdwK.es.js.map +0 -1
  709. package/dist/chunks/avatar.recipe-BSmmqvwQ.es.js +0 -39
  710. package/dist/chunks/avatar.recipe-BSmmqvwQ.es.js.map +0 -1
  711. package/dist/chunks/avatar.recipe-aGNBZhVF.cjs.js +0 -2
  712. package/dist/chunks/avatar.recipe-aGNBZhVF.cjs.js.map +0 -1
  713. package/dist/chunks/badge-BFL2bErq.cjs.js +0 -2
  714. package/dist/chunks/badge-BFL2bErq.cjs.js.map +0 -1
  715. package/dist/chunks/badge-C_FXV6xO.es.js +0 -76
  716. package/dist/chunks/badge-C_FXV6xO.es.js.map +0 -1
  717. package/dist/chunks/box-DD4jYgS7.es.js +0 -11
  718. package/dist/chunks/box-DD4jYgS7.es.js.map +0 -1
  719. package/dist/chunks/box-FU6tRPFs.cjs.js +0 -2
  720. package/dist/chunks/box-FU6tRPFs.cjs.js.map +0 -1
  721. package/dist/chunks/button-ByoXAf0f.cjs.js +0 -2
  722. package/dist/chunks/button-ByoXAf0f.cjs.js.map +0 -1
  723. package/dist/chunks/button-HUhEhOaq.es.js +0 -66
  724. package/dist/chunks/button-HUhEhOaq.es.js.map +0 -1
  725. package/dist/chunks/button.recipe-DHk13lGU.cjs.js +0 -2
  726. package/dist/chunks/button.recipe-DHk13lGU.cjs.js.map +0 -1
  727. package/dist/chunks/button.recipe-DzOS_Bqm.es.js +0 -191
  728. package/dist/chunks/button.recipe-DzOS_Bqm.es.js.map +0 -1
  729. package/dist/chunks/calendar-4vA2Wjuk.es.js +0 -1577
  730. package/dist/chunks/calendar-4vA2Wjuk.es.js.map +0 -1
  731. package/dist/chunks/calendar-fDyD76bv.cjs.js +0 -2
  732. package/dist/chunks/calendar-fDyD76bv.cjs.js.map +0 -1
  733. package/dist/chunks/calendar.recipe-B2sMokBn.es.js +0 -101
  734. package/dist/chunks/calendar.recipe-B2sMokBn.es.js.map +0 -1
  735. package/dist/chunks/calendar.recipe-gUaUNltl.cjs.js +0 -2
  736. package/dist/chunks/calendar.recipe-gUaUNltl.cjs.js.map +0 -1
  737. package/dist/chunks/card-B9Ei2Ifh.cjs.js +0 -2
  738. package/dist/chunks/card-B9Ei2Ifh.cjs.js.map +0 -1
  739. package/dist/chunks/card-BlrFTWUO.es.js +0 -138
  740. package/dist/chunks/card-BlrFTWUO.es.js.map +0 -1
  741. package/dist/chunks/checkbox-BjNxOrz3.es.js +0 -89
  742. package/dist/chunks/checkbox-BjNxOrz3.es.js.map +0 -1
  743. package/dist/chunks/checkbox-DwrmmRar.cjs.js +0 -2
  744. package/dist/chunks/checkbox-DwrmmRar.cjs.js.map +0 -1
  745. package/dist/chunks/code-CI8aUhmu.es.js +0 -6
  746. package/dist/chunks/code-CI8aUhmu.es.js.map +0 -1
  747. package/dist/chunks/code-Dg4Larbo.cjs.js +0 -2
  748. package/dist/chunks/code-Dg4Larbo.cjs.js.map +0 -1
  749. package/dist/chunks/combobox-e2_LtIV2.cjs.js +0 -2
  750. package/dist/chunks/combobox-e2_LtIV2.cjs.js.map +0 -1
  751. package/dist/chunks/combobox-yROd_YZT.es.js +0 -1898
  752. package/dist/chunks/combobox-yROd_YZT.es.js.map +0 -1
  753. package/dist/chunks/combobox.recipe-BtnFn38v.cjs.js +0 -2
  754. package/dist/chunks/combobox.recipe-BtnFn38v.cjs.js.map +0 -1
  755. package/dist/chunks/combobox.recipe-aeARdYiV.es.js +0 -407
  756. package/dist/chunks/combobox.recipe-aeARdYiV.es.js.map +0 -1
  757. package/dist/chunks/date-input-BC-7OWJ7.cjs.js +0 -2
  758. package/dist/chunks/date-input-BC-7OWJ7.cjs.js.map +0 -1
  759. package/dist/chunks/date-input-CB3KDtkI.es.js +0 -16
  760. package/dist/chunks/date-input-CB3KDtkI.es.js.map +0 -1
  761. package/dist/chunks/date-input.recipe-BtWEmJGK.es.js +0 -119
  762. package/dist/chunks/date-input.recipe-BtWEmJGK.es.js.map +0 -1
  763. package/dist/chunks/date-input.recipe-Cf9e8VAr.cjs.js +0 -2
  764. package/dist/chunks/date-input.recipe-Cf9e8VAr.cjs.js.map +0 -1
  765. package/dist/chunks/date-picker-BO7p5VmS.cjs.js +0 -2
  766. package/dist/chunks/date-picker-BO7p5VmS.cjs.js.map +0 -1
  767. package/dist/chunks/date-picker-DJVAYEAw.es.js +0 -484
  768. package/dist/chunks/date-picker-DJVAYEAw.es.js.map +0 -1
  769. package/dist/chunks/date-picker.recipe-5Avb06qp.cjs.js +0 -2
  770. package/dist/chunks/date-picker.recipe-5Avb06qp.cjs.js.map +0 -1
  771. package/dist/chunks/date-picker.recipe-Dy6NmKHA.es.js +0 -82
  772. package/dist/chunks/date-picker.recipe-Dy6NmKHA.es.js.map +0 -1
  773. package/dist/chunks/dialog-C1HRMUcF.es.js +0 -33
  774. package/dist/chunks/dialog-C1HRMUcF.es.js.map +0 -1
  775. package/dist/chunks/dialog-amEwvIoM.cjs.js +0 -2
  776. package/dist/chunks/dialog-amEwvIoM.cjs.js.map +0 -1
  777. package/dist/chunks/divider-Bo7fu52f.es.js +0 -72
  778. package/dist/chunks/divider-Bo7fu52f.es.js.map +0 -1
  779. package/dist/chunks/divider-jlSUrmo7.cjs.js +0 -2
  780. package/dist/chunks/divider-jlSUrmo7.cjs.js.map +0 -1
  781. package/dist/chunks/extractStyleProps-CxgBrz3O.es.js +0 -11
  782. package/dist/chunks/extractStyleProps-CxgBrz3O.es.js.map +0 -1
  783. package/dist/chunks/extractStyleProps-lyk7D-zN.cjs.js +0 -2
  784. package/dist/chunks/extractStyleProps-lyk7D-zN.cjs.js.map +0 -1
  785. package/dist/chunks/filterDOMProps-BS2lrgFA.cjs.js +0 -2
  786. package/dist/chunks/filterDOMProps-BS2lrgFA.cjs.js.map +0 -1
  787. package/dist/chunks/filterDOMProps-D6KHYVBX.es.js +0 -25
  788. package/dist/chunks/filterDOMProps-D6KHYVBX.es.js.map +0 -1
  789. package/dist/chunks/focusSafely-BsLdCW-M.cjs.js +0 -2
  790. package/dist/chunks/focusSafely-BsLdCW-M.cjs.js.map +0 -1
  791. package/dist/chunks/focusSafely-CahaQIyI.es.js +0 -37
  792. package/dist/chunks/focusSafely-CahaQIyI.es.js.map +0 -1
  793. package/dist/chunks/form-field-DmlJuq9F.cjs.js +0 -11
  794. package/dist/chunks/form-field-DmlJuq9F.cjs.js.map +0 -1
  795. package/dist/chunks/form-field-DwxzvTA8.es.js +0 -309
  796. package/dist/chunks/form-field-DwxzvTA8.es.js.map +0 -1
  797. package/dist/chunks/getScrollParent-DE66eQI-.es.js +0 -15
  798. package/dist/chunks/getScrollParent-DE66eQI-.es.js.map +0 -1
  799. package/dist/chunks/getScrollParent-Dc1cnLDE.cjs.js +0 -2
  800. package/dist/chunks/getScrollParent-Dc1cnLDE.cjs.js.map +0 -1
  801. package/dist/chunks/grid-CugcJxRP.es.js +0 -14
  802. package/dist/chunks/grid-CugcJxRP.es.js.map +0 -1
  803. package/dist/chunks/grid-xr2A-OqD.cjs.js +0 -2
  804. package/dist/chunks/grid-xr2A-OqD.cjs.js.map +0 -1
  805. package/dist/chunks/icon-BFNYuilh.es.js +0 -31
  806. package/dist/chunks/icon-BFNYuilh.es.js.map +0 -1
  807. package/dist/chunks/icon-D50i-dqv.cjs.js +0 -2
  808. package/dist/chunks/icon-D50i-dqv.cjs.js.map +0 -1
  809. package/dist/chunks/icon-button-Bj1MnoDm.es.js +0 -14
  810. package/dist/chunks/icon-button-Bj1MnoDm.es.js.map +0 -1
  811. package/dist/chunks/icon-button-Vf2txEnP.cjs.js +0 -2
  812. package/dist/chunks/icon-button-Vf2txEnP.cjs.js.map +0 -1
  813. package/dist/chunks/image-DCirAAnr.cjs.js +0 -2
  814. package/dist/chunks/image-DCirAAnr.cjs.js.map +0 -1
  815. package/dist/chunks/image-rXPA3shk.es.js +0 -8
  816. package/dist/chunks/image-rXPA3shk.es.js.map +0 -1
  817. package/dist/chunks/kbd-BKH_SGCC.es.js +0 -6
  818. package/dist/chunks/kbd-BKH_SGCC.es.js.map +0 -1
  819. package/dist/chunks/kbd-Bhv8ae1I.cjs.js +0 -2
  820. package/dist/chunks/kbd-Bhv8ae1I.cjs.js.map +0 -1
  821. package/dist/chunks/link-C89khrQp.cjs.js +0 -2
  822. package/dist/chunks/link-C89khrQp.cjs.js.map +0 -1
  823. package/dist/chunks/link-D3Rr2RQl.es.js +0 -50
  824. package/dist/chunks/link-D3Rr2RQl.es.js.map +0 -1
  825. package/dist/chunks/link.recipe-Ba2by0OG.es.js +0 -51
  826. package/dist/chunks/link.recipe-Ba2by0OG.es.js.map +0 -1
  827. package/dist/chunks/link.recipe-CG3leGAx.cjs.js +0 -2
  828. package/dist/chunks/link.recipe-CG3leGAx.cjs.js.map +0 -1
  829. package/dist/chunks/list-8yfreyzi.cjs.js +0 -2
  830. package/dist/chunks/list-8yfreyzi.cjs.js.map +0 -1
  831. package/dist/chunks/list-B21joBrq.es.js +0 -13
  832. package/dist/chunks/list-B21joBrq.es.js.map +0 -1
  833. package/dist/chunks/loading-spinner-CnJDA2s5.cjs.js +0 -2
  834. package/dist/chunks/loading-spinner-CnJDA2s5.cjs.js.map +0 -1
  835. package/dist/chunks/loading-spinner-DBsMwy3U.es.js +0 -105
  836. package/dist/chunks/loading-spinner-DBsMwy3U.es.js.map +0 -1
  837. package/dist/chunks/make-element-focusable-diGDWsyp.es.js +0 -22
  838. package/dist/chunks/make-element-focusable-diGDWsyp.es.js.map +0 -1
  839. package/dist/chunks/make-element-focusable-zhwaMi8v.cjs.js +0 -2
  840. package/dist/chunks/make-element-focusable-zhwaMi8v.cjs.js.map +0 -1
  841. package/dist/chunks/mergeProps--cTsQeLh.cjs.js +0 -2
  842. package/dist/chunks/mergeProps--cTsQeLh.cjs.js.map +0 -1
  843. package/dist/chunks/mergeProps-BUo0BHVY.es.js +0 -128
  844. package/dist/chunks/mergeProps-BUo0BHVY.es.js.map +0 -1
  845. package/dist/chunks/multiline-text-input-AjqfDDxC.cjs.js +0 -12
  846. package/dist/chunks/multiline-text-input-AjqfDDxC.cjs.js.map +0 -1
  847. package/dist/chunks/multiline-text-input-CIHvD3Oz.es.js +0 -116
  848. package/dist/chunks/multiline-text-input-CIHvD3Oz.es.js.map +0 -1
  849. package/dist/chunks/nimbus-provider-BjnzjFmv.es.js +0 -1663
  850. package/dist/chunks/nimbus-provider-BjnzjFmv.es.js.map +0 -1
  851. package/dist/chunks/nimbus-provider-Cfpse_6n.cjs.js +0 -2
  852. package/dist/chunks/nimbus-provider-Cfpse_6n.cjs.js.map +0 -1
  853. package/dist/chunks/number-input-Da1tzQlg.es.js +0 -653
  854. package/dist/chunks/number-input-Da1tzQlg.es.js.map +0 -1
  855. package/dist/chunks/number-input-oxPP81Et.cjs.js +0 -2
  856. package/dist/chunks/number-input-oxPP81Et.cjs.js.map +0 -1
  857. package/dist/chunks/number-input.recipe-2n6A2w0m.cjs.js +0 -2
  858. package/dist/chunks/number-input.recipe-2n6A2w0m.cjs.js.map +0 -1
  859. package/dist/chunks/number-input.recipe-8gbsGnLJ.es.js +0 -209
  860. package/dist/chunks/number-input.recipe-8gbsGnLJ.es.js.map +0 -1
  861. package/dist/chunks/openLink-Bb-6Z-d5.es.js +0 -101
  862. package/dist/chunks/openLink-Bb-6Z-d5.es.js.map +0 -1
  863. package/dist/chunks/openLink-COo3k75n.cjs.js +0 -2
  864. package/dist/chunks/openLink-COo3k75n.cjs.js.map +0 -1
  865. package/dist/chunks/password-input-BBUAEOxl.cjs.js +0 -2
  866. package/dist/chunks/password-input-BBUAEOxl.cjs.js.map +0 -1
  867. package/dist/chunks/password-input-CS1tN_Tr.es.js +0 -50
  868. package/dist/chunks/password-input-CS1tN_Tr.es.js.map +0 -1
  869. package/dist/chunks/platform-Bc175Jt1.es.js +0 -45
  870. package/dist/chunks/platform-Bc175Jt1.es.js.map +0 -1
  871. package/dist/chunks/progress-bar-QwctSqZZ.es.js +0 -71
  872. package/dist/chunks/progress-bar-QwctSqZZ.es.js.map +0 -1
  873. package/dist/chunks/progress-bar-oKaz0uqw.cjs.js +0 -2
  874. package/dist/chunks/progress-bar-oKaz0uqw.cjs.js.map +0 -1
  875. package/dist/chunks/radio-input-BexkdvxD.es.js +0 -320
  876. package/dist/chunks/radio-input-BexkdvxD.es.js.map +0 -1
  877. package/dist/chunks/radio-input-C7QoAolu.cjs.js +0 -2
  878. package/dist/chunks/radio-input-C7QoAolu.cjs.js.map +0 -1
  879. package/dist/chunks/radio-input.recipe-CM9R2ilP.es.js +0 -75
  880. package/dist/chunks/radio-input.recipe-CM9R2ilP.es.js.map +0 -1
  881. package/dist/chunks/radio-input.recipe-DdXB4lqs.cjs.js +0 -2
  882. package/dist/chunks/radio-input.recipe-DdXB4lqs.cjs.js.map +0 -1
  883. package/dist/chunks/scrollIntoView-CqkKWFb6.es.js +0 -83
  884. package/dist/chunks/scrollIntoView-CqkKWFb6.es.js.map +0 -1
  885. package/dist/chunks/scrollIntoView-DJjtWQTK.cjs.js +0 -2
  886. package/dist/chunks/scrollIntoView-DJjtWQTK.cjs.js.map +0 -1
  887. package/dist/chunks/select-CU2u2b6U.es.js +0 -792
  888. package/dist/chunks/select-CU2u2b6U.es.js.map +0 -1
  889. package/dist/chunks/select-CwzhqF_g.cjs.js +0 -2
  890. package/dist/chunks/select-CwzhqF_g.cjs.js.map +0 -1
  891. package/dist/chunks/select.recipe-CXWsUldF.es.js +0 -203
  892. package/dist/chunks/select.recipe-CXWsUldF.es.js.map +0 -1
  893. package/dist/chunks/select.recipe-DUHFWlQt.cjs.js +0 -2
  894. package/dist/chunks/select.recipe-DUHFWlQt.cjs.js.map +0 -1
  895. package/dist/chunks/simple-grid-CFOP9g2P.es.js +0 -14
  896. package/dist/chunks/simple-grid-CFOP9g2P.es.js.map +0 -1
  897. package/dist/chunks/simple-grid-CHgTayx6.cjs.js +0 -2
  898. package/dist/chunks/simple-grid-CHgTayx6.cjs.js.map +0 -1
  899. package/dist/chunks/stack-__ugxVHD.es.js +0 -11
  900. package/dist/chunks/stack-__ugxVHD.es.js.map +0 -1
  901. package/dist/chunks/stack-wFUhYQQb.cjs.js +0 -2
  902. package/dist/chunks/stack-wFUhYQQb.cjs.js.map +0 -1
  903. package/dist/chunks/switch-CUwyaYts.cjs.js +0 -2
  904. package/dist/chunks/switch-CUwyaYts.cjs.js.map +0 -1
  905. package/dist/chunks/switch-DgbFw1kA.es.js +0 -78
  906. package/dist/chunks/switch-DgbFw1kA.es.js.map +0 -1
  907. package/dist/chunks/switch.recipe-CWOjEnIy.es.js +0 -100
  908. package/dist/chunks/switch.recipe-CWOjEnIy.es.js.map +0 -1
  909. package/dist/chunks/switch.recipe-DHopLj_g.cjs.js +0 -2
  910. package/dist/chunks/switch.recipe-DHopLj_g.cjs.js.map +0 -1
  911. package/dist/chunks/tag-group-Cc6S9cbR.es.js +0 -1347
  912. package/dist/chunks/tag-group-Cc6S9cbR.es.js.map +0 -1
  913. package/dist/chunks/tag-group-DCgEBbmh.cjs.js +0 -2
  914. package/dist/chunks/tag-group-DCgEBbmh.cjs.js.map +0 -1
  915. package/dist/chunks/text-CEFwlX3E.cjs.js +0 -2
  916. package/dist/chunks/text-CEFwlX3E.cjs.js.map +0 -1
  917. package/dist/chunks/text-CYoFrI2I.es.js +0 -24
  918. package/dist/chunks/text-CYoFrI2I.es.js.map +0 -1
  919. package/dist/chunks/text-input-fAoATAAX.cjs.js +0 -2
  920. package/dist/chunks/text-input-fAoATAAX.cjs.js.map +0 -1
  921. package/dist/chunks/text-input-uhPCsxsK.es.js +0 -17
  922. package/dist/chunks/text-input-uhPCsxsK.es.js.map +0 -1
  923. package/dist/chunks/text-input.recipe-DxzvFMOB.cjs.js +0 -2
  924. package/dist/chunks/text-input.recipe-DxzvFMOB.cjs.js.map +0 -1
  925. package/dist/chunks/text-input.recipe-KNoUuq-g.es.js +0 -64
  926. package/dist/chunks/text-input.recipe-KNoUuq-g.es.js.map +0 -1
  927. package/dist/chunks/time-input-BwtzFUWN.cjs.js +0 -2
  928. package/dist/chunks/time-input-BwtzFUWN.cjs.js.map +0 -1
  929. package/dist/chunks/time-input-ClF6Qx1T.es.js +0 -129
  930. package/dist/chunks/time-input-ClF6Qx1T.es.js.map +0 -1
  931. package/dist/chunks/toggle-button-group-BDzXfqxK.es.js +0 -275
  932. package/dist/chunks/toggle-button-group-BDzXfqxK.es.js.map +0 -1
  933. package/dist/chunks/toggle-button-group-BOdTMLPd.cjs.js +0 -2
  934. package/dist/chunks/toggle-button-group-BOdTMLPd.cjs.js.map +0 -1
  935. package/dist/chunks/tooltip-MQm4h_hA.es.js +0 -273
  936. package/dist/chunks/tooltip-MQm4h_hA.es.js.map +0 -1
  937. package/dist/chunks/tooltip-p-s9eZWV.cjs.js +0 -2
  938. package/dist/chunks/tooltip-p-s9eZWV.cjs.js.map +0 -1
  939. package/dist/chunks/tooltip.recipe-B9-7OFCi.es.js +0 -24
  940. package/dist/chunks/tooltip.recipe-B9-7OFCi.es.js.map +0 -1
  941. package/dist/chunks/tooltip.recipe-CkNOA8Sg.cjs.js +0 -2
  942. package/dist/chunks/tooltip.recipe-CkNOA8Sg.cjs.js.map +0 -1
  943. package/dist/chunks/useButton-Cw2i6_TH.cjs.js +0 -2
  944. package/dist/chunks/useButton-Cw2i6_TH.cjs.js.map +0 -1
  945. package/dist/chunks/useButton-DdY6ixlh.es.js +0 -48
  946. package/dist/chunks/useButton-DdY6ixlh.es.js.map +0 -1
  947. package/dist/chunks/useDateFormatter-CeTPxW8a.cjs.js +0 -2
  948. package/dist/chunks/useDateFormatter-CeTPxW8a.cjs.js.map +0 -1
  949. package/dist/chunks/useDateFormatter-DvdguFVS.es.js +0 -1581
  950. package/dist/chunks/useDateFormatter-DvdguFVS.es.js.map +0 -1
  951. package/dist/chunks/useEvent-BFbCMsMG.cjs.js +0 -2
  952. package/dist/chunks/useEvent-BFbCMsMG.cjs.js.map +0 -1
  953. package/dist/chunks/useEvent-CzfHWUdv.es.js +0 -22
  954. package/dist/chunks/useEvent-CzfHWUdv.es.js.map +0 -1
  955. package/dist/chunks/useField-CNr5aECk.cjs.js +0 -2
  956. package/dist/chunks/useField-CNr5aECk.cjs.js.map +0 -1
  957. package/dist/chunks/useField-Caqfdud_.es.js +0 -36
  958. package/dist/chunks/useField-Caqfdud_.es.js.map +0 -1
  959. package/dist/chunks/useFocus-3ktZKnFP.es.js +0 -135
  960. package/dist/chunks/useFocus-3ktZKnFP.es.js.map +0 -1
  961. package/dist/chunks/useFocus-D9bTLwXz.cjs.js +0 -2
  962. package/dist/chunks/useFocus-D9bTLwXz.cjs.js.map +0 -1
  963. package/dist/chunks/useFocusRing-Bij4qXCm.es.js +0 -34
  964. package/dist/chunks/useFocusRing-Bij4qXCm.es.js.map +0 -1
  965. package/dist/chunks/useFocusRing-DE3LmlBK.cjs.js +0 -2
  966. package/dist/chunks/useFocusRing-DE3LmlBK.cjs.js.map +0 -1
  967. package/dist/chunks/useFocusWithin-BxAgY02U.es.js +0 -55
  968. package/dist/chunks/useFocusWithin-BxAgY02U.es.js.map +0 -1
  969. package/dist/chunks/useFocusWithin-CWaYFSji.cjs.js +0 -2
  970. package/dist/chunks/useFocusWithin-CWaYFSji.cjs.js.map +0 -1
  971. package/dist/chunks/useFocusable-41-WL-k6.cjs.js +0 -2
  972. package/dist/chunks/useFocusable-41-WL-k6.cjs.js.map +0 -1
  973. package/dist/chunks/useFocusable-B4YfgYbi.es.js +0 -75
  974. package/dist/chunks/useFocusable-B4YfgYbi.es.js.map +0 -1
  975. package/dist/chunks/useFormReset-B7JIQEba.cjs.js +0 -2
  976. package/dist/chunks/useFormReset-B7JIQEba.cjs.js.map +0 -1
  977. package/dist/chunks/useFormReset-j9laz3Zh.es.js +0 -21
  978. package/dist/chunks/useFormReset-j9laz3Zh.es.js.map +0 -1
  979. package/dist/chunks/useFormValidation-BbPFbrIk.es.js +0 -179
  980. package/dist/chunks/useFormValidation-BbPFbrIk.es.js.map +0 -1
  981. package/dist/chunks/useFormValidation-WxEl8dbL.cjs.js +0 -2
  982. package/dist/chunks/useFormValidation-WxEl8dbL.cjs.js.map +0 -1
  983. package/dist/chunks/useHover-ClWWazLU.cjs.js +0 -2
  984. package/dist/chunks/useHover-ClWWazLU.cjs.js.map +0 -1
  985. package/dist/chunks/useHover-DmJo2yqg.es.js +0 -85
  986. package/dist/chunks/useHover-DmJo2yqg.es.js.map +0 -1
  987. package/dist/chunks/useLabel-C1BLl-NU.cjs.js +0 -2
  988. package/dist/chunks/useLabel-C1BLl-NU.cjs.js.map +0 -1
  989. package/dist/chunks/useLabel-CekSAnqJ.es.js +0 -37
  990. package/dist/chunks/useLabel-CekSAnqJ.es.js.map +0 -1
  991. package/dist/chunks/useLocalizedStringFormatter-BfWBwLjq.es.js +0 -97
  992. package/dist/chunks/useLocalizedStringFormatter-BfWBwLjq.es.js.map +0 -1
  993. package/dist/chunks/useLocalizedStringFormatter-CdsqKKUv.cjs.js +0 -2
  994. package/dist/chunks/useLocalizedStringFormatter-CdsqKKUv.cjs.js.map +0 -1
  995. package/dist/chunks/usePress-CHjHe0z6.cjs.js +0 -8
  996. package/dist/chunks/usePress-CHjHe0z6.cjs.js.map +0 -1
  997. package/dist/chunks/usePress-Cjh8V0gi.es.js +0 -452
  998. package/dist/chunks/usePress-Cjh8V0gi.es.js.map +0 -1
  999. package/dist/chunks/useProgressBar-C2d-2Fkp.cjs.js +0 -2
  1000. package/dist/chunks/useProgressBar-C2d-2Fkp.cjs.js.map +0 -1
  1001. package/dist/chunks/useProgressBar-DZT7aMNM.es.js +0 -48
  1002. package/dist/chunks/useProgressBar-DZT7aMNM.es.js.map +0 -1
  1003. package/dist/chunks/useSingleSelectListState-C2uPq6eE.cjs.js +0 -2
  1004. package/dist/chunks/useSingleSelectListState-C2uPq6eE.cjs.js.map +0 -1
  1005. package/dist/chunks/useSingleSelectListState-NfI_d4ak.es.js +0 -269
  1006. package/dist/chunks/useSingleSelectListState-NfI_d4ak.es.js.map +0 -1
  1007. package/dist/chunks/useSpinButton-C2O01UxL.cjs.js +0 -2
  1008. package/dist/chunks/useSpinButton-C2O01UxL.cjs.js.map +0 -1
  1009. package/dist/chunks/useSpinButton-D2j8iVmv.es.js +0 -432
  1010. package/dist/chunks/useSpinButton-D2j8iVmv.es.js.map +0 -1
  1011. package/dist/chunks/useTextField-BMUp5FfB.cjs.js +0 -2
  1012. package/dist/chunks/useTextField-BMUp5FfB.cjs.js.map +0 -1
  1013. package/dist/chunks/useTextField-CtQSL6tL.es.js +0 -88
  1014. package/dist/chunks/useTextField-CtQSL6tL.es.js.map +0 -1
  1015. package/dist/chunks/useToggle-CTRf6MHr.es.js +0 -50
  1016. package/dist/chunks/useToggle-CTRf6MHr.es.js.map +0 -1
  1017. package/dist/chunks/useToggle-CdzYIaIp.cjs.js +0 -2
  1018. package/dist/chunks/useToggle-CdzYIaIp.cjs.js.map +0 -1
  1019. package/dist/chunks/utils-4CMfmbln.es.js +0 -187
  1020. package/dist/chunks/utils-4CMfmbln.es.js.map +0 -1
  1021. package/dist/chunks/utils-BQD5cAKH.cjs.js +0 -2
  1022. package/dist/chunks/utils-BQD5cAKH.cjs.js.map +0 -1
  1023. package/dist/chunks/utils-DB75DiMj.es.js +0 -128
  1024. package/dist/chunks/utils-DB75DiMj.es.js.map +0 -1
  1025. package/dist/chunks/utils-DDsBrWAK.cjs.js +0 -2
  1026. package/dist/chunks/utils-DDsBrWAK.cjs.js.map +0 -1
  1027. package/dist/chunks/visually-hidden-DJxzCHM4.es.js +0 -11
  1028. package/dist/chunks/visually-hidden-DJxzCHM4.es.js.map +0 -1
  1029. package/dist/chunks/visually-hidden-XscDHjYa.cjs.js +0 -2
  1030. package/dist/chunks/visually-hidden-XscDHjYa.cjs.js.map +0 -1
@@ -1,3007 +0,0 @@
1
- import m, { useRef as P, version as en, useEffect as Y, useMemo as T, cloneElement as ct, forwardRef as ne, useContext as R, createContext as O, useCallback as J, useState as te, isValidElement as Cl } from "react";
2
- import { $ as ce, c as ft, b as ht, d as pt, a as oe, e as fe, f as vt, g as El } from "./utils-DB75DiMj.es.js";
3
- import { b as Pl, $ as kl } from "./Hidden-CeBYiBUb.es.js";
4
- import { flushSync as Il, createPortal as Fl } from "react-dom";
5
- import { b as We } from "./useFocusable-B4YfgYbi.es.js";
6
- import { $ as yt } from "./SSRProvider-eIEwc-2s.es.js";
7
- import { d as Ee, c as ee, $ as W, a as re, b as _e, e as Ml } from "./mergeProps-BUo0BHVY.es.js";
8
- import { $ as bt } from "./Text-DOcU1ycg.es.js";
9
- import { a as Pe } from "./Input-DN0K3GJf.es.js";
10
- import { $ as Tl, a as Ll } from "./Form-yBl0QZl8.es.js";
11
- import { $ as Al } from "./Label-DBDcs-md.es.js";
12
- import { a as Rl } from "./TextArea-BeSyeRBk.es.js";
13
- import { $ as se } from "./filterDOMProps-D6KHYVBX.es.js";
14
- import { $ as Bl } from "./useTextField-CtQSL6tL.es.js";
15
- import { a as Vl, b as Be, e as ke } from "./utils-4CMfmbln.es.js";
16
- import { $ as Ol, a as Nl } from "./useLabel-CekSAnqJ.es.js";
17
- import { $ as he } from "./useObjectRef-CaJ5pgjX.es.js";
18
- import { b as gt, h as zl, a as Ul } from "./platform-Bc175Jt1.es.js";
19
- import { d as Ie, $ as Ge } from "./useFocus-3ktZKnFP.es.js";
20
- import { $ as Hl } from "./useLocalizedStringFormatter-BfWBwLjq.es.js";
21
- import { $ as $t } from "./useControlledState-u436Wbp1.es.js";
22
- import { a as Kn, $ as je } from "./getScrollParent-DE66eQI-.es.js";
23
- import { $ as mt, c as ql, a as Wl } from "./openLink-Bb-6Z-d5.es.js";
24
- import { $ as xt } from "./useHover-DmJo2yqg.es.js";
25
- import { $ as St } from "./usePress-Cjh8V0gi.es.js";
26
- import { $ as Fe } from "./focusWithoutScrolling-CDw3JYiq.es.js";
27
- import { $ as _l, b as Gl, a as Ye } from "./scrollIntoView-CqkKWFb6.es.js";
28
- import { $ as Me } from "./focusSafely-CahaQIyI.es.js";
29
- import { $ as jl } from "./useFocusWithin-BxAgY02U.es.js";
30
- import { $ as ae } from "./useEvent-CzfHWUdv.es.js";
31
- import { a as Yl, c as Jl } from "./FocusScope-BacYMT5s.es.js";
32
- import { $ as Kt } from "./context-D3RF-nTI.es.js";
33
- import { $ as Dt } from "./useCollator-BhJcleP-.es.js";
34
- import { $ as Xl } from "./useFocusRing-Bij4qXCm.es.js";
35
- function Je(n, e) {
36
- const t = P(!0), l = P(null);
37
- Ee(() => (t.current = !0, () => {
38
- t.current = !1;
39
- }), []), Ee(() => {
40
- t.current ? t.current = !1 : (!l.current || e.some((i, o) => !Object.is(i, l[o]))) && n(), l.current = e;
41
- }, e);
42
- }
43
- const wt = "react-aria-clear-focus", Te = "react-aria-focus";
44
- function Q(n) {
45
- return gt() ? n.metaKey : n.ctrlKey;
46
- }
47
- const Zl = 500;
48
- function Ql(n) {
49
- let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: o = Zl, accessibilityDescription: r } = n;
50
- const s = P(void 0);
51
- let { addGlobalListener: a, removeGlobalListener: c } = Vl(), { pressProps: v } = St({
52
- isDisabled: e,
53
- onPressStart(d) {
54
- if (d.continuePropagation(), (d.pointerType === "mouse" || d.pointerType === "touch") && (t && t({
55
- ...d,
56
- type: "longpressstart"
57
- }), s.current = setTimeout(() => {
58
- d.target.dispatchEvent(new PointerEvent("pointercancel", {
59
- bubbles: !0
60
- })), Be(d.target).activeElement !== d.target && Fe(d.target), i && i({
61
- ...d,
62
- type: "longpress"
63
- }), s.current = void 0;
64
- }, o), d.pointerType === "touch")) {
65
- let y = (b) => {
66
- b.preventDefault();
67
- };
68
- a(d.target, "contextmenu", y, {
69
- once: !0
70
- }), a(window, "pointerup", () => {
71
- setTimeout(() => {
72
- c(d.target, "contextmenu", y);
73
- }, 30);
74
- }, {
75
- once: !0
76
- });
77
- }
78
- },
79
- onPressEnd(d) {
80
- s.current && clearTimeout(s.current), l && (d.pointerType === "mouse" || d.pointerType === "touch") && l({
81
- ...d,
82
- type: "longpressend"
83
- });
84
- }
85
- }), h = _l(i && !e ? r : void 0);
86
- return {
87
- longPressProps: W(v, h)
88
- };
89
- }
90
- function Ve(n) {
91
- let e = ei(Be(n));
92
- e !== n && (e && Le(e, n), n && Ct(n, e));
93
- }
94
- function Le(n, e) {
95
- n.dispatchEvent(new FocusEvent("blur", {
96
- relatedTarget: e
97
- })), n.dispatchEvent(new FocusEvent("focusout", {
98
- bubbles: !0,
99
- relatedTarget: e
100
- }));
101
- }
102
- function Ct(n, e) {
103
- n.dispatchEvent(new FocusEvent("focus", {
104
- relatedTarget: e
105
- })), n.dispatchEvent(new FocusEvent("focusin", {
106
- bubbles: !0,
107
- relatedTarget: e
108
- }));
109
- }
110
- function ei(n) {
111
- let e = ke(n), t = e == null ? void 0 : e.getAttribute("aria-activedescendant");
112
- return t && n.getElementById(t) || e;
113
- }
114
- const Oe = /* @__PURE__ */ new WeakMap();
115
- function ti(n) {
116
- return typeof n == "string" ? n.replace(/\s*/g, "") : "" + n;
117
- }
118
- function li(n, e) {
119
- let t = Oe.get(n);
120
- if (!t) throw new Error("Unknown list");
121
- return `${t.id}-option-${ti(e)}`;
122
- }
123
- function Ae(n) {
124
- return zl() ? n.altKey : n.ctrlKey;
125
- }
126
- function de(n, e) {
127
- var t, l;
128
- let i = `[data-key="${CSS.escape(String(e))}"]`, o = (t = n.current) === null || t === void 0 ? void 0 : t.dataset.collection;
129
- return o && (i = `[data-collection="${CSS.escape(o)}"]${i}`), (l = n.current) === null || l === void 0 ? void 0 : l.querySelector(i);
130
- }
131
- const Et = /* @__PURE__ */ new WeakMap();
132
- function ii(n) {
133
- let e = re();
134
- return Et.set(n, e), e;
135
- }
136
- function ni(n) {
137
- return Et.get(n);
138
- }
139
- const oi = 1e3;
140
- function ri(n) {
141
- let { keyboardDelegate: e, selectionManager: t, onTypeSelect: l } = n, i = P({
142
- search: "",
143
- timeout: void 0
144
- }).current, o = (r) => {
145
- let s = si(r.key);
146
- if (!(!s || r.ctrlKey || r.metaKey || !r.currentTarget.contains(r.target))) {
147
- if (s === " " && i.search.trim().length > 0 && (r.preventDefault(), "continuePropagation" in r || r.stopPropagation()), i.search += s, e.getKeyForSearch != null) {
148
- let a = e.getKeyForSearch(i.search, t.focusedKey);
149
- a == null && (a = e.getKeyForSearch(i.search)), a != null && (t.setFocusedKey(a), l && l(a));
150
- }
151
- clearTimeout(i.timeout), i.timeout = setTimeout(() => {
152
- i.search = "";
153
- }, oi);
154
- }
155
- };
156
- return {
157
- typeSelectProps: {
158
- // Using a capturing listener to catch the keydown event before
159
- // other hooks in order to handle the Spacebar event.
160
- onKeyDownCapture: e.getKeyForSearch ? o : void 0
161
- }
162
- };
163
- }
164
- function si(n) {
165
- return n.length === 1 || !/^[A-Z]/i.test(n) ? n : "";
166
- }
167
- function ai(n) {
168
- let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: o = !1, disallowEmptySelection: r = !1, disallowSelectAll: s = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: c = e.selectionBehavior === "replace", disallowTypeAhead: v = !1, shouldUseVirtualFocus: h, allowsTabNavigation: d = !1, isVirtualized: y, scrollRef: b = l, linkBehavior: x = "action" } = n, { direction: g } = Kt(), $ = mt(), S = (f) => {
169
- var u;
170
- if (f.altKey && f.key === "Tab" && f.preventDefault(), !(!((u = l.current) === null || u === void 0) && u.contains(f.target))) return;
171
- const E = (D, X) => {
172
- if (D != null) {
173
- if (e.isLink(D) && x === "selection" && c && !Ae(f)) {
174
- Il(() => {
175
- e.setFocusedKey(D, X);
176
- });
177
- let Z = de(l, D), qe = e.getItemProps(D);
178
- Z && $.open(Z, f, qe.href, qe.routerOptions);
179
- return;
180
- }
181
- if (e.setFocusedKey(D, X), e.isLink(D) && x === "override") return;
182
- f.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(D) : c && !Ae(f) && e.replaceSelection(D);
183
- }
184
- };
185
- switch (f.key) {
186
- case "ArrowDown":
187
- if (t.getKeyBelow) {
188
- var L, N, z;
189
- let D = e.focusedKey != null ? (L = t.getKeyBelow) === null || L === void 0 ? void 0 : L.call(t, e.focusedKey) : (N = t.getFirstKey) === null || N === void 0 ? void 0 : N.call(t);
190
- D == null && o && (D = (z = t.getFirstKey) === null || z === void 0 ? void 0 : z.call(t, e.focusedKey)), D != null && (f.preventDefault(), E(D));
191
- }
192
- break;
193
- case "ArrowUp":
194
- if (t.getKeyAbove) {
195
- var q, _, ye;
196
- let D = e.focusedKey != null ? (q = t.getKeyAbove) === null || q === void 0 ? void 0 : q.call(t, e.focusedKey) : (_ = t.getLastKey) === null || _ === void 0 ? void 0 : _.call(t);
197
- D == null && o && (D = (ye = t.getLastKey) === null || ye === void 0 ? void 0 : ye.call(t, e.focusedKey)), D != null && (f.preventDefault(), E(D));
198
- }
199
- break;
200
- case "ArrowLeft":
201
- if (t.getKeyLeftOf) {
202
- var be, ge, $e;
203
- let D = e.focusedKey != null ? (be = t.getKeyLeftOf) === null || be === void 0 ? void 0 : be.call(t, e.focusedKey) : null;
204
- D == null && o && (D = g === "rtl" ? (ge = t.getFirstKey) === null || ge === void 0 ? void 0 : ge.call(t, e.focusedKey) : ($e = t.getLastKey) === null || $e === void 0 ? void 0 : $e.call(t, e.focusedKey)), D != null && (f.preventDefault(), E(D, g === "rtl" ? "first" : "last"));
205
- }
206
- break;
207
- case "ArrowRight":
208
- if (t.getKeyRightOf) {
209
- var me, xe, Se;
210
- let D = e.focusedKey != null ? (me = t.getKeyRightOf) === null || me === void 0 ? void 0 : me.call(t, e.focusedKey) : null;
211
- D == null && o && (D = g === "rtl" ? (xe = t.getLastKey) === null || xe === void 0 ? void 0 : xe.call(t, e.focusedKey) : (Se = t.getFirstKey) === null || Se === void 0 ? void 0 : Se.call(t, e.focusedKey)), D != null && (f.preventDefault(), E(D, g === "rtl" ? "last" : "first"));
212
- }
213
- break;
214
- case "Home":
215
- if (t.getFirstKey) {
216
- if (e.focusedKey === null && f.shiftKey) return;
217
- f.preventDefault();
218
- let D = t.getFirstKey(e.focusedKey, Q(f));
219
- e.setFocusedKey(D), D != null && (Q(f) && f.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(D) : c && e.replaceSelection(D));
220
- }
221
- break;
222
- case "End":
223
- if (t.getLastKey) {
224
- if (e.focusedKey === null && f.shiftKey) return;
225
- f.preventDefault();
226
- let D = t.getLastKey(e.focusedKey, Q(f));
227
- e.setFocusedKey(D), D != null && (Q(f) && f.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(D) : c && e.replaceSelection(D));
228
- }
229
- break;
230
- case "PageDown":
231
- if (t.getKeyPageBelow && e.focusedKey != null) {
232
- let D = t.getKeyPageBelow(e.focusedKey);
233
- D != null && (f.preventDefault(), E(D));
234
- }
235
- break;
236
- case "PageUp":
237
- if (t.getKeyPageAbove && e.focusedKey != null) {
238
- let D = t.getKeyPageAbove(e.focusedKey);
239
- D != null && (f.preventDefault(), E(D));
240
- }
241
- break;
242
- case "a":
243
- Q(f) && e.selectionMode === "multiple" && s !== !0 && (f.preventDefault(), e.selectAll());
244
- break;
245
- case "Escape":
246
- a === "clearSelection" && !r && e.selectedKeys.size !== 0 && (f.stopPropagation(), f.preventDefault(), e.clearSelection());
247
- break;
248
- case "Tab":
249
- if (!d) {
250
- if (f.shiftKey) l.current.focus();
251
- else {
252
- let D = Yl(l.current, {
253
- tabbable: !0
254
- }), X, Z;
255
- do
256
- Z = D.lastChild(), Z && (X = Z);
257
- while (Z);
258
- X && !X.contains(document.activeElement) && Fe(X);
259
- }
260
- break;
261
- }
262
- }
263
- }, w = P({
264
- top: 0,
265
- left: 0
266
- });
267
- ae(b, "scroll", y ? void 0 : () => {
268
- var f, u, E, L;
269
- w.current = {
270
- top: (E = (f = b.current) === null || f === void 0 ? void 0 : f.scrollTop) !== null && E !== void 0 ? E : 0,
271
- left: (L = (u = b.current) === null || u === void 0 ? void 0 : u.scrollLeft) !== null && L !== void 0 ? L : 0
272
- };
273
- });
274
- let k = (f) => {
275
- if (e.isFocused) {
276
- f.currentTarget.contains(f.target) || e.setFocused(!1);
277
- return;
278
- }
279
- if (f.currentTarget.contains(f.target)) {
280
- if (e.setFocused(!0), e.focusedKey == null) {
281
- var u, E;
282
- let z = (_) => {
283
- _ != null && (e.setFocusedKey(_), c && !e.isSelected(_) && e.replaceSelection(_));
284
- }, q = f.relatedTarget;
285
- var L, N;
286
- q && f.currentTarget.compareDocumentPosition(q) & Node.DOCUMENT_POSITION_FOLLOWING ? z((L = e.lastSelectedKey) !== null && L !== void 0 ? L : (u = t.getLastKey) === null || u === void 0 ? void 0 : u.call(t)) : z((N = e.firstSelectedKey) !== null && N !== void 0 ? N : (E = t.getFirstKey) === null || E === void 0 ? void 0 : E.call(t));
287
- } else !y && b.current && (b.current.scrollTop = w.current.top, b.current.scrollLeft = w.current.left);
288
- if (e.focusedKey != null && b.current) {
289
- let z = de(l, e.focusedKey);
290
- z instanceof HTMLElement && (!z.contains(document.activeElement) && !h && Fe(z), Ie() === "keyboard" && Ye(z, {
291
- containingElement: l.current
292
- }));
293
- }
294
- }
295
- }, F = (f) => {
296
- f.currentTarget.contains(f.relatedTarget) || e.setFocused(!1);
297
- }, C = P(!1);
298
- ae(l, Te, h ? (f) => {
299
- let { detail: u } = f;
300
- f.stopPropagation(), e.setFocused(!0), (u == null ? void 0 : u.focusStrategy) === "first" && (C.current = !0);
301
- } : void 0);
302
- let A = ee(() => {
303
- var f, u;
304
- let E = (u = (f = t.getFirstKey) === null || f === void 0 ? void 0 : f.call(t)) !== null && u !== void 0 ? u : null;
305
- E == null ? (Ve(l.current), e.collection.size > 0 && (C.current = !1)) : (e.setFocusedKey(E), C.current = !1);
306
- });
307
- Je(() => {
308
- C.current && A();
309
- }, [
310
- e.collection,
311
- A
312
- ]);
313
- let M = ee(() => {
314
- e.collection.size > 0 && (C.current = !1);
315
- });
316
- Je(() => {
317
- M();
318
- }, [
319
- e.focusedKey,
320
- M
321
- ]), ae(l, wt, h ? (f) => {
322
- var u;
323
- f.stopPropagation(), e.setFocused(!1), !((u = f.detail) === null || u === void 0) && u.clearFocusKey && e.setFocusedKey(null);
324
- } : void 0);
325
- const G = P(i), B = P(!1);
326
- Y(() => {
327
- if (G.current) {
328
- var f, u;
329
- let N = null;
330
- var E;
331
- i === "first" && (N = (E = (f = t.getFirstKey) === null || f === void 0 ? void 0 : f.call(t)) !== null && E !== void 0 ? E : null);
332
- var L;
333
- i === "last" && (N = (L = (u = t.getLastKey) === null || u === void 0 ? void 0 : u.call(t)) !== null && L !== void 0 ? L : null);
334
- let z = e.selectedKeys;
335
- if (z.size) {
336
- for (let q of z) if (e.canSelectItem(q)) {
337
- N = q;
338
- break;
339
- }
340
- }
341
- e.setFocused(!0), e.setFocusedKey(N), N == null && !h && l.current && Me(l.current), e.collection.size > 0 && (G.current = !1, B.current = !0);
342
- }
343
- });
344
- let p = P(e.focusedKey), K = P(null);
345
- Y(() => {
346
- if (e.isFocused && e.focusedKey != null && (e.focusedKey !== p.current || B.current) && b.current && l.current) {
347
- let f = Ie(), u = de(l, e.focusedKey);
348
- if (!(u instanceof HTMLElement))
349
- return;
350
- (f === "keyboard" || B.current) && (K.current && cancelAnimationFrame(K.current), K.current = requestAnimationFrame(() => {
351
- b.current && (Gl(b.current, u), f !== "virtual" && Ye(u, {
352
- containingElement: l.current
353
- }));
354
- }));
355
- }
356
- !h && e.isFocused && e.focusedKey == null && p.current != null && l.current && Me(l.current), p.current = e.focusedKey, B.current = !1;
357
- }), Y(() => () => {
358
- K.current && cancelAnimationFrame(K.current);
359
- }, []), ae(l, "react-aria-focus-scope-restore", (f) => {
360
- f.preventDefault(), e.setFocused(!0);
361
- });
362
- let I = {
363
- onKeyDown: S,
364
- onFocus: k,
365
- onBlur: F,
366
- onMouseDown(f) {
367
- b.current === f.target && f.preventDefault();
368
- }
369
- }, { typeSelectProps: V } = ri({
370
- keyboardDelegate: t,
371
- selectionManager: e
372
- });
373
- v || (I = W(V, I));
374
- let U;
375
- h || (U = e.focusedKey == null ? 0 : -1);
376
- let H = ii(e.collection);
377
- return {
378
- collectionProps: W(I, {
379
- tabIndex: U,
380
- "data-collection": H
381
- })
382
- };
383
- }
384
- function ui(n) {
385
- let { id: e, selectionManager: t, key: l, ref: i, shouldSelectOnPressUp: o, shouldUseVirtualFocus: r, focus: s, isDisabled: a, onAction: c, allowsDifferentPressOrigin: v, linkBehavior: h = "action" } = n, d = mt();
386
- e = re(e);
387
- let y = (u) => {
388
- if (u.pointerType === "keyboard" && Ae(u)) t.toggleSelection(l);
389
- else {
390
- if (t.selectionMode === "none") return;
391
- if (t.isLink(l)) {
392
- if (h === "selection" && i.current) {
393
- let E = t.getItemProps(l);
394
- d.open(i.current, u, E.href, E.routerOptions), t.setSelectedKeys(t.selectedKeys);
395
- return;
396
- } else if (h === "override" || h === "none") return;
397
- }
398
- t.selectionMode === "single" ? t.isSelected(l) && !t.disallowEmptySelection ? t.toggleSelection(l) : t.replaceSelection(l) : u && u.shiftKey ? t.extendSelection(l) : t.selectionBehavior === "toggle" || u && (Q(u) || u.pointerType === "touch" || u.pointerType === "virtual") ? t.toggleSelection(l) : t.replaceSelection(l);
399
- }
400
- };
401
- Y(() => {
402
- l === t.focusedKey && t.isFocused && (r ? Ve(i.current) : s ? s() : document.activeElement !== i.current && i.current && Me(i.current));
403
- }, [
404
- i,
405
- l,
406
- t.focusedKey,
407
- t.childFocusStrategy,
408
- t.isFocused,
409
- r
410
- ]), a = a || t.isDisabled(l);
411
- let b = {};
412
- !r && !a ? b = {
413
- tabIndex: l === t.focusedKey ? 0 : -1,
414
- onFocus(u) {
415
- u.target === i.current && t.setFocusedKey(l);
416
- }
417
- } : a && (b.onMouseDown = (u) => {
418
- u.preventDefault();
419
- });
420
- let x = t.isLink(l) && h === "override", g = t.isLink(l) && h !== "selection" && h !== "none", $ = !a && t.canSelectItem(l) && !x, S = (c || g) && !a, w = S && (t.selectionBehavior === "replace" ? !$ : !$ || t.isEmpty), k = S && $ && t.selectionBehavior === "replace", F = w || k, C = P(null), A = F && $, M = P(!1), G = P(!1), B = (u) => {
421
- if (c && c(), g && i.current) {
422
- let E = t.getItemProps(l);
423
- d.open(i.current, u, E.href, E.routerOptions);
424
- }
425
- }, p = {
426
- ref: i
427
- };
428
- o ? (p.onPressStart = (u) => {
429
- C.current = u.pointerType, M.current = A, u.pointerType === "keyboard" && (!F || Ze()) && y(u);
430
- }, v ? (p.onPressUp = w ? void 0 : (u) => {
431
- u.pointerType === "mouse" && $ && y(u);
432
- }, p.onPress = w ? B : (u) => {
433
- u.pointerType !== "keyboard" && u.pointerType !== "mouse" && $ && y(u);
434
- }) : p.onPress = (u) => {
435
- if (w || k && u.pointerType !== "mouse") {
436
- if (u.pointerType === "keyboard" && !Xe()) return;
437
- B(u);
438
- } else u.pointerType !== "keyboard" && $ && y(u);
439
- }) : (p.onPressStart = (u) => {
440
- C.current = u.pointerType, M.current = A, G.current = w, $ && (u.pointerType === "mouse" && !w || u.pointerType === "keyboard" && (!S || Ze())) && y(u);
441
- }, p.onPress = (u) => {
442
- (u.pointerType === "touch" || u.pointerType === "pen" || u.pointerType === "virtual" || u.pointerType === "keyboard" && F && Xe() || u.pointerType === "mouse" && G.current) && (F ? B(u) : $ && y(u));
443
- }), b["data-collection"] = ni(t.collection), b["data-key"] = l, p.preventFocusOnPress = r, r && (p = W(p, {
444
- onPressStart(u) {
445
- u.pointerType !== "touch" && (t.setFocused(!0), t.setFocusedKey(l));
446
- },
447
- onPress(u) {
448
- u.pointerType === "touch" && (t.setFocused(!0), t.setFocusedKey(l));
449
- }
450
- }));
451
- let { pressProps: K, isPressed: I } = St(p), V = k ? (u) => {
452
- C.current === "mouse" && (u.stopPropagation(), u.preventDefault(), B(u));
453
- } : void 0, { longPressProps: U } = Ql({
454
- isDisabled: !A,
455
- onLongPress(u) {
456
- u.pointerType === "touch" && (y(u), t.setSelectionBehavior("toggle"));
457
- }
458
- }), H = (u) => {
459
- C.current === "touch" && M.current && u.preventDefault();
460
- }, f = t.isLink(l) ? (u) => {
461
- ql.isOpening || u.preventDefault();
462
- } : void 0;
463
- return {
464
- itemProps: W(
465
- b,
466
- $ || w || r && !a ? K : {},
467
- A ? U : {},
468
- {
469
- onDoubleClick: V,
470
- onDragStartCapture: H,
471
- onClick: f,
472
- id: e
473
- },
474
- // Prevent DOM focus from moving on mouse down when using virtual focus
475
- r ? {
476
- onMouseDown: (u) => u.preventDefault()
477
- } : void 0
478
- ),
479
- isPressed: I,
480
- isSelected: t.isSelected(l),
481
- isFocused: t.isFocused && t.focusedKey === l,
482
- isDisabled: a,
483
- allowsSelection: $,
484
- hasAction: F
485
- };
486
- }
487
- function Xe() {
488
- let n = window.event;
489
- return (n == null ? void 0 : n.key) === "Enter";
490
- }
491
- function Ze() {
492
- let n = window.event;
493
- return (n == null ? void 0 : n.key) === " " || (n == null ? void 0 : n.code) === "Space";
494
- }
495
- class Qe {
496
- getItemRect(e) {
497
- let t = this.ref.current;
498
- if (!t) return null;
499
- let l = e != null ? de(this.ref, e) : null;
500
- if (!l) return null;
501
- let i = t.getBoundingClientRect(), o = l.getBoundingClientRect();
502
- return {
503
- x: o.left - i.left + t.scrollLeft,
504
- y: o.top - i.top + t.scrollTop,
505
- width: o.width,
506
- height: o.height
507
- };
508
- }
509
- getContentSize() {
510
- let e = this.ref.current;
511
- var t, l;
512
- return {
513
- width: (t = e == null ? void 0 : e.scrollWidth) !== null && t !== void 0 ? t : 0,
514
- height: (l = e == null ? void 0 : e.scrollHeight) !== null && l !== void 0 ? l : 0
515
- };
516
- }
517
- getVisibleRect() {
518
- let e = this.ref.current;
519
- var t, l, i, o;
520
- return {
521
- x: (t = e == null ? void 0 : e.scrollLeft) !== null && t !== void 0 ? t : 0,
522
- y: (l = e == null ? void 0 : e.scrollTop) !== null && l !== void 0 ? l : 0,
523
- width: (i = e == null ? void 0 : e.offsetWidth) !== null && i !== void 0 ? i : 0,
524
- height: (o = e == null ? void 0 : e.offsetHeight) !== null && o !== void 0 ? o : 0
525
- };
526
- }
527
- constructor(e) {
528
- this.ref = e;
529
- }
530
- }
531
- class Pt {
532
- isDisabled(e) {
533
- var t;
534
- return this.disabledBehavior === "all" && (((t = e.props) === null || t === void 0 ? void 0 : t.isDisabled) || this.disabledKeys.has(e.key));
535
- }
536
- findNextNonDisabled(e, t) {
537
- let l = e;
538
- for (; l != null; ) {
539
- let i = this.collection.getItem(l);
540
- if ((i == null ? void 0 : i.type) === "item" && !this.isDisabled(i)) return l;
541
- l = t(l);
542
- }
543
- return null;
544
- }
545
- getNextKey(e) {
546
- let t = e;
547
- return t = this.collection.getKeyAfter(t), this.findNextNonDisabled(t, (l) => this.collection.getKeyAfter(l));
548
- }
549
- getPreviousKey(e) {
550
- let t = e;
551
- return t = this.collection.getKeyBefore(t), this.findNextNonDisabled(t, (l) => this.collection.getKeyBefore(l));
552
- }
553
- findKey(e, t, l) {
554
- let i = e, o = this.layoutDelegate.getItemRect(i);
555
- if (!o || i == null) return null;
556
- let r = o;
557
- do {
558
- if (i = t(i), i == null) break;
559
- o = this.layoutDelegate.getItemRect(i);
560
- } while (o && l(r, o) && i != null);
561
- return i;
562
- }
563
- isSameRow(e, t) {
564
- return e.y === t.y || e.x !== t.x;
565
- }
566
- isSameColumn(e, t) {
567
- return e.x === t.x || e.y !== t.y;
568
- }
569
- getKeyBelow(e) {
570
- return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getNextKey(t), this.isSameRow) : this.getNextKey(e);
571
- }
572
- getKeyAbove(e) {
573
- return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getPreviousKey(t), this.isSameRow) : this.getPreviousKey(e);
574
- }
575
- getNextColumn(e, t) {
576
- return t ? this.getPreviousKey(e) : this.getNextKey(e);
577
- }
578
- getKeyRightOf(e) {
579
- let t = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
580
- 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;
581
- }
582
- getKeyLeftOf(e) {
583
- let t = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
584
- 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;
585
- }
586
- getFirstKey() {
587
- let e = this.collection.getFirstKey();
588
- return this.findNextNonDisabled(e, (t) => this.collection.getKeyAfter(t));
589
- }
590
- getLastKey() {
591
- let e = this.collection.getLastKey();
592
- return this.findNextNonDisabled(e, (t) => this.collection.getKeyBefore(t));
593
- }
594
- getKeyPageAbove(e) {
595
- let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
596
- if (!l) return null;
597
- if (t && !je(t)) return this.getFirstKey();
598
- let i = e;
599
- if (this.orientation === "horizontal") {
600
- let o = Math.max(0, l.x + l.width - this.layoutDelegate.getVisibleRect().width);
601
- for (; l && l.x > o && i != null; )
602
- i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
603
- } else {
604
- let o = Math.max(0, l.y + l.height - this.layoutDelegate.getVisibleRect().height);
605
- for (; l && l.y > o && i != null; )
606
- i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
607
- }
608
- return i ?? this.getFirstKey();
609
- }
610
- getKeyPageBelow(e) {
611
- let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
612
- if (!l) return null;
613
- if (t && !je(t)) return this.getLastKey();
614
- let i = e;
615
- if (this.orientation === "horizontal") {
616
- let o = Math.min(this.layoutDelegate.getContentSize().width, l.y - l.width + this.layoutDelegate.getVisibleRect().width);
617
- for (; l && l.x < o && i != null; )
618
- i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
619
- } else {
620
- let o = Math.min(this.layoutDelegate.getContentSize().height, l.y - l.height + this.layoutDelegate.getVisibleRect().height);
621
- for (; l && l.y < o && i != null; )
622
- i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
623
- }
624
- return i ?? this.getLastKey();
625
- }
626
- getKeyForSearch(e, t) {
627
- if (!this.collator) return null;
628
- let l = this.collection, i = t || this.getFirstKey();
629
- for (; i != null; ) {
630
- let o = l.getItem(i);
631
- if (!o) return null;
632
- let r = o.textValue.slice(0, e.length);
633
- if (o.textValue && this.collator.compare(r, e) === 0) return i;
634
- i = this.getNextKey(i);
635
- }
636
- return null;
637
- }
638
- constructor(...e) {
639
- if (e.length === 1) {
640
- let t = e[0];
641
- 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 Qe(t.ref);
642
- } else
643
- 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 Qe(this.ref);
644
- this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
645
- }
646
- }
647
- function di(n) {
648
- let { selectionManager: e, collection: t, disabledKeys: l, ref: i, keyboardDelegate: o, layoutDelegate: r } = n, s = Dt({
649
- usage: "search",
650
- sensitivity: "base"
651
- }), a = e.disabledBehavior, c = T(() => o || new Pt({
652
- collection: t,
653
- disabledKeys: l,
654
- disabledBehavior: a,
655
- ref: i,
656
- collator: s,
657
- layoutDelegate: r
658
- }), [
659
- o,
660
- r,
661
- t,
662
- l,
663
- i,
664
- s,
665
- a
666
- ]), { collectionProps: v } = ai({
667
- ...n,
668
- ref: i,
669
- selectionManager: e,
670
- keyboardDelegate: c
671
- });
672
- return {
673
- listProps: v
674
- };
675
- }
676
- function ci(n, e, t) {
677
- let l = se(n, {
678
- labelable: !0
679
- }), i = n.selectionBehavior || "toggle", o = n.linkBehavior || (i === "replace" ? "action" : "override");
680
- i === "toggle" && o === "action" && (o = "override");
681
- let { listProps: r } = di({
682
- ...n,
683
- ref: t,
684
- selectionManager: e.selectionManager,
685
- collection: e.collection,
686
- disabledKeys: e.disabledKeys,
687
- linkBehavior: o
688
- }), { focusWithinProps: s } = jl({
689
- onFocusWithin: n.onFocus,
690
- onBlurWithin: n.onBlur,
691
- onFocusWithinChange: n.onFocusChange
692
- }), a = re(n.id);
693
- Oe.set(e, {
694
- id: a,
695
- shouldUseVirtualFocus: n.shouldUseVirtualFocus,
696
- shouldSelectOnPressUp: n.shouldSelectOnPressUp,
697
- shouldFocusOnHover: n.shouldFocusOnHover,
698
- isVirtualized: n.isVirtualized,
699
- onAction: n.onAction,
700
- linkBehavior: o
701
- });
702
- let { labelProps: c, fieldProps: v } = Ol({
703
- ...n,
704
- id: a,
705
- // listbox is not an HTML input element so it
706
- // shouldn't be labeled by a <label> element.
707
- labelElementType: "span"
708
- });
709
- return {
710
- labelProps: c,
711
- listBoxProps: W(l, s, e.selectionManager.selectionMode === "multiple" ? {
712
- "aria-multiselectable": "true"
713
- } : {}, {
714
- role: "listbox",
715
- ...W(v, r)
716
- })
717
- };
718
- }
719
- class fi {
720
- build(e, t) {
721
- return this.context = t, et(() => this.iterateCollection(e));
722
- }
723
- *iterateCollection(e) {
724
- let { children: t, items: l } = e;
725
- if (m.isValidElement(t) && t.type === m.Fragment) yield* this.iterateCollection({
726
- children: t.props.children,
727
- items: l
728
- });
729
- else if (typeof t == "function") {
730
- if (!l) throw new Error("props.children was a function but props.items is missing");
731
- let i = 0;
732
- for (let o of l)
733
- yield* this.getFullNode({
734
- value: o,
735
- index: i
736
- }, {
737
- renderer: t
738
- }), i++;
739
- } else {
740
- let i = [];
741
- m.Children.forEach(t, (r) => {
742
- r && i.push(r);
743
- });
744
- let o = 0;
745
- for (let r of i) {
746
- let s = this.getFullNode({
747
- element: r,
748
- index: o
749
- }, {});
750
- for (let a of s)
751
- o++, yield a;
752
- }
753
- }
754
- }
755
- getKey(e, t, l, i) {
756
- if (e.key != null) return e.key;
757
- if (t.type === "cell" && t.key != null) return `${i}${t.key}`;
758
- let o = t.value;
759
- if (o != null) {
760
- var r;
761
- let s = (r = o.key) !== null && r !== void 0 ? r : o.id;
762
- if (s == null) throw new Error("No key found for item");
763
- return s;
764
- }
765
- return i ? `${i}.${t.index}` : `$.${t.index}`;
766
- }
767
- getChildState(e, t) {
768
- return {
769
- renderer: t.renderer || e.renderer
770
- };
771
- }
772
- *getFullNode(e, t, l, i) {
773
- if (m.isValidElement(e.element) && e.element.type === m.Fragment) {
774
- let g = [];
775
- m.Children.forEach(e.element.props.children, (S) => {
776
- g.push(S);
777
- });
778
- var o;
779
- let $ = (o = e.index) !== null && o !== void 0 ? o : 0;
780
- for (const S of g) yield* this.getFullNode({
781
- element: S,
782
- index: $++
783
- }, t, l, i);
784
- return;
785
- }
786
- let r = e.element;
787
- if (!r && e.value && t && t.renderer) {
788
- let g = this.cache.get(e.value);
789
- if (g && (!g.shouldInvalidate || !g.shouldInvalidate(this.context))) {
790
- g.index = e.index, g.parentKey = i ? i.key : null, yield g;
791
- return;
792
- }
793
- r = t.renderer(e.value);
794
- }
795
- if (m.isValidElement(r)) {
796
- let g = r.type;
797
- if (typeof g != "function" && typeof g.getCollectionNode != "function") {
798
- let k = r.type;
799
- throw new Error(`Unknown element <${k}> in collection.`);
800
- }
801
- let $ = g.getCollectionNode(r.props, this.context);
802
- var s;
803
- let S = (s = e.index) !== null && s !== void 0 ? s : 0, w = $.next();
804
- for (; !w.done && w.value; ) {
805
- let k = w.value;
806
- e.index = S;
807
- var a;
808
- let F = (a = k.key) !== null && a !== void 0 ? a : null;
809
- F == null && (F = k.element ? null : this.getKey(r, e, t, l));
810
- let A = [
811
- ...this.getFullNode({
812
- ...k,
813
- key: F,
814
- index: S,
815
- wrapper: hi(e.wrapper, k.wrapper)
816
- }, this.getChildState(t, k), l ? `${l}${r.key}` : r.key, i)
817
- ];
818
- for (let M of A) {
819
- var c, v;
820
- M.value = (v = (c = k.value) !== null && c !== void 0 ? c : e.value) !== null && v !== void 0 ? v : null, M.value && this.cache.set(M.value, M);
821
- var h;
822
- if (e.type && M.type !== e.type) throw new Error(`Unsupported type <${Ke(M.type)}> in <${Ke((h = i == null ? void 0 : i.type) !== null && h !== void 0 ? h : "unknown parent type")}>. Only <${Ke(e.type)}> is supported.`);
823
- S++, yield M;
824
- }
825
- w = $.next(A);
826
- }
827
- return;
828
- }
829
- if (e.key == null || e.type == null) return;
830
- let d = this;
831
- var y, b;
832
- let x = {
833
- type: e.type,
834
- props: e.props,
835
- key: e.key,
836
- parentKey: i ? i.key : null,
837
- value: (y = e.value) !== null && y !== void 0 ? y : null,
838
- level: i ? i.level + 1 : 0,
839
- index: e.index,
840
- rendered: e.rendered,
841
- textValue: (b = e.textValue) !== null && b !== void 0 ? b : "",
842
- "aria-label": e["aria-label"],
843
- wrapper: e.wrapper,
844
- shouldInvalidate: e.shouldInvalidate,
845
- hasChildNodes: e.hasChildNodes || !1,
846
- childNodes: et(function* () {
847
- if (!e.hasChildNodes || !e.childNodes) return;
848
- let g = 0;
849
- for (let $ of e.childNodes()) {
850
- $.key != null && ($.key = `${x.key}${$.key}`);
851
- let S = d.getFullNode({
852
- ...$,
853
- index: g
854
- }, d.getChildState(t, $), x.key, x);
855
- for (let w of S)
856
- g++, yield w;
857
- }
858
- })
859
- };
860
- yield x;
861
- }
862
- constructor() {
863
- this.cache = /* @__PURE__ */ new WeakMap();
864
- }
865
- }
866
- function et(n) {
867
- let e = [], t = null;
868
- return {
869
- *[Symbol.iterator]() {
870
- for (let l of e) yield l;
871
- t || (t = n());
872
- for (let l of t)
873
- e.push(l), yield l;
874
- }
875
- };
876
- }
877
- function hi(n, e) {
878
- if (n && e) return (t) => n(e(t));
879
- if (n) return n;
880
- if (e) return e;
881
- }
882
- function Ke(n) {
883
- return n[0].toUpperCase() + n.slice(1);
884
- }
885
- function pi(n, e, t) {
886
- let l = T(() => new fi(), []), { children: i, items: o, collection: r } = n;
887
- return T(() => {
888
- if (r) return r;
889
- let a = l.build({
890
- children: i,
891
- items: o
892
- }, t);
893
- return e(a);
894
- }, [
895
- l,
896
- i,
897
- o,
898
- r,
899
- t,
900
- e
901
- ]);
902
- }
903
- function kt(n, e) {
904
- return typeof e.getChildren == "function" ? e.getChildren(n.key) : n.childNodes;
905
- }
906
- function vi(n) {
907
- return yi(n);
908
- }
909
- function yi(n, e) {
910
- for (let t of n)
911
- return t;
912
- }
913
- function Rn(n) {
914
- let e;
915
- for (let t of n) e = t;
916
- return e;
917
- }
918
- function De(n, e, t) {
919
- if (e.parentKey === t.parentKey) return e.index - t.index;
920
- let l = [
921
- ...tt(n, e),
922
- e
923
- ], i = [
924
- ...tt(n, t),
925
- t
926
- ], o = l.slice(0, i.length).findIndex((r, s) => r !== i[s]);
927
- return o !== -1 ? (e = l[o], t = i[o], e.index - t.index) : l.findIndex((r) => r === t) >= 0 ? 1 : (i.findIndex((r) => r === e) >= 0, -1);
928
- }
929
- function tt(n, e) {
930
- let t = [], l = e;
931
- for (; (l == null ? void 0 : l.parentKey) != null; )
932
- l = n.getItem(l.parentKey), l && t.unshift(l);
933
- return t;
934
- }
935
- const lt = /* @__PURE__ */ new WeakMap();
936
- function bi(n) {
937
- let e = lt.get(n);
938
- if (e != null) return e;
939
- let t = 0, l = (i) => {
940
- for (let o of i)
941
- o.type === "section" ? l(kt(o, n)) : o.type === "item" && t++;
942
- };
943
- return l(n), lt.set(n, t), t;
944
- }
945
- function gi(n, e, t) {
946
- var l, i;
947
- let { key: o } = n, r = Oe.get(e);
948
- var s;
949
- let a = (s = n.isDisabled) !== null && s !== void 0 ? s : e.selectionManager.isDisabled(o);
950
- var c;
951
- let v = (c = n.isSelected) !== null && c !== void 0 ? c : e.selectionManager.isSelected(o);
952
- var h;
953
- let d = (h = n.shouldSelectOnPressUp) !== null && h !== void 0 ? h : r == null ? void 0 : r.shouldSelectOnPressUp;
954
- var y;
955
- let b = (y = n.shouldFocusOnHover) !== null && y !== void 0 ? y : r == null ? void 0 : r.shouldFocusOnHover;
956
- var x;
957
- let g = (x = n.shouldUseVirtualFocus) !== null && x !== void 0 ? x : r == null ? void 0 : r.shouldUseVirtualFocus;
958
- var $;
959
- let S = ($ = n.isVirtualized) !== null && $ !== void 0 ? $ : r == null ? void 0 : r.isVirtualized, w = _e(), k = _e(), F = {
960
- role: "option",
961
- "aria-disabled": a || void 0,
962
- "aria-selected": e.selectionManager.selectionMode !== "none" ? v : void 0
963
- };
964
- gt() && Ul() || (F["aria-label"] = n["aria-label"], F["aria-labelledby"] = w, F["aria-describedby"] = k);
965
- let C = e.collection.getItem(o);
966
- if (S) {
967
- let f = Number(C == null ? void 0 : C.index);
968
- F["aria-posinset"] = Number.isNaN(f) ? void 0 : f + 1, F["aria-setsize"] = bi(e.collection);
969
- }
970
- let A = r != null && r.onAction ? () => {
971
- var f;
972
- return r == null || (f = r.onAction) === null || f === void 0 ? void 0 : f.call(r, o);
973
- } : void 0, M = li(e, o), { itemProps: G, isPressed: B, isFocused: p, hasAction: K, allowsSelection: I } = ui({
974
- selectionManager: e.selectionManager,
975
- key: o,
976
- ref: t,
977
- shouldSelectOnPressUp: d,
978
- allowsDifferentPressOrigin: d && b,
979
- isVirtualized: S,
980
- shouldUseVirtualFocus: g,
981
- isDisabled: a,
982
- onAction: A || !(C == null || (l = C.props) === null || l === void 0) && l.onAction ? Ml(C == null || (i = C.props) === null || i === void 0 ? void 0 : i.onAction, A) : void 0,
983
- linkBehavior: r == null ? void 0 : r.linkBehavior,
984
- id: M
985
- }), { hoverProps: V } = xt({
986
- isDisabled: a || !b,
987
- onHoverStart() {
988
- Ge() || (e.selectionManager.setFocused(!0), e.selectionManager.setFocusedKey(o));
989
- }
990
- }), U = se(C == null ? void 0 : C.props);
991
- delete U.id;
992
- let H = Wl(C == null ? void 0 : C.props);
993
- return {
994
- optionProps: {
995
- ...F,
996
- ...W(U, G, V, H),
997
- id: M
998
- },
999
- labelProps: {
1000
- id: w
1001
- },
1002
- descriptionProps: {
1003
- id: k
1004
- },
1005
- isFocused: p,
1006
- isFocusVisible: p && e.selectionManager.isFocused && Ge(),
1007
- isSelected: v,
1008
- isDisabled: a,
1009
- isPressed: B,
1010
- allowsSelection: I,
1011
- hasAction: K
1012
- };
1013
- }
1014
- function $i(n) {
1015
- let { heading: e, "aria-label": t } = n, l = re();
1016
- return {
1017
- itemProps: {
1018
- role: "presentation"
1019
- },
1020
- headingProps: e ? {
1021
- // Techincally, listbox cannot contain headings according to ARIA.
1022
- // We hide the heading from assistive technology, using role="presentation",
1023
- // and only use it as a visual label for the nested group.
1024
- id: l,
1025
- role: "presentation"
1026
- } : {},
1027
- groupProps: {
1028
- role: "group",
1029
- "aria-label": t,
1030
- "aria-labelledby": e ? l : void 0
1031
- }
1032
- };
1033
- }
1034
- var ue = { exports: {} }, we = {};
1035
- /**
1036
- * @license React
1037
- * use-sync-external-store-shim.production.js
1038
- *
1039
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1040
- *
1041
- * This source code is licensed under the MIT license found in the
1042
- * LICENSE file in the root directory of this source tree.
1043
- */
1044
- var it;
1045
- function mi() {
1046
- if (it) return we;
1047
- it = 1;
1048
- var n = m;
1049
- function e(h, d) {
1050
- return h === d && (h !== 0 || 1 / h === 1 / d) || h !== h && d !== d;
1051
- }
1052
- var t = typeof Object.is == "function" ? Object.is : e, l = n.useState, i = n.useEffect, o = n.useLayoutEffect, r = n.useDebugValue;
1053
- function s(h, d) {
1054
- var y = d(), b = l({ inst: { value: y, getSnapshot: d } }), x = b[0].inst, g = b[1];
1055
- return o(
1056
- function() {
1057
- x.value = y, x.getSnapshot = d, a(x) && g({ inst: x });
1058
- },
1059
- [h, y, d]
1060
- ), i(
1061
- function() {
1062
- return a(x) && g({ inst: x }), h(function() {
1063
- a(x) && g({ inst: x });
1064
- });
1065
- },
1066
- [h]
1067
- ), r(y), y;
1068
- }
1069
- function a(h) {
1070
- var d = h.getSnapshot;
1071
- h = h.value;
1072
- try {
1073
- var y = d();
1074
- return !t(h, y);
1075
- } catch {
1076
- return !0;
1077
- }
1078
- }
1079
- function c(h, d) {
1080
- return d();
1081
- }
1082
- var v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? c : s;
1083
- return we.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : v, we;
1084
- }
1085
- var Ce = {};
1086
- /**
1087
- * @license React
1088
- * use-sync-external-store-shim.development.js
1089
- *
1090
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1091
- *
1092
- * This source code is licensed under the MIT license found in the
1093
- * LICENSE file in the root directory of this source tree.
1094
- */
1095
- var nt;
1096
- function xi() {
1097
- return nt || (nt = 1, process.env.NODE_ENV !== "production" && function() {
1098
- function n(y, b) {
1099
- return y === b && (y !== 0 || 1 / y === 1 / b) || y !== y && b !== b;
1100
- }
1101
- function e(y, b) {
1102
- v || i.startTransition === void 0 || (v = !0, console.error(
1103
- "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."
1104
- ));
1105
- var x = b();
1106
- if (!h) {
1107
- var g = b();
1108
- o(x, g) || (console.error(
1109
- "The result of getSnapshot should be cached to avoid an infinite loop"
1110
- ), h = !0);
1111
- }
1112
- g = r({
1113
- inst: { value: x, getSnapshot: b }
1114
- });
1115
- var $ = g[0].inst, S = g[1];
1116
- return a(
1117
- function() {
1118
- $.value = x, $.getSnapshot = b, t($) && S({ inst: $ });
1119
- },
1120
- [y, x, b]
1121
- ), s(
1122
- function() {
1123
- return t($) && S({ inst: $ }), y(function() {
1124
- t($) && S({ inst: $ });
1125
- });
1126
- },
1127
- [y]
1128
- ), c(x), x;
1129
- }
1130
- function t(y) {
1131
- var b = y.getSnapshot;
1132
- y = y.value;
1133
- try {
1134
- var x = b();
1135
- return !o(y, x);
1136
- } catch {
1137
- return !0;
1138
- }
1139
- }
1140
- function l(y, b) {
1141
- return b();
1142
- }
1143
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1144
- var i = m, o = typeof Object.is == "function" ? Object.is : n, r = i.useState, s = i.useEffect, a = i.useLayoutEffect, c = i.useDebugValue, v = !1, h = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : e;
1145
- Ce.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1146
- }()), Ce;
1147
- }
1148
- var ot;
1149
- function Si() {
1150
- return ot || (ot = 1, process.env.NODE_ENV === "production" ? ue.exports = mi() : ue.exports = xi()), ue.exports;
1151
- }
1152
- var Ki = /* @__PURE__ */ Si();
1153
- class Ne {
1154
- get childNodes() {
1155
- throw new Error("childNodes is not supported");
1156
- }
1157
- clone() {
1158
- let e = new Ne(this.type, this.key);
1159
- 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;
1160
- }
1161
- constructor(e, t) {
1162
- 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;
1163
- }
1164
- }
1165
- class ze {
1166
- get size() {
1167
- return this.keyMap.size;
1168
- }
1169
- getKeys() {
1170
- return this.keyMap.keys();
1171
- }
1172
- *[Symbol.iterator]() {
1173
- let e = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
1174
- for (; e; )
1175
- yield e, e = e.nextKey != null ? this.keyMap.get(e.nextKey) : void 0;
1176
- }
1177
- getChildren(e) {
1178
- let t = this.keyMap;
1179
- return {
1180
- *[Symbol.iterator]() {
1181
- let l = t.get(e), i = (l == null ? void 0 : l.firstChildKey) != null ? t.get(l.firstChildKey) : null;
1182
- for (; i; )
1183
- yield i, i = i.nextKey != null ? t.get(i.nextKey) : void 0;
1184
- }
1185
- };
1186
- }
1187
- getKeyBefore(e) {
1188
- let t = this.keyMap.get(e);
1189
- if (!t) return null;
1190
- if (t.prevKey != null) {
1191
- for (t = this.keyMap.get(t.prevKey); t && t.type !== "item" && t.lastChildKey != null; ) t = this.keyMap.get(t.lastChildKey);
1192
- var l;
1193
- return (l = t == null ? void 0 : t.key) !== null && l !== void 0 ? l : null;
1194
- }
1195
- return t.parentKey;
1196
- }
1197
- getKeyAfter(e) {
1198
- let t = this.keyMap.get(e);
1199
- if (!t) return null;
1200
- if (t.type !== "item" && t.firstChildKey != null) return t.firstChildKey;
1201
- for (; t; ) {
1202
- if (t.nextKey != null) return t.nextKey;
1203
- if (t.parentKey != null) t = this.keyMap.get(t.parentKey);
1204
- else return null;
1205
- }
1206
- return null;
1207
- }
1208
- getFirstKey() {
1209
- return this.firstKey;
1210
- }
1211
- getLastKey() {
1212
- let e = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
1213
- for (; (e == null ? void 0 : e.lastChildKey) != null; ) e = this.keyMap.get(e.lastChildKey);
1214
- var t;
1215
- return (t = e == null ? void 0 : e.key) !== null && t !== void 0 ? t : null;
1216
- }
1217
- getItem(e) {
1218
- var t;
1219
- return (t = this.keyMap.get(e)) !== null && t !== void 0 ? t : null;
1220
- }
1221
- at() {
1222
- throw new Error("Not implemented");
1223
- }
1224
- clone() {
1225
- let e = this.constructor, t = new e();
1226
- return t.keyMap = new Map(this.keyMap), t.firstKey = this.firstKey, t.lastKey = this.lastKey, t;
1227
- }
1228
- addNode(e) {
1229
- if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
1230
- this.keyMap.set(e.key, e);
1231
- }
1232
- removeNode(e) {
1233
- if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
1234
- this.keyMap.delete(e);
1235
- }
1236
- commit(e, t, l = !1) {
1237
- if (this.frozen) throw new Error("Cannot commit a frozen collection");
1238
- this.firstKey = e, this.lastKey = t, this.frozen = !l;
1239
- }
1240
- // TODO: this is pretty specific to menu, will need to check if it is generic enough
1241
- // Will need to handle varying levels I assume but will revisit after I get searchable menu working for base menu
1242
- // TODO: an alternative is to simply walk the collection and add all item nodes that match the filter and any sections/separators we encounter
1243
- // to an array, then walk that new array and fix all the next/Prev keys while adding them to the new collection
1244
- UNSTABLE_filter(e) {
1245
- let t = new ze(), l = null;
1246
- for (let i of this)
1247
- if (i.type === "section" && i.hasChildNodes) {
1248
- let o = i.clone(), r = null;
1249
- for (let s of this.getChildren(i.key)) if (rt(s, e, this, t)) {
1250
- let a = s.clone();
1251
- r == null && (o.firstChildKey = a.key), t.firstKey == null && (t.firstKey = o.key), r && r.parentKey === a.parentKey ? (r.nextKey = a.key, a.prevKey = r.key) : a.prevKey = null, a.nextKey = null, t.addNode(a), r = a;
1252
- }
1253
- r && (r.type !== "header" ? (o.lastChildKey = r.key, l == null ? o.prevKey = null : (l.type === "section" || l.type === "separator") && (l.nextKey = o.key, o.prevKey = l.key), o.nextKey = null, l = o, t.addNode(o)) : (t.firstKey === o.key && (t.firstKey = null), t.removeNode(r.key)));
1254
- } else if (i.type === "separator") {
1255
- let o = i.clone();
1256
- o.nextKey = null, (l == null ? void 0 : l.type) === "section" && (l.nextKey = o.key, o.prevKey = l.key, l = o, t.addNode(o));
1257
- } else {
1258
- let o = i.clone();
1259
- rt(o, e, this, t) && (t.firstKey == null && (t.firstKey = o.key), l != null && l.type !== "section" && l.type !== "separator" && l.parentKey === o.parentKey ? (l.nextKey = o.key, o.prevKey = l.key) : o.prevKey = null, o.nextKey = null, t.addNode(o), l = o);
1260
- }
1261
- if ((l == null ? void 0 : l.type) === "separator" && l.nextKey === null) {
1262
- let i;
1263
- l.prevKey != null && (i = t.getItem(l.prevKey), i.nextKey = null), t.removeNode(l.key), l = i;
1264
- }
1265
- return t.lastKey = (l == null ? void 0 : l.key) || null, t;
1266
- }
1267
- constructor() {
1268
- this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1;
1269
- }
1270
- }
1271
- function rt(n, e, t, l) {
1272
- if (n.type === "subdialogtrigger" || n.type === "submenutrigger") {
1273
- let i = [
1274
- ...t.getChildren(n.key)
1275
- ][0];
1276
- if (i && e(i.textValue)) {
1277
- let o = i.clone();
1278
- return l.addNode(o), !0;
1279
- } else return !1;
1280
- } else return n.type === "header" ? !0 : e(n.textValue);
1281
- }
1282
- class It {
1283
- *[Symbol.iterator]() {
1284
- let e = this.firstChild;
1285
- for (; e; )
1286
- yield e, e = e.nextSibling;
1287
- }
1288
- get firstChild() {
1289
- return this._firstChild;
1290
- }
1291
- set firstChild(e) {
1292
- this._firstChild = e, this.ownerDocument.markDirty(this);
1293
- }
1294
- get lastChild() {
1295
- return this._lastChild;
1296
- }
1297
- set lastChild(e) {
1298
- this._lastChild = e, this.ownerDocument.markDirty(this);
1299
- }
1300
- get previousSibling() {
1301
- return this._previousSibling;
1302
- }
1303
- set previousSibling(e) {
1304
- this._previousSibling = e, this.ownerDocument.markDirty(this);
1305
- }
1306
- get nextSibling() {
1307
- return this._nextSibling;
1308
- }
1309
- set nextSibling(e) {
1310
- this._nextSibling = e, this.ownerDocument.markDirty(this);
1311
- }
1312
- get parentNode() {
1313
- return this._parentNode;
1314
- }
1315
- set parentNode(e) {
1316
- this._parentNode = e, this.ownerDocument.markDirty(this);
1317
- }
1318
- get isConnected() {
1319
- var e;
1320
- return ((e = this.parentNode) === null || e === void 0 ? void 0 : e.isConnected) || !1;
1321
- }
1322
- invalidateChildIndices(e) {
1323
- (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || e.index < this._minInvalidChildIndex.index) && (this._minInvalidChildIndex = e, this.ownerDocument.markDirty(this));
1324
- }
1325
- updateChildIndices() {
1326
- let e = this._minInvalidChildIndex;
1327
- for (; e; )
1328
- e.index = e.previousSibling ? e.previousSibling.index + 1 : 0, e = e.nextSibling;
1329
- this._minInvalidChildIndex = null;
1330
- }
1331
- appendChild(e) {
1332
- 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();
1333
- }
1334
- insertBefore(e, t) {
1335
- if (t == null) return this.appendChild(e);
1336
- 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();
1337
- }
1338
- removeChild(e) {
1339
- 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());
1340
- }
1341
- addEventListener() {
1342
- }
1343
- removeEventListener() {
1344
- }
1345
- get previousVisibleSibling() {
1346
- let e = this.previousSibling;
1347
- for (; e && e.isHidden; ) e = e.previousSibling;
1348
- return e;
1349
- }
1350
- get nextVisibleSibling() {
1351
- let e = this.nextSibling;
1352
- for (; e && e.isHidden; ) e = e.nextSibling;
1353
- return e;
1354
- }
1355
- get firstVisibleChild() {
1356
- let e = this.firstChild;
1357
- for (; e && e.isHidden; ) e = e.nextSibling;
1358
- return e;
1359
- }
1360
- get lastVisibleChild() {
1361
- let e = this.lastChild;
1362
- for (; e && e.isHidden; ) e = e.previousSibling;
1363
- return e;
1364
- }
1365
- constructor(e) {
1366
- this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
1367
- }
1368
- }
1369
- class le extends It {
1370
- get index() {
1371
- return this._index;
1372
- }
1373
- set index(e) {
1374
- this._index = e, this.ownerDocument.markDirty(this);
1375
- }
1376
- get level() {
1377
- return this.parentNode instanceof le ? this.parentNode.level + (this.node.type === "item" ? 1 : 0) : 0;
1378
- }
1379
- /**
1380
- * Lazily gets a mutable instance of a Node. If the node has already
1381
- * been cloned during this update cycle, it just returns the existing one.
1382
- */
1383
- getMutableNode() {
1384
- return this.isMutated || (this.node = this.node.clone(), this.isMutated = !0), this.ownerDocument.markDirty(this), this.node;
1385
- }
1386
- updateNode() {
1387
- var e, t, l;
1388
- let i = this.nextVisibleSibling, o = this.getMutableNode();
1389
- o.index = this.index, o.level = this.level, o.parentKey = this.parentNode instanceof le ? this.parentNode.node.key : null;
1390
- var r;
1391
- o.prevKey = (r = (e = this.previousVisibleSibling) === null || e === void 0 ? void 0 : e.node.key) !== null && r !== void 0 ? r : null;
1392
- var s;
1393
- o.nextKey = (s = i == null ? void 0 : i.node.key) !== null && s !== void 0 ? s : null, o.hasChildNodes = !!this.firstChild;
1394
- var a;
1395
- o.firstChildKey = (a = (t = this.firstVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && a !== void 0 ? a : null;
1396
- var c;
1397
- if (o.lastChildKey = (c = (l = this.lastVisibleChild) === null || l === void 0 ? void 0 : l.node.key) !== null && c !== void 0 ? c : null, (o.colSpan != null || o.colIndex != null) && i) {
1398
- var v, h;
1399
- let d = ((v = o.colIndex) !== null && v !== void 0 ? v : o.index) + ((h = o.colSpan) !== null && h !== void 0 ? h : 1);
1400
- if (d !== i.node.colIndex) {
1401
- let y = i.getMutableNode();
1402
- y.colIndex = d;
1403
- }
1404
- }
1405
- }
1406
- setProps(e, t, l, i) {
1407
- let o = this.getMutableNode(), { value: r, textValue: s, id: a, ...c } = e;
1408
- if (c.ref = t, o.props = c, o.rendered = l, o.render = i, o.value = r, o.textValue = s || (typeof c.children == "string" ? c.children : "") || e["aria-label"] || "", a != null && a !== o.key) {
1409
- if (this.hasSetProps) throw new Error("Cannot change the id of an item");
1410
- o.key = a;
1411
- }
1412
- c.colSpan != null && (o.colSpan = c.colSpan), this.hasSetProps = !0, this.isConnected && this.ownerDocument.queueUpdate();
1413
- }
1414
- get style() {
1415
- let e = this;
1416
- return {
1417
- get display() {
1418
- return e.isHidden ? "none" : "";
1419
- },
1420
- set display(t) {
1421
- let l = t === "none";
1422
- if (e.isHidden !== l) {
1423
- var i, o;
1424
- (((i = e.parentNode) === null || i === void 0 ? void 0 : i.firstVisibleChild) === e || ((o = e.parentNode) === null || o === void 0 ? void 0 : o.lastVisibleChild) === e) && e.ownerDocument.markDirty(e.parentNode);
1425
- let r = e.previousVisibleSibling, s = e.nextVisibleSibling;
1426
- r && e.ownerDocument.markDirty(r), s && e.ownerDocument.markDirty(s), e.isHidden = l, e.ownerDocument.markDirty(e);
1427
- }
1428
- }
1429
- };
1430
- }
1431
- hasAttribute() {
1432
- }
1433
- setAttribute() {
1434
- }
1435
- setAttributeNS() {
1436
- }
1437
- removeAttribute() {
1438
- }
1439
- constructor(e, t) {
1440
- super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.hasSetProps = !1, this.isHidden = !1, this.node = new Ne(e, `react-aria-${++t.nodeId}`);
1441
- }
1442
- }
1443
- class Di extends It {
1444
- get isConnected() {
1445
- return this.isMounted;
1446
- }
1447
- createElement(e) {
1448
- return new le(e, this);
1449
- }
1450
- getMutableCollection() {
1451
- return this.nextCollection || (this.nextCollection = this.collection.clone()), this.nextCollection;
1452
- }
1453
- markDirty(e) {
1454
- this.dirtyNodes.add(e);
1455
- }
1456
- addNode(e) {
1457
- if (e.isHidden) return;
1458
- let t = this.getMutableCollection();
1459
- if (!t.getItem(e.node.key)) for (let l of e) this.addNode(l);
1460
- t.addNode(e.node);
1461
- }
1462
- removeNode(e) {
1463
- for (let l of e) this.removeNode(l);
1464
- this.getMutableCollection().removeNode(e.node.key);
1465
- }
1466
- /** Finalizes the collection update, updating all nodes and freezing the collection. */
1467
- getCollection() {
1468
- return this.inSubscription ? this.collection.clone() : (this.queuedRender = !1, this.updateCollection(), this.collection);
1469
- }
1470
- updateCollection() {
1471
- for (let o of this.dirtyNodes) o instanceof le && (!o.isConnected || o.isHidden) ? this.removeNode(o) : o.updateChildIndices();
1472
- for (let o of this.dirtyNodes) o instanceof le && (o.isConnected && !o.isHidden && (o.updateNode(), this.addNode(o)), o.isMutated = !1);
1473
- if (this.dirtyNodes.clear(), this.nextCollection) {
1474
- var e, t, l, i;
1475
- this.nextCollection.commit((l = (e = this.firstVisibleChild) === null || e === void 0 ? void 0 : e.node.key) !== null && l !== void 0 ? l : null, (i = (t = this.lastVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && i !== void 0 ? i : null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null);
1476
- }
1477
- }
1478
- queueUpdate() {
1479
- if (!(this.dirtyNodes.size === 0 || this.queuedRender)) {
1480
- this.queuedRender = !0, this.inSubscription = !0;
1481
- for (let e of this.subscriptions) e();
1482
- this.inSubscription = !1;
1483
- }
1484
- }
1485
- subscribe(e) {
1486
- return this.subscriptions.add(e), () => this.subscriptions.delete(e);
1487
- }
1488
- resetAfterSSR() {
1489
- this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0);
1490
- }
1491
- constructor(e) {
1492
- 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;
1493
- }
1494
- }
1495
- function Ft(n) {
1496
- let { children: e, items: t, idScope: l, addIdAndValue: i, dependencies: o = [] } = n, r = T(() => /* @__PURE__ */ new WeakMap(), o);
1497
- return T(() => {
1498
- if (t && typeof e == "function") {
1499
- let c = [];
1500
- for (let v of t) {
1501
- let h = r.get(v);
1502
- if (!h) {
1503
- h = e(v);
1504
- var s, a;
1505
- let d = (a = (s = h.props.id) !== null && s !== void 0 ? s : v.key) !== null && a !== void 0 ? a : v.id;
1506
- if (d == null) throw new Error("Could not determine key for item");
1507
- l && (d = l + ":" + d), h = ct(h, i ? {
1508
- key: d,
1509
- id: d,
1510
- value: v
1511
- } : {
1512
- key: d
1513
- }), r.set(v, h);
1514
- }
1515
- c.push(h);
1516
- }
1517
- return c;
1518
- } else if (typeof e != "function") return e;
1519
- }, [
1520
- e,
1521
- t,
1522
- r,
1523
- l,
1524
- i
1525
- ]);
1526
- }
1527
- const Mt = /* @__PURE__ */ O(!1), ie = /* @__PURE__ */ O(null);
1528
- function wi(n) {
1529
- if (R(ie))
1530
- return n.content;
1531
- let { collection: t, document: l } = ki(n.createCollection);
1532
- return /* @__PURE__ */ m.createElement(m.Fragment, null, /* @__PURE__ */ m.createElement(Pl, null, /* @__PURE__ */ m.createElement(ie.Provider, {
1533
- value: l
1534
- }, n.content)), /* @__PURE__ */ m.createElement(Ci, {
1535
- render: n.children,
1536
- collection: t
1537
- }));
1538
- }
1539
- function Ci({ collection: n, render: e }) {
1540
- return e(n);
1541
- }
1542
- function Ei(n, e, t) {
1543
- let l = yt(), i = P(l);
1544
- i.current = l;
1545
- let o = J(() => i.current ? t() : e(), [
1546
- e,
1547
- t
1548
- ]);
1549
- return Ki.useSyncExternalStore(n, o);
1550
- }
1551
- const Pi = typeof m.useSyncExternalStore == "function" ? m.useSyncExternalStore : Ei;
1552
- function ki(n) {
1553
- let [e] = te(() => new Di((n == null ? void 0 : n()) || new ze())), t = J((r) => e.subscribe(r), [
1554
- e
1555
- ]), l = J(() => {
1556
- let r = e.getCollection();
1557
- return e.isSSR && e.resetAfterSSR(), r;
1558
- }, [
1559
- e
1560
- ]), i = J(() => (e.isSSR = !0, e.getCollection()), [
1561
- e
1562
- ]), o = Pi(t, l, i);
1563
- return Ee(() => (e.isMounted = !0, () => {
1564
- e.isMounted = !1;
1565
- }), [
1566
- e
1567
- ]), {
1568
- collection: o,
1569
- document: e
1570
- };
1571
- }
1572
- const Re = /* @__PURE__ */ O(null);
1573
- function Tt(n, e, t, l, i, o) {
1574
- let r = J((a) => {
1575
- a == null || a.setProps(e, t, l, o);
1576
- }, [
1577
- e,
1578
- t,
1579
- l,
1580
- o
1581
- ]), s = R(Re);
1582
- if (s) {
1583
- let a = s.ownerDocument.nodesByProps.get(e);
1584
- return a || (a = s.ownerDocument.createElement(n), a.setProps(e, t, l, o), s.appendChild(a), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(e, a)), i ? /* @__PURE__ */ m.createElement(Re.Provider, {
1585
- value: a
1586
- }, i) : null;
1587
- }
1588
- return /* @__PURE__ */ m.createElement(n, {
1589
- ref: r
1590
- }, i);
1591
- }
1592
- function Lt(n, e) {
1593
- let t = ({ node: i }) => e(i.props, i.props.ref, i), l = ne((i, o) => {
1594
- let r = R(We);
1595
- if (!R(Mt)) {
1596
- if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
1597
- return e(i, o);
1598
- }
1599
- return Tt(n, i, o, "children" in i ? i.children : null, null, (a) => (
1600
- // Forward FocusableContext to real DOM tree so tooltips work.
1601
- /* @__PURE__ */ m.createElement(We.Provider, {
1602
- value: r
1603
- }, /* @__PURE__ */ m.createElement(t, {
1604
- node: a
1605
- }))
1606
- ));
1607
- });
1608
- return l.displayName = e.name, l;
1609
- }
1610
- function Ii(n, e, t = At) {
1611
- let l = ({ node: o }) => e(o.props, o.props.ref, o), i = ne((o, r) => {
1612
- let s = t(o);
1613
- var a;
1614
- return (a = Tt(n, o, r, null, s, (c) => /* @__PURE__ */ m.createElement(l, {
1615
- node: c
1616
- }))) !== null && a !== void 0 ? a : /* @__PURE__ */ m.createElement(m.Fragment, null);
1617
- });
1618
- return i.displayName = e.name, i;
1619
- }
1620
- function At(n) {
1621
- return Ft({
1622
- ...n,
1623
- addIdAndValue: !0
1624
- });
1625
- }
1626
- const st = /* @__PURE__ */ O(null);
1627
- function Fi(n) {
1628
- let e = R(st), t = ((e == null ? void 0 : e.dependencies) || []).concat(n.dependencies), l = n.idScope || (e == null ? void 0 : e.idScope), i = At({
1629
- ...n,
1630
- idScope: l,
1631
- dependencies: t
1632
- });
1633
- return R(ie) && (i = /* @__PURE__ */ m.createElement(Mi, null, i)), e = T(() => ({
1634
- dependencies: t,
1635
- idScope: l
1636
- }), [
1637
- l,
1638
- ...t
1639
- ]), /* @__PURE__ */ m.createElement(st.Provider, {
1640
- value: e
1641
- }, i);
1642
- }
1643
- function Mi({ children: n }) {
1644
- let e = R(ie), t = T(() => /* @__PURE__ */ m.createElement(ie.Provider, {
1645
- value: null
1646
- }, /* @__PURE__ */ m.createElement(Mt.Provider, {
1647
- value: !0
1648
- }, n)), [
1649
- n
1650
- ]);
1651
- return yt() ? /* @__PURE__ */ m.createElement(Re.Provider, {
1652
- value: e
1653
- }, t) : /* @__PURE__ */ Fl(t, e);
1654
- }
1655
- class at {
1656
- *[Symbol.iterator]() {
1657
- yield* this.iterable;
1658
- }
1659
- get size() {
1660
- return this.keyMap.size;
1661
- }
1662
- getKeys() {
1663
- return this.keyMap.keys();
1664
- }
1665
- getKeyBefore(e) {
1666
- let t = this.keyMap.get(e);
1667
- var l;
1668
- return t && (l = t.prevKey) !== null && l !== void 0 ? l : null;
1669
- }
1670
- getKeyAfter(e) {
1671
- let t = this.keyMap.get(e);
1672
- var l;
1673
- return t && (l = t.nextKey) !== null && l !== void 0 ? l : null;
1674
- }
1675
- getFirstKey() {
1676
- return this.firstKey;
1677
- }
1678
- getLastKey() {
1679
- return this.lastKey;
1680
- }
1681
- getItem(e) {
1682
- var t;
1683
- return (t = this.keyMap.get(e)) !== null && t !== void 0 ? t : null;
1684
- }
1685
- at(e) {
1686
- const t = [
1687
- ...this.getKeys()
1688
- ];
1689
- return this.getItem(t[e]);
1690
- }
1691
- getChildren(e) {
1692
- let t = this.keyMap.get(e);
1693
- return (t == null ? void 0 : t.childNodes) || [];
1694
- }
1695
- constructor(e) {
1696
- this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.iterable = e;
1697
- let t = (r) => {
1698
- if (this.keyMap.set(r.key, r), r.childNodes && r.type === "section") for (let s of r.childNodes) t(s);
1699
- };
1700
- for (let r of e) t(r);
1701
- let l = null, i = 0;
1702
- for (let [r, s] of this.keyMap)
1703
- l ? (l.nextKey = r, s.prevKey = l.key) : (this.firstKey = r, s.prevKey = void 0), s.type === "item" && (s.index = i++), l = s, l.nextKey = void 0;
1704
- var o;
1705
- this.lastKey = (o = l == null ? void 0 : l.key) !== null && o !== void 0 ? o : null;
1706
- }
1707
- }
1708
- class j extends Set {
1709
- constructor(e, t, l) {
1710
- super(e), e instanceof j ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = l ?? null);
1711
- }
1712
- }
1713
- function Ti(n, e) {
1714
- if (n.size !== e.size) return !1;
1715
- for (let t of n)
1716
- if (!e.has(t)) return !1;
1717
- return !0;
1718
- }
1719
- function Li(n) {
1720
- let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = n, r = P(!1), [, s] = te(!1), a = P(null), c = P(null), [, v] = te(null), h = T(() => ut(n.selectedKeys), [
1721
- n.selectedKeys
1722
- ]), d = T(() => ut(n.defaultSelectedKeys, new j()), [
1723
- n.defaultSelectedKeys
1724
- ]), [y, b] = $t(h, d, n.onSelectionChange), x = T(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
1725
- n.disabledKeys
1726
- ]), [g, $] = te(i);
1727
- i === "replace" && g === "toggle" && typeof y == "object" && y.size === 0 && $("replace");
1728
- let S = P(i);
1729
- return Y(() => {
1730
- i !== S.current && ($(i), S.current = i);
1731
- }, [
1732
- i
1733
- ]), {
1734
- selectionMode: e,
1735
- disallowEmptySelection: t,
1736
- selectionBehavior: g,
1737
- setSelectionBehavior: $,
1738
- get isFocused() {
1739
- return r.current;
1740
- },
1741
- setFocused(w) {
1742
- r.current = w, s(w);
1743
- },
1744
- get focusedKey() {
1745
- return a.current;
1746
- },
1747
- get childFocusStrategy() {
1748
- return c.current;
1749
- },
1750
- setFocusedKey(w, k = "first") {
1751
- a.current = w, c.current = k, v(w);
1752
- },
1753
- selectedKeys: y,
1754
- setSelectedKeys(w) {
1755
- (l || !Ti(w, y)) && b(w);
1756
- },
1757
- disabledKeys: x,
1758
- disabledBehavior: o
1759
- };
1760
- }
1761
- function ut(n, e) {
1762
- return n ? n === "all" ? "all" : new j(n) : e;
1763
- }
1764
- class Ue {
1765
- /**
1766
- * The type of selection that is allowed in the collection.
1767
- */
1768
- get selectionMode() {
1769
- return this.state.selectionMode;
1770
- }
1771
- /**
1772
- * Whether the collection allows empty selection.
1773
- */
1774
- get disallowEmptySelection() {
1775
- return this.state.disallowEmptySelection;
1776
- }
1777
- /**
1778
- * The selection behavior for the collection.
1779
- */
1780
- get selectionBehavior() {
1781
- return this.state.selectionBehavior;
1782
- }
1783
- /**
1784
- * Sets the selection behavior for the collection.
1785
- */
1786
- setSelectionBehavior(e) {
1787
- this.state.setSelectionBehavior(e);
1788
- }
1789
- /**
1790
- * Whether the collection is currently focused.
1791
- */
1792
- get isFocused() {
1793
- return this.state.isFocused;
1794
- }
1795
- /**
1796
- * Sets whether the collection is focused.
1797
- */
1798
- setFocused(e) {
1799
- this.state.setFocused(e);
1800
- }
1801
- /**
1802
- * The current focused key in the collection.
1803
- */
1804
- get focusedKey() {
1805
- return this.state.focusedKey;
1806
- }
1807
- /** Whether the first or last child of the focused key should receive focus. */
1808
- get childFocusStrategy() {
1809
- return this.state.childFocusStrategy;
1810
- }
1811
- /**
1812
- * Sets the focused key.
1813
- */
1814
- setFocusedKey(e, t) {
1815
- (e == null || this.collection.getItem(e)) && this.state.setFocusedKey(e, t);
1816
- }
1817
- /**
1818
- * The currently selected keys in the collection.
1819
- */
1820
- get selectedKeys() {
1821
- return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
1822
- }
1823
- /**
1824
- * The raw selection value for the collection.
1825
- * Either 'all' for select all, or a set of keys.
1826
- */
1827
- get rawSelection() {
1828
- return this.state.selectedKeys;
1829
- }
1830
- /**
1831
- * Returns whether a key is selected.
1832
- */
1833
- isSelected(e) {
1834
- if (this.state.selectionMode === "none") return !1;
1835
- let t = this.getKey(e);
1836
- return t == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(t) : this.state.selectedKeys.has(t);
1837
- }
1838
- /**
1839
- * Whether the selection is empty.
1840
- */
1841
- get isEmpty() {
1842
- return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
1843
- }
1844
- /**
1845
- * Whether all items in the collection are selected.
1846
- */
1847
- get isSelectAll() {
1848
- if (this.isEmpty) return !1;
1849
- if (this.state.selectedKeys === "all") return !0;
1850
- if (this._isSelectAll != null) return this._isSelectAll;
1851
- let e = this.getSelectAllKeys(), t = this.state.selectedKeys;
1852
- return this._isSelectAll = e.every((l) => t.has(l)), this._isSelectAll;
1853
- }
1854
- get firstSelectedKey() {
1855
- let e = null;
1856
- for (let l of this.state.selectedKeys) {
1857
- let i = this.collection.getItem(l);
1858
- (!e || i && De(this.collection, i, e) < 0) && (e = i);
1859
- }
1860
- var t;
1861
- return (t = e == null ? void 0 : e.key) !== null && t !== void 0 ? t : null;
1862
- }
1863
- get lastSelectedKey() {
1864
- let e = null;
1865
- for (let l of this.state.selectedKeys) {
1866
- let i = this.collection.getItem(l);
1867
- (!e || i && De(this.collection, i, e) > 0) && (e = i);
1868
- }
1869
- var t;
1870
- return (t = e == null ? void 0 : e.key) !== null && t !== void 0 ? t : null;
1871
- }
1872
- get disabledKeys() {
1873
- return this.state.disabledKeys;
1874
- }
1875
- get disabledBehavior() {
1876
- return this.state.disabledBehavior;
1877
- }
1878
- /**
1879
- * Extends the selection to the given key.
1880
- */
1881
- extendSelection(e) {
1882
- if (this.selectionMode === "none") return;
1883
- if (this.selectionMode === "single") {
1884
- this.replaceSelection(e);
1885
- return;
1886
- }
1887
- let t = this.getKey(e);
1888
- if (t == null) return;
1889
- let l;
1890
- if (this.state.selectedKeys === "all") l = new j([
1891
- t
1892
- ], t, t);
1893
- else {
1894
- let r = this.state.selectedKeys;
1895
- var i;
1896
- let s = (i = r.anchorKey) !== null && i !== void 0 ? i : t;
1897
- l = new j(r, s, t);
1898
- var o;
1899
- for (let a of this.getKeyRange(s, (o = r.currentKey) !== null && o !== void 0 ? o : t)) l.delete(a);
1900
- for (let a of this.getKeyRange(t, s)) this.canSelectItem(a) && l.add(a);
1901
- }
1902
- this.state.setSelectedKeys(l);
1903
- }
1904
- getKeyRange(e, t) {
1905
- let l = this.collection.getItem(e), i = this.collection.getItem(t);
1906
- return l && i ? De(this.collection, l, i) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
1907
- }
1908
- getKeyRangeInternal(e, t) {
1909
- var l;
1910
- if (!((l = this.layoutDelegate) === null || l === void 0) && l.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
1911
- let i = [], o = e;
1912
- for (; o != null; ) {
1913
- let r = this.collection.getItem(o);
1914
- if (r && (r.type === "item" || r.type === "cell" && this.allowsCellSelection) && i.push(o), o === t) return i;
1915
- o = this.collection.getKeyAfter(o);
1916
- }
1917
- return [];
1918
- }
1919
- getKey(e) {
1920
- let t = this.collection.getItem(e);
1921
- if (!t || t.type === "cell" && this.allowsCellSelection) return e;
1922
- for (; t && t.type !== "item" && t.parentKey != null; ) t = this.collection.getItem(t.parentKey);
1923
- return !t || t.type !== "item" ? null : t.key;
1924
- }
1925
- /**
1926
- * Toggles whether the given key is selected.
1927
- */
1928
- toggleSelection(e) {
1929
- if (this.selectionMode === "none") return;
1930
- if (this.selectionMode === "single" && !this.isSelected(e)) {
1931
- this.replaceSelection(e);
1932
- return;
1933
- }
1934
- let t = this.getKey(e);
1935
- if (t == null) return;
1936
- let l = new j(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
1937
- 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);
1938
- }
1939
- /**
1940
- * Replaces the selection with only the given key.
1941
- */
1942
- replaceSelection(e) {
1943
- if (this.selectionMode === "none") return;
1944
- let t = this.getKey(e);
1945
- if (t == null) return;
1946
- let l = this.canSelectItem(t) ? new j([
1947
- t
1948
- ], t, t) : new j();
1949
- this.state.setSelectedKeys(l);
1950
- }
1951
- /**
1952
- * Replaces the selection with the given keys.
1953
- */
1954
- setSelectedKeys(e) {
1955
- if (this.selectionMode === "none") return;
1956
- let t = new j();
1957
- for (let l of e) {
1958
- let i = this.getKey(l);
1959
- if (i != null && (t.add(i), this.selectionMode === "single"))
1960
- break;
1961
- }
1962
- this.state.setSelectedKeys(t);
1963
- }
1964
- getSelectAllKeys() {
1965
- let e = [], t = (l) => {
1966
- for (; l != null; ) {
1967
- if (this.canSelectItem(l)) {
1968
- var i;
1969
- let r = this.collection.getItem(l);
1970
- (r == null ? void 0 : r.type) === "item" && e.push(l);
1971
- var o;
1972
- r != null && r.hasChildNodes && (this.allowsCellSelection || r.type !== "item") && t((o = (i = vi(kt(r, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && o !== void 0 ? o : null);
1973
- }
1974
- l = this.collection.getKeyAfter(l);
1975
- }
1976
- };
1977
- return t(this.collection.getFirstKey()), e;
1978
- }
1979
- /**
1980
- * Selects all items in the collection.
1981
- */
1982
- selectAll() {
1983
- !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
1984
- }
1985
- /**
1986
- * Removes all keys from the selection.
1987
- */
1988
- clearSelection() {
1989
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new j());
1990
- }
1991
- /**
1992
- * Toggles between select all and an empty selection.
1993
- */
1994
- toggleSelectAll() {
1995
- this.isSelectAll ? this.clearSelection() : this.selectAll();
1996
- }
1997
- select(e, t) {
1998
- 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));
1999
- }
2000
- /**
2001
- * Returns whether the current selection is equal to the given selection.
2002
- */
2003
- isSelectionEqual(e) {
2004
- if (e === this.state.selectedKeys) return !0;
2005
- let t = this.selectedKeys;
2006
- if (e.size !== t.size) return !1;
2007
- for (let l of e)
2008
- if (!t.has(l)) return !1;
2009
- for (let l of t)
2010
- if (!e.has(l)) return !1;
2011
- return !0;
2012
- }
2013
- canSelectItem(e) {
2014
- var t;
2015
- if (this.state.selectionMode === "none" || this.state.disabledKeys.has(e)) return !1;
2016
- let l = this.collection.getItem(e);
2017
- return !(!l || !(l == null || (t = l.props) === null || t === void 0) && t.isDisabled || l.type === "cell" && !this.allowsCellSelection);
2018
- }
2019
- isDisabled(e) {
2020
- var t, l;
2021
- 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));
2022
- }
2023
- isLink(e) {
2024
- var t, l;
2025
- return !!(!((l = this.collection.getItem(e)) === null || l === void 0 || (t = l.props) === null || t === void 0) && t.href);
2026
- }
2027
- getItemProps(e) {
2028
- var t;
2029
- return (t = this.collection.getItem(e)) === null || t === void 0 ? void 0 : t.props;
2030
- }
2031
- withCollection(e) {
2032
- return new Ue(e, this.state, {
2033
- allowsCellSelection: this.allowsCellSelection,
2034
- layoutDelegate: this.layoutDelegate || void 0
2035
- });
2036
- }
2037
- constructor(e, t, l) {
2038
- this.collection = e, this.state = t;
2039
- var i;
2040
- this.allowsCellSelection = (i = l == null ? void 0 : l.allowsCellSelection) !== null && i !== void 0 ? i : !1, this._isSelectAll = null, this.layoutDelegate = (l == null ? void 0 : l.layoutDelegate) || null;
2041
- }
2042
- }
2043
- function Ai(n) {
2044
- let { filter: e, layoutDelegate: t } = n, l = Li(n), i = T(() => n.disabledKeys ? new Set(n.disabledKeys) : /* @__PURE__ */ new Set(), [
2045
- n.disabledKeys
2046
- ]), o = J((c) => e ? new at(e(c)) : new at(c), [
2047
- e
2048
- ]), r = T(() => ({
2049
- suppressTextValueWarning: n.suppressTextValueWarning
2050
- }), [
2051
- n.suppressTextValueWarning
2052
- ]), s = pi(n, o, r), a = T(() => new Ue(s, l, {
2053
- layoutDelegate: t
2054
- }), [
2055
- s,
2056
- l,
2057
- t
2058
- ]);
2059
- return Rt(s, a), {
2060
- collection: s,
2061
- disabledKeys: i,
2062
- selectionManager: a
2063
- };
2064
- }
2065
- function Ri(n, e) {
2066
- let t = T(() => e ? n.collection.UNSTABLE_filter(e) : n.collection, [
2067
- n.collection,
2068
- e
2069
- ]), l = n.selectionManager.withCollection(t);
2070
- return Rt(t, l), {
2071
- collection: t,
2072
- selectionManager: l,
2073
- disabledKeys: n.disabledKeys
2074
- };
2075
- }
2076
- function Rt(n, e) {
2077
- const t = P(null);
2078
- Y(() => {
2079
- if (e.focusedKey != null && !n.getItem(e.focusedKey) && t.current) {
2080
- const v = t.current.getItem(e.focusedKey), h = [
2081
- ...t.current.getKeys()
2082
- ].map(($) => {
2083
- const S = t.current.getItem($);
2084
- return (S == null ? void 0 : S.type) === "item" ? S : null;
2085
- }).filter(($) => $ !== null), d = [
2086
- ...n.getKeys()
2087
- ].map(($) => {
2088
- const S = n.getItem($);
2089
- return (S == null ? void 0 : S.type) === "item" ? S : null;
2090
- }).filter(($) => $ !== null);
2091
- var l, i;
2092
- const y = ((l = h == null ? void 0 : h.length) !== null && l !== void 0 ? l : 0) - ((i = d == null ? void 0 : d.length) !== null && i !== void 0 ? i : 0);
2093
- var o, r, s;
2094
- let b = Math.min(y > 1 ? Math.max(((o = v == null ? void 0 : v.index) !== null && o !== void 0 ? o : 0) - y + 1, 0) : (r = v == null ? void 0 : v.index) !== null && r !== void 0 ? r : 0, ((s = d == null ? void 0 : d.length) !== null && s !== void 0 ? s : 0) - 1), x = null, g = !1;
2095
- for (; b >= 0; ) {
2096
- if (!e.isDisabled(d[b].key)) {
2097
- x = d[b];
2098
- break;
2099
- }
2100
- if (b < d.length - 1 && !g) b++;
2101
- else {
2102
- g = !0;
2103
- var a, c;
2104
- b > ((a = v == null ? void 0 : v.index) !== null && a !== void 0 ? a : 0) && (b = (c = v == null ? void 0 : v.index) !== null && c !== void 0 ? c : 0), b--;
2105
- }
2106
- }
2107
- e.setFocusedKey(x ? x.key : null);
2108
- }
2109
- t.current = n;
2110
- }, [
2111
- n,
2112
- e
2113
- ]);
2114
- }
2115
- const Bi = /* @__PURE__ */ O(null), Bt = /* @__PURE__ */ O(null), Bn = /* @__PURE__ */ kl(function(e, t) {
2116
- [e, t] = ce(e, t, Bt);
2117
- let { validationBehavior: l } = ft(Tl) || {};
2118
- var i, o;
2119
- let r = (o = (i = e.validationBehavior) !== null && i !== void 0 ? i : l) !== null && o !== void 0 ? o : "native", s = P(null), [a, c] = ce({}, s, Pe), [v, h] = ht(!e["aria-label"] && !e["aria-labelledby"]), [d, y] = te("input"), { labelProps: b, inputProps: x, descriptionProps: g, errorMessageProps: $, ...S } = Bl({
2120
- ...pt(e),
2121
- inputElementType: d,
2122
- label: h,
2123
- validationBehavior: r
2124
- }, c), w = J((C) => {
2125
- c.current = C, C && y(C instanceof HTMLTextAreaElement ? "textarea" : "input");
2126
- }, [
2127
- c
2128
- ]), k = oe({
2129
- ...e,
2130
- values: {
2131
- isDisabled: e.isDisabled || !1,
2132
- isInvalid: S.isInvalid,
2133
- isReadOnly: e.isReadOnly || !1,
2134
- isRequired: e.isRequired || !1
2135
- },
2136
- defaultClassName: "react-aria-TextField"
2137
- }), F = se(e);
2138
- return delete F.id, /* @__PURE__ */ m.createElement("div", {
2139
- ...F,
2140
- ...k,
2141
- ref: t,
2142
- slot: e.slot || void 0,
2143
- "data-disabled": e.isDisabled || void 0,
2144
- "data-invalid": S.isInvalid || void 0,
2145
- "data-readonly": e.isReadOnly || void 0,
2146
- "data-required": e.isRequired || void 0
2147
- }, /* @__PURE__ */ m.createElement(fe, {
2148
- values: [
2149
- [
2150
- Al,
2151
- {
2152
- ...b,
2153
- ref: v
2154
- }
2155
- ],
2156
- [
2157
- Pe,
2158
- {
2159
- ...W(x, a),
2160
- ref: w
2161
- }
2162
- ],
2163
- [
2164
- Rl,
2165
- {
2166
- ...x,
2167
- ref: w
2168
- }
2169
- ],
2170
- [
2171
- bt,
2172
- {
2173
- slots: {
2174
- description: g,
2175
- errorMessage: $
2176
- }
2177
- }
2178
- ],
2179
- [
2180
- Ll,
2181
- S
2182
- ]
2183
- ]
2184
- }, k.children));
2185
- });
2186
- var Vt = {};
2187
- Vt = {
2188
- collectionLabel: "مقترحات"
2189
- };
2190
- var Ot = {};
2191
- Ot = {
2192
- collectionLabel: "Предложения"
2193
- };
2194
- var Nt = {};
2195
- Nt = {
2196
- collectionLabel: "Návrhy"
2197
- };
2198
- var zt = {};
2199
- zt = {
2200
- collectionLabel: "Forslag"
2201
- };
2202
- var Ut = {};
2203
- Ut = {
2204
- collectionLabel: "Empfehlungen"
2205
- };
2206
- var Ht = {};
2207
- Ht = {
2208
- collectionLabel: "Προτάσεις"
2209
- };
2210
- var qt = {};
2211
- qt = {
2212
- collectionLabel: "Suggestions"
2213
- };
2214
- var Wt = {};
2215
- Wt = {
2216
- collectionLabel: "Sugerencias"
2217
- };
2218
- var _t = {};
2219
- _t = {
2220
- collectionLabel: "Soovitused"
2221
- };
2222
- var Gt = {};
2223
- Gt = {
2224
- collectionLabel: "Ehdotukset"
2225
- };
2226
- var jt = {};
2227
- jt = {
2228
- collectionLabel: "Suggestions"
2229
- };
2230
- var Yt = {};
2231
- Yt = {
2232
- collectionLabel: "הצעות"
2233
- };
2234
- var Jt = {};
2235
- Jt = {
2236
- collectionLabel: "Prijedlozi"
2237
- };
2238
- var Xt = {};
2239
- Xt = {
2240
- collectionLabel: "Javaslatok"
2241
- };
2242
- var Zt = {};
2243
- Zt = {
2244
- collectionLabel: "Suggerimenti"
2245
- };
2246
- var Qt = {};
2247
- Qt = {
2248
- collectionLabel: "候補"
2249
- };
2250
- var el = {};
2251
- el = {
2252
- collectionLabel: "제안"
2253
- };
2254
- var tl = {};
2255
- tl = {
2256
- collectionLabel: "Pasiūlymai"
2257
- };
2258
- var ll = {};
2259
- ll = {
2260
- collectionLabel: "Ieteikumi"
2261
- };
2262
- var il = {};
2263
- il = {
2264
- collectionLabel: "Forslag"
2265
- };
2266
- var nl = {};
2267
- nl = {
2268
- collectionLabel: "Suggesties"
2269
- };
2270
- var ol = {};
2271
- ol = {
2272
- collectionLabel: "Sugestie"
2273
- };
2274
- var rl = {};
2275
- rl = {
2276
- collectionLabel: "Sugestões"
2277
- };
2278
- var sl = {};
2279
- sl = {
2280
- collectionLabel: "Sugestões"
2281
- };
2282
- var al = {};
2283
- al = {
2284
- collectionLabel: "Sugestii"
2285
- };
2286
- var ul = {};
2287
- ul = {
2288
- collectionLabel: "Предложения"
2289
- };
2290
- var dl = {};
2291
- dl = {
2292
- collectionLabel: "Návrhy"
2293
- };
2294
- var cl = {};
2295
- cl = {
2296
- collectionLabel: "Predlogi"
2297
- };
2298
- var fl = {};
2299
- fl = {
2300
- collectionLabel: "Predlozi"
2301
- };
2302
- var hl = {};
2303
- hl = {
2304
- collectionLabel: "Förslag"
2305
- };
2306
- var pl = {};
2307
- pl = {
2308
- collectionLabel: "Öneriler"
2309
- };
2310
- var vl = {};
2311
- vl = {
2312
- collectionLabel: "Пропозиції"
2313
- };
2314
- var yl = {};
2315
- yl = {
2316
- collectionLabel: "建议"
2317
- };
2318
- var bl = {};
2319
- bl = {
2320
- collectionLabel: "建議"
2321
- };
2322
- var gl = {};
2323
- gl = {
2324
- "ar-AE": Vt,
2325
- "bg-BG": Ot,
2326
- "cs-CZ": Nt,
2327
- "da-DK": zt,
2328
- "de-DE": Ut,
2329
- "el-GR": Ht,
2330
- "en-US": qt,
2331
- "es-ES": Wt,
2332
- "et-EE": _t,
2333
- "fi-FI": Gt,
2334
- "fr-FR": jt,
2335
- "he-IL": Yt,
2336
- "hr-HR": Jt,
2337
- "hu-HU": Xt,
2338
- "it-IT": Zt,
2339
- "ja-JP": Qt,
2340
- "ko-KR": el,
2341
- "lt-LT": tl,
2342
- "lv-LV": ll,
2343
- "nb-NO": il,
2344
- "nl-NL": nl,
2345
- "pl-PL": ol,
2346
- "pt-BR": rl,
2347
- "pt-PT": sl,
2348
- "ro-RO": al,
2349
- "ru-RU": ul,
2350
- "sk-SK": dl,
2351
- "sl-SI": cl,
2352
- "sr-SP": fl,
2353
- "sv-SE": hl,
2354
- "tr-TR": pl,
2355
- "uk-UA": vl,
2356
- "zh-CN": yl,
2357
- "zh-TW": bl
2358
- };
2359
- function Vi(n) {
2360
- return n && n.__esModule ? n.default : n;
2361
- }
2362
- function Oi(n, e) {
2363
- let { inputRef: t, collectionRef: l, filter: i, disableAutoFocusFirst: o = !1 } = n, r = re(), s = P(void 0), a = P(!1), c = P(null), v = P(null), h = Ie() !== "virtual";
2364
- Y(() => () => clearTimeout(s.current), []);
2365
- let d = ee((p) => {
2366
- !p.isTrusted && h && t.current && ke(Be(t.current)) !== t.current && t.current.focus();
2367
- let K = p.target;
2368
- p.isTrusted || !K || c.current === K.id || (clearTimeout(s.current), K !== l.current ? a.current ? (c.current = K.id, s.current = setTimeout(() => {
2369
- e.setFocusedNodeId(K.id);
2370
- }, 500)) : (c.current = K.id, e.setFocusedNodeId(K.id)) : (c.current = null, e.setFocusedNodeId(null)), a.current = !1);
2371
- }), y = J((p) => {
2372
- var K;
2373
- if (p != null) {
2374
- var I;
2375
- (I = v.current) === null || I === void 0 || I.removeEventListener("focusin", d), v.current = p, p.addEventListener("focusin", d);
2376
- } else (K = v.current) === null || K === void 0 || K.removeEventListener("focusin", d);
2377
- }, [
2378
- d
2379
- ]), b = he(T(() => vt(l, y), [
2380
- l,
2381
- y
2382
- ])), x = ee(() => {
2383
- var p;
2384
- a.current = !0, (p = l.current) === null || p === void 0 || p.dispatchEvent(new CustomEvent(Te, {
2385
- cancelable: !0,
2386
- bubbles: !0,
2387
- detail: {
2388
- focusStrategy: "first"
2389
- }
2390
- }));
2391
- }), g = ee((p) => {
2392
- var K;
2393
- Ve(ke()), c.current = null, e.setFocusedNodeId(null);
2394
- let I = new CustomEvent(wt, {
2395
- cancelable: !0,
2396
- bubbles: !0,
2397
- detail: {
2398
- clearFocusKey: p
2399
- }
2400
- });
2401
- clearTimeout(s.current), a.current = !1, (K = l.current) === null || K === void 0 || K.dispatchEvent(I);
2402
- }), $ = (p) => {
2403
- e.inputValue !== p && e.inputValue.length <= p.length && !o ? x() : g(!0), e.setInputValue(p);
2404
- }, S = P(null), w = (p) => {
2405
- var K;
2406
- if (S.current = p.target, p.nativeEvent.isComposing) return;
2407
- let I = c.current;
2408
- switch (p.key) {
2409
- case "a":
2410
- if (Q(p)) return;
2411
- break;
2412
- case "Escape":
2413
- if (p.isDefaultPrevented()) return;
2414
- break;
2415
- case " ":
2416
- return;
2417
- case "Tab":
2418
- "continuePropagation" in p && p.continuePropagation();
2419
- return;
2420
- case "Home":
2421
- case "End":
2422
- case "PageDown":
2423
- case "PageUp":
2424
- case "ArrowUp":
2425
- case "ArrowDown": {
2426
- var V;
2427
- if ((p.key === "Home" || p.key === "End") && I == null && p.shiftKey) return;
2428
- p.preventDefault();
2429
- let H = new CustomEvent(Te, {
2430
- cancelable: !0,
2431
- bubbles: !0
2432
- });
2433
- (V = l.current) === null || V === void 0 || V.dispatchEvent(H);
2434
- break;
2435
- }
2436
- }
2437
- p.isPropagationStopped() || p.stopPropagation();
2438
- let U = !0;
2439
- if (I == null) U = ((K = l.current) === null || K === void 0 ? void 0 : K.dispatchEvent(new KeyboardEvent(p.nativeEvent.type, p.nativeEvent))) || !1;
2440
- else {
2441
- let H = document.getElementById(I);
2442
- U = (H == null ? void 0 : H.dispatchEvent(new KeyboardEvent(p.nativeEvent.type, p.nativeEvent))) || !1;
2443
- }
2444
- if (U) switch (p.key) {
2445
- case "ArrowLeft":
2446
- case "ArrowRight":
2447
- g();
2448
- break;
2449
- }
2450
- }, k = ee((p) => {
2451
- if (p.target === S.current) {
2452
- var K;
2453
- p.stopImmediatePropagation();
2454
- let I = c.current;
2455
- if (I == null) (K = l.current) === null || K === void 0 || K.dispatchEvent(new KeyboardEvent(p.type, p));
2456
- else {
2457
- let V = document.getElementById(I);
2458
- V == null || V.dispatchEvent(new KeyboardEvent(p.type, p));
2459
- }
2460
- }
2461
- });
2462
- Y(() => (document.addEventListener("keyup", k, !0), () => {
2463
- document.removeEventListener("keyup", k, !0);
2464
- }), [
2465
- k
2466
- ]);
2467
- let F = Hl(Vi(gl), "@react-aria/autocomplete"), C = Nl({
2468
- id: r,
2469
- "aria-label": F.format("collectionLabel")
2470
- }), A = J((p) => i ? i(p, e.inputValue) : !0, [
2471
- e.inputValue,
2472
- i
2473
- ]), M = (p) => {
2474
- if (!p.isTrusted) return;
2475
- let K = c.current ? document.getElementById(c.current) : null;
2476
- K && Le(K, p.relatedTarget);
2477
- }, G = (p) => {
2478
- if (!p.isTrusted) return;
2479
- let K = c.current ? document.getElementById(c.current) : null;
2480
- if (K) {
2481
- let I = p.target;
2482
- queueMicrotask(() => {
2483
- Le(I, K), Ct(K, I);
2484
- });
2485
- }
2486
- };
2487
- var B;
2488
- return {
2489
- textFieldProps: {
2490
- value: e.inputValue,
2491
- onChange: $,
2492
- onKeyDown: w,
2493
- autoComplete: "off",
2494
- "aria-haspopup": "listbox",
2495
- "aria-controls": r,
2496
- // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
2497
- "aria-autocomplete": "list",
2498
- "aria-activedescendant": (B = e.focusedNodeId) !== null && B !== void 0 ? B : void 0,
2499
- // This disable's iOS's autocorrect suggestions, since the autocomplete provides its own suggestions.
2500
- autoCorrect: "off",
2501
- // This disable's the macOS Safari spell check auto corrections.
2502
- spellCheck: "false",
2503
- enterKeyHint: "go",
2504
- onBlur: M,
2505
- onFocus: G
2506
- },
2507
- collectionProps: W(C, {
2508
- shouldUseVirtualFocus: h,
2509
- disallowTypeAhead: !0
2510
- }),
2511
- collectionRef: b,
2512
- filter: i != null ? A : void 0
2513
- };
2514
- }
2515
- function Ni(n) {
2516
- let { onInputChange: e, inputValue: t, defaultInputValue: l = "" } = n, i = (c) => {
2517
- e && e(c);
2518
- }, [o, r] = te(null), [s, a] = $t(t, l, i);
2519
- return {
2520
- inputValue: s,
2521
- setInputValue: a,
2522
- focusedNodeId: o,
2523
- setFocusedNodeId: r
2524
- };
2525
- }
2526
- const zi = /* @__PURE__ */ O(null), Ui = /* @__PURE__ */ O(null), $l = /* @__PURE__ */ O(null);
2527
- function Vn(n) {
2528
- let e = ft(zi, n.slot);
2529
- n = W(e, n);
2530
- let { filter: t, disableAutoFocusFirst: l } = n, i = Ni(n), o = P(null), r = P(null), { textFieldProps: s, collectionProps: a, collectionRef: c, filter: v } = Oi({
2531
- ...pt(n),
2532
- filter: t,
2533
- disableAutoFocusFirst: l,
2534
- inputRef: o,
2535
- collectionRef: r
2536
- }, i);
2537
- return /* @__PURE__ */ m.createElement(fe, {
2538
- values: [
2539
- [
2540
- Ui,
2541
- i
2542
- ],
2543
- [
2544
- Bi,
2545
- s
2546
- ],
2547
- [
2548
- Bt,
2549
- s
2550
- ],
2551
- [
2552
- Pe,
2553
- {
2554
- ref: o
2555
- }
2556
- ],
2557
- [
2558
- $l,
2559
- {
2560
- filter: v,
2561
- collectionProps: a,
2562
- collectionRef: c
2563
- }
2564
- ]
2565
- ]
2566
- }, n.children);
2567
- }
2568
- const Hi = /* @__PURE__ */ O(null), qi = {
2569
- CollectionRoot({ collection: n, renderDropIndicator: e }) {
2570
- return dt(n, null, e);
2571
- },
2572
- CollectionBranch({ collection: n, parent: e, renderDropIndicator: t }) {
2573
- return dt(n, e, t);
2574
- }
2575
- };
2576
- function dt(n, e, t) {
2577
- return Ft({
2578
- items: e ? n.getChildren(e.key) : n,
2579
- dependencies: [
2580
- t
2581
- ],
2582
- children(l) {
2583
- let i = l.render(l);
2584
- return !t || l.type !== "item" ? i : /* @__PURE__ */ m.createElement(m.Fragment, null, t({
2585
- type: "item",
2586
- key: l.key,
2587
- dropPosition: "before"
2588
- }), i, Wi(n, l, t));
2589
- }
2590
- });
2591
- }
2592
- function Wi(n, e, t) {
2593
- let l = e.key, i = n.getKeyAfter(l), o = i != null ? n.getItem(i) : null;
2594
- for (; o != null && o.type !== "item"; )
2595
- i = n.getKeyAfter(o.key), o = i != null ? n.getItem(i) : null;
2596
- let r = e.nextKey != null ? n.getItem(e.nextKey) : null;
2597
- for (; r != null && r.type !== "item"; ) r = r.nextKey != null ? n.getItem(r.nextKey) : null;
2598
- let s = [];
2599
- if (r == null) {
2600
- let a = e;
2601
- for (; a && (!o || a.parentKey !== o.parentKey && o.level < a.level); ) {
2602
- let c = t({
2603
- type: "item",
2604
- key: a.key,
2605
- dropPosition: "after"
2606
- });
2607
- /* @__PURE__ */ Cl(c) && s.push(/* @__PURE__ */ ct(c, {
2608
- key: `${a.key}-after`
2609
- })), a = a.parentKey != null ? n.getItem(a.parentKey) : null;
2610
- }
2611
- }
2612
- return s;
2613
- }
2614
- const He = /* @__PURE__ */ O(qi);
2615
- function On(n) {
2616
- return T(() => n != null ? /* @__PURE__ */ new Set([
2617
- n
2618
- ]) : null, [
2619
- n
2620
- ]);
2621
- }
2622
- const pe = /* @__PURE__ */ O({}), ml = /* @__PURE__ */ O(null), _i = /* @__PURE__ */ ne(function(e, t) {
2623
- let { render: l } = R(ml);
2624
- return /* @__PURE__ */ m.createElement(m.Fragment, null, l(e, t));
2625
- });
2626
- function xl(n, e) {
2627
- var t;
2628
- let l = n == null ? void 0 : n.renderDropIndicator, i = n == null || (t = n.isVirtualDragging) === null || t === void 0 ? void 0 : t.call(n), o = J((r) => {
2629
- if (i || e != null && e.isDropTarget(r)) return l ? l(r) : /* @__PURE__ */ m.createElement(_i, {
2630
- target: r
2631
- });
2632
- }, [
2633
- e == null ? void 0 : e.target,
2634
- i,
2635
- l
2636
- ]);
2637
- return n != null && n.useDropIndicator ? o : void 0;
2638
- }
2639
- function Gi(n, e, t) {
2640
- var l, i;
2641
- let o = n.focusedKey, r = null;
2642
- if (!(e == null || (l = e.isVirtualDragging) === null || l === void 0) && l.call(e) && (t == null || (i = t.target) === null || i === void 0 ? void 0 : i.type) === "item") {
2643
- r = t.target.key;
2644
- var s;
2645
- t.target.dropPosition === "after" && (r = (s = t.collection.getKeyAfter(r)) !== null && s !== void 0 ? s : r);
2646
- }
2647
- return T(() => new Set([
2648
- o,
2649
- r
2650
- ].filter((a) => a != null)), [
2651
- o,
2652
- r
2653
- ]);
2654
- }
2655
- const Sl = /* @__PURE__ */ O({}), Nn = /* @__PURE__ */ Lt("header", function(e, t) {
2656
- return [e, t] = ce(e, t, Sl), /* @__PURE__ */ m.createElement("header", {
2657
- className: "react-aria-Header",
2658
- ...e,
2659
- ref: t
2660
- }, e.children);
2661
- }), ji = /* @__PURE__ */ O({}), Kl = /* @__PURE__ */ O(null), ve = /* @__PURE__ */ O(null), zn = /* @__PURE__ */ ne(function(e, t) {
2662
- [e, t] = ce(e, t, Kl);
2663
- let l = R(ve);
2664
- return l ? /* @__PURE__ */ m.createElement(Dl, {
2665
- state: l,
2666
- props: e,
2667
- listBoxRef: t
2668
- }) : /* @__PURE__ */ m.createElement(wi, {
2669
- content: /* @__PURE__ */ m.createElement(Fi, e)
2670
- }, (i) => /* @__PURE__ */ m.createElement(Yi, {
2671
- props: e,
2672
- listBoxRef: t,
2673
- collection: i
2674
- }));
2675
- });
2676
- function Yi({ props: n, listBoxRef: e, collection: t }) {
2677
- n = {
2678
- ...n,
2679
- collection: t,
2680
- children: null,
2681
- items: null
2682
- };
2683
- let { layoutDelegate: l } = R(He), i = Ai({
2684
- ...n,
2685
- layoutDelegate: l
2686
- });
2687
- return /* @__PURE__ */ m.createElement(Dl, {
2688
- state: i,
2689
- props: n,
2690
- listBoxRef: e
2691
- });
2692
- }
2693
- function Dl({ state: n, props: e, listBoxRef: t }) {
2694
- var l;
2695
- let { filter: i, collectionProps: o, collectionRef: r } = R($l) || {};
2696
- e = T(() => o ? {
2697
- ...e,
2698
- ...o
2699
- } : e, [
2700
- e,
2701
- o
2702
- ]);
2703
- let { dragAndDropHooks: s, layout: a = "stack", orientation: c = "vertical" } = e;
2704
- t = he(T(() => vt(t, r !== void 0 ? r : null), [
2705
- r,
2706
- t
2707
- ]));
2708
- let v = Ri(n, i), { collection: h, selectionManager: d } = v, y = !!(s != null && s.useDraggableCollectionState), b = !!(s != null && s.useDroppableCollectionState), { direction: x } = Kt(), { disabledBehavior: g, disabledKeys: $ } = d, S = Dt({
2709
- usage: "search",
2710
- sensitivity: "base"
2711
- }), { isVirtualized: w, layoutDelegate: k, dropTargetDelegate: F, CollectionRoot: C } = R(He), A = T(() => e.keyboardDelegate || new Pt({
2712
- collection: h,
2713
- collator: S,
2714
- ref: t,
2715
- disabledKeys: $,
2716
- disabledBehavior: g,
2717
- layout: a,
2718
- orientation: c,
2719
- direction: x,
2720
- layoutDelegate: k
2721
- }), [
2722
- h,
2723
- S,
2724
- t,
2725
- g,
2726
- $,
2727
- c,
2728
- x,
2729
- e.keyboardDelegate,
2730
- a,
2731
- k
2732
- ]), { listBoxProps: M } = ci({
2733
- ...e,
2734
- shouldSelectOnPressUp: y || e.shouldSelectOnPressUp,
2735
- keyboardDelegate: A,
2736
- isVirtualized: w
2737
- }, v, t), G = P(y), B = P(b);
2738
- Y(() => {
2739
- process.env.NODE_ENV !== "production" && (G.current !== y && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), B.current !== b && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
2740
- }, [
2741
- y,
2742
- b
2743
- ]);
2744
- let p, K, I, V = !1, U = null, H = P(null);
2745
- if (y && s) {
2746
- p = s.useDraggableCollectionState({
2747
- collection: h,
2748
- selectionManager: d,
2749
- preview: s.renderDragPreview ? H : void 0
2750
- }), s.useDraggableCollection({}, p, t);
2751
- let _ = s.DragPreview;
2752
- U = s.renderDragPreview ? /* @__PURE__ */ m.createElement(_, {
2753
- ref: H
2754
- }, s.renderDragPreview) : null;
2755
- }
2756
- if (b && s) {
2757
- K = s.useDroppableCollectionState({
2758
- collection: h,
2759
- selectionManager: d
2760
- });
2761
- let _ = s.dropTargetDelegate || F || new s.ListDropTargetDelegate(h, t, {
2762
- orientation: c,
2763
- layout: a,
2764
- direction: x
2765
- });
2766
- I = s.useDroppableCollection({
2767
- keyboardDelegate: A,
2768
- dropTargetDelegate: _
2769
- }, K, t), V = K.isDropTarget({
2770
- type: "root"
2771
- });
2772
- }
2773
- let { focusProps: f, isFocused: u, isFocusVisible: E } = Xl(), L = v.collection.size === 0 || v.collection.size === 1 && ((l = v.collection.getItem(v.collection.getFirstKey())) === null || l === void 0 ? void 0 : l.type) === "loader", N = {
2774
- isDropTarget: V,
2775
- isEmpty: L,
2776
- isFocused: u,
2777
- isFocusVisible: E,
2778
- layout: e.layout || "stack",
2779
- state: v
2780
- }, z = oe({
2781
- className: e.className,
2782
- style: e.style,
2783
- defaultClassName: "react-aria-ListBox",
2784
- values: N
2785
- }), q = null;
2786
- return L && e.renderEmptyState && (q = /* @__PURE__ */ m.createElement("div", {
2787
- // eslint-disable-next-line
2788
- role: "option",
2789
- style: {
2790
- display: "contents"
2791
- }
2792
- }, e.renderEmptyState(N))), /* @__PURE__ */ m.createElement(Jl, null, /* @__PURE__ */ m.createElement("div", {
2793
- ...se(e),
2794
- ...W(M, f, I == null ? void 0 : I.collectionProps),
2795
- ...z,
2796
- ref: t,
2797
- slot: e.slot || void 0,
2798
- onScroll: e.onScroll,
2799
- "data-drop-target": V || void 0,
2800
- "data-empty": L || void 0,
2801
- "data-focused": u || void 0,
2802
- "data-focus-visible": E || void 0,
2803
- "data-layout": e.layout || "stack",
2804
- "data-orientation": e.orientation || "vertical"
2805
- }, /* @__PURE__ */ m.createElement(fe, {
2806
- values: [
2807
- [
2808
- Kl,
2809
- e
2810
- ],
2811
- [
2812
- ve,
2813
- v
2814
- ],
2815
- [
2816
- pe,
2817
- {
2818
- dragAndDropHooks: s,
2819
- dragState: p,
2820
- dropState: K
2821
- }
2822
- ],
2823
- [
2824
- ji,
2825
- {
2826
- elementType: "div"
2827
- }
2828
- ],
2829
- [
2830
- ml,
2831
- {
2832
- render: Ji
2833
- }
2834
- ],
2835
- [
2836
- Hi,
2837
- {
2838
- name: "ListBoxSection",
2839
- render: wl
2840
- }
2841
- ]
2842
- ]
2843
- }, /* @__PURE__ */ m.createElement(C, {
2844
- collection: h,
2845
- scrollRef: t,
2846
- persistedKeys: Gi(d, s, K),
2847
- renderDropIndicator: xl(s, K)
2848
- })), q, U));
2849
- }
2850
- function wl(n, e, t, l = "react-aria-ListBoxSection") {
2851
- let i = R(ve), { dragAndDropHooks: o, dropState: r } = R(pe), { CollectionBranch: s } = R(He), [a, c] = ht();
2852
- var v;
2853
- let { headingProps: h, groupProps: d } = $i({
2854
- heading: c,
2855
- "aria-label": (v = n["aria-label"]) !== null && v !== void 0 ? v : void 0
2856
- }), y = oe({
2857
- defaultClassName: l,
2858
- className: n.className,
2859
- style: n.style,
2860
- values: {}
2861
- });
2862
- return /* @__PURE__ */ m.createElement("section", {
2863
- ...se(n),
2864
- ...d,
2865
- ...y,
2866
- ref: e
2867
- }, /* @__PURE__ */ m.createElement(Sl.Provider, {
2868
- value: {
2869
- ...h,
2870
- ref: a
2871
- }
2872
- }, /* @__PURE__ */ m.createElement(s, {
2873
- collection: i.collection,
2874
- parent: t,
2875
- renderDropIndicator: xl(o, r)
2876
- })));
2877
- }
2878
- const Un = /* @__PURE__ */ Ii("section", wl), Hn = /* @__PURE__ */ Lt("item", function(e, t, l) {
2879
- let i = he(t), o = R(ve), { dragAndDropHooks: r, dragState: s, dropState: a } = R(pe), { optionProps: c, labelProps: v, descriptionProps: h, ...d } = gi({
2880
- key: l.key,
2881
- "aria-label": e == null ? void 0 : e["aria-label"]
2882
- }, o, i), { hoverProps: y, isHovered: b } = xt({
2883
- isDisabled: !d.allowsSelection && !d.hasAction,
2884
- onHoverStart: l.props.onHoverStart,
2885
- onHoverChange: l.props.onHoverChange,
2886
- onHoverEnd: l.props.onHoverEnd
2887
- }), x = null;
2888
- s && r && (x = r.useDraggableItem({
2889
- key: l.key
2890
- }, s));
2891
- let g = null;
2892
- a && r && (g = r.useDroppableItem({
2893
- target: {
2894
- type: "item",
2895
- key: l.key,
2896
- dropPosition: "on"
2897
- }
2898
- }, a, i));
2899
- let $ = s && s.isDragging(l.key), S = oe({
2900
- ...e,
2901
- id: void 0,
2902
- children: e.children,
2903
- defaultClassName: "react-aria-ListBoxItem",
2904
- values: {
2905
- ...d,
2906
- isHovered: b,
2907
- selectionMode: o.selectionManager.selectionMode,
2908
- selectionBehavior: o.selectionManager.selectionBehavior,
2909
- allowsDragging: !!s,
2910
- isDragging: $,
2911
- isDropTarget: g == null ? void 0 : g.isDropTarget
2912
- }
2913
- });
2914
- Y(() => {
2915
- !l.textValue && process.env.NODE_ENV !== "production" && console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.");
2916
- }, [
2917
- l.textValue
2918
- ]);
2919
- let w = e.href ? "a" : "div";
2920
- return /* @__PURE__ */ m.createElement(w, {
2921
- ...W(c, y, x == null ? void 0 : x.dragProps, g == null ? void 0 : g.dropProps),
2922
- ...S,
2923
- ref: i,
2924
- "data-allows-dragging": !!s || void 0,
2925
- "data-selected": d.isSelected || void 0,
2926
- "data-disabled": d.isDisabled || void 0,
2927
- "data-hovered": b || void 0,
2928
- "data-focused": d.isFocused || void 0,
2929
- "data-focus-visible": d.isFocusVisible || void 0,
2930
- "data-pressed": d.isPressed || void 0,
2931
- "data-dragging": $ || void 0,
2932
- "data-drop-target": (g == null ? void 0 : g.isDropTarget) || void 0,
2933
- "data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode
2934
- }, /* @__PURE__ */ m.createElement(fe, {
2935
- values: [
2936
- [
2937
- bt,
2938
- {
2939
- slots: {
2940
- [El]: v,
2941
- label: v,
2942
- description: h
2943
- }
2944
- }
2945
- ]
2946
- ]
2947
- }, S.children));
2948
- });
2949
- function Ji(n, e) {
2950
- e = he(e);
2951
- let { dragAndDropHooks: t, dropState: l } = R(pe), { dropIndicatorProps: i, isHidden: o, isDropTarget: r } = t.useDropIndicator(n, l, e);
2952
- return o ? null : /* @__PURE__ */ m.createElement(Zi, {
2953
- ...n,
2954
- dropIndicatorProps: i,
2955
- isDropTarget: r,
2956
- ref: e
2957
- });
2958
- }
2959
- function Xi(n, e) {
2960
- let { dropIndicatorProps: t, isDropTarget: l, ...i } = n, o = oe({
2961
- ...i,
2962
- defaultClassName: "react-aria-DropIndicator",
2963
- values: {
2964
- isDropTarget: l
2965
- }
2966
- });
2967
- return /* @__PURE__ */ m.createElement("div", {
2968
- ...t,
2969
- ...o,
2970
- // eslint-disable-next-line
2971
- role: "option",
2972
- ref: e,
2973
- "data-drop-target": l || void 0
2974
- });
2975
- }
2976
- const Zi = /* @__PURE__ */ ne(Xi);
2977
- export {
2978
- Ql as $,
2979
- On as A,
2980
- Ai as a,
2981
- Pt as b,
2982
- ri as c,
2983
- wi as d,
2984
- Kl as e,
2985
- ve as f,
2986
- zn as g,
2987
- Hn as h,
2988
- Un as i,
2989
- Nn as j,
2990
- Fi as k,
2991
- Oe as l,
2992
- ai as m,
2993
- kt as n,
2994
- bi as o,
2995
- Ct as p,
2996
- li as q,
2997
- at as r,
2998
- Vn as s,
2999
- Bn as t,
3000
- di as u,
3001
- Rn as v,
3002
- ui as w,
3003
- Lt as x,
3004
- He as y,
3005
- qi as z
3006
- };
3007
- //# sourceMappingURL=ListBox-ABeVGjvU.es.js.map