@logicplanes/kaeso-ui 0.6.0-rc.7 → 0.6.0
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/README.md +2 -0
- package/ai/component-guides.md +246 -49
- package/ai/component-registry.json +984 -172
- package/ai/component-registry.md +238 -44
- package/ai/icons.md +3 -3
- package/ai/tokens.md +23 -1
- package/dist/chunks/{app-frame-BQglMYqg.js → app-frame-R1TWy5PY.js} +6 -6
- package/dist/chunks/{app-frame-BQglMYqg.js.map → app-frame-R1TWy5PY.js.map} +1 -1
- package/dist/chunks/{avatar-BxurPxr-.js → avatar-DVrkoFEg.js} +3 -3
- package/dist/chunks/{avatar-BxurPxr-.js.map → avatar-DVrkoFEg.js.map} +1 -1
- package/dist/chunks/{badge-D0xd2NJD.js → badge-CTYrfTwc.js} +3 -3
- package/dist/chunks/{badge-D0xd2NJD.js.map → badge-CTYrfTwc.js.map} +1 -1
- package/dist/chunks/{banner-CDxD8uNX.js → banner-cJ89c-IR.js} +4 -4
- package/dist/chunks/{banner-CDxD8uNX.js.map → banner-cJ89c-IR.js.map} +1 -1
- package/dist/chunks/{button-CcXKlcXd.js → button-Da8b-8ub.js} +83 -72
- package/dist/chunks/button-Da8b-8ub.js.map +1 -0
- package/dist/chunks/{button-group-DuDLB-P0.js → button-group-BJxaz0sb.js} +5 -5
- package/dist/chunks/{button-group-DuDLB-P0.js.map → button-group-BJxaz0sb.js.map} +1 -1
- package/dist/chunks/{calendar-65N4gUmO.js → calendar-CA9mDtwp.js} +2 -2
- package/dist/chunks/{calendar-65N4gUmO.js.map → calendar-CA9mDtwp.js.map} +1 -1
- package/dist/chunks/{checkbox-BB_tV5ic.js → checkbox-CPL47-us.js} +4 -4
- package/dist/chunks/{checkbox-BB_tV5ic.js.map → checkbox-CPL47-us.js.map} +1 -1
- package/dist/chunks/{cn-BUMD6lNz.js → cn-CLpm819s.js} +4 -1
- package/dist/chunks/cn-CLpm819s.js.map +1 -0
- package/dist/chunks/{code-BBeW-m4W.js → code-CpqXogQK.js} +2 -2
- package/dist/chunks/{code-BBeW-m4W.js.map → code-CpqXogQK.js.map} +1 -1
- package/dist/chunks/code-block-7c_BOBlJ.js +247 -0
- package/dist/chunks/code-block-7c_BOBlJ.js.map +1 -0
- package/dist/chunks/{code-block-CbVLyIr-.js → code-block-BqFGa1-b.js} +82 -81
- package/dist/chunks/code-block-BqFGa1-b.js.map +1 -0
- package/dist/chunks/{collapsible-CiDUGq5u.js → collapsible-DmLyF8Ol.js} +3 -3
- package/dist/chunks/{collapsible-CiDUGq5u.js.map → collapsible-DmLyF8Ol.js.map} +1 -1
- package/dist/chunks/{combobox-BX703kW9.js → combobox-B-xciC2c.js} +6 -6
- package/dist/chunks/{combobox-BX703kW9.js.map → combobox-B-xciC2c.js.map} +1 -1
- package/dist/chunks/{command-list-BLVmk0z6.js → command-list-GQ3y8on6.js} +4 -4
- package/dist/chunks/{command-list-BLVmk0z6.js.map → command-list-GQ3y8on6.js.map} +1 -1
- package/dist/chunks/{command-palette-s_qW_RRa.js → command-palette-DEJDRW31.js} +5 -5
- package/dist/chunks/{command-palette-s_qW_RRa.js.map → command-palette-DEJDRW31.js.map} +1 -1
- package/dist/chunks/{copy-button-CK-ddxCg.js → copy-button-B67MEIu2.js} +6 -5
- package/dist/chunks/copy-button-B67MEIu2.js.map +1 -0
- package/dist/chunks/core-CQUQdd7y.js +414 -0
- package/dist/chunks/core-CQUQdd7y.js.map +1 -0
- package/dist/chunks/dashboard-NqG9Wgga.js +132 -0
- package/dist/chunks/dashboard-NqG9Wgga.js.map +1 -0
- package/dist/chunks/data-table-ByhxIgY2.js +625 -0
- package/dist/chunks/data-table-ByhxIgY2.js.map +1 -0
- package/dist/chunks/{date-picker-DGM5bXxD.js → date-picker-BmLb22jd.js} +8 -8
- package/dist/chunks/{date-picker-DGM5bXxD.js.map → date-picker-BmLb22jd.js.map} +1 -1
- package/dist/chunks/{date-popup-C2FLIETP.js → date-popup-7ZzVxhY1.js} +4 -4
- package/dist/chunks/{date-popup-C2FLIETP.js.map → date-popup-7ZzVxhY1.js.map} +1 -1
- package/dist/chunks/{de-aLc0-E5B.js → de-V_lN_KKk.js} +40 -4
- package/dist/chunks/de-V_lN_KKk.js.map +1 -0
- package/dist/chunks/delta-BCIXqi3O.js +36 -0
- package/dist/chunks/delta-BCIXqi3O.js.map +1 -0
- package/dist/chunks/{dialog-DhT0sDr6.js → dialog-C3CMOFxU.js} +4 -4
- package/dist/chunks/{dialog-DhT0sDr6.js.map → dialog-C3CMOFxU.js.map} +1 -1
- package/dist/chunks/{disclosure-DDSekEH6.js → disclosure-DhMvGSll.js} +2 -2
- package/dist/chunks/{disclosure-DDSekEH6.js.map → disclosure-DhMvGSll.js.map} +1 -1
- package/dist/chunks/{display-options-CRZO-ODl.js → display-options-BTFqLSJX.js} +9 -9
- package/dist/chunks/{display-options-CRZO-ODl.js.map → display-options-BTFqLSJX.js.map} +1 -1
- package/dist/chunks/{domain-aTOiqhIX.js → domain-DtP6QrOA.js} +9 -9
- package/dist/chunks/{domain-aTOiqhIX.js.map → domain-DtP6QrOA.js.map} +1 -1
- package/dist/chunks/{empty-DWXE3-2p.js → empty-BSAHpS5Q.js} +2 -2
- package/dist/chunks/{empty-DWXE3-2p.js.map → empty-BSAHpS5Q.js.map} +1 -1
- package/dist/chunks/{field-CRbWDIsH.js → field-ng87P1GV.js} +2 -2
- package/dist/chunks/{field-CRbWDIsH.js.map → field-ng87P1GV.js.map} +1 -1
- package/dist/chunks/{figure-C2WlBeYZ.js → figure-_uZS1Y52.js} +3 -3
- package/dist/chunks/{figure-C2WlBeYZ.js.map → figure-_uZS1Y52.js.map} +1 -1
- package/dist/chunks/{filter-chip-hGC4Okb0.js → filter-chip-CQO2lHeZ.js} +6 -6
- package/dist/chunks/{filter-chip-hGC4Okb0.js.map → filter-chip-CQO2lHeZ.js.map} +1 -1
- package/dist/chunks/{filter-row-BcBy7gxN.js → filter-row-Bs2lFT67.js} +2 -2
- package/dist/chunks/{filter-row-BcBy7gxN.js.map → filter-row-Bs2lFT67.js.map} +1 -1
- package/dist/chunks/{flow-T4mRzmsP.js → flow-BGFXfXgJ.js} +3 -3
- package/dist/chunks/{flow-T4mRzmsP.js.map → flow-BGFXfXgJ.js.map} +1 -1
- package/dist/chunks/{heading-Dua_i106.js → heading-wBU2QK4s.js} +2 -2
- package/dist/chunks/{heading-Dua_i106.js.map → heading-wBU2QK4s.js.map} +1 -1
- package/dist/chunks/{icon-DI6L-F9F.js → icon-CPiYZMTw.js} +2 -2
- package/dist/chunks/{icon-DI6L-F9F.js.map → icon-CPiYZMTw.js.map} +1 -1
- package/dist/chunks/icon-lgMMe3zk.js +108 -0
- package/dist/chunks/icon-lgMMe3zk.js.map +1 -0
- package/dist/chunks/identity-DCghs4Wp.js +872 -0
- package/dist/chunks/identity-DCghs4Wp.js.map +1 -0
- package/dist/chunks/{input-DHrCmxvX.js → input-QQR4KS9D.js} +5 -5
- package/dist/chunks/{input-DHrCmxvX.js.map → input-QQR4KS9D.js.map} +1 -1
- package/dist/chunks/{input-group-6LrjOci-.js → input-group-A2mru3OM.js} +4 -4
- package/dist/chunks/{input-group-6LrjOci-.js.map → input-group-A2mru3OM.js.map} +1 -1
- package/dist/chunks/{input-Ia8Mqd8q.js → input-iSaRkw-V.js} +5 -5
- package/dist/chunks/{input-Ia8Mqd8q.js.map → input-iSaRkw-V.js.map} +1 -1
- package/dist/chunks/{iso-field-CKN-M0PC.js → iso-field-D2CISQaB.js} +2 -2
- package/dist/chunks/{iso-field-CKN-M0PC.js.map → iso-field-D2CISQaB.js.map} +1 -1
- package/dist/chunks/{json-view-B6NjVdYp.js → json-view-DeHSFq-2.js} +9 -12
- package/dist/chunks/json-view-DeHSFq-2.js.map +1 -0
- package/dist/chunks/{kaeso-CE3QS6Xl.js → kaeso-Bs1aLSTp.js} +128 -124
- package/dist/chunks/kaeso-Bs1aLSTp.js.map +1 -0
- package/dist/chunks/kaeso-theme-BIgOZi41.js +299 -0
- package/dist/chunks/kaeso-theme-BIgOZi41.js.map +1 -0
- package/dist/chunks/{kbd-CFkkPtOm.js → kbd-xC3k90CH.js} +2 -2
- package/dist/chunks/{kbd-CFkkPtOm.js.map → kbd-xC3k90CH.js.map} +1 -1
- package/dist/chunks/{key-value-BsnQl9_-.js → key-value-DKW2q0zt.js} +4 -4
- package/dist/chunks/{key-value-BsnQl9_-.js.map → key-value-DKW2q0zt.js.map} +1 -1
- package/dist/chunks/{link-jtnw0XQV.js → link-CWYlF_dE.js} +3 -3
- package/dist/chunks/{link-jtnw0XQV.js.map → link-CWYlF_dE.js.map} +1 -1
- package/dist/chunks/{list-Ch4Y7IZk.js → list-CT7yIoA5.js} +9 -9
- package/dist/chunks/{list-Ch4Y7IZk.js.map → list-CT7yIoA5.js.map} +1 -1
- package/dist/chunks/{loader-2Tsz3V9j.js → loader-D27YO1c3.js} +3 -3
- package/dist/chunks/{loader-2Tsz3V9j.js.map → loader-D27YO1c3.js.map} +1 -1
- package/dist/chunks/{loader-C9qbRLAi.js → loader-DtZd9btk.js} +2 -2
- package/dist/chunks/{loader-C9qbRLAi.js.map → loader-DtZd9btk.js.map} +1 -1
- package/dist/chunks/{logo-DlxX9yDU.js → logo-DTqTs3vV.js} +3 -3
- package/dist/chunks/{logo-DlxX9yDU.js.map → logo-DTqTs3vV.js.map} +1 -1
- package/dist/chunks/markdown-BlIl3LuV.js +325 -0
- package/dist/chunks/markdown-BlIl3LuV.js.map +1 -0
- package/dist/chunks/{menu-DxmOaBVN.js → menu-D3tUjkCM.js} +4 -4
- package/dist/chunks/{menu-DxmOaBVN.js.map → menu-D3tUjkCM.js.map} +1 -1
- package/dist/chunks/{meter-CJqtlPjV.js → meter-wcH0LXva.js} +4 -4
- package/dist/chunks/{meter-CJqtlPjV.js.map → meter-wcH0LXva.js.map} +1 -1
- package/dist/chunks/{nav-sheet-DwAJdFCD.js → nav-sheet-CteQQuMz.js} +3 -3
- package/dist/chunks/{nav-sheet-DwAJdFCD.js.map → nav-sheet-CteQQuMz.js.map} +1 -1
- package/dist/chunks/{nav-wordmark-3Bvc2UI6.js → nav-wordmark-DR4Glswt.js} +2 -2
- package/dist/chunks/{nav-wordmark-3Bvc2UI6.js.map → nav-wordmark-DR4Glswt.js.map} +1 -1
- package/dist/chunks/{page-header-DIZCC9oT.js → page-header-JWk6TQNN.js} +5 -5
- package/dist/chunks/{page-header-DIZCC9oT.js.map → page-header-JWk6TQNN.js.map} +1 -1
- package/dist/chunks/{pagination-DFxZ2d3u.js → pagination-BT-lQc45.js} +3 -3
- package/dist/chunks/{pagination-DFxZ2d3u.js.map → pagination-BT-lQc45.js.map} +1 -1
- package/dist/chunks/{picker-popover-tBL7TLJC.js → picker-popover-Bb-2Amjw.js} +8 -7
- package/dist/chunks/{picker-popover-tBL7TLJC.js.map → picker-popover-Bb-2Amjw.js.map} +1 -1
- package/dist/chunks/{popover-DRvCfHVs.js → popover-CAoo5c59.js} +2 -2
- package/dist/chunks/{popover-DRvCfHVs.js.map → popover-CAoo5c59.js.map} +1 -1
- package/dist/chunks/provider-marks-BVbDRIv-.js +19 -0
- package/dist/chunks/provider-marks-BVbDRIv-.js.map +1 -0
- package/dist/chunks/{qr-code-HlCtD0aP.js → qr-code-DOsFDNiz.js} +2 -2
- package/dist/chunks/{qr-code-HlCtD0aP.js.map → qr-code-DOsFDNiz.js.map} +1 -1
- package/dist/chunks/{radio-BNZqKDn4.js → radio-DfOB6J3Z.js} +3 -3
- package/dist/chunks/{radio-BNZqKDn4.js.map → radio-DfOB6J3Z.js.map} +1 -1
- package/dist/chunks/{range-popup-H1040MdD.js → range-popup-iBru5bpM.js} +7 -7
- package/dist/chunks/{range-popup-H1040MdD.js.map → range-popup-iBru5bpM.js.map} +1 -1
- package/dist/chunks/{reasoning-frame-BuhiGUBq.js → reasoning-frame-DBIq2SMT.js} +3 -3
- package/dist/chunks/{reasoning-frame-BuhiGUBq.js.map → reasoning-frame-DBIq2SMT.js.map} +1 -1
- package/dist/chunks/{release-art-BeseUxSj.js → release-art-D7Iq6Qhv.js} +25 -25
- package/dist/chunks/release-art-D7Iq6Qhv.js.map +1 -0
- package/dist/chunks/{rights-QyZEMemh.js → rights-DDGgi823.js} +10 -10
- package/dist/chunks/{rights-QyZEMemh.js.map → rights-DDGgi823.js.map} +1 -1
- package/dist/chunks/rolling-number-ea1iiycC.js +41 -0
- package/dist/chunks/rolling-number-ea1iiycC.js.map +1 -0
- package/dist/chunks/{scroll-area-BvxoHcHS.js → scroll-area-D-ykAChX.js} +2 -2
- package/dist/chunks/{scroll-area-BvxoHcHS.js.map → scroll-area-D-ykAChX.js.map} +1 -1
- package/dist/chunks/{section-Dd5vmuR1.js → section-BmR6_Wts.js} +3 -3
- package/dist/chunks/{section-Dd5vmuR1.js.map → section-BmR6_Wts.js.map} +1 -1
- package/dist/chunks/{segmented-Clv2P1AB.js → segmented-BJJHHn0N.js} +17 -67
- package/dist/chunks/segmented-BJJHHn0N.js.map +1 -0
- package/dist/chunks/{select-DU6O_iW6.js → select-Ch4u5oIg.js} +4 -4
- package/dist/chunks/{select-DU6O_iW6.js.map → select-Ch4u5oIg.js.map} +1 -1
- package/dist/chunks/{separator-DMXz46Ge.js → separator-B2CT4qia.js} +2 -2
- package/dist/chunks/{separator-DMXz46Ge.js.map → separator-B2CT4qia.js.map} +1 -1
- package/dist/chunks/{settings-CWvZ9h4g.js → settings-BnheJGYB.js} +3 -3
- package/dist/chunks/{settings-CWvZ9h4g.js.map → settings-BnheJGYB.js.map} +1 -1
- package/dist/chunks/{sheet-DrxdaMjN.js → sheet-K6qa1kRf.js} +3 -3
- package/dist/chunks/{sheet-DrxdaMjN.js.map → sheet-K6qa1kRf.js.map} +1 -1
- package/dist/chunks/shiki-CRJpi_Hd.js +99 -0
- package/dist/chunks/shiki-CRJpi_Hd.js.map +1 -0
- package/dist/chunks/{sidebar-ZDmAFOVM.js → sidebar-D7eSzz33.js} +8 -8
- package/dist/chunks/{sidebar-ZDmAFOVM.js.map → sidebar-D7eSzz33.js.map} +1 -1
- package/dist/chunks/{sidebar-menu-Iq_ADCGg.js → sidebar-menu-f5NMgTdE.js} +2 -2
- package/dist/chunks/{sidebar-menu-Iq_ADCGg.js.map → sidebar-menu-f5NMgTdE.js.map} +1 -1
- package/dist/chunks/{skeleton-E7yXpAaT.js → skeleton-Bx-vRJdy.js} +2 -2
- package/dist/chunks/{skeleton-E7yXpAaT.js.map → skeleton-Bx-vRJdy.js.map} +1 -1
- package/dist/chunks/{slider-DoJfRjX1.js → slider-BuEZfzNB.js} +2 -2
- package/dist/chunks/{slider-DoJfRjX1.js.map → slider-BuEZfzNB.js.map} +1 -1
- package/dist/chunks/{stat-7VFJ8QW-.js → stat-gR4hFqO8.js} +68 -81
- package/dist/chunks/stat-gR4hFqO8.js.map +1 -0
- package/dist/chunks/{status-BvzxKVpT.js → status-CejTEkqR.js} +3 -3
- package/dist/chunks/{status-BvzxKVpT.js.map → status-CejTEkqR.js.map} +1 -1
- package/dist/chunks/{swap-text-BgdoVD3v.js → swap-text-CxWcVD0a.js} +2 -2
- package/dist/chunks/{swap-text-BgdoVD3v.js.map → swap-text-CxWcVD0a.js.map} +1 -1
- package/dist/chunks/swap-value-DMEInk8V.js +30 -0
- package/dist/chunks/swap-value-DMEInk8V.js.map +1 -0
- package/dist/chunks/{switch-lxwwqvbG.js → switch-CklvBjKu.js} +4 -4
- package/dist/chunks/{switch-lxwwqvbG.js.map → switch-CklvBjKu.js.map} +1 -1
- package/dist/chunks/{table-6rmKwlCw.js → table-BTUUwlXD.js} +2 -2
- package/dist/chunks/{table-6rmKwlCw.js.map → table-BTUUwlXD.js.map} +1 -1
- package/dist/chunks/{tabs-BZj11L5c.js → tabs-D0I6Jkd4.js} +3 -3
- package/dist/chunks/{tabs-BZj11L5c.js.map → tabs-D0I6Jkd4.js.map} +1 -1
- package/dist/chunks/{tag-Bnc0j1jP.js → tag-BGvgGsvr.js} +4 -4
- package/dist/chunks/{tag-Bnc0j1jP.js.map → tag-BGvgGsvr.js.map} +1 -1
- package/dist/chunks/{text-D_rqwSaG.js → text-ChUk0Z46.js} +3 -3
- package/dist/chunks/{text-D_rqwSaG.js.map → text-ChUk0Z46.js.map} +1 -1
- package/dist/chunks/{textarea-BzMbsYD7.js → textarea-Bmj2Yk79.js} +5 -5
- package/dist/chunks/{textarea-BzMbsYD7.js.map → textarea-Bmj2Yk79.js.map} +1 -1
- package/dist/chunks/{theme-image-DjI_Zymf.js → theme-image-Bk97CYp8.js} +4 -4
- package/dist/chunks/{theme-image-DjI_Zymf.js.map → theme-image-Bk97CYp8.js.map} +1 -1
- package/dist/chunks/{theme-menu-BLNYvmuB.js → theme-menu-DvtuCuuN.js} +3 -3
- package/dist/chunks/{theme-menu-BLNYvmuB.js.map → theme-menu-DvtuCuuN.js.map} +1 -1
- package/dist/chunks/{thumbnail-CRdk7mvC.js → thumbnail-D2hD8aEk.js} +2 -2
- package/dist/chunks/{thumbnail-CRdk7mvC.js.map → thumbnail-D2hD8aEk.js.map} +1 -1
- package/dist/chunks/thumbnail-DadL1nPU.js +71 -0
- package/dist/chunks/thumbnail-DadL1nPU.js.map +1 -0
- package/dist/chunks/{timeline-CWQdqBVv.js → timeline-BQm5Q-Ul.js} +3 -3
- package/dist/chunks/{timeline-CWQdqBVv.js.map → timeline-BQm5Q-Ul.js.map} +1 -1
- package/dist/chunks/timeseries-B_Z3nNn6.js +403 -0
- package/dist/chunks/timeseries-B_Z3nNn6.js.map +1 -0
- package/dist/chunks/{toast-C78w9ewo.js → toast-CSlvlu-r.js} +5 -5
- package/dist/chunks/{toast-C78w9ewo.js.map → toast-CSlvlu-r.js.map} +1 -1
- package/dist/chunks/{toc-BHf7IbFL.js → toc-Cu2QJL5A.js} +2 -2
- package/dist/chunks/{toc-BHf7IbFL.js.map → toc-Cu2QJL5A.js.map} +1 -1
- package/dist/chunks/{toolbar-CjykT3ZP.js → toolbar-DE-R3sjA.js} +2 -2
- package/dist/chunks/{toolbar-CjykT3ZP.js.map → toolbar-DE-R3sjA.js.map} +1 -1
- package/dist/chunks/tooltip-C8ehtFju.js +104 -0
- package/dist/chunks/tooltip-C8ehtFju.js.map +1 -0
- package/dist/chunks/{tooltip-F3l2S3Ad.js → tooltip-SZvkUaq9.js} +4 -4
- package/dist/chunks/{tooltip-F3l2S3Ad.js.map → tooltip-SZvkUaq9.js.map} +1 -1
- package/dist/chunks/{tooltip-root-Co-dVnZj.js → tooltip-root-CrLuOT4j.js} +4 -4
- package/dist/chunks/{tooltip-root-Co-dVnZj.js.map → tooltip-root-CrLuOT4j.js.map} +1 -1
- package/dist/chunks/{truncated-CzAJxfAD.js → truncated-C0A4AU-U.js} +3 -3
- package/dist/chunks/{truncated-CzAJxfAD.js.map → truncated-C0A4AU-U.js.map} +1 -1
- package/dist/chunks/use-indicator-C1ovED2B.js +57 -0
- package/dist/chunks/use-indicator-C1ovED2B.js.map +1 -0
- package/dist/chunks/{visually-hidden-UprFAwfn.js → visually-hidden-CLTH1HKD.js} +2 -2
- package/dist/chunks/{visually-hidden-UprFAwfn.js.map → visually-hidden-CLTH1HKD.js.map} +1 -1
- package/dist/chunks/{zh-CN-RCSVKiQh.js → zh-CN-Dv7n5mAr.js} +40 -4
- package/dist/chunks/zh-CN-Dv7n5mAr.js.map +1 -0
- package/dist/components/app-frame.js +1 -1
- package/dist/components/avatar.js +1 -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 +20 -19
- package/dist/components/charts/bar.js.map +1 -1
- package/dist/components/charts/donut.js +16 -15
- package/dist/components/charts/donut.js.map +1 -1
- package/dist/components/charts/heatmap.js +3 -2
- package/dist/components/charts/heatmap.js.map +1 -1
- package/dist/components/charts/sankey.js +11 -10
- package/dist/components/charts/sankey.js.map +1 -1
- package/dist/components/charts/sparkline.js +114 -42
- package/dist/components/charts/sparkline.js.map +1 -1
- package/dist/components/charts/timeseries.js +1 -1
- package/dist/components/charts.js +3 -3
- package/dist/components/checkbox.js +1 -1
- package/dist/components/code-block.js +5 -4
- 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/legend.js +43 -0
- package/dist/components/dashboard/legend.js.map +1 -0
- package/dist/components/dashboard/metric-tabs.js +140 -0
- package/dist/components/dashboard/metric-tabs.js.map +1 -0
- package/dist/components/dashboard/model-card.js +82 -0
- package/dist/components/dashboard/model-card.js.map +1 -0
- package/dist/components/dashboard/rank-list.js +107 -0
- package/dist/components/dashboard/rank-list.js.map +1 -0
- package/dist/components/dashboard.js +7 -0
- 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 +4 -4
- package/dist/components/flow.js +1 -1
- package/dist/components/heading.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/input.js +3 -3
- package/dist/components/kaeso/conversation.js +37 -8
- package/dist/components/kaeso/conversation.js.map +1 -1
- package/dist/components/kaeso/identity.js +1 -1
- package/dist/components/kaeso/moments.js +5 -5
- package/dist/components/kaeso/moments.js.map +1 -1
- package/dist/components/kaeso/rights.js +1 -1
- package/dist/components/kaeso/usage.js +17 -16
- 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 +2 -2
- package/dist/components/logo.js +1 -1
- package/dist/components/markdown.js +2 -2
- package/dist/components/menu.js +1 -1
- 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 +911 -545
- 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 +4 -1
- 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 +3 -1
- 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/i18n-provider.js +1 -1
- package/dist/index.js +112 -102
- package/dist/kaeso.css +97 -10
- package/dist/styles.css +1 -1
- package/dist/types/components/button/button.d.ts +1 -0
- package/dist/types/components/button/docs.d.ts +1 -0
- package/dist/types/components/charts/core.d.ts +3 -27
- package/dist/types/components/charts/docs.d.ts +4 -0
- package/dist/types/components/charts/sparkline.d.ts +4 -0
- package/dist/types/components/charts/timeseries.d.ts +2 -0
- package/dist/types/components/charts/tooltip.d.ts +28 -0
- package/dist/types/components/code-block/highlighter.d.ts +9 -18
- package/dist/types/components/code-block/index.d.ts +1 -1
- package/dist/types/components/code-block/kaeso-theme.d.ts +74 -8
- package/dist/types/components/code-block/shiki.d.ts +18 -0
- package/dist/types/components/code-block/tones.d.ts +64 -0
- package/dist/types/components/copy-button/copy-button.d.ts +4 -0
- package/dist/types/components/dashboard/dashboard.d.ts +61 -0
- package/dist/types/components/dashboard/docs.d.ts +92 -0
- package/dist/types/components/dashboard/index.d.ts +6 -0
- package/dist/types/components/dashboard/legend.d.ts +11 -0
- package/dist/types/components/dashboard/metric-tabs.d.ts +22 -0
- package/dist/types/components/dashboard/model-card.d.ts +23 -0
- package/dist/types/components/dashboard/rank-list.d.ts +21 -0
- package/dist/types/components/dashboard/swap-value.d.ts +7 -0
- package/dist/types/components/field/field.d.ts +1 -1
- package/dist/types/components/kaeso/conversation.d.ts +8 -0
- package/dist/types/components/kaeso/docs.d.ts +3 -0
- package/dist/types/components/kaeso/identity.d.ts +3 -0
- package/dist/types/components/kaeso/provider-picker.d.ts +4 -1
- package/dist/types/components/markdown/index.d.ts +1 -1
- package/dist/types/components/markdown/markdown.d.ts +9 -2
- package/dist/types/components/playground/attachments.d.ts +32 -0
- package/dist/types/components/playground/compare-grid.d.ts +1 -0
- package/dist/types/components/playground/composer.d.ts +8 -2
- package/dist/types/components/playground/docs.d.ts +36 -10
- package/dist/types/components/playground/index.d.ts +5 -3
- package/dist/types/components/playground/media-response.d.ts +46 -0
- package/dist/types/components/playground/parameter-panel.d.ts +17 -0
- package/dist/types/components/playground/response-metrics.d.ts +3 -3
- package/dist/types/components/playground/response-view.d.ts +2 -0
- package/dist/types/components/release-art/docs.d.ts +1 -0
- package/dist/types/components/release-art/release-art.d.ts +1 -0
- package/dist/types/components/stat/delta.d.ts +28 -0
- package/dist/types/components/stat/docs.d.ts +13 -0
- package/dist/types/components/stat/index.d.ts +4 -0
- package/dist/types/components/stat/rolling-number.d.ts +7 -0
- package/dist/types/components/stat/stat.d.ts +1 -1
- package/dist/types/components/thumbnail/docs.d.ts +11 -0
- package/dist/types/components/thumbnail/index.d.ts +2 -0
- package/dist/types/components/thumbnail/media-view.d.ts +33 -0
- package/dist/types/hooks/use-sticky-top.d.ts +2 -0
- package/dist/types/icons/groups.d.ts +2 -2
- package/dist/types/icons/vocabulary.d.ts +30 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/provider-marks.d.ts +11 -0
- package/dist/utils.js +7 -6
- package/foundations/color.md +24 -2
- package/foundations/motion.md +1 -0
- package/package.json +2 -2
- package/dist/chunks/button-CcXKlcXd.js.map +0 -1
- package/dist/chunks/cn-BUMD6lNz.js.map +0 -1
- package/dist/chunks/code-block-8rW57rUV.js +0 -345
- package/dist/chunks/code-block-8rW57rUV.js.map +0 -1
- package/dist/chunks/code-block-CbVLyIr-.js.map +0 -1
- package/dist/chunks/copy-button-CK-ddxCg.js.map +0 -1
- package/dist/chunks/core-nqsBmktJ.js +0 -496
- package/dist/chunks/core-nqsBmktJ.js.map +0 -1
- package/dist/chunks/data-table-FQlJ_Ae4.js +0 -605
- package/dist/chunks/data-table-FQlJ_Ae4.js.map +0 -1
- package/dist/chunks/de-aLc0-E5B.js.map +0 -1
- package/dist/chunks/icon-CPNoEw5s.js +0 -102
- package/dist/chunks/icon-CPNoEw5s.js.map +0 -1
- package/dist/chunks/identity-CpM7nAZ3.js +0 -494
- package/dist/chunks/identity-CpM7nAZ3.js.map +0 -1
- package/dist/chunks/json-view-B6NjVdYp.js.map +0 -1
- package/dist/chunks/kaeso-CE3QS6Xl.js.map +0 -1
- package/dist/chunks/markdown-8YRbGHeS.js +0 -338
- package/dist/chunks/markdown-8YRbGHeS.js.map +0 -1
- package/dist/chunks/release-art-BeseUxSj.js.map +0 -1
- package/dist/chunks/segmented-Clv2P1AB.js.map +0 -1
- package/dist/chunks/stat-7VFJ8QW-.js.map +0 -1
- package/dist/chunks/timeseries-Cj50XALJ.js +0 -381
- package/dist/chunks/timeseries-Cj50XALJ.js.map +0 -1
- package/dist/chunks/zh-CN-RCSVKiQh.js.map +0 -1
- package/dist/types/components/playground/prompt-suggestions.d.ts +0 -24
|
@@ -1,605 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { t as e } from "./cn-BUMD6lNz.js";
|
|
3
|
-
import { a as t, i as n, o as r } from "./inset-BUzyXLK4.js";
|
|
4
|
-
import { i } from "./context-BELWW79w.js";
|
|
5
|
-
import { formatDate as a, formatDuration as o, formatNumber as s, formatRelative as c, formatTokens as l, formatUSD as u } from "../format.js";
|
|
6
|
-
import { t as d } from "./icon-DI6L-F9F.js";
|
|
7
|
-
import { r as f } from "./tooltip-F3l2S3Ad.js";
|
|
8
|
-
import { t as p } from "./observe-resize-DhxhmoyB.js";
|
|
9
|
-
import { r as m } from "./text-D_rqwSaG.js";
|
|
10
|
-
import { n as ee } from "./button-CcXKlcXd.js";
|
|
11
|
-
import { n as te } from "./checkbox-BB_tV5ic.js";
|
|
12
|
-
import { t as h } from "./menu-DxmOaBVN.js";
|
|
13
|
-
import { r as ne } from "./skeleton-E7yXpAaT.js";
|
|
14
|
-
import { r as re } from "./pagination-DFxZ2d3u.js";
|
|
15
|
-
import { t as ie } from "./empty-DWXE3-2p.js";
|
|
16
|
-
import { t as ae } from "./use-scroll-fade-uc8mWSDX.js";
|
|
17
|
-
import { t as oe } from "./tone-CWpsHPb6.js";
|
|
18
|
-
import { t as g } from "./truncated-CzAJxfAD.js";
|
|
19
|
-
import { r as _ } from "./status-BvzxKVpT.js";
|
|
20
|
-
import { t as v } from "./avatar-BxurPxr-.js";
|
|
21
|
-
import { n as se, r as ce, t as le } from "./selects-text-R1lZHLKm.js";
|
|
22
|
-
import { t as ue } from "./use-scroll-margin-atRtf0v_.js";
|
|
23
|
-
import { forwardRef as de, useLayoutEffect as y, useMemo as fe, useRef as b, useState as x } from "react";
|
|
24
|
-
import { Fragment as pe, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
25
|
-
import { ArrowDown01Icon as me, ArrowUp01Icon as he } from "@hugeicons/core-free-icons";
|
|
26
|
-
import { useVirtualizer as ge } from "@tanstack/react-virtual";
|
|
27
|
-
import { flexRender as _e, getCoreRowModel as ve, getSortedRowModel as ye, useReactTable as be } from "@tanstack/react-table";
|
|
28
|
-
//#region src/components/data-table/time-columns.ts
|
|
29
|
-
var w = /* @__PURE__ */ new WeakSet(), T = { density: {
|
|
30
|
-
compact: { classes: "h-36 coarse:h-44" },
|
|
31
|
-
default: { classes: "h-40 coarse:h-44" },
|
|
32
|
-
comfortable: { classes: "h-48" }
|
|
33
|
-
} }, xe = { density: "default" }, Se = {
|
|
34
|
-
compact: 36,
|
|
35
|
-
default: 40,
|
|
36
|
-
comfortable: 48
|
|
37
|
-
};
|
|
38
|
-
function Ce(e, t, n = 48) {
|
|
39
|
-
if (!t) return {
|
|
40
|
-
hidden: [],
|
|
41
|
-
tight: !1,
|
|
42
|
-
overflow: !1
|
|
43
|
-
};
|
|
44
|
-
let r = [...e].sort((e, t) => e.priority - t.priority), i = n, a = /* @__PURE__ */ new Set();
|
|
45
|
-
for (let e of r) i += e.size, (i <= t || e.priority <= 1 || e.fixed) && a.add(e.id);
|
|
46
|
-
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 ? je(t) : t.size), 0);
|
|
47
|
-
if (c > t && o.some((e) => e.grow)) {
|
|
48
|
-
let e = o[o.length - 1];
|
|
49
|
-
for (let n of [...o].reverse()) {
|
|
50
|
-
if (c <= t) break;
|
|
51
|
-
n.grow || n.fixed || n === e || (a.delete(n.id), c -= n.size);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
hidden: e.filter((e) => !a.has(e.id)).map((e) => e.id),
|
|
56
|
-
tight: s > t,
|
|
57
|
-
overflow: c > t
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function we(e) {
|
|
61
|
-
let t = getComputedStyle(e);
|
|
62
|
-
return e.getBoundingClientRect().width - (parseFloat(t.paddingLeft) || 0) - (parseFloat(t.paddingRight) || 0);
|
|
63
|
-
}
|
|
64
|
-
function Te(e) {
|
|
65
|
-
let t = e.filter((e) => e.id && e.meta?.text && e.meta.align !== "end");
|
|
66
|
-
return t.find((e) => !w.has(e)) ?? t[0] ?? e[0];
|
|
67
|
-
}
|
|
68
|
-
function Ee(e, t) {
|
|
69
|
-
if (!e?.id) return;
|
|
70
|
-
let n = e.meta?.text?.(t.original);
|
|
71
|
-
if (n) return n;
|
|
72
|
-
let r = t.getValue(e.id);
|
|
73
|
-
return typeof r == "string" && r ? r : void 0;
|
|
74
|
-
}
|
|
75
|
-
var De = "a[href], button, input, select, textarea, [tabindex], [contenteditable=true]", Oe = "input:not([type=checkbox]):not([type=radio]), textarea, select, [contenteditable=true]";
|
|
76
|
-
function ke(e) {
|
|
77
|
-
return [...e.querySelectorAll(De)].filter((e) => !e.closest("[role=checkbox], [aria-hidden=true], [hidden]") && !e.matches(":disabled, input[type=checkbox]"));
|
|
78
|
-
}
|
|
79
|
-
function E(e) {
|
|
80
|
-
return e ? [...e.querySelectorAll("[role=columnheader]")].flatMap((e) => {
|
|
81
|
-
let t = e.querySelector("[role=checkbox], button") ?? e.querySelector("[role=separator]");
|
|
82
|
-
return t ? [t] : [];
|
|
83
|
-
}) : [];
|
|
84
|
-
}
|
|
85
|
-
function Ae(t, n) {
|
|
86
|
-
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";
|
|
87
|
-
}
|
|
88
|
-
var je = (e) => Math.min(e.size, e.minWidth ?? 136);
|
|
89
|
-
function Me({ data: a, columns: o, getRowId: s, density: c = "default", onRowClick: l, rowMenu: u, selectable: f, canSelectRow: _, selection: v, onSelectionChange: de, sorting: w, onSortingChange: xe, manualSorting: Me, loading: D, error: O, onRetry: k, empty: A, hasMore: Ne, loadingMore: Pe, onLoadMore: Fe, stickyFirstColumn: Ie, virtualizeAbove: Le = 100, className: Re, activeRowId: ze, freshRowIds: Be, onHiddenColumnsChange: Ve, "aria-label": He, "data-force-row": Ue }, j) {
|
|
90
|
-
let M = t(), We = r(), Ge = n(), N = i(), [Ke, qe] = x([]), [Je, Ye] = x({}), [Xe, Ze] = x(0), [Qe, P] = x("body"), [$e, et] = x(0), F = b(null), tt = w ?? Ke, I = v ?? Je, nt = fe(() => f ? [{
|
|
91
|
-
id: "__select",
|
|
92
|
-
size: 44,
|
|
93
|
-
enableSorting: !1,
|
|
94
|
-
enableResizing: !1,
|
|
95
|
-
meta: { priority: 1 },
|
|
96
|
-
header: ({ table: e }) => /* @__PURE__ */ S(te, {
|
|
97
|
-
"aria-label": N("dataTable.selectAllRows", "Select all rows"),
|
|
98
|
-
checked: e.getIsAllRowsSelected(),
|
|
99
|
-
indeterminate: e.getIsSomeRowsSelected() && !e.getIsAllRowsSelected(),
|
|
100
|
-
onCheckedChange: (t) => e.toggleAllRowsSelected(t)
|
|
101
|
-
}),
|
|
102
|
-
cell: ({ row: e }) => {
|
|
103
|
-
let t = Ee(Te(o), e);
|
|
104
|
-
return /* @__PURE__ */ S(te, {
|
|
105
|
-
"aria-label": t ? N("dataTable.selectNamed", "Select {name}", { name: t }) : N("dataTable.selectRow", "Select row"),
|
|
106
|
-
checked: e.getIsSelected(),
|
|
107
|
-
disabled: !e.getCanSelect(),
|
|
108
|
-
onCheckedChange: (t) => e.toggleSelected(t)
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}, ...o] : o, [
|
|
112
|
-
o,
|
|
113
|
-
f,
|
|
114
|
-
N
|
|
115
|
-
]), L = be({
|
|
116
|
-
data: a,
|
|
117
|
-
columns: nt,
|
|
118
|
-
state: {
|
|
119
|
-
sorting: tt,
|
|
120
|
-
rowSelection: I
|
|
121
|
-
},
|
|
122
|
-
onSortingChange: (e) => {
|
|
123
|
-
let t = typeof e == "function" ? e(tt) : e;
|
|
124
|
-
F.current = null, w || qe(t), xe?.(t);
|
|
125
|
-
},
|
|
126
|
-
onRowSelectionChange: (e) => {
|
|
127
|
-
let t = typeof e == "function" ? e(I) : e;
|
|
128
|
-
v || Ye(t), de?.(t);
|
|
129
|
-
},
|
|
130
|
-
getCoreRowModel: ve(),
|
|
131
|
-
getSortedRowModel: ye(),
|
|
132
|
-
manualSorting: !!Me,
|
|
133
|
-
enableRowSelection: f ? _ ? (e) => _(e.original) : !0 : !1,
|
|
134
|
-
columnResizeMode: "onChange",
|
|
135
|
-
...s ? { getRowId: (e) => s(e) } : {},
|
|
136
|
-
defaultColumn: {
|
|
137
|
-
size: 140,
|
|
138
|
-
minSize: 64,
|
|
139
|
-
maxSize: 640
|
|
140
|
-
}
|
|
141
|
-
}), R = b(null), z = b(null), B = b(null), rt = L.getVisibleLeafColumns(), it = rt.map((e) => ({
|
|
142
|
-
id: e.id,
|
|
143
|
-
size: e.getSize(),
|
|
144
|
-
priority: e.columnDef.meta?.priority ?? 2,
|
|
145
|
-
grow: !!e.columnDef.meta?.grow,
|
|
146
|
-
minWidth: e.columnDef.meta?.minWidth,
|
|
147
|
-
fixed: e.id === "__select"
|
|
148
|
-
})), at = JSON.stringify(it), ot = (e) => {
|
|
149
|
-
let t = Ce(it, e, M ? 48 : 0);
|
|
150
|
-
return `${t.tight ? "!" : ""}${t.overflow ? ">" : ""}|${t.hidden.join(" ")}`;
|
|
151
|
-
}, st = b(ot);
|
|
152
|
-
st.current = ot;
|
|
153
|
-
let [ct, lt] = x("|");
|
|
154
|
-
y(() => {
|
|
155
|
-
let e = R.current;
|
|
156
|
-
if (e) return p([e], ([e]) => lt(st.current(Math.round(e?.contentRect.width ?? 0))));
|
|
157
|
-
}, []), y(() => {
|
|
158
|
-
R.current && lt(st.current(Math.round(we(R.current))));
|
|
159
|
-
}, [at]);
|
|
160
|
-
let [ut = "", dt = ""] = ct.split("|"), ft = ut.includes("!"), pt = ut.includes(">"), V = fe(() => new Set(dt.split(" ").filter(Boolean)), [dt]), mt = b(Ve);
|
|
161
|
-
mt.current = Ve, y(() => {
|
|
162
|
-
mt.current?.([...V]);
|
|
163
|
-
}, [V]);
|
|
164
|
-
let H = rt.filter((e) => !V.has(e.id)), ht = (e) => e.columnDef.meta?.grow && ft ? je({
|
|
165
|
-
size: e.getSize(),
|
|
166
|
-
minWidth: e.columnDef.meta.minWidth
|
|
167
|
-
}) : e.getSize(), U = {
|
|
168
|
-
gridTemplateColumns: H.map((e) => e.columnDef.meta?.grow ? `minmax(${ht(e)}px, 1fr)` : `${e.getSize()}px`).join(" "),
|
|
169
|
-
minWidth: H.reduce((e, t) => e + ht(t), 0)
|
|
170
|
-
}, gt = pt && H.length > 1 && !H[H.length - 1]?.columnDef.meta?.grow, W = L.getRowModel().rows, _t = pt && W.length === 0 && !D && !O, G = W.length > Le, vt = Math.max(Se[c], se() ? 44 : 0), K = () => ce(R.current), yt = ue(B, K, W.length, G), q = ge({
|
|
171
|
-
count: W.length,
|
|
172
|
-
getScrollElement: K,
|
|
173
|
-
estimateSize: () => vt,
|
|
174
|
-
overscan: 16,
|
|
175
|
-
enabled: G,
|
|
176
|
-
scrollMargin: yt
|
|
177
|
-
}), J = (t) => e("flex min-w-0 items-center px-12", M && t === 0 && "pl-20", M && t === H.length - 1 && "pr-20"), Y = M || We, X = (t, n = !1, r = !1) => (Ie && t === 0 || gt && t === H.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", !M && !n && (t === 0 ? "rounded-l-item" : "rounded-r-item")), Z = !!l || !!f, Q = Z ? "gridcell" : "cell", bt = Z && W.length > 0 && Qe === "body", xt = Math.min(Xe, Math.max(W.length - 1, 0)), St = (e) => {
|
|
178
|
-
let t = Math.max(0, Math.min(W.length - 1, e));
|
|
179
|
-
P("body"), Ze(t), G && q.scrollToIndex(t, { align: "auto" });
|
|
180
|
-
let n = () => B.current?.querySelector(`[data-row-index="${t}"]`), r = n();
|
|
181
|
-
r ? r.focus() : requestAnimationFrame(() => n()?.focus());
|
|
182
|
-
}, Ct = (e) => {
|
|
183
|
-
let t = E(z.current), n = t[Math.max(0, Math.min(t.length - 1, e))];
|
|
184
|
-
return n ? (P("head"), et(t.indexOf(n)), n.focus(), !0) : !1;
|
|
185
|
-
}, wt = b(() => {});
|
|
186
|
-
wt.current = () => {
|
|
187
|
-
let e = E(z.current), t = Math.min($e, e.length - 1);
|
|
188
|
-
for (let n of z.current?.querySelectorAll(De) ?? []) {
|
|
189
|
-
let r = e.indexOf(n) === t && !bt ? "0" : "-1";
|
|
190
|
-
n.getAttribute("tabindex") !== r && n.setAttribute("tabindex", r);
|
|
191
|
-
}
|
|
192
|
-
}, y(() => wt.current()), y(() => {
|
|
193
|
-
let e = z.current;
|
|
194
|
-
if (!e) return;
|
|
195
|
-
let t = new MutationObserver(() => wt.current());
|
|
196
|
-
return t.observe(e, {
|
|
197
|
-
subtree: !0,
|
|
198
|
-
childList: !0,
|
|
199
|
-
attributes: !0,
|
|
200
|
-
attributeFilter: ["tabindex"]
|
|
201
|
-
}), () => t.disconnect();
|
|
202
|
-
}, []), y(() => {
|
|
203
|
-
let e = B.current;
|
|
204
|
-
if (!e || !Z) return;
|
|
205
|
-
let t = () => {
|
|
206
|
-
for (let t of e.querySelectorAll("[data-row-index]")) for (let e of t.querySelectorAll(De)) e.getAttribute("tabindex") !== "-1" && e.setAttribute("tabindex", "-1");
|
|
207
|
-
};
|
|
208
|
-
t();
|
|
209
|
-
let n = new MutationObserver(t);
|
|
210
|
-
return n.observe(e, {
|
|
211
|
-
subtree: !0,
|
|
212
|
-
childList: !0,
|
|
213
|
-
attributes: !0,
|
|
214
|
-
attributeFilter: ["tabindex"]
|
|
215
|
-
}), () => n.disconnect();
|
|
216
|
-
}, [Z]), ae(B, "[role=row]");
|
|
217
|
-
let Tt = (e, t) => {
|
|
218
|
-
let n = e ? L.getColumn(e) : void 0;
|
|
219
|
-
if (!n?.getCanResize()) return !1;
|
|
220
|
-
let r = n.columnDef.minSize ?? 64, i = n.columnDef.maxSize ?? 640;
|
|
221
|
-
return L.setColumnSizing((e) => ({
|
|
222
|
-
...e,
|
|
223
|
-
[n.id]: Math.max(r, Math.min(i, n.getSize() + t))
|
|
224
|
-
})), !0;
|
|
225
|
-
}, Et = (e) => {
|
|
226
|
-
if (e.altKey || e.metaKey || e.ctrlKey) return;
|
|
227
|
-
let t = E(z.current), n = t.indexOf(e.target);
|
|
228
|
-
if (n < 0) return;
|
|
229
|
-
let r = {
|
|
230
|
-
ArrowLeft: -16,
|
|
231
|
-
ArrowRight: 16
|
|
232
|
-
}[e.key];
|
|
233
|
-
if (e.shiftKey) {
|
|
234
|
-
r !== void 0 && Tt(e.target.closest("[role=columnheader]")?.dataset.col, r) && e.preventDefault();
|
|
235
|
-
return;
|
|
236
|
-
}
|
|
237
|
-
let i = {
|
|
238
|
-
ArrowLeft: n - 1,
|
|
239
|
-
ArrowRight: n + 1,
|
|
240
|
-
Home: 0,
|
|
241
|
-
End: t.length - 1
|
|
242
|
-
}[e.key];
|
|
243
|
-
i === void 0 ? e.key === "ArrowDown" && Z && W.length && (e.preventDefault(), St(xt)) : (e.preventDefault(), i >= 0 && i < t.length && Ct(i));
|
|
244
|
-
}, Dt = () => Math.max(1, Math.floor((K()?.clientHeight ?? 400) / vt) - 1), Ot = (e, t) => {
|
|
245
|
-
let n = F.current ? W.findIndex((e) => e.id === F.current?.id) : -1;
|
|
246
|
-
n < 0 && (F.current = {
|
|
247
|
-
id: W[e].id,
|
|
248
|
-
base: I
|
|
249
|
-
});
|
|
250
|
-
let r = n < 0 ? e : n, i = { ...F.current?.base };
|
|
251
|
-
for (let e of W.slice(Math.min(r, t), Math.max(r, t) + 1)) e.getCanSelect() && (i[e.id] = !0);
|
|
252
|
-
L.setRowSelection(i);
|
|
253
|
-
}, kt = (e, t, n) => {
|
|
254
|
-
let r = e.currentTarget, i = e.target;
|
|
255
|
-
if (i !== r) {
|
|
256
|
-
if (e.altKey || e.metaKey || e.ctrlKey || i.closest(Oe)) return;
|
|
257
|
-
let t = ke(r), n = t.indexOf(i);
|
|
258
|
-
if (n < 0) return;
|
|
259
|
-
if (e.key === "Escape" && !i.closest("[data-popup-open], [aria-expanded=true]")) e.preventDefault(), r.focus();
|
|
260
|
-
else if (e.defaultPrevented) return;
|
|
261
|
-
else e.key === "ArrowRight" && t[n + 1] ? (e.preventDefault(), t[n + 1]?.focus()) : e.key === "ArrowLeft" && (e.preventDefault(), (t[n - 1] ?? r).focus());
|
|
262
|
-
return;
|
|
263
|
-
}
|
|
264
|
-
if (e.altKey) return;
|
|
265
|
-
if (e.metaKey || e.ctrlKey) {
|
|
266
|
-
e.key.toLowerCase() === "a" && f && !e.shiftKey && (e.preventDefault(), F.current = null, L.toggleAllRowsSelected(!0));
|
|
267
|
-
return;
|
|
268
|
-
}
|
|
269
|
-
let a = {
|
|
270
|
-
ArrowDown: n + 1,
|
|
271
|
-
ArrowUp: n - 1,
|
|
272
|
-
Home: 0,
|
|
273
|
-
End: W.length - 1,
|
|
274
|
-
PageDown: n + Dt(),
|
|
275
|
-
PageUp: n - Dt()
|
|
276
|
-
}[e.key];
|
|
277
|
-
if (a !== void 0) {
|
|
278
|
-
if (e.preventDefault(), e.key === "ArrowUp" && !e.shiftKey && a < 0 && Ct($e)) return;
|
|
279
|
-
let t = Math.max(0, Math.min(W.length - 1, a));
|
|
280
|
-
e.shiftKey && f ? Ot(n, t) : F.current = null, St(t);
|
|
281
|
-
} else if (e.shiftKey) return;
|
|
282
|
-
else if (e.key === "ArrowRight") {
|
|
283
|
-
let t = ke(r)[0];
|
|
284
|
-
if (!t) return;
|
|
285
|
-
e.preventDefault(), t.focus();
|
|
286
|
-
} else e.key === "Enter" ? (e.preventDefault(), l?.(t.original)) : (e.key === " " || e.key === "x") && f ? (e.preventDefault(), F.current = null, t.getCanSelect() && t.toggleSelected()) : e.key === "Escape" && f && Object.keys(I).length && (e.preventDefault(), F.current = null, L.toggleAllRowsSelected(!1));
|
|
287
|
-
}, At = [
|
|
288
|
-
nt,
|
|
289
|
-
H.map((e) => e.id).join(" "),
|
|
290
|
-
M,
|
|
291
|
-
gt,
|
|
292
|
-
Ie,
|
|
293
|
-
Y,
|
|
294
|
-
Q
|
|
295
|
-
], $ = b(null);
|
|
296
|
-
(!$.current || At.some((e, t) => e !== $.current?.deps[t])) && ($.current = {
|
|
297
|
-
deps: At,
|
|
298
|
-
rows: /* @__PURE__ */ new WeakMap()
|
|
299
|
-
});
|
|
300
|
-
let jt = $.current.rows, Mt = (t, n, r) => {
|
|
301
|
-
let i = t.id === ze, a = !!f && t.getIsSelected(), o = i || a, s = `${i} ${a}`, d = jt.get(t), p = d?.state === s ? d.cells : Nt(t, o);
|
|
302
|
-
d?.state !== s && jt.set(t, {
|
|
303
|
-
state: s,
|
|
304
|
-
cells: p
|
|
305
|
-
});
|
|
306
|
-
let m = /* @__PURE__ */ S("div", {
|
|
307
|
-
role: "row",
|
|
308
|
-
"aria-rowindex": n + 2,
|
|
309
|
-
"aria-selected": f ? t.getIsSelected() : void 0,
|
|
310
|
-
"aria-current": i || void 0,
|
|
311
|
-
"data-active": i || void 0,
|
|
312
|
-
"data-fresh": Be?.has(t.id) || void 0,
|
|
313
|
-
"data-row-index": n,
|
|
314
|
-
...Ue && n === 0 ? { "data-force": Ue } : {},
|
|
315
|
-
tabIndex: Z ? bt && n === xt ? 0 : -1 : void 0,
|
|
316
|
-
onFocus: (e) => {
|
|
317
|
-
e.target === e.currentTarget && (P("body"), n !== Xe && Ze(n));
|
|
318
|
-
},
|
|
319
|
-
onClick: (e) => {
|
|
320
|
-
F.current = null, !(e.target.closest("button, a, [role=checkbox]") || le(e.currentTarget)) && l?.(t.original);
|
|
321
|
-
},
|
|
322
|
-
onKeyDown: (e) => kt(e, t, n),
|
|
323
|
-
style: {
|
|
324
|
-
...U,
|
|
325
|
-
...r
|
|
326
|
-
},
|
|
327
|
-
className: e("group/tr grid w-full text-body text-fg transition-control focus-ring-inset", !M && "rounded-item", T.density[c].classes, l && "cursor-pointer", Ae(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"),
|
|
328
|
-
children: p
|
|
329
|
-
});
|
|
330
|
-
return u ? /* @__PURE__ */ C(h, { children: [/* @__PURE__ */ S(h.Trigger, { children: m }), /* @__PURE__ */ S(h.Content, { children: u(t.original) })] }, t.id) : /* @__PURE__ */ S("div", { children: m }, t.id);
|
|
331
|
-
};
|
|
332
|
-
function Nt(t, n) {
|
|
333
|
-
return t.getVisibleCells().filter((e) => !V.has(e.column.id)).map((r, i) => {
|
|
334
|
-
let a = r.column.columnDef.meta, o = _e(r.column.columnDef.cell, r.getContext()), s = r.getValue(), c = a?.text ? a.text(t.original) : typeof s == "string" ? s : void 0, l = a?.tone?.(t.original);
|
|
335
|
-
return /* @__PURE__ */ S("div", {
|
|
336
|
-
role: Q,
|
|
337
|
-
className: e(J(i), a?.align === "end" && "justify-end text-right tabular", a?.mono && "mono text-small", l && oe[l], X(i, !1, n)),
|
|
338
|
-
children: c !== void 0 && typeof o != "object" ? /* @__PURE__ */ S(m, {
|
|
339
|
-
truncate: !0,
|
|
340
|
-
tone: l ?? "default",
|
|
341
|
-
className: e("min-w-0", a?.mono && "text-small"),
|
|
342
|
-
mono: !!a?.mono,
|
|
343
|
-
children: c
|
|
344
|
-
}) : r.column.id === "__select" ? /* @__PURE__ */ S("span", {
|
|
345
|
-
className: "flex",
|
|
346
|
-
children: o
|
|
347
|
-
}) : /* @__PURE__ */ S(g, {
|
|
348
|
-
className: e("min-w-0 cell-fit", a?.grow && "flex-1"),
|
|
349
|
-
children: o
|
|
350
|
-
})
|
|
351
|
-
}, r.id);
|
|
352
|
-
});
|
|
353
|
-
}
|
|
354
|
-
let Pt = (t, n) => {
|
|
355
|
-
let r = t.column.columnDef.meta, i = t.column.getCanSort(), a = t.column.getCanResize(), o = t.column.getIsSorted(), s = _e(t.column.columnDef.header, t.getContext()), c = /* @__PURE__ */ C(pe, { children: [i ? /* @__PURE__ */ C("button", {
|
|
356
|
-
type: "button",
|
|
357
|
-
onClick: t.column.getToggleSortingHandler(),
|
|
358
|
-
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", o ? "text-fg" : "text-fg-secondary", r?.align === "end" && "flex-row-reverse"),
|
|
359
|
-
children: [/* @__PURE__ */ S(g, { children: s }), /* @__PURE__ */ S(d, {
|
|
360
|
-
icon: o === "desc" ? me : he,
|
|
361
|
-
size: "xs",
|
|
362
|
-
className: e("shrink-0 transition-control", o ? "opacity-100" : "opacity-0 group-hover/th:opacity-60")
|
|
363
|
-
})]
|
|
364
|
-
}) : /* @__PURE__ */ S(g, {
|
|
365
|
-
className: "text-caption font-medium text-fg-secondary",
|
|
366
|
-
children: s
|
|
367
|
-
}), a && /* @__PURE__ */ S("div", {
|
|
368
|
-
role: "separator",
|
|
369
|
-
"aria-orientation": "vertical",
|
|
370
|
-
"aria-label": N("dataTable.resizeColumn", "Resize column"),
|
|
371
|
-
"aria-valuenow": t.column.getSize(),
|
|
372
|
-
"aria-valuemin": t.column.columnDef.minSize ?? 64,
|
|
373
|
-
"aria-valuemax": t.column.columnDef.maxSize ?? 640,
|
|
374
|
-
tabIndex: -1,
|
|
375
|
-
onMouseDown: t.getResizeHandler(),
|
|
376
|
-
onTouchStart: t.getResizeHandler(),
|
|
377
|
-
onDoubleClick: () => t.column.resetSize(),
|
|
378
|
-
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"
|
|
379
|
-
})] });
|
|
380
|
-
return /* @__PURE__ */ S("div", {
|
|
381
|
-
role: "columnheader",
|
|
382
|
-
"data-col": t.column.id,
|
|
383
|
-
"aria-sort": o === "asc" ? "ascending" : o === "desc" ? "descending" : i ? "none" : void 0,
|
|
384
|
-
className: e("group/th relative", J(n), r?.align === "end" && "justify-end", X(n, !0), X(n, !0) && "hairline-b-strong"),
|
|
385
|
-
children: a ? /* @__PURE__ */ C(h, { children: [/* @__PURE__ */ S(h.Trigger, {
|
|
386
|
-
className: e("flex min-w-0 flex-1 items-center self-stretch", r?.align === "end" && "justify-end"),
|
|
387
|
-
children: c
|
|
388
|
-
}), /* @__PURE__ */ C(h.Content, { children: [
|
|
389
|
-
/* @__PURE__ */ S(h.Item, {
|
|
390
|
-
onClick: () => Tt(t.column.id, 32),
|
|
391
|
-
children: N("dataTable.widenColumn", "Widen column")
|
|
392
|
-
}),
|
|
393
|
-
/* @__PURE__ */ S(h.Item, {
|
|
394
|
-
onClick: () => Tt(t.column.id, -32),
|
|
395
|
-
children: N("dataTable.narrowColumn", "Narrow column")
|
|
396
|
-
}),
|
|
397
|
-
/* @__PURE__ */ S(h.Item, {
|
|
398
|
-
onClick: () => t.column.resetSize(),
|
|
399
|
-
children: N("dataTable.resetWidth", "Reset width")
|
|
400
|
-
})
|
|
401
|
-
] })] }) : c
|
|
402
|
-
}, t.id);
|
|
403
|
-
};
|
|
404
|
-
return /* @__PURE__ */ C("div", {
|
|
405
|
-
ref: (e) => {
|
|
406
|
-
R.current = e, typeof j == "function" ? j(e) : j && (j.current = e);
|
|
407
|
-
},
|
|
408
|
-
className: e("relative w-full min-w-0", !M && !Ge && "px-24", Re),
|
|
409
|
-
children: [/* @__PURE__ */ C("div", {
|
|
410
|
-
role: Z ? "grid" : "table",
|
|
411
|
-
"aria-label": He,
|
|
412
|
-
"aria-rowcount": W.length + +!_t,
|
|
413
|
-
"aria-multiselectable": f || void 0,
|
|
414
|
-
"aria-busy": D || void 0,
|
|
415
|
-
className: e("w-full overflow-clip", M && "rounded-group bg-raised shadow-xs"),
|
|
416
|
-
children: [/* @__PURE__ */ S("div", {
|
|
417
|
-
ref: z,
|
|
418
|
-
role: "rowgroup",
|
|
419
|
-
hidden: _t,
|
|
420
|
-
className: e("sticky top-0 z-20 overflow-hidden", Y ? "bg-raised" : "bg-panel"),
|
|
421
|
-
onKeyDown: Et,
|
|
422
|
-
onFocus: (e) => {
|
|
423
|
-
let t = E(z.current).indexOf(e.target);
|
|
424
|
-
t < 0 || (F.current = null, P("head"), et(t));
|
|
425
|
-
},
|
|
426
|
-
onScroll: (e) => {
|
|
427
|
-
B.current && B.current.scrollLeft !== e.currentTarget.scrollLeft && (B.current.scrollLeft = e.currentTarget.scrollLeft);
|
|
428
|
-
},
|
|
429
|
-
children: L.getHeaderGroups().map((e) => /* @__PURE__ */ S("div", {
|
|
430
|
-
role: "row",
|
|
431
|
-
"aria-rowindex": 1,
|
|
432
|
-
className: "grid h-36 hairline-b-strong",
|
|
433
|
-
style: U,
|
|
434
|
-
children: e.headers.filter((e) => !V.has(e.column.id)).map(Pt)
|
|
435
|
-
}, e.id))
|
|
436
|
-
}), /* @__PURE__ */ S("div", {
|
|
437
|
-
ref: B,
|
|
438
|
-
role: "rowgroup",
|
|
439
|
-
className: "overflow-x-auto scrollbar-quiet scroll-fade-x",
|
|
440
|
-
onScroll: (e) => {
|
|
441
|
-
z.current && z.current.scrollLeft !== e.currentTarget.scrollLeft && (z.current.scrollLeft = e.currentTarget.scrollLeft);
|
|
442
|
-
},
|
|
443
|
-
children: O ? /* @__PURE__ */ S("div", {
|
|
444
|
-
role: "row",
|
|
445
|
-
children: /* @__PURE__ */ S("div", {
|
|
446
|
-
role: Q,
|
|
447
|
-
"aria-colspan": H.length,
|
|
448
|
-
className: "block",
|
|
449
|
-
children: /* @__PURE__ */ S("div", {
|
|
450
|
-
role: "alert",
|
|
451
|
-
children: /* @__PURE__ */ S(ie, {
|
|
452
|
-
size: "compact",
|
|
453
|
-
title: N("dataTable.loadFailed", "Couldn't load these rows"),
|
|
454
|
-
...k ? {} : { description: N("dataTable.reloadToRetry", "Reload the page to try again.") },
|
|
455
|
-
actions: k && /* @__PURE__ */ S(ee, {
|
|
456
|
-
size: "sm",
|
|
457
|
-
onClick: k,
|
|
458
|
-
children: N("dataTable.tryAgain", "Try again")
|
|
459
|
-
})
|
|
460
|
-
})
|
|
461
|
-
})
|
|
462
|
-
})
|
|
463
|
-
}) : D && W.length === 0 ? Array.from({ length: 8 }, (t, n) => /* @__PURE__ */ S("div", {
|
|
464
|
-
role: "row",
|
|
465
|
-
className: e("grid", T.density[c].classes),
|
|
466
|
-
style: U,
|
|
467
|
-
children: H.map((t, r) => /* @__PURE__ */ S("div", {
|
|
468
|
-
role: Q,
|
|
469
|
-
className: e(J(r), t.columnDef.meta?.align === "end" && "justify-end"),
|
|
470
|
-
children: /* @__PURE__ */ S(ne, {
|
|
471
|
-
shape: "line",
|
|
472
|
-
style: { width: `${40 + (n * 7 + r * 13) % 45}%` }
|
|
473
|
-
})
|
|
474
|
-
}, t.id))
|
|
475
|
-
}, n)) : W.length === 0 ? /* @__PURE__ */ S("div", {
|
|
476
|
-
role: "row",
|
|
477
|
-
children: /* @__PURE__ */ S("div", {
|
|
478
|
-
role: Q,
|
|
479
|
-
"aria-colspan": H.length,
|
|
480
|
-
className: "block",
|
|
481
|
-
children: A ?? /* @__PURE__ */ S(ie, {
|
|
482
|
-
size: "compact",
|
|
483
|
-
title: N("dataTable.noRows", "No rows")
|
|
484
|
-
})
|
|
485
|
-
})
|
|
486
|
-
}) : G ? /* @__PURE__ */ S("div", {
|
|
487
|
-
className: "relative",
|
|
488
|
-
style: { height: q.getTotalSize() },
|
|
489
|
-
children: q.getVirtualItems().map((e) => Mt(W[e.index], e.index, {
|
|
490
|
-
position: "absolute",
|
|
491
|
-
top: 0,
|
|
492
|
-
left: 0,
|
|
493
|
-
transform: `translateY(${Math.round(e.start - yt)}px)`
|
|
494
|
-
}))
|
|
495
|
-
}) : W.map((e, t) => Mt(e, t))
|
|
496
|
-
})]
|
|
497
|
-
}), /* @__PURE__ */ S(re, {
|
|
498
|
-
variant: "load-more",
|
|
499
|
-
hasMore: !!Ne,
|
|
500
|
-
loading: Pe,
|
|
501
|
-
onLoadMore: Fe
|
|
502
|
-
})]
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
var D = /* @__PURE__ */ de(Me);
|
|
506
|
-
process.env.NODE_ENV !== "production" && (D.displayName = "DataTable");
|
|
507
|
-
var O = D;
|
|
508
|
-
//#endregion
|
|
509
|
-
//#region src/components/data-table/columns.tsx
|
|
510
|
-
function k(e) {
|
|
511
|
-
return w.add(e), e;
|
|
512
|
-
}
|
|
513
|
-
function A(e, t, n, r = {}, i) {
|
|
514
|
-
return {
|
|
515
|
-
id: e.id,
|
|
516
|
-
header: () => e.header,
|
|
517
|
-
accessorFn: t,
|
|
518
|
-
cell: (e) => n(e.getValue(), e.row.original),
|
|
519
|
-
...e.size ? { size: e.size } : {},
|
|
520
|
-
...i ? { sortingFn: i } : {},
|
|
521
|
-
meta: {
|
|
522
|
-
...e.priority === void 0 ? {} : { priority: e.priority },
|
|
523
|
-
...e.grow ? { grow: !0 } : {},
|
|
524
|
-
...e.minWidth === void 0 ? {} : { minWidth: e.minWidth },
|
|
525
|
-
...e.tone ? { tone: e.tone } : {},
|
|
526
|
-
...r
|
|
527
|
-
}
|
|
528
|
-
};
|
|
529
|
-
}
|
|
530
|
-
function Ne({ value: e }) {
|
|
531
|
-
let t = i()("dataTable.tokenCount", "{count} tokens", { count: s(e) });
|
|
532
|
-
return /* @__PURE__ */ S(f, {
|
|
533
|
-
content: t,
|
|
534
|
-
children: /* @__PURE__ */ C("span", { children: [/* @__PURE__ */ S("span", {
|
|
535
|
-
"aria-hidden": !0,
|
|
536
|
-
children: l(e)
|
|
537
|
-
}), /* @__PURE__ */ S("span", {
|
|
538
|
-
className: "sr-only",
|
|
539
|
-
children: t
|
|
540
|
-
})] })
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
function Pe({ value: e, now: t }) {
|
|
544
|
-
let n = a(e, {
|
|
545
|
-
time: !0,
|
|
546
|
-
seconds: !0
|
|
547
|
-
});
|
|
548
|
-
return /* @__PURE__ */ S(f, {
|
|
549
|
-
content: `${n} · ${a(e, {
|
|
550
|
-
time: !0,
|
|
551
|
-
utc: !0
|
|
552
|
-
})}`,
|
|
553
|
-
shape: "multiline",
|
|
554
|
-
children: /* @__PURE__ */ C("span", {
|
|
555
|
-
className: "text-fg-secondary",
|
|
556
|
-
children: [/* @__PURE__ */ S("time", {
|
|
557
|
-
dateTime: new Date(e).toISOString(),
|
|
558
|
-
children: c(e, t)
|
|
559
|
-
}), /* @__PURE__ */ C("span", {
|
|
560
|
-
className: "sr-only",
|
|
561
|
-
children: [" ", n]
|
|
562
|
-
})]
|
|
563
|
-
})
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
var Fe = {
|
|
567
|
-
text: (e, t) => A(e, t, (e) => e, { text: (e) => t(e) }),
|
|
568
|
-
mono: (e, t) => A(e, t, (e) => e, {
|
|
569
|
-
mono: !0,
|
|
570
|
-
text: (e) => t(e)
|
|
571
|
-
}),
|
|
572
|
-
number: (e, t) => A(e, t, (e) => s(e), { align: "end" }),
|
|
573
|
-
money: (e, t, n = {}) => A(e, t, (e) => u(e, n.decimals === void 0 ? {} : { decimals: n.decimals }), {
|
|
574
|
-
align: "end",
|
|
575
|
-
mono: !1
|
|
576
|
-
}, (e, t, n) => Number(e.getValue(n)) - Number(t.getValue(n))),
|
|
577
|
-
tokens: (e, t) => A(e, t, (e) => /* @__PURE__ */ S(Ne, { value: e }), { align: "end" }),
|
|
578
|
-
duration: (e, t) => A(e, t, (e) => o(e), { align: "end" }),
|
|
579
|
-
date: (e, t) => k(A(e, t, (e) => /* @__PURE__ */ S("time", {
|
|
580
|
-
dateTime: new Date(e).toISOString(),
|
|
581
|
-
children: a(e, { time: !0 })
|
|
582
|
-
}), { text: (e) => a(t(e), { time: !0 }) }, "datetime")),
|
|
583
|
-
relative: (e, t, n = {}) => k(A(e, t, (e) => /* @__PURE__ */ S(Pe, {
|
|
584
|
-
value: e,
|
|
585
|
-
now: n.now ?? Date.now()
|
|
586
|
-
}), { text: (e) => a(t(e), { time: !0 }) }, (e, t, n) => new Date(e.getValue(n)).getTime() - new Date(t.getValue(n)).getTime())),
|
|
587
|
-
status: (e, t) => A(e, t, (e) => /* @__PURE__ */ S(_, {
|
|
588
|
-
tone: e.tone,
|
|
589
|
-
children: e.label
|
|
590
|
-
}), { text: void 0 }),
|
|
591
|
-
avatar: (e, t) => A(e, t, (e) => /* @__PURE__ */ C("span", {
|
|
592
|
-
className: "inline-flex min-w-0 items-center gap-8",
|
|
593
|
-
children: [/* @__PURE__ */ S(v, {
|
|
594
|
-
name: e.name,
|
|
595
|
-
...e.src ? { src: e.src } : {},
|
|
596
|
-
size: 24,
|
|
597
|
-
decorative: !0
|
|
598
|
-
}), /* @__PURE__ */ S(g, { children: e.name })]
|
|
599
|
-
}), { text: (e) => t(e).name }),
|
|
600
|
-
custom: (e, t, n, r = {}) => A(e, t, n, r)
|
|
601
|
-
};
|
|
602
|
-
//#endregion
|
|
603
|
-
export { T as i, O as n, xe as r, Fe as t };
|
|
604
|
-
|
|
605
|
-
//# sourceMappingURL=data-table-FQlJ_Ae4.js.map
|