@logicplanes/kaeso-ui 0.6.0-rc.2 → 0.6.0-rc.4
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 +18 -18
- package/ai/component-guides.md +328 -909
- package/ai/component-registry.json +2654 -5979
- package/ai/component-registry.md +125 -984
- package/ai/icons.md +1 -1
- package/ai/tokens.md +4 -1
- package/dist/chunks/{app-frame-FPxcLx5a.js → app-frame-BQglMYqg.js} +31 -28
- package/dist/chunks/app-frame-BQglMYqg.js.map +1 -0
- package/dist/chunks/avatar-BxurPxr-.js +304 -0
- package/dist/chunks/avatar-BxurPxr-.js.map +1 -0
- package/dist/chunks/{badge-DCG794sL.js → badge-D0xd2NJD.js} +3 -3
- package/dist/chunks/{badge-DCG794sL.js.map → badge-D0xd2NJD.js.map} +1 -1
- package/dist/chunks/{banner-Bh9ALjtn.js → banner-CDxD8uNX.js} +10 -9
- package/dist/chunks/banner-CDxD8uNX.js.map +1 -0
- package/dist/chunks/{button-BhgnxxnI.js → button-CcXKlcXd.js} +86 -69
- package/dist/chunks/button-CcXKlcXd.js.map +1 -0
- package/dist/chunks/button-group-DuDLB-P0.js +70 -0
- package/dist/chunks/button-group-DuDLB-P0.js.map +1 -0
- package/dist/chunks/{calendar-BF77Yau7.js → calendar-65N4gUmO.js} +2 -2
- package/dist/chunks/{calendar-BF77Yau7.js.map → calendar-65N4gUmO.js.map} +1 -1
- package/dist/chunks/{checkbox-CX9ocjBN.js → checkbox-CeJSpY7J.js} +5 -8
- package/dist/chunks/checkbox-CeJSpY7J.js.map +1 -0
- package/dist/chunks/{cn-y70pJ-RU.js → cn-BUMD6lNz.js} +12 -1
- package/dist/chunks/cn-BUMD6lNz.js.map +1 -0
- package/dist/chunks/{code-C9y0iqOD.js → code-BBeW-m4W.js} +2 -2
- package/dist/chunks/{code-C9y0iqOD.js.map → code-BBeW-m4W.js.map} +1 -1
- package/dist/chunks/{code-block-ojOGgAZo.js → code-block-8rW57rUV.js} +6 -7
- package/dist/chunks/code-block-8rW57rUV.js.map +1 -0
- package/dist/chunks/{code-block-Co5XHbO4.js → code-block-CbVLyIr-.js} +13 -13
- package/dist/chunks/{code-block-Co5XHbO4.js.map → code-block-CbVLyIr-.js.map} +1 -1
- package/dist/chunks/collapsible-CiDUGq5u.js +50 -0
- package/dist/chunks/collapsible-CiDUGq5u.js.map +1 -0
- package/dist/chunks/{combobox-DIDrrFMN.js → combobox-BX703kW9.js} +19 -19
- package/dist/chunks/combobox-BX703kW9.js.map +1 -0
- package/dist/chunks/{command-list-DWXF8Zg5.js → command-list-BLVmk0z6.js} +156 -159
- package/dist/chunks/command-list-BLVmk0z6.js.map +1 -0
- package/dist/chunks/command-palette-s_qW_RRa.js +201 -0
- package/dist/chunks/command-palette-s_qW_RRa.js.map +1 -0
- package/dist/chunks/{copy-button-Blv3FuOX.js → copy-button-CK-ddxCg.js} +66 -50
- package/dist/chunks/copy-button-CK-ddxCg.js.map +1 -0
- package/dist/chunks/{core-CEO7wu2u.js → core-nqsBmktJ.js} +57 -67
- package/dist/chunks/core-nqsBmktJ.js.map +1 -0
- package/dist/chunks/{data-table-DS8QEm1P.js → data-table-FFbcwv22.js} +151 -151
- package/dist/chunks/data-table-FFbcwv22.js.map +1 -0
- package/dist/chunks/date-picker-DGM5bXxD.js +346 -0
- package/dist/chunks/date-picker-DGM5bXxD.js.map +1 -0
- package/dist/chunks/{date-popup-D7f-QQJm.js → date-popup-C2FLIETP.js} +4 -4
- package/dist/chunks/{date-popup-D7f-QQJm.js.map → date-popup-C2FLIETP.js.map} +1 -1
- package/dist/chunks/{de-CRbLcQNS.js → de-DN2LX3_2.js} +1 -18
- package/dist/chunks/de-DN2LX3_2.js.map +1 -0
- package/dist/chunks/{dev-CR1p7gCm.js → dev-TgcS67XR.js} +2 -5
- package/dist/chunks/dev-TgcS67XR.js.map +1 -0
- package/dist/chunks/dialog-DhT0sDr6.js +611 -0
- package/dist/chunks/dialog-DhT0sDr6.js.map +1 -0
- package/dist/chunks/{disclosure-DVefCcYM.js → disclosure-DDSekEH6.js} +2 -2
- package/dist/chunks/{disclosure-DVefCcYM.js.map → disclosure-DDSekEH6.js.map} +1 -1
- package/dist/chunks/display-options-CRZO-ODl.js +142 -0
- package/dist/chunks/display-options-CRZO-ODl.js.map +1 -0
- package/dist/chunks/{domain-Dd4A6swO.js → domain-aTOiqhIX.js} +2 -2
- package/dist/chunks/{domain-Dd4A6swO.js.map → domain-aTOiqhIX.js.map} +1 -1
- package/dist/chunks/{empty-DZ-j3vpS.js → empty-DWXE3-2p.js} +2 -2
- package/dist/chunks/{empty-DZ-j3vpS.js.map → empty-DWXE3-2p.js.map} +1 -1
- package/dist/chunks/{field-BoF0Q8U2.js → field-CRbWDIsH.js} +45 -27
- package/dist/chunks/field-CRbWDIsH.js.map +1 -0
- package/dist/chunks/figure-C2WlBeYZ.js +60 -0
- package/dist/chunks/figure-C2WlBeYZ.js.map +1 -0
- package/dist/chunks/filter-chip-hGC4Okb0.js +204 -0
- package/dist/chunks/filter-chip-hGC4Okb0.js.map +1 -0
- package/dist/chunks/filter-row-BcBy7gxN.js +35 -0
- package/dist/chunks/filter-row-BcBy7gxN.js.map +1 -0
- package/dist/chunks/flow-T4mRzmsP.js +143 -0
- package/dist/chunks/flow-T4mRzmsP.js.map +1 -0
- package/dist/chunks/heading-Dua_i106.js +28 -0
- package/dist/chunks/heading-Dua_i106.js.map +1 -0
- package/dist/chunks/icon-DI6L-F9F.js +75 -0
- package/dist/chunks/icon-DI6L-F9F.js.map +1 -0
- package/dist/chunks/{identity-qb5JVtKG.js → identity-CFoQG_TN.js} +7 -56
- package/dist/chunks/identity-CFoQG_TN.js.map +1 -0
- package/dist/chunks/input-DHrCmxvX.js +179 -0
- package/dist/chunks/input-DHrCmxvX.js.map +1 -0
- package/dist/chunks/input-Ia8Mqd8q.js +206 -0
- package/dist/chunks/input-Ia8Mqd8q.js.map +1 -0
- package/dist/chunks/{input-group-BPf_IWMR.js → input-group-6LrjOci-.js} +31 -31
- package/dist/chunks/input-group-6LrjOci-.js.map +1 -0
- package/dist/chunks/{iso-field-CgLCZF7B.js → iso-field-CKN-M0PC.js} +2 -2
- package/dist/chunks/{iso-field-CgLCZF7B.js.map → iso-field-CKN-M0PC.js.map} +1 -1
- package/dist/chunks/{json-view-B2OSpSY-.js → json-view-B6NjVdYp.js} +3 -3
- package/dist/chunks/{json-view-B2OSpSY-.js.map → json-view-B6NjVdYp.js.map} +1 -1
- package/dist/chunks/kaeso-Cbtv7F-H.js +488 -0
- package/dist/chunks/kaeso-Cbtv7F-H.js.map +1 -0
- package/dist/chunks/{kbd-B1rQ6Xzz.js → kbd-CFkkPtOm.js} +29 -23
- package/dist/chunks/kbd-CFkkPtOm.js.map +1 -0
- package/dist/chunks/key-value-BsnQl9_-.js +58 -0
- package/dist/chunks/key-value-BsnQl9_-.js.map +1 -0
- package/dist/chunks/{link-CkEhtnKp.js → link-jtnw0XQV.js} +4 -4
- package/dist/chunks/link-jtnw0XQV.js.map +1 -0
- package/dist/chunks/{list-CHKT0Q3_.js → list-BT7TUo7D.js} +98 -97
- package/dist/chunks/list-BT7TUo7D.js.map +1 -0
- package/dist/chunks/loader-2Tsz3V9j.js +39 -0
- package/dist/chunks/loader-2Tsz3V9j.js.map +1 -0
- package/dist/chunks/{loader-BL8eBso7.js → loader-C9qbRLAi.js} +2 -2
- package/dist/chunks/{loader-BL8eBso7.js.map → loader-C9qbRLAi.js.map} +1 -1
- package/dist/chunks/logo-DlxX9yDU.js +102 -0
- package/dist/chunks/logo-DlxX9yDU.js.map +1 -0
- package/dist/chunks/{markdown-CzhAHVFg.js → markdown-8YRbGHeS.js} +14 -14
- package/dist/chunks/{markdown-CzhAHVFg.js.map → markdown-8YRbGHeS.js.map} +1 -1
- package/dist/chunks/{menu-CRZ-O7Ok.js → menu-DxmOaBVN.js} +117 -149
- package/dist/chunks/menu-DxmOaBVN.js.map +1 -0
- package/dist/chunks/meter-CJqtlPjV.js +193 -0
- package/dist/chunks/meter-CJqtlPjV.js.map +1 -0
- package/dist/chunks/nav-sheet-DwAJdFCD.js +66 -0
- package/dist/chunks/nav-sheet-DwAJdFCD.js.map +1 -0
- package/dist/chunks/{nav-wordmark-Cd-zaGgh.js → nav-wordmark-3Bvc2UI6.js} +2 -2
- package/dist/chunks/{nav-wordmark-Cd-zaGgh.js.map → nav-wordmark-3Bvc2UI6.js.map} +1 -1
- package/dist/chunks/{page-header-BjW-S0c2.js → page-header-DIZCC9oT.js} +6 -6
- package/dist/chunks/{page-header-BjW-S0c2.js.map → page-header-DIZCC9oT.js.map} +1 -1
- package/dist/chunks/{pagination--er5TNg5.js → pagination-DFxZ2d3u.js} +46 -43
- package/dist/chunks/pagination-DFxZ2d3u.js.map +1 -0
- package/dist/chunks/{picker-popover-B7V6Z-qY.js → picker-popover-tBL7TLJC.js} +19 -17
- package/dist/chunks/picker-popover-tBL7TLJC.js.map +1 -0
- package/dist/chunks/{popover-CxYzFnPK.js → popover-DRvCfHVs.js} +10 -10
- package/dist/chunks/{popover-CxYzFnPK.js.map → popover-DRvCfHVs.js.map} +1 -1
- package/dist/chunks/qr-code-HlCtD0aP.js +38 -0
- package/dist/chunks/qr-code-HlCtD0aP.js.map +1 -0
- package/dist/chunks/{radio-BIBakGpi.js → radio-CvrUb2UK.js} +5 -15
- package/dist/chunks/radio-CvrUb2UK.js.map +1 -0
- package/dist/chunks/{range-popup-DuMX8dGS.js → range-popup-H1040MdD.js} +7 -7
- package/dist/chunks/{range-popup-DuMX8dGS.js.map → range-popup-H1040MdD.js.map} +1 -1
- package/dist/chunks/{reasoning-frame-CX236xqG.js → reasoning-frame-BuhiGUBq.js} +3 -3
- package/dist/chunks/{reasoning-frame-CX236xqG.js.map → reasoning-frame-BuhiGUBq.js.map} +1 -1
- package/dist/chunks/{release-art-D1knR09f.js → release-art-BeseUxSj.js} +4 -4
- package/dist/chunks/{release-art-D1knR09f.js.map → release-art-BeseUxSj.js.map} +1 -1
- package/dist/chunks/{rights-ghO_k76Q.js → rights-CHB9TtWu.js} +13 -11
- package/dist/chunks/rights-CHB9TtWu.js.map +1 -0
- package/dist/chunks/{scroll-area-eHO5yx8V.js → scroll-area-BvxoHcHS.js} +2 -2
- package/dist/chunks/{scroll-area-eHO5yx8V.js.map → scroll-area-BvxoHcHS.js.map} +1 -1
- package/dist/chunks/section-Dd5vmuR1.js +99 -0
- package/dist/chunks/section-Dd5vmuR1.js.map +1 -0
- package/dist/chunks/{segmented--cvKKVgU.js → segmented-Clv2P1AB.js} +30 -20
- package/dist/chunks/segmented-Clv2P1AB.js.map +1 -0
- package/dist/chunks/{select-CYxdDJuW.js → select-DU6O_iW6.js} +55 -55
- package/dist/chunks/select-DU6O_iW6.js.map +1 -0
- package/dist/chunks/{separator-cMjJSR_v.js → separator-DMXz46Ge.js} +2 -2
- package/dist/chunks/{separator-cMjJSR_v.js.map → separator-DMXz46Ge.js.map} +1 -1
- package/dist/chunks/settings-CIBUZAZF.js +80 -0
- package/dist/chunks/settings-CIBUZAZF.js.map +1 -0
- package/dist/chunks/sheet-DrxdaMjN.js +119 -0
- package/dist/chunks/sheet-DrxdaMjN.js.map +1 -0
- package/dist/chunks/{sidebar-rSlJVHXr.js → sidebar-ZDmAFOVM.js} +90 -90
- package/dist/chunks/sidebar-ZDmAFOVM.js.map +1 -0
- package/dist/chunks/{sidebar-menu-BIzCokEt.js → sidebar-menu-Iq_ADCGg.js} +2 -2
- package/dist/chunks/{sidebar-menu-BIzCokEt.js.map → sidebar-menu-Iq_ADCGg.js.map} +1 -1
- package/dist/chunks/skeleton-E7yXpAaT.js +29 -0
- package/dist/chunks/skeleton-E7yXpAaT.js.map +1 -0
- package/dist/chunks/{slider-CJ5xhCGl.js → slider-DoJfRjX1.js} +2 -2
- package/dist/chunks/{slider-CJ5xhCGl.js.map → slider-DoJfRjX1.js.map} +1 -1
- package/dist/chunks/stat-7VFJ8QW-.js +250 -0
- package/dist/chunks/stat-7VFJ8QW-.js.map +1 -0
- package/dist/chunks/{status-dot-BJ_xdPOz.js → status-BvzxKVpT.js} +9 -10
- package/dist/chunks/status-BvzxKVpT.js.map +1 -0
- package/dist/chunks/{swap-text-Dg5TYR3P.js → swap-text-BgdoVD3v.js} +2 -2
- package/dist/chunks/{swap-text-Dg5TYR3P.js.map → swap-text-BgdoVD3v.js.map} +1 -1
- package/dist/chunks/{switch-BlrAa7fs.js → switch-lxwwqvbG.js} +4 -4
- package/dist/chunks/{switch-BlrAa7fs.js.map → switch-lxwwqvbG.js.map} +1 -1
- package/dist/chunks/{table-2mqGuSzh.js → table-6rmKwlCw.js} +2 -2
- package/dist/chunks/{table-2mqGuSzh.js.map → table-6rmKwlCw.js.map} +1 -1
- package/dist/chunks/tabs-BZj11L5c.js +106 -0
- package/dist/chunks/tabs-BZj11L5c.js.map +1 -0
- package/dist/chunks/{tag-CyuvhNkV.js → tag-Bnc0j1jP.js} +12 -27
- package/dist/chunks/tag-Bnc0j1jP.js.map +1 -0
- package/dist/chunks/{text-DG2r9OVy.js → text-D_rqwSaG.js} +3 -3
- package/dist/chunks/{text-DG2r9OVy.js.map → text-D_rqwSaG.js.map} +1 -1
- package/dist/chunks/{textarea-BhJSBzKA.js → textarea-BzMbsYD7.js} +16 -16
- package/dist/chunks/textarea-BzMbsYD7.js.map +1 -0
- package/dist/chunks/theme-image-DjI_Zymf.js +38 -0
- package/dist/chunks/theme-image-DjI_Zymf.js.map +1 -0
- package/dist/chunks/theme-menu-BLNYvmuB.js +56 -0
- package/dist/chunks/theme-menu-BLNYvmuB.js.map +1 -0
- package/dist/chunks/theme-provider-CmsV0cYJ.js +81 -0
- package/dist/chunks/theme-provider-CmsV0cYJ.js.map +1 -0
- package/dist/chunks/thumbnail-CRdk7mvC.js +52 -0
- package/dist/chunks/thumbnail-CRdk7mvC.js.map +1 -0
- package/dist/chunks/timeline-CWQdqBVv.js +74 -0
- package/dist/chunks/timeline-CWQdqBVv.js.map +1 -0
- package/dist/chunks/{timeseries-yWYVK-Hb.js → timeseries-Cj50XALJ.js} +9 -9
- package/dist/chunks/{timeseries-yWYVK-Hb.js.map → timeseries-Cj50XALJ.js.map} +1 -1
- package/dist/chunks/toast-C78w9ewo.js +227 -0
- package/dist/chunks/toast-C78w9ewo.js.map +1 -0
- package/dist/chunks/toc-BHf7IbFL.js +69 -0
- package/dist/chunks/toc-BHf7IbFL.js.map +1 -0
- package/dist/chunks/{toolbar-CXjo1MZi.js → toolbar-CjykT3ZP.js} +2 -2
- package/dist/chunks/{toolbar-CXjo1MZi.js.map → toolbar-CjykT3ZP.js.map} +1 -1
- package/dist/chunks/tooltip-D2g_QO6w.js +17 -0
- package/dist/chunks/tooltip-D2g_QO6w.js.map +1 -0
- package/dist/chunks/{tooltip-wfY3dDNy.js → tooltip-F3l2S3Ad.js} +5 -5
- package/dist/chunks/tooltip-F3l2S3Ad.js.map +1 -0
- package/dist/chunks/{tooltip-root-CIagHqa7.js → tooltip-root-Co-dVnZj.js} +4 -4
- package/dist/chunks/tooltip-root-Co-dVnZj.js.map +1 -0
- package/dist/chunks/{truncated-BITAemX4.js → truncated-CzAJxfAD.js} +3 -3
- package/dist/chunks/{truncated-BITAemX4.js.map → truncated-CzAJxfAD.js.map} +1 -1
- package/dist/chunks/visually-hidden-UprFAwfn.js +17 -0
- package/dist/chunks/visually-hidden-UprFAwfn.js.map +1 -0
- package/dist/chunks/{zh-CN-BHGxG46g.js → zh-CN-BpSGsgRh.js} +1 -18
- package/dist/chunks/zh-CN-BpSGsgRh.js.map +1 -0
- package/dist/components/app-frame.js +1 -3
- package/dist/components/avatar.js +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/button-group.js +1 -69
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/charts/bar.js +14 -14
- package/dist/components/charts/bar.js.map +1 -1
- package/dist/components/charts/donut.js +18 -18
- package/dist/components/charts/donut.js.map +1 -1
- package/dist/components/charts/heatmap.js +2 -2
- package/dist/components/charts/sankey.js +10 -10
- package/dist/components/charts/sankey.js.map +1 -1
- package/dist/components/charts/sparkline.js +1 -1
- package/dist/components/charts/timeseries.js +1 -1
- package/dist/components/charts.js +8 -9
- package/dist/components/checkbox.js +1 -1
- package/dist/components/code-block.js +4 -4
- package/dist/components/code.js +1 -1
- package/dist/components/collapsible.js +1 -76
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-palette.js +1 -200
- package/dist/components/copy-button.js +1 -1
- package/dist/components/data-table.js +1 -1
- package/dist/components/date-picker.js +1 -345
- package/dist/components/dialog.js +1 -212
- package/dist/components/display-options.js +1 -140
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/figure.js +1 -59
- package/dist/components/filter-chip.js +1 -203
- package/dist/components/filter-row.js +1 -34
- package/dist/components/flow-canvas.js +10 -6
- package/dist/components/flow-canvas.js.map +1 -1
- package/dist/components/flow.js +1 -142
- package/dist/components/heading.js +1 -27
- package/dist/components/icon.js +1 -1
- package/dist/components/input.js +4 -260
- package/dist/components/kaeso/conversation.js +10 -10
- package/dist/components/kaeso/conversation.js.map +1 -1
- package/dist/components/kaeso/identity.js +1 -1
- package/dist/components/kaeso/moments.js +27 -62
- package/dist/components/kaeso/moments.js.map +1 -1
- package/dist/components/kaeso/rights.js +1 -1
- package/dist/components/kaeso/usage.js +30 -30
- package/dist/components/kaeso/usage.js.map +1 -1
- package/dist/components/kaeso.js +7 -489
- package/dist/components/kbd.js +1 -1
- package/dist/components/key-value.js +1 -57
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loader.js +3 -38
- package/dist/components/logo.js +1 -101
- 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 +382 -374
- package/dist/components/playground.js.map +1 -1
- package/dist/components/popover.js +1 -53
- package/dist/components/qr-code.js +1 -37
- 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 -92
- package/dist/components/sheet.js +1 -116
- 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 +1 -221
- package/dist/components/status.js +2 -0
- 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 -112
- package/dist/components/tag.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/theme-image.js +1 -37
- package/dist/components/theme-menu.js +1 -55
- package/dist/components/thumbnail.js +1 -51
- package/dist/components/timeline.js +1 -73
- package/dist/components/toast.js +1 -233
- package/dist/components/toc.js +1 -68
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +3 -17
- package/dist/components/visually-hidden.js +1 -16
- package/dist/i18n-provider.js +1 -1
- package/dist/index.js +105 -130
- package/dist/kaeso.css +91 -14
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +0 -1
- package/dist/theme.js +1 -1
- package/dist/types/components/app-frame/docs.d.ts +0 -10
- package/dist/types/components/app-frame/index.d.ts +2 -2
- package/dist/types/components/avatar/agent.d.ts +39 -0
- package/dist/types/components/avatar/avatar.d.ts +12 -2
- package/dist/types/components/avatar/docs.d.ts +2 -1
- package/dist/types/components/avatar/index.d.ts +4 -1
- package/dist/types/components/badge/index.d.ts +2 -1
- package/dist/types/components/banner/index.d.ts +2 -1
- package/dist/types/components/button/button.d.ts +13 -4
- package/dist/types/components/button/docs.d.ts +5 -1
- package/dist/types/components/button/index.d.ts +2 -1
- package/dist/types/components/button-group/index.d.ts +2 -1
- package/dist/types/components/calendar/index.d.ts +2 -1
- package/dist/types/components/charts/docs.d.ts +0 -74
- package/dist/types/components/charts/donut.d.ts +0 -9
- package/dist/types/components/charts/index.d.ts +12 -8
- package/dist/types/components/checkbox/checkbox.d.ts +3 -9
- package/dist/types/components/checkbox/docs.d.ts +0 -21
- package/dist/types/components/checkbox/index.d.ts +2 -1
- package/dist/types/components/code/index.d.ts +2 -1
- package/dist/types/components/code-block/code-block.d.ts +0 -1
- package/dist/types/components/code-block/docs.d.ts +0 -17
- package/dist/types/components/code-block/index.d.ts +6 -3
- package/dist/types/components/collapsible/collapsible.d.ts +0 -13
- package/dist/types/components/collapsible/docs.d.ts +0 -8
- package/dist/types/components/collapsible/index.d.ts +2 -1
- package/dist/types/components/combobox/docs.d.ts +0 -7
- package/dist/types/components/combobox/index.d.ts +2 -1
- package/dist/types/components/command-list/command-list.d.ts +0 -4
- package/dist/types/components/command-list/picker-popover.d.ts +0 -3
- package/dist/types/components/command-palette/index.d.ts +2 -1
- package/dist/types/components/copy-button/copy-button.d.ts +19 -36
- package/dist/types/components/copy-button/docs.d.ts +2 -18
- package/dist/types/components/copy-button/index.d.ts +2 -1
- package/dist/types/components/data-table/columns.d.ts +3 -3
- package/dist/types/components/data-table/index.d.ts +3 -2
- package/dist/types/components/date-picker/index.d.ts +4 -2
- package/dist/types/components/dialog/index.d.ts +6 -3
- package/dist/types/components/display-options/index.d.ts +2 -1
- package/dist/types/components/empty/index.d.ts +2 -1
- package/dist/types/components/field/field.d.ts +2 -2
- package/dist/types/components/field/index.d.ts +2 -1
- package/dist/types/components/figure/index.d.ts +2 -1
- package/dist/types/components/filter-chip/index.d.ts +2 -1
- package/dist/types/components/filter-row/index.d.ts +2 -1
- package/dist/types/components/flow/index.d.ts +2 -1
- package/dist/types/components/flow-canvas/index.d.ts +4 -2
- package/dist/types/components/heading/index.d.ts +2 -1
- package/dist/types/components/icon/icon.d.ts +5 -5
- package/dist/types/components/icon/index.d.ts +2 -1
- package/dist/types/components/input/docs.d.ts +4 -46
- package/dist/types/components/input/index.d.ts +11 -8
- package/dist/types/components/input/input-group.d.ts +0 -4
- package/dist/types/components/input/input.d.ts +4 -29
- package/dist/types/components/input/number-input.d.ts +1 -1
- package/dist/types/components/kaeso/docs.d.ts +0 -26
- package/dist/types/components/kaeso/identity.d.ts +0 -12
- package/dist/types/components/kaeso/index.d.ts +21 -11
- package/dist/types/components/kaeso/moments.d.ts +0 -3
- package/dist/types/components/kbd/docs.d.ts +0 -6
- package/dist/types/components/kbd/index.d.ts +2 -1
- package/dist/types/components/kbd/kbd.d.ts +2 -6
- package/dist/types/components/key-value/index.d.ts +2 -1
- package/dist/types/components/label/label.d.ts +0 -3
- package/dist/types/components/link/index.d.ts +2 -1
- package/dist/types/components/list/docs.d.ts +0 -45
- package/dist/types/components/list/index.d.ts +2 -1
- package/dist/types/components/loader/index.d.ts +4 -2
- package/dist/types/components/logo/index.d.ts +2 -1
- package/dist/types/components/markdown/index.d.ts +2 -1
- package/dist/types/components/menu/docs.d.ts +0 -7
- package/dist/types/components/menu/index.d.ts +2 -1
- package/dist/types/components/menu/menu.d.ts +0 -34
- package/dist/types/components/meter/docs.d.ts +1 -0
- package/dist/types/components/meter/gauge.d.ts +9 -0
- package/dist/types/components/meter/index.d.ts +2 -1
- package/dist/types/components/meter/meter.d.ts +12 -0
- package/dist/types/components/page-header/index.d.ts +2 -1
- package/dist/types/components/pagination/index.d.ts +2 -1
- package/dist/types/components/playground/docs.d.ts +1 -14
- package/dist/types/components/playground/index.d.ts +16 -8
- package/dist/types/components/playground/parameter-panel.d.ts +2 -5
- package/dist/types/components/popover/docs.d.ts +0 -9
- package/dist/types/components/popover/index.d.ts +2 -2
- package/dist/types/components/qr-code/index.d.ts +2 -1
- package/dist/types/components/radio/docs.d.ts +0 -27
- package/dist/types/components/radio/index.d.ts +2 -1
- package/dist/types/components/radio/radio.d.ts +1 -6
- package/dist/types/components/release-art/index.d.ts +2 -1
- package/dist/types/components/scroll-area/index.d.ts +2 -1
- package/dist/types/components/section/index.d.ts +2 -1
- package/dist/types/components/section/section.d.ts +4 -0
- package/dist/types/components/segmented/index.d.ts +2 -1
- package/dist/types/components/select/index.d.ts +2 -1
- package/dist/types/components/separator/index.d.ts +2 -1
- package/dist/types/components/settings/docs.d.ts +0 -9
- package/dist/types/components/settings/index.d.ts +2 -1
- package/dist/types/components/settings/settings.d.ts +0 -10
- package/dist/types/components/sheet/index.d.ts +2 -1
- package/dist/types/components/sidebar/docs.d.ts +6 -8
- package/dist/types/components/sidebar/index.d.ts +2 -1
- package/dist/types/components/sidebar/sidebar-context.d.ts +5 -0
- package/dist/types/components/sidebar/sidebar.d.ts +2 -7
- package/dist/types/components/skeleton/docs.d.ts +1 -6
- package/dist/types/components/skeleton/index.d.ts +2 -1
- package/dist/types/components/skeleton/skeleton.d.ts +1 -3
- package/dist/types/components/slider/index.d.ts +2 -1
- package/dist/types/components/stat/docs.d.ts +9 -19
- package/dist/types/components/stat/index.d.ts +2 -1
- package/dist/types/components/stat/stat.d.ts +33 -23
- package/dist/types/components/{label → status}/docs.d.ts +3 -2
- package/dist/types/components/status/index.d.ts +2 -0
- package/dist/types/components/{status-dot/status-dot.d.ts → status/status.d.ts} +5 -6
- package/dist/types/components/swap-text/index.d.ts +2 -1
- package/dist/types/components/switch/index.d.ts +2 -1
- package/dist/types/components/table/index.d.ts +2 -1
- package/dist/types/components/tabs/docs.d.ts +0 -10
- package/dist/types/components/tabs/index.d.ts +2 -1
- package/dist/types/components/tabs/tabs.d.ts +0 -26
- package/dist/types/components/tag/docs.d.ts +0 -14
- package/dist/types/components/tag/index.d.ts +2 -1
- package/dist/types/components/tag/tag.d.ts +0 -1
- package/dist/types/components/text/index.d.ts +2 -1
- package/dist/types/components/theme-image/index.d.ts +2 -1
- package/dist/types/components/theme-menu/index.d.ts +2 -1
- package/dist/types/components/thumbnail/index.d.ts +2 -1
- package/dist/types/components/timeline/index.d.ts +2 -1
- package/dist/types/components/toast/docs.d.ts +0 -17
- package/dist/types/components/toast/index.d.ts +2 -1
- package/dist/types/components/toast/toast.d.ts +0 -14
- package/dist/types/components/toc/index.d.ts +2 -1
- package/dist/types/components/toolbar/index.d.ts +2 -1
- package/dist/types/components/tooltip/docs.d.ts +0 -8
- package/dist/types/components/tooltip/index.d.ts +3 -2
- package/dist/types/components/visually-hidden/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -13
- package/dist/types/theme/index.d.ts +2 -1
- package/dist/types/utils/cn.d.ts +7 -0
- package/dist/types/utils/index.d.ts +2 -4
- package/dist/utils.js +6 -8
- package/foundations/accessibility.md +1 -1
- package/foundations/elevation.md +2 -0
- package/foundations/icons.md +2 -0
- package/foundations/motion.md +4 -1
- package/package.json +2 -6
- package/dist/blocks/delete-resource.js +0 -36
- package/dist/blocks/delete-resource.js.map +0 -1
- package/dist/blocks/pages.js +0 -75
- package/dist/blocks/pages.js.map +0 -1
- package/dist/blocks/resource-list.js +0 -82
- package/dist/blocks/resource-list.js.map +0 -1
- package/dist/chunks/agent-avatar-Djd5BojE.js +0 -188
- package/dist/chunks/agent-avatar-Djd5BojE.js.map +0 -1
- package/dist/chunks/app-frame-FPxcLx5a.js.map +0 -1
- package/dist/chunks/avatar-CAtsciEK.js +0 -110
- package/dist/chunks/avatar-CAtsciEK.js.map +0 -1
- package/dist/chunks/banner-Bh9ALjtn.js.map +0 -1
- package/dist/chunks/button-BhgnxxnI.js.map +0 -1
- package/dist/chunks/checkbox-CX9ocjBN.js.map +0 -1
- package/dist/chunks/cn-y70pJ-RU.js.map +0 -1
- package/dist/chunks/code-block-ojOGgAZo.js.map +0 -1
- package/dist/chunks/combobox-DIDrrFMN.js.map +0 -1
- package/dist/chunks/command-list-DWXF8Zg5.js.map +0 -1
- package/dist/chunks/copy-button-Blv3FuOX.js.map +0 -1
- package/dist/chunks/core-CEO7wu2u.js.map +0 -1
- package/dist/chunks/data-table-DS8QEm1P.js.map +0 -1
- package/dist/chunks/de-CRbLcQNS.js.map +0 -1
- package/dist/chunks/dev-CR1p7gCm.js.map +0 -1
- package/dist/chunks/dialog-BoQZ-CRe.js +0 -405
- package/dist/chunks/dialog-BoQZ-CRe.js.map +0 -1
- package/dist/chunks/field-BoF0Q8U2.js.map +0 -1
- package/dist/chunks/icon-R4bPkYOo.js +0 -48
- package/dist/chunks/icon-R4bPkYOo.js.map +0 -1
- package/dist/chunks/icon-button-B8Xm10KH.js +0 -51
- package/dist/chunks/icon-button-B8Xm10KH.js.map +0 -1
- package/dist/chunks/identity-qb5JVtKG.js.map +0 -1
- package/dist/chunks/input-DvU5KIT0.js +0 -125
- package/dist/chunks/input-DvU5KIT0.js.map +0 -1
- package/dist/chunks/input-group-BPf_IWMR.js.map +0 -1
- package/dist/chunks/kbd-B1rQ6Xzz.js.map +0 -1
- package/dist/chunks/label-Bd7EgBMU.js +0 -26
- package/dist/chunks/label-Bd7EgBMU.js.map +0 -1
- package/dist/chunks/link-CkEhtnKp.js.map +0 -1
- package/dist/chunks/list-CHKT0Q3_.js.map +0 -1
- package/dist/chunks/menu-CRZ-O7Ok.js.map +0 -1
- package/dist/chunks/meter-dMtm0QPc.js +0 -100
- package/dist/chunks/meter-dMtm0QPc.js.map +0 -1
- package/dist/chunks/nav-sheet-C1oJliq_.js +0 -67
- package/dist/chunks/nav-sheet-C1oJliq_.js.map +0 -1
- package/dist/chunks/pagination--er5TNg5.js.map +0 -1
- package/dist/chunks/picker-popover-B7V6Z-qY.js.map +0 -1
- package/dist/chunks/radio-BIBakGpi.js.map +0 -1
- package/dist/chunks/rights-ghO_k76Q.js.map +0 -1
- package/dist/chunks/section-DdBjIPpm.js +0 -77
- package/dist/chunks/section-DdBjIPpm.js.map +0 -1
- package/dist/chunks/section-header-DU1Q4Tdf.js +0 -28
- package/dist/chunks/section-header-DU1Q4Tdf.js.map +0 -1
- package/dist/chunks/segmented--cvKKVgU.js.map +0 -1
- package/dist/chunks/select-CYxdDJuW.js.map +0 -1
- package/dist/chunks/sidebar-rSlJVHXr.js.map +0 -1
- package/dist/chunks/skeleton-CRaxQo8h.js +0 -36
- package/dist/chunks/skeleton-CRaxQo8h.js.map +0 -1
- package/dist/chunks/status-dot-BJ_xdPOz.js.map +0 -1
- package/dist/chunks/tag-CyuvhNkV.js.map +0 -1
- package/dist/chunks/textarea-BhJSBzKA.js.map +0 -1
- package/dist/chunks/theme-provider-BjXTggqM.js +0 -76
- package/dist/chunks/theme-provider-BjXTggqM.js.map +0 -1
- package/dist/chunks/tooltip-root-CIagHqa7.js.map +0 -1
- package/dist/chunks/tooltip-wfY3dDNy.js.map +0 -1
- package/dist/chunks/utils-CdH72WEp.js +0 -8
- package/dist/chunks/utils-CdH72WEp.js.map +0 -1
- package/dist/chunks/zh-CN-BHGxG46g.js.map +0 -1
- package/dist/components/agent-avatar.js +0 -2
- package/dist/components/button-group.js.map +0 -1
- package/dist/components/charts/gauge.js +0 -82
- package/dist/components/charts/gauge.js.map +0 -1
- package/dist/components/collapsible.js.map +0 -1
- package/dist/components/command-list.js +0 -4
- package/dist/components/command-palette.js.map +0 -1
- package/dist/components/date-picker.js.map +0 -1
- package/dist/components/dialog.js.map +0 -1
- package/dist/components/display-options.js.map +0 -1
- package/dist/components/figure.js.map +0 -1
- package/dist/components/filter-chip.js.map +0 -1
- package/dist/components/filter-row.js.map +0 -1
- package/dist/components/filter-toggle.js +0 -35
- package/dist/components/filter-toggle.js.map +0 -1
- package/dist/components/flow.js.map +0 -1
- package/dist/components/heading.js.map +0 -1
- package/dist/components/icon-button.js +0 -2
- package/dist/components/input.js.map +0 -1
- package/dist/components/kaeso.js.map +0 -1
- package/dist/components/key-value.js.map +0 -1
- package/dist/components/label.js +0 -2
- package/dist/components/layout.js +0 -72
- package/dist/components/layout.js.map +0 -1
- package/dist/components/loader.js.map +0 -1
- package/dist/components/logo.js.map +0 -1
- package/dist/components/popover.js.map +0 -1
- package/dist/components/portal.js +0 -15
- package/dist/components/portal.js.map +0 -1
- package/dist/components/qr-code.js.map +0 -1
- package/dist/components/settings.js.map +0 -1
- package/dist/components/sheet.js.map +0 -1
- package/dist/components/stat.js.map +0 -1
- package/dist/components/status-dot.js +0 -2
- package/dist/components/surface.js +0 -26
- package/dist/components/surface.js.map +0 -1
- package/dist/components/tabs.js.map +0 -1
- package/dist/components/theme-image.js.map +0 -1
- package/dist/components/theme-menu.js.map +0 -1
- package/dist/components/theme-select.js +0 -58
- package/dist/components/theme-select.js.map +0 -1
- package/dist/components/thumbnail.js.map +0 -1
- package/dist/components/timeline.js.map +0 -1
- package/dist/components/toast.js.map +0 -1
- package/dist/components/toc.js.map +0 -1
- package/dist/components/tooltip.js.map +0 -1
- package/dist/components/visually-hidden.js.map +0 -1
- package/dist/types/blocks/delete-resource/delete-resource.d.ts +0 -29
- package/dist/types/blocks/delete-resource/docs.d.ts +0 -17
- package/dist/types/blocks/delete-resource/index.d.ts +0 -1
- package/dist/types/blocks/pages/docs.d.ts +0 -42
- package/dist/types/blocks/pages/index.d.ts +0 -1
- package/dist/types/blocks/pages/pages.d.ts +0 -65
- package/dist/types/blocks/resource-list/docs.d.ts +0 -15
- package/dist/types/blocks/resource-list/index.d.ts +0 -1
- package/dist/types/blocks/resource-list/resource-list.d.ts +0 -33
- package/dist/types/components/agent-avatar/agent-avatar.d.ts +0 -99
- package/dist/types/components/agent-avatar/docs.d.ts +0 -19
- package/dist/types/components/agent-avatar/index.d.ts +0 -3
- package/dist/types/components/charts/gauge.d.ts +0 -20
- package/dist/types/components/command-list/docs.d.ts +0 -54
- package/dist/types/components/command-list/index.d.ts +0 -3
- package/dist/types/components/filter-toggle/docs.d.ts +0 -11
- package/dist/types/components/filter-toggle/filter-toggle.d.ts +0 -23
- package/dist/types/components/filter-toggle/index.d.ts +0 -1
- package/dist/types/components/icon-button/docs.d.ts +0 -17
- package/dist/types/components/icon-button/icon-button.d.ts +0 -75
- package/dist/types/components/icon-button/index.d.ts +0 -1
- package/dist/types/components/input/sensitive-input.d.ts +0 -21
- package/dist/types/components/label/index.d.ts +0 -1
- package/dist/types/components/layout/docs.d.ts +0 -30
- package/dist/types/components/layout/index.d.ts +0 -1
- package/dist/types/components/layout/layout.d.ts +0 -100
- package/dist/types/components/popover/hover-card.d.ts +0 -26
- package/dist/types/components/portal/docs.d.ts +0 -9
- package/dist/types/components/portal/index.d.ts +0 -1
- package/dist/types/components/portal/portal.d.ts +0 -11
- package/dist/types/components/status-dot/docs.d.ts +0 -20
- package/dist/types/components/status-dot/index.d.ts +0 -1
- package/dist/types/components/surface/docs.d.ts +0 -8
- package/dist/types/components/surface/index.d.ts +0 -1
- package/dist/types/components/surface/surface.d.ts +0 -44
- package/dist/types/components/theme-select/docs.d.ts +0 -10
- package/dist/types/components/theme-select/index.d.ts +0 -1
- package/dist/types/components/theme-select/theme-select.d.ts +0 -34
- /package/dist/types/components/{agent-avatar → avatar}/model-name.d.ts +0 -0
- /package/dist/types/components/{agent-avatar → avatar}/models.d.ts +0 -0
package/ai/component-registry.md
CHANGED
|
@@ -1,40 +1,10 @@
|
|
|
1
1
|
# @logicplanes/kaeso-ui component registry
|
|
2
2
|
|
|
3
|
-
Version 0.6.0-rc.
|
|
4
|
-
|
|
5
|
-
## agent-avatar
|
|
6
|
-
|
|
7
|
-
`import { AgentAttribution, AgentAvatar } from "@logicplanes/kaeso-ui/agent-avatar";`
|
|
8
|
-
|
|
9
|
-
- **size** (agent_attribution): `20` — 20px person, 8px agent badge; `24` (default) — 24px person, 10px agent badge (default); `28` — 28px person, 12px agent badge; `32` — 32px person, 12px agent badge; `40` — 40px person, 16px agent badge
|
|
10
|
-
- **size** (agent_avatar): `20` — 20px; `24` (default) — 24px: rows and lists (default); `28` — 28px; `32` — 32px; `40` — 40px: an agent's own page, menus
|
|
11
|
-
|
|
12
|
-
### AgentAttribution
|
|
13
|
-
|
|
14
|
-
A person's avatar with the agent that acted for them as a small round ink badge on its corner, for audit rows and activity; it reads as one picture named after both, and a tooltip says the same to the pointer. The badge is about 40% of the avatar and a 2px gap cut out of the face separates it on any surface; it stays inside the avatar's square, so a table cell never cuts it off.
|
|
15
|
-
|
|
16
|
-
| Prop | Type | Default | Description |
|
|
17
|
-
|---|---|---|---|
|
|
18
|
-
| `agent` * | `{ name: string; model: string; }` | | The agent that acted, with its name and model family id from the API; the family is named in the accessible name only. |
|
|
19
|
-
| `name` * | `string` | | The name of the person the agent acted for; it starts the accessible name, such as `Ada Okafor via Release helper (Claude)`. |
|
|
20
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
21
|
-
| `size` | `24 \| 20 \| 28 \| 32 \| 40` | `24` | The diameter of the person's avatar in pixels; the agent badge is about 40% of it (8 to 16px). |
|
|
22
|
-
| `src` | `string` | | The person's picture; without one, or when it fails to load, their initials show. |
|
|
23
|
-
|
|
24
|
-
### AgentAvatar
|
|
25
|
-
|
|
26
|
-
An agent acting for a person: one bot face on a `fill-3` square, the same for every agent (people are round, agents square); write its model family beside it with useModelName where it matters.
|
|
27
|
-
|
|
28
|
-
| Prop | Type | Default | Description |
|
|
29
|
-
|---|---|---|---|
|
|
30
|
-
| `name` * | `string` | | The agent's name, such as `Release helper`; it is the accessible name. |
|
|
31
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
32
|
-
| `decorative` | `boolean` | | Hides it from assistive technology when the agent's name is already written next to it. |
|
|
33
|
-
| `size` | `24 \| 20 \| 28 \| 32 \| 40` | `24` | The side of the square in pixels, on the same scale as `Avatar`. |
|
|
3
|
+
Version 0.6.0-rc.4. Generated from the component types, their descriptions and variants; do not edit.
|
|
34
4
|
|
|
35
5
|
## app-frame
|
|
36
6
|
|
|
37
|
-
`import { AppFrame
|
|
7
|
+
`import { AppFrame } from "@logicplanes/kaeso-ui/app-frame";`
|
|
38
8
|
|
|
39
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): 24px sides, 16px under the header, 48px at the end
|
|
40
10
|
- **fill** (app_frame): `screen` (default) — Fills the viewport (default); `parent` — Fills its container: previews, embedded tools
|
|
@@ -54,39 +24,28 @@ The page frame of an app: a skip link to the content, the sidebar, the inset pan
|
|
|
54
24
|
| `fill` | `"screen" \| "parent"` | `screen` | `screen` fills the viewport (default); `parent` fills its container (previews, embedded tools). |
|
|
55
25
|
| `phoneActions` | `ReactNode` | | Icon buttons in the phone bar before the navigation toggle, such as search, so it is one tap away; pass `tooltip={false}` to each. |
|
|
56
26
|
|
|
57
|
-
### NavSheet
|
|
58
|
-
|
|
59
|
-
The sidebar as a floating panel from the left edge (a peek): the mobile navigation sheet, and the preview of a collapsed sidebar while the expand button is hovered (`peek`: it closes when the pointer leaves).
|
|
60
|
-
|
|
61
|
-
| Prop | Type | Default | Description |
|
|
62
|
-
|---|---|---|---|
|
|
63
|
-
| `children` * | `ReactNode` | | The navigation, usually the app's `Sidebar`. |
|
|
64
|
-
| `onOpenChange` * | `(open: boolean) => void` | | Called when the navigation opens or closes. |
|
|
65
|
-
| `open` * | `boolean` | | Whether the navigation is shown on phones. |
|
|
66
|
-
| `peek` | `boolean` | `false` | Shows the sheet as a preview that doesn't trap focus or dim the page, and closes when the pointer leaves it. |
|
|
67
|
-
| `returnFocus` | `RefObject<HTMLElement \| null>` | | The element that gets focus back when the sheet closes. |
|
|
68
|
-
|
|
69
27
|
## avatar
|
|
70
28
|
|
|
71
|
-
`import { Avatar
|
|
29
|
+
`import { Avatar } from "@logicplanes/kaeso-ui/avatar";`
|
|
72
30
|
|
|
73
31
|
- **size** (avatar): `20` — 20px; `24` (default) — 24px: rows and the org switcher (default); `28` — 28px; `32` — 32px; `40` — 40px: menus, profiles
|
|
74
|
-
- **kind** (avatar): `person` (default) — People are round; `org` — Organizations and projects: radius 8
|
|
32
|
+
- **kind** (avatar): `person` (default) — People are round; `org` — Organizations and projects: radius 8; `agent` — An agent acting for a person: one bot face on a square, the same for every agent
|
|
75
33
|
|
|
76
34
|
### Avatar
|
|
77
35
|
|
|
78
|
-
The first letters of the first and last word; `max` 1 keeps only the first. A photo gets a hairline so a light picture keeps its edge.
|
|
36
|
+
The first letters of the first and last word; `max` 1 keeps only the first. A photo gets a hairline so a light picture keeps its edge. An agent (`kind="agent"`) is one bot face on a `fill-3` square, the same for every agent: people are round, agents square. With `agent`, a person's avatar carries the agent that acted for them as a small round ink badge on its corner, for audit rows and activity; it reads as one picture named after both, and a tooltip says the same to the pointer.
|
|
79
37
|
|
|
80
38
|
| Prop | Type | Default | Description |
|
|
81
39
|
|---|---|---|---|
|
|
82
|
-
| `name` * | `string` | | The person's or
|
|
40
|
+
| `name` * | `string` | | The person's, organization's or agent's name; its first letters show without a picture, and it is the accessible name. |
|
|
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)`. |
|
|
83
42
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
84
43
|
| `decorative` | `boolean` | | Hides it from assistive technology when the same information is already written next to it. |
|
|
85
|
-
| `kind` | `"person" \| "org"` | `person` | A person (round)
|
|
44
|
+
| `kind` | `"person" \| "agent" \| "org"` | `person` | A person (round), an organization (rounded square), or an agent (a bot face on a square). |
|
|
86
45
|
| `size` | `24 \| 20 \| 28 \| 32 \| 40` | `24` | The diameter in pixels. |
|
|
87
46
|
| `src` | `string` | | The picture's address; without one, or when it fails to load, the letters show. |
|
|
88
47
|
|
|
89
|
-
###
|
|
48
|
+
### Avatar.Group
|
|
90
49
|
|
|
91
50
|
Overlapping avatars, each separated from the one under it by a 2px gap cut out of that avatar, so the gap shows whatever surface the group sits on (a hovered row, a card); then a "+3".
|
|
92
51
|
|
|
@@ -139,33 +98,37 @@ An inline notice: a tint, an icon (none for a neutral notice, so it never looks
|
|
|
139
98
|
|
|
140
99
|
`import { Button } from "@logicplanes/kaeso-ui/button";`
|
|
141
100
|
|
|
142
|
-
- **variant** (button): `primary` — Ink with a faint top light. Exactly one per view.; `secondary` (default) — Raised, ring and a soft shadow. The default.; `ghost` — Transparent until hovered: toolbars, rows, quiet actions; `quiet` — A ghost in secondary text that darkens on hover: actions inside a field (clear, reveal, copy); `soft` — A fill without a ring: the active pill tab; `danger` — The destructive confirm, with the primary's material; `danger-secondary` — Raised with danger text; tints on hover. Destructive triggers.; `link` — Text with an underline, for actions inside sentences
|
|
101
|
+
- **variant** (button): `primary` — Ink with a faint top light. Exactly one per view.; `secondary` (default) — Raised, ring and a soft shadow. The default.; `ghost` — Transparent until hovered: toolbars, rows, quiet actions; `quiet` — A ghost in secondary text that darkens on hover: actions inside a field (clear, reveal, copy); `soft` — A fill without a ring: the active pill tab; `selector` — Quiet like an unset select; with `pressed`, a check and full text: an on-or-off filter in a row of selects; `danger` — The destructive confirm, with the primary's material; `danger-secondary` — Raised with danger text; tints on hover. Destructive triggers.; `link` — Text with an underline, for actions inside sentences
|
|
143
102
|
- **size** (button): `xs` — 24px: chips inside rows and tables only; `sm` — 32px: toolbars, headers, settings rows; `md` (default) — 36px: the default; `lg` — 40px: prominent actions; `xl` — 48px: sign-in and setup forms, empty-state actions
|
|
144
|
-
- **shape** (button): `pill` (default) —
|
|
103
|
+
- **shape** (button): `pill` (default) — A button with a label is a pill; `circle` — A button with `icon` and no label is a circle of the same height
|
|
145
104
|
|
|
146
105
|
### Button
|
|
147
106
|
|
|
148
|
-
The button
|
|
107
|
+
The button: a pill with a label, or, with `icon` and no label, a circle that shows its `aria-label` as a tooltip.
|
|
149
108
|
|
|
150
109
|
| Prop | Type | Default | Description |
|
|
151
110
|
|---|---|---|---|
|
|
152
|
-
| `icon` * | `IconSvgElement` | | The only content of an icon button; give it an `aria-label`. |
|
|
153
111
|
| `children` | `ReactNode` | | The button's label: a verb first, in sentence case. A label wider than its container is cut with an ellipsis and shown whole in a tooltip. |
|
|
154
112
|
| `count` | `number` | | A count after the label. |
|
|
155
113
|
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
156
114
|
| `disabledReason` | `string` | | Why the button is disabled, shown as a tooltip and read out as the button's description. The button stays focusable so people can reach it. |
|
|
157
115
|
| `fullWidth` | `boolean` | | Fills the width of its container. |
|
|
158
116
|
| `href` | `string` | | Renders a link that looks like the button. |
|
|
117
|
+
| `icon` | `IconSvgElement` | | Makes it an icon-only circle with this icon. Give it an `aria-label`: the name screen readers read and the tooltip shows. |
|
|
159
118
|
| `leadingIcon` | `IconSvgElement` | | An icon before the text. |
|
|
160
119
|
| `loading` | `boolean` | | Work is underway: the button is busy and ignores clicks at once; the spinner shows only once the work has taken 300ms, then for at least 400ms (`useDelayedLoading`). It replaces the leading icon, or covers the label; the width never changes. |
|
|
120
|
+
| `onPressedChange` | `((pressed: boolean) => void)` | | Called with the new state when a toggle button is pressed. |
|
|
121
|
+
| `pressed` | `boolean` | | Makes it a toggle button that is on or off (`aria-pressed`); with `variant="selector"`, a check shows while it is on. |
|
|
161
122
|
| `rel` | `string` | | The link's relationship, as on an `a` element. |
|
|
162
123
|
| `reserveLabels` | `ReactNode[]` | | Every label this button can show ("Copy key", "Copied"). The button keeps the width of the widest, so a state change never resizes it. |
|
|
163
|
-
| `
|
|
164
|
-
| `shortcut` | `string[] \| string[][]` | | A shortcut hint after the label (lg and xl, and in menus). |
|
|
124
|
+
| `shortcut` | `string[] \| string[][]` | | A shortcut hint: after the label (lg and xl, and in menus), or in the tooltip of an icon-only button. |
|
|
165
125
|
| `size` | `"md" \| "xs" \| "sm" \| "lg" \| "xl"` | | The height, from `xs` (24px) to `xl` (48px). |
|
|
126
|
+
| `static` | `boolean` | | Keeps the button still when pressed, for a control whose 0.96 press would distract; it still darkens. |
|
|
166
127
|
| `target` | `string` | | Where the link opens, as on an `a` element. |
|
|
128
|
+
| `tooltip` | `boolean` | | Turns off an icon-only button's tooltip, for when a visible label sits next to it or the button has a tooltip of its own. |
|
|
129
|
+
| `tooltipSide` | `"top" \| "bottom" \| "left" \| "right"` | | Where an icon-only button's tooltip appears. |
|
|
167
130
|
| `trailingIcon` | `IconSvgElement` | | An icon after the text. |
|
|
168
|
-
| `variant` | `"danger" \| "link" \| "secondary" \| "primary" \| "ghost" \| "quiet" \| "soft" \| "danger-secondary"` | | `primary` for the one main action of a view, `secondary` for others, `ghost` and `quiet` for toolbars and rows, `danger` for destructive actions. A ghost or quiet button at the end of a settings row's control pulls its padding past the row's edge, so its label ends where an outlined button's ring does. |
|
|
131
|
+
| `variant` | `"danger" \| "link" \| "secondary" \| "primary" \| "ghost" \| "quiet" \| "soft" \| "selector" \| "danger-secondary"` | | `primary` for the one main action of a view, `secondary` for others, `ghost` and `quiet` for toolbars and rows, `danger` for destructive actions. A ghost or quiet button at the end of a settings row's control pulls its padding past the row's edge, so its label ends where an outlined button's ring does. |
|
|
169
132
|
|
|
170
133
|
## button-group
|
|
171
134
|
|
|
@@ -206,16 +169,15 @@ The calendar: 36px day circles, today ringed, ranges as a continuous strip with
|
|
|
206
169
|
| `onMonthChange` | `((month: Date) => void)` | | Called when the month shown changes. |
|
|
207
170
|
| `onSelect` | `((value: Date \| DateRange) => void)` | | Called with the new day or range. |
|
|
208
171
|
| `selected` | `Date \| DateRange` | | The selected day or range. |
|
|
209
|
-
| `weekStartsOn` | `0 \|
|
|
172
|
+
| `weekStartsOn` | `0 \| 4 \| 1 \| 2 \| 3 \| 5 \| 6` | `1` | 0 = Sunday, 1 = Monday (default). |
|
|
210
173
|
|
|
211
174
|
## charts
|
|
212
175
|
|
|
213
|
-
`import { BarChart,
|
|
176
|
+
`import { BarChart, Donut, Heatmap, Sankey, ShareBar, Sparkline, TimeseriesChart } from "@logicplanes/kaeso-ui/charts";`
|
|
214
177
|
|
|
215
178
|
- **layout** (bar_chart): `grouped` (default) — Bars side by side per category (default); `stacked` — Bars stacked per category; `horizontal` — Horizontal bars for rankings
|
|
216
179
|
- **chrome** (charts): `default` (default) — Dashed 3 3 grid, tertiary 12px labels, a strong baseline; no frame
|
|
217
180
|
- **size** (donut): `md` (default) — 160px (default); `sm` — 140px; `lg` — 180px
|
|
218
|
-
- **size** (gauge): `md` (default) — 180px (default)
|
|
219
181
|
- **layout** (heatmap): `week` (default) — Hour × weekday (default); `year` — Day × week
|
|
220
182
|
- **size** (sankey): `md` (default) — Fills its width; 320px tall by default
|
|
221
183
|
- **size** (share_bar): `md` (default) — One 8px pill (default)
|
|
@@ -246,43 +208,6 @@ Bars for comparing values across categories: grouped, stacked, or horizontal for
|
|
|
246
208
|
| `partial` | `{ first?: boolean; last?: boolean; ongoing?: boolean \| undefined; } \| undefined` | | Marks the `first` or `last` category as covering only part of its span: its bars are drawn faint with a dashed edge, like a partial line, and its tooltip says "partial". `ongoing` marks the last one as still counting, such as today, and says "so far". |
|
|
247
209
|
| `shares` | `boolean` | `true` | Shows each series' share of the category's total in the tooltip (on by default). Turn it off when one series is part of another, such as errors within requests. |
|
|
248
210
|
|
|
249
|
-
### ChartFrame
|
|
250
|
-
|
|
251
|
-
The frame every chart draws in: a hidden data table for assistive technology, a "View as table" toggle that shows the table at the chart's height, scrolling inside, and the empty, loading and error states. The toggle sits at the right end of the last line of the legend; when the frame is narrower than 480px (the `chart-legend` container size, a phone), it moves to its own line under the legend, so it never reads as one of the series. Use it to build a chart of your own that behaves like the others.
|
|
252
|
-
|
|
253
|
-
| Prop | Type | Default | Description |
|
|
254
|
-
|---|---|---|---|
|
|
255
|
-
| `children` * | `ReactNode` | | The plot, usually an SVG, drawn at `height`. |
|
|
256
|
-
| `height` * | `number` | | The plot's height in px. The empty, loading and error states keep it, so nothing below moves. |
|
|
257
|
-
| `label` * | `string` | | The chart's accessible name, also the caption of the hidden data table. |
|
|
258
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
259
|
-
| `legend` | `ReactNode` | | A legend under the plot, usually a `Legend`. It is hidden while the table is shown. |
|
|
260
|
-
| `state` | `ChartState` | `{}` | The chart's `loading`, `error`, `onRetry`, `empty` and `emptyText`, as the charts take them. |
|
|
261
|
-
| `table` | `TableData` | | The data as `columns` and `rows`, for screen readers and the table view. Without it there is no table and no toggle. |
|
|
262
|
-
| `toggle` | `boolean` | `true` | Shows the "View as table" button when there is a `table` (on by default). |
|
|
263
|
-
|
|
264
|
-
### ChartLive
|
|
265
|
-
|
|
266
|
-
A polite live region that announces what the keyboard highlight shows once it settles. Charts use it because their tooltip is hidden from assistive technology.
|
|
267
|
-
|
|
268
|
-
| Prop | Type | Default | Description |
|
|
269
|
-
|---|---|---|---|
|
|
270
|
-
| `children` | `ReactNode` | | The line to announce, usually from `liveLine`; nothing while nothing is highlighted. |
|
|
271
|
-
|
|
272
|
-
### ChartTooltip
|
|
273
|
-
|
|
274
|
-
The tooltip a chart shows for a highlighted point or category: a heading with the x value and one row per series. It flips to the left past the middle and stays inside the chart.
|
|
275
|
-
|
|
276
|
-
| Prop | Type | Default | Description |
|
|
277
|
-
|---|---|---|---|
|
|
278
|
-
| `heading` * | `ReactNode` | | The heading, usually the highlighted time or category. |
|
|
279
|
-
| `rows` * | `TooltipRow[]` | | One row per series, each with an `id`, a `label`, a `color`, a `value` and an optional `share`. |
|
|
280
|
-
| `visible` * | `boolean` | | Shows the tooltip; it fades out when false. |
|
|
281
|
-
| `width` * | `number` | | The chart's width in px, so the tooltip flips and stays inside it. |
|
|
282
|
-
| `x` * | `number` | | The anchor's x position in px from the chart's left edge. The tooltip sits 16px to its right. |
|
|
283
|
-
| `y` * | `number` | | The anchor's y position in px from the chart's top. |
|
|
284
|
-
| `xLeft` | `number` | | Where the tooltip ends when it flips to the left, such as the left edge of a highlighted bar group, so it never covers it. Defaults to `x`. |
|
|
285
|
-
|
|
286
211
|
### Donut
|
|
287
212
|
|
|
288
213
|
A ring of shares with the total in the center and a legend beside it, or under it when narrow. Use it for a few parts of one whole.
|
|
@@ -302,19 +227,6 @@ A ring of shares with the total in the center and a legend beside it, or under i
|
|
|
302
227
|
| `total` | `ReactNode` | | Replaces the total in the center, which is otherwise the sum of the slices written with `formatValue`. A long total steps down a size to fit the ring. |
|
|
303
228
|
| `totalLabel` | `ReactNode` | | The word under the total. Defaults to "Total" in the provider's language. |
|
|
304
229
|
|
|
305
|
-
### Gauge
|
|
306
|
-
|
|
307
|
-
A semicircle meter for one share of a limit, such as "budget used". At the first threshold it says "Near the limit" and turns to warning; at 100% it says "Over the limit" and turns to danger.
|
|
308
|
-
|
|
309
|
-
| Prop | Type | Default | Description |
|
|
310
|
-
|---|---|---|---|
|
|
311
|
-
| `aria-label` * | `string` | | The chart's accessible name ("Requests by model"). |
|
|
312
|
-
| `value` * | `number` | | The share used, from 0 to 1. Values above 1 fill the arc and turn it to danger; a missing value (NaN) shows a dash and no arc. |
|
|
313
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
314
|
-
| `label` | `ReactNode` | | A caption under the arc ("of $500.00 budget"); it wraps when long. |
|
|
315
|
-
| `thresholds` | `number[]` | `[0.8]` | Fractions marked as ticks on the arc (`[0.8]` by default). From the lowest one, the arc turns to warning. |
|
|
316
|
-
| `valueLabel` | `ReactNode` | | Replaces the value in the center, which is otherwise the percentage. Pass a string so screen readers hear it with the unit. |
|
|
317
|
-
|
|
318
230
|
### Heatmap
|
|
319
231
|
|
|
320
232
|
A grid of cells shaded on a five-step ramp, for one value across two dimensions such as hour by weekday. One tab stop: the arrow keys move between cells and show each value, the table toggle lists them all, and a grid wider than its column scrolls with a fade at the edge.
|
|
@@ -329,37 +241,6 @@ A grid of cells shaded on a five-step ramp, for one value across two dimensions
|
|
|
329
241
|
| `columnLabelEvery` | `number` | `3` | Labels every nth column, starting with the first (3 by default), so dense columns stay readable. |
|
|
330
242
|
| `formatValue` | `((v: number) => string)` | `(v) => formatNumber(v)` | Formats a cell's value for its tooltip, the table and screen readers. Defaults to `formatNumber`. |
|
|
331
243
|
|
|
332
|
-
### Legend
|
|
333
|
-
|
|
334
|
-
Pills with swatches that name a chart's series. With `onToggle` they show and hide series, and hovering one can isolate it.
|
|
335
|
-
|
|
336
|
-
| Prop | Type | Default | Description |
|
|
337
|
-
|---|---|---|---|
|
|
338
|
-
| `items` * | `LegendItem[]` | | One item per series, each with an `id`, a `label`, a `color` and an optional `value`. |
|
|
339
|
-
| `hidden` | `Set<string>` | | The `id`s of the series that are hidden; their pills show as off. |
|
|
340
|
-
| `onHover` | `((id: string \| null) => void)` | | Called with a series `id` when its pill is hovered or focused, and with `null` when it is left. |
|
|
341
|
-
| `onToggle` | `((id: string) => void)` | | Called with a series `id` when its pill is pressed. Without it, the pills are plain labels. |
|
|
342
|
-
| `shape` | `"square" \| "line"` | `square` | The swatch: `square` for filled marks (default) or `line` for lines. |
|
|
343
|
-
|
|
344
|
-
### Ring
|
|
345
|
-
|
|
346
|
-
The same component as `Donut` under another name, with the same props.
|
|
347
|
-
|
|
348
|
-
| Prop | Type | Default | Description |
|
|
349
|
-
|---|---|---|---|
|
|
350
|
-
| `aria-label` * | `string` | | The chart's accessible name ("Requests by model"). |
|
|
351
|
-
| `slices` * | `Slice[]` | | The parts of the whole, each with an `id`, a `label`, a `value` and an optional `color`. Slices under 2% are grouped as Other when there are two or more, and past the eighth slice the rest are grouped too, so no two slices share a color. |
|
|
352
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
353
|
-
| `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. |
|
|
354
|
-
| `emptyText` | `ReactNode` | | What the empty state says. Defaults to "No data for this period" in the provider's language. |
|
|
355
|
-
| `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. Errors are toasts, so the value isn't shown; pass `true` and toast the message where the request fails. |
|
|
356
|
-
| `formatValue` | `((v: number) => string)` | `(v) => formatNumber(v)` | Formats the total in the center and the values in the legend. Defaults to `formatNumber`. |
|
|
357
|
-
| `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. |
|
|
358
|
-
| `onRetry` | `(() => void)` | | Called when Try again is pressed after `error`; without it, the button doesn't show. |
|
|
359
|
-
| `size` | `"md" \| "sm" \| "lg"` | `md` | The ring's diameter: `sm` 140px, `md` 160px (default) or `lg` 180px. |
|
|
360
|
-
| `total` | `ReactNode` | | Replaces the total in the center, which is otherwise the sum of the slices written with `formatValue`. A long total steps down a size to fit the ring. |
|
|
361
|
-
| `totalLabel` | `ReactNode` | | The word under the total. Defaults to "Total" in the provider's language. |
|
|
362
|
-
|
|
363
244
|
### Sankey
|
|
364
245
|
|
|
365
246
|
A flow diagram, such as requests from keys to models to providers, with ribbons as wide as each flow. Hovering a node, or reaching it with the arrow keys, highlights its paths. Each column keeps room for its labels; when narrow, the values go first, then long names end in an ellipsis.
|
|
@@ -402,16 +283,6 @@ A small line chart of one series, inline beside a value, with its last point mar
|
|
|
402
283
|
| `color` | `string` | `var(--k-viz-1)` | The line's color (`var(--k-viz-1)` by default). Pass `seriesColor(id)` to match the series elsewhere. |
|
|
403
284
|
| `fluid` | `boolean` | | Fills the container's width at 32px high, without the last point's dot, as in a stat tile. Otherwise it is 80×24. |
|
|
404
285
|
|
|
405
|
-
### Swatch
|
|
406
|
-
|
|
407
|
-
The mark that keys a series: a short stroke for lines, a small rounded square for filled marks. Never a dot.
|
|
408
|
-
|
|
409
|
-
| Prop | Type | Default | Description |
|
|
410
|
-
|---|---|---|---|
|
|
411
|
-
| `color` * | `string` | | The series color. |
|
|
412
|
-
| `off` | `boolean` | | Draws the swatch as an outline in the series color, for a hidden series. |
|
|
413
|
-
| `shape` | `"square" \| "line"` | `square` | `square` for filled marks (default) or `line` for lines. |
|
|
414
|
-
|
|
415
286
|
### TimeseriesChart
|
|
416
287
|
|
|
417
288
|
A line or area chart of values over time, such as usage, with a crosshair and tooltip. The point under the pointer, or reached with the arrow keys, shows its values.
|
|
@@ -466,32 +337,7 @@ A checkbox with its label and description; with a `parent`, it checks or uncheck
|
|
|
466
337
|
| `label` | `ReactNode` | | The label; the whole row becomes the target. |
|
|
467
338
|
| `name` | `string` | | The field name the value is sent under in a form. |
|
|
468
339
|
| `onCheckedChange` | `((checked: boolean) => void)` | | Called with the new state when it is checked or unchecked. |
|
|
469
|
-
| `
|
|
470
|
-
| `required` | `boolean` | | Marks it as required in a form. |
|
|
471
|
-
| `value` | `string` | | The value sent with the form, and the value in a `CheckboxGroup`. |
|
|
472
|
-
|
|
473
|
-
### Checkbox.Box
|
|
474
|
-
|
|
475
|
-
The box alone: 18px, raised and ringed; ink when checked with a check that draws itself in 140ms.
|
|
476
|
-
|
|
477
|
-
| Prop | Type | Default | Description |
|
|
478
|
-
|---|---|---|---|
|
|
479
|
-
| `aria-describedby` | `string` | | The ids of the elements that describe it. |
|
|
480
|
-
| `aria-label` | `string` | | The accessible name, for when there is no visible label. |
|
|
481
|
-
| `aria-labelledby` | `string` | | Names the box by other text, such as the first line of a row whose label holds more. |
|
|
482
|
-
| `checked` | `boolean` | | Whether it is checked, when you control it. |
|
|
483
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
484
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
485
|
-
| `defaultChecked` | `boolean` | | Whether it starts checked, when the component keeps its own state. |
|
|
486
|
-
| `description` | `ReactNode` | | One sentence of help under the label. |
|
|
487
|
-
| `disabled` | `boolean` | | Turns it off: it can't be used, and it looks dimmed. |
|
|
488
|
-
| `id` | `string` | | The id of the control, so a label elsewhere can point to it. |
|
|
489
|
-
| `indeterminate` | `boolean` | | Shows a dash: some, but not all, of a group is checked. |
|
|
490
|
-
| `invalid` | `boolean` | | Shows it as invalid; inside a `Field` with `error`, it is invalid on its own and reads the message with it. |
|
|
491
|
-
| `label` | `ReactNode` | | The label; the whole row becomes the target. |
|
|
492
|
-
| `name` | `string` | | The field name the value is sent under in a form. |
|
|
493
|
-
| `onCheckedChange` | `((checked: boolean) => void)` | | Called with the new state when it is checked or unchecked. |
|
|
494
|
-
| `parent` | `boolean` | | Checks and unchecks every checkbox of its `CheckboxGroup`. |
|
|
340
|
+
| `parent` | `boolean` | | Makes it the select-all box of a `CheckboxGroup`: checked when every value in the group's `allValues` is, a dash when some are, and checking it checks them all. |
|
|
495
341
|
| `readOnly` | `boolean` | | Shows the value without letting people change it. |
|
|
496
342
|
| `required` | `boolean` | | Marks it as required in a form. |
|
|
497
343
|
| `value` | `string` | | The value sent with the form, and the value in a `CheckboxGroup`. |
|
|
@@ -530,7 +376,7 @@ Inline code: Geist Mono 13 on fill-1.
|
|
|
530
376
|
|
|
531
377
|
## code-block
|
|
532
378
|
|
|
533
|
-
`import { CodeBlock,
|
|
379
|
+
`import { CodeBlock, DiffView, JsonView } from "@logicplanes/kaeso-ui/code-block";`
|
|
534
380
|
|
|
535
381
|
- **surface** (code_block): `well` (default) — A well: radius 14, fill, no ring (default); `plain` — No surface, inside another well
|
|
536
382
|
- **surface** (diff_view): `well` (default) — A well: radius 14, fill, no ring (default); `plain` — No surface, inside another well
|
|
@@ -556,26 +402,6 @@ Highlighted code on a well: Kaeso's monochrome theme, copy in the header with a
|
|
|
556
402
|
| `title` | `ReactNode` | | A file name in the title bar. |
|
|
557
403
|
| `wrap` | `boolean \| "phone"` | `false` | Long lines wrap instead of scrolling sideways: code in a narrow column (a model's response). `phone` wraps them only below 640px, with wrapped parts indented, and scrolls from there up. |
|
|
558
404
|
|
|
559
|
-
### CodeHighlighted
|
|
560
|
-
|
|
561
|
-
The same component as `CodeBlock`, under another name.
|
|
562
|
-
|
|
563
|
-
| Prop | Type | Default | Description |
|
|
564
|
-
|---|---|---|---|
|
|
565
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
566
|
-
| `code` | `string` | | The code to show. |
|
|
567
|
-
| `collapseAfter` | `number` | `24` | Collapse beyond this many lines (24 by default; 0 never collapses). |
|
|
568
|
-
| `copy` | `boolean` | `true` | Hide the copy circle. |
|
|
569
|
-
| `highlightLines` | `number[]` | `[]` | 1-based line numbers to highlight. |
|
|
570
|
-
| `lang` | `CodeLang` | `ts` | The language of the code, for highlighting. |
|
|
571
|
-
| `lineNumbers` | `boolean` | | Shows line numbers. |
|
|
572
|
-
| `onTabChange` | `((label: string) => void)` | | Called with the label of the tab a person chooses, to remember it. |
|
|
573
|
-
| `surface` | `"well" \| "plain"` | `well` | On a filled well (`well`) or on the panel itself (`plain`). |
|
|
574
|
-
| `tab` | `string` | | The label of the tab to show, such as a language the reader chose before. A label the block lacks leaves its own choice. |
|
|
575
|
-
| `tabs` | `CodeTab[]` | | Several versions: "Python · Node · curl", shown as pill tabs. |
|
|
576
|
-
| `title` | `ReactNode` | | A file name in the title bar. |
|
|
577
|
-
| `wrap` | `boolean \| "phone"` | `false` | Long lines wrap instead of scrolling sideways: code in a narrow column (a model's response). `phone` wraps them only below 640px, with wrapped parts indented, and scrolls from there up. |
|
|
578
|
-
|
|
579
405
|
### DiffView
|
|
580
406
|
|
|
581
407
|
Two versions of a text side by side in one column: removed lines on red, added lines on green, the changed words inside them marked, syntax highlighted, and long unchanged runs folded away.
|
|
@@ -607,21 +433,10 @@ A folding JSON tree: copy any path, highlight a search. For request and response
|
|
|
607
433
|
|
|
608
434
|
## collapsible
|
|
609
435
|
|
|
610
|
-
`import {
|
|
436
|
+
`import { Collapsible } from "@logicplanes/kaeso-ui/collapsible";`
|
|
611
437
|
|
|
612
438
|
- **state** (collapsible): `closed` (default) — Closed: a pill row with the title 12px in and a chevron at its end pointing right (default); `open` — Open: the chevron turns down in 200ms and the content shows under the title
|
|
613
439
|
|
|
614
|
-
### Accordion
|
|
615
|
-
|
|
616
|
-
Collapsible rows separated by hairlines, each the same pill row as Collapsible.
|
|
617
|
-
|
|
618
|
-
| Prop | Type | Default | Description |
|
|
619
|
-
|---|---|---|---|
|
|
620
|
-
| `items` * | `AccordionItem[]` | | The sections, each with a title and its content. |
|
|
621
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
622
|
-
| `defaultValue` | `string[]` | | The sections open on first render. |
|
|
623
|
-
| `multiple` | `boolean` | `false` | Several open at once. |
|
|
624
|
-
|
|
625
440
|
### Collapsible
|
|
626
441
|
|
|
627
442
|
A disclosure row: a pill with the title 12px in and a chevron at its end that turns in 200ms, the content on the title's line, a measured height animation.
|
|
@@ -638,7 +453,7 @@ A disclosure row: a pill with the title 12px in and a chevron at its end that tu
|
|
|
638
453
|
|
|
639
454
|
## combobox
|
|
640
455
|
|
|
641
|
-
`import { Autocomplete, Combobox
|
|
456
|
+
`import { Autocomplete, Combobox } from "@logicplanes/kaeso-ui/combobox";`
|
|
642
457
|
|
|
643
458
|
- **size** (autocomplete): `sm` — 32px; `md` (default) — 36px (default); `lg` — 40px; `xl` — 48px
|
|
644
459
|
- **size** (combobox): `sm` — 32px; `md` (default) — 36px (default); `lg` — 40px; `xl` — 48px
|
|
@@ -702,84 +517,6 @@ A pill input with a filtered list: matched characters highlighted, async, chips
|
|
|
702
517
|
| `size` | `"md" \| "sm" \| "lg" \| "xl"` | | The height of the input. |
|
|
703
518
|
| `value` | `string \| string[] \| null` | | The chosen value, or a list of values with `multiple`, when you control it. |
|
|
704
519
|
|
|
705
|
-
### Highlight
|
|
706
|
-
|
|
707
|
-
Splits a label around the query: matched characters in text, the rest secondary (7.4).
|
|
708
|
-
|
|
709
|
-
| Prop | Type | Default | Description |
|
|
710
|
-
|---|---|---|---|
|
|
711
|
-
| `query` * | `string` | | The part of the text to highlight, ignoring case. |
|
|
712
|
-
| `text` * | `string` | | The text to show. |
|
|
713
|
-
|
|
714
|
-
## command-list
|
|
715
|
-
|
|
716
|
-
`import { CommandList, PickerPopover, PickerTrigger } from "@logicplanes/kaeso-ui/command-list";`
|
|
717
|
-
|
|
718
|
-
- **height** (command_list): `popover` (default) — At most 480px or 70% of the window, shrinking to its rows: a popover (default); `inline` — Its rows' height up to 360px in a raised frame, kept while searching: a dialog step; `fill` — Fills its parent: a phone sheet or a command palette
|
|
719
|
-
- **size** (command_list): `md` (default) — A 44px search over 34px rows (default); `lg` — A 56px search over 40px rows: the command palette
|
|
720
|
-
- **width** (picker_popover): `sm` — 320px: providers and short lists; `md` (default) — 400px (default); `lg` — 560px: models with their details
|
|
721
|
-
|
|
722
|
-
### CommandList
|
|
723
|
-
|
|
724
|
-
A search field over a long list that stays fast with thousands of rows: fuzzy matches on every row's words, groups with sticky captions, the best matches first, arrows, Home, End and Page keys, Enter to choose. The base of every picker.
|
|
725
|
-
|
|
726
|
-
| Prop | Type | Default | Description |
|
|
727
|
-
|---|---|---|---|
|
|
728
|
-
| `aria-label` * | `string` | | The list's accessible name. |
|
|
729
|
-
| `groups` * | `CommandListGroup[]` | | The rows, in groups; a group with a label gets a sticky caption with its mark and count, and a loading group keeps its caption, without a count, over a Loading… row while it has no rows yet. |
|
|
730
|
-
| `autoFocus` | `boolean` | | Focuses the search field when it appears, as in a popover or a dialog step. |
|
|
731
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
732
|
-
| `counts` | `boolean` | `true` | Shows each group's count beside its caption; false leaves them out, for a site whose house style has no result counters. |
|
|
733
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
734
|
-
| `defaultQuery` | `string` | | The search text on first render. |
|
|
735
|
-
| `emptyText` | `ReactNode` | | What the list says when nothing matches: "No models match". Defaults to "No results for “claude”", naming the query, in the provider's language. |
|
|
736
|
-
| `escapeClears` | `boolean` | `true` | Escape first clears the search, and only an empty search lets Escape close what holds the list (true by default). |
|
|
737
|
-
| `footer` | `ReactNode` | | A line under the list, such as key hints. |
|
|
738
|
-
| `height` | `"fill" \| "popover" \| "inline"` | | How tall it is: bounded in a popover, a fixed raised frame in a dialog, or filling a phone sheet. Inside `PickerPopover` it follows the popover. |
|
|
739
|
-
| `inputProps` | `{ [attribute: `data-${string}`]: string; }` | | Data attributes for the search field, such as a marker other code looks for. |
|
|
740
|
-
| `loading` | `boolean` | | Shows a quiet progress line at the top while more rows load; with reduced motion it breathes instead of moving. |
|
|
741
|
-
| `match` | `((item: CommandListItem, query: string) => number)` | `(item: CommandListItem, query: string) => commandMatch(query, [item.label, ...(item.keywords ?? [])])` | Scores a row against the search: above 0 keeps it, and higher scores come first. Fuzzy matching on the label and keywords by default. |
|
|
742
|
-
| `multiple` | `boolean` | | Rows toggle with a checkbox instead of choosing one. |
|
|
743
|
-
| `onEscape` | `(() => void)` | | Called on Escape when the search field is already empty. |
|
|
744
|
-
| `onInputKeyDown` | `((event: KeyboardEvent<HTMLInputElement>) => void)` | | Called first with every key pressed in the search field; call `preventDefault` to replace the list's own handling. |
|
|
745
|
-
| `onQueryChange` | `((query: string) => void)` | | Called with the search text. |
|
|
746
|
-
| `onSelect` | `((value: string) => void)` | | Called with the value of the row chosen with Enter or a click. |
|
|
747
|
-
| `placeholder` | `string` | | The search field's placeholder and accessible name ("Search" by default). |
|
|
748
|
-
| `query` | `string` | | The search text, when you control it. |
|
|
749
|
-
| `searchPrefix` | `ReactNode` | | Something before the search text, such as the page a palette is on. |
|
|
750
|
-
| `size` | `"md" \| "lg"` | `md` | The search field's and the rows' height: 34px rows, or 40px in the command palette. |
|
|
751
|
-
| `toolbar` | `ReactNode` | | Controls under the search field: filter chips or a toggle. |
|
|
752
|
-
| `value` | `string \| readonly string[] \| null` | | The chosen value, or the chosen values with `multiple`. |
|
|
753
|
-
|
|
754
|
-
### PickerPopover
|
|
755
|
-
|
|
756
|
-
The frame a picker opens in: a popover under its trigger on wider screens, a full-screen sheet with the search on top on phones.
|
|
757
|
-
|
|
758
|
-
| Prop | Type | Default | Description |
|
|
759
|
-
|---|---|---|---|
|
|
760
|
-
| `children` * | `ReactNode` | | The `CommandList`. |
|
|
761
|
-
| `title` * | `string` | | The popover's accessible name and the sheet's title on phones. |
|
|
762
|
-
| `trigger` * | `ReactElement<unknown, string \| JSXElementConstructor<any>>` | | The button that opens it, usually a `PickerTrigger`. |
|
|
763
|
-
| `align` | `"start" \| "end"` | `start` | Which edge of the trigger the popover lines up with. |
|
|
764
|
-
| `onOpenChange` | `((open: boolean) => void)` | | Called when it opens or closes. |
|
|
765
|
-
| `open` | `boolean` | | Whether it is open, when you control it. |
|
|
766
|
-
| `width` | `"md" \| "sm" \| "lg"` | `md` | The popover's width on wider screens. |
|
|
767
|
-
|
|
768
|
-
### PickerTrigger
|
|
769
|
-
|
|
770
|
-
The pill that opens a picker and shows its value, in the same looks and sizes as `Select`.
|
|
771
|
-
|
|
772
|
-
| Prop | Type | Default | Description |
|
|
773
|
-
|---|---|---|---|
|
|
774
|
-
| `appearance` | `"ghost" \| "default" \| "header"` | `default` | A raised pill, quiet in a settings row, or transparent in a column header. |
|
|
775
|
-
| `aria-label` | `string` | | What the picker is for. The pill is named by what it shows, so this becomes its description; it names the pill only while the pill shows nothing. |
|
|
776
|
-
| `children` | `ReactNode` | | The chosen value as it should read; the placeholder shows without it. |
|
|
777
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
778
|
-
| `fullWidth` | `boolean` | | Fills the container. |
|
|
779
|
-
| `invalid` | `boolean` | | Shows it as invalid; pair it with a message that says what to fix. |
|
|
780
|
-
| `placeholder` | `ReactNode` | | Text shown while nothing is chosen. |
|
|
781
|
-
| `size` | `"md" \| "sm" \| "lg" \| "xl"` | `md` | The height of the pill. |
|
|
782
|
-
|
|
783
520
|
## command-palette
|
|
784
521
|
|
|
785
522
|
`import { CommandPalette } from "@logicplanes/kaeso-ui/command-palette";`
|
|
@@ -807,48 +544,27 @@ The pill that opens a picker and shows its value, in the same looks and sizes as
|
|
|
807
544
|
|
|
808
545
|
## copy-button
|
|
809
546
|
|
|
810
|
-
`import {
|
|
547
|
+
`import { CopyButton } from "@logicplanes/kaeso-ui/copy-button";`
|
|
811
548
|
|
|
812
|
-
- **
|
|
549
|
+
- **display** (copy_button): `icon` (default) — A circle that copies a value (default); `inline` — Mono text in a sentence or a row that copies itself on click; `field` — A read-only pill field: the value in mono and a copy circle inside
|
|
813
550
|
- **variant** (copy_button): `ghost` (default) — Inside fields and wells (default); `secondary` — On its own
|
|
814
551
|
- **size** (copy_button): `xs` — 24px circle: inside rows and chips; `sm` (default) — 32px circle: toolbars and headers (default); `md` — 36px circle: beside md controls; `lg` — 40px circle; `xl` — 48px circle
|
|
815
552
|
|
|
816
|
-
### ClipboardText
|
|
817
|
-
|
|
818
|
-
A read-only pill field: the value in mono and a copy circle inside.
|
|
819
|
-
|
|
820
|
-
| Prop | Type | Default | Description |
|
|
821
|
-
|---|---|---|---|
|
|
822
|
-
| `value` * | `string` | | The text to show and copy. |
|
|
823
|
-
| `display` | `ReactNode` | | Shown instead of the value (for example a redacted form); the value is still what is copied. |
|
|
824
|
-
| `label` | `string` | | The tooltip and accessible name. Defaults to "Copy" in the provider's language. |
|
|
825
|
-
| `size` | `"md" \| "sm" \| "lg"` | `md` | The height of the field. |
|
|
826
|
-
|
|
827
553
|
### CopyButton
|
|
828
554
|
|
|
829
|
-
|
|
555
|
+
Copies a value, with a check and "Copied" for 1.2s: a circle (the default), a read-only pill field with the value in mono and a circle inside (`field`), or inline mono text that copies itself on click (`inline`). Inline text shows a copy icon on hover and keyboard focus that takes no room where its row has some to spare, ends in an ellipsis when it is longer than its container, and shows the whole value in its tooltip until it is copied.
|
|
830
556
|
|
|
831
557
|
| Prop | Type | Default | Description |
|
|
832
558
|
|---|---|---|---|
|
|
833
559
|
| `value` * | `string` | | The text that is copied. |
|
|
560
|
+
| `children` | `ReactNode` | | What a field or inline text shows, when it differs from the copied text, such as a redacted form; the value is still what is copied. |
|
|
834
561
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
835
562
|
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
836
|
-
| `
|
|
837
|
-
| `
|
|
838
|
-
| `size` | `"md" \| "xs" \| "sm" \| "lg" \| "xl"` | `md` | The button's height. |
|
|
839
|
-
| `variant` | `"secondary" \| "ghost"` | `ghost` | A filled button (`secondary`) or a quiet one (`ghost`). |
|
|
840
|
-
|
|
841
|
-
### InlineCopyText
|
|
842
|
-
|
|
843
|
-
Inline mono text that copies itself on click. On hover and keyboard focus a copy icon appears after it. When nothing follows it on its line and its row's padding has room that no cell clips, the icon takes no space, so the text ends on the same edge as the values around it; otherwise the icon keeps its own space. Touch screens always show the icon in its own space. Never wider than its container: a long value (a user agent, an id) ends in an ellipsis, and its tooltip shows the whole of it until it is copied.
|
|
844
|
-
|
|
845
|
-
| Prop | Type | Default | Description |
|
|
846
|
-
|---|---|---|---|
|
|
847
|
-
| `value` * | `string` | | The text that is copied. |
|
|
848
|
-
| `children` | `ReactNode` | | What is shown, when it differs from the copied text. |
|
|
849
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
850
|
-
| `label` | `string` | | The tooltip and accessible name. Defaults to "Copy" in the provider's language. |
|
|
563
|
+
| `display` | `"inline" \| "icon" \| "field"` | `icon` | A circle (`icon`), a read-only pill field (`field`), or mono text inside a sentence or a row (`inline`). |
|
|
564
|
+
| `label` | `string` | | What is being copied, for the accessible name and the tooltip: "Copy key". Defaults to "Copy" in the provider's language. |
|
|
851
565
|
| `onCopy` | `((value: string) => void)` | | Called with the copied text. |
|
|
566
|
+
| `size` | `"md" \| "xs" \| "sm" \| "lg" \| "xl"` | `sm` | The circle's height, or a field's: 32px (`sm`) by default. |
|
|
567
|
+
| `variant` | `"secondary" \| "ghost"` | `ghost` | A filled circle (`secondary`) or a quiet one (`ghost`). |
|
|
852
568
|
|
|
853
569
|
## data-table
|
|
854
570
|
|
|
@@ -923,7 +639,7 @@ A pill showing the date; a popover with the calendar and a typed ISO field.
|
|
|
923
639
|
| `required` | `boolean` | | Marks it as required in a form. |
|
|
924
640
|
| `size` | `"md" \| "sm" \| "lg"` | | The height of the field. |
|
|
925
641
|
| `value` | `Date \| null` | | The chosen day, when you control it. |
|
|
926
|
-
| `weekStartsOn` | `0 \|
|
|
642
|
+
| `weekStartsOn` | `0 \| 4 \| 1 \| 2 \| 3 \| 5 \| 6` | | The first day of the week, from 0 (Sunday) to 6 (Saturday); the language decides by default. |
|
|
927
643
|
|
|
928
644
|
### DateRangePicker
|
|
929
645
|
|
|
@@ -951,7 +667,7 @@ A pill showing the range ("Oct 1 – Oct 12") or its preset ("Last 30 days"); pr
|
|
|
951
667
|
| `required` | `boolean` | | Marks it as required in a form. |
|
|
952
668
|
| `size` | `"md" \| "sm" \| "lg"` | | The height of the field. |
|
|
953
669
|
| `value` | `DateRange \| null` | | The chosen range, when you control it. |
|
|
954
|
-
| `weekStartsOn` | `0 \|
|
|
670
|
+
| `weekStartsOn` | `0 \| 4 \| 1 \| 2 \| 3 \| 5 \| 6` | | The first day of the week, from 0 (Sunday) to 6 (Saturday); the language decides by default. |
|
|
955
671
|
|
|
956
672
|
### TimeInput
|
|
957
673
|
|
|
@@ -976,29 +692,6 @@ Hours and minutes as two segments in one pill; arrows step, typing advances.
|
|
|
976
692
|
| `utc` | `boolean` | | Shows "UTC" after the time. |
|
|
977
693
|
| `value` | `string` | | "HH:MM" in 24 hours. |
|
|
978
694
|
|
|
979
|
-
## delete-resource
|
|
980
|
-
|
|
981
|
-
`import { DeleteResource } from "@logicplanes/kaeso-ui/blocks/delete-resource";`
|
|
982
|
-
|
|
983
|
-
- **confirm** (delete_resource): `typed` (default) — The person types the resource's name, for one that holds a lot: a project, an organization (default); `simple` — A confirm button only, for a resource that holds little: a key, an alias
|
|
984
|
-
|
|
985
|
-
### DeleteResource
|
|
986
|
-
|
|
987
|
-
Confirms deleting a resource for good: the title names it, the body says the consequence, the person types its name, and a danger button names the action. A reversible action needs no confirmation: act at once and offer Undo in a toast.
|
|
988
|
-
|
|
989
|
-
| Prop | Type | Default | Description |
|
|
990
|
-
|---|---|---|---|
|
|
991
|
-
| `consequence` * | `ReactNode` | | What happens: "Applications using it will stop authenticating with the gateway." |
|
|
992
|
-
| `kind` * | `string` | | The kind of resource in the provider's language, as it reads after the verb on the button: "project", "key"; in German "Projekt". |
|
|
993
|
-
| `name` * | `string` | | The resource's name: the title names it, and the person types it to confirm. |
|
|
994
|
-
| `onConfirm` * | `() => void \| Promise<void>` | | Called when the action is confirmed; return a promise to keep the dialog busy until it ends. |
|
|
995
|
-
| `confirm` | `"typed" \| "simple"` | `typed` | Asks to type the resource's name (`typed`) or just to confirm (`simple`). |
|
|
996
|
-
| `inline` | `boolean` | | Renders in place, without a trigger, for review pages and tests. |
|
|
997
|
-
| `onOpenChange` | `((open: boolean) => void)` | | Called when it opens or closes. |
|
|
998
|
-
| `open` | `boolean` | | Whether it is open, when you control it. |
|
|
999
|
-
| `trigger` | `ReactElement<unknown, string \| JSXElementConstructor<any>>` | | The element that opens it. |
|
|
1000
|
-
| `verb` | `string` | | The action in the provider's language, in the form it takes on the button and in the title: "Archive" ("Archive project", "Archive “Checkout”?"); in German the infinitive, "archivieren" ("Projekt archivieren"). Defaults to "Delete" in the provider's language. |
|
|
1001
|
-
|
|
1002
695
|
## dialog
|
|
1003
696
|
|
|
1004
697
|
`import { AlertDialog, Dialog, DialogScope, LayerDialog, StepDialog } from "@logicplanes/kaeso-ui/dialog";`
|
|
@@ -1038,7 +731,7 @@ A modal dialog: 440 / 560 / 720, radius 20, title, description, body, actions. E
|
|
|
1038
731
|
| Prop | Type | Default | Description |
|
|
1039
732
|
|---|---|---|---|
|
|
1040
733
|
| `title` * | `ReactNode` | | The dialog's heading, also its accessible name; a long one, or an id, wraps. |
|
|
1041
|
-
| `anchor` | `"
|
|
734
|
+
| `anchor` | `"top" \| "center"` | `top` | Where it sits: centered, or with a fixed top edge for content that changes height, so the title never moves. |
|
|
1042
735
|
| `busy` | `boolean` | | Keeps the dialog open while work it started is underway: Escape, a press outside, the close circle, Dialog.Close, Enter and ⌘Enter do nothing, so a request is never abandoned or sent twice. |
|
|
1043
736
|
| `children` | `ReactNode` | | The dialog's content and actions. |
|
|
1044
737
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
@@ -1073,7 +766,7 @@ A stacked dialog: a second layer slides over the first (add model → review val
|
|
|
1073
766
|
| Prop | Type | Default | Description |
|
|
1074
767
|
|---|---|---|---|
|
|
1075
768
|
| `layers` * | `DialogLayer[]` | | The layers, each with its title, content and footer, and optionally a toolbar and a footer start; one shows at a time, and the ones below it stay mounted and hidden. |
|
|
1076
|
-
| `anchor` | `"
|
|
769
|
+
| `anchor` | `"top" \| "center"` | `top` | Where it sits: with a fixed top edge (default), so the title stays put on layers of different heights, or centered. |
|
|
1077
770
|
| `busy` | `boolean` | | Keeps the dialog open while work it started is underway: Escape, a press outside, the close circle, Dialog.Close, Enter and ⌘Enter do nothing, so a request is never abandoned or sent twice. |
|
|
1078
771
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1079
772
|
| `defaultOpen` | `boolean` | | Whether it starts open, when the component keeps its own state. |
|
|
@@ -1237,27 +930,10 @@ The row between a page's header and its list or table: pill tabs at the start, f
|
|
|
1237
930
|
|
|
1238
931
|
| Prop | Type | Default | Description |
|
|
1239
932
|
|---|---|---|---|
|
|
1240
|
-
| `children` | `ReactNode` | | Filters at the end of the row: a `Select`, a `
|
|
933
|
+
| `children` | `ReactNode` | | Filters at the end of the row: a `Select`, a search `Input`. At the start when there are no tabs. |
|
|
1241
934
|
| `filtersLabel` | `string` | | The name of the filters' toolbar. Defaults to "Filters" in the provider's language. |
|
|
1242
935
|
| `size` | `"md" \| "inset"` | | By default `inset` in a settings column and `md` elsewhere. |
|
|
1243
|
-
| `tabs` | `ReactNode` | | Pill tabs at the start of the row (`
|
|
1244
|
-
|
|
1245
|
-
## filter-toggle
|
|
1246
|
-
|
|
1247
|
-
`import { FilterToggle } from "@logicplanes/kaeso-ui/filter-toggle";`
|
|
1248
|
-
|
|
1249
|
-
- **size** (filter_toggle): `sm` (default) — 32px: beside small selects in toolbars and filter rows (default); `md` — 36px: beside default selects
|
|
1250
|
-
|
|
1251
|
-
### FilterToggle
|
|
1252
|
-
|
|
1253
|
-
An on-or-off filter as a pill that sits in a row of selects: quiet like an unset select when off, a check and full text when on. Use it instead of a switch in filter rows and toolbars.
|
|
1254
|
-
|
|
1255
|
-
| Prop | Type | Default | Description |
|
|
1256
|
-
|---|---|---|---|
|
|
1257
|
-
| `label` * | `ReactNode` | | What the filter keeps, such as “Agents”. |
|
|
1258
|
-
| `onPressedChange` * | `(pressed: boolean) => void` | | Called with the new state when it is pressed. |
|
|
1259
|
-
| `pressed` * | `boolean` | | Whether the filter is on. |
|
|
1260
|
-
| `size` | `"md" \| "sm"` | `sm` | Its height, matched to the selects beside it. |
|
|
936
|
+
| `tabs` | `ReactNode` | | Pill tabs at the start of the row (`Tabs variant="pill"`). In a settings column their first label lines up with the title. |
|
|
1261
937
|
|
|
1262
938
|
## flow
|
|
1263
939
|
|
|
@@ -1305,7 +981,7 @@ An editable route drawn as a tree, top down: the start, then each step with its
|
|
|
1305
981
|
|
|
1306
982
|
### FlowWorkspace
|
|
1307
983
|
|
|
1308
|
-
The page body of an editor built on a `FlowCanvas`: the canvas fills the panel under the page header, and an inspector column on the right edits what is selected. From `lg` the inspector is a column of its own that scrolls on its own; below `lg` it sits under a 400px
|
|
984
|
+
The page body of an editor built on a `FlowCanvas`: the canvas fills the panel under the page header, and an inspector column on the right edits what is selected. From `lg` the inspector is a column of its own that scrolls on its own; below `lg` it sits under a canvas 400px tall, or half the screen on a shorter one, and the page scrolls.
|
|
1309
985
|
|
|
1310
986
|
| Prop | Type | Default | Description |
|
|
1311
987
|
|---|---|---|---|
|
|
@@ -1338,18 +1014,18 @@ Heading levels map to the title tokens (4.3).
|
|
|
1338
1014
|
| Prop | Type | Default | Description |
|
|
1339
1015
|
|---|---|---|---|
|
|
1340
1016
|
| `balance` | `boolean` | `true` | Balances the lines of a heading that wraps. |
|
|
1341
|
-
| `level` | `
|
|
1017
|
+
| `level` | `4 \| 1 \| 2 \| 3 \| 5 \| 6` | | The heading level in the document, independent of its size. |
|
|
1342
1018
|
| `size` | `"title" \| "display" \| "title-sm" \| "title-lg"` | `title-sm` | The type style, from `title-sm` to `display`. |
|
|
1343
1019
|
|
|
1344
1020
|
## icon
|
|
1345
1021
|
|
|
1346
1022
|
`import { Icon } from "@logicplanes/kaeso-ui/icon";`
|
|
1347
1023
|
|
|
1348
|
-
- **size** (icon): `xs` — 14px
|
|
1024
|
+
- **size** (icon): `xs` — 14px: chips, xs controls, inline hints; `sm` (default) — 16px: the default in controls and menus; `md` — 18px: sidebar items, lg controls; `lg` — 20px: xl controls, empty states; `xl` — 24px: rare, large moments
|
|
1349
1025
|
|
|
1350
1026
|
### Icon
|
|
1351
1027
|
|
|
1352
|
-
The one way to draw an icon: Hugeicons Stroke Rounded in currentColor.
|
|
1028
|
+
The one way to draw an icon: Hugeicons Stroke Rounded in currentColor, with a 1.5px stroke at every size to match the weight of the text beside it. When the icon changes, as Copy turns to Copied, the old one shrinks out and the new one grows in.
|
|
1353
1029
|
|
|
1354
1030
|
| Prop | Type | Default | Description |
|
|
1355
1031
|
|---|---|---|---|
|
|
@@ -1357,79 +1033,41 @@ The one way to draw an icon: Hugeicons Stroke Rounded in currentColor.
|
|
|
1357
1033
|
| `label` | `string` | | When set, the icon is announced with this name; otherwise it is decorative and hidden. |
|
|
1358
1034
|
| `size` | `"md" \| "xs" \| "sm" \| "lg" \| "xl"` | `sm` | The icon's size on the type scale. |
|
|
1359
1035
|
|
|
1360
|
-
## icon-button
|
|
1361
|
-
|
|
1362
|
-
`import { IconButton } from "@logicplanes/kaeso-ui/icon-button";`
|
|
1363
|
-
|
|
1364
|
-
- **variant** (icon_button): `ghost` (default) — Toolbar and row actions (default); `quiet` — Secondary text that darkens on hover: inside fields; `secondary` — Raised circles with a ring: page-header buttons; `soft` — A filled circle; `primary` — The view's one primary action, as an icon; `danger` — Destructive; `danger-secondary` — Destructive, quieter
|
|
1365
|
-
- **size** (icon_button): `xs` — 24px circle: inside rows and chips; `sm` (default) — 32px circle: toolbars and headers (default); `md` — 36px circle: beside md controls; `lg` — 40px circle; `xl` — 48px circle
|
|
1366
|
-
|
|
1367
|
-
### IconButton
|
|
1368
|
-
|
|
1369
|
-
A circle with an icon, a required name, and a tooltip that says it.
|
|
1370
|
-
|
|
1371
|
-
| Prop | Type | Default | Description |
|
|
1372
|
-
|---|---|---|---|
|
|
1373
|
-
| `aria-label` * | `string` | | The accessible name, also shown as the tooltip. Required. |
|
|
1374
|
-
| `icon` * | `IconSvgElement` | | The icon; give the button an `aria-label`. |
|
|
1375
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
1376
|
-
| `disabledReason` | `string` | | Why it is disabled, shown as a tooltip; it stays focusable so people can read it. |
|
|
1377
|
-
| `href` | `string` | | Makes it a link to this address. |
|
|
1378
|
-
| `loading` | `boolean` | | Shows that work is underway and ignores clicks until it ends. |
|
|
1379
|
-
| `shortcut` | `string[] \| string[][]` | | A shortcut shown in the tooltip. |
|
|
1380
|
-
| `size` | `"md" \| "xs" \| "sm" \| "lg" \| "xl"` | `sm` | The diameter, from `xs` (24px) to `xl` (44px). |
|
|
1381
|
-
| `tooltip` | `boolean` | `true` | Turn the tooltip off (rare: when a visible label sits next to it). |
|
|
1382
|
-
| `tooltipSide` | `"top" \| "bottom" \| "left" \| "right"` | `top` | Where the tooltip with its name appears. |
|
|
1383
|
-
| `variant` | `"danger" \| "secondary" \| "primary" \| "ghost" \| "quiet" \| "soft" \| "danger-secondary"` | `ghost` | The look, as on `Button`. |
|
|
1384
|
-
|
|
1385
1036
|
## input
|
|
1386
1037
|
|
|
1387
|
-
`import { Input,
|
|
1038
|
+
`import { Input, NumberInput, OTPInput, TagInput, Textarea } from "@logicplanes/kaeso-ui/input";`
|
|
1388
1039
|
|
|
1389
1040
|
- **size** (input): `sm` — 32px: toolbars and compact forms; `md` (default) — 36px: the default; `lg` — 40px; `xl` — 48px: sign-in and setup forms
|
|
1390
|
-
- **size** (input_group): `sm` — 32px: toolbars and compact forms; `md` (default) — 36px: the default; `lg` — 40px; `xl` — 48px: sign-in and setup forms
|
|
1391
1041
|
- **align** (number_input): `end` (default) — End-aligned tabular digits (default); `start` — Start-aligned
|
|
1392
1042
|
- **size** (otp_input): `md` (default) — 48px high, as tall as an xl input and button (default); `sm` — 40px high
|
|
1393
|
-
- **size** (search_input): `sm` (default) — 32px: toolbars (default); `md` — 36px: a search at the top of a page or dialog; `lg` — 40px; `xl` — 48px
|
|
1394
|
-
- **kind** (sensitive_input): `secret` (default) — Provider keys and tokens: never autocompleted (default); `password` — Passwords: browser password managers allowed, Caps Lock hint
|
|
1395
1043
|
- **size** (tag_input): `md` (default) — 36px at one row; grows as tags wrap (default)
|
|
1396
1044
|
- **resize** (textarea): `auto` (default) — Grows with its content to 8 lines, then scrolls (default); `vertical` — People can drag it taller
|
|
1397
1045
|
|
|
1398
1046
|
### Input
|
|
1399
1047
|
|
|
1400
|
-
A pill text field with the secondary material and the field focus. Takes label, description and error.
|
|
1048
|
+
A pill text field with the secondary material and the field focus. Takes label, description and error. `type="search"` makes it a search with a clear circle, `type="password"` a password with a reveal circle, and `secret` a masked key.
|
|
1401
1049
|
|
|
1402
1050
|
| Prop | Type | Default | Description |
|
|
1403
1051
|
|---|---|---|---|
|
|
1404
1052
|
| `align` | `"start" \| "end"` | | Text alignment of the value; numbers align to the end with tabular digits. |
|
|
1405
1053
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1406
1054
|
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
1055
|
+
| `defaultRevealed` | `boolean` | `false` | Starts a password or secret shown instead of masked. |
|
|
1407
1056
|
| `description` | `ReactNode` | | One sentence of help under the label. |
|
|
1408
1057
|
| `error` | `ReactNode` | | The error message, shown under the control in the danger color; it marks the control invalid and is read out with its description. |
|
|
1409
1058
|
| `invalid` | `boolean` | | Shows it as invalid; pair it with a message that says what to fix. |
|
|
1410
1059
|
| `label` | `ReactNode` | | The visible label. |
|
|
1411
1060
|
| `layout` | `"horizontal" \| "vertical"` | | The label above the control (`vertical`) or beside it (`horizontal`). |
|
|
1412
1061
|
| `leadingIcon` | `IconSvgElement` | | An icon before the text. |
|
|
1062
|
+
| `onClear` | `(() => void)` | | Called when a search's clear circle is pressed or Escape clears it. |
|
|
1413
1063
|
| `optional` | `boolean` | | Adds “Optional” to the label, for forms where most fields are required. |
|
|
1414
1064
|
| `prefix` | `ReactNode` | | Text before the value: "https://". |
|
|
1415
|
-
| `
|
|
1065
|
+
| `secret` | `boolean` | | Masks a key or token behind a reveal circle, sets it in mono when revealed, and keeps it out of autocomplete and password managers. |
|
|
1066
|
+
| `shortcut` | `string[]` | | A shortcut hint at the end of an empty search, hidden while it has focus. |
|
|
1067
|
+
| `size` | `"md" \| "sm" \| "lg" \| "xl"` | | The height of the input: 32px in toolbars, 36px by default. |
|
|
1416
1068
|
| `suffix` | `ReactNode` | | Text after the value: "USD", "/ min". |
|
|
1417
1069
|
| `trailing` | `ReactNode` | | Any trailing element (a button, a Kbd). |
|
|
1418
1070
|
|
|
1419
|
-
### InputGroup
|
|
1420
|
-
|
|
1421
|
-
Joins an input with buttons or text before or after it into one pill.
|
|
1422
|
-
|
|
1423
|
-
| Prop | Type | Default | Description |
|
|
1424
|
-
|---|---|---|---|
|
|
1425
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
1426
|
-
| `disabled` | `boolean` | | Turns off every control in the group. |
|
|
1427
|
-
| `invalid` | `boolean` | | Shows the whole group as invalid. |
|
|
1428
|
-
| `leadingIcon` | `boolean` | | Leading content is an icon: the left padding drops by 2px (optical). |
|
|
1429
|
-
| `readOnly` | `boolean` | | Shows the value without letting people change it. |
|
|
1430
|
-
| `size` | `"md" \| "sm" \| "lg" \| "xl"` | `md` | The height of the group. |
|
|
1431
|
-
| `trailingButton` | `boolean` | | Trailing content is a button: the right padding drops so the circle sits concentric in the pill. |
|
|
1432
|
-
|
|
1433
1071
|
### NumberInput
|
|
1434
1072
|
|
|
1435
1073
|
Numbers that stay exact: end-aligned tabular digits, a unit, quiet stepper circles, thousands separators on blur, and a decimal string value.
|
|
@@ -1475,49 +1113,6 @@ Six rounded-14 cells for TOTP codes, over one accessible input: the cells share
|
|
|
1475
1113
|
| `size` | `"md" \| "sm"` | `md` | The size of each character's box. |
|
|
1476
1114
|
| `value` | `string` | | The code typed so far, when you control it. |
|
|
1477
1115
|
|
|
1478
|
-
### SearchInput
|
|
1479
|
-
|
|
1480
|
-
Search: a leading icon, a clear circle when filled, an optional shortcut hint. Escape clears.
|
|
1481
|
-
|
|
1482
|
-
| Prop | Type | Default | Description |
|
|
1483
|
-
|---|---|---|---|
|
|
1484
|
-
| `align` | `"start" \| "end"` | | Text alignment of the value; numbers align to the end with tabular digits. |
|
|
1485
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1486
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
1487
|
-
| `description` | `ReactNode` | | One sentence of help under the label. |
|
|
1488
|
-
| `error` | `ReactNode` | | The error message, shown under the control in the danger color; it marks the control invalid and is read out with its description. |
|
|
1489
|
-
| `invalid` | `boolean` | | Shows it as invalid; pair it with a message that says what to fix. |
|
|
1490
|
-
| `label` | `ReactNode` | | The visible label. |
|
|
1491
|
-
| `layout` | `"horizontal" \| "vertical"` | | The label above the control (`vertical`) or beside it (`horizontal`). |
|
|
1492
|
-
| `onClear` | `(() => void)` | | Called when the clear button is pressed. |
|
|
1493
|
-
| `optional` | `boolean` | | Adds “Optional” to the label, for forms where most fields are required. |
|
|
1494
|
-
| `placeholder` | `string` | | Defaults to "Search" in the provider's language. |
|
|
1495
|
-
| `shortcut` | `string[]` | | A shortcut hint shown while empty: `["mod", "k"]` or `["/"]`. |
|
|
1496
|
-
| `size` | `"md" \| "sm" \| "lg" \| "xl"` | `sm` | The height of the input. |
|
|
1497
|
-
| `trailing` | `ReactNode` | | Any trailing element (a button, a Kbd). |
|
|
1498
|
-
|
|
1499
|
-
### SensitiveInput
|
|
1500
|
-
|
|
1501
|
-
Masked by default with an eye circle to reveal. Monospace when revealed, never autocompleted (secrets), paste-friendly, Caps Lock hint for passwords.
|
|
1502
|
-
|
|
1503
|
-
| Prop | Type | Default | Description |
|
|
1504
|
-
|---|---|---|---|
|
|
1505
|
-
| `align` | `"start" \| "end"` | | Text alignment of the value; numbers align to the end with tabular digits. |
|
|
1506
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1507
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
1508
|
-
| `defaultRevealed` | `boolean` | `false` | Start revealed. |
|
|
1509
|
-
| `description` | `ReactNode` | | One sentence of help under the label. |
|
|
1510
|
-
| `error` | `ReactNode` | | The error message, shown under the control in the danger color; it marks the control invalid and is read out with its description. |
|
|
1511
|
-
| `invalid` | `boolean` | | Shows it as invalid; pair it with a message that says what to fix. |
|
|
1512
|
-
| `kind` | `"password" \| "secret"` | `secret` | A password (never revealed once saved) or a secret such as an API key. |
|
|
1513
|
-
| `label` | `ReactNode` | | The visible label. |
|
|
1514
|
-
| `layout` | `"horizontal" \| "vertical"` | | The label above the control (`vertical`) or beside it (`horizontal`). |
|
|
1515
|
-
| `leadingIcon` | `IconSvgElement` | | An icon before the text. |
|
|
1516
|
-
| `optional` | `boolean` | | Adds “Optional” to the label, for forms where most fields are required. |
|
|
1517
|
-
| `prefix` | `ReactNode` | | Text before the value: "https://". |
|
|
1518
|
-
| `size` | `"md" \| "sm" \| "lg" \| "xl"` | | The height of the input. |
|
|
1519
|
-
| `suffix` | `ReactNode` | | Text after the value: "USD", "/ min". |
|
|
1520
|
-
|
|
1521
1116
|
### TagInput
|
|
1522
1117
|
|
|
1523
1118
|
Removable tags in a field: Enter, comma and paste split; Backspace removes the last tag.
|
|
@@ -1563,7 +1158,7 @@ A multi-line field: radius 14 (multi-line text cannot be a pill), the same mater
|
|
|
1563
1158
|
|
|
1564
1159
|
## kaeso
|
|
1565
1160
|
|
|
1566
|
-
`import {
|
|
1161
|
+
`import { ClientButton, ConversationView, EffectiveAccess, GrantSummary, KeyDisplay, LimitMeter, ModelLabel, ProviderBadge, ProviderPicker, RequestTimeline, RightsMatrix, RolePicker, SecretReveal, StatusCode, UsageBreakdown } from "@logicplanes/kaeso-ui/kaeso";`
|
|
1567
1162
|
|
|
1568
1163
|
- **density** (conversation): `default` (default) — 24px between turns (default); `compact` — 16px, inside sheets
|
|
1569
1164
|
- **layout** (effective_access): `rows` (default) — A row per group: its name, what is granted in words, and how many (default)
|
|
@@ -1575,15 +1170,6 @@ A multi-line field: radius 14 (multi-line text cannot be a pill), the same mater
|
|
|
1575
1170
|
- **appearance** (role_picker): `list` (default) — Every role as a row with its description, built-in then custom (default): invites and role changes; `select` — A pill that opens the roles: filters, table rows and tight forms
|
|
1576
1171
|
- **limit** (usage): `hard` (default) — Requests over the limit are refused; `soft` — Over the limit only alerts
|
|
1577
1172
|
|
|
1578
|
-
### CapabilityIcons
|
|
1579
|
-
|
|
1580
|
-
A model's capabilities as small icons, each named in a tooltip and read as one list by screen readers.
|
|
1581
|
-
|
|
1582
|
-
| Prop | Type | Default | Description |
|
|
1583
|
-
|---|---|---|---|
|
|
1584
|
-
| `capabilities` | `Capability[]` | `[]` | The capabilities: tools, reasoning, vision, pdf, structuredOutput. |
|
|
1585
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1586
|
-
|
|
1587
1173
|
### ClientButton
|
|
1588
1174
|
|
|
1589
1175
|
An agent client's mark, such as Claude, Cursor or GitHub Copilot, in a raised circle beside the other header buttons, as a button that opens how to connect it.
|
|
@@ -1620,17 +1206,6 @@ What someone can do, at a glance: a row per group with the granted rights in wor
|
|
|
1620
1206
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1621
1207
|
| `sources` | `RightSource[]` | | What the access comes from, as chips above the rows: the member's roles. |
|
|
1622
1208
|
|
|
1623
|
-
### EnvironmentSnippet
|
|
1624
|
-
|
|
1625
|
-
The gateway's base URL and a key placeholder to copy, with snippets per SDK.
|
|
1626
|
-
|
|
1627
|
-
| Prop | Type | Default | Description |
|
|
1628
|
-
|---|---|---|---|
|
|
1629
|
-
| `baseUrl` * | `string` | | The gateway's address. |
|
|
1630
|
-
| `apiKey` | `string` | `$KAESO_API_KEY` | What stands in for the key: the real key right after creation, a placeholder elsewhere. |
|
|
1631
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1632
|
-
| `model` | `string` | | A model id for the snippet. |
|
|
1633
|
-
|
|
1634
1209
|
### GrantSummary
|
|
1635
1210
|
|
|
1636
1211
|
What an agent or a key may do, one short line each after a check mark, on a group surface with 20px inside, like a settings group.
|
|
@@ -1700,21 +1275,6 @@ A provider's mark on a quiet tile, in the provider's own colours for the theme,
|
|
|
1700
1275
|
| `size` | `"md" \| "sm" \| "lg" \| "xl"` | `md` | The badge's size. |
|
|
1701
1276
|
| `withName` | `boolean` | | Writes the provider's name next to its mark. |
|
|
1702
1277
|
|
|
1703
|
-
### ProviderCard
|
|
1704
|
-
|
|
1705
|
-
A provider and how this place reaches it: its mark, name and connection, the key in use, and the actions to connect, replace or remove one.
|
|
1706
|
-
|
|
1707
|
-
| Prop | Type | Default | Description |
|
|
1708
|
-
|---|---|---|---|
|
|
1709
|
-
| `connected` * | `boolean` | | Whether requests can reach the provider. |
|
|
1710
|
-
| `provider` * | `string` | | The provider id, such as `openai` or `anthropic`. |
|
|
1711
|
-
| `status` * | `ReactNode` | | Where the key comes from, or what's missing: "The organization's key", "No key yet". |
|
|
1712
|
-
| `actions` | `ReactNode` | | Buttons: one primary at most. |
|
|
1713
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1714
|
-
| `detail` | `ReactNode` | | A line under the provider's name, such as how many keys it has. |
|
|
1715
|
-
| `keyLabel` | `ReactNode` | | The key: its name and last four characters, and when it was last used. |
|
|
1716
|
-
| `name` | `string` | | The provider's name from the gateway's provider list, as the card's title; the id without it. |
|
|
1717
|
-
|
|
1718
1278
|
### ProviderPicker
|
|
1719
1279
|
|
|
1720
1280
|
Choosing a provider from any number of them: a search field over every provider, connected ones first with their key counts, then the rest from A to Z, each with its mark. Always open in a dialog step, or a pill that opens it in forms and toolbars.
|
|
@@ -1793,7 +1353,7 @@ The one-time secret: calm, centered, certain. The secret on a well (selected on
|
|
|
1793
1353
|
|---|---|---|---|
|
|
1794
1354
|
| `baseUrl` * | `string` | | The gateway's address, for the `.env` tab and the code snippets. |
|
|
1795
1355
|
| `secret` * | `string` | | The full secret, shown once. |
|
|
1796
|
-
| `apiKey` | `string` |
|
|
1356
|
+
| `apiKey` | `string` | | What stands in for the key: the real key right after creation, a placeholder elsewhere. |
|
|
1797
1357
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1798
1358
|
| `model` | `string` | | A model id for the code snippet. |
|
|
1799
1359
|
| `name` | `ReactNode` | | The key's name, for the heading. |
|
|
@@ -1821,26 +1381,18 @@ A stacked bar of token kinds with the numbers under it, in the fixed series mapp
|
|
|
1821
1381
|
|
|
1822
1382
|
## kbd
|
|
1823
1383
|
|
|
1824
|
-
`import { Kbd
|
|
1384
|
+
`import { Kbd } from "@logicplanes/kaeso-ui/kbd";`
|
|
1825
1385
|
|
|
1826
1386
|
- **tone** (kbd): `default` (default) — On panels and raised surfaces; `onInk` — Inside ink surfaces (toasts, the selection bar)
|
|
1827
1387
|
|
|
1828
1388
|
### Kbd
|
|
1829
1389
|
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
| Prop | Type | Default | Description |
|
|
1833
|
-
|---|---|---|---|
|
|
1834
|
-
| `children` * | `ReactNode` | | A key name (`mod`, `shift`, `k`, `enter`) or any text. |
|
|
1835
|
-
| `tone` | `"default" \| "onInk"` | `default` | On the panel (`default`) or on an ink surface such as a tooltip (`onInk`). |
|
|
1836
|
-
|
|
1837
|
-
### KbdSequence
|
|
1838
|
-
|
|
1839
|
-
A shortcut: `⌘ K`, or a sequence like `G then L`.
|
|
1390
|
+
A key cap, 20px tall in 11/500 Inter with a fill and ring, or with `keys` a whole shortcut: `⌘ K`, or a sequence like `G then L`.
|
|
1840
1391
|
|
|
1841
1392
|
| Prop | Type | Default | Description |
|
|
1842
1393
|
|---|---|---|---|
|
|
1843
|
-
| `
|
|
1394
|
+
| `children` | `ReactNode` | | A key name (`mod`, `shift`, `k`, `enter`) or any text, for one key. |
|
|
1395
|
+
| `keys` | `string[] \| string[][]` | | A whole shortcut instead of one key. Chords are arrays pressed together, and the outer list is pressed in order: `[["g"], ["l"]]` is G then L. |
|
|
1844
1396
|
| `tone` | `"default" \| "onInk"` | `default` | On the panel (`default`) or on an ink surface such as a tooltip (`onInk`). |
|
|
1845
1397
|
|
|
1846
1398
|
## key-value
|
|
@@ -1858,76 +1410,18 @@ Label and value pairs (13 secondary label, 14 value), copyable values. Side by s
|
|
|
1858
1410
|
|---|---|---|---|
|
|
1859
1411
|
| `items` * | `KeyValueItem[]` | | The pairs to show. |
|
|
1860
1412
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1861
|
-
| `columns` | `
|
|
1413
|
+
| `columns` | `4 \| 2 \| 3` | `2` | The grid layout's items to a row, from 480px of its container's width. |
|
|
1862
1414
|
| `layout` | `"grid" \| "stacked" \| "columns"` | `columns` | Keys beside values in columns, in a grid, or stacked above them. |
|
|
1863
1415
|
|
|
1864
|
-
##
|
|
1416
|
+
## link
|
|
1865
1417
|
|
|
1866
|
-
`import {
|
|
1418
|
+
`import { Link } from "@logicplanes/kaeso-ui/link";`
|
|
1867
1419
|
|
|
1868
|
-
- **
|
|
1420
|
+
- **variant** (link): `inline` (default) — Inside prose: text color with a grey underline that turns to the text color on hover; `quiet` — Navigation-style links in footers and metadata; no underline until hover; `standalone` — A link on its own line (“Team overview ›”); `heading` — A heading's link to itself: the heading's own look, with a # beside it on hover and keyboard focus; `card` — A page to read next: a filled well with the page's name and one sentence about it
|
|
1869
1421
|
|
|
1870
|
-
###
|
|
1422
|
+
### Link
|
|
1871
1423
|
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
| Prop | Type | Default | Description |
|
|
1875
|
-
|---|---|---|---|
|
|
1876
|
-
| `children` * | `ReactNode` | | The label's text. |
|
|
1877
|
-
| `optional` | `boolean` | | Adds a quiet "Optional" after the label. |
|
|
1878
|
-
| `size` | `"md" \| "sm"` | `md` | The label's text size. |
|
|
1879
|
-
|
|
1880
|
-
## layout
|
|
1881
|
-
|
|
1882
|
-
`import { Grid, Inline, Stack } from "@logicplanes/kaeso-ui/layout";`
|
|
1883
|
-
|
|
1884
|
-
- **align** (layout): `start` — Align to the start; `center` — Center on the cross axis; `end` — Align to the end; `baseline` — Align text baselines; `stretch` (default) — Stretch
|
|
1885
|
-
- **justify** (layout): `start` (default) — Pack to the start; `center` — Center; `end` — Pack to the end; `between` — Space between
|
|
1886
|
-
- **columns** (layout): `1` — One column; `2` (default) — Two columns from 768px; `3` — Three columns from 768px; `4` — Two, then four from 1024px; `6` — Two, three from 768px, six from 1024px
|
|
1887
|
-
|
|
1888
|
-
### Grid
|
|
1889
|
-
|
|
1890
|
-
A responsive grid.
|
|
1891
|
-
|
|
1892
|
-
| Prop | Type | Default | Description |
|
|
1893
|
-
|---|---|---|---|
|
|
1894
|
-
| `align` | `"start" \| "end" \| "center" \| "baseline" \| "stretch"` | `center` | How items line up within their cells. |
|
|
1895
|
-
| `as` | `ElementType` | | The element or component to render as, such as `section` or `ul`. |
|
|
1896
|
-
| `columns` | `2 \| 3 \| 4 \| 1 \| 6` | `2` | The number of columns. |
|
|
1897
|
-
| `gap` | `0 \| 2 \| 24 \| 8 \| 12 \| 16 \| 20 \| 32 \| 40 \| 4 \| 6 \| 48 \| 64` | `16` | The space between items, in pixels on the spacing scale. |
|
|
1898
|
-
|
|
1899
|
-
### Inline
|
|
1900
|
-
|
|
1901
|
-
A horizontal row that wraps.
|
|
1902
|
-
|
|
1903
|
-
| Prop | Type | Default | Description |
|
|
1904
|
-
|---|---|---|---|
|
|
1905
|
-
| `align` | `"start" \| "end" \| "center" \| "baseline" \| "stretch"` | `center` | How items line up across the row. |
|
|
1906
|
-
| `as` | `ElementType` | | The element or component to render as, such as `section` or `ul`. |
|
|
1907
|
-
| `gap` | `0 \| 2 \| 24 \| 8 \| 12 \| 16 \| 20 \| 32 \| 40 \| 4 \| 6 \| 48 \| 64` | `16` | The space between items, in pixels on the spacing scale. |
|
|
1908
|
-
| `justify` | `"start" \| "end" \| "center" \| "between"` | | How items are spread along the main axis. |
|
|
1909
|
-
| `wrap` | `boolean` | `true` | Lets items wrap onto the next line. |
|
|
1910
|
-
|
|
1911
|
-
### Stack
|
|
1912
|
-
|
|
1913
|
-
A vertical stack.
|
|
1914
|
-
|
|
1915
|
-
| Prop | Type | Default | Description |
|
|
1916
|
-
|---|---|---|---|
|
|
1917
|
-
| `align` | `"start" \| "end" \| "center" \| "baseline" \| "stretch"` | `center` | How items line up across the column. |
|
|
1918
|
-
| `as` | `ElementType` | | The element or component to render as, such as `section` or `ul`. |
|
|
1919
|
-
| `gap` | `0 \| 2 \| 24 \| 8 \| 12 \| 16 \| 20 \| 32 \| 40 \| 4 \| 6 \| 48 \| 64` | `16` | The space between items, in pixels on the spacing scale. |
|
|
1920
|
-
| `justify` | `"start" \| "end" \| "center" \| "between"` | | How items are spread along the main axis. |
|
|
1921
|
-
|
|
1922
|
-
## link
|
|
1923
|
-
|
|
1924
|
-
`import { Link } from "@logicplanes/kaeso-ui/link";`
|
|
1925
|
-
|
|
1926
|
-
- **variant** (link): `inline` (default) — Inside prose: text color with a grey underline that turns to the text color on hover; `quiet` — Navigation-style links in footers and metadata; no underline until hover; `standalone` — A link on its own line (“Team overview ›”); `heading` — A heading's link to itself: the heading's own look, with a # beside it on hover and keyboard focus; `card` — A page to read next: a filled well with the page's name and one sentence about it
|
|
1927
|
-
|
|
1928
|
-
### Link
|
|
1929
|
-
|
|
1930
|
-
A link. Router links come from `LinkProvider`.
|
|
1424
|
+
A link. Router links come from `LinkProvider`.
|
|
1931
1425
|
|
|
1932
1426
|
| Prop | Type | Default | Description |
|
|
1933
1427
|
|---|---|---|---|
|
|
@@ -1938,29 +1432,10 @@ A link. Router links come from `LinkProvider`.
|
|
|
1938
1432
|
|
|
1939
1433
|
## list
|
|
1940
1434
|
|
|
1941
|
-
`import {
|
|
1435
|
+
`import { List, SelectionAction } from "@logicplanes/kaeso-ui/list";`
|
|
1942
1436
|
|
|
1943
1437
|
- **density** (list): `default` (default) — 44px rows (default); `compact` — 36px rows; 44px with a coarse pointer
|
|
1944
1438
|
|
|
1945
|
-
### GroupHeader
|
|
1946
|
-
|
|
1947
|
-
A quiet caption row above its group: title, count and a disclosure chevron, set in from the edges like the rows. On the panel there is no band: 16px of space separates the groups. In a card the header is a `fill-1` band with a hairline, the card's way of separating groups. The + circle appears with hover or focus.
|
|
1948
|
-
|
|
1949
|
-
| Prop | Type | Default | Description |
|
|
1950
|
-
|---|---|---|---|
|
|
1951
|
-
| `title` * | `ReactNode` | | The group's name. |
|
|
1952
|
-
| `active` | `boolean` | | Holds the list's one tab stop: Tab reaches this header's toggle and no other row. Set by `List`. |
|
|
1953
|
-
| `addLabel` | `string` | | The + circle's name. Defaults to "Add" in the provider's language. |
|
|
1954
|
-
| `collapsed` | `boolean` | | Whether the group is collapsed. |
|
|
1955
|
-
| `count` | `number` | | How many items the group has. |
|
|
1956
|
-
| `first` | `boolean` | | The list's first row: no space above it on the panel, no hairline above it in a card. |
|
|
1957
|
-
| `glyph` | `ReactNode` | | A mark before the name, such as a status dot. |
|
|
1958
|
-
| `indent` | `boolean` | | In a selectable list, line the title up with the row titles after the checkbox column; the hover fill still starts on the gutter. |
|
|
1959
|
-
| `index` | `number` | | The header's position in the list, for keyboard navigation. |
|
|
1960
|
-
| `onAdd` | `(() => void)` | | Shows an Add button and is called when it is pressed. |
|
|
1961
|
-
| `onFocus` | `(() => void)` | | Called when the header's toggle or its add button gets focus. |
|
|
1962
|
-
| `onToggle` | `(() => void)` | | Called when the group is collapsed or expanded. |
|
|
1963
|
-
|
|
1964
1439
|
### List
|
|
1965
1440
|
|
|
1966
1441
|
The console list: 44px rows on the panel (48px in a card, 56px with a second line), no lines, metadata on the right, keyboard-first. An ARIA grid of one-cell rows with one tab stop: arrows move between rows, Space selects, Enter opens, the right arrow reaches a row's actions and Escape comes back. A row's text can be selected and copied; a click that selects text doesn't open the row.
|
|
@@ -1985,29 +1460,6 @@ The console list: 44px rows on the panel (48px in a card, 56px with a second lin
|
|
|
1985
1460
|
| `virtualizeAbove` | `number` | `100` | Virtualize above this many rows (100). |
|
|
1986
1461
|
| `wrapSubtitle` | `boolean` | `false` | Lets a subtitle under its title wrap instead of ending with an ellipsis, for descriptions people read in full. |
|
|
1987
1462
|
|
|
1988
|
-
### ListRow
|
|
1989
|
-
|
|
1990
|
-
One row: checkbox, glyph, id, title, subtitle, metadata, date, avatar, hover actions.
|
|
1991
|
-
|
|
1992
|
-
| Prop | Type | Default | Description |
|
|
1993
|
-
|---|---|---|---|
|
|
1994
|
-
| `item` * | `ListItemData` | | The row's data. |
|
|
1995
|
-
| `active` | `boolean` | | Holds the list's one tab stop: Tab reaches this row and no other. Set by `List`. |
|
|
1996
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
1997
|
-
| `density` | `"default" \| "compact"` | `default` | How much room the row gets. |
|
|
1998
|
-
| `depth` | `0 \| 1` | `0` | Indents a child row under its parent. |
|
|
1999
|
-
| `idWidth` | `48 \| 64 \| 80 \| 96 \| 120` | | The width of the id column in pixels, so ids line up. |
|
|
2000
|
-
| `index` | `number` | | The row's position, for keyboard navigation. |
|
|
2001
|
-
| `lastChild` | `boolean` | | Marks the last child of a parent, for the connecting line. |
|
|
2002
|
-
| `narrow` | `boolean` | `false` | The list is narrow (a phone): the title and the subtitle are lines of their own, and the metadata, the date, the avatar and the actions share one line under them, so titles keep the row's width. |
|
|
2003
|
-
| `onFocus` | `(() => void)` | | Called when the row gets focus. |
|
|
2004
|
-
| `onOpen` | `(() => void)` | | Called when the row is opened. |
|
|
2005
|
-
| `onSelect` | `(() => void)` | | Called when the row is selected or unselected. |
|
|
2006
|
-
| `selectable` | `boolean` | | Shows the row's checkbox. |
|
|
2007
|
-
| `selected` | `boolean` | | Marks the row as selected. |
|
|
2008
|
-
| `selecting` | `boolean` | | Shows checkboxes on every row while some are selected. |
|
|
2009
|
-
| `wrapSubtitle` | `boolean` | `false` | Lets a subtitle under its title wrap. Set by `List`. |
|
|
2010
|
-
|
|
2011
1463
|
### SelectionAction
|
|
2012
1464
|
|
|
2013
1465
|
An action pill for the selection bar, drawn like the toast's action. `danger` colors the label for destructive actions.
|
|
@@ -2019,16 +1471,6 @@ An action pill for the selection bar, drawn like the toast's action. `danger` co
|
|
|
2019
1471
|
| `icon` | `IconSvgElement` | | The action's icon. |
|
|
2020
1472
|
| `onClick` | `(() => void)` | | Called when the action is chosen. |
|
|
2021
1473
|
|
|
2022
|
-
### SelectionBar
|
|
2023
|
-
|
|
2024
|
-
The floating capsule with the selection count and its actions: the toast's material (an ink capsule on white, graphite on black), so the two bottom bars of the console read as one family.
|
|
2025
|
-
|
|
2026
|
-
| Prop | Type | Default | Description |
|
|
2027
|
-
|---|---|---|---|
|
|
2028
|
-
| `count` * | `number` | | How many items are selected. |
|
|
2029
|
-
| `onClear` * | `() => void` | | Called when the selection is cleared. |
|
|
2030
|
-
| `children` | `ReactNode` | | The actions for the selected items. |
|
|
2031
|
-
|
|
2032
1474
|
## loader
|
|
2033
1475
|
|
|
2034
1476
|
`import { Loader, Spinner } from "@logicplanes/kaeso-ui/loader";`
|
|
@@ -2093,7 +1535,7 @@ Markdown, safely: headings, paragraphs, lists, tasks, code fences (CodeBlock), i
|
|
|
2093
1535
|
| `text` * | `string` | | The Markdown source. Raw HTML in it stays text. |
|
|
2094
1536
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2095
1537
|
| `collapseAfter` | `number` | `24000` | Texts longer than this many characters show their start and "Show all" (24,000 by default; 0 never collapses). |
|
|
2096
|
-
| `headingLevel` | `
|
|
1538
|
+
| `headingLevel` | `4 \| 1 \| 2 \| 3 \| 5 \| 6` | `3` | The heading level `#` becomes (3 by default: below a page's and a section's own headings). |
|
|
2097
1539
|
| `size` | `"lg" \| "body" \| "small"` | `body` | The text size: `small`, `body` or `lg`. |
|
|
2098
1540
|
| `streaming` | `boolean` | `false` | The text is still arriving: nothing collapses, and the tokens aren't cached. |
|
|
2099
1541
|
| `tone` | `"secondary" \| "default"` | `default` | Primary text (`default`) or secondary text (`secondary`). |
|
|
@@ -2102,7 +1544,7 @@ Markdown, safely: headings, paragraphs, lists, tasks, code fences (CodeBlock), i
|
|
|
2102
1544
|
|
|
2103
1545
|
## menu
|
|
2104
1546
|
|
|
2105
|
-
`import { ContextMenu, Menu
|
|
1547
|
+
`import { ContextMenu, Menu } from "@logicplanes/kaeso-ui/menu";`
|
|
2106
1548
|
|
|
2107
1549
|
- **item** (menu): `default` (default) — An action; `danger` — A destructive action: red text, a red tint on highlight
|
|
2108
1550
|
- **width** (menu): `auto` (default) — 220–360px, from its content (default); `trigger` — As wide as its trigger
|
|
@@ -2129,26 +1571,17 @@ A dropdown menu: 16px radius, 34px rows that grow when a label wraps, typeahead,
|
|
|
2129
1571
|
| `onOpenChange` | `((open: boolean) => void)` | | Called when it opens or closes. |
|
|
2130
1572
|
| `open` | `boolean` | | Whether it is open, when you control it. |
|
|
2131
1573
|
|
|
2132
|
-
### Menubar
|
|
2133
|
-
|
|
2134
|
-
A row of menus, as in a desktop app's title bar.
|
|
2135
|
-
|
|
2136
|
-
| Prop | Type | Default | Description |
|
|
2137
|
-
|---|---|---|---|
|
|
2138
|
-
| `children` * | `ReactNode` | | The menus. |
|
|
2139
|
-
| `aria-label` | `string` | | The accessible name, for when there is no visible label. |
|
|
2140
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2141
|
-
|
|
2142
1574
|
## meter
|
|
2143
1575
|
|
|
2144
1576
|
`import { Meter, Progress } from "@logicplanes/kaeso-ui/meter";`
|
|
2145
1577
|
|
|
2146
1578
|
- **tone** (meter): `auto` (default) — Series 1 until the first alert threshold, amber (series 2) after, danger at 100%; the value and the caption take the warning or danger color too (default); `neutral` — A plain share
|
|
1579
|
+
- **shape** (meter): `bar` (default) — A 6px pill bar under its label and value (default); `gauge` — A 180px half circle with the value in its middle, for one number a page is about
|
|
2147
1580
|
- **kind** (progress): `determinate` (default) — A pill bar with a known amount; `indeterminate` — A 2px line at the top of a container
|
|
2148
1581
|
|
|
2149
1582
|
### Meter
|
|
2150
1583
|
|
|
2151
|
-
A limit or quota: label and value, a 6px pill track, threshold ticks cut out of the bar, a caption. Past the first threshold the bar turns amber and the value and caption turn the warning color, at the limit red, and screen readers hear "near the limit" or "over the limit" after the value; in light the bar's end keeps 3:1 against the track.
|
|
1584
|
+
A limit or quota: label and value, a 6px pill track, threshold ticks cut out of the bar, a caption. Past the first threshold the bar turns amber and the value and caption turn the warning color, at the limit red, and screen readers hear "near the limit" or "over the limit" after the value; in light the bar's end keeps 3:1 against the track. With `shape="gauge"` it is a half circle with the value in its middle, for the one number a page is about.
|
|
2152
1585
|
|
|
2153
1586
|
| Prop | Type | Default | Description |
|
|
2154
1587
|
|---|---|---|---|
|
|
@@ -2156,9 +1589,10 @@ A limit or quota: label and value, a 6px pill track, threshold ticks cut out of
|
|
|
2156
1589
|
| `aria-label` | `string` | | The accessible name, for when there is no visible label. |
|
|
2157
1590
|
| `caption` | `ReactNode` | | "Resets in 12 days"; near or over the limit, say what happens, such as "Over the limit: requests are refused". |
|
|
2158
1591
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2159
|
-
| `label` | `ReactNode` | | The label above the bar. |
|
|
1592
|
+
| `label` | `ReactNode` | | The label above the bar, or the caption under a gauge's arc. |
|
|
2160
1593
|
| `leading` | `ReactNode` | | Leading content in the label row (an icon). |
|
|
2161
|
-
| `
|
|
1594
|
+
| `shape` | `"bar" \| "gauge"` | `bar` | A pill bar (`bar`), or a half circle (`gauge`) that says near or over the limit in its middle. |
|
|
1595
|
+
| `thresholds` | `number[]` | | Alert thresholds as ratios, drawn as ticks: [0.5, 0.8]. A gauge marks 0.8 when none are given. |
|
|
2162
1596
|
| `tone` | `"neutral" \| "auto"` | `auto` | Colors the bar by how full it is (`auto`) or keeps it neutral. |
|
|
2163
1597
|
| `trailing` | `ReactNode` | | Content at the end of the label row, such as the value. |
|
|
2164
1598
|
| `valueLabel` | `ReactNode` | | "$32.10 of $50.00" |
|
|
@@ -2181,7 +1615,7 @@ Progress for work over a second: a determinate pill, or an indeterminate 2px lin
|
|
|
2181
1615
|
|
|
2182
1616
|
### PageHeader
|
|
2183
1617
|
|
|
2184
|
-
The 52px header of a page: its title, pill tabs, actions. On a phone the tabs move to a row of their own under the title and actions, so the title isn't cut to a few letters and the tabs aren't squeezed beside a button.
|
|
1618
|
+
The 52px header of a page: its title, pill tabs, actions. On a phone the tabs move to a row of their own under the title and actions, and actions that would leave the title less than 96px move to a row of their own too, so the title isn't cut to a few letters and the tabs aren't squeezed beside a button.
|
|
2185
1619
|
|
|
2186
1620
|
| Prop | Type | Default | Description |
|
|
2187
1621
|
|---|---|---|---|
|
|
@@ -2192,62 +1626,6 @@ The 52px header of a page: its title, pill tabs, actions. On a phone the tabs mo
|
|
|
2192
1626
|
| `tabs` | `ReactNode` | | Pill tabs after the title. |
|
|
2193
1627
|
| `title` | `ReactNode` | | The page's title (15/600). |
|
|
2194
1628
|
|
|
2195
|
-
## pages
|
|
2196
|
-
|
|
2197
|
-
`import { AuthPage, EmptyPage, ListPage, OverviewPage } from "@logicplanes/kaeso-ui/blocks/pages";`
|
|
2198
|
-
|
|
2199
|
-
- **page** (pages): `list` (default) — Header, toolbar, a full-bleed List; `table` — Header, toolbar, a DataTable edge to edge; `overview` — A metric row, a chart, a breakdown and an optional aside; `empty` — Empty centered in the panel; `auth` — No chrome; a centered 400px column
|
|
2200
|
-
|
|
2201
|
-
### AuthPage
|
|
2202
|
-
|
|
2203
|
-
Sign-in and setup pages: no chrome.
|
|
2204
|
-
|
|
2205
|
-
| Prop | Type | Default | Description |
|
|
2206
|
-
|---|---|---|---|
|
|
2207
|
-
| `children` * | `ReactNode` | | The form. |
|
|
2208
|
-
| `title` * | `ReactNode` | | The page's heading. |
|
|
2209
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2210
|
-
| `description` | `ReactNode` | | One sentence under the heading. |
|
|
2211
|
-
| `footer` | `ReactNode` | | Content under the form, such as a link to sign up. |
|
|
2212
|
-
|
|
2213
|
-
### EmptyPage
|
|
2214
|
-
|
|
2215
|
-
Empty, centered in the panel.
|
|
2216
|
-
|
|
2217
|
-
| Prop | Type | Default | Description |
|
|
2218
|
-
|---|---|---|---|
|
|
2219
|
-
| `title` * | `ReactNode` | | What is missing, in a few words. |
|
|
2220
|
-
| `actions` | `ReactNode` | | One primary and at most one secondary action. |
|
|
2221
|
-
| `children` | `ReactNode` | | One sentence that says what to do, and an action. |
|
|
2222
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2223
|
-
| `description` | `ReactNode` | | One sentence: what is absent and the next step. |
|
|
2224
|
-
| `header` | `PageHeaderProps` | | The page header's title, description and actions. |
|
|
2225
|
-
| `size` | `"md" \| "lg" \| "compact"` | | How much room the empty state takes. |
|
|
2226
|
-
|
|
2227
|
-
### ListPage
|
|
2228
|
-
|
|
2229
|
-
Header, toolbar, then the list or table edge to edge; the panel scrolls.
|
|
2230
|
-
|
|
2231
|
-
| Prop | Type | Default | Description |
|
|
2232
|
-
|---|---|---|---|
|
|
2233
|
-
| `children` * | `ReactNode` | | The list. |
|
|
2234
|
-
| `header` * | `PageHeaderProps` | | The page header's title, description and actions. |
|
|
2235
|
-
| `sheet` | `ReactNode` | | A detail Sheet that keeps the list visible. |
|
|
2236
|
-
| `toolbar` | `ReactNode` | | The filters and display options above the list. |
|
|
2237
|
-
|
|
2238
|
-
### OverviewPage
|
|
2239
|
-
|
|
2240
|
-
Big numbers, period controls, a chart on the panel, a breakdown, an optional right column.
|
|
2241
|
-
|
|
2242
|
-
| Prop | Type | Default | Description |
|
|
2243
|
-
|---|---|---|---|
|
|
2244
|
-
| `header` * | `PageHeaderProps` | | The page header's title, description and actions. |
|
|
2245
|
-
| `metrics` * | `ReactNode` | | The key numbers at the top. |
|
|
2246
|
-
| `aside` | `ReactNode` | | A side column, under the content on phones. |
|
|
2247
|
-
| `chart` | `ReactNode` | | The main chart. |
|
|
2248
|
-
| `children` | `ReactNode` | | Content under the chart. |
|
|
2249
|
-
| `controls` | `ReactNode` | | Controls for the period and grouping. |
|
|
2250
|
-
|
|
2251
1629
|
## pagination
|
|
2252
1630
|
|
|
2253
1631
|
`import { Pagination } from "@logicplanes/kaeso-ui/pagination";`
|
|
@@ -2274,12 +1652,12 @@ Moves through long lists by pages, by cursor, or with a Load more button.
|
|
|
2274
1652
|
|
|
2275
1653
|
## playground
|
|
2276
1654
|
|
|
2277
|
-
`import { CompareGrid, Composer, ModelPicker, ParameterPanel,
|
|
1655
|
+
`import { CompareGrid, Composer, ModelPicker, ParameterPanel, PromptSuggestions, Reasoning, ResponseMetrics, ResponseView, Thread, UserMessage } from "@logicplanes/kaeso-ui/playground";`
|
|
2278
1656
|
|
|
2279
1657
|
- **divider** (compare_grid): `hairline` (default) — Columns separated by a hairline, edge to edge (default); `none` — No line between columns: columns that sit in panels of their own
|
|
2280
1658
|
- **size** (composer): `md` (default) — Text 14/20, 8px around the buttons; the outline concentric with them (16 + 8) (default); `sm` — The same box starting one line tall: a follow-up field under a thread
|
|
2281
1659
|
- **appearance** (model_picker): `ghost` (default) — Transparent until hovered: a column header (default); `default` — A pill with a text input's ring: a form or toolbar
|
|
2282
|
-
- **layout** (parameter_panel): `popover` (default) — Inside a 320px popover
|
|
1660
|
+
- **layout** (parameter_panel): `popover` (default) — Inside a 320px popover, as with a `trigger` (default); `panel` — A side panel or sheet: a little more room between groups
|
|
2283
1661
|
- **align** (prompt_suggestions): `start` (default) — Rows the composer's width, their text on its text (default); `center` — Centered under an empty thread's title
|
|
2284
1662
|
- **state** (reasoning): `done` (default) — Finished: “Thought for 4.2 s”, closed until opened (default); `live` — Still reasoning: “Thinking” pulses quietly and the latest line shows beside it
|
|
2285
1663
|
- **size** (response_metrics): `sm` (default) — 12/16: a column footer or under a turn (default); `md` — 13/18: a response on its own
|
|
@@ -2364,42 +1742,27 @@ A model from a catalogue of any size: a pill showing the chosen model that opens
|
|
|
2364
1742
|
|
|
2365
1743
|
### ParameterPanel
|
|
2366
1744
|
|
|
2367
|
-
A request's parameters: system instructions, temperature, top P, maximum output tokens, and, for a model that reasons, reasoning effort and summary. Unset values are the model's defaults; Reset returns to them (instructions stay).
|
|
1745
|
+
A request's parameters: system instructions, temperature, top P, maximum output tokens, and, for a model that reasons, reasoning effort and summary. Unset values are the model's defaults; Reset returns to them (instructions stay). With a `trigger`, it opens in a 320px popover with a Close button beside its title, and focus stays inside until it closes.
|
|
2368
1746
|
|
|
2369
1747
|
| Prop | Type | Default | Description |
|
|
2370
1748
|
|---|---|---|---|
|
|
2371
1749
|
| `onValueChange` * | `(next: PlaygroundParameters) => void` | | Called with the changed parameters. |
|
|
2372
1750
|
| `value` * | `PlaygroundParameters` | | The parameters, such as temperature and effort. |
|
|
1751
|
+
| `align` | `"start" \| "end" \| "center"` | `end` | How the popover lines up with its trigger. |
|
|
2373
1752
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1753
|
+
| `defaultOpen` | `boolean` | | Whether the popover starts open, when the component keeps its own state. |
|
|
2374
1754
|
| `defaults` | `Pick<PlaygroundParameters, "temperature" \| "topP">` | | What unset shows (temperature 1 and top P 1 unless given): the model's defaults. |
|
|
2375
1755
|
| `disabled` | `boolean` | `false` | Turns off every parameter. |
|
|
2376
1756
|
| `instructions` | `boolean` | `true` | Shows the system instructions field (true by default). |
|
|
2377
1757
|
| `layout` | `"popover" \| "panel"` | `popover` | Compact inside a popover, or roomier in a side panel. |
|
|
2378
1758
|
| `maxOutputTokensLimit` | `number` | | The model's maximum output tokens: the field's maximum, named in a hint under it. |
|
|
1759
|
+
| `onOpenChange` | `((open: boolean) => void)` | | Called when the popover opens or closes. |
|
|
1760
|
+
| `open` | `boolean` | | Whether the popover is open, when you control it. |
|
|
2379
1761
|
| `reasoning` | `boolean \| ReasoningEffort[]` | `false` | The reasoning efforts the model takes, or false (the default) when it doesn't reason: no effort and no summary. |
|
|
2380
1762
|
| `sampling` | `boolean` | `true` | Shows temperature and top P; models that reason often take neither (true by default). |
|
|
2381
|
-
|
|
2382
|
-
### ParameterPopover
|
|
2383
|
-
|
|
2384
|
-
ParameterPanel in a 320px popover from a sliders circle (or any trigger), with a Close button beside its title. Focus stays inside until it closes.
|
|
2385
|
-
|
|
2386
|
-
| Prop | Type | Default | Description |
|
|
2387
|
-
|---|---|---|---|
|
|
2388
|
-
| `onValueChange` * | `(next: PlaygroundParameters) => void` | | Called with the changed parameters. |
|
|
2389
|
-
| `value` * | `PlaygroundParameters` | | The parameters, such as temperature and effort. |
|
|
2390
|
-
| `align` | `"start" \| "end" \| "center"` | `end` | How it lines up with what it belongs to. |
|
|
2391
|
-
| `defaultOpen` | `boolean` | | Whether it starts open, when the component keeps its own state. |
|
|
2392
|
-
| `defaults` | `Pick<PlaygroundParameters, "temperature" \| "topP">` | | What unset shows (temperature 1 and top P 1 unless given): the model's defaults. |
|
|
2393
|
-
| `disabled` | `boolean` | `false` | Turns off the button that opens the parameters. |
|
|
2394
|
-
| `instructions` | `boolean` | `true` | Shows the system instructions field (true by default). |
|
|
2395
|
-
| `maxOutputTokensLimit` | `number` | | The model's maximum output tokens: the field's maximum, named in a hint under it. |
|
|
2396
|
-
| `onOpenChange` | `((open: boolean) => void)` | | Called when it opens or closes. |
|
|
2397
|
-
| `open` | `boolean` | | Whether it is open, when you control it. |
|
|
2398
|
-
| `reasoning` | `boolean \| ReasoningEffort[]` | `false` | The reasoning efforts the model takes, or false (the default) when it doesn't reason: no effort and no summary. |
|
|
2399
|
-
| `sampling` | `boolean` | `true` | Shows temperature and top P; models that reason often take neither (true by default). |
|
|
2400
|
-
| `side` | `"top" \| "bottom" \| "left" \| "right"` | `bottom` | The side it opens on. |
|
|
1763
|
+
| `side` | `"top" \| "bottom" \| "left" \| "right"` | `bottom` | The side the popover opens on. |
|
|
2401
1764
|
| `title` | `string` | | The popover's title, also its name. Defaults to "Parameters" in the provider's language. |
|
|
2402
|
-
| `trigger` | `ReactElement<unknown, string \| JSXElementConstructor<any>>` | | The button that opens
|
|
1765
|
+
| `trigger` | `ReactElement<unknown, string \| JSXElementConstructor<any>>` | | The button that opens the parameters in a popover; without one, the parameters sit in the page. |
|
|
2403
1766
|
|
|
2404
1767
|
### PromptSuggestions
|
|
2405
1768
|
|
|
@@ -2488,25 +1851,14 @@ A person's turn: their prompt as quiet text that opens the turn, no bubble. A lo
|
|
|
2488
1851
|
| `children` * | `ReactNode` | | The prompt as it was written: plain text, line breaks kept. |
|
|
2489
1852
|
| `aria-label` | `string` | | The message's accessible name. Defaults to "Prompt" in the provider's language. |
|
|
2490
1853
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2491
|
-
| `maxLines` | `0 \|
|
|
1854
|
+
| `maxLines` | `0 \| 4 \| 2 \| 3 \| 6` | `4` | Lines shown before "Show all" (4 by default; 0 shows everything). |
|
|
2492
1855
|
|
|
2493
1856
|
## popover
|
|
2494
1857
|
|
|
2495
|
-
`import {
|
|
1858
|
+
`import { Popover } from "@logicplanes/kaeso-ui/popover";`
|
|
2496
1859
|
|
|
2497
1860
|
- **padding** (popover): `form` (default) — 12px: forms and free content (default); `list` — 6px: lists of rows, concentric with 10px items; `none` — No padding: calendars and custom layouts
|
|
2498
1861
|
|
|
2499
|
-
### HoverCard
|
|
2500
|
-
|
|
2501
|
-
A preview that opens while the pointer rests on its trigger or the trigger has focus; never the only way to reach what it shows.
|
|
2502
|
-
|
|
2503
|
-
| Prop | Type | Default | Description |
|
|
2504
|
-
|---|---|---|---|
|
|
2505
|
-
| `children` * | `ReactNode` | | The trigger and the card's content. |
|
|
2506
|
-
| `defaultOpen` | `boolean` | | Whether it starts open, when the component keeps its own state. |
|
|
2507
|
-
| `onOpenChange` | `((open: boolean) => void)` | | Called when it opens or closes. |
|
|
2508
|
-
| `open` | `boolean` | | Whether it is open, when you control it. |
|
|
2509
|
-
|
|
2510
1862
|
### Popover
|
|
2511
1863
|
|
|
2512
1864
|
A floating panel next to its trigger: radius 16, raised; collision-aware and never wider than the screen. Its content takes a title, or an aria-label, which names it.
|
|
@@ -2519,19 +1871,6 @@ A floating panel next to its trigger: radius 16, raised; collision-aware and nev
|
|
|
2519
1871
|
| `open` | `boolean` | | Whether it is open, when you control it. |
|
|
2520
1872
|
| `trapFocus` | `boolean` | | Trap focus only when the popover holds a form. |
|
|
2521
1873
|
|
|
2522
|
-
## portal
|
|
2523
|
-
|
|
2524
|
-
`import { Portal } from "@logicplanes/kaeso-ui/portal";`
|
|
2525
|
-
|
|
2526
|
-
### Portal
|
|
2527
|
-
|
|
2528
|
-
Renders children into document.body after mount. Overlays use Base UI's own portals.
|
|
2529
|
-
|
|
2530
|
-
| Prop | Type | Default | Description |
|
|
2531
|
-
|---|---|---|---|
|
|
2532
|
-
| `children` * | `ReactNode` | | The content to render in the nearest portal container. |
|
|
2533
|
-
| `container` | `HTMLElement \| null` | | Defaults to document.body. |
|
|
2534
|
-
|
|
2535
1874
|
## qr-code
|
|
2536
1875
|
|
|
2537
1876
|
`import { QRCode } from "@logicplanes/kaeso-ui/qr-code";`
|
|
@@ -2551,7 +1890,7 @@ A QR code drawn as one SVG path: dark modules on white in both themes, with a qu
|
|
|
2551
1890
|
|
|
2552
1891
|
## radio
|
|
2553
1892
|
|
|
2554
|
-
`import { Radio,
|
|
1893
|
+
`import { Radio, RadioGroup } from "@logicplanes/kaeso-ui/radio";`
|
|
2555
1894
|
|
|
2556
1895
|
- **variant** (radio): `default` (default) — A list of radios with labels (default); `cards` — Rows inside a settings group with the radio at the end, for choices with descriptions
|
|
2557
1896
|
|
|
@@ -2572,40 +1911,6 @@ A radio button with its label and description, inside a `RadioGroup`.
|
|
|
2572
1911
|
| `id` | `string` | | The id of the control, so a label elsewhere can point to it. |
|
|
2573
1912
|
| `label` | `ReactNode` | | The visible label. |
|
|
2574
1913
|
|
|
2575
|
-
### Radio.Circle
|
|
2576
|
-
|
|
2577
|
-
The circle alone: 18px; selected is an ink donut around a panel center.
|
|
2578
|
-
|
|
2579
|
-
| Prop | Type | Default | Description |
|
|
2580
|
-
|---|---|---|---|
|
|
2581
|
-
| `value` * | `string` | | The value this option stands for. |
|
|
2582
|
-
| `aria-describedby` | `string` | | The ids of the elements that describe it. |
|
|
2583
|
-
| `aria-label` | `string` | | The accessible name, for when there is no visible label. |
|
|
2584
|
-
| `aria-labelledby` | `string` | | Names the circle by other text, such as the first line of a row whose label holds more. |
|
|
2585
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2586
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
2587
|
-
| `description` | `ReactNode` | | One sentence of help under the label. |
|
|
2588
|
-
| `disabled` | `boolean` | | Turns it off: it can't be used, and it looks dimmed. |
|
|
2589
|
-
| `id` | `string` | | The id of the control, so a label elsewhere can point to it. |
|
|
2590
|
-
| `label` | `ReactNode` | | The visible label. |
|
|
2591
|
-
|
|
2592
|
-
### RadioCards
|
|
2593
|
-
|
|
2594
|
-
Choices with descriptions as rows in a settings group.
|
|
2595
|
-
|
|
2596
|
-
| Prop | Type | Default | Description |
|
|
2597
|
-
|---|---|---|---|
|
|
2598
|
-
| `children` * | `ReactNode` | | The cards, one per option. |
|
|
2599
|
-
| `aria-label` | `string` | | The accessible name, for when there is no visible label. |
|
|
2600
|
-
| `aria-labelledby` | `string` | | The id of the element that names it, when its label is elsewhere on the page. |
|
|
2601
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2602
|
-
| `defaultValue` | `string` | | The chosen option on first render. |
|
|
2603
|
-
| `disabled` | `boolean` | | Turns off every card. |
|
|
2604
|
-
| `name` | `string` | | The field name the value is sent under in a form. |
|
|
2605
|
-
| `onValueChange` | `((value: string) => void)` | | Called with the chosen option. |
|
|
2606
|
-
| `orientation` | `"horizontal" \| "vertical"` | `vertical` | Lays the items out in a row (`horizontal`) or a column (`vertical`). |
|
|
2607
|
-
| `value` | `string` | | The chosen option, when you control it. |
|
|
2608
|
-
|
|
2609
1914
|
### RadioGroup
|
|
2610
1915
|
|
|
2611
1916
|
The group a set of radios belongs to: one of them is chosen, and the arrow keys move between them.
|
|
@@ -2645,27 +1950,6 @@ A release's artwork: flat geometric art in one of eight styles and Kaeso's palet
|
|
|
2645
1950
|
| `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. |
|
|
2646
1951
|
| `title` | `ReactNode` | | Large text on the artwork, e.g. the version number. |
|
|
2647
1952
|
|
|
2648
|
-
## resource-list
|
|
2649
|
-
|
|
2650
|
-
`import { ResourceList } from "@logicplanes/kaeso-ui/blocks/resource-list";`
|
|
2651
|
-
|
|
2652
|
-
- **grouping** (resource_list): `grouped` (default) — Rows under group headers (default); `flat` — One list
|
|
2653
|
-
|
|
2654
|
-
### ResourceList
|
|
2655
|
-
|
|
2656
|
-
A console list of resources: search, group headers, row actions and a selection bar. A search announces how many rows it leaves, and its no-match state offers Clear search.
|
|
2657
|
-
|
|
2658
|
-
| Prop | Type | Default | Description |
|
|
2659
|
-
|---|---|---|---|
|
|
2660
|
-
| `aria-label` * | `string` | | The list's accessible name. |
|
|
2661
|
-
| `groups` * | `ListGroup[]` | | The groups of items. |
|
|
2662
|
-
| `bulkActions` | `{ label: string; icon?: IconSvgElement; onClick: (ids: string[]) => void; }[]` | `[]` | Actions for selected rows: [{label, icon, onClick(ids)}]. |
|
|
2663
|
-
| `emptyAction` | `ReactNode` | | The action shown when there are no items. |
|
|
2664
|
-
| `emptyDescription` | `string` | | The sentence shown when there are no items. |
|
|
2665
|
-
| `emptyTitle` | `string` | | What will appear, such as "No keys yet". Pass it: the default names the collection by its `aria-label` ("No keys yet", in the provider's language), which only reads well for a plural noun. |
|
|
2666
|
-
| `onOpen` | `((item: ListItemData) => void)` | | Called when an item is opened. |
|
|
2667
|
-
| `toolbar` | `ReactNode` | | The filters and display options above the list. |
|
|
2668
|
-
|
|
2669
1953
|
## scroll-area
|
|
2670
1954
|
|
|
2671
1955
|
`import { ScrollArea } from "@logicplanes/kaeso-ui/scroll-area";`
|
|
@@ -2688,7 +1972,7 @@ A scroll container with thin scrollbars that show on hover and darken while held
|
|
|
2688
1972
|
|
|
2689
1973
|
`import { AuthLayout, Section, SplitView } from "@logicplanes/kaeso-ui/section";`
|
|
2690
1974
|
|
|
2691
|
-
- **spacing** (section): `default` (default) — 48px between sections (default); `none` — No outer spacing
|
|
1975
|
+
- **spacing** (section): `default` (default) — 48px between sections (default); `settings` — A section of a settings page: 40px under the header, 48px between sections; `none` — No outer spacing
|
|
2692
1976
|
|
|
2693
1977
|
### AuthLayout
|
|
2694
1978
|
|
|
@@ -2712,7 +1996,7 @@ A section of a page: a title-sm heading with optional description and actions, n
|
|
|
2712
1996
|
| `actions` | `ReactNode` | | Actions at the end of the heading row. |
|
|
2713
1997
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2714
1998
|
| `description` | `ReactNode` | | One sentence under the heading. |
|
|
2715
|
-
| `spacing` | `"none" \| "default"` | `default` | The space above the section: the default, or none. |
|
|
1999
|
+
| `spacing` | `"none" \| "default" \| "settings"` | `default` | The space above the section: the default, or none. |
|
|
2716
2000
|
| `title` | `ReactNode` | | The section's heading. |
|
|
2717
2001
|
|
|
2718
2002
|
### SplitView
|
|
@@ -2733,7 +2017,7 @@ Main content and a 320px aside, separated by space and a subtle vertical line. O
|
|
|
2733
2017
|
|
|
2734
2018
|
### Segmented
|
|
2735
2019
|
|
|
2736
|
-
Two to five mutually exclusive options: 24h/7d/30d, List/Board, providers.
|
|
2020
|
+
Two to five mutually exclusive options: 24h/7d/30d, List/Board, providers. Options wider than the room scroll sideways, with the chosen one in view.
|
|
2737
2021
|
|
|
2738
2022
|
| Prop | Type | Default | Description |
|
|
2739
2023
|
|---|---|---|---|
|
|
@@ -2806,7 +2090,7 @@ A 1px line. Use space and tone first; a line only where they cannot separate.
|
|
|
2806
2090
|
|
|
2807
2091
|
## settings
|
|
2808
2092
|
|
|
2809
|
-
`import { SettingsGroup, SettingsRow
|
|
2093
|
+
`import { SettingsGroup, SettingsRow } from "@logicplanes/kaeso-ui/settings";`
|
|
2810
2094
|
|
|
2811
2095
|
- **row** (settings): `default` (default) — Title and description: at least 64px; `single` — One line: 56px
|
|
2812
2096
|
|
|
@@ -2838,18 +2122,6 @@ One setting: title 15/500 and description 13 on the left, the control on the rig
|
|
|
2838
2122
|
| `onClick` | `((e: MouseEvent<HTMLElement, MouseEvent>) => void)` | | Makes the row a button and is called when it is pressed. |
|
|
2839
2123
|
| `value` | `ReactNode` | | A value in secondary before a chevron: makes the row a navigation row. |
|
|
2840
2124
|
|
|
2841
|
-
### SettingsSection
|
|
2842
|
-
|
|
2843
|
-
A settings section: a title-sm heading 48px above, 12px below; usually one SettingsGroup.
|
|
2844
|
-
|
|
2845
|
-
| Prop | Type | Default | Description |
|
|
2846
|
-
|---|---|---|---|
|
|
2847
|
-
| `children` * | `ReactNode` | | The section's groups of rows. |
|
|
2848
|
-
| `actions` | `ReactNode` | | Right of the title. |
|
|
2849
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2850
|
-
| `description` | `ReactNode` | | One sentence under the heading. |
|
|
2851
|
-
| `title` | `ReactNode` | | The section's heading. |
|
|
2852
|
-
|
|
2853
2125
|
## sheet
|
|
2854
2126
|
|
|
2855
2127
|
`import { Sheet } from "@logicplanes/kaeso-ui/sheet";`
|
|
@@ -2879,21 +2151,12 @@ A panel that slides in from the edge of the screen, for details and longer forms
|
|
|
2879
2151
|
|
|
2880
2152
|
## sidebar
|
|
2881
2153
|
|
|
2882
|
-
`import {
|
|
2154
|
+
`import { Sidebar } from "@logicplanes/kaeso-ui/sidebar";`
|
|
2883
2155
|
|
|
2884
2156
|
- **mode** (sidebar): `expanded` (default) — 248px by default, resizable between 232 and 280; `rail` — 60px: icons only, labels in tooltips
|
|
2885
2157
|
- **item** (sidebar): `default` (default) — A navigation item; `active` — The current page
|
|
2886
2158
|
- **caption** (sidebar): `secondary` (default) — A quiet second line under the switcher's label (default); `danger` — A second line that warns: the organization is scheduled for deletion
|
|
2887
2159
|
|
|
2888
|
-
### BrandWordmark
|
|
2889
|
-
|
|
2890
|
-
The wordmark as `Sidebar.Brand` and AppFrame's phone bar draw it: a link to the app's home when there is one (its focus ring 4px around the glyphs), the plain wordmark otherwise.
|
|
2891
|
-
|
|
2892
|
-
| Prop | Type | Default | Description |
|
|
2893
|
-
|---|---|---|---|
|
|
2894
|
-
| `href` | `string` | | Where the wordmark links to. |
|
|
2895
|
-
| `label` | `string` | `Kaeso` | The wordmark's accessible name. |
|
|
2896
|
-
|
|
2897
2160
|
### Sidebar
|
|
2898
2161
|
|
|
2899
2162
|
The app's navigation: the wordmark, groups of links, an account menu at the foot, collapsible and resizable.
|
|
@@ -2905,30 +2168,30 @@ The app's navigation: the wordmark, groups of links, an account menu at the foot
|
|
|
2905
2168
|
|
|
2906
2169
|
### Sidebar.Provider
|
|
2907
2170
|
|
|
2908
|
-
|
|
2171
|
+
Holds the sidebar's state for everything inside it: whether it shows as a rail, is collapsed or peeks, and its width. Wrap the app frame in it once.
|
|
2172
|
+
|
|
2173
|
+
| Prop | Type | Default | Description |
|
|
2174
|
+
|---|---|---|---|
|
|
2175
|
+
| `children` * | `ReactNode` | | The app frame, and everything else that reads or changes the sidebar's state. |
|
|
2176
|
+
| `defaultRail` | `boolean` | `false` | Starts as a rail of icons instead of the full sidebar, until the person widens it. |
|
|
2177
|
+
| `shortcut` | `boolean` | `true` | Lets the [ key collapse and open the sidebar on screens 1024px and wider, except while typing or in a dialog. On by default. |
|
|
2178
|
+
| `storageKey` | `string` | | Remembers the rail, width, collapsed state and open groups in local storage under this key, so they survive a reload. |
|
|
2909
2179
|
|
|
2910
2180
|
## skeleton
|
|
2911
2181
|
|
|
2912
|
-
`import { Skeleton
|
|
2182
|
+
`import { Skeleton } from "@logicplanes/kaeso-ui/skeleton";`
|
|
2913
2183
|
|
|
2914
2184
|
- **shape** (skeleton): `block` (default) — Rounded blocks for charts and wells (default); `line` — A pill line for text; `circle` — Avatars and icons; `control` — The shape of a 36px control
|
|
2915
2185
|
|
|
2916
2186
|
### Skeleton
|
|
2917
2187
|
|
|
2918
|
-
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
|
|
2188
|
+
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.
|
|
2919
2189
|
|
|
2920
2190
|
| Prop | Type | Default | Description |
|
|
2921
2191
|
|---|---|---|---|
|
|
2192
|
+
| `lines` | `number` | | Stands in for that many lines of text, the last one shorter; it takes the place of `shape`. |
|
|
2922
2193
|
| `shape` | `"circle" \| "line" \| "control" \| "block"` | `block` | The shape it stands in for: a line of text, a control, a circle or a block. |
|
|
2923
2194
|
|
|
2924
|
-
### SkeletonLine
|
|
2925
|
-
|
|
2926
|
-
Lines of text: the last one shorter.
|
|
2927
|
-
|
|
2928
|
-
| Prop | Type | Default | Description |
|
|
2929
|
-
|---|---|---|---|
|
|
2930
|
-
| `lines` | `number` | `1` | How many lines of text it stands in for. |
|
|
2931
|
-
|
|
2932
2195
|
## slider
|
|
2933
2196
|
|
|
2934
2197
|
`import { Slider } from "@logicplanes/kaeso-ui/slider";`
|
|
@@ -2959,77 +2222,51 @@ A 4px pill track, an ink range and a 16px ink thumb; a value bubble while draggi
|
|
|
2959
2222
|
|
|
2960
2223
|
## stat
|
|
2961
2224
|
|
|
2962
|
-
`import {
|
|
2225
|
+
`import { Stat, StatGroup } from "@logicplanes/kaeso-ui/stat";`
|
|
2963
2226
|
|
|
2227
|
+
- **variant** (stat): `plain` (default) — A number with its unit and change, in a row of numbers (default); `tile` — A tile in a StatGroup: label, number, change, detail and an optional trend
|
|
2964
2228
|
- **size** (stat): `md` (default) — 28/32 metric (default); `sm` — 20/28 for dense rows
|
|
2965
|
-
|
|
2966
|
-
### MetricRow
|
|
2967
|
-
|
|
2968
|
-
Three to five stats in a row with generous space between them.
|
|
2969
|
-
|
|
2970
|
-
| Prop | Type | Default | Description |
|
|
2971
|
-
|---|---|---|---|
|
|
2972
|
-
| `children` * | `ReactNode` | | The stats, side by side. |
|
|
2973
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2229
|
+
- **variant** (stat_group): `grid` (default) — Tiles in one group that fits its columns and the size of every number to the room (default); `row` — Plain numbers in a row that wraps
|
|
2974
2230
|
|
|
2975
2231
|
### Stat
|
|
2976
2232
|
|
|
2977
|
-
A big number followed by its word, no box, as on a usage page.
|
|
2233
|
+
A number. Plain, it is a big number followed by its word, no box, as on a usage page. As a `tile` (`variant="tile"`), it is one metric of a dashboard row in a `StatGroup`: its label, the number, the change against the previous period and the trend.
|
|
2978
2234
|
|
|
2979
2235
|
| Prop | Type | Default | Description |
|
|
2980
2236
|
|---|---|---|---|
|
|
2981
2237
|
| `value` * | `ReactNode` | | The number, already formatted: "$12.40", "1.2M". |
|
|
2238
|
+
| `change` | `{ value: number; better?: "up" \| "down"; }` | | The change against the previous period, as a fraction (0.12 is +12%). `better` says which direction is good: errors are better down. The badge is green or red and says "better" or "worse" to screen readers. |
|
|
2982
2239
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2983
2240
|
| `delta` | `{ label: string; tone?: "neutral" \| "success" \| "danger"; }` | | A delta badge: "+12%". |
|
|
2241
|
+
| `detail` | `ReactNode` | | A quiet line under the number: "vs. the previous 30 days", "0.4% of requests". |
|
|
2242
|
+
| `label` | `ReactNode` | | What the number is: "Requests", "Cost". |
|
|
2243
|
+
| `loading` | `boolean` | | While the numbers load: the value, the change and the trend show their shape at the tile's final height. |
|
|
2984
2244
|
| `size` | `"md" \| "sm"` | `md` | The size of the number. |
|
|
2245
|
+
| `trend` | `number[]` | | One value per day (or step), drawn as a sparkline across the tile. A tile without it has no room for one; pass `[]` while a trend loads to keep it. |
|
|
2246
|
+
| `trendColor` | `string` | | The trend's color; the first series color by default. |
|
|
2985
2247
|
| `unit` | `ReactNode` | | The word after it, on the same baseline: "total spend", "sessions". |
|
|
2248
|
+
| `variant` | `"plain" \| "tile"` | `grid` | A plain number with its unit and delta, or a tile in a `StatGroup` with its label, change, detail and trend. |
|
|
2986
2249
|
|
|
2987
|
-
###
|
|
2250
|
+
### StatGroup
|
|
2988
2251
|
|
|
2989
|
-
`
|
|
2252
|
+
Stats side by side. As a `grid` (the default), tiles sit in one raised group divided by hairlines: two to a row, then as many as there are tiles (up to four) from 1024px. The last tile of a short row widens to fill it, so the group never shows an empty cell. Where a number doesn't fit its tile, every tile's number steps down a size, and the tiles take a row each when even the smallest doesn't fit; live numbers only step down at the same width, so a digit that comes and goes doesn't make the tiles jump. As a `row`, three to five plain numbers sit side by side with generous space between them.
|
|
2990
2253
|
|
|
2991
2254
|
| Prop | Type | Default | Description |
|
|
2992
2255
|
|---|---|---|---|
|
|
2993
|
-
| `children` * | `ReactNode` | | The stats
|
|
2256
|
+
| `children` * | `ReactNode` | | The stats. |
|
|
2994
2257
|
| `aria-label` | `string` | | The grid's accessible name. |
|
|
2995
2258
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2259
|
+
| `variant` | `"grid" \| "row"` | `grid` | Tiles in a fitted grid (`grid`), or plain numbers in a row that wraps (`row`). |
|
|
2996
2260
|
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
One metric of a dashboard row: its label, the number, the change against the previous period and the trend.
|
|
3000
|
-
|
|
3001
|
-
| Prop | Type | Default | Description |
|
|
3002
|
-
|---|---|---|---|
|
|
3003
|
-
| `label` * | `ReactNode` | | What the number is: "Requests", "Cost". |
|
|
3004
|
-
| `value` * | `ReactNode` | | The number, already formatted. |
|
|
3005
|
-
| `change` | `{ value: number; better?: "up" \| "down"; }` | | The change against the previous period, as a fraction (0.12 is +12%). `better` says which direction is good: errors are better down. The badge is green or red and says "better" or "worse" to screen readers. |
|
|
3006
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
3007
|
-
| `detail` | `ReactNode` | | A quiet line under the number: "vs. the previous 30 days", "0.4% of requests". |
|
|
3008
|
-
| `loading` | `boolean` | | While the numbers load: the value, the change and the trend show their shape at the tile's final height. |
|
|
3009
|
-
| `trend` | `number[]` | | One value per day (or step), drawn as a sparkline across the tile. A tile without it has no room for one; pass `[]` while a trend loads to keep it. |
|
|
3010
|
-
| `trendColor` | `string` | | The trend's color; the first series color by default. |
|
|
3011
|
-
|
|
3012
|
-
## status-dot
|
|
2261
|
+
## status
|
|
3013
2262
|
|
|
3014
|
-
`import { Status
|
|
2263
|
+
`import { Status } from "@logicplanes/kaeso-ui/status";`
|
|
3015
2264
|
|
|
3016
|
-
- **tone** (
|
|
2265
|
+
- **tone** (status): `success` — Healthy, active, succeeded; `warning` — Degraded, expiring; `danger` — Failed, disabled, down; `info` — Informational; `neutral` (default) — Inactive, archived (default)
|
|
3017
2266
|
|
|
3018
2267
|
### Status
|
|
3019
2268
|
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
| Prop | Type | Default | Description |
|
|
3023
|
-
|---|---|---|---|
|
|
3024
|
-
| `children` | `ReactNode` | | The word that carries the meaning. |
|
|
3025
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
3026
|
-
| `icon` | `IconSvgElement` | | A mark before the word in the same color, e.g. `icons.success` for “Up to date”. |
|
|
3027
|
-
| `size` | `"md" \| "sm"` | `md` | The text size: 14px, or 13px (`sm`) with a 14px icon. |
|
|
3028
|
-
| `tone` | `"neutral" \| "success" \| "warning" \| "danger" \| "info"` | `neutral` | The status it marks. |
|
|
3029
|
-
|
|
3030
|
-
### StatusDot
|
|
3031
|
-
|
|
3032
|
-
A status word: "Active", "Expiring", "Down".
|
|
2269
|
+
A status word in its tone's color, with an optional icon: "Active", "Expiring", "Down". Never color alone.
|
|
3033
2270
|
|
|
3034
2271
|
| Prop | Type | Default | Description |
|
|
3035
2272
|
|---|---|---|---|
|
|
@@ -3039,20 +2276,6 @@ A status word: "Active", "Expiring", "Down".
|
|
|
3039
2276
|
| `size` | `"md" \| "sm"` | `md` | The text size: 14px, or 13px (`sm`) with a 14px icon. |
|
|
3040
2277
|
| `tone` | `"neutral" \| "success" \| "warning" \| "danger" \| "info"` | `neutral` | The status the word marks; keep it next to words that say the same. |
|
|
3041
2278
|
|
|
3042
|
-
## surface
|
|
3043
|
-
|
|
3044
|
-
`import { Surface } from "@logicplanes/kaeso-ui/surface";`
|
|
3045
|
-
|
|
3046
|
-
- **kind** (surface): `panel` (default) — The content panel: radius 12, hairline ring; `menu` — Menus, select and combobox lists: radius 16; `popover` — Popovers and hover cards: radius 16; `dialog` — Dialogs and the command palette: radius 20; `sheet` — Sheets: radius 16 on exposed corners; `group` — Settings groups: radius 14, ring and a whisper of shadow; `well` — Code, the key reveal, the JSON inspector: fill, no ring; `tooltip` — Chart tooltips and rich tooltips: radius 12
|
|
3047
|
-
|
|
3048
|
-
### Surface
|
|
3049
|
-
|
|
3050
|
-
One of the library's surfaces, for content that needs the look of a panel, popover, dialog or well.
|
|
3051
|
-
|
|
3052
|
-
| Prop | Type | Default | Description |
|
|
3053
|
-
|---|---|---|---|
|
|
3054
|
-
| `kind` * | `"popover" \| "dialog" \| "group" \| "menu" \| "tooltip" \| "well" \| "panel" \| "sheet"` | | Which surface it looks like: panel, well, popover, menu, tooltip, dialog, sheet or group. |
|
|
3055
|
-
|
|
3056
2279
|
## swap-text
|
|
3057
2280
|
|
|
3058
2281
|
`import { SwapText } from "@logicplanes/kaeso-ui/swap-text";`
|
|
@@ -3116,27 +2339,13 @@ A plain table for small amounts of data; use `DataTable` for sorting, selection
|
|
|
3116
2339
|
|
|
3117
2340
|
## tabs
|
|
3118
2341
|
|
|
3119
|
-
`import {
|
|
2342
|
+
`import { Tabs } from "@logicplanes/kaeso-ui/tabs";`
|
|
3120
2343
|
|
|
3121
|
-
- **variant** (pill_tabs): `underline` — Underline tabs for detail pages: 40px, the first label on the content edge like the heading above, 24px apart, a 2px ink indicator under the label that slides; hover previews the line; `pill` (default) — Header tabs: separate 32px pills, the active one filled; the first pill's edge on the gutter
|
|
3122
2344
|
- **variant** (tabs): `underline` (default) — Underline tabs for detail pages: 40px, the first label on the content edge like the heading above, 24px apart, a 2px ink indicator under the label that slides; hover previews the line; `pill` — Header tabs: separate 32px pills, the active one filled; the first pill's edge on the gutter
|
|
3123
2345
|
|
|
3124
|
-
### PillTabs
|
|
3125
|
-
|
|
3126
|
-
Pill tabs for page headers ("All · Errors · Streamed").
|
|
3127
|
-
|
|
3128
|
-
| Prop | Type | Default | Description |
|
|
3129
|
-
|---|---|---|---|
|
|
3130
|
-
| `children` * | `ReactNode` | | The tab list and the panels. |
|
|
3131
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
3132
|
-
| `defaultValue` | `string` | | The selected tab on first render. |
|
|
3133
|
-
| `onValueChange` | `((value: string) => void)` | | Called with the selected tab. |
|
|
3134
|
-
| `value` | `string` | | The selected tab, when you control it. |
|
|
3135
|
-
| `variant` | `"pill" \| "underline"` | | Pills, or underlined tabs. |
|
|
3136
|
-
|
|
3137
2346
|
### Tabs
|
|
3138
2347
|
|
|
3139
|
-
|
|
2348
|
+
Tabs: underlined for sections of a detail page, or pills (`variant="pill"`) for the views of a page under its header ("All · Errors · Streamed").
|
|
3140
2349
|
|
|
3141
2350
|
| Prop | Type | Default | Description |
|
|
3142
2351
|
|---|---|---|---|
|
|
@@ -3145,32 +2354,15 @@ Underline tabs for detail pages.
|
|
|
3145
2354
|
| `defaultValue` | `string` | | The selected tab on first render. |
|
|
3146
2355
|
| `onValueChange` | `((value: string) => void)` | | Called with the selected tab. |
|
|
3147
2356
|
| `value` | `string` | | The selected tab, when you control it. |
|
|
3148
|
-
| `variant` | `"pill" \| "underline"` |
|
|
2357
|
+
| `variant` | `"pill" \| "underline"` | `underline` | `underline` for the sections of a detail page; `pill` for a page's views, right under its header. |
|
|
3149
2358
|
|
|
3150
2359
|
## tag
|
|
3151
2360
|
|
|
3152
|
-
`import {
|
|
2361
|
+
`import { Tag } from "@logicplanes/kaeso-ui/tag";`
|
|
3153
2362
|
|
|
3154
2363
|
- **size** (tag): `md` (default) — 28px: metadata pills in lists and toolbars (default); `sm` — 24px: inside table rows
|
|
3155
2364
|
- **variant** (tag): `raised` (default) — Raised with a ring: metadata pills (default); `outline` — Ring only: unselected toggle pills; `soft` — Filled: selected toggle pills
|
|
3156
2365
|
|
|
3157
|
-
### Pill
|
|
3158
|
-
|
|
3159
|
-
Another name for Tag.
|
|
3160
|
-
|
|
3161
|
-
| Prop | Type | Default | Description |
|
|
3162
|
-
|---|---|---|---|
|
|
3163
|
-
| `children` * | `ReactNode` | | The pill's text. |
|
|
3164
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
3165
|
-
| `icon` | `IconSvgElement` | | An icon before the text. |
|
|
3166
|
-
| `invalid` | `boolean` | | Marks a value that isn't accepted: a red ring, red text and an error icon named "Not accepted", so it doesn't rest on color. |
|
|
3167
|
-
| `onClick` | `((e: MouseEvent<HTMLElement, MouseEvent>) => void)` | | Renders a button with the control's hover, press and focus: raised tags take the secondary button's material, outline tags the ghost's. |
|
|
3168
|
-
| `onRemove` | `((e: MouseEvent<HTMLButtonElement, MouseEvent>) => void)` | | Shows a remove circle; called with the click. |
|
|
3169
|
-
| `pressed` | `boolean` | | For toggle pills (DisplayOptions): sets aria-pressed, and `true` draws the selected soft fill whatever the variant, so a toggle needs no variant swap. |
|
|
3170
|
-
| `removeLabel` | `string` | | The remove circle's accessible name. Defaults to "Remove" and the label in the provider's language. |
|
|
3171
|
-
| `size` | `"md" \| "sm"` | `md` | The pill's height. |
|
|
3172
|
-
| `variant` | `"outline" \| "soft" \| "raised"` | `raised` | Raised on the panel, soft fill, or outlined. |
|
|
3173
|
-
|
|
3174
2366
|
### Tag
|
|
3175
2367
|
|
|
3176
2368
|
A metadata pill: 28px, 13/500, an optional icon, an optional remove circle. A label longer than its room (a long key or model name) ends in an ellipsis and shows in full in a tooltip; give a short status label the room it needs instead (a column at least as wide as the pill).
|
|
@@ -3249,25 +2441,6 @@ System, light or dark, stored as `kaeso:theme`.
|
|
|
3249
2441
|
| `size` | `"md" \| "sm"` | `sm` | The button's height. |
|
|
3250
2442
|
| `variant` | `"secondary" \| "ghost"` | `ghost` | A filled button (`secondary`) or a quiet one (`ghost`). |
|
|
3251
2443
|
|
|
3252
|
-
## theme-select
|
|
3253
|
-
|
|
3254
|
-
`import { ThemeSelect } from "@logicplanes/kaeso-ui/theme-select";`
|
|
3255
|
-
|
|
3256
|
-
- **appearance** (theme_select): `ghost` (default) — A quiet pill for sidebars and toolbars (default); `default` — A raised pill with a ring
|
|
3257
|
-
- **size** (theme_select): `sm` (default) — 32px (default); `md` — 36px
|
|
3258
|
-
|
|
3259
|
-
### ThemeSelect
|
|
3260
|
-
|
|
3261
|
-
A select for system, light or dark, stored as `kaeso:theme`, with its label in the provider's language.
|
|
3262
|
-
|
|
3263
|
-
| Prop | Type | Default | Description |
|
|
3264
|
-
|---|---|---|---|
|
|
3265
|
-
| `appearance` | `"ghost" \| "default"` | `ghost` | A quiet pill for sidebars and toolbars (`ghost`) or a raised one with a ring (`default`). |
|
|
3266
|
-
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
3267
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
3268
|
-
| `fullWidth` | `boolean` | | Width of the trigger follows its content (default) or fills the container, as in a sidebar's footer. |
|
|
3269
|
-
| `size` | `"md" \| "sm"` | `sm` | The height of the field. |
|
|
3270
|
-
|
|
3271
2444
|
## thumbnail
|
|
3272
2445
|
|
|
3273
2446
|
`import { Thumbnail } from "@logicplanes/kaeso-ui/thumbnail";`
|
|
@@ -3302,32 +2475,10 @@ Events down a 1px line (the audit log): each event marks the line with a short 3
|
|
|
3302
2475
|
|
|
3303
2476
|
## toast
|
|
3304
2477
|
|
|
3305
|
-
`import {
|
|
2478
|
+
`import { Toaster } from "@logicplanes/kaeso-ui/toast";`
|
|
3306
2479
|
|
|
3307
2480
|
- **tone** (toast): `neutral` (default) — A plain message (default); `success` — Success: a green check before the words; `error` — Errors: a red mark; announced as an alert; `warning` — Warnings; `info` — Information; `loading` — Work underway: a spinner
|
|
3308
2481
|
|
|
3309
|
-
### Toast
|
|
3310
|
-
|
|
3311
|
-
`<Toast />` mounts the toaster like `Toaster`, and `Toast.add()` shows a toast like `toast()`.
|
|
3312
|
-
|
|
3313
|
-
| Prop | Type | Default | Description |
|
|
3314
|
-
|---|---|---|---|
|
|
3315
|
-
| `limit` | `number` | `3` | How many toasts show at once. |
|
|
3316
|
-
| `timeout` | `number` | `5000` | How long a toast stays, in milliseconds; errors and toasts with an action stay until dismissed, unless `toast()` gets a timeout of its own. |
|
|
3317
|
-
|
|
3318
|
-
### ToastCapsule
|
|
3319
|
-
|
|
3320
|
-
The capsule alone, for documentation and state matrices.
|
|
3321
|
-
|
|
3322
|
-
| Prop | Type | Default | Description |
|
|
3323
|
-
|---|---|---|---|
|
|
3324
|
-
| `title` * | `ReactNode` | | The message. |
|
|
3325
|
-
| `action` | `string` | | The label of the toast's action button. |
|
|
3326
|
-
| `closable` | `boolean` | | Shows the close button at its end, as a toast that stays until dismissed has. |
|
|
3327
|
-
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
3328
|
-
| `description` | `ReactNode` | | One more sentence, when the message needs it. |
|
|
3329
|
-
| `tone` | `"neutral" \| "success" \| "warning" \| "info" \| "loading" \| "error"` | `neutral` | The kind of message; `loading` shows a spinner. |
|
|
3330
|
-
|
|
3331
2482
|
### Toaster
|
|
3332
2483
|
|
|
3333
2484
|
Mount once near the root. Three visible at most; 5s, paused on hover and focus; an error, or a toast with an action such as Undo, stays until it is dismissed; the close button, a swipe or Escape dismisses, and F6 moves the focus to the toasts. With a client router that replaces <body> on navigation (Astro's ClientRouter), mount it in a persisted element inside a `PortalContainer`, so the toasts are not swapped away with the page.
|
|
@@ -3371,7 +2522,7 @@ A row of controls above a list or a chart: one tab stop, with the arrow keys mov
|
|
|
3371
2522
|
|
|
3372
2523
|
## tooltip
|
|
3373
2524
|
|
|
3374
|
-
`import { Tooltip, TooltipProvider
|
|
2525
|
+
`import { Tooltip, TooltipProvider } from "@logicplanes/kaeso-ui/tooltip";`
|
|
3375
2526
|
|
|
3376
2527
|
- **side** (tooltip): `top` (default) — Above the trigger (default); `bottom` — Below the trigger; `left` — Left of the trigger; `right` — Right of the trigger
|
|
3377
2528
|
- **shape** (tooltip): `pill` (default) — Single line: a pill (default); `multiline` — Several lines: radius 12, max 280px
|
|
@@ -3403,16 +2554,6 @@ Tooltips open once the pointer has rested on a control for 500ms, and instantly
|
|
|
3403
2554
|
| `children` * | `ReactNode` | | The app, so every tooltip shares one delay. |
|
|
3404
2555
|
| `delay` | `number` | `500` | How long the pointer has to rest before the first tooltip opens, in milliseconds. |
|
|
3405
2556
|
|
|
3406
|
-
### TooltipSurface
|
|
3407
|
-
|
|
3408
|
-
A static tooltip surface for documentation and state matrices.
|
|
3409
|
-
|
|
3410
|
-
| Prop | Type | Default | Description |
|
|
3411
|
-
|---|---|---|---|
|
|
3412
|
-
| `children` * | `ReactNode` | | The tooltip's text. |
|
|
3413
|
-
| `shape` | `"pill" \| "multiline"` | `pill` | A pill for a short label, or a box for several lines. |
|
|
3414
|
-
| `shortcut` | `string[] \| string[][]` | | The keyboard shortcut shown after the text. |
|
|
3415
|
-
|
|
3416
2557
|
## visually-hidden
|
|
3417
2558
|
|
|
3418
2559
|
`import { VisuallyHidden } from "@logicplanes/kaeso-ui/visually-hidden";`
|