@kerfjs/ui 5.0.0-beta.9 → 5.0.0-beta.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +540 -132
- package/ai/application-ui-diagnostic-ids-v1.json +113 -0
- package/ai/application-ui-profile-sync.cjs +548 -0
- package/ai/application-ui-profile.d.mts +1 -0
- package/ai/application-ui-profile.d.ts +106 -0
- package/ai/application-ui-profile.defaults.json +96 -0
- package/ai/application-ui-profile.mjs +653 -0
- package/ai/application-ui-profile.schema.json +140 -0
- package/ai/catalog-authoring.json +34 -0
- package/ai/catalog-authoring.schema.json +105 -0
- package/ai/compile-time-contracts-v1.json +149 -0
- package/ai/compile-time-contracts-v1.schema.json +52 -0
- package/ai/component-catalog-extension.schema.json +104 -0
- package/ai/component-catalog.json +4487 -633
- package/ai/component-catalog.schema.json +94 -1
- package/ai/component-class-owners.cjs +83 -0
- package/ai/component-composition-extension.d.ts +7 -0
- package/ai/component-composition-extension.schema.json +7 -0
- package/ai/component-composition-rules.json +520 -0
- package/ai/component-composition.d.ts +129 -0
- package/ai/component-composition.json +7470 -0
- package/ai/component-composition.schema.json +408 -0
- package/ai/components/README.md +172 -0
- package/ai/components/anchored-surface.md +86 -0
- package/ai/components/application-tabs.md +65 -0
- package/ai/components/badge.md +72 -0
- package/ai/components/chip.md +72 -0
- package/ai/components/collapsible-panel.md +102 -0
- package/ai/components/content-item.md +96 -0
- package/ai/components/disclosure-arrow.md +77 -0
- package/ai/components/document-baseline.md +75 -0
- package/ai/components/empty-state.md +80 -0
- package/ai/components/feedback.md +71 -0
- package/ai/components/floating-toolbar.md +82 -0
- package/ai/components/foundation.md +65 -0
- package/ai/components/grid.md +100 -0
- package/ai/components/headers.md +63 -0
- package/ai/components/layout.md +75 -0
- package/ai/components/list-action-row.md +91 -0
- package/ai/components/list-header.md +91 -0
- package/ai/components/list-inset-control.md +74 -0
- package/ai/components/list-inset-text.md +72 -0
- package/ai/components/list-item.md +94 -0
- package/ai/components/list.md +106 -0
- package/ai/components/loading-spinner.md +73 -0
- package/ai/components/lucide-icon.md +97 -0
- package/ai/components/nav-stack.md +105 -0
- package/ai/components/pane.md +106 -0
- package/ai/components/popup-menu.md +171 -0
- package/ai/components/recipe-app-shell.md +57 -0
- package/ai/components/recipe-collapsible-sidebar.md +57 -0
- package/ai/components/recipe-compact-toolbar.md +57 -0
- package/ai/components/recipe-composer-form.md +57 -0
- package/ai/components/recipe-list-detail-dialog.md +57 -0
- package/ai/components/recipe-list-workspace-states.md +57 -0
- package/ai/components/recipe-loading-inspector.md +57 -0
- package/ai/components/recipe-navigation-sidebar.md +57 -0
- package/ai/components/recipe-navigation-stack.md +57 -0
- package/ai/components/recipe-workspace-header.md +57 -0
- package/ai/components/resize.md +106 -0
- package/ai/components/row.md +96 -0
- package/ai/components/segmented-control.md +82 -0
- package/ai/components/select.md +115 -0
- package/ai/components/skeleton.md +84 -0
- package/ai/components/spacer.md +86 -0
- package/ai/components/split-view.md +103 -0
- package/ai/components/state-banner.md +94 -0
- package/ai/components/sunken-panel.md +79 -0
- package/ai/components/surface-scaffold.md +87 -0
- package/ai/components/tab-bar.md +113 -0
- package/ai/components/tab-navigator.md +96 -0
- package/ai/components/tabs.md +95 -0
- package/ai/components/text.md +87 -0
- package/ai/components/token-search-field.md +107 -0
- package/ai/components/toolbar-control-group.md +121 -0
- package/ai/components/toolbar-text.md +98 -0
- package/ai/components/toolbar.md +101 -0
- package/ai/components/value-table.md +73 -0
- package/ai/components/wa-accordion-item.md +55 -0
- package/ai/components/wa-accordion.md +65 -0
- package/ai/components/wa-animated-image.md +55 -0
- package/ai/components/wa-animation.md +55 -0
- package/ai/components/wa-avatar.md +55 -0
- package/ai/components/wa-badge.md +55 -0
- package/ai/components/wa-breadcrumb-item.md +53 -0
- package/ai/components/wa-breadcrumb.md +55 -0
- package/ai/components/wa-button-group.md +59 -0
- package/ai/components/wa-button.md +55 -0
- package/ai/components/wa-callout.md +58 -0
- package/ai/components/wa-card.md +59 -0
- package/ai/components/wa-carousel-item.md +53 -0
- package/ai/components/wa-carousel.md +55 -0
- package/ai/components/wa-checkbox-group.md +55 -0
- package/ai/components/wa-checkbox.md +55 -0
- package/ai/components/wa-color-picker.md +55 -0
- package/ai/components/wa-comparison.md +55 -0
- package/ai/components/wa-copy-button.md +55 -0
- package/ai/components/wa-details.md +61 -0
- package/ai/components/wa-dialog.md +59 -0
- package/ai/components/wa-divider.md +53 -0
- package/ai/components/wa-drawer.md +55 -0
- package/ai/components/wa-dropdown-item.md +60 -0
- package/ai/components/wa-dropdown.md +60 -0
- package/ai/components/wa-format-bytes.md +53 -0
- package/ai/components/wa-format-date.md +53 -0
- package/ai/components/wa-format-number.md +53 -0
- package/ai/components/wa-icon.md +58 -0
- package/ai/components/wa-include.md +53 -0
- package/ai/components/wa-input.md +59 -0
- package/ai/components/wa-intersection-observer.md +53 -0
- package/ai/components/wa-known-date.md +53 -0
- package/ai/components/wa-markdown.md +53 -0
- package/ai/components/wa-mutation-observer.md +53 -0
- package/ai/components/wa-number-input.md +55 -0
- package/ai/components/wa-option.md +59 -0
- package/ai/components/wa-otp-input.md +53 -0
- package/ai/components/wa-page.md +53 -0
- package/ai/components/wa-pagination.md +55 -0
- package/ai/components/wa-popover.md +55 -0
- package/ai/components/wa-popup.md +53 -0
- package/ai/components/wa-progress-bar.md +53 -0
- package/ai/components/wa-progress-ring.md +53 -0
- package/ai/components/wa-qr-code.md +53 -0
- package/ai/components/wa-radio-group.md +59 -0
- package/ai/components/wa-radio.md +55 -0
- package/ai/components/wa-random-content.md +53 -0
- package/ai/components/wa-rating.md +55 -0
- package/ai/components/wa-relative-time.md +53 -0
- package/ai/components/wa-resize-observer.md +53 -0
- package/ai/components/wa-scroller.md +53 -0
- package/ai/components/wa-select.md +63 -0
- package/ai/components/wa-skeleton.md +53 -0
- package/ai/components/wa-slider.md +55 -0
- package/ai/components/wa-spinner.md +58 -0
- package/ai/components/wa-split-panel.md +58 -0
- package/ai/components/wa-switch.md +53 -0
- package/ai/components/wa-tab-group.md +69 -0
- package/ai/components/wa-tab-panel.md +60 -0
- package/ai/components/wa-tab.md +59 -0
- package/ai/components/wa-tag.md +59 -0
- package/ai/components/wa-textarea.md +53 -0
- package/ai/components/wa-time-input.md +55 -0
- package/ai/components/wa-toast-item.md +60 -0
- package/ai/components/wa-toast.md +60 -0
- package/ai/components/wa-tooltip.md +55 -0
- package/ai/components/wa-tree-item.md +55 -0
- package/ai/components/wa-tree.md +55 -0
- package/ai/components/wa-zoomable-frame.md +55 -0
- package/ai/components/workbench.md +119 -0
- package/ai/public-api-signatures-v1.md +2835 -351
- package/ai/skill.md +401 -63
- package/ai/webawesome-jsx-signatures-v1.md +9 -2
- package/analyzer/cli.mjs +49 -0
- package/analyzer/component-ownership.d.mts +72 -0
- package/analyzer/component-ownership.mjs +429 -0
- package/analyzer/index.d.mts +53 -0
- package/analyzer/index.mjs +2346 -0
- package/analyzer/loud-pairs.d.mts +49 -0
- package/analyzer/loud-pairs.mjs +357 -0
- package/analyzer/report.schema.json +66 -0
- package/analyzer/selectors.d.mts +21 -0
- package/analyzer/selectors.mjs +212 -0
- package/catalog-projection-cli.mjs +96 -0
- package/catalog-projection.d.mts +55 -0
- package/catalog-projection.mjs +62 -0
- package/dist/anchored-surface.d.ts +30 -0
- package/dist/anchored-surface.js +3 -0
- package/dist/anchored-surface.js.map +1 -0
- package/dist/app-tab.d.ts +39 -4
- package/dist/app-tab.js +2 -1
- package/dist/badge.d.ts +54 -0
- package/dist/badge.js +3 -0
- package/dist/badge.js.map +1 -0
- package/dist/browser/anchored-surface.js +3 -0
- package/dist/browser/badge.js +3 -0
- package/dist/browser/catalog.js +28 -0
- package/dist/browser/chip.js +3 -0
- package/dist/browser/collapsible-panel.js +9 -0
- package/dist/browser/content-item.js +3 -0
- package/dist/browser/floating-toolbar.js +3 -0
- package/dist/browser/grid.js +3 -0
- package/dist/browser/list-action-row.js +1 -0
- package/dist/browser/list-header.js +3 -1
- package/dist/browser/list-inset-control.js +3 -0
- package/dist/browser/list-inset-text.js +3 -0
- package/dist/browser/list-item.js +1 -0
- package/dist/browser/list.js +3 -0
- package/dist/browser/nav-stack.js +11 -0
- package/dist/browser/pane.js +3 -0
- package/dist/browser/popup-menu.js +3 -0
- package/dist/browser/row.js +3 -0
- package/dist/browser/segmented-control.js +0 -1
- package/dist/browser/select.js +2 -1
- package/dist/browser/spacer.js +3 -0
- package/dist/browser/split-view.js +13 -0
- package/dist/browser/state-banner.js +1 -0
- package/dist/browser/sunken-panel.js +3 -0
- package/dist/browser/surface-scaffold.js +3 -0
- package/dist/browser/tab-navigator.js +4 -0
- package/dist/browser/text.js +3 -0
- package/dist/browser/toolbar-control-group.js +1 -0
- package/dist/browser/workbench.js +14 -0
- package/dist/catalog-resources.d.ts +48 -0
- package/dist/catalog-resources.js +22 -0
- package/dist/catalog-resources.js.map +1 -0
- package/dist/catalog.d.ts +76 -103
- package/dist/catalog.js +566 -87
- package/dist/catalog.js.map +1 -1
- package/dist/chip.d.ts +36 -0
- package/dist/chip.js +3 -0
- package/dist/chip.js.map +1 -0
- package/dist/chunk-2GOCOLQL.js +270 -0
- package/dist/chunk-2GOCOLQL.js.map +1 -0
- package/dist/{chunk-56RJXPHG.js → chunk-2YPPNFYT.js} +7 -4
- package/dist/chunk-2YPPNFYT.js.map +1 -0
- package/dist/chunk-3CXRQAYT.js +288 -0
- package/dist/chunk-3CXRQAYT.js.map +1 -0
- package/dist/chunk-3DXHNLME.js +69 -0
- package/dist/chunk-3DXHNLME.js.map +1 -0
- package/dist/chunk-3PO7JEK7.js +188 -0
- package/dist/chunk-3PO7JEK7.js.map +1 -0
- package/dist/chunk-3XPGJUUQ.js +37 -0
- package/dist/chunk-3XPGJUUQ.js.map +1 -0
- package/dist/chunk-4Y4L5YEI.js +66 -0
- package/dist/chunk-4Y4L5YEI.js.map +1 -0
- package/dist/chunk-5BZBIRQG.js +452 -0
- package/dist/chunk-5BZBIRQG.js.map +1 -0
- package/dist/chunk-6IVNMC6R.js +19 -0
- package/dist/chunk-6IVNMC6R.js.map +1 -0
- package/dist/chunk-7QQ3HE47.js +17 -0
- package/dist/chunk-7QQ3HE47.js.map +1 -0
- package/dist/chunk-A7DYEERU.js +59 -0
- package/dist/chunk-A7DYEERU.js.map +1 -0
- package/dist/chunk-AN5IWMTM.js +24 -0
- package/dist/chunk-AN5IWMTM.js.map +1 -0
- package/dist/chunk-B3TROLC2.js +104 -0
- package/dist/chunk-B3TROLC2.js.map +1 -0
- package/dist/chunk-BYHGRKC3.js +44 -0
- package/dist/chunk-BYHGRKC3.js.map +1 -0
- package/dist/chunk-CD5TOO22.js +82 -0
- package/dist/chunk-CD5TOO22.js.map +1 -0
- package/dist/chunk-CEJ5FK6G.js +288 -0
- package/dist/chunk-CEJ5FK6G.js.map +1 -0
- package/dist/chunk-DL55BSQX.js +52 -0
- package/dist/chunk-DL55BSQX.js.map +1 -0
- package/dist/chunk-DQDTZE4W.js +70 -0
- package/dist/chunk-DQDTZE4W.js.map +1 -0
- package/dist/chunk-FL6J644M.js +116 -0
- package/dist/chunk-FL6J644M.js.map +1 -0
- package/dist/chunk-GPCAXYMT.js +165 -0
- package/dist/chunk-GPCAXYMT.js.map +1 -0
- package/dist/chunk-GS2QD3N7.js +14 -0
- package/dist/chunk-GS2QD3N7.js.map +1 -0
- package/dist/chunk-H45DAZBL.js +491 -0
- package/dist/chunk-H45DAZBL.js.map +1 -0
- package/dist/chunk-IM3GKYOG.js +202 -0
- package/dist/chunk-IM3GKYOG.js.map +1 -0
- package/dist/chunk-IOS2NXW7.js +53 -0
- package/dist/chunk-IOS2NXW7.js.map +1 -0
- package/dist/chunk-J3AWE5I4.js +50 -0
- package/dist/chunk-J3AWE5I4.js.map +1 -0
- package/dist/chunk-JOR5LGYE.js +55 -0
- package/dist/chunk-JOR5LGYE.js.map +1 -0
- package/dist/chunk-KAJVVN7Q.js +138 -0
- package/dist/chunk-KAJVVN7Q.js.map +1 -0
- package/dist/chunk-KL3W6FUN.js +506 -0
- package/dist/chunk-KL3W6FUN.js.map +1 -0
- package/dist/{chunk-7BR3DO2A.js → chunk-LAZLBC2Q.js} +14 -5
- package/dist/chunk-LAZLBC2Q.js.map +1 -0
- package/dist/chunk-LFPW4YC6.js +222 -0
- package/dist/chunk-LFPW4YC6.js.map +1 -0
- package/dist/chunk-MN3POJFN.js +44 -0
- package/dist/chunk-MN3POJFN.js.map +1 -0
- package/dist/chunk-MORVLMDG.js +59 -0
- package/dist/chunk-MORVLMDG.js.map +1 -0
- package/dist/chunk-MTCTX25G.js +139 -0
- package/dist/chunk-MTCTX25G.js.map +1 -0
- package/dist/chunk-MXNIVEVL.js +48 -0
- package/dist/chunk-MXNIVEVL.js.map +1 -0
- package/dist/chunk-NJZMR7HM.js +135 -0
- package/dist/chunk-NJZMR7HM.js.map +1 -0
- package/dist/chunk-NMWDHZVM.js +35 -0
- package/dist/chunk-NMWDHZVM.js.map +1 -0
- package/dist/chunk-NP3FSLNX.js +58 -0
- package/dist/chunk-NP3FSLNX.js.map +1 -0
- package/dist/{chunk-YGN7OMLT.js → chunk-NS2TBYM4.js} +8 -5
- package/dist/chunk-NS2TBYM4.js.map +1 -0
- package/dist/chunk-O27D24CA.js +250 -0
- package/dist/chunk-O27D24CA.js.map +1 -0
- package/dist/chunk-PGL6TXFW.js +48 -0
- package/dist/chunk-PGL6TXFW.js.map +1 -0
- package/dist/chunk-QQICWWNX.js +71 -0
- package/dist/chunk-QQICWWNX.js.map +1 -0
- package/dist/chunk-S3ECMF23.js +33 -0
- package/dist/chunk-S3ECMF23.js.map +1 -0
- package/dist/chunk-S4ZGTDSG.js +18 -0
- package/dist/chunk-S4ZGTDSG.js.map +1 -0
- package/dist/chunk-SJW5BCEQ.js +174 -0
- package/dist/chunk-SJW5BCEQ.js.map +1 -0
- package/dist/chunk-TTGIHMDR.js +149 -0
- package/dist/chunk-TTGIHMDR.js.map +1 -0
- package/dist/chunk-U657IHFB.js +158 -0
- package/dist/chunk-U657IHFB.js.map +1 -0
- package/dist/chunk-VLGQIYZ5.js +295 -0
- package/dist/chunk-VLGQIYZ5.js.map +1 -0
- package/dist/chunk-XK4E225T.js +34 -0
- package/dist/chunk-XK4E225T.js.map +1 -0
- package/dist/chunk-XKZPBRU7.js +135 -0
- package/dist/chunk-XKZPBRU7.js.map +1 -0
- package/dist/chunk-XNXKIPU5.js +779 -0
- package/dist/chunk-XNXKIPU5.js.map +1 -0
- package/dist/chunk-Y43B6DS3.js +66 -0
- package/dist/chunk-Y43B6DS3.js.map +1 -0
- package/dist/chunk-Y6KT7ZTR.js +109 -0
- package/dist/chunk-Y6KT7ZTR.js.map +1 -0
- package/dist/chunk-YOKEL75M.js +48 -0
- package/dist/chunk-YOKEL75M.js.map +1 -0
- package/dist/collapsible-panel.d.ts +137 -0
- package/dist/collapsible-panel.js +136 -0
- package/dist/collapsible-panel.js.map +1 -0
- package/dist/content-item.d.ts +99 -0
- package/dist/content-item.js +4 -0
- package/dist/content-item.js.map +1 -0
- package/dist/css-values.d.ts +119 -0
- package/dist/css-values.js +3 -0
- package/dist/css-values.js.map +1 -0
- package/dist/device-class.js +34 -6
- package/dist/device-class.js.map +1 -1
- package/dist/disclosure-arrow.d.ts +6 -1
- package/dist/disclosure-arrow.js +2 -1
- package/dist/empty-state.d.ts +5 -2
- package/dist/empty-state.js +2 -1
- package/dist/flex-alignment-4ms8ZbV8.d.ts +5 -0
- package/dist/floating-toolbar.d.ts +51 -0
- package/dist/floating-toolbar.js +3 -0
- package/dist/floating-toolbar.js.map +1 -0
- package/dist/grid.d.ts +58 -0
- package/dist/grid.js +6 -0
- package/dist/grid.js.map +1 -0
- package/dist/help-tags-register.d.ts +13 -0
- package/dist/help-tags-register.js +9 -0
- package/dist/help-tags-register.js.map +1 -0
- package/dist/index.d.ts +41 -17
- package/dist/index.js +46 -23
- package/dist/list-action-row.d.ts +15 -3
- package/dist/list-action-row.js +4 -1
- package/dist/list-header.d.ts +65 -10
- package/dist/list-header.js +4 -1
- package/dist/list-inset-control.d.ts +22 -0
- package/dist/list-inset-control.js +3 -0
- package/dist/list-inset-control.js.map +1 -0
- package/dist/list-inset-text.d.ts +30 -0
- package/dist/list-inset-text.js +4 -0
- package/dist/list-inset-text.js.map +1 -0
- package/dist/list-item.d.ts +34 -5
- package/dist/list-item.js +4 -1
- package/dist/list.d.ts +64 -0
- package/dist/list.js +7 -0
- package/dist/list.js.map +1 -0
- package/dist/loading-spinner.d.ts +12 -2
- package/dist/loading-spinner.js +2 -1
- package/dist/lucide-icon.d.ts +14 -2
- package/dist/lucide-icon.js +2 -1
- package/dist/nav-stack-BvSKY448.d.ts +109 -0
- package/dist/nav-stack.d.ts +13 -38
- package/dist/nav-stack.js +11 -1
- package/dist/pane.d.ts +116 -0
- package/dist/pane.js +4 -0
- package/dist/pane.js.map +1 -0
- package/dist/panel-toolbar-CL9tYOkh.d.ts +72 -0
- package/dist/popup-menu-register.d.ts +9 -0
- package/dist/popup-menu-register.js +244 -0
- package/dist/popup-menu-register.js.map +1 -0
- package/dist/popup-menu.d.ts +100 -0
- package/dist/popup-menu.js +3 -0
- package/dist/popup-menu.js.map +1 -0
- package/dist/resizable-region.d.ts +32 -3
- package/dist/resizable-region.js +1 -1
- package/dist/row.d.ts +49 -0
- package/dist/row.js +7 -0
- package/dist/row.js.map +1 -0
- package/dist/segmented-control.d.ts +12 -9
- package/dist/segmented-control.js +1 -2
- package/dist/select-register.d.ts +5 -1
- package/dist/select-register.js +247 -3
- package/dist/select-register.js.map +1 -1
- package/dist/select.d.ts +103 -8
- package/dist/select.js +3 -1
- package/dist/semantic-content-BbzjvSu9.d.ts +14 -0
- package/dist/semantic-tone-CdW013KF.d.ts +4 -0
- package/dist/sides-BPSWde0A.d.ts +4 -0
- package/dist/skeleton.d.ts +14 -7
- package/dist/skeleton.js +2 -1
- package/dist/spacer.d.ts +18 -0
- package/dist/spacer.js +4 -0
- package/dist/spacer.js.map +1 -0
- package/dist/split-view.d.ts +43 -6
- package/dist/split-view.js +125 -10
- package/dist/split-view.js.map +1 -1
- package/dist/state-banner.d.ts +21 -7
- package/dist/state-banner.js +3 -1
- package/dist/styles/anchored-surface.css +15 -0
- package/dist/styles/app-tab.css +232 -0
- package/dist/styles/badge.css +118 -0
- package/dist/styles/catalog/components/catalog-example-stack.css +9 -0
- package/dist/styles/catalog/components/catalog-example.css +167 -0
- package/dist/styles/catalog/components/catalog-stage.css +54 -0
- package/dist/styles/catalog/components/catalog.css +26 -0
- package/dist/styles/catalog.css +5 -482
- package/dist/styles/chip.css +138 -0
- package/dist/styles/collapsible-panel.css +580 -0
- package/dist/styles/components/actions/floating-toolbar/floating-toolbar.css +119 -0
- package/dist/styles/components/actions/popup-menu/popup-menu.css +285 -0
- package/dist/styles/components/actions/toolbar/toolbar.css +417 -0
- package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +891 -0
- package/dist/styles/components/actions/toolbar-text/toolbar-text.css +171 -0
- package/dist/styles/components/collections/list/list.css +136 -0
- package/dist/styles/components/collections/list-action-row/list-action-row.css +258 -0
- package/dist/styles/components/collections/list-header/list-header.css +229 -0
- package/dist/styles/components/collections/list-inset-control/list-inset-control.css +30 -0
- package/dist/styles/components/collections/list-inset-text/list-inset-text.css +29 -0
- package/dist/styles/components/collections/list-item/list-item.css +255 -0
- package/dist/styles/components/data-display/value-table/value-table.css +107 -0
- package/dist/styles/components/feedback/anchored-surface/anchored-surface.css +15 -0
- package/dist/styles/components/feedback/badge/badge.css +118 -0
- package/dist/styles/components/feedback/chip/chip.css +138 -0
- package/dist/styles/components/feedback/empty-state/empty-state.css +47 -0
- package/dist/styles/components/feedback/loading-spinner/loading-spinner.css +25 -0
- package/dist/styles/components/feedback/skeleton/skeleton.css +92 -0
- package/dist/styles/components/feedback/state-banner/state-banner.css +248 -0
- package/dist/styles/components/forms/segmented-control/segmented-control.css +196 -0
- package/dist/styles/components/forms/select/select.css +454 -0
- package/dist/styles/components/forms/token-search-field/token-search-field.css +392 -0
- package/dist/styles/components/layout/collapsible-panel/collapsible-panel.css +580 -0
- package/dist/styles/components/layout/grid/grid.css +88 -0
- package/dist/styles/components/layout/pane/pane.css +309 -0
- package/dist/styles/components/layout/resizable-region/resizable-region.css +545 -0
- package/dist/styles/components/layout/row/row.css +114 -0
- package/dist/styles/components/layout/spacer/spacer.css +11 -0
- package/dist/styles/components/layout/split-view/split-view.css +146 -0
- package/dist/styles/components/layout/workbench/workbench.css +1092 -0
- package/dist/styles/components/media/lucide-icon/lucide-icon.css +15 -0
- package/dist/styles/components/navigation/app-tab/app-tab.css +384 -0
- package/dist/styles/components/navigation/disclosure-arrow/disclosure-arrow.css +23 -0
- package/dist/styles/components/navigation/nav-stack/nav-stack.css +258 -0
- package/dist/styles/components/navigation/tab-bar/tab-bar.css +186 -0
- package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +253 -0
- package/dist/styles/components/surfaces/content-item/content-item.css +120 -0
- package/dist/styles/components/surfaces/sunken-panel/sunken-panel.css +34 -0
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +111 -0
- package/dist/styles/components/typography/text/text.css +158 -0
- package/dist/styles/content-item.css +120 -0
- package/dist/styles/document.css +33 -0
- package/dist/styles/floating-toolbar.css +119 -0
- package/dist/styles/foundation.css +187 -45
- package/dist/styles/grid.css +88 -0
- package/dist/styles/layout.css +3 -41
- package/dist/styles/list-action-row.css +104 -6
- package/dist/styles/list-header.css +128 -59
- package/dist/styles/list-inset-control.css +30 -0
- package/dist/styles/list-inset-text.css +29 -0
- package/dist/styles/list-item.css +165 -33
- package/dist/styles/list.css +136 -0
- package/dist/styles/loading-spinner.css +4 -0
- package/dist/styles/lucide-icon.css +9 -0
- package/dist/styles/nav-stack.css +196 -50
- package/dist/styles/pane.css +309 -0
- package/dist/styles/popup-menu.css +285 -0
- package/dist/styles/resizable-region.css +438 -4
- package/dist/styles/row.css +114 -0
- package/dist/styles/segmented-control.css +36 -9
- package/dist/styles/select.css +337 -21
- package/dist/styles/skeleton.css +64 -3
- package/dist/styles/spacer.css +11 -0
- package/dist/styles/split-view.css +114 -3
- package/dist/styles/state-banner.css +94 -19
- package/dist/styles/styles.css +10 -1
- package/dist/styles/sunken-panel.css +34 -0
- package/dist/styles/surface-scaffold.css +111 -0
- package/dist/styles/tab-bar.css +150 -9
- package/dist/styles/tab-navigator.css +253 -0
- package/dist/styles/text.css +158 -0
- package/dist/styles/token-search-field.css +167 -56
- package/dist/styles/toolbar-control-group.css +710 -30
- package/dist/styles/toolbar-text.css +139 -8
- package/dist/styles/toolbar.css +367 -11
- package/dist/styles/value-table.css +39 -7
- package/dist/styles/webawesome.css +392 -17
- package/dist/styles/workbench.css +1005 -7
- package/dist/sunken-panel.d.ts +31 -0
- package/dist/sunken-panel.js +3 -0
- package/dist/sunken-panel.js.map +1 -0
- package/dist/surface-scaffold-register.d.ts +4 -0
- package/dist/surface-scaffold-register.js +59 -0
- package/dist/surface-scaffold-register.js.map +1 -0
- package/dist/surface-scaffold.d.ts +38 -0
- package/dist/surface-scaffold.js +3 -0
- package/dist/surface-scaffold.js.map +1 -0
- package/dist/tab-bar.d.ts +39 -6
- package/dist/tab-bar.js +1 -1
- package/dist/tab-navigator.d.ts +93 -0
- package/dist/tab-navigator.js +97 -0
- package/dist/tab-navigator.js.map +1 -0
- package/dist/text.d.ts +63 -0
- package/dist/text.js +3 -0
- package/dist/text.js.map +1 -0
- package/dist/token-search-field.d.ts +3 -43
- package/dist/token-search-field.js +2 -1
- package/dist/token-search-model-DTcTXWMS.d.ts +154 -0
- package/dist/token-search-model.d.ts +3 -0
- package/dist/token-search-model.js +3 -0
- package/dist/token-search-model.js.map +1 -0
- package/dist/toolbar-control-group.d.ts +89 -7
- package/dist/toolbar-control-group.js +3 -1
- package/dist/toolbar-text.d.ts +45 -9
- package/dist/toolbar-text.js +2 -1
- package/dist/toolbar.d.ts +59 -7
- package/dist/toolbar.js +1 -1
- package/dist/types-oLe_N1w0.d.ts +130 -0
- package/dist/value-table.d.ts +11 -3
- package/dist/value-table.js +2 -1
- package/dist/webawesome.d.ts +8 -1
- package/dist/wire-catalog.d.ts +76 -4
- package/dist/wire-catalog.js +250 -14
- package/dist/wire-catalog.js.map +1 -1
- package/dist/wire-content-items.d.ts +11 -0
- package/dist/wire-content-items.js +139 -0
- package/dist/wire-content-items.js.map +1 -0
- package/dist/wire-nav-stack.d.ts +4 -1
- package/dist/wire-nav-stack.js +191 -15
- package/dist/wire-nav-stack.js.map +1 -1
- package/dist/wire-resizable-regions.d.ts +2 -1
- package/dist/wire-resizable-regions.js +2 -1
- package/dist/wire-scroll-dividers.d.ts +72 -0
- package/dist/wire-scroll-dividers.js +3 -0
- package/dist/wire-scroll-dividers.js.map +1 -0
- package/dist/wire-sidebar.d.ts +63 -0
- package/dist/wire-sidebar.js +231 -0
- package/dist/wire-sidebar.js.map +1 -0
- package/dist/wire-tab-bars.d.ts +19 -2
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-tab-navigator.d.ts +11 -0
- package/dist/wire-tab-navigator.js +21 -0
- package/dist/wire-tab-navigator.js.map +1 -0
- package/dist/wire-token-search-fields.d.ts +65 -3
- package/dist/wire-token-search-fields.js +2 -1
- package/dist/wire-toolbar-visibility.d.ts +13 -0
- package/dist/wire-toolbar-visibility.js +3 -0
- package/dist/wire-toolbar-visibility.js.map +1 -0
- package/dist/wire-workbench.d.ts +116 -0
- package/dist/wire-workbench.js +6 -0
- package/dist/wire-workbench.js.map +1 -0
- package/dist/workbench.d.ts +246 -9
- package/dist/workbench.js +18 -15
- package/dist/workbench.js.map +1 -1
- package/docs/accessibility.md +495 -24
- package/docs/anchored-surface.md +51 -0
- package/docs/app-layouts.md +141 -10
- package/docs/apple-hig.md +1 -0
- package/docs/catalog.md +395 -62
- package/docs/collapsible-panel.md +382 -0
- package/docs/component-contract.md +740 -53
- package/docs/component-integration.md +75 -0
- package/docs/component-selection.md +682 -97
- package/docs/design/templates/empty-state/filtered-dark.svg +1 -0
- package/docs/design/templates/empty-state/filtered.svg +1 -0
- package/docs/design/templates/empty-state/with-action-dark.svg +1 -0
- package/docs/design/templates/empty-state/with-action.svg +1 -0
- package/docs/design/templates/empty-state-dark.svg +1 -0
- package/docs/design/templates/empty-state.svg +1 -0
- package/docs/design/templates/list/compact-dark.svg +1 -0
- package/docs/design/templates/list/compact.svg +1 -0
- package/docs/design/templates/list/stack-dark.svg +1 -0
- package/docs/design/templates/list/stack.svg +1 -0
- package/docs/design/templates/list-action-row/default-dark.svg +1 -0
- package/docs/design/templates/list-action-row/default.svg +1 -0
- package/docs/design/templates/list-action-row/selected-dark.svg +1 -0
- package/docs/design/templates/list-action-row/selected.svg +1 -0
- package/docs/design/templates/list-action-row-dark.svg +1 -0
- package/docs/design/templates/list-action-row.svg +1 -0
- package/docs/design/templates/list-dark.svg +1 -0
- package/docs/design/templates/list-header/action-dark.svg +1 -0
- package/docs/design/templates/list-header/action.svg +1 -0
- package/docs/design/templates/list-header/count-dark.svg +1 -0
- package/docs/design/templates/list-header/count.svg +1 -0
- package/docs/design/templates/list-header/inline-action-dark.svg +1 -0
- package/docs/design/templates/list-header/inline-action.svg +1 -0
- package/docs/design/templates/list-header/size-l-dark.svg +1 -0
- package/docs/design/templates/list-header/size-l.svg +1 -0
- package/docs/design/templates/list-header/size-m-dark.svg +1 -0
- package/docs/design/templates/list-header/size-m.svg +1 -0
- package/docs/design/templates/list-header/size-xl-dark.svg +1 -0
- package/docs/design/templates/list-header/size-xl.svg +1 -0
- package/docs/design/templates/list-header/size-xs-dark.svg +1 -0
- package/docs/design/templates/list-header/size-xs.svg +1 -0
- package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -0
- package/docs/design/templates/list-header/toggle-collapsed.svg +1 -0
- package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -0
- package/docs/design/templates/list-header/toggle-expanded.svg +1 -0
- package/docs/design/templates/list-header-dark.svg +1 -0
- package/docs/design/templates/list-header.svg +1 -0
- package/docs/design/templates/list-item/default-dark.svg +1 -0
- package/docs/design/templates/list-item/default.svg +1 -0
- package/docs/design/templates/list-item/multiline-dark.svg +1 -0
- package/docs/design/templates/list-item/multiline.svg +1 -0
- package/docs/design/templates/list-item/selected-dark.svg +1 -0
- package/docs/design/templates/list-item/selected.svg +1 -0
- package/docs/design/templates/list-item/trailing-dark.svg +1 -0
- package/docs/design/templates/list-item/trailing.svg +1 -0
- package/docs/design/templates/list-item-dark.svg +1 -0
- package/docs/design/templates/list-item.svg +1 -0
- package/docs/design/templates/list.svg +1 -0
- package/docs/design/templates/segmented-control/equal-dark.svg +1 -0
- package/docs/design/templates/segmented-control/equal.svg +1 -0
- package/docs/design/templates/segmented-control/pill-small-dark.svg +1 -0
- package/docs/design/templates/segmented-control/pill-small.svg +1 -0
- package/docs/design/templates/segmented-control-dark.svg +1 -0
- package/docs/design/templates/segmented-control.svg +1 -0
- package/docs/design/templates/skeleton/avatar-dark.svg +1 -0
- package/docs/design/templates/skeleton/avatar.svg +1 -0
- package/docs/design/templates/skeleton/block-dark.svg +1 -0
- package/docs/design/templates/skeleton/block.svg +1 -0
- package/docs/design/templates/skeleton/lines-dark.svg +1 -0
- package/docs/design/templates/skeleton/lines.svg +1 -0
- package/docs/design/templates/skeleton-dark.svg +1 -0
- package/docs/design/templates/skeleton.svg +1 -0
- package/docs/design/templates/state-banner/danger-dark.svg +1 -0
- package/docs/design/templates/state-banner/danger.svg +1 -0
- package/docs/design/templates/state-banner/info-badge-dark.svg +1 -0
- package/docs/design/templates/state-banner/info-badge.svg +1 -0
- package/docs/design/templates/state-banner/info-dark.svg +1 -0
- package/docs/design/templates/state-banner/info.svg +1 -0
- package/docs/design/templates/state-banner/success-dark.svg +1 -0
- package/docs/design/templates/state-banner/success.svg +1 -0
- package/docs/design/templates/state-banner/warning-dark.svg +1 -0
- package/docs/design/templates/state-banner/warning.svg +1 -0
- package/docs/design/templates/state-banner-dark.svg +1 -0
- package/docs/design/templates/state-banner.svg +1 -0
- package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -0
- package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -0
- package/docs/design/templates/tab-bar-dark.svg +1 -0
- package/docs/design/templates/tab-bar.svg +1 -0
- package/docs/design/templates/token-search-field/empty-dark.svg +1 -0
- package/docs/design/templates/token-search-field/empty.svg +1 -0
- package/docs/design/templates/token-search-field/tokens-dark.svg +1 -0
- package/docs/design/templates/token-search-field/tokens.svg +1 -0
- package/docs/design/templates/token-search-field-dark.svg +1 -0
- package/docs/design/templates/token-search-field.svg +1 -0
- package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -0
- package/docs/design/templates/toolbar/title-and-actions.svg +1 -0
- package/docs/design/templates/toolbar/width-visibility-320-dark.svg +1 -0
- package/docs/design/templates/toolbar/width-visibility-320.svg +1 -0
- package/docs/design/templates/toolbar/width-visibility-600-dark.svg +1 -0
- package/docs/design/templates/toolbar/width-visibility-600.svg +1 -0
- package/docs/design/templates/toolbar-control-group/borderless-single-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/borderless-single.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-buttons-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-buttons.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-brand-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-brand.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-danger-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-danger.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-neutral-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-neutral.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-success-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-success.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-warning-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-warning.svg +1 -0
- package/docs/design/templates/toolbar-control-group/push-buttons-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/push-buttons.svg +1 -0
- package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/with-text.svg +1 -0
- package/docs/design/templates/toolbar-control-group-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group.svg +1 -0
- package/docs/design/templates/toolbar-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/dark-tone-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/dark-tone.svg +1 -0
- package/docs/design/templates/toolbar-text/default-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/default.svg +1 -0
- package/docs/design/templates/toolbar-text/large-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/large.svg +1 -0
- package/docs/design/templates/toolbar-text/small-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/small.svg +1 -0
- package/docs/design/templates/toolbar-text-dark.svg +1 -0
- package/docs/design/templates/toolbar-text.svg +1 -0
- package/docs/design/templates/toolbar.svg +1 -0
- package/docs/design/templates/value-table/details-dark.svg +1 -0
- package/docs/design/templates/value-table/details.svg +1 -0
- package/docs/design/templates/value-table-dark.svg +1 -0
- package/docs/design/templates/value-table.svg +1 -0
- package/docs/design/templates.md +140 -0
- package/docs/design-philosophy.md +56 -19
- package/docs/device-class.md +10 -9
- package/docs/document-baseline.md +42 -0
- package/docs/examples/application-ui-profile.json +60 -0
- package/docs/examples/command-palette-adapter.tsx +69 -17
- package/docs/examples/component-catalog-extension.json +52 -0
- package/docs/examples/component-composition-extension.json +80 -0
- package/docs/layout.md +612 -53
- package/docs/nav-stack.md +163 -14
- package/docs/recipes.md +127 -52
- package/docs/split-view.md +76 -5
- package/docs/sunken-panel.md +93 -0
- package/docs/surface-scaffold.md +74 -0
- package/docs/tab-navigator.md +218 -0
- package/docs/type-contracts.md +137 -0
- package/docs/ui-analyzer.md +404 -0
- package/docs/ui-doctor.md +202 -0
- package/docs/ui-evaluator.md +139 -0
- package/docs/ux-demo.md +45 -15
- package/docs/webawesome-theme.md +204 -16
- package/docs/workbench.md +623 -12
- package/doctor/cli.mjs +120 -0
- package/doctor/component-style-checks.mjs +457 -0
- package/doctor/config.schema.json +94 -0
- package/doctor/eslint-diagnostics.d.mts +24 -0
- package/doctor/eslint-diagnostics.mjs +24 -0
- package/doctor/index.d.mts +122 -0
- package/doctor/index.mjs +1403 -0
- package/doctor/report.schema.json +118 -0
- package/evaluator/cli.mjs +89 -0
- package/evaluator/index.d.mts +90 -0
- package/evaluator/index.mjs +1203 -0
- package/evaluator/report.schema.json +152 -0
- package/llms.txt +562 -49
- package/package.json +247 -27
- package/scripts/component-catalog-extension-validation.mjs +28 -0
- package/traversal-exclusions.mjs +27 -0
- package/ux-demo/recipes/app-shell.tsx +204 -16
- package/ux-demo/recipes/collapsible-sidebar.tsx +260 -0
- package/ux-demo/recipes/compact-toolbar.tsx +135 -14
- package/ux-demo/recipes/composer-form.tsx +133 -21
- package/ux-demo/recipes/list-detail-dialog.tsx +255 -14
- package/ux-demo/recipes/list-workspace-states.tsx +183 -11
- package/ux-demo/recipes/loaders.ts +11 -3
- package/ux-demo/recipes/loading-inspector.tsx +161 -36
- package/ux-demo/recipes/mount-recipe.ts +28 -10
- package/ux-demo/recipes/navigation-sidebar.tsx +137 -11
- package/ux-demo/recipes/navigation-stack.tsx +79 -24
- package/ux-demo/recipes/types.ts +23 -2
- package/ux-demo/recipes/workspace-header.tsx +86 -5
- package/dist/browser/panel-header.js +0 -7
- package/dist/chunk-2RJBFNB6.js +0 -172
- package/dist/chunk-2RJBFNB6.js.map +0 -1
- package/dist/chunk-2TS7ZSYX.js +0 -20
- package/dist/chunk-2TS7ZSYX.js.map +0 -1
- package/dist/chunk-2Z5TWHKQ.js +0 -34
- package/dist/chunk-2Z5TWHKQ.js.map +0 -1
- package/dist/chunk-37T3VNIZ.js +0 -19
- package/dist/chunk-37T3VNIZ.js.map +0 -1
- package/dist/chunk-55DATV3A.js +0 -10
- package/dist/chunk-55DATV3A.js.map +0 -1
- package/dist/chunk-56RJXPHG.js.map +0 -1
- package/dist/chunk-7BR3DO2A.js.map +0 -1
- package/dist/chunk-7JB7VPRI.js +0 -34
- package/dist/chunk-7JB7VPRI.js.map +0 -1
- package/dist/chunk-7LDCTU7D.js +0 -134
- package/dist/chunk-7LDCTU7D.js.map +0 -1
- package/dist/chunk-AQNKJRFH.js +0 -79
- package/dist/chunk-AQNKJRFH.js.map +0 -1
- package/dist/chunk-B24C4A6T.js +0 -22
- package/dist/chunk-B24C4A6T.js.map +0 -1
- package/dist/chunk-BLK3UEEI.js +0 -23
- package/dist/chunk-BLK3UEEI.js.map +0 -1
- package/dist/chunk-DAFFDO33.js +0 -14
- package/dist/chunk-DAFFDO33.js.map +0 -1
- package/dist/chunk-I7INRJO4.js +0 -17
- package/dist/chunk-I7INRJO4.js.map +0 -1
- package/dist/chunk-L4OKFDJY.js +0 -24
- package/dist/chunk-L4OKFDJY.js.map +0 -1
- package/dist/chunk-LC3YSAZC.js +0 -39
- package/dist/chunk-LC3YSAZC.js.map +0 -1
- package/dist/chunk-M5JRI6MN.js +0 -27
- package/dist/chunk-M5JRI6MN.js.map +0 -1
- package/dist/chunk-MBR3TYNL.js +0 -14
- package/dist/chunk-MBR3TYNL.js.map +0 -1
- package/dist/chunk-MFKMHK5W.js +0 -10
- package/dist/chunk-MFKMHK5W.js.map +0 -1
- package/dist/chunk-MQIZAD4A.js +0 -227
- package/dist/chunk-MQIZAD4A.js.map +0 -1
- package/dist/chunk-RUNWEPR4.js +0 -10
- package/dist/chunk-RUNWEPR4.js.map +0 -1
- package/dist/chunk-W2FK7ZNY.js +0 -26
- package/dist/chunk-W2FK7ZNY.js.map +0 -1
- package/dist/chunk-W5EQ3HYQ.js +0 -42
- package/dist/chunk-W5EQ3HYQ.js.map +0 -1
- package/dist/chunk-WVPYVDXY.js +0 -15
- package/dist/chunk-WVPYVDXY.js.map +0 -1
- package/dist/chunk-YGN7OMLT.js.map +0 -1
- package/dist/panel-header.d.ts +0 -36
- package/dist/panel-header.js +0 -7
- package/dist/panel-header.js.map +0 -1
- package/dist/styles/panel-header.css +0 -64
- package/dist/styles/tab-scaffold.css +0 -84
- package/dist/tab-scaffold.d.ts +0 -30
- package/dist/tab-scaffold.js +0 -16
- package/dist/tab-scaffold.js.map +0 -1
- package/dist/wire-tab-scaffold.d.ts +0 -11
- package/dist/wire-tab-scaffold.js +0 -16
- package/dist/wire-tab-scaffold.js.map +0 -1
- package/docs/tab-scaffold.md +0 -41
- package/ux-demo/recipes/recipes.css +0 -361
package/llms.txt
CHANGED
|
@@ -6,40 +6,343 @@
|
|
|
6
6
|
> generate correct, good-looking kerf UI — it is not a catalog to browse.
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
npm install kerfjs @kerfjs/ui
|
|
9
|
+
npm install kerfjs @kerfjs/ui # kerfjs is a peer; Web Awesome is an optional peer
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
Import each component from its own subpath (`@kerfjs/ui/list-item`, `@kerfjs/ui/toolbar`,
|
|
13
13
|
…); the browser build pulls that component's reachable CSS automatically, so do not
|
|
14
14
|
maintain a central style list. Configure JSX with `"jsxImportSource": "kerfjs"`.
|
|
15
15
|
|
|
16
|
+
The sunken/lowered background is semi-transparent: Web Awesome's
|
|
17
|
+
`--wa-color-surface-lowered` is mirrored by `--kui-color-surface-lowered` and
|
|
18
|
+
used by `--kui-color-neutral-fill-quiet`. `SunkenPanel`, sunken
|
|
19
|
+
`Pane`/`Workbench`/`TabNavigator` surfaces, and Web Awesome
|
|
20
|
+
`appearance="sunken"` use that tint by default through their optional
|
|
21
|
+
`--kui-sunken-panel-background` / `--kui-wa-sunken-background` override tokens.
|
|
22
|
+
Each layer composites over its backdrop. Intentional nested layers create
|
|
23
|
+
depth; avoid a wrapper or extra background that paints the same visual surface
|
|
24
|
+
twice. Check contrast in both color schemes over the actual backdrop. See
|
|
25
|
+
[contextual transparency](./docs/webawesome-theme.md#contextual-transparency).
|
|
26
|
+
|
|
27
|
+
For arbitrary interactive help or popup content, use `openAnchoredSurface` or
|
|
28
|
+
`openAnchoredSurfaceAt` from `@kerfjs/ui/anchored-surface`; see
|
|
29
|
+
[AnchoredSurface](./docs/anchored-surface.md). The app owns content and actions.
|
|
30
|
+
For a public subpath containing several visual components, use a folder with one
|
|
31
|
+
component per source file and one owned stylesheet per visual component. Keep its
|
|
32
|
+
compatibility entrypoints implementation-free: JavaScript/TypeScript only re-exports
|
|
33
|
+
the folder modules, and CSS only imports their owner stylesheets.
|
|
34
|
+
|
|
35
|
+
### Shared semantic tones
|
|
36
|
+
|
|
37
|
+
Use `ToolbarText tone="dark"` on a loud or photo-backed toolbar surface to
|
|
38
|
+
match dark control groups. It applies to read-only headings and actionable
|
|
39
|
+
titles at every size; default tone retains existing identity and heading colors.
|
|
40
|
+
|
|
41
|
+
`SemanticTone` is the shared color-role type for `Badge`, `Chip`, `StateBanner`,
|
|
42
|
+
and semantic `ContentItem` appearances: `neutral`, `info`, `pop`, `success`,
|
|
43
|
+
`warning`, and `danger`. Import it as a type from `@kerfjs/ui`,
|
|
44
|
+
`@kerfjs/ui/badge`, `@kerfjs/ui/state-banner`, or `@kerfjs/ui/content-item`.
|
|
45
|
+
Use `info` for the role backed by the existing `--kui-color-brand-*` tokens.
|
|
46
|
+
Migrate Badge/Chip `tone="brand"` to `tone="info"`; `BadgeTone` and
|
|
47
|
+
`StateBannerTone` remain deprecated aliases of `SemanticTone`.
|
|
48
|
+
|
|
49
|
+
## The rule: components own their styles
|
|
50
|
+
|
|
51
|
+
Configure components through their typed props (size, density, inset,
|
|
52
|
+
presentation, `ToolbarConfig`, `PaneConfig`, …); never restyle one from outside.
|
|
53
|
+
No application or parent CSS may select a `.kui-*` class, a `[data-component]`
|
|
54
|
+
root, a `wa-*` element a Kerf component renders, or its `::part()`s, and no
|
|
55
|
+
writing another component's `--_kui-*` / `--kui-*` variables where a prop
|
|
56
|
+
exists. When a component adapts inside another, it styles itself in that
|
|
57
|
+
context in its own stylesheet. A missing prop is a component gap to report,
|
|
58
|
+
not a reason to override — and your own components follow the same rule.
|
|
59
|
+
|
|
16
60
|
## How to build a screen (retrieval order)
|
|
17
61
|
|
|
62
|
+
First make the design decision: state what the user must read or do, find the
|
|
63
|
+
Kerf or consuming-app component whose purpose and interaction match, and
|
|
64
|
+
configure it. Compose `Toolbar`, `List`, `Row`, `Grid`, `ContentItem`, and the
|
|
65
|
+
other primitives before creating markup or CSS. A local component should own a
|
|
66
|
+
real domain behavior or new structure; a wrapper made only to re-space or
|
|
67
|
+
re-skin an existing component is the wrong choice. Ask what each `div`, `span`,
|
|
68
|
+
fragment, class, and CSS rule contributes. Remove it if a component already
|
|
69
|
+
owns the semantics, surface, inset, scrollport, or gap. Use the spacing scale
|
|
70
|
+
to show relationships, keep useful negative space, and align neighboring text
|
|
71
|
+
and control edges. Check the result against adjacent screens at wide and narrow
|
|
72
|
+
widths. The concrete [decision pass](./docs/component-selection.md#decision-pass-before-jsx-or-css)
|
|
73
|
+
explains when to reuse, compose, extend, or use native HTML.
|
|
74
|
+
|
|
18
75
|
1. **Pick the component from the interface need**, not by appearance — read
|
|
19
76
|
[component-selection.md](./docs/component-selection.md) (the problem→component
|
|
20
77
|
matrix, with imports, wiring, ownership, and alternatives).
|
|
21
78
|
2. **Get exact signatures before emitting code** — read
|
|
22
79
|
[public-api-signatures-v1.md](./ai/public-api-signatures-v1.md) (real prop names,
|
|
23
80
|
callback shapes, disposer return types).
|
|
24
|
-
3. **
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
81
|
+
3. **Look up each component you use** in the
|
|
82
|
+
[component reference index](./ai/components/README.md) — one line per
|
|
83
|
+
entry — then read only those `ai/components/<id>.md` pages (1–7 KB each):
|
|
84
|
+
use/avoid, imports and side effects, a link to exact props, legal parents,
|
|
85
|
+
zones with their JSX prop and child count, app- and wiring-owned state,
|
|
86
|
+
geometry, accessibility, the styling boundary (configure through props;
|
|
87
|
+
never override internals), and `KUI-C###` diagnostics. Do not load the
|
|
88
|
+
large JSON catalogs just to choose or compose components; the pages are
|
|
89
|
+
generated from them.
|
|
90
|
+
**Tools and mechanical checks** use the JSON sources instead: the
|
|
91
|
+
[Machine-readable component catalog](./ai/component-catalog.json) (ids,
|
|
92
|
+
exports, variants, `publicClasses`, relationships, side effects, and
|
|
93
|
+
geometry ownership) — the canonical checked-in source; its schema is
|
|
94
|
+
alongside it. Also load the
|
|
95
|
+
consuming application's catalog extension when present; generate one from the
|
|
96
|
+
[Consumer catalog extension schema](./ai/component-catalog-extension.schema.json)
|
|
97
|
+
when app-owned components must participate in selection or alignment.
|
|
98
|
+
A tool loads the [Composition catalog](./ai/component-composition.json) — a
|
|
99
|
+
generated composition layer beside the component catalog, not a replacement
|
|
100
|
+
for it — to mechanically evaluate parents, contexts, zones/cardinality,
|
|
101
|
+
children, state, wiring (including the wiring-owned `stateAttributes` an app
|
|
102
|
+
must never render or remove), responsive/layout/accessibility rules, and
|
|
103
|
+
public boundaries. The component catalog stays the selection and delivery
|
|
104
|
+
surface; the composition layer joins catalogs by `package:id`. Consumer
|
|
105
|
+
composition catalogs use
|
|
106
|
+
[the composition extension schema](./ai/component-composition-extension.schema.json).
|
|
107
|
+
Load [compile-time contracts](./ai/compile-time-contracts-v1.json) for stable
|
|
108
|
+
`KUI-T###` ids, exact declaration symbols, and the boundary between rejected
|
|
109
|
+
source states and relationships that still require runtime/catalog checks.
|
|
110
|
+
Before generating application UI, discover `.kerf-ui-profile.json` with the
|
|
111
|
+
shipped [application profile API](./ai/application-ui-profile.mjs). Merge
|
|
112
|
+
package defaults, workspace policy, then parent-to-child directory policy;
|
|
113
|
+
honor its package-qualified preferences, approved theme/density, semantic
|
|
114
|
+
tokens, layout conventions, and narrow source-located exceptions. Validation
|
|
115
|
+
is catalog-aware per layer, including parent values later overridden by a
|
|
116
|
+
child; synchronous hosts use [application-ui-profile-sync.cjs](./ai/application-ui-profile-sync.cjs).
|
|
117
|
+
See the
|
|
118
|
+
[workspace profile example](./docs/examples/application-ui-profile.json).
|
|
119
|
+
A zone's optional `jsx.prop` is its only authoritative JSX binding; never
|
|
120
|
+
infer one from the zone id. Use `children` for one homogeneous primary
|
|
121
|
+
region and explicit named content prop slots for semantic positions or
|
|
122
|
+
replacement content. These slots use the recursive `KerfUiContent` type:
|
|
123
|
+
`SafeHtml`, runtime-empty boolean/nullish values, and readonly nested arrays.
|
|
124
|
+
Put conditionals and mapped component arrays directly in them; do not add a
|
|
125
|
+
`Fragment` only to satisfy types. Arbitrary strings, numbers, and signals are
|
|
126
|
+
rejected unless a component explicitly exposes a text position such as
|
|
127
|
+
`ListInsetText`. These are typed props, not native `<slot>` elements,
|
|
128
|
+
wrapper slot components, or a generic `slots` object. Leave unresolved
|
|
129
|
+
dynamic expressions unknown.
|
|
130
|
+
Stable single-root Kerf UI components separately accept the explicit native
|
|
131
|
+
`slot="name"` prop for light-DOM composition inside a custom element and
|
|
132
|
+
preserve it across rerenders. Do not infer arbitrary native-attribute
|
|
133
|
+
spreading from this narrow interop contract. `ResizableRegion` and
|
|
134
|
+
`CollapsiblePanel` remain excluded because their optional restore controls
|
|
135
|
+
make their output multi-root; `CollapsiblePanelToggle` remains slot-capable.
|
|
136
|
+
4. **When authoring a component gallery**, load
|
|
137
|
+
[catalog-authoring.json](./ai/catalog-authoring.json), then follow its
|
|
138
|
+
authoritative [Catalog demo authoring contract](./docs/catalog.md#catalog-demo-authoring-contract).
|
|
139
|
+
Use its component/composition/recipe taxonomy and functional-group,
|
|
140
|
+
importance, alphabetical-tie, and recipes-last ordering policy. Focused
|
|
141
|
+
demos and recipes use public components plus `CatalogExample.viewport`,
|
|
142
|
+
never local stylesheets, inline styles, or styling-only classes.
|
|
143
|
+
5. **Apply the rules below and in** [skill.md](./ai/skill.md).
|
|
144
|
+
6. **Before calling an integration complete**, run
|
|
145
|
+
[`kerf-ui-doctor`](./docs/ui-doctor.md). Its portable JSON report merges
|
|
146
|
+
profile/catalog, TypeScript, Kerf ESLint, and static analyzer diagnostics;
|
|
147
|
+
CSS-adjacent component props are checked from catalog `cssValueProps`, so
|
|
148
|
+
prefer its canonical shorthand or typed helper over raw CSS strings; a
|
|
149
|
+
`--wa-color-{tone}-fill-loud` override without a governing `on-loud` (same
|
|
150
|
+
or ancestor scope, possibly in a co-loaded stylesheet), or whose literal
|
|
151
|
+
pair measures below 4.5:1, is review finding `KUI-L018` (set both); CSS that restyles a component
|
|
152
|
+
(`KUI-L019`), touches its private `--_*` variables (`KUI-L020`), overrides a token a typed prop sets
|
|
153
|
+
(`KUI-L021`), or styles it through a hook class on its root (`KUI-L022`) is an error: configure the
|
|
154
|
+
component instead, and report a component gap when no prop exists; application-component imports may use TypeScript `paths` aliases; use `"ownership": "component"` with catalog `styleSources` to apply this boundary between an app's own components; repair source-located errors until exit 0. Use full mode for release gates;
|
|
155
|
+
generated `dist`/`coverage`, dependency, cache, evidence, and nested-worktree
|
|
156
|
+
directories are excluded consistently from every static stage.
|
|
157
|
+
[`kerf-ui-analyze`](./docs/ui-analyzer.md) remains available when only static
|
|
158
|
+
layout diagnostics are wanted; its review findings are a bounded human/AI
|
|
159
|
+
review queue rather than an objective aesthetic score.
|
|
160
|
+
7. **Evaluate the running application** by explicitly enabling the doctor's
|
|
161
|
+
browser stage or directly invoking
|
|
162
|
+
[`kerf-ui-evaluate`](./docs/ui-evaluator.md). Preserve its `KUI-B###`
|
|
163
|
+
browser evidence and screenshots; record hierarchy/rhythm/density/aesthetic
|
|
164
|
+
ratings separately with a named reviewer rather than presenting them as
|
|
165
|
+
objective assertions.
|
|
166
|
+
|
|
167
|
+
## Application interaction choices
|
|
168
|
+
|
|
169
|
+
For ordinary server-backed freshness, prefer event-driven updates, subscriptions,
|
|
170
|
+
or explicit user refresh when they meet the product need. Use fixed-interval
|
|
171
|
+
polling when periodic sampling is genuinely required or no suitable update
|
|
172
|
+
channel exists; choose the interval deliberately and cancel the timer when its
|
|
173
|
+
owning view is disposed.
|
|
174
|
+
|
|
175
|
+
Make cursor cues match enabled behavior: use a pointer for actionable targets,
|
|
176
|
+
grab/grabbing or resize cues for actual drag and resize affordances, and a
|
|
177
|
+
default or disabled cue when an action is unavailable. Keep the semantic
|
|
178
|
+
control, keyboard behavior, focus treatment, and disabled state aligned with
|
|
179
|
+
the cursor; the cursor alone cannot explain an interaction. See
|
|
180
|
+
[accessibility contracts](./docs/accessibility.md) and
|
|
181
|
+
[interaction principles](./docs/apple-hig.md#interaction).
|
|
29
182
|
|
|
30
183
|
## Core rules (do the right thing)
|
|
31
184
|
|
|
185
|
+
- **Prefer a Kerf UI component over a Web Awesome component over a raw HTML
|
|
186
|
+
tag**, using each for what it is good at. Never render a `Discouraged` Web
|
|
187
|
+
Awesome element (`wa-dropdown`, `wa-button-group`, `wa-select`, `wa-tab-group`,
|
|
188
|
+
`wa-icon`, …) directly; reach it only through the Kerf component that wraps or
|
|
189
|
+
replaces it (`PopupMenu`, `SegmentedControl`, `Select`, `TabBar`,
|
|
190
|
+
`LucideIcon`), and file a component gap rather than dropping to the raw tag.
|
|
32
191
|
- **Reach for the primitive, not for CSS.** The package is built to look right
|
|
33
|
-
|
|
34
|
-
`background`, a wrapper card, or a decoration,
|
|
35
|
-
pane, or
|
|
36
|
-
component prop
|
|
37
|
-
|
|
38
|
-
|
|
192
|
+
without an application customization layer. Before adding `padding`, `margin`,
|
|
193
|
+
`width`, `height`, `border`, `background`, a wrapper card, or a decoration,
|
|
194
|
+
check whether the component, pane, or content-item already owns it. Prefer a
|
|
195
|
+
component prop — `FloatingToolbar inset`, `DisclosureArrow size`, `ListHeader
|
|
196
|
+
headingLevel`, `TokenSearchField clearIcon`, `ContentItem frame="framed"` for a
|
|
197
|
+
visibly bounded content item — over overriding its `--kui-*` token. CSS for genuinely new structure
|
|
198
|
+
belongs to the application-owned component that renders it and must not select
|
|
199
|
+
nested Kerf or Web Awesome components.
|
|
39
200
|
- **Never double-inset.** A `.kui-pane` has no padding; its `.kui-content` children
|
|
40
|
-
own the geometry (8px inline margin + 1px border + 8px padding).
|
|
201
|
+
own the geometry (8px inline margin + 1px border + 8px padding). Render an
|
|
202
|
+
ordinary surface-like child as `ContentItem` (`@kerfjs/ui/content-item`) with
|
|
203
|
+
typed `frame` (`none`/`framed`) and `shape` (`rounded`/`pill`) props instead
|
|
204
|
+
of hand-writing `<div class="kui-content-item">`. Do not add a
|
|
41
205
|
container padding on top of a content-item's own margin — pick one owner. Use
|
|
42
206
|
`.kui-content` for 24px major vertical rhythm.
|
|
207
|
+
- **Opt into document globals explicitly.** Import `@kerfjs/ui/document.css`
|
|
208
|
+
once for border-box sizing, token-backed body/link presentation, inherited
|
|
209
|
+
native table-cell and form-control font metrics, and zero body
|
|
210
|
+
margin. Put `.kui-app-root` on the one direct mount container only when a
|
|
211
|
+
percentage-height shell needs the provided `html` → `body` → app-root height
|
|
212
|
+
chain. The baseline is not part of `styles.css` or component browser imports.
|
|
213
|
+
- **Use compact layout options where needed.** `Text flush lineHeight="tight"`
|
|
214
|
+
fits short dialog copy; `ValueTable density="compact"` reduces row spacing,
|
|
215
|
+
with public row column, padding, and gap tokens for specific metadata layouts.
|
|
216
|
+
`ToolbarText size="xsmall"` suits a dense rail heading. The
|
|
217
|
+
`TokenSearchField` editor shrinks in narrow groups; its minimum width can be
|
|
218
|
+
set with `--kui-token-search-editor-min-width`.
|
|
219
|
+
- **Label read-only field previews.** Use `FieldLabel` from `@kerfjs/ui/text`
|
|
220
|
+
in `ListInsetControl sides="trl"` above a `ContentItem` value. Connect its
|
|
221
|
+
id to the preview group's `aria-labelledby`; use the live control's own
|
|
222
|
+
`label` while editing.
|
|
223
|
+
- **Use Toolbar zone options.** `responsive="trailing-priority"` moves an
|
|
224
|
+
expanded trailing control to a full second row at `responsiveAt`; the leading
|
|
225
|
+
title remains above it. Public leading-min-width, trailing-gap/justify, and
|
|
226
|
+
per-zone inline-padding tokens cover app-specific toolbar geometry.
|
|
227
|
+
In a stacked Toolbar, `ToolbarControlGroup placement="end"` places a collapsed
|
|
228
|
+
search at its row's trailing edge; `sizing="fill"` gives its expanded state a
|
|
229
|
+
full row and a reduced-motion-aware downward entrance.
|
|
230
|
+
`--kui-toolbar-inset: 0px` removes an embedded Toolbar's outer padding and
|
|
231
|
+
corresponding minimum-height allowance while preserving its zone gap and
|
|
232
|
+
safe-area compensation.
|
|
233
|
+
- **Position region restore controls declaratively.** A ResizableRegion has a
|
|
234
|
+
background token, `contentOverflow="visible"` for an anchored popup,
|
|
235
|
+
top/bottom `restorePosition`, typed `restoreInset`, and
|
|
236
|
+
`restorePlacement="inline"` for normal flow. FloatingToolbar also has
|
|
237
|
+
`placement="inline"`, per-edge inset tokens, and `safeAreaInsets`.
|
|
238
|
+
- **Configure list rows through their APIs.** `ListItem density="spacious"`
|
|
239
|
+
gives option rows more room. `multiline` wraps labels, with
|
|
240
|
+
`multilineIconAlign="center"` when the icon should center on the whole copy.
|
|
241
|
+
`divider` owns row separators and `state="drag-target"` paints the drop
|
|
242
|
+
target. Public ListItem tokens set row, icon, label, and trailing geometry;
|
|
243
|
+
ListHeader `size="xs|sm|m|l|xl"` sets label scale independently of
|
|
244
|
+
`headingLevel` (`sm` keeps the current FieldLabel-sized uppercase style;
|
|
245
|
+
`m`/`l`/`xl` match themed h5/h4/h3). Its height, title padding, and border
|
|
246
|
+
tokens tune section density. A semantic `count` requires `countLabel` and
|
|
247
|
+
excludes other indicators; `badge` and `status` may render together, and
|
|
248
|
+
either may be explicitly `undefined` in conditional app state.
|
|
249
|
+
For a filled command list, scope `--kui-list-item-background`,
|
|
250
|
+
`--kui-list-item-color`, `--kui-list-item-border`,
|
|
251
|
+
`--kui-list-item-hover-background`, `--kui-list-item-hover-border`,
|
|
252
|
+
`--kui-list-item-selected-background`, `--kui-list-item-selected-color`,
|
|
253
|
+
and `--kui-list-item-selected-border` at the list or row boundary.
|
|
254
|
+
- **Use `Row` for horizontal and `List` for vertical layout.** Both expose
|
|
255
|
+
physical `hAlign`/`vAlign` props and typed gaps. Row defaults to left/full,
|
|
256
|
+
an `xs` gap, and no wrapping; List retains full/top and zero-gap defaults.
|
|
257
|
+
Use canonical physical `textInsets` or `controlInsets` sides in
|
|
258
|
+
`t`/`r`/`b`/`l` order; text geometry wins on overlapping sides.
|
|
259
|
+
`ListInsetText` and `ListInsetControl` inset every side by default and accept
|
|
260
|
+
the same `sides` grammar for selective edges.
|
|
261
|
+
List additionally supplies
|
|
262
|
+
optional typed `gap`, `flex`, vertical scrolling, and canonical
|
|
263
|
+
`dividerSides` (`t`/`r`/`b`/`l` order). It adds no list semantics; children own
|
|
264
|
+
those, and only one bounded region should own scrolling. Pass a finite spacing
|
|
265
|
+
shorthand (`gap="xs"`, `gap="m"`) or a complete `CssLength` from the CSS-free
|
|
266
|
+
`@kerfjs/ui/css-values` builders; raw CSS strings are rejected. Use `flex()`
|
|
267
|
+
for List flex, typed lengths for Skeleton geometry, and
|
|
268
|
+
foreground colors for choice icons and `LucideIcon.color`: `uiColor()` with an `*-on-*`/text token,
|
|
269
|
+
`foregroundColorVar()`, or `foregroundColor()` for a custom CSS color; fill tokens such as `uiColor('success-fill-quiet')` do not
|
|
270
|
+
type-check. These brands are intentionally
|
|
271
|
+
not interchangeable; rows use classes/tokens/props rather than raw `style`.
|
|
272
|
+
Set `LucideIcon.inline` for an icon in `Text` or prose; it changes the SVG
|
|
273
|
+
from block to inline-block without changing its inherited 1em size.
|
|
274
|
+
- **Use `Grid` for equal-width columns.** Set a fixed positive `columns` count
|
|
275
|
+
or typed `minColumnWidth` for automatic container-width collapse, never both.
|
|
276
|
+
The app owns the outer width and child semantics; use custom CSS grid for
|
|
277
|
+
asymmetric/intrinsic tracks and `ResizableRegion` for adjustable boundaries.
|
|
278
|
+
`Grid.gap` and `Grid.flex` use the same typed grammars as Row.
|
|
279
|
+
`Grid.textInsets` and `Grid.controlInsets` select physical sides for the
|
|
280
|
+
standard 17px text and 8px control inset; text wins on overlap.
|
|
281
|
+
For selectable document tiles, use `selectionMode="multiple"` and a required
|
|
282
|
+
`ariaLabel`, with `ContentItem selectionMode="multiple"` children. Wire
|
|
283
|
+
`wireContentItems` for spatial arrow navigation and Enter/Space activation.
|
|
284
|
+
- **Give a layout root `fill`, not a frame `Pane`.** A Row, List, or Grid that
|
|
285
|
+
is the sole layout root of a definite-height parent takes its full height
|
|
286
|
+
with `fill` and carries safe `data-*` markers through `rootAttributes`.
|
|
287
|
+
Inside a flex layout use `flex` instead.
|
|
288
|
+
- **Keep Web Awesome on the shared inset tiers.** `webawesome.css` uses
|
|
289
|
+
`--kui-wa-control-inset` (8px controls/items) and
|
|
290
|
+
`--kui-wa-surface-margin` / `--kui-wa-surface-inset` (8px around/inside
|
|
291
|
+
Accordion, Card, Details, Callout, and Include), while
|
|
292
|
+
plain Details keep their body flush while plain Accordion items inset both
|
|
293
|
+
trigger and body, framed Details use the 16px container inset only on the
|
|
294
|
+
trigger, and framed Accordion items use it on both regions;
|
|
295
|
+
`--kui-wa-container-inset` keeps Tab Panel at 16px. Dialog body and footer use
|
|
296
|
+
the surface (8px) and container (16px) tiers respectively, independent of the
|
|
297
|
+
dialog's shared `--spacing`. Override the tier at the narrowest useful scope
|
|
298
|
+
instead of restyling individual shadow parts.
|
|
299
|
+
Filled badges use each semantic variant's quiet fill with normal text for
|
|
300
|
+
WCAG-AA compact-copy contrast. Override
|
|
301
|
+
`--kui-wa-badge-filled-background` and
|
|
302
|
+
`--kui-wa-badge-filled-foreground` as a contrast-safe pair instead of adding
|
|
303
|
+
host selectors.
|
|
304
|
+
When a dialog provides another dismissal affordance, add `hide-actions` to
|
|
305
|
+
the `wa-dialog` host; the theme hides its directly exported `header-actions`
|
|
306
|
+
part without an unsupported chained `::part()` selector.
|
|
307
|
+
Checkbox and Radio Group option regions also receive the shared 8px inline
|
|
308
|
+
outer inset because those groups have no bordered field shell. The Color
|
|
309
|
+
Picker trigger receives the same inset for the same unbordered geometry.
|
|
310
|
+
Slider's complete interactive region uses the shared 8px logical inline outer
|
|
311
|
+
inset without shifting its already-aligned label.
|
|
312
|
+
Known Date's Month/Day/Year captions and bordered text-like field hints align
|
|
313
|
+
with field values at the shared 9px border-plus-padding inset. OTP Input's
|
|
314
|
+
label uses the same uppercase xs/650 treatment and its label and hint share
|
|
315
|
+
that 9px alignment.
|
|
316
|
+
- `Select` requires a visible `label` or an `ariaLabel` for a visually hidden
|
|
317
|
+
accessible name. Set `multiple` with an array `value` for any number of
|
|
318
|
+
choices: the popup stays open while choices toggle and closes on an outside
|
|
319
|
+
press or Escape, and the closed control summarizes the chosen labels. A
|
|
320
|
+
toolbar filter menu adds `selectedPresentation="icon-only"` and a fixed
|
|
321
|
+
`triggerIcon`: the trigger shows that icon plus a count badge while any
|
|
322
|
+
choice is chosen, and its accessible name ends with the chosen labels.
|
|
323
|
+
Set `caret={false}` on an icon-only toolbar Select to make a round trigger;
|
|
324
|
+
a custom `renderSelected` icon stays centered, and the default keeps the
|
|
325
|
+
visible caret.
|
|
326
|
+
`SelectChoice.disabled` keeps an unavailable option visible but unselectable;
|
|
327
|
+
`disabledReason` adds its tooltip. For multiple selects, opt in to
|
|
328
|
+
`selectAllLabel` and `clearLabel` footer buttons to select enabled choices
|
|
329
|
+
or clear the value through ordinary change events. The app owns the updated
|
|
330
|
+
controlled value and localized action labels.
|
|
331
|
+
Icon-only Selects (single or multiple) and icon-only `PopupMenu`s show an
|
|
332
|
+
`aria-hidden` Web Awesome help tag repeating that name (and a Select's
|
|
333
|
+
choice) on hover and keyboard focus, hidden while the popup is open; the
|
|
334
|
+
register import installs it, so do not add a `title` or tooltip of your own.
|
|
335
|
+
The same installer tags an icon-only `<button>` or link inside a
|
|
336
|
+
`ToolbarControlGroup` named by `aria-label` (no visible text or `title`);
|
|
337
|
+
import `@kerfjs/ui/help-tags/register` once when a toolbar has such buttons
|
|
338
|
+
but no registered Select or PopupMenu.
|
|
339
|
+
The package names the internal combobox, including custom
|
|
340
|
+
selected content; consumers do not need shadow-DOM naming workarounds.
|
|
341
|
+
Import `select/register` once for the canonical animation lifecycle: stale
|
|
342
|
+
close/show completions cannot override a later request. Consumers must not
|
|
343
|
+
repair popup timing or anchor placement; raw Web Awesome selects stay native.
|
|
344
|
+
Use `hint` for supporting text below the control and `placeholderText` only
|
|
345
|
+
for the empty value inside it; loading placeholders retain the visible hint.
|
|
43
346
|
- **Trust the defaults.** Render a control at its natural size and color (a
|
|
44
347
|
`LucideIcon` is 24px); if it looks wrong, fix the surrounding layout, not the
|
|
45
348
|
control. Never force a component's width/height to size it — that leaves a halo
|
|
@@ -47,23 +350,104 @@ maintain a central style list. Configure JSX with `"jsxImportSource": "kerfjs"`.
|
|
|
47
350
|
- **Toolbars hold only `ToolbarText` and `ToolbarControlGroup`.** Never put a bare
|
|
48
351
|
button, input, link, or loose markup in a `leading`/`center`/`trailing` zone.
|
|
49
352
|
Wrap every control — `SegmentedControl`, `Select`, a collapsible
|
|
50
|
-
`TokenSearchField`, Web Awesome controls — inside a `ToolbarControlGroup`.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
`
|
|
54
|
-
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
353
|
+
`TokenSearchField`, Web Awesome controls — inside a `ToolbarControlGroup`. For an
|
|
354
|
+
ordinary icon/action control inside the group use a **plain `<button>`** (the
|
|
355
|
+
group styles it fully) — that is the default; reach for `wa-button` only when you
|
|
356
|
+
need a Web Awesome feature. A toolbar popup menu is a `PopupMenu`
|
|
357
|
+
(`@kerfjs/ui/popup-menu`, registered once via `@kerfjs/ui/popup-menu/register`)
|
|
358
|
+
in a `single` `ToolbarControlGroup` with `nestedDropdown`; never hand-write
|
|
359
|
+
`wa-dropdown` markup for a menu. Let the group size the trigger from its icon,
|
|
360
|
+
localized text, and caret. Set `overflow="wrap"` for independent action links
|
|
361
|
+
that must remain fully visible at narrow widths; whole links move to a second
|
|
362
|
+
row, as in the catalog resource footer. `PopupMenu` items also support nested `submenu`
|
|
363
|
+
actions, headings, dividers, checked or trailing choice marks, danger tone,
|
|
364
|
+
and disabled reasons; nested headings/dividers stay out of keyboard choices;
|
|
365
|
+
use `context` with `openPopupMenuAt`/`closePopupMenu` for pointer-anchored row
|
|
366
|
+
menus. Do not force a dropdown or button width. Nothing
|
|
367
|
+
wraps inside a group: an icon sits beside its label on one row, and a
|
|
368
|
+
`ToolbarText` is one ellipsized line unless you opt into `wrap`/`maxLines`. A
|
|
369
|
+
Select or PopupMenu trigger drops its focus ring while its popup is open and
|
|
370
|
+
the ring follows the control's shape; never add ring CSS. Compact
|
|
371
|
+
mixed groups keep standard item padding and raised selected chrome without an
|
|
372
|
+
internal separator; the selected item paints over the outer border. For an
|
|
373
|
+
avatar control, set `content="avatar"` and `avatarImage` on the group instead of
|
|
374
|
+
inserting an `img`; a lone control paints the group and a multi-button group
|
|
375
|
+
paints only its pressed highlight. Dividers earn their place: a `Toolbar`
|
|
376
|
+
draws none by default and pinned chrome gets its line from scroll state (see
|
|
377
|
+
the scroll-divider rule below); never fake one with a border or pad below a
|
|
378
|
+
divider to make it look right.
|
|
379
|
+
- **Use one direct toolbar composition for panel/dialog/page headings.** Put an
|
|
380
|
+
optional icon in a `ToolbarControlGroup`, an extra-large `ToolbarText` directly
|
|
381
|
+
in the leading zone, and actions in a trailing group. Supporting copy is
|
|
382
|
+
app-owned content below. Do not create a private heading wrapper or restyle the
|
|
383
|
+
toolbar. A narrow peripheral rail or drawer, where extra-large would truncate
|
|
384
|
+
at its minimum size, names itself with the default `ToolbarText` size.
|
|
385
|
+
`ToolbarText size="xlarge-fixed"` keeps the 20px `--kui-font-l` heading step;
|
|
386
|
+
`xlarge` retains the responsive page-title clamp.
|
|
387
|
+
- **Use `Text` for ordinary semantic headings, paragraphs, and inline secondary
|
|
388
|
+
text outside toolbar title zones.** Omit `variant` for the default `p`, pass
|
|
389
|
+
`h1`–`h6` based on the document outline, or use `variant="span"` inside a row,
|
|
390
|
+
label, or table cell without adding box geometry. Independently compose `tone="quiet|danger"`,
|
|
391
|
+
`size="compact|large|xlarge"`, and `font="monospace"` for supporting, error,
|
|
392
|
+
compact, prominent, display, and code roles instead of global utility classes. It passes native attributes
|
|
393
|
+
through; block variants own the standard transparent border plus item padding, while `span` owns none. Keep
|
|
394
|
+
toolbar titles on `ToolbarText` and list-aligned bare prose on `ListInsetText`.
|
|
395
|
+
Text supports `controlMargins` with canonical physical Sides for an exterior 8px control gutter; it preserves border/padding and avoids an isolated Row wrapper. Avoid stacking it with parent insets. Inline spans retain native inline margin behavior.
|
|
396
|
+
|
|
397
|
+
`ToolbarControlGroup.tileTone` selects `neutral`, `brand`, `success`, `warning`, or `danger` quiet fill, matching quiet border, and on-quiet foreground for a non-interactive icon tile. Compose a contained `single` group whose only child is a direct decorative LucideIcon (`aria-hidden="true"`). Omission preserves the normal group palette. The prop does not recolor interactive, mixed, multi-control, or borderless groups; keep real actions in controls with their existing focus/hover/pressed treatments.
|
|
398
|
+
Toolbar zones accept `KerfUiContent` directly. Use `ToolbarText` for identity and `ToolbarControlGroup` for related controls that need its shared chrome; a bare control keeps its own styling and accessibility responsibilities.
|
|
399
|
+
Expanded search groups accept `expandedOverflow="visible"` to anchor app-owned suggestion/date/help surfaces below their relative root; collapsed/default groups retain existing clipping. Apps own surface placement/dismissal and use `data-token-search-keep-open` or `collapsible.keepOpenOn` for focus.
|
|
400
|
+
|
|
58
401
|
- **Space by the five-step scale, by relationship not by eye.** `0`
|
|
59
402
|
`--kui-space-none`, `4px` `--kui-space-2xs`, `8px` `--kui-space-xs` (inside a
|
|
60
403
|
group), `16px` `--kui-space-m`, `24px` `--kui-space-l` (between major differing
|
|
61
|
-
regions). 12px/32px are off-scale exceptions.
|
|
404
|
+
regions). 12px/32px are off-scale exceptions. Prefer direct `Row.gap`/`List.gap`
|
|
405
|
+
shorthands for repeated rhythm; use `Spacer` for one typed empty width/height
|
|
406
|
+
or flexible main-axis gap. Use `space`, `px`, `rem`, `em`, `pct`, `lengthVar`, and
|
|
407
|
+
`calc(plus(...))` for typed runtime composition. `remify()` is source-CSS only.
|
|
408
|
+
- **Keep nested highlight corners concentric.** Inset hover and selection surfaces
|
|
409
|
+
follow the owning control's pill or rounded shape; their radius is the outer
|
|
410
|
+
radius minus `--kui-layout-highlight-inset`. Do not give an inner highlight an
|
|
411
|
+
unrelated radius.
|
|
62
412
|
- **Panes share one child-owned geometry.** Sidebars, main areas, inspectors, and
|
|
63
|
-
dialogs all
|
|
64
|
-
scrolling `.kui-pane__content`, optional
|
|
65
|
-
|
|
66
|
-
|
|
413
|
+
dialogs all render `Pane`: an unpadded `.kui-pane` (optional header, one
|
|
414
|
+
scrolling `.kui-pane__content`, optional footer). Use `tabIndex={0}` for a
|
|
415
|
+
whole-surface Tab stop or `-1` for programmatic
|
|
416
|
+
focus on Pane, SunkenPanel, static ContentItem, or a plain TabNavigator scene;
|
|
417
|
+
`outlined` holds its standard focus ring for an app state such as a drop target.
|
|
418
|
+
Workbench uses `mainTabIndex`/`mainOutlined` for the center and
|
|
419
|
+
`tabIndex`/`outlined` per rail or drawer. Hidden scenes and collapsed panels
|
|
420
|
+
suppress those states. Never write a component's anatomy classes onto your
|
|
421
|
+
own element to recreate it (`KUI-L103`); only the catalog's `placeableClasses`
|
|
422
|
+
(layout utilities, `.kui-app-root`,
|
|
423
|
+
`.kui-content-item` on a non-div carrier) belong there. A visible pane owns
|
|
424
|
+
its collapse control (the last control of its last group); a hidden pane's
|
|
425
|
+
restore moves to the adjacent main toolbar's matching edge — no icon-only
|
|
426
|
+
rail — and a collapsed drawer's restore sits in the bottom toolbar or a
|
|
427
|
+
`FloatingToolbar` beside the drawer, near where its effect appears. Align
|
|
428
|
+
text to text and icons to icons across a pane; a border is decoration, never
|
|
429
|
+
the alignment anchor. Keep one scroll owner per region.
|
|
430
|
+
- **Dividers between pinned chrome and scrolling content are scroll state.**
|
|
431
|
+
Toolbars draw no divider by default. Call `wireScrollDividers(appRoot)`
|
|
432
|
+
(`@kerfjs/ui/wire-scroll-dividers`) once and keep its disposer: every `Pane`
|
|
433
|
+
with `chromeDividers="scroll"` then draws the line under its header only while content is scrolled beneath
|
|
434
|
+
it and the line over its footer only while more content lies below (never
|
|
435
|
+
when the content fits), every `NavStack`'s top chrome and bottom toolbar and
|
|
436
|
+
every `TabNavigator` bar do the same around the active view or scene, and
|
|
437
|
+
every `TabBar` marks each side of its strip with tabs scrolled out of view. Configure a pane with `chromeDividers`
|
|
438
|
+
(`scroll` for a plain pane by default, `always` for a sunken pane by default,
|
|
439
|
+
or explicit `scroll`, `always`, `none`), and a `NavStack` or `TabNavigator`
|
|
440
|
+
with its own `chromeDividers` (same values; a `SplitView` forwards it through
|
|
441
|
+
`compactStack`); name app-owned chrome in `targets`.
|
|
442
|
+
A `TabNavigator` also takes `separator="auto" | "hidden"`: auto draws the
|
|
443
|
+
bar's top edge beside a sunken active scene or nested Pane even when content
|
|
444
|
+
fits; hidden suppresses that edge, including scroll dividers.
|
|
445
|
+
Never add a border, or a permanent `dividerSides`, to fake one.
|
|
446
|
+
While a side overlay is open (a Workbench rail overlay, a `wireSidebar` compact
|
|
447
|
+
overlay, an overlay `CollapsiblePanel` or horizontal `ResizableRegion`), the
|
|
448
|
+
layout hides the covered work area's `FloatingToolbar`s and restore corners
|
|
449
|
+
itself (unfocusable, out of the accessibility tree) until it closes — do not
|
|
450
|
+
hide them from overlay state yourself.
|
|
67
451
|
- **State and behavior live in the app.** Components take semantic `data-action`
|
|
68
452
|
strings and controlled values; wire them once with `delegate()`/`delegateActions()`
|
|
69
453
|
or the disposer-returning `wire…` helpers, and own domain copy, transport, and
|
|
@@ -72,41 +456,139 @@ maintain a central style list. Configure JSX with `"jsxImportSource": "kerfjs"`.
|
|
|
72
456
|
- **App state is domain/persisted; helpers own only ephemeral mechanics.** Keep
|
|
73
457
|
navigation stacks, tab selection and order, pane sizes, and `collapsed`/`expanded`
|
|
74
458
|
disclosure flags in the app — they are data or persisted layout, and the app reads
|
|
75
|
-
them to render. The `wire…` helpers own the
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
459
|
+
them to render. The `wire…` helpers own the _ephemeral_ parts: `wireNavStack` the
|
|
460
|
+
content-slide, per-view top/bottom chrome cross-fade, and focus move/restore
|
|
461
|
+
(mark a preferred new-view target with `data-nav-focus`), `wireTabBars` the
|
|
462
|
+
overflow autoscroll, drag preview, and
|
|
463
|
+
replacement focus after controlled automatic tab activation,
|
|
464
|
+
`wireResizableRegions` the live drag preview, `wireScrollDividers` the
|
|
465
|
+
scroll-state attributes from which a `Pane` draws its chrome dividers and a
|
|
466
|
+
`TabBar` its overflow dividers; they report committed changes via
|
|
467
|
+
callbacks. For a tab-local action plus a separate far-edge action, set
|
|
468
|
+
`TabBar trailingPlacement="adjacent"`, put the local action in `trailing`, and
|
|
469
|
+
the workspace action in `end`; the component keeps both visible while its tab
|
|
470
|
+
list shrinks and scrolls, without application descendant CSS. Each action
|
|
471
|
+
zone accepts one ToolbarControlGroup or a standalone `wa-button` for its own
|
|
472
|
+
Web Awesome chrome. Managed
|
|
473
|
+
TokenSearchField clear also preserves open state and replacement
|
|
474
|
+
editor focus before the next input task, so shortcut-letter typing stays in search.
|
|
475
|
+
Select All deletion does the same; deletion
|
|
476
|
+
restoration finishes before the next keystroke rather than on a delayed frame.
|
|
477
|
+
Persist both query and remaining tokens read from an edited field; change
|
|
478
|
+
`revision` to replace unmanaged DOM-owned text programmatically, or call
|
|
479
|
+
`model.replace({ query, tokens })` for a model-managed field. In grammar-assisted
|
|
480
|
+
search, a model rule's `suggest(input, state)` receives current committed tokens
|
|
481
|
+
so suggestions can omit selected values; one-argument callbacks still work.
|
|
482
|
+
A sibling helper can call `model.commit(value)` for the active `name:` prefix
|
|
483
|
+
even when that value is not suggested; invalid values and missing prefixes
|
|
484
|
+
leave state unchanged.
|
|
485
|
+
The one richer case is `wireTokenSearchFields`, which manages the
|
|
79
486
|
collapsible field's expand/collapse/focus by default (on, per-behavior opt-out) and
|
|
80
487
|
exposes the `expanded` signal on its handle — bind it in render or hand in your own
|
|
81
488
|
via `collapsible.signals`. Do not hand-roll open/collapse/focus that helper
|
|
82
489
|
provides; but do keep a plain disclosure toggle (a one-line boolean the app already
|
|
83
|
-
renders from) in the app.
|
|
490
|
+
renders from) in the app. For real-app composition it also offers a focusout
|
|
491
|
+
keep-open exception (`data-token-search-keep-open` regions or `collapsible.keepOpenOn`,
|
|
492
|
+
so a sibling suggestions/date popover does not collapse an empty field), opt-in
|
|
493
|
+
atomic-chip keyboard (`keyboard`: Backspace/Delete remove the adjacent chip via
|
|
494
|
+
`onRemoveToken`, ArrowRight moves the caret past a trailing chip), and an
|
|
495
|
+
`onEdit({id, editor, event})` input callback (the `InputEvent` lets you gate on `inputType`/`data`) — so the app can drop its own keydown/input
|
|
496
|
+
boilerplate while still owning parsing and controlled token state.
|
|
84
497
|
- **Placeholder loading state, don't rebuild it.** For a value or component that is
|
|
85
498
|
still loading, set `placeholder` on the component (`Select`, `ListHeader`,
|
|
86
|
-
`ListItem`, `ValueTableRow`, `
|
|
499
|
+
`ListItem`, `ValueTableRow`, `SegmentedControl`, `StateBanner`,
|
|
87
500
|
`AppTab`, `ToolbarText`, `ListActionRow`): it renders its real chrome with value
|
|
88
|
-
slots as subtle **unanimated** skeleton blocks and interactivity disabled
|
|
89
|
-
|
|
90
|
-
|
|
501
|
+
slots as subtle **unanimated** skeleton blocks and interactivity disabled. Only
|
|
502
|
+
unknown values change: a placeholder is never dimmed or styled as disabled (a
|
|
503
|
+
control you disabled keeps its live disabled tone), so a parent composes a
|
|
504
|
+
faithful loading view (e.g. an inspector) without hand-rebuilding markup.
|
|
505
|
+
Component-drawn chrome stays live: a `ListItem` or `ListActionRow` keeps its
|
|
506
|
+
`busy` spinner while its `status` (and a `ListItem`'s `trailing`) content
|
|
507
|
+
become skeletons. Use the standalone `Skeleton` for a custom slot. Prefer it over `wa-skeleton`
|
|
91
508
|
(the pure-Kerf primitives avoid Web Awesome), and never animate it — use
|
|
92
|
-
`LoadingSpinner` for known busy activity instead.
|
|
509
|
+
`LoadingSpinner` for known busy activity instead. Set its `size` prop to a
|
|
510
|
+
named icon step or positive pixel number when the inherited 1em is unsuitable.
|
|
511
|
+
- **Keep ListItem content inside the row.** The rounded `ListItem` root clips
|
|
512
|
+
overflowing label, status, and dormant trailing content. Set `multiline` when
|
|
513
|
+
the primary label should wrap; use `ListActionRow` instead when trailing content
|
|
514
|
+
must be interactive.
|
|
515
|
+
- **Dialog bodies are lists by default.** Compose rows and sections in `List`,
|
|
516
|
+
use `DialogSurface bodyInset="none"` when those children own their geometry,
|
|
517
|
+
and wrap bare prose in `ListInsetText` so it shares the standard list gutter
|
|
518
|
+
without stacking a second body inset.
|
|
519
|
+
- **Use a StateBanner badge only for compact supporting status.** Pass the
|
|
520
|
+
optional string `badge` for a terse count or status beside the title. It
|
|
521
|
+
inherits the banner tone and is announced with the banner, so keep its text
|
|
522
|
+
meaningful and never rely on color alone.
|
|
523
|
+
- **Configure StateBanner copy and action placement.** `copyLayout="stacked"`
|
|
524
|
+
puts detail below the title and badge; `actionPlacement="below"` gives the
|
|
525
|
+
action a separate trailing row. The inline defaults remain compact.
|
|
526
|
+
- **Size a Select through its API.** `triggerWidth` chooses `fit-content`,
|
|
527
|
+
`max-content`, or `fill`; `--kui-select-trigger-max-width` caps it. For custom
|
|
528
|
+
selected text, use the public color, font-size, and font-weight tokens; the
|
|
529
|
+
closed value ellipsizes when space runs out. `presentation="title"` gives a
|
|
530
|
+
rail view heading a 36px bold, flush-start trigger and adjacent caret;
|
|
531
|
+
`focusRingInset` keeps its ring inside clipping ancestors.
|
|
532
|
+
- **Configure application tabs at their owners.** AppTab's `icon-only`
|
|
533
|
+
presentation keeps `name` accessible, `labelMaxWidth` ellipsizes a long name,
|
|
534
|
+
`nameOverflow="visible"` shows the full name during inline loading, and
|
|
535
|
+
`dropTarget` highlights a drag-over without changing selection. `attention`
|
|
536
|
+
uses `--kui-app-tab-attention-color`. TabBar's public
|
|
537
|
+
`--kui-tab-bar-strip-*` tokens set compact strip geometry.
|
|
538
|
+
An inspector TabBar uses the shared rounded rectangle radius on its strip
|
|
539
|
+
and inset segmented tabs; an ordinary segmented TabBar keeps pill ends and
|
|
540
|
+
smaller interior tab corners. Configure the presentation instead of
|
|
541
|
+
restyling AppTab.
|
|
542
|
+
Set `pinned` on the first AppTab to keep it visible within a scrolling
|
|
543
|
+
tablist; it remains in keyboard order. Use `--kui-app-tab-pinned-background`
|
|
544
|
+
for the surrounding surface and keep that backdrop opaque.
|
|
545
|
+
- **Use `Badge` for compact non-interactive metadata.** Configure its semantic
|
|
546
|
+
tone, appearance, shape, and size instead of creating badge CSS in an app or
|
|
547
|
+
consuming component. Use a real button or link for interactive content.
|
|
548
|
+
For new content without a count, use the text-free `size="dot"` form: it
|
|
549
|
+
takes no children, and needs a `label` (announced as an image) or
|
|
550
|
+
`ariaHidden` when its owner announces it. A `TabNavigator` tab shows the dot
|
|
551
|
+
with `badge: true` plus its required `badgeLabel`.
|
|
552
|
+
- **Use `Chip` for removable tags.** Give the native remove button a delegated
|
|
553
|
+
`removeAction` and a specific `removeLabel`; the application updates the tag
|
|
554
|
+
list. `itemId` identifies the chip to the action handler. `size="compact"`
|
|
555
|
+
gives a 20px chip and 16px remove button; `disabled` disables removal.
|
|
93
556
|
|
|
94
557
|
## Public exports
|
|
95
558
|
|
|
96
|
-
`LucideIcon`, `DisclosureArrow`, `Toolbar`, `ToolbarControlGroup`, `ToolbarText`,
|
|
97
|
-
`
|
|
559
|
+
`Badge`, `LucideIcon`, `DisclosureArrow`, `Toolbar`, `ToolbarControlGroup`, `ToolbarActionLink`, `FloatingToolbar`, `ToolbarText`, `Text`,
|
|
560
|
+
`ListItem`, `ListActionRow`, `ListHeader`, `ListInsetControl`,
|
|
561
|
+
`ListInsetText`, `SegmentedControl`,
|
|
98
562
|
`Select`, `TokenSearchField` (+ `readTokenSearchField`, `placeTokenSearchCaret`,
|
|
99
563
|
`wireTokenSearchFields`), `AppTab`, `TabBar` (+ `wireTabBars`, `reorderTabs`),
|
|
564
|
+
`wireScrollDividers` (scroll-state dividers for every `Pane`, `NavStack`,
|
|
565
|
+
`TabNavigator`, and `TabBar`),
|
|
100
566
|
`ResizableRegion` (+ `wireResizableRegions`), `StateBanner`, `EmptyState`,
|
|
101
567
|
`LoadingSpinner`, `Skeleton`, `ValueTable`, `ValueTableRow`. Whole-screen layouts (opt-in,
|
|
102
|
-
tree-shakeable, declarative with `wire…` helpers
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
`
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
568
|
+
tree-shakeable, declarative with `wire…` helpers; the browser build of each layout
|
|
569
|
+
subpath loads its CSS and that of the components it renders, and a companion
|
|
570
|
+
CSS subpath remains for pipelines without the `browser` condition):
|
|
571
|
+
`NavStack`, `SplitView`, `Workbench`, `TabNavigator`, driven by `deviceClass()` from
|
|
572
|
+
`@kerfjs/ui/device-class`. For a standalone collapsible rail/drawer outside a full
|
|
573
|
+
shell, `@kerfjs/ui/collapsible-panel` (`CollapsiblePanel`, `CollapsiblePanelToggle`)
|
|
574
|
+
|
|
575
|
+
- `@kerfjs/ui/wire-sidebar` (`wireSidebar`: toggle, focus, compact overlay, persistence; a compact overlay starts closed and opens only on a user action, and `inlineCollapsed` declares a panel's inline default).
|
|
576
|
+
`@kerfjs/ui/catalog` is another opt-in shell — a
|
|
577
|
+
`Catalog` component + `wireCatalog` helper for building a component-gallery catalog
|
|
578
|
+
(collapsible category sidebar + preview stage + resources footer, with
|
|
579
|
+
focus-preserving active-row reveal for long desktop sidebars) from your own
|
|
580
|
+
entries; controlled/stateless like the layouts. Its optional contrast, reduced
|
|
581
|
+
motion, theme, and preview-background controls are built in; pass state and
|
|
582
|
+
`wireCatalog` callbacks instead of recreating their toolbar markup, while your
|
|
583
|
+
app owns applying and persisting preferences. For any Catalog demo, follow
|
|
584
|
+
the [authoritative authoring contract](./docs/catalog.md#catalog-demo-authoring-contract)
|
|
585
|
+
rather than inferring structure from the shell or private CSS. The shipped
|
|
586
|
+
Catalog stage fills the preview scroller for short specimens and grows with
|
|
587
|
+
tall ones in every consumer; do not add a demo-specific height or backdrop
|
|
588
|
+
override.
|
|
589
|
+
`@kerfjs/ui/webawesome` is a
|
|
590
|
+
type-only boundary for `wa-*` JSX; `@kerfjs/ui/select/register` and the CSS are the
|
|
591
|
+
declared side effects.
|
|
110
592
|
|
|
111
593
|
## Reference
|
|
112
594
|
|
|
@@ -116,7 +598,38 @@ declared side effects.
|
|
|
116
598
|
- [component-contract.md](./docs/component-contract.md): what a component owns vs. what the app owns.
|
|
117
599
|
- [accessibility.md](./docs/accessibility.md): keyboard and ARIA contracts per component.
|
|
118
600
|
- [recipes.md](./docs/recipes.md): production compositions (app shell, list-detail dialog, composer form, …) as copyable references.
|
|
119
|
-
- [
|
|
120
|
-
- [
|
|
121
|
-
- [
|
|
601
|
+
- [workbench.md](./docs/workbench.md): the `Workbench` multi-panel shell, its collapse policies, and opt-in `resizable` panels driven by `wireWorkbench` (`@kerfjs/ui/wire-workbench`: drag, keyboard, min/max, persistence, compact suspension), the `mainMinSize` / `mainMinHeight` work-area minimums (default 320px wide beside any inline rail, 120px tall above the drawer) that resizable panels stop at and inline panels shrink around, and a panel's `responsiveOverlayAt` (`narrow` / `compact`, rails and the bottom drawer) that presents it as an overlay below a Workbench container breakpoint without a device-class check; a panel given its `collapsed` signal is a transient overlay (collapsed on entering the breakpoint, takes focus and keeps Tab inside while open, closed by Escape or an outside press, focus returned; `dismissOverlays`), and overlays are exclusive by default (opening one closes the others; `exclusiveOverlays: false` opts out).
|
|
602
|
+
- [app-layouts.md](./docs/app-layouts.md): choosing `NavStack`/`SplitView`/`Workbench`/`TabNavigator` by data + interaction + device, and dialog presentation, plus the safe-area model (surfaces paint through unsafe areas; content pads only the edges it reaches; `Pane.safeAreaEdges` for app-owned arrangements, `Toolbar.safeAreaEdges` for an app bar or bottom bar at a screen edge).
|
|
603
|
+
- [webawesome-theme.md](./docs/webawesome-theme.md): the optional Web Awesome theme; catalog coverage means themed-and-supported, not preferred (prefer the Kerf primitive when one exists). The UX sidebar visibly tags superseded and exceptional Web Awesome choices as `Discouraged`; Popup remains an available conditional positioning primitive.
|
|
604
|
+
- [ai/components/README.md](./ai/components/README.md): the generated per-component markdown reference — the assistant entry point over both JSON catalogs.
|
|
605
|
+
- [component-catalog.json](./ai/component-catalog.json) + [component-catalog-extension.schema.json](./ai/component-catalog-extension.schema.json) + [catalog-authoring.json](./ai/catalog-authoring.json) + [public-api-signatures-v1.md](./ai/public-api-signatures-v1.md) + [webawesome-jsx-signatures-v1.md](./ai/webawesome-jsx-signatures-v1.md): machine-readable selection facts, a reusable app-component extension contract, Catalog authoring discovery, and exact signatures.
|
|
606
|
+
- [compile-time-contracts-v1.json](./ai/compile-time-contracts-v1.json) + [type-contracts.md](./docs/type-contracts.md): stable compile diagnostics, packed-declaration proof, migrations, and explicit non-goals.
|
|
122
607
|
- [README.md](./README.md): package overview and the component subpath table.
|
|
608
|
+
|
|
609
|
+
Neutral lowered surfaces and decorative neutral fills/borders are translucent theme colors; compose nested public components directly. Default/raised canvases, foregrounds, focus indicators, and loud contrast-bearing fills remain opaque. Do not assign depth-specific component tokens in demo wrappers.
|
|
610
|
+
|
|
611
|
+
Navigation transition continuity: `wireNavStack` slides the incoming view over the preserved previous view on push and the outgoing view off on pop, cross-fades both live chrome surfaces with inert snapshots, and settles/cancels an interrupted transition before starting the next. Reduced motion and duration zero settle immediately.
|
|
612
|
+
|
|
613
|
+
For a tab scene with drill-down, put a `NavStack` directly in `TabNavigatorTab.content`, configure each view's top `toolbar` and `pane`, and omit `bottomToolbar` at both levels so the scaffold bar remains the only bottom chrome. Wire both components on their own roots. The catalog's **NavStack inside a tab** example exercises push and tab switching.
|
|
614
|
+
|
|
615
|
+
`Pane.deepInset` (and `PaneConfig.deepInset`) or `TabNavigatorTab.deepInset` on a plain scene adds 8px on all four sides of the scroll content, so ordinary 8px item margins land 16px from the inline edge. Nested Row/List/Grid spacing stays at its default. Set a nested scene's Pane option instead of insetting its entire NavStack or toolbar.
|
|
616
|
+
For a child table whose decoration spans the Pane while its text stays aligned, use the Pane content slot's inherited `--kui-pane-content-inset-inline-start` and `--kui-pane-content-inset-inline-end`: negate them for the child's logical margins and add them to cell padding. They include safe areas and `deepInset`; see `docs/app-layouts.md#edge-to-edge-content-inside-a-pane`.
|
|
617
|
+
|
|
618
|
+
`ToolbarText` and `ToolbarControlGroup` accept typed `hideBelow`/`showBelow`
|
|
619
|
+
lengths (for example `px(416)`). Wire `wireToolbarVisibility(root)` from
|
|
620
|
+
`@kerfjs/ui/wire-toolbar-visibility` and dispose on unmount. Thresholds use the
|
|
621
|
+
nearest Toolbar content-box width: hideBelow hides strictly below, showBelow
|
|
622
|
+
shows strictly below, with complementary behavior at equality. Percentages use
|
|
623
|
+
that content width; em and custom properties use the item's own context. Invalid,
|
|
624
|
+
negative, unresolved, or contradictory values leave the item visible under this
|
|
625
|
+
width policy. Keep primary actions visible and offer a complementary overflow
|
|
626
|
+
group. See `docs/component-contract.md` "Toolbar width visibility" for lifecycle
|
|
627
|
+
details.
|
|
628
|
+
|
|
629
|
+
Select menus use native viewport shifting with 10px gutters: default menus grow to content (up to 20rem), while `fitMenu` matches trigger width and long labels wrap. Keep popup sizing and position repairs out of consumer CSS.
|
|
630
|
+
|
|
631
|
+
Modal `DialogSurface` bounds use typed `viewportGutter` and `maxHeight` (`CssLength` or `"viewport"`); explicit caps stay within the dynamic viewport minus both gutters. Omitted props preserve Web Awesome defaults. Application render state chooses responsive values, and preview layout remains application-owned.
|
|
632
|
+
|
|
633
|
+
Import `@kerfjs/ui/surface-scaffold/register` once when using `DialogSurface`: it registers `wa-dialog` and repairs Web Awesome 3.12 native dialog names before the first modal opening. Headed dialogs reference the rendered title, including live slotted labels; headerless dialogs use the public `label`. Explicit host `aria-label` and pre-existing native names are preserved. Geometry-only markup stays CSS-free and does not register Web Awesome implicitly.
|
|
634
|
+
|
|
635
|
+
Toolbar visibility measurement probes and invisible state children are helper-owned and survive Kerf rerenders through `data-morph-preserve`. Actual CSS visibility stays stable while rendering removes transient parent markers, preventing geometry-driven render feedback and repeated probe recreation. Toolbar replacement, explicit internal-node removal and disposal retain their existing behavior.
|