@commercetools/nimbus 1.0.0-rc1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1105) hide show
  1. package/dist/accordion.d.ts +13 -4
  2. package/dist/alert.d.ts +10 -1
  3. package/dist/avatar.d.ts +9 -0
  4. package/dist/badge.d.ts +9 -0
  5. package/dist/box.d.ts +9 -0
  6. package/dist/button.d.ts +9 -0
  7. package/dist/calendar.d.ts +9 -0
  8. package/dist/card.d.ts +9 -0
  9. package/dist/checkbox.d.ts +9 -0
  10. package/dist/chunks/Button-BtJHe9xY.cjs.js +2 -0
  11. package/dist/chunks/Button-BtJHe9xY.cjs.js.map +1 -0
  12. package/dist/chunks/Button-CNBS3n5a.es.js +73 -0
  13. package/dist/chunks/Button-CNBS3n5a.es.js.map +1 -0
  14. package/dist/chunks/DateField-Dm2Qlhbk.es.js +2685 -0
  15. package/dist/chunks/DateField-Dm2Qlhbk.es.js.map +1 -0
  16. package/dist/chunks/DateField-rweHHCKR.cjs.js +2 -0
  17. package/dist/chunks/DateField-rweHHCKR.cjs.js.map +1 -0
  18. package/dist/chunks/DatePicker-BdV6ICAm.cjs.js +2 -0
  19. package/dist/chunks/DatePicker-BdV6ICAm.cjs.js.map +1 -0
  20. package/dist/chunks/DatePicker-BthC1bZ_.es.js +782 -0
  21. package/dist/chunks/DatePicker-BthC1bZ_.es.js.map +1 -0
  22. package/dist/chunks/Dialog-BeQ6Z6l2.es.js +1924 -0
  23. package/dist/chunks/Dialog-BeQ6Z6l2.es.js.map +1 -0
  24. package/dist/chunks/Dialog-CYa26HlL.cjs.js +2 -0
  25. package/dist/chunks/Dialog-CYa26HlL.cjs.js.map +1 -0
  26. package/dist/chunks/DragAndDrop-ChYb3tCX.es.js.map +1 -1
  27. package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js.map +1 -1
  28. package/dist/chunks/FieldError-CXcEMuBf.es.js.map +1 -1
  29. package/dist/chunks/FieldError-DyGFfqST.cjs.js.map +1 -1
  30. package/dist/chunks/FocusScope-CNO0fzPs.es.js +625 -0
  31. package/dist/chunks/FocusScope-CNO0fzPs.es.js.map +1 -0
  32. package/dist/chunks/FocusScope-DPn5XtSy.cjs.js +2 -0
  33. package/dist/chunks/FocusScope-DPn5XtSy.cjs.js.map +1 -0
  34. package/dist/chunks/Form-BuOomA4T.cjs.js.map +1 -1
  35. package/dist/chunks/Form-CXcEMuBf.es.js.map +1 -1
  36. package/dist/chunks/Group-Cfixd-fh.es.js +46 -0
  37. package/dist/chunks/Group-Cfixd-fh.es.js.map +1 -0
  38. package/dist/chunks/Group-MdeByg6t.cjs.js +2 -0
  39. package/dist/chunks/Group-MdeByg6t.cjs.js.map +1 -0
  40. package/dist/chunks/Heading-BaW6t55l.cjs.js +2 -0
  41. package/dist/chunks/Heading-BaW6t55l.cjs.js.map +1 -0
  42. package/dist/chunks/Heading-DEfy_f01.es.js +1618 -0
  43. package/dist/chunks/Heading-DEfy_f01.es.js.map +1 -0
  44. package/dist/chunks/Hidden-CNJIJ63M.cjs.js.map +1 -1
  45. package/dist/chunks/Hidden-j3Lbt7xL.es.js.map +1 -1
  46. package/dist/chunks/Input-BiHwUBo4.es.js +43 -0
  47. package/dist/chunks/Input-BiHwUBo4.es.js.map +1 -0
  48. package/dist/chunks/Input-HBDt7LmM.cjs.js +2 -0
  49. package/dist/chunks/Input-HBDt7LmM.cjs.js.map +1 -0
  50. package/dist/chunks/Keyboard-Clnp4zAC.es.js.map +1 -1
  51. package/dist/chunks/Keyboard-rYf2KxZN.cjs.js.map +1 -1
  52. package/dist/chunks/Label-B2YyCdLl.es.js.map +1 -1
  53. package/dist/chunks/Label-BgrYyYXn.cjs.js.map +1 -1
  54. package/dist/chunks/ListBox-CikEmFBx.cjs.js +2 -0
  55. package/dist/chunks/ListBox-CikEmFBx.cjs.js.map +1 -0
  56. package/dist/chunks/ListBox-DF3NHeEX.es.js +605 -0
  57. package/dist/chunks/ListBox-DF3NHeEX.es.js.map +1 -0
  58. package/dist/chunks/NumberFormatter-DewVDY5w.cjs.js.map +1 -1
  59. package/dist/chunks/NumberFormatter-DgOUVrge.es.js.map +1 -1
  60. package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js +2 -0
  61. package/dist/chunks/OverlayArrow-CYjyBtg8.cjs.js.map +1 -0
  62. package/dist/chunks/OverlayArrow-sJzRZNbO.es.js +491 -0
  63. package/dist/chunks/OverlayArrow-sJzRZNbO.es.js.map +1 -0
  64. package/dist/chunks/ProgressBar-BA3sLh1k.cjs.js +2 -0
  65. package/dist/chunks/ProgressBar-BA3sLh1k.cjs.js.map +1 -0
  66. package/dist/chunks/ProgressBar-DjaUQI7N.es.js +42 -0
  67. package/dist/chunks/ProgressBar-DjaUQI7N.es.js.map +1 -0
  68. package/dist/chunks/RSPContexts-B4yvXuBR.es.js.map +1 -1
  69. package/dist/chunks/RSPContexts-CkSl9jRK.cjs.js.map +1 -1
  70. package/dist/chunks/SSRProvider-Bc-sMhsT.cjs.js.map +1 -1
  71. package/dist/chunks/SSRProvider-Cu8KibIK.es.js.map +1 -1
  72. package/dist/chunks/SelectionManager-CLyu96pU.es.js +1946 -0
  73. package/dist/chunks/SelectionManager-CLyu96pU.es.js.map +1 -0
  74. package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js +18 -0
  75. package/dist/chunks/SelectionManager-Mrwf4SFv.cjs.js.map +1 -0
  76. package/dist/chunks/Separator-3-E2tRbk.es.js +92 -0
  77. package/dist/chunks/Separator-3-E2tRbk.es.js.map +1 -0
  78. package/dist/chunks/Separator-CAOg-vqY.cjs.js +2 -0
  79. package/dist/chunks/Separator-CAOg-vqY.cjs.js.map +1 -0
  80. package/dist/chunks/Text-BWSfeB9p.cjs.js.map +1 -1
  81. package/dist/chunks/Text-DOcU1ycg.es.js.map +1 -1
  82. package/dist/chunks/TextArea-BmpgvS0R.es.js +42 -0
  83. package/dist/chunks/TextArea-BmpgvS0R.es.js.map +1 -0
  84. package/dist/chunks/TextArea-D3FFXnUy.cjs.js +2 -0
  85. package/dist/chunks/TextArea-D3FFXnUy.cjs.js.map +1 -0
  86. package/dist/chunks/ToggleButton-C3JL0pgD.es.js +145 -0
  87. package/dist/chunks/ToggleButton-C3JL0pgD.es.js.map +1 -0
  88. package/dist/chunks/ToggleButton-CPAdPTCr.cjs.js +2 -0
  89. package/dist/chunks/ToggleButton-CPAdPTCr.cjs.js.map +1 -0
  90. package/dist/chunks/VisuallyHidden-Bv_AJXZ7.cjs.js +2 -0
  91. package/dist/chunks/VisuallyHidden-Bv_AJXZ7.cjs.js.map +1 -0
  92. package/dist/chunks/VisuallyHidden-VHEPK04F.es.js +41 -0
  93. package/dist/chunks/VisuallyHidden-VHEPK04F.es.js.map +1 -0
  94. package/dist/chunks/accordion-EDJoghXQ.cjs.js +2 -0
  95. package/dist/chunks/accordion-EDJoghXQ.cjs.js.map +1 -0
  96. package/dist/chunks/accordion-UL4pfC2d.es.js +223 -0
  97. package/dist/chunks/accordion-UL4pfC2d.es.js.map +1 -0
  98. package/dist/chunks/alert-BhoRNIWA.cjs.js +2 -0
  99. package/dist/chunks/alert-BhoRNIWA.cjs.js.map +1 -0
  100. package/dist/chunks/alert-D-ddqYG4.es.js +186 -0
  101. package/dist/chunks/alert-D-ddqYG4.es.js.map +1 -0
  102. package/dist/chunks/avatar-Bu12OMzz.es.js +38 -0
  103. package/dist/chunks/avatar-Bu12OMzz.es.js.map +1 -0
  104. package/dist/chunks/avatar-C2KIWewd.cjs.js +2 -0
  105. package/dist/chunks/avatar-C2KIWewd.cjs.js.map +1 -0
  106. package/dist/chunks/avatar.recipe-D3--Rkmb.cjs.js +2 -0
  107. package/dist/chunks/avatar.recipe-D3--Rkmb.cjs.js.map +1 -0
  108. package/dist/chunks/avatar.recipe-DfyPWbFZ.es.js +39 -0
  109. package/dist/chunks/avatar.recipe-DfyPWbFZ.es.js.map +1 -0
  110. package/dist/chunks/badge-BJd-Q81M.es.js +77 -0
  111. package/dist/chunks/badge-BJd-Q81M.es.js.map +1 -0
  112. package/dist/chunks/badge-CCrBksXu.cjs.js +2 -0
  113. package/dist/chunks/badge-CCrBksXu.cjs.js.map +1 -0
  114. package/dist/chunks/box-CWni3A32.cjs.js +2 -0
  115. package/dist/chunks/box-CWni3A32.cjs.js.map +1 -0
  116. package/dist/chunks/box-DuBoAZvq.es.js +12 -0
  117. package/dist/chunks/box-DuBoAZvq.es.js.map +1 -0
  118. package/dist/chunks/button-CRUdodZm.es.js +59 -0
  119. package/dist/chunks/button-CRUdodZm.es.js.map +1 -0
  120. package/dist/chunks/button-CU8FW_Pl.cjs.js +2 -0
  121. package/dist/chunks/button-CU8FW_Pl.cjs.js.map +1 -0
  122. package/dist/chunks/button.recipe-Cqkj3VMo.cjs.js +2 -0
  123. package/dist/chunks/button.recipe-Cqkj3VMo.cjs.js.map +1 -0
  124. package/dist/chunks/button.recipe-NdTb5f8M.es.js +191 -0
  125. package/dist/chunks/button.recipe-NdTb5f8M.es.js.map +1 -0
  126. package/dist/chunks/calendar-DJKWldpV.cjs.js +2 -0
  127. package/dist/chunks/calendar-DJKWldpV.cjs.js.map +1 -0
  128. package/dist/chunks/calendar-DzwFtg1t.es.js +186 -0
  129. package/dist/chunks/calendar-DzwFtg1t.es.js.map +1 -0
  130. package/dist/chunks/card-BfUdf1Fy.es.js +138 -0
  131. package/dist/chunks/card-BfUdf1Fy.es.js.map +1 -0
  132. package/dist/chunks/card-DeWTV05B.cjs.js +2 -0
  133. package/dist/chunks/card-DeWTV05B.cjs.js.map +1 -0
  134. package/dist/chunks/checkbox-6nLo9Jy2.cjs.js +2 -0
  135. package/dist/chunks/checkbox-6nLo9Jy2.cjs.js.map +1 -0
  136. package/dist/chunks/checkbox-GmYxVrZx.es.js +219 -0
  137. package/dist/chunks/checkbox-GmYxVrZx.es.js.map +1 -0
  138. package/dist/chunks/code-Dl7u63Zn.es.js +6 -0
  139. package/dist/chunks/code-Dl7u63Zn.es.js.map +1 -0
  140. package/dist/chunks/code-q31e3vT2.cjs.js +2 -0
  141. package/dist/chunks/code-q31e3vT2.cjs.js.map +1 -0
  142. package/dist/chunks/combobox-DtPDxCo3.cjs.js +2 -0
  143. package/dist/chunks/combobox-DtPDxCo3.cjs.js.map +1 -0
  144. package/dist/chunks/combobox-gIwba2QG.es.js +2392 -0
  145. package/dist/chunks/combobox-gIwba2QG.es.js.map +1 -0
  146. package/dist/chunks/context-OoV8SSWX.cjs.js +2 -0
  147. package/dist/chunks/context-OoV8SSWX.cjs.js.map +1 -0
  148. package/dist/chunks/context-R4YUlO9Y.es.js +108 -0
  149. package/dist/chunks/context-R4YUlO9Y.es.js.map +1 -0
  150. package/dist/chunks/data-table-Cpk3q34E.cjs.js +2 -0
  151. package/dist/chunks/data-table-Cpk3q34E.cjs.js.map +1 -0
  152. package/dist/chunks/data-table-mXLxUWQz.es.js +3563 -0
  153. package/dist/chunks/data-table-mXLxUWQz.es.js.map +1 -0
  154. package/dist/chunks/date-input-D5unoyMt.es.js +16 -0
  155. package/dist/chunks/date-input-D5unoyMt.es.js.map +1 -0
  156. package/dist/chunks/date-input-DJ_aFB9i.cjs.js +2 -0
  157. package/dist/chunks/date-input-DJ_aFB9i.cjs.js.map +1 -0
  158. package/dist/chunks/date-picker-CMqAI1lp.es.js +190 -0
  159. package/dist/chunks/date-picker-CMqAI1lp.es.js.map +1 -0
  160. package/dist/chunks/date-picker-f3TylaP5.cjs.js +2 -0
  161. package/dist/chunks/date-picker-f3TylaP5.cjs.js.map +1 -0
  162. package/dist/chunks/date-range-picker-CxsPpWyX.cjs.js +2 -0
  163. package/dist/chunks/date-range-picker-CxsPpWyX.cjs.js.map +1 -0
  164. package/dist/chunks/date-range-picker-Dtji64Q9.es.js +283 -0
  165. package/dist/chunks/date-range-picker-Dtji64Q9.es.js.map +1 -0
  166. package/dist/chunks/dialog-CVa-E9-A.cjs.js +2 -0
  167. package/dist/chunks/dialog-CVa-E9-A.cjs.js.map +1 -0
  168. package/dist/chunks/dialog-DTSuKnyk.es.js +34 -0
  169. package/dist/chunks/dialog-DTSuKnyk.es.js.map +1 -0
  170. package/dist/chunks/divider--BAm3ca4.es.js +53 -0
  171. package/dist/chunks/divider--BAm3ca4.es.js.map +1 -0
  172. package/dist/chunks/divider-BuizjeAj.cjs.js +2 -0
  173. package/dist/chunks/divider-BuizjeAj.cjs.js.map +1 -0
  174. package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js +2 -0
  175. package/dist/chunks/emotion-is-prop-valid.esm-Bb7Ou5_X.cjs.js.map +1 -0
  176. package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js +16 -0
  177. package/dist/chunks/emotion-is-prop-valid.esm-qvxbqhmq.es.js.map +1 -0
  178. package/dist/chunks/extractStyleProps-CZpHKp1I.cjs.js +2 -0
  179. package/dist/chunks/extractStyleProps-CZpHKp1I.cjs.js.map +1 -0
  180. package/dist/chunks/extractStyleProps-vA4cNUoc.es.js +11 -0
  181. package/dist/chunks/extractStyleProps-vA4cNUoc.es.js.map +1 -0
  182. package/dist/chunks/filterDOMProps-BSVCO5jK.es.js.map +1 -1
  183. package/dist/chunks/filterDOMProps-WUskt27c.cjs.js.map +1 -1
  184. package/dist/chunks/focusSafely-DJpphVHF.es.js +27 -0
  185. package/dist/chunks/focusSafely-DJpphVHF.es.js.map +1 -0
  186. package/dist/chunks/focusSafely-jDMW9aEx.cjs.js +2 -0
  187. package/dist/chunks/focusSafely-jDMW9aEx.cjs.js.map +1 -0
  188. package/dist/chunks/focusWithoutScrolling-BlyUcXdY.cjs.js.map +1 -1
  189. package/dist/chunks/focusWithoutScrolling-CDw3JYiq.es.js.map +1 -1
  190. package/dist/chunks/form-field-Dtcfgzyo.es.js +309 -0
  191. package/dist/chunks/form-field-Dtcfgzyo.es.js.map +1 -0
  192. package/dist/chunks/form-field-DxcGAb23.cjs.js +11 -0
  193. package/dist/chunks/form-field-DxcGAb23.cjs.js.map +1 -0
  194. package/dist/chunks/grid-Chuw1xje.cjs.js +2 -0
  195. package/dist/chunks/grid-Chuw1xje.cjs.js.map +1 -0
  196. package/dist/chunks/grid-De8qjf98.es.js +14 -0
  197. package/dist/chunks/grid-De8qjf98.es.js.map +1 -0
  198. package/dist/chunks/group-Buy-O6Mr.cjs.js +2 -0
  199. package/dist/chunks/group-Buy-O6Mr.cjs.js.map +1 -0
  200. package/dist/chunks/group-CqfSQXe7.es.js +14 -0
  201. package/dist/chunks/group-CqfSQXe7.es.js.map +1 -0
  202. package/dist/chunks/icon-BoRbJStV.es.js +31 -0
  203. package/dist/chunks/icon-BoRbJStV.es.js.map +1 -0
  204. package/dist/chunks/icon-Cny8ZtnX.cjs.js +2 -0
  205. package/dist/chunks/icon-Cny8ZtnX.cjs.js.map +1 -0
  206. package/dist/chunks/icon-button-C20Gw8gQ.es.js +14 -0
  207. package/dist/chunks/icon-button-C20Gw8gQ.es.js.map +1 -0
  208. package/dist/chunks/icon-button-Cc0MkBbk.cjs.js +2 -0
  209. package/dist/chunks/icon-button-Cc0MkBbk.cjs.js.map +1 -0
  210. package/dist/chunks/icon-toggle-button-CgHQMDs3.es.js +13 -0
  211. package/dist/chunks/icon-toggle-button-CgHQMDs3.es.js.map +1 -0
  212. package/dist/chunks/icon-toggle-button-D-C99Q0s.cjs.js +2 -0
  213. package/dist/chunks/icon-toggle-button-D-C99Q0s.cjs.js.map +1 -0
  214. package/dist/chunks/image-CGOYoc2s.cjs.js +2 -0
  215. package/dist/chunks/image-CGOYoc2s.cjs.js.map +1 -0
  216. package/dist/chunks/image-DRigLU80.es.js +8 -0
  217. package/dist/chunks/image-DRigLU80.es.js.map +1 -0
  218. package/dist/chunks/index-C8Yrk__l.cjs.js +4 -0
  219. package/dist/chunks/index-C8Yrk__l.cjs.js.map +1 -0
  220. package/dist/chunks/index-jAeaCpRm.es.js +3787 -0
  221. package/dist/chunks/index-jAeaCpRm.es.js.map +1 -0
  222. package/dist/chunks/intlStrings-Cd44R5hT.es.js.map +1 -1
  223. package/dist/chunks/intlStrings-ClBuC6xN.cjs.js.map +1 -1
  224. package/dist/chunks/kbd-BXN9aXRE.es.js +17 -0
  225. package/dist/chunks/kbd-BXN9aXRE.es.js.map +1 -0
  226. package/dist/chunks/kbd-DFeaXiKY.cjs.js +2 -0
  227. package/dist/chunks/kbd-DFeaXiKY.cjs.js.map +1 -0
  228. package/dist/chunks/kbd.recipe-DXiyvrAP.es.js +26 -0
  229. package/dist/chunks/kbd.recipe-DXiyvrAP.es.js.map +1 -0
  230. package/dist/chunks/kbd.recipe-DjQgeTG_.cjs.js +2 -0
  231. package/dist/chunks/kbd.recipe-DjQgeTG_.cjs.js.map +1 -0
  232. package/dist/chunks/link-CFK97sc0.es.js +50 -0
  233. package/dist/chunks/link-CFK97sc0.es.js.map +1 -0
  234. package/dist/chunks/link-DWa1zIUJ.cjs.js +2 -0
  235. package/dist/chunks/link-DWa1zIUJ.cjs.js.map +1 -0
  236. package/dist/chunks/link.recipe-Co4-fl4U.cjs.js +2 -0
  237. package/dist/chunks/link.recipe-Co4-fl4U.cjs.js.map +1 -0
  238. package/dist/chunks/link.recipe-pXiGIJtI.es.js +51 -0
  239. package/dist/chunks/link.recipe-pXiGIJtI.es.js.map +1 -0
  240. package/dist/chunks/list-DJC9BmoC.cjs.js +2 -0
  241. package/dist/chunks/list-DJC9BmoC.cjs.js.map +1 -0
  242. package/dist/chunks/list-Nz5KjWzs.es.js +13 -0
  243. package/dist/chunks/list-Nz5KjWzs.es.js.map +1 -0
  244. package/dist/chunks/loading-spinner-CvggCl-H.es.js +105 -0
  245. package/dist/chunks/loading-spinner-CvggCl-H.es.js.map +1 -0
  246. package/dist/chunks/loading-spinner-DdYXuYkg.cjs.js +2 -0
  247. package/dist/chunks/loading-spinner-DdYXuYkg.cjs.js.map +1 -0
  248. package/dist/chunks/make-element-focusable-C4ZHUSEU.es.js +22 -0
  249. package/dist/chunks/make-element-focusable-C4ZHUSEU.es.js.map +1 -0
  250. package/dist/chunks/make-element-focusable-bPAMXt4D.cjs.js +2 -0
  251. package/dist/chunks/make-element-focusable-bPAMXt4D.cjs.js.map +1 -0
  252. package/dist/chunks/menu-8g9Hn1nm.es.js +157 -0
  253. package/dist/chunks/menu-8g9Hn1nm.es.js.map +1 -0
  254. package/dist/chunks/menu-Bm1u-R6o.cjs.js +2 -0
  255. package/dist/chunks/menu-Bm1u-R6o.cjs.js.map +1 -0
  256. package/dist/chunks/mergeProps-BA5Cwf5w.cjs.js.map +1 -1
  257. package/dist/chunks/mergeProps-B_9syxhT.es.js.map +1 -1
  258. package/dist/chunks/multiline-text-input-BGnvpB1r.es.js +118 -0
  259. package/dist/chunks/multiline-text-input-BGnvpB1r.es.js.map +1 -0
  260. package/dist/chunks/multiline-text-input-sXIlwrvT.cjs.js +12 -0
  261. package/dist/chunks/multiline-text-input-sXIlwrvT.cjs.js.map +1 -0
  262. package/dist/chunks/nimbus-provider-CybdU89B.es.js +101 -0
  263. package/dist/chunks/nimbus-provider-CybdU89B.es.js.map +1 -0
  264. package/dist/chunks/nimbus-provider-D3DvYEDv.cjs.js +2 -0
  265. package/dist/chunks/nimbus-provider-D3DvYEDv.cjs.js.map +1 -0
  266. package/dist/chunks/number-DHvo-MDe.cjs.js.map +1 -1
  267. package/dist/chunks/number-dMxJejI6.es.js.map +1 -1
  268. package/dist/chunks/number-input-CPnA0dO-.cjs.js +2 -0
  269. package/dist/chunks/number-input-CPnA0dO-.cjs.js.map +1 -0
  270. package/dist/chunks/number-input-CzObpfFa.es.js +657 -0
  271. package/dist/chunks/number-input-CzObpfFa.es.js.map +1 -0
  272. package/dist/chunks/openLink-Ctl0AdAy.es.js.map +1 -1
  273. package/dist/chunks/openLink-DkCJYbzq.cjs.js.map +1 -1
  274. package/dist/chunks/password-input-BqhrDjyW.cjs.js +2 -0
  275. package/dist/chunks/password-input-BqhrDjyW.cjs.js.map +1 -0
  276. package/dist/chunks/password-input-C_rdTND7.es.js +50 -0
  277. package/dist/chunks/password-input-C_rdTND7.es.js.map +1 -0
  278. package/dist/chunks/platform-BDLy2vDY.cjs.js.map +1 -1
  279. package/dist/chunks/platform-Z5fvtFmM.es.js.map +1 -1
  280. package/dist/chunks/progress-bar-CrS1rODC.cjs.js +2 -0
  281. package/dist/chunks/progress-bar-CrS1rODC.cjs.js.map +1 -0
  282. package/dist/chunks/progress-bar-pPWJ1Sn8.es.js +77 -0
  283. package/dist/chunks/progress-bar-pPWJ1Sn8.es.js.map +1 -0
  284. package/dist/chunks/radio-input-BTEXrXaF.cjs.js +2 -0
  285. package/dist/chunks/radio-input-BTEXrXaF.cjs.js.map +1 -0
  286. package/dist/chunks/radio-input-OpbQD2zP.es.js +341 -0
  287. package/dist/chunks/radio-input-OpbQD2zP.es.js.map +1 -0
  288. package/dist/chunks/range-calendar-BOP_J_5a.es.js +186 -0
  289. package/dist/chunks/range-calendar-BOP_J_5a.es.js.map +1 -0
  290. package/dist/chunks/range-calendar-CFotnBzs.cjs.js +2 -0
  291. package/dist/chunks/range-calendar-CFotnBzs.cjs.js.map +1 -0
  292. package/dist/chunks/rich-text-input-CItP9BzJ.cjs.js +2 -0
  293. package/dist/chunks/rich-text-input-CItP9BzJ.cjs.js.map +1 -0
  294. package/dist/chunks/rich-text-input-CgrxAPHc.es.js +691 -0
  295. package/dist/chunks/rich-text-input-CgrxAPHc.es.js.map +1 -0
  296. package/dist/chunks/scrollIntoView-BYF_8_6g.es.js.map +1 -1
  297. package/dist/chunks/scrollIntoView-BzIqpHLO.cjs.js.map +1 -1
  298. package/dist/chunks/select-CAeD_ZuZ.es.js +558 -0
  299. package/dist/chunks/select-CAeD_ZuZ.es.js.map +1 -0
  300. package/dist/chunks/select-Coyt1pJN.cjs.js +2 -0
  301. package/dist/chunks/select-Coyt1pJN.cjs.js.map +1 -0
  302. package/dist/chunks/simple-grid-Cd2MJxSX.cjs.js +2 -0
  303. package/dist/chunks/simple-grid-Cd2MJxSX.cjs.js.map +1 -0
  304. package/dist/chunks/simple-grid-DU5v66TG.es.js +15 -0
  305. package/dist/chunks/simple-grid-DU5v66TG.es.js.map +1 -0
  306. package/dist/chunks/slate-helpers-BN_9Hky2.cjs.js +24 -0
  307. package/dist/chunks/slate-helpers-BN_9Hky2.cjs.js.map +1 -0
  308. package/dist/chunks/slate-helpers-DunxggA8.es.js +6919 -0
  309. package/dist/chunks/slate-helpers-DunxggA8.es.js.map +1 -0
  310. package/dist/chunks/split-button-BYrr5vRr.cjs.js +2 -0
  311. package/dist/chunks/split-button-BYrr5vRr.cjs.js.map +1 -0
  312. package/dist/chunks/split-button-j2bgcP59.es.js +103 -0
  313. package/dist/chunks/split-button-j2bgcP59.es.js.map +1 -0
  314. package/dist/chunks/stack-CIN13EDn.cjs.js +2 -0
  315. package/dist/chunks/stack-CIN13EDn.cjs.js.map +1 -0
  316. package/dist/chunks/stack-CoNreM7B.es.js +11 -0
  317. package/dist/chunks/stack-CoNreM7B.es.js.map +1 -0
  318. package/dist/chunks/switch-BgNpbn2e.cjs.js +2 -0
  319. package/dist/chunks/switch-BgNpbn2e.cjs.js.map +1 -0
  320. package/dist/chunks/switch-Cid4U3m8.es.js +79 -0
  321. package/dist/chunks/switch-Cid4U3m8.es.js.map +1 -0
  322. package/dist/chunks/tag-group-B3YSTBpb.cjs.js +2 -0
  323. package/dist/chunks/tag-group-B3YSTBpb.cjs.js.map +1 -0
  324. package/dist/chunks/tag-group-CeNHz5QQ.es.js +781 -0
  325. package/dist/chunks/tag-group-CeNHz5QQ.es.js.map +1 -0
  326. package/dist/chunks/text-CCW9kDT_.cjs.js +2 -0
  327. package/dist/chunks/text-CCW9kDT_.cjs.js.map +1 -0
  328. package/dist/chunks/text-DfQpupDi.es.js +24 -0
  329. package/dist/chunks/text-DfQpupDi.es.js.map +1 -0
  330. package/dist/chunks/text-input-C2y4O13I.cjs.js +2 -0
  331. package/dist/chunks/text-input-C2y4O13I.cjs.js.map +1 -0
  332. package/dist/chunks/text-input-TZXg0lEQ.es.js +18 -0
  333. package/dist/chunks/text-input-TZXg0lEQ.es.js.map +1 -0
  334. package/dist/chunks/time-input-CI_HoOGU.es.js +130 -0
  335. package/dist/chunks/time-input-CI_HoOGU.es.js.map +1 -0
  336. package/dist/chunks/time-input-cHUvGWDc.cjs.js +2 -0
  337. package/dist/chunks/time-input-cHUvGWDc.cjs.js.map +1 -0
  338. package/dist/chunks/toggle-button-C9ezVsSp.cjs.js +2 -0
  339. package/dist/chunks/toggle-button-C9ezVsSp.cjs.js.map +1 -0
  340. package/dist/chunks/toggle-button-a0gCembi.es.js +29 -0
  341. package/dist/chunks/toggle-button-a0gCembi.es.js.map +1 -0
  342. package/dist/chunks/toggle-button-group-DX134q7m.cjs.js +2 -0
  343. package/dist/chunks/toggle-button-group-DX134q7m.cjs.js.map +1 -0
  344. package/dist/chunks/toggle-button-group-jRdpdYyd.es.js +81 -0
  345. package/dist/chunks/toggle-button-group-jRdpdYyd.es.js.map +1 -0
  346. package/dist/chunks/toolbar-CLGq6IO7.cjs.js +2 -0
  347. package/dist/chunks/toolbar-CLGq6IO7.cjs.js.map +1 -0
  348. package/dist/chunks/toolbar-hpBfKrTl.es.js +59 -0
  349. package/dist/chunks/toolbar-hpBfKrTl.es.js.map +1 -0
  350. package/dist/chunks/tooltip-B1YdruCE.es.js +269 -0
  351. package/dist/chunks/tooltip-B1YdruCE.es.js.map +1 -0
  352. package/dist/chunks/tooltip-g8-hEdZp.cjs.js +2 -0
  353. package/dist/chunks/tooltip-g8-hEdZp.cjs.js.map +1 -0
  354. package/dist/chunks/tooltip.recipe-Cqi_tgR5.es.js +24 -0
  355. package/dist/chunks/tooltip.recipe-Cqi_tgR5.es.js.map +1 -0
  356. package/dist/chunks/tooltip.recipe-dx7DAJbZ.cjs.js +2 -0
  357. package/dist/chunks/tooltip.recipe-dx7DAJbZ.cjs.js.map +1 -0
  358. package/dist/chunks/use-formatting-state-DVcnyVBl.cjs.js +2 -0
  359. package/dist/chunks/use-formatting-state-DVcnyVBl.cjs.js.map +1 -0
  360. package/dist/chunks/use-formatting-state-DdKYccZs.es.js +247 -0
  361. package/dist/chunks/use-formatting-state-DdKYccZs.es.js.map +1 -0
  362. package/dist/chunks/useButton-BgBfaV_L.cjs.js +2 -0
  363. package/dist/chunks/useButton-BgBfaV_L.cjs.js.map +1 -0
  364. package/dist/chunks/useButton-DAeSjgg9.es.js +57 -0
  365. package/dist/chunks/useButton-DAeSjgg9.es.js.map +1 -0
  366. package/dist/chunks/useCollator-BHMZd1r6.es.js +12 -0
  367. package/dist/chunks/useCollator-BHMZd1r6.es.js.map +1 -0
  368. package/dist/chunks/useCollator-YVJAe1GI.cjs.js +2 -0
  369. package/dist/chunks/useCollator-YVJAe1GI.cjs.js.map +1 -0
  370. package/dist/chunks/useControlledState-D0L6S_5r.cjs.js.map +1 -1
  371. package/dist/chunks/useControlledState-u436Wbp1.es.js.map +1 -1
  372. package/dist/chunks/useDateFormatter-C7Kxzwro.es.js +1601 -0
  373. package/dist/chunks/useDateFormatter-C7Kxzwro.es.js.map +1 -0
  374. package/dist/chunks/useDateFormatter-CS19Cch2.cjs.js +2 -0
  375. package/dist/chunks/useDateFormatter-CS19Cch2.cjs.js.map +1 -0
  376. package/dist/chunks/useEvent-CuUOU5WV.cjs.js.map +1 -1
  377. package/dist/chunks/useEvent-YHhqZvpU.es.js.map +1 -1
  378. package/dist/chunks/useField-Ce9zQxmx.es.js.map +1 -1
  379. package/dist/chunks/useField-DmqO9k7a.cjs.js.map +1 -1
  380. package/dist/chunks/useFilter-CG8lxfCP.cjs.js +2 -0
  381. package/dist/chunks/useFilter-CG8lxfCP.cjs.js.map +1 -0
  382. package/dist/chunks/useFilter-DOfNzeZ9.es.js +36 -0
  383. package/dist/chunks/useFilter-DOfNzeZ9.es.js.map +1 -0
  384. package/dist/chunks/useFocus-BtJ38vev.cjs.js +2 -0
  385. package/dist/chunks/useFocus-BtJ38vev.cjs.js.map +1 -0
  386. package/dist/chunks/useFocus-DkWJ2TJC.es.js +29 -0
  387. package/dist/chunks/useFocus-DkWJ2TJC.es.js.map +1 -0
  388. package/dist/chunks/useFocusRing-CzFer4bD.cjs.js +2 -0
  389. package/dist/chunks/useFocusRing-CzFer4bD.cjs.js.map +1 -0
  390. package/dist/chunks/useFocusRing-updnkDQg.es.js +35 -0
  391. package/dist/chunks/useFocusRing-updnkDQg.es.js.map +1 -0
  392. package/dist/chunks/useFocusVisible-CWDaG0ze.es.js +111 -0
  393. package/dist/chunks/useFocusVisible-CWDaG0ze.es.js.map +1 -0
  394. package/dist/chunks/useFocusVisible-Co0C61s7.cjs.js +2 -0
  395. package/dist/chunks/useFocusVisible-Co0C61s7.cjs.js.map +1 -0
  396. package/dist/chunks/useFocusWithin-BDSWp3rw.cjs.js +2 -0
  397. package/dist/chunks/useFocusWithin-BDSWp3rw.cjs.js.map +1 -0
  398. package/dist/chunks/useFocusWithin-ByYlHjju.es.js +56 -0
  399. package/dist/chunks/useFocusWithin-ByYlHjju.es.js.map +1 -0
  400. package/dist/chunks/useFocusable-CrsD8ZcF.es.js +77 -0
  401. package/dist/chunks/useFocusable-CrsD8ZcF.es.js.map +1 -0
  402. package/dist/chunks/useFocusable-DCgmQxS1.cjs.js +2 -0
  403. package/dist/chunks/useFocusable-DCgmQxS1.cjs.js.map +1 -0
  404. package/dist/chunks/useFormReset--wPlnEOl.cjs.js.map +1 -1
  405. package/dist/chunks/useFormReset-DurgUJL-.es.js.map +1 -1
  406. package/dist/chunks/useFormValidation-4hZ1_a6w.es.js +202 -0
  407. package/dist/chunks/useFormValidation-4hZ1_a6w.es.js.map +1 -0
  408. package/dist/chunks/useFormValidation-BEaCuNx1.cjs.js +2 -0
  409. package/dist/chunks/useFormValidation-BEaCuNx1.cjs.js.map +1 -0
  410. package/dist/chunks/useGlobalListeners-BOOfV5Wh.es.js.map +1 -1
  411. package/dist/chunks/useGlobalListeners-DcmIlwrO.cjs.js.map +1 -1
  412. package/dist/chunks/useHighlightSelectionDescription-BQg1WcM3.es.js +598 -0
  413. package/dist/chunks/useHighlightSelectionDescription-BQg1WcM3.es.js.map +1 -0
  414. package/dist/chunks/useHighlightSelectionDescription-CpDw-Mgj.cjs.js +2 -0
  415. package/dist/chunks/useHighlightSelectionDescription-CpDw-Mgj.cjs.js.map +1 -0
  416. package/dist/chunks/useHover-CiP9jMFy.cjs.js +2 -0
  417. package/dist/chunks/useHover-CiP9jMFy.cjs.js.map +1 -0
  418. package/dist/chunks/useHover-DhoE75lX.es.js +86 -0
  419. package/dist/chunks/useHover-DhoE75lX.es.js.map +1 -0
  420. package/dist/chunks/useLabel-BBmkkrPP.es.js.map +1 -1
  421. package/dist/chunks/useLabel-Y8tWagLu.cjs.js.map +1 -1
  422. package/dist/chunks/useLocalizedStringFormatter-BRnRyxJp.es.js +97 -0
  423. package/dist/chunks/useLocalizedStringFormatter-BRnRyxJp.es.js.map +1 -0
  424. package/dist/chunks/useLocalizedStringFormatter-sB0mFYtL.cjs.js +2 -0
  425. package/dist/chunks/useLocalizedStringFormatter-sB0mFYtL.cjs.js.map +1 -0
  426. package/dist/chunks/useObjectRef-CaJ5pgjX.es.js.map +1 -1
  427. package/dist/chunks/useObjectRef-dXOJdONs.cjs.js.map +1 -1
  428. package/dist/chunks/usePress-C8-hLXJw.cjs.js +8 -0
  429. package/dist/chunks/usePress-C8-hLXJw.cjs.js.map +1 -0
  430. package/dist/chunks/usePress-DHhWHfMz.es.js +456 -0
  431. package/dist/chunks/usePress-DHhWHfMz.es.js.map +1 -0
  432. package/dist/chunks/useProgressBar-DHFmTHqL.es.js +48 -0
  433. package/dist/chunks/useProgressBar-DHFmTHqL.es.js.map +1 -0
  434. package/dist/chunks/useProgressBar-DWH4I0qR.cjs.js +2 -0
  435. package/dist/chunks/useProgressBar-DWH4I0qR.cjs.js.map +1 -0
  436. package/dist/chunks/useSeparator-B-OtWwE7.cjs.js.map +1 -1
  437. package/dist/chunks/useSeparator-Dg70ACBm.es.js.map +1 -1
  438. package/dist/chunks/useSingleSelectListState-D1rjgMv_.es.js +35 -0
  439. package/dist/chunks/useSingleSelectListState-D1rjgMv_.es.js.map +1 -0
  440. package/dist/chunks/useSingleSelectListState-F2WkLZRg.cjs.js +2 -0
  441. package/dist/chunks/useSingleSelectListState-F2WkLZRg.cjs.js.map +1 -0
  442. package/dist/chunks/useSpinButton-C9DPDo0r.es.js +433 -0
  443. package/dist/chunks/useSpinButton-C9DPDo0r.es.js.map +1 -0
  444. package/dist/chunks/useSpinButton-DA7sVP3T.cjs.js +2 -0
  445. package/dist/chunks/useSpinButton-DA7sVP3T.cjs.js.map +1 -0
  446. package/dist/chunks/useSyncRef-DGRbdR4H.es.js.map +1 -1
  447. package/dist/chunks/useSyncRef-bcjp9eId.cjs.js.map +1 -1
  448. package/dist/chunks/useTextField-BcthGRd8.cjs.js +2 -0
  449. package/dist/chunks/useTextField-BcthGRd8.cjs.js.map +1 -0
  450. package/dist/chunks/useTextField-BnL6tOdd.es.js +91 -0
  451. package/dist/chunks/useTextField-BnL6tOdd.es.js.map +1 -0
  452. package/dist/chunks/useToggle-DqruaaTq.es.js +62 -0
  453. package/dist/chunks/useToggle-DqruaaTq.es.js.map +1 -0
  454. package/dist/chunks/useToggle-VJWgbeCC.cjs.js +2 -0
  455. package/dist/chunks/useToggle-VJWgbeCC.cjs.js.map +1 -0
  456. package/dist/chunks/useToggleState-Dl-o05wQ.cjs.js.map +1 -1
  457. package/dist/chunks/useToggleState-Uh0wTgdI.es.js.map +1 -1
  458. package/dist/chunks/useToolbar-Bqn3EANT.cjs.js +2 -0
  459. package/dist/chunks/useToolbar-Bqn3EANT.cjs.js.map +1 -0
  460. package/dist/chunks/useToolbar-CLH6Sjes.es.js +55 -0
  461. package/dist/chunks/useToolbar-CLH6Sjes.es.js.map +1 -0
  462. package/dist/chunks/useUpdateEffect-C5YQs_1w.cjs.js.map +1 -1
  463. package/dist/chunks/useUpdateEffect-CCDx8D4X.es.js.map +1 -1
  464. package/dist/chunks/utils-BGHwK7fd.cjs.js +2 -0
  465. package/dist/chunks/utils-BGHwK7fd.cjs.js.map +1 -0
  466. package/dist/chunks/utils-BHdR5Nww.cjs.js.map +1 -1
  467. package/dist/chunks/utils-BkdW_cdL.es.js.map +1 -1
  468. package/dist/chunks/utils-jpfA6kxk.es.js +188 -0
  469. package/dist/chunks/utils-jpfA6kxk.es.js.map +1 -0
  470. package/dist/chunks/visually-hidden-Bh-G5QHv.cjs.js +2 -0
  471. package/dist/chunks/visually-hidden-Bh-G5QHv.cjs.js.map +1 -0
  472. package/dist/chunks/visually-hidden-BluyWhUI.es.js +11 -0
  473. package/dist/chunks/visually-hidden-BluyWhUI.es.js.map +1 -0
  474. package/dist/code.d.ts +9 -0
  475. package/dist/combobox.d.ts +9 -0
  476. package/dist/components/accordion.cjs +1 -1
  477. package/dist/components/accordion.es.js +1 -1
  478. package/dist/components/alert.cjs +1 -1
  479. package/dist/components/alert.es.js +1 -1
  480. package/dist/components/avatar.cjs +1 -1
  481. package/dist/components/avatar.es.js +1 -1
  482. package/dist/components/badge.cjs +1 -1
  483. package/dist/components/badge.es.js +1 -1
  484. package/dist/components/box.cjs +1 -1
  485. package/dist/components/box.es.js +1 -1
  486. package/dist/components/button.cjs +1 -1
  487. package/dist/components/button.es.js +1 -1
  488. package/dist/components/calendar.cjs +1 -1
  489. package/dist/components/calendar.es.js +1 -1
  490. package/dist/components/card.cjs +1 -1
  491. package/dist/components/card.es.js +1 -1
  492. package/dist/components/checkbox.cjs +1 -1
  493. package/dist/components/checkbox.es.js +1 -1
  494. package/dist/components/code.cjs +1 -1
  495. package/dist/components/code.es.js +1 -1
  496. package/dist/components/combobox.cjs +1 -1
  497. package/dist/components/combobox.es.js +1 -1
  498. package/dist/components/components.cjs +1 -1
  499. package/dist/components/components.es.js +118 -116
  500. package/dist/components/components.es.js.map +1 -1
  501. package/dist/components/constants.cjs +2 -0
  502. package/dist/components/constants.cjs.map +1 -0
  503. package/dist/components/constants.es.js +125 -0
  504. package/dist/components/constants.es.js.map +1 -0
  505. package/dist/components/data-table.cjs +1 -1
  506. package/dist/components/data-table.es.js +10 -11
  507. package/dist/components/date-input.cjs +1 -1
  508. package/dist/components/date-input.es.js +1 -1
  509. package/dist/components/date-picker.cjs +1 -1
  510. package/dist/components/date-picker.es.js +1 -1
  511. package/dist/components/date-range-picker.cjs +1 -1
  512. package/dist/components/date-range-picker.es.js +1 -1
  513. package/dist/components/dialog.cjs +1 -1
  514. package/dist/components/dialog.es.js +1 -1
  515. package/dist/components/divider.cjs +1 -1
  516. package/dist/components/divider.es.js +1 -1
  517. package/dist/components/flex.cjs +1 -1
  518. package/dist/components/flex.es.js +1 -1
  519. package/dist/components/form-field.cjs +1 -1
  520. package/dist/components/form-field.es.js +1 -1
  521. package/dist/components/grid.cjs +1 -1
  522. package/dist/components/grid.es.js +1 -1
  523. package/dist/components/group.cjs +1 -1
  524. package/dist/components/group.es.js +1 -1
  525. package/dist/components/heading.cjs +1 -1
  526. package/dist/components/heading.es.js +2 -2
  527. package/dist/components/hooks.cjs +2 -0
  528. package/dist/components/hooks.cjs.map +1 -0
  529. package/dist/components/hooks.es.js +8 -0
  530. package/dist/components/hooks.es.js.map +1 -0
  531. package/dist/components/icon-button.cjs +1 -1
  532. package/dist/components/icon-button.es.js +1 -1
  533. package/dist/components/icon-toggle-button.cjs +1 -1
  534. package/dist/components/icon-toggle-button.es.js +1 -1
  535. package/dist/components/icon.cjs +1 -1
  536. package/dist/components/icon.es.js +1 -1
  537. package/dist/components/image.cjs +1 -1
  538. package/dist/components/image.es.js +1 -1
  539. package/dist/components/kbd.cjs +1 -1
  540. package/dist/components/kbd.es.js +1 -1
  541. package/dist/components/link.cjs +1 -1
  542. package/dist/components/link.es.js +1 -1
  543. package/dist/components/list.cjs +1 -1
  544. package/dist/components/list.es.js +1 -1
  545. package/dist/components/loading-spinner.cjs +1 -1
  546. package/dist/components/loading-spinner.es.js +1 -1
  547. package/dist/components/multiline-text-input.cjs +1 -1
  548. package/dist/components/multiline-text-input.es.js +1 -1
  549. package/dist/components/nimbus-provider.cjs +1 -1
  550. package/dist/components/nimbus-provider.es.js +1 -1
  551. package/dist/components/number-input.cjs +1 -1
  552. package/dist/components/number-input.es.js +1 -1
  553. package/dist/components/password-input.cjs +1 -1
  554. package/dist/components/password-input.es.js +1 -1
  555. package/dist/components/popover.cjs +2 -0
  556. package/dist/components/popover.cjs.map +1 -0
  557. package/dist/components/popover.es.js +25 -0
  558. package/dist/components/popover.es.js.map +1 -0
  559. package/dist/components/progress-bar.cjs +1 -1
  560. package/dist/components/progress-bar.es.js +1 -1
  561. package/dist/components/radio-input.cjs +1 -1
  562. package/dist/components/radio-input.es.js +1 -1
  563. package/dist/components/range-calendar.cjs +1 -1
  564. package/dist/components/range-calendar.es.js +1 -1
  565. package/dist/components/rich-text-input.cjs +2 -0
  566. package/dist/components/rich-text-input.cjs.map +1 -0
  567. package/dist/components/rich-text-input.es.js +5 -0
  568. package/dist/components/rich-text-input.es.js.map +1 -0
  569. package/dist/components/select.cjs +1 -1
  570. package/dist/components/select.es.js +1 -1
  571. package/dist/components/simple-grid.cjs +1 -1
  572. package/dist/components/simple-grid.es.js +1 -1
  573. package/dist/components/split-button.cjs +1 -1
  574. package/dist/components/split-button.es.js +1 -1
  575. package/dist/components/stack.cjs +1 -1
  576. package/dist/components/stack.es.js +1 -1
  577. package/dist/components/switch.cjs +1 -1
  578. package/dist/components/switch.es.js +1 -1
  579. package/dist/components/table.cjs +1 -1
  580. package/dist/components/table.es.js +2 -2
  581. package/dist/components/tag-group.cjs +1 -1
  582. package/dist/components/tag-group.es.js +1 -1
  583. package/dist/components/text-input.cjs +1 -1
  584. package/dist/components/text-input.es.js +1 -1
  585. package/dist/components/text.cjs +1 -1
  586. package/dist/components/text.es.js +1 -1
  587. package/dist/components/time-input.cjs +1 -1
  588. package/dist/components/time-input.es.js +1 -1
  589. package/dist/components/toggle-button-group.cjs +1 -1
  590. package/dist/components/toggle-button-group.es.js +1 -1
  591. package/dist/components/toggle-button.cjs +1 -1
  592. package/dist/components/toggle-button.es.js +1 -1
  593. package/dist/components/toolbar.cjs +1 -1
  594. package/dist/components/toolbar.es.js +1 -1
  595. package/dist/components/tooltip.cjs +1 -1
  596. package/dist/components/tooltip.es.js +2 -2
  597. package/dist/components/utils.cjs +2 -0
  598. package/dist/components/utils.cjs.map +1 -0
  599. package/dist/components/utils.es.js +76 -0
  600. package/dist/components/utils.es.js.map +1 -0
  601. package/dist/components/visually-hidden.cjs +1 -1
  602. package/dist/components/visually-hidden.es.js +1 -1
  603. package/dist/components.d.ts +221 -86
  604. package/dist/constants.d.ts +129 -0
  605. package/dist/data-table.d.ts +131 -72
  606. package/dist/date-input.d.ts +9 -0
  607. package/dist/date-picker.d.ts +9 -0
  608. package/dist/date-range-picker.d.ts +9 -0
  609. package/dist/dialog.d.ts +9 -0
  610. package/dist/divider.d.ts +9 -0
  611. package/dist/flex.d.ts +9 -0
  612. package/dist/form-field.d.ts +9 -0
  613. package/dist/grid.d.ts +9 -0
  614. package/dist/group.d.ts +9 -0
  615. package/dist/heading.d.ts +10 -1
  616. package/dist/hooks.d.ts +60 -0
  617. package/dist/icon-button.d.ts +9 -0
  618. package/dist/icon-toggle-button.d.ts +9 -0
  619. package/dist/icon.d.ts +9 -0
  620. package/dist/image.d.ts +9 -0
  621. package/dist/index.cjs +1 -1
  622. package/dist/index.cjs.map +1 -1
  623. package/dist/index.d.ts +263 -146
  624. package/dist/index.es.js +422 -286
  625. package/dist/index.es.js.map +1 -1
  626. package/dist/kbd.d.ts +9 -0
  627. package/dist/link.d.ts +9 -0
  628. package/dist/list.d.ts +9 -0
  629. package/dist/loading-spinner.d.ts +9 -0
  630. package/dist/multiline-text-input.d.ts +9 -0
  631. package/dist/nimbus-provider.d.ts +9 -0
  632. package/dist/number-input.d.ts +9 -0
  633. package/dist/password-input.d.ts +9 -0
  634. package/dist/popover.d.ts +27 -0
  635. package/dist/progress-bar.d.ts +13 -2
  636. package/dist/radio-input.d.ts +9 -0
  637. package/dist/range-calendar.d.ts +9 -0
  638. package/dist/rich-text-input.d.ts +79 -0
  639. package/dist/select.d.ts +12 -3
  640. package/dist/setup-jsdom-polyfills.d.ts +9 -0
  641. package/dist/simple-grid.d.ts +10 -1
  642. package/dist/split-button.d.ts +9 -0
  643. package/dist/stack.d.ts +9 -0
  644. package/dist/switch.d.ts +9 -0
  645. package/dist/table.d.ts +9 -0
  646. package/dist/tag-group.d.ts +9 -0
  647. package/dist/text-input.d.ts +9 -0
  648. package/dist/text.d.ts +10 -1
  649. package/dist/time-input.d.ts +9 -0
  650. package/dist/toggle-button-group.d.ts +9 -0
  651. package/dist/toggle-button.d.ts +9 -0
  652. package/dist/toolbar.d.ts +25 -2
  653. package/dist/tooltip.d.ts +9 -0
  654. package/dist/utils.d.ts +164 -0
  655. package/dist/visually-hidden.d.ts +9 -0
  656. package/package.json +31 -31
  657. package/dist/chunks/Button-C-yUWwZg.es.js +0 -73
  658. package/dist/chunks/Button-C-yUWwZg.es.js.map +0 -1
  659. package/dist/chunks/Button-DQ_WkLNH.cjs.js +0 -2
  660. package/dist/chunks/Button-DQ_WkLNH.cjs.js.map +0 -1
  661. package/dist/chunks/Collection-BsItrctR.cjs.js +0 -18
  662. package/dist/chunks/Collection-BsItrctR.cjs.js.map +0 -1
  663. package/dist/chunks/Collection-DFZhstai.es.js +0 -1896
  664. package/dist/chunks/Collection-DFZhstai.es.js.map +0 -1
  665. package/dist/chunks/DateField-D-KvZd-Q.cjs.js +0 -2
  666. package/dist/chunks/DateField-D-KvZd-Q.cjs.js.map +0 -1
  667. package/dist/chunks/DateField-m1BUGo8i.es.js +0 -2672
  668. package/dist/chunks/DateField-m1BUGo8i.es.js.map +0 -1
  669. package/dist/chunks/DatePicker-BQ6EfAU2.cjs.js +0 -2
  670. package/dist/chunks/DatePicker-BQ6EfAU2.cjs.js.map +0 -1
  671. package/dist/chunks/DatePicker-DtefBSoN.es.js +0 -779
  672. package/dist/chunks/DatePicker-DtefBSoN.es.js.map +0 -1
  673. package/dist/chunks/Dialog-B4OIDU7t.cjs.js +0 -2
  674. package/dist/chunks/Dialog-B4OIDU7t.cjs.js.map +0 -1
  675. package/dist/chunks/Dialog-DNPIKkGE.es.js +0 -1904
  676. package/dist/chunks/Dialog-DNPIKkGE.es.js.map +0 -1
  677. package/dist/chunks/FocusScope-B78iFLeF.cjs.js +0 -2
  678. package/dist/chunks/FocusScope-B78iFLeF.cjs.js.map +0 -1
  679. package/dist/chunks/FocusScope-C1Aw7j9H.es.js +0 -625
  680. package/dist/chunks/FocusScope-C1Aw7j9H.es.js.map +0 -1
  681. package/dist/chunks/Group-KVM7Xnxu.cjs.js +0 -2
  682. package/dist/chunks/Group-KVM7Xnxu.cjs.js.map +0 -1
  683. package/dist/chunks/Group-kT8-3NGT.es.js +0 -46
  684. package/dist/chunks/Group-kT8-3NGT.es.js.map +0 -1
  685. package/dist/chunks/Heading-CQJ-3eon.cjs.js +0 -2
  686. package/dist/chunks/Heading-CQJ-3eon.cjs.js.map +0 -1
  687. package/dist/chunks/Heading-DGvdnp7W.es.js +0 -1618
  688. package/dist/chunks/Heading-DGvdnp7W.es.js.map +0 -1
  689. package/dist/chunks/Input-93z9WR_a.cjs.js +0 -2
  690. package/dist/chunks/Input-93z9WR_a.cjs.js.map +0 -1
  691. package/dist/chunks/Input-C4REHQYD.es.js +0 -43
  692. package/dist/chunks/Input-C4REHQYD.es.js.map +0 -1
  693. package/dist/chunks/ListBox-B8Tz7EWS.es.js +0 -615
  694. package/dist/chunks/ListBox-B8Tz7EWS.es.js.map +0 -1
  695. package/dist/chunks/ListBox-CzZFXtHY.cjs.js +0 -2
  696. package/dist/chunks/ListBox-CzZFXtHY.cjs.js.map +0 -1
  697. package/dist/chunks/OverlayArrow-BD-oGsXg.es.js +0 -452
  698. package/dist/chunks/OverlayArrow-BD-oGsXg.es.js.map +0 -1
  699. package/dist/chunks/OverlayArrow-aq8OInch.cjs.js +0 -2
  700. package/dist/chunks/OverlayArrow-aq8OInch.cjs.js.map +0 -1
  701. package/dist/chunks/ProgressBar-BNPexoD9.cjs.js +0 -2
  702. package/dist/chunks/ProgressBar-BNPexoD9.cjs.js.map +0 -1
  703. package/dist/chunks/ProgressBar-BnGsEC_2.es.js +0 -42
  704. package/dist/chunks/ProgressBar-BnGsEC_2.es.js.map +0 -1
  705. package/dist/chunks/Separator-BUmWfQvi.es.js +0 -573
  706. package/dist/chunks/Separator-BUmWfQvi.es.js.map +0 -1
  707. package/dist/chunks/Separator-DBLZ41YB.cjs.js +0 -2
  708. package/dist/chunks/Separator-DBLZ41YB.cjs.js.map +0 -1
  709. package/dist/chunks/TextArea-Cc0cDaeu.cjs.js +0 -2
  710. package/dist/chunks/TextArea-Cc0cDaeu.cjs.js.map +0 -1
  711. package/dist/chunks/TextArea-DIyosEKy.es.js +0 -42
  712. package/dist/chunks/TextArea-DIyosEKy.es.js.map +0 -1
  713. package/dist/chunks/ToggleButton-BbM5Zv6q.cjs.js +0 -2
  714. package/dist/chunks/ToggleButton-BbM5Zv6q.cjs.js.map +0 -1
  715. package/dist/chunks/ToggleButton-CgbTgCVi.es.js +0 -145
  716. package/dist/chunks/ToggleButton-CgbTgCVi.es.js.map +0 -1
  717. package/dist/chunks/VisuallyHidden-B4l0wZHw.cjs.js +0 -2
  718. package/dist/chunks/VisuallyHidden-B4l0wZHw.cjs.js.map +0 -1
  719. package/dist/chunks/VisuallyHidden-C38kRNm0.es.js +0 -41
  720. package/dist/chunks/VisuallyHidden-C38kRNm0.es.js.map +0 -1
  721. package/dist/chunks/accordion-B_MC1ZEv.es.js +0 -223
  722. package/dist/chunks/accordion-B_MC1ZEv.es.js.map +0 -1
  723. package/dist/chunks/accordion-C9-YyEB4.cjs.js +0 -2
  724. package/dist/chunks/accordion-C9-YyEB4.cjs.js.map +0 -1
  725. package/dist/chunks/alert-BcTfv-Kw.es.js +0 -194
  726. package/dist/chunks/alert-BcTfv-Kw.es.js.map +0 -1
  727. package/dist/chunks/alert-Bp15DXZM.cjs.js +0 -2
  728. package/dist/chunks/alert-Bp15DXZM.cjs.js.map +0 -1
  729. package/dist/chunks/avatar-BWG1uDUT.cjs.js +0 -2
  730. package/dist/chunks/avatar-BWG1uDUT.cjs.js.map +0 -1
  731. package/dist/chunks/avatar-d49Ix9eV.es.js +0 -45
  732. package/dist/chunks/avatar-d49Ix9eV.es.js.map +0 -1
  733. package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js +0 -2
  734. package/dist/chunks/avatar.recipe-CQivdbFs.cjs.js.map +0 -1
  735. package/dist/chunks/avatar.recipe-CxXQlkH6.es.js +0 -39
  736. package/dist/chunks/avatar.recipe-CxXQlkH6.es.js.map +0 -1
  737. package/dist/chunks/badge-BeR8OqtD.es.js +0 -78
  738. package/dist/chunks/badge-BeR8OqtD.es.js.map +0 -1
  739. package/dist/chunks/badge-CJK91qKC.cjs.js +0 -2
  740. package/dist/chunks/badge-CJK91qKC.cjs.js.map +0 -1
  741. package/dist/chunks/box-7pkPaNxe.es.js +0 -13
  742. package/dist/chunks/box-7pkPaNxe.es.js.map +0 -1
  743. package/dist/chunks/box-DL4MWnyy.cjs.js +0 -2
  744. package/dist/chunks/box-DL4MWnyy.cjs.js.map +0 -1
  745. package/dist/chunks/button-D5pgTe6f.es.js +0 -57
  746. package/dist/chunks/button-D5pgTe6f.es.js.map +0 -1
  747. package/dist/chunks/button-IGP--12e.cjs.js +0 -2
  748. package/dist/chunks/button-IGP--12e.cjs.js.map +0 -1
  749. package/dist/chunks/button.recipe-ClPhJ93N.cjs.js +0 -2
  750. package/dist/chunks/button.recipe-ClPhJ93N.cjs.js.map +0 -1
  751. package/dist/chunks/button.recipe-D9e9Gh9L.es.js +0 -191
  752. package/dist/chunks/button.recipe-D9e9Gh9L.es.js.map +0 -1
  753. package/dist/chunks/calendar-CYqib6Tm.cjs.js +0 -2
  754. package/dist/chunks/calendar-CYqib6Tm.cjs.js.map +0 -1
  755. package/dist/chunks/calendar-jrs4VkfV.es.js +0 -209
  756. package/dist/chunks/calendar-jrs4VkfV.es.js.map +0 -1
  757. package/dist/chunks/card-4i9NTJKM.cjs.js +0 -2
  758. package/dist/chunks/card-4i9NTJKM.cjs.js.map +0 -1
  759. package/dist/chunks/card-D1BUuNzg.es.js +0 -139
  760. package/dist/chunks/card-D1BUuNzg.es.js.map +0 -1
  761. package/dist/chunks/checkbox-BJQlCxDq.es.js +0 -219
  762. package/dist/chunks/checkbox-BJQlCxDq.es.js.map +0 -1
  763. package/dist/chunks/checkbox-DVb0qX6x.cjs.js +0 -2
  764. package/dist/chunks/checkbox-DVb0qX6x.cjs.js.map +0 -1
  765. package/dist/chunks/code-C245FocZ.es.js +0 -8
  766. package/dist/chunks/code-C245FocZ.es.js.map +0 -1
  767. package/dist/chunks/code-DqjWYzPU.cjs.js +0 -2
  768. package/dist/chunks/code-DqjWYzPU.cjs.js.map +0 -1
  769. package/dist/chunks/combobox-P1kEHLnr.cjs.js +0 -2
  770. package/dist/chunks/combobox-P1kEHLnr.cjs.js.map +0 -1
  771. package/dist/chunks/combobox-eT94voy1.es.js +0 -1947
  772. package/dist/chunks/combobox-eT94voy1.es.js.map +0 -1
  773. package/dist/chunks/config-Mt8_uyhI.cjs.js +0 -2
  774. package/dist/chunks/config-Mt8_uyhI.cjs.js.map +0 -1
  775. package/dist/chunks/config-ufbQ08Vi.es.js +0 -6
  776. package/dist/chunks/config-ufbQ08Vi.es.js.map +0 -1
  777. package/dist/chunks/context-D0_cRaDZ.cjs.js +0 -2
  778. package/dist/chunks/context-D0_cRaDZ.cjs.js.map +0 -1
  779. package/dist/chunks/context-Pt-0ojuK.es.js +0 -94
  780. package/dist/chunks/context-Pt-0ojuK.es.js.map +0 -1
  781. package/dist/chunks/create-recipe-context-BEEJ70DA.cjs.js +0 -2
  782. package/dist/chunks/create-recipe-context-BEEJ70DA.cjs.js.map +0 -1
  783. package/dist/chunks/create-recipe-context-BuajKZ9o.es.js +0 -62
  784. package/dist/chunks/create-recipe-context-BuajKZ9o.es.js.map +0 -1
  785. package/dist/chunks/create-slot-recipe-context-CHGQvGou.cjs.js +0 -2
  786. package/dist/chunks/create-slot-recipe-context-CHGQvGou.cjs.js.map +0 -1
  787. package/dist/chunks/create-slot-recipe-context-DgamNbR-.es.js +0 -104
  788. package/dist/chunks/create-slot-recipe-context-DgamNbR-.es.js.map +0 -1
  789. package/dist/chunks/data-table-BRjRsTel.cjs.js +0 -2
  790. package/dist/chunks/data-table-BRjRsTel.cjs.js.map +0 -1
  791. package/dist/chunks/data-table-CSWloD1b.es.js +0 -3912
  792. package/dist/chunks/data-table-CSWloD1b.es.js.map +0 -1
  793. package/dist/chunks/date-input-BFHLRnBr.cjs.js +0 -2
  794. package/dist/chunks/date-input-BFHLRnBr.cjs.js.map +0 -1
  795. package/dist/chunks/date-input-DADLkfIT.es.js +0 -17
  796. package/dist/chunks/date-input-DADLkfIT.es.js.map +0 -1
  797. package/dist/chunks/date-picker-CgCR5Rwk.es.js +0 -236
  798. package/dist/chunks/date-picker-CgCR5Rwk.es.js.map +0 -1
  799. package/dist/chunks/date-picker-CsspyMz9.cjs.js +0 -2
  800. package/dist/chunks/date-picker-CsspyMz9.cjs.js.map +0 -1
  801. package/dist/chunks/date-range-picker-C6v-n1IH.es.js +0 -283
  802. package/dist/chunks/date-range-picker-C6v-n1IH.es.js.map +0 -1
  803. package/dist/chunks/date-range-picker-D_gkG0on.cjs.js +0 -2
  804. package/dist/chunks/date-range-picker-D_gkG0on.cjs.js.map +0 -1
  805. package/dist/chunks/dialog-B1XThG7_.cjs.js +0 -2
  806. package/dist/chunks/dialog-B1XThG7_.cjs.js.map +0 -1
  807. package/dist/chunks/dialog-De8l1nzr.es.js +0 -1874
  808. package/dist/chunks/dialog-De8l1nzr.es.js.map +0 -1
  809. package/dist/chunks/divider-BicBw1PK.cjs.js +0 -2
  810. package/dist/chunks/divider-BicBw1PK.cjs.js.map +0 -1
  811. package/dist/chunks/divider-DMH0p6Pr.es.js +0 -54
  812. package/dist/chunks/divider-DMH0p6Pr.es.js.map +0 -1
  813. package/dist/chunks/empty-B5_AO6Pg.cjs.js +0 -2
  814. package/dist/chunks/empty-B5_AO6Pg.cjs.js.map +0 -1
  815. package/dist/chunks/empty-D7ZFmvo6.es.js +0 -8
  816. package/dist/chunks/empty-D7ZFmvo6.es.js.map +0 -1
  817. package/dist/chunks/extractStyleProps-BBWaCIdJ.es.js +0 -11
  818. package/dist/chunks/extractStyleProps-BBWaCIdJ.es.js.map +0 -1
  819. package/dist/chunks/extractStyleProps-wjyId_vK.cjs.js +0 -2
  820. package/dist/chunks/extractStyleProps-wjyId_vK.cjs.js.map +0 -1
  821. package/dist/chunks/factory-DUzr3LTt.cjs.js +0 -3
  822. package/dist/chunks/factory-DUzr3LTt.cjs.js.map +0 -1
  823. package/dist/chunks/factory-Dwv06Ntb.es.js +0 -266
  824. package/dist/chunks/factory-Dwv06Ntb.es.js.map +0 -1
  825. package/dist/chunks/flex-9fkV4bsm.es.js +0 -40
  826. package/dist/chunks/flex-9fkV4bsm.es.js.map +0 -1
  827. package/dist/chunks/flex-CDVfeTs4.cjs.js +0 -2
  828. package/dist/chunks/flex-CDVfeTs4.cjs.js.map +0 -1
  829. package/dist/chunks/focusSafely-CpzfaUTO.cjs.js +0 -2
  830. package/dist/chunks/focusSafely-CpzfaUTO.cjs.js.map +0 -1
  831. package/dist/chunks/focusSafely-Di2ArC9L.es.js +0 -27
  832. package/dist/chunks/focusSafely-Di2ArC9L.es.js.map +0 -1
  833. package/dist/chunks/form-field-BHknOPYf.es.js +0 -310
  834. package/dist/chunks/form-field-BHknOPYf.es.js.map +0 -1
  835. package/dist/chunks/form-field-CM_uSyZr.cjs.js +0 -11
  836. package/dist/chunks/form-field-CM_uSyZr.cjs.js.map +0 -1
  837. package/dist/chunks/grid-DcLdIZYK.es.js +0 -14
  838. package/dist/chunks/grid-DcLdIZYK.es.js.map +0 -1
  839. package/dist/chunks/grid-Dm38IozR.cjs.js +0 -2
  840. package/dist/chunks/grid-Dm38IozR.cjs.js.map +0 -1
  841. package/dist/chunks/grid-item-B0PfRhfs.cjs.js +0 -2
  842. package/dist/chunks/grid-item-B0PfRhfs.cjs.js.map +0 -1
  843. package/dist/chunks/grid-item-BZOflk76.es.js +0 -75
  844. package/dist/chunks/grid-item-BZOflk76.es.js.map +0 -1
  845. package/dist/chunks/group-BQeamedA.es.js +0 -14
  846. package/dist/chunks/group-BQeamedA.es.js.map +0 -1
  847. package/dist/chunks/group-BwSwp_8B.cjs.js +0 -2
  848. package/dist/chunks/group-BwSwp_8B.cjs.js.map +0 -1
  849. package/dist/chunks/heading-CEFp09pV.cjs.js +0 -2
  850. package/dist/chunks/heading-CEFp09pV.cjs.js.map +0 -1
  851. package/dist/chunks/heading-DYcfaS5T.es.js +0 -8
  852. package/dist/chunks/heading-DYcfaS5T.es.js.map +0 -1
  853. package/dist/chunks/icon-Cgp53xQ2.es.js +0 -32
  854. package/dist/chunks/icon-Cgp53xQ2.es.js.map +0 -1
  855. package/dist/chunks/icon-DxRnsJFu.cjs.js +0 -2
  856. package/dist/chunks/icon-DxRnsJFu.cjs.js.map +0 -1
  857. package/dist/chunks/icon-button-C2GGAKhI.es.js +0 -14
  858. package/dist/chunks/icon-button-C2GGAKhI.es.js.map +0 -1
  859. package/dist/chunks/icon-button-KMr_sm5y.cjs.js +0 -2
  860. package/dist/chunks/icon-button-KMr_sm5y.cjs.js.map +0 -1
  861. package/dist/chunks/icon-toggle-button-CyhtfTs4.es.js +0 -13
  862. package/dist/chunks/icon-toggle-button-CyhtfTs4.es.js.map +0 -1
  863. package/dist/chunks/icon-toggle-button-p3GT9QUC.cjs.js +0 -2
  864. package/dist/chunks/icon-toggle-button-p3GT9QUC.cjs.js.map +0 -1
  865. package/dist/chunks/image-B_X4IZ54.es.js +0 -8
  866. package/dist/chunks/image-B_X4IZ54.es.js.map +0 -1
  867. package/dist/chunks/image-CenZDDs1.cjs.js +0 -2
  868. package/dist/chunks/image-CenZDDs1.cjs.js.map +0 -1
  869. package/dist/chunks/image-DCZ7u0Yz.cjs.js +0 -2
  870. package/dist/chunks/image-DCZ7u0Yz.cjs.js.map +0 -1
  871. package/dist/chunks/image-Dk3v9f16.es.js +0 -22
  872. package/dist/chunks/image-Dk3v9f16.es.js.map +0 -1
  873. package/dist/chunks/index-CPFuzoME.es.js +0 -3424
  874. package/dist/chunks/index-CPFuzoME.es.js.map +0 -1
  875. package/dist/chunks/index-CcqI-ipN.cjs.js +0 -2
  876. package/dist/chunks/index-CcqI-ipN.cjs.js.map +0 -1
  877. package/dist/chunks/index-DsGIn0AT.es.js +0 -51
  878. package/dist/chunks/index-DsGIn0AT.es.js.map +0 -1
  879. package/dist/chunks/index-XyB4gGC8.cjs.js +0 -4
  880. package/dist/chunks/index-XyB4gGC8.cjs.js.map +0 -1
  881. package/dist/chunks/kbd-CSMHvaH6.cjs.js +0 -2
  882. package/dist/chunks/kbd-CSMHvaH6.cjs.js.map +0 -1
  883. package/dist/chunks/kbd-CUSbYvfc.es.js +0 -16
  884. package/dist/chunks/kbd-CUSbYvfc.es.js.map +0 -1
  885. package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js +0 -2
  886. package/dist/chunks/kbd.recipe-9kxAU5ro.cjs.js.map +0 -1
  887. package/dist/chunks/kbd.recipe-BTW0MQqx.es.js +0 -26
  888. package/dist/chunks/kbd.recipe-BTW0MQqx.es.js.map +0 -1
  889. package/dist/chunks/link-B2cOAxZz.cjs.js +0 -2
  890. package/dist/chunks/link-B2cOAxZz.cjs.js.map +0 -1
  891. package/dist/chunks/link-DteZUB4U.es.js +0 -50
  892. package/dist/chunks/link-DteZUB4U.es.js.map +0 -1
  893. package/dist/chunks/link.recipe-BRnFQ5bP.es.js +0 -51
  894. package/dist/chunks/link.recipe-BRnFQ5bP.es.js.map +0 -1
  895. package/dist/chunks/link.recipe-BfCxtKjL.cjs.js +0 -2
  896. package/dist/chunks/link.recipe-BfCxtKjL.cjs.js.map +0 -1
  897. package/dist/chunks/list-Bm8bFcHO.cjs.js +0 -2
  898. package/dist/chunks/list-Bm8bFcHO.cjs.js.map +0 -1
  899. package/dist/chunks/list-De4DYOvu.es.js +0 -23
  900. package/dist/chunks/list-De4DYOvu.es.js.map +0 -1
  901. package/dist/chunks/loading-spinner-BMtvjIcS.es.js +0 -119
  902. package/dist/chunks/loading-spinner-BMtvjIcS.es.js.map +0 -1
  903. package/dist/chunks/loading-spinner-Cap3elI4.cjs.js +0 -2
  904. package/dist/chunks/loading-spinner-Cap3elI4.cjs.js.map +0 -1
  905. package/dist/chunks/make-element-focusable-_FWEyVtG.es.js +0 -22
  906. package/dist/chunks/make-element-focusable-_FWEyVtG.es.js.map +0 -1
  907. package/dist/chunks/make-element-focusable-fn-8kTQK.cjs.js +0 -2
  908. package/dist/chunks/make-element-focusable-fn-8kTQK.cjs.js.map +0 -1
  909. package/dist/chunks/multiline-text-input-CaGDNakb.es.js +0 -120
  910. package/dist/chunks/multiline-text-input-CaGDNakb.es.js.map +0 -1
  911. package/dist/chunks/multiline-text-input-ChVzVZob.cjs.js +0 -12
  912. package/dist/chunks/multiline-text-input-ChVzVZob.cjs.js.map +0 -1
  913. package/dist/chunks/namespace-BayyiBSr.es.js +0 -74
  914. package/dist/chunks/namespace-BayyiBSr.es.js.map +0 -1
  915. package/dist/chunks/namespace-E8aHFVxM.cjs.js +0 -2
  916. package/dist/chunks/namespace-E8aHFVxM.cjs.js.map +0 -1
  917. package/dist/chunks/nimbus-provider-DCCIMVE_.cjs.js +0 -2
  918. package/dist/chunks/nimbus-provider-DCCIMVE_.cjs.js.map +0 -1
  919. package/dist/chunks/nimbus-provider-Dlt9_yol.es.js +0 -101
  920. package/dist/chunks/nimbus-provider-Dlt9_yol.es.js.map +0 -1
  921. package/dist/chunks/number-input-BHHKhYR7.es.js +0 -669
  922. package/dist/chunks/number-input-BHHKhYR7.es.js.map +0 -1
  923. package/dist/chunks/number-input-DFFxFKrR.cjs.js +0 -2
  924. package/dist/chunks/number-input-DFFxFKrR.cjs.js.map +0 -1
  925. package/dist/chunks/password-input-DVcMdFAI.cjs.js +0 -2
  926. package/dist/chunks/password-input-DVcMdFAI.cjs.js.map +0 -1
  927. package/dist/chunks/password-input-DbMYteEW.es.js +0 -65
  928. package/dist/chunks/password-input-DbMYteEW.es.js.map +0 -1
  929. package/dist/chunks/progress-bar-BsWBRJc2.cjs.js +0 -2
  930. package/dist/chunks/progress-bar-BsWBRJc2.cjs.js.map +0 -1
  931. package/dist/chunks/progress-bar-C3sqvC_T.es.js +0 -77
  932. package/dist/chunks/progress-bar-C3sqvC_T.es.js.map +0 -1
  933. package/dist/chunks/provider-BzZZw3fF.cjs.js +0 -16
  934. package/dist/chunks/provider-BzZZw3fF.cjs.js.map +0 -1
  935. package/dist/chunks/provider-DxFdjgyb.es.js +0 -989
  936. package/dist/chunks/provider-DxFdjgyb.es.js.map +0 -1
  937. package/dist/chunks/radio-input-CFNznM66.es.js +0 -341
  938. package/dist/chunks/radio-input-CFNznM66.es.js.map +0 -1
  939. package/dist/chunks/radio-input-D3ePwO1n.cjs.js +0 -2
  940. package/dist/chunks/radio-input-D3ePwO1n.cjs.js.map +0 -1
  941. package/dist/chunks/range-calendar-Bk_im2QK.cjs.js +0 -2
  942. package/dist/chunks/range-calendar-Bk_im2QK.cjs.js.map +0 -1
  943. package/dist/chunks/range-calendar-C5pDvIuq.es.js +0 -187
  944. package/dist/chunks/range-calendar-C5pDvIuq.es.js.map +0 -1
  945. package/dist/chunks/select-BZGHsJAO.es.js +0 -571
  946. package/dist/chunks/select-BZGHsJAO.es.js.map +0 -1
  947. package/dist/chunks/select-DCQjhFbh.cjs.js +0 -2
  948. package/dist/chunks/select-DCQjhFbh.cjs.js.map +0 -1
  949. package/dist/chunks/simple-grid-1F5YBj03.es.js +0 -38
  950. package/dist/chunks/simple-grid-1F5YBj03.es.js.map +0 -1
  951. package/dist/chunks/simple-grid-BfDDcTNA.cjs.js +0 -2
  952. package/dist/chunks/simple-grid-BfDDcTNA.cjs.js.map +0 -1
  953. package/dist/chunks/split-button-CIHXMvxD.cjs.js +0 -2
  954. package/dist/chunks/split-button-CIHXMvxD.cjs.js.map +0 -1
  955. package/dist/chunks/split-button-DJoqZPXX.es.js +0 -262
  956. package/dist/chunks/split-button-DJoqZPXX.es.js.map +0 -1
  957. package/dist/chunks/stack-B2xQMEdj.cjs.js +0 -2
  958. package/dist/chunks/stack-B2xQMEdj.cjs.js.map +0 -1
  959. package/dist/chunks/stack-DosdbBli.es.js +0 -89
  960. package/dist/chunks/stack-DosdbBli.es.js.map +0 -1
  961. package/dist/chunks/switch-C3AG1gUR.cjs.js +0 -2
  962. package/dist/chunks/switch-C3AG1gUR.cjs.js.map +0 -1
  963. package/dist/chunks/switch-DEKbPCQG.es.js +0 -79
  964. package/dist/chunks/switch-DEKbPCQG.es.js.map +0 -1
  965. package/dist/chunks/tag-group-4kwJie4V.es.js +0 -768
  966. package/dist/chunks/tag-group-4kwJie4V.es.js.map +0 -1
  967. package/dist/chunks/tag-group-BYQkpbiY.cjs.js +0 -2
  968. package/dist/chunks/tag-group-BYQkpbiY.cjs.js.map +0 -1
  969. package/dist/chunks/text-DNjTZCtR.cjs.js +0 -2
  970. package/dist/chunks/text-DNjTZCtR.cjs.js.map +0 -1
  971. package/dist/chunks/text-QANNJ4E4.es.js +0 -26
  972. package/dist/chunks/text-QANNJ4E4.es.js.map +0 -1
  973. package/dist/chunks/text-input-COPlnTZU.es.js +0 -19
  974. package/dist/chunks/text-input-COPlnTZU.es.js.map +0 -1
  975. package/dist/chunks/text-input-DnS2RVDs.cjs.js +0 -2
  976. package/dist/chunks/text-input-DnS2RVDs.cjs.js.map +0 -1
  977. package/dist/chunks/time-input-BWkx15sb.cjs.js +0 -2
  978. package/dist/chunks/time-input-BWkx15sb.cjs.js.map +0 -1
  979. package/dist/chunks/time-input-DXMs43_R.es.js +0 -132
  980. package/dist/chunks/time-input-DXMs43_R.es.js.map +0 -1
  981. package/dist/chunks/toggle-button-BEvOqB5n.es.js +0 -30
  982. package/dist/chunks/toggle-button-BEvOqB5n.es.js.map +0 -1
  983. package/dist/chunks/toggle-button-PE5251Fm.cjs.js +0 -2
  984. package/dist/chunks/toggle-button-PE5251Fm.cjs.js.map +0 -1
  985. package/dist/chunks/toggle-button-group-B2G_b7h8.cjs.js +0 -2
  986. package/dist/chunks/toggle-button-group-B2G_b7h8.cjs.js.map +0 -1
  987. package/dist/chunks/toggle-button-group-CXrwjOF0.es.js +0 -82
  988. package/dist/chunks/toggle-button-group-CXrwjOF0.es.js.map +0 -1
  989. package/dist/chunks/toolbar-BJrobBzi.es.js +0 -59
  990. package/dist/chunks/toolbar-BJrobBzi.es.js.map +0 -1
  991. package/dist/chunks/toolbar-BxIQI626.cjs.js +0 -2
  992. package/dist/chunks/toolbar-BxIQI626.cjs.js.map +0 -1
  993. package/dist/chunks/tooltip-Ya7L6lQR.es.js +0 -274
  994. package/dist/chunks/tooltip-Ya7L6lQR.es.js.map +0 -1
  995. package/dist/chunks/tooltip-fOhxG4pp.cjs.js +0 -2
  996. package/dist/chunks/tooltip-fOhxG4pp.cjs.js.map +0 -1
  997. package/dist/chunks/tooltip.recipe-DsVUEki2.es.js +0 -24
  998. package/dist/chunks/tooltip.recipe-DsVUEki2.es.js.map +0 -1
  999. package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js +0 -2
  1000. package/dist/chunks/tooltip.recipe-VqGdDqQD.cjs.js.map +0 -1
  1001. package/dist/chunks/use-recipe-BZ_iqCkN.cjs.js +0 -2
  1002. package/dist/chunks/use-recipe-BZ_iqCkN.cjs.js.map +0 -1
  1003. package/dist/chunks/use-recipe-CR4W7Dne.es.js +0 -13
  1004. package/dist/chunks/use-recipe-CR4W7Dne.es.js.map +0 -1
  1005. package/dist/chunks/useButton-Cgkz8UEs.es.js +0 -56
  1006. package/dist/chunks/useButton-Cgkz8UEs.es.js.map +0 -1
  1007. package/dist/chunks/useButton-D3BedLtL.cjs.js +0 -2
  1008. package/dist/chunks/useButton-D3BedLtL.cjs.js.map +0 -1
  1009. package/dist/chunks/useCollator-BvjDbml1.es.js +0 -12
  1010. package/dist/chunks/useCollator-BvjDbml1.es.js.map +0 -1
  1011. package/dist/chunks/useCollator-ZqnkTllN.cjs.js +0 -2
  1012. package/dist/chunks/useCollator-ZqnkTllN.cjs.js.map +0 -1
  1013. package/dist/chunks/useDateFormatter-D9HBAX1w.es.js +0 -1601
  1014. package/dist/chunks/useDateFormatter-D9HBAX1w.es.js.map +0 -1
  1015. package/dist/chunks/useDateFormatter-G9oGkNG5.cjs.js +0 -2
  1016. package/dist/chunks/useDateFormatter-G9oGkNG5.cjs.js.map +0 -1
  1017. package/dist/chunks/useFilter-Bh0adxQ-.es.js +0 -36
  1018. package/dist/chunks/useFilter-Bh0adxQ-.es.js.map +0 -1
  1019. package/dist/chunks/useFilter-Du48WXDn.cjs.js +0 -2
  1020. package/dist/chunks/useFilter-Du48WXDn.cjs.js.map +0 -1
  1021. package/dist/chunks/useFocus-BcBbbuWU.cjs.js +0 -2
  1022. package/dist/chunks/useFocus-BcBbbuWU.cjs.js.map +0 -1
  1023. package/dist/chunks/useFocus-CeI1jbl8.es.js +0 -29
  1024. package/dist/chunks/useFocus-CeI1jbl8.es.js.map +0 -1
  1025. package/dist/chunks/useFocusRing-D8cwV0EM.es.js +0 -35
  1026. package/dist/chunks/useFocusRing-D8cwV0EM.es.js.map +0 -1
  1027. package/dist/chunks/useFocusRing-DRIoF592.cjs.js +0 -2
  1028. package/dist/chunks/useFocusRing-DRIoF592.cjs.js.map +0 -1
  1029. package/dist/chunks/useFocusVisible-C5ivHvqm.es.js +0 -111
  1030. package/dist/chunks/useFocusVisible-C5ivHvqm.es.js.map +0 -1
  1031. package/dist/chunks/useFocusVisible-bRnVksaU.cjs.js +0 -2
  1032. package/dist/chunks/useFocusVisible-bRnVksaU.cjs.js.map +0 -1
  1033. package/dist/chunks/useFocusWithin-i-cVKYQ8.cjs.js +0 -2
  1034. package/dist/chunks/useFocusWithin-i-cVKYQ8.cjs.js.map +0 -1
  1035. package/dist/chunks/useFocusWithin-yfiHuOEs.es.js +0 -56
  1036. package/dist/chunks/useFocusWithin-yfiHuOEs.es.js.map +0 -1
  1037. package/dist/chunks/useFocusable-BghVNiQU.es.js +0 -77
  1038. package/dist/chunks/useFocusable-BghVNiQU.es.js.map +0 -1
  1039. package/dist/chunks/useFocusable-avM9w6OE.cjs.js +0 -2
  1040. package/dist/chunks/useFocusable-avM9w6OE.cjs.js.map +0 -1
  1041. package/dist/chunks/useFormValidation-DJMNbIhx.es.js +0 -202
  1042. package/dist/chunks/useFormValidation-DJMNbIhx.es.js.map +0 -1
  1043. package/dist/chunks/useFormValidation-DJy_cdgv.cjs.js +0 -2
  1044. package/dist/chunks/useFormValidation-DJy_cdgv.cjs.js.map +0 -1
  1045. package/dist/chunks/useHighlightSelectionDescription-DAR8wV79.es.js +0 -598
  1046. package/dist/chunks/useHighlightSelectionDescription-DAR8wV79.es.js.map +0 -1
  1047. package/dist/chunks/useHighlightSelectionDescription-DPwy1mkw.cjs.js +0 -2
  1048. package/dist/chunks/useHighlightSelectionDescription-DPwy1mkw.cjs.js.map +0 -1
  1049. package/dist/chunks/useHover-BlZx5CU2.cjs.js +0 -2
  1050. package/dist/chunks/useHover-BlZx5CU2.cjs.js.map +0 -1
  1051. package/dist/chunks/useHover-cJOf02TT.es.js +0 -86
  1052. package/dist/chunks/useHover-cJOf02TT.es.js.map +0 -1
  1053. package/dist/chunks/useLocalizedStringFormatter-CvzOUusg.es.js +0 -97
  1054. package/dist/chunks/useLocalizedStringFormatter-CvzOUusg.es.js.map +0 -1
  1055. package/dist/chunks/useLocalizedStringFormatter-fJnbqb2x.cjs.js +0 -2
  1056. package/dist/chunks/useLocalizedStringFormatter-fJnbqb2x.cjs.js.map +0 -1
  1057. package/dist/chunks/usePress-BquTSwUd.es.js +0 -456
  1058. package/dist/chunks/usePress-BquTSwUd.es.js.map +0 -1
  1059. package/dist/chunks/usePress-D8F1U6qk.cjs.js +0 -8
  1060. package/dist/chunks/usePress-D8F1U6qk.cjs.js.map +0 -1
  1061. package/dist/chunks/useProgressBar-8ZyM2_T3.cjs.js +0 -2
  1062. package/dist/chunks/useProgressBar-8ZyM2_T3.cjs.js.map +0 -1
  1063. package/dist/chunks/useProgressBar-BgURyN6q.es.js +0 -48
  1064. package/dist/chunks/useProgressBar-BgURyN6q.es.js.map +0 -1
  1065. package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js +0 -2
  1066. package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js.map +0 -1
  1067. package/dist/chunks/useResizeObserver-FIPBIG5S.es.js +0 -32
  1068. package/dist/chunks/useResizeObserver-FIPBIG5S.es.js.map +0 -1
  1069. package/dist/chunks/useSingleSelectListState-BpAVpRdZ.cjs.js +0 -2
  1070. package/dist/chunks/useSingleSelectListState-BpAVpRdZ.cjs.js.map +0 -1
  1071. package/dist/chunks/useSingleSelectListState-CiK-JkEX.es.js +0 -35
  1072. package/dist/chunks/useSingleSelectListState-CiK-JkEX.es.js.map +0 -1
  1073. package/dist/chunks/useSpinButton-C-tpK-T9.es.js +0 -433
  1074. package/dist/chunks/useSpinButton-C-tpK-T9.es.js.map +0 -1
  1075. package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js +0 -2
  1076. package/dist/chunks/useSpinButton-Cw8QxU2l.cjs.js.map +0 -1
  1077. package/dist/chunks/useTextField-Cv1jQqUp.cjs.js +0 -2
  1078. package/dist/chunks/useTextField-Cv1jQqUp.cjs.js.map +0 -1
  1079. package/dist/chunks/useTextField-Doh-sQHP.es.js +0 -91
  1080. package/dist/chunks/useTextField-Doh-sQHP.es.js.map +0 -1
  1081. package/dist/chunks/useToggle-BK36AEko.cjs.js +0 -2
  1082. package/dist/chunks/useToggle-BK36AEko.cjs.js.map +0 -1
  1083. package/dist/chunks/useToggle-DcdigPKG.es.js +0 -62
  1084. package/dist/chunks/useToggle-DcdigPKG.es.js.map +0 -1
  1085. package/dist/chunks/useToolbar-CYJ2PbtO.es.js +0 -55
  1086. package/dist/chunks/useToolbar-CYJ2PbtO.es.js.map +0 -1
  1087. package/dist/chunks/useToolbar-D3B8DvbF.cjs.js +0 -2
  1088. package/dist/chunks/useToolbar-D3B8DvbF.cjs.js.map +0 -1
  1089. package/dist/chunks/utils-BHVnNfaH.cjs.js +0 -2
  1090. package/dist/chunks/utils-BHVnNfaH.cjs.js.map +0 -1
  1091. package/dist/chunks/utils-Gg3iiYhl.es.js +0 -188
  1092. package/dist/chunks/utils-Gg3iiYhl.es.js.map +0 -1
  1093. package/dist/chunks/visually-hidden-Uhh-2Y-q.cjs.js +0 -2
  1094. package/dist/chunks/visually-hidden-Uhh-2Y-q.cjs.js.map +0 -1
  1095. package/dist/chunks/visually-hidden-vh07nrZa.es.js +0 -11
  1096. package/dist/chunks/visually-hidden-vh07nrZa.es.js.map +0 -1
  1097. package/dist/chunks/walk-object-CvcTxMj1.es.js +0 -27
  1098. package/dist/chunks/walk-object-CvcTxMj1.es.js.map +0 -1
  1099. package/dist/chunks/walk-object-vr3sAS3_.cjs.js +0 -2
  1100. package/dist/chunks/walk-object-vr3sAS3_.cjs.js.map +0 -1
  1101. package/i18n/compiled-data/core.json +0 -146
  1102. package/i18n/compiled-data/de.json +0 -146
  1103. package/i18n/compiled-data/en.json +0 -146
  1104. package/i18n/compiled-data/fr-FR.json +0 -146
  1105. package/i18n/compiled-data/pt-BR.json +0 -146
