@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
|
@@ -95,6 +95,7 @@ interface CommonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "chi
|
|
|
95
95
|
loading?: boolean | undefined;
|
|
96
96
|
disabledReason?: string | undefined;
|
|
97
97
|
href?: string | undefined;
|
|
98
|
+
download?: string | undefined;
|
|
98
99
|
target?: string | undefined;
|
|
99
100
|
rel?: string | undefined;
|
|
100
101
|
fullWidth?: boolean | undefined;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
3
|
import { tokenKindSeries } from "@logicplanes/kaeso-tokens";
|
|
4
|
+
import { ChartTooltip, Swatch, useSize, type TooltipRow } from "./tooltip.js";
|
|
5
|
+
export { ChartTooltip, Swatch, useSize };
|
|
6
|
+
export type { TooltipRow };
|
|
4
7
|
import { type UiText } from "../../i18n/context.js";
|
|
5
8
|
export declare function wholeTicks(ticks: number[], values: number[]): number[];
|
|
6
9
|
export declare const VIZ: readonly ["var(--k-viz-1)", "var(--k-viz-2)", "var(--k-viz-3)", "var(--k-viz-4)", "var(--k-viz-5)", "var(--k-viz-6)", "var(--k-viz-7)", "var(--k-viz-8)"];
|
|
@@ -13,10 +16,6 @@ export type TokenKind = keyof typeof tokenKindSeries;
|
|
|
13
16
|
export declare const tokenKindColor: (k: TokenKind, thin?: boolean) => "var(--k-viz-1)" | "var(--k-viz-2)" | "var(--k-viz-3)" | "var(--k-viz-4)" | "var(--k-viz-5)" | "var(--k-viz-6)" | "var(--k-viz-7)" | "var(--k-viz-8)" | "var(--k-viz-thin-1)" | "var(--k-viz-thin-2)" | "var(--k-viz-thin-3)" | "var(--k-viz-thin-4)" | "var(--k-viz-thin-5)" | "var(--k-viz-thin-6)" | "var(--k-viz-thin-7)" | "var(--k-viz-thin-8)" | "var(--k-viz-1-soft)";
|
|
14
17
|
export declare const TOKEN_KIND_ORDER: TokenKind[];
|
|
15
18
|
export declare function tokenKindLabel(kind: TokenKind, t?: UiText): string;
|
|
16
|
-
export declare function useSize<T extends HTMLElement>(): [(el: T | null) => void, {
|
|
17
|
-
width: number;
|
|
18
|
-
height: number;
|
|
19
|
-
}];
|
|
20
19
|
export declare function tweens(from: number[], to: number[]): boolean;
|
|
21
20
|
export declare function useTweened(values: number[], still?: boolean): number[];
|
|
22
21
|
export declare function useTweenedScale(values: number[], top: number, still?: boolean): {
|
|
@@ -51,12 +50,6 @@ export interface LegendItem {
|
|
|
51
50
|
color: string;
|
|
52
51
|
value?: ReactNode | undefined;
|
|
53
52
|
}
|
|
54
|
-
export interface SwatchProps {
|
|
55
|
-
color: string;
|
|
56
|
-
shape?: "square" | "line" | undefined;
|
|
57
|
-
off?: boolean | undefined;
|
|
58
|
-
}
|
|
59
|
-
export declare const Swatch: React.ForwardRefExoticComponent<SwatchProps & React.RefAttributes<HTMLSpanElement>>;
|
|
60
53
|
export declare const tickLabel: (format: (v: number) => string) => (v: number) => string;
|
|
61
54
|
export declare function readableTicks(scale: {
|
|
62
55
|
ticks: (count: number) => number[];
|
|
@@ -87,23 +80,6 @@ export interface LegendProps {
|
|
|
87
80
|
shape?: "square" | "line" | undefined;
|
|
88
81
|
}
|
|
89
82
|
export declare const Legend: React.ForwardRefExoticComponent<LegendProps & React.RefAttributes<HTMLUListElement>>;
|
|
90
|
-
export interface TooltipRow {
|
|
91
|
-
id: string;
|
|
92
|
-
label: ReactNode;
|
|
93
|
-
color: string;
|
|
94
|
-
value: ReactNode;
|
|
95
|
-
share?: ReactNode | undefined;
|
|
96
|
-
}
|
|
97
|
-
export interface ChartTooltipProps {
|
|
98
|
-
x: number;
|
|
99
|
-
xLeft?: number | undefined;
|
|
100
|
-
y: number;
|
|
101
|
-
width: number;
|
|
102
|
-
heading: ReactNode;
|
|
103
|
-
rows: TooltipRow[];
|
|
104
|
-
visible: boolean;
|
|
105
|
-
}
|
|
106
|
-
export declare const ChartTooltip: React.ForwardRefExoticComponent<ChartTooltipProps & React.RefAttributes<HTMLDivElement>>;
|
|
107
83
|
export declare const AXIS: {
|
|
108
84
|
grid: {
|
|
109
85
|
stroke: string;
|
|
@@ -13,6 +13,10 @@ export declare const Sparkline: import("react").ForwardRefExoticComponent<{
|
|
|
13
13
|
values: number[];
|
|
14
14
|
color?: string | undefined;
|
|
15
15
|
fluid?: boolean | undefined;
|
|
16
|
+
height?: number | undefined;
|
|
17
|
+
labels?: string[] | undefined;
|
|
18
|
+
seriesLabel?: string | undefined;
|
|
19
|
+
formatValue?: ((v: number) => string) | undefined;
|
|
16
20
|
"aria-label": string;
|
|
17
21
|
className?: string | undefined;
|
|
18
22
|
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -28,6 +28,8 @@ export interface TimeSeries {
|
|
|
28
28
|
label: string;
|
|
29
29
|
points: TimePoint[];
|
|
30
30
|
color?: string | undefined;
|
|
31
|
+
/** Drawn as a thin dashed line without an area, for a comparison such as the previous period. */
|
|
32
|
+
dashed?: boolean | undefined;
|
|
31
33
|
}
|
|
32
34
|
export interface TimeseriesChartProps extends ChartState {
|
|
33
35
|
series: TimeSeries[];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export declare function useSize<T extends HTMLElement>(): [(el: T | null) => void, {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}];
|
|
6
|
+
export interface SwatchProps {
|
|
7
|
+
color: string;
|
|
8
|
+
shape?: "square" | "line" | undefined;
|
|
9
|
+
off?: boolean | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare const Swatch: import("react").ForwardRefExoticComponent<SwatchProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
12
|
+
export interface TooltipRow {
|
|
13
|
+
id: string;
|
|
14
|
+
label: ReactNode;
|
|
15
|
+
color: string;
|
|
16
|
+
value: ReactNode;
|
|
17
|
+
share?: ReactNode | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface ChartTooltipProps {
|
|
20
|
+
x: number;
|
|
21
|
+
xLeft?: number | undefined;
|
|
22
|
+
y: number;
|
|
23
|
+
width: number;
|
|
24
|
+
heading: ReactNode;
|
|
25
|
+
rows: TooltipRow[];
|
|
26
|
+
visible: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const ChartTooltip: import("react").ForwardRefExoticComponent<ChartTooltipProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,25 +1,16 @@
|
|
|
1
|
-
type Highlighter = {
|
|
2
|
-
codeToTokens: (code: string, o: {
|
|
3
|
-
lang: string;
|
|
4
|
-
theme: string;
|
|
5
|
-
tokenizeMaxLineLength?: number | undefined;
|
|
6
|
-
}) => {
|
|
7
|
-
tokens: {
|
|
8
|
-
content: string;
|
|
9
|
-
color?: string | undefined;
|
|
10
|
-
fontStyle?: number | undefined;
|
|
11
|
-
}[][];
|
|
12
|
-
};
|
|
13
|
-
getLoadedLanguages: () => string[];
|
|
14
|
-
loadLanguage: (...l: unknown[]) => Promise<void>;
|
|
15
|
-
};
|
|
16
1
|
export declare const HIGHLIGHT_MAX_CHARS = 200000;
|
|
17
|
-
|
|
2
|
+
/** Every language `CodeBlock`, `DiffView` and `Markdown` highlight. Each loads on first use, so a page pays only for the languages it shows. */
|
|
3
|
+
export declare const CODE_LANGS: readonly ["ts", "tsx", "js", "jsx", "json", "jsonc", "bash", "shellsession", "powershell", "python", "yaml", "toml", "ini", "dotenv", "diff", "rust", "go", "sql", "html", "css", "scss", "xml", "markdown", "dockerfile", "http", "graphql", "java", "kotlin", "swift", "c", "cpp", "csharp", "php", "ruby", "lua", "hcl", "nginx", "make", "proto", "vue", "svelte"];
|
|
4
|
+
/** A language `CodeBlock` highlights, or `text` for none. `resolveCodeLang` turns a fence name such as `py` or `sh` into one. */
|
|
18
5
|
export type CodeLang = (typeof CODE_LANGS)[number] | "text";
|
|
19
|
-
|
|
6
|
+
/**
|
|
7
|
+
* The language for a Markdown fence's info string or a file's extension: `py` is `python`, `sh` and `zsh` are `bash`, `yml` is `yaml`,
|
|
8
|
+
* `ts title=app.ts` is `ts`. Anything it doesn't know, such as `caddyfile`, is `text`, which shows the code plain.
|
|
9
|
+
*/
|
|
10
|
+
export declare function resolveCodeLang(info: string | undefined): CodeLang;
|
|
20
11
|
export interface CodeToken {
|
|
21
12
|
content: string;
|
|
22
13
|
className: string;
|
|
23
14
|
}
|
|
15
|
+
/** Tokens of `code` with their palette classes, one array per line; `null` for `text`, an unknown language or code over 200,000 characters. */
|
|
24
16
|
export declare function highlight(code: string, lang: CodeLang): Promise<CodeToken[][] | null>;
|
|
25
|
-
export {};
|
|
@@ -5,4 +5,4 @@ export type { JsonViewProps } from "./json-view.js";
|
|
|
5
5
|
export { DiffView, KAESO_DIFF_VIEW_DEFAULT_VARIANTS, KAESO_DIFF_VIEW_VARIANTS } from "./diff-view.js";
|
|
6
6
|
export type { DiffViewProps } from "./diff-view.js";
|
|
7
7
|
export { kaesoShikiTheme } from "./kaeso-theme.js";
|
|
8
|
-
export { highlight, CODE_LANGS, type CodeLang } from "./highlighter.js";
|
|
8
|
+
export { highlight, resolveCodeLang, CODE_LANGS, type CodeLang } from "./highlighter.js";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Kaeso's Shiki theme. Every colour is a `var(--k-code-…)` token, so light and dark switch through CSS without highlighting again.
|
|
3
|
+
* A deeper scope wins over the scope around it, which is how keys, interpolations and variables inside strings get their own colour.
|
|
4
|
+
*/
|
|
2
5
|
export declare const kaesoShikiTheme: {
|
|
3
6
|
name: string;
|
|
4
7
|
type: "light";
|
|
@@ -16,49 +19,112 @@ export declare const kaesoShikiTheme: {
|
|
|
16
19
|
} | {
|
|
17
20
|
scope: string[];
|
|
18
21
|
settings: {
|
|
19
|
-
foreground: "var(--k-
|
|
22
|
+
foreground: "var(--k-code-punctuation)";
|
|
23
|
+
background?: never;
|
|
24
|
+
fontStyle?: never;
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
27
|
+
scope: string[];
|
|
28
|
+
settings: {
|
|
29
|
+
foreground: "var(--k-code-keyword)";
|
|
30
|
+
background?: never;
|
|
31
|
+
fontStyle?: never;
|
|
32
|
+
};
|
|
33
|
+
} | {
|
|
34
|
+
scope: string[];
|
|
35
|
+
settings: {
|
|
36
|
+
foreground: "var(--k-code-string)";
|
|
37
|
+
background?: never;
|
|
38
|
+
fontStyle?: never;
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
scope: string[];
|
|
42
|
+
settings: {
|
|
43
|
+
foreground: "var(--k-code-constant)";
|
|
44
|
+
background?: never;
|
|
45
|
+
fontStyle?: never;
|
|
46
|
+
};
|
|
47
|
+
} | {
|
|
48
|
+
scope: string[];
|
|
49
|
+
settings: {
|
|
50
|
+
foreground: "var(--k-code-function)";
|
|
51
|
+
background?: never;
|
|
52
|
+
fontStyle?: never;
|
|
53
|
+
};
|
|
54
|
+
} | {
|
|
55
|
+
scope: string[];
|
|
56
|
+
settings: {
|
|
57
|
+
foreground: "var(--k-code-function)";
|
|
20
58
|
fontStyle: string;
|
|
21
59
|
background?: never;
|
|
22
60
|
};
|
|
23
61
|
} | {
|
|
24
62
|
scope: string[];
|
|
25
63
|
settings: {
|
|
26
|
-
foreground: "var(--k-
|
|
64
|
+
foreground: "var(--k-code-type)";
|
|
27
65
|
background?: never;
|
|
28
66
|
fontStyle?: never;
|
|
29
67
|
};
|
|
30
68
|
} | {
|
|
31
69
|
scope: string[];
|
|
32
70
|
settings: {
|
|
33
|
-
foreground: "var(--k-
|
|
71
|
+
foreground: "var(--k-code-property)";
|
|
34
72
|
background?: never;
|
|
35
73
|
fontStyle?: never;
|
|
36
74
|
};
|
|
37
75
|
} | {
|
|
38
76
|
scope: string[];
|
|
39
77
|
settings: {
|
|
40
|
-
foreground: "var(--k-
|
|
78
|
+
foreground: "var(--k-code-tag)";
|
|
79
|
+
background?: never;
|
|
80
|
+
fontStyle?: never;
|
|
81
|
+
};
|
|
82
|
+
} | {
|
|
83
|
+
scope: string[];
|
|
84
|
+
settings: {
|
|
85
|
+
foreground: "var(--k-code-attribute)";
|
|
86
|
+
background?: never;
|
|
87
|
+
fontStyle?: never;
|
|
88
|
+
};
|
|
89
|
+
} | {
|
|
90
|
+
scope: string[];
|
|
91
|
+
settings: {
|
|
92
|
+
foreground: "var(--k-code-variable)";
|
|
93
|
+
background?: never;
|
|
94
|
+
fontStyle?: never;
|
|
95
|
+
};
|
|
96
|
+
} | {
|
|
97
|
+
scope: string[];
|
|
98
|
+
settings: {
|
|
99
|
+
foreground: "var(--k-code-comment)";
|
|
41
100
|
fontStyle: string;
|
|
42
101
|
background?: never;
|
|
43
102
|
};
|
|
44
103
|
} | {
|
|
45
104
|
scope: string[];
|
|
46
105
|
settings: {
|
|
47
|
-
foreground: "var(--k-
|
|
106
|
+
foreground: "var(--k-code-inserted)";
|
|
48
107
|
background?: never;
|
|
49
108
|
fontStyle?: never;
|
|
50
109
|
};
|
|
51
110
|
} | {
|
|
52
111
|
scope: string[];
|
|
53
112
|
settings: {
|
|
54
|
-
foreground: "var(--k-
|
|
113
|
+
foreground: "var(--k-code-deleted)";
|
|
55
114
|
background?: never;
|
|
56
115
|
fontStyle?: never;
|
|
57
116
|
};
|
|
58
117
|
} | {
|
|
59
118
|
scope: string[];
|
|
60
119
|
settings: {
|
|
61
|
-
|
|
120
|
+
fontStyle: string;
|
|
121
|
+
foreground?: never;
|
|
122
|
+
background?: never;
|
|
123
|
+
};
|
|
124
|
+
} | {
|
|
125
|
+
scope: string[];
|
|
126
|
+
settings: {
|
|
127
|
+
foreground: "var(--k-text)";
|
|
62
128
|
background?: never;
|
|
63
129
|
fontStyle?: never;
|
|
64
130
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CodeLang, CodeToken } from "./highlighter.js";
|
|
2
|
+
type Highlighter = {
|
|
3
|
+
codeToTokens: (code: string, o: {
|
|
4
|
+
lang: string;
|
|
5
|
+
theme: string;
|
|
6
|
+
tokenizeMaxLineLength?: number | undefined;
|
|
7
|
+
}) => {
|
|
8
|
+
tokens: {
|
|
9
|
+
content: string;
|
|
10
|
+
color?: string | undefined;
|
|
11
|
+
fontStyle?: number | undefined;
|
|
12
|
+
}[][];
|
|
13
|
+
};
|
|
14
|
+
loadLanguage: (...l: unknown[]) => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
export declare function getHighlighter(): Promise<Highlighter>;
|
|
17
|
+
export declare function tokens(code: string, lang: Exclude<CodeLang, "text">): Promise<CodeToken[][]>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const TONES: {
|
|
2
|
+
readonly text: {
|
|
3
|
+
readonly color: "var(--k-text)";
|
|
4
|
+
readonly className: "";
|
|
5
|
+
};
|
|
6
|
+
readonly keyword: {
|
|
7
|
+
readonly color: "var(--k-code-keyword)";
|
|
8
|
+
readonly className: "text-code-keyword";
|
|
9
|
+
};
|
|
10
|
+
readonly string: {
|
|
11
|
+
readonly color: "var(--k-code-string)";
|
|
12
|
+
readonly className: "text-code-string";
|
|
13
|
+
};
|
|
14
|
+
readonly constant: {
|
|
15
|
+
readonly color: "var(--k-code-constant)";
|
|
16
|
+
readonly className: "text-code-constant";
|
|
17
|
+
};
|
|
18
|
+
readonly comment: {
|
|
19
|
+
readonly color: "var(--k-code-comment)";
|
|
20
|
+
readonly className: "text-code-comment";
|
|
21
|
+
};
|
|
22
|
+
readonly function: {
|
|
23
|
+
readonly color: "var(--k-code-function)";
|
|
24
|
+
readonly className: "text-code-function";
|
|
25
|
+
};
|
|
26
|
+
readonly type: {
|
|
27
|
+
readonly color: "var(--k-code-type)";
|
|
28
|
+
readonly className: "text-code-type";
|
|
29
|
+
};
|
|
30
|
+
readonly property: {
|
|
31
|
+
readonly color: "var(--k-code-property)";
|
|
32
|
+
readonly className: "text-code-property";
|
|
33
|
+
};
|
|
34
|
+
readonly tag: {
|
|
35
|
+
readonly color: "var(--k-code-tag)";
|
|
36
|
+
readonly className: "text-code-tag";
|
|
37
|
+
};
|
|
38
|
+
readonly attribute: {
|
|
39
|
+
readonly color: "var(--k-code-attribute)";
|
|
40
|
+
readonly className: "text-code-attribute";
|
|
41
|
+
};
|
|
42
|
+
readonly variable: {
|
|
43
|
+
readonly color: "var(--k-code-variable)";
|
|
44
|
+
readonly className: "text-code-variable";
|
|
45
|
+
};
|
|
46
|
+
readonly punctuation: {
|
|
47
|
+
readonly color: "var(--k-code-punctuation)";
|
|
48
|
+
readonly className: "text-code-punctuation";
|
|
49
|
+
};
|
|
50
|
+
readonly inserted: {
|
|
51
|
+
readonly color: "var(--k-code-inserted)";
|
|
52
|
+
readonly className: "text-code-inserted";
|
|
53
|
+
};
|
|
54
|
+
readonly deleted: {
|
|
55
|
+
readonly color: "var(--k-code-deleted)";
|
|
56
|
+
readonly className: "text-code-deleted";
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/** A role of Kaeso's syntax palette, drawn with the `--k-code-<role>` token and the `text-code-<role>` class. */
|
|
60
|
+
export type CodeTone = Exclude<keyof typeof TONES, "text">;
|
|
61
|
+
/** The class that draws text in a role of the syntax palette. */
|
|
62
|
+
export declare function codeToneClass(tone: CodeTone): string;
|
|
63
|
+
/** The classes for a token Shiki coloured with the Kaeso theme: its palette colour, italic and bold. Plain text gets an empty string. */
|
|
64
|
+
export declare function codeTokenClass(color: string | undefined, fontStyle: number | undefined): string;
|
|
@@ -21,6 +21,10 @@ export declare const KAESO_COPY_BUTTON_VARIANTS: {
|
|
|
21
21
|
readonly classes: "material-ghost";
|
|
22
22
|
readonly description: "Inside fields and wells (default)";
|
|
23
23
|
};
|
|
24
|
+
readonly quiet: {
|
|
25
|
+
readonly classes: "material-ghost text-fg-secondary hover:text-fg";
|
|
26
|
+
readonly description: "Secondary text until hovered: under a response, beside its metrics";
|
|
27
|
+
};
|
|
24
28
|
readonly secondary: {
|
|
25
29
|
readonly classes: "material-secondary";
|
|
26
30
|
readonly description: "On its own";
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export declare const KAESO_DASHBOARD_VARIANTS: {
|
|
3
|
+
readonly surface: {
|
|
4
|
+
readonly grid: {
|
|
5
|
+
readonly classes: "grid gap-1 overflow-hidden rounded-group bg-line shadow-xs forced-line";
|
|
6
|
+
readonly description: "Cells on one surface, split by hairlines like a StatGroup (default)";
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const KAESO_DASHBOARD_DEFAULT_VARIANTS: {
|
|
11
|
+
readonly surface: "grid";
|
|
12
|
+
};
|
|
13
|
+
export interface Change {
|
|
14
|
+
value: number;
|
|
15
|
+
better?: "up" | "down" | "none" | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare const Dashboard: import("react").ForwardRefExoticComponent<{
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
columns?: 2 | 3 | 4 | 5 | 6 | 12 | undefined;
|
|
20
|
+
wideColumns?: 2 | 3 | 4 | 6 | 12 | undefined;
|
|
21
|
+
busy?: boolean | undefined;
|
|
22
|
+
headingLevel?: 2 | 3 | undefined;
|
|
23
|
+
"aria-label"?: string | undefined;
|
|
24
|
+
className?: string | undefined;
|
|
25
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export declare const DashboardCell: import("react").ForwardRefExoticComponent<{
|
|
27
|
+
title?: ReactNode | undefined;
|
|
28
|
+
href?: string | undefined;
|
|
29
|
+
actions?: ReactNode | undefined;
|
|
30
|
+
children?: ReactNode | undefined;
|
|
31
|
+
className?: string | undefined;
|
|
32
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
33
|
+
export declare const CellInset: import("react").ForwardRefExoticComponent<{
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
grow?: boolean | undefined;
|
|
36
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
37
|
+
export interface ReadoutProps {
|
|
38
|
+
label?: ReactNode | undefined;
|
|
39
|
+
value: ReactNode;
|
|
40
|
+
unit?: ReactNode | undefined;
|
|
41
|
+
change?: Change | undefined;
|
|
42
|
+
detail?: ReactNode | undefined;
|
|
43
|
+
size?: keyof typeof KAESO_READOUT_VARIANTS.size | undefined;
|
|
44
|
+
loading?: boolean | undefined;
|
|
45
|
+
}
|
|
46
|
+
export declare const KAESO_READOUT_VARIANTS: {
|
|
47
|
+
readonly size: {
|
|
48
|
+
readonly md: {
|
|
49
|
+
readonly classes: "text-metric";
|
|
50
|
+
readonly description: "28/32: the cell's main number (default)";
|
|
51
|
+
};
|
|
52
|
+
readonly sm: {
|
|
53
|
+
readonly classes: "text-title";
|
|
54
|
+
readonly description: "20/28: a number beside another, under a small label";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
export declare const KAESO_READOUT_DEFAULT_VARIANTS: {
|
|
59
|
+
readonly size: "md";
|
|
60
|
+
};
|
|
61
|
+
export declare const Readout: import("react").ForwardRefExoticComponent<ReadoutProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
export declare const docs: {
|
|
2
|
+
Dashboard: {
|
|
3
|
+
description: string;
|
|
4
|
+
props: {
|
|
5
|
+
"aria-label": string;
|
|
6
|
+
busy: string;
|
|
7
|
+
headingLevel: string;
|
|
8
|
+
children: string;
|
|
9
|
+
wideColumns: string;
|
|
10
|
+
columns: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
DashboardCell: {
|
|
14
|
+
description: string;
|
|
15
|
+
props: {
|
|
16
|
+
actions: string;
|
|
17
|
+
children: string;
|
|
18
|
+
href: string;
|
|
19
|
+
title: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
CellInset: {
|
|
23
|
+
description: string;
|
|
24
|
+
props: {
|
|
25
|
+
children: string;
|
|
26
|
+
grow: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
MetricTabs: {
|
|
30
|
+
description: string;
|
|
31
|
+
props: {
|
|
32
|
+
"aria-label": string;
|
|
33
|
+
controls: string;
|
|
34
|
+
items: string;
|
|
35
|
+
loading: string;
|
|
36
|
+
orientation: string;
|
|
37
|
+
onValueChange: string;
|
|
38
|
+
value: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
Readout: {
|
|
42
|
+
description: string;
|
|
43
|
+
props: {
|
|
44
|
+
change: string;
|
|
45
|
+
detail: string;
|
|
46
|
+
label: string;
|
|
47
|
+
loading: string;
|
|
48
|
+
size: string;
|
|
49
|
+
unit: string;
|
|
50
|
+
value: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
RankList: {
|
|
54
|
+
description: string;
|
|
55
|
+
props: {
|
|
56
|
+
"aria-label": string;
|
|
57
|
+
empty: string;
|
|
58
|
+
items: string;
|
|
59
|
+
loading: string;
|
|
60
|
+
onOpen: string;
|
|
61
|
+
rows: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
ModelCard: {
|
|
65
|
+
description: string;
|
|
66
|
+
props: {
|
|
67
|
+
action: string;
|
|
68
|
+
badge: string;
|
|
69
|
+
detail: string;
|
|
70
|
+
facts: string;
|
|
71
|
+
model: string;
|
|
72
|
+
name: string;
|
|
73
|
+
mark: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
Announcement: {
|
|
77
|
+
description: string;
|
|
78
|
+
props: {
|
|
79
|
+
actions: string;
|
|
80
|
+
art: string;
|
|
81
|
+
description: string;
|
|
82
|
+
eyebrow: string;
|
|
83
|
+
title: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
Legend: {
|
|
87
|
+
description: string;
|
|
88
|
+
props: {
|
|
89
|
+
items: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { CellInset, Dashboard, DashboardCell, KAESO_DASHBOARD_DEFAULT_VARIANTS, KAESO_DASHBOARD_VARIANTS, KAESO_READOUT_DEFAULT_VARIANTS, KAESO_READOUT_VARIANTS, Readout, } from "./dashboard.js";
|
|
2
|
+
export type { Change, ReadoutProps } from "./dashboard.js";
|
|
3
|
+
export { Legend, type LegendEntry } from "./legend.js";
|
|
4
|
+
export { Announcement, ModelCard, type ModelCardProps } from "./model-card.js";
|
|
5
|
+
export { RankList, type RankItem } from "./rank-list.js";
|
|
6
|
+
export { MetricTabs, type MetricTabItem } from "./metric-tabs.js";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface LegendEntry {
|
|
3
|
+
id: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
value?: ReactNode | undefined;
|
|
6
|
+
color: string;
|
|
7
|
+
dashed?: boolean | undefined;
|
|
8
|
+
}
|
|
9
|
+
export declare const Legend: import("react").ForwardRefExoticComponent<{
|
|
10
|
+
items: LegendEntry[];
|
|
11
|
+
} & import("react").RefAttributes<HTMLUListElement>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { Change } from "./dashboard.js";
|
|
3
|
+
export interface MetricTabItem {
|
|
4
|
+
id: string;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
value: ReactNode;
|
|
7
|
+
change?: Change | undefined;
|
|
8
|
+
detail?: ReactNode | undefined;
|
|
9
|
+
trend?: number[] | undefined;
|
|
10
|
+
trendColor?: string | undefined;
|
|
11
|
+
trendLabel?: string | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare const MetricTabs: import("react").ForwardRefExoticComponent<{
|
|
14
|
+
items: MetricTabItem[];
|
|
15
|
+
value: string;
|
|
16
|
+
onValueChange: (id: string) => void;
|
|
17
|
+
loading?: boolean | undefined;
|
|
18
|
+
"aria-label": string;
|
|
19
|
+
controls?: string | undefined;
|
|
20
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
21
|
+
className?: string | undefined;
|
|
22
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface ModelCardProps {
|
|
3
|
+
mark: ReactNode;
|
|
4
|
+
name: string;
|
|
5
|
+
model: string;
|
|
6
|
+
badge?: ReactNode | undefined;
|
|
7
|
+
detail?: ReactNode | undefined;
|
|
8
|
+
facts?: {
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
value: ReactNode;
|
|
11
|
+
}[] | undefined;
|
|
12
|
+
action?: ReactNode | undefined;
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
}
|
|
15
|
+
export declare const ModelCard: import("react").ForwardRefExoticComponent<ModelCardProps & import("react").RefAttributes<HTMLElement>>;
|
|
16
|
+
export declare const Announcement: import("react").ForwardRefExoticComponent<{
|
|
17
|
+
eyebrow?: ReactNode | undefined;
|
|
18
|
+
title: ReactNode;
|
|
19
|
+
description?: ReactNode | undefined;
|
|
20
|
+
actions?: ReactNode | undefined;
|
|
21
|
+
art?: ReactNode | undefined;
|
|
22
|
+
className?: string | undefined;
|
|
23
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import type { Change } from "./dashboard.js";
|
|
3
|
+
export interface RankItem {
|
|
4
|
+
id: string;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
value?: ReactNode | undefined;
|
|
7
|
+
/** Draws the row's share of the largest row behind it; leave it out for a plain row. */
|
|
8
|
+
share?: number | undefined;
|
|
9
|
+
secondary?: ReactNode | undefined;
|
|
10
|
+
/** The row's change against the previous period, in a column of its own; a word such as "New" where there is nothing to compare with. */
|
|
11
|
+
change?: Change | string | undefined;
|
|
12
|
+
}
|
|
13
|
+
export declare const RankList: import("react").ForwardRefExoticComponent<{
|
|
14
|
+
items: RankItem[];
|
|
15
|
+
loading?: boolean | undefined;
|
|
16
|
+
rows?: number | undefined;
|
|
17
|
+
empty?: ReactNode | undefined;
|
|
18
|
+
onOpen?: ((id: string) => void) | undefined;
|
|
19
|
+
"aria-label": string;
|
|
20
|
+
className?: string | undefined;
|
|
21
|
+
} & import("react").RefAttributes<HTMLOListElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export declare const SwapValue: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
text: string;
|
|
5
|
+
className: string;
|
|
6
|
+
} & import("react").RefAttributes<HTMLSpanElement>>;
|
|
7
|
+
export declare const textOf: (n: ReactNode) => string;
|
|
@@ -75,4 +75,4 @@ export declare function withField(props: FieldWrapProps & {
|
|
|
75
75
|
disabled?: boolean | undefined;
|
|
76
76
|
invalid?: boolean | undefined;
|
|
77
77
|
className?: string | undefined;
|
|
78
|
-
}, control: ReactNode): string | number | bigint | boolean |
|
|
78
|
+
}, control: ReactNode): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react").JSX.Element | null | undefined;
|