@kerfjs/ui 5.0.0-beta.4 → 5.0.0-beta.41
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 +342 -108
- package/ai/application-ui-diagnostic-ids-v1.json +100 -0
- package/ai/application-ui-profile-sync.cjs +529 -0
- package/ai/application-ui-profile.d.mts +1 -0
- package/ai/application-ui-profile.d.ts +102 -0
- package/ai/application-ui-profile.defaults.json +41 -0
- package/ai/application-ui-profile.mjs +626 -0
- package/ai/application-ui-profile.schema.json +130 -0
- package/ai/catalog-authoring.json +25 -0
- package/ai/catalog-authoring.schema.json +61 -0
- package/ai/compile-time-contracts-v1.json +132 -0
- package/ai/compile-time-contracts-v1.schema.json +51 -0
- package/ai/component-catalog-extension-v2.d.ts +7 -0
- package/ai/component-catalog-extension-v2.schema.json +7 -0
- package/ai/component-catalog-extension.schema.json +79 -0
- package/ai/component-catalog-v2-overrides.json +496 -0
- package/ai/component-catalog-v2.d.ts +90 -0
- package/ai/component-catalog-v2.json +5678 -0
- package/ai/component-catalog-v2.schema.json +298 -0
- package/ai/component-catalog.json +2694 -417
- package/ai/component-catalog.schema.json +39 -0
- package/ai/public-api-signatures-v1.md +1591 -126
- package/ai/skill.md +140 -54
- package/ai/webawesome-jsx-signatures-v1.md +2 -1
- package/analyzer/cli.mjs +49 -0
- package/analyzer/index.d.mts +46 -0
- package/analyzer/index.mjs +1086 -0
- package/analyzer/report.schema.json +66 -0
- package/dist/app-tab.d.ts +15 -4
- package/dist/app-tab.js +3 -1
- package/dist/browser/app-tab.js +1 -0
- package/dist/browser/floating-toolbar.js +3 -0
- package/dist/browser/list-action-row.js +5 -0
- package/dist/browser/list-header.js +7 -0
- package/dist/browser/list-inset-control.js +3 -0
- package/dist/browser/list-inset-text.js +3 -0
- package/dist/browser/list-item.js +5 -0
- package/dist/browser/list.js +3 -0
- package/dist/browser/pane.js +3 -0
- package/dist/browser/row.js +3 -0
- package/dist/browser/segmented-control.js +1 -0
- package/dist/browser/select.js +1 -0
- package/dist/browser/skeleton.js +3 -0
- package/dist/browser/spacer.js +3 -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/text.js +3 -0
- package/dist/browser/toolbar-text.js +1 -0
- package/dist/browser/value-table.js +1 -0
- package/dist/catalog-resources.d.ts +35 -0
- package/dist/catalog-resources.js +22 -0
- package/dist/catalog-resources.js.map +1 -0
- package/dist/catalog.d.ts +151 -0
- package/dist/catalog.js +396 -0
- package/dist/catalog.js.map +1 -0
- package/dist/chunk-2TYUFZUC.js +22 -0
- package/dist/chunk-2TYUFZUC.js.map +1 -0
- package/dist/chunk-6NDBE2OK.js +32 -0
- package/dist/chunk-6NDBE2OK.js.map +1 -0
- package/dist/chunk-6WTETUZ6.js +21 -0
- package/dist/chunk-6WTETUZ6.js.map +1 -0
- package/dist/chunk-AQFWBG23.js +83 -0
- package/dist/chunk-AQFWBG23.js.map +1 -0
- package/dist/chunk-B6JYRX3P.js +51 -0
- package/dist/chunk-B6JYRX3P.js.map +1 -0
- package/dist/chunk-C34NZOLJ.js +53 -0
- package/dist/chunk-C34NZOLJ.js.map +1 -0
- package/dist/chunk-CAB6NQ2T.js +102 -0
- package/dist/chunk-CAB6NQ2T.js.map +1 -0
- package/dist/chunk-CK6P5AUK.js +136 -0
- package/dist/chunk-CK6P5AUK.js.map +1 -0
- package/dist/chunk-DAO2VFTT.js +129 -0
- package/dist/chunk-DAO2VFTT.js.map +1 -0
- package/dist/chunk-DEYOGDE7.js +141 -0
- package/dist/chunk-DEYOGDE7.js.map +1 -0
- package/dist/chunk-DYBPI5O2.js +25 -0
- package/dist/chunk-DYBPI5O2.js.map +1 -0
- package/dist/{chunk-TRNBHPNW.js → chunk-E34TE2ZI.js} +12 -8
- package/dist/chunk-E34TE2ZI.js.map +1 -0
- package/dist/chunk-EYALJQQD.js +25 -0
- package/dist/chunk-EYALJQQD.js.map +1 -0
- package/dist/chunk-I45QO2IZ.js +88 -0
- package/dist/chunk-I45QO2IZ.js.map +1 -0
- package/dist/chunk-I4V3UDSA.js +79 -0
- package/dist/chunk-I4V3UDSA.js.map +1 -0
- package/dist/chunk-OGTJNHRG.js +42 -0
- package/dist/chunk-OGTJNHRG.js.map +1 -0
- package/dist/chunk-OL4TC3U2.js +156 -0
- package/dist/chunk-OL4TC3U2.js.map +1 -0
- package/dist/chunk-OMSRSL3B.js +120 -0
- package/dist/chunk-OMSRSL3B.js.map +1 -0
- package/dist/chunk-R3EBGEAW.js +46 -0
- package/dist/chunk-R3EBGEAW.js.map +1 -0
- package/dist/chunk-SOK5EUF7.js +25 -0
- package/dist/chunk-SOK5EUF7.js.map +1 -0
- package/dist/{chunk-7BR3DO2A.js → chunk-SRSJO5QE.js} +13 -4
- package/dist/chunk-SRSJO5QE.js.map +1 -0
- package/dist/chunk-T7DOWS6T.js +61 -0
- package/dist/chunk-T7DOWS6T.js.map +1 -0
- package/dist/chunk-TIGSG6BX.js +218 -0
- package/dist/chunk-TIGSG6BX.js.map +1 -0
- package/dist/chunk-UDHHKZWO.js +41 -0
- package/dist/chunk-UDHHKZWO.js.map +1 -0
- package/dist/{chunk-MQIZAD4A.js → chunk-UKKSMZYT.js} +76 -22
- package/dist/chunk-UKKSMZYT.js.map +1 -0
- package/dist/chunk-V6GQKOX2.js +39 -0
- package/dist/chunk-V6GQKOX2.js.map +1 -0
- package/dist/chunk-V6HCTCVD.js +46 -0
- package/dist/chunk-V6HCTCVD.js.map +1 -0
- package/dist/chunk-VDUJZF5G.js +515 -0
- package/dist/chunk-VDUJZF5G.js.map +1 -0
- package/dist/chunk-VXFGMDA7.js +31 -0
- package/dist/chunk-VXFGMDA7.js.map +1 -0
- package/dist/chunk-WN52USHV.js +115 -0
- package/dist/chunk-WN52USHV.js.map +1 -0
- package/dist/chunk-WSXUPSID.js +43 -0
- package/dist/chunk-WSXUPSID.js.map +1 -0
- package/dist/chunk-X5GRDQ7V.js +50 -0
- package/dist/chunk-X5GRDQ7V.js.map +1 -0
- package/dist/{chunk-56RJXPHG.js → chunk-Y6LYKFXY.js} +1 -1
- package/dist/{chunk-56RJXPHG.js.map → chunk-Y6LYKFXY.js.map} +1 -1
- package/dist/chunk-ZASJJMGV.js +17 -0
- package/dist/chunk-ZASJJMGV.js.map +1 -0
- package/dist/chunk-ZPWZIVI6.js +47 -0
- package/dist/chunk-ZPWZIVI6.js.map +1 -0
- package/dist/collapsible-panel.d.ts +77 -0
- package/dist/collapsible-panel.js +84 -0
- package/dist/collapsible-panel.js.map +1 -0
- package/dist/css-values.d.ts +75 -0
- package/dist/css-values.js +3 -0
- package/dist/css-values.js.map +1 -0
- package/dist/device-class.d.ts +62 -0
- package/dist/device-class.js +103 -0
- package/dist/device-class.js.map +1 -0
- package/dist/disclosure-arrow.js +1 -1
- package/dist/divider-sides-BzB6rphT.d.ts +6 -0
- package/dist/empty-state.d.ts +3 -2
- package/dist/empty-state.js +1 -1
- package/dist/flex-alignment-CF8NLj7i.d.ts +4 -0
- package/dist/floating-toolbar.d.ts +29 -0
- package/dist/floating-toolbar.js +3 -0
- package/dist/floating-toolbar.js.map +1 -0
- package/dist/index.d.ts +28 -14
- package/dist/index.js +34 -23
- package/dist/{menu-action-row.d.ts → list-action-row.d.ts} +19 -8
- package/dist/list-action-row.js +7 -0
- package/dist/list-action-row.js.map +1 -0
- package/dist/list-header.d.ts +80 -0
- package/dist/list-header.js +9 -0
- package/dist/list-header.js.map +1 -0
- package/dist/list-inset-control.d.ts +20 -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 +29 -0
- package/dist/list-inset-text.js +3 -0
- package/dist/list-inset-text.js.map +1 -0
- package/dist/list-item.d.ts +45 -0
- package/dist/list-item.js +7 -0
- package/dist/list-item.js.map +1 -0
- package/dist/list.d.ts +30 -0
- package/dist/list.js +5 -0
- package/dist/list.js.map +1 -0
- package/dist/loading-spinner.js +1 -1
- package/dist/nav-stack.d.ts +41 -0
- package/dist/nav-stack.js +6 -0
- package/dist/nav-stack.js.map +1 -0
- package/dist/pane.d.ts +50 -0
- package/dist/pane.js +4 -0
- package/dist/pane.js.map +1 -0
- package/dist/resizable-region.d.ts +21 -3
- package/dist/resizable-region.js +1 -1
- package/dist/row.d.ts +28 -0
- package/dist/row.js +5 -0
- package/dist/row.js.map +1 -0
- package/dist/segmented-control.d.ts +11 -8
- package/dist/segmented-control.js +3 -1
- package/dist/select-register.d.ts +5 -1
- package/dist/select-register.js +129 -1
- package/dist/select-register.js.map +1 -1
- package/dist/select.d.ts +34 -8
- package/dist/select.js +3 -1
- package/dist/semantic-content-BbzjvSu9.d.ts +14 -0
- package/dist/skeleton.d.ts +25 -0
- package/dist/skeleton.js +4 -0
- package/dist/skeleton.js.map +1 -0
- package/dist/spacer.d.ts +16 -0
- package/dist/spacer.js +4 -0
- package/dist/spacer.js.map +1 -0
- package/dist/split-view.d.ts +43 -0
- package/dist/split-view.js +82 -0
- package/dist/split-view.js.map +1 -0
- package/dist/state-banner.d.ts +11 -5
- package/dist/state-banner.js +3 -1
- package/dist/styles/app-tab.css +26 -0
- package/dist/styles/catalog.css +582 -0
- package/dist/styles/collapsible-panel.css +212 -0
- package/dist/styles/floating-toolbar.css +38 -0
- package/dist/styles/foundation.css +80 -0
- package/dist/styles/layout.css +2 -20
- package/dist/styles/list-action-row.css +224 -0
- package/dist/styles/list-header.css +224 -0
- package/dist/styles/list-inset-control.css +23 -0
- package/dist/styles/list-inset-text.css +30 -0
- package/dist/styles/list-item.css +171 -0
- package/dist/styles/list.css +118 -0
- package/dist/styles/nav-stack.css +141 -0
- package/dist/styles/pane.css +62 -0
- package/dist/styles/resizable-region.css +158 -0
- package/dist/styles/row.css +92 -0
- package/dist/styles/segmented-control.css +10 -7
- package/dist/styles/select.css +115 -2
- package/dist/styles/skeleton.css +31 -0
- package/dist/styles/spacer.css +11 -0
- package/dist/styles/split-view.css +35 -0
- package/dist/styles/state-banner.css +49 -10
- package/dist/styles/styles.css +10 -5
- package/dist/styles/sunken-panel.css +22 -0
- package/dist/styles/surface-scaffold.css +51 -0
- package/dist/styles/tab-bar.css +24 -0
- package/dist/styles/tab-scaffold.css +85 -0
- package/dist/styles/text.css +6 -0
- package/dist/styles/token-search-field.css +14 -2
- package/dist/styles/toolbar-control-group.css +235 -8
- package/dist/styles/toolbar-text.css +65 -2
- package/dist/styles/toolbar.css +47 -2
- package/dist/styles/webawesome.css +171 -0
- package/dist/styles/workbench.css +187 -0
- package/dist/sunken-panel.d.ts +20 -0
- package/dist/sunken-panel.js +3 -0
- package/dist/sunken-panel.js.map +1 -0
- package/dist/surface-scaffold.d.ts +26 -0
- package/dist/surface-scaffold.js +3 -0
- package/dist/surface-scaffold.js.map +1 -0
- package/dist/tab-bar.d.ts +24 -6
- package/dist/tab-bar.js +1 -1
- package/dist/tab-scaffold.d.ts +31 -0
- package/dist/tab-scaffold.js +51 -0
- package/dist/tab-scaffold.js.map +1 -0
- package/dist/text.d.ts +20 -0
- package/dist/text.js +3 -0
- package/dist/text.js.map +1 -0
- package/dist/token-search-field.d.ts +30 -13
- package/dist/token-search-field.js +1 -1
- package/dist/toolbar-control-group.d.ts +33 -7
- package/dist/toolbar-control-group.js +1 -1
- package/dist/toolbar-text.d.ts +31 -4
- package/dist/toolbar-text.js +3 -1
- package/dist/toolbar.d.ts +10 -7
- package/dist/toolbar.js +1 -1
- package/dist/value-table.d.ts +7 -3
- package/dist/value-table.js +3 -1
- package/dist/webawesome.d.ts +1 -0
- package/dist/wire-catalog.d.ts +57 -0
- package/dist/wire-catalog.js +302 -0
- package/dist/wire-catalog.js.map +1 -0
- package/dist/wire-nav-stack.d.ts +18 -0
- package/dist/wire-nav-stack.js +228 -0
- package/dist/wire-nav-stack.js.map +1 -0
- package/dist/wire-resizable-regions.d.ts +1 -1
- package/dist/wire-resizable-regions.js +1 -1
- package/dist/wire-sidebar.d.ts +48 -0
- package/dist/wire-sidebar.js +147 -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-scaffold.d.ts +11 -0
- package/dist/wire-tab-scaffold.js +21 -0
- package/dist/wire-tab-scaffold.js.map +1 -0
- package/dist/wire-token-search-fields.d.ts +104 -4
- package/dist/wire-token-search-fields.js +1 -1
- package/dist/workbench.d.ts +44 -0
- package/dist/workbench.js +106 -0
- package/dist/workbench.js.map +1 -0
- package/docs/accessibility.md +155 -20
- package/docs/app-layouts.md +61 -0
- package/docs/catalog.md +364 -0
- package/docs/collapsible-panel.md +142 -0
- package/docs/component-contract.md +258 -28
- package/docs/component-integration.md +63 -0
- package/docs/component-selection.md +219 -57
- 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/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-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/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/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 +128 -0
- package/docs/design-philosophy.md +33 -11
- package/docs/device-class.md +54 -0
- package/docs/examples/application-ui-profile.json +60 -0
- package/docs/examples/command-palette-adapter.tsx +68 -17
- package/docs/examples/component-catalog-extension-v2.json +80 -0
- package/docs/examples/component-catalog-extension.json +45 -0
- package/docs/layout.md +169 -38
- package/docs/nav-stack.md +77 -0
- package/docs/recipes.md +64 -16
- package/docs/split-view.md +55 -0
- package/docs/sunken-panel.md +53 -0
- package/docs/surface-scaffold.md +25 -0
- package/docs/tab-scaffold.md +52 -0
- package/docs/type-contracts.md +127 -0
- package/docs/ui-analyzer.md +118 -0
- package/docs/ui-doctor.md +91 -0
- package/docs/ui-evaluator.md +122 -0
- package/docs/ux-demo.md +29 -10
- package/docs/webawesome-theme.md +82 -8
- package/docs/workbench.md +123 -0
- package/doctor/cli.mjs +115 -0
- package/doctor/config.schema.json +68 -0
- package/doctor/eslint-diagnostics.d.mts +24 -0
- package/doctor/eslint-diagnostics.mjs +24 -0
- package/doctor/index.d.mts +116 -0
- package/doctor/index.mjs +1272 -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 +1138 -0
- package/evaluator/report.schema.json +152 -0
- package/llms.txt +260 -32
- package/package.json +205 -38
- package/traversal-exclusions.mjs +27 -0
- package/ux-demo/recipes/app-shell.tsx +223 -13
- package/ux-demo/recipes/collapsible-sidebar.tsx +230 -0
- package/ux-demo/recipes/compact-toolbar.tsx +116 -12
- package/ux-demo/recipes/composer-form.tsx +120 -19
- package/ux-demo/recipes/list-detail-dialog.tsx +205 -0
- package/ux-demo/recipes/list-workspace-states.tsx +176 -9
- package/ux-demo/recipes/loaders.ts +13 -4
- package/ux-demo/recipes/loading-inspector.tsx +191 -0
- package/ux-demo/recipes/mount-recipe.ts +31 -5
- package/ux-demo/recipes/navigation-sidebar.tsx +123 -11
- package/ux-demo/recipes/navigation-stack.tsx +121 -0
- package/ux-demo/recipes/recipes.css +125 -16
- package/ux-demo/recipes/types.ts +9 -1
- package/ux-demo/recipes/workspace-header.tsx +72 -3
- package/dist/browser/dialog-header.js +0 -5
- package/dist/browser/menu-action-row.js +0 -3
- package/dist/browser/menu-header.js +0 -5
- package/dist/browser/menu-item.js +0 -3
- package/dist/browser/page-header.js +0 -3
- package/dist/chunk-2PES33HS.js +0 -13
- package/dist/chunk-2PES33HS.js.map +0 -1
- package/dist/chunk-55DATV3A.js +0 -10
- package/dist/chunk-55DATV3A.js.map +0 -1
- package/dist/chunk-7BR3DO2A.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-CTQKI2XL.js +0 -28
- package/dist/chunk-CTQKI2XL.js.map +0 -1
- package/dist/chunk-DAFFDO33.js +0 -14
- package/dist/chunk-DAFFDO33.js.map +0 -1
- package/dist/chunk-EGHL5S4P.js +0 -33
- package/dist/chunk-EGHL5S4P.js.map +0 -1
- package/dist/chunk-GY5WH7TO.js +0 -10
- package/dist/chunk-GY5WH7TO.js.map +0 -1
- package/dist/chunk-H5AGGVU5.js +0 -75
- package/dist/chunk-H5AGGVU5.js.map +0 -1
- package/dist/chunk-K3G72I6D.js +0 -24
- package/dist/chunk-K3G72I6D.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.map +0 -1
- package/dist/chunk-NPPD2A6O.js +0 -40
- package/dist/chunk-NPPD2A6O.js.map +0 -1
- package/dist/chunk-R6JHHBKQ.js +0 -19
- package/dist/chunk-R6JHHBKQ.js.map +0 -1
- package/dist/chunk-S3TPM2LP.js +0 -23
- package/dist/chunk-S3TPM2LP.js.map +0 -1
- package/dist/chunk-TRNBHPNW.js.map +0 -1
- package/dist/chunk-VHW5YNIB.js +0 -17
- package/dist/chunk-VHW5YNIB.js.map +0 -1
- package/dist/chunk-WVPYVDXY.js +0 -15
- package/dist/chunk-WVPYVDXY.js.map +0 -1
- package/dist/chunk-XZXRLY5Q.js +0 -33
- package/dist/chunk-XZXRLY5Q.js.map +0 -1
- package/dist/dialog-header.d.ts +0 -15
- package/dist/dialog-header.js +0 -5
- package/dist/dialog-header.js.map +0 -1
- package/dist/menu-action-row.js +0 -4
- package/dist/menu-action-row.js.map +0 -1
- package/dist/menu-header.d.ts +0 -41
- package/dist/menu-header.js +0 -6
- package/dist/menu-header.js.map +0 -1
- package/dist/menu-item.d.ts +0 -31
- package/dist/menu-item.js +0 -4
- package/dist/menu-item.js.map +0 -1
- package/dist/page-header.d.ts +0 -9
- package/dist/page-header.js +0 -3
- package/dist/page-header.js.map +0 -1
- package/dist/styles/dialog-header.css +0 -87
- package/dist/styles/menu-action-row.css +0 -160
- package/dist/styles/menu-header.css +0 -143
- package/dist/styles/menu-item.css +0 -123
- package/dist/styles/page-header.css +0 -33
- package/ux-demo/recipes/master-detail-dialog.tsx +0 -45
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# Compile-time contracts
|
|
2
|
+
|
|
3
|
+
Kerf UI rejects invalid integrations at compile time only when TypeScript can
|
|
4
|
+
prove the relationship from one call. The versioned
|
|
5
|
+
[`compile-time-contracts-v1.json`](../ai/compile-time-contracts-v1.json)
|
|
6
|
+
artifact names those guarantees with stable `KUI-T###` ids. Its source fixture
|
|
7
|
+
is compiled twice: against `src/` and against declarations extracted from the
|
|
8
|
+
actual `npm pack` tarball. `npm run check:catalog` also verifies that every
|
|
9
|
+
contract still points to a real catalog entry/import and a symbol in the emitted
|
|
10
|
+
public-signature artifact.
|
|
11
|
+
|
|
12
|
+
## Strengthened contracts
|
|
13
|
+
|
|
14
|
+
| ID | Compile-time guarantee |
|
|
15
|
+
| ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
16
|
+
| `KUI-T001` | `ListHeader` is a passive heading, a fully named/icon-bearing trailing action, or a controlled disclosure with `action` + `expanded`. Props ignored by the selected mode are rejected. |
|
|
17
|
+
| `KUI-T002` | `Select` has a visible `label` or an `ariaLabel`. |
|
|
18
|
+
| `KUI-T003` | A literal `Select.value` belongs to its literal `choices`. |
|
|
19
|
+
| `KUI-T004` | A literal `SegmentedControl.value` belongs to its literal `choices`. |
|
|
20
|
+
| `KUI-T005` | `expanded`, `expandAction`, and `expandLabel` exist only on `TokenSearchField({ collapsible: true })`. |
|
|
21
|
+
| `KUI-T006` | `TokenSearchEditorAttributes` accepts application `data-*` metadata but rejects component-owned identity, morph, count, and placeholder attributes. |
|
|
22
|
+
| `KUI-T007` | `ToolbarText.maxLines` requires `wrap: true`; it is never silently ignored in typed code. |
|
|
23
|
+
| `KUI-T008` | A literal `TabScaffold.active` id belongs to its literal `tabs`. |
|
|
24
|
+
| `KUI-T009` | Adjacent-token keyboard removal requires `onRemoveToken`; disabling removal rejects the now-meaningless callback. |
|
|
25
|
+
| `KUI-T010` | Finite public variants have named exported union types, including divider sides, tab activation, banner urgency, and all AppTab, TabBar, ToolbarControlGroup, and Select presentation axes; the convenience root barrel re-exports them. |
|
|
26
|
+
| `KUI-T011` | Semantic component zones use the recursive `KerfUiContent` type: `SafeHtml`, runtime-empty booleans/nullish values, and readonly nested arrays are valid; arbitrary strings, numbers, and signals are rejected. Explicit text positions such as `ListInsetText` retain their text exception. |
|
|
27
|
+
| `KUI-T012` | `List.gap` accepts finite `UiSpaceName` shorthands or a complete branded `CssLength`; raw strings and non-standalone `CssLengthExpression` arithmetic are rejected. `calc(plus(...))` promotes a typed expression to a complete value. |
|
|
28
|
+
| `KUI-T013` | CSS-valued props preserve property grammar: `List.flex` uses `CssFlex`, `Skeleton` dimensions use `CssSize`/`CssLength`, and choice icons use `CssColor`; row declaration strings are absent. |
|
|
29
|
+
|
|
30
|
+
`KerfUiContent` lets conditionals and mapped component collections be direct
|
|
31
|
+
siblings without an otherwise-unnecessary `Fragment`:
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
<List>
|
|
35
|
+
{intro ? <ListInsetText>{intro}</ListInsetText> : null}
|
|
36
|
+
{rows.map((row) => (
|
|
37
|
+
<ListItem label={row.label} />
|
|
38
|
+
))}
|
|
39
|
+
</List>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
The type is intentionally narrower than core JSX children. Wrap prose in a
|
|
43
|
+
semantic text component, and read signals into components or structural
|
|
44
|
+
conditionals rather than passing signal objects as content.
|
|
45
|
+
|
|
46
|
+
Literal identity inference is intentionally additive for dynamic applications.
|
|
47
|
+
When choices or ids arrive at runtime and the state signal is correctly typed as
|
|
48
|
+
`string`, widen the component explicitly:
|
|
49
|
+
|
|
50
|
+
```tsx
|
|
51
|
+
<Select<string> value={loadedValue.value} choices={loadedChoices.value} ... />
|
|
52
|
+
<SegmentedControl<string> value={mode.value} choices={loadedModes.value} ... />
|
|
53
|
+
<TabScaffold<string> active={active.value} tabs={loadedTabs.value} ... />
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The widening is an honest statement that TypeScript cannot know the runtime
|
|
57
|
+
dataset. Do not cast a known literal typo merely to bypass the relationship.
|
|
58
|
+
|
|
59
|
+
## Complete public-surface audit
|
|
60
|
+
|
|
61
|
+
The following existing contracts were already exact and remain covered by the
|
|
62
|
+
ordinary source/type gates:
|
|
63
|
+
|
|
64
|
+
- required identity or accessible-name inputs on `AppTab`, `FloatingToolbar`,
|
|
65
|
+
`NavStack`, `SplitView`, `Workbench`, `TabBar`, `ResizableRegion`,
|
|
66
|
+
`SegmentedControl`, `TokenSearchField`, and `ValueTable`;
|
|
67
|
+
- finite variants exported or represented as literal props on `DisclosureArrow`,
|
|
68
|
+
`FloatingToolbar`, `Pane`, `ResizableRegion`, `SegmentedControl`, `StateBanner`,
|
|
69
|
+
`SunkenPanel`, `ToolbarText`, `CollapsiblePanel`, `Catalog`, and the wire helpers;
|
|
70
|
+
- required controlled-state callbacks on `wireResizableRegions`, `wireTabBars`,
|
|
71
|
+
and `wireTabScaffold`;
|
|
72
|
+
- mutually exclusive count/badge metadata on `ListHeader`; and
|
|
73
|
+
- protected application metadata boundaries on `AppTab`, `ListItem`,
|
|
74
|
+
`ListActionRow`, `ListHeader`, `Pane`, `CatalogExample`, and
|
|
75
|
+
`CatalogExampleStack`.
|
|
76
|
+
|
|
77
|
+
The remaining components (`LucideIcon`, `DisclosureArrow`, `Toolbar`,
|
|
78
|
+
`ToolbarControlGroup`, `ListInsetControl`, `ListInsetText`, `LoadingSpinner`,
|
|
79
|
+
`Skeleton`, `EmptyState`, `StateBanner`, `ValueTableRow`, and the
|
|
80
|
+
pure helpers) have independent props with no further conditional invalid state
|
|
81
|
+
that TypeScript can truthfully remove. Optional labels on decorative icons and
|
|
82
|
+
unnamed non-landmark surfaces are intentional variants, not missing contracts.
|
|
83
|
+
|
|
84
|
+
## Boundaries TypeScript cannot prove
|
|
85
|
+
|
|
86
|
+
Types do not claim to validate:
|
|
87
|
+
|
|
88
|
+
- the contents of `SafeHtml` slots (for example, “only AppTab children” or “no
|
|
89
|
+
interactive descendants”);
|
|
90
|
+
- nonempty arrays, unique ids, numeric min/max ordering, or a controlled value
|
|
91
|
+
loaded from dynamic data;
|
|
92
|
+
- equality between ids rendered in separate calls, elements discovered later in
|
|
93
|
+
the DOM, or an ARIA relationship's live target;
|
|
94
|
+
- that a caller retained and invoked a wiring disposer; or
|
|
95
|
+
- CSS class/token use inside arbitrary strings.
|
|
96
|
+
|
|
97
|
+
Those remain catalog `KUI-C###` diagnostics, runtime filtering/guards, lint or
|
|
98
|
+
browser assertions. Encoding them as permissive-looking TypeScript brands would
|
|
99
|
+
move errors into casts without making the integration safer.
|
|
100
|
+
|
|
101
|
+
## Migration from the earlier declarations
|
|
102
|
+
|
|
103
|
+
- Add `actionLabel` and `actionIcon` to a non-toggle `ListHeader` action. For a
|
|
104
|
+
disclosure, set literal `toggle: true`, provide `action` and controlled
|
|
105
|
+
`expanded`, and remove trailing-action-only props.
|
|
106
|
+
- Give every `Select` either `label` or `ariaLabel`. Use an explicit `<string>`
|
|
107
|
+
generic only for genuinely dynamic choice data.
|
|
108
|
+
- Put `expanded`/expand-action props behind `collapsible: true`.
|
|
109
|
+
- Replace `wireTokenSearchFields({ keyboard: true })` with either
|
|
110
|
+
`{ keyboard: { onRemoveToken } }` or
|
|
111
|
+
`{ keyboard: { removeAdjacentToken: false } }` when only caret navigation is
|
|
112
|
+
wanted.
|
|
113
|
+
- Add `wrap: true` anywhere `ToolbarText.maxLines` is used.
|
|
114
|
+
- Replace `Toolbar({ divider: false })` with `dividerSides: ''`; the default
|
|
115
|
+
remains a bottom divider, while canonical combinations such as `tr` and
|
|
116
|
+
`trbl` select more physical edges.
|
|
117
|
+
- Replace raw `List.gap` strings with a direct spacing shorthand (`"xs"`,
|
|
118
|
+
`"m"`) or a complete value from `@kerfjs/ui/css-values`. Replace
|
|
119
|
+
`gap="0.25rem"` with `gap={rem(0.25)}` and wrap sums with `calc(plus(...))`.
|
|
120
|
+
- Replace raw `List.flex` shorthands with `flex(grow, shrink, basis)` or a finite
|
|
121
|
+
keyword; replace raw Skeleton dimensions with `px`/`rem`/`em`/`pct` builders;
|
|
122
|
+
and replace raw choice colors with `uiColor()` or `colorVar()`.
|
|
123
|
+
- Remove `style` from `ListItem` and `ListActionRow`; use `className`, public
|
|
124
|
+
tokens, and cataloged props. These breaking cleanups land before 5.0 stable.
|
|
125
|
+
|
|
126
|
+
JavaScript runtime behavior remains defensive for previously emitted calls, but
|
|
127
|
+
new TypeScript builds report these invalid or ignored combinations.
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# Static CSS and layout ownership analyzer
|
|
2
|
+
|
|
3
|
+
`kerf-ui-analyze` checks integration facts that TypeScript and an individual
|
|
4
|
+
ESLint file cannot see across component markup, stylesheets, the component
|
|
5
|
+
catalog, and the application UI profile.
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npx kerf-ui-analyze --root . --format text src
|
|
9
|
+
npx kerf-ui-analyze --root . --format json --output artifacts/kerf-ui.json
|
|
10
|
+
npx kerf-ui-analyze --root . --format sarif --output artifacts/kerf-ui.sarif
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The analyzer is opt-in. Add a project script such as
|
|
14
|
+
`"check:kerf-ui-layout": "kerf-ui-analyze --root . src"`; it never executes
|
|
15
|
+
application code. It discovers `.kerf-ui-profile.json`, joins every declared
|
|
16
|
+
composition catalog by `package:id`, parses literal JavaScript/TypeScript
|
|
17
|
+
component calls, TSX/JSX, and CSS, and reports portable repository-relative
|
|
18
|
+
locations.
|
|
19
|
+
|
|
20
|
+
Analysis is scoped per source file. Each TSX/JSX file resolves package,
|
|
21
|
+
workspace, and parent-to-child directory profiles from its own location, then
|
|
22
|
+
follows its relative CSS imports (including nested CSS `@import`s). Stylesheet
|
|
23
|
+
facts are never pooled across unrelated files or sibling packages, and a shared
|
|
24
|
+
stylesheet's diagnostics are evaluated against every importing source profile.
|
|
25
|
+
A violation stays active when any consumer has not narrowly excepted it;
|
|
26
|
+
duplicate source findings collapse to one result. Directly targeted or orphaned
|
|
27
|
+
CSS uses its own directory profile. A direct changed-file target still brings
|
|
28
|
+
its reachable project-local styles into the report, including quoted or
|
|
29
|
+
unquoted `url()` imports; external package styles remain outside the consumer
|
|
30
|
+
boundary.
|
|
31
|
+
|
|
32
|
+
Recursive discovery excludes generated and tool-owned trees, including any
|
|
33
|
+
nested `.claude/worktrees` checkout. Those checkouts are separate repositories,
|
|
34
|
+
not application source, and cannot contribute files, diagnostics, profile
|
|
35
|
+
policy, or analysis inputs to the containing application.
|
|
36
|
+
|
|
37
|
+
## Diagnostics and exit behavior
|
|
38
|
+
|
|
39
|
+
| Rule | Kind | Meaning |
|
|
40
|
+
| ---------- | ------ | ----------------------------------------------------------------- |
|
|
41
|
+
| `KUI-L001` | error | A stylesheet reaches into a private or unknown `.kui-*` selector. |
|
|
42
|
+
| `KUI-L002` | error | A stylesheet references an unknown or private `--kui-*` token. |
|
|
43
|
+
| `KUI-L003` | error | One element combines public classes that claim the same geometry. |
|
|
44
|
+
| `KUI-L004` | review | Nested literal classes both add a content inset. |
|
|
45
|
+
| `KUI-L005` | review | Consumer CSS forces a public component's dimensions. |
|
|
46
|
+
| `KUI-L006` | review | Literal spacing falls outside Kerf's approved scale. |
|
|
47
|
+
| `KUI-L007` | error | A declared scroll owner is nested inside another scroll owner. |
|
|
48
|
+
| `KUI-L008` | review | A dynamic class expression cannot be classified soundly. |
|
|
49
|
+
| `KUI-L009` | error | A stylesheet cannot be parsed. |
|
|
50
|
+
| `KUI-L010` | error | A selector reaches a private Kerf descendant from a public root. |
|
|
51
|
+
| `KUI-L011` | error | A `::part()` target is not cataloged as a public extension point. |
|
|
52
|
+
| `KUI-L012` | error | CSS assigns a Kerf token without a public configuration contract. |
|
|
53
|
+
| `KUI-L013` | error | A CSS-adjacent prop uses an unknown shorthand or raw literal. |
|
|
54
|
+
| `KUI-L014` | error | A typed helper produces the wrong property grammar. |
|
|
55
|
+
| `KUI-L015` | error | An expression-only helper is passed without a composer. |
|
|
56
|
+
| `KUI-L016` | error | A removed declaration-list escape hatch is used. |
|
|
57
|
+
| `KUI-L017` | review | A valid but exceptional off-scale shorthand needs justification. |
|
|
58
|
+
|
|
59
|
+
Errors are provable contract violations and make the command exit 1. Review
|
|
60
|
+
findings are deliberately heuristic and do not fail by default; pass
|
|
61
|
+
`--fail-on-review` when a project has reviewed its baseline and wants them to
|
|
62
|
+
gate CI. Text, versioned JSON, and SARIF carry the same stable rule ids,
|
|
63
|
+
source locations, evidence, and ownership chain.
|
|
64
|
+
|
|
65
|
+
For staged adoption, pass `--adoption`. Ownership-boundary diagnostics are
|
|
66
|
+
reported as review findings so a team can inventory and migrate its baseline;
|
|
67
|
+
combine it with the exact file-and-rule exceptions below for intentional legacy
|
|
68
|
+
integrations. Remove `--adoption` to make unsupported overrides blocking.
|
|
69
|
+
|
|
70
|
+
Catalog `boundaries.publicClasses` and `boundaries.publicTokens` are explicit
|
|
71
|
+
CSS extension points. A component catalog may additionally list shadow-part
|
|
72
|
+
names in `boundaries.publicParts`; all other `::part()` targets are private.
|
|
73
|
+
Part names are scoped to that entry's `boundaries.rootClass`, so an extension
|
|
74
|
+
point on one component does not authorize the same-named part on another.
|
|
75
|
+
Parent-owned placement and selectors for application-owned content remain
|
|
76
|
+
allowed because the analyzer only reserves `.kui-*`, `--kui-*`, and cataloged
|
|
77
|
+
shadow boundaries.
|
|
78
|
+
|
|
79
|
+
Catalog entries may also publish `cssValueProps`. Each path names its grammar,
|
|
80
|
+
finite shorthands, canonical and exceptional scale steps, accepted typed
|
|
81
|
+
helpers, expression-only helpers, raw escape policy, and examples. The analyzer
|
|
82
|
+
uses that same metadata for direct component calls and JSX, including nested
|
|
83
|
+
paths such as `choices[].color`; consumer catalogs receive identical checks.
|
|
84
|
+
Dynamic values remain a type-system responsibility rather than being guessed.
|
|
85
|
+
|
|
86
|
+
The JSON report schema is exported as
|
|
87
|
+
`@kerfjs/ui/analyzer/report.schema.json`.
|
|
88
|
+
|
|
89
|
+
Profile discovery, parsing, catalog-loading, and validation diagnostics retain
|
|
90
|
+
their stable `KUI-P###` ids in every output format and count as errors. The
|
|
91
|
+
analyzer therefore cannot silently pass with stale or unreadable policy input.
|
|
92
|
+
|
|
93
|
+
The analyzer is conservative about dynamic class expressions: it emits one
|
|
94
|
+
review finding and does not guess which selectors, tokens, or owners the value
|
|
95
|
+
might contain. CSS values expressed through public variables or `calc()` are
|
|
96
|
+
also left to their owning token contract rather than reverse-engineered.
|
|
97
|
+
|
|
98
|
+
## Narrow exceptions
|
|
99
|
+
|
|
100
|
+
Use the application profile's `exceptions` only for an exact rule and exact
|
|
101
|
+
repository-relative file. Every exception requires an id and rationale; broad
|
|
102
|
+
directories, globs, absolute paths, and traversal are rejected by the profile
|
|
103
|
+
validator.
|
|
104
|
+
|
|
105
|
+
```json
|
|
106
|
+
{
|
|
107
|
+
"id": "legacy-inspector-spacing",
|
|
108
|
+
"rules": ["KUI-L006"],
|
|
109
|
+
"target": "src/legacy/inspector.css",
|
|
110
|
+
"rationale": "The legacy inspector retains its measured spacing until migration."
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Review findings remain visible until explicitly suppressed. Avoid suppressing
|
|
115
|
+
`KUI-L001`, `KUI-L002`, `KUI-L003`, `KUI-L007`, `KUI-L009`, `KUI-L010`,
|
|
116
|
+
`KUI-L011`, `KUI-L012`, `KUI-L013`, `KUI-L014`, `KUI-L015`, or `KUI-L016`:
|
|
117
|
+
those indicate a
|
|
118
|
+
definite boundary or parsing failure rather than an aesthetic judgment.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Kerf UI doctor
|
|
2
|
+
|
|
3
|
+
`kerf-ui-doctor` is the supported repair-loop entry point for a Kerf application. It produces one versioned report from application-profile and catalog validation, TypeScript, the Kerf UI ESLint preset, static layout analysis, and an explicitly enabled browser evaluation.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npx kerf-ui-doctor --full
|
|
7
|
+
npx kerf-ui-doctor --changed
|
|
8
|
+
npx kerf-ui-doctor --package @acme/admin --changed
|
|
9
|
+
npx kerf-ui-doctor --full --browser-url http://127.0.0.1:4173
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
The default terminal output is short and repair-oriented. `--format json` emits the schema-version-1 report; `--output report.json` writes the same representation. The package exports its contract from `@kerfjs/ui/doctor`, its configuration schema from `@kerfjs/ui/doctor/config.schema.json`, and its report schema from `@kerfjs/ui/doctor/report.schema.json`.
|
|
13
|
+
|
|
14
|
+
## Stages and trust boundary
|
|
15
|
+
|
|
16
|
+
The catalog stage discovers the package-default application UI profile and workspace/root-to-leaf directory layers. It validates referenced selection/composition catalogs and, when a workspace declares `package.json#kerfComponentCatalog`, invokes the installed `create-kerf-component` catalog checker to validate metadata, source exports, schema conformance, and generated-output drift. This checker reads source text; it does not import application modules.
|
|
17
|
+
|
|
18
|
+
TypeScript uses the compiler API with `noEmit`. ESLint loads the installed `eslint-plugin-kerfjs` `recommended-ui` preset (`--eslint strict-ui` opts into advisory rules as errors). This is deliberately an isolated Kerf lint pass rather than the consumer's complete ESLint configuration. For each file, the doctor projects the applicable core ESLint rules and `linterOptions` from the consumer configuration so core-rule suppression directives retain the same used/unused semantics as the application's normal lint command. Consumer plugin rules are not executed, and inline directives for plugins such as `@typescript-eslint` therefore do not produce false "rule definition not found" diagnostics; the consumer's normal ESLint command remains authoritative for those rules. Unknown `kerfjs/*` directives still fail the doctor pass. Stable KUI identifiers come from the packaged `application-ui-diagnostic-ids-v1.json` registry; the doctor also reads installed ESLint message metadata for semantic conflict detection instead of duplicating rule definitions. The analyzer calls the public `@kerfjs/ui/analyzer` contract. None of these stages executes generated application code.
|
|
19
|
+
|
|
20
|
+
Property-specific CSS values are evaluated from each first- or third-party
|
|
21
|
+
catalog entry's `cssValueProps`. `KUI-L013`–`KUI-L016` are blocking grammar
|
|
22
|
+
violations and name a preferred shorthand/helper; `KUI-L017` keeps an
|
|
23
|
+
exceptional but valid spacing choice in the review queue. The ESLint and
|
|
24
|
+
analyzer stages share these ids, so the normalized report can be consumed as
|
|
25
|
+
one repair loop without tool-specific translations.
|
|
26
|
+
|
|
27
|
+
The browser evaluator is different: it runs the application and is disabled by default. It only runs when configuration supplies `browser.url` or the command receives `--browser-url`. Start and authorize the target application separately.
|
|
28
|
+
|
|
29
|
+
An unavailable or failed stage does not prevent independent stages from reporting. Its final exit is still a configuration failure, so a partial run cannot appear clean.
|
|
30
|
+
|
|
31
|
+
## Full and changed modes
|
|
32
|
+
|
|
33
|
+
`--full` is the default and analyzes the selected package. `--changed` reads tracked and untracked paths from Git unless one or more `--path` values are supplied. An empty changed set is a configuration error instead of a false-clean success. With `--package`, workspace-relative Git paths are converted to package-relative paths before TypeScript, ESLint, and analyzer selection; paths outside the selected package are ignored.
|
|
34
|
+
|
|
35
|
+
Full traversal treats generated/tool-owned directories (`dist`, `coverage`,
|
|
36
|
+
`node_modules`, `.git`, `.kerf-cache`, `kerf-ui-evidence`, and nested
|
|
37
|
+
`.claude/worktrees` checkouts) as outside application source. Their files are
|
|
38
|
+
excluded consistently from TypeScript, the isolated ESLint pass, analyzer
|
|
39
|
+
discovery, and cache inputs, even when one lives below another application
|
|
40
|
+
directory.
|
|
41
|
+
|
|
42
|
+
TypeScript constructs the selected package's program so compiler options retain their real meaning, while its root inputs are narrowed to changed source files. Use `--full` for release gates.
|
|
43
|
+
|
|
44
|
+
## Configuration and suppressions
|
|
45
|
+
|
|
46
|
+
Place `.kerf-ui-doctor.json` at the workspace root:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"$schema": "./node_modules/@kerfjs/ui/doctor/config.schema.json",
|
|
51
|
+
"schemaVersion": 1,
|
|
52
|
+
"mode": "full",
|
|
53
|
+
"stages": { "browser": false },
|
|
54
|
+
"cache": true,
|
|
55
|
+
"suppressions": [
|
|
56
|
+
{
|
|
57
|
+
"id": "legacy-toolbar",
|
|
58
|
+
"rules": ["KUI-L006"],
|
|
59
|
+
"target": "src/legacy-toolbar.css",
|
|
60
|
+
"rationale": "Removed with the toolbar migration in the next release."
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
A suppression requires a stable id, one or more exact diagnostic ids, an exact portable source path or browser selector, and a substantive rationale. Wildcards, absolute paths, and parent traversal are rejected. Suppressed diagnostics remain in `report.suppressions` with their rationale and do not affect the exit code.
|
|
67
|
+
|
|
68
|
+
KUI suppression ids are checked against the analyzer, evaluator, doctor, installed ESLint-rule metadata, and diagnostics emitted by available tools. An unknown or stale id is a configuration error rather than a silent no-op. TypeScript `TS####` and namespaced `eslint:*` ids remain valid even when that particular run does not emit them.
|
|
69
|
+
|
|
70
|
+
The content-addressed cache lives at `.kerf-cache/ui-doctor-v1.json`. Its key covers selected source/config/catalog JSON, package manifests, root and package lockfiles, mode, paths, and configuration. Browser results are never cached. Use `--no-cache` when investigating tool installation changes not yet reflected in a lockfile.
|
|
71
|
+
|
|
72
|
+
Reports replace the workspace's absolute path with `<repo-root>` and express in-workspace files as portable relative paths. External paths are reduced to `<external>/<basename>`. URLs are excluded from the cache key. Tool messages and evidence receive the same root redaction before output or caching.
|
|
73
|
+
|
|
74
|
+
## Report and exit contract
|
|
75
|
+
|
|
76
|
+
Every diagnostic has a stable `id`, `severity`, `stage`, message, and—when applicable—an exact source location with JSON path or DOM context/selector. Analyzer evidence, catalog facts, documentation links, and safe next actions are preserved when the source tool provides them. Identical findings merge with their source stages; same identifiers with conflicting severities remain separate and add `KUI-D003`.
|
|
77
|
+
|
|
78
|
+
Exit codes are deterministic:
|
|
79
|
+
|
|
80
|
+
- `0`: no active error diagnostics;
|
|
81
|
+
- `1`: repairable application findings;
|
|
82
|
+
- `2`: malformed configuration, unavailable required tooling, or a failed stage;
|
|
83
|
+
- `130`: cancellation.
|
|
84
|
+
|
|
85
|
+
Warnings and review findings remain visible but do not fail unless their originating preset promotes them to errors. A cached report keeps its original exit code and labels previously run stages `cached`.
|
|
86
|
+
|
|
87
|
+
## Monorepos and repair loops
|
|
88
|
+
|
|
89
|
+
`--package` accepts either a workspace package name or a workspace-relative package path. The doctor uses the selected package for compiler, lint, profile-discovery start, and analyzer scope, while workspace profile precedence and root lockfiles remain authoritative.
|
|
90
|
+
|
|
91
|
+
A repair agent should run JSON mode, apply only source-located safe changes, and rerun until exit `0`. Do not treat exit `2`, a skipped required stage, or an empty changed selection as clean. Browser evidence is objective input; the evaluator's named subjective rubric still requires human review.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
# Browser UI quality evaluator
|
|
2
|
+
|
|
3
|
+
`kerf-ui-evaluate` is the runtime half of Kerf's UI integration checks. The
|
|
4
|
+
static [`kerf-ui-analyze`](./ui-analyzer.md) command finds source-level ownership
|
|
5
|
+
mistakes; this Playwright-backed evaluator loads a running application and
|
|
6
|
+
records what a browser can establish about the rendered result.
|
|
7
|
+
|
|
8
|
+
Install Playwright beside `@kerfjs/ui` and install its browsers in CI:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install --save-dev playwright
|
|
12
|
+
npx playwright install --with-deps chromium firefox webkit
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Start the application separately, then evaluate its URL from the project root:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx kerf-ui-evaluate \
|
|
19
|
+
--url http://127.0.0.1:4173 \
|
|
20
|
+
--root . \
|
|
21
|
+
--output artifacts/kerf-ui
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The command discovers and resolves the same `.kerf-ui-profile.json` layers as
|
|
25
|
+
the static analyzer. By default it runs Chromium, Firefox, and WebKit through
|
|
26
|
+
six contexts: wide, intermediate, narrow, a half-width CSS viewport representing
|
|
27
|
+
200% browser zoom, dark color scheme, and reduced motion. Use
|
|
28
|
+
`--browser chromium` for a fast local loop; keep all three engines in CI.
|
|
29
|
+
|
|
30
|
+
## Objective checks
|
|
31
|
+
|
|
32
|
+
The versioned JSON report uses stable `KUI-B###` codes and includes the context,
|
|
33
|
+
selector, measured evidence, and a repair-oriented message for each finding.
|
|
34
|
+
|
|
35
|
+
| Code | Browser fact |
|
|
36
|
+
| ---------- | -------------------------------------------------------------------------------- |
|
|
37
|
+
| `KUI-B001` | Navigation, timeout, or browser-context failure |
|
|
38
|
+
| `KUI-B010` | Horizontal page overflow |
|
|
39
|
+
| `KUI-B011` | Interactive content clipped by a hidden/clip owner or entirely off viewport |
|
|
40
|
+
| `KUI-B012` | An in-viewport action covered at its center point |
|
|
41
|
+
| `KUI-B020` | Positive `tabindex` overriding DOM focus order |
|
|
42
|
+
| `KUI-B021` | Stable per-element focus reaches an invisible control or causes no visual change |
|
|
43
|
+
| `KUI-B022` | Any ARIA widget role is absent from sequential keyboard order |
|
|
44
|
+
| `KUI-B023` | A representative action does not activate with Enter |
|
|
45
|
+
| `KUI-B030` | An interactive control has no text alternative |
|
|
46
|
+
| `KUI-B040` | Alpha-composited interactive text is below its WCAG AA contrast threshold |
|
|
47
|
+
| `KUI-B050` | A button-like target is smaller than 44 × 44 CSS pixels |
|
|
48
|
+
| `KUI-B060` | A pane or declared scroll scope has multiple active scroll owners |
|
|
49
|
+
| `KUI-B070` | Elements in an explicitly declared alignment group drift by more than one pixel |
|
|
50
|
+
| `KUI-B080` | A cataloged root computes geometry assigned to `none`, `parent`, or `child` |
|
|
51
|
+
|
|
52
|
+
For a representative application action that must be operated in the generic
|
|
53
|
+
evaluation, add `data-kui-evaluator-action` to its owning native control or
|
|
54
|
+
keyboard-operable custom control. The evaluator focuses it, presses Enter, and
|
|
55
|
+
accepts a click event or controlled `aria-expanded`, `aria-pressed`,
|
|
56
|
+
`aria-checked`, or `value` transition as evidence. This attribute is test
|
|
57
|
+
instrumentation, not an application event hook.
|
|
58
|
+
|
|
59
|
+
Alignment checks are similarly explicit: put `data-kui-align-group` on the
|
|
60
|
+
shared container and `data-kui-align-edge` on two or more elements whose logical
|
|
61
|
+
start edges must align. Use `data-kui-scroll-scope` only for an application-owned
|
|
62
|
+
scope that is not a `.kui-pane`.
|
|
63
|
+
|
|
64
|
+
Accessible names follow ARIA/native naming inputs, including labels, referenced
|
|
65
|
+
content with `aria-hidden` descendants removed, and native input values.
|
|
66
|
+
Geometry checks use each catalog entry's explicit `boundaries.rootClass`; the
|
|
67
|
+
order of `publicClasses` has no runtime meaning.
|
|
68
|
+
|
|
69
|
+
Profile exceptions apply only when both the `KUI-B###` rule and `target` match
|
|
70
|
+
exactly. For the browser evaluator, `target` is the evaluated `startDirectory`
|
|
71
|
+
relative to `workspaceRoot` (for example `apps/settings`); wildcards and broad
|
|
72
|
+
workspace targets remain invalid.
|
|
73
|
+
|
|
74
|
+
## Report and artifacts
|
|
75
|
+
|
|
76
|
+
The public Node API is available at `@kerfjs/ui/evaluator`:
|
|
77
|
+
|
|
78
|
+
```js
|
|
79
|
+
import { evaluateUi } from '@kerfjs/ui/evaluator';
|
|
80
|
+
|
|
81
|
+
const abortController = new AbortController();
|
|
82
|
+
const report = await evaluateUi({
|
|
83
|
+
url: 'http://127.0.0.1:4173',
|
|
84
|
+
workspaceRoot: process.cwd(),
|
|
85
|
+
retention: 'on-failure',
|
|
86
|
+
signal: abortController.signal,
|
|
87
|
+
});
|
|
88
|
+
if (!report.summary.passed) process.exitCode = 1;
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
The default output is `kerf-ui-evidence/report.json`; its schema ships at
|
|
92
|
+
`@kerfjs/ui/evaluator/report.schema.json`. Every retained screenshot has a
|
|
93
|
+
SHA-256 digest. Retention is deterministic:
|
|
94
|
+
|
|
95
|
+
- `on-failure` (default) removes current and stale evaluator screenshots when
|
|
96
|
+
every objective check passes;
|
|
97
|
+
- `always` retains one full-page PNG per browser/context;
|
|
98
|
+
- `never` removes current and stale evaluator screenshots and writes only the
|
|
99
|
+
focused DOM/computed-style evidence in the report.
|
|
100
|
+
|
|
101
|
+
`--timeout` bounds navigation and browser operations, while `--settle` provides
|
|
102
|
+
one small explicit post-navigation delay for applications with asynchronous
|
|
103
|
+
startup. A timeout becomes `KUI-B001` evidence rather than an unstructured crash.
|
|
104
|
+
The Node API accepts an `AbortSignal`; cancellation closes the active browser,
|
|
105
|
+
removes screenshots from the interrupted run, does not write a partial report,
|
|
106
|
+
and rejects with `AbortError`.
|
|
107
|
+
The CLI exits `1` for objective failures, `2` for invocation/profile errors, and
|
|
108
|
+
`0` for a pass; `--no-fail` is available only for evidence-collection jobs.
|
|
109
|
+
|
|
110
|
+
## Human visual review stays human
|
|
111
|
+
|
|
112
|
+
Hierarchy, rhythm, density, aesthetic fit, and the perceived clarity of
|
|
113
|
+
alignment or scroll ownership are not inferred from computed pixels. Every
|
|
114
|
+
report carries the suite-v3 0–2 review rubric with `status: "not-recorded"` and
|
|
115
|
+
an empty rating list. An AI agent may use the retained screenshots as review
|
|
116
|
+
input, but it must record a named reviewer and rationale in the separate
|
|
117
|
+
human-visual evidence workflow; it must not turn a subjective rating into a
|
|
118
|
+
`KUI-B###` assertion.
|
|
119
|
+
|
|
120
|
+
The deterministic good/bad downstream fixtures and three-engine integration
|
|
121
|
+
suite live under `tests/fixtures/ui-evaluator/` and
|
|
122
|
+
`tests/integration/ui-evaluator-downstream.test.ts`.
|
package/docs/ux-demo.md
CHANGED
|
@@ -2,26 +2,45 @@
|
|
|
2
2
|
|
|
3
3
|
Run `npm run dev` from `ui/`. The catalog is a development and review surface, not a second implementation. The development server allows repo-owned assets used by the catalog, and its production bundle uses relative asset URLs so the complete catalog remains intact below preview and proxy paths.
|
|
4
4
|
|
|
5
|
+
Every Playwright entry point builds current source before the preview server
|
|
6
|
+
starts. `npm run test:e2e -- tests/browser/row.spec.ts` and a direct focused
|
|
7
|
+
`npx playwright test tests/browser/row.spec.ts` both run catalog generation and
|
|
8
|
+
demo-conformance preflights, build the package and production catalog, then
|
|
9
|
+
launch Chromium, Firefox, and WebKit. The build emits
|
|
10
|
+
`source-freshness.json`; browser coverage compares it with an independent hash
|
|
11
|
+
of the current `src/` and `ux-demo/` inputs, so a stale `dist-demo` cannot pass
|
|
12
|
+
after a route or component edit. `npm run demo:serve` remains a preview-only
|
|
13
|
+
command for an already-built catalog.
|
|
14
|
+
|
|
5
15
|
Seven lazy production-composition routes live under the `Recipes` category.
|
|
6
16
|
Each `?component=recipe-*` route uses public package primitives, real wiring,
|
|
7
17
|
deterministic state, and semantic layout owners from the [recipe guide](./recipes.md).
|
|
8
18
|
|
|
9
19
|
- It imports public component subpaths, exercising their browser-selected reachable CSS rather than a catalog-only style path.
|
|
10
|
-
- The `
|
|
11
|
-
- The `AppTab`
|
|
20
|
+
- The `ListActionRow` route demonstrates sibling primary/trailing native controls, independent disabled states, controlled selection, first-line leading-icon alignment for wrapped labels, and an application-owned native popover relationship without nesting controls. The `ListItem` route demonstrates the same multiline leading-icon anchor alongside its single-control navigation contract.
|
|
21
|
+
- The `AppTab` and `TabBar` routes are focused component specimens: AppTab shows its selected, compact, segmented, icon-only, truncation, placeholder, metadata, and close-icon axes inside the required tablist context; TabBar shows its rail, segmented, inspector, allocation, placement, and accessory-zone axes without application readouts. The separate `Application tabs composition` route demonstrates controlled selection, matching panel content, overflow, adding, closing, keyboard/pointer reordering, and application-owned ordering. The `ResizableRegion` route likewise replaces only the decorative handle glyph while retaining separator semantics and shared wiring.
|
|
12
22
|
- Every first-party visual component and every free Web Awesome 3.12 component has its own stable `?component=<id>` URL and focused demo. Composite header, menu, feedback, and theme scenarios remain addressable alongside their subcomponents; the root opens the first Kerf component.
|
|
13
|
-
- `ai/component-catalog.json` is the canonical catalog metadata. A deterministic checked-in projection supplies the demo's unique id, category, kind (`component`, `composition`, or `recipe`), source (`kerf` or `webawesome`), name, description, direct `uses` dependencies, existing documentation path, and demo-source path; first-party, recipe, and Web Awesome renderer maps are exhaustively typed against its generated id unions. Demo paths resolve to `ui/ux-demo/
|
|
23
|
+
- `ai/component-catalog.json` is the canonical catalog metadata. A deterministic checked-in projection supplies the demo's unique id, category, kind (`component`, `composition`, or `recipe`), source (`kerf` or `webawesome`), name, description, recommendation, direct `uses` dependencies, existing documentation path, and demo-source path; first-party, recipe, and Web Awesome renderer maps are exhaustively typed against its generated id unions. Non-supported Web Awesome recommendations project to a visible `Discouraged` sidebar tag, with Popup as the deliberate conditional exception. Demo paths resolve to the matching `ui/ux-demo/demos/<id>.tsx` or `ui/ux-demo/recipes/*.tsx` file, or to `ui/ux-demo/webawesome-demos.tsx` for Web Awesome entries. `ui/ux-demo/main.tsx` owns only the catalog shell, shared state, routing, and interaction wiring. First-party component entries additionally derive `ui/src/<public-subpath>.tsx` from their canonical `delivery.browserImport` or opt-in `delivery.moduleImport`.
|
|
14
24
|
- Every detail footer groups compact `Demo source` and `Guidance` actions; first-party component details also expose `Component source`. Web Awesome details say `Integration guidance` to distinguish the local integration contract from the upstream component implementation. Each button retains its repository-relative path in the DOM for verification and uses a deploy-safe absolute GitHub blob URL with a contextual new-tab name; the demo does not depend on a local source server or add a package runtime export. At phone widths, the resource group and related-component selector stack as full-width rows, with any resource overflow contained locally so labels cannot overlap the selector or widen the document.
|
|
15
|
-
- The master/detail shell groups first-party routes by category with production `
|
|
16
|
-
- The shell itself uses `@kerfjs/ui/layout.css`: sidebars, details, previews, dialogs, and resize specimens share unpadded panes plus self-contained content items. Its sidebar identity uses the Kerf logo beside a vertically centered title, with
|
|
17
|
-
- The composer-form recipe demonstrates one coherent visible form surface with
|
|
18
|
-
- The
|
|
25
|
+
- The master/detail shell groups first-party routes by category with production `ListHeader` and `ListItem` components. Catalog entries can supply short reusable trailing tags; the Web Awesome projection uses them to label exactly the 15 discouraged choices. The 70 ecosystem components live in a separate `Web Awesome` disclosure with seven subgroups, so they remain discoverable without being presented as first-class `@kerfjs/ui` exports. Direct Web Awesome routes open the disclosure and reveal the selected row at wide sizes; narrow layouts keep the expanded list in document flow rather than introducing a competing nested scroller.
|
|
26
|
+
- The shell itself uses `@kerfjs/ui/layout.css`: sidebars, details, previews, dialogs, and resize specimens share unpadded panes plus self-contained content items. Its sidebar identity uses the Kerf logo beside a vertically centered title, with supporting copy in its own aligned row; the current-view heading is also a toolbar. Collapsing the catalog removes the pane completely and moves its restore action to the main toolbar's leading edge instead of leaving an icon-only rail. The selected view description remains inset below the page toolbar. The checkerboard belongs to the complete scrollable preview region rather than a nested card. A lightly separated footer keeps live status above compact source, guidance, and relationship groups. The focused `ResizableRegion` specimen stretches its surface through the available stage height and reports committed width in that shared status footer; narrow layouts retain local horizontal access when the pane is resized wider than the stage, and the split remains readable at 200% root scaling. Geometry coverage checks wide, intermediate, narrow, and 200% zoom layouts.
|
|
27
|
+
- The composer-form recipe demonstrates one coherent visible form surface with toolbar title/supporting-copy hierarchy, fields and actions on the shared 8px control gutter, and 24px major rhythm. Its conditional error or success `StateBanner` is the only nested semantic surface. Reset synchronizes the upgraded Web Awesome fields' live value properties with their empty controlled attributes and announces `Draft reset`; browser coverage preserves behavior and verifies wide, narrow, dark, validation, success, reset, 200% zoom, and forced-colors states.
|
|
28
|
+
- The list-detail dialog recipe places its header directly on the dialog edge while preserving the header's internal inset, gives the selected project title the complete outer-plus-inner content gutter, lets the value table fill the available detail column between the shared outer margins, and keeps record actions on one outer gutter without an extra content-item inset. Browser geometry coverage protects those relationships at wide and narrow widths.
|
|
19
29
|
- Catalog-only brand marks, preview dimensions, checkerboard tiles, and the compound display-settings control retain local geometry because they are specimen chrome or intrinsic control anatomy rather than reusable application spacing roles.
|
|
20
|
-
- The menu composition route demonstrates toolbar/content/footer anatomy, 24px major gaps, 8/1/8 child geometry, the full-width `
|
|
30
|
+
- The menu composition route demonstrates toolbar/content/footer anatomy, 24px major gaps, 8/1/8 child geometry, the full-width `ListHeader` count-or-badge/action split, logical-end 44px action targets with 18px visuals, and 44px row/header/toolbar targets. Its one chevron is a production 18px `DisclosureArrow` inside a controlled Tools header that actually reveals and hides content; ordinary Projects navigation has no false disclosure affordance. Browser assertions cover stable naming, expanded/content transitions, visual rotation, node identity, reduced motion, RTL alignment and containment, and wide, narrow, dark, and 200% layouts. The focused ListHeader route separately shows the shared neutral count pill for Attachments, Notes (including zero), and Duplicates plus a non-count legacy badge, full-width logical-end actions, and no disclosure without content.
|
|
21
31
|
- The `DisclosureArrow` route renders the production 18px root-scaled default without a catalog-only size override. Its two native buttons independently control the default right-to-down chevron and a recognizable right-facing replacement arrow with left-to-up custom directions; both use shortest-path rotation and their names stay stable while `aria-expanded` communicates state. Browser coverage verifies the custom clockwise path, pointer and native keyboard activation, focus, narrow and 200%-zoom stacking with contained labels, consumer sizing, and the independent `.5` Web Awesome glyph scale retained by Kerf `Select`.
|
|
22
|
-
- A detail with relationships renders one
|
|
32
|
+
- A detail with relationships renders one content-fitted `Components` footer selector: `Uses` links to direct dependencies and `Used by` links to reverse dependents. Its popup owns the standard surface inset so headings and even long component names stay clear of the menu border. Choosing either navigates to that component's demo. The relationship group is absent when both sets are empty; no duplicate summary is rendered.
|
|
23
33
|
- Demo-only CSS supplies only the catalog shell and stages; component appearance stays in package CSS. Decorative chrome and Web Awesome controls share the same semantic system palette instead of carrying a separate demo identity.
|
|
24
|
-
- Scenarios use deterministic data and cover real variants, long content, disabled state, selection, progress, feedback, overlays, media, helpers, and stateful interactions. The Web Awesome theme route remains the broad system view, while individual action, form, layout, navigation, feedback, media, and helper routes provide focused specimens;
|
|
34
|
+
- Scenarios use deterministic data and cover real variants, long content, disabled state, selection, progress, feedback, overlays, media, helpers, and stateful interactions. The Web Awesome theme route remains the broad system view, while individual action, form, layout, navigation, feedback, media, and helper routes provide focused specimens; ListItem and ListHeader demonstrate typed domain metadata, protected native button/disclosure semantics, and a native popover trigger relationship without product props; the Headers composition demonstrates direct toolbar headings with an extra-large title, optional supporting copy, and grouped icon/actions; the Select route verifies that option icons survive unrelated Kerf rerenders and selected slot content follows value changes; the Animation route exposes preset, easing, duration, playback-rate, and transport controls with live lifecycle status; observer routes provide user-driven intersection, mutation, and resize events with live results; ToolbarControlGroup exposes all eight Hot Sheet 2 variants, loads the Web Awesome registrations needed by its popup specimen, and preserves the upgraded dropdown's managed light-DOM children across Kerf rerenders; the Toolbar route composes a collapsible TokenSearchField inside a group, animates between the empty iconic and complete field states, stays open while populated, and focuses the revealed editor; SegmentedControl covers toolbar, rounded-rectangle, pill, equal-width, and disabled presentations; TokenSearchField covers editable ordered chips, pointer and keyboard removal, caret-preserving controlled deletion, editing, clearing, free text, disabled state, and fixed first-line alignment while content wraps; StateBanner exposes every built-in tone with tone-tinted badges plus a scoped override; the Application tabs composition demonstrates overflow, edge autoscroll, and controlled pointer/keyboard reordering.
|
|
35
|
+
- The ToolbarControlGroup route also demonstrates the public compact/tight,
|
|
36
|
+
mixed-content, filled-selection, nested-dropdown, and avatar/scrim contracts
|
|
37
|
+
added for consumers that previously restyled group descendants. The compact
|
|
38
|
+
mixed specimen keeps its separator, trigger label, and caret inside both pill
|
|
39
|
+
and rounded group shapes. Avatar images are chrome rather than nested `img`
|
|
40
|
+
elements: a lone avatar paints the group, while a multi-button avatar group
|
|
41
|
+
paints only the pressed selection, with contain fitting in both cases. Its
|
|
42
|
+
collapsible-search specimen follows the selected group shape with a
|
|
43
|
+
concentric inner radius in both collapsed and expanded states.
|
|
25
44
|
- Recipe ownership notes are hidden by default. A page-toolbar toggle reveals them as floating warning-toned notes with a folded corner, keeping instructional copy visually distinct and removable from the specimen flow.
|
|
26
45
|
- Settings exercise light/dark, increased contrast, and reduced motion without changing component code. The theme action starts from the operating system's effective color scheme, always names the appearance it will switch to, and installs an explicit light or dark override when activated; contrast and reduced motion expose their independent preferences through `aria-pressed`.
|
|
27
46
|
- The footer action log is an `aria-live` region, making interactions visible to both people and browser tests.
|