@logicplanes/kaeso-ui 0.4.1 → 0.4.3
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/NOTICE.md +1 -1
- package/ai/component-guides.md +333 -21
- package/ai/component-registry.json +631 -32
- package/ai/component-registry.md +164 -28
- package/ai/icons.md +3 -3
- package/ai/tokens.md +1 -1
- package/dist/blocks/delete-resource.js +15 -14
- package/dist/blocks/delete-resource.js.map +1 -1
- package/dist/blocks/pages.js +5 -5
- package/dist/blocks/resource-list.js +42 -41
- package/dist/blocks/resource-list.js.map +1 -1
- package/dist/chunks/agent-avatar-0pdBTWkR.js +171 -0
- package/dist/chunks/agent-avatar-0pdBTWkR.js.map +1 -0
- package/dist/chunks/{app-frame-DZPEf2NQ.js → app-frame-DogGRmsu.js} +23 -22
- package/dist/chunks/app-frame-DogGRmsu.js.map +1 -0
- package/dist/chunks/{avatar-HnvBUoe5.js → avatar-CWbdwbJv.js} +2 -2
- package/dist/chunks/{avatar-HnvBUoe5.js.map → avatar-CWbdwbJv.js.map} +1 -1
- package/dist/chunks/{badge-CM8ahjDR.js → badge-C2KtxCLB.js} +2 -2
- package/dist/chunks/{badge-CM8ahjDR.js.map → badge-C2KtxCLB.js.map} +1 -1
- package/dist/chunks/{banner-CvYgPwCc.js → banner-BA2ALw9M.js} +4 -4
- package/dist/chunks/{banner-CvYgPwCc.js.map → banner-BA2ALw9M.js.map} +1 -1
- package/dist/chunks/{button-9q66Ta23.js → button-CzuxqawA.js} +8 -8
- package/dist/chunks/{button-9q66Ta23.js.map → button-CzuxqawA.js.map} +1 -1
- package/dist/chunks/{calendar-CeNcqLFd.js → calendar-BWaf2MXc.js} +58 -42
- package/dist/chunks/calendar-BWaf2MXc.js.map +1 -0
- package/dist/chunks/{checkbox-C_DrNA2N.js → checkbox-CQjwCPkc.js} +12 -10
- package/dist/chunks/checkbox-CQjwCPkc.js.map +1 -0
- package/dist/chunks/{cn-Isw2DnQX.js → cn-Dj6sRgkF.js} +8 -1
- package/dist/chunks/cn-Dj6sRgkF.js.map +1 -0
- package/dist/chunks/{code-block-mEH6Sy3h.js → code-block-D5A-CGXG.js} +75 -54
- package/dist/chunks/code-block-D5A-CGXG.js.map +1 -0
- package/dist/chunks/{code-Bp2p9AuD.js → code-tqj0uhBL.js} +2 -2
- package/dist/chunks/{code-Bp2p9AuD.js.map → code-tqj0uhBL.js.map} +1 -1
- package/dist/chunks/{collapsible-CtQNJn9b.js → collapsible-CKrCX_T9.js} +3 -3
- package/dist/chunks/{collapsible-CtQNJn9b.js.map → collapsible-CKrCX_T9.js.map} +1 -1
- package/dist/chunks/combobox-DjDI7SUC.js +319 -0
- package/dist/chunks/combobox-DjDI7SUC.js.map +1 -0
- package/dist/chunks/{command-list-CzMbdtJs.js → command-list-C2Y7V_lt.js} +54 -54
- package/dist/chunks/command-list-C2Y7V_lt.js.map +1 -0
- package/dist/chunks/{copy-button-Cdea0wKl.js → copy-button-FJvPJn72.js} +5 -5
- package/dist/chunks/{copy-button-Cdea0wKl.js.map → copy-button-FJvPJn72.js.map} +1 -1
- package/dist/chunks/{core-FtMDNELx.js → core-BYns5ytV.js} +146 -140
- package/dist/chunks/core-BYns5ytV.js.map +1 -0
- package/dist/chunks/{date-popup-NytWvSNh.js → date-popup-CPA_zt6o.js} +4 -4
- package/dist/chunks/{date-popup-NytWvSNh.js.map → date-popup-CPA_zt6o.js.map} +1 -1
- package/dist/chunks/{de-BnNQtBSV.js → de-CPXJh9cq.js} +3 -1
- package/dist/chunks/de-CPXJh9cq.js.map +1 -0
- package/dist/chunks/dialog-Cg9A_6SF.js +383 -0
- package/dist/chunks/dialog-Cg9A_6SF.js.map +1 -0
- package/dist/chunks/{empty-By1qTJr6.js → empty-DvhyMXQq.js} +2 -2
- package/dist/chunks/{empty-By1qTJr6.js.map → empty-DvhyMXQq.js.map} +1 -1
- package/dist/chunks/{field-DfITT6Jm.js → field-TviMvYa2.js} +2 -2
- package/dist/chunks/{field-DfITT6Jm.js.map → field-TviMvYa2.js.map} +1 -1
- package/dist/chunks/{icon-D5uD_mnL.js → icon-D7ja-_Yk.js} +2 -2
- package/dist/chunks/{icon-D5uD_mnL.js.map → icon-D7ja-_Yk.js.map} +1 -1
- package/dist/chunks/icon-DVooQfk4.js +94 -0
- package/dist/chunks/icon-DVooQfk4.js.map +1 -0
- package/dist/chunks/{icon-button-C7Du4pvb.js → icon-button-CrdF_eMG.js} +3 -3
- package/dist/chunks/{icon-button-C7Du4pvb.js.map → icon-button-CrdF_eMG.js.map} +1 -1
- package/dist/chunks/{identity-BcVQd-7H.js → identity-BmhQ6BQ-.js} +18 -18
- package/dist/chunks/identity-BmhQ6BQ-.js.map +1 -0
- package/dist/chunks/{input-B6Docqrk.js → input-2VJuj_M4.js} +13 -8
- package/dist/chunks/input-2VJuj_M4.js.map +1 -0
- package/dist/chunks/{input-group-Dgdb0JpZ.js → input-group-DQ_4DoXg.js} +4 -4
- package/dist/chunks/{input-group-Dgdb0JpZ.js.map → input-group-DQ_4DoXg.js.map} +1 -1
- package/dist/chunks/{inset-BnBj8NJV.js → inset-BUzyXLK4.js} +14 -4
- package/dist/chunks/inset-BUzyXLK4.js.map +1 -0
- package/dist/chunks/{iso-field-SOZ7Z-yE.js → iso-field-B2rTwiBo.js} +2 -2
- package/dist/chunks/{iso-field-SOZ7Z-yE.js.map → iso-field-B2rTwiBo.js.map} +1 -1
- package/dist/chunks/{json-view-DCTMY_j4.js → json-view-Dqd2TDkc.js} +3 -3
- package/dist/chunks/{json-view-DCTMY_j4.js.map → json-view-Dqd2TDkc.js.map} +1 -1
- package/dist/chunks/{kbd-9A9rX60U.js → kbd-BF1vKXJf.js} +2 -2
- package/dist/chunks/{kbd-9A9rX60U.js.map → kbd-BF1vKXJf.js.map} +1 -1
- package/dist/chunks/{link-CtII7u3h.js → link-KWI7PevW.js} +4 -4
- package/dist/chunks/{link-CtII7u3h.js.map → link-KWI7PevW.js.map} +1 -1
- package/dist/chunks/link-provider-cvl8lSTT.js +29 -0
- package/dist/chunks/link-provider-cvl8lSTT.js.map +1 -0
- package/dist/chunks/{list-CMXBTVkI.js → list-M1csq-d4.js} +21 -19
- package/dist/chunks/{list-CMXBTVkI.js.map → list-M1csq-d4.js.map} +1 -1
- package/dist/chunks/{loader-DqOUwS1j.js → loader-DCfPndXa.js} +2 -2
- package/dist/chunks/{loader-DqOUwS1j.js.map → loader-DCfPndXa.js.map} +1 -1
- package/dist/chunks/{markdown-CwVQ0niB.js → markdown-DULktoTK.js} +9 -9
- package/dist/chunks/{markdown-CwVQ0niB.js.map → markdown-DULktoTK.js.map} +1 -1
- package/dist/chunks/{menu-Cjg4RggA.js → menu-DEmBfdPm.js} +32 -29
- package/dist/chunks/menu-DEmBfdPm.js.map +1 -0
- package/dist/chunks/{meter-VrC2J2GF.js → meter-Bj4N3Xuh.js} +2 -2
- package/dist/chunks/{meter-VrC2J2GF.js.map → meter-Bj4N3Xuh.js.map} +1 -1
- package/dist/chunks/nav-sheet-CzgIwgAm.js +60 -0
- package/dist/chunks/nav-sheet-CzgIwgAm.js.map +1 -0
- package/dist/chunks/{nav-wordmark-CjWM3NYa.js → nav-wordmark-_pjheAsZ.js} +2 -2
- package/dist/chunks/{nav-wordmark-CjWM3NYa.js.map → nav-wordmark-_pjheAsZ.js.map} +1 -1
- package/dist/chunks/{page-header-CZCQVHYE.js → page-header-DL2y2iZp.js} +4 -4
- package/dist/chunks/{page-header-CZCQVHYE.js.map → page-header-DL2y2iZp.js.map} +1 -1
- package/dist/chunks/{pagination-BStrMDqM.js → pagination-Cn_qF4cg.js} +4 -4
- package/dist/chunks/{pagination-BStrMDqM.js.map → pagination-Cn_qF4cg.js.map} +1 -1
- package/dist/chunks/{picker-popover-BerQAEBT.js → picker-popover-BxyU1U9F.js} +17 -16
- package/dist/chunks/{picker-popover-BerQAEBT.js.map → picker-popover-BxyU1U9F.js.map} +1 -1
- package/dist/chunks/{popover-CgLt_4yG.js → popover-DNN4S47w.js} +3 -3
- package/dist/chunks/{popover-CgLt_4yG.js.map → popover-DNN4S47w.js.map} +1 -1
- package/dist/chunks/portal-context-BBbzDKmY.js.map +1 -1
- package/dist/chunks/{radio-07Muf4cX.js → radio-CDDFpdtL.js} +5 -5
- package/dist/chunks/{radio-07Muf4cX.js.map → radio-CDDFpdtL.js.map} +1 -1
- package/dist/chunks/{range-popup-BCov1iPe.js → range-popup-CRyWYUB1.js} +6 -6
- package/dist/chunks/{range-popup-BCov1iPe.js.map → range-popup-CRyWYUB1.js.map} +1 -1
- package/dist/chunks/{release-art-69WpgVik.js → release-art-ZwfFQImt.js} +2 -2
- package/dist/chunks/{release-art-69WpgVik.js.map → release-art-ZwfFQImt.js.map} +1 -1
- package/dist/chunks/{rights-UVngOX_4.js → rights-Cyp0Pzp-.js} +9 -9
- package/dist/chunks/{rights-UVngOX_4.js.map → rights-Cyp0Pzp-.js.map} +1 -1
- package/dist/chunks/scroll-area-D8MD7Vpo.js +42 -0
- package/dist/chunks/scroll-area-D8MD7Vpo.js.map +1 -0
- package/dist/chunks/{section-Bvg0EUnr.js → section-Ce1efbsP.js} +3 -3
- package/dist/chunks/{section-Bvg0EUnr.js.map → section-Ce1efbsP.js.map} +1 -1
- package/dist/chunks/{segmented-DRLDN8EW.js → segmented-CErcoxwi.js} +4 -4
- package/dist/chunks/{segmented-DRLDN8EW.js.map → segmented-CErcoxwi.js.map} +1 -1
- package/dist/chunks/{select-eFTHLeYG.js → select-x4XVsdCI.js} +4 -4
- package/dist/chunks/{select-eFTHLeYG.js.map → select-x4XVsdCI.js.map} +1 -1
- package/dist/chunks/{separator-D86IW7Ge.js → separator-D7TzNHmX.js} +2 -2
- package/dist/chunks/{separator-D86IW7Ge.js.map → separator-D7TzNHmX.js.map} +1 -1
- package/dist/chunks/{sidebar-DifJ5KgE.js → sidebar-3r1ZRXlN.js} +255 -237
- package/dist/chunks/sidebar-3r1ZRXlN.js.map +1 -0
- package/dist/chunks/{sidebar-menu-XKOiwrQp.js → sidebar-menu-BN3jkTlK.js} +2 -2
- package/dist/chunks/{sidebar-menu-XKOiwrQp.js.map → sidebar-menu-BN3jkTlK.js.map} +1 -1
- package/dist/chunks/{skeleton-Cu74kGJA.js → skeleton-Dcz57Zyp.js} +2 -2
- package/dist/chunks/{skeleton-Cu74kGJA.js.map → skeleton-Dcz57Zyp.js.map} +1 -1
- package/dist/chunks/{slider-Dh0qq1wa.js → slider-Ci83PGtj.js} +2 -2
- package/dist/chunks/{slider-Dh0qq1wa.js.map → slider-Ci83PGtj.js.map} +1 -1
- package/dist/chunks/{status-dot-u4Izk-uC.js → status-dot-QJTF0Yv4.js} +3 -3
- package/dist/chunks/{status-dot-u4Izk-uC.js.map → status-dot-QJTF0Yv4.js.map} +1 -1
- package/dist/chunks/{swap-text-CC77iKJF.js → swap-text-Dr0Irxz6.js} +2 -2
- package/dist/chunks/{swap-text-CC77iKJF.js.map → swap-text-Dr0Irxz6.js.map} +1 -1
- package/dist/chunks/{switch-CbU9m9gi.js → switch-BNMq_kGt.js} +3 -3
- package/dist/chunks/{switch-CbU9m9gi.js.map → switch-BNMq_kGt.js.map} +1 -1
- package/dist/chunks/table-BeOSKl_3.js +84 -0
- package/dist/chunks/table-BeOSKl_3.js.map +1 -0
- package/dist/chunks/{tag-CqSk8F7M.js → tag-D_M1s2qS.js} +4 -4
- package/dist/chunks/{tag-CqSk8F7M.js.map → tag-D_M1s2qS.js.map} +1 -1
- package/dist/chunks/{text-hFc6TDp9.js → text-CIXH8rmT.js} +3 -3
- package/dist/chunks/{text-hFc6TDp9.js.map → text-CIXH8rmT.js.map} +1 -1
- package/dist/chunks/{textarea-17Ftvph_.js → textarea--4FRL3Pb.js} +5 -5
- package/dist/chunks/{textarea-17Ftvph_.js.map → textarea--4FRL3Pb.js.map} +1 -1
- package/dist/chunks/theme-provider-DJhORMlc.js.map +1 -1
- package/dist/chunks/{timeseries-CbnSFD5q.js → timeseries-D1xjRXfk.js} +3 -3
- package/dist/chunks/{timeseries-CbnSFD5q.js.map → timeseries-D1xjRXfk.js.map} +1 -1
- package/dist/chunks/{toolbar-B_960Ttx.js → toolbar-WA_oZgu-.js} +6 -5
- package/dist/chunks/{toolbar-B_960Ttx.js.map → toolbar-WA_oZgu-.js.map} +1 -1
- package/dist/chunks/tooltip-OcwO0VUT.js +154 -0
- package/dist/chunks/tooltip-OcwO0VUT.js.map +1 -0
- package/dist/chunks/{tooltip-root-Dssjjp-E.js → tooltip-root-DzahJDVj.js} +4 -4
- package/dist/chunks/{tooltip-root-Dssjjp-E.js.map → tooltip-root-DzahJDVj.js.map} +1 -1
- package/dist/chunks/{use-scroll-margin-DfdTc_5D.js → use-scroll-margin-atRtf0v_.js} +14 -10
- package/dist/chunks/use-scroll-margin-atRtf0v_.js.map +1 -0
- package/dist/chunks/{virtual-rows-yAMjeAwj.js → virtual-rows-CC_kc2PR.js} +2 -2
- package/dist/chunks/{virtual-rows-yAMjeAwj.js.map → virtual-rows-CC_kc2PR.js.map} +1 -1
- package/dist/chunks/{zh-CN-CKffAT7j.js → zh-CN-29X4CDLE.js} +3 -1
- package/dist/chunks/zh-CN-29X4CDLE.js.map +1 -0
- package/dist/components/agent-avatar.js +2 -0
- package/dist/components/app-frame.js +2 -2
- 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 +4 -4
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.js +1 -1
- package/dist/components/charts/bar.js +2 -2
- package/dist/components/charts/donut.js +2 -2
- package/dist/components/charts/gauge.js +2 -2
- package/dist/components/charts/heatmap.js +1 -1
- package/dist/components/charts/sankey.js +2 -2
- package/dist/components/charts/sparkline.js +1 -1
- package/dist/components/charts/timeseries.js +1 -1
- package/dist/components/charts.js +2 -2
- package/dist/components/checkbox.js +1 -1
- package/dist/components/code-block.js +2 -2
- package/dist/components/code.js +1 -1
- package/dist/components/collapsible.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/command-list.js +2 -2
- package/dist/components/command-palette.js +89 -84
- package/dist/components/command-palette.js.map +1 -1
- package/dist/components/copy-button.js +1 -1
- package/dist/components/data-table.js +193 -189
- package/dist/components/data-table.js.map +1 -1
- package/dist/components/date-picker.js +9 -7
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/dialog.js +125 -91
- package/dist/components/dialog.js.map +1 -1
- package/dist/components/display-options.js +52 -49
- package/dist/components/display-options.js.map +1 -1
- package/dist/components/empty.js +1 -1
- package/dist/components/field.js +1 -1
- package/dist/components/figure.js +60 -0
- package/dist/components/figure.js.map +1 -0
- package/dist/components/filter-chip.js +5 -5
- package/dist/components/filter-chip.js.map +1 -1
- package/dist/components/filter-row.js +2 -2
- package/dist/components/flow.js +2 -2
- package/dist/components/heading.js +1 -1
- package/dist/components/icon-button.js +1 -1
- package/dist/components/icon.js +2 -2
- package/dist/components/input.js +51 -51
- package/dist/components/input.js.map +1 -1
- package/dist/components/kaeso/conversation.js +8 -8
- package/dist/components/kaeso/identity.js +1 -1
- package/dist/components/kaeso/moments.js +5 -5
- package/dist/components/kaeso/rights.js +1 -1
- package/dist/components/kaeso/usage.js +12 -12
- package/dist/components/kaeso/usage.js.map +1 -1
- package/dist/components/kaeso.js +264 -96
- package/dist/components/kaeso.js.map +1 -1
- package/dist/components/kbd.js +1 -1
- package/dist/components/key-value.js +3 -3
- package/dist/components/label.js +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loader.js +2 -2
- package/dist/components/logo.js +2 -2
- 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 +32 -31
- package/dist/components/playground.js.map +1 -1
- package/dist/components/popover.js +13 -12
- package/dist/components/popover.js.map +1 -1
- package/dist/components/qr-code.js +1 -1
- package/dist/components/radio.js +1 -1
- package/dist/components/release-art.js +1 -1
- package/dist/components/scroll-area.js +1 -41
- 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 +10 -10
- package/dist/components/settings.js.map +1 -1
- package/dist/components/sheet.js +3 -3
- package/dist/components/sidebar.js +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/stat.js +3 -3
- package/dist/components/status-dot.js +1 -1
- package/dist/components/surface.js +1 -1
- package/dist/components/swap-text.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/tabs.js +24 -24
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tag.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/theme-image.js +1 -1
- package/dist/components/theme-menu.js +33 -30
- package/dist/components/theme-menu.js.map +1 -1
- package/dist/components/theme-select.js +1 -1
- package/dist/components/thumbnail.js +41 -0
- package/dist/components/thumbnail.js.map +1 -0
- package/dist/components/timeline.js +1 -1
- package/dist/components/toast.js +100 -91
- package/dist/components/toast.js.map +1 -1
- package/dist/components/toc.js +37 -22
- package/dist/components/toc.js.map +1 -1
- package/dist/components/toolbar.js +1 -1
- package/dist/components/tooltip.js +1 -1
- package/dist/components/visually-hidden.js +1 -1
- package/dist/format.js.map +1 -1
- package/dist/i18n-provider.js +1 -1
- package/dist/index.js +99 -95
- package/dist/kaeso.css +3 -0
- package/dist/styles.css +1 -1
- package/dist/types/blocks/delete-resource/delete-resource.d.ts +2 -5
- package/dist/types/blocks/resource-list/resource-list.d.ts +1 -4
- package/dist/types/component-docs.d.ts +1 -1
- package/dist/types/components/agent-avatar/agent-avatar.d.ts +94 -0
- package/dist/types/components/agent-avatar/docs.d.ts +19 -0
- package/dist/types/components/agent-avatar/index.d.ts +3 -0
- package/dist/types/components/agent-avatar/model-name.d.ts +9 -0
- package/dist/types/components/agent-avatar/models.d.ts +4 -0
- package/dist/types/components/app-frame/app-frame.d.ts +3 -8
- package/dist/types/components/app-frame/nav-sheet.d.ts +2 -4
- package/dist/types/components/calendar/calendar.d.ts +1 -4
- package/dist/types/components/charts/core.d.ts +11 -18
- package/dist/types/components/checkbox/checkbox.d.ts +2 -0
- package/dist/types/components/code-block/code-block.d.ts +1 -1
- package/dist/types/components/code-block/indent.d.ts +3 -0
- package/dist/types/components/combobox/combobox.d.ts +26 -2
- package/dist/types/components/command-list/command-list.d.ts +1 -0
- package/dist/types/components/command-list/docs.d.ts +1 -0
- package/dist/types/components/command-list/picker-popover.d.ts +1 -4
- package/dist/types/components/command-palette/command-palette.d.ts +2 -4
- package/dist/types/components/command-palette/docs.d.ts +1 -0
- package/dist/types/components/data-table/data-table.d.ts +2 -1
- package/dist/types/components/data-table/docs.d.ts +1 -0
- package/dist/types/components/dialog/dialog.d.ts +7 -9
- package/dist/types/components/dialog/docs.d.ts +2 -0
- package/dist/types/components/dialog/scope.d.ts +2 -0
- package/dist/types/components/dialog/step-dialog.d.ts +38 -5
- package/dist/types/components/display-options/display-options.d.ts +2 -5
- package/dist/types/components/figure/docs.d.ts +12 -0
- package/dist/types/components/figure/figure.d.ts +25 -0
- package/dist/types/components/figure/index.d.ts +1 -0
- package/dist/types/components/input/input.d.ts +23 -0
- package/dist/types/components/kaeso/client-button.d.ts +17 -0
- package/dist/types/components/kaeso/docs.d.ts +18 -0
- package/dist/types/components/kaeso/grant-summary.d.ts +12 -0
- package/dist/types/components/kaeso/identity.d.ts +2 -0
- package/dist/types/components/kaeso/index.d.ts +2 -0
- package/dist/types/components/kaeso/provider-picker.d.ts +5 -0
- package/dist/types/components/kaeso/usage.d.ts +2 -0
- package/dist/types/components/list/list.d.ts +4 -8
- package/dist/types/components/menu/docs.d.ts +8 -1
- package/dist/types/components/menu/menu.d.ts +19 -31
- package/dist/types/components/playground/parameter-panel.d.ts +1 -4
- package/dist/types/components/popover/hover-card.d.ts +2 -0
- package/dist/types/components/radio/docs.d.ts +15 -0
- package/dist/types/components/radio/radio.d.ts +2 -4
- package/dist/types/components/settings/settings.d.ts +2 -0
- package/dist/types/components/sidebar/sidebar.d.ts +13 -35
- package/dist/types/components/table/docs.d.ts +3 -1
- package/dist/types/components/table/table.d.ts +18 -1
- package/dist/types/components/tabs/tabs.d.ts +15 -0
- package/dist/types/components/theme-menu/docs.d.ts +2 -0
- package/dist/types/components/theme-menu/theme-menu.d.ts +6 -5
- package/dist/types/components/thumbnail/docs.d.ts +10 -0
- package/dist/types/components/thumbnail/index.d.ts +1 -0
- package/dist/types/components/thumbnail/thumbnail.d.ts +26 -0
- package/dist/types/components/toast/toast.d.ts +5 -12
- package/dist/types/components/toolbar/toolbar.d.ts +1 -6
- package/dist/types/components/tooltip/tooltip.d.ts +2 -4
- package/dist/types/components/tooltip/trigger-props.d.ts +0 -1
- package/dist/types/format/index.d.ts +5 -5
- package/dist/types/hooks/use-scroll-margin.d.ts +1 -1
- package/dist/types/icons/groups.d.ts +2 -2
- package/dist/types/icons/vocabulary.d.ts +15 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/utils/cn.d.ts +4 -0
- package/dist/types/utils/inset.d.ts +4 -0
- package/dist/types/utils/link-provider.d.ts +1 -1
- package/dist/types/utils/merge-refs.d.ts +3 -0
- package/dist/types/utils/portal-context.d.ts +1 -1
- package/dist/utils.js +4 -4
- package/foundations/shape.md +1 -1
- package/package.json +3 -3
- package/dist/chunks/app-frame-DZPEf2NQ.js.map +0 -1
- package/dist/chunks/calendar-CeNcqLFd.js.map +0 -1
- package/dist/chunks/checkbox-C_DrNA2N.js.map +0 -1
- package/dist/chunks/cn-Isw2DnQX.js.map +0 -1
- package/dist/chunks/code-block-mEH6Sy3h.js.map +0 -1
- package/dist/chunks/combobox-D8ZOm8uT.js +0 -314
- package/dist/chunks/combobox-D8ZOm8uT.js.map +0 -1
- package/dist/chunks/command-list-CzMbdtJs.js.map +0 -1
- package/dist/chunks/core-FtMDNELx.js.map +0 -1
- package/dist/chunks/de-BnNQtBSV.js.map +0 -1
- package/dist/chunks/dialog-BZCVFmGF.js +0 -353
- package/dist/chunks/dialog-BZCVFmGF.js.map +0 -1
- package/dist/chunks/icon-CBzvyEqC.js +0 -91
- package/dist/chunks/icon-CBzvyEqC.js.map +0 -1
- package/dist/chunks/identity-BcVQd-7H.js.map +0 -1
- package/dist/chunks/input-B6Docqrk.js.map +0 -1
- package/dist/chunks/inset-BnBj8NJV.js.map +0 -1
- package/dist/chunks/link-provider-BsUxhZKG.js +0 -27
- package/dist/chunks/link-provider-BsUxhZKG.js.map +0 -1
- package/dist/chunks/menu-Cjg4RggA.js.map +0 -1
- package/dist/chunks/nav-sheet-Y2Ite-iF.js +0 -60
- package/dist/chunks/nav-sheet-Y2Ite-iF.js.map +0 -1
- package/dist/chunks/sidebar-DifJ5KgE.js.map +0 -1
- package/dist/chunks/table-CTxDp7zC.js +0 -67
- package/dist/chunks/table-CTxDp7zC.js.map +0 -1
- package/dist/chunks/tooltip-CRApbLF6.js +0 -151
- package/dist/chunks/tooltip-CRApbLF6.js.map +0 -1
- package/dist/chunks/use-scroll-margin-DfdTc_5D.js.map +0 -1
- package/dist/chunks/zh-CN-CKffAT7j.js.map +0 -1
- package/dist/components/scroll-area.js.map +0 -1
package/ai/component-registry.md
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
# @logicplanes/kaeso-ui component registry
|
|
2
2
|
|
|
3
|
-
Version 0.4.
|
|
3
|
+
Version 0.4.3. Generated from the component types, their descriptions and variants; do not edit.
|
|
4
|
+
|
|
5
|
+
## agent-avatar
|
|
6
|
+
|
|
7
|
+
`import { AgentAttribution, AgentAvatar } from "@logicplanes/kaeso-ui/agent-avatar";`
|
|
8
|
+
|
|
9
|
+
- **size** (agent_attribution): `20` — 20px person, 10px agent badge; `24` (default) — 24px person, 12px agent badge (default); `28` — 28px person, 14px agent badge; `32` — 32px person, 16px agent badge; `40` — 40px person, 20px 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 badge on its corner, for audit rows and activity; it reads as one picture named after both. The badge 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 half of it. |
|
|
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 an ink square, the same for every agent; 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`. |
|
|
4
34
|
|
|
5
35
|
## app-frame
|
|
6
36
|
|
|
@@ -176,7 +206,7 @@ The calendar: 36px day circles, today ringed, ranges as a continuous strip with
|
|
|
176
206
|
| `onMonthChange` | `((month: Date) => void)` | | Called when the month shown changes. |
|
|
177
207
|
| `onSelect` | `((value: Date \| DateRange) => void)` | | Called with the new day or range. |
|
|
178
208
|
| `selected` | `Date \| DateRange` | | The selected day or range. |
|
|
179
|
-
| `weekStartsOn` | `0 \|
|
|
209
|
+
| `weekStartsOn` | `0 \| 2 \| 3 \| 4 \| 1 \| 5 \| 6` | `1` | 0 = Sunday, 1 = Monday (default). |
|
|
180
210
|
|
|
181
211
|
## charts
|
|
182
212
|
|
|
@@ -523,7 +553,7 @@ Highlighted code on a well: Kaeso's monochrome theme, copy on hover, tabs, line
|
|
|
523
553
|
| `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. |
|
|
524
554
|
| `tabs` | `CodeTab[]` | | Several versions: "Python · Node · curl", shown as pill tabs. |
|
|
525
555
|
| `title` | `ReactNode` | | A file name in the title bar. |
|
|
526
|
-
| `wrap` | `boolean` | `false` | Long lines wrap instead of scrolling sideways: code in a narrow column (a model's response). |
|
|
556
|
+
| `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. |
|
|
527
557
|
|
|
528
558
|
### CodeHighlighted
|
|
529
559
|
|
|
@@ -543,7 +573,7 @@ The same component as `CodeBlock`, under another name.
|
|
|
543
573
|
| `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. |
|
|
544
574
|
| `tabs` | `CodeTab[]` | | Several versions: "Python · Node · curl", shown as pill tabs. |
|
|
545
575
|
| `title` | `ReactNode` | | A file name in the title bar. |
|
|
546
|
-
| `wrap` | `boolean` | `false` | Long lines wrap instead of scrolling sideways: code in a narrow column (a model's response). |
|
|
576
|
+
| `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. |
|
|
547
577
|
|
|
548
578
|
### JsonView
|
|
549
579
|
|
|
@@ -592,6 +622,7 @@ A disclosure row: a chevron that rotates in 180ms, a measured height animation.
|
|
|
592
622
|
|
|
593
623
|
`import { Autocomplete, Combobox, Highlight } from "@logicplanes/kaeso-ui/combobox";`
|
|
594
624
|
|
|
625
|
+
- **size** (autocomplete): `sm` — 32px; `md` (default) — 36px (default); `lg` — 40px; `xl` — 48px
|
|
595
626
|
- **size** (combobox): `sm` — 32px; `md` (default) — 36px (default); `lg` — 40px; `xl` — 48px
|
|
596
627
|
|
|
597
628
|
### Autocomplete
|
|
@@ -680,6 +711,7 @@ A search field over a long list that stays fast with thousands of rows: fuzzy ma
|
|
|
680
711
|
| `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 while it has no rows yet. |
|
|
681
712
|
| `autoFocus` | `boolean` | | Focuses the search field when it appears, as in a popover or a dialog step. |
|
|
682
713
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
714
|
+
| `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. |
|
|
683
715
|
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
684
716
|
| `defaultQuery` | `string` | | The search text on first render. |
|
|
685
717
|
| `emptyText` | `ReactNode` | | What the list says when nothing matches: "No models match". |
|
|
@@ -743,6 +775,7 @@ The pill that opens a picker and shows its value, in the same looks and sizes as
|
|
|
743
775
|
| Prop | Type | Default | Description |
|
|
744
776
|
|---|---|---|---|
|
|
745
777
|
| `groups` * | `CommandGroup[]` | | The commands, in groups with a heading each. |
|
|
778
|
+
| `counts` | `boolean` | | Shows each group's count beside its caption; false leaves them out, for a site whose house style has no result counters. |
|
|
746
779
|
| `defaultQuery` | `string` | | Start with this query (documentation). |
|
|
747
780
|
| `emptyText` | `ReactNode` | | Defaults to "No results" in the provider's language. |
|
|
748
781
|
| `hotkey` | `boolean` | | Open with ⌘K / Ctrl+K anywhere (default true). |
|
|
@@ -815,6 +848,7 @@ A table for many rows: sorting, selection, loading and empty states, more rows o
|
|
|
815
848
|
| `columns` * | `ColumnDef<T, any>[]` | | The columns, as TanStack Table column definitions. |
|
|
816
849
|
| `data` * | `T[]` | | The rows. |
|
|
817
850
|
| `activeRowId` | `string` | | The id of a row to show as active (open in a sheet). |
|
|
851
|
+
| `canSelectRow` | `((row: T) => boolean)` | | Whether a row can be selected; a row that can't keeps a disabled checkbox, and select all skips it. |
|
|
818
852
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
819
853
|
| `density` | `"default" \| "compact" \| "comfortable"` | | How much room each row gets. |
|
|
820
854
|
| `empty` | `ReactNode` | | What to show when there are no rows, usually an `Empty`. |
|
|
@@ -870,7 +904,7 @@ A pill showing the date; a popover with the calendar and a typed ISO field.
|
|
|
870
904
|
| `required` | `boolean` | | Marks it as required in a form. |
|
|
871
905
|
| `size` | `"md" \| "sm" \| "lg"` | | The height of the field. |
|
|
872
906
|
| `value` | `Date \| null` | | The chosen day, when you control it. |
|
|
873
|
-
| `weekStartsOn` | `0 \|
|
|
907
|
+
| `weekStartsOn` | `0 \| 2 \| 3 \| 4 \| 1 \| 5 \| 6` | | The first day of the week, from 0 (Sunday) to 6 (Saturday); the language decides by default. |
|
|
874
908
|
|
|
875
909
|
### DateRangePicker
|
|
876
910
|
|
|
@@ -898,7 +932,7 @@ A pill showing the range ("Oct 1 – Oct 12") or its preset ("Last 30 days"); pr
|
|
|
898
932
|
| `required` | `boolean` | | Marks it as required in a form. |
|
|
899
933
|
| `size` | `"md" \| "sm" \| "lg"` | | The height of the field. |
|
|
900
934
|
| `value` | `DateRange \| null` | | The chosen range, when you control it. |
|
|
901
|
-
| `weekStartsOn` | `0 \|
|
|
935
|
+
| `weekStartsOn` | `0 \| 2 \| 3 \| 4 \| 1 \| 5 \| 6` | | The first day of the week, from 0 (Sunday) to 6 (Saturday); the language decides by default. |
|
|
902
936
|
|
|
903
937
|
### TimeInput
|
|
904
938
|
|
|
@@ -955,6 +989,8 @@ Confirms deleting a resource: names the object and the consequence, asks for its
|
|
|
955
989
|
- **anchor** (dialog): `center` (default) — Centered on the screen (default); `top` — A fixed top edge, for content that changes height, such as the steps of a StepDialog
|
|
956
990
|
- **size** (layer_dialog): `sm` — 440px: confirmations, short forms; `md` (default) — 560px: forms (default); `lg` — 720px: two columns, previews
|
|
957
991
|
- **anchor** (layer_dialog): `center` (default) — Centered on the screen (default); `top` — A fixed top edge, for content that changes height, such as the steps of a StepDialog
|
|
992
|
+
- **size** (step_dialog): `sm` (default) — 440px: most tasks in a few steps (default); `md` — 560px: steps with longer forms; `lg` — 720px: steps with two columns or previews
|
|
993
|
+
- **tone** (step_dialog): `default` (default) — The last step's button is primary (default); `danger` — The last step's button is a danger button, for a task that ends in deletion
|
|
958
994
|
|
|
959
995
|
### AlertDialog
|
|
960
996
|
|
|
@@ -990,6 +1026,7 @@ A modal dialog: 440 / 560 / 720, radius 20, title, description, body, actions. E
|
|
|
990
1026
|
| `defaultOpen` | `boolean` | | Whether it starts open, when the component keeps its own state. |
|
|
991
1027
|
| `description` | `ReactNode` | | One sentence under the title. |
|
|
992
1028
|
| `footer` | `ReactNode` | | Right-aligned actions: Cancel (secondary) then the primary. |
|
|
1029
|
+
| `footerStart` | `ReactNode` | | A quiet action at the footer's start, such as a link to another way of doing the task. |
|
|
993
1030
|
| `headerStart` | `ReactNode` | | A top bar above the title, with this at its start and the close circle at its end (LayerDialog's back button). The title, description and content keep one left edge; `null` keeps the bar with an empty start. |
|
|
994
1031
|
| `hideClose` | `boolean` | | Hide the close circle (rare). |
|
|
995
1032
|
| `inline` | `boolean` | | Render without a portal and backdrop, for documentation and state matrices. |
|
|
@@ -998,6 +1035,7 @@ A modal dialog: 440 / 560 / 720, radius 20, title, description, body, actions. E
|
|
|
998
1035
|
| `open` | `boolean` | | Whether it is open, when you control it. |
|
|
999
1036
|
| `persistent` | `boolean` | | A press outside doesn't close it, for forms that would lose what was typed; Escape and the close circle still do. Every StepDialog is persistent. |
|
|
1000
1037
|
| `size` | `"md" \| "sm" \| "lg"` | | The dialog's width. |
|
|
1038
|
+
| `toolbar` | `ReactNode` | | Controls that stay under the title while the body scrolls, such as a search over the list below; a hairline shows once the body is scrolled. |
|
|
1001
1039
|
| `trigger` | `ReactElement<unknown, string \| JSXElementConstructor<any>>` | | The trigger, a single element. |
|
|
1002
1040
|
|
|
1003
1041
|
### DialogScope
|
|
@@ -1015,7 +1053,7 @@ A stacked dialog: a second layer slides over the first (add model → review val
|
|
|
1015
1053
|
|
|
1016
1054
|
| Prop | Type | Default | Description |
|
|
1017
1055
|
|---|---|---|---|
|
|
1018
|
-
| `layers` * | `DialogLayer[]` | | The layers, each with its title, content and footer; one shows at a time, and the ones below it stay mounted and hidden. |
|
|
1056
|
+
| `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. |
|
|
1019
1057
|
| `anchor` | `"center" \| "top"` | | Where it sits: centered, or with a fixed top edge for layers of different heights. |
|
|
1020
1058
|
| `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. |
|
|
1021
1059
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
@@ -1033,12 +1071,12 @@ A stacked dialog: a second layer slides over the first (add model → review val
|
|
|
1033
1071
|
|
|
1034
1072
|
### StepDialog
|
|
1035
1073
|
|
|
1036
|
-
A form split into steps, one question at a time, like sign-in: the step's title and fields, Back and Continue, the action on the last step. Enter in a single-line field and ⌘/Ctrl+Enter continue. The dialog takes each step's own height and keeps its top edge where it opened: it grows or shrinks 200ms downward from the size it has as the step changes, so the title never jumps, and the new step drifts in from the side it comes from. With `result`, what the last step made (a key shown once) takes the steps' place in the same dialog, at its own size. Continue and Back move the focus into the step they show (its first field; without one, the primary action, or Back when the last step destroys), and a screen reader hears which step it is.
|
|
1074
|
+
A form split into steps, one question at a time, like sign-in: the step's title and fields, Back and Continue, the action on the last step. Enter in a single-line field and ⌘/Ctrl+Enter continue. The dialog takes each step's own height and keeps its top edge where it opened: it grows or shrinks 200ms downward from the size it has as the step changes, so the title never jumps, and the new step drifts in from the side it comes from. With `result`, what the last step made (a key shown once) takes the steps' place in the same dialog, at its own size. Continue and Back move the focus into the step they show (its first field; without one, the primary action, or Back when the last step destroys), and a screen reader hears which step it is. Inside a step, `useStepDialog()?.advance()` continues as Continue would, once the step is no longer blocked: a choice that answers the step, like a provider tile, moves on in one press.
|
|
1037
1075
|
|
|
1038
1076
|
| Prop | Type | Default | Description |
|
|
1039
1077
|
|---|---|---|---|
|
|
1040
1078
|
| `onSubmit` * | `() => void` | | Called when the last step is submitted. |
|
|
1041
|
-
| `steps` * | `DialogStep[]` | | The steps, each with its title, content and whether it can be continued. |
|
|
1079
|
+
| `steps` * | `DialogStep[]` | | The steps, each with its title, content and whether it can be continued; `onContinue` checks a step before the next opens, such as asking a server, and `continueLabel` names that check: "Detect settings". |
|
|
1042
1080
|
| `submitLabel` * | `string` | | The last step's button: "Create key". |
|
|
1043
1081
|
| `title` * | `ReactNode` | | What the whole dialog does: "Create key". |
|
|
1044
1082
|
| `defaultStep` | `number` | `0` | Start on this step (state matrices). |
|
|
@@ -1117,6 +1155,25 @@ A group of fields under one legend.
|
|
|
1117
1155
|
| `legend` * | `ReactNode` | | The heading of the group of fields. |
|
|
1118
1156
|
| `description` | `ReactNode` | | One sentence of help under the heading. |
|
|
1119
1157
|
|
|
1158
|
+
## figure
|
|
1159
|
+
|
|
1160
|
+
`import { Figure } from "@logicplanes/kaeso-ui/figure";`
|
|
1161
|
+
|
|
1162
|
+
- **surface** (figure): `well` (default) — A well like a code block's: radius 14, fill, no ring (default); `plain` — No surface, for a figure that brings its own
|
|
1163
|
+
|
|
1164
|
+
### Figure
|
|
1165
|
+
|
|
1166
|
+
A diagram or image set apart from the text: centred on a well, with a caption, scrolling sideways only when it can't shrink to fit.
|
|
1167
|
+
|
|
1168
|
+
| Prop | Type | Default | Description |
|
|
1169
|
+
|---|---|---|---|
|
|
1170
|
+
| `children` * | `ReactNode` | | What the figure shows, usually a ThemeImage. |
|
|
1171
|
+
| `label` * | `string` | | The name of the figure's scrolling region, read by screen readers. |
|
|
1172
|
+
| `caption` | `ReactNode` | | A few words under the figure that say what it shows, such as a diagram's title. |
|
|
1173
|
+
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1174
|
+
| `focus` | `number` | `0.5` | Where a figure wider than its column starts, as a share of its width: 0.5, the middle, by default. |
|
|
1175
|
+
| `surface` | `"well" \| "plain"` | `well` | The figure's background: a well like a code block's, or none. |
|
|
1176
|
+
|
|
1120
1177
|
## filter-chip
|
|
1121
1178
|
|
|
1122
1179
|
`import { FilterChip } from "@logicplanes/kaeso-ui/filter-chip";`
|
|
@@ -1197,7 +1254,7 @@ Heading levels map to the title tokens (4.3).
|
|
|
1197
1254
|
| Prop | Type | Default | Description |
|
|
1198
1255
|
|---|---|---|---|
|
|
1199
1256
|
| `balance` | `boolean` | `true` | Balances the lines of a heading that wraps. |
|
|
1200
|
-
| `level` | `
|
|
1257
|
+
| `level` | `2 \| 3 \| 4 \| 1 \| 5 \| 6` | | The heading level in the document, independent of its size. |
|
|
1201
1258
|
| `size` | `"title" \| "display" \| "title-sm" \| "title-lg"` | `title-sm` | The type style, from `title-sm` to `display`. |
|
|
1202
1259
|
|
|
1203
1260
|
## icon
|
|
@@ -1249,6 +1306,7 @@ A circle with an icon, a required name, and a tooltip that says it.
|
|
|
1249
1306
|
- **size** (input_group): `sm` — 32px: toolbars and compact forms; `md` (default) — 36px: the default; `lg` — 40px; `xl` — 48px: sign-in and setup forms
|
|
1250
1307
|
- **align** (number_input): `end` (default) — Right-aligned tabular digits (default); `start` — Left-aligned
|
|
1251
1308
|
- **size** (otp_input): `md` (default) — 48px cells (default); `sm` — 40px cells
|
|
1309
|
+
- **size** (search_input): `sm` (default) — 32px: toolbars (default); `md` — 36px: a search at the top of a page or dialog; `lg` — 40px; `xl` — 48px
|
|
1252
1310
|
- **kind** (sensitive_input): `secret` (default) — Provider keys and tokens: never autocompleted (default); `password` — Passwords: browser password managers allowed, Caps Lock hint
|
|
1253
1311
|
- **size** (tag_input): `md` (default) — 36px at one row; grows as tags wrap (default)
|
|
1254
1312
|
- **resize** (textarea): `auto` (default) — Grows with its content to 8 lines, then scrolls (default); `vertical` — People can drag it taller
|
|
@@ -1421,13 +1479,13 @@ A multi-line field: radius 14 (multi-line text cannot be a pill), the same mater
|
|
|
1421
1479
|
|
|
1422
1480
|
## kaeso
|
|
1423
1481
|
|
|
1424
|
-
`import { CapabilityIcons, ConversationView, EffectiveAccess, EnvironmentSnippet, KeyDisplay, LimitMeter, ModelLabel, ProviderBadge, ProviderCard, ProviderPicker, RequestTimeline, RightsMatrix, RolePicker, SecretReveal, StatusCode, UsageBreakdown } from "@logicplanes/kaeso-ui/kaeso";`
|
|
1482
|
+
`import { CapabilityIcons, ClientButton, ConversationView, EffectiveAccess, EnvironmentSnippet, GrantSummary, KeyDisplay, LimitMeter, ModelLabel, ProviderBadge, ProviderCard, ProviderPicker, RequestTimeline, RightsMatrix, RolePicker, SecretReveal, StatusCode, UsageBreakdown } from "@logicplanes/kaeso-ui/kaeso";`
|
|
1425
1483
|
|
|
1426
1484
|
- **density** (conversation): `default` (default) — 24px between turns (default); `compact` — 16px, inside sheets
|
|
1427
1485
|
- **layout** (effective_access): `rows` (default) — A row per group: its name, what is granted in words, and how many (default)
|
|
1428
1486
|
- **provider** (identity): `sm` — 16px, inside table cells; `md` (default) — 20px (default); `lg` — 28px; `xl` — 40px: a provider's own page or card
|
|
1429
1487
|
- **secret** (moments): `md` (default) — The one-time secret on a well
|
|
1430
|
-
- **appearance** (provider_picker): `list` (default) — A search field over every provider, always open: a dialog step (default); `select` — A pill that opens the searchable list: forms and toolbars
|
|
1488
|
+
- **appearance** (provider_picker): `list` (default) — A search field over every provider, always open: a dialog step (default); `select` — A pill that opens the searchable list: forms and toolbars; `grid` — Tiles with each provider's mark, connected ones first: the first step of a dialog
|
|
1431
1489
|
- **origin** (rights_matrix): `preset` — Comes from the role; `added` — Added on top of the role; `removed` — Removed from the role; `none` (default) — Not granted
|
|
1432
1490
|
- **mode** (rights_matrix): `edit` (default) — Checkboxes, group toggles and requirement hints (default); `readOnly` — A mark per right and, under it, the roles that grant it
|
|
1433
1491
|
- **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
|
|
@@ -1442,6 +1500,17 @@ A model's capabilities as small icons, each named in a tooltip and read as one l
|
|
|
1442
1500
|
| `capabilities` | `Capability[]` | `[]` | The capabilities: tools, reasoning, vision, pdf, structuredOutput. |
|
|
1443
1501
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1444
1502
|
|
|
1503
|
+
### ClientButton
|
|
1504
|
+
|
|
1505
|
+
An agent client's mark, such as Claude, Cursor or GitHub Copilot, on a raised tile, as a button that opens how to connect it.
|
|
1506
|
+
|
|
1507
|
+
| Prop | Type | Default | Description |
|
|
1508
|
+
|---|---|---|---|
|
|
1509
|
+
| `aria-label` * | `string` | | The client's name; also the tooltip. |
|
|
1510
|
+
| `client` * | `"cursor" \| "claude" \| "github-copilot"` | | Which client's mark it shows. |
|
|
1511
|
+
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1512
|
+
| `onClick` | `(() => void)` | | Opens how to connect the client. |
|
|
1513
|
+
|
|
1445
1514
|
### ConversationView
|
|
1446
1515
|
|
|
1447
1516
|
A model conversation from a request log: role captions, prose, tool calls and results, reasoning, images, refusals. Inline images show; remote ones are links, so viewing a log never fetches them.
|
|
@@ -1477,6 +1546,18 @@ The gateway's base URL and a key placeholder to copy, with snippets per SDK.
|
|
|
1477
1546
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1478
1547
|
| `model` | `string` | | A model id for the snippet. |
|
|
1479
1548
|
|
|
1549
|
+
### GrantSummary
|
|
1550
|
+
|
|
1551
|
+
What an agent or a key may do, one short line each after a check mark, on a group surface.
|
|
1552
|
+
|
|
1553
|
+
| Prop | Type | Default | Description |
|
|
1554
|
+
|---|---|---|---|
|
|
1555
|
+
| `aria-label` * | `string` | | The list's accessible name ("What it can do"). |
|
|
1556
|
+
| `items` * | `readonly ReactNode[]` | | The lines, short and without a final period. |
|
|
1557
|
+
| `action` | `ReactNode` | | A small button after the note, such as Customize. |
|
|
1558
|
+
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1559
|
+
| `footer` | `ReactNode` | | A quiet note under the lines, such as how long it lasts. |
|
|
1560
|
+
|
|
1480
1561
|
### KeyDisplay
|
|
1481
1562
|
|
|
1482
1563
|
A redacted key: mono 13 with its state dot, copy of the redacted form, and its access.
|
|
@@ -1556,7 +1637,7 @@ Choosing a provider from any number of them: a search field over every provider,
|
|
|
1556
1637
|
|---|---|---|---|
|
|
1557
1638
|
| `providers` * | `ProviderPickerOption[]` | | The providers: id, name, whether the organization has connected it, and a short hint such as its key count. |
|
|
1558
1639
|
| `allLabel` | `string` | | Select only: a first option for no provider in particular, such as "All providers"; choosing it reports `null`. |
|
|
1559
|
-
| `appearance` | `"list" \| "select"` | | An always-open list for a dialog step, or a pill that opens
|
|
1640
|
+
| `appearance` | `"list" \| "grid" \| "select"` | | An always-open list for a dialog step, tiles with each provider's mark for a dialog's first step, or a pill that opens the list. |
|
|
1560
1641
|
| `aria-label` | `string` | | What the picker is for, when there is no visible label: it names the list, and the pill, named by the provider it shows, reads it as its description. |
|
|
1561
1642
|
| `autoFocus` | `boolean` | | List only: focuses the search field when it appears. |
|
|
1562
1643
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
@@ -1566,6 +1647,7 @@ Choosing a provider from any number of them: a search field over every provider,
|
|
|
1566
1647
|
| `error` | `ReactNode` | | Deprecated. Errors are toasts, never text under a field: `error` marks the control invalid and stays its description for screen readers, but isn't drawn. Pass `invalid` and toast the message. |
|
|
1567
1648
|
| `label` | `ReactNode` | | The visible label. |
|
|
1568
1649
|
| `layout` | `"horizontal" \| "vertical"` | | The label above the control (`vertical`) or beside it (`horizontal`). |
|
|
1650
|
+
| `onChoose` | `((id: string) => void)` | | With `grid`: called when a tile is pressed or clicked, not when the arrow keys move the choice, so a dialog step can continue at once. |
|
|
1569
1651
|
| `onValueChange` | `((id: string \| null) => void)` | | Called with the chosen provider's id, or `null` for `allLabel`. |
|
|
1570
1652
|
| `optional` | `boolean` | | Adds “Optional” to the label, for forms where most fields are required. |
|
|
1571
1653
|
| `placeholder` | `string` | | The search field's placeholder; in a pill without `allLabel`, also the text shown while nothing is chosen. |
|
|
@@ -1690,7 +1772,7 @@ Label and value pairs (13 secondary label, 14 value), copyable values. Side by s
|
|
|
1690
1772
|
|---|---|---|---|
|
|
1691
1773
|
| `items` * | `KeyValueItem[]` | | The pairs to show. |
|
|
1692
1774
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1693
|
-
| `columns` | `
|
|
1775
|
+
| `columns` | `2 \| 3 \| 4` | `2` | The grid layout's items to a row, from 480px of its container's width. |
|
|
1694
1776
|
| `layout` | `"grid" \| "stacked" \| "columns"` | `columns` | Keys beside values in columns, in a grid, or stacked above them. |
|
|
1695
1777
|
|
|
1696
1778
|
## label
|
|
@@ -1725,8 +1807,8 @@ A responsive grid.
|
|
|
1725
1807
|
|---|---|---|---|
|
|
1726
1808
|
| `align` | `"start" \| "end" \| "center" \| "baseline" \| "stretch"` | `center` | How items line up within their cells. |
|
|
1727
1809
|
| `as` | `ElementType` | | The element or component to render as, such as `section` or `ul`. |
|
|
1728
|
-
| `columns` | `
|
|
1729
|
-
| `gap` | `0 \| 24 \| 20 \| 32 \| 40 \| 4 \|
|
|
1810
|
+
| `columns` | `2 \| 3 \| 4 \| 1 \| 6` | `2` | The number of columns. |
|
|
1811
|
+
| `gap` | `0 \| 2 \| 24 \| 20 \| 32 \| 40 \| 4 \| 6 \| 8 \| 12 \| 16 \| 48 \| 64` | `16` | The space between items, in pixels on the spacing scale. |
|
|
1730
1812
|
|
|
1731
1813
|
### Inline
|
|
1732
1814
|
|
|
@@ -1736,7 +1818,7 @@ A horizontal row that wraps.
|
|
|
1736
1818
|
|---|---|---|---|
|
|
1737
1819
|
| `align` | `"start" \| "end" \| "center" \| "baseline" \| "stretch"` | `center` | How items line up across the row. |
|
|
1738
1820
|
| `as` | `ElementType` | | The element or component to render as, such as `section` or `ul`. |
|
|
1739
|
-
| `gap` | `0 \| 24 \| 20 \| 32 \| 40 \| 4 \|
|
|
1821
|
+
| `gap` | `0 \| 2 \| 24 \| 20 \| 32 \| 40 \| 4 \| 6 \| 8 \| 12 \| 16 \| 48 \| 64` | `16` | The space between items, in pixels on the spacing scale. |
|
|
1740
1822
|
| `justify` | `"start" \| "end" \| "center" \| "between"` | | How items are spread along the main axis. |
|
|
1741
1823
|
| `wrap` | `boolean` | `true` | Lets items wrap onto the next line. |
|
|
1742
1824
|
|
|
@@ -1748,7 +1830,7 @@ A vertical stack.
|
|
|
1748
1830
|
|---|---|---|---|
|
|
1749
1831
|
| `align` | `"start" \| "end" \| "center" \| "baseline" \| "stretch"` | `center` | How items line up across the column. |
|
|
1750
1832
|
| `as` | `ElementType` | | The element or component to render as, such as `section` or `ul`. |
|
|
1751
|
-
| `gap` | `0 \| 24 \| 20 \| 32 \| 40 \| 4 \|
|
|
1833
|
+
| `gap` | `0 \| 2 \| 24 \| 20 \| 32 \| 40 \| 4 \| 6 \| 8 \| 12 \| 16 \| 48 \| 64` | `16` | The space between items, in pixels on the spacing scale. |
|
|
1752
1834
|
| `justify` | `"start" \| "end" \| "center" \| "between"` | | How items are spread along the main axis. |
|
|
1753
1835
|
|
|
1754
1836
|
## link
|
|
@@ -1925,7 +2007,7 @@ Markdown, safely: headings, paragraphs, lists, tasks, code fences (CodeBlock), i
|
|
|
1925
2007
|
| `text` * | `string` | | The Markdown source. Raw HTML in it stays text. |
|
|
1926
2008
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1927
2009
|
| `collapseAfter` | `number` | `24000` | Texts longer than this many characters show their start and "Show all" (24,000 by default; 0 never collapses). |
|
|
1928
|
-
| `headingLevel` | `
|
|
2010
|
+
| `headingLevel` | `2 \| 3 \| 4 \| 1 \| 5 \| 6` | `3` | The heading level `#` becomes (3 by default: below a page's and a section's own headings). |
|
|
1929
2011
|
| `size` | `"lg" \| "body" \| "small"` | `body` | The text size: `small`, `body` or `lg`. |
|
|
1930
2012
|
| `streaming` | `boolean` | `false` | The text is still arriving: nothing collapses, and the tokens aren't cached. |
|
|
1931
2013
|
| `tone` | `"secondary" \| "default"` | `default` | Primary text (`default`) or secondary text (`secondary`). |
|
|
@@ -1934,7 +2016,7 @@ Markdown, safely: headings, paragraphs, lists, tasks, code fences (CodeBlock), i
|
|
|
1934
2016
|
|
|
1935
2017
|
## menu
|
|
1936
2018
|
|
|
1937
|
-
`import { ContextMenu, Menubar } from "@logicplanes/kaeso-ui/menu";`
|
|
2019
|
+
`import { ContextMenu, Menu, Menubar } from "@logicplanes/kaeso-ui/menu";`
|
|
1938
2020
|
|
|
1939
2021
|
- **item** (menu): `default` (default) — An action; `danger` — A destructive action: red text, a red tint on highlight
|
|
1940
2022
|
- **width** (menu): `auto` (default) — 220–360px, from its content (default); `trigger` — As wide as its trigger
|
|
@@ -1942,11 +2024,20 @@ Markdown, safely: headings, paragraphs, lists, tasks, code fences (CodeBlock), i
|
|
|
1942
2024
|
|
|
1943
2025
|
### ContextMenu
|
|
1944
2026
|
|
|
1945
|
-
|
|
2027
|
+
The same menu, opened by a right click, a long press or the context-menu key on the area it wraps.
|
|
1946
2028
|
|
|
1947
2029
|
| Prop | Type | Default | Description |
|
|
1948
2030
|
|---|---|---|---|
|
|
1949
2031
|
| `children` * | `ReactNode` | | The area that opens the menu on a right click or long press. |
|
|
2032
|
+
| `onOpenChange` | `((open: boolean) => void)` | | Called when it opens or closes. |
|
|
2033
|
+
|
|
2034
|
+
### Menu
|
|
2035
|
+
|
|
2036
|
+
A dropdown menu: 16px radius, 34px rows, typeahead, Home/End, loops.
|
|
2037
|
+
|
|
2038
|
+
| Prop | Type | Default | Description |
|
|
2039
|
+
|---|---|---|---|
|
|
2040
|
+
| `children` * | `ReactNode` | | The trigger and the menu's content. |
|
|
1950
2041
|
| `defaultOpen` | `boolean` | | Whether it starts open, when the component keeps its own state. |
|
|
1951
2042
|
| `modal` | `boolean` | | Blocks the rest of the page while the menu is open. |
|
|
1952
2043
|
| `onOpenChange` | `((open: boolean) => void)` | | Called when it opens or closes. |
|
|
@@ -1959,7 +2050,8 @@ A row of menus, as in a desktop app's title bar.
|
|
|
1959
2050
|
| Prop | Type | Default | Description |
|
|
1960
2051
|
|---|---|---|---|
|
|
1961
2052
|
| `children` * | `ReactNode` | | The menus. |
|
|
1962
|
-
| `
|
|
2053
|
+
| `aria-label` | `string` | | The accessible name, for when there is no visible label. |
|
|
2054
|
+
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
1963
2055
|
|
|
1964
2056
|
## meter
|
|
1965
2057
|
|
|
@@ -2308,7 +2400,7 @@ A person's turn: their prompt as quiet text that opens the turn, no bubble. A lo
|
|
|
2308
2400
|
| `children` * | `ReactNode` | | The prompt as it was written: plain text, line breaks kept. |
|
|
2309
2401
|
| `aria-label` | `string` | | The message's accessible name. Defaults to "Prompt" in the provider's language. |
|
|
2310
2402
|
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2311
|
-
| `maxLines` | `0 \|
|
|
2403
|
+
| `maxLines` | `0 \| 2 \| 3 \| 4 \| 6` | `4` | Lines shown before "Show all" (4 by default; 0 shows everything). |
|
|
2312
2404
|
|
|
2313
2405
|
## popover
|
|
2314
2406
|
|
|
@@ -2371,7 +2463,7 @@ A QR code drawn as one SVG path: dark modules on white in both themes, with a qu
|
|
|
2371
2463
|
|
|
2372
2464
|
## radio
|
|
2373
2465
|
|
|
2374
|
-
`import { Radio, RadioCards } from "@logicplanes/kaeso-ui/radio";`
|
|
2466
|
+
`import { Radio, RadioCards, RadioGroup } from "@logicplanes/kaeso-ui/radio";`
|
|
2375
2467
|
|
|
2376
2468
|
- **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
|
|
2377
2469
|
|
|
@@ -2426,6 +2518,24 @@ Choices with descriptions as rows in a settings group.
|
|
|
2426
2518
|
| `orientation` | `"horizontal" \| "vertical"` | `vertical` | Lays the items out in a row (`horizontal`) or a column (`vertical`). |
|
|
2427
2519
|
| `value` | `string` | | The chosen option, when you control it. |
|
|
2428
2520
|
|
|
2521
|
+
### RadioGroup
|
|
2522
|
+
|
|
2523
|
+
The group a set of radios belongs to: one of them is chosen, and the arrow keys move between them.
|
|
2524
|
+
|
|
2525
|
+
| Prop | Type | Default | Description |
|
|
2526
|
+
|---|---|---|---|
|
|
2527
|
+
| `children` * | `ReactNode` | | The radios, one per option. |
|
|
2528
|
+
| `aria-label` | `string` | | The accessible name, for when there is no visible label. |
|
|
2529
|
+
| `aria-labelledby` | `string` | | The id of the element that names it, when its label is elsewhere on the page. |
|
|
2530
|
+
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
2531
|
+
| `defaultValue` | `string` | | The chosen option on first render. |
|
|
2532
|
+
| `disabled` | `boolean` | | Turns off every radio. |
|
|
2533
|
+
| `name` | `string` | | The field name the value is sent under in a form. |
|
|
2534
|
+
| `onValueChange` | `((value: string) => void)` | | Called with the chosen option. |
|
|
2535
|
+
| `orientation` | `"horizontal" \| "vertical"` | `vertical` | Lays the items out in a row (`horizontal`) or a column (`vertical`). |
|
|
2536
|
+
| `value` | `string` | | The chosen option, when you control it. |
|
|
2537
|
+
| `variant` | `"default" \| "cards"` | `default` | A plain list of radios, or rows inside a settings group with the radio at the end (`cards`). |
|
|
2538
|
+
|
|
2429
2539
|
## release-art
|
|
2430
2540
|
|
|
2431
2541
|
`import { ReleaseArt } from "@logicplanes/kaeso-ui/release-art";`
|
|
@@ -2905,15 +3015,21 @@ A pill track and a round thumb that travels in 180ms.
|
|
|
2905
3015
|
`import { Table } from "@logicplanes/kaeso-ui/table";`
|
|
2906
3016
|
|
|
2907
3017
|
- **align** (table): `start` (default) — Text (default); `end` — Numbers
|
|
3018
|
+
- **density** (table): `default` (default) — 12px between columns (default); `compact` — 8px between columns, for reference tables of five or more columns
|
|
2908
3019
|
|
|
2909
3020
|
### Table
|
|
2910
3021
|
|
|
2911
3022
|
A plain table for small amounts of data; use `DataTable` for sorting, selection and many rows.
|
|
2912
3023
|
|
|
3024
|
+
| Prop | Type | Default | Description |
|
|
3025
|
+
|---|---|---|---|
|
|
3026
|
+
| `density` | `"default" \| "compact"` | `default` | 12px between columns (`default`), or 8px (`compact`) for reference tables of five or more columns. |
|
|
3027
|
+
|
|
2913
3028
|
## tabs
|
|
2914
3029
|
|
|
2915
3030
|
`import { PillTabs, Tabs } from "@logicplanes/kaeso-ui/tabs";`
|
|
2916
3031
|
|
|
3032
|
+
- **variant** (pill_tabs): `underline` — Underline tabs for detail pages: 40px, a 2px ink indicator that slides; `pill` (default) — Header tabs: separate 32px pills, the active one filled
|
|
2917
3033
|
- **variant** (tabs): `underline` (default) — Underline tabs for detail pages: 40px, a 2px ink indicator that slides; `pill` — Header tabs: separate 32px pills, the active one filled
|
|
2918
3034
|
|
|
2919
3035
|
### PillTabs
|
|
@@ -3003,7 +3119,7 @@ Text in the type scale.
|
|
|
3003
3119
|
| `tabular` | `boolean` | | Tabular numerals. On by default for `metric`. |
|
|
3004
3120
|
| `tone` | `"success" \| "warning" \| "danger" \| "info" \| "inherit" \| "secondary" \| "default" \| "tertiary"` | `default` | The text color role; status tones go next to words that say the same. |
|
|
3005
3121
|
| `truncate` | `boolean` | | One line with an ellipsis; the full text appears in a tooltip when it is cut. |
|
|
3006
|
-
| `variant` | `"title" \| "display" \| "title-sm" \| "title-lg" \| "body" \| "
|
|
3122
|
+
| `variant` | `"title" \| "display" \| "caption" \| "title-sm" \| "title-lg" \| "body" \| "small" \| "micro" \| "body-lg" \| "metric"` | `body` | The type style, from `micro` to `display`. |
|
|
3007
3123
|
| `weight` | `"medium" \| "regular" \| "semibold"` | | The weight, when it differs from the type style's. |
|
|
3008
3124
|
|
|
3009
3125
|
## theme-image
|
|
@@ -3038,6 +3154,9 @@ System, light or dark, stored as `kaeso:theme`.
|
|
|
3038
3154
|
|
|
3039
3155
|
| Prop | Type | Default | Description |
|
|
3040
3156
|
|---|---|---|---|
|
|
3157
|
+
| `align` | `"start" \| "end"` | `end` | Which edge of the button the menu lines up with: its end (`end`) or its start (`start`), for a button at the left edge. |
|
|
3158
|
+
| `data-force` | `string` | | Forces an interaction state for state matrices: `hover`, `pressed`, `focus`, `open`. |
|
|
3159
|
+
| `side` | `"top" \| "bottom"` | `bottom` | Where the menu opens: below the button (`bottom`), or above it (`top`) when the button sits at the foot of a sidebar. |
|
|
3041
3160
|
| `size` | `"md" \| "sm"` | `sm` | The button's height. |
|
|
3042
3161
|
| `variant` | `"secondary" \| "ghost"` | `ghost` | A filled button (`secondary`) or a quiet one (`ghost`). |
|
|
3043
3162
|
|
|
@@ -3060,6 +3179,23 @@ A select for system, light or dark, stored as `kaeso:theme`, with its label in t
|
|
|
3060
3179
|
| `fullWidth` | `boolean` | | Width of the trigger follows its content (default) or fills the container, as in a sidebar's footer. |
|
|
3061
3180
|
| `size` | `"md" \| "sm"` | `sm` | The height of the field. |
|
|
3062
3181
|
|
|
3182
|
+
## thumbnail
|
|
3183
|
+
|
|
3184
|
+
`import { Thumbnail } from "@logicplanes/kaeso-ui/thumbnail";`
|
|
3185
|
+
|
|
3186
|
+
- **size** (thumbnail): `sm` — 64px: a row or a compact list; `md` (default) — 120px: an image inside a message (default); `lg` — 160px: an image a page is about
|
|
3187
|
+
|
|
3188
|
+
### Thumbnail
|
|
3189
|
+
|
|
3190
|
+
A square image someone sent, such as a photo in a conversation: cropped to fill, on a well with radius 14; when it can't load, its text alternative shows instead.
|
|
3191
|
+
|
|
3192
|
+
| Prop | Type | Default | Description |
|
|
3193
|
+
|---|---|---|---|
|
|
3194
|
+
| `alt` * | `string` | | What the image shows, read by screen readers and shown in its place when it can't load. |
|
|
3195
|
+
| `src` * | `string` | | The image's address, including a data: URL. |
|
|
3196
|
+
| `className` | `string` | | Classes for the layout of the outer element: margin, width and placement, never its look. |
|
|
3197
|
+
| `size` | `"md" \| "sm" \| "lg"` | `md` | The width and height: 64, 120 or 160 pixels. |
|
|
3198
|
+
|
|
3063
3199
|
## timeline
|
|
3064
3200
|
|
|
3065
3201
|
`import { Timeline } from "@logicplanes/kaeso-ui/timeline";`
|
|
@@ -3087,8 +3223,8 @@ Events down a 1px line (the audit log): each event marks the line with a short 3
|
|
|
3087
3223
|
|
|
3088
3224
|
| Prop | Type | Default | Description |
|
|
3089
3225
|
|---|---|---|---|
|
|
3090
|
-
| `limit` | `number` |
|
|
3091
|
-
| `timeout` | `number` |
|
|
3226
|
+
| `limit` | `number` | `3` | How many toasts show at once. |
|
|
3227
|
+
| `timeout` | `number` | `5000` | How long a toast stays, in milliseconds. |
|
|
3092
3228
|
|
|
3093
3229
|
### ToastCapsule
|
|
3094
3230
|
|
|
@@ -3164,7 +3300,7 @@ A short label for a control, shown on hover and focus. Never on disabled element
|
|
|
3164
3300
|
| `disabled` | `boolean` | | Never shows the tooltip. |
|
|
3165
3301
|
| `onOpenChange` | `((open: boolean) => void)` | | Called when it opens or closes. |
|
|
3166
3302
|
| `open` | `boolean` | | Whether it is open, when you control it. |
|
|
3167
|
-
| `shape` | `"pill" \| "multiline"` |
|
|
3303
|
+
| `shape` | `"pill" \| "multiline"` | `pill` | A pill for a short label, or a box for several lines. |
|
|
3168
3304
|
| `shortcut` | `string[] \| string[][]` | | A shortcut shown after the text: `["mod", "k"]` or `[["g"], ["m"]]`. |
|
|
3169
3305
|
| `side` | `"top" \| "bottom" \| "left" \| "right"` | | The side it opens on. |
|
|
3170
3306
|
| `sideOffset` | `number` | | Distance from the trigger in px. |
|
package/ai/icons.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Icon vocabulary
|
|
2
2
|
|
|
3
|
-
Version 0.4.
|
|
3
|
+
Version 0.4.3. Generated from `src/icons/vocabulary.ts`; do not edit. Use the name, never an icon picked by look: `icons.key` always means a key. Hugeicons, Stroke Rounded. Rules: `foundations/icons.md`.
|
|
4
4
|
|
|
5
5
|
## Kaeso objects
|
|
6
6
|
|
|
7
|
-
`key`, `providerKey`, `project`, `organization`, `model`, `playground`, `alias`, `limit`, `budget`, `requestLog`, `usage`, `member`, `members`, `serviceAccount`, `settings`, `audit`, `instance`, `provider`, `route`, `gateway`, `database`, `update`, `security`, `session`, `overview`, `chart`, `home`
|
|
7
|
+
`key`, `providerKey`, `project`, `organization`, `model`, `playground`, `alias`, `limit`, `budget`, `requestLog`, `usage`, `member`, `members`, `serviceAccount`, `agent`, `settings`, `audit`, `instance`, `provider`, `route`, `gateway`, `database`, `update`, `security`, `session`, `overview`, `chart`, `home`
|
|
8
8
|
|
|
9
9
|
## Capabilities
|
|
10
10
|
|
|
@@ -24,5 +24,5 @@ Version 0.4.1. Generated from `src/icons/vocabulary.ts`; do not edit. Use the na
|
|
|
24
24
|
|
|
25
25
|
## Misc
|
|
26
26
|
|
|
27
|
-
`calendar`, `time`, `code`, `mail`, `keyboard`, `help`, `github`, `themeLight`, `themeDark`, `themeSystem`
|
|
27
|
+
`calendar`, `time`, `code`, `mail`, `keyboard`, `help`, `github`, `themeLight`, `themeDark`, `themeSystem`, `language`, `legal`
|
|
28
28
|
|
package/ai/tokens.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @logicplanes/kaeso-ui tokens
|
|
2
2
|
|
|
3
|
-
Version 0.4.
|
|
3
|
+
Version 0.4.3. Generated from `@logicplanes/kaeso-tokens`; do not edit. Components use these through role names (`bg-panel`, `text-fg-secondary`, `h-36`, `rounded-pill`); a raw value never appears in a component. How to use them: `foundations/*.md`.
|
|
4
4
|
|
|
5
5
|
## Neutrals
|
|
6
6
|
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { i as e } from "../chunks/context-BELWW79w.js";
|
|
3
|
-
import { t } from "../chunks/dialog-
|
|
4
|
-
import {
|
|
3
|
+
import { t } from "../chunks/dialog-Cg9A_6SF.js";
|
|
4
|
+
import { forwardRef as n } from "react";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
6
|
//#region src/blocks/delete-resource/delete-resource.tsx
|
|
6
|
-
var
|
|
7
|
+
var i = { confirm: {
|
|
7
8
|
typed: { classes: "" },
|
|
8
9
|
simple: { classes: "" }
|
|
9
|
-
} },
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
title: o === void 0 ?
|
|
10
|
+
} }, a = { confirm: "typed" }, o = /* @__PURE__ */ n(function({ kind: n, name: i, consequence: a, verb: o, confirm: s = "typed", onConfirm: c, trigger: l, open: u, onOpenChange: d, inline: f }, p) {
|
|
11
|
+
let m = e();
|
|
12
|
+
return /* @__PURE__ */ r(t, {
|
|
13
|
+
ref: p,
|
|
14
|
+
title: o === void 0 ? m("deleteResource.deleteTitle", "Delete this {kind}?", { kind: n }) : m("deleteResource.title", "{verb} this {kind}?", {
|
|
14
15
|
verb: o,
|
|
15
|
-
kind:
|
|
16
|
+
kind: n
|
|
16
17
|
}),
|
|
17
18
|
description: a,
|
|
18
|
-
confirmLabel: o === void 0 ?
|
|
19
|
+
confirmLabel: o === void 0 ? m("deleteResource.deleteConfirm", "Delete {kind}", { kind: n }) : m("deleteResource.confirm", "{verb} {kind}", {
|
|
19
20
|
verb: o,
|
|
20
|
-
kind:
|
|
21
|
+
kind: n
|
|
21
22
|
}),
|
|
22
23
|
onConfirm: c,
|
|
23
24
|
tone: "danger",
|
|
@@ -27,9 +28,9 @@ function a({ kind: r, name: i, consequence: a, verb: o, confirm: s = "typed", on
|
|
|
27
28
|
...d ? { onOpenChange: d } : {},
|
|
28
29
|
...f ? { inline: f } : {}
|
|
29
30
|
});
|
|
30
|
-
}
|
|
31
|
-
process.env.NODE_ENV !== "production" && (
|
|
31
|
+
});
|
|
32
|
+
process.env.NODE_ENV !== "production" && (o.displayName = "DeleteResource");
|
|
32
33
|
//#endregion
|
|
33
|
-
export {
|
|
34
|
+
export { o as DeleteResource, a as KAESO_DELETE_RESOURCE_DEFAULT_VARIANTS, i as KAESO_DELETE_RESOURCE_VARIANTS };
|
|
34
35
|
|
|
35
36
|
//# sourceMappingURL=delete-resource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-resource.js","names":["useUiText","KAESO_DELETE_RESOURCE_VARIANTS","KAESO_DELETE_RESOURCE_DEFAULT_VARIANTS","DeleteResource","t","AlertDialog","verb","consequence","confirm","name","trigger","open","onOpenChange","inline"],"sources":["../../src/blocks/delete-resource/delete-resource.tsx"],"sourcesContent":["import type
|
|
1
|
+
{"version":3,"file":"delete-resource.js","names":["useUiText","KAESO_DELETE_RESOURCE_VARIANTS","KAESO_DELETE_RESOURCE_DEFAULT_VARIANTS","DeleteResource","t","AlertDialog","verb","consequence","confirm","name","trigger","open","onOpenChange","inline"],"sources":["../../src/blocks/delete-resource/delete-resource.tsx"],"sourcesContent":["import { forwardRef, type ReactElement, type ReactNode } from \"react\";\nimport { AlertDialog } from \"../../components/dialog/dialog.js\";\nimport { useUiText } from \"../../i18n/context.js\";\n\nexport const KAESO_DELETE_RESOURCE_VARIANTS = {\n confirm: {\n typed: { classes: \"\" },\n simple: { classes: \"\" },\n },\n} as const;\nexport const KAESO_DELETE_RESOURCE_DEFAULT_VARIANTS = { confirm: \"typed\" } as const;\n\nexport interface DeleteResourceProps {\n kind: string;\n name: string;\n consequence: ReactNode;\n verb?: string | undefined;\n confirm?: keyof typeof KAESO_DELETE_RESOURCE_VARIANTS.confirm | undefined;\n onConfirm: () => void | Promise<void>;\n trigger?: ReactElement | undefined;\n open?: boolean | undefined;\n onOpenChange?: ((open: boolean) => void) | undefined;\n inline?: boolean | undefined;\n}\n\nexport const DeleteResource = /* @__PURE__ */ forwardRef<HTMLDivElement, DeleteResourceProps>(function DeleteResource(\n { kind, name, consequence, verb, confirm = \"typed\", onConfirm, trigger, open, onOpenChange, inline },\n ref,\n) {\n const t = useUiText();\n return (\n <AlertDialog\n ref={ref}\n title={\n verb === undefined ? t(\"deleteResource.deleteTitle\", \"Delete this {kind}?\", { kind }) : t(\"deleteResource.title\", \"{verb} this {kind}?\", { verb, kind })\n }\n description={consequence}\n confirmLabel={\n verb === undefined ? t(\"deleteResource.deleteConfirm\", \"Delete {kind}\", { kind }) : t(\"deleteResource.confirm\", \"{verb} {kind}\", { verb, kind })\n }\n onConfirm={onConfirm}\n tone=\"danger\"\n {...(confirm === \"typed\" ? { confirmText: name } : {})}\n {...(trigger ? { trigger } : {})}\n {...(open !== undefined ? { open } : {})}\n {...(onOpenChange ? { onOpenChange } : {})}\n {...(inline ? { inline } : {})}\n />\n );\n});\nif (process.env.NODE_ENV !== \"production\") DeleteResource.displayName = \"DeleteResource\";\n"],"mappings":";;;;;;AAIA,IAAaC,IAAiC,EAC5C,SAAS;CACP,OAAO,EAAE,SAAS,GAAG;CACrB,QAAQ,EAAE,SAAS,GAAG;AACxB,EACF,GACaC,IAAyC,EAAE,SAAS,QAAQ,GAe5DC,IAAiC,kBAAgD,SAC5F,EAAE,SAAM,SAAM,gBAAa,SAAM,aAAU,SAAS,cAAW,YAAS,SAAM,iBAAc,aAC5F,GACA;CACA,IAAMC,IAAIJ,EAAU;CACpB,OACE,kBAACK,GAAD;EACO;EACL,OACEC,MAAS,KAAA,IAAYF,EAAE,8BAA8B,uBAAuB,EAAE,QAAK,CAAC,IAAIA,EAAE,wBAAwB,uBAAuB;GAAE;GAAM;EAAK,CAAC;EAEzJ,aAAaG;EACb,cACED,MAAS,KAAA,IAAYF,EAAE,gCAAgC,iBAAiB,EAAE,QAAK,CAAC,IAAIA,EAAE,0BAA0B,iBAAiB;GAAE;GAAM;EAAK,CAAC;EAEtI;EACX,MAAK;EACL,GAAKI,MAAY,UAAU,EAAE,aAAaC,EAAK,IAAI,CAAC;EACpD,GAAKC,IAAU,EAAE,WAAQ,IAAI,CAAC;EAC9B,GAAKC,MAAS,KAAA,IAAuB,CAAC,IAAZ,EAAE,QAAK;EACjC,GAAKC,IAAe,EAAE,gBAAa,IAAI,CAAC;EACxC,GAAKC,IAAS,EAAE,UAAO,IAAI,CAAC;CAC7B,CAAA;AAEL,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAe,cAAc"}
|
package/dist/blocks/pages.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as e } from "../chunks/cn-
|
|
3
|
-
import { t } from "../chunks/app-frame-
|
|
4
|
-
import { r as n } from "../chunks/page-header-
|
|
5
|
-
import { t as r } from "../chunks/empty-
|
|
6
|
-
import { a as i, t as a } from "../chunks/section-
|
|
2
|
+
import { t as e } from "../chunks/cn-Dj6sRgkF.js";
|
|
3
|
+
import { t } from "../chunks/app-frame-DogGRmsu.js";
|
|
4
|
+
import { r as n } from "../chunks/page-header-DL2y2iZp.js";
|
|
5
|
+
import { t as r } from "../chunks/empty-DvhyMXQq.js";
|
|
6
|
+
import { a as i, t as a } from "../chunks/section-Ce1efbsP.js";
|
|
7
7
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
//#region src/blocks/pages/pages.tsx
|
|
9
9
|
var l = { page: {
|