@commercetools/nimbus 1.0.1 → 2.0.1-rc1

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