@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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"package": "@logicplanes/kaeso-ui",
|
|
3
|
-
"version": "0.6.0
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"entry": "app-frame",
|
|
@@ -398,6 +398,13 @@
|
|
|
398
398
|
"default": null,
|
|
399
399
|
"description": "Why the button is disabled, shown as a tooltip and read out as the button's description. The button stays focusable so people can reach it."
|
|
400
400
|
},
|
|
401
|
+
{
|
|
402
|
+
"name": "download",
|
|
403
|
+
"type": "string",
|
|
404
|
+
"required": false,
|
|
405
|
+
"default": null,
|
|
406
|
+
"description": "With `href`, saves the file the link points to under this name instead of opening it, such as a generated image (`blob:` and `data:` links included)."
|
|
407
|
+
},
|
|
401
408
|
{
|
|
402
409
|
"name": "fullWidth",
|
|
403
410
|
"type": "boolean",
|
|
@@ -1156,6 +1163,34 @@
|
|
|
1156
1163
|
"required": false,
|
|
1157
1164
|
"default": null,
|
|
1158
1165
|
"description": "Fills the container's width at 32px high, without the last point's dot, as in a stat tile. Otherwise it is 80×24."
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"name": "formatValue",
|
|
1169
|
+
"type": "((v: number) => string)",
|
|
1170
|
+
"required": false,
|
|
1171
|
+
"default": null,
|
|
1172
|
+
"description": "Writes a value in the tooltip, such as \"1,467\" or \"$2.06\"."
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"name": "height",
|
|
1176
|
+
"type": "number",
|
|
1177
|
+
"required": false,
|
|
1178
|
+
"default": null,
|
|
1179
|
+
"description": "The height of a fluid sparkline in px; 32 by default."
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"name": "labels",
|
|
1183
|
+
"type": "string[]",
|
|
1184
|
+
"required": false,
|
|
1185
|
+
"default": null,
|
|
1186
|
+
"description": "One name per value, such as each day; with them the sparkline can be inspected by pointer or arrow keys, with a crosshair and a tooltip."
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
"name": "seriesLabel",
|
|
1190
|
+
"type": "string",
|
|
1191
|
+
"required": false,
|
|
1192
|
+
"default": null,
|
|
1193
|
+
"description": "What the values are, named in the tooltip."
|
|
1159
1194
|
}
|
|
1160
1195
|
],
|
|
1161
1196
|
"file": "src/components/charts/sparkline.tsx"
|
|
@@ -1712,7 +1747,7 @@
|
|
|
1712
1747
|
"components": [
|
|
1713
1748
|
{
|
|
1714
1749
|
"name": "CodeBlock",
|
|
1715
|
-
"description": "Highlighted code on a well
|
|
1750
|
+
"description": "Highlighted code on a well in Kaeso's syntax palette, in every common language, each loaded the first time a block shows it: copy in the header with a title or tabs and on hover without, tabs, line numbers, collapse with a fade at the cut. Long lines scroll sideways inside 16px of padding at both ends, and the code fades out at an edge with more to scroll to.",
|
|
1716
1751
|
"props": [
|
|
1717
1752
|
{
|
|
1718
1753
|
"name": "className",
|
|
@@ -1754,7 +1789,7 @@
|
|
|
1754
1789
|
"type": "CodeLang",
|
|
1755
1790
|
"required": false,
|
|
1756
1791
|
"default": "ts",
|
|
1757
|
-
"description": "The language
|
|
1792
|
+
"description": "The language to highlight (`ts` by default), or `text` to show the code plain. `resolveCodeLang` turns a Markdown fence name such as `py` or `sh` into one."
|
|
1758
1793
|
},
|
|
1759
1794
|
{
|
|
1760
1795
|
"name": "lineNumbers",
|
|
@@ -1852,7 +1887,7 @@
|
|
|
1852
1887
|
"type": "CodeLang",
|
|
1853
1888
|
"required": false,
|
|
1854
1889
|
"default": "text",
|
|
1855
|
-
"description": "The language of both versions
|
|
1890
|
+
"description": "The language of both versions to highlight (`text` by default). `resolveCodeLang` turns a fence name such as `py` or `sh` into one."
|
|
1856
1891
|
},
|
|
1857
1892
|
{
|
|
1858
1893
|
"name": "lineNumbers",
|
|
@@ -2520,22 +2555,435 @@
|
|
|
2520
2555
|
"import": "@logicplanes/kaeso-ui/copy-button",
|
|
2521
2556
|
"components": [
|
|
2522
2557
|
{
|
|
2523
|
-
"name": "CopyButton",
|
|
2524
|
-
"description": "Copies a value, with a check and \"Copied\" for 1.2s: a circle (the default), a read-only pill field with the value in mono and a circle inside (`field`), or inline mono text that copies itself on click (`inline`). Inline text shows a copy icon on hover and keyboard focus that takes no room where its row has some to spare, ends in an ellipsis when it is longer than its container, and shows the whole value in its tooltip until it is copied.",
|
|
2558
|
+
"name": "CopyButton",
|
|
2559
|
+
"description": "Copies a value, with a check and \"Copied\" for 1.2s: a circle (the default), a read-only pill field with the value in mono and a circle inside (`field`), or inline mono text that copies itself on click (`inline`). Inline text shows a copy icon on hover and keyboard focus that takes no room where its row has some to spare, ends in an ellipsis when it is longer than its container, and shows the whole value in its tooltip until it is copied.",
|
|
2560
|
+
"props": [
|
|
2561
|
+
{
|
|
2562
|
+
"name": "value",
|
|
2563
|
+
"type": "string",
|
|
2564
|
+
"required": true,
|
|
2565
|
+
"default": null,
|
|
2566
|
+
"description": "The text that is copied."
|
|
2567
|
+
},
|
|
2568
|
+
{
|
|
2569
|
+
"name": "children",
|
|
2570
|
+
"type": "ReactNode",
|
|
2571
|
+
"required": false,
|
|
2572
|
+
"default": null,
|
|
2573
|
+
"description": "What a field or inline text shows, when it differs from the copied text, such as a redacted form; the value is still what is copied."
|
|
2574
|
+
},
|
|
2575
|
+
{
|
|
2576
|
+
"name": "className",
|
|
2577
|
+
"type": "string",
|
|
2578
|
+
"required": false,
|
|
2579
|
+
"default": null,
|
|
2580
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
2581
|
+
},
|
|
2582
|
+
{
|
|
2583
|
+
"name": "data-force",
|
|
2584
|
+
"type": "string",
|
|
2585
|
+
"required": false,
|
|
2586
|
+
"default": null,
|
|
2587
|
+
"description": "Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`."
|
|
2588
|
+
},
|
|
2589
|
+
{
|
|
2590
|
+
"name": "display",
|
|
2591
|
+
"type": "\"inline\" | \"icon\" | \"field\"",
|
|
2592
|
+
"required": false,
|
|
2593
|
+
"default": "icon",
|
|
2594
|
+
"description": "A circle (`icon`), a read-only pill field (`field`), or mono text inside a sentence or a row (`inline`)."
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
"name": "label",
|
|
2598
|
+
"type": "string",
|
|
2599
|
+
"required": false,
|
|
2600
|
+
"default": null,
|
|
2601
|
+
"description": "What is being copied, for the accessible name and the tooltip: \"Copy key\". Defaults to \"Copy\" in the provider's language."
|
|
2602
|
+
},
|
|
2603
|
+
{
|
|
2604
|
+
"name": "onCopy",
|
|
2605
|
+
"type": "((value: string) => void)",
|
|
2606
|
+
"required": false,
|
|
2607
|
+
"default": null,
|
|
2608
|
+
"description": "Called with the copied text."
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
"name": "size",
|
|
2612
|
+
"type": "\"md\" | \"xs\" | \"sm\" | \"lg\" | \"xl\"",
|
|
2613
|
+
"required": false,
|
|
2614
|
+
"default": "sm",
|
|
2615
|
+
"description": "The circle's height, or a field's: 32px (`sm`) by default."
|
|
2616
|
+
},
|
|
2617
|
+
{
|
|
2618
|
+
"name": "variant",
|
|
2619
|
+
"type": "\"secondary\" | \"ghost\" | \"quiet\"",
|
|
2620
|
+
"required": false,
|
|
2621
|
+
"default": "ghost",
|
|
2622
|
+
"description": "A filled circle (`secondary`), a ghost (`ghost`), or a ghost in secondary text until hovered (`quiet`)."
|
|
2623
|
+
}
|
|
2624
|
+
],
|
|
2625
|
+
"file": "src/components/copy-button/copy-button.tsx"
|
|
2626
|
+
}
|
|
2627
|
+
],
|
|
2628
|
+
"variants": {
|
|
2629
|
+
"COPY_BUTTON": {
|
|
2630
|
+
"axes": {
|
|
2631
|
+
"display": {
|
|
2632
|
+
"icon": "A circle that copies a value (default)",
|
|
2633
|
+
"inline": "Mono text in a sentence or a row that copies itself on click",
|
|
2634
|
+
"field": "A read-only pill field: the value in mono and a copy circle inside"
|
|
2635
|
+
},
|
|
2636
|
+
"variant": {
|
|
2637
|
+
"ghost": "Inside fields and wells (default)",
|
|
2638
|
+
"quiet": "Secondary text until hovered: under a response, beside its metrics",
|
|
2639
|
+
"secondary": "On its own"
|
|
2640
|
+
},
|
|
2641
|
+
"size": {
|
|
2642
|
+
"xs": "24px circle: inside rows and chips",
|
|
2643
|
+
"sm": "32px circle: toolbars and headers (default)",
|
|
2644
|
+
"md": "36px circle: beside md controls",
|
|
2645
|
+
"lg": "40px circle",
|
|
2646
|
+
"xl": "48px circle"
|
|
2647
|
+
}
|
|
2648
|
+
},
|
|
2649
|
+
"defaults": {
|
|
2650
|
+
"display": "icon",
|
|
2651
|
+
"variant": "ghost",
|
|
2652
|
+
"size": "sm"
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
}
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
"entry": "dashboard",
|
|
2659
|
+
"kind": "components",
|
|
2660
|
+
"import": "@logicplanes/kaeso-ui/dashboard",
|
|
2661
|
+
"components": [
|
|
2662
|
+
{
|
|
2663
|
+
"name": "Announcement",
|
|
2664
|
+
"description": "One piece of news across the top of a home page: an eyebrow, a title, a line and an action beside its artwork, such as a new release with a flush `ReleaseArt`. The artwork leaves on narrow screens.",
|
|
2665
|
+
"props": [
|
|
2666
|
+
{
|
|
2667
|
+
"name": "title",
|
|
2668
|
+
"type": "ReactNode",
|
|
2669
|
+
"required": true,
|
|
2670
|
+
"default": null,
|
|
2671
|
+
"description": "The news itself."
|
|
2672
|
+
},
|
|
2673
|
+
{
|
|
2674
|
+
"name": "actions",
|
|
2675
|
+
"type": "ReactNode",
|
|
2676
|
+
"required": false,
|
|
2677
|
+
"default": null,
|
|
2678
|
+
"description": "One or two buttons."
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
"name": "art",
|
|
2682
|
+
"type": "ReactNode",
|
|
2683
|
+
"required": false,
|
|
2684
|
+
"default": null,
|
|
2685
|
+
"description": "The artwork on the right, 16:9 at 320px: a `ReleaseArt` with `flush`, so the whole cover shows."
|
|
2686
|
+
},
|
|
2687
|
+
{
|
|
2688
|
+
"name": "className",
|
|
2689
|
+
"type": "string",
|
|
2690
|
+
"required": false,
|
|
2691
|
+
"default": null,
|
|
2692
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
2693
|
+
},
|
|
2694
|
+
{
|
|
2695
|
+
"name": "description",
|
|
2696
|
+
"type": "ReactNode",
|
|
2697
|
+
"required": false,
|
|
2698
|
+
"default": null,
|
|
2699
|
+
"description": "One line, two at most."
|
|
2700
|
+
},
|
|
2701
|
+
{
|
|
2702
|
+
"name": "eyebrow",
|
|
2703
|
+
"type": "ReactNode",
|
|
2704
|
+
"required": false,
|
|
2705
|
+
"default": null,
|
|
2706
|
+
"description": "What kind of news: \"New release\"."
|
|
2707
|
+
}
|
|
2708
|
+
],
|
|
2709
|
+
"file": "src/components/dashboard/model-card.tsx"
|
|
2710
|
+
},
|
|
2711
|
+
{
|
|
2712
|
+
"name": "CellInset",
|
|
2713
|
+
"description": "Places a chart, a meter or a note on the cell's text edge, 12px in from where rows start, so it lines up with the label and the number above.",
|
|
2714
|
+
"props": [
|
|
2715
|
+
{
|
|
2716
|
+
"name": "children",
|
|
2717
|
+
"type": "ReactNode",
|
|
2718
|
+
"required": true,
|
|
2719
|
+
"default": null,
|
|
2720
|
+
"description": "What sits on the text edge."
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
"name": "grow",
|
|
2724
|
+
"type": "boolean",
|
|
2725
|
+
"required": false,
|
|
2726
|
+
"default": null,
|
|
2727
|
+
"description": "Takes the cell's remaining height, so a chart or a note can sit at the bottom with `mt-auto`."
|
|
2728
|
+
}
|
|
2729
|
+
],
|
|
2730
|
+
"file": "src/components/dashboard/dashboard.tsx"
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
"name": "Dashboard",
|
|
2734
|
+
"description": "An overview page's numbers, charts and lists on one raised surface split by hairlines, the way a `StatGroup` splits its tiles. As many columns from 1024px as `columns` says (twelve by default), one below it; each `DashboardCell` takes its span through `className` (`lg:col-span-2`). Put `MetricTabs` first, so the totals lead and pick what the chart beneath them shows.",
|
|
2735
|
+
"props": [
|
|
2736
|
+
{
|
|
2737
|
+
"name": "children",
|
|
2738
|
+
"type": "ReactNode",
|
|
2739
|
+
"required": true,
|
|
2740
|
+
"default": null,
|
|
2741
|
+
"description": "`MetricTabs` and `DashboardCell`s."
|
|
2742
|
+
},
|
|
2743
|
+
{
|
|
2744
|
+
"name": "aria-label",
|
|
2745
|
+
"type": "string",
|
|
2746
|
+
"required": false,
|
|
2747
|
+
"default": null,
|
|
2748
|
+
"description": "The surface's accessible name, such as \"Usage in the period\"."
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
"name": "busy",
|
|
2752
|
+
"type": "boolean",
|
|
2753
|
+
"required": false,
|
|
2754
|
+
"default": null,
|
|
2755
|
+
"description": "Keeps the numbers on screen, a step back, while the next ones load."
|
|
2756
|
+
},
|
|
2757
|
+
{
|
|
2758
|
+
"name": "className",
|
|
2759
|
+
"type": "string",
|
|
2760
|
+
"required": false,
|
|
2761
|
+
"default": null,
|
|
2762
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
"name": "columns",
|
|
2766
|
+
"type": "4 | 2 | 3 | 5 | 6 | 12",
|
|
2767
|
+
"required": false,
|
|
2768
|
+
"default": "12",
|
|
2769
|
+
"description": "Columns from 1024px. Give it as many as `MetricTabs` has tabs, and let every cell span whole tabs, so each hairline below continues a tab's edge; 12 for free layouts."
|
|
2770
|
+
},
|
|
2771
|
+
{
|
|
2772
|
+
"name": "headingLevel",
|
|
2773
|
+
"type": "2 | 3",
|
|
2774
|
+
"required": false,
|
|
2775
|
+
"default": "3",
|
|
2776
|
+
"description": "The level of the cells' titles: 3 below a section's heading (the default), 2 when the page's title is the only heading above."
|
|
2777
|
+
},
|
|
2778
|
+
{
|
|
2779
|
+
"name": "wideColumns",
|
|
2780
|
+
"type": "4 | 2 | 3 | 6 | 12",
|
|
2781
|
+
"required": false,
|
|
2782
|
+
"default": null,
|
|
2783
|
+
"description": "Columns from 1280px, when the surface needs more room per cell than `columns` gives at 1024px: two at 1024px and four at 1280px keeps every cell wide enough to read."
|
|
2784
|
+
}
|
|
2785
|
+
],
|
|
2786
|
+
"file": "src/components/dashboard/dashboard.tsx"
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
"name": "DashboardCell",
|
|
2790
|
+
"description": "One cell of a `Dashboard`: a quiet label, at most one or two ghost buttons beside it, and its content. Text and numbers sit on the cell's text edge through `Readout` and `CellInset`; `RankList` rows run from the cell's own edge so their hover fills line up with the label.",
|
|
2791
|
+
"props": [
|
|
2792
|
+
{
|
|
2793
|
+
"name": "actions",
|
|
2794
|
+
"type": "ReactNode",
|
|
2795
|
+
"required": false,
|
|
2796
|
+
"default": null,
|
|
2797
|
+
"description": "Ghost buttons that open the page behind the cell: \"Request logs\", \"Limits\"."
|
|
2798
|
+
},
|
|
2799
|
+
{
|
|
2800
|
+
"name": "children",
|
|
2801
|
+
"type": "ReactNode",
|
|
2802
|
+
"required": false,
|
|
2803
|
+
"default": null,
|
|
2804
|
+
"description": "The cell's content: a `Readout`, then a chart, a meter or a `RankList`."
|
|
2805
|
+
},
|
|
2806
|
+
{
|
|
2807
|
+
"name": "className",
|
|
2808
|
+
"type": "string",
|
|
2809
|
+
"required": false,
|
|
2810
|
+
"default": null,
|
|
2811
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
"name": "href",
|
|
2815
|
+
"type": "string",
|
|
2816
|
+
"required": false,
|
|
2817
|
+
"default": null,
|
|
2818
|
+
"description": "Turns the title into a link with a chevron, to the page that tells the cell's whole story."
|
|
2819
|
+
},
|
|
2820
|
+
{
|
|
2821
|
+
"name": "title",
|
|
2822
|
+
"type": "ReactNode",
|
|
2823
|
+
"required": false,
|
|
2824
|
+
"default": null,
|
|
2825
|
+
"description": "What the cell shows: \"Cache hit\", \"Models by requests\"."
|
|
2826
|
+
}
|
|
2827
|
+
],
|
|
2828
|
+
"file": "src/components/dashboard/dashboard.tsx"
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
"name": "Legend",
|
|
2832
|
+
"description": "A chart's key: a solid line for this period, a dashed one for the period it is compared with. It says each series' total too, unless the totals already stand beside the chart.",
|
|
2833
|
+
"props": [
|
|
2834
|
+
{
|
|
2835
|
+
"name": "items",
|
|
2836
|
+
"type": "LegendEntry[]",
|
|
2837
|
+
"required": true,
|
|
2838
|
+
"default": null,
|
|
2839
|
+
"description": "One entry per series: `label`, `color`, `dashed` for the comparison, and `value` for its total; leave `value` out when a tab above already says it."
|
|
2840
|
+
}
|
|
2841
|
+
],
|
|
2842
|
+
"file": "src/components/dashboard/legend.tsx"
|
|
2843
|
+
},
|
|
2844
|
+
{
|
|
2845
|
+
"name": "MetricTabs",
|
|
2846
|
+
"description": "The totals of a period as tabs across the top of a `Dashboard`: each says its label, its number and its change. The chosen one has an ink bar along its foot and decides what the chart below draws; arrow keys, Home and End move between them.",
|
|
2847
|
+
"props": [
|
|
2848
|
+
{
|
|
2849
|
+
"name": "aria-label",
|
|
2850
|
+
"type": "string",
|
|
2851
|
+
"required": true,
|
|
2852
|
+
"default": null,
|
|
2853
|
+
"description": "The tabs' accessible name, such as \"Metric to chart\"."
|
|
2854
|
+
},
|
|
2855
|
+
{
|
|
2856
|
+
"name": "items",
|
|
2857
|
+
"type": "MetricTabItem[]",
|
|
2858
|
+
"required": true,
|
|
2859
|
+
"default": null,
|
|
2860
|
+
"description": "One tab per total: `id`, `label`, the formatted `value`, an optional `change` and a `detail` such as \"vs. prior 30 days\"."
|
|
2861
|
+
},
|
|
2862
|
+
{
|
|
2863
|
+
"name": "onValueChange",
|
|
2864
|
+
"type": "(id: string) => void",
|
|
2865
|
+
"required": true,
|
|
2866
|
+
"default": null,
|
|
2867
|
+
"description": "Called with the chosen tab's id."
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
"name": "value",
|
|
2871
|
+
"type": "string",
|
|
2872
|
+
"required": true,
|
|
2873
|
+
"default": null,
|
|
2874
|
+
"description": "The chosen tab's id."
|
|
2875
|
+
},
|
|
2876
|
+
{
|
|
2877
|
+
"name": "className",
|
|
2878
|
+
"type": "string",
|
|
2879
|
+
"required": false,
|
|
2880
|
+
"default": null,
|
|
2881
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
2882
|
+
},
|
|
2883
|
+
{
|
|
2884
|
+
"name": "controls",
|
|
2885
|
+
"type": "string",
|
|
2886
|
+
"required": false,
|
|
2887
|
+
"default": null,
|
|
2888
|
+
"description": "The id of the chart the tabs drive."
|
|
2889
|
+
},
|
|
2890
|
+
{
|
|
2891
|
+
"name": "loading",
|
|
2892
|
+
"type": "boolean",
|
|
2893
|
+
"required": false,
|
|
2894
|
+
"default": null,
|
|
2895
|
+
"description": "While the totals load: every tab keeps its height and shows the number's shape."
|
|
2896
|
+
},
|
|
2897
|
+
{
|
|
2898
|
+
"name": "orientation",
|
|
2899
|
+
"type": "\"horizontal\" | \"vertical\"",
|
|
2900
|
+
"required": false,
|
|
2901
|
+
"default": "horizontal",
|
|
2902
|
+
"description": "Across the top of the surface (`horizontal`), or in a side column (`vertical`) from 1280px and a two-by-two grid below it, each tab with its number on its own line and its trend underneath."
|
|
2903
|
+
}
|
|
2904
|
+
],
|
|
2905
|
+
"file": "src/components/dashboard/metric-tabs.tsx"
|
|
2906
|
+
},
|
|
2907
|
+
{
|
|
2908
|
+
"name": "ModelCard",
|
|
2909
|
+
"description": "A model worth a look, as a cell of a `Dashboard`: its provider's mark, name and id, a line about it, a few facts such as context and price, and one action.",
|
|
2910
|
+
"props": [
|
|
2911
|
+
{
|
|
2912
|
+
"name": "mark",
|
|
2913
|
+
"type": "ReactNode",
|
|
2914
|
+
"required": true,
|
|
2915
|
+
"default": null,
|
|
2916
|
+
"description": "The provider's mark: a `ProviderBadge` at size `lg`."
|
|
2917
|
+
},
|
|
2918
|
+
{
|
|
2919
|
+
"name": "model",
|
|
2920
|
+
"type": "string",
|
|
2921
|
+
"required": true,
|
|
2922
|
+
"default": null,
|
|
2923
|
+
"description": "The model's id, in mono."
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
"name": "name",
|
|
2927
|
+
"type": "string",
|
|
2928
|
+
"required": true,
|
|
2929
|
+
"default": null,
|
|
2930
|
+
"description": "The model's name."
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
"name": "action",
|
|
2934
|
+
"type": "ReactNode",
|
|
2935
|
+
"required": false,
|
|
2936
|
+
"default": null,
|
|
2937
|
+
"description": "One button: \"Add to this project\", \"Open in models\"."
|
|
2938
|
+
},
|
|
2939
|
+
{
|
|
2940
|
+
"name": "badge",
|
|
2941
|
+
"type": "ReactNode",
|
|
2942
|
+
"required": false,
|
|
2943
|
+
"default": null,
|
|
2944
|
+
"description": "A status beside the mark, such as \"New\"."
|
|
2945
|
+
},
|
|
2946
|
+
{
|
|
2947
|
+
"name": "className",
|
|
2948
|
+
"type": "string",
|
|
2949
|
+
"required": false,
|
|
2950
|
+
"default": null,
|
|
2951
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
"name": "detail",
|
|
2955
|
+
"type": "ReactNode",
|
|
2956
|
+
"required": false,
|
|
2957
|
+
"default": null,
|
|
2958
|
+
"description": "One line about the model, such as when it was released."
|
|
2959
|
+
},
|
|
2960
|
+
{
|
|
2961
|
+
"name": "facts",
|
|
2962
|
+
"type": "{ label: ReactNode; value: ReactNode; }[]",
|
|
2963
|
+
"required": false,
|
|
2964
|
+
"default": null,
|
|
2965
|
+
"description": "Two to four label and value pairs: context, price per million tokens."
|
|
2966
|
+
}
|
|
2967
|
+
],
|
|
2968
|
+
"file": "src/components/dashboard/model-card.tsx"
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
"name": "RankList",
|
|
2972
|
+
"description": "The top rows of a breakdown, largest first: the label, the share and the number in columns that line up from row to row, with each row's share of the largest drawn behind it in a neutral fill. Rows open something when `onOpen` is set, such as the request logs filtered to that model.",
|
|
2525
2973
|
"props": [
|
|
2526
2974
|
{
|
|
2527
|
-
"name": "
|
|
2975
|
+
"name": "aria-label",
|
|
2528
2976
|
"type": "string",
|
|
2529
2977
|
"required": true,
|
|
2530
2978
|
"default": null,
|
|
2531
|
-
"description": "The
|
|
2979
|
+
"description": "The list's accessible name."
|
|
2532
2980
|
},
|
|
2533
2981
|
{
|
|
2534
|
-
"name": "
|
|
2535
|
-
"type": "
|
|
2536
|
-
"required":
|
|
2982
|
+
"name": "items",
|
|
2983
|
+
"type": "RankItem[]",
|
|
2984
|
+
"required": true,
|
|
2537
2985
|
"default": null,
|
|
2538
|
-
"description": "
|
|
2986
|
+
"description": "The rows: `id`, `label`, `value`, `secondary` (the share or a time), `change` against the previous period (a fraction with its `better` side, or a word such as \"New\"; on a phone it takes the place of `secondary`, so the label keeps its room) and `share` for the bar; leave `share` out for plain rows."
|
|
2539
2987
|
},
|
|
2540
2988
|
{
|
|
2541
2989
|
"name": "className",
|
|
@@ -2545,75 +2993,113 @@
|
|
|
2545
2993
|
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
2546
2994
|
},
|
|
2547
2995
|
{
|
|
2548
|
-
"name": "
|
|
2549
|
-
"type": "
|
|
2996
|
+
"name": "empty",
|
|
2997
|
+
"type": "ReactNode",
|
|
2550
2998
|
"required": false,
|
|
2551
2999
|
"default": null,
|
|
2552
|
-
"description": "
|
|
3000
|
+
"description": "What an empty list says: \"Nothing in this period\"."
|
|
2553
3001
|
},
|
|
2554
3002
|
{
|
|
2555
|
-
"name": "
|
|
2556
|
-
"type": "
|
|
3003
|
+
"name": "loading",
|
|
3004
|
+
"type": "boolean",
|
|
2557
3005
|
"required": false,
|
|
2558
|
-
"default":
|
|
2559
|
-
"description": "
|
|
3006
|
+
"default": null,
|
|
3007
|
+
"description": "While the rows load: `rows` lines of their shape."
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
"name": "onOpen",
|
|
3011
|
+
"type": "((id: string) => void)",
|
|
3012
|
+
"required": false,
|
|
3013
|
+
"default": null,
|
|
3014
|
+
"description": "Called with a row's id when it is chosen; without it, rows are plain text."
|
|
3015
|
+
},
|
|
3016
|
+
{
|
|
3017
|
+
"name": "rows",
|
|
3018
|
+
"type": "number",
|
|
3019
|
+
"required": false,
|
|
3020
|
+
"default": "5",
|
|
3021
|
+
"description": "How many lines the loading state shows."
|
|
3022
|
+
}
|
|
3023
|
+
],
|
|
3024
|
+
"file": "src/components/dashboard/rank-list.tsx"
|
|
3025
|
+
},
|
|
3026
|
+
{
|
|
3027
|
+
"name": "Readout",
|
|
3028
|
+
"description": "A cell's number on its text edge: the value and an optional unit word, then a line with its change or a quiet note. The line is always there at `md`, so readouts side by side start their content at the same height.",
|
|
3029
|
+
"props": [
|
|
3030
|
+
{
|
|
3031
|
+
"name": "value",
|
|
3032
|
+
"type": "ReactNode",
|
|
3033
|
+
"required": true,
|
|
3034
|
+
"default": null,
|
|
3035
|
+
"description": "The number, already formatted: \"$60.45\", \"48%\"."
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
"name": "change",
|
|
3039
|
+
"type": "Change",
|
|
3040
|
+
"required": false,
|
|
3041
|
+
"default": null,
|
|
3042
|
+
"description": "The change against the previous period, written as text by `Delta`."
|
|
3043
|
+
},
|
|
3044
|
+
{
|
|
3045
|
+
"name": "detail",
|
|
3046
|
+
"type": "ReactNode",
|
|
3047
|
+
"required": false,
|
|
3048
|
+
"default": null,
|
|
3049
|
+
"description": "A quiet note after the change: \"0.7% of requests\"."
|
|
2560
3050
|
},
|
|
2561
3051
|
{
|
|
2562
3052
|
"name": "label",
|
|
2563
|
-
"type": "
|
|
3053
|
+
"type": "ReactNode",
|
|
2564
3054
|
"required": false,
|
|
2565
3055
|
"default": null,
|
|
2566
|
-
"description": "
|
|
3056
|
+
"description": "A small label above a `sm` readout, when two sit side by side."
|
|
2567
3057
|
},
|
|
2568
3058
|
{
|
|
2569
|
-
"name": "
|
|
2570
|
-
"type": "
|
|
3059
|
+
"name": "loading",
|
|
3060
|
+
"type": "boolean",
|
|
2571
3061
|
"required": false,
|
|
2572
3062
|
"default": null,
|
|
2573
|
-
"description": "
|
|
3063
|
+
"description": "While the number loads: the readout keeps its height."
|
|
2574
3064
|
},
|
|
2575
3065
|
{
|
|
2576
3066
|
"name": "size",
|
|
2577
|
-
"type": "\"md\" | \"
|
|
3067
|
+
"type": "\"md\" | \"sm\"",
|
|
2578
3068
|
"required": false,
|
|
2579
|
-
"default": "
|
|
2580
|
-
"description": "The
|
|
3069
|
+
"default": "md",
|
|
3070
|
+
"description": "The main number of a cell (`md`), or a smaller one beside another (`sm`)."
|
|
2581
3071
|
},
|
|
2582
3072
|
{
|
|
2583
|
-
"name": "
|
|
2584
|
-
"type": "
|
|
3073
|
+
"name": "unit",
|
|
3074
|
+
"type": "ReactNode",
|
|
2585
3075
|
"required": false,
|
|
2586
|
-
"default":
|
|
2587
|
-
"description": "
|
|
3076
|
+
"default": null,
|
|
3077
|
+
"description": "The word after the number, on its baseline: \"tokens\"."
|
|
2588
3078
|
}
|
|
2589
3079
|
],
|
|
2590
|
-
"file": "src/components/
|
|
3080
|
+
"file": "src/components/dashboard/dashboard.tsx"
|
|
2591
3081
|
}
|
|
2592
3082
|
],
|
|
2593
3083
|
"variants": {
|
|
2594
|
-
"
|
|
3084
|
+
"DASHBOARD": {
|
|
3085
|
+
"axes": {
|
|
3086
|
+
"surface": {
|
|
3087
|
+
"grid": "Cells on one surface, split by hairlines like a StatGroup (default)"
|
|
3088
|
+
}
|
|
3089
|
+
},
|
|
3090
|
+
"defaults": {
|
|
3091
|
+
"surface": "grid"
|
|
3092
|
+
}
|
|
3093
|
+
},
|
|
3094
|
+
"READOUT": {
|
|
2595
3095
|
"axes": {
|
|
2596
|
-
"display": {
|
|
2597
|
-
"icon": "A circle that copies a value (default)",
|
|
2598
|
-
"inline": "Mono text in a sentence or a row that copies itself on click",
|
|
2599
|
-
"field": "A read-only pill field: the value in mono and a copy circle inside"
|
|
2600
|
-
},
|
|
2601
|
-
"variant": {
|
|
2602
|
-
"ghost": "Inside fields and wells (default)",
|
|
2603
|
-
"secondary": "On its own"
|
|
2604
|
-
},
|
|
2605
3096
|
"size": {
|
|
2606
|
-
"
|
|
2607
|
-
"sm": "
|
|
2608
|
-
"md": "36px circle: beside md controls",
|
|
2609
|
-
"lg": "40px circle",
|
|
2610
|
-
"xl": "48px circle"
|
|
3097
|
+
"md": "28/32: the cell's main number (default)",
|
|
3098
|
+
"sm": "20/28: a number beside another, under a small label"
|
|
2611
3099
|
}
|
|
2612
3100
|
},
|
|
2613
3101
|
"defaults": {
|
|
2614
|
-
"
|
|
2615
|
-
"variant": "ghost",
|
|
2616
|
-
"size": "sm"
|
|
3102
|
+
"size": "md"
|
|
2617
3103
|
}
|
|
2618
3104
|
}
|
|
2619
3105
|
}
|
|
@@ -5725,7 +6211,7 @@
|
|
|
5725
6211
|
},
|
|
5726
6212
|
{
|
|
5727
6213
|
"name": "ProviderBadge",
|
|
5728
|
-
"description": "A provider's mark on a quiet tile, in the provider's own colours for the theme, or the text colour for a mark its owner draws in black and white; for a provider without a mark, the first letter of its name.",
|
|
6214
|
+
"description": "A provider's mark on a quiet tile, in the provider's own colours for the theme, or the text colour for a mark its owner draws in black and white; for a provider without a mark, the first letter of its name, or an icon for a choice that isn't one provider. A `ProviderMarksProvider` around an app names the mark of providers whose id isn't one, such as custom providers that run vLLM or Ollama.",
|
|
5729
6215
|
"props": [
|
|
5730
6216
|
{
|
|
5731
6217
|
"name": "provider",
|
|
@@ -5741,6 +6227,20 @@
|
|
|
5741
6227
|
"default": null,
|
|
5742
6228
|
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
5743
6229
|
},
|
|
6230
|
+
{
|
|
6231
|
+
"name": "icon",
|
|
6232
|
+
"type": "IconSvgElement",
|
|
6233
|
+
"required": false,
|
|
6234
|
+
"default": null,
|
|
6235
|
+
"description": "An icon for the tile when there is no mark, instead of the first letter: for a choice that isn't one provider, such as any other server."
|
|
6236
|
+
},
|
|
6237
|
+
{
|
|
6238
|
+
"name": "mark",
|
|
6239
|
+
"type": "string | null",
|
|
6240
|
+
"required": false,
|
|
6241
|
+
"default": "true",
|
|
6242
|
+
"description": "The mark to show instead of the provider id's own or the one `ProviderMarksProvider` names, such as `vllm`."
|
|
6243
|
+
},
|
|
5744
6244
|
{
|
|
5745
6245
|
"name": "name",
|
|
5746
6246
|
"type": "string",
|
|
@@ -5774,7 +6274,7 @@
|
|
|
5774
6274
|
"type": "ProviderPickerOption[]",
|
|
5775
6275
|
"required": true,
|
|
5776
6276
|
"default": null,
|
|
5777
|
-
"description": "The providers: id, name, whether the organization has connected it,
|
|
6277
|
+
"description": "The providers: id, name, whether the organization has connected it, a short hint such as its key count, and an icon for a choice without a mark, such as any other server."
|
|
5778
6278
|
},
|
|
5779
6279
|
{
|
|
5780
6280
|
"name": "allLabel",
|
|
@@ -5875,6 +6375,13 @@
|
|
|
5875
6375
|
"default": null,
|
|
5876
6376
|
"description": "Adds “Optional” to the label, for forms where most fields are required."
|
|
5877
6377
|
},
|
|
6378
|
+
{
|
|
6379
|
+
"name": "ordered",
|
|
6380
|
+
"type": "boolean",
|
|
6381
|
+
"required": false,
|
|
6382
|
+
"default": null,
|
|
6383
|
+
"description": "Keeps the providers in the order given instead of A to Z, for a list whose last entry, such as “Other”, must stay last."
|
|
6384
|
+
},
|
|
5878
6385
|
{
|
|
5879
6386
|
"name": "placeholder",
|
|
5880
6387
|
"type": "string",
|
|
@@ -6890,7 +7397,7 @@
|
|
|
6890
7397
|
"type": "boolean",
|
|
6891
7398
|
"required": false,
|
|
6892
7399
|
"default": "false",
|
|
6893
|
-
"description": "The text is still arriving: nothing collapses, and
|
|
7400
|
+
"description": "The text is still arriving: nothing collapses, and each update reads only its last blocks again, so a long reply stays cheap to follow."
|
|
6894
7401
|
},
|
|
6895
7402
|
{
|
|
6896
7403
|
"name": "tone",
|
|
@@ -7360,9 +7867,51 @@
|
|
|
7360
7867
|
"kind": "components",
|
|
7361
7868
|
"import": "@logicplanes/kaeso-ui/playground",
|
|
7362
7869
|
"components": [
|
|
7870
|
+
{
|
|
7871
|
+
"name": "Attachments",
|
|
7872
|
+
"description": "The files sent with a prompt, in a row that wraps: an image as a 64px thumbnail, a PDF, audio or any other file as a pill with its name. In the composer each has a remove button; above a sent prompt they line up at the end, over its bubble.",
|
|
7873
|
+
"props": [
|
|
7874
|
+
{
|
|
7875
|
+
"name": "items",
|
|
7876
|
+
"type": "readonly Attachment[]",
|
|
7877
|
+
"required": true,
|
|
7878
|
+
"default": null,
|
|
7879
|
+
"description": "The files: an id, the name, the media type and, for an image, a `blob:` or `data:` URL to draw it from."
|
|
7880
|
+
},
|
|
7881
|
+
{
|
|
7882
|
+
"name": "align",
|
|
7883
|
+
"type": "\"start\" | \"end\"",
|
|
7884
|
+
"required": false,
|
|
7885
|
+
"default": "start",
|
|
7886
|
+
"description": "Where the row lines up: the start (in the composer) or the end (above a sent prompt)."
|
|
7887
|
+
},
|
|
7888
|
+
{
|
|
7889
|
+
"name": "aria-label",
|
|
7890
|
+
"type": "string",
|
|
7891
|
+
"required": false,
|
|
7892
|
+
"default": null,
|
|
7893
|
+
"description": "The list's accessible name (\"Attachments\" by default)."
|
|
7894
|
+
},
|
|
7895
|
+
{
|
|
7896
|
+
"name": "className",
|
|
7897
|
+
"type": "string",
|
|
7898
|
+
"required": false,
|
|
7899
|
+
"default": null,
|
|
7900
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
7901
|
+
},
|
|
7902
|
+
{
|
|
7903
|
+
"name": "onRemove",
|
|
7904
|
+
"type": "((id: string) => void)",
|
|
7905
|
+
"required": false,
|
|
7906
|
+
"default": null,
|
|
7907
|
+
"description": "Removes a file by its id: a remove button on each thumbnail and pill, named after the file."
|
|
7908
|
+
}
|
|
7909
|
+
],
|
|
7910
|
+
"file": "src/components/playground/attachments.tsx"
|
|
7911
|
+
},
|
|
7363
7912
|
{
|
|
7364
7913
|
"name": "CompareGrid",
|
|
7365
|
-
"description": "Columns side by side to compare models: equal widths of at least 320px, a header, a body that scrolls on its own and a footer each. When the columns don't fit, Previous column and Next column reach the hidden ones. Removing a column is instant, so offer Undo in a toast.",
|
|
7914
|
+
"description": "Columns side by side to compare models: equal widths of at least 320px, a header, a body that scrolls on its own and a footer each. When the columns don't fit, Previous column and Next column reach the hidden ones. A column's body follows its end as content arrives while the reader is there, lets go the moment they scroll up, and follows again when they return to the end or its `followKey` changes. Removing a column is instant, so offer Undo in a toast.",
|
|
7366
7915
|
"props": [
|
|
7367
7916
|
{
|
|
7368
7917
|
"name": "aria-label",
|
|
@@ -7425,15 +7974,22 @@
|
|
|
7425
7974
|
"type": "(() => void)",
|
|
7426
7975
|
"required": false,
|
|
7427
7976
|
"default": null,
|
|
7428
|
-
"description": "Adds a column: a circle
|
|
7977
|
+
"description": "Adds a column: a circle at the end of the last column's header (on a phone with several columns, in the switcher). Focus moves to the new column's header."
|
|
7429
7978
|
}
|
|
7430
7979
|
],
|
|
7431
7980
|
"file": "src/components/playground/compare-grid.tsx"
|
|
7432
7981
|
},
|
|
7433
7982
|
{
|
|
7434
7983
|
"name": "Composer",
|
|
7435
|
-
"description": "The prompt box: a text box that grows with what is written up to `maxRows`, then scrolls, its edge fading where more lines wait; Send, which becomes Stop while a response streams. Enter sends and Shift Enter adds a line (`submitOn`); ⌘ Enter or Ctrl Enter also sends. On a touch screen Enter adds a line and the button sends. A click anywhere in the box, the button row included, puts the cursor in the text.",
|
|
7984
|
+
"description": "The prompt box: a text box that grows with what is written up to `maxRows`, then scrolls, its edge fading where more lines wait; under it a row with the caller's actions at the start and a round Send arrow at the end, which becomes a Stop square while a response streams. Enter sends and Shift Enter adds a line (`submitOn`); ⌘ Enter or Ctrl Enter also sends. On a touch screen Enter adds a line and the button sends. A click anywhere in the box, the button row included, puts the cursor in the text.",
|
|
7436
7985
|
"props": [
|
|
7986
|
+
{
|
|
7987
|
+
"name": "accept",
|
|
7988
|
+
"type": "string",
|
|
7989
|
+
"required": false,
|
|
7990
|
+
"default": null,
|
|
7991
|
+
"description": "The file types the Attach button offers, as an `accept` attribute (`image/*,application/pdf`)."
|
|
7992
|
+
},
|
|
7437
7993
|
{
|
|
7438
7994
|
"name": "actions",
|
|
7439
7995
|
"type": "ReactNode",
|
|
@@ -7448,6 +8004,20 @@
|
|
|
7448
8004
|
"default": null,
|
|
7449
8005
|
"description": "The text box's accessible name (\"Prompt\" by default)."
|
|
7450
8006
|
},
|
|
8007
|
+
{
|
|
8008
|
+
"name": "attachLabel",
|
|
8009
|
+
"type": "string",
|
|
8010
|
+
"required": false,
|
|
8011
|
+
"default": null,
|
|
8012
|
+
"description": "The Attach button's name and tooltip (\"Attach files\" by default)."
|
|
8013
|
+
},
|
|
8014
|
+
{
|
|
8015
|
+
"name": "attachments",
|
|
8016
|
+
"type": "readonly Attachment[]",
|
|
8017
|
+
"required": false,
|
|
8018
|
+
"default": "[]",
|
|
8019
|
+
"description": "Files waiting to go with the prompt, drawn above the text box; with any, Send works without text."
|
|
8020
|
+
},
|
|
7451
8021
|
{
|
|
7452
8022
|
"name": "autoFocus",
|
|
7453
8023
|
"type": "boolean",
|
|
@@ -7512,77 +8082,175 @@
|
|
|
7512
8082
|
"description": "The field name the value is sent under in a form."
|
|
7513
8083
|
},
|
|
7514
8084
|
{
|
|
7515
|
-
"name": "
|
|
7516
|
-
"type": "(() => void)",
|
|
8085
|
+
"name": "onAttach",
|
|
8086
|
+
"type": "((files: File[]) => void)",
|
|
8087
|
+
"required": false,
|
|
8088
|
+
"default": null,
|
|
8089
|
+
"description": "Takes files: an Attach button at the start of the button row, files dropped anywhere on the composer (its outline darkens while they hover) and files pasted into the text box. Check their type and size here and say what was refused."
|
|
8090
|
+
},
|
|
8091
|
+
{
|
|
8092
|
+
"name": "onRemoveAttachment",
|
|
8093
|
+
"type": "((id: string) => void)",
|
|
8094
|
+
"required": false,
|
|
8095
|
+
"default": null,
|
|
8096
|
+
"description": "Removes a waiting file by its id."
|
|
8097
|
+
},
|
|
8098
|
+
{
|
|
8099
|
+
"name": "onStop",
|
|
8100
|
+
"type": "(() => void)",
|
|
8101
|
+
"required": false,
|
|
8102
|
+
"default": null,
|
|
8103
|
+
"description": "Stop: the button while `streaming`."
|
|
8104
|
+
},
|
|
8105
|
+
{
|
|
8106
|
+
"name": "onSubmit",
|
|
8107
|
+
"type": "((value: string) => void)",
|
|
8108
|
+
"required": false,
|
|
8109
|
+
"default": null,
|
|
8110
|
+
"description": "Send: the Send button, Enter in the text box (see `submitOn`), or ⌘ Enter (Ctrl Enter). Not called for a prompt that is empty or only spaces, while disabled, sending or streaming, or while an input method is composing."
|
|
8111
|
+
},
|
|
8112
|
+
{
|
|
8113
|
+
"name": "onValueChange",
|
|
8114
|
+
"type": "((value: string) => void)",
|
|
8115
|
+
"required": false,
|
|
8116
|
+
"default": null,
|
|
8117
|
+
"description": "Called with the message as it is typed."
|
|
8118
|
+
},
|
|
8119
|
+
{
|
|
8120
|
+
"name": "placeholder",
|
|
8121
|
+
"type": "string",
|
|
8122
|
+
"required": false,
|
|
8123
|
+
"default": null,
|
|
8124
|
+
"description": "Text shown while there is no value."
|
|
8125
|
+
},
|
|
8126
|
+
{
|
|
8127
|
+
"name": "size",
|
|
8128
|
+
"type": "\"md\" | \"sm\"",
|
|
8129
|
+
"required": false,
|
|
8130
|
+
"default": "md",
|
|
8131
|
+
"description": "The composer's height."
|
|
8132
|
+
},
|
|
8133
|
+
{
|
|
8134
|
+
"name": "stopLabel",
|
|
8135
|
+
"type": "string",
|
|
8136
|
+
"required": false,
|
|
8137
|
+
"default": null,
|
|
8138
|
+
"description": "The Stop button's name and tooltip, while a response streams (\"Stop\" by default)."
|
|
8139
|
+
},
|
|
8140
|
+
{
|
|
8141
|
+
"name": "streaming",
|
|
8142
|
+
"type": "boolean",
|
|
8143
|
+
"required": false,
|
|
8144
|
+
"default": "false",
|
|
8145
|
+
"description": "A response is arriving: Send becomes Stop. The text box stays editable for the next prompt; Enter waits, and the text box's description says to stop the response to send."
|
|
8146
|
+
},
|
|
8147
|
+
{
|
|
8148
|
+
"name": "submitLabel",
|
|
8149
|
+
"type": "string",
|
|
8150
|
+
"required": false,
|
|
8151
|
+
"default": null,
|
|
8152
|
+
"description": "The Send button's name and tooltip (\"Send\" by default)."
|
|
8153
|
+
},
|
|
8154
|
+
{
|
|
8155
|
+
"name": "submitOn",
|
|
8156
|
+
"type": "\"enter\" | \"mod-enter\"",
|
|
8157
|
+
"required": false,
|
|
8158
|
+
"default": "enter",
|
|
8159
|
+
"description": "The key that sends from the text box. `\"enter\"` (default): Enter sends and Shift Enter adds a line; on a touch screen Enter adds a line and the Send button sends. `\"mod-enter\"`: Enter adds a line and only ⌘ Enter (Ctrl Enter) sends. ⌘ Enter and Ctrl Enter send with either."
|
|
8160
|
+
},
|
|
8161
|
+
{
|
|
8162
|
+
"name": "value",
|
|
8163
|
+
"type": "string",
|
|
8164
|
+
"required": false,
|
|
8165
|
+
"default": null,
|
|
8166
|
+
"description": "The message being written, when you control it."
|
|
8167
|
+
}
|
|
8168
|
+
],
|
|
8169
|
+
"file": "src/components/playground/composer.tsx"
|
|
8170
|
+
},
|
|
8171
|
+
{
|
|
8172
|
+
"name": "MediaResponse",
|
|
8173
|
+
"description": "What an image, speech, sound or video model made, in the place a text response takes: images in a grid of squares, audio in a player a row tall, a video in a 16:9 player, each with Download. While it is made, quiet placeholders of the same size hold the room; a video job shows its progress, the seconds it has taken and Cancel. A stop or a failure reads as in ResponseView.",
|
|
8174
|
+
"props": [
|
|
8175
|
+
{
|
|
8176
|
+
"name": "aria-label",
|
|
8177
|
+
"type": "string",
|
|
8178
|
+
"required": false,
|
|
8179
|
+
"default": null,
|
|
8180
|
+
"description": "The response's accessible name (\"GPT Image 2 response\" in a comparison). Defaults to \"Response\" in the provider's language."
|
|
8181
|
+
},
|
|
8182
|
+
{
|
|
8183
|
+
"name": "className",
|
|
8184
|
+
"type": "string",
|
|
7517
8185
|
"required": false,
|
|
7518
8186
|
"default": null,
|
|
7519
|
-
"description": "
|
|
8187
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
7520
8188
|
},
|
|
7521
8189
|
{
|
|
7522
|
-
"name": "
|
|
7523
|
-
"type": "
|
|
8190
|
+
"name": "error",
|
|
8191
|
+
"type": "string",
|
|
7524
8192
|
"required": false,
|
|
7525
8193
|
"default": null,
|
|
7526
|
-
"description": "
|
|
8194
|
+
"description": "Why it failed, shown under \"No response\" with status \"error\"."
|
|
7527
8195
|
},
|
|
7528
8196
|
{
|
|
7529
|
-
"name": "
|
|
7530
|
-
"type": "
|
|
8197
|
+
"name": "expected",
|
|
8198
|
+
"type": "number",
|
|
7531
8199
|
"required": false,
|
|
7532
|
-
"default":
|
|
7533
|
-
"description": "
|
|
8200
|
+
"default": "1",
|
|
8201
|
+
"description": "How many images to hold room for while they are made."
|
|
7534
8202
|
},
|
|
7535
8203
|
{
|
|
7536
|
-
"name": "
|
|
7537
|
-
"type": "
|
|
8204
|
+
"name": "footer",
|
|
8205
|
+
"type": "ReactNode",
|
|
7538
8206
|
"required": false,
|
|
7539
8207
|
"default": null,
|
|
7540
|
-
"description": "
|
|
8208
|
+
"description": "Under the response, after Retry: its metrics."
|
|
7541
8209
|
},
|
|
7542
8210
|
{
|
|
7543
|
-
"name": "
|
|
7544
|
-
"type": "
|
|
8211
|
+
"name": "items",
|
|
8212
|
+
"type": "readonly MediaItem[]",
|
|
7545
8213
|
"required": false,
|
|
7546
|
-
"default": "
|
|
7547
|
-
"description": "The
|
|
8214
|
+
"default": "[]",
|
|
8215
|
+
"description": "The files: where to show or play each from (`blob:`, `data:` or a same-origin link), the file name it downloads under, and a label in the reader's language that Download and screen readers say."
|
|
7548
8216
|
},
|
|
7549
8217
|
{
|
|
7550
|
-
"name": "
|
|
7551
|
-
"type": "
|
|
8218
|
+
"name": "kind",
|
|
8219
|
+
"type": "\"image\" | \"audio\" | \"video\"",
|
|
7552
8220
|
"required": false,
|
|
7553
|
-
"default":
|
|
7554
|
-
"description": "
|
|
8221
|
+
"default": "image",
|
|
8222
|
+
"description": "What the model makes: images, audio or a video."
|
|
7555
8223
|
},
|
|
7556
8224
|
{
|
|
7557
|
-
"name": "
|
|
7558
|
-
"type": "
|
|
8225
|
+
"name": "onCancel",
|
|
8226
|
+
"type": "(() => void)",
|
|
7559
8227
|
"required": false,
|
|
7560
|
-
"default":
|
|
7561
|
-
"description": "
|
|
8228
|
+
"default": null,
|
|
8229
|
+
"description": "Cancels a running video job: a Cancel button under its progress."
|
|
7562
8230
|
},
|
|
7563
8231
|
{
|
|
7564
|
-
"name": "
|
|
7565
|
-
"type": "
|
|
8232
|
+
"name": "onRetry",
|
|
8233
|
+
"type": "(() => void)",
|
|
7566
8234
|
"required": false,
|
|
7567
8235
|
"default": null,
|
|
7568
|
-
"description": "
|
|
8236
|
+
"description": "Sends the turn again: a Retry button after a stop or a failure, and a quiet Retry circle under a finished response."
|
|
7569
8237
|
},
|
|
7570
8238
|
{
|
|
7571
|
-
"name": "
|
|
7572
|
-
"type": "
|
|
8239
|
+
"name": "progress",
|
|
8240
|
+
"type": "number | null",
|
|
7573
8241
|
"required": false,
|
|
7574
|
-
"default":
|
|
7575
|
-
"description": "
|
|
8242
|
+
"default": null,
|
|
8243
|
+
"description": "A video job's progress from 0 to 100, when its provider says; the bar pulses quietly while it doesn't."
|
|
7576
8244
|
},
|
|
7577
8245
|
{
|
|
7578
|
-
"name": "
|
|
7579
|
-
"type": "
|
|
8246
|
+
"name": "status",
|
|
8247
|
+
"type": "MediaStatus",
|
|
7580
8248
|
"required": false,
|
|
7581
|
-
"default":
|
|
7582
|
-
"description": "
|
|
8249
|
+
"default": "done",
|
|
8250
|
+
"description": "Where it stands: waiting, running, done, stopped or failed."
|
|
7583
8251
|
}
|
|
7584
8252
|
],
|
|
7585
|
-
"file": "src/components/playground/
|
|
8253
|
+
"file": "src/components/playground/media-response.tsx"
|
|
7586
8254
|
},
|
|
7587
8255
|
{
|
|
7588
8256
|
"name": "ModelPicker",
|
|
@@ -7776,7 +8444,7 @@
|
|
|
7776
8444
|
},
|
|
7777
8445
|
{
|
|
7778
8446
|
"name": "ParameterPanel",
|
|
7779
|
-
"description": "A request's parameters: system instructions, temperature, top P, maximum output tokens, and, for a model that reasons, reasoning effort and summary. Unset values are the model's defaults; Reset returns to them (instructions stay). With a `trigger`, it opens in a 320px popover with a Close button beside its title, and focus stays inside until it closes.",
|
|
8447
|
+
"description": "A request's parameters: system instructions, temperature, top P, maximum output tokens, and, for a model that reasons, reasoning effort and summary; for media models, the image size, count and quality, the voice, the length in seconds and whether a transcript is in English. Unset values are the model's defaults; Reset returns to them (instructions stay). With a `trigger`, it opens in a 320px popover with a Close button beside its title, and focus stays inside until it closes.",
|
|
7780
8448
|
"props": [
|
|
7781
8449
|
{
|
|
7782
8450
|
"name": "onValueChange",
|
|
@@ -7790,7 +8458,7 @@
|
|
|
7790
8458
|
"type": "PlaygroundParameters",
|
|
7791
8459
|
"required": true,
|
|
7792
8460
|
"default": null,
|
|
7793
|
-
"description": "The parameters, such as temperature and effort."
|
|
8461
|
+
"description": "The parameters, such as temperature and effort, image size and voice."
|
|
7794
8462
|
},
|
|
7795
8463
|
{
|
|
7796
8464
|
"name": "align",
|
|
@@ -7827,6 +8495,20 @@
|
|
|
7827
8495
|
"default": "false",
|
|
7828
8496
|
"description": "Turns off every parameter."
|
|
7829
8497
|
},
|
|
8498
|
+
{
|
|
8499
|
+
"name": "duration",
|
|
8500
|
+
"type": "boolean",
|
|
8501
|
+
"required": false,
|
|
8502
|
+
"default": "false",
|
|
8503
|
+
"description": "Shows the length in seconds, for sound effect and music models."
|
|
8504
|
+
},
|
|
8505
|
+
{
|
|
8506
|
+
"name": "image",
|
|
8507
|
+
"type": "ImageParameterOptions",
|
|
8508
|
+
"required": false,
|
|
8509
|
+
"default": null,
|
|
8510
|
+
"description": "An image model's options: the size, how many images per prompt (up to four shown) and its qualities."
|
|
8511
|
+
},
|
|
7830
8512
|
{
|
|
7831
8513
|
"name": "instructions",
|
|
7832
8514
|
"type": "boolean",
|
|
@@ -7884,70 +8566,42 @@
|
|
|
7884
8566
|
"description": "The side the popover opens on."
|
|
7885
8567
|
},
|
|
7886
8568
|
{
|
|
7887
|
-
"name": "
|
|
7888
|
-
"type": "
|
|
8569
|
+
"name": "text",
|
|
8570
|
+
"type": "boolean",
|
|
7889
8571
|
"required": false,
|
|
7890
|
-
"default":
|
|
7891
|
-
"description": "
|
|
8572
|
+
"default": "true",
|
|
8573
|
+
"description": "Shows the text parameters, such as the maximum output tokens (true by default); off when no text model is chosen."
|
|
7892
8574
|
},
|
|
7893
8575
|
{
|
|
7894
|
-
"name": "
|
|
7895
|
-
"type": "
|
|
8576
|
+
"name": "title",
|
|
8577
|
+
"type": "string",
|
|
7896
8578
|
"required": false,
|
|
7897
8579
|
"default": null,
|
|
7898
|
-
"description": "The
|
|
7899
|
-
}
|
|
7900
|
-
],
|
|
7901
|
-
"file": "src/components/playground/parameter-panel.tsx"
|
|
7902
|
-
},
|
|
7903
|
-
{
|
|
7904
|
-
"name": "PromptSuggestions",
|
|
7905
|
-
"description": "Example prompts before a thread starts: up to three pill rows of secondary text that take a quiet fill on hover. No outlines, no icons; a prompt too long for its row shows in full in a tooltip. Leave them out once a prompt is sent.",
|
|
7906
|
-
"props": [
|
|
7907
|
-
{
|
|
7908
|
-
"name": "onSelect",
|
|
7909
|
-
"type": "(prompt: string) => void",
|
|
7910
|
-
"required": true,
|
|
7911
|
-
"default": null,
|
|
7912
|
-
"description": "Puts the prompt in the composer (or sends it). The list usually goes away then, so move focus to the composer."
|
|
7913
|
-
},
|
|
7914
|
-
{
|
|
7915
|
-
"name": "suggestions",
|
|
7916
|
-
"type": "string[]",
|
|
7917
|
-
"required": true,
|
|
7918
|
-
"default": null,
|
|
7919
|
-
"description": "Up to three short prompts; more are left out."
|
|
7920
|
-
},
|
|
7921
|
-
{
|
|
7922
|
-
"name": "align",
|
|
7923
|
-
"type": "\"start\" | \"center\"",
|
|
7924
|
-
"required": false,
|
|
7925
|
-
"default": "start",
|
|
7926
|
-
"description": "Aligns the suggestions at the start or in the center."
|
|
8580
|
+
"description": "The popover's title, also its name. Defaults to \"Parameters\" in the provider's language."
|
|
7927
8581
|
},
|
|
7928
8582
|
{
|
|
7929
|
-
"name": "
|
|
7930
|
-
"type": "
|
|
8583
|
+
"name": "translate",
|
|
8584
|
+
"type": "boolean",
|
|
7931
8585
|
"required": false,
|
|
7932
|
-
"default":
|
|
7933
|
-
"description": "
|
|
8586
|
+
"default": "false",
|
|
8587
|
+
"description": "Shows whether a transcript is as spoken or in English, for transcription models that translate."
|
|
7934
8588
|
},
|
|
7935
8589
|
{
|
|
7936
|
-
"name": "
|
|
7937
|
-
"type": "string",
|
|
8590
|
+
"name": "trigger",
|
|
8591
|
+
"type": "ReactElement<unknown, string | JSXElementConstructor<any>>",
|
|
7938
8592
|
"required": false,
|
|
7939
8593
|
"default": null,
|
|
7940
|
-
"description": "
|
|
8594
|
+
"description": "The button that opens the parameters in a popover; without one, the parameters sit in the page."
|
|
7941
8595
|
},
|
|
7942
8596
|
{
|
|
7943
|
-
"name": "
|
|
7944
|
-
"type": "string",
|
|
8597
|
+
"name": "voices",
|
|
8598
|
+
"type": "boolean | readonly string[]",
|
|
7945
8599
|
"required": false,
|
|
7946
|
-
"default":
|
|
7947
|
-
"description": "
|
|
8600
|
+
"default": "false",
|
|
8601
|
+
"description": "A speech model's voices to choose from, or true for a field that takes any voice name or id."
|
|
7948
8602
|
}
|
|
7949
8603
|
],
|
|
7950
|
-
"file": "src/components/playground/
|
|
8604
|
+
"file": "src/components/playground/parameter-panel.tsx"
|
|
7951
8605
|
},
|
|
7952
8606
|
{
|
|
7953
8607
|
"name": "Reasoning",
|
|
@@ -8035,7 +8689,7 @@
|
|
|
8035
8689
|
},
|
|
8036
8690
|
{
|
|
8037
8691
|
"name": "ResponseMetrics",
|
|
8038
|
-
"description": "A response's numbers on one line: time to first token, total time, tokens (\"412 in · 168 out\",
|
|
8692
|
+
"description": "A response's numbers on one line: time to first token, total time, tokens (\"412 in · 168 out\"), reasoning tokens, cost with the decimals it was given, as request logs show it. Tabular figures, labels in tertiary text, the same gap between items. Only what is known is shown: while `live` that is the first token and a quietly counting Total, and the rest joins at the end, so no placeholder or empty room sits between items. Empty before a response, keeping its height.",
|
|
8039
8693
|
"props": [
|
|
8040
8694
|
{
|
|
8041
8695
|
"name": "className",
|
|
@@ -8051,6 +8705,13 @@
|
|
|
8051
8705
|
"default": null,
|
|
8052
8706
|
"description": "USD as a decimal string, shown with its own decimals (two at least, six at most): \"0.004213\" reads \"$0.004213\", \"1.2311\" reads \"$1.2311\", zero reads \"$0\" and less than a millionth reads \"< $0.000001\"."
|
|
8053
8707
|
},
|
|
8708
|
+
{
|
|
8709
|
+
"name": "costKnown",
|
|
8710
|
+
"type": "boolean",
|
|
8711
|
+
"required": false,
|
|
8712
|
+
"default": "true",
|
|
8713
|
+
"description": "False when the model has no price for what it made: the cost reads \"Unknown\" (true by default)."
|
|
8714
|
+
},
|
|
8054
8715
|
{
|
|
8055
8716
|
"name": "duration",
|
|
8056
8717
|
"type": "number | null",
|
|
@@ -8070,7 +8731,7 @@
|
|
|
8070
8731
|
"type": "boolean",
|
|
8071
8732
|
"required": false,
|
|
8072
8733
|
"default": "false",
|
|
8073
|
-
"description": "A response is arriving:
|
|
8734
|
+
"description": "A response is arriving: Total counts up from `startedAt`, and an unknown cost isn't called Unknown yet."
|
|
8074
8735
|
},
|
|
8075
8736
|
{
|
|
8076
8737
|
"name": "outputTokens",
|
|
@@ -8079,19 +8740,12 @@
|
|
|
8079
8740
|
"default": null,
|
|
8080
8741
|
"description": "The tokens received, once known."
|
|
8081
8742
|
},
|
|
8082
|
-
{
|
|
8083
|
-
"name": "reasoning",
|
|
8084
|
-
"type": "boolean",
|
|
8085
|
-
"required": false,
|
|
8086
|
-
"default": null,
|
|
8087
|
-
"description": "The model reasons: while `live`, the reasoning item waits with a placeholder."
|
|
8088
|
-
},
|
|
8089
8743
|
{
|
|
8090
8744
|
"name": "reasoningTokens",
|
|
8091
8745
|
"type": "number | null",
|
|
8092
8746
|
"required": false,
|
|
8093
8747
|
"default": null,
|
|
8094
|
-
"description": "Of the output tokens, those spent reasoning. Shown when
|
|
8748
|
+
"description": "Of the output tokens, those spent reasoning. Shown when the provider reported them."
|
|
8095
8749
|
},
|
|
8096
8750
|
{
|
|
8097
8751
|
"name": "size",
|
|
@@ -8119,7 +8773,7 @@
|
|
|
8119
8773
|
},
|
|
8120
8774
|
{
|
|
8121
8775
|
"name": "ResponseView",
|
|
8122
|
-
"description": "A model's response as it arrives:
|
|
8776
|
+
"description": "A model's response as it arrives: nothing until the first token, then Markdown text for reading (15/22) that grows as it streams; the reasoning summary in a \"Thinking\" disclosure (closed by default, live while it streams); and calm states for a stop, a cut-off reply or a failure, which shows its error in place. Text sits 12px in, code and tables on the edge; screen readers hear when a response finishes or stops.",
|
|
8123
8777
|
"props": [
|
|
8124
8778
|
{
|
|
8125
8779
|
"name": "aria-label",
|
|
@@ -8154,7 +8808,7 @@
|
|
|
8154
8808
|
"type": "ReactNode",
|
|
8155
8809
|
"required": false,
|
|
8156
8810
|
"default": null,
|
|
8157
|
-
"description": "Under the response, on
|
|
8811
|
+
"description": "Under the response, after Copy and Retry on their row: its metrics."
|
|
8158
8812
|
},
|
|
8159
8813
|
{
|
|
8160
8814
|
"name": "incompleteReason",
|
|
@@ -8175,7 +8829,7 @@
|
|
|
8175
8829
|
"type": "(() => void)",
|
|
8176
8830
|
"required": false,
|
|
8177
8831
|
"default": null,
|
|
8178
|
-
"description": "Sends the turn again: a Retry button after a stop, a cut-off reply or an error."
|
|
8832
|
+
"description": "Sends the turn again: a Retry button after a stop, a cut-off reply or an error, and a quiet Retry circle under a finished reply."
|
|
8179
8833
|
},
|
|
8180
8834
|
{
|
|
8181
8835
|
"name": "reasoning",
|
|
@@ -8238,7 +8892,7 @@
|
|
|
8238
8892
|
},
|
|
8239
8893
|
{
|
|
8240
8894
|
"name": "UserMessage",
|
|
8241
|
-
"description": "A person's turn: their prompt
|
|
8895
|
+
"description": "A person's turn: their prompt in a bubble on a quiet fill at the end of the line, so it reads apart from the response that starts at the other edge. A long prompt shows its first lines until \"Show all\", a disclosure button under them.",
|
|
8242
8896
|
"props": [
|
|
8243
8897
|
{
|
|
8244
8898
|
"name": "children",
|
|
@@ -8254,6 +8908,13 @@
|
|
|
8254
8908
|
"default": null,
|
|
8255
8909
|
"description": "The message's accessible name. Defaults to \"Prompt\" in the provider's language."
|
|
8256
8910
|
},
|
|
8911
|
+
{
|
|
8912
|
+
"name": "attachments",
|
|
8913
|
+
"type": "readonly Attachment[]",
|
|
8914
|
+
"required": false,
|
|
8915
|
+
"default": "[]",
|
|
8916
|
+
"description": "The files sent with the prompt, above its bubble: images as thumbnails, other files by name."
|
|
8917
|
+
},
|
|
8257
8918
|
{
|
|
8258
8919
|
"name": "className",
|
|
8259
8920
|
"type": "string",
|
|
@@ -8273,6 +8934,17 @@
|
|
|
8273
8934
|
}
|
|
8274
8935
|
],
|
|
8275
8936
|
"variants": {
|
|
8937
|
+
"ATTACHMENTS": {
|
|
8938
|
+
"axes": {
|
|
8939
|
+
"align": {
|
|
8940
|
+
"start": "At the start of the line: in the composer, above the prompt (default)",
|
|
8941
|
+
"end": "At the end of the line: above a sent prompt's bubble"
|
|
8942
|
+
}
|
|
8943
|
+
},
|
|
8944
|
+
"defaults": {
|
|
8945
|
+
"align": "start"
|
|
8946
|
+
}
|
|
8947
|
+
},
|
|
8276
8948
|
"COMPARE_GRID": {
|
|
8277
8949
|
"axes": {
|
|
8278
8950
|
"divider": {
|
|
@@ -8287,14 +8959,26 @@
|
|
|
8287
8959
|
"COMPOSER": {
|
|
8288
8960
|
"axes": {
|
|
8289
8961
|
"size": {
|
|
8290
|
-
"md": "Text 14/20, 8px around the buttons; the outline concentric with them (16 + 8) (default)",
|
|
8291
|
-
"sm": "The same box starting one line tall: a follow-up field under a thread"
|
|
8962
|
+
"md": "Text 14/20 starting two lines tall, 8px around the buttons; the outline concentric with them (16 + 8) (default)",
|
|
8963
|
+
"sm": "The same box starting one line tall: a chat's prompt box, a follow-up field under a thread"
|
|
8292
8964
|
}
|
|
8293
8965
|
},
|
|
8294
8966
|
"defaults": {
|
|
8295
8967
|
"size": "md"
|
|
8296
8968
|
}
|
|
8297
8969
|
},
|
|
8970
|
+
"MEDIA_RESPONSE": {
|
|
8971
|
+
"axes": {
|
|
8972
|
+
"kind": {
|
|
8973
|
+
"image": "Images in a grid of squares, two across, each with Download (default)",
|
|
8974
|
+
"audio": "One audio player a row tall, with Download",
|
|
8975
|
+
"video": "A 16:9 video player; while the job runs, its progress and Cancel"
|
|
8976
|
+
}
|
|
8977
|
+
},
|
|
8978
|
+
"defaults": {
|
|
8979
|
+
"kind": "image"
|
|
8980
|
+
}
|
|
8981
|
+
},
|
|
8298
8982
|
"MODEL_PICKER": {
|
|
8299
8983
|
"axes": {
|
|
8300
8984
|
"appearance": {
|
|
@@ -8317,17 +9001,6 @@
|
|
|
8317
9001
|
"layout": "popover"
|
|
8318
9002
|
}
|
|
8319
9003
|
},
|
|
8320
|
-
"PROMPT_SUGGESTIONS": {
|
|
8321
|
-
"axes": {
|
|
8322
|
-
"align": {
|
|
8323
|
-
"start": "Rows the composer's width, their text on its text (default)",
|
|
8324
|
-
"center": "Centered under an empty thread's title"
|
|
8325
|
-
}
|
|
8326
|
-
},
|
|
8327
|
-
"defaults": {
|
|
8328
|
-
"align": "start"
|
|
8329
|
-
}
|
|
8330
|
-
},
|
|
8331
9004
|
"REASONING": {
|
|
8332
9005
|
"axes": {
|
|
8333
9006
|
"state": {
|
|
@@ -8710,6 +9383,13 @@
|
|
|
8710
9383
|
"default": null,
|
|
8711
9384
|
"description": "Small text above the title, e.g. “What's new in Kaeso”."
|
|
8712
9385
|
},
|
|
9386
|
+
{
|
|
9387
|
+
"name": "flush",
|
|
9388
|
+
"type": "boolean",
|
|
9389
|
+
"required": false,
|
|
9390
|
+
"default": null,
|
|
9391
|
+
"description": "Drops the rounded corners and outline and fills the height it is given, cropping to its shape, for artwork that meets the edges of the surface it sits in, such as an `Announcement`."
|
|
9392
|
+
},
|
|
8713
9393
|
{
|
|
8714
9394
|
"name": "shape",
|
|
8715
9395
|
"type": "\"banner\" | \"wide\"",
|
|
@@ -9834,6 +10514,55 @@
|
|
|
9834
10514
|
"kind": "components",
|
|
9835
10515
|
"import": "@logicplanes/kaeso-ui/stat",
|
|
9836
10516
|
"components": [
|
|
10517
|
+
{
|
|
10518
|
+
"name": "Delta",
|
|
10519
|
+
"description": "A change written as text, \"↑16%\", in the success or danger text color only when one direction is better, and said as \"better\" or \"worse\" to screen readers. No pill: it sits beside a quiet note such as \"vs. prior 30 days\".",
|
|
10520
|
+
"props": [
|
|
10521
|
+
{
|
|
10522
|
+
"name": "value",
|
|
10523
|
+
"type": "number",
|
|
10524
|
+
"required": true,
|
|
10525
|
+
"default": null,
|
|
10526
|
+
"description": "The change as a fraction: 0.16 for 16% more, -0.04 for 4% less."
|
|
10527
|
+
},
|
|
10528
|
+
{
|
|
10529
|
+
"name": "better",
|
|
10530
|
+
"type": "\"none\" | \"up\" | \"down\"",
|
|
10531
|
+
"required": false,
|
|
10532
|
+
"default": "up",
|
|
10533
|
+
"description": "Which direction is good: `up` by default, `down` for errors and latency, `none` for a number such as requests or cost where more is neither good nor bad. A change of `none` is written in the secondary text color and says nothing to screen readers about better or worse."
|
|
10534
|
+
},
|
|
10535
|
+
{
|
|
10536
|
+
"name": "className",
|
|
10537
|
+
"type": "string",
|
|
10538
|
+
"required": false,
|
|
10539
|
+
"default": null,
|
|
10540
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
10541
|
+
}
|
|
10542
|
+
],
|
|
10543
|
+
"file": "src/components/stat/delta.tsx"
|
|
10544
|
+
},
|
|
10545
|
+
{
|
|
10546
|
+
"name": "RollingNumber",
|
|
10547
|
+
"description": "A formatted number whose digits roll to their new value when it changes, each digit a column sliding to its place, and characters that join it (the fifth digit of 10,000) drop in. It sits still on first paint, and with reduced motion the digits change in place. The page's text stays the value itself, for screen readers, tests and copying.",
|
|
10548
|
+
"props": [
|
|
10549
|
+
{
|
|
10550
|
+
"name": "value",
|
|
10551
|
+
"type": "string",
|
|
10552
|
+
"required": true,
|
|
10553
|
+
"default": null,
|
|
10554
|
+
"description": "The number, already formatted: \"59,415\", \"$62.19\", \"137.1M\"."
|
|
10555
|
+
},
|
|
10556
|
+
{
|
|
10557
|
+
"name": "className",
|
|
10558
|
+
"type": "string",
|
|
10559
|
+
"required": false,
|
|
10560
|
+
"default": null,
|
|
10561
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
10562
|
+
}
|
|
10563
|
+
],
|
|
10564
|
+
"file": "src/components/stat/rolling-number.tsx"
|
|
10565
|
+
},
|
|
9837
10566
|
{
|
|
9838
10567
|
"name": "Stat",
|
|
9839
10568
|
"description": "A number. Plain, it is a big number followed by its word, no box, as on a usage page. As a `tile` (`variant=\"tile\"`), it is one metric of a dashboard row in a `StatGroup`: its label, the number, the change against the previous period and the trend.",
|
|
@@ -9847,10 +10576,10 @@
|
|
|
9847
10576
|
},
|
|
9848
10577
|
{
|
|
9849
10578
|
"name": "change",
|
|
9850
|
-
"type": "{ value: number; better?: \"up\" | \"down\"; }",
|
|
10579
|
+
"type": "{ value: number; better?: \"none\" | \"up\" | \"down\"; }",
|
|
9851
10580
|
"required": false,
|
|
9852
10581
|
"default": null,
|
|
9853
|
-
"description": "The change against the previous period, as a fraction (0.12 is +12%). `better` says which direction is good: errors are better down.
|
|
10582
|
+
"description": "The change against the previous period, as a fraction (0.12 is +12%). `better` says which direction is good: errors are better down, and `none` keeps a number such as cost neutral. It is written as text by `Delta`: green or red, and \"better\" or \"worse\" for screen readers."
|
|
9854
10583
|
},
|
|
9855
10584
|
{
|
|
9856
10585
|
"name": "className",
|
|
@@ -9962,6 +10691,20 @@
|
|
|
9962
10691
|
}
|
|
9963
10692
|
],
|
|
9964
10693
|
"variants": {
|
|
10694
|
+
"DELTA": {
|
|
10695
|
+
"axes": {
|
|
10696
|
+
"tone": {
|
|
10697
|
+
"better": "The change goes the way people want",
|
|
10698
|
+
"worse": "The change goes the wrong way",
|
|
10699
|
+
"flat": "No change, or a change with no better side"
|
|
10700
|
+
}
|
|
10701
|
+
},
|
|
10702
|
+
"defaults": {}
|
|
10703
|
+
},
|
|
10704
|
+
"ROLLING_NUMBER": {
|
|
10705
|
+
"axes": {},
|
|
10706
|
+
"defaults": {}
|
|
10707
|
+
},
|
|
9965
10708
|
"STAT": {
|
|
9966
10709
|
"axes": {
|
|
9967
10710
|
"variant": {
|
|
@@ -10576,7 +11319,7 @@
|
|
|
10576
11319
|
"components": [
|
|
10577
11320
|
{
|
|
10578
11321
|
"name": "ThemeImage",
|
|
10579
|
-
"description": "
|
|
11322
|
+
"description": "A drawing on a transparent ground made twice, once for each theme, such as a diagram: it follows the site's theme setting, not only the system's, prints the light one and has no outline.",
|
|
10580
11323
|
"props": [
|
|
10581
11324
|
{
|
|
10582
11325
|
"name": "alt",
|
|
@@ -10710,6 +11453,62 @@
|
|
|
10710
11453
|
"kind": "components",
|
|
10711
11454
|
"import": "@logicplanes/kaeso-ui/thumbnail",
|
|
10712
11455
|
"components": [
|
|
11456
|
+
{
|
|
11457
|
+
"name": "MediaView",
|
|
11458
|
+
"description": "An image, an audio clip, a video or a file someone sent or a model made, with a line that names it and a download: an image is a thumbnail that opens to the whole image in place, audio and video play in the browser's own player.",
|
|
11459
|
+
"props": [
|
|
11460
|
+
{
|
|
11461
|
+
"name": "label",
|
|
11462
|
+
"type": "string",
|
|
11463
|
+
"required": true,
|
|
11464
|
+
"default": null,
|
|
11465
|
+
"description": "What the file is or shows, in words: the caption, the image's text alternative and the player's accessible name."
|
|
11466
|
+
},
|
|
11467
|
+
{
|
|
11468
|
+
"name": "src",
|
|
11469
|
+
"type": "string",
|
|
11470
|
+
"required": true,
|
|
11471
|
+
"default": null,
|
|
11472
|
+
"description": "The file's address: a data: URL for an image, a blob: URL for audio and video where the content security policy allows no other."
|
|
11473
|
+
},
|
|
11474
|
+
{
|
|
11475
|
+
"name": "className",
|
|
11476
|
+
"type": "string",
|
|
11477
|
+
"required": false,
|
|
11478
|
+
"default": null,
|
|
11479
|
+
"description": "Classes for the layout of the outer element: margin, width and placement, never its look."
|
|
11480
|
+
},
|
|
11481
|
+
{
|
|
11482
|
+
"name": "detail",
|
|
11483
|
+
"type": "string",
|
|
11484
|
+
"required": false,
|
|
11485
|
+
"default": null,
|
|
11486
|
+
"description": "What the file is, after its name: its format, dimensions and size."
|
|
11487
|
+
},
|
|
11488
|
+
{
|
|
11489
|
+
"name": "download",
|
|
11490
|
+
"type": "string",
|
|
11491
|
+
"required": false,
|
|
11492
|
+
"default": null,
|
|
11493
|
+
"description": "The address the download saves from, when it isn't the one shown or played, such as a blob: URL beside an image's data: URL."
|
|
11494
|
+
},
|
|
11495
|
+
{
|
|
11496
|
+
"name": "filename",
|
|
11497
|
+
"type": "string",
|
|
11498
|
+
"required": false,
|
|
11499
|
+
"default": null,
|
|
11500
|
+
"description": "The name the download saves under; without it the browser chooses one."
|
|
11501
|
+
},
|
|
11502
|
+
{
|
|
11503
|
+
"name": "kind",
|
|
11504
|
+
"type": "\"file\" | \"image\" | \"audio\" | \"video\"",
|
|
11505
|
+
"required": false,
|
|
11506
|
+
"default": "image",
|
|
11507
|
+
"description": "What the file is: an image, audio, a video, or a file that can only be downloaded."
|
|
11508
|
+
}
|
|
11509
|
+
],
|
|
11510
|
+
"file": "src/components/thumbnail/media-view.tsx"
|
|
11511
|
+
},
|
|
10713
11512
|
{
|
|
10714
11513
|
"name": "Thumbnail",
|
|
10715
11514
|
"description": "A square image someone sent, such as a photo in a conversation: cropped to fill, on a well with radius 14; when it can't load, its text alternative shows instead.",
|
|
@@ -10747,6 +11546,19 @@
|
|
|
10747
11546
|
}
|
|
10748
11547
|
],
|
|
10749
11548
|
"variants": {
|
|
11549
|
+
"MEDIA_VIEW": {
|
|
11550
|
+
"axes": {
|
|
11551
|
+
"kind": {
|
|
11552
|
+
"image": "A thumbnail that opens to the whole image in place, and closes again (default)",
|
|
11553
|
+
"audio": "The browser's audio player",
|
|
11554
|
+
"video": "The browser's video player on a well",
|
|
11555
|
+
"file": "Nothing to play: the name, the detail and the download alone"
|
|
11556
|
+
}
|
|
11557
|
+
},
|
|
11558
|
+
"defaults": {
|
|
11559
|
+
"kind": "image"
|
|
11560
|
+
}
|
|
11561
|
+
},
|
|
10750
11562
|
"THUMBNAIL": {
|
|
10751
11563
|
"axes": {
|
|
10752
11564
|
"size": {
|