@logicplanes/kaeso-ui 0.7.5-rc.8 → 0.7.5

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 (524) hide show
  1. package/AGENTS.md +4 -4
  2. package/ai/component-guides.md +106 -8
  3. package/ai/component-registry.json +207 -55
  4. package/ai/component-registry.md +72 -44
  5. package/ai/icons.md +1 -1
  6. package/ai/tokens.md +18 -1
  7. package/dist/chunks/{app-frame-BZH_ATS-.js → app-frame-COfWg7wS.js} +10 -10
  8. package/dist/chunks/app-frame-COfWg7wS.js.map +1 -0
  9. package/dist/chunks/arrow-focus-D9q8rMct.js.map +1 -1
  10. package/dist/chunks/{avatar-CXhUuE1G.js → avatar-C4r7x_uJ.js} +16 -15
  11. package/dist/chunks/avatar-C4r7x_uJ.js.map +1 -0
  12. package/dist/chunks/avatar-CQNbSj8X.js +5 -0
  13. package/dist/chunks/avatar-CQNbSj8X.js.map +1 -0
  14. package/dist/chunks/{badge-Be95hMkq.js → badge-CU9K-wA1.js} +3 -3
  15. package/dist/chunks/badge-CU9K-wA1.js.map +1 -0
  16. package/dist/chunks/{banner-_XNQ5JDU.js → banner-R5GIFExf.js} +5 -5
  17. package/dist/chunks/banner-R5GIFExf.js.map +1 -0
  18. package/dist/chunks/{button-IDx51cLu.js → button-CXdEDVSI.js} +31 -30
  19. package/dist/chunks/button-CXdEDVSI.js.map +1 -0
  20. package/dist/chunks/{button-group-B5rYVJZk.js → button-group-CbzjByVu.js} +5 -5
  21. package/dist/chunks/button-group-CbzjByVu.js.map +1 -0
  22. package/dist/chunks/{calendar-D7Sbcrq-.js → calendar-BpY2J5Qf.js} +2 -2
  23. package/dist/chunks/calendar-BpY2J5Qf.js.map +1 -0
  24. package/dist/chunks/{checkbox-CzHNM_1C.js → checkbox-D2MWvFlH.js} +5 -5
  25. package/dist/chunks/checkbox-D2MWvFlH.js.map +1 -0
  26. package/dist/chunks/{cn-DQJRk8Ly.js → cn-Cim5WXyu.js} +7 -2
  27. package/dist/chunks/cn-Cim5WXyu.js.map +1 -0
  28. package/dist/chunks/{code-bpAOiAx9.js → code-CGPiBqzu.js} +2 -2
  29. package/dist/chunks/code-CGPiBqzu.js.map +1 -0
  30. package/dist/chunks/{code-block-DgACR0FD.js → code-block-Dkedqh94.js} +6 -6
  31. package/dist/chunks/code-block-Dkedqh94.js.map +1 -0
  32. package/dist/chunks/{code-block-CmkCi6IL.js → code-block-RYsP7P22.js} +7 -7
  33. package/dist/chunks/code-block-RYsP7P22.js.map +1 -0
  34. package/dist/chunks/{collapsible-ivslPUbI.js → collapsible-BwQBF1wX.js} +3 -3
  35. package/dist/chunks/collapsible-BwQBF1wX.js.map +1 -0
  36. package/dist/chunks/{combobox-Co0aJbVi.js → combobox-DlIGL6fh.js} +7 -7
  37. package/dist/chunks/combobox-DlIGL6fh.js.map +1 -0
  38. package/dist/chunks/{command-list-DuUjJqji.js → command-list-D7wBlyDt.js} +5 -5
  39. package/dist/chunks/command-list-D7wBlyDt.js.map +1 -0
  40. package/dist/chunks/{command-palette-3Q-vDMw2.js → command-palette-DhHS-XXz.js} +6 -6
  41. package/dist/chunks/command-palette-DhHS-XXz.js.map +1 -0
  42. package/dist/chunks/context-B2nNL7Im.js.map +1 -1
  43. package/dist/chunks/{copy-button-rX4M-GJO.js → copy-button-BjfGRgZi.js} +5 -5
  44. package/dist/chunks/copy-button-BjfGRgZi.js.map +1 -0
  45. package/dist/chunks/{core-hhm1-i4Y.js → core-DZ_ZGFjd.js} +147 -132
  46. package/dist/chunks/core-DZ_ZGFjd.js.map +1 -0
  47. package/dist/chunks/{dashboard-DQuMF9Tq.js → dashboard-BOeVNKwA.js} +8 -8
  48. package/dist/chunks/dashboard-BOeVNKwA.js.map +1 -0
  49. package/dist/chunks/data-table-DLqzrTF8.js +715 -0
  50. package/dist/chunks/data-table-DLqzrTF8.js.map +1 -0
  51. package/dist/chunks/{date-picker-eA13V1zj.js → date-picker-CiLNpsSh.js} +27 -26
  52. package/dist/chunks/{date-picker-eA13V1zj.js.map → date-picker-CiLNpsSh.js.map} +1 -1
  53. package/dist/chunks/{date-popup-DRANGI9L.js → date-popup-Bp0d8U6H.js} +4 -4
  54. package/dist/chunks/date-popup-Bp0d8U6H.js.map +1 -0
  55. package/dist/chunks/{de-CwdJzATr.js → de-BsTWV__5.js} +9 -5
  56. package/dist/chunks/de-BsTWV__5.js.map +1 -0
  57. package/dist/chunks/{delta-CNXOF9oJ.js → delta-Dspg6LP2.js} +3 -3
  58. package/dist/chunks/delta-Dspg6LP2.js.map +1 -0
  59. package/dist/chunks/dev-CRNODF1J.js.map +1 -1
  60. package/dist/chunks/{dialog-BAaxqNmo.js → dialog-wy5nNxfE.js} +4 -4
  61. package/dist/chunks/dialog-wy5nNxfE.js.map +1 -0
  62. package/dist/chunks/{disclosure-B5vcFKmf.js → disclosure-CmuBms1J.js} +2 -2
  63. package/dist/chunks/disclosure-CmuBms1J.js.map +1 -0
  64. package/dist/chunks/{display-options-DoSemxi6.js → display-options-CPo4Pn5F.js} +9 -9
  65. package/dist/chunks/display-options-CPo4Pn5F.js.map +1 -0
  66. package/dist/chunks/{domain-B9R6WwkJ.js → domain-Cfyk1vCK.js} +3 -3
  67. package/dist/chunks/{domain-B9R6WwkJ.js.map → domain-Cfyk1vCK.js.map} +1 -1
  68. package/dist/chunks/empty-JZwT3C6e.js +81 -0
  69. package/dist/chunks/empty-JZwT3C6e.js.map +1 -0
  70. package/dist/chunks/{field-CJmKViom.js → field-DG61eK8Z.js} +2 -2
  71. package/dist/chunks/field-DG61eK8Z.js.map +1 -0
  72. package/dist/chunks/{figure-D1v9DoaH.js → figure-BI0eP7S-.js} +3 -3
  73. package/dist/chunks/figure-BI0eP7S-.js.map +1 -0
  74. package/dist/chunks/figures-D_Tsrwwj.js.map +1 -1
  75. package/dist/chunks/{filter-chip-CK9CRCkU.js → filter-chip-DY-gZVYb.js} +6 -6
  76. package/dist/chunks/filter-chip-DY-gZVYb.js.map +1 -0
  77. package/dist/chunks/{filter-row-O70oE2iD.js → filter-row-CPO_SEYy.js} +3 -3
  78. package/dist/chunks/{filter-row-O70oE2iD.js.map → filter-row-CPO_SEYy.js.map} +1 -1
  79. package/dist/chunks/{flow-DMHMDBA4.js → flow-B8DRLw6-.js} +3 -3
  80. package/dist/chunks/flow-B8DRLw6-.js.map +1 -0
  81. package/dist/chunks/formatters-Be5AdLB2.js.map +1 -1
  82. package/dist/chunks/{heading-BTLbKrGv.js → heading-CkCOztRO.js} +2 -2
  83. package/dist/chunks/heading-CkCOztRO.js.map +1 -0
  84. package/dist/chunks/{icon-BGgbhXWJ.js → icon-B9UXhFTF.js} +2 -2
  85. package/dist/chunks/icon-B9UXhFTF.js.map +1 -0
  86. package/dist/chunks/icon-DOwC1bbC.js.map +1 -1
  87. package/dist/chunks/{identity-Bg-bQX3c.js → identity-CAvHnogN.js} +13 -8
  88. package/dist/chunks/identity-CAvHnogN.js.map +1 -0
  89. package/dist/chunks/{input-BYFKkVNf.js → input-6tVIiN3-.js} +5 -5
  90. package/dist/chunks/input-6tVIiN3-.js.map +1 -0
  91. package/dist/chunks/{input-BMuZu79b.js → input-BVheeeEI.js} +5 -5
  92. package/dist/chunks/input-BVheeeEI.js.map +1 -0
  93. package/dist/chunks/{input-group-BXj2Mghf.js → input-group-ClNtr_Gm.js} +4 -4
  94. package/dist/chunks/input-group-ClNtr_Gm.js.map +1 -0
  95. package/dist/chunks/inset-BTAjcK6a.js.map +1 -1
  96. package/dist/chunks/{iso-field-5b8xjn5X.js → iso-field-C29xji-V.js} +2 -2
  97. package/dist/chunks/iso-field-C29xji-V.js.map +1 -0
  98. package/dist/chunks/{json-view-DTIEJTSR.js → json-view-BVTEkhgz.js} +3 -3
  99. package/dist/chunks/json-view-BVTEkhgz.js.map +1 -0
  100. package/dist/chunks/{kaeso-DIbGvfhi.js → kaeso-CaMYkbqJ.js} +20 -20
  101. package/dist/chunks/kaeso-CaMYkbqJ.js.map +1 -0
  102. package/dist/chunks/kaeso-theme-C9rnRKq2.js.map +1 -1
  103. package/dist/chunks/{kbd-zNFwdrg1.js → kbd-CmhJfU_8.js} +18 -10
  104. package/dist/chunks/kbd-CmhJfU_8.js.map +1 -0
  105. package/dist/chunks/{key-value-BZca_YDS.js → key-value-tPKtCSOn.js} +23 -16
  106. package/dist/chunks/key-value-tPKtCSOn.js.map +1 -0
  107. package/dist/chunks/labelled-DJa09XRF.js.map +1 -1
  108. package/dist/chunks/linear-scale-B5A7yNr7.js.map +1 -1
  109. package/dist/chunks/{link-B_qFiRsh.js → link-CZ1h1ksk.js} +3 -3
  110. package/dist/chunks/link-CZ1h1ksk.js.map +1 -0
  111. package/dist/chunks/link-provider-DSF9bbO3.js.map +1 -1
  112. package/dist/chunks/list-zQrK77Dx.js +698 -0
  113. package/dist/chunks/list-zQrK77Dx.js.map +1 -0
  114. package/dist/chunks/loader-BbKL8cW_.js +41 -0
  115. package/dist/chunks/loader-BbKL8cW_.js.map +1 -0
  116. package/dist/chunks/{loader-BkSlU0vv.js → loader-DBk2HCOh.js} +9 -8
  117. package/dist/chunks/loader-DBk2HCOh.js.map +1 -0
  118. package/dist/chunks/{logo-BNUcTTFE.js → logo-DqjYySTX.js} +3 -3
  119. package/dist/chunks/logo-DqjYySTX.js.map +1 -0
  120. package/dist/chunks/{markdown-DH8zo4N5.js → markdown-Ds1mSbGa.js} +11 -11
  121. package/dist/chunks/markdown-Ds1mSbGa.js.map +1 -0
  122. package/dist/chunks/{menu-4EfdXXaY.js → menu-CKlz_Dp4.js} +5 -5
  123. package/dist/chunks/menu-CKlz_Dp4.js.map +1 -0
  124. package/dist/chunks/merge-refs-SiVVoQsO.js.map +1 -1
  125. package/dist/chunks/message-DpD9D1Dj.js.map +1 -1
  126. package/dist/chunks/{meter-B-VbJ8-a.js → meter-d2wMKjVU.js} +4 -4
  127. package/dist/chunks/meter-d2wMKjVU.js.map +1 -0
  128. package/dist/chunks/{nav-sheet-B1C0Qsan.js → nav-sheet--ycVeOvo.js} +3 -3
  129. package/dist/chunks/nav-sheet--ycVeOvo.js.map +1 -0
  130. package/dist/chunks/{nav-wordmark-CkHnmvCE.js → nav-wordmark-CPDxGU5t.js} +2 -2
  131. package/dist/chunks/nav-wordmark-CPDxGU5t.js.map +1 -0
  132. package/dist/chunks/observe-resize-Bubv5_wX.js.map +1 -1
  133. package/dist/chunks/option-checkbox-wA9L8Nxo.js.map +1 -1
  134. package/dist/chunks/over-sheet-CMUXcIMV.js.map +1 -1
  135. package/dist/chunks/{page-header-CMk_EwVa.js → page-header-DRi-hKtt.js} +8 -8
  136. package/dist/chunks/page-header-DRi-hKtt.js.map +1 -0
  137. package/dist/chunks/{pagination-BfmCRgHJ.js → pagination-DvPIXuoj.js} +3 -3
  138. package/dist/chunks/pagination-DvPIXuoj.js.map +1 -0
  139. package/dist/chunks/{picker-popover-3iW35tmy.js → picker-popover-B-zhsNiS.js} +7 -7
  140. package/dist/chunks/picker-popover-B-zhsNiS.js.map +1 -0
  141. package/dist/chunks/{popover-DEaeabhG.js → popover-Dw7iTUNg.js} +2 -2
  142. package/dist/chunks/popover-Dw7iTUNg.js.map +1 -0
  143. package/dist/chunks/popover-root-BI54wuLi.js.map +1 -1
  144. package/dist/chunks/portal-context-Z2xSIPsc.js.map +1 -1
  145. package/dist/chunks/provider-marks-DmonWRb5.js.map +1 -1
  146. package/dist/chunks/{qr-code-cRty-avF.js → qr-code-ClT_2Xa9.js} +2 -2
  147. package/dist/chunks/qr-code-ClT_2Xa9.js.map +1 -0
  148. package/dist/chunks/{radio-C9iPbghn.js → radio-DJES13fj.js} +3 -3
  149. package/dist/chunks/radio-DJES13fj.js.map +1 -0
  150. package/dist/chunks/{range-popup-UYRCFfQl.js → range-popup-CiCBpRfH.js} +7 -7
  151. package/dist/chunks/range-popup-CiCBpRfH.js.map +1 -0
  152. package/dist/chunks/{reasoning-frame-IiHAbh6g.js → reasoning-frame-DnTFGrD_.js} +3 -3
  153. package/dist/chunks/reasoning-frame-DnTFGrD_.js.map +1 -0
  154. package/dist/chunks/{release-art-CE2j4YlI.js → release-art-CQjO2Ewv.js} +193 -207
  155. package/dist/chunks/release-art-CQjO2Ewv.js.map +1 -0
  156. package/dist/chunks/resize-motion-CMR1x5Kw.js.map +1 -1
  157. package/dist/chunks/{rights-i-LRTcge.js → rights-B0LWKkB2.js} +121 -115
  158. package/dist/chunks/rights-B0LWKkB2.js.map +1 -0
  159. package/dist/chunks/{rolldown-runtime-CGnMp29N.js → rolldown-runtime-BMBA7GOT.js} +2 -2
  160. package/dist/chunks/{rolling-number-_2kGzuy_.js → rolling-number-uNjki3hn.js} +2 -2
  161. package/dist/chunks/rolling-number-uNjki3hn.js.map +1 -0
  162. package/dist/chunks/row-control-DlHLdthx.js.map +1 -1
  163. package/dist/chunks/safe-href-CWHpspUx.js.map +1 -1
  164. package/dist/chunks/{scroll-area-DrzIUI9G.js → scroll-area-CjokFhH6.js} +2 -2
  165. package/dist/chunks/scroll-area-CjokFhH6.js.map +1 -0
  166. package/dist/chunks/{section-NyJfocIN.js → section-DJgejMMh.js} +3 -3
  167. package/dist/chunks/section-DJgejMMh.js.map +1 -0
  168. package/dist/chunks/{segmented-CHt-g7nN.js → segmented-UnR1L-kk.js} +4 -4
  169. package/dist/chunks/segmented-UnR1L-kk.js.map +1 -0
  170. package/dist/chunks/{select-Kk7Zr4sY.js → select-BDwDI8L3.js} +5 -5
  171. package/dist/chunks/select-BDwDI8L3.js.map +1 -0
  172. package/dist/chunks/selects-text-CYQ11JVI.js +46 -0
  173. package/dist/chunks/selects-text-CYQ11JVI.js.map +1 -0
  174. package/dist/chunks/{separator-B4NRWxdN.js → separator-3RcDNFzM.js} +2 -2
  175. package/dist/chunks/separator-3RcDNFzM.js.map +1 -0
  176. package/dist/chunks/{settings-DxCWt7db.js → settings-CcNjQm1D.js} +4 -3
  177. package/dist/chunks/settings-CcNjQm1D.js.map +1 -0
  178. package/dist/chunks/{sheet-CDzn-r3p.js → sheet-CsN1uy5N.js} +3 -3
  179. package/dist/chunks/sheet-CsN1uy5N.js.map +1 -0
  180. package/dist/chunks/shiki-Drii10ai.js.map +1 -1
  181. package/dist/chunks/{sidebar-DvWmC7uY.js → sidebar-Cz0KdApZ.js} +307 -257
  182. package/dist/chunks/sidebar-Cz0KdApZ.js.map +1 -0
  183. package/dist/chunks/{sidebar-menu-BTXCx8zv.js → sidebar-menu-CTaQhVTv.js} +2 -2
  184. package/dist/chunks/sidebar-menu-CTaQhVTv.js.map +1 -0
  185. package/dist/chunks/skeleton-GuivuiOP.js +70 -0
  186. package/dist/chunks/skeleton-GuivuiOP.js.map +1 -0
  187. package/dist/chunks/{slider-DOlqqalv.js → slider-XvStaacJ.js} +2 -2
  188. package/dist/chunks/slider-XvStaacJ.js.map +1 -0
  189. package/dist/chunks/{stat-Bp_wZjxy.js → stat-BJ4otTGc.js} +6 -6
  190. package/dist/chunks/stat-BJ4otTGc.js.map +1 -0
  191. package/dist/chunks/{status-C3kBsFx5.js → status-BkW_rVAX.js} +3 -3
  192. package/dist/chunks/status-BkW_rVAX.js.map +1 -0
  193. package/dist/chunks/{styles-CN0ovMB2.js → styles-BsZZml1H.js} +2 -2
  194. package/dist/chunks/{styles-CN0ovMB2.js.map → styles-BsZZml1H.js.map} +1 -1
  195. package/dist/chunks/{swap-text-BwTV6JqO.js → swap-text-Crb3uzrK.js} +2 -2
  196. package/dist/chunks/swap-text-Crb3uzrK.js.map +1 -0
  197. package/dist/chunks/{swap-value-Di18BQCa.js → swap-value-BKrH58Iv.js} +3 -3
  198. package/dist/chunks/swap-value-BKrH58Iv.js.map +1 -0
  199. package/dist/chunks/{switch-C1pUsVtT.js → switch-CzmZ6gLD.js} +5 -4
  200. package/dist/chunks/switch-CzmZ6gLD.js.map +1 -0
  201. package/dist/chunks/{table-BXJrLHr8.js → table-ppZE7fYt.js} +2 -2
  202. package/dist/chunks/table-ppZE7fYt.js.map +1 -0
  203. package/dist/chunks/{tabs-D40oQwXB.js → tabs-DPA2zGfY.js} +3 -3
  204. package/dist/chunks/tabs-DPA2zGfY.js.map +1 -0
  205. package/dist/chunks/{tag-x-EyRR8h.js → tag-CnULig9p.js} +4 -4
  206. package/dist/chunks/tag-CnULig9p.js.map +1 -0
  207. package/dist/chunks/{text-BXZOSAHk.js → text-BC4rusw7.js} +3 -3
  208. package/dist/chunks/text-BC4rusw7.js.map +1 -0
  209. package/dist/chunks/{textarea-DsYriHdR.js → textarea-K4ojoshs.js} +5 -5
  210. package/dist/chunks/textarea-K4ojoshs.js.map +1 -0
  211. package/dist/chunks/{theme-image-DKxmJnVz.js → theme-image-C9p959Kv.js} +2 -2
  212. package/dist/chunks/theme-image-C9p959Kv.js.map +1 -0
  213. package/dist/chunks/{theme-menu-BfTPLeV1.js → theme-menu-Bm8d9ooS.js} +4 -4
  214. package/dist/chunks/theme-menu-Bm8d9ooS.js.map +1 -0
  215. package/dist/chunks/theme-provider-DaD8hlXu.js.map +1 -1
  216. package/dist/chunks/{thumbnail-DYBOnTRy.js → thumbnail-CUa0JXLG.js} +4 -4
  217. package/dist/chunks/thumbnail-CUa0JXLG.js.map +1 -0
  218. package/dist/chunks/{thumbnail-CcC1oISm.js → thumbnail-KtBHleQk.js} +2 -2
  219. package/dist/chunks/thumbnail-KtBHleQk.js.map +1 -0
  220. package/dist/chunks/{timeline-l12CWnH0.js → timeline-hMJEN3ZB.js} +3 -3
  221. package/dist/chunks/timeline-hMJEN3ZB.js.map +1 -0
  222. package/dist/chunks/{timeseries-11o3wvRN.js → timeseries-BUL9zITH.js} +7 -7
  223. package/dist/chunks/timeseries-BUL9zITH.js.map +1 -0
  224. package/dist/chunks/{toast-YiWEHrDi.js → toast-4PyK7GS1.js} +5 -5
  225. package/dist/chunks/toast-4PyK7GS1.js.map +1 -0
  226. package/dist/chunks/{toc-kwH5V9BC.js → toc-CUh8jCiJ.js} +2 -2
  227. package/dist/chunks/toc-CUh8jCiJ.js.map +1 -0
  228. package/dist/chunks/toolbar-w3ZPxEoW.js +80 -0
  229. package/dist/chunks/toolbar-w3ZPxEoW.js.map +1 -0
  230. package/dist/chunks/tooltip-D0jdTWyX.js.map +1 -1
  231. package/dist/chunks/{tooltip-5VkHAnXF.js → tooltip-DpUVorD8.js} +4 -4
  232. package/dist/chunks/tooltip-DpUVorD8.js.map +1 -0
  233. package/dist/chunks/{tooltip-root-munfMGEN.js → tooltip-root-Ka27-TrV.js} +8 -7
  234. package/dist/chunks/tooltip-root-Ka27-TrV.js.map +1 -0
  235. package/dist/chunks/{tooltip-D8DF9Pe6.js → tooltip-uRgNOzW_.js} +4 -4
  236. package/dist/chunks/tooltip-uRgNOzW_.js.map +1 -0
  237. package/dist/chunks/{truncated-xRd8D8kf.js → truncated-CcpJk_3e.js} +3 -3
  238. package/dist/chunks/truncated-CcpJk_3e.js.map +1 -0
  239. package/dist/chunks/use-controllable-rN5Fg5EJ.js.map +1 -1
  240. package/dist/chunks/use-copy-DtUCUOlR.js.map +1 -1
  241. package/dist/chunks/use-cut-off-Cx1Nn5uF.js.map +1 -1
  242. package/dist/chunks/use-delayed-loading-Chh5dI7E.js +21 -0
  243. package/dist/chunks/use-delayed-loading-Chh5dI7E.js.map +1 -0
  244. package/dist/chunks/use-hydrating-Dth8POSk.js.map +1 -1
  245. package/dist/chunks/use-indicator-C1pEv290.js.map +1 -1
  246. package/dist/chunks/use-layout-width-DbMAv4mR.js.map +1 -1
  247. package/dist/chunks/use-scroll-fade-BwpKEWY0.js.map +1 -1
  248. package/dist/chunks/use-scroll-margin-LcRbT78-.js.map +1 -1
  249. package/dist/chunks/use-truncated-Dn60-ubK.js.map +1 -1
  250. package/dist/chunks/use-utc-while-hydrating-PP48Tcfz.js.map +1 -1
  251. package/dist/chunks/virtual-rows-D-ZT6V6B.js.map +1 -1
  252. package/dist/chunks/{visually-hidden-BloW-QXO.js → visually-hidden-Di2pLhE3.js} +2 -2
  253. package/dist/chunks/visually-hidden-Di2pLhE3.js.map +1 -0
  254. package/dist/chunks/when-idle-DXKwyOLB.js.map +1 -1
  255. package/dist/chunks/{zh-CN-Db1lfihK.js → zh-CN-C4aFUWpC.js} +6 -2
  256. package/dist/chunks/zh-CN-C4aFUWpC.js.map +1 -0
  257. package/dist/components/app-frame.js +1 -1
  258. package/dist/components/avatar.js +3 -1
  259. package/dist/components/badge.js +1 -1
  260. package/dist/components/banner.js +1 -1
  261. package/dist/components/button-group.js +1 -1
  262. package/dist/components/button.js +1 -1
  263. package/dist/components/calendar.js +1 -1
  264. package/dist/components/charts/bar.js +6 -6
  265. package/dist/components/charts/bar.js.map +1 -1
  266. package/dist/components/charts/donut.js +156 -85
  267. package/dist/components/charts/donut.js.map +1 -1
  268. package/dist/components/charts/heatmap.js +3 -3
  269. package/dist/components/charts/heatmap.js.map +1 -1
  270. package/dist/components/charts/sankey.js +4 -4
  271. package/dist/components/charts/sankey.js.map +1 -1
  272. package/dist/components/charts/sparkline.js +3 -3
  273. package/dist/components/charts/sparkline.js.map +1 -1
  274. package/dist/components/charts/swatches.js +31 -0
  275. package/dist/components/charts/swatches.js.map +1 -0
  276. package/dist/components/charts/timeseries.js +1 -1
  277. package/dist/components/charts.js +8 -8
  278. package/dist/components/checkbox.js +1 -1
  279. package/dist/components/code-block.js +3 -3
  280. package/dist/components/code.js +1 -1
  281. package/dist/components/collapsible.js +1 -1
  282. package/dist/components/combobox.js +1 -1
  283. package/dist/components/command-palette.js +1 -1
  284. package/dist/components/copy-button.js +1 -1
  285. package/dist/components/dashboard/about-header.js +44 -0
  286. package/dist/components/dashboard/about-header.js.map +1 -0
  287. package/dist/components/dashboard/legend.js +2 -2
  288. package/dist/components/dashboard/legend.js.map +1 -1
  289. package/dist/components/dashboard/metric-tabs.js +4 -4
  290. package/dist/components/dashboard/metric-tabs.js.map +1 -1
  291. package/dist/components/dashboard/model-card.js +100 -38
  292. package/dist/components/dashboard/model-card.js.map +1 -1
  293. package/dist/components/dashboard/rank-list.js +90 -59
  294. package/dist/components/dashboard/rank-list.js.map +1 -1
  295. package/dist/components/dashboard.js +3 -2
  296. package/dist/components/data-table.js +1 -1
  297. package/dist/components/date-picker.js +1 -1
  298. package/dist/components/dialog.js +1 -1
  299. package/dist/components/display-options.js +1 -1
  300. package/dist/components/empty.js +1 -1
  301. package/dist/components/field.js +1 -1
  302. package/dist/components/figure.js +1 -1
  303. package/dist/components/filter-chip.js +1 -1
  304. package/dist/components/filter-row.js +1 -1
  305. package/dist/components/flow-canvas.js +8 -8
  306. package/dist/components/flow-canvas.js.map +1 -1
  307. package/dist/components/flow.js +1 -1
  308. package/dist/components/heading.js +1 -1
  309. package/dist/components/icon.js +1 -1
  310. package/dist/components/input.js +3 -3
  311. package/dist/components/kaeso/conversation.js +8 -8
  312. package/dist/components/kaeso/conversation.js.map +1 -1
  313. package/dist/components/kaeso/identity.js +1 -1
  314. package/dist/components/kaeso/moments.js +4 -4
  315. package/dist/components/kaeso/moments.js.map +1 -1
  316. package/dist/components/kaeso/rights.js +1 -1
  317. package/dist/components/kaeso/usage.js +8 -8
  318. package/dist/components/kaeso/usage.js.map +1 -1
  319. package/dist/components/kaeso.js +3 -3
  320. package/dist/components/kbd.js +1 -1
  321. package/dist/components/key-value.js +1 -1
  322. package/dist/components/link.js +1 -1
  323. package/dist/components/list.js +1 -1
  324. package/dist/components/loader.js +3 -2
  325. package/dist/components/logo.js +1 -1
  326. package/dist/components/markdown.js +1 -1
  327. package/dist/components/menu.js +2 -2
  328. package/dist/components/meter.js +1 -1
  329. package/dist/components/page-header.js +1 -1
  330. package/dist/components/pagination.js +1 -1
  331. package/dist/components/playground.js +61 -42
  332. package/dist/components/playground.js.map +1 -1
  333. package/dist/components/popover.js +1 -1
  334. package/dist/components/qr-code.js +1 -1
  335. package/dist/components/radio.js +1 -1
  336. package/dist/components/release-art.js +1 -1
  337. package/dist/components/scroll-area.js +1 -1
  338. package/dist/components/section.js +1 -1
  339. package/dist/components/segmented.js +1 -1
  340. package/dist/components/select.js +1 -1
  341. package/dist/components/separator.js +1 -1
  342. package/dist/components/settings.js +1 -1
  343. package/dist/components/sheet.js +1 -1
  344. package/dist/components/sidebar.js +1 -1
  345. package/dist/components/skeleton.js +1 -1
  346. package/dist/components/slider.js +1 -1
  347. package/dist/components/stat.js +3 -3
  348. package/dist/components/status.js +1 -1
  349. package/dist/components/swap-text.js +1 -1
  350. package/dist/components/switch.js +1 -1
  351. package/dist/components/table.js +1 -1
  352. package/dist/components/tabs.js +1 -1
  353. package/dist/components/tag.js +1 -1
  354. package/dist/components/text.js +1 -1
  355. package/dist/components/theme-image.js +1 -1
  356. package/dist/components/theme-menu.js +1 -1
  357. package/dist/components/thumbnail.js +2 -2
  358. package/dist/components/timeline.js +1 -1
  359. package/dist/components/toast.js +1 -1
  360. package/dist/components/toc.js +1 -1
  361. package/dist/components/toolbar.js +1 -1
  362. package/dist/components/tooltip.js +1 -1
  363. package/dist/components/visually-hidden.js +1 -1
  364. package/dist/format.js.map +1 -1
  365. package/dist/i18n-locales.js.map +1 -1
  366. package/dist/i18n-provider.js +1 -1
  367. package/dist/i18n-provider.js.map +1 -1
  368. package/dist/index.js +101 -99
  369. package/dist/kaeso.css +138 -44
  370. package/dist/styles.css +1 -1
  371. package/dist/types/components/app-frame/app-frame.d.ts +2 -2
  372. package/dist/types/components/avatar/avatar.d.ts +1 -0
  373. package/dist/types/components/avatar/docs.d.ts +1 -0
  374. package/dist/types/components/avatar/index.d.ts +1 -0
  375. package/dist/types/components/avatar/swatches.d.ts +6 -0
  376. package/dist/types/components/banner/banner.d.ts +2 -2
  377. package/dist/types/components/charts/core.d.ts +6 -2
  378. package/dist/types/components/charts/docs.d.ts +2 -0
  379. package/dist/types/components/charts/donut.d.ts +2 -0
  380. package/dist/types/components/charts/index.d.ts +1 -1
  381. package/dist/types/components/charts/swatches.d.ts +8 -0
  382. package/dist/types/components/dashboard/about-header.d.ts +12 -0
  383. package/dist/types/components/dashboard/docs.d.ts +16 -2
  384. package/dist/types/components/dashboard/index.d.ts +1 -0
  385. package/dist/types/components/dashboard/model-card.d.ts +2 -2
  386. package/dist/types/components/dashboard/rank-list.d.ts +2 -0
  387. package/dist/types/components/empty/docs.d.ts +2 -0
  388. package/dist/types/components/empty/empty.d.ts +29 -7
  389. package/dist/types/components/empty/ghost.d.ts +9 -0
  390. package/dist/types/components/filter-row/filter-row.d.ts +2 -2
  391. package/dist/types/components/kaeso/client-button.d.ts +2 -2
  392. package/dist/types/components/kaeso/model-makers.d.ts +2 -2
  393. package/dist/types/components/kaeso/source-badge.d.ts +3 -3
  394. package/dist/types/components/key-value/key-value.d.ts +1 -0
  395. package/dist/types/components/list/docs.d.ts +2 -0
  396. package/dist/types/components/list/index.d.ts +1 -1
  397. package/dist/types/components/list/list.d.ts +18 -0
  398. package/dist/types/components/loader/loader.d.ts +1 -1
  399. package/dist/types/components/page-header/page-header.d.ts +1 -1
  400. package/dist/types/components/release-art/drawing.d.ts +1 -5
  401. package/dist/types/components/release-art/index.d.ts +1 -1
  402. package/dist/types/components/release-art/release-art.d.ts +1 -5
  403. package/dist/types/components/sidebar/sidebar.d.ts +1 -0
  404. package/dist/types/components/skeleton/docs.d.ts +1 -0
  405. package/dist/types/components/skeleton/skeleton.d.ts +9 -0
  406. package/dist/types/components/toolbar/docs.d.ts +1 -0
  407. package/dist/types/components/toolbar/toolbar.d.ts +14 -2
  408. package/dist/types/hooks/use-delayed-loading.d.ts +1 -0
  409. package/dist/types/utils/cn.d.ts +15 -15
  410. package/dist/utils.js +1 -1
  411. package/foundations/color.md +4 -3
  412. package/foundations/icons.md +1 -1
  413. package/foundations/layout.md +9 -9
  414. package/foundations/motion.md +4 -2
  415. package/foundations/psychology.md +1 -1
  416. package/foundations/writing.md +6 -1
  417. package/package.json +10 -10
  418. package/dist/chunks/app-frame-BZH_ATS-.js.map +0 -1
  419. package/dist/chunks/avatar-CXhUuE1G.js.map +0 -1
  420. package/dist/chunks/badge-Be95hMkq.js.map +0 -1
  421. package/dist/chunks/banner-_XNQ5JDU.js.map +0 -1
  422. package/dist/chunks/button-IDx51cLu.js.map +0 -1
  423. package/dist/chunks/button-group-B5rYVJZk.js.map +0 -1
  424. package/dist/chunks/calendar-D7Sbcrq-.js.map +0 -1
  425. package/dist/chunks/checkbox-CzHNM_1C.js.map +0 -1
  426. package/dist/chunks/cn-DQJRk8Ly.js.map +0 -1
  427. package/dist/chunks/code-block-CmkCi6IL.js.map +0 -1
  428. package/dist/chunks/code-block-DgACR0FD.js.map +0 -1
  429. package/dist/chunks/code-bpAOiAx9.js.map +0 -1
  430. package/dist/chunks/collapsible-ivslPUbI.js.map +0 -1
  431. package/dist/chunks/combobox-Co0aJbVi.js.map +0 -1
  432. package/dist/chunks/command-list-DuUjJqji.js.map +0 -1
  433. package/dist/chunks/command-palette-3Q-vDMw2.js.map +0 -1
  434. package/dist/chunks/copy-button-rX4M-GJO.js.map +0 -1
  435. package/dist/chunks/core-hhm1-i4Y.js.map +0 -1
  436. package/dist/chunks/dashboard-DQuMF9Tq.js.map +0 -1
  437. package/dist/chunks/data-table-BwZjiKKY.js +0 -683
  438. package/dist/chunks/data-table-BwZjiKKY.js.map +0 -1
  439. package/dist/chunks/date-popup-DRANGI9L.js.map +0 -1
  440. package/dist/chunks/de-CwdJzATr.js.map +0 -1
  441. package/dist/chunks/delta-CNXOF9oJ.js.map +0 -1
  442. package/dist/chunks/dialog-BAaxqNmo.js.map +0 -1
  443. package/dist/chunks/disclosure-B5vcFKmf.js.map +0 -1
  444. package/dist/chunks/display-options-DoSemxi6.js.map +0 -1
  445. package/dist/chunks/empty-2sGaG4zU.js +0 -50
  446. package/dist/chunks/empty-2sGaG4zU.js.map +0 -1
  447. package/dist/chunks/field-CJmKViom.js.map +0 -1
  448. package/dist/chunks/figure-D1v9DoaH.js.map +0 -1
  449. package/dist/chunks/filter-chip-CK9CRCkU.js.map +0 -1
  450. package/dist/chunks/flow-DMHMDBA4.js.map +0 -1
  451. package/dist/chunks/heading-BTLbKrGv.js.map +0 -1
  452. package/dist/chunks/icon-BGgbhXWJ.js.map +0 -1
  453. package/dist/chunks/identity-Bg-bQX3c.js.map +0 -1
  454. package/dist/chunks/input-BMuZu79b.js.map +0 -1
  455. package/dist/chunks/input-BYFKkVNf.js.map +0 -1
  456. package/dist/chunks/input-group-BXj2Mghf.js.map +0 -1
  457. package/dist/chunks/iso-field-5b8xjn5X.js.map +0 -1
  458. package/dist/chunks/json-view-DTIEJTSR.js.map +0 -1
  459. package/dist/chunks/kaeso-DIbGvfhi.js.map +0 -1
  460. package/dist/chunks/kbd-zNFwdrg1.js.map +0 -1
  461. package/dist/chunks/key-value-BZca_YDS.js.map +0 -1
  462. package/dist/chunks/link-B_qFiRsh.js.map +0 -1
  463. package/dist/chunks/list-D40s-Q7V.js +0 -596
  464. package/dist/chunks/list-D40s-Q7V.js.map +0 -1
  465. package/dist/chunks/loader-B0lA9LE9.js +0 -56
  466. package/dist/chunks/loader-B0lA9LE9.js.map +0 -1
  467. package/dist/chunks/loader-BkSlU0vv.js.map +0 -1
  468. package/dist/chunks/logo-BNUcTTFE.js.map +0 -1
  469. package/dist/chunks/markdown-DH8zo4N5.js.map +0 -1
  470. package/dist/chunks/menu-4EfdXXaY.js.map +0 -1
  471. package/dist/chunks/meter-B-VbJ8-a.js.map +0 -1
  472. package/dist/chunks/nav-sheet-B1C0Qsan.js.map +0 -1
  473. package/dist/chunks/nav-wordmark-CkHnmvCE.js.map +0 -1
  474. package/dist/chunks/page-header-CMk_EwVa.js.map +0 -1
  475. package/dist/chunks/pagination-BfmCRgHJ.js.map +0 -1
  476. package/dist/chunks/picker-popover-3iW35tmy.js.map +0 -1
  477. package/dist/chunks/popover-DEaeabhG.js.map +0 -1
  478. package/dist/chunks/qr-code-cRty-avF.js.map +0 -1
  479. package/dist/chunks/radio-C9iPbghn.js.map +0 -1
  480. package/dist/chunks/range-popup-UYRCFfQl.js.map +0 -1
  481. package/dist/chunks/reasoning-frame-IiHAbh6g.js.map +0 -1
  482. package/dist/chunks/release-art-CE2j4YlI.js.map +0 -1
  483. package/dist/chunks/rights-i-LRTcge.js.map +0 -1
  484. package/dist/chunks/rolling-number-_2kGzuy_.js.map +0 -1
  485. package/dist/chunks/scroll-area-DrzIUI9G.js.map +0 -1
  486. package/dist/chunks/section-NyJfocIN.js.map +0 -1
  487. package/dist/chunks/segmented-CHt-g7nN.js.map +0 -1
  488. package/dist/chunks/select-Kk7Zr4sY.js.map +0 -1
  489. package/dist/chunks/selects-text-kRMTsm4s.js +0 -32
  490. package/dist/chunks/selects-text-kRMTsm4s.js.map +0 -1
  491. package/dist/chunks/separator-B4NRWxdN.js.map +0 -1
  492. package/dist/chunks/settings-DxCWt7db.js.map +0 -1
  493. package/dist/chunks/sheet-CDzn-r3p.js.map +0 -1
  494. package/dist/chunks/sidebar-DvWmC7uY.js.map +0 -1
  495. package/dist/chunks/sidebar-menu-BTXCx8zv.js.map +0 -1
  496. package/dist/chunks/skeleton-4vjHa9pE.js +0 -32
  497. package/dist/chunks/skeleton-4vjHa9pE.js.map +0 -1
  498. package/dist/chunks/slider-DOlqqalv.js.map +0 -1
  499. package/dist/chunks/stat-Bp_wZjxy.js.map +0 -1
  500. package/dist/chunks/status-C3kBsFx5.js.map +0 -1
  501. package/dist/chunks/swap-text-BwTV6JqO.js.map +0 -1
  502. package/dist/chunks/swap-value-Di18BQCa.js.map +0 -1
  503. package/dist/chunks/switch-C1pUsVtT.js.map +0 -1
  504. package/dist/chunks/table-BXJrLHr8.js.map +0 -1
  505. package/dist/chunks/tabs-D40oQwXB.js.map +0 -1
  506. package/dist/chunks/tag-x-EyRR8h.js.map +0 -1
  507. package/dist/chunks/text-BXZOSAHk.js.map +0 -1
  508. package/dist/chunks/textarea-DsYriHdR.js.map +0 -1
  509. package/dist/chunks/theme-image-DKxmJnVz.js.map +0 -1
  510. package/dist/chunks/theme-menu-BfTPLeV1.js.map +0 -1
  511. package/dist/chunks/thumbnail-CcC1oISm.js.map +0 -1
  512. package/dist/chunks/thumbnail-DYBOnTRy.js.map +0 -1
  513. package/dist/chunks/timeline-l12CWnH0.js.map +0 -1
  514. package/dist/chunks/timeseries-11o3wvRN.js.map +0 -1
  515. package/dist/chunks/toast-YiWEHrDi.js.map +0 -1
  516. package/dist/chunks/toc-kwH5V9BC.js.map +0 -1
  517. package/dist/chunks/toolbar-CsamWPRC.js +0 -60
  518. package/dist/chunks/toolbar-CsamWPRC.js.map +0 -1
  519. package/dist/chunks/tooltip-5VkHAnXF.js.map +0 -1
  520. package/dist/chunks/tooltip-D8DF9Pe6.js.map +0 -1
  521. package/dist/chunks/tooltip-root-munfMGEN.js.map +0 -1
  522. package/dist/chunks/truncated-xRd8D8kf.js.map +0 -1
  523. package/dist/chunks/visually-hidden-BloW-QXO.js.map +0 -1
  524. package/dist/chunks/zh-CN-Db1lfihK.js.map +0 -1