@@ -1,3912 +0,0 @@
1
- import { jsx as D, jsxs as ne, Fragment as it } from "react/jsx-runtime";
2
- import w, { useRef as M, useMemo as T, useCallback as O, useEffect as oe, useState as G, forwardRef as Y, createContext as ie, useContext as A, Fragment as ml } from "react";
3
- import { $ as at } from "./Button-C-yUWwZg.es.js";
4
- import { $ as ut } from "./RSPContexts-B4yvXuBR.es.js";
5
- import { m as W, w as le, x as te, y as ke, z as gl, l as bl, $ as st, a as dt, c as vl, b as yl, e as Fe, d as ct, g as $e, f as $l, A as xl, h as Z, u as ft, B as Dl, C as Ze, i as Cl } from "./Collection-DFZhstai.es.js";
6
- import { $ as wl, a as re, d as ze, g as Je, f as kl } from "./utils-BkdW_cdL.es.js";
7
- import { $ as fe, a as Sl, b as El, c as zl, d as Wo, e as Vo } from "./DragAndDrop-ChYb3tCX.es.js";
8
- import { $ as Al } from "./intlStrings-Cd44R5hT.es.js";
9
- import { d as ve, a as Ae, $ as H, e as Rl, c as Qe } from "./mergeProps-B_9syxhT.es.js";
10
- import { $ as J } from "./filterDOMProps-BSVCO5jK.es.js";
11
- import { $ as ae } from "./useObjectRef-CaJ5pgjX.es.js";
12
- import { $ as Bl } from "./useResizeObserver-FIPBIG5S.es.js";
13
- import { c as ue, $ as se, a as Ie, d as Pl } from "./scrollIntoView-BYF_8_6g.es.js";
14
- import Kl from "react-dom";
15
- import { $ as xe } from "./useHover-cJOf02TT.es.js";
16
- import { d as _e } from "./platform-Z5fvtFmM.es.js";
17
- import { a as Ml, b as Tl, $ as pt } from "./usePress-BquTSwUd.es.js";
18
- import { $ as Nl, c as Fl } from "./useFocusable-BghVNiQU.es.js";
19
- import { $ as Il, f as Wl } from "./useFocusVisible-C5ivHvqm.es.js";
20
- import { $ as q } from "./focusSafely-Di2ArC9L.es.js";
21
- import { b as et, a as Vl } from "./FocusScope-C1Aw7j9H.es.js";
22
- import { $ as pe } from "./context-Pt-0ojuK.es.js";
23
- import { $ as he } from "./useLocalizedStringFormatter-CvzOUusg.es.js";
24
- import { $ as ce } from "./useFocusRing-D8cwV0EM.es.js";
25
- import { $ as Hl } from "./useGlobalListeners-BOOfV5Wh.es.js";
26
- import { a as Re, $ as tt } from "./VisuallyHidden-C38kRNm0.es.js";
27
- import { e as jl } from "./openLink-Ctl0AdAy.es.js";
28
- import { m as Ee } from "./utils-Gg3iiYhl.es.js";
29
- import { $ as Ol, a as Ul, b as Ll, c as Yl } from "./useHighlightSelectionDescription-DAR8wV79.es.js";
30
- import { $ as Xl } from "./LiveAnnouncer-CsPyaceH.es.js";
31
- import { $ as ht } from "./useCollator-BvjDbml1.es.js";
32
- import { $ as ql } from "./useUpdateEffect-CCDx8D4X.es.js";
33
- import { B as ye } from "./box-7pkPaNxe.es.js";
34
- import { defineSlotRecipe as Gl, createSlotRecipeContext as Zl, mergeRefs as Jl } from "@chakra-ui/react";
35
- import { B as Ql } from "./button-D5pgTe6f.es.js";
36
- import { I as _l } from "./icon-button-C2GGAKhI.es.js";
37
- import { C as mt } from "./checkbox-BJQlCxDq.es.js";
38
- import { KeyboardArrowDown as en, KeyboardArrowRight as tn, ContentCopy as ln, ArrowDownward as nn } from "@commercetools/nimbus-icons";
39
- import { c as on } from "./create-recipe-context-BuajKZ9o.es.js";
40
- import { F as gt } from "./flex-9fkV4bsm.es.js";
41
- import { D as rn } from "./divider-DMH0p6Pr.es.js";
42
- function an(t) {
43
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
44
- }
45
- function un(t) {
46
- let { onMoveStart: e, onMove: l, onMoveEnd: n } = t, o = M({
47
- didMove: !1,
48
- lastPosition: null,
49
- id: null
50
- }), { addGlobalListener: r, removeGlobalListener: i } = Hl(), u = ve((d, s, p, f) => {
51
- p === 0 && f === 0 || (o.current.didMove || (o.current.didMove = !0, e?.({
52
- type: "movestart",
53
- pointerType: s,
54
- shiftKey: d.shiftKey,
55
- metaKey: d.metaKey,
56
- ctrlKey: d.ctrlKey,
57
- altKey: d.altKey
58
- })), l?.({
59
- type: "move",
60
- pointerType: s,
61
- deltaX: p,
62
- deltaY: f,
63
- shiftKey: d.shiftKey,
64
- metaKey: d.metaKey,
65
- ctrlKey: d.ctrlKey,
66
- altKey: d.altKey
67
- }));
68
- }), a = ve((d, s) => {
69
- Ml(), o.current.didMove && n?.({
70
- type: "moveend",
71
- pointerType: s,
72
- shiftKey: d.shiftKey,
73
- metaKey: d.metaKey,
74
- ctrlKey: d.ctrlKey,
75
- altKey: d.altKey
76
- });
77
- });
78
- return {
79
- moveProps: T(() => {
80
- let d = {}, s = () => {
81
- Tl(), o.current.didMove = !1;
82
- };
83
- if (typeof PointerEvent > "u" && process.env.NODE_ENV === "test") {
84
- let f = (v) => {
85
- if (v.button === 0) {
86
- var x, m, $, b;
87
- u(v, "mouse", v.pageX - (($ = (x = o.current.lastPosition) === null || x === void 0 ? void 0 : x.pageX) !== null && $ !== void 0 ? $ : 0), v.pageY - ((b = (m = o.current.lastPosition) === null || m === void 0 ? void 0 : m.pageY) !== null && b !== void 0 ? b : 0)), o.current.lastPosition = {
88
- pageX: v.pageX,
89
- pageY: v.pageY
90
- };
91
- }
92
- }, h = (v) => {
93
- v.button === 0 && (a(v, "mouse"), i(window, "mousemove", f, !1), i(window, "mouseup", h, !1));
94
- };
95
- d.onMouseDown = (v) => {
96
- v.button === 0 && (s(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
97
- pageX: v.pageX,
98
- pageY: v.pageY
99
- }, r(window, "mousemove", f, !1), r(window, "mouseup", h, !1));
100
- };
101
- let g = (v) => {
102
- let x = [
103
- ...v.changedTouches
104
- ].findIndex(({ identifier: k }) => k === o.current.id);
105
- if (x >= 0) {
106
- var m, $;
107
- let { pageX: k, pageY: P } = v.changedTouches[x];
108
- var b, C;
109
- u(v, "touch", k - ((b = (m = o.current.lastPosition) === null || m === void 0 ? void 0 : m.pageX) !== null && b !== void 0 ? b : 0), P - ((C = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageY) !== null && C !== void 0 ? C : 0)), o.current.lastPosition = {
110
- pageX: k,
111
- pageY: P
112
- };
113
- }
114
- }, y = (v) => {
115
- [
116
- ...v.changedTouches
117
- ].findIndex(({ identifier: m }) => m === o.current.id) >= 0 && (a(v, "touch"), o.current.id = null, i(window, "touchmove", g), i(window, "touchend", y), i(window, "touchcancel", y));
118
- };
119
- d.onTouchStart = (v) => {
120
- if (v.changedTouches.length === 0 || o.current.id != null) return;
121
- let { pageX: x, pageY: m, identifier: $ } = v.changedTouches[0];
122
- s(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
123
- pageX: x,
124
- pageY: m
125
- }, o.current.id = $, r(window, "touchmove", g, !1), r(window, "touchend", y, !1), r(window, "touchcancel", y, !1);
126
- };
127
- } else {
128
- let f = (g) => {
129
- if (g.pointerId === o.current.id) {
130
- var y, v;
131
- let $ = g.pointerType || "mouse";
132
- var x, m;
133
- u(g, $, g.pageX - ((x = (y = o.current.lastPosition) === null || y === void 0 ? void 0 : y.pageX) !== null && x !== void 0 ? x : 0), g.pageY - ((m = (v = o.current.lastPosition) === null || v === void 0 ? void 0 : v.pageY) !== null && m !== void 0 ? m : 0)), o.current.lastPosition = {
134
- pageX: g.pageX,
135
- pageY: g.pageY
136
- };
137
- }
138
- }, h = (g) => {
139
- if (g.pointerId === o.current.id) {
140
- let y = g.pointerType || "mouse";
141
- a(g, y), o.current.id = null, i(window, "pointermove", f, !1), i(window, "pointerup", h, !1), i(window, "pointercancel", h, !1);
142
- }
143
- };
144
- d.onPointerDown = (g) => {
145
- g.button === 0 && o.current.id == null && (s(), g.stopPropagation(), g.preventDefault(), o.current.lastPosition = {
146
- pageX: g.pageX,
147
- pageY: g.pageY
148
- }, o.current.id = g.pointerId, r(window, "pointermove", f, !1), r(window, "pointerup", h, !1), r(window, "pointercancel", h, !1));
149
- };
150
- }
151
- let p = (f, h, g) => {
152
- s(), u(f, "keyboard", h, g), a(f, "keyboard");
153
- };
154
- return d.onKeyDown = (f) => {
155
- switch (f.key) {
156
- case "Left":
157
- case "ArrowLeft":
158
- f.preventDefault(), f.stopPropagation(), p(f, -1, 0);
159
- break;
160
- case "Right":
161
- case "ArrowRight":
162
- f.preventDefault(), f.stopPropagation(), p(f, 1, 0);
163
- break;
164
- case "Up":
165
- case "ArrowUp":
166
- f.preventDefault(), f.stopPropagation(), p(f, 0, -1);
167
- break;
168
- case "Down":
169
- case "ArrowDown":
170
- f.preventDefault(), f.stopPropagation(), p(f, 0, 1);
171
- break;
172
- }
173
- }, d;
174
- }, [
175
- o,
176
- r,
177
- i,
178
- u,
179
- a
180
- ])
181
- };
182
- }
183
- class bt {
184
- isCell(e) {
185
- return e.type === "cell";
186
- }
187
- isRow(e) {
188
- return e.type === "row" || e.type === "item";
189
- }
190
- isDisabled(e) {
191
- var l;
192
- return this.disabledBehavior === "all" && (((l = e.props) === null || l === void 0 ? void 0 : l.isDisabled) || this.disabledKeys.has(e.key));
193
- }
194
- findPreviousKey(e, l) {
195
- let n = e != null ? this.collection.getKeyBefore(e) : this.collection.getLastKey();
196
- for (; n != null; ) {
197
- let o = this.collection.getItem(n);
198
- if (!o) return null;
199
- if (!this.isDisabled(o) && (!l || l(o))) return n;
200
- n = this.collection.getKeyBefore(n);
201
- }
202
- return null;
203
- }
204
- findNextKey(e, l) {
205
- let n = e != null ? this.collection.getKeyAfter(e) : this.collection.getFirstKey();
206
- for (; n != null; ) {
207
- let o = this.collection.getItem(n);
208
- if (!o) return null;
209
- if (!this.isDisabled(o) && (!l || l(o))) return n;
210
- if (n = this.collection.getKeyAfter(n), n == null) return null;
211
- }
212
- return null;
213
- }
214
- getKeyForItemInRowByIndex(e, l = 0) {
215
- if (l < 0) return null;
216
- let n = this.collection.getItem(e);
217
- if (!n) return null;
218
- let o = 0;
219
- for (let u of W(n, this.collection)) {
220
- var r;
221
- if (u.colSpan && u.colSpan + o > l) return (r = u.key) !== null && r !== void 0 ? r : null;
222
- u.colSpan && (o = o + u.colSpan - 1);
223
- var i;
224
- if (o === l) return (i = u.key) !== null && i !== void 0 ? i : null;
225
- o++;
226
- }
227
- return null;
228
- }
229
- getKeyBelow(e) {
230
- let l = e, n = this.collection.getItem(l);
231
- if (!n) return null;
232
- var o;
233
- if (this.isCell(n) && (l = (o = n.parentKey) !== null && o !== void 0 ? o : null), l == null) return null;
234
- if (l = this.findNextKey(l, (r) => r.type === "item"), l != null) {
235
- if (this.isCell(n)) {
236
- let r = n.colIndex ? n.colIndex : n.index;
237
- return this.getKeyForItemInRowByIndex(l, r);
238
- }
239
- if (this.focusMode === "row") return l;
240
- }
241
- return null;
242
- }
243
- getKeyAbove(e) {
244
- let l = e, n = this.collection.getItem(l);
245
- if (!n) return null;
246
- var o;
247
- if (this.isCell(n) && (l = (o = n.parentKey) !== null && o !== void 0 ? o : null), l == null) return null;
248
- if (l = this.findPreviousKey(l, (r) => r.type === "item"), l != null) {
249
- if (this.isCell(n)) {
250
- let r = n.colIndex ? n.colIndex : n.index;
251
- return this.getKeyForItemInRowByIndex(l, r);
252
- }
253
- if (this.focusMode === "row") return l;
254
- }
255
- return null;
256
- }
257
- getKeyRightOf(e) {
258
- let l = this.collection.getItem(e);
259
- if (!l) return null;
260
- if (this.isRow(l)) {
261
- var n, o;
262
- let d = W(l, this.collection);
263
- var r;
264
- return (r = this.direction === "rtl" ? (n = le(d)) === null || n === void 0 ? void 0 : n.key : (o = te(d)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
265
- }
266
- if (this.isCell(l) && l.parentKey != null) {
267
- let d = this.collection.getItem(l.parentKey);
268
- if (!d) return null;
269
- let s = W(d, this.collection);
270
- var i;
271
- let p = (i = this.direction === "rtl" ? ke(s, l.index - 1) : ke(s, l.index + 1)) !== null && i !== void 0 ? i : null;
272
- var u;
273
- if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
274
- var a;
275
- if (this.focusMode === "row") return (a = l.parentKey) !== null && a !== void 0 ? a : null;
276
- var c;
277
- return (c = this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) !== null && c !== void 0 ? c : null;
278
- }
279
- return null;
280
- }
281
- getKeyLeftOf(e) {
282
- let l = this.collection.getItem(e);
283
- if (!l) return null;
284
- if (this.isRow(l)) {
285
- var n, o;
286
- let d = W(l, this.collection);
287
- var r;
288
- return (r = this.direction === "rtl" ? (n = te(d)) === null || n === void 0 ? void 0 : n.key : (o = le(d)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
289
- }
290
- if (this.isCell(l) && l.parentKey != null) {
291
- let d = this.collection.getItem(l.parentKey);
292
- if (!d) return null;
293
- let s = W(d, this.collection);
294
- var i;
295
- let p = (i = this.direction === "rtl" ? ke(s, l.index + 1) : ke(s, l.index - 1)) !== null && i !== void 0 ? i : null;
296
- var u;
297
- if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
298
- var a;
299
- if (this.focusMode === "row") return (a = l.parentKey) !== null && a !== void 0 ? a : null;
300
- var c;
301
- return (c = this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) !== null && c !== void 0 ? c : null;
302
- }
303
- return null;
304
- }
305
- getFirstKey(e, l) {
306
- let n = e ?? null, o;
307
- if (n != null) {
308
- if (o = this.collection.getItem(n), !o) return null;
309
- if (this.isCell(o) && !l && o.parentKey != null) {
310
- var r;
311
- let c = this.collection.getItem(o.parentKey);
312
- if (!c) return null;
313
- var i;
314
- return (i = (r = te(W(c, this.collection))) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
315
- }
316
- }
317
- if (n = this.findNextKey(void 0, (c) => c.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
318
- var u;
319
- let c = this.collection.getItem(n);
320
- if (!c) return null;
321
- var a;
322
- n = (a = (u = te(W(c, this.collection))) === null || u === void 0 ? void 0 : u.key) !== null && a !== void 0 ? a : null;
323
- }
324
- return n;
325
- }
326
- getLastKey(e, l) {
327
- let n = e ?? null, o;
328
- if (n != null) {
329
- if (o = this.collection.getItem(n), !o) return null;
330
- if (this.isCell(o) && !l && o.parentKey != null) {
331
- var r;
332
- let c = this.collection.getItem(o.parentKey);
333
- if (!c) return null;
334
- let d = W(c, this.collection);
335
- var i;
336
- return (i = (r = le(d)) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
337
- }
338
- }
339
- if (n = this.findPreviousKey(void 0, (c) => c.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
340
- var u;
341
- let c = this.collection.getItem(n);
342
- if (!c) return null;
343
- let d = W(c, this.collection);
344
- var a;
345
- n = (a = (u = le(d)) === null || u === void 0 ? void 0 : u.key) !== null && a !== void 0 ? a : null;
346
- }
347
- return n;
348
- }
349
- getKeyPageAbove(e) {
350
- let l = e, n = this.layoutDelegate.getItemRect(l);
351
- if (!n) return null;
352
- let o = Math.max(0, n.y + n.height - this.layoutDelegate.getVisibleRect().height);
353
- for (; n && n.y > o && l != null; ) {
354
- var r;
355
- if (l = (r = this.getKeyAbove(l)) !== null && r !== void 0 ? r : null, l == null) break;
356
- n = this.layoutDelegate.getItemRect(l);
357
- }
358
- return l;
359
- }
360
- getKeyPageBelow(e) {
361
- let l = e, n = this.layoutDelegate.getItemRect(l);
362
- if (!n) return null;
363
- let o = this.layoutDelegate.getVisibleRect().height, r = Math.min(this.layoutDelegate.getContentSize().height, n.y + o);
364
- for (; n && n.y + n.height < r; ) {
365
- let i = this.getKeyBelow(l);
366
- if (i == null) break;
367
- n = this.layoutDelegate.getItemRect(i), l = i;
368
- }
369
- return l;
370
- }
371
- getKeyForSearch(e, l) {
372
- let n = l ?? null;
373
- if (!this.collator) return null;
374
- let o = this.collection;
375
- if (n = l ?? this.getFirstKey(), n == null) return null;
376
- let r = o.getItem(n);
377
- if (!r) return null;
378
- var i;
379
- r.type === "cell" && (n = (i = r.parentKey) !== null && i !== void 0 ? i : null);
380
- let u = !1;
381
- for (; n != null; ) {
382
- let d = o.getItem(n);
383
- if (!d) return null;
384
- if (d.textValue) {
385
- let s = d.textValue.slice(0, e.length);
386
- if (this.collator.compare(s, e) === 0) {
387
- var a, c;
388
- return this.isRow(d) && this.focusMode === "cell" ? (c = (a = te(W(d, this.collection))) === null || a === void 0 ? void 0 : a.key) !== null && c !== void 0 ? c : null : d.key;
389
- }
390
- }
391
- n = this.findNextKey(n, (s) => s.type === "item"), n == null && !u && (n = this.getFirstKey(), u = !0);
392
- }
393
- return null;
394
- }
395
- constructor(e) {
396
- if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw new Error("Either a layout or a ref must be specified.");
397
- this.layoutDelegate = e.layoutDelegate || (e.layout ? new sn(e.layout) : new gl(e.ref));
398
- var l;
399
- this.focusMode = (l = e.focusMode) !== null && l !== void 0 ? l : "row";
400
- }
401
- }
402
- class sn {
403
- getContentSize() {
404
- return this.layout.getContentSize();
405
- }
406
- getItemRect(e) {
407
- var l;
408
- return ((l = this.layout.getLayoutInfo(e)) === null || l === void 0 ? void 0 : l.rect) || null;
409
- }
410
- getVisibleRect() {
411
- return this.layout.virtualizer.visibleRect;
412
- }
413
- constructor(e) {
414
- this.layout = e;
415
- }
416
- }
417
- const We = /* @__PURE__ */ new WeakMap();
418
- function dn(t, e, l) {
419
- let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: r, focusMode: i, scrollRef: u, getRowText: a, onRowAction: c, onCellAction: d, escapeKeyBehavior: s = "clearSelection", shouldSelectOnPressUp: p } = t, { selectionManager: f } = e;
420
- !t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
421
- let h = ht({
422
- usage: "search",
423
- sensitivity: "base"
424
- }), { direction: g } = pe(), y = e.selectionManager.disabledBehavior, v = T(() => r || new bt({
425
- collection: e.collection,
426
- disabledKeys: e.disabledKeys,
427
- disabledBehavior: y,
428
- ref: l,
429
- direction: g,
430
- collator: h,
431
- focusMode: i
432
- }), [
433
- r,
434
- e.collection,
435
- e.disabledKeys,
436
- y,
437
- l,
438
- g,
439
- h,
440
- i
441
- ]), { collectionProps: x } = bl({
442
- ref: l,
443
- selectionManager: f,
444
- keyboardDelegate: v,
445
- isVirtualized: n,
446
- scrollRef: u,
447
- disallowTypeAhead: o,
448
- escapeKeyBehavior: s
449
- }), m = Ae(t.id);
450
- We.set(e, {
451
- keyboardDelegate: v,
452
- actions: {
453
- onRowAction: c,
454
- onCellAction: d
455
- },
456
- shouldSelectOnPressUp: p
457
- });
458
- let $ = Ol({
459
- selectionManager: f,
460
- hasItemActions: !!(c || d)
461
- }), b = J(t, {
462
- labelable: !0
463
- }), C = O((E) => {
464
- if (f.isFocused) {
465
- E.currentTarget.contains(E.target) || f.setFocused(!1);
466
- return;
467
- }
468
- E.currentTarget.contains(E.target) && f.setFocused(!0);
469
- }, [
470
- f
471
- ]), k = T(() => ({
472
- onBlur: x.onBlur,
473
- onFocus: C
474
- }), [
475
- C,
476
- x.onBlur
477
- ]), P = Ul(l, {
478
- isDisabled: e.collection.size !== 0
479
- }), K = H(
480
- b,
481
- {
482
- role: "grid",
483
- id: m,
484
- "aria-multiselectable": f.selectionMode === "multiple" ? "true" : void 0
485
- },
486
- e.isKeyboardNavigationDisabled ? k : x,
487
- // If collection is empty, make sure the grid is tabbable unless there is a child tabbable element.
488
- e.collection.size === 0 && {
489
- tabIndex: P ? -1 : 0
490
- } || void 0,
491
- $
492
- );
493
- return n && (K["aria-rowcount"] = e.collection.size, K["aria-colcount"] = e.collection.columnCount), Ll({
494
- getRowText: a
495
- }, e), {
496
- gridProps: K
497
- };
498
- }
499
- function cn() {
500
- return {
501
- rowGroupProps: {
502
- role: "rowgroup"
503
- }
504
- };
505
- }
506
- function fn(t, e, l) {
507
- var n, o;
508
- let { node: r, isVirtualized: i, shouldSelectOnPressUp: u, onAction: a } = t, { actions: c, shouldSelectOnPressUp: d } = We.get(e), s = c.onRowAction ? () => {
509
- var y;
510
- return (y = c.onRowAction) === null || y === void 0 ? void 0 : y.call(c, r.key);
511
- } : a, { itemProps: p, ...f } = st({
512
- selectionManager: e.selectionManager,
513
- key: r.key,
514
- ref: l,
515
- isVirtualized: i,
516
- shouldSelectOnPressUp: d || u,
517
- onAction: s || !(r == null || (n = r.props) === null || n === void 0) && n.onAction ? Rl(r == null || (o = r.props) === null || o === void 0 ? void 0 : o.onAction, s) : void 0,
518
- isDisabled: e.collection.size === 0
519
- }), h = e.selectionManager.isSelected(r.key), g = {
520
- role: "row",
521
- "aria-selected": e.selectionManager.selectionMode !== "none" ? h : void 0,
522
- "aria-disabled": f.isDisabled || void 0,
523
- ...p
524
- };
525
- return i && (g["aria-rowindex"] = r.index + 1), {
526
- rowProps: g,
527
- ...f
528
- };
529
- }
530
- function vt(t, e, l) {
531
- let { node: n, isVirtualized: o, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: u } = t, { direction: a } = pe(), { keyboardDelegate: c, actions: { onCellAction: d } } = We.get(e), s = M(null), p = () => {
532
- if (l.current) {
533
- let m = et(l.current);
534
- if (r === "child") {
535
- if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
536
- let $ = e.selectionManager.childFocusStrategy === "last" ? Pe(m) : m.firstChild();
537
- if ($) {
538
- q($);
539
- return;
540
- }
541
- }
542
- (s.current != null && n.key !== s.current || !l.current.contains(document.activeElement)) && q(l.current);
543
- }
544
- }, { itemProps: f, isPressed: h } = st({
545
- selectionManager: e.selectionManager,
546
- key: n.key,
547
- ref: l,
548
- isVirtualized: o,
549
- focus: p,
550
- shouldSelectOnPressUp: i,
551
- onAction: d ? () => d(n.key) : u,
552
- isDisabled: e.collection.size === 0
553
- }), g = (m) => {
554
- if (!m.currentTarget.contains(m.target) || e.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
555
- let $ = et(l.current);
556
- switch ($.currentNode = document.activeElement, m.key) {
557
- case "ArrowLeft": {
558
- let E = a === "rtl" ? $.nextNode() : $.previousNode();
559
- if (r === "child" && E === l.current && (E = null), m.preventDefault(), m.stopPropagation(), E)
560
- q(E), ue(E, {
561
- containingElement: se(l.current)
562
- });
563
- else {
564
- var b;
565
- if (((b = c.getKeyLeftOf) === null || b === void 0 ? void 0 : b.call(c, n.key)) !== n.key) {
566
- var C;
567
- (C = l.current.parentElement) === null || C === void 0 || C.dispatchEvent(new KeyboardEvent(m.nativeEvent.type, m.nativeEvent));
568
- break;
569
- }
570
- r === "cell" && a === "rtl" ? (q(l.current), ue(l.current, {
571
- containingElement: se(l.current)
572
- })) : ($.currentNode = l.current, E = a === "rtl" ? $.firstChild() : Pe($), E && (q(E), ue(E, {
573
- containingElement: se(l.current)
574
- })));
575
- }
576
- break;
577
- }
578
- case "ArrowRight": {
579
- let E = a === "rtl" ? $.previousNode() : $.nextNode();
580
- if (r === "child" && E === l.current && (E = null), m.preventDefault(), m.stopPropagation(), E)
581
- q(E), ue(E, {
582
- containingElement: se(l.current)
583
- });
584
- else {
585
- var k;
586
- if (((k = c.getKeyRightOf) === null || k === void 0 ? void 0 : k.call(c, n.key)) !== n.key) {
587
- var P;
588
- (P = l.current.parentElement) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent(m.nativeEvent.type, m.nativeEvent));
589
- break;
590
- }
591
- r === "cell" && a === "ltr" ? (q(l.current), ue(l.current, {
592
- containingElement: se(l.current)
593
- })) : ($.currentNode = l.current, E = a === "rtl" ? Pe($) : $.firstChild(), E && (q(E), ue(E, {
594
- containingElement: se(l.current)
595
- })));
596
- }
597
- break;
598
- }
599
- case "ArrowUp":
600
- case "ArrowDown":
601
- if (!m.altKey && l.current.contains(m.target)) {
602
- var K;
603
- m.stopPropagation(), m.preventDefault(), (K = l.current.parentElement) === null || K === void 0 || K.dispatchEvent(new KeyboardEvent(m.nativeEvent.type, m.nativeEvent));
604
- }
605
- break;
606
- }
607
- }, y = (m) => {
608
- if (s.current = n.key, m.target !== l.current) {
609
- Il() || e.selectionManager.setFocusedKey(n.key);
610
- return;
611
- }
612
- requestAnimationFrame(() => {
613
- r === "child" && document.activeElement === l.current && p();
614
- });
615
- }, v = H(f, {
616
- role: "gridcell",
617
- onKeyDownCapture: g,
618
- "aria-colspan": n.colSpan,
619
- "aria-colindex": n.colIndex != null ? n.colIndex + 1 : void 0,
620
- colSpan: o ? void 0 : n.colSpan,
621
- onFocus: y
622
- });
623
- var x;
624
- return o && (v["aria-colindex"] = ((x = n.colIndex) !== null && x !== void 0 ? x : n.index) + 1), i && v.tabIndex != null && v.onPointerDown == null && (v.onPointerDown = (m) => {
625
- let $ = m.currentTarget, b = $.getAttribute("tabindex");
626
- $.removeAttribute("tabindex"), requestAnimationFrame(() => {
627
- b != null && $.setAttribute("tabindex", b);
628
- });
629
- }), {
630
- gridCellProps: v,
631
- isPressed: h
632
- };
633
- }
634
- function Pe(t) {
635
- let e = null, l = null;
636
- do
637
- l = t.lastChild(), l && (e = l);
638
- while (l);
639
- return e;
640
- }
641
- function pn(t) {
642
- return t && t.__esModule ? t.default : t;
643
- }
644
- function hn(t, e) {
645
- let { key: l } = t, n = e.selectionManager, o = Ae(), r = !e.selectionManager.canSelectItem(l), i = e.selectionManager.isSelected(l), u = () => n.toggleSelection(l);
646
- const a = he(pn(Yl), "@react-aria/grid");
647
- return {
648
- checkboxProps: {
649
- id: o,
650
- "aria-label": a.format("select"),
651
- isSelected: i,
652
- isDisabled: r,
653
- onChange: u
654
- }
655
- };
656
- }
657
- const Ve = /* @__PURE__ */ new WeakMap();
658
- function Te(t) {
659
- return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
660
- }
661
- function yt(t, e) {
662
- let l = Ve.get(t);
663
- if (!l) throw new Error("Unknown grid");
664
- return `${l}-${Te(e)}`;
665
- }
666
- function $t(t, e, l) {
667
- let n = Ve.get(t);
668
- if (!n) throw new Error("Unknown grid");
669
- return `${n}-${Te(e)}-${Te(l)}`;
670
- }
671
- function xt(t, e) {
672
- return [
673
- ...t.collection.rowHeaderColumnKeys
674
- ].map((l) => $t(t, e, l)).join(" ");
675
- }
676
- var Dt = {};
677
- Dt = {
678
- ascending: "تصاعدي",
679
- ascendingSort: (t) => `ترتيب حسب العمود ${t.columnName} بترتيب تصاعدي`,
680
- columnSize: (t) => `${t.value} بالبكسل`,
681
- descending: "تنازلي",
682
- descendingSort: (t) => `ترتيب حسب العمود ${t.columnName} بترتيب تنازلي`,
683
- resizerDescription: "اضغط على مفتاح Enter لبدء تغيير الحجم",
684
- select: "تحديد",
685
- selectAll: "تحديد الكل",
686
- sortable: "عمود قابل للترتيب"
687
- };
688
- var Ct = {};
689
- Ct = {
690
- ascending: "възходящ",
691
- ascendingSort: (t) => `сортирано по колона ${t.columnName} във възходящ ред`,
692
- columnSize: (t) => `${t.value} пиксела`,
693
- descending: "низходящ",
694
- descendingSort: (t) => `сортирано по колона ${t.columnName} в низходящ ред`,
695
- resizerDescription: "Натиснете „Enter“, за да започнете да преоразмерявате",
696
- select: "Изберете",
697
- selectAll: "Изберете всичко",
698
- sortable: "сортираща колона"
699
- };
700
- var wt = {};
701
- wt = {
702
- ascending: "vzestupně",
703
- ascendingSort: (t) => `řazeno vzestupně podle sloupce ${t.columnName}`,
704
- columnSize: (t) => `${t.value} pixelů`,
705
- descending: "sestupně",
706
- descendingSort: (t) => `řazeno sestupně podle sloupce ${t.columnName}`,
707
- resizerDescription: "Stisknutím klávesy Enter začnete měnit velikost",
708
- select: "Vybrat",
709
- selectAll: "Vybrat vše",
710
- sortable: "sloupec s možností řazení"
711
- };
712
- var kt = {};
713
- kt = {
714
- ascending: "stigende",
715
- ascendingSort: (t) => `sorteret efter kolonne ${t.columnName} i stigende rækkefølge`,
716
- columnSize: (t) => `${t.value} pixels`,
717
- descending: "faldende",
718
- descendingSort: (t) => `sorteret efter kolonne ${t.columnName} i faldende rækkefølge`,
719
- resizerDescription: "Tryk på Enter for at ændre størrelse",
720
- select: "Vælg",
721
- selectAll: "Vælg alle",
722
- sortable: "sorterbar kolonne"
723
- };
724
- var St = {};
725
- St = {
726
- ascending: "aufsteigend",
727
- ascendingSort: (t) => `sortiert nach Spalte ${t.columnName} in aufsteigender Reihenfolge`,
728
- columnSize: (t) => `${t.value} Pixel`,
729
- descending: "absteigend",
730
- descendingSort: (t) => `sortiert nach Spalte ${t.columnName} in absteigender Reihenfolge`,
731
- resizerDescription: "Eingabetaste zum Starten der Größenänderung drücken",
732
- select: "Auswählen",
733
- selectAll: "Alles auswählen",
734
- sortable: "sortierbare Spalte"
735
- };
736
- var Et = {};
737
- Et = {
738
- ascending: "αύξουσα",
739
- ascendingSort: (t) => `διαλογή ανά στήλη ${t.columnName} σε αύξουσα σειρά`,
740
- columnSize: (t) => `${t.value} pixel`,
741
- descending: "φθίνουσα",
742
- descendingSort: (t) => `διαλογή ανά στήλη ${t.columnName} σε φθίνουσα σειρά`,
743
- resizerDescription: "Πατήστε Enter για έναρξη της αλλαγής μεγέθους",
744
- select: "Επιλογή",
745
- selectAll: "Επιλογή όλων",
746
- sortable: "Στήλη διαλογής"
747
- };
748
- var zt = {};
749
- zt = {
750
- select: "Select",
751
- selectAll: "Select All",
752
- sortable: "sortable column",
753
- ascending: "ascending",
754
- descending: "descending",
755
- ascendingSort: (t) => `sorted by column ${t.columnName} in ascending order`,
756
- descendingSort: (t) => `sorted by column ${t.columnName} in descending order`,
757
- columnSize: (t) => `${t.value} pixels`,
758
- resizerDescription: "Press Enter to start resizing"
759
- };
760
- var At = {};
761
- At = {
762
- ascending: "ascendente",
763
- ascendingSort: (t) => `ordenado por columna ${t.columnName} en sentido ascendente`,
764
- columnSize: (t) => `${t.value} píxeles`,
765
- descending: "descendente",
766
- descendingSort: (t) => `ordenado por columna ${t.columnName} en orden descendente`,
767
- resizerDescription: "Pulse Intro para empezar a redimensionar",
768
- select: "Seleccionar",
769
- selectAll: "Seleccionar todos",
770
- sortable: "columna ordenable"
771
- };
772
- var Rt = {};
773
- Rt = {
774
- ascending: "tõusev järjestus",
775
- ascendingSort: (t) => `sorditud veeru järgi ${t.columnName} tõusvas järjestuses`,
776
- columnSize: (t) => `${t.value} pikslit`,
777
- descending: "laskuv järjestus",
778
- descendingSort: (t) => `sorditud veeru järgi ${t.columnName} laskuvas järjestuses`,
779
- resizerDescription: "Suuruse muutmise alustamiseks vajutage klahvi Enter",
780
- select: "Vali",
781
- selectAll: "Vali kõik",
782
- sortable: "sorditav veerg"
783
- };
784
- var Bt = {};
785
- Bt = {
786
- ascending: "nouseva",
787
- ascendingSort: (t) => `lajiteltu sarakkeen ${t.columnName} mukaan nousevassa järjestyksessä`,
788
- columnSize: (t) => `${t.value} pikseliä`,
789
- descending: "laskeva",
790
- descendingSort: (t) => `lajiteltu sarakkeen ${t.columnName} mukaan laskevassa järjestyksessä`,
791
- resizerDescription: "Aloita koon muutos painamalla Enter-näppäintä",
792
- select: "Valitse",
793
- selectAll: "Valitse kaikki",
794
- sortable: "lajiteltava sarake"
795
- };
796
- var Pt = {};
797
- Pt = {
798
- ascending: "croissant",
799
- ascendingSort: (t) => `trié en fonction de la colonne ${t.columnName} par ordre croissant`,
800
- columnSize: (t) => `${t.value} pixels`,
801
- descending: "décroissant",
802
- descendingSort: (t) => `trié en fonction de la colonne ${t.columnName} par ordre décroissant`,
803
- resizerDescription: "Appuyez sur Entrée pour commencer le redimensionnement.",
804
- select: "Sélectionner",
805
- selectAll: "Sélectionner tout",
806
- sortable: "colonne triable"
807
- };
808
- var Kt = {};
809
- Kt = {
810
- ascending: "עולה",
811
- ascendingSort: (t) => `מוין לפי עמודה ${t.columnName} בסדר עולה`,
812
- columnSize: (t) => `${t.value} פיקסלים`,
813
- descending: "יורד",
814
- descendingSort: (t) => `מוין לפי עמודה ${t.columnName} בסדר יורד`,
815
- resizerDescription: "הקש Enter כדי לשנות את הגודל",
816
- select: "בחר",
817
- selectAll: "בחר הכול",
818
- sortable: "עמודה שניתן למיין"
819
- };
820
- var Mt = {};
821
- Mt = {
822
- ascending: "rastući",
823
- ascendingSort: (t) => `razvrstano po stupcima ${t.columnName} rastućem redoslijedom`,
824
- columnSize: (t) => `${t.value} piksela`,
825
- descending: "padajući",
826
- descendingSort: (t) => `razvrstano po stupcima ${t.columnName} padajućim redoslijedom`,
827
- resizerDescription: "Pritisnite Enter da biste započeli promenu veličine",
828
- select: "Odaberite",
829
- selectAll: "Odaberite sve",
830
- sortable: "stupac koji se može razvrstati"
831
- };
832
- var Tt = {};
833
- Tt = {
834
- ascending: "növekvő",
835
- ascendingSort: (t) => `rendezve a(z) ${t.columnName} oszlop szerint, növekvő sorrendben`,
836
- columnSize: (t) => `${t.value} képpont`,
837
- descending: "csökkenő",
838
- descendingSort: (t) => `rendezve a(z) ${t.columnName} oszlop szerint, csökkenő sorrendben`,
839
- resizerDescription: "Nyomja le az Enter billentyűt az átméretezés megkezdéséhez",
840
- select: "Kijelölés",
841
- selectAll: "Összes kijelölése",
842
- sortable: "rendezendő oszlop"
843
- };
844
- var Nt = {};
845
- Nt = {
846
- ascending: "crescente",
847
- ascendingSort: (t) => `in ordine crescente in base alla colonna ${t.columnName}`,
848
- columnSize: (t) => `${t.value} pixel`,
849
- descending: "decrescente",
850
- descendingSort: (t) => `in ordine decrescente in base alla colonna ${t.columnName}`,
851
- resizerDescription: "Premi Invio per iniziare a ridimensionare",
852
- select: "Seleziona",
853
- selectAll: "Seleziona tutto",
854
- sortable: "colonna ordinabile"
855
- };
856
- var Ft = {};
857
- Ft = {
858
- ascending: "昇順",
859
- ascendingSort: (t) => `列 ${t.columnName} を昇順で並べ替え`,
860
- columnSize: (t) => `${t.value} ピクセル`,
861
- descending: "降順",
862
- descendingSort: (t) => `列 ${t.columnName} を降順で並べ替え`,
863
- resizerDescription: "Enter キーを押してサイズ変更を開始",
864
- select: "選択",
865
- selectAll: "すべて選択",
866
- sortable: "並べ替え可能な列"
867
- };
868
- var It = {};
869
- It = {
870
- ascending: "오름차순",
871
- ascendingSort: (t) => `${t.columnName} 열을 기준으로 오름차순으로 정렬됨`,
872
- columnSize: (t) => `${t.value} 픽셀`,
873
- descending: "내림차순",
874
- descendingSort: (t) => `${t.columnName} 열을 기준으로 내림차순으로 정렬됨`,
875
- resizerDescription: "크기 조정을 시작하려면 Enter를 누르세요.",
876
- select: "선택",
877
- selectAll: "모두 선택",
878
- sortable: "정렬 가능한 열"
879
- };
880
- var Wt = {};
881
- Wt = {
882
- ascending: "didėjančia tvarka",
883
- ascendingSort: (t) => `surikiuota pagal stulpelį ${t.columnName} didėjančia tvarka`,
884
- columnSize: (t) => `${t.value} piks.`,
885
- descending: "mažėjančia tvarka",
886
- descendingSort: (t) => `surikiuota pagal stulpelį ${t.columnName} mažėjančia tvarka`,
887
- resizerDescription: "Paspauskite „Enter“, kad pradėtumėte keisti dydį",
888
- select: "Pasirinkti",
889
- selectAll: "Pasirinkti viską",
890
- sortable: "rikiuojamas stulpelis"
891
- };
892
- var Vt = {};
893
- Vt = {
894
- ascending: "augošā secībā",
895
- ascendingSort: (t) => `kārtots pēc kolonnas ${t.columnName} augošā secībā`,
896
- columnSize: (t) => `${t.value} pikseļi`,
897
- descending: "dilstošā secībā",
898
- descendingSort: (t) => `kārtots pēc kolonnas ${t.columnName} dilstošā secībā`,
899
- resizerDescription: "Nospiediet Enter, lai sāktu izmēru mainīšanu",
900
- select: "Atlasīt",
901
- selectAll: "Atlasīt visu",
902
- sortable: "kārtojamā kolonna"
903
- };
904
- var Ht = {};
905
- Ht = {
906
- ascending: "stigende",
907
- ascendingSort: (t) => `sortert etter kolonne ${t.columnName} i stigende rekkefølge`,
908
- columnSize: (t) => `${t.value} piksler`,
909
- descending: "synkende",
910
- descendingSort: (t) => `sortert etter kolonne ${t.columnName} i synkende rekkefølge`,
911
- resizerDescription: "Trykk på Enter for å starte størrelsesendring",
912
- select: "Velg",
913
- selectAll: "Velg alle",
914
- sortable: "kolonne som kan sorteres"
915
- };
916
- var jt = {};
917
- jt = {
918
- ascending: "oplopend",
919
- ascendingSort: (t) => `gesorteerd in oplopende volgorde in kolom ${t.columnName}`,
920
- columnSize: (t) => `${t.value} pixels`,
921
- descending: "aflopend",
922
- descendingSort: (t) => `gesorteerd in aflopende volgorde in kolom ${t.columnName}`,
923
- resizerDescription: "Druk op Enter om het formaat te wijzigen",
924
- select: "Selecteren",
925
- selectAll: "Alles selecteren",
926
- sortable: "sorteerbare kolom"
927
- };
928
- var Ot = {};
929
- Ot = {
930
- ascending: "rosnąco",
931
- ascendingSort: (t) => `posortowano według kolumny ${t.columnName} w porządku rosnącym`,
932
- columnSize: (t) => `Liczba pikseli: ${t.value}`,
933
- descending: "malejąco",
934
- descendingSort: (t) => `posortowano według kolumny ${t.columnName} w porządku malejącym`,
935
- resizerDescription: "Naciśnij Enter, aby rozpocząć zmienianie rozmiaru",
936
- select: "Zaznacz",
937
- selectAll: "Zaznacz wszystko",
938
- sortable: "kolumna z możliwością sortowania"
939
- };
940
- var Ut = {};
941
- Ut = {
942
- ascending: "crescente",
943
- ascendingSort: (t) => `classificado pela coluna ${t.columnName} em ordem crescente`,
944
- columnSize: (t) => `${t.value} pixels`,
945
- descending: "decrescente",
946
- descendingSort: (t) => `classificado pela coluna ${t.columnName} em ordem decrescente`,
947
- resizerDescription: "Pressione Enter para começar a redimensionar",
948
- select: "Selecionar",
949
- selectAll: "Selecionar tudo",
950
- sortable: "coluna classificável"
951
- };
952
- var Lt = {};
953
- Lt = {
954
- ascending: "ascendente",
955
- ascendingSort: (t) => `Ordenar por coluna ${t.columnName} em ordem ascendente`,
956
- columnSize: (t) => `${t.value} pixels`,
957
- descending: "descendente",
958
- descendingSort: (t) => `Ordenar por coluna ${t.columnName} em ordem descendente`,
959
- resizerDescription: "Prima Enter para iniciar o redimensionamento",
960
- select: "Selecionar",
961
- selectAll: "Selecionar tudo",
962
- sortable: "Coluna ordenável"
963
- };
964
- var Yt = {};
965
- Yt = {
966
- ascending: "crescătoare",
967
- ascendingSort: (t) => `sortate după coloana ${t.columnName} în ordine crescătoare`,
968
- columnSize: (t) => `${t.value} pixeli`,
969
- descending: "descrescătoare",
970
- descendingSort: (t) => `sortate după coloana ${t.columnName} în ordine descrescătoare`,
971
- resizerDescription: "Apăsați pe Enter pentru a începe redimensionarea",
972
- select: "Selectare",
973
- selectAll: "Selectare totală",
974
- sortable: "coloană sortabilă"
975
- };
976
- var Xt = {};
977
- Xt = {
978
- ascending: "возрастание",
979
- ascendingSort: (t) => `сортировать столбец ${t.columnName} в порядке возрастания`,
980
- columnSize: (t) => `${t.value} пикс.`,
981
- descending: "убывание",
982
- descendingSort: (t) => `сортировать столбец ${t.columnName} в порядке убывания`,
983
- resizerDescription: "Нажмите клавишу Enter для начала изменения размеров",
984
- select: "Выбрать",
985
- selectAll: "Выбрать все",
986
- sortable: "сортируемый столбец"
987
- };
988
- var qt = {};
989
- qt = {
990
- ascending: "vzostupne",
991
- ascendingSort: (t) => `zoradené zostupne podľa stĺpca ${t.columnName}`,
992
- columnSize: (t) => `Počet pixelov: ${t.value}`,
993
- descending: "zostupne",
994
- descendingSort: (t) => `zoradené zostupne podľa stĺpca ${t.columnName}`,
995
- resizerDescription: "Stlačením klávesu Enter začnete zmenu veľkosti",
996
- select: "Vybrať",
997
- selectAll: "Vybrať všetko",
998
- sortable: "zoraditeľný stĺpec"
999
- };
1000
- var Gt = {};
1001
- Gt = {
1002
- ascending: "naraščajoče",
1003
- ascendingSort: (t) => `razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,
1004
- columnSize: (t) => `${t.value} slikovnih pik`,
1005
- descending: "padajoče",
1006
- descendingSort: (t) => `razvrščeno po stolpcu ${t.columnName} v padajočem vrstnem redu`,
1007
- resizerDescription: "Pritisnite tipko Enter da začnete spreminjati velikost",
1008
- select: "Izberite",
1009
- selectAll: "Izberite vse",
1010
- sortable: "razvrstljivi stolpec"
1011
- };
1012
- var Zt = {};
1013
- Zt = {
1014
- ascending: "rastući",
1015
- ascendingSort: (t) => `sortirano po kolonama ${t.columnName} rastućim redosledom`,
1016
- columnSize: (t) => `${t.value} piksela`,
1017
- descending: "padajući",
1018
- descendingSort: (t) => `sortirano po kolonama ${t.columnName} padajućim redosledom`,
1019
- resizerDescription: "Pritisnite Enter da biste započeli promenu veličine",
1020
- select: "Izaberite",
1021
- selectAll: "Izaberite sve",
1022
- sortable: "kolona koja se može sortirati"
1023
- };
1024
- var Jt = {};
1025
- Jt = {
1026
- ascending: "stigande",
1027
- ascendingSort: (t) => `sorterat på kolumn ${t.columnName} i stigande ordning`,
1028
- columnSize: (t) => `${t.value} pixlar`,
1029
- descending: "fallande",
1030
- descendingSort: (t) => `sorterat på kolumn ${t.columnName} i fallande ordning`,
1031
- resizerDescription: "Tryck på Retur för att börja ändra storlek",
1032
- select: "Markera",
1033
- selectAll: "Markera allt",
1034
- sortable: "sorterbar kolumn"
1035
- };
1036
- var Qt = {};
1037
- Qt = {
1038
- ascending: "artan sırada",
1039
- ascendingSort: (t) => `${t.columnName} sütuna göre artan düzende sırala`,
1040
- columnSize: (t) => `${t.value} piksel`,
1041
- descending: "azalan sırada",
1042
- descendingSort: (t) => `${t.columnName} sütuna göre azalan düzende sırala`,
1043
- resizerDescription: "Yeniden boyutlandırmak için Enter'a basın",
1044
- select: "Seç",
1045
- selectAll: "Tümünü Seç",
1046
- sortable: "Sıralanabilir sütun"
1047
- };
1048
- var _t = {};
1049
- _t = {
1050
- ascending: "висхідний",
1051
- ascendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у висхідному порядку`,
1052
- columnSize: (t) => `${t.value} пікс.`,
1053
- descending: "низхідний",
1054
- descendingSort: (t) => `відсортовано за стовпцем ${t.columnName} у низхідному порядку`,
1055
- resizerDescription: "Натисніть Enter, щоб почати зміну розміру",
1056
- select: "Вибрати",
1057
- selectAll: "Вибрати все",
1058
- sortable: "сортувальний стовпець"
1059
- };
1060
- var el = {};
1061
- el = {
1062
- ascending: "升序",
1063
- ascendingSort: (t) => `按列 ${t.columnName} 升序排序`,
1064
- columnSize: (t) => `${t.value} 像素`,
1065
- descending: "降序",
1066
- descendingSort: (t) => `按列 ${t.columnName} 降序排序`,
1067
- resizerDescription: "按“输入”键开始调整大小。",
1068
- select: "选择",
1069
- selectAll: "全选",
1070
- sortable: "可排序的列"
1071
- };
1072
- var tl = {};
1073
- tl = {
1074
- ascending: "遞增",
1075
- ascendingSort: (t) => `已依據「${t.columnName}」欄遞增排序`,
1076
- columnSize: (t) => `${t.value} 像素`,
1077
- descending: "遞減",
1078
- descendingSort: (t) => `已依據「${t.columnName}」欄遞減排序`,
1079
- resizerDescription: "按 Enter 鍵以開始調整大小",
1080
- select: "選取",
1081
- selectAll: "全選",
1082
- sortable: "可排序的欄"
1083
- };
1084
- var De = {};
1085
- De = {
1086
- "ar-AE": Dt,
1087
- "bg-BG": Ct,
1088
- "cs-CZ": wt,
1089
- "da-DK": kt,
1090
- "de-DE": St,
1091
- "el-GR": Et,
1092
- "en-US": zt,
1093
- "es-ES": At,
1094
- "et-EE": Rt,
1095
- "fi-FI": Bt,
1096
- "fr-FR": Pt,
1097
- "he-IL": Kt,
1098
- "hr-HR": Mt,
1099
- "hu-HU": Tt,
1100
- "it-IT": Nt,
1101
- "ja-JP": Ft,
1102
- "ko-KR": It,
1103
- "lt-LT": Wt,
1104
- "lv-LV": Vt,
1105
- "nb-NO": Ht,
1106
- "nl-NL": jt,
1107
- "pl-PL": Ot,
1108
- "pt-BR": Ut,
1109
- "pt-PT": Lt,
1110
- "ro-RO": Yt,
1111
- "ru-RU": Xt,
1112
- "sk-SK": qt,
1113
- "sl-SI": Gt,
1114
- "sr-SP": Zt,
1115
- "sv-SE": Jt,
1116
- "tr-TR": Qt,
1117
- "uk-UA": _t,
1118
- "zh-CN": el,
1119
- "zh-TW": tl
1120
- };
1121
- class mn extends bt {
1122
- isCell(e) {
1123
- return e.type === "cell" || e.type === "rowheader" || e.type === "column";
1124
- }
1125
- getKeyBelow(e) {
1126
- let l = this.collection.getItem(e);
1127
- if (!l) return null;
1128
- if (l.type === "column") {
1129
- let n = te(W(l, this.collection));
1130
- if (n) return n.key;
1131
- let o = this.getFirstKey();
1132
- return o == null || !this.collection.getItem(o) ? null : super.getKeyForItemInRowByIndex(o, l.index);
1133
- }
1134
- return super.getKeyBelow(e);
1135
- }
1136
- getKeyAbove(e) {
1137
- let l = this.collection.getItem(e);
1138
- if (!l) return null;
1139
- if (l.type === "column") {
1140
- let r = l.parentKey != null ? this.collection.getItem(l.parentKey) : null;
1141
- return r && r.type === "column" ? r.key : null;
1142
- }
1143
- let n = super.getKeyAbove(e), o = n != null ? this.collection.getItem(n) : null;
1144
- return o && o.type !== "headerrow" ? n : this.isCell(l) ? this.collection.columns[l.index].key : this.collection.columns[0].key;
1145
- }
1146
- findNextColumnKey(e) {
1147
- let l = this.findNextKey(e.key, (o) => o.type === "column");
1148
- if (l != null) return l;
1149
- let n = this.collection.headerRows[e.level];
1150
- for (let o of W(n, this.collection))
1151
- if (o.type === "column") return o.key;
1152
- return null;
1153
- }
1154
- findPreviousColumnKey(e) {
1155
- let l = this.findPreviousKey(e.key, (r) => r.type === "column");
1156
- if (l != null) return l;
1157
- let n = this.collection.headerRows[e.level], o = [
1158
- ...W(n, this.collection)
1159
- ];
1160
- for (let r = o.length - 1; r >= 0; r--) {
1161
- let i = o[r];
1162
- if (i.type === "column") return i.key;
1163
- }
1164
- return null;
1165
- }
1166
- getKeyRightOf(e) {
1167
- let l = this.collection.getItem(e);
1168
- return l ? l.type === "column" ? this.direction === "rtl" ? this.findPreviousColumnKey(l) : this.findNextColumnKey(l) : super.getKeyRightOf(e) : null;
1169
- }
1170
- getKeyLeftOf(e) {
1171
- let l = this.collection.getItem(e);
1172
- return l ? l.type === "column" ? this.direction === "rtl" ? this.findNextColumnKey(l) : this.findPreviousColumnKey(l) : super.getKeyLeftOf(e) : null;
1173
- }
1174
- getKeyForSearch(e, l) {
1175
- if (!this.collator) return null;
1176
- let n = this.collection, o = l ?? this.getFirstKey();
1177
- if (o == null) return null;
1178
- let r = n.getItem(o);
1179
- var i;
1180
- r?.type === "cell" && (o = (i = r.parentKey) !== null && i !== void 0 ? i : null);
1181
- let u = !1;
1182
- for (; o != null; ) {
1183
- let a = n.getItem(o);
1184
- if (!a) return null;
1185
- if (a.textValue) {
1186
- let c = a.textValue.slice(0, e.length);
1187
- if (this.collator.compare(c, e) === 0) return a.key;
1188
- }
1189
- for (let c of W(a, this.collection)) {
1190
- let d = n.columns[c.index];
1191
- if (n.rowHeaderColumnKeys.has(d.key) && c.textValue) {
1192
- let s = c.textValue.slice(0, e.length);
1193
- if (this.collator.compare(s, e) === 0) {
1194
- let p = l != null ? n.getItem(l) : r;
1195
- return p?.type === "cell" ? c.key : a.key;
1196
- }
1197
- }
1198
- }
1199
- o = this.getKeyBelow(o), o == null && !u && (o = this.getFirstKey(), u = !0);
1200
- }
1201
- return null;
1202
- }
1203
- }
1204
- function gn(t) {
1205
- return t && t.__esModule ? t.default : t;
1206
- }
1207
- function bn(t, e, l) {
1208
- let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: r, layout: i } = t, u = ht({
1209
- usage: "search",
1210
- sensitivity: "base"
1211
- }), { direction: a } = pe(), c = e.selectionManager.disabledBehavior, d = T(() => n || new mn({
1212
- collection: e.collection,
1213
- disabledKeys: e.disabledKeys,
1214
- disabledBehavior: c,
1215
- ref: l,
1216
- direction: a,
1217
- collator: u,
1218
- layoutDelegate: r,
1219
- layout: i
1220
- }), [
1221
- n,
1222
- e.collection,
1223
- e.disabledKeys,
1224
- c,
1225
- l,
1226
- a,
1227
- u,
1228
- r,
1229
- i
1230
- ]), s = Ae(t.id);
1231
- Ve.set(e, s);
1232
- let { gridProps: p } = dn({
1233
- ...t,
1234
- id: s,
1235
- keyboardDelegate: d
1236
- }, e, l);
1237
- o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Ee() && "expandedKeys" in e && (p.role = "treegrid");
1238
- let { column: f, direction: h } = e.sortDescriptor || {}, g = he(gn(De), "@react-aria/table"), y = T(() => {
1239
- var x, m;
1240
- let $ = (m = (x = e.collection.columns.find((b) => b.key === f)) === null || x === void 0 ? void 0 : x.textValue) !== null && m !== void 0 ? m : "";
1241
- return h && f ? g.format(`${h}Sort`, {
1242
- columnName: $
1243
- }) : void 0;
1244
- }, [
1245
- h,
1246
- f,
1247
- e.collection.columns
1248
- ]), v = Ie(y);
1249
- return ql(() => {
1250
- y && Xl(y, "assertive", 500);
1251
- }, [
1252
- y
1253
- ]), {
1254
- gridProps: H(p, v, {
1255
- // merge sort description with long press information
1256
- "aria-describedby": [
1257
- v["aria-describedby"],
1258
- p["aria-describedby"]
1259
- ].filter(Boolean).join(" ")
1260
- })
1261
- };
1262
- }
1263
- function vn(t) {
1264
- return t && t.__esModule ? t.default : t;
1265
- }
1266
- function yn(t, e, l) {
1267
- var n, o;
1268
- let { node: r } = t, i = r.props.allowsSorting, { gridCellProps: u } = vt({
1269
- ...t,
1270
- focusMode: "child"
1271
- }, e, l), a = r.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: c } = pt({
1272
- isDisabled: !i || a,
1273
- onPress() {
1274
- e.sort(r.key);
1275
- },
1276
- ref: l
1277
- }), { focusableProps: d } = Nl({}, l), s, p = ((n = e.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === r.key, f = (o = e.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
1278
- r.props.allowsSorting && !_e() && (s = p ? f : "none");
1279
- let h = he(vn(De), "@react-aria/table"), g;
1280
- i && (g = `${h.format("sortable")}`, p && f && _e() && (g = `${g}, ${h.format(f)}`));
1281
- let y = Ie(g), v = e.collection.size === 0;
1282
- return oe(() => {
1283
- v && e.selectionManager.focusedKey === r.key && e.selectionManager.setFocusedKey(null);
1284
- }, [
1285
- v,
1286
- e.selectionManager,
1287
- r.key
1288
- ]), {
1289
- columnHeaderProps: {
1290
- ...H(
1291
- d,
1292
- u,
1293
- c,
1294
- y,
1295
- // If the table is empty, make all column headers untabbable
1296
- v ? {
1297
- tabIndex: -1
1298
- } : null
1299
- ),
1300
- role: "columnheader",
1301
- id: yt(e, r.key),
1302
- "aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
1303
- "aria-sort": s
1304
- }
1305
- };
1306
- }
1307
- const lt = {
1308
- expand: {
1309
- ltr: "ArrowRight",
1310
- rtl: "ArrowLeft"
1311
- },
1312
- collapse: {
1313
- ltr: "ArrowLeft",
1314
- rtl: "ArrowRight"
1315
- }
1316
- };
1317
- function $n(t, e, l) {
1318
- let { node: n, isVirtualized: o } = t, { rowProps: r, ...i } = fn(t, e, l), { direction: u } = pe();
1319
- o && !(Ee() && "expandedKeys" in e) ? r["aria-rowindex"] = n.index + 1 + e.collection.headerRows.length : delete r["aria-rowindex"];
1320
- let a = {};
1321
- if (Ee() && "expandedKeys" in e) {
1322
- let b = e.keyMap.get(n.key);
1323
- if (b != null) {
1324
- var c, d, s, p, f, h;
1325
- let C = ((c = b.props) === null || c === void 0 ? void 0 : c.UNSTABLE_childItems) || ((s = b.props) === null || s === void 0 || (d = s.children) === null || d === void 0 ? void 0 : d.length) > e.userColumnCount;
1326
- var g, y, v, x;
1327
- a = {
1328
- onKeyDown: (k) => {
1329
- (k.key === lt.expand[u] && e.selectionManager.focusedKey === b.key && C && e.expandedKeys !== "all" && !e.expandedKeys.has(b.key) || k.key === lt.collapse[u] && e.selectionManager.focusedKey === b.key && C && (e.expandedKeys === "all" || e.expandedKeys.has(b.key))) && (e.toggleKey(b.key), k.stopPropagation());
1330
- },
1331
- "aria-expanded": C ? e.expandedKeys === "all" || e.expandedKeys.has(n.key) : void 0,
1332
- "aria-level": b.level,
1333
- "aria-posinset": ((g = b.indexOfType) !== null && g !== void 0 ? g : 0) + 1,
1334
- "aria-setsize": b.level > 1 ? ((v = (p = le((y = (f = e.keyMap.get(b.parentKey)) === null || f === void 0 ? void 0 : f.childNodes) !== null && y !== void 0 ? y : [])) === null || p === void 0 ? void 0 : p.indexOfType) !== null && v !== void 0 ? v : 0) + 1 : ((x = (h = le(e.collection.body.childNodes)) === null || h === void 0 ? void 0 : h.indexOfType) !== null && x !== void 0 ? x : 0) + 1
1335
- };
1336
- }
1337
- }
1338
- let m = jl(n.props), $ = i.hasAction ? m : {};
1339
- return {
1340
- rowProps: {
1341
- ...H(r, a, $),
1342
- "aria-labelledby": xt(e, n.key)
1343
- },
1344
- ...i
1345
- };
1346
- }
1347
- function xn(t, e, l) {
1348
- let { node: n, isVirtualized: o } = t, r = {
1349
- role: "row"
1350
- };
1351
- return o && !(Ee() && "expandedKeys" in e) && (r["aria-rowindex"] = n.index + 1), {
1352
- rowProps: r
1353
- };
1354
- }
1355
- function Dn(t, e, l) {
1356
- var n;
1357
- let { gridCellProps: o, isPressed: r } = vt(t, e, l), i = (n = t.node.column) === null || n === void 0 ? void 0 : n.key;
1358
- return i != null && e.collection.rowHeaderColumnKeys.has(i) && (o.role = "rowheader", o.id = $t(e, t.node.parentKey, i)), {
1359
- gridCellProps: o,
1360
- isPressed: r
1361
- };
1362
- }
1363
- function Cn(t) {
1364
- return t && t.__esModule ? t.default : t;
1365
- }
1366
- function wn(t, e) {
1367
- let { key: l } = t;
1368
- const { checkboxProps: n } = hn(t, e);
1369
- return {
1370
- checkboxProps: {
1371
- ...n,
1372
- "aria-labelledby": `${n.id} ${xt(e, l)}`
1373
- }
1374
- };
1375
- }
1376
- function kn(t) {
1377
- let { isEmpty: e, isSelectAll: l, selectionMode: n } = t.selectionManager;
1378
- return {
1379
- checkboxProps: {
1380
- "aria-label": he(Cn(De), "@react-aria/table").format(n === "single" ? "select" : "selectAll"),
1381
- isSelected: l,
1382
- isDisabled: n !== "multiple" || t.collection.size === 0 || t.collection.rows.length === 1 && t.collection.rows[0].type === "loader",
1383
- isIndeterminate: !e && !l,
1384
- onChange: () => t.selectionManager.toggleSelectAll()
1385
- }
1386
- };
1387
- }
1388
- function Sn(t) {
1389
- return t && t.__esModule ? t.default : t;
1390
- }
1391
- function En(t, e, l) {
1392
- let { column: n, triggerRef: o, isDisabled: r, onResizeStart: i, onResize: u, onResizeEnd: a, "aria-label": c } = t;
1393
- const d = he(Sn(De), "@react-aria/table");
1394
- let s = Ae(), p = e.resizingColumn === n.key, f = M(p), h = M(null), g = M(!1), y = e.tableState.isKeyboardNavigationDisabled, { direction: v } = pe(), { keyboardProps: x } = Fl({
1395
- onKeyDown: (S) => {
1396
- y ? (S.key === "Escape" || S.key === "Enter" || S.key === " " || S.key === "Tab") && (S.preventDefault(), b(n)) : (S.continuePropagation(), S.key === "Enter" && m(n));
1397
- }
1398
- }), m = ve((S) => {
1399
- f.current || (h.current = e.updateResizedColumns(S.key, e.getColumnWidth(S.key)), e.startResize(S.key), e.tableState.setKeyboardNavigationDisabled(!0), i?.(h.current)), f.current = !0;
1400
- }), $ = ve((S, B) => {
1401
- let L = e.updateResizedColumns(S.key, B);
1402
- u?.(L), h.current = L;
1403
- }), b = ve((S) => {
1404
- f.current && (h.current == null && (h.current = e.updateResizedColumns(S.key, e.getColumnWidth(S.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), a?.(h.current), f.current = !1, o?.current && !g.current && q(o.current)), h.current = null;
1405
- });
1406
- const C = M(0), { moveProps: k } = un({
1407
- onMoveStart() {
1408
- C.current = e.getColumnWidth(n.key), m(n);
1409
- },
1410
- onMove(S) {
1411
- let { deltaX: B, deltaY: L, pointerType: X } = S;
1412
- v === "rtl" && (B *= -1), X === "keyboard" && (L !== 0 && B === 0 && (B = L * -1), B *= 10), B !== 0 && (C.current += B, $(n, C.current));
1413
- },
1414
- onMoveEnd(S) {
1415
- let { pointerType: B } = S;
1416
- C.current = 0, (B === "mouse" || B === "touch" && g.current) && b(n);
1417
- }
1418
- });
1419
- let P = O((S) => {
1420
- var B;
1421
- y && ((B = k.onKeyDown) === null || B === void 0 || B.call(k, S));
1422
- }, [
1423
- y,
1424
- k
1425
- ]), K = Math.floor(e.getColumnMinWidth(n.key)), E = Math.floor(e.getColumnMaxWidth(n.key));
1426
- E === 1 / 0 && (E = Number.MAX_SAFE_INTEGER);
1427
- let N = Math.floor(e.getColumnWidth(n.key)), F = Wl();
1428
- F === "virtual" && typeof window < "u" && "ontouchstart" in window && (F = "touch");
1429
- let V = o?.current == null && (F === "keyboard" || F === "virtual") && !p ? d.format("resizerDescription") : void 0, z = Ie(V), R = {
1430
- "aria-label": c,
1431
- "aria-orientation": "horizontal",
1432
- "aria-labelledby": `${s} ${yt(e.tableState, n.key)}`,
1433
- "aria-valuetext": d.format("columnSize", {
1434
- value: N
1435
- }),
1436
- type: "range",
1437
- min: K,
1438
- max: E,
1439
- value: N,
1440
- ...z
1441
- };
1442
- const j = O(() => {
1443
- l.current && q(l.current);
1444
- }, [
1445
- l
1446
- ]);
1447
- let I = e.resizingColumn, Q = M(null);
1448
- oe(() => {
1449
- if (Q.current !== I && I != null && I === n.key) {
1450
- g.current = document.activeElement === l.current, m(n);
1451
- let S = setTimeout(() => j(), 0), B = setTimeout(j, 400);
1452
- return () => {
1453
- clearTimeout(S), clearTimeout(B);
1454
- };
1455
- }
1456
- Q.current = I;
1457
- }, [
1458
- I,
1459
- n,
1460
- j,
1461
- l,
1462
- m
1463
- ]);
1464
- let ge = (S) => {
1465
- let B = e.getColumnWidth(n.key), L = parseFloat(S.target.value);
1466
- L > B ? L = B + 10 : L = B - 10, $(n, L);
1467
- }, { pressProps: Ce } = pt({
1468
- preventFocusOnPress: !0,
1469
- onPressStart: (S) => {
1470
- if (!(S.ctrlKey || S.altKey || S.metaKey || S.shiftKey || S.pointerType === "keyboard")) {
1471
- if (S.pointerType === "virtual" && e.resizingColumn != null) {
1472
- b(n);
1473
- return;
1474
- }
1475
- j(), S.pointerType !== "virtual" && m(n);
1476
- }
1477
- },
1478
- onPress: (S) => {
1479
- (S.pointerType === "touch" && g.current || S.pointerType === "mouse") && e.resizingColumn != null && b(n);
1480
- }
1481
- }), { visuallyHiddenProps: we } = Re();
1482
- return {
1483
- resizerProps: H(x, {
1484
- ...k,
1485
- onKeyDown: P
1486
- }, Ce, {
1487
- style: {
1488
- touchAction: "none"
1489
- }
1490
- }),
1491
- inputProps: H(we, {
1492
- id: s,
1493
- onBlur: () => {
1494
- b(n);
1495
- },
1496
- onChange: ge,
1497
- disabled: r
1498
- }, R),
1499
- isResizing: p
1500
- };
1501
- }
1502
- function ll() {
1503
- return cn();
1504
- }
1505
- function zn(t) {
1506
- return t != null && (!isNaN(t) || String(t).match(/^(\d+)(?=%$)/) !== null);
1507
- }
1508
- function An(t) {
1509
- if (!t || typeof t == "number") return 1;
1510
- let e = t.match(/^(.+)(?=fr$)/);
1511
- return e ? parseFloat(e[0]) : (process.env.NODE_ENV !== "production" && console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`, "defaulting to '1fr'"), 1);
1512
- }
1513
- function He(t, e) {
1514
- if (typeof t == "string") {
1515
- let l = t.match(/^(\d+)(?=%$)/);
1516
- if (!l) throw new Error("Only percentages or numbers are supported for static column widths");
1517
- return e * (parseFloat(l[0]) / 100);
1518
- }
1519
- return t;
1520
- }
1521
- function nl(t, e) {
1522
- return t != null ? He(t, e) : Number.MAX_SAFE_INTEGER;
1523
- }
1524
- function ol(t, e) {
1525
- return t != null ? He(t, e) : 0;
1526
- }
1527
- function Rn(t, e, l, n, o) {
1528
- let r = !1, i = e.map((u, a) => {
1529
- var c, d, s, p;
1530
- let f = l.get(u.key) != null ? (c = l.get(u.key)) !== null && c !== void 0 ? c : "1fr" : (p = (s = (d = u.width) !== null && d !== void 0 ? d : u.defaultWidth) !== null && s !== void 0 ? s : n?.(a)) !== null && p !== void 0 ? p : "1fr", h = !1, g = 0, y = 0, v = 0;
1531
- zn(f) ? (g = He(f, t), h = !0) : (y = An(f), y <= 0 && (h = !0));
1532
- var x, m;
1533
- let $ = ol((m = (x = u.minWidth) !== null && x !== void 0 ? x : o?.(a)) !== null && m !== void 0 ? m : 0, t), b = nl(u.maxWidth, t), C = Math.max($, Math.min(g, b));
1534
- return h ? v = C : g > C && (h = !0, v = C), h || (r = !0), {
1535
- frozen: h,
1536
- baseSize: g,
1537
- hypotheticalMainSize: C,
1538
- min: $,
1539
- max: b,
1540
- flex: y,
1541
- targetMainSize: v,
1542
- violation: 0
1543
- };
1544
- });
1545
- for (; r; ) {
1546
- let u = 0, a = 0;
1547
- i.forEach((s) => {
1548
- s.frozen ? u += s.targetMainSize : (u += s.baseSize, a += s.flex);
1549
- });
1550
- let c = t - u;
1551
- c > 0 && i.forEach((s) => {
1552
- if (!s.frozen) {
1553
- let p = s.flex / a;
1554
- s.targetMainSize = s.baseSize + p * c;
1555
- }
1556
- });
1557
- let d = 0;
1558
- i.forEach((s) => {
1559
- if (s.violation = 0, !s.frozen) {
1560
- let { min: p, max: f, targetMainSize: h } = s;
1561
- s.targetMainSize = Math.max(p, Math.min(h, f)), s.violation = s.targetMainSize - h, d += s.violation;
1562
- }
1563
- }), r = !1, i.forEach((s) => {
1564
- d === 0 || Math.sign(d) === Math.sign(s.violation) ? s.frozen = !0 : s.frozen || (r = !0);
1565
- });
1566
- }
1567
- return Bn(i);
1568
- }
1569
- function Bn(t) {
1570
- let e = 0, l = 0, n = [];
1571
- return t.forEach(function(o) {
1572
- let r = o.targetMainSize, i = Math.round(r + e) - l;
1573
- e += r, l += i, n.push(i);
1574
- }), n;
1575
- }
1576
- class Pn {
1577
- /** Takes an array of columns and splits it into 2 maps of columns with controlled and columns with uncontrolled widths. */
1578
- splitColumnsIntoControlledAndUncontrolled(e) {
1579
- return e.reduce((l, n) => (n.props.width != null ? l[0].set(n.key, n) : l[1].set(n.key, n), l), [
1580
- /* @__PURE__ */ new Map(),
1581
- /* @__PURE__ */ new Map()
1582
- ]);
1583
- }
1584
- /** Takes uncontrolled and controlled widths and joins them into a single Map. */
1585
- recombineColumns(e, l, n, o) {
1586
- return new Map(e.map((r) => n.has(r.key) ? [
1587
- r.key,
1588
- l.get(r.key)
1589
- ] : [
1590
- r.key,
1591
- o.get(r.key).props.width
1592
- ]));
1593
- }
1594
- /** Used to make an initial Map of the uncontrolled widths based on default widths. */
1595
- getInitialUncontrolledWidths(e) {
1596
- return new Map(Array.from(e).map(([l, n]) => {
1597
- var o, r, i, u;
1598
- return [
1599
- l,
1600
- (u = (i = n.props.defaultWidth) !== null && i !== void 0 ? i : (o = (r = this).getDefaultWidth) === null || o === void 0 ? void 0 : o.call(r, n)) !== null && u !== void 0 ? u : "1fr"
1601
- ];
1602
- }));
1603
- }
1604
- getColumnWidth(e) {
1605
- var l;
1606
- return (l = this.columnWidths.get(e)) !== null && l !== void 0 ? l : 0;
1607
- }
1608
- getColumnMinWidth(e) {
1609
- var l;
1610
- return (l = this.columnMinWidths.get(e)) !== null && l !== void 0 ? l : 0;
1611
- }
1612
- getColumnMaxWidth(e) {
1613
- var l;
1614
- return (l = this.columnMaxWidths.get(e)) !== null && l !== void 0 ? l : 0;
1615
- }
1616
- resizeColumnWidth(e, l, n, o) {
1617
- let r = this.columnWidths, i = !0, u = /* @__PURE__ */ new Map();
1618
- return o = Math.max(this.getColumnMinWidth(n), Math.min(this.getColumnMaxWidth(n), Math.floor(o))), e.columns.forEach((a) => {
1619
- var c, d;
1620
- a.key === n ? (u.set(a.key, o), i = !1) : i ? u.set(a.key, (c = r.get(a.key)) !== null && c !== void 0 ? c : 0) : u.set(a.key, (d = a.props.width) !== null && d !== void 0 ? d : l.get(a.key));
1621
- }), u;
1622
- }
1623
- buildColumnWidths(e, l, n) {
1624
- return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), Rn(e, l.columns.map((r) => ({
1625
- ...r.props,
1626
- key: r.key
1627
- })), n, (r) => this.getDefaultWidth(l.columns[r]), (r) => this.getDefaultMinWidth(l.columns[r])).forEach((r, i) => {
1628
- let u = l.columns[i].key, a = l.columns[i];
1629
- this.columnWidths.set(u, r);
1630
- var c;
1631
- this.columnMinWidths.set(u, ol((c = a.props.minWidth) !== null && c !== void 0 ? c : this.getDefaultMinWidth(a), e)), this.columnMaxWidths.set(u, nl(a.props.maxWidth, e));
1632
- }), this.columnWidths;
1633
- }
1634
- constructor(e) {
1635
- this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map();
1636
- var l;
1637
- this.getDefaultWidth = (l = e?.getDefaultWidth) !== null && l !== void 0 ? l : () => "1fr";
1638
- var n;
1639
- this.getDefaultMinWidth = (n = e?.getDefaultMinWidth) !== null && n !== void 0 ? n : () => 75;
1640
- }
1641
- }
1642
- function Kn(t, e) {
1643
- let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [r, i] = G(null), u = T(() => new Pn({
1644
- getDefaultWidth: l,
1645
- getDefaultMinWidth: n
1646
- }), [
1647
- l,
1648
- n
1649
- ]), [a, c] = T(() => u.splitColumnsIntoControlledAndUncontrolled(e.collection.columns), [
1650
- e.collection.columns,
1651
- u
1652
- ]), [d, s] = G(() => u.getInitialUncontrolledWidths(c)), [p, f] = G(e.collection.columns);
1653
- if (e.collection.columns !== p) {
1654
- if (e.collection.columns.length !== p.length || e.collection.columns.some((m, $) => m.key !== p[$].key)) {
1655
- let m = u.getInitialUncontrolledWidths(c);
1656
- s(m);
1657
- }
1658
- f(e.collection.columns);
1659
- }
1660
- let h = T(() => u.recombineColumns(e.collection.columns, d, c, a), [
1661
- e.collection.columns,
1662
- d,
1663
- c,
1664
- a,
1665
- u
1666
- ]), g = O((m) => {
1667
- i(m);
1668
- }, [
1669
- i
1670
- ]), y = O((m, $) => {
1671
- let b = u.resizeColumnWidth(e.collection, d, m, $), C = new Map(Array.from(c).map(([k]) => [
1672
- k,
1673
- b.get(k)
1674
- ]));
1675
- return C.set(m, $), s(C), b;
1676
- }, [
1677
- c,
1678
- s,
1679
- u,
1680
- e.collection,
1681
- d
1682
- ]), v = O(() => {
1683
- i(null);
1684
- }, [
1685
- i
1686
- ]), x = T(() => u.buildColumnWidths(o, e.collection, h), [
1687
- o,
1688
- e.collection,
1689
- h,
1690
- u
1691
- ]);
1692
- return T(() => ({
1693
- resizingColumn: r,
1694
- updateResizedColumns: y,
1695
- startResize: g,
1696
- endResize: v,
1697
- getColumnWidth: (m) => u.getColumnWidth(m),
1698
- getColumnMinWidth: (m) => u.getColumnMinWidth(m),
1699
- getColumnMaxWidth: (m) => u.getColumnMaxWidth(m),
1700
- tableState: e,
1701
- columnWidths: x
1702
- }), [
1703
- u,
1704
- x,
1705
- r,
1706
- y,
1707
- g,
1708
- v,
1709
- e
1710
- ]);
1711
- }
1712
- function Mn(t) {
1713
- let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState || dt(t), o = T(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
1714
- t.disabledKeys
1715
- ]), r = n.setFocusedKey;
1716
- n.setFocusedKey = (a, c) => {
1717
- if (l === "cell" && a != null) {
1718
- let h = e.getItem(a);
1719
- if (h?.type === "item") {
1720
- var d, s;
1721
- let g = W(h, e);
1722
- var p, f;
1723
- c === "last" ? a = (p = (d = le(g)) === null || d === void 0 ? void 0 : d.key) !== null && p !== void 0 ? p : null : a = (f = (s = te(g)) === null || s === void 0 ? void 0 : s.key) !== null && f !== void 0 ? f : null;
1724
- }
1725
- }
1726
- r(a, c);
1727
- };
1728
- let i = T(() => new vl(e, n), [
1729
- e,
1730
- n
1731
- ]);
1732
- const u = M(null);
1733
- return oe(() => {
1734
- if (n.focusedKey != null && u.current && !e.getItem(n.focusedKey)) {
1735
- const a = u.current.getItem(n.focusedKey), c = a?.parentKey != null && (a.type === "cell" || a.type === "rowheader" || a.type === "column") ? u.current.getItem(a.parentKey) : a;
1736
- if (!c) {
1737
- n.setFocusedKey(null);
1738
- return;
1739
- }
1740
- const d = u.current.rows, s = e.rows, p = d.length - s.length;
1741
- let f = Math.min(p > 1 ? Math.max(c.index - p + 1, 0) : c.index, s.length - 1), h = null;
1742
- for (; f >= 0; ) {
1743
- if (!i.isDisabled(s[f].key) && s[f].type !== "headerrow") {
1744
- h = s[f];
1745
- break;
1746
- }
1747
- f < s.length - 1 ? f++ : (f > c.index && (f = c.index), f--);
1748
- }
1749
- if (h) {
1750
- const g = h.hasChildNodes ? [
1751
- ...W(h, e)
1752
- ] : [], y = h.hasChildNodes && c !== a && a && a.index < g.length ? g[a.index].key : h.key;
1753
- n.setFocusedKey(y);
1754
- } else n.setFocusedKey(null);
1755
- }
1756
- u.current = e;
1757
- }, [
1758
- e,
1759
- i,
1760
- n,
1761
- n.focusedKey
1762
- ]), {
1763
- collection: e,
1764
- disabledKeys: o,
1765
- isKeyboardNavigationDisabled: !1,
1766
- selectionManager: i
1767
- };
1768
- }
1769
- class Tn {
1770
- *[Symbol.iterator]() {
1771
- yield* [
1772
- ...this.rows
1773
- ];
1774
- }
1775
- get size() {
1776
- return [
1777
- ...this.rows
1778
- ].length;
1779
- }
1780
- getKeys() {
1781
- return this.keyMap.keys();
1782
- }
1783
- getKeyBefore(e) {
1784
- let l = this.keyMap.get(e);
1785
- var n;
1786
- return l && (n = l.prevKey) !== null && n !== void 0 ? n : null;
1787
- }
1788
- getKeyAfter(e) {
1789
- let l = this.keyMap.get(e);
1790
- var n;
1791
- return l && (n = l.nextKey) !== null && n !== void 0 ? n : null;
1792
- }
1793
- getFirstKey() {
1794
- var e;
1795
- return (e = [
1796
- ...this.rows
1797
- ][0]) === null || e === void 0 ? void 0 : e.key;
1798
- }
1799
- getLastKey() {
1800
- var e;
1801
- let l = [
1802
- ...this.rows
1803
- ];
1804
- return (e = l[l.length - 1]) === null || e === void 0 ? void 0 : e.key;
1805
- }
1806
- getItem(e) {
1807
- var l;
1808
- return (l = this.keyMap.get(e)) !== null && l !== void 0 ? l : null;
1809
- }
1810
- at(e) {
1811
- const l = [
1812
- ...this.getKeys()
1813
- ];
1814
- return this.getItem(l[e]);
1815
- }
1816
- getChildren(e) {
1817
- let l = this.keyMap.get(e);
1818
- return l?.childNodes || [];
1819
- }
1820
- constructor(e) {
1821
- this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
1822
- let l = (s) => {
1823
- let p = this.keyMap.get(s.key);
1824
- e.visitNode && (s = e.visitNode(s)), this.keyMap.set(s.key, s);
1825
- let f = /* @__PURE__ */ new Set(), h = null, g = !1;
1826
- if (s.type === "item") {
1827
- var y;
1828
- for (let b of s.childNodes) if (((y = b.props) === null || y === void 0 ? void 0 : y.colSpan) !== void 0) {
1829
- g = !0;
1830
- break;
1831
- }
1832
- }
1833
- for (let b of s.childNodes) {
1834
- if (b.type === "cell" && g) {
1835
- var v, x;
1836
- b.colspan = (v = b.props) === null || v === void 0 ? void 0 : v.colSpan, b.colSpan = (x = b.props) === null || x === void 0 ? void 0 : x.colSpan;
1837
- var m, $;
1838
- b.colIndex = h ? ((m = h.colIndex) !== null && m !== void 0 ? m : h.index) + (($ = h.colSpan) !== null && $ !== void 0 ? $ : 1) : b.index;
1839
- }
1840
- b.type === "cell" && b.parentKey == null && (b.parentKey = s.key), f.add(b.key), h ? (h.nextKey = b.key, b.prevKey = h.key) : b.prevKey = null, l(b), h = b;
1841
- }
1842
- if (h && (h.nextKey = null), p)
1843
- for (let b of p.childNodes) f.has(b.key) || n(b);
1844
- }, n = (s) => {
1845
- this.keyMap.delete(s.key);
1846
- for (let p of s.childNodes) this.keyMap.get(p.key) === p && n(p);
1847
- }, o = null;
1848
- for (let [s, p] of e.items.entries()) {
1849
- var r, i, u, a, c, d;
1850
- let f = {
1851
- ...p,
1852
- level: (r = p.level) !== null && r !== void 0 ? r : 0,
1853
- key: (i = p.key) !== null && i !== void 0 ? i : "row-" + s,
1854
- type: (u = p.type) !== null && u !== void 0 ? u : "row",
1855
- value: (a = p.value) !== null && a !== void 0 ? a : null,
1856
- hasChildNodes: !0,
1857
- childNodes: [
1858
- ...p.childNodes
1859
- ],
1860
- rendered: p.rendered,
1861
- textValue: (c = p.textValue) !== null && c !== void 0 ? c : "",
1862
- index: (d = p.index) !== null && d !== void 0 ? d : s
1863
- };
1864
- o ? (o.nextKey = f.key, f.prevKey = o.key) : f.prevKey = null, this.rows.push(f), l(f), o = f;
1865
- }
1866
- o && (o.nextKey = null);
1867
- }
1868
- }
1869
- const rl = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
1870
- let Ne = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
1871
- for (; rl === Ne; ) Ne = "row-header-column-" + Math.random().toString(36).slice(2);
1872
- function il(t, e) {
1873
- if (e.length === 0) return [];
1874
- let l = [], n = /* @__PURE__ */ new Map();
1875
- for (let d of e) {
1876
- let s = d.parentKey, p = [
1877
- d
1878
- ];
1879
- for (; s; ) {
1880
- let f = t.get(s);
1881
- if (!f) break;
1882
- if (n.has(f)) {
1883
- var o, r;
1884
- (r = (o = f).colSpan) !== null && r !== void 0 || (o.colSpan = 0), f.colSpan++, f.colspan = f.colSpan;
1885
- let { column: h, index: g } = n.get(f);
1886
- if (g > p.length) break;
1887
- for (let y = g; y < p.length; y++) h.splice(y, 0, null);
1888
- for (let y = p.length; y < h.length; y++)
1889
- h[y] && n.has(h[y]) && (n.get(h[y]).index = y);
1890
- } else
1891
- f.colSpan = 1, f.colspan = 1, p.push(f), n.set(f, {
1892
- column: p,
1893
- index: p.length - 1
1894
- });
1895
- s = f.parentKey;
1896
- }
1897
- l.push(p), d.index = l.length - 1;
1898
- }
1899
- let i = Math.max(...l.map((d) => d.length)), u = Array(i).fill(0).map(() => []), a = 0;
1900
- for (let d of l) {
1901
- let s = i - 1;
1902
- for (let p of d) {
1903
- if (p) {
1904
- let f = u[s], h = f.reduce((g, y) => {
1905
- var v;
1906
- return g + ((v = y.colSpan) !== null && v !== void 0 ? v : 1);
1907
- }, 0);
1908
- if (h < a) {
1909
- let g = {
1910
- type: "placeholder",
1911
- key: "placeholder-" + p.key,
1912
- colspan: a - h,
1913
- colSpan: a - h,
1914
- index: h,
1915
- value: null,
1916
- rendered: null,
1917
- level: s,
1918
- hasChildNodes: !1,
1919
- childNodes: [],
1920
- textValue: ""
1921
- };
1922
- f.length > 0 && (f[f.length - 1].nextKey = g.key, g.prevKey = f[f.length - 1].key), f.push(g);
1923
- }
1924
- f.length > 0 && (f[f.length - 1].nextKey = p.key, p.prevKey = f[f.length - 1].key), p.level = s, p.colIndex = a, f.push(p);
1925
- }
1926
- s--;
1927
- }
1928
- a++;
1929
- }
1930
- let c = 0;
1931
- for (let d of u) {
1932
- let s = d.reduce((p, f) => {
1933
- var h;
1934
- return p + ((h = f.colSpan) !== null && h !== void 0 ? h : 1);
1935
- }, 0);
1936
- if (s < e.length) {
1937
- let p = {
1938
- type: "placeholder",
1939
- key: "placeholder-" + d[d.length - 1].key,
1940
- colSpan: e.length - s,
1941
- colspan: e.length - s,
1942
- index: s,
1943
- value: null,
1944
- rendered: null,
1945
- level: c,
1946
- hasChildNodes: !1,
1947
- childNodes: [],
1948
- textValue: "",
1949
- prevKey: d[d.length - 1].key
1950
- };
1951
- d.push(p);
1952
- }
1953
- c++;
1954
- }
1955
- return u.map((d, s) => ({
1956
- type: "headerrow",
1957
- key: "headerrow-" + s,
1958
- index: s,
1959
- value: null,
1960
- rendered: null,
1961
- level: 0,
1962
- hasChildNodes: !0,
1963
- childNodes: d,
1964
- textValue: ""
1965
- }));
1966
- }
1967
- class Nn extends Tn {
1968
- *[Symbol.iterator]() {
1969
- yield* this.body.childNodes;
1970
- }
1971
- get size() {
1972
- return this._size;
1973
- }
1974
- getKeys() {
1975
- return this.keyMap.keys();
1976
- }
1977
- getKeyBefore(e) {
1978
- let l = this.keyMap.get(e);
1979
- var n;
1980
- return (n = l?.prevKey) !== null && n !== void 0 ? n : null;
1981
- }
1982
- getKeyAfter(e) {
1983
- let l = this.keyMap.get(e);
1984
- var n;
1985
- return (n = l?.nextKey) !== null && n !== void 0 ? n : null;
1986
- }
1987
- getFirstKey() {
1988
- var e, l;
1989
- return (l = (e = te(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
1990
- }
1991
- getLastKey() {
1992
- var e, l;
1993
- return (l = (e = le(this.body.childNodes)) === null || e === void 0 ? void 0 : e.key) !== null && l !== void 0 ? l : null;
1994
- }
1995
- getItem(e) {
1996
- var l;
1997
- return (l = this.keyMap.get(e)) !== null && l !== void 0 ? l : null;
1998
- }
1999
- at(e) {
2000
- const l = [
2001
- ...this.getKeys()
2002
- ];
2003
- return this.getItem(l[e]);
2004
- }
2005
- getChildren(e) {
2006
- return e === this.body.key ? this.body.childNodes : super.getChildren(e);
2007
- }
2008
- getTextValue(e) {
2009
- let l = this.getItem(e);
2010
- if (!l) return "";
2011
- if (l.textValue) return l.textValue;
2012
- let n = this.rowHeaderColumnKeys;
2013
- if (n) {
2014
- let o = [];
2015
- for (let r of l.childNodes) {
2016
- let i = this.columns[r.index];
2017
- if (n.has(i.key) && r.textValue && o.push(r.textValue), o.length === n.size) break;
2018
- }
2019
- return o.join(" ");
2020
- }
2021
- return "";
2022
- }
2023
- constructor(e, l, n) {
2024
- let o = /* @__PURE__ */ new Set(), r = null, i = [];
2025
- if (n?.showSelectionCheckboxes) {
2026
- let s = {
2027
- type: "column",
2028
- key: rl,
2029
- value: null,
2030
- textValue: "",
2031
- level: 0,
2032
- index: n?.showDragButtons ? 1 : 0,
2033
- hasChildNodes: !1,
2034
- rendered: null,
2035
- childNodes: [],
2036
- props: {
2037
- isSelectionCell: !0
2038
- }
2039
- };
2040
- i.unshift(s);
2041
- }
2042
- if (n?.showDragButtons) {
2043
- let s = {
2044
- type: "column",
2045
- key: Ne,
2046
- value: null,
2047
- textValue: "",
2048
- level: 0,
2049
- index: 0,
2050
- hasChildNodes: !1,
2051
- rendered: null,
2052
- childNodes: [],
2053
- props: {
2054
- isDragButtonCell: !0
2055
- }
2056
- };
2057
- i.unshift(s);
2058
- }
2059
- let u = [], a = /* @__PURE__ */ new Map(), c = (s) => {
2060
- switch (s.type) {
2061
- case "body":
2062
- r = s;
2063
- break;
2064
- case "column":
2065
- a.set(s.key, s), s.hasChildNodes || (i.push(s), s.props.isRowHeader && o.add(s.key));
2066
- break;
2067
- case "item":
2068
- u.push(s);
2069
- return;
2070
- }
2071
- for (let p of s.childNodes) c(p);
2072
- };
2073
- for (let s of e) c(s);
2074
- let d = il(a, i);
2075
- if (d.forEach((s, p) => u.splice(p, 0, s)), super({
2076
- columnCount: i.length,
2077
- items: u,
2078
- visitNode: (s) => (s.column = i[s.index], s)
2079
- }), this._size = 0, this.columns = i, this.rowHeaderColumnKeys = o, this.body = r, this.headerRows = d, this._size = [
2080
- ...r.childNodes
2081
- ].length, this.rowHeaderColumnKeys.size === 0) {
2082
- let s = this.columns.find((p) => {
2083
- var f, h;
2084
- return !(!((f = p.props) === null || f === void 0) && f.isDragButtonCell) && !(!((h = p.props) === null || h === void 0) && h.isSelectionCell);
2085
- });
2086
- s && this.rowHeaderColumnKeys.add(s.key);
2087
- }
2088
- }
2089
- }
2090
- const Fn = {
2091
- ascending: "descending",
2092
- descending: "ascending"
2093
- };
2094
- function In(t) {
2095
- let [e, l] = G(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons: r } = t, i = T(() => ({
2096
- showSelectionCheckboxes: o && n !== "none",
2097
- showDragButtons: r,
2098
- selectionMode: n,
2099
- columns: []
2100
- }), [
2101
- t.children,
2102
- o,
2103
- n,
2104
- r
2105
- ]), u = yl(t, O((s) => new Nn(s, null, i), [
2106
- i
2107
- ]), i), { disabledKeys: a, selectionManager: c } = Mn({
2108
- ...t,
2109
- collection: u,
2110
- disabledBehavior: t.disabledBehavior || "selection"
2111
- });
2112
- var d;
2113
- return {
2114
- collection: u,
2115
- disabledKeys: a,
2116
- selectionManager: c,
2117
- showSelectionCheckboxes: t.showSelectionCheckboxes || !1,
2118
- sortDescriptor: (d = t.sortDescriptor) !== null && d !== void 0 ? d : null,
2119
- isKeyboardNavigationDisabled: u.size === 0 || e,
2120
- setKeyboardNavigationDisabled: l,
2121
- sort(s, p) {
2122
- var f, h;
2123
- (h = t.onSortChange) === null || h === void 0 || h.call(t, {
2124
- column: s,
2125
- direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === s ? Fn[t.sortDescriptor.direction] : "ascending")
2126
- });
2127
- }
2128
- };
2129
- }
2130
- function Wn(t) {
2131
- return t && t.__esModule ? t.default : t;
2132
- }
2133
- class Vn extends Dl {
2134
- addNode(e) {
2135
- super.addNode(e), this.columnsDirty || (this.columnsDirty = e.type === "column"), e.type === "tableheader" && (this.head = e), e.type === "tablebody" && (this.body = e);
2136
- }
2137
- commit(e, l, n = !1) {
2138
- this.updateColumns(n), this.rows = [];
2139
- for (let i of this.getChildren(this.body.key)) {
2140
- let u = i.lastChildKey;
2141
- if (u != null) {
2142
- let a = this.getItem(u);
2143
- var o, r;
2144
- let c = ((o = a.colIndex) !== null && o !== void 0 ? o : a.index) + ((r = a.colSpan) !== null && r !== void 0 ? r : 1);
2145
- if (c !== this.columns.length && !n) throw new Error(`Cell count must match column count. Found ${c} cells and ${this.columns.length} columns.`);
2146
- }
2147
- this.rows.push(i);
2148
- }
2149
- super.commit(e, l, n);
2150
- }
2151
- updateColumns(e) {
2152
- if (!this.columnsDirty) return;
2153
- this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.columns = [];
2154
- let l = /* @__PURE__ */ new Map(), n = (o) => {
2155
- switch (o.type) {
2156
- case "column":
2157
- l.set(o.key, o), o.hasChildNodes || (o.index = this.columns.length, this.columns.push(o), o.props.isRowHeader && this.rowHeaderColumnKeys.add(o.key));
2158
- break;
2159
- }
2160
- for (let r of this.getChildren(o.key)) n(r);
2161
- };
2162
- for (let o of this.getChildren(this.head.key)) n(o);
2163
- if (this.headerRows = il(l, this.columns), this.columnsDirty = !1, this.rowHeaderColumnKeys.size === 0 && this.columns.length > 0 && !e) throw new Error("A table must have at least one Column with the isRowHeader prop set to true");
2164
- }
2165
- get columnCount() {
2166
- return this.columns.length;
2167
- }
2168
- *[Symbol.iterator]() {
2169
- this.head.key !== -1 && (yield this.head, yield this.body);
2170
- }
2171
- getFirstKey() {
2172
- return this.body.firstChildKey;
2173
- }
2174
- getLastKey() {
2175
- return this.body.lastChildKey;
2176
- }
2177
- getKeyAfter(e) {
2178
- let l = this.getItem(e);
2179
- var n;
2180
- return l?.type === "column" ? (n = l.nextKey) !== null && n !== void 0 ? n : null : super.getKeyAfter(e);
2181
- }
2182
- getKeyBefore(e) {
2183
- var l;
2184
- let n = this.getItem(e);
2185
- var o;
2186
- if (n?.type === "column") return (o = n.prevKey) !== null && o !== void 0 ? o : null;
2187
- let r = super.getKeyBefore(e);
2188
- return r != null && ((l = this.getItem(r)) === null || l === void 0 ? void 0 : l.type) === "tablebody" ? null : r;
2189
- }
2190
- getChildren(e) {
2191
- if (!this.getItem(e)) {
2192
- for (let l of this.headerRows)
2193
- if (l.key === e) return l.childNodes;
2194
- }
2195
- return super.getChildren(e);
2196
- }
2197
- clone() {
2198
- let e = super.clone();
2199
- return e.headerRows = this.headerRows, e.columns = this.columns, e.rowHeaderColumnKeys = this.rowHeaderColumnKeys, e.head = this.head, e.body = this.body, e;
2200
- }
2201
- getTextValue(e) {
2202
- let l = this.getItem(e);
2203
- if (!l) return "";
2204
- if (l.textValue) return l.textValue;
2205
- let n = this.rowHeaderColumnKeys, o = [];
2206
- for (let r of this.getChildren(e)) {
2207
- let i = this.columns[r.index];
2208
- if (n.has(i.key) && r.textValue && o.push(r.textValue), o.length === n.size) break;
2209
- }
2210
- return o.join(" ");
2211
- }
2212
- constructor(...e) {
2213
- super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new Ze("tableheader", -1), this.body = new Ze("tablebody", -2), this.columnsDirty = !0;
2214
- }
2215
- }
2216
- const je = /* @__PURE__ */ ie(null), Hn = /* @__PURE__ */ Y(function(e, l) {
2217
- let n = ae(l), o = M(null), r = M(null), [i, u] = G(0);
2218
- Qe(() => {
2219
- let c = o.current;
2220
- for (; c && c !== n.current && !Pl(c); ) c = c.parentElement;
2221
- r.current = c;
2222
- }, [
2223
- n
2224
- ]), Bl({
2225
- ref: r,
2226
- box: "border-box",
2227
- onResize() {
2228
- var c, d;
2229
- u((d = (c = r.current) === null || c === void 0 ? void 0 : c.clientWidth) !== null && d !== void 0 ? d : 0);
2230
- }
2231
- }), Qe(() => {
2232
- var c, d;
2233
- u((d = (c = r.current) === null || c === void 0 ? void 0 : c.clientWidth) !== null && d !== void 0 ? d : 0);
2234
- }, []);
2235
- let a = T(() => ({
2236
- tableRef: o,
2237
- scrollRef: r,
2238
- tableWidth: i,
2239
- useTableColumnResizeState: Kn,
2240
- onResizeStart: e.onResizeStart,
2241
- onResize: e.onResize,
2242
- onResizeEnd: e.onResizeEnd
2243
- }), [
2244
- o,
2245
- i,
2246
- e.onResizeStart,
2247
- e.onResize,
2248
- e.onResizeEnd
2249
- ]);
2250
- return /* @__PURE__ */ w.createElement("div", {
2251
- ...J(e, {
2252
- global: !0
2253
- }),
2254
- ref: n,
2255
- className: e.className || "react-aria-ResizableTableContainer",
2256
- style: e.style,
2257
- onScroll: e.onScroll
2258
- }, /* @__PURE__ */ w.createElement(je.Provider, {
2259
- value: a
2260
- }, e.children));
2261
- }), jn = /* @__PURE__ */ ie(null), _ = /* @__PURE__ */ ie(null), Oe = /* @__PURE__ */ ie(null), On = /* @__PURE__ */ Y(function(e, l) {
2262
- var n;
2263
- [e, l] = wl(e, l, jn);
2264
- let o = dt(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: u } = o, a = !!(!((n = e.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), c = T(() => ({
2265
- selectionBehavior: i === "none" ? null : r,
2266
- selectionMode: i,
2267
- disallowEmptySelection: u,
2268
- allowsDragging: a
2269
- }), [
2270
- r,
2271
- i,
2272
- u,
2273
- a
2274
- ]), d = /* @__PURE__ */ w.createElement(al.Provider, {
2275
- value: c
2276
- }, /* @__PURE__ */ w.createElement($e, e));
2277
- return /* @__PURE__ */ w.createElement($l, {
2278
- content: d,
2279
- createCollection: () => new Vn()
2280
- }, (s) => /* @__PURE__ */ w.createElement(Un, {
2281
- props: e,
2282
- forwardedRef: l,
2283
- selectionState: o,
2284
- collection: s
2285
- }));
2286
- });
2287
- function Un({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
2288
- let o = A(je);
2289
- e = ae(T(() => kl(e, o?.tableRef), [
2290
- e,
2291
- o?.tableRef
2292
- ]));
2293
- let r = In({
2294
- ...t,
2295
- collection: n,
2296
- children: void 0,
2297
- UNSAFE_selectionState: l
2298
- }), { isVirtualized: i, layoutDelegate: u, dropTargetDelegate: a, CollectionRoot: c } = A(Z), { dragAndDropHooks: d } = t, { gridProps: s } = bn({
2299
- ...t,
2300
- layoutDelegate: u,
2301
- isVirtualized: i
2302
- }, r, e), p = r.selectionManager, f = !!d?.useDraggableCollectionState, h = !!d?.useDroppableCollectionState, g = M(f), y = M(h);
2303
- oe(() => {
2304
- process.env.NODE_ENV !== "production" && (g.current !== f && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), y.current !== h && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
2305
- }, [
2306
- f,
2307
- h
2308
- ]);
2309
- let v, x, m, $ = !1, b = null, C = M(null);
2310
- if (f && d) {
2311
- v = d.useDraggableCollectionState({
2312
- collection: n,
2313
- selectionManager: p,
2314
- preview: d.renderDragPreview ? C : void 0
2315
- }), d.useDraggableCollection({}, v, e);
2316
- let I = d.DragPreview;
2317
- b = d.renderDragPreview ? /* @__PURE__ */ w.createElement(I, {
2318
- ref: C
2319
- }, d.renderDragPreview) : null;
2320
- }
2321
- if (h && d) {
2322
- x = d.useDroppableCollectionState({
2323
- collection: n,
2324
- selectionManager: p
2325
- });
2326
- let I = new Cl({
2327
- collection: n,
2328
- disabledKeys: p.disabledKeys,
2329
- disabledBehavior: p.disabledBehavior,
2330
- ref: e,
2331
- layoutDelegate: u
2332
- }), Q = d.dropTargetDelegate || a || new d.ListDropTargetDelegate(n.rows, e);
2333
- m = d.useDroppableCollection({
2334
- keyboardDelegate: I,
2335
- dropTargetDelegate: Q
2336
- }, x, e), $ = x.isDropTarget({
2337
- type: "root"
2338
- });
2339
- }
2340
- let { focusProps: k, isFocused: P, isFocusVisible: K } = ce(), E = re({
2341
- className: t.className,
2342
- style: t.style,
2343
- defaultClassName: "react-aria-Table",
2344
- values: {
2345
- isDropTarget: $,
2346
- isFocused: P,
2347
- isFocusVisible: K,
2348
- state: r
2349
- }
2350
- }), N = !!(f && !v?.isDisabled), F = E.style, V = null;
2351
- o && (V = o.useTableColumnResizeState({
2352
- tableWidth: o.tableWidth
2353
- }, r), i || (F = {
2354
- ...F,
2355
- tableLayout: "fixed",
2356
- width: "fit-content"
2357
- }));
2358
- let z = U("table"), R = J(t, {
2359
- global: !0
2360
- });
2361
- var j;
2362
- return /* @__PURE__ */ w.createElement(ze, {
2363
- values: [
2364
- [
2365
- _,
2366
- r
2367
- ],
2368
- [
2369
- Oe,
2370
- V
2371
- ],
2372
- [
2373
- fe,
2374
- {
2375
- dragAndDropHooks: d,
2376
- dragState: v,
2377
- dropState: x
2378
- }
2379
- ],
2380
- [
2381
- El,
2382
- {
2383
- render: Jn
2384
- }
2385
- ]
2386
- ]
2387
- }, /* @__PURE__ */ w.createElement(Vl, null, /* @__PURE__ */ w.createElement(z, {
2388
- ...H(R, E, s, k, m?.collectionProps),
2389
- style: F,
2390
- ref: e,
2391
- slot: t.slot || void 0,
2392
- onScroll: t.onScroll,
2393
- "data-allows-dragging": N || void 0,
2394
- "data-drop-target": $ || void 0,
2395
- "data-focused": P || void 0,
2396
- "data-focus-visible": K || void 0
2397
- }, /* @__PURE__ */ w.createElement(c, {
2398
- collection: n,
2399
- scrollRef: (j = o?.scrollRef) !== null && j !== void 0 ? j : e,
2400
- persistedKeys: zl(p, d, x)
2401
- }))), b);
2402
- }
2403
- function U(t) {
2404
- let { isVirtualized: e } = A(Z);
2405
- return e ? "div" : t;
2406
- }
2407
- const al = /* @__PURE__ */ ie(null);
2408
- function ul() {
2409
- return A(al);
2410
- }
2411
- const Ln = /* @__PURE__ */ Fe("tableheader", (t, e) => {
2412
- let l = A(_).collection, n = xl({
2413
- items: l.headerRows,
2414
- children: O((c) => {
2415
- switch (c.type) {
2416
- case "headerrow":
2417
- return /* @__PURE__ */ w.createElement(Yn, {
2418
- item: c
2419
- });
2420
- default:
2421
- throw new Error("Unsupported node type in TableHeader: " + c.type);
2422
- }
2423
- }, [])
2424
- }), o = U("thead"), { rowGroupProps: r } = ll(), { hoverProps: i, isHovered: u } = xe({
2425
- onHoverStart: t.onHoverStart,
2426
- onHoverChange: t.onHoverChange,
2427
- onHoverEnd: t.onHoverEnd
2428
- }), a = re({
2429
- className: t.className,
2430
- style: t.style,
2431
- defaultClassName: "react-aria-TableHeader",
2432
- values: {
2433
- isHovered: u
2434
- }
2435
- });
2436
- return /* @__PURE__ */ w.createElement(o, {
2437
- ...H(J(t, {
2438
- global: !0
2439
- }), r, i),
2440
- ...a,
2441
- ref: e,
2442
- "data-hovered": u || void 0
2443
- }, n);
2444
- }, (t) => /* @__PURE__ */ w.createElement($e, {
2445
- dependencies: t.dependencies,
2446
- items: t.columns
2447
- }, t.children));
2448
- function Yn({ item: t }) {
2449
- let e = M(null), l = A(_), { isVirtualized: n, CollectionBranch: o } = A(Z), { rowProps: r } = xn({
2450
- node: t,
2451
- isVirtualized: n
2452
- }, l, e), { checkboxProps: i } = kn(l), u = U("tr");
2453
- return /* @__PURE__ */ w.createElement(u, {
2454
- ...r,
2455
- ref: e
2456
- }, /* @__PURE__ */ w.createElement(ze, {
2457
- values: [
2458
- [
2459
- ut,
2460
- {
2461
- slots: {
2462
- selection: i
2463
- }
2464
- }
2465
- ]
2466
- ]
2467
- }, /* @__PURE__ */ w.createElement(o, {
2468
- collection: l.collection,
2469
- parent: t
2470
- })));
2471
- }
2472
- const Xn = /* @__PURE__ */ ct("column", (t, e, l) => {
2473
- var n, o;
2474
- let r = ae(e), i = A(_), { isVirtualized: u } = A(Z), { columnHeaderProps: a } = yn({
2475
- node: l,
2476
- isVirtualized: u
2477
- }, i, r), { isFocused: c, isFocusVisible: d, focusProps: s } = ce(), p = A(Oe), f = !1;
2478
- if (p) f = p.resizingColumn === l.key;
2479
- else if (process.env.NODE_ENV !== "production")
2480
- for (let $ in [
2481
- "width",
2482
- "defaultWidth",
2483
- "minWidth",
2484
- "maxWidth"
2485
- ]) $ in l.props && console.warn(`The ${$} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);
2486
- let { hoverProps: h, isHovered: g } = xe({
2487
- isDisabled: !t.allowsSorting
2488
- }), y = re({
2489
- ...t,
2490
- id: void 0,
2491
- children: l.rendered,
2492
- defaultClassName: "react-aria-Column",
2493
- values: {
2494
- isHovered: g,
2495
- isFocused: c,
2496
- isFocusVisible: d,
2497
- allowsSorting: l.props.allowsSorting,
2498
- sortDirection: ((n = i.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === l.key ? i.sortDescriptor.direction : void 0,
2499
- isResizing: f,
2500
- startResize: () => {
2501
- if (p)
2502
- p.startResize(l.key), i.setKeyboardNavigationDisabled(!0);
2503
- else throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
2504
- },
2505
- sort: ($) => {
2506
- i.sort(l.key, $);
2507
- }
2508
- }
2509
- }), v = y.style;
2510
- p && (v = {
2511
- ...v,
2512
- width: p.getColumnWidth(l.key)
2513
- });
2514
- let x = U("th"), m = J(t, {
2515
- global: !0
2516
- });
2517
- return delete m.id, /* @__PURE__ */ w.createElement(x, {
2518
- ...H(m, a, s, h),
2519
- ...y,
2520
- style: v,
2521
- ref: r,
2522
- "data-hovered": g || void 0,
2523
- "data-focused": c || void 0,
2524
- "data-focus-visible": d || void 0,
2525
- "data-resizing": f || void 0,
2526
- "data-allows-sorting": l.props.allowsSorting || void 0,
2527
- "data-sort-direction": ((o = i.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === l.key ? i.sortDescriptor.direction : void 0
2528
- }, /* @__PURE__ */ w.createElement(ze, {
2529
- values: [
2530
- [
2531
- sl,
2532
- {
2533
- column: l,
2534
- triggerRef: r
2535
- }
2536
- ],
2537
- [
2538
- Z,
2539
- ft
2540
- ]
2541
- ]
2542
- }, y.children));
2543
- }), sl = /* @__PURE__ */ ie(null), qn = /* @__PURE__ */ Y(function(e, l) {
2544
- let n = A(Oe);
2545
- if (!n) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
2546
- let o = he(Wn(Al), "react-aria-components"), { onResizeStart: r, onResize: i, onResizeEnd: u } = A(je), { column: a, triggerRef: c } = A(sl), d = M(null), { resizerProps: s, inputProps: p, isResizing: f } = En({
2547
- column: a,
2548
- "aria-label": e["aria-label"] || o.format("tableResizer"),
2549
- onResizeStart: r,
2550
- onResize: i,
2551
- onResizeEnd: u,
2552
- triggerRef: c
2553
- }, n, d), { focusProps: h, isFocused: g, isFocusVisible: y } = ce(), { hoverProps: v, isHovered: x } = xe(e), m = n.getColumnMinWidth(a.key) >= n.getColumnWidth(a.key), $ = n.getColumnMaxWidth(a.key) <= n.getColumnWidth(a.key), { direction: b } = pe(), C = "both";
2554
- m ? C = b === "rtl" ? "right" : "left" : $ ? C = b === "rtl" ? "left" : "right" : C = "both";
2555
- let k = ae(l), [P, K] = G("");
2556
- oe(() => {
2557
- if (!k.current) return;
2558
- let R = window.getComputedStyle(k.current);
2559
- K(R.cursor);
2560
- }, [
2561
- k,
2562
- C
2563
- ]);
2564
- let E = re({
2565
- ...e,
2566
- defaultClassName: "react-aria-ColumnResizer",
2567
- values: {
2568
- isFocused: g,
2569
- isFocusVisible: y,
2570
- isResizing: f,
2571
- isHovered: x,
2572
- resizableDirection: C
2573
- }
2574
- }), [N, F] = G(!1), V = (R) => {
2575
- R.pointerType === "mouse" && F(!0);
2576
- };
2577
- !f && N && F(!1);
2578
- let z = J(e, {
2579
- global: !0
2580
- });
2581
- return /* @__PURE__ */ w.createElement("div", {
2582
- ref: k,
2583
- role: "presentation",
2584
- ...H(z, E, s, {
2585
- onPointerDown: V
2586
- }, v),
2587
- "data-hovered": x || void 0,
2588
- "data-focused": g || void 0,
2589
- "data-focus-visible": y || void 0,
2590
- "data-resizing": f || void 0,
2591
- "data-resizable-direction": C
2592
- }, E.children, /* @__PURE__ */ w.createElement("input", {
2593
- ref: d,
2594
- ...H(p, h)
2595
- }), f && N && /* @__PURE__ */ Kl.createPortal(/* @__PURE__ */ w.createElement("div", {
2596
- style: {
2597
- position: "fixed",
2598
- top: 0,
2599
- left: 0,
2600
- bottom: 0,
2601
- right: 0,
2602
- cursor: P
2603
- }
2604
- }), document.body));
2605
- }), Gn = /* @__PURE__ */ Fe("tablebody", (t, e) => {
2606
- let l = A(_), { isVirtualized: n } = A(Z), o = l.collection, { CollectionBranch: r } = A(Z), { dragAndDropHooks: i, dropState: u } = A(fe), a = !!i?.useDroppableCollectionState && !u?.isDisabled;
2607
- var c;
2608
- let d = a && !!u && ((c = u.isDropTarget({
2609
- type: "root"
2610
- })) !== null && c !== void 0 ? c : !1), s = o.size === 0, p = {
2611
- isDropTarget: d,
2612
- isEmpty: s
2613
- }, f = re({
2614
- ...t,
2615
- id: void 0,
2616
- children: void 0,
2617
- defaultClassName: "react-aria-TableBody",
2618
- values: p
2619
- }), h, g = U("tr"), y = U("td"), v = o.columnCount;
2620
- if (s && t.renderEmptyState && l) {
2621
- let b = {}, C = {}, k = {};
2622
- n ? (C["aria-colspan"] = v, k = {
2623
- display: "contents"
2624
- }) : C.colSpan = v, h = /* @__PURE__ */ w.createElement(g, {
2625
- role: "row",
2626
- ...b,
2627
- style: k
2628
- }, /* @__PURE__ */ w.createElement(y, {
2629
- role: "rowheader",
2630
- ...C,
2631
- style: k
2632
- }, t.renderEmptyState(p)));
2633
- }
2634
- let { rowGroupProps: x } = ll(), m = U("tbody"), $ = J(t, {
2635
- global: !0
2636
- });
2637
- return /* @__PURE__ */ w.createElement(m, {
2638
- ...H($, f, x),
2639
- ref: e,
2640
- "data-empty": s || void 0
2641
- }, a && /* @__PURE__ */ w.createElement(eo, null), /* @__PURE__ */ w.createElement(r, {
2642
- collection: o,
2643
- parent: o.body,
2644
- renderDropIndicator: Sl(i, u)
2645
- }), h);
2646
- }), nt = /* @__PURE__ */ Fe("item", (t, e, l) => {
2647
- let n = ae(e), o = A(_), { dragAndDropHooks: r, dragState: i, dropState: u } = A(fe), { isVirtualized: a, CollectionBranch: c } = A(Z), { rowProps: d, ...s } = $n({
2648
- node: l,
2649
- shouldSelectOnPressUp: !!i,
2650
- isVirtualized: a
2651
- }, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } = ce(), { isFocusVisible: g, focusProps: y } = ce({
2652
- within: !0
2653
- }), { hoverProps: v, isHovered: x } = xe({
2654
- isDisabled: !s.allowsSelection && !s.hasAction,
2655
- onHoverStart: t.onHoverStart,
2656
- onHoverChange: t.onHoverChange,
2657
- onHoverEnd: t.onHoverEnd
2658
- }), { checkboxProps: m } = wn({
2659
- key: l.key
2660
- }, o), $;
2661
- i && r && ($ = r.useDraggableItem({
2662
- key: l.key,
2663
- hasDragButton: !0
2664
- }, i));
2665
- let b, C = M(null), { visuallyHiddenProps: k } = Re();
2666
- u && r && (b = r.useDropIndicator({
2667
- target: {
2668
- type: "item",
2669
- key: l.key,
2670
- dropPosition: "on"
2671
- }
2672
- }, u, C));
2673
- let P = M(null);
2674
- oe(() => {
2675
- i && !P.current && process.env.NODE_ENV !== "production" && console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
2676
- }, []);
2677
- let K = i && i.isDragging(l.key), { children: E, ...N } = t, F = re({
2678
- ...N,
2679
- id: void 0,
2680
- defaultClassName: "react-aria-Row",
2681
- values: {
2682
- ...s,
2683
- isHovered: x,
2684
- isFocused: p,
2685
- isFocusVisible: f,
2686
- selectionMode: o.selectionManager.selectionMode,
2687
- selectionBehavior: o.selectionManager.selectionBehavior,
2688
- isDragging: K,
2689
- isDropTarget: b?.isDropTarget,
2690
- isFocusVisibleWithin: g,
2691
- id: l.key
2692
- }
2693
- }), V = U("tr"), z = U("td"), R = J(t, {
2694
- global: !0
2695
- });
2696
- return delete R.id, delete R.onClick, /* @__PURE__ */ w.createElement(w.Fragment, null, b && !b.isHidden && /* @__PURE__ */ w.createElement(V, {
2697
- role: "row",
2698
- style: {
2699
- height: 0
2700
- }
2701
- }, /* @__PURE__ */ w.createElement(z, {
2702
- role: "gridcell",
2703
- colSpan: o.collection.columnCount,
2704
- style: {
2705
- padding: 0
2706
- }
2707
- }, /* @__PURE__ */ w.createElement("div", {
2708
- role: "button",
2709
- ...k,
2710
- ...b.dropIndicatorProps,
2711
- ref: C
2712
- }))), /* @__PURE__ */ w.createElement(V, {
2713
- ...H(R, F, d, h, v, $?.dragProps, y),
2714
- ref: n,
2715
- "data-disabled": s.isDisabled || void 0,
2716
- "data-selected": s.isSelected || void 0,
2717
- "data-hovered": x || void 0,
2718
- "data-focused": s.isFocused || void 0,
2719
- "data-focus-visible": f || void 0,
2720
- "data-pressed": s.isPressed || void 0,
2721
- "data-dragging": K || void 0,
2722
- "data-drop-target": b?.isDropTarget || void 0,
2723
- "data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode,
2724
- "data-focus-visible-within": g || void 0
2725
- }, /* @__PURE__ */ w.createElement(ze, {
2726
- values: [
2727
- [
2728
- ut,
2729
- {
2730
- slots: {
2731
- [Je]: {},
2732
- selection: m
2733
- }
2734
- }
2735
- ],
2736
- [
2737
- at,
2738
- {
2739
- slots: {
2740
- [Je]: {},
2741
- drag: {
2742
- ...$?.dragButtonProps,
2743
- ref: P,
2744
- style: {
2745
- pointerEvents: "none"
2746
- }
2747
- }
2748
- }
2749
- }
2750
- ]
2751
- ]
2752
- }, /* @__PURE__ */ w.createElement(c, {
2753
- collection: o.collection,
2754
- parent: l
2755
- }))));
2756
- }, (t) => {
2757
- if (t.id == null && typeof t.children == "function") throw new Error("No id detected for the Row element. The Row element requires a id to be provided to it when the cells are rendered dynamically.");
2758
- let e = [
2759
- t.value
2760
- ].concat(t.dependencies);
2761
- return /* @__PURE__ */ w.createElement($e, {
2762
- dependencies: e,
2763
- items: t.columns,
2764
- idScope: t.id
2765
- }, t.children);
2766
- }), Zn = /* @__PURE__ */ ct("cell", (t, e, l) => {
2767
- let n = ae(e), o = A(_), { dragState: r } = A(fe), { isVirtualized: i } = A(Z);
2768
- l.column = o.collection.columns[l.index];
2769
- let { gridCellProps: u, isPressed: a } = Dn({
2770
- node: l,
2771
- shouldSelectOnPressUp: !!r,
2772
- isVirtualized: i
2773
- }, o, n), { isFocused: c, isFocusVisible: d, focusProps: s } = ce(), { hoverProps: p, isHovered: f } = xe({}), h = re({
2774
- ...t,
2775
- id: void 0,
2776
- defaultClassName: "react-aria-Cell",
2777
- values: {
2778
- isFocused: c,
2779
- isFocusVisible: d,
2780
- isPressed: a,
2781
- isHovered: f,
2782
- id: l.key
2783
- }
2784
- }), g = U("td"), y = J(t, {
2785
- global: !0
2786
- });
2787
- return delete y.id, /* @__PURE__ */ w.createElement(g, {
2788
- ...H(y, h, u, s, p),
2789
- ref: n,
2790
- "data-focused": c || void 0,
2791
- "data-focus-visible": d || void 0,
2792
- "data-pressed": a || void 0
2793
- }, /* @__PURE__ */ w.createElement(Z.Provider, {
2794
- value: ft
2795
- }, h.children));
2796
- });
2797
- function Jn(t, e) {
2798
- e = ae(e);
2799
- let { dragAndDropHooks: l, dropState: n } = A(fe), o = M(null), { dropIndicatorProps: r, isHidden: i, isDropTarget: u } = l.useDropIndicator(t, n, o);
2800
- return i ? null : /* @__PURE__ */ w.createElement(_n, {
2801
- ...t,
2802
- dropIndicatorProps: r,
2803
- isDropTarget: u,
2804
- buttonRef: o,
2805
- ref: e
2806
- });
2807
- }
2808
- function Qn(t, e) {
2809
- let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...r } = t, i = A(_), { visuallyHiddenProps: u } = Re(), a = re({
2810
- ...r,
2811
- defaultClassName: "react-aria-DropIndicator",
2812
- values: {
2813
- isDropTarget: n
2814
- }
2815
- }), c = U("tr"), d = U("td");
2816
- return /* @__PURE__ */ w.createElement(c, {
2817
- ...J(t, {
2818
- global: !0
2819
- }),
2820
- ...a,
2821
- role: "row",
2822
- ref: e,
2823
- "data-drop-target": n || void 0
2824
- }, /* @__PURE__ */ w.createElement(d, {
2825
- role: "gridcell",
2826
- colSpan: i.collection.columnCount,
2827
- style: {
2828
- padding: 0
2829
- }
2830
- }, /* @__PURE__ */ w.createElement("div", {
2831
- ...u,
2832
- role: "button",
2833
- ...l,
2834
- ref: o
2835
- }), a.children));
2836
- }
2837
- const _n = /* @__PURE__ */ Y(Qn);
2838
- function eo() {
2839
- let t = A(_), { dragAndDropHooks: e, dropState: l } = A(fe), n = M(null), { dropIndicatorProps: o } = e.useDropIndicator({
2840
- target: {
2841
- type: "root"
2842
- }
2843
- }, l, n), r = l.isDropTarget({
2844
- type: "root"
2845
- }), { visuallyHiddenProps: i } = Re(), u = U("tr"), a = U("td");
2846
- return !r && o["aria-hidden"] ? null : /* @__PURE__ */ w.createElement(u, {
2847
- role: "row",
2848
- "aria-hidden": o["aria-hidden"],
2849
- style: {
2850
- height: 0
2851
- }
2852
- }, /* @__PURE__ */ w.createElement(a, {
2853
- role: "gridcell",
2854
- colSpan: t.collection.columnCount,
2855
- style: {
2856
- padding: 0
2857
- }
2858
- }, /* @__PURE__ */ w.createElement("div", {
2859
- role: "button",
2860
- ...i,
2861
- ...o,
2862
- ref: n
2863
- })));
2864
- }
2865
- const { withContext: to } = /* @__PURE__ */ on({
2866
- key: "mark"
2867
- }), lo = /* @__PURE__ */ to("mark"), Be = /* @__PURE__ */ ie(null);
2868
- Be.displayName = "DataTableContext";
2869
- const me = () => {
2870
- const t = A(
2871
- Be
2872
- );
2873
- if (!t)
2874
- throw new Error("DataTable components must be used within DataTable.Root");
2875
- return t;
2876
- };
2877
- var dl = (t, e) => {
2878
- const l = [], n = (o, r, i) => {
2879
- r - o > 0 && l.push({ start: o, end: r, match: i });
2880
- };
2881
- if (t.length === 0)
2882
- n(0, e, !1);
2883
- else {
2884
- let o = 0;
2885
- for (const r of t)
2886
- n(o, r.start, !1), n(r.start, r.end, !0), o = r.end;
2887
- n(o, e, !1);
2888
- }
2889
- return l;
2890
- };
2891
- function no(t) {
2892
- const { text: e, query: l, ignoreCase: n } = t, o = n ? e.toLowerCase() : e, r = n && typeof l == "string" ? l.toLowerCase() : l, i = typeof o == "string" ? o.indexOf(r) : -1;
2893
- if (i === -1)
2894
- return [{ text: e, match: !1 }];
2895
- const u = i + r.length;
2896
- return dl([{ start: i, end: u }], e.length).map((c) => ({
2897
- text: e.slice(c.start, c.end),
2898
- match: !!c.match
2899
- }));
2900
- }
2901
- var oo = (t) => t.replace(/[|\\{}()[\]^$+*?.-]/g, (e) => `\\${e}`), ro = (t, e) => {
2902
- const l = t.filter(Boolean).map((n) => oo(n));
2903
- return new RegExp(`(${l.join("|")})`, e);
2904
- }, io = (t, e = !0) => `${t ? "i" : ""}${e ? "g" : ""}`;
2905
- function ao(t) {
2906
- const { text: e, query: l, ignoreCase: n, matchAll: o } = t;
2907
- if (l.length === 0)
2908
- return [{ text: e, match: !1 }];
2909
- const r = io(n, o), i = ro(Array.isArray(l) ? l : [l], r), u = [...e.matchAll(i)].map((a) => ({
2910
- start: a.index || 0,
2911
- end: (a.index || 0) + a[0].length
2912
- }));
2913
- return dl(u, t.text.length).map((a) => ({
2914
- text: t.text.slice(a.start, a.end),
2915
- match: !!a.match
2916
- }));
2917
- }
2918
- var uo = (t) => {
2919
- if (t.matchAll == null && (t.matchAll = Array.isArray(t.query)), !t.matchAll && Array.isArray(t.query))
2920
- throw new Error("matchAll must be true when using multiple queries");
2921
- return t.matchAll ? ao(t) : no(t);
2922
- };
2923
- const so = (t) => T(() => uo(t), [t]);
2924
- function co(t) {
2925
- const { each: e, fallback: l, children: n } = t;
2926
- return e?.length === 0 ? l || null : e?.map(n);
2927
- }
2928
- function fo(t) {
2929
- const { children: e, query: l, ignoreCase: n, matchAll: o, styles: r } = t;
2930
- if (typeof e != "string")
2931
- throw new Error("The children prop of Highlight must be a string");
2932
- const i = so({
2933
- query: l,
2934
- text: e,
2935
- matchAll: o,
2936
- ignoreCase: n
2937
- });
2938
- return /* @__PURE__ */ D(co, { each: i, children: (u, a) => u.match ? /* @__PURE__ */ D(lo, { css: r, children: u.text }, a) : /* @__PURE__ */ D(ml, { children: u.text }, a) });
2939
- }
2940
- const de = /* @__PURE__ */ Y(function({ children: e, isDisabled: l, ...n }, o) {
2941
- return /* @__PURE__ */ D(Zn, { ref: o, ...n, children: (r) => /* @__PURE__ */ D(at.Provider, { value: { isDisabled: l }, children: typeof e == "function" ? e(r) : e }) });
2942
- }), po = /* @__PURE__ */ Gl({
2943
- // Available slots for the DataTable component
2944
- slots: [
2945
- "root",
2946
- "table",
2947
- "column",
2948
- "footer",
2949
- "selectionCell",
2950
- "detailsButton",
2951
- "expandButton",
2952
- "nestedIcon",
2953
- "headerSortIcon",
2954
- "columnResizer"
2955
- ],
2956
- className: "nimbus-data-table",
2957
- base: {
2958
- root: {
2959
- colorPalette: "slate",
2960
- display: "block",
2961
- borderRadius: "8px",
2962
- border: "1px solid {colors.neutral.3}",
2963
- boxShadow: "1",
2964
- overflow: "auto",
2965
- contain: "layout style",
2966
- "& .react-aria-Cell": {
2967
- paddingTop: "400",
2968
- paddingBottom: "400",
2969
- paddingLeft: "600",
2970
- paddingRight: "600",
2971
- color: "neutral.11",
2972
- focusRing: "outside",
2973
- hyphens: "auto",
2974
- "&[data-slot='expand']": {
2975
- padding: 0
2976
- },
2977
- "& .nimbus-table-cell-copy-button": {
2978
- display: "none"
2979
- },
2980
- _hover: {
2981
- "& > div > .nimbus-table-cell-copy-button": {
2982
- display: "inherit"
2983
- }
2984
- }
2985
- },
2986
- "& .data-table-row": {
2987
- borderBottom: "1px solid {colors.neutral.3}",
2988
- focusRing: "outside",
2989
- "& td, div": {
2990
- userSelect: "text"
2991
- },
2992
- "&:last-child": {
2993
- borderBottom: "none"
2994
- },
2995
- _hover: {
2996
- backgroundColor: "{colors.primary.3}",
2997
- transition: "background-color 100ms ease",
2998
- transform: "translate3d(0, 0, 0)",
2999
- "& .data-table-row-details-button": {
3000
- opacity: 1
3001
- }
3002
- },
3003
- "& .data-table-row-details-button": {
3004
- opacity: 0
3005
- },
3006
- "& .data-table-row-details-button:focus": {
3007
- opacity: 1
3008
- }
3009
- },
3010
- "& .data-table-row[data-selected='true']": {
3011
- background: "{colors.primary.4}"
3012
- },
3013
- "& .data-table-row[data-disabled='true']": {
3014
- "& .data-table-row-details-button": {
3015
- display: "none"
3016
- },
3017
- // layerStyle: "disabled",
3018
- opacity: 0.8,
3019
- cursor: "not-allowed"
3020
- },
3021
- "& .data-table-header": {
3022
- background: "colorPalette.2",
3023
- color: "colorPalette.11",
3024
- borderBottom: "1px solid {colors.neutral.3}",
3025
- lineHeight: "400",
3026
- fontWeight: "500",
3027
- textStyle: "sm",
3028
- fontSize: "300",
3029
- height: "1000",
3030
- "& .data-table-column-divider": {
3031
- display: "none",
3032
- position: "absolute",
3033
- right: 0,
3034
- top: "10%",
3035
- bottom: "10%",
3036
- height: "80%",
3037
- width: "1px",
3038
- pointerEvents: "none"
3039
- },
3040
- _hover: {
3041
- "& .data-table-column-divider": {
3042
- display: "inherit"
3043
- },
3044
- "& tr th:last-of-type .data-table-column-divider": {
3045
- display: "none"
3046
- }
3047
- }
3048
- }
3049
- // Multiline header truncation using webkit line clamp
3050
- },
3051
- table: {
3052
- width: "fit-content",
3053
- tableLayout: "fixed"
3054
- },
3055
- column: {
3056
- textAlign: "right",
3057
- position: "relative",
3058
- paddingTop: "100",
3059
- paddingBottom: "100",
3060
- paddingLeft: "600",
3061
- paddingRight: "600",
3062
- lineHeight: "450",
3063
- focusVisibleRing: "outside",
3064
- focusRing: "outside",
3065
- _focus: {
3066
- focusRing: "outside"
3067
- },
3068
- "& .nimbus-data-table__headerSortIcon": {
3069
- display: "none"
3070
- },
3071
- "& > div": {
3072
- display: "flex",
3073
- alignItems: "center",
3074
- "& > span:first-of-type": {
3075
- overflow: "hidden",
3076
- textOverflow: "ellipsis",
3077
- whiteSpace: "nowrap"
3078
- },
3079
- "& span[data-multiline-header]": {
3080
- overflow: "hidden",
3081
- lineHeight: "450",
3082
- wordBreak: "break-word",
3083
- whiteSpace: "normal",
3084
- textOverflow: "ellipsis",
3085
- textAlign: "left",
3086
- display: "-webkit-box",
3087
- WebkitLineClamp: 2,
3088
- WebkitBoxOrient: "vertical"
3089
- },
3090
- "& > span:not(:first-of-type)": {
3091
- flexShrink: 0
3092
- }
3093
- },
3094
- "&.selection-column-header, &.expand-column-header": {
3095
- cursor: "default",
3096
- "&:hover": {
3097
- backgroundColor: "transparent"
3098
- }
3099
- },
3100
- "&.expand-column-header": {
3101
- padding: "0"
3102
- },
3103
- "&[aria-sort]": {
3104
- fontWeight: 600,
3105
- cursor: "pointer",
3106
- "&[aria-sort='none']:hover": {
3107
- "& .nimbus-data-table__headerSortIcon": {
3108
- display: "inherit"
3109
- }
3110
- },
3111
- "&[aria-sort='ascending'], &[aria-sort='descending']": {
3112
- "& .nimbus-data-table__headerSortIcon": {
3113
- display: "inherit"
3114
- }
3115
- },
3116
- "&[aria-sort='ascending']": {
3117
- "& .nimbus-data-table__headerSortIcon": {
3118
- transform: "rotate(180deg)"
3119
- }
3120
- }
3121
- }
3122
- },
3123
- footer: {
3124
- width: "100%"
3125
- },
3126
- selectionCell: {},
3127
- detailsButton: {},
3128
- expandButton: {},
3129
- nestedIcon: {},
3130
- headerSortIcon: {
3131
- transition: "transform 100ms cubic-bezier(0.4, 0.0, 0.2, 1)",
3132
- display: "inline-flex",
3133
- alignItems: "center",
3134
- justifyContent: "center",
3135
- marginLeft: "6px",
3136
- width: "16px",
3137
- height: "16px",
3138
- willChange: "opacity, color, transform"
3139
- },
3140
- columnResizer: {
3141
- width: "4px",
3142
- height: "100%",
3143
- position: "absolute",
3144
- right: 0,
3145
- top: 0,
3146
- cursor: "col-resize",
3147
- transition: "background 100ms",
3148
- background: "transparent",
3149
- outline: "none",
3150
- zIndex: 2,
3151
- "&[data-resizing='true']": {
3152
- background: "{colors.primary}"
3153
- },
3154
- "&[data-focused='true']": {
3155
- outline: "1px solid {colors.primary}"
3156
- }
3157
- }
3158
- },
3159
- // Variants for different states
3160
- variants: {
3161
- truncated: {
3162
- true: {
3163
- root: {
3164
- "& .truncated-cell": {
3165
- maxWidth: "200px",
3166
- overflow: "hidden",
3167
- textOverflow: "ellipsis",
3168
- whiteSpace: "nowrap"
3169
- }
3170
- }
3171
- }
3172
- },
3173
- density: {
3174
- default: {
3175
- root: {
3176
- "& .react-aria-Cell": {
3177
- paddingTop: "400",
3178
- paddingBottom: "400"
3179
- }
3180
- }
3181
- },
3182
- condensed: {
3183
- root: {
3184
- "& .react-aria-Cell": {
3185
- paddingTop: "300",
3186
- paddingBottom: "300"
3187
- }
3188
- }
3189
- }
3190
- }
3191
- }
3192
- }), { withProvider: ho, withContext: ee } = /* @__PURE__ */ Zl({
3193
- key: "data-table",
3194
- recipe: po
3195
- }), mo = /* @__PURE__ */ ho(
3196
- "div",
3197
- "root"
3198
- ), go = /* @__PURE__ */ ee("table", "table"), bo = /* @__PURE__ */ ee("th", "column"), vo = /* @__PURE__ */ ee("footer", "footer"), yo = /* @__PURE__ */ ee("td", "selectionCell"), $o = /* @__PURE__ */ ee("button", "detailsButton"), cl = /* @__PURE__ */ ee("button", "expandButton"), xo = /* @__PURE__ */ ee("span", "nestedIcon"), Do = /* @__PURE__ */ ee("span", "headerSortIcon"), Co = /* @__PURE__ */ ee("div", "columnResizer");
3199
- function wo() {
3200
- var t = M(!1), e = O(function() {
3201
- return t.current;
3202
- }, []);
3203
- return oe(function() {
3204
- return t.current = !0, function() {
3205
- t.current = !1;
3206
- };
3207
- }, []), e;
3208
- }
3209
- var ko = function(t) {
3210
- t === void 0 && (t = {});
3211
- var e = G(t), l = e[0], n = e[1], o = O(function(r) {
3212
- n(function(i) {
3213
- return Object.assign({}, i, r instanceof Function ? r(i) : r);
3214
- });
3215
- }, []);
3216
- return [l, o];
3217
- }, Ke, ot;
3218
- function So() {
3219
- return ot || (ot = 1, Ke = function() {
3220
- var t = document.getSelection();
3221
- if (!t.rangeCount)
3222
- return function() {
3223
- };
3224
- for (var e = document.activeElement, l = [], n = 0; n < t.rangeCount; n++)
3225
- l.push(t.getRangeAt(n));
3226
- switch (e.tagName.toUpperCase()) {
3227
- // .toUpperCase handles XHTML
3228
- case "INPUT":
3229
- case "TEXTAREA":
3230
- e.blur();
3231
- break;
3232
- default:
3233
- e = null;
3234
- break;
3235
- }
3236
- return t.removeAllRanges(), function() {
3237
- t.type === "Caret" && t.removeAllRanges(), t.rangeCount || l.forEach(function(o) {
3238
- t.addRange(o);
3239
- }), e && e.focus();
3240
- };
3241
- }), Ke;
3242
- }
3243
- var Me, rt;
3244
- function Eo() {
3245
- if (rt) return Me;
3246
- rt = 1;
3247
- var t = So(), e = {
3248
- "text/plain": "Text",
3249
- "text/html": "Url",
3250
- default: "Text"
3251
- }, l = "Copy to clipboard: #{key}, Enter";
3252
- function n(r) {
3253
- var i = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
3254
- return r.replace(/#{\s*key\s*}/g, i);
3255
- }
3256
- function o(r, i) {
3257
- var u, a, c, d, s, p, f = !1;
3258
- i || (i = {}), u = i.debug || !1;
3259
- try {
3260
- c = t(), d = document.createRange(), s = document.getSelection(), p = document.createElement("span"), p.textContent = r, p.ariaHidden = "true", p.style.all = "unset", p.style.position = "fixed", p.style.top = 0, p.style.clip = "rect(0, 0, 0, 0)", p.style.whiteSpace = "pre", p.style.webkitUserSelect = "text", p.style.MozUserSelect = "text", p.style.msUserSelect = "text", p.style.userSelect = "text", p.addEventListener("copy", function(g) {
3261
- if (g.stopPropagation(), i.format)
3262
- if (g.preventDefault(), typeof g.clipboardData > "u") {
3263
- u && console.warn("unable to use e.clipboardData"), u && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
3264
- var y = e[i.format] || e.default;
3265
- window.clipboardData.setData(y, r);
3266
- } else
3267
- g.clipboardData.clearData(), g.clipboardData.setData(i.format, r);
3268
- i.onCopy && (g.preventDefault(), i.onCopy(g.clipboardData));
3269
- }), document.body.appendChild(p), d.selectNodeContents(p), s.addRange(d);
3270
- var h = document.execCommand("copy");
3271
- if (!h)
3272
- throw new Error("copy command was unsuccessful");
3273
- f = !0;
3274
- } catch (g) {
3275
- u && console.error("unable to copy using execCommand: ", g), u && console.warn("trying IE specific stuff");
3276
- try {
3277
- window.clipboardData.setData(i.format || "text", r), i.onCopy && i.onCopy(window.clipboardData), f = !0;
3278
- } catch (y) {
3279
- u && console.error("unable to copy using clipboardData: ", y), u && console.error("falling back to prompt"), a = n("message" in i ? i.message : l), window.prompt(a, r);
3280
- }
3281
- } finally {
3282
- s && (typeof s.removeRange == "function" ? s.removeRange(d) : s.removeAllRanges()), p && document.body.removeChild(p), c();
3283
- }
3284
- return f;
3285
- }
3286
- return Me = o, Me;
3287
- }
3288
- var zo = /* @__PURE__ */ Eo();
3289
- const Ao = /* @__PURE__ */ an(zo);
3290
- var Ro = function() {
3291
- var t = wo(), e = ko({
3292
- value: void 0,
3293
- error: void 0,
3294
- noUserInteraction: !0
3295
- }), l = e[0], n = e[1], o = O(function(r) {
3296
- if (t()) {
3297
- var i, u;
3298
- try {
3299
- if (typeof r != "string" && typeof r != "number") {
3300
- var a = new Error("Cannot copy typeof " + typeof r + " to clipboard, must be a string");
3301
- process.env.NODE_ENV === "development" && console.error(a), n({
3302
- value: r,
3303
- error: a,
3304
- noUserInteraction: !0
3305
- });
3306
- return;
3307
- } else if (r === "") {
3308
- var a = new Error("Cannot copy empty string to clipboard.");
3309
- process.env.NODE_ENV === "development" && console.error(a), n({
3310
- value: r,
3311
- error: a,
3312
- noUserInteraction: !0
3313
- });
3314
- return;
3315
- }
3316
- u = r.toString(), i = Ao(u), n({
3317
- value: u,
3318
- error: void 0,
3319
- noUserInteraction: i
3320
- });
3321
- } catch (c) {
3322
- n({
3323
- value: u,
3324
- error: c,
3325
- noUserInteraction: i
3326
- });
3327
- }
3328
- }
3329
- }, []);
3330
- return [l, o];
3331
- };
3332
- const Ue = /* @__PURE__ */ Y(function({ row: e, depth: l = 0 }, n) {
3333
- const {
3334
- activeColumns: o,
3335
- search: r,
3336
- expanded: i,
3337
- toggleExpand: u,
3338
- nestedKey: a,
3339
- disabledKeys: c,
3340
- showExpandColumn: d,
3341
- showSelectionColumn: s,
3342
- showDetailsColumn: p,
3343
- isRowClickable: f,
3344
- isTruncated: h,
3345
- onRowClick: g,
3346
- onDetailsClick: y,
3347
- onRowAction: v
3348
- } = me(), m = ((z) => c ? c === "all" || e.isDisabled ? !0 : c.has(z) : !1)(e.id), $ = (z) => {
3349
- !z.target?.closest(
3350
- 'button, input, [role="button"], [role="checkbox"], [slot="selection"], [data-slot="selection"]'
3351
- ) && f && g && (m ? v && v(e, "click") : g(e));
3352
- }, b = M({
3353
- count: 0,
3354
- node: void 0
3355
- }), C = O(
3356
- (z) => {
3357
- b.current.count += 1, b.current.count === 1 && z && f && (b.current.node = z, z.addEventListener("click", $, { capture: !0 }));
3358
- },
3359
- [f, $]
3360
- );
3361
- oe(() => () => {
3362
- b.current.count >= 1 && b.current.node && b.current.node.removeEventListener("click", $);
3363
- }, [$]);
3364
- const k = Jl(n, C), { selectionBehavior: P } = ul(), [, K] = Ro(), E = a && e[a] && (Array.isArray(e[a]) ? e[a].length > 0 : !0), N = i[e.id], F = (z) => {
3365
- const R = typeof z == "string" ? z : String(z);
3366
- K(R);
3367
- }, V = (z) => r && typeof z == "string" ? /* @__PURE__ */ D(fo, { query: r, ignoreCase: !0, matchAll: !0, children: z }) : z;
3368
- return /* @__PURE__ */ ne(it, { children: [
3369
- /* @__PURE__ */ ne(
3370
- nt,
3371
- {
3372
- isDisabled: m,
3373
- columns: o,
3374
- ref: k,
3375
- id: e.id,
3376
- className: `data-table-row ${m ? "data-table-row-disabled" : ""}`,
3377
- style: {
3378
- cursor: m ? "not-allowed" : f ? "pointer" : void 0,
3379
- position: "relative",
3380
- ...l > 0 && {
3381
- borderLeft: "2px solid var(--colors-primary-6)",
3382
- backgroundColor: "var(--colors-slate-2)"
3383
- }
3384
- },
3385
- dependencies: [N, r, h],
3386
- children: [
3387
- P === "toggle" && /* @__PURE__ */ D(de, { "data-slot": "selection", isDisabled: m, children: /* @__PURE__ */ D(
3388
- ye,
3389
- {
3390
- display: "flex",
3391
- alignItems: "center",
3392
- justifyContent: "center",
3393
- w: "100%",
3394
- h: "100%",
3395
- children: /* @__PURE__ */ D(mt, { name: "select-row", slot: "selection" })
3396
- }
3397
- ) }),
3398
- d && /* @__PURE__ */ D(de, { "data-slot": "expand", isDisabled: m, children: E ? /* @__PURE__ */ D(
3399
- cl,
3400
- {
3401
- w: "100%",
3402
- h: "100%",
3403
- cursor: "pointer",
3404
- "aria-label": N ? "Collapse" : "Expand",
3405
- onClick: (z) => {
3406
- z.stopPropagation(), u(e.id);
3407
- },
3408
- children: N ? /* @__PURE__ */ D(en, {}) : /* @__PURE__ */ D(tn, {})
3409
- }
3410
- ) : null }),
3411
- /* @__PURE__ */ D($e, { items: o, children: (z) => {
3412
- const R = z.accessor(e);
3413
- return z.id === "nimbus-data-table-details-column" ? /* @__PURE__ */ D(
3414
- de,
3415
- {
3416
- isDisabled: m,
3417
- style: {
3418
- alignItems: "center",
3419
- justifyContent: "center"
3420
- },
3421
- children: /* @__PURE__ */ D(
3422
- ye,
3423
- {
3424
- display: "flex",
3425
- alignItems: "center",
3426
- justifyContent: "center",
3427
- w: "100%",
3428
- h: "100%",
3429
- children: /* @__PURE__ */ D(
3430
- Ql,
3431
- {
3432
- "aria-label": "View row details",
3433
- className: "data-table-row-details-button",
3434
- disabled: m,
3435
- variant: "outline",
3436
- colorPalette: "primary",
3437
- size: "2xs",
3438
- onPress: () => {
3439
- y && y(e);
3440
- },
3441
- children: "Open"
3442
- }
3443
- )
3444
- }
3445
- )
3446
- },
3447
- "details-column"
3448
- ) : /* @__PURE__ */ D(de, { isDisabled: m, children: /* @__PURE__ */ ne(gt, { children: [
3449
- /* @__PURE__ */ D(
3450
- ye,
3451
- {
3452
- className: h ? "truncated-cell" : "",
3453
- display: "inline-block",
3454
- h: "100%",
3455
- minW: "0",
3456
- maxW: "100%",
3457
- position: "relative",
3458
- overflow: "hidden",
3459
- cursor: m ? "not-allowed" : "text",
3460
- style: (
3461
- // TODO: I'm not clear on what this is supposed to do?
3462
- {
3463
- // Add indentation for the first column of nested rows
3464
- // ...(depth > 0 &&
3465
- // index === 0 && {
3466
- // paddingLeft: `${16 + depth * 16}px`,
3467
- // }),
3468
- }
3469
- ),
3470
- children: z.render ? z.render({
3471
- value: V(R),
3472
- row: e,
3473
- column: z
3474
- }) : V(R)
3475
- }
3476
- ),
3477
- /* @__PURE__ */ D(
3478
- _l,
3479
- {
3480
- size: "2xs",
3481
- variant: "ghost",
3482
- "aria-label": "Copy to clipboard",
3483
- colorPalette: "primary",
3484
- className: "nimbus-table-cell-copy-button",
3485
- onPress: () => F(R),
3486
- ml: "100",
3487
- children: /* @__PURE__ */ D(
3488
- ln,
3489
- {
3490
- onClick: () => F(R)
3491
- },
3492
- "copy-icon"
3493
- )
3494
- },
3495
- "copy-btn"
3496
- )
3497
- ] }) }, z.id);
3498
- } })
3499
- ]
3500
- }
3501
- ),
3502
- d && /* @__PURE__ */ D(nt, { style: { display: N ? void 0 : "none" }, children: /* @__PURE__ */ D(
3503
- de,
3504
- {
3505
- isDisabled: m,
3506
- colSpan: o.length + (d ? 1 : 0) + (s ? 1 : 0) + (p ? 1 : 0) - // length is 1 indexed, but arrays/sets are 0 indexed, so we need to subtract 1 from the total
3507
- 1,
3508
- style: {
3509
- borderLeft: "2px solid blue"
3510
- },
3511
- children: N ? a && Array.isArray(e[a]) ? `${e[a].length} nested items` : a && e[a] : null
3512
- }
3513
- ) })
3514
- ] });
3515
- });
3516
- Ue.displayName = "DataTable.Row";
3517
- const Le = /* @__PURE__ */ Y(function(e, l) {
3518
- const { sortedRows: n, activeColumns: o } = me();
3519
- return /* @__PURE__ */ D(
3520
- Gn,
3521
- {
3522
- ref: l,
3523
- items: n,
3524
- dependencies: [o],
3525
- renderEmptyState: () => /* @__PURE__ */ D(ye, { w: "100%", p: "200", children: "No Data" }),
3526
- ...e,
3527
- children: (r) => /* @__PURE__ */ D(Ue, { row: r }, r.id)
3528
- }
3529
- );
3530
- });
3531
- Le.displayName = "DataTable.Body";
3532
- const Se = ({
3533
- children: t,
3534
- ref: e,
3535
- column: l,
3536
- unstyled: n,
3537
- isInternalColumn: o,
3538
- tabIndex: r,
3539
- ...i
3540
- }) => {
3541
- const { sortDescriptor: u, isResizable: a } = me(), c = u?.column === l?.id, d = l?.isResizable !== void 0 ? l?.isResizable : a;
3542
- return /* @__PURE__ */ D(bo, { unstyled: n, tabIndex: r, asChild: !0, children: /* @__PURE__ */ D(Xn, { ref: e, ...i, children: (s) => {
3543
- const { allowsSorting: p } = s;
3544
- return o ? typeof t == "function" ? t(s) : t : /* @__PURE__ */ ne(gt, { tabIndex: l?.isResizable ? 0 : -1, focusRing: "outside", children: [
3545
- /* @__PURE__ */ D(
3546
- rn,
3547
- {
3548
- orientation: "vertical",
3549
- className: "data-table-column-divider"
3550
- }
3551
- ),
3552
- typeof t == "function" ? t(s) : t,
3553
- p && /* @__PURE__ */ D(
3554
- Do,
3555
- {
3556
- "aria-hidden": "true",
3557
- color: c ? "neutral.11" : "neutral.10",
3558
- children: /* @__PURE__ */ D(nn, {})
3559
- }
3560
- ),
3561
- d && /* @__PURE__ */ D(qn, { "aria-label": "Resize column", children: ({ isResizing: f, isFocused: h }) => /* @__PURE__ */ D(
3562
- Co,
3563
- {
3564
- "data-resizing": f,
3565
- "data-focused": h
3566
- }
3567
- ) })
3568
- ] });
3569
- } }) });
3570
- }, Ye = /* @__PURE__ */ Y(
3571
- function({ children: e, ...l }, n) {
3572
- return /* @__PURE__ */ D(vo, { ref: n, ...l, children: e });
3573
- }
3574
- );
3575
- Ye.displayName = "DataTable.Footer";
3576
- const Xe = /* @__PURE__ */ Y(function(e, l) {
3577
- const { activeColumns: n, allowsSorting: o, maxHeight: r, showExpandColumn: i } = me(), { selectionBehavior: u, selectionMode: a } = ul();
3578
- return /* @__PURE__ */ ne(
3579
- Ln,
3580
- {
3581
- ref: l,
3582
- className: "data-table-header",
3583
- style: {
3584
- ...r && {
3585
- position: "sticky",
3586
- top: 0,
3587
- zIndex: 10
3588
- }
3589
- },
3590
- columns: n,
3591
- ...e,
3592
- children: [
3593
- u === "toggle" && /* @__PURE__ */ D(
3594
- Se,
3595
- {
3596
- id: "selection",
3597
- className: "selection-column-header",
3598
- maxWidth: 72,
3599
- minWidth: 72,
3600
- allowsSorting: !1,
3601
- isInternalColumn: !0,
3602
- children: a === "multiple" && /* @__PURE__ */ D(mt, { slot: "selection" })
3603
- }
3604
- ),
3605
- i && /* @__PURE__ */ D(
3606
- Se,
3607
- {
3608
- className: "expand-column-header",
3609
- maxWidth: 24,
3610
- minWidth: 24,
3611
- allowsSorting: !1,
3612
- "aria-label": "Expand rows",
3613
- isInternalColumn: !0,
3614
- children: /* @__PURE__ */ D(tt, { children: "Expand rows" })
3615
- }
3616
- ),
3617
- /* @__PURE__ */ D($e, { items: n, children: (c) => {
3618
- const d = c.id === "nimbus-data-table-details-column";
3619
- return /* @__PURE__ */ D(
3620
- Se,
3621
- {
3622
- allowsSorting: (
3623
- // use column.isSortable if defined, and fallback to allowsSorting if not
3624
- c.isSortable !== void 0 ? c.isSortable : o
3625
- ),
3626
- isRowHeader: !d,
3627
- isInternalColumn: d,
3628
- width: c.width,
3629
- defaultWidth: c.defaultWidth,
3630
- minWidth: c.minWidth ?? 150,
3631
- maxWidth: c.maxWidth,
3632
- column: c,
3633
- children: d ? /* @__PURE__ */ D(tt, { children: "Details" }) : /* @__PURE__ */ ne(it, { children: [
3634
- /* @__PURE__ */ D("span", { "data-multiline-header": !0, children: c.header }),
3635
- c.headerIcon && /* @__PURE__ */ D(ye, { as: "span", ml: "200", children: c.headerIcon })
3636
- ] })
3637
- }
3638
- );
3639
- } })
3640
- ]
3641
- }
3642
- );
3643
- });
3644
- Xe.displayName = "DataTable.Header";
3645
- function fl(t, e, l, n) {
3646
- if (!e) return t;
3647
- const o = e.toLowerCase();
3648
- return t.map((r) => {
3649
- const i = l.some((u) => {
3650
- const a = u.accessor(r);
3651
- return typeof a == "string" && a.toLowerCase().includes(o);
3652
- });
3653
- if (n && r[n]) {
3654
- let u = r[n];
3655
- if (Array.isArray(r[n])) {
3656
- if (u = fl(
3657
- r[n],
3658
- e,
3659
- l,
3660
- n
3661
- ), i || u && Array.isArray(u) && u.length > 0)
3662
- return { ...r, [n]: u };
3663
- } else if (i)
3664
- return { ...r, [n]: u };
3665
- return null;
3666
- } else
3667
- return i ? r : null;
3668
- }).filter(Boolean);
3669
- }
3670
- function pl(t, e, l, n) {
3671
- if (!e) return t;
3672
- const o = l.find((i) => i.id === e.column);
3673
- return o ? [...t].sort((i, u) => {
3674
- const a = o.accessor(i), c = o.accessor(u);
3675
- if (a == null && c == null) return 0;
3676
- if (a == null) return 1;
3677
- if (c == null) return -1;
3678
- let d = a, s = c;
3679
- return typeof a == "number" && typeof c == "number" ? (d = a, s = c) : (d = String(a).toLowerCase(), s = String(c).toLowerCase()), d < s ? e.direction === "ascending" ? -1 : 1 : d > s ? e.direction === "ascending" ? 1 : -1 : 0;
3680
- }).map((i) => !n || !i[n] ? i : {
3681
- ...i,
3682
- [n]: Array.isArray(i[n]) ? pl(i[n], e, l, n) : i[n]
3683
- }) : t;
3684
- }
3685
- function hl(t, e) {
3686
- return e ? t.some(
3687
- (l) => l[e] && (Array.isArray(l[e]) ? l[e].length > 0 : !0) || Array.isArray(l[e]) && hl(l[e], e)
3688
- ) : !1;
3689
- }
3690
- const qe = /* @__PURE__ */ Y(
3691
- function(e, l) {
3692
- const {
3693
- columns: n = [],
3694
- data: o = [],
3695
- visibleColumns: r,
3696
- search: i,
3697
- sortDescriptor: u,
3698
- onSortChange: a,
3699
- selectedKeys: c,
3700
- defaultSelectedKeys: d,
3701
- onSelectionChange: s,
3702
- selectionMode: p = "none",
3703
- disallowEmptySelection: f = !1,
3704
- allowsSorting: h = !1,
3705
- isRowClickable: g = !1,
3706
- maxHeight: y,
3707
- isTruncated: v = !1,
3708
- density: x = "default",
3709
- nestedKey: m,
3710
- onRowClick: $,
3711
- onDetailsClick: b,
3712
- disabledKeys: C,
3713
- onRowAction: k,
3714
- isResizable: P,
3715
- children: K,
3716
- ...E
3717
- } = e, [N, F] = G(), [V, z] = G({}), R = u ?? N, j = !0, I = T(() => {
3718
- const X = n.filter(
3719
- (be) => (r ? r.includes(be.id) : !0) && be.isVisible !== !1
3720
- );
3721
- return X.splice(1, 0, {
3722
- id: "nimbus-data-table-details-column",
3723
- header: void 0,
3724
- accessor: () => null,
3725
- width: 70,
3726
- isSortable: !1
3727
- }), X;
3728
- }, [n, r, j]), Q = T(
3729
- () => i ? fl(o, i, I, m) : o,
3730
- [o, i, I, m]
3731
- ), ge = T(
3732
- () => pl(Q, R, I, m),
3733
- [Q, R, I, m]
3734
- ), Ce = hl(ge, m), we = p !== "none", S = O(
3735
- (X) => z((be) => ({ ...be, [X]: !be[X] })),
3736
- []
3737
- ), B = O(
3738
- (X) => {
3739
- a ? a(X) : F(X);
3740
- },
3741
- [a]
3742
- ), L = T(
3743
- () => ({
3744
- columns: n,
3745
- data: o,
3746
- visibleColumns: r,
3747
- search: i,
3748
- sortDescriptor: R,
3749
- selectedKeys: c,
3750
- defaultSelectedKeys: d,
3751
- expanded: V,
3752
- allowsSorting: h,
3753
- selectionMode: p,
3754
- disallowEmptySelection: f,
3755
- isRowClickable: g,
3756
- maxHeight: y,
3757
- isTruncated: v,
3758
- density: x,
3759
- nestedKey: m,
3760
- onSortChange: B,
3761
- onSelectionChange: s,
3762
- onRowClick: $,
3763
- onDetailsClick: b,
3764
- toggleExpand: S,
3765
- activeColumns: I,
3766
- filteredRows: Q,
3767
- sortedRows: ge,
3768
- showExpandColumn: Ce,
3769
- showSelectionColumn: we,
3770
- showDetailsColumn: j,
3771
- isResizable: P,
3772
- disabledKeys: C,
3773
- onRowAction: k
3774
- }),
3775
- [
3776
- n,
3777
- o,
3778
- r,
3779
- i,
3780
- R,
3781
- c,
3782
- d,
3783
- V,
3784
- h,
3785
- p,
3786
- f,
3787
- g,
3788
- y,
3789
- v,
3790
- x,
3791
- m,
3792
- B,
3793
- s,
3794
- $,
3795
- b,
3796
- S,
3797
- I,
3798
- Q,
3799
- ge,
3800
- Ce,
3801
- we,
3802
- j,
3803
- P,
3804
- C,
3805
- k
3806
- ]
3807
- );
3808
- return /* @__PURE__ */ D(
3809
- mo,
3810
- {
3811
- ref: l,
3812
- truncated: v,
3813
- density: x,
3814
- style: {
3815
- ...y && {
3816
- maxHeight: y,
3817
- overflowY: "auto"
3818
- }
3819
- },
3820
- ...E,
3821
- asChild: !0,
3822
- children: /* @__PURE__ */ D(Hn, { children: /* @__PURE__ */ D(
3823
- Be.Provider,
3824
- {
3825
- value: L,
3826
- children: K
3827
- }
3828
- ) })
3829
- }
3830
- );
3831
- }
3832
- );
3833
- qe.displayName = "DataTableRoot";
3834
- const Ge = /* @__PURE__ */ Y(function({ children: e, ...l }, n) {
3835
- const {
3836
- sortDescriptor: o,
3837
- onSortChange: r,
3838
- selectionMode: i,
3839
- onSelectionChange: u,
3840
- selectedKeys: a,
3841
- defaultSelectedKeys: c,
3842
- disallowEmptySelection: d,
3843
- disabledKeys: s
3844
- } = me(), p = o ? {
3845
- column: o.column,
3846
- direction: o.direction
3847
- } : void 0;
3848
- return /* @__PURE__ */ D(go, { ...l, asChild: !0, children: /* @__PURE__ */ D(
3849
- On,
3850
- {
3851
- ref: n,
3852
- sortDescriptor: p,
3853
- onSortChange: (h) => {
3854
- h && r && r({
3855
- column: String(h.column),
3856
- direction: h.direction
3857
- });
3858
- },
3859
- selectedKeys: a,
3860
- defaultSelectedKeys: c,
3861
- onSelectionChange: u,
3862
- selectionMode: i,
3863
- disallowEmptySelection: d,
3864
- disabledKeys: s,
3865
- disabledBehavior: "all",
3866
- ...l,
3867
- children: e
3868
- }
3869
- ) });
3870
- });
3871
- Ge.displayName = "DataTable.Table";
3872
- const Bo = /* @__PURE__ */ Y(function({ footer: e, ...l }, n) {
3873
- return /* @__PURE__ */ ne(qe, { ref: n, ...l, children: [
3874
- /* @__PURE__ */ ne(Ge, { "aria-label": "Data Table", children: [
3875
- /* @__PURE__ */ D(Xe, { "aria-label": "Data Table Header" }),
3876
- /* @__PURE__ */ D(Le, { "aria-label": "Data Table Body" })
3877
- ] }),
3878
- e && /* @__PURE__ */ D(Ye, { children: e })
3879
- ] });
3880
- }), xr = /* @__PURE__ */ Object.assign(Bo, {
3881
- Root: qe,
3882
- Table: Ge,
3883
- Header: Xe,
3884
- Column: Se,
3885
- Body: Le,
3886
- Row: Ue,
3887
- Cell: de,
3888
- Footer: Ye,
3889
- ExpandButton: cl,
3890
- DetailsButton: $o,
3891
- NestedIcon: xo,
3892
- SelectionCell: yo,
3893
- Context: Be,
3894
- useDataTableContext: me
3895
- });
3896
- export {
3897
- xr as D,
3898
- qe as a,
3899
- Ge as b,
3900
- Xe as c,
3901
- Se as d,
3902
- Le as e,
3903
- Ue as f,
3904
- de as g,
3905
- Ye as h,
3906
- cl as i,
3907
- $o as j,
3908
- xo as k,
3909
- yo as l,
3910
- Ro as u
3911
- };
3912
- //# sourceMappingURL=data-table-CSWloD1b.es.js.map