@logicplanes/kaeso-ui 0.7.5-rc.8 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -4
- package/ai/component-guides.md +106 -8
- package/ai/component-registry.json +207 -55
- package/ai/component-registry.md +72 -44
- package/ai/icons.md +1 -1
- package/ai/tokens.md +18 -1
- package/dist/chunks/{app-frame-BZH_ATS-.js → app-frame-COfWg7wS.js} +10 -10
- package/dist/chunks/app-frame-COfWg7wS.js.map +1 -0
- package/dist/chunks/arrow-focus-D9q8rMct.js.map +1 -1
- package/dist/chunks/{avatar-CXhUuE1G.js → avatar-C4r7x_uJ.js} +16 -15
- package/dist/chunks/avatar-C4r7x_uJ.js.map +1 -0
- package/dist/chunks/avatar-CQNbSj8X.js +5 -0
- package/dist/chunks/avatar-CQNbSj8X.js.map +1 -0
- package/dist/chunks/{badge-Be95hMkq.js → badge-CU9K-wA1.js} +3 -3
- package/dist/chunks/badge-CU9K-wA1.js.map +1 -0
- package/dist/chunks/{banner-_XNQ5JDU.js → banner-R5GIFExf.js} +5 -5
- package/dist/chunks/banner-R5GIFExf.js.map +1 -0
- package/dist/chunks/{button-IDx51cLu.js → button-CXdEDVSI.js} +31 -30
- package/dist/chunks/button-CXdEDVSI.js.map +1 -0
- package/dist/chunks/{button-group-B5rYVJZk.js → button-group-CbzjByVu.js} +5 -5
- package/dist/chunks/button-group-CbzjByVu.js.map +1 -0
- package/dist/chunks/{calendar-D7Sbcrq-.js → calendar-BpY2J5Qf.js} +2 -2
- package/dist/chunks/calendar-BpY2J5Qf.js.map +1 -0
- package/dist/chunks/{checkbox-CzHNM_1C.js → checkbox-D2MWvFlH.js} +5 -5
- package/dist/chunks/checkbox-D2MWvFlH.js.map +1 -0
- package/dist/chunks/{cn-DQJRk8Ly.js → cn-Cim5WXyu.js} +7 -2
- package/dist/chunks/cn-Cim5WXyu.js.map +1 -0
- package/dist/chunks/{code-bpAOiAx9.js → code-CGPiBqzu.js} +2 -2
- package/dist/chunks/code-CGPiBqzu.js.map +1 -0
- package/dist/chunks/{code-block-DgACR0FD.js → code-block-Dkedqh94.js} +6 -6
- package/dist/chunks/code-block-Dkedqh94.js.map +1 -0
- package/dist/chunks/{code-block-CmkCi6IL.js → code-block-RYsP7P22.js} +7 -7
- package/dist/chunks/code-block-RYsP7P22.js.map +1 -0
- package/dist/chunks/{collapsible-ivslPUbI.js → collapsible-BwQBF1wX.js} +3 -3
- package/dist/chunks/collapsible-BwQBF1wX.js.map +1 -0
- package/dist/chunks/{combobox-Co0aJbVi.js → combobox-DlIGL6fh.js} +7 -7
- package/dist/chunks/combobox-DlIGL6fh.js.map +1 -0
- package/dist/chunks/{command-list-DuUjJqji.js → command-list-D7wBlyDt.js} +5 -5
- package/dist/chunks/command-list-D7wBlyDt.js.map +1 -0
- package/dist/chunks/{command-palette-3Q-vDMw2.js → command-palette-DhHS-XXz.js} +6 -6
- package/dist/chunks/command-palette-DhHS-XXz.js.map +1 -0
- package/dist/chunks/context-B2nNL7Im.js.map +1 -1
- package/dist/chunks/{copy-button-rX4M-GJO.js → copy-button-BjfGRgZi.js} +5 -5
- package/dist/chunks/copy-button-BjfGRgZi.js.map +1 -0
- package/dist/chunks/{core-hhm1-i4Y.js → core-DZ_ZGFjd.js} +147 -132
- package/dist/chunks/core-DZ_ZGFjd.js.map +1 -0
- package/dist/chunks/{dashboard-DQuMF9Tq.js → dashboard-BOeVNKwA.js} +8 -8
- package/dist/chunks/dashboard-BOeVNKwA.js.map +1 -0
- package/dist/chunks/data-table-DLqzrTF8.js +715 -0
- package/dist/chunks/data-table-DLqzrTF8.js.map +1 -0
- package/dist/chunks/{date-picker-eA13V1zj.js → date-picker-CiLNpsSh.js} +27 -26
- package/dist/chunks/{date-picker-eA13V1zj.js.map → date-picker-CiLNpsSh.js.map} +1 -1
- package/dist/chunks/{date-popup-DRANGI9L.js → date-popup-Bp0d8U6H.js} +4 -4
- package/dist/chunks/date-popup-Bp0d8U6H.js.map +1 -0
- package/dist/chunks/{de-CwdJzATr.js → de-BsTWV__5.js} +9 -5
- package/dist/chunks/de-BsTWV__5.js.map +1 -0
- package/dist/chunks/{delta-CNXOF9oJ.js → delta-Dspg6LP2.js} +3 -3
- package/dist/chunks/delta-Dspg6LP2.js.map +1 -0
- package/dist/chunks/dev-CRNODF1J.js.map +1 -1
- package/dist/chunks/{dialog-BAaxqNmo.js → dialog-wy5nNxfE.js} +4 -4
- package/dist/chunks/dialog-wy5nNxfE.js.map +1 -0
- package/dist/chunks/{disclosure-B5vcFKmf.js → disclosure-CmuBms1J.js} +2 -2
- package/dist/chunks/disclosure-CmuBms1J.js.map +1 -0
- package/dist/chunks/{display-options-DoSemxi6.js → display-options-CPo4Pn5F.js} +9 -9
- package/dist/chunks/display-options-CPo4Pn5F.js.map +1 -0
- package/dist/chunks/{domain-B9R6WwkJ.js → domain-Cfyk1vCK.js} +3 -3
- package/dist/chunks/{domain-B9R6WwkJ.js.map → domain-Cfyk1vCK.js.map} +1 -1
- package/dist/chunks/empty-JZwT3C6e.js +81 -0
- package/dist/chunks/empty-JZwT3C6e.js.map +1 -0
- package/dist/chunks/{field-CJmKViom.js → field-DG61eK8Z.js} +2 -2
- package/dist/chunks/field-DG61eK8Z.js.map +1 -0
- package/dist/chunks/{figure-D1v9DoaH.js → figure-BI0eP7S-.js} +3 -3
- package/dist/chunks/figure-BI0eP7S-.js.map +1 -0
- package/dist/chunks/figures-D_Tsrwwj.js.map +1 -1
- package/dist/chunks/{filter-chip-CK9CRCkU.js → filter-chip-DY-gZVYb.js} +6 -6
- package/dist/chunks/filter-chip-DY-gZVYb.js.map +1 -0
- package/dist/chunks/{filter-row-O70oE2iD.js → filter-row-CPO_SEYy.js} +3 -3
- package/dist/chunks/{filter-row-O70oE2iD.js.map → filter-row-CPO_SEYy.js.map} +1 -1
- package/dist/chunks/{flow-DMHMDBA4.js → flow-B8DRLw6-.js} +3 -3
- package/dist/chunks/flow-B8DRLw6-.js.map +1 -0
- package/dist/chunks/formatters-Be5AdLB2.js.map +1 -1
- package/dist/chunks/{heading-BTLbKrGv.js → heading-CkCOztRO.js} +2 -2
- package/dist/chunks/heading-CkCOztRO.js.map +1 -0
- package/dist/chunks/{icon-BGgbhXWJ.js → icon-B9UXhFTF.js} +2 -2
- package/dist/chunks/icon-B9UXhFTF.js.map +1 -0
- package/dist/chunks/icon-DOwC1bbC.js.map +1 -1
- package/dist/chunks/{identity-Bg-bQX3c.js → identity-CAvHnogN.js} +13 -8
- package/dist/chunks/identity-CAvHnogN.js.map +1 -0
- package/dist/chunks/{input-BYFKkVNf.js → input-6tVIiN3-.js} +5 -5
- package/dist/chunks/input-6tVIiN3-.js.map +1 -0
- package/dist/chunks/{input-BMuZu79b.js → input-BVheeeEI.js} +5 -5
- package/dist/chunks/input-BVheeeEI.js.map +1 -0
- package/dist/chunks/{input-group-BXj2Mghf.js → input-group-ClNtr_Gm.js} +4 -4
- package/dist/chunks/input-group-ClNtr_Gm.js.map +1 -0
- package/dist/chunks/inset-BTAjcK6a.js.map +1 -1
- package/dist/chunks/{iso-field-5b8xjn5X.js → iso-field-C29xji-V.js} +2 -2
- package/dist/chunks/iso-field-C29xji-V.js.map +1 -0
- package/dist/chunks/{json-view-DTIEJTSR.js → json-view-BVTEkhgz.js} +3 -3
- package/dist/chunks/json-view-BVTEkhgz.js.map +1 -0
- package/dist/chunks/{kaeso-DIbGvfhi.js → kaeso-CaMYkbqJ.js} +20 -20
- package/dist/chunks/kaeso-CaMYkbqJ.js.map +1 -0
- package/dist/chunks/kaeso-theme-C9rnRKq2.js.map +1 -1
- package/dist/chunks/{kbd-zNFwdrg1.js → kbd-CmhJfU_8.js} +18 -10
- package/dist/chunks/kbd-CmhJfU_8.js.map +1 -0
- package/dist/chunks/{key-value-BZca_YDS.js → key-value-tPKtCSOn.js} +23 -16
- package/dist/chunks/key-value-tPKtCSOn.js.map +1 -0
- package/dist/chunks/labelled-DJa09XRF.js.map +1 -1
- package/dist/chunks/linear-scale-B5A7yNr7.js.map +1 -1
- package/dist/chunks/{link-B_qFiRsh.js → link-CZ1h1ksk.js} +3 -3
- package/dist/chunks/link-CZ1h1ksk.js.map +1 -0
- package/dist/chunks/link-provider-DSF9bbO3.js.map +1 -1
- package/dist/chunks/list-zQrK77Dx.js +698 -0
- package/dist/chunks/list-zQrK77Dx.js.map +1 -0
- package/dist/chunks/loader-BbKL8cW_.js +41 -0
- package/dist/chunks/loader-BbKL8cW_.js.map +1 -0
- package/dist/chunks/{loader-BkSlU0vv.js → loader-DBk2HCOh.js} +9 -8
- package/dist/chunks/loader-DBk2HCOh.js.map +1 -0
- package/dist/chunks/{logo-BNUcTTFE.js → logo-DqjYySTX.js} +3 -3
- package/dist/chunks/logo-DqjYySTX.js.map +1 -0
- package/dist/chunks/{markdown-DH8zo4N5.js → markdown-Ds1mSbGa.js} +11 -11
- package/dist/chunks/markdown-Ds1mSbGa.js.map +1 -0
- package/dist/chunks/{menu-4EfdXXaY.js → menu-CKlz_Dp4.js} +5 -5
- package/dist/chunks/menu-CKlz_Dp4.js.map +1 -0
- package/dist/chunks/merge-refs-SiVVoQsO.js.map +1 -1
- package/dist/chunks/message-DpD9D1Dj.js.map +1 -1
- package/dist/chunks/{meter-B-VbJ8-a.js → meter-d2wMKjVU.js} +4 -4
- package/dist/chunks/meter-d2wMKjVU.js.map +1 -0
- package/dist/chunks/{nav-sheet-B1C0Qsan.js → nav-sheet--ycVeOvo.js} +3 -3
- package/dist/chunks/nav-sheet--ycVeOvo.js.map +1 -0
- package/dist/chunks/{nav-wordmark-CkHnmvCE.js → nav-wordmark-CPDxGU5t.js} +2 -2
- package/dist/chunks/nav-wordmark-CPDxGU5t.js.map +1 -0
- package/dist/chunks/observe-resize-Bubv5_wX.js.map +1 -1
- package/dist/chunks/option-checkbox-wA9L8Nxo.js.map +1 -1
- package/dist/chunks/over-sheet-CMUXcIMV.js.map +1 -1
- package/dist/chunks/{page-header-CMk_EwVa.js → page-header-DRi-hKtt.js} +8 -8
- package/dist/chunks/page-header-DRi-hKtt.js.map +1 -0
- package/dist/chunks/{pagination-BfmCRgHJ.js → pagination-DvPIXuoj.js} +3 -3
- package/dist/chunks/pagination-DvPIXuoj.js.map +1 -0
- package/dist/chunks/{picker-popover-3iW35tmy.js → picker-popover-B-zhsNiS.js} +7 -7
- package/dist/chunks/picker-popover-B-zhsNiS.js.map +1 -0
- package/dist/chunks/{popover-DEaeabhG.js → popover-Dw7iTUNg.js} +2 -2
- package/dist/chunks/popover-Dw7iTUNg.js.map +1 -0
- package/dist/chunks/popover-root-BI54wuLi.js.map +1 -1
- package/dist/chunks/portal-context-Z2xSIPsc.js.map +1 -1
- package/dist/chunks/provider-marks-DmonWRb5.js.map +1 -1
- package/dist/chunks/{qr-code-cRty-avF.js → qr-code-ClT_2Xa9.js} +2 -2
- package/dist/chunks/qr-code-ClT_2Xa9.js.map +1 -0
- package/dist/chunks/{radio-C9iPbghn.js → radio-DJES13fj.js} +3 -3
- package/dist/chunks/radio-DJES13fj.js.map +1 -0
- package/dist/chunks/{range-popup-UYRCFfQl.js → range-popup-CiCBpRfH.js} +7 -7
- package/dist/chunks/range-popup-CiCBpRfH.js.map +1 -0
- package/dist/chunks/{reasoning-frame-IiHAbh6g.js → reasoning-frame-DnTFGrD_.js} +3 -3
- package/dist/chunks/reasoning-frame-DnTFGrD_.js.map +1 -0
- package/dist/chunks/{release-art-CE2j4YlI.js → release-art-CQjO2Ewv.js} +193 -207
- package/dist/chunks/release-art-CQjO2Ewv.js.map +1 -0
- package/dist/chunks/resize-motion-CMR1x5Kw.js.map +1 -1
- package/dist/chunks/{rights-i-LRTcge.js → rights-B0LWKkB2.js} +121 -115
- package/dist/chunks/rights-B0LWKkB2.js.map +1 -0
- package/dist/chunks/{rolldown-runtime-CGnMp29N.js → rolldown-runtime-BMBA7GOT.js} +2 -2
- package/dist/chunks/{rolling-number-_2kGzuy_.js → rolling-number-uNjki3hn.js} +2 -2
- package/dist/chunks/rolling-number-uNjki3hn.js.map +1 -0
- package/dist/chunks/row-control-DlHLdthx.js.map +1 -1
- package/dist/chunks/safe-href-CWHpspUx.js.map +1 -1
- package/dist/chunks/{scroll-area-DrzIUI9G.js → scroll-area-CjokFhH6.js} +2 -2
- package/dist/chunks/scroll-area-CjokFhH6.js.map +1 -0
- package/dist/chunks/{section-NyJfocIN.js → section-DJgejMMh.js} +3 -3
- package/dist/chunks/section-DJgejMMh.js.map +1 -0
- package/dist/chunks/{segmented-CHt-g7nN.js → segmented-UnR1L-kk.js} +4 -4
- package/dist/chunks/segmented-UnR1L-kk.js.map +1 -0
- package/dist/chunks/{select-Kk7Zr4sY.js → select-BDwDI8L3.js} +5 -5
- package/dist/chunks/select-BDwDI8L3.js.map +1 -0
- package/dist/chunks/selects-text-CYQ11JVI.js +46 -0
- package/dist/chunks/selects-text-CYQ11JVI.js.map +1 -0
- package/dist/chunks/{separator-B4NRWxdN.js → separator-3RcDNFzM.js} +2 -2
- package/dist/chunks/separator-3RcDNFzM.js.map +1 -0
- package/dist/chunks/{settings-DxCWt7db.js → settings-CcNjQm1D.js} +4 -3
- package/dist/chunks/settings-CcNjQm1D.js.map +1 -0
- package/dist/chunks/{sheet-CDzn-r3p.js → sheet-CsN1uy5N.js} +3 -3
- package/dist/chunks/sheet-CsN1uy5N.js.map +1 -0
- package/dist/chunks/shiki-Drii10ai.js.map +1 -1
- package/dist/chunks/{sidebar-DvWmC7uY.js → sidebar-Cz0KdApZ.js} +307 -257
- package/dist/chunks/sidebar-Cz0KdApZ.js.map +1 -0
- package/dist/chunks/{sidebar-menu-BTXCx8zv.js → sidebar-menu-CTaQhVTv.js} +2 -2
- package/dist/chunks/sidebar-menu-CTaQhVTv.js.map +1 -0
- package/dist/chunks/skeleton-GuivuiOP.js +70 -0
- package/dist/chunks/skeleton-GuivuiOP.js.map +1 -0
- package/dist/chunks/{slider-DOlqqalv.js → slider-XvStaacJ.js} +2 -2
- package/dist/chunks/slider-XvStaacJ.js.map +1 -0
- package/dist/chunks/{stat-Bp_wZjxy.js → stat-BJ4otTGc.js} +6 -6
- package/dist/chunks/stat-BJ4otTGc.js.map +1 -0
- package/dist/chunks/{status-C3kBsFx5.js → status-BkW_rVAX.js} +3 -3
- package/dist/chunks/status-BkW_rVAX.js.map +1 -0
- package/dist/chunks/{styles-CN0ovMB2.js → styles-BsZZml1H.js} +2 -2
- package/dist/chunks/{styles-CN0ovMB2.js.map → styles-BsZZml1H.js.map} +1 -1
- package/dist/chunks/{swap-text-BwTV6JqO.js → swap-text-Crb3uzrK.js} +2 -2
- package/dist/chunks/swap-text-Crb3uzrK.js.map +1 -0
- package/dist/chunks/{swap-value-Di18BQCa.js → swap-value-BKrH58Iv.js} +3 -3
- package/dist/chunks/swap-value-BKrH58Iv.js.map +1 -0
- package/dist/chunks/{switch-C1pUsVtT.js → switch-CzmZ6gLD.js} +5 -4
- package/dist/chunks/switch-CzmZ6gLD.js.map +1 -0
- package/dist/chunks/{table-BXJrLHr8.js → table-ppZE7fYt.js} +2 -2
- package/dist/chunks/table-ppZE7fYt.js.map +1 -0
- package/dist/chunks/{tabs-D40oQwXB.js → tabs-DPA2zGfY.js} +3 -3
- package/dist/chunks/tabs-DPA2zGfY.js.map +1 -0
- package/dist/chunks/{tag-x-EyRR8h.js → tag-CnULig9p.js} +4 -4
- package/dist/chunks/tag-CnULig9p.js.map +1 -0
- package/dist/chunks/{text-BXZOSAHk.js → text-BC4rusw7.js} +3 -3
- package/dist/chunks/text-BC4rusw7.js.map +1 -0
- package/dist/chunks/{textarea-DsYriHdR.js → textarea-K4ojoshs.js} +5 -5
- package/dist/chunks/textarea-K4ojoshs.js.map +1 -0
- package/dist/chunks/{theme-image-DKxmJnVz.js → theme-image-C9p959Kv.js} +2 -2
- package/dist/chunks/theme-image-C9p959Kv.js.map +1 -0
- package/dist/chunks/{theme-menu-BfTPLeV1.js → theme-menu-Bm8d9ooS.js} +4 -4
- package/dist/chunks/theme-menu-Bm8d9ooS.js.map +1 -0
- package/dist/chunks/theme-provider-DaD8hlXu.js.map +1 -1
- package/dist/chunks/{thumbnail-DYBOnTRy.js → thumbnail-CUa0JXLG.js} +4 -4
- package/dist/chunks/thumbnail-CUa0JXLG.js.map +1 -0
- package/dist/chunks/{thumbnail-CcC1oISm.js → thumbnail-KtBHleQk.js} +2 -2
- package/dist/chunks/thumbnail-KtBHleQk.js.map +1 -0
- package/dist/chunks/{timeline-l12CWnH0.js → timeline-hMJEN3ZB.js} +3 -3
- package/dist/chunks/timeline-hMJEN3ZB.js.map +1 -0
- package/dist/chunks/{timeseries-11o3wvRN.js → timeseries-BUL9zITH.js} +7 -7
- package/dist/chunks/timeseries-BUL9zITH.js.map +1 -0
- package/dist/chunks/{toast-YiWEHrDi.js → toast-4PyK7GS1.js} +5 -5
- package/dist/chunks/toast-4PyK7GS1.js.map +1 -0
- package/dist/chunks/{toc-kwH5V9BC.js → toc-CUh8jCiJ.js} +2 -2
- package/dist/chunks/toc-CUh8jCiJ.js.map +1 -0
- package/dist/chunks/toolbar-w3ZPxEoW.js +80 -0
- package/dist/chunks/toolbar-w3ZPxEoW.js.map +1 -0
- package/dist/chunks/tooltip-D0jdTWyX.js.map +1 -1
- package/dist/chunks/{tooltip-5VkHAnXF.js → tooltip-DpUVorD8.js} +4 -4
- package/dist/chunks/tooltip-DpUVorD8.js.map +1 -0
- package/dist/chunks/{tooltip-root-munfMGEN.js → tooltip-root-Ka27-TrV.js} +8 -7
- package/dist/chunks/tooltip-root-Ka27-TrV.js.map +1 -0
- package/dist/chunks/{tooltip-D8DF9Pe6.js → tooltip-uRgNOzW_.js} +4 -4
- package/dist/chunks/tooltip-uRgNOzW_.js.map +1 -0
- package/dist/chunks/{truncated-xRd8D8kf.js → truncated-CcpJk_3e.js} +3 -3
- package/dist/chunks/truncated-CcpJk_3e.js.map +1 -0
- package/dist/chunks/use-controllable-rN5Fg5EJ.js.map +1 -1
- package/dist/chunks/use-copy-DtUCUOlR.js.map +1 -1
- package/dist/chunks/use-cut-off-Cx1Nn5uF.js.map +1 -1
- package/dist/chunks/use-delayed-loading-Chh5dI7E.js +21 -0
- package/dist/chunks/use-delayed-loading-Chh5dI7E.js.map +1 -0
- package/dist/chunks/use-hydrating-Dth8POSk.js.map +1 -1
- package/dist/chunks/use-indicator-C1pEv290.js.map +1 -1
- package/dist/chunks/use-layout-width-DbMAv4mR.js.map +1 -1
- package/dist/chunks/use-scroll-fade-BwpKEWY0.js.map +1 -1
- package/dist/chunks/use-scroll-margin-LcRbT78-.js.map +1 -1
- package/dist/chunks/use-truncated-Dn60-ubK.js.map +1 -1
- package/dist/chunks/use-utc-while-hydrating-PP48Tcfz.js.map +1 -1
- package/dist/chunks/virtual-rows-D-ZT6V6B.js.map +1 -1
- package/dist/chunks/{visually-hidden-BloW-QXO.js → visually-hidden-Di2pLhE3.js} +2 -2
- package/dist/chunks/visually-hidden-Di2pLhE3.js.map +1 -0
- package/dist/chunks/when-idle-DXKwyOLB.js.map +1 -1
- package/dist/chunks/{zh-CN-Db1lfihK.js → zh-CN-C4aFUWpC.js} +6 -2
- package/dist/chunks/zh-CN-C4aFUWpC.js.map +1 -0
- package/dist/components/app-frame.js +1 -1
- package/dist/components/avatar.js +3 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/button-group.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/charts/bar.js +6 -6
- package/dist/components/charts/bar.js.map +1 -1
- package/dist/components/charts/donut.js +156 -85
- package/dist/components/charts/donut.js.map +1 -1
- package/dist/components/charts/heatmap.js +3 -3
- package/dist/components/charts/heatmap.js.map +1 -1
- package/dist/components/charts/sankey.js +4 -4
- package/dist/components/charts/sankey.js.map +1 -1
- package/dist/components/charts/sparkline.js +3 -3
- package/dist/components/charts/sparkline.js.map +1 -1
- package/dist/components/charts/swatches.js +31 -0
- package/dist/components/charts/swatches.js.map +1 -0
- package/dist/components/charts/timeseries.js +1 -1
- package/dist/components/charts.js +8 -8
- package/dist/components/checkbox.js +1 -1
- package/dist/components/code-block.js +3 -3
- package/dist/components/code.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -1
- package/dist/components/copy-button.js +1 -1
- package/dist/components/dashboard/about-header.js +44 -0
- package/dist/components/dashboard/about-header.js.map +1 -0
- package/dist/components/dashboard/legend.js +2 -2
- package/dist/components/dashboard/legend.js.map +1 -1
- package/dist/components/dashboard/metric-tabs.js +4 -4
- package/dist/components/dashboard/metric-tabs.js.map +1 -1
- package/dist/components/dashboard/model-card.js +100 -38
- package/dist/components/dashboard/model-card.js.map +1 -1
- package/dist/components/dashboard/rank-list.js +90 -59
- package/dist/components/dashboard/rank-list.js.map +1 -1
- package/dist/components/dashboard.js +3 -2
- package/dist/components/data-table.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/display-options.js +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/figure.js +1 -1
- package/dist/components/filter-chip.js +1 -1
- package/dist/components/filter-row.js +1 -1
- package/dist/components/flow-canvas.js +8 -8
- package/dist/components/flow-canvas.js.map +1 -1
- package/dist/components/flow.js +1 -1
- package/dist/components/heading.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/input.js +3 -3
- package/dist/components/kaeso/conversation.js +8 -8
- package/dist/components/kaeso/conversation.js.map +1 -1
- package/dist/components/kaeso/identity.js +1 -1
- package/dist/components/kaeso/moments.js +4 -4
- package/dist/components/kaeso/moments.js.map +1 -1
- package/dist/components/kaeso/rights.js +1 -1
- package/dist/components/kaeso/usage.js +8 -8
- package/dist/components/kaeso/usage.js.map +1 -1
- package/dist/components/kaeso.js +3 -3
- package/dist/components/kbd.js +1 -1
- package/dist/components/key-value.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loader.js +3 -2
- package/dist/components/logo.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/menu.js +2 -2
- package/dist/components/meter.js +1 -1
- package/dist/components/page-header.js +1 -1
- package/dist/components/pagination.js +1 -1
- package/dist/components/playground.js +61 -42
- package/dist/components/playground.js.map +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/qr-code.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/release-art.js +1 -1
- package/dist/components/scroll-area.js +1 -1
- package/dist/components/section.js +1 -1
- package/dist/components/segmented.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/separator.js +1 -1
- package/dist/components/settings.js +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sidebar.js +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/stat.js +3 -3
- package/dist/components/status.js +1 -1
- package/dist/components/swap-text.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/theme-image.js +1 -1
- package/dist/components/theme-menu.js +1 -1
- package/dist/components/thumbnail.js +2 -2
- package/dist/components/timeline.js +1 -1
- package/dist/components/toast.js +1 -1
- package/dist/components/toc.js +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/visually-hidden.js +1 -1
- package/dist/format.js.map +1 -1
- package/dist/i18n-locales.js.map +1 -1
- package/dist/i18n-provider.js +1 -1
- package/dist/i18n-provider.js.map +1 -1
- package/dist/index.js +101 -99
- package/dist/kaeso.css +138 -44
- package/dist/styles.css +1 -1
- package/dist/types/components/app-frame/app-frame.d.ts +2 -2
- package/dist/types/components/avatar/avatar.d.ts +1 -0
- package/dist/types/components/avatar/docs.d.ts +1 -0
- package/dist/types/components/avatar/index.d.ts +1 -0
- package/dist/types/components/avatar/swatches.d.ts +6 -0
- package/dist/types/components/banner/banner.d.ts +2 -2
- package/dist/types/components/charts/core.d.ts +6 -2
- package/dist/types/components/charts/docs.d.ts +2 -0
- package/dist/types/components/charts/donut.d.ts +2 -0
- package/dist/types/components/charts/index.d.ts +1 -1
- package/dist/types/components/charts/swatches.d.ts +8 -0
- package/dist/types/components/dashboard/about-header.d.ts +12 -0
- package/dist/types/components/dashboard/docs.d.ts +16 -2
- package/dist/types/components/dashboard/index.d.ts +1 -0
- package/dist/types/components/dashboard/model-card.d.ts +2 -2
- package/dist/types/components/dashboard/rank-list.d.ts +2 -0
- package/dist/types/components/empty/docs.d.ts +2 -0
- package/dist/types/components/empty/empty.d.ts +29 -7
- package/dist/types/components/empty/ghost.d.ts +9 -0
- package/dist/types/components/filter-row/filter-row.d.ts +2 -2
- package/dist/types/components/kaeso/client-button.d.ts +2 -2
- package/dist/types/components/kaeso/model-makers.d.ts +2 -2
- package/dist/types/components/kaeso/source-badge.d.ts +3 -3
- package/dist/types/components/key-value/key-value.d.ts +1 -0
- package/dist/types/components/list/docs.d.ts +2 -0
- package/dist/types/components/list/index.d.ts +1 -1
- package/dist/types/components/list/list.d.ts +18 -0
- package/dist/types/components/loader/loader.d.ts +1 -1
- package/dist/types/components/page-header/page-header.d.ts +1 -1
- package/dist/types/components/release-art/drawing.d.ts +1 -5
- package/dist/types/components/release-art/index.d.ts +1 -1
- package/dist/types/components/release-art/release-art.d.ts +1 -5
- package/dist/types/components/sidebar/sidebar.d.ts +1 -0
- package/dist/types/components/skeleton/docs.d.ts +1 -0
- package/dist/types/components/skeleton/skeleton.d.ts +9 -0
- package/dist/types/components/toolbar/docs.d.ts +1 -0
- package/dist/types/components/toolbar/toolbar.d.ts +14 -2
- package/dist/types/hooks/use-delayed-loading.d.ts +1 -0
- package/dist/types/utils/cn.d.ts +15 -15
- package/dist/utils.js +1 -1
- package/foundations/color.md +4 -3
- package/foundations/icons.md +1 -1
- package/foundations/layout.md +9 -9
- package/foundations/motion.md +4 -2
- package/foundations/psychology.md +1 -1
- package/foundations/writing.md +6 -1
- package/package.json +10 -10
- package/dist/chunks/app-frame-BZH_ATS-.js.map +0 -1
- package/dist/chunks/avatar-CXhUuE1G.js.map +0 -1
- package/dist/chunks/badge-Be95hMkq.js.map +0 -1
- package/dist/chunks/banner-_XNQ5JDU.js.map +0 -1
- package/dist/chunks/button-IDx51cLu.js.map +0 -1
- package/dist/chunks/button-group-B5rYVJZk.js.map +0 -1
- package/dist/chunks/calendar-D7Sbcrq-.js.map +0 -1
- package/dist/chunks/checkbox-CzHNM_1C.js.map +0 -1
- package/dist/chunks/cn-DQJRk8Ly.js.map +0 -1
- package/dist/chunks/code-block-CmkCi6IL.js.map +0 -1
- package/dist/chunks/code-block-DgACR0FD.js.map +0 -1
- package/dist/chunks/code-bpAOiAx9.js.map +0 -1
- package/dist/chunks/collapsible-ivslPUbI.js.map +0 -1
- package/dist/chunks/combobox-Co0aJbVi.js.map +0 -1
- package/dist/chunks/command-list-DuUjJqji.js.map +0 -1
- package/dist/chunks/command-palette-3Q-vDMw2.js.map +0 -1
- package/dist/chunks/copy-button-rX4M-GJO.js.map +0 -1
- package/dist/chunks/core-hhm1-i4Y.js.map +0 -1
- package/dist/chunks/dashboard-DQuMF9Tq.js.map +0 -1
- package/dist/chunks/data-table-BwZjiKKY.js +0 -683
- package/dist/chunks/data-table-BwZjiKKY.js.map +0 -1
- package/dist/chunks/date-popup-DRANGI9L.js.map +0 -1
- package/dist/chunks/de-CwdJzATr.js.map +0 -1
- package/dist/chunks/delta-CNXOF9oJ.js.map +0 -1
- package/dist/chunks/dialog-BAaxqNmo.js.map +0 -1
- package/dist/chunks/disclosure-B5vcFKmf.js.map +0 -1
- package/dist/chunks/display-options-DoSemxi6.js.map +0 -1
- package/dist/chunks/empty-2sGaG4zU.js +0 -50
- package/dist/chunks/empty-2sGaG4zU.js.map +0 -1
- package/dist/chunks/field-CJmKViom.js.map +0 -1
- package/dist/chunks/figure-D1v9DoaH.js.map +0 -1
- package/dist/chunks/filter-chip-CK9CRCkU.js.map +0 -1
- package/dist/chunks/flow-DMHMDBA4.js.map +0 -1
- package/dist/chunks/heading-BTLbKrGv.js.map +0 -1
- package/dist/chunks/icon-BGgbhXWJ.js.map +0 -1
- package/dist/chunks/identity-Bg-bQX3c.js.map +0 -1
- package/dist/chunks/input-BMuZu79b.js.map +0 -1
- package/dist/chunks/input-BYFKkVNf.js.map +0 -1
- package/dist/chunks/input-group-BXj2Mghf.js.map +0 -1
- package/dist/chunks/iso-field-5b8xjn5X.js.map +0 -1
- package/dist/chunks/json-view-DTIEJTSR.js.map +0 -1
- package/dist/chunks/kaeso-DIbGvfhi.js.map +0 -1
- package/dist/chunks/kbd-zNFwdrg1.js.map +0 -1
- package/dist/chunks/key-value-BZca_YDS.js.map +0 -1
- package/dist/chunks/link-B_qFiRsh.js.map +0 -1
- package/dist/chunks/list-D40s-Q7V.js +0 -596
- package/dist/chunks/list-D40s-Q7V.js.map +0 -1
- package/dist/chunks/loader-B0lA9LE9.js +0 -56
- package/dist/chunks/loader-B0lA9LE9.js.map +0 -1
- package/dist/chunks/loader-BkSlU0vv.js.map +0 -1
- package/dist/chunks/logo-BNUcTTFE.js.map +0 -1
- package/dist/chunks/markdown-DH8zo4N5.js.map +0 -1
- package/dist/chunks/menu-4EfdXXaY.js.map +0 -1
- package/dist/chunks/meter-B-VbJ8-a.js.map +0 -1
- package/dist/chunks/nav-sheet-B1C0Qsan.js.map +0 -1
- package/dist/chunks/nav-wordmark-CkHnmvCE.js.map +0 -1
- package/dist/chunks/page-header-CMk_EwVa.js.map +0 -1
- package/dist/chunks/pagination-BfmCRgHJ.js.map +0 -1
- package/dist/chunks/picker-popover-3iW35tmy.js.map +0 -1
- package/dist/chunks/popover-DEaeabhG.js.map +0 -1
- package/dist/chunks/qr-code-cRty-avF.js.map +0 -1
- package/dist/chunks/radio-C9iPbghn.js.map +0 -1
- package/dist/chunks/range-popup-UYRCFfQl.js.map +0 -1
- package/dist/chunks/reasoning-frame-IiHAbh6g.js.map +0 -1
- package/dist/chunks/release-art-CE2j4YlI.js.map +0 -1
- package/dist/chunks/rights-i-LRTcge.js.map +0 -1
- package/dist/chunks/rolling-number-_2kGzuy_.js.map +0 -1
- package/dist/chunks/scroll-area-DrzIUI9G.js.map +0 -1
- package/dist/chunks/section-NyJfocIN.js.map +0 -1
- package/dist/chunks/segmented-CHt-g7nN.js.map +0 -1
- package/dist/chunks/select-Kk7Zr4sY.js.map +0 -1
- package/dist/chunks/selects-text-kRMTsm4s.js +0 -32
- package/dist/chunks/selects-text-kRMTsm4s.js.map +0 -1
- package/dist/chunks/separator-B4NRWxdN.js.map +0 -1
- package/dist/chunks/settings-DxCWt7db.js.map +0 -1
- package/dist/chunks/sheet-CDzn-r3p.js.map +0 -1
- package/dist/chunks/sidebar-DvWmC7uY.js.map +0 -1
- package/dist/chunks/sidebar-menu-BTXCx8zv.js.map +0 -1
- package/dist/chunks/skeleton-4vjHa9pE.js +0 -32
- package/dist/chunks/skeleton-4vjHa9pE.js.map +0 -1
- package/dist/chunks/slider-DOlqqalv.js.map +0 -1
- package/dist/chunks/stat-Bp_wZjxy.js.map +0 -1
- package/dist/chunks/status-C3kBsFx5.js.map +0 -1
- package/dist/chunks/swap-text-BwTV6JqO.js.map +0 -1
- package/dist/chunks/swap-value-Di18BQCa.js.map +0 -1
- package/dist/chunks/switch-C1pUsVtT.js.map +0 -1
- package/dist/chunks/table-BXJrLHr8.js.map +0 -1
- package/dist/chunks/tabs-D40oQwXB.js.map +0 -1
- package/dist/chunks/tag-x-EyRR8h.js.map +0 -1
- package/dist/chunks/text-BXZOSAHk.js.map +0 -1
- package/dist/chunks/textarea-DsYriHdR.js.map +0 -1
- package/dist/chunks/theme-image-DKxmJnVz.js.map +0 -1
- package/dist/chunks/theme-menu-BfTPLeV1.js.map +0 -1
- package/dist/chunks/thumbnail-CcC1oISm.js.map +0 -1
- package/dist/chunks/thumbnail-DYBOnTRy.js.map +0 -1
- package/dist/chunks/timeline-l12CWnH0.js.map +0 -1
- package/dist/chunks/timeseries-11o3wvRN.js.map +0 -1
- package/dist/chunks/toast-YiWEHrDi.js.map +0 -1
- package/dist/chunks/toc-kwH5V9BC.js.map +0 -1
- package/dist/chunks/toolbar-CsamWPRC.js +0 -60
- package/dist/chunks/toolbar-CsamWPRC.js.map +0 -1
- package/dist/chunks/tooltip-5VkHAnXF.js.map +0 -1
- package/dist/chunks/tooltip-D8DF9Pe6.js.map +0 -1
- package/dist/chunks/tooltip-root-munfMGEN.js.map +0 -1
- package/dist/chunks/truncated-xRd8D8kf.js.map +0 -1
- package/dist/chunks/visually-hidden-BloW-QXO.js.map +0 -1
- package/dist/chunks/zh-CN-Db1lfihK.js.map +0 -1
package/ai/component-registry.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# @logicplanes/kaeso-ui component registry
|
|
2
2
|
|
|
3
|
-
Version 0.7.5
|
|
3
|
+
Version 0.7.5. Generated from the component types, their descriptions and variants; do not edit.
|
|
4
4
|
|
|
5
5
|
## app-frame
|
|
6
6
|
|
|
7
7
|
`import { AppFrame } from "@logicplanes/kaeso-ui/app-frame";`
|
|
8
8
|
|
|
9
|
-
- **padding** (app_frame_body): `none` (default) — Edge to edge: lists and tables that bring their own row insets (default); `list` — A list or table under the header: 8px above the first row; rows bring their own side insets; `page` — A content page (overviews, charts, sections):
|
|
9
|
+
- **padding** (app_frame_body): `none` (default) — Edge to edge: lists and tables that bring their own row insets (default); `list` — A list or table under the header: 8px above the first row; rows bring their own side insets; `page` — A content page (overviews, charts, sections): the gutter at its sides, 16px under the header, 48px at the end
|
|
10
10
|
- **fill** (app_frame): `screen` (default) — Fills the viewport (default); `parent` — Fills its container: previews, embedded tools
|
|
11
11
|
|
|
12
12
|
### AppFrame
|
|
@@ -37,13 +37,14 @@ The first letters of the first and last word; `max` 1 keeps only the first. A ph
|
|
|
37
37
|
|
|
38
38
|
| Prop | Type | Default | Description |
|
|
39
39
|
|---|---|---|---|
|
|
40
|
-
| `name` * | `string` | | The person's, organization's or agent's name; its first letters show without a picture
|
|
40
|
+
| `name` * | `string` | | The person's, organization's or agent's name; its first letters show without a picture or a `color`, and it is the accessible name. |
|
|
41
41
|
| `agent` | `{ name: string; model: string; }` | | The agent that acted for this person, with its name and model family id from the API: a badge of about 40% of the avatar on its corner, and the family in the accessible name, such as `Ada Okafor via Release helper (Claude)`. |
|
|
42
42
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
43
|
+
| `color` | `string` | | The one colour a project or another named thing has everywhere, one of `SWATCHES`: without a picture the avatar is a flat tile of it instead of letters, the same colour as its bars and legend entry. A picture that loads replaces it. |
|
|
43
44
|
| `decorative` | `boolean` | | Hides it from assistive technology when the same information is already written next to it. |
|
|
44
45
|
| `kind` | `"person" \| "agent" \| "org"` | `person` | A person (round), an organization (a cut square), or an agent (a bot face on a cut square). |
|
|
45
46
|
| `size` | `24 \| 20 \| 28 \| 32 \| 40` | `24` | The diameter in pixels. |
|
|
46
|
-
| `src` | `string` | | The picture's address; without one, or when it fails to load, the letters show. |
|
|
47
|
+
| `src` | `string` | | The picture's address; without one, or when it fails to load, the `color` or else the letters show. |
|
|
47
48
|
|
|
48
49
|
### Avatar.Group
|
|
49
50
|
|
|
@@ -77,11 +78,11 @@ A small read-only label on a cut plate: 22px, 12/500, radius 4, set apart from a
|
|
|
77
78
|
`import { Banner } from "@logicplanes/kaeso-ui/banner";`
|
|
78
79
|
|
|
79
80
|
- **tone** (banner): `neutral` (default) — A neutral notice, without an icon (default); `info` — Information: a blue mark before the words; `success` — Something worked: a green mark before the words; `warning` — Attention needed soon: an amber mark before the words; `danger` — Something failed or will fail: a red mark before the words
|
|
80
|
-
- **layout** (banner): `inline` (default) — Inside content: a cut plate, radius 6, its icon 12px in, at least 56px tall with or without actions (default); `full` — Across the top of the panel for global notices: its icon on the
|
|
81
|
+
- **layout** (banner): `inline` (default) — Inside content: a cut plate, radius 6, its icon 12px in, at least 56px tall with or without actions (default); `full` — Across the top of the panel for global notices: its icon on the gutter, a hairline at its foot
|
|
81
82
|
|
|
82
83
|
### Banner
|
|
83
84
|
|
|
84
|
-
An inline notice on a flat plate, the same for every tone: the tone's color only in its icon, a mark before the words (none for a neutral notice, so it never looks like information), an optional title with the text under it in the secondary color, actions at the end. Inline, the icon sits 12px in and the banner is at least 56px tall, so banners with and without actions stack evenly; full width, the icon sits on the
|
|
85
|
+
An inline notice on a flat plate, the same for every tone: the tone's color only in its icon, a mark before the words (none for a neutral notice, so it never looks like information), an optional title with the text under it in the secondary color, actions at the end. Inline, the icon sits 12px in and the banner is at least 56px tall, so banners with and without actions stack evenly; full width, the icon sits on the gutter and the text 24px further in. The banner is its own size container. From 480px inside its padding (the `banner` container size, `@banner:`) the actions sit on the right, centered on the title and text together, and the icon stays on the first line. Narrower (a phone) the actions go under the text, starting where the text starts: their 24px inset is the icon's 16px column and its 8px gap, which in the row is the gap before them.
|
|
85
86
|
|
|
86
87
|
| Prop | Type | Default | Description |
|
|
87
88
|
|---|---|---|---|
|
|
@@ -199,7 +200,7 @@ Bars for comparing values across categories: grouped, stacked, or horizontal for
|
|
|
199
200
|
| `dates` | `readonly AxisDate[]` | | The day each category begins, one per category: a `Date`, or an ISO day ("2026-01-05"). Where the axis thins its labels, it keeps the ones where a year begins (the month after December, the first week in January), read from these, so every language keeps the same labels. |
|
|
200
201
|
| `empty` | `boolean` | | Shows the empty state (`emptyText`) in place of the data, over the baseline and the category axis. By default it shows when there is no value at all; zeros are data. |
|
|
201
202
|
| `emptyText` | `ReactNode` | | What the empty state says. Defaults to "No data for this period" in the provider's language. |
|
|
202
|
-
| `error` | `ReactNode` | | The data failed to load: the chart keeps its height, hides its legend and table toggle, and says so quietly, with Try again when there is `onRetry` and otherwise a hint to reload the page.
|
|
203
|
+
| `error` | `ReactNode` | | The data failed to load: the chart keeps its height, hides its legend and table toggle, and says so quietly, with Try again when there is `onRetry` and otherwise a hint to reload the page. A string names what failed and becomes the title; the gateway's message stays in the toast where the request fails. |
|
|
203
204
|
| `formatValue` | `((v: number) => string)` | | Formats values in the tooltip, the table and beside horizontal bars. Without it, values are written in full and the axis in short form (1.2M); the axis takes the room its widest label needs, and long category names in a ranking end in an ellipsis with the full name on hover. |
|
|
204
205
|
| `height` | `number` | `240` | The plot's height in px (240 by default). |
|
|
205
206
|
| `highlight` | `number` | | Highlight a category as the pointer does, with its tooltip: a linked view, or the states pages. |
|
|
@@ -220,7 +221,7 @@ A ring of shares with the total in the center and a legend beside it, or under i
|
|
|
220
221
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
221
222
|
| `empty` | `boolean` | | Shows the empty state (`emptyText`) in place of the ring and legend. By default it shows when every value is 0, since a ring of nothing has no shares. |
|
|
222
223
|
| `emptyText` | `ReactNode` | | What the empty state says. Defaults to "No data for this period" in the provider's language. |
|
|
223
|
-
| `error` | `ReactNode` | | The data failed to load: the chart keeps its height, hides its legend and table toggle, and says so quietly, with Try again when there is `onRetry` and otherwise a hint to reload the page.
|
|
224
|
+
| `error` | `ReactNode` | | The data failed to load: the chart keeps its height, hides its legend and table toggle, and says so quietly, with Try again when there is `onRetry` and otherwise a hint to reload the page. A string names what failed and becomes the title; the gateway's message stays in the toast where the request fails. |
|
|
224
225
|
| `formatValue` | `((v: number) => string)` | | Formats the total in the center and the values in the legend. Defaults to `formatNumber`. |
|
|
225
226
|
| `loading` | `boolean` | | The data is loading: the chart keeps its height and is marked busy; data already on screen dims and breathes, and with none yet the plot is a skeleton. |
|
|
226
227
|
| `onRetry` | `(() => void)` | | Called when Try again is pressed after `error`; without it, the button doesn't show. |
|
|
@@ -254,7 +255,7 @@ A flow diagram, such as requests from keys to models to providers, with ribbons
|
|
|
254
255
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
255
256
|
| `empty` | `boolean` | | Shows the empty state (`emptyText`) in place of the data. By default it shows when no link carries a value. |
|
|
256
257
|
| `emptyText` | `ReactNode` | | What the empty state says. Defaults to "No data for this period" in the provider's language. |
|
|
257
|
-
| `error` | `ReactNode` | | The data failed to load: the chart keeps its height, hides its legend and table toggle, and says so quietly, with Try again when there is `onRetry` and otherwise a hint to reload the page.
|
|
258
|
+
| `error` | `ReactNode` | | The data failed to load: the chart keeps its height, hides its legend and table toggle, and says so quietly, with Try again when there is `onRetry` and otherwise a hint to reload the page. A string names what failed and becomes the title; the gateway's message stays in the toast where the request fails. |
|
|
258
259
|
| `formatValue` | `((v: number) => string)` | | Formats the values beside the nodes and in the data table. Defaults to `formatNumber`. |
|
|
259
260
|
| `height` | `number` | `320` | The diagram's height in px (320 by default). |
|
|
260
261
|
| `loading` | `boolean` | | The data is loading: the chart keeps its height and is marked busy; data already on screen dims and breathes, and with none yet the plot is a skeleton. |
|
|
@@ -269,8 +270,10 @@ One pill split into segments by share, with a legend under it. Use it for a comp
|
|
|
269
270
|
| `aria-label` * | `string` | | The chart's accessible name ("Requests by model"). |
|
|
270
271
|
| `slices` * | `Slice[]` | | The parts of the whole, each with an `id`, a `label`, a `value` and an optional `color`. |
|
|
271
272
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
273
|
+
| `entries` | `number` | | How many legend entries the loading state holds room for: as many as the bar usually shows, so the legend that replaces it wraps onto as many lines. 4 by default. |
|
|
272
274
|
| `formatValue` | `((v: number) => string)` | | Formats each segment's value for screen readers, beside its share. Defaults to `formatNumber`. |
|
|
273
275
|
| `legend` | `boolean` | `true` | Shows the legend with each share under the bar (on by default). |
|
|
276
|
+
| `loading` | `boolean` | | While the parts load: the bar and its legend in their shape, so nothing under them moves when they arrive. |
|
|
274
277
|
|
|
275
278
|
### Sparkline
|
|
276
279
|
|
|
@@ -299,7 +302,7 @@ A line or area chart of values over time, such as usage, with a crosshair and to
|
|
|
299
302
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
300
303
|
| `empty` | `boolean` | | Shows the empty state (`emptyText`) in place of the data, over the baseline and the time axis. By default it shows when there are no points; zeros are data and draw a flat line on the baseline. |
|
|
301
304
|
| `emptyText` | `ReactNode` | | What the empty state says. Defaults to "No data for this period" in the provider's language. |
|
|
302
|
-
| `error` | `ReactNode` | | The data failed to load: the chart keeps its height, hides its legend and table toggle, and says so quietly, with Try again when there is `onRetry` and otherwise a hint to reload the page.
|
|
305
|
+
| `error` | `ReactNode` | | The data failed to load: the chart keeps its height, hides its legend and table toggle, and says so quietly, with Try again when there is `onRetry` and otherwise a hint to reload the page. A string names what failed and becomes the title; the gateway's message stays in the toast where the request fails. |
|
|
303
306
|
| `formatTick` | `((t: Date) => string)` | | Names the times under the axis ("3 Aug", "2026"). Defaults to calendar ticks in `timeZone`; pass it with `tickAt="points"` for buckets. |
|
|
304
307
|
| `formatTime` | `((t: Date) => string)` | | Names a point's time in the tooltip, the table and for screen readers, where a point stands for more than its instant: "Week of 3 Aug", "Aug 2026". |
|
|
305
308
|
| `formatValue` | `((v: number) => string)` | | Formats values in the tooltip, the table and on the axis. Without it, values are written in full and the axis in short form (1.2M), and the axis takes the room its widest label needs. |
|
|
@@ -577,25 +580,40 @@ Copies a value, with a check and "Copied" for 1.2s: a circle (the default), a re
|
|
|
577
580
|
|
|
578
581
|
## dashboard
|
|
579
582
|
|
|
580
|
-
`import { Announcement, CellInset, Dashboard, DashboardCell, Legend, MetricTabs, ModelCard, RankList, Readout } from "@logicplanes/kaeso-ui/dashboard";`
|
|
583
|
+
`import { AboutHeader, Announcement, CellInset, Dashboard, DashboardCell, Legend, MetricTabs, ModelCard, RankList, Readout } from "@logicplanes/kaeso-ui/dashboard";`
|
|
581
584
|
|
|
582
585
|
- **surface** (dashboard): `grid` (default) — Cells on one raised surface with 6px corners, split by hairlines (default)
|
|
583
586
|
- **size** (readout): `md` (default) — 28/32 medium and tight: the cell's main number (default); `sm` — 20/26 medium: a number beside another, under a small label
|
|
584
587
|
|
|
588
|
+
### AboutHeader
|
|
589
|
+
|
|
590
|
+
The head of an About page, centred and monochrome: the wordmark set large, a tagline, then the running version as a figure under its quiet label, its badge and date, and the actions.
|
|
591
|
+
|
|
592
|
+
| Prop | Type | Default | Description |
|
|
593
|
+
|---|---|---|---|
|
|
594
|
+
| `actions` | `ReactNode` | | One or two buttons, such as What's new; none of them `primary`. |
|
|
595
|
+
| `badge` | `ReactNode` | | A badge after the version, such as "Pre-release". |
|
|
596
|
+
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
597
|
+
| `meta` | `ReactNode` | | One short line beside the badge, such as when the release was published. |
|
|
598
|
+
| `name` | `string` | `Kaeso` | The wordmark's accessible name: "Kaeso" unless the app has another. |
|
|
599
|
+
| `tagline` | `ReactNode` | | What the app is, in one line under the wordmark. |
|
|
600
|
+
| `version` | `ReactNode` | | The running version alone, set as a figure. Leave it out until it is known: the name draws alone, and the version, badge, date and actions come in together under it. |
|
|
601
|
+
| `versionLabel` | `ReactNode` | | The quiet label over the version: "Version". |
|
|
602
|
+
|
|
585
603
|
### Announcement
|
|
586
604
|
|
|
587
|
-
One piece of news across the top of a home page: a title set large and tight, what kind of news it is under it (never above it: no eyebrows), a line and an action,
|
|
605
|
+
One piece of news across the top of a home page: a title set large and tight, what kind of news it is under it (never above it: no eyebrows), a line and an action on a flat surface, and with `accent` Kaeso's squares in the news's own colour beside them, in the page's mode. It can be closed.
|
|
588
606
|
|
|
589
607
|
| Prop | Type | Default | Description |
|
|
590
608
|
|---|---|---|---|
|
|
591
609
|
| `title` * | `ReactNode` | | The news itself. |
|
|
592
|
-
| `
|
|
593
|
-
| `
|
|
610
|
+
| `accent` | `number` | | The news's hue in OKLCH degrees, such as a release's from `releaseArtHue`: draws Kaeso's squares and their light to the right of the words, tinted on a light card and lit on a dark one, once the announcement is 512px wide. |
|
|
611
|
+
| `actions` | `ReactNode` | | One or two buttons; the main one `primary`. |
|
|
594
612
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
595
|
-
| `description` | `ReactNode` | |
|
|
613
|
+
| `description` | `ReactNode` | | A sentence in lines of about 70 characters, two at most; it keeps the room of two, so the announcement is as tall while it loads as after. |
|
|
596
614
|
| `eyebrow` | `ReactNode` | | What kind of news: "New release". It stands under the title as a small label, never above it. |
|
|
597
615
|
| `onDismiss` | `(() => void)` | | Shows a close button in the top right corner and is called when it is pressed; the app remembers which news was closed and leaves the announcement out. |
|
|
598
|
-
| `
|
|
616
|
+
| `quiet` | `boolean` | | News that shouldn't lead the page, such as a pre-release: one slim row with the title, its kind (under the title when narrow) and the action, without a description or the accent. |
|
|
599
617
|
|
|
600
618
|
### CellInset
|
|
601
619
|
|
|
@@ -679,14 +697,16 @@ The top rows of a breakdown, largest first: the label, the share and the number
|
|
|
679
697
|
| `aria-label` * | `string` | | The list's accessible name. |
|
|
680
698
|
| `items` * | `RankItem[]` | | 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. |
|
|
681
699
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
682
|
-
| `empty` | `ReactNode` | | What an empty list says: "Nothing in this period". |
|
|
700
|
+
| `empty` | `ReactNode` | | What an empty list says, in the middle of faint, still rows that keep the list's room: "Nothing in this period". |
|
|
701
|
+
| `error` | `ReactNode` | | Set when the rows couldn't load. With no rows yet it takes the place of the list, so a failure never reads as nothing in this period; rows already shown stay after a failed refresh. A string becomes its title. |
|
|
683
702
|
| `loading` | `boolean` | | While the rows load: `rows` lines of their shape. |
|
|
684
703
|
| `onOpen` | `((id: string) => void)` | | Called with a row's id when it is chosen; without it, rows are plain text. Rows that open something grow to 44px on a touch screen. |
|
|
685
|
-
| `
|
|
704
|
+
| `onRetry` | `(() => void)` | | Loads the rows again; shows Try again under a failure. |
|
|
705
|
+
| `rows` | `number` | `5` | How many lines the list holds room for: the loading state shows that many, an empty list draws that many faintly, and while it can load (`loading` is passed) a short list keeps that room, so nothing under it moves. |
|
|
686
706
|
|
|
687
707
|
### Readout
|
|
688
708
|
|
|
689
|
-
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
|
|
709
|
+
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, empty or loading too, so readouts side by side start their content at the same height and a note that arrives with the data moves nothing.
|
|
690
710
|
|
|
691
711
|
| Prop | Type | Default | Description |
|
|
692
712
|
|---|---|---|---|
|
|
@@ -718,8 +738,8 @@ A table for many rows: sorting, selection, loading and empty states, more rows o
|
|
|
718
738
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
719
739
|
| `data-force-row` | `string` | | Force a state on the first row for state matrices: hover, pressed, focus. |
|
|
720
740
|
| `density` | `"default" \| "compact" \| "comfortable"` | | How much room each row gets. |
|
|
721
|
-
| `empty` | `ReactNode` | | What to show when there are no rows: an `Empty` with the page's own sentence, such as "No requests yet" or, behind filters, "No requests match". Without it the table says "No rows". |
|
|
722
|
-
| `error` | `ReactNode` | | The rows failed to load: the table says so where its rows would be and offers Try again (`onRetry`), or, without it, says to reload the page.
|
|
741
|
+
| `empty` | `ReactNode` | | What to show when there are no rows: an `Empty` with the page's own sentence, such as "No requests yet" or, behind filters, "No requests match" with Clear filters. On a page and in a card the table keeps its head and draws faint, still rows in its own columns around it, so the first real row lands where the first faint one was. Without it the table says "No rows". |
|
|
742
|
+
| `error` | `ReactNode` | | The rows failed to load: the table says so where its rows would be and offers Try again (`onRetry`), or, without it, says to reload the page. A string names what failed ("Requests couldn't load") and becomes the title; the gateway's message stays in the toast where the request fails. |
|
|
723
743
|
| `freshRowIds` | `ReadonlySet<string>` | | Rows that just arrived (a live list): each shows a fill that fades out over a second. |
|
|
724
744
|
| `getRowId` | `((row: T) => string)` | | Returns a row's stable id, for selection and keys. |
|
|
725
745
|
| `hasMore` | `boolean` | | Whether more rows can be loaded. |
|
|
@@ -957,20 +977,23 @@ Display options: view, grouping and ordering, toggles, properties.
|
|
|
957
977
|
|
|
958
978
|
`import { Empty } from "@logicplanes/kaeso-ui/empty";`
|
|
959
979
|
|
|
960
|
-
- **size** (empty): `lg` (default) — A page with nothing in it:
|
|
980
|
+
- **size** (empty): `lg` (default) — A page with nothing in it: centred, two fifths of the way down the page under its header (default); `md` — A section, a sheet or a dialog step: centred, two fifths of the way down a sheet; `sm` — A card, a dashboard cell or a sheet's tab: centred in it; `compact` — Inside tables and lists: one short statement, centred in the row
|
|
981
|
+
- **tone** (empty): `neutral` (default) — Something is absent: nothing yet, nothing matches, nothing to see (default); `error` — Something couldn't load: what happened and a way to try again, announced as an alert
|
|
961
982
|
|
|
962
983
|
### Empty
|
|
963
984
|
|
|
964
|
-
|
|
985
|
+
Every state of a place that has nothing to show: nothing yet, nothing that matches, nothing the person may see, or something that couldn't load. A strong title, one sentence and at most one primary action, with a link to read more beside it where that helps, centred. On a page (`lg`) and in a sheet (`md`) it fills the room under the header and sits two fifths of the way down, under the place's icon, small and without a tile; in a section or a dialog step (`md`) and in a card, a dashboard cell or a sheet's tab (`sm`) it is centred in its room; in a table or list row (`compact`) it is one short statement. Given to a List or a DataTable as `empty`, it stands between faint rows of the list it replaces, without an icon. An error (`tone="error"`) is announced as an alert and colours only its icon. On an edge-to-edge page body it keeps the gutter itself; on a padded surface it uses the surface's padding; inside a card it keeps 20px off the card's edges, like the card's rows. The title is a heading (h2) at every size.
|
|
965
986
|
|
|
966
987
|
| Prop | Type | Default | Description |
|
|
967
988
|
|---|---|---|---|
|
|
968
|
-
| `title` * | `ReactNode` | | What is missing, in a few words. |
|
|
969
|
-
| `actions` | `ReactNode` | | The one action that makes something appear;
|
|
970
|
-
| `children` | `ReactNode` | |
|
|
989
|
+
| `title` * | `ReactNode` | | What is missing or what failed, in a few words. |
|
|
990
|
+
| `actions` | `ReactNode` | | The one action that makes something appear, or Try again for an error; a quiet link to read more may follow it. Leave it out when the page's header already offers the same action. |
|
|
991
|
+
| `children` | `ReactNode` | | Anything that belongs under the actions, such as a short list of what will show here. |
|
|
971
992
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
972
|
-
| `description` | `ReactNode` | | One sentence: what
|
|
973
|
-
| `
|
|
993
|
+
| `description` | `ReactNode` | | One sentence: what this place holds and the next step, or what happened. |
|
|
994
|
+
| `icon` | `IconData` | | The place's own icon, as in the navigation, so the empty page reads as that place: small, above the words, on pages, sheets and sections only. Never decoration, and left out between a list's faint rows. |
|
|
995
|
+
| `size` | `"md" \| "sm" \| "lg" \| "compact"` | `lg` | How much room it takes: a whole page (`lg`), a section (`md`), a card, cell or sheet (`sm`) or a row (`compact`). |
|
|
996
|
+
| `tone` | `"neutral" \| "error"` | `neutral` | `error` when something couldn't load: an alert, with the icon in the danger colour. |
|
|
974
997
|
|
|
975
998
|
## field
|
|
976
999
|
|
|
@@ -1055,7 +1078,7 @@ A filter as one pill: "Status is 2xx ×", each part opening a menu.
|
|
|
1055
1078
|
|
|
1056
1079
|
`import { FilterRow } from "@logicplanes/kaeso-ui/filter-row";`
|
|
1057
1080
|
|
|
1058
|
-
- **size** (filter_row): `md` (default) — Under a page header on an edge-to-edge page:
|
|
1081
|
+
- **size** (filter_row): `md` (default) — Under a page header on an edge-to-edge page: the gutter at its sides, 48px tall on one line like a toolbar; `inset` — In a settings column: 24px under the header (with the column's 8px), 16px above the list or table (chosen automatically)
|
|
1059
1082
|
|
|
1060
1083
|
### FilterRow
|
|
1061
1084
|
|
|
@@ -1125,7 +1148,7 @@ The page body of an editor built on a `FlowCanvas`: the canvas fills the panel u
|
|
|
1125
1148
|
|
|
1126
1149
|
### FlowWorkspace.Panel
|
|
1127
1150
|
|
|
1128
|
-
One inspector section on the
|
|
1151
|
+
One inspector section on the gutter: a title with actions beside it, a line of description, then the fields.
|
|
1129
1152
|
|
|
1130
1153
|
| Prop | Type | Default | Description |
|
|
1131
1154
|
|---|---|---|---|
|
|
@@ -1307,12 +1330,12 @@ A multi-line field: radius 14 (multi-line text cannot be a pill), the same mater
|
|
|
1307
1330
|
|
|
1308
1331
|
### ClientButton
|
|
1309
1332
|
|
|
1310
|
-
An agent client's mark, such as Claude, Cursor, GitHub Copilot or ChatGPT, in a raised circle beside the other header buttons, as a button that opens how to connect it.
|
|
1333
|
+
An agent client's mark, such as Claude, Grok Build (formerly Cursor), GitHub Copilot or ChatGPT, in a raised circle beside the other header buttons, as a button that opens how to connect it.
|
|
1311
1334
|
|
|
1312
1335
|
| Prop | Type | Default | Description |
|
|
1313
1336
|
|---|---|---|---|
|
|
1314
1337
|
| `aria-label` * | `string` | | The client's name; also the tooltip. |
|
|
1315
|
-
| `client` * | `"cursor" \| "claude" \| "github-copilot" \| "chatgpt"` | | Which client's mark it shows. |
|
|
1338
|
+
| `client` * | `"cursor" \| "claude" \| "github-copilot" \| "chatgpt"` | | Which client's mark it shows; `cursor` is Grok Build, formerly Cursor, which kept Cursor's cube. |
|
|
1316
1339
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1317
1340
|
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
1318
1341
|
| `onClick` | `(() => void)` | | Opens how to connect the client. |
|
|
@@ -1582,7 +1605,7 @@ A key cap, 20px tall in 11/500 Inter with a fill and ring, or with `keys` a whol
|
|
|
1582
1605
|
|
|
1583
1606
|
### KeyValue
|
|
1584
1607
|
|
|
1585
|
-
Label and value pairs (13/500 secondary label, 14 value), copyable values, each pair a row with a hairline at its foot; values line up on one edge. Side by side for sheets; label above value in columns (`grid`) where a sheet is wide enough for two or more to a row. A value or grid label that doesn't fit ends in an ellipsis, takes focus and shows whole in a tooltip. A value that wraps (`wrap`) keeps its line breaks. Side by side, the label column grows to its longest label up to 240px, and longer labels wrap; a label and its value share their first line's baseline, however many lines either takes. Ids and keys (`mono`) are 13px, like ids everywhere in the library.
|
|
1608
|
+
Label and value pairs (13/500 secondary label, 14 value), copyable values, each pair a row with a hairline at its foot; values line up on one edge. Side by side for sheets; label above value in columns (`grid`) where a sheet is wide enough for two or more to a row. A value or grid label that doesn't fit ends in an ellipsis, takes focus and shows whole in a tooltip. A value that wraps (`wrap`) keeps its line breaks. Side by side, the label column grows to its longest label up to 240px, and longer labels wrap; a label and its value share their first line's baseline, however many lines either takes. Ids and keys (`mono`) are 13px, like ids everywhere in the library. A pair's `action`, such as a button that removes it, sits at the end of its row.
|
|
1586
1609
|
|
|
1587
1610
|
| Prop | Type | Default | Description |
|
|
1588
1611
|
|---|---|---|---|
|
|
@@ -1624,8 +1647,10 @@ The console list: 44px rows on the panel (48px in a card, 56px with a second lin
|
|
|
1624
1647
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1625
1648
|
| `data-force-row` | `string` | | Force a state on the first row for state matrices: hover, pressed, focus. |
|
|
1626
1649
|
| `density` | `"default" \| "compact"` | `default` | How much room each row gets. |
|
|
1627
|
-
| `empty` | `ReactNode` | | Shown when there are no rows and the list isn't loading
|
|
1650
|
+
| `empty` | `ReactNode` | | Shown when there are no rows and the list isn't loading, usually an `Empty` with the page's sentence. On a page and in a card the list draws faint, still rows of its own shape around it (ten on a page, three in a card), so the place reads as itself and the first real row lands where the first faint one was; in a sheet or a dialog it stands alone. |
|
|
1651
|
+
| `ghost` | `false \| ListGhost` | `{}` | The shape of the faint rows behind `empty`, like the real rows: a second line of text (`subtitle`, on by default), how many badges (`meta`), a date (on by default) and a picture before the title (`leading`). `false` leaves them out. |
|
|
1628
1652
|
| `groups` | `ListGroup[]` | | …rows under group headers. |
|
|
1653
|
+
| `headings` | `ListHeadings` | | A quiet row of column headings above the rows, for a list whose metadata is bare figures (a context window, a price, a month): one for the title, one laid out like a row's `meta`, one for the date. Left out on a phone, where the metadata moves under the title. |
|
|
1629
1654
|
| `idWidth` | `48 \| 64 \| 80 \| 96 \| 120` | | A fixed width for the id column when ids differ in length, so titles align. By default the id takes its own width. |
|
|
1630
1655
|
| `items` | `ListItemData[]` | | Rows without groups, or… |
|
|
1631
1656
|
| `loading` | `boolean` | | Loading rows shaped like items, under a group header's shape when the list has groups, while the rows aren't known yet. |
|
|
@@ -1794,7 +1819,7 @@ Progress for work over a second: a determinate 6px bar, or an indeterminate 2px
|
|
|
1794
1819
|
|
|
1795
1820
|
### PageHeader
|
|
1796
1821
|
|
|
1797
|
-
The 52px header of a page: its title, pill tabs, actions. Beside the tabs,
|
|
1822
|
+
The 52px header of a page: its title, pill tabs, actions. Beside the tabs, the title keeps its whole width and the tabs take the room that's left, scrolling when they need more; only a title that would leave them less than 160px is cut short. Whatever sits right above AppFrame.Body (this header, or a toolbar under it) shows a hairline at its foot while the content is scrolled under it, so the line separates only where something passes beneath. On a phone the tabs move to a row of their own under the title and actions, and actions that don't fit beside the whole title move to a row of their own too, wrapping onto another line when they are wider than the page, so the title isn't cut short, the tabs aren't squeezed beside a button and no action runs off the edge.
|
|
1798
1823
|
|
|
1799
1824
|
| Prop | Type | Default | Description |
|
|
1800
1825
|
|---|---|---|---|
|
|
@@ -2207,7 +2232,7 @@ The group a set of radios belongs to: one of them is chosen, and the arrow keys
|
|
|
2207
2232
|
|
|
2208
2233
|
`import { ReleaseArt } from "@logicplanes/kaeso-ui/release-art";`
|
|
2209
2234
|
|
|
2210
|
-
- **shape** (release_art): `banner` (default) — 16:9: the head of a dialog or a card (default); `wide` — 21:9: a wide strip above a page's content
|
|
2235
|
+
- **shape** (release_art): `banner` (default) — 16:9: the head of a dialog or a card (default); `wide` — 21:9: a wide strip above a page's content
|
|
2211
2236
|
|
|
2212
2237
|
### ReleaseArt
|
|
2213
2238
|
|
|
@@ -2220,8 +2245,8 @@ A release's artwork, drawn from a stored art spec or a seed. New releases, and a
|
|
|
2220
2245
|
| `art` | `ReleaseArtSpec` | | The release's stored artwork, e.g. from `nextReleaseArt`; it always draws the same picture and wins over `seed`. |
|
|
2221
2246
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2222
2247
|
| `eyebrow` | `ReactNode` | | Small text above the title, e.g. “Kaeso”; a glow sets it before the title on one line. |
|
|
2223
|
-
| `flush` | `boolean` | | 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
|
|
2224
|
-
| `shape` | `"banner" \| "wide"
|
|
2248
|
+
| `flush` | `boolean` | | 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 the head of a dialog. |
|
|
2249
|
+
| `shape` | `"banner" \| "wide"` | `banner` | The artwork's aspect ratio. |
|
|
2225
2250
|
| `src` | `string` | | An image of the release's stored artwork, e.g. `https://update.kaeso.app/art/0.1.0.svg`, shown in the frame instead of the drawn picture, which takes its place if the image doesn't load. |
|
|
2226
2251
|
| `title` | `ReactNode` | | Large text on the artwork, e.g. the version number; a glow sets it after the eyebrow on one centred line. |
|
|
2227
2252
|
|
|
@@ -2435,7 +2460,7 @@ A panel that slides in from the edge of the screen, for details and longer forms
|
|
|
2435
2460
|
|
|
2436
2461
|
### Sidebar
|
|
2437
2462
|
|
|
2438
|
-
The app's navigation: the wordmark or the switcher of the place the app is in, groups of links, an account menu at the foot, collapsible and resizable.
|
|
2463
|
+
The app's navigation: the wordmark or the switcher of the place the app is in with search under it (`Sidebar.Search`), groups of links, an account menu at the foot, collapsible and resizable.
|
|
2439
2464
|
|
|
2440
2465
|
| Prop | Type | Default | Description |
|
|
2441
2466
|
|---|---|---|---|
|
|
@@ -2457,16 +2482,17 @@ Holds the sidebar's state for everything inside it: whether it shows as a rail,
|
|
|
2457
2482
|
|
|
2458
2483
|
`import { Skeleton } from "@logicplanes/kaeso-ui/skeleton";`
|
|
2459
2484
|
|
|
2460
|
-
- **shape** (skeleton): `block` (default) — A cut plate for charts and wells (default); `line` — A bar for a line of text, cut like a plate; `word` — A bar inside a line of text, such as a title or a note still loading: it sits on the text's line, so the line keeps its height; `circle` — Avatars and icons; `control` — The shape of a 36px control; `trend` — The plate of a 48px trend line, such as a dashboard cell's fluid Sparkline
|
|
2485
|
+
- **shape** (skeleton): `block` (default) — A cut plate for charts and wells (default); `line` — A bar for a line of text, cut like a plate; `word` — A bar inside a line of text, such as a title or a note still loading: it sits on the text's line, so the line keeps its height; `circle` — Avatars and icons; `control` — The shape of a 36px control; `field` — The shape of a 32px control, such as a settings row's small field or button; `trend` — The plate of a 48px trend line, such as a dashboard cell's fluid Sparkline; `fields` — Label and value pairs in KeyValue's columns, for a sheet or a details panel still loading; `lines` sets how many (5 by default)
|
|
2461
2486
|
|
|
2462
2487
|
### Skeleton
|
|
2463
2488
|
|
|
2464
|
-
A placeholder in the shape of the content that is loading. It is hidden from screen readers, so the region it stands in for sets `aria-busy` while it loads (List, DataTable and a tile Stat do). In forced colours it keeps an outline.
|
|
2489
|
+
A placeholder in the shape of the content that is loading. It is hidden from screen readers, so the region it stands in for sets `aria-busy` while it loads (List, DataTable and a tile Stat do); one that stands alone, such as a sheet's or a section's, sets `announce` to speak for itself. In forced colours it keeps an outline.
|
|
2465
2490
|
|
|
2466
2491
|
| Prop | Type | Default | Description |
|
|
2467
2492
|
|---|---|---|---|
|
|
2468
|
-
| `
|
|
2469
|
-
| `
|
|
2493
|
+
| `announce` | `string \| boolean` | | For a skeleton with no busy region around it, such as a sheet or a section still loading: a polite status next to it says "Loading", or the string, after 300 ms, so screen readers hear it and a faster load says nothing. The shapes stay hidden. |
|
|
2494
|
+
| `lines` | `number` | | Stands in for that many lines of text, the last one shorter, and takes the place of `shape`; with `shape="fields"`, how many label and value pairs. |
|
|
2495
|
+
| `shape` | `"circle" \| "line" \| "field" \| "control" \| "block" \| "word" \| "trend" \| "fields"` | `block` | The shape it stands in for: a line of text, a few words inside a line of text, a control, a circle, a 48px trend line, a sheet's label and value pairs, or a block. |
|
|
2470
2496
|
|
|
2471
2497
|
## slider
|
|
2472
2498
|
|
|
@@ -2822,7 +2848,8 @@ Mount once near the root. Three visible at most; 5s, paused on hover and focus;
|
|
|
2822
2848
|
|
|
2823
2849
|
`import { Toolbar } from "@logicplanes/kaeso-ui/toolbar";`
|
|
2824
2850
|
|
|
2825
|
-
- **size** (toolbar): `md` (default) — 48px,
|
|
2851
|
+
- **size** (toolbar): `md` (default) — 48px, the gutter at its sides, under the page header (default); one tab stop, arrows move between controls; `inset` — 48px without side padding, inside padded content
|
|
2852
|
+
- **overflow** (toolbar): `wrap` (default) — Controls that don't fit move to a second line (default); `scroll` — On a phone the bar stays one line and scrolls sideways, fading at the cut edge; for a bar of many filters
|
|
2826
2853
|
|
|
2827
2854
|
### Toolbar
|
|
2828
2855
|
|
|
@@ -2831,6 +2858,7 @@ A row of controls above a list or a chart: one tab stop, with the arrow keys mov
|
|
|
2831
2858
|
| Prop | Type | Default | Description |
|
|
2832
2859
|
|---|---|---|---|
|
|
2833
2860
|
| `aria-label` * | `string` | | Defines a string value that labels the current element. |
|
|
2861
|
+
| `overflow` | `"wrap" \| "scroll"` | `wrap` | What happens to controls that don't fit: wrap to a second line, or on a phone scroll sideways on one line; use scroll for a bar of many filters. |
|
|
2834
2862
|
| `size` | `"md" \| "inset"` | | The bar's height: the default, or inset in a panel. |
|
|
2835
2863
|
|
|
2836
2864
|
## tooltip
|
package/ai/icons.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Icon vocabulary
|
|
2
2
|
|
|
3
|
-
Version 0.7.5
|
|
3
|
+
Version 0.7.5. Generated from `src/icons/vocabulary.ts`; do not edit. Use the name, never an icon picked by look: `icons.key` always means a key. Octicons. Rules: `foundations/icons.md`.
|
|
4
4
|
|
|
5
5
|
## Kaeso objects
|
|
6
6
|
|
package/ai/tokens.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @logicplanes/kaeso-ui tokens
|
|
2
2
|
|
|
3
|
-
Version 0.7.5
|
|
3
|
+
Version 0.7.5. Generated from `@logicplanes/kaeso-tokens`; do not edit. Components use these through role names (`bg-panel`, `text-fg-secondary`, `h-36`, `rounded-pill`); a raw value never appears in a component. How to use them: `foundations/*.md`.
|
|
4
4
|
|
|
5
5
|
## Neutrals
|
|
6
6
|
|
|
@@ -94,6 +94,23 @@ Version 0.7.5-rc.8. Generated from `@logicplanes/kaeso-tokens`; do not edit. Com
|
|
|
94
94
|
| `--k-viz-7` | orange | #ea580c | #fb923c |
|
|
95
95
|
| `--k-viz-8` | fuchsia | #d946ef | #e879f9 |
|
|
96
96
|
|
|
97
|
+
## Swatches
|
|
98
|
+
|
|
99
|
+
The colour a named thing such as a project keeps everywhere, given out in this order (`SWATCHES`, `nearestSwatches`).
|
|
100
|
+
|
|
101
|
+
| Variable | Swatch | Light | Dark |
|
|
102
|
+
|---|---|---|---|
|
|
103
|
+
| `--k-swatch-1` | blue | #1d4ed8 | #3b82f6 |
|
|
104
|
+
| `--k-swatch-2` | orange | #ea580c | #fb923c |
|
|
105
|
+
| `--k-swatch-3` | teal | #0d9488 | #5eead4 |
|
|
106
|
+
| `--k-swatch-4` | rose | #be123c | #f43f5e |
|
|
107
|
+
| `--k-swatch-5` | fuchsia | #d946ef | #f0abfc |
|
|
108
|
+
| `--k-swatch-6` | emerald | #047857 | #10b981 |
|
|
109
|
+
| `--k-swatch-7` | violet | #7c3aed | #a78bfa |
|
|
110
|
+
| `--k-swatch-8` | yellow | #a16207 | #fde047 |
|
|
111
|
+
| `--k-swatch-9` | indigo | #4338ca | #6366f1 |
|
|
112
|
+
| `--k-swatch-10` | green | #16a34a | #86efac |
|
|
113
|
+
|
|
97
114
|
## Type
|
|
98
115
|
|
|
99
116
|
| Utility | Size / line height | Weight | Tracking |
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as e, t } from "./inset-BTAjcK6a.js";
|
|
3
|
-
import { t as n } from "./cn-
|
|
3
|
+
import { t as n } from "./cn-Cim5WXyu.js";
|
|
4
4
|
import { SidebarLeft as r } from "../icons/sidebar-left.js";
|
|
5
|
-
import { a as i, n as a } from "./button-
|
|
6
|
-
import { a as o, t as s } from "./sidebar-
|
|
5
|
+
import { a as i, n as a } from "./button-CXdEDVSI.js";
|
|
6
|
+
import { a as o, t as s } from "./sidebar-Cz0KdApZ.js";
|
|
7
7
|
import { t as c } from "./portal-context-Z2xSIPsc.js";
|
|
8
|
-
import { c as l, o as u } from "./tooltip-
|
|
8
|
+
import { c as l, o as u } from "./tooltip-uRgNOzW_.js";
|
|
9
9
|
import { t as d } from "./when-idle-DXKwyOLB.js";
|
|
10
10
|
import { a as f } from "./context-B2nNL7Im.js";
|
|
11
11
|
import { t as p } from "./merge-refs-SiVVoQsO.js";
|
|
@@ -90,7 +90,7 @@ function M({ banner: e, href: t, label: n, actions: i, open: o, onToggle: c, tog
|
|
|
90
90
|
"data-phone-bar": "",
|
|
91
91
|
className: "shrink-0 bg-panel safe-area-bar lg:hidden",
|
|
92
92
|
children: /* @__PURE__ */ T("div", {
|
|
93
|
-
className: "mt-8 flex h-52 items-center justify-between px-
|
|
93
|
+
className: "mt-8 flex h-52 items-center justify-between px-gutter",
|
|
94
94
|
children: [/* @__PURE__ */ w(s, {
|
|
95
95
|
href: t,
|
|
96
96
|
label: n
|
|
@@ -112,7 +112,7 @@ function M({ banner: e, href: t, label: n, actions: i, open: o, onToggle: c, tog
|
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
process.env.NODE_ENV !== "production" && (M.displayName = "AppFrame.PhoneBar");
|
|
115
|
-
var N = 160, P = /* @__PURE__ */ u(() => import("./nav-sheet
|
|
115
|
+
var N = 160, P = /* @__PURE__ */ u(() => import("./nav-sheet--ycVeOvo.js"), { base: () => import.meta.url });
|
|
116
116
|
function F({ navOpen: e, setNavOpen: t, toggle: n, ready: r, children: i }) {
|
|
117
117
|
let { peeking: a, setPeeking: s } = o(), [c, u] = C(!1);
|
|
118
118
|
v(() => d(() => u(!0)), []);
|
|
@@ -182,7 +182,7 @@ process.env.NODE_ENV !== "production" && (L.displayName = "AppFrame.MenuButton")
|
|
|
182
182
|
var R = { padding: {
|
|
183
183
|
none: { classes: "" },
|
|
184
184
|
list: { classes: "pt-8 pb-24" },
|
|
185
|
-
page: { classes: "px-
|
|
185
|
+
page: { classes: "px-gutter pt-16 pb-48" }
|
|
186
186
|
} }, z = { padding: "none" }, B = /* @__PURE__ */ h(function({ className: e, padding: r = "none", children: i, ...a }, o) {
|
|
187
187
|
let s = S(null), c = x(() => p(s, o), [o]);
|
|
188
188
|
return v(() => {
|
|
@@ -211,8 +211,8 @@ var V = /* @__PURE__ */ h(function({ title: r, description: i, actions: a, class
|
|
|
211
211
|
return /* @__PURE__ */ T(B, {
|
|
212
212
|
ref: l,
|
|
213
213
|
className: "relative",
|
|
214
|
-
children: [/* @__PURE__ */ w(L, { className: "absolute top-10 left-
|
|
215
|
-
className: n("w-full px-
|
|
214
|
+
children: [/* @__PURE__ */ w(L, { className: "absolute top-10 left-gutter z-10" }), /* @__PURE__ */ T("div", {
|
|
215
|
+
className: n("w-full px-gutter pt-16 pb-96 lg:mx-auto lg:max-w-settings lg:pt-64", o),
|
|
216
216
|
...c,
|
|
217
217
|
children: [/* @__PURE__ */ T("header", {
|
|
218
218
|
className: "flex flex-wrap items-start justify-between gap-x-16 gap-y-8 pb-24 rule-b",
|
|
@@ -245,4 +245,4 @@ var H = /* @__PURE__ */ Object.assign(A, {
|
|
|
245
245
|
});
|
|
246
246
|
export { E as a, D as i, z as n, k as o, R as r, H as t };
|
|
247
247
|
|
|
248
|
-
//# sourceMappingURL=app-frame-
|
|
248
|
+
//# sourceMappingURL=app-frame-COfWg7wS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-frame-COfWg7wS.js","names":["_jsx","_jsxs","__icon_SidebarLeft","InsetContent","cn","SidebarLeft","buttonClasses","Button","useSidebar","BrandWordmark","PortalContainer","useLazyModule","lazyModule","whenIdle","useUiText","mergeRefs","createContext","forwardRef","useCallback","useContext","useEffect","useId","useLayoutEffect","useMemo","useRef","useState","jsx","jsxs","KAESO_APP_FRAME_VARIANTS","KAESO_APP_FRAME_DEFAULT_VARIANTS","Ctx","useAppFrame","Root","sidebar","children","corner","fill","brandHref","brandLabel","phoneActions","className","ref","navOpen","setNavOpen","toggle","sheetReady","mainId","Main","frame","sheet","FrameSheet","SkipLink","PhoneBar","o","target","e","main","banner","href","label","actions","open","onToggle","toggleRef","Bar","t","PEEK_LEAVE","navSheet","ready","peeking","setPeeking","idle","setIdle","dismiss","NavSheet","pending","usePendingDismiss","doc","onKeyDown","onPointerDown","MenuButton","openNav","collapsed","setCollapsed","shortcut","intent","wide","KAESO_APP_FRAME_BODY_VARIANTS","KAESO_APP_FRAME_BODY_DEFAULT_VARIANTS","Body","padding","props","own","refs","el","band","mark","next","GutterContent","Settings","title","description","AppFrame"],"sources":["../../src/components/app-frame/app-frame.tsx"],"sourcesContent":["import {\n createContext,\n forwardRef,\n useCallback,\n useContext,\n useEffect,\n useId,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n type HTMLAttributes,\n type ReactNode,\n type RefObject,\n} from \"react\";\nimport { GutterContent, InsetContent } from \"../../utils/inset.js\";\nimport { cn } from \"../../utils/cn.js\";\nimport { SidebarLeft as __icon_SidebarLeft } from \"../../icons/octicons/sidebar-left.js\";\nimport { Button, buttonClasses } from \"../button/button.js\";\nimport { useSidebar, BrandWordmark } from \"../sidebar/sidebar.js\";\nimport { PortalContainer } from \"../../utils/portal-context.js\";\nimport { lazyModule, useLazyModule } from \"../../utils/lazy-module.js\";\nimport { whenIdle } from \"../../utils/when-idle.js\";\nimport { useUiText } from \"../../i18n/context.js\";\nimport { mergeRefs } from \"../../utils/merge-refs.js\";\n\nexport const KAESO_APP_FRAME_VARIANTS = {\n fill: {\n screen: { classes: \"h-dvh\" },\n parent: { classes: \"h-full\" },\n },\n} as const;\nexport const KAESO_APP_FRAME_DEFAULT_VARIANTS = { fill: \"screen\" } as const;\n\nconst Ctx = /* @__PURE__ */ createContext<{ openNav: () => void; embedded: boolean; sheetReady: RefObject<boolean> }>({\n openNav: () => undefined,\n embedded: false,\n sheetReady: { current: false },\n});\nexport const useAppFrame = () => useContext(Ctx);\n\nexport interface AppFrameProps {\n sidebar: ReactNode;\n children: ReactNode;\n corner?: ReactNode | undefined;\n fill?: keyof typeof KAESO_APP_FRAME_VARIANTS.fill | undefined;\n brandHref?: string | undefined;\n brandLabel?: string | undefined;\n phoneActions?: ReactNode | undefined;\n className?: string | undefined;\n}\n\nconst Root = /* @__PURE__ */ forwardRef<HTMLDivElement, AppFrameProps>(function AppFrame(\n { sidebar, children, corner, fill = \"screen\", brandHref, brandLabel, phoneActions, className },\n ref,\n) {\n const [navOpen, setNavOpen] = useState(false);\n const toggle = useRef<HTMLButtonElement | null>(null);\n const sheetReady = useRef(false);\n const mainId = `k-main-${useId().replace(/[^\\w-]/g, \"\")}`;\n const Main = fill === \"screen\" ? \"main\" : \"div\";\n const frame = useMemo(() => ({ openNav: () => setNavOpen(true), embedded: fill === \"parent\", sheetReady }), [fill]);\n const sheet = (\n <FrameSheet navOpen={navOpen} setNavOpen={setNavOpen} toggle={toggle} ready={sheetReady}>\n {sidebar}\n </FrameSheet>\n );\n return (\n <Ctx.Provider value={frame}>\n <div\n ref={ref}\n data-app-frame={fill}\n className={cn(\n \"relative isolate flex w-full flex-col overflow-hidden bg-panel text-fg lg:flex-row\",\n KAESO_APP_FRAME_VARIANTS.fill[fill].classes,\n className,\n )}\n >\n <SkipLink target={mainId} />\n <div className=\"hidden h-full lg:flex\">{sidebar}</div>\n <PhoneBar\n banner={fill === \"screen\"}\n href={brandHref}\n label={brandLabel}\n actions={phoneActions}\n open={navOpen}\n onToggle={() => setNavOpen((o) => !o)}\n toggleRef={toggle}\n />\n <Main\n id={mainId}\n data-sidebar-follows=\"\"\n className=\"relative flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-panel outline-none safe-area-panel frame-main-top\"\n >\n {children}\n </Main>\n {corner && <div className={cn(fill === \"parent\" ? \"absolute\" : \"fixed\", \"right-16 bottom-16 z-10 flex items-center gap-8\")}>{corner}</div>}\n {fill === \"parent\" ? <PortalContainer className=\"contents\">{sheet}</PortalContainer> : sheet}\n </div>\n </Ctx.Provider>\n );\n});\nif (process.env.NODE_ENV !== \"production\") Root.displayName = \"AppFrame\";\n\nfunction SkipLink({ target }: { target: string }) {\n const t = useUiText();\n return (\n <a\n href={`#${target}`}\n onClick={(e) => {\n const main = document.getElementById(target);\n if (!main) return;\n e.preventDefault();\n main.setAttribute(\"tabindex\", \"-1\");\n main.addEventListener(\"blur\", () => main.removeAttribute(\"tabindex\"), { once: true });\n main.focus();\n }}\n className={cn(buttonClasses({ size: \"sm\" }), \"absolute top-16 left-16 z-50 not-focus:sr-only\")}\n >\n {t(\"appFrame.skipToContent\", \"Skip to content\")}\n </a>\n );\n}\nif (process.env.NODE_ENV !== \"production\") SkipLink.displayName = \"AppFrame.SkipLink\";\n\nfunction PhoneBar({\n banner,\n href,\n label,\n actions,\n open,\n onToggle,\n toggleRef,\n}: {\n banner: boolean;\n href: string | undefined;\n label: string | undefined;\n actions: ReactNode;\n open: boolean;\n onToggle: () => void;\n toggleRef: RefObject<HTMLButtonElement | null>;\n}) {\n const Bar = banner ? \"header\" : \"div\";\n const t = useUiText();\n return (\n <Bar data-phone-bar=\"\" className=\"shrink-0 bg-panel safe-area-bar lg:hidden\">\n <div className=\"mt-8 flex h-52 items-center justify-between px-gutter\">\n <BrandWordmark href={href} label={label} />\n <span className=\"flex items-center\">\n {actions}\n <Button\n variant=\"ghost\"\n size=\"sm\"\n ref={toggleRef}\n icon={__icon_SidebarLeft}\n aria-label={t(\"appFrame.openNavigation\", \"Open navigation\")}\n aria-haspopup=\"dialog\"\n aria-expanded={open}\n tooltip={false}\n onClick={onToggle}\n />\n </span>\n </div>\n </Bar>\n );\n}\nif (process.env.NODE_ENV !== \"production\") PhoneBar.displayName = \"AppFrame.PhoneBar\";\n\nexport const PEEK_DELAY = 750;\nconst PEEK_LEAVE = 160;\n\nconst navSheet = /* @__PURE__ */ lazyModule(() => import(\"./nav-sheet.js\"), { base: () => import.meta.url });\n\nfunction FrameSheet({\n navOpen,\n setNavOpen,\n toggle,\n ready,\n children,\n}: {\n navOpen: boolean;\n setNavOpen: (o: boolean) => void;\n toggle: RefObject<HTMLElement | null>;\n ready: RefObject<boolean>;\n children: ReactNode;\n}) {\n const { peeking, setPeeking } = useSidebar();\n const [idle, setIdle] = useState(false);\n useEffect(() => whenIdle(() => setIdle(true)), []);\n const dismiss = useCallback(() => {\n setNavOpen(false);\n setPeeking(false);\n }, [setNavOpen, setPeeking]);\n const NavSheet = useLazyModule(navSheet, idle || navOpen || peeking, () => {\n setIdle(false);\n dismiss();\n })?.NavSheet;\n const pending = (navOpen || peeking) && !NavSheet;\n useLayoutEffect(() => {\n ready.current = !!NavSheet;\n });\n usePendingDismiss(pending, toggle, dismiss);\n if (!NavSheet) return null;\n return (\n <NavSheet\n open={navOpen || peeking}\n peek={peeking && !navOpen}\n {...(navOpen ? { returnFocus: toggle } : {})}\n onOpenChange={(o) => {\n if (!o) dismiss();\n }}\n >\n {children}\n </NavSheet>\n );\n}\n\nfunction usePendingDismiss(pending: boolean, toggle: RefObject<HTMLElement | null>, dismiss: () => void) {\n useEffect(() => {\n if (!pending) return;\n const doc = toggle.current?.ownerDocument ?? document;\n const onKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Escape\") return;\n e.stopPropagation();\n dismiss();\n };\n const onPointerDown = (e: PointerEvent) => {\n if (!toggle.current?.contains(e.target as Node)) dismiss();\n };\n doc.addEventListener(\"keydown\", onKeyDown, true);\n doc.addEventListener(\"pointerdown\", onPointerDown, true);\n return () => {\n doc.removeEventListener(\"keydown\", onKeyDown, true);\n doc.removeEventListener(\"pointerdown\", onPointerDown, true);\n };\n }, [pending, toggle, dismiss]);\n}\n\nconst MenuButton = /* @__PURE__ */ forwardRef<HTMLButtonElement, { className?: string | undefined }>(function AppFrameMenuButton({ className }, ref) {\n const { openNav, sheetReady } = useAppFrame();\n const { collapsed, setCollapsed, peeking, setPeeking, shortcut } = useSidebar();\n const intent = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n useEffect(() => () => clearTimeout(intent.current), []);\n const t = useUiText();\n const wide = () => typeof window !== \"undefined\" && window.matchMedia(\"(min-width: 1024px)\").matches;\n return (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n ref={ref}\n onPointerEnter={() => {\n clearTimeout(intent.current);\n if (collapsed && wide() && !peeking) intent.current = setTimeout(() => setPeeking(true), PEEK_DELAY);\n }}\n onPointerLeave={(e) => {\n clearTimeout(intent.current);\n if (!sheetReady.current || !peeking) return setPeeking(false);\n const doc = e.currentTarget.ownerDocument;\n intent.current = setTimeout(() => {\n if (!doc.querySelector(\"[data-nav-sheet]\")?.matches(\":hover\")) setPeeking(false);\n }, PEEK_LEAVE);\n }}\n icon={__icon_SidebarLeft}\n data-sidebar-expand=\"\"\n aria-label={collapsed ? t(\"appFrame.expandSidebar\", \"Expand sidebar\") : t(\"appFrame.openNavigation\", \"Open navigation\")}\n shortcut={collapsed && shortcut ? [\"[\"] : undefined}\n onClick={(e) => {\n clearTimeout(intent.current);\n if (collapsed && wide()) setCollapsed(false, { animate: e.detail > 0 });\n else openNav();\n }}\n className={cn(\"hidden\", collapsed && \"lg:inline-flex\", className)}\n />\n );\n});\nif (process.env.NODE_ENV !== \"production\") MenuButton.displayName = \"AppFrame.MenuButton\";\n\nexport const KAESO_APP_FRAME_BODY_VARIANTS = {\n padding: {\n none: { classes: \"\" },\n list: { classes: \"pt-8 pb-24\" },\n page: {\n classes: \"px-gutter pt-16 pb-48\",\n },\n },\n} as const;\nexport const KAESO_APP_FRAME_BODY_DEFAULT_VARIANTS = { padding: \"none\" } as const;\n\nexport interface AppFrameBodyProps extends HTMLAttributes<HTMLDivElement> {\n padding?: keyof typeof KAESO_APP_FRAME_BODY_VARIANTS.padding | undefined;\n}\n\nconst Body = /* @__PURE__ */ forwardRef<HTMLDivElement, AppFrameBodyProps>(function AppFrameBody({ className, padding = \"none\", children, ...props }, ref) {\n const own = useRef<HTMLDivElement | null>(null);\n const refs = useMemo(() => mergeRefs(own, ref), [ref]);\n useEffect(() => {\n const el = own.current;\n if (!el) return;\n let band: Element | null = null;\n const mark = () => {\n const next = el.scrollTop > 0 ? el.previousElementSibling : null;\n if (next === band) return;\n band?.removeAttribute(\"data-k-content-under\");\n next?.setAttribute(\"data-k-content-under\", \"\");\n band = next;\n };\n mark();\n el.addEventListener(\"scroll\", mark, { passive: true });\n return () => {\n el.removeEventListener(\"scroll\", mark);\n band?.removeAttribute(\"data-k-content-under\");\n };\n }, []);\n return (\n <div\n ref={refs}\n data-frame-body=\"\"\n className={cn(\"min-h-0 flex-1 overflow-y-auto overscroll-contain scrollbar-quiet\", KAESO_APP_FRAME_BODY_VARIANTS.padding[padding].classes, className)}\n {...props}\n >\n <GutterContent padded={padding === \"page\"}>{children}</GutterContent>\n </div>\n );\n});\nif (process.env.NODE_ENV !== \"production\") Body.displayName = \"AppFrame.Body\";\n\nexport interface SettingsPageProps extends Omit<HTMLAttributes<HTMLDivElement>, \"title\"> {\n title: ReactNode;\n description?: ReactNode | undefined;\n actions?: ReactNode | undefined;\n}\n\nconst Settings = /* @__PURE__ */ forwardRef<HTMLDivElement, SettingsPageProps>(function AppFrameSettings({ title, description, actions, className, children, ...props }, ref) {\n return (\n <Body ref={ref} className=\"relative\">\n <MenuButton className=\"absolute top-10 left-gutter z-10\" />\n <div className={cn(\"w-full px-gutter pt-16 pb-96 lg:mx-auto lg:max-w-settings lg:pt-64\", className)} {...props}>\n <header className=\"flex flex-wrap items-start justify-between gap-x-16 gap-y-8 pb-24 rule-b\">\n <h1 className=\"min-w-0 text-title-lg font-semibold text-fg text-balance sm:flex-1\">{title}</h1>\n {actions && <div className=\"order-last flex min-h-32 shrink-0 items-center gap-8 sm:order-none sm:ml-auto\">{actions}</div>}\n {description && <p className=\"basis-full text-body-lg font-regular text-fg-secondary\">{description}</p>}\n </header>\n <div className=\"mt-8\">\n <InsetContent>\n <GutterContent>{children}</GutterContent>\n </InsetContent>\n </div>\n </div>\n </Body>\n );\n});\nif (process.env.NODE_ENV !== \"production\") Settings.displayName = \"AppFrame.Settings\";\n\nexport const AppFrame = /* @__PURE__ */ Object.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EAAqEmF,EAA8B,QAAQG,EAAQ,CAAC,SAASlD,CAAS;EACpJ,GAAImD;EAEJ,UAAA3F,kBAACkG,GAAD;GAAe,QAAQR,MAAY;GAASxD;EAAwB,CAAA;CACjE,CAAA;AAET,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAcuD,EAAK,cAAc;AAQ9D,IAAMU,IAA2BlF,kBAA8C,SAA0B,EAAEmF,UAAOC,gBAAazC,YAASpB,cAAWN,aAAU,GAAGyD,KAASlD,GAAK;CAC5K,OACExC,kBAACwF,GAAD;EAAWhD;EAAK,WAAU;EAA1B,UAAA,CACEzC,kBAACgF,GAAD,EAAY,WAAU,mCAAoC,CAAA,GAC1D/E,kBAAC,OAAD;GAAK,WAAWG,EAAG,sEAAsEoC,CAAS;GAAG,GAAImD;GAAzG,UAAA,CACE1F,kBAAC,UAAD;IAAQ,WAAU;IAAlB,UAAA;KACED,kBAAC,MAAD;MAAI,WAAU;MAAsE,UAAAoG;KAAU,CAAA;KAC7FxC,KAAW5D,kBAAC,OAAD;MAAK,WAAU;MAAiF,UAAA4D;KAAa,CAAA;KACxHyC,KAAerG,kBAAC,KAAD;MAAG,WAAU;MAA0D,UAAAqG;KAAe,CAAA;IAChG;GACR,CAAA,GAAArG,kBAAC,OAAD;IAAK,WAAU;IACb,UAAAA,kBAACG,GAAD,EAAA,UACEH,kBAACkG,GAAD,EAAgBhE,YAAwB,CAAA,EAC5B,CAAA;GACX,CAAA,CACF;EACD,CAAA,CAAA;;AAEV,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAciE,EAAS,cAAc;AAElE,IAAaG,IAA2B,uBAAO,OAAOtE,GAAM;CAAEgD;CAAYS;CAAMU;AAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrow-focus-D9q8rMct.js","names":["focusables","container","el","rowItems","group","arrowFocus","e","
|
|
1
|
+
{"version":3,"file":"arrow-focus-D9q8rMct.js","names":["focusables","container","el","rowItems","group","arrowFocus","e","byItem","items","target","all","groups","child","g","i","step","n","next"],"sources":["../../src/utils/arrow-focus.ts"],"sourcesContent":["import type { KeyboardEvent } from \"react\";\n\nconst CANDIDATES = 'button, input, select, textarea, a[href], [tabindex], [contenteditable]:not([contenteditable=\"false\"])';\n\nexport function focusables(container: HTMLElement): HTMLElement[] {\n return [...container.querySelectorAll<HTMLElement>(CANDIDATES)].filter(\n (el) =>\n !el.matches(\":disabled\") &&\n (el.getAttribute(\"tabindex\") !== \"-1\" || el.dataset.roving !== undefined) &&\n !el.closest(\"[inert], [hidden], [aria-hidden='true']\") &&\n (typeof el.checkVisibility !== \"function\" || el.checkVisibility()),\n );\n}\n\n// Groups that move their own focus with the arrow keys and keep their own tab stop, such as a Segmented.\nconst OWN_ARROWS = \"[role=radiogroup], [role=tablist]\";\n\n/** The controls a roving row moves between, leaving out those inside a group that roves by itself. */\nexport function rowItems(container: HTMLElement): HTMLElement[] {\n return focusables(container).filter((el) => {\n const group = el.closest(OWN_ARROWS);\n return !group || !container.contains(group);\n });\n}\n\nexport function arrowFocus(\n e: KeyboardEvent<HTMLElement>,\n { byItem = false, items = focusables }: { byItem?: boolean | undefined; items?: ((container: HTMLElement) => HTMLElement[]) | undefined } = {},\n) {\n if (e.defaultPrevented || (e.key !== \"ArrowLeft\" && e.key !== \"ArrowRight\")) return;\n const target = e.target as HTMLElement;\n if (target.tagName === \"INPUT\" && (target as HTMLInputElement).value) return;\n const all = items(e.currentTarget);\n const groups = byItem ? [...e.currentTarget.children].map((child) => all.filter((el) => child.contains(el))).filter((g) => g.length) : all.map((el) => [el]);\n const i = groups.findIndex((g) => g.includes(target));\n if (i < 0) return;\n e.preventDefault();\n const step = e.key === \"ArrowRight\" ? 1 : -1;\n for (let n = 1; n < groups.length; n++) {\n const next = groups[(((i + step * n) % groups.length) + groups.length) % groups.length]?.[0];\n next?.focus();\n if (next && document.activeElement === next) return;\n }\n}\n"],"mappings":"AAIA,SAAgBA,EAAWC,GAAuC;CAChE,OAAO,CAAC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,KAAQ,SAAS,kBAAkBA,GAAM;CAC/C;AACF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "./cn-
|
|
2
|
+
import { t as e } from "./cn-Cim5WXyu.js";
|
|
3
3
|
import { t } from "./use-hydrating-Dth8POSk.js";
|
|
4
4
|
import { a as n, r } from "./context-B2nNL7Im.js";
|
|
5
|
-
import { r as i } from "./tooltip-
|
|
5
|
+
import { r as i } from "./tooltip-uRgNOzW_.js";
|
|
6
6
|
import { forwardRef as a, useMemo as o, useState as s } from "react";
|
|
7
7
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
8
8
|
// src/components/avatar/agent.tsx
|
|
@@ -234,27 +234,28 @@ var E = {
|
|
|
234
234
|
});
|
|
235
235
|
});
|
|
236
236
|
process.env.NODE_ENV !== "production" && (O.displayName = "Avatar");
|
|
237
|
-
var k = /* @__PURE__ */ a(function({ name: n, src: r,
|
|
238
|
-
let [
|
|
237
|
+
var k = /* @__PURE__ */ a(function({ name: n, src: r, color: i, size: a = 24, kind: o = "person", decorative: u, className: d, nudge: f }, p) {
|
|
238
|
+
let [m, h] = s(void 0), g = t(), _ = !!r && r !== m;
|
|
239
239
|
return /* @__PURE__ */ l("span", {
|
|
240
|
-
ref:
|
|
241
|
-
...
|
|
240
|
+
ref: p,
|
|
241
|
+
...i && !_ ? { style: { backgroundColor: i } } : {},
|
|
242
|
+
...u ? { "aria-hidden": !0 } : {
|
|
242
243
|
role: "img",
|
|
243
244
|
"aria-label": n
|
|
244
245
|
},
|
|
245
|
-
className: e("relative inline-flex shrink-0 items-center justify-center overflow-hidden mark-fill font-semibold text-fg select-none forced-colors:outline forced-colors:-outline-offset-1", C.size[
|
|
246
|
-
children:
|
|
246
|
+
className: e("relative inline-flex shrink-0 items-center justify-center overflow-hidden mark-fill font-semibold text-fg select-none forced-colors:outline forced-colors:-outline-offset-1", C.size[a].classes, C.kind[o].classes, a <= 24 && o === "org" && "rounded-avatar", d),
|
|
247
|
+
children: _ ? /* @__PURE__ */ l(c, { children: /* @__PURE__ */ l("img", {
|
|
247
248
|
ref: (e) => {
|
|
248
|
-
|
|
249
|
+
g && e?.complete && e.naturalWidth === 0 && h(r);
|
|
249
250
|
},
|
|
250
251
|
src: r,
|
|
251
252
|
alt: "",
|
|
252
253
|
className: "size-full object-cover image-outline",
|
|
253
|
-
onError: () =>
|
|
254
|
-
}) }) :
|
|
255
|
-
className:
|
|
256
|
-
children: T(n,
|
|
257
|
-
}) : T(n,
|
|
254
|
+
onError: () => h(r)
|
|
255
|
+
}) }) : i ? null : f ? /* @__PURE__ */ l("span", {
|
|
256
|
+
className: f,
|
|
257
|
+
children: T(n, a === 20 ? 1 : 2)
|
|
258
|
+
}) : T(n, a === 20 ? 1 : 2)
|
|
258
259
|
});
|
|
259
260
|
});
|
|
260
261
|
process.env.NODE_ENV !== "production" && (k.displayName = "Avatar");
|
|
@@ -314,4 +315,4 @@ process.env.NODE_ENV !== "production" && (P.displayName = "Avatar.Group");
|
|
|
314
315
|
var F = /* @__PURE__ */ Object.assign(O, { Group: P });
|
|
315
316
|
export { x as a, y as c, T as i, w as n, S as o, C as r, v as s, F as t };
|
|
316
317
|
|
|
317
|
-
//# sourceMappingURL=avatar-
|
|
318
|
+
//# sourceMappingURL=avatar-C4r7x_uJ.js.map
|