@@ -1,683 +0,0 @@
1
- "use client";
2
- import { t as e } from "./cn-DQJRk8Ly.js";
3
- import { r as t } from "./observe-resize-Bubv5_wX.js";
4
- import { a as n, i as r, o as i, t as a } from "./inset-BTAjcK6a.js";
5
- import { ChevronDown as o } from "../icons/chevron-down.js";
6
- import { ChevronUp as s } from "../icons/chevron-up.js";
7
- import { t as c } from "./icon-BGgbhXWJ.js";
8
- import { n as l } from "./checkbox-CzHNM_1C.js";
9
- import { r as u } from "./skeleton-4vjHa9pE.js";
10
- import { t as d } from "./empty-2sGaG4zU.js";
11
- import { n as ee } from "./button-IDx51cLu.js";
12
- import { r as te } from "./pagination-BfmCRgHJ.js";
13
- import { t as f } from "./menu-4EfdXXaY.js";
14
- import { r as ne } from "./text-BXZOSAHk.js";
15
- import { t as p } from "./truncated-xRd8D8kf.js";
16
- import { t as re } from "./tone-CF_XXfiq.js";
17
- import { n as ie, r as ae, t as oe } from "./selects-text-kRMTsm4s.js";
18
- import { t as se } from "./use-scroll-margin-LcRbT78-.js";
19
- import { a as ce } from "./context-B2nNL7Im.js";
20
- import { t as m } from "./formatters-Be5AdLB2.js";
21
- import { t as le } from "./use-scroll-fade-BwpKEWY0.js";
22
- import { r as ue } from "./status-C3kBsFx5.js";
23
- import { t as h } from "./avatar-CXhUuE1G.js";
24
- import { r as g } from "./tooltip-D8DF9Pe6.js";
25
- import { t as _ } from "./use-hydrating-Dth8POSk.js";
26
- import { t as v } from "./use-utc-while-hydrating-PP48Tcfz.js";
27
- import { forwardRef as de, useLayoutEffect as y, useMemo as fe, useRef as b, useState as x } from "react";
28
- import { Fragment as pe, jsx as S, jsxs as C } from "react/jsx-runtime";
29
- import { useVirtualizer as me } from "@tanstack/react-virtual";
30
- import { flexRender as he, getCoreRowModel as ge, getSortedRowModel as _e, useReactTable as ve } from "@tanstack/react-table";
31
- // src/hooks/use-sticky-top.ts
32
- var w = /(auto|scroll|hidden|overlay)/;
33
- function ye(e) {
34
- for (let t = e.parentElement; t; t = t.parentElement) {
35
- let e = getComputedStyle(t);
36
- if (w.test(e.overflowY) || w.test(e.overflowX)) return t;
37
- }
38
- return null;
39
- }
40
- function be(e) {
41
- let [t, n] = x(0);
42
- return y(() => {
43
- let t = e.current, r = t && ye(t);
44
- if (!r) return;
45
- let i = () => n(-(Number.parseFloat(getComputedStyle(r).paddingTop) || 0));
46
- return i(), window.addEventListener("resize", i), () => window.removeEventListener("resize", i);
47
- }, [e]), t;
48
- }
49
- // src/components/data-table/time-columns.ts
50
- var T = /* @__PURE__ */ new WeakSet(), xe = { density: {
51
- compact: { classes: "h-36 coarse:h-44" },
52
- default: { classes: "h-40 coarse:h-44" },
53
- comfortable: { classes: "h-48" }
54
- } }, Se = { density: "default" }, Ce = {
55
- compact: 36,
56
- default: 40,
57
- comfortable: 48
58
- };
59
- function we(e, t, n = 48) {
60
- if (!t) return {
61
- hidden: [],
62
- tight: !1,
63
- overflow: !1
64
- };
65
- let r = [...e].sort((e, t) => e.priority - t.priority), i = n, a = /* @__PURE__ */ new Set();
66
- for (let e of r) i += e.size, (i <= t || e.priority <= 1 || e.fixed) && a.add(e.id);
67
- let o = e.filter((e) => a.has(e.id)), s = o.reduce((e, t) => e + t.size, n), c = o.reduce((e, t) => e + (t.grow ? Me(t) : t.size), 0);
68
- if (c > t && o.some((e) => e.grow)) {
69
- let e = o[o.length - 1];
70
- for (let n of [...o].reverse()) {
71
- if (c <= t) break;
72
- n.grow || n.fixed || n === e || (a.delete(n.id), c -= n.size);
73
- }
74
- }
75
- return {
76
- hidden: e.filter((e) => !a.has(e.id)).map((e) => e.id),
77
- tight: s > t,
78
- overflow: c > t
79
- };
80
- }
81
- function Te(e) {
82
- let t = getComputedStyle(e);
83
- return e.getBoundingClientRect().width - (parseFloat(t.paddingLeft) || 0) - (parseFloat(t.paddingRight) || 0);
84
- }
85
- function Ee(e) {
86
- let t = e.filter((e) => e.id && e.meta?.text && e.meta.align !== "end");
87
- return t.find((e) => !T.has(e)) ?? t[0] ?? e[0];
88
- }
89
- function De(e, t, n) {
90
- if (!e?.id) return;
91
- let r = e.meta?.text?.(t.original, n);
92
- if (r) return r;
93
- let i = t.getValue(e.id);
94
- return typeof i == "string" && i ? i : void 0;
95
- }
96
- var Oe = "a[href], button, input, select, textarea, [tabindex], [contenteditable=true]", ke = "input:not([type=checkbox]):not([type=radio]), textarea, select, [contenteditable=true]";
97
- function Ae(e) {
98
- return [...e.querySelectorAll(Oe)].filter((e) => !e.closest("[role=checkbox], [aria-hidden=true], [hidden]") && !e.matches(":disabled, input[type=checkbox]"));
99
- }
100
- function E(e) {
101
- return e ? [...e.querySelectorAll("[role=columnheader]")].flatMap((e) => {
102
- let t = e.querySelector("[role=checkbox], button") ?? e.querySelector("[role=separator]");
103
- return t ? [t] : [];
104
- }) : [];
105
- }
106
- function je(t, n) {
107
- return n ? e("controls-on-fill", t ? "bg-raised-pressed hover:raised-selected-hover active:raised-selected-hover" : "bg-fill-2 hover:bg-fill-3 active:bg-fill-3") : t ? "hover:bg-raised-hover active:bg-raised-pressed hover:controls-on-fill" : "hover:bg-fill-1 active:bg-fill-2 hover:controls-on-fill";
108
- }
109
- var Me = (e) => Math.min(e.size, e.minWidth ?? 136);
110
- function Ne({ data: ue, columns: h, getRowId: g, density: _ = "default", onRowClick: v, rowMenu: de, selectable: w, canSelectRow: ye, selection: T, onSelectionChange: Se, sorting: Ne, onSortingChange: Pe, manualSorting: Fe, loading: D, error: O, onRetry: k, empty: Ie, hasMore: Le, loadingMore: A, onLoadMore: j, stickyFirstColumn: Re, virtualizeAbove: ze = 50, className: Be, activeRowId: Ve, freshRowIds: He, onHiddenColumnsChange: Ue, "aria-label": We, "data-force-row": Ge }, M) {
111
- let N = n(), Ke = i(), qe = r(), P = ce(), Je = m(), [Ye, Xe] = x([]), [Ze, Qe] = x({}), [$e, et] = x(0), [tt, F] = x("body"), [nt, rt] = x(0), I = b(null), it = Ne ?? Ye, L = T ?? Ze, at = fe(() => w ? [{
112
- id: "__select",
113
- size: 44,
114
- enableSorting: !1,
115
- enableResizing: !1,
116
- meta: { priority: 1 },
117
- header: ({ table: e }) => /* @__PURE__ */ S(l, {
118
- "aria-label": P("dataTable.selectAllRows", "Select all rows"),
119
- checked: e.getIsAllRowsSelected(),
120
- indeterminate: e.getIsSomeRowsSelected() && !e.getIsAllRowsSelected(),
121
- onCheckedChange: (t) => e.toggleAllRowsSelected(t)
122
- }),
123
- cell: ({ row: e }) => {
124
- let t = De(Ee(h), e, Je);
125
- return /* @__PURE__ */ S(l, {
126
- "aria-label": t ? P("dataTable.selectNamed", "Select {name}", { name: t }) : P("dataTable.selectRow", "Select row"),
127
- checked: e.getIsSelected(),
128
- disabled: !e.getCanSelect(),
129
- onCheckedChange: (t) => e.toggleSelected(t)
130
- });
131
- }
132
- }, ...h] : h, [
133
- h,
134
- w,
135
- P,
136
- Je
137
- ]), R = ve({
138
- data: ue,
139
- columns: at,
140
- state: {
141
- sorting: it,
142
- rowSelection: L
143
- },
144
- onSortingChange: (e) => {
145
- let t = typeof e == "function" ? e(it) : e;
146
- I.current = null, Ne || Xe(t), Pe?.(t);
147
- },
148
- onRowSelectionChange: (e) => {
149
- let t = typeof e == "function" ? e(L) : e;
150
- T || Qe(t), Se?.(t);
151
- },
152
- getCoreRowModel: ge(),
153
- getSortedRowModel: _e(),
154
- manualSorting: !!Fe,
155
- enableRowSelection: w ? ye ? (e) => ye(e.original) : !0 : !1,
156
- columnResizeMode: "onChange",
157
- ...g ? { getRowId: (e) => g(e) } : {},
158
- defaultColumn: {
159
- size: 140,
160
- minSize: 64,
161
- maxSize: 640
162
- }
163
- }), z = b(null), B = b(null), V = b(null), ot = R.getVisibleLeafColumns(), st = ot.map((e) => ({
164
- id: e.id,
165
- size: e.getSize(),
166
- priority: e.columnDef.meta?.priority ?? 2,
167
- grow: !!e.columnDef.meta?.grow,
168
- minWidth: e.columnDef.meta?.minWidth,
169
- fixed: e.id === "__select"
170
- })), ct = JSON.stringify(st), lt = (e) => {
171
- let t = we(st, e, N ? 48 : 0);
172
- return `${t.tight ? "!" : ""}${t.overflow ? ">" : ""}|${t.hidden.join(" ")}`;
173
- }, ut = b(lt);
174
- ut.current = lt;
175
- let [dt, ft] = x("|");
176
- y(() => {
177
- let e = z.current;
178
- if (e) return t([e], ([e]) => ft(ut.current(Math.round(e?.contentRect.width ?? 0))));
179
- }, []), y(() => {
180
- z.current && ft(ut.current(Math.round(Te(z.current))));
181
- }, [ct]);
182
- let [pt = "", mt = ""] = dt.split("|"), ht = pt.includes("!"), gt = pt.includes(">"), H = fe(() => new Set(mt.split(" ").filter(Boolean)), [mt]), _t = b(Ue);
183
- _t.current = Ue, y(() => {
184
- _t.current?.([...H]);
185
- }, [H]);
186
- let U = ot.filter((e) => !H.has(e.id)), vt = (e) => e.columnDef.meta?.grow && ht ? Me({
187
- size: e.getSize(),
188
- minWidth: e.columnDef.meta.minWidth
189
- }) : e.getSize(), yt = {
190
- gridTemplateColumns: U.map((e) => e.columnDef.meta?.grow ? `minmax(${vt(e)}px, 1fr)` : `${e.getSize()}px`).join(" "),
191
- minWidth: U.reduce((e, t) => e + vt(t), 0)
192
- }, bt = gt && U.length > 1 && !U[U.length - 1]?.columnDef.meta?.grow, W = R.getRowModel().rows, xt = gt && W.length === 0 && !D && !O, G = W.length > ze, St = Math.max(Ce[_], ie() ? 44 : 0), K = () => ae(z.current), Ct = se(V, K, W.length, G), wt = be(B), Tt = me({
193
- count: W.length,
194
- getScrollElement: K,
195
- estimateSize: () => St,
196
- overscan: 16,
197
- enabled: G,
198
- scrollMargin: Ct,
199
- initialOffset: () => K()?.scrollTop ?? 0
200
- }), Et = (t) => e("flex min-w-0 items-center px-12", N && t === 0 && "pl-20", N && t === U.length - 1 && "pr-20"), q = N || Ke, Dt = (t, n = !1, r = !1) => (Re && t === 0 || bt && t === U.length - 1) && e("sticky z-10", n ? q ? "bg-raised" : "bg-panel" : r ? "bg-inherit" : q ? "bg-raised group-hover/tr:bg-raised-hover group-active/tr:bg-raised-pressed" : "bg-panel group-hover/tr:bg-fill-1 group-active/tr:bg-fill-2", t === 0 ? "left-0" : "right-0", !N && !n && "row-rule"), J = !!v || !!w, Y = J ? "gridcell" : "cell", Ot = J && W.length > 0 && tt === "body", kt = Math.min($e, Math.max(W.length - 1, 0)), At = (e) => {
201
- G && Tt.scrollToIndex(e, { align: "auto" });
202
- let t = () => V.current?.querySelector(`[data-row-index="${e}"]`), n = t();
203
- n ? n.focus() : requestAnimationFrame(() => t()?.focus());
204
- }, jt = (e) => {
205
- let t = Math.max(0, Math.min(W.length - 1, e));
206
- F("body"), et(t), At(t);
207
- }, X = b(null), Z = b(null), [Q, Mt] = x(null), [Nt, Pt] = x(""), Ft = () => new Set(W.map((e) => e.id)), It = () => {
208
- Z.current = {
209
- seen: Ft(),
210
- pressed: !0
211
- }, Pt(""), j?.();
212
- }, Lt = b(!1), Rt = b(() => {});
213
- Rt.current = () => {
214
- let e = Lt.current && !A;
215
- if (Lt.current = !!A, A) {
216
- Z.current = {
217
- seen: Ft(),
218
- pressed: Z.current?.pressed ?? !1
219
- }, Z.current.pressed || Pt("");
220
- return;
221
- }
222
- let t = Z.current;
223
- if (!t) return;
224
- let n = W.findIndex((e) => !t.seen.has(e.id));
225
- if (n < 0 && !e || (Z.current = null, n < 0)) return;
226
- let r = W.reduce((e, n) => t.seen.has(n.id) ? e : e + 1, 0);
227
- Pt(Le ? P("dataTable.moreRows", "{count, plural, one {# more row loaded} other {# more rows loaded}}", { count: r }) : P("dataTable.moreRowsAll", "{count, plural, one {# more row loaded; all rows shown} other {# more rows loaded; all rows shown}}", { count: r }));
228
- let i = document.activeElement, a = !!X.current?.contains(i);
229
- t.pressed && (a || !i || i === document.body) ? J ? jt(n) : Mt(W[n].id) : a && X.current?.scrollIntoView({ block: "nearest" });
230
- }, y(() => Rt.current(), [A, W]);
231
- let zt = b(() => {});
232
- zt.current = () => {
233
- let e = Q === null ? -1 : W.findIndex((e) => e.id === Q);
234
- e >= 0 && At(e);
235
- }, y(() => zt.current(), [Q]);
236
- let Bt = (e) => {
237
- let t = E(B.current), n = t[Math.max(0, Math.min(t.length - 1, e))];
238
- return n ? (F("head"), rt(t.indexOf(n)), n.focus(), !0) : !1;
239
- }, Vt = b(() => {});
240
- Vt.current = () => {
241
- let e = E(B.current), t = Math.min(nt, e.length - 1);
242
- for (let n of B.current?.querySelectorAll(Oe) ?? []) {
243
- let r = e.indexOf(n) === t && !Ot ? "0" : "-1";
244
- n.getAttribute("tabindex") !== r && n.setAttribute("tabindex", r);
245
- }
246
- }, y(() => Vt.current()), y(() => {
247
- let e = B.current;
248
- if (!e) return;
249
- let t = new MutationObserver(() => Vt.current());
250
- return t.observe(e, {
251
- subtree: !0,
252
- childList: !0,
253
- attributes: !0,
254
- attributeFilter: ["tabindex"]
255
- }), () => t.disconnect();
256
- }, []), y(() => {
257
- let e = V.current;
258
- if (!e || !J) return;
259
- let t = () => {
260
- for (let t of e.querySelectorAll("[data-row-index]")) for (let e of t.querySelectorAll(Oe)) e.getAttribute("tabindex") !== "-1" && e.setAttribute("tabindex", "-1");
261
- };
262
- t();
263
- let n = new MutationObserver(t);
264
- return n.observe(e, {
265
- subtree: !0,
266
- childList: !0,
267
- attributes: !0,
268
- attributeFilter: ["tabindex"]
269
- }), () => n.disconnect();
270
- }, [J]), le(V, "[role=row]");
271
- let Ht = (e, t) => {
272
- let n = e ? R.getColumn(e) : void 0;
273
- if (!n?.getCanResize()) return !1;
274
- let r = n.columnDef.minSize ?? 64, i = n.columnDef.maxSize ?? 640;
275
- return R.setColumnSizing((e) => ({
276
- ...e,
277
- [n.id]: Math.max(r, Math.min(i, n.getSize() + t))
278
- })), !0;
279
- }, Ut = (e) => {
280
- if (e.altKey || e.metaKey || e.ctrlKey) return;
281
- let t = E(B.current), n = t.indexOf(e.target);
282
- if (n < 0) return;
283
- let r = {
284
- ArrowLeft: -16,
285
- ArrowRight: 16
286
- }[e.key];
287
- if (e.shiftKey) {
288
- r !== void 0 && Ht(e.target.closest("[role=columnheader]")?.dataset.col, r) && e.preventDefault();
289
- return;
290
- }
291
- let i = {
292
- ArrowLeft: n - 1,
293
- ArrowRight: n + 1,
294
- Home: 0,
295
- End: t.length - 1
296
- }[e.key];
297
- i === void 0 ? e.key === "ArrowDown" && J && W.length && (e.preventDefault(), jt(kt)) : (e.preventDefault(), i >= 0 && i < t.length && Bt(i));
298
- }, Wt = () => Math.max(1, Math.floor((K()?.clientHeight ?? 400) / St) - 1), Gt = (e, t) => {
299
- let n = I.current ? W.findIndex((e) => e.id === I.current?.id) : -1;
300
- n < 0 && (I.current = {
301
- id: W[e].id,
302
- base: L
303
- });
304
- let r = n < 0 ? e : n, i = { ...I.current?.base };
305
- for (let e of W.slice(Math.min(r, t), Math.max(r, t) + 1)) e.getCanSelect() && (i[e.id] = !0);
306
- R.setRowSelection(i);
307
- }, Kt = (e, t, n) => {
308
- let r = e.currentTarget, i = e.target;
309
- if (i !== r) {
310
- if (e.altKey || e.metaKey || e.ctrlKey || i.closest(ke)) return;
311
- let t = Ae(r), n = t.indexOf(i);
312
- if (n < 0) return;
313
- if (e.key === "Escape" && !i.closest("[data-popup-open], [aria-expanded=true]")) e.preventDefault(), r.focus();
314
- else if (e.defaultPrevented) return;
315
- else e.key === "ArrowRight" && t[n + 1] ? (e.preventDefault(), t[n + 1]?.focus()) : e.key === "ArrowLeft" && (e.preventDefault(), (t[n - 1] ?? r).focus());
316
- return;
317
- }
318
- if (e.altKey) return;
319
- if (e.metaKey || e.ctrlKey) {
320
- e.key.toLowerCase() === "a" && w && !e.shiftKey && (e.preventDefault(), I.current = null, R.toggleAllRowsSelected(!0));
321
- return;
322
- }
323
- let a = {
324
- ArrowDown: n + 1,
325
- ArrowUp: n - 1,
326
- Home: 0,
327
- End: W.length - 1,
328
- PageDown: n + Wt(),
329
- PageUp: n - Wt()
330
- }[e.key];
331
- if (a !== void 0) {
332
- if (e.preventDefault(), e.key === "ArrowUp" && !e.shiftKey && a < 0 && Bt(nt)) return;
333
- let t = Math.max(0, Math.min(W.length - 1, a));
334
- e.shiftKey && w ? Gt(n, t) : I.current = null, jt(t);
335
- } else if (e.shiftKey) return;
336
- else if (e.key === "ArrowRight") {
337
- let t = Ae(r)[0];
338
- if (!t) return;
339
- e.preventDefault(), t.focus();
340
- } else e.key === "Enter" ? (e.preventDefault(), v?.(t.original)) : (e.key === " " || e.key === "x") && w ? (e.preventDefault(), I.current = null, t.getCanSelect() && t.toggleSelected()) : e.key === "Escape" && w && Object.keys(L).length && (e.preventDefault(), I.current = null, R.toggleAllRowsSelected(!1));
341
- }, qt = [
342
- at,
343
- U.map((e) => e.id).join(" "),
344
- N,
345
- bt,
346
- Re,
347
- q,
348
- Y
349
- ], $ = b(null);
350
- (!$.current || qt.some((e, t) => e !== $.current?.deps[t])) && ($.current = {
351
- deps: qt,
352
- rows: /* @__PURE__ */ new WeakMap()
353
- });
354
- let Jt = $.current.rows, Yt = (t, n, r) => {
355
- let i = t.id === Ve, a = !!w && t.getIsSelected(), o = i || a, s = `${i} ${a}`, c = Jt.get(t), l = c?.state === s ? c.cells : Xt(t, o);
356
- c?.state !== s && Jt.set(t, {
357
- state: s,
358
- cells: l
359
- });
360
- let u = /* @__PURE__ */ S("div", {
361
- role: "row",
362
- "aria-rowindex": n + 2,
363
- "aria-selected": w ? t.getIsSelected() : void 0,
364
- "aria-current": i || void 0,
365
- "data-active": i || void 0,
366
- "data-fresh": He?.has(t.id) || void 0,
367
- "data-row-index": n,
368
- ...Ge && n === 0 ? { "data-force": Ge } : {},
369
- tabIndex: J ? Ot && n === kt ? 0 : -1 : Q === t.id ? -1 : void 0,
370
- ...Q === t.id ? { onBlur: () => Mt(null) } : {},
371
- onFocus: (e) => {
372
- e.target === e.currentTarget && (F("body"), n !== $e && et(n));
373
- },
374
- onClick: (e) => {
375
- I.current = null, e.target.closest("button, a, [role=checkbox]") || oe(e.currentTarget) || v?.(t.original);
376
- },
377
- onKeyDown: (e) => Kt(e, t, n),
378
- style: {
379
- ...yt,
380
- ...r
381
- },
382
- className: e("group/tr grid w-full text-body text-fg transition-control focus-ring-inset", !N && "row-rule", xe.density[_].classes, v && "cursor-pointer", je(q, o), "data-fresh:animate-row-fresh", r?.transform !== void 0 && "[transition-property:background-color,color,box-shadow,opacity]", "forced-colors:data-active:outline-2 forced-colors:data-active:-outline-offset-2 forced-colors:data-active:outline-solid"),
383
- children: l
384
- });
385
- return de ? /* @__PURE__ */ C(f, { children: [/* @__PURE__ */ S(f.Trigger, { children: u }), /* @__PURE__ */ S(f.Content, { children: de(t.original) })] }, t.id) : /* @__PURE__ */ S("div", { children: u }, t.id);
386
- };
387
- function Xt(t, n) {
388
- return t.getVisibleCells().filter((e) => !H.has(e.column.id)).map((r, i) => {
389
- let a = r.column.columnDef.meta, o = he(r.column.columnDef.cell, r.getContext()), s = r.getValue(), c = a?.text ? a.text(t.original, Je) : typeof s == "string" ? s : void 0, l = a?.tone?.(t.original);
390
- return /* @__PURE__ */ S("div", {
391
- role: Y,
392
- className: e(Et(i), a?.align === "end" && "justify-end text-right tabular", a?.mono && "mono text-small", l && re[l], Dt(i, !1, n)),
393
- children: c !== void 0 && typeof o != "object" ? /* @__PURE__ */ S(ne, {
394
- truncate: !0,
395
- tone: l ?? "default",
396
- className: e("min-w-0", a?.mono && "text-small"),
397
- mono: !!a?.mono,
398
- children: c
399
- }) : r.column.id === "__select" ? /* @__PURE__ */ S("span", {
400
- className: "flex",
401
- children: o
402
- }) : /* @__PURE__ */ S(p, {
403
- className: e("min-w-0 cell-fit", a?.grow && "flex-1"),
404
- children: o
405
- })
406
- }, r.id);
407
- });
408
- }
409
- let Zt = (t, n) => {
410
- let r = t.column.columnDef.meta, i = t.column.getCanSort(), a = t.column.getCanResize(), l = t.column.getIsSorted(), u = he(t.column.columnDef.header, t.getContext()), d = /* @__PURE__ */ C(pe, { children: [i ? /* @__PURE__ */ C("button", {
411
- type: "button",
412
- onClick: t.column.getToggleSortingHandler(),
413
- className: e("relative -mx-6 inline-flex h-28 min-w-0 cursor-pointer items-center gap-4 rounded-pill px-6 text-caption font-medium transition-control focus-ring tap-target", q ? "hover:bg-raised-hover active:bg-raised-pressed" : "hover:bg-fill-1 active:bg-fill-2", "hover:text-fg", l ? "text-fg" : "text-fg-secondary", r?.align === "end" && "flex-row-reverse"),
414
- children: [/* @__PURE__ */ S(p, { children: u }), /* @__PURE__ */ S(c, {
415
- icon: l === "desc" ? o : s,
416
- size: "xs",
417
- className: e("shrink-0 transition-control", l ? "opacity-100" : "opacity-0 group-hover/th:opacity-60")
418
- })]
419
- }) : /* @__PURE__ */ S(p, {
420
- className: "text-caption font-medium text-fg-secondary",
421
- children: u
422
- }), a && /* @__PURE__ */ S("div", {
423
- role: "separator",
424
- "aria-orientation": "vertical",
425
- "aria-label": P("dataTable.resizeColumn", "Resize column"),
426
- "aria-valuenow": t.column.getSize(),
427
- "aria-valuemin": t.column.columnDef.minSize ?? 64,
428
- "aria-valuemax": t.column.columnDef.maxSize ?? 640,
429
- tabIndex: -1,
430
- onMouseDown: t.getResizeHandler(),
431
- onTouchStart: t.getResizeHandler(),
432
- onDoubleClick: () => t.column.resetSize(),
433
- className: "absolute inset-y-0 -right-8 z-10 w-16 cursor-col-resize after:absolute after:inset-y-8 after:right-8 after:w-1 after:bg-transparent after:transition-control group-hover/th:after:bg-line-strong coarse:after:bg-line focus-ring-inset"
434
- })] });
435
- return /* @__PURE__ */ S("div", {
436
- role: "columnheader",
437
- "data-col": t.column.id,
438
- "aria-sort": l === "asc" ? "ascending" : l === "desc" ? "descending" : i ? "none" : void 0,
439
- className: e("group/th relative", Et(n), r?.align === "end" && "justify-end", Dt(n, !0), Dt(n, !0) && "rule-b"),
440
- children: a ? /* @__PURE__ */ C(f, { children: [/* @__PURE__ */ S(f.Trigger, {
441
- className: e("flex min-w-0 flex-1 items-center self-stretch", r?.align === "end" && "justify-end"),
442
- children: d
443
- }), /* @__PURE__ */ C(f.Content, { children: [
444
- /* @__PURE__ */ S(f.Item, {
445
- onClick: () => Ht(t.column.id, 32),
446
- children: P("dataTable.widenColumn", "Widen column")
447
- }),
448
- /* @__PURE__ */ S(f.Item, {
449
- onClick: () => Ht(t.column.id, -32),
450
- children: P("dataTable.narrowColumn", "Narrow column")
451
- }),
452
- /* @__PURE__ */ S(f.Item, {
453
- onClick: () => t.column.resetSize(),
454
- children: P("dataTable.resetWidth", "Reset width")
455
- })
456
- ] })] }) : d
457
- }, t.id);
458
- };
459
- return /* @__PURE__ */ C("div", {
460
- ref: (e) => {
461
- z.current = e, typeof M == "function" ? M(e) : M && (M.current = e);
462
- },
463
- className: e("relative w-full min-w-0", !N && !qe && "px-24", Be),
464
- children: [
465
- /* @__PURE__ */ C("div", {
466
- role: J ? "grid" : "table",
467
- "aria-label": We,
468
- "aria-rowcount": W.length + +!xt,
469
- "aria-multiselectable": w || void 0,
470
- "aria-busy": D || void 0,
471
- className: e("w-full overflow-clip", N && "rounded-group bg-raised shadow-xs"),
472
- children: [/* @__PURE__ */ S("div", {
473
- ref: B,
474
- role: "rowgroup",
475
- hidden: xt,
476
- className: e("sticky top-0 z-20 overflow-hidden", q ? "bg-raised" : "bg-panel"),
477
- ...wt ? { style: { top: wt } } : {},
478
- onKeyDown: Ut,
479
- onFocus: (e) => {
480
- let t = E(B.current).indexOf(e.target);
481
- t < 0 || (I.current = null, F("head"), rt(t));
482
- },
483
- onScroll: (e) => {
484
- V.current && V.current.scrollLeft !== e.currentTarget.scrollLeft && (V.current.scrollLeft = e.currentTarget.scrollLeft);
485
- },
486
- children: R.getHeaderGroups().map((e) => /* @__PURE__ */ S("div", {
487
- role: "row",
488
- "aria-rowindex": 1,
489
- className: "grid h-36 rule-b",
490
- style: yt,
491
- children: e.headers.filter((e) => !H.has(e.column.id)).map(Zt)
492
- }, e.id))
493
- }), /* @__PURE__ */ S("div", {
494
- ref: V,
495
- role: "rowgroup",
496
- className: "overflow-x-auto overscroll-x-contain scrollbar-quiet scroll-fade-x",
497
- onScroll: (e) => {
498
- B.current && B.current.scrollLeft !== e.currentTarget.scrollLeft && (B.current.scrollLeft = e.currentTarget.scrollLeft);
499
- },
500
- children: O ? /* @__PURE__ */ S("div", {
501
- role: "row",
502
- children: /* @__PURE__ */ S("div", {
503
- role: Y,
504
- "aria-colspan": U.length,
505
- className: "block",
506
- children: /* @__PURE__ */ S("div", {
507
- role: "alert",
508
- children: /* @__PURE__ */ S(a, { children: /* @__PURE__ */ S(d, {
509
- size: "compact",
510
- title: P("dataTable.loadFailed", "Couldn't load these rows"),
511
- ...k ? {} : { description: P("dataTable.reloadToRetry", "Reload the page to try again.") },
512
- actions: k && /* @__PURE__ */ S(ee, {
513
- size: "sm",
514
- onClick: k,
515
- children: P("dataTable.tryAgain", "Try again")
516
- })
517
- }) })
518
- })
519
- })
520
- }) : D && W.length === 0 ? Array.from({ length: 8 }, (t, n) => /* @__PURE__ */ S("div", {
521
- role: "row",
522
- className: e("grid", xe.density[_].classes),
523
- style: yt,
524
- children: U.map((t, r) => /* @__PURE__ */ S("div", {
525
- role: Y,
526
- className: e(Et(r), t.columnDef.meta?.align === "end" && "justify-end"),
527
- children: /* @__PURE__ */ S(u, {
528
- shape: "line",
529
- style: { width: `${40 + (n * 7 + r * 13) % 45}%` }
530
- })
531
- }, t.id))
532
- }, n)) : W.length === 0 ? /* @__PURE__ */ S("div", {
533
- role: "row",
534
- children: /* @__PURE__ */ S("div", {
535
- role: Y,
536
- "aria-colspan": U.length,
537
- className: "block",
538
- children: /* @__PURE__ */ S(a, { children: Ie ?? /* @__PURE__ */ S(d, {
539
- size: "compact",
540
- title: P("dataTable.noRows", "No rows")
541
- }) })
542
- })
543
- }) : G ? /* @__PURE__ */ S("div", {
544
- className: "relative",
545
- style: { height: Tt.getTotalSize() },
546
- children: Tt.getVirtualItems().map((e) => Yt(W[e.index], e.index, {
547
- position: "absolute",
548
- top: 0,
549
- left: 0,
550
- transform: `translateY(${Math.round(e.start - Ct)}px)`
551
- }))
552
- }) : W.map((e, t) => Yt(e, t))
553
- })]
554
- }),
555
- /* @__PURE__ */ S(te, {
556
- ref: X,
557
- variant: "load-more",
558
- hasMore: !!Le,
559
- loading: A,
560
- ...j ? { onLoadMore: It } : {}
561
- }),
562
- j && /* @__PURE__ */ S("span", {
563
- role: "status",
564
- className: "sr-only",
565
- children: Nt
566
- })
567
- ]
568
- });
569
- }
570
- var Pe = /* @__PURE__ */ de(Ne);
571
- process.env.NODE_ENV !== "production" && (Pe.displayName = "DataTable");
572
- var Fe = Pe;
573
- // src/components/data-table/columns.tsx
574
- function D(e) {
575
- return T.add(e), e;
576
- }
577
- function O(e, t, n, r = {}, i) {
578
- return {
579
- id: e.id,
580
- header: () => e.header,
581
- accessorFn: t,
582
- cell: (e) => n(e.getValue(), e.row.original),
583
- ...e.size ? { size: e.size } : {},
584
- ...i ? { sortingFn: i } : {},
585
- meta: {
586
- ...e.priority === void 0 ? {} : { priority: e.priority },
587
- ...e.grow ? { grow: !0 } : {},
588
- ...e.minWidth === void 0 ? {} : { minWidth: e.minWidth },
589
- ...e.tone ? { tone: e.tone } : {},
590
- ...r
591
- }
592
- };
593
- }
594
- function k({ format: e }) {
595
- return e(m());
596
- }
597
- function Ie({ value: e }) {
598
- let t = ce(), { formatNumber: n, formatTokens: r } = m(), i = t("dataTable.tokenCount", "{count} tokens", { count: n(e) });
599
- return /* @__PURE__ */ S(g, {
600
- content: i,
601
- children: /* @__PURE__ */ C("span", { children: [/* @__PURE__ */ S("span", {
602
- "aria-hidden": !0,
603
- children: r(e)
604
- }), /* @__PURE__ */ S("span", {
605
- className: "sr-only",
606
- children: i
607
- })] })
608
- });
609
- }
610
- function Le({ value: e }) {
611
- let t = v(), { formatDate: n } = m();
612
- return /* @__PURE__ */ S("time", {
613
- dateTime: new Date(e).toISOString(),
614
- children: n(e, {
615
- time: !0,
616
- utc: t
617
- })
618
- });
619
- }
620
- function A({ value: e, now: t, live: n }) {
621
- let r = _(), i = v(), { formatDate: a, formatRelative: o } = m(), s = a(e, {
622
- time: !0,
623
- seconds: !0,
624
- utc: i
625
- }), c = n && r ? a(e, {
626
- time: !0,
627
- utc: i
628
- }) : o(e, t, { utc: i });
629
- return /* @__PURE__ */ S(g, {
630
- content: `${s} · ${a(e, {
631
- time: !0,
632
- utc: !0
633
- })}`,
634
- shape: "multiline",
635
- children: /* @__PURE__ */ C("span", {
636
- className: "text-fg-secondary",
637
- children: [/* @__PURE__ */ S("time", {
638
- dateTime: new Date(e).toISOString(),
639
- children: c
640
- }), /* @__PURE__ */ C("span", {
641
- className: "sr-only",
642
- children: [" ", s]
643
- })]
644
- })
645
- });
646
- }
647
- var j = {
648
- text: (e, t) => O(e, t, (e) => e, { text: (e) => t(e) }),
649
- mono: (e, t) => O(e, t, (e) => e, {
650
- mono: !0,
651
- text: (e) => t(e)
652
- }),
653
- number: (e, t) => O(e, t, (e) => /* @__PURE__ */ S(k, { format: (t) => t.formatNumber(e) }), { align: "end" }),
654
- money: (e, t, n = {}) => O(e, t, (e) => /* @__PURE__ */ S(k, { format: (t) => t.formatUSD(e, n.decimals === void 0 ? {} : { decimals: n.decimals }) }), {
655
- align: "end",
656
- mono: !1
657
- }, (e, t, n) => Number(e.getValue(n)) - Number(t.getValue(n))),
658
- tokens: (e, t) => O(e, t, (e) => /* @__PURE__ */ S(Ie, { value: e }), { align: "end" }),
659
- duration: (e, t) => O(e, t, (e) => /* @__PURE__ */ S(k, { format: (t) => t.formatDuration(e) }), { align: "end" }),
660
- date: (e, t) => D(O(e, t, (e) => /* @__PURE__ */ S(Le, { value: e }), { text: (e, n) => n.formatDate(t(e), { time: !0 }) }, "datetime")),
661
- relative: (e, t, n = {}) => D(O(e, t, (e) => /* @__PURE__ */ S(A, {
662
- value: e,
663
- now: n.now ?? Date.now(),
664
- live: n.now === void 0
665
- }), { text: (e, n) => n.formatDate(t(e), { time: !0 }) }, (e, t, n) => new Date(e.getValue(n)).getTime() - new Date(t.getValue(n)).getTime())),
666
- status: (e, t) => O(e, t, (e) => /* @__PURE__ */ S(ue, {
667
- tone: e.tone,
668
- children: e.label
669
- }), { text: void 0 }),
670
- avatar: (e, t) => O(e, t, (e) => /* @__PURE__ */ C("span", {
671
- className: "inline-flex min-w-0 items-center gap-8",
672
- children: [/* @__PURE__ */ S(h, {
673
- name: e.name,
674
- ...e.src ? { src: e.src } : {},
675
- size: 24,
676
- decorative: !0
677
- }), /* @__PURE__ */ S(p, { children: e.name })]
678
- }), { text: (e) => t(e).name }),
679
- custom: (e, t, n, r = {}) => O(e, t, n, r)
680
- };
681
- export { xe as i, Fe as n, Se as r, j as t };
682
-
683
- //# sourceMappingURL=data-table-BwZjiKKY.js.map