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