@kerfjs/ui 5.0.0-beta.125 → 5.0.0-beta.127
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 +5 -0
- package/ai/application-ui-diagnostic-ids-v1.json +1 -0
- package/ai/component-catalog.json +77 -6
- package/ai/component-catalog.schema.json +14 -1
- package/ai/component-composition.json +27 -6
- package/ai/component-props.json +265 -40
- package/ai/components/combobox.md +1 -1
- package/ai/components/surface-scaffold.md +19 -5
- package/ai/components/tab-bar.md +2 -0
- package/ai/components/toolbar.md +1 -0
- package/ai/public-api-signatures-v1.md +251 -298
- package/ai/skill.md +10 -4
- package/ai/view-document.schema.json +55 -2
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/analyzer/cli.mjs +60 -24
- package/analyzer/index.mjs +331 -58
- package/catalog-projection-cli.mjs +86 -50
- package/dist/anchored-surface.js +2 -1
- package/dist/browser/editor.js +12 -7
- package/dist/catalog-resources.d.ts +1 -1
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.js +6 -6
- package/dist/{chunk-VX3YF2UD.js → chunk-3K5V3ZSD.js} +3 -3
- package/dist/{chunk-VX3YF2UD.js.map → chunk-3K5V3ZSD.js.map} +1 -1
- package/dist/{chunk-NHQOX7T4.js → chunk-3ZKUXWAV.js} +4 -4
- package/dist/chunk-3ZKUXWAV.js.map +1 -0
- package/dist/{chunk-ADMWT7FX.js → chunk-3ZWYGGEC.js} +136 -8
- package/dist/chunk-3ZWYGGEC.js.map +1 -0
- package/dist/{chunk-KLR3DCHH.js → chunk-4L5ZIKDZ.js} +1 -1
- package/dist/chunk-4L5ZIKDZ.js.map +1 -0
- package/dist/{chunk-2E7S5C4D.js → chunk-4UWLHKNU.js} +5 -5
- package/dist/chunk-4UWLHKNU.js.map +1 -0
- package/dist/{chunk-EXGDKG7B.js → chunk-5A2DN3LR.js} +5 -5
- package/dist/chunk-5A2DN3LR.js.map +1 -0
- package/dist/{chunk-DJ65XFVN.js → chunk-63TJH2RF.js} +4 -4
- package/dist/chunk-63TJH2RF.js.map +1 -0
- package/dist/{chunk-Q2CLQ3IJ.js → chunk-6PHG2DMG.js} +1 -1
- package/dist/chunk-6PHG2DMG.js.map +1 -0
- package/dist/{chunk-SPI6VMIY.js → chunk-6T7AX365.js} +4 -4
- package/dist/chunk-6T7AX365.js.map +1 -0
- package/dist/{chunk-GVII4JSD.js → chunk-6V6UHPJD.js} +4 -4
- package/dist/chunk-6V6UHPJD.js.map +1 -0
- package/dist/{chunk-NR3ZO4LK.js → chunk-7U65KLDL.js} +1 -1
- package/dist/chunk-7U65KLDL.js.map +1 -0
- package/dist/chunk-BMOZSNDU.js +133 -0
- package/dist/chunk-BMOZSNDU.js.map +1 -0
- package/dist/{chunk-2LM3PYHA.js → chunk-C2TY5DJC.js} +11 -8
- package/dist/chunk-C2TY5DJC.js.map +1 -0
- package/dist/{chunk-3WYREXW4.js → chunk-COMEWURO.js} +8 -6
- package/dist/chunk-COMEWURO.js.map +1 -0
- package/dist/{chunk-VPDSPD76.js → chunk-DB64I3DB.js} +4 -3
- package/dist/chunk-DB64I3DB.js.map +1 -0
- package/dist/{chunk-SBCXWGNP.js → chunk-DBCDYBZP.js} +2 -2
- package/dist/{chunk-SBCXWGNP.js.map → chunk-DBCDYBZP.js.map} +1 -1
- package/dist/{chunk-CNM6ZWP2.js → chunk-DJWBXEF4.js} +4 -2
- package/dist/chunk-DJWBXEF4.js.map +1 -0
- package/dist/{chunk-SVUJIVMR.js → chunk-E2MTHHLS.js} +3 -3
- package/dist/{chunk-SVUJIVMR.js.map → chunk-E2MTHHLS.js.map} +1 -1
- package/dist/{chunk-JG4ONAOI.js → chunk-EI55KWHP.js} +2 -2
- package/dist/chunk-EI55KWHP.js.map +1 -0
- package/dist/{chunk-MVKHSAKE.js → chunk-GE2BQXB3.js} +41 -4
- package/dist/chunk-GE2BQXB3.js.map +1 -0
- package/dist/chunk-GHV36C6I.js +94 -0
- package/dist/chunk-GHV36C6I.js.map +1 -0
- package/dist/{chunk-BCO673YW.js → chunk-GQUDCWOD.js} +10 -4
- package/dist/chunk-GQUDCWOD.js.map +1 -0
- package/dist/chunk-HD7ZLISK.js +808 -0
- package/dist/chunk-HD7ZLISK.js.map +1 -0
- package/dist/{chunk-KELWWCMX.js → chunk-I2K4OQKB.js} +4 -4
- package/dist/chunk-I2K4OQKB.js.map +1 -0
- package/dist/chunk-IFDTSVE6.js +9 -0
- package/dist/chunk-IFDTSVE6.js.map +1 -0
- package/dist/{chunk-TPLVC5BE.js → chunk-IR32NI2O.js} +336 -247
- package/dist/chunk-IR32NI2O.js.map +1 -0
- package/dist/{chunk-ZKKO4MHC.js → chunk-JYKP7TBZ.js} +4 -2
- package/dist/chunk-JYKP7TBZ.js.map +1 -0
- package/dist/{chunk-6OT7FOSA.js → chunk-K3C35KGR.js} +4 -4
- package/dist/chunk-K3C35KGR.js.map +1 -0
- package/dist/{chunk-4RECPEHI.js → chunk-KBS3GP6S.js} +4 -3
- package/dist/chunk-KBS3GP6S.js.map +1 -0
- package/dist/{chunk-YHRJNKD5.js → chunk-KS7EXW4P.js} +6 -4
- package/dist/chunk-KS7EXW4P.js.map +1 -0
- package/dist/{chunk-V6N3YLTM.js → chunk-LTOTL5AS.js} +3 -3
- package/dist/chunk-LTOTL5AS.js.map +1 -0
- package/dist/chunk-M64TAGZY.js +590 -0
- package/dist/chunk-M64TAGZY.js.map +1 -0
- package/dist/{chunk-JZZVWTUB.js → chunk-MMOQR426.js} +2 -2
- package/dist/chunk-MMOQR426.js.map +1 -0
- package/dist/{chunk-SJBMKA4X.js → chunk-OHT2AXER.js} +11 -10
- package/dist/chunk-OHT2AXER.js.map +1 -0
- package/dist/{chunk-TTFW6E6C.js → chunk-OZKBIPXU.js} +2 -2
- package/dist/chunk-OZKBIPXU.js.map +1 -0
- package/dist/{chunk-Q2SLOMN6.js → chunk-RHMY45DK.js} +4 -4
- package/dist/chunk-RHMY45DK.js.map +1 -0
- package/dist/{chunk-BZXA5SSA.js → chunk-S7QB5KMM.js} +2 -2
- package/dist/{chunk-BZXA5SSA.js.map → chunk-S7QB5KMM.js.map} +1 -1
- package/dist/{chunk-HDXUHLTQ.js → chunk-SHECA2N4.js} +8 -2
- package/dist/chunk-SHECA2N4.js.map +1 -0
- package/dist/{chunk-R6FIXYAE.js → chunk-SJEPM5ZU.js} +2 -2
- package/dist/{chunk-R6FIXYAE.js.map → chunk-SJEPM5ZU.js.map} +1 -1
- package/dist/{chunk-FJMABKKV.js → chunk-UQ4FRQ6M.js} +35 -17
- package/dist/chunk-UQ4FRQ6M.js.map +1 -0
- package/dist/{chunk-S4ZGTDSG.js → chunk-UU37OR3D.js} +2 -2
- package/dist/chunk-UU37OR3D.js.map +1 -0
- package/dist/{chunk-SWXWLSUD.js → chunk-WEQNPYVA.js} +1 -1
- package/dist/{chunk-SWXWLSUD.js.map → chunk-WEQNPYVA.js.map} +1 -1
- package/dist/{chunk-5SFHBYEY.js → chunk-WUVHP3UC.js} +97 -24
- package/dist/chunk-WUVHP3UC.js.map +1 -0
- package/dist/{chunk-3S3WXAZ5.js → chunk-X43QQWVC.js} +3 -2
- package/dist/chunk-X43QQWVC.js.map +1 -0
- package/dist/{chunk-Z3T24FX3.js → chunk-YE6KCAIN.js} +3 -2
- package/dist/chunk-YE6KCAIN.js.map +1 -0
- package/dist/{chunk-KQZIC5CA.js → chunk-ZC4KSRAF.js} +7 -7
- package/dist/chunk-ZC4KSRAF.js.map +1 -0
- package/dist/collapsible-panel.d.ts +2 -2
- package/dist/collapsible-panel.js +2 -2
- package/dist/collapsible-panel.js.map +1 -1
- package/dist/column-explorer.d.ts +3 -3
- package/dist/column-explorer.js +16 -138
- package/dist/column-explorer.js.map +1 -1
- package/dist/dialog-surface-controller-BeKZ3e8Z.d.ts +251 -0
- package/dist/editor-frame.d.ts +1 -1
- package/dist/editor-frame.js +1 -1
- package/dist/editor.d.ts +38 -20
- package/dist/editor.js +11651 -7052
- package/dist/editor.js.map +1 -1
- package/dist/file-picker.js +1 -1
- package/dist/help-tags-register.js +2 -1
- package/dist/help-tags-register.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +24 -23
- package/dist/list-action-row.d.ts +1 -1
- package/dist/list-action-row.js +1 -1
- package/dist/list-detail-dialog.d.ts +7 -7
- package/dist/list-detail-dialog.js +6 -5
- package/dist/list-detail-dialog.js.map +1 -1
- package/dist/list-header.d.ts +1 -1
- package/dist/list-header.js +1 -1
- package/dist/list-item.d.ts +1 -1
- package/dist/list-item.js +1 -1
- package/dist/message-composer.js +1 -1
- package/dist/nav-stack.d.ts +6 -6
- package/dist/nav-stack.js +1 -1
- package/dist/popup-menu-register.js +1 -7
- package/dist/popup-menu-register.js.map +1 -1
- package/dist/popup-menu.d.ts +2 -2
- package/dist/popup-menu.js +1 -1
- package/dist/resizable-region.js +1 -1
- package/dist/segmented-control.d.ts +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/select-register.js +17 -23
- package/dist/select-register.js.map +1 -1
- package/dist/split-view.d.ts +6 -6
- package/dist/split-view.js +1 -1
- package/dist/styles/collapsible-panel.css +34 -25
- package/dist/styles/components/actions/popup-menu/popup-menu.css +4 -4
- package/dist/styles/components/actions/toolbar/toolbar.css +34 -1
- package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +1 -1
- package/dist/styles/components/forms/segmented-control/segmented-control.css +1 -1
- package/dist/styles/components/layout/collapsible-panel/collapsible-panel.css +34 -25
- package/dist/styles/components/layout/split-view/split-view.css +19 -33
- package/dist/styles/components/navigation/nav-stack/nav-stack.css +15 -19
- package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +30 -29
- package/dist/styles/components/surfaces/editor-frame/editor-frame.css +10 -3
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +291 -4
- package/dist/styles/editor/editor.css +78 -0
- package/dist/styles/editor-frame.css +10 -3
- package/dist/styles/nav-stack.css +15 -19
- package/dist/styles/popup-menu.css +4 -4
- package/dist/styles/segmented-control.css +1 -1
- package/dist/styles/split-view.css +19 -33
- package/dist/styles/surface-scaffold.css +291 -4
- package/dist/styles/tab-navigator.css +30 -29
- package/dist/styles/toolbar-control-group.css +1 -1
- package/dist/styles/toolbar.css +34 -1
- package/dist/styles/webawesome.css +4 -5
- package/dist/surface-scaffold-register.js +2 -1
- package/dist/surface-scaffold-register.js.map +1 -1
- package/dist/surface-scaffold.d.ts +155 -246
- package/dist/surface-scaffold.js +3 -2
- package/dist/toolbar-control-group.d.ts +2 -2
- package/dist/toolbar-control-group.js +1 -1
- package/dist/toolbar.d.ts +6 -1
- package/dist/toolbar.js +1 -1
- package/dist/tree-list.d.ts +4 -4
- package/dist/tree-list.js +2 -2
- package/dist/{tree-rows-eHnnGLGM.d.ts → tree-rows-Bms5QJvG.d.ts} +3 -0
- package/dist/wire-catalog.d.ts +1 -1
- package/dist/wire-catalog.js +3 -2
- package/dist/wire-catalog.js.map +1 -1
- package/dist/wire-checkboxes.js +2 -1
- package/dist/wire-choice-chips.js +2 -1
- package/dist/wire-color-fields.js +2 -1
- package/dist/wire-color-pickers.js +2 -1
- package/dist/wire-column-explorer.js +1 -92
- package/dist/wire-column-explorer.js.map +1 -1
- package/dist/wire-comboboxes.d.ts +2 -0
- package/dist/wire-comboboxes.js +2 -1
- package/dist/wire-content-items.js +2 -1
- package/dist/wire-corner-status.js +2 -1
- package/dist/wire-nav-stack.js +2 -1
- package/dist/wire-overlay-sheets.js +2 -1
- package/dist/wire-paged-views.js +2 -2
- package/dist/wire-paged-views.js.map +1 -1
- package/dist/wire-resizable-regions.js +2 -1
- package/dist/wire-scroll-dividers.js +1 -1
- package/dist/wire-search-fields.js +2 -1
- package/dist/wire-sidebar.js +2 -1
- package/dist/wire-tab-bars.d.ts +41 -2
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-tab-navigator.js +2 -1
- package/dist/wire-tag-fields.js +2 -1
- package/dist/wire-workbench.js +2 -1
- package/dist/workbench-dialog.d.ts +7 -7
- package/dist/workbench-dialog.js +5 -4
- package/dist/workbench-dialog.js.map +1 -1
- package/dist/workbench.d.ts +1 -1
- package/dist/workbench.js +1 -1
- package/docs/accessibility.md +3 -6
- package/docs/component-contract.md +47 -7
- package/docs/component-selection.md +90 -80
- package/docs/design/templates.md +5 -4
- package/docs/editor-frame.md +1 -1
- package/docs/editor-host.md +15 -2
- package/docs/overlay-tooltip.md +1 -1
- package/docs/recipes.md +1 -1
- package/docs/surface-scaffold.md +63 -2
- package/docs/ui-analyzer.md +42 -0
- package/docs/ui-doctor.md +45 -1
- package/docs/ui-evaluator.md +35 -0
- package/docs/ux-demo.md +1 -1
- package/docs/view.md +314 -0
- package/docs/webawesome-theme.md +16 -0
- package/doctor/cli.mjs +36 -31
- package/doctor/index.mjs +349 -162
- package/evaluator/cli.mjs +36 -30
- package/llms.txt +17 -4
- package/package.json +6 -2
- package/props/cli.mjs +47 -21
- package/scripts/lib/cli-args.mjs +98 -0
- package/ux-demo/recipes/app-shell.tsx +48 -141
- package/ux-demo/recipes/collapsible-sidebar.tsx +43 -169
- package/ux-demo/recipes/compact-toolbar.tsx +22 -114
- package/ux-demo/recipes/composer-form.tsx +14 -104
- package/ux-demo/recipes/list-detail-dialog.tsx +38 -84
- package/ux-demo/recipes/list-workspace-states.tsx +29 -152
- package/ux-demo/recipes/loading-inspector.tsx +30 -174
- package/ux-demo/recipes/media-detail.tsx +29 -146
- package/ux-demo/recipes/navigation-sidebar.tsx +24 -113
- package/ux-demo/recipes/navigation-stack.tsx +7 -43
- package/ux-demo/recipes/workspace-header.tsx +2 -66
- package/view/catalog.mjs +229 -0
- package/view/child-kind.mjs +22 -0
- package/view/cli.mjs +142 -119
- package/view/contract.mjs +84 -11
- package/view/css-grammar.mjs +93 -0
- package/view/generate.d.mts +16 -0
- package/view/generate.mjs +155 -56
- package/view/index.d.mts +80 -14
- package/view/index.mjs +5 -9
- package/view/interpret.mjs +104 -36
- package/view/types.mjs +161 -0
- package/view/validate-move.mjs +66 -30
- package/view/validate.mjs +420 -654
- package/vite-editor.d.mts +16 -1
- package/vite-editor.mjs +74 -4
- package/dist/chunk-2E7S5C4D.js.map +0 -1
- package/dist/chunk-2LM3PYHA.js.map +0 -1
- package/dist/chunk-3S3WXAZ5.js.map +0 -1
- package/dist/chunk-3WYREXW4.js.map +0 -1
- package/dist/chunk-4RECPEHI.js.map +0 -1
- package/dist/chunk-5SFHBYEY.js.map +0 -1
- package/dist/chunk-6OT7FOSA.js.map +0 -1
- package/dist/chunk-ADMWT7FX.js.map +0 -1
- package/dist/chunk-BCO673YW.js.map +0 -1
- package/dist/chunk-CNM6ZWP2.js.map +0 -1
- package/dist/chunk-DJ65XFVN.js.map +0 -1
- package/dist/chunk-EXGDKG7B.js.map +0 -1
- package/dist/chunk-FJMABKKV.js.map +0 -1
- package/dist/chunk-GVII4JSD.js.map +0 -1
- package/dist/chunk-HDXUHLTQ.js.map +0 -1
- package/dist/chunk-JG4ONAOI.js.map +0 -1
- package/dist/chunk-JZZVWTUB.js.map +0 -1
- package/dist/chunk-KELWWCMX.js.map +0 -1
- package/dist/chunk-KLR3DCHH.js.map +0 -1
- package/dist/chunk-KQZIC5CA.js.map +0 -1
- package/dist/chunk-LD6A6PYB.js +0 -268
- package/dist/chunk-LD6A6PYB.js.map +0 -1
- package/dist/chunk-MVKHSAKE.js.map +0 -1
- package/dist/chunk-NHQOX7T4.js.map +0 -1
- package/dist/chunk-NR3ZO4LK.js.map +0 -1
- package/dist/chunk-Q2CLQ3IJ.js.map +0 -1
- package/dist/chunk-Q2SLOMN6.js.map +0 -1
- package/dist/chunk-S4ZGTDSG.js.map +0 -1
- package/dist/chunk-SJBMKA4X.js.map +0 -1
- package/dist/chunk-SPI6VMIY.js.map +0 -1
- package/dist/chunk-TPLVC5BE.js.map +0 -1
- package/dist/chunk-TTFW6E6C.js.map +0 -1
- package/dist/chunk-V6N3YLTM.js.map +0 -1
- package/dist/chunk-VNT4MXR5.js +0 -548
- package/dist/chunk-VNT4MXR5.js.map +0 -1
- package/dist/chunk-VPDSPD76.js.map +0 -1
- package/dist/chunk-YHRJNKD5.js.map +0 -1
- package/dist/chunk-Z3T24FX3.js.map +0 -1
- package/dist/chunk-ZKKO4MHC.js.map +0 -1
- package/dist/{nav-stack-DwxpXxqJ.d.ts → nav-stack-vQ3ieerq.d.ts} +3 -3
package/README.md
CHANGED
|
@@ -927,6 +927,11 @@ so your components preview and edit beside Kerf UI's. `@kerfjs/ui/editor` is
|
|
|
927
927
|
the editor module for a host that builds its own page. See the
|
|
928
928
|
[editor host guide](./docs/editor-host.md).
|
|
929
929
|
|
|
930
|
+
The editor writes view documents (`*.kui.json`). `@kerfjs/ui/view` validates
|
|
931
|
+
them (`validateView`) and renders them at runtime (`interpretView`), and the
|
|
932
|
+
`kerf-ui-view` CLI generates each one's read-only, typed `*.view.ts` module
|
|
933
|
+
(`generate`, `check`, `diff`). See the [view documents guide](./docs/view.md).
|
|
934
|
+
|
|
930
935
|
## Design and tool guidance
|
|
931
936
|
|
|
932
937
|
- [Component selection and composition](./docs/component-selection.md)
|
|
@@ -3,6 +3,47 @@
|
|
|
3
3
|
"schemaVersion": 1,
|
|
4
4
|
"package": "@kerfjs/ui",
|
|
5
5
|
"description": "Machine-readable selection, composition, delivery, ownership, and accessibility metadata for Kerf UI, plus the optional Web Awesome integration set.",
|
|
6
|
+
"propVocabulary": {
|
|
7
|
+
"canonical": {
|
|
8
|
+
"size": ["default", "compact"],
|
|
9
|
+
"density": ["default", "compact"],
|
|
10
|
+
"inset": ["none", "compact", "default", "comfortable"]
|
|
11
|
+
},
|
|
12
|
+
"exceptions": [
|
|
13
|
+
{ "component": "ListDetailDialog", "prop": "size", "values": ["small", "medium", "large"], "reason": "Modal width tiers, not control size." },
|
|
14
|
+
{ "component": "ListHeader", "prop": "size", "values": ["xs", "sm", "m", "l", "xl"], "reason": "Heading typography scale." },
|
|
15
|
+
{ "component": "ProgressRing", "prop": "size", "values": ["small", "medium", "large"], "reason": "Indicator diameter tiers." },
|
|
16
|
+
{ "component": "DialogSurface", "prop": "size", "values": ["small", "medium", "large"], "reason": "Modal width tiers." },
|
|
17
|
+
{ "component": "PinnablePopoverSurface", "prop": "size", "values": ["small", "medium", "large"], "reason": "Popover width tiers." },
|
|
18
|
+
{ "component": "PopoverDialogSurface", "prop": "size", "values": ["small", "medium", "large"], "reason": "Popover width tiers." },
|
|
19
|
+
{ "component": "Text", "prop": "size", "values": ["compact", "default", "medium", "large", "xlarge"], "reason": "Typography scale." },
|
|
20
|
+
{ "component": "ToolbarText", "prop": "size", "values": ["xlarge", "xlarge-fixed", "large", "default", "small", "xsmall"], "reason": "Toolbar typography scale." },
|
|
21
|
+
{ "component": "WorkbenchDialog", "prop": "size", "values": ["small", "medium", "large"], "reason": "Modal width tiers." },
|
|
22
|
+
{ "component": "ListItem", "prop": "density", "values": ["spacious"], "reason": "Additional spacious row density." },
|
|
23
|
+
{ "component": "ListItemLink", "prop": "density", "values": ["spacious"], "reason": "Additional spacious row density." },
|
|
24
|
+
{ "component": "EdgeActivityIndicator", "prop": "inset", "values": ["safe-area", "none"], "reason": "Safe-area placement, not surface padding." }
|
|
25
|
+
],
|
|
26
|
+
"aliases": [
|
|
27
|
+
{ "component": "SegmentedControl", "prop": "size", "value": "small", "replacement": "compact" },
|
|
28
|
+
{ "component": "PopupMenu", "prop": "size", "value": "standard", "replacement": "default" },
|
|
29
|
+
{ "component": "ToolbarControlGroup", "prop": "density", "value": "comfortable", "replacement": "default" },
|
|
30
|
+
{ "component": "ToolbarControlGroup", "prop": "density", "value": "tight", "replacement": "compact" },
|
|
31
|
+
{ "component": "ColumnExplorer", "prop": "density", "value": "standard", "replacement": "default" },
|
|
32
|
+
{ "component": "ListActionRow", "prop": "density", "value": "standard", "replacement": "default" },
|
|
33
|
+
{ "component": "ListHeader", "prop": "density", "value": "standard", "replacement": "default" },
|
|
34
|
+
{ "component": "ListItem", "prop": "density", "value": "standard", "replacement": "default" },
|
|
35
|
+
{ "component": "ListItemLink", "prop": "density", "value": "standard", "replacement": "default" },
|
|
36
|
+
{ "component": "TreeList", "prop": "density", "value": "standard", "replacement": "default" },
|
|
37
|
+
{ "component": "DialogSurface", "prop": "bodyInset", "value": "compact", "replacement": "default" },
|
|
38
|
+
{ "component": "DialogSurface", "prop": "footerInset", "value": "compact", "replacement": "default" },
|
|
39
|
+
{ "component": "PopupSurface", "prop": "inset", "value": "standard", "replacement": "default" },
|
|
40
|
+
{ "component": "PopupSurface", "prop": "inset", "value": "list-zero", "replacement": "none" },
|
|
41
|
+
{ "component": "ToolbarControlGroup", "prop": "menuInset", "value": "standard", "replacement": "default" },
|
|
42
|
+
{ "component": "ToolbarControlGroup", "prop": "menuInset", "value": "list-zero", "replacement": "none" },
|
|
43
|
+
{ "component": "EditorFrame", "prop": "inset", "value": "padded", "replacement": "comfortable" },
|
|
44
|
+
{ "component": "EditorFrame", "prop": "inset", "value": "flush", "replacement": "none" }
|
|
45
|
+
]
|
|
46
|
+
},
|
|
6
47
|
"wiringProviders": [
|
|
7
48
|
{
|
|
8
49
|
"export": "wireCatalog",
|
|
@@ -1925,6 +1966,7 @@
|
|
|
1925
1966
|
"centered content",
|
|
1926
1967
|
"stacked zones at compact or narrow widths",
|
|
1927
1968
|
"content-driven wrap that keeps a heading title whole",
|
|
1969
|
+
"group wrap that moves whole leading control groups to another row",
|
|
1928
1970
|
"center priority for an expanded center control",
|
|
1929
1971
|
"trailing priority for an expanded trailing control at compact or narrow widths",
|
|
1930
1972
|
"trailing groups and a standalone primary Button wrap instead of clipping",
|
|
@@ -2282,7 +2324,7 @@
|
|
|
2282
2324
|
"category": "Structure",
|
|
2283
2325
|
"kind": "component",
|
|
2284
2326
|
"source": "kerf",
|
|
2285
|
-
"description": "A native modal dialog (DialogSurface) with Kerf's header, body, and footer chrome, typed preferred widths, viewport bounds, and presentations, plus a non-modal popover dialog and popup inset composition.",
|
|
2327
|
+
"description": "A native modal dialog (DialogSurface) with Kerf's header, body, and footer chrome, typed preferred widths, viewport bounds, and presentations, plus a non-modal popover dialog, a pinnable and movable non-modal popover, and popup inset composition.",
|
|
2286
2328
|
"uses": [
|
|
2287
2329
|
"lucide-icon"
|
|
2288
2330
|
],
|
|
@@ -2292,6 +2334,10 @@
|
|
|
2292
2334
|
"openDialog",
|
|
2293
2335
|
"closeDialog",
|
|
2294
2336
|
"PopoverDialogSurface",
|
|
2337
|
+
"PinnablePopoverSurface",
|
|
2338
|
+
"wirePinnablePopover",
|
|
2339
|
+
"pinPopover",
|
|
2340
|
+
"isPopoverPinned",
|
|
2295
2341
|
"PopupSurface",
|
|
2296
2342
|
"wireOverlaySheets"
|
|
2297
2343
|
],
|
|
@@ -2301,6 +2347,7 @@
|
|
|
2301
2347
|
"A modal needs a typed preferred width, viewport gutter, or dynamic viewport-bounded height cap while retaining native body scrolling and footer actions.",
|
|
2302
2348
|
"A dialog needs a less prominent built-in close control: closeEmphasis=\"quiet\" softens the glyph while keeping the native button target and close behavior.",
|
|
2303
2349
|
"A dialog that must leave the page interactive and close on Escape or an outside press uses PopoverDialogSurface; one that fills its body with a SplitView or Pane uses height and bodyLayout=\"fill\".",
|
|
2350
|
+
"A non-modal panel the person may keep open while working (a component library, a palette, a quick inspector) uses PinnablePopoverSurface with wirePinnablePopover: it opens transient below its button and light-dismisses; pinned (its header Pin toggle or pinPopover()) it stays open, drags by its title, moves with the arrow keys, resizes, and stays inside the viewport gutter, and onChange reports the pinned state and placement for the app to store and restore.",
|
|
2304
2351
|
"A chat-style dialog floats its composer over the transcript with footerPresentation=\"floating\" and keeps a heading or notice above one scrolling transcript with bodyLayout=\"fill-last\".",
|
|
2305
2352
|
"A phone-first task (compose, quick edit, a picker) should rise from the bottom edge as a sheet the person can resize: presentation=\"bottom-sheet\" with height, and resizable with minHeight / maxHeight bounds.",
|
|
2306
2353
|
"A dialog's title bar should float over the body on the translucent chrome material so a transcript scrolls visibly beneath both the title bar and a floating composer (headerPresentation=\"floating\" with bodyLayout=\"fill\" and a List or Pane that opts into scrollClearance=\"both\")."
|
|
@@ -2308,7 +2355,8 @@
|
|
|
2308
2355
|
"avoidWhen": [
|
|
2309
2356
|
"Do not use it as a generic layout wrapper, and do not toggle the dialog's open attribute (that opens it non-modally); open and close it with openDialog() and closeDialog().",
|
|
2310
2357
|
"Do not stack a dialog body inset around children that already own List or content-item geometry; use bodyInset none.",
|
|
2311
|
-
"Do not put quiet secondary text of your own in a floating dialog header; it can fall below AA over the content passing beneath. A ToolbarText as the dialog's heading (or in headerActions) is fine: its title takes the normal text color and its description lifts halfway toward it, keeping AA."
|
|
2358
|
+
"Do not put quiet secondary text of your own in a floating dialog header; it can fall below AA over the content passing beneath. A ToolbarText as the dialog's heading (or in headerActions) is fine: its title takes the normal text color and its description lifts halfway toward it, keeping AA.",
|
|
2359
|
+
"Do not hand-roll a draggable floating panel with app CSS and pointer handlers; render PinnablePopoverSurface and wire it. Do not toggle its popover attribute or data-pinned yourself: pin with pinPopover() and restore with wirePinnablePopover's pinned and placement options."
|
|
2312
2360
|
],
|
|
2313
2361
|
"alternatives": [],
|
|
2314
2362
|
"appOwns": [
|
|
@@ -2317,7 +2365,8 @@
|
|
|
2317
2365
|
"dismissal policy (lightDismiss)",
|
|
2318
2366
|
"content, heading, header actions, and footer",
|
|
2319
2367
|
"outer placement",
|
|
2320
|
-
"whether core kerfjs/overlay dialogs presented as bottom sheets take this package's geometry and slide (import @kerfjs/ui/overlay-sheet.css; exitClass 'kui-overlay-sheet-exit' for the slide out; the kui-overlay-sheet-resizable class plus wireOverlaySheets for a resize grabber)"
|
|
2368
|
+
"whether core kerfjs/overlay dialogs presented as bottom sheets take this package's geometry and slide (import @kerfjs/ui/overlay-sheet.css; exitClass 'kui-overlay-sheet-exit' for the slide out; the kui-overlay-sheet-resizable class plus wireOverlaySheets for a resize grabber)",
|
|
2369
|
+
"pinned state and placement storage for a PinnablePopoverSurface (wirePinnablePopover's onChange reports them; its pinned and placement options restore them)"
|
|
2321
2370
|
],
|
|
2322
2371
|
"variants": [
|
|
2323
2372
|
"small, medium, or large dialog",
|
|
@@ -2334,6 +2383,7 @@
|
|
|
2334
2383
|
"floating header over a filling only child that opts into block-start scrollClearance: content scrolls beneath the title bar through the published --kui-scroll-clearance-block-start",
|
|
2335
2384
|
"floating header divider as scroll state: a hairline under the title bar only while the body or a filling child beneath it is scrolled away from its top",
|
|
2336
2385
|
"non-modal light-dismiss PopoverDialogSurface, overlay or embedded in flow, named by label or labelledBy and described by describedBy",
|
|
2386
|
+
"pinnable non-modal PinnablePopoverSurface: transient below its anchor with light dismiss, or pinned (no light dismiss, Escape still closes) and moved by a header drag or the arrow keys (Shift for larger steps), resizable from its corner, clamped to the viewport gutter after a window resize, overlay or embedded in flow",
|
|
2337
2387
|
"none, compact, or comfortable body and footer inset",
|
|
2338
2388
|
"standard, compact, or zero-inset popup menu",
|
|
2339
2389
|
"core kerfjs/overlay confirm/prompt/form/choice as a bottom sheet styled by @kerfjs/ui/overlay-sheet.css",
|
|
@@ -2348,6 +2398,7 @@
|
|
|
2348
2398
|
"Name it with label (also its title text) or labelledBy (the id of a heading, such as a ToolbarText). The close button is named Close (closeLabel) and Escape asks to close; the cancelable kui-request-close event reports source close-button, escape, or backdrop.",
|
|
2349
2399
|
"closeEmphasis=\"quiet\" uses a smaller, quiet-colored close glyph inside the same 40px target; hover, focus ring, forced colors, accessible naming, and close requests remain available.",
|
|
2350
2400
|
"Name a PopoverDialogSurface with label or labelledBy. Describe either surface with describedBy (rendered as aria-describedby on the dialog root), usually the heading ToolbarText descriptionId or app-owned summary copy in the body; rootAttributes accepts only data-* attributes, so it never sets aria-describedby.",
|
|
2401
|
+
"PinnablePopoverSurface is a role=\"dialog\" named by its label, non-modal (nothing inert, focus stays where the person puts it). Its title is the move handle: a focusable button named by the label whose accessible description explains the drag and the arrow keys (Shift moves farther); the Pin control is a toggle button with aria-pressed, and Close and Escape (from inside it while pinned) close it.",
|
|
2351
2402
|
"A floating header's title uses the normal text color, which keeps WCAG AA over the 80% raised chrome material on any content; the material turns opaque under prefers-reduced-transparency, prefers-contrast: more, forced colors, or without backdrop-filter.",
|
|
2352
2403
|
"A resizable bottom sheet's grabber is a focusable horizontal separator (\"Resize sheet\") with aria-valuemin, aria-valuenow, and aria-valuemax in visible px; the arrow keys, Page Up/Down, Home, and End resize it, and its slide motion is skipped under prefers-reduced-motion.",
|
|
2353
2404
|
"Use popup surfaces only for real dropdown menus with named triggers."
|
|
@@ -2379,6 +2430,23 @@
|
|
|
2379
2430
|
"import": "@kerfjs/ui/wire-overlay-sheets",
|
|
2380
2431
|
"required": false,
|
|
2381
2432
|
"stateAttributes": []
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
"export": "wirePinnablePopover",
|
|
2436
|
+
"import": "@kerfjs/ui/surface-scaffold",
|
|
2437
|
+
"required": true,
|
|
2438
|
+
"stateAttributes": [
|
|
2439
|
+
{
|
|
2440
|
+
"name": "data-pinned",
|
|
2441
|
+
"on": "kui-pinnable-popover-surface",
|
|
2442
|
+
"meaning": "Present while the surface is pinned: no light dismiss, movable by its title, resizable. Re-applied if a re-render drops it."
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
"name": "data-placed",
|
|
2446
|
+
"on": "kui-pinnable-popover-surface",
|
|
2447
|
+
"meaning": "Present while the controller places the open surface (below its anchor, or where the person moved it); absent, it is centered. Re-applied if a re-render drops it."
|
|
2448
|
+
}
|
|
2449
|
+
]
|
|
2382
2450
|
}
|
|
2383
2451
|
],
|
|
2384
2452
|
"publicClasses": [
|
|
@@ -2390,6 +2458,7 @@
|
|
|
2390
2458
|
"kui-dialog-surface__header-actions",
|
|
2391
2459
|
"kui-dialog-surface__title",
|
|
2392
2460
|
"kui-popover-dialog-surface",
|
|
2461
|
+
"kui-pinnable-popover-surface",
|
|
2393
2462
|
"kui-popup-surface"
|
|
2394
2463
|
],
|
|
2395
2464
|
"publicTokens": [
|
|
@@ -6116,7 +6185,8 @@
|
|
|
6116
6185
|
"separate or adjacent trailing action",
|
|
6117
6186
|
"far-edge end action",
|
|
6118
6187
|
"standalone Kerf Button or Web Awesome action in trailing or end",
|
|
6119
|
-
"overflow dividers on each side with tabs scrolled out of view (wired by wireScrollDividers)"
|
|
6188
|
+
"overflow dividers on each side with tabs scrolled out of view (wired by wireScrollDividers)",
|
|
6189
|
+
"adaptive end action: wireTabBars onFitChange reports overflow and zone widths so the app swaps zone content"
|
|
6120
6190
|
],
|
|
6121
6191
|
"accessibility": [
|
|
6122
6192
|
"Keep exactly one selected tab at tabindex 0 and preserve the wiring keyboard model.",
|
|
@@ -6135,7 +6205,8 @@
|
|
|
6135
6205
|
"padding": "self",
|
|
6136
6206
|
"notes": [
|
|
6137
6207
|
"TabBar owns inline flex allocation: tabs shrink and scroll, an adjacent trailing action follows the tab strip, and the end action stays pinned at the far edge; leading, trailing, and end actions do not shrink.",
|
|
6138
|
-
"In intrinsic allocation, tabs give up width by ellipsizing their names down to a minimum before the strip scrolls; do not cap or clip tab names in app CSS."
|
|
6208
|
+
"In intrinsic allocation, tabs give up width by ellipsizing their names down to a minimum before the strip scrolls; do not cap or clip tab names in app CSS.",
|
|
6209
|
+
"To adapt zone content to the room, read wireTabBars onFitChange (overflowing, free, tabsWidth, stripWidth, trailingWidth, endWidth); never measure .kui-tab-bar__* parts in app code."
|
|
6139
6210
|
]
|
|
6140
6211
|
},
|
|
6141
6212
|
"delivery": {
|
|
@@ -7811,7 +7882,7 @@
|
|
|
7811
7882
|
"export": "wireComboboxes",
|
|
7812
7883
|
"import": "@kerfjs/ui/wire-comboboxes",
|
|
7813
7884
|
"required": true,
|
|
7814
|
-
"reason": "Filters suggestions, moves the active option, and
|
|
7885
|
+
"reason": "Filters suggestions, moves the active option, reports commits, and keeps an open list open across an application render while the field is focused; without it the list never opens.",
|
|
7815
7886
|
"stateAttributes": [
|
|
7816
7887
|
{
|
|
7817
7888
|
"name": "data-value",
|
|
@@ -3,12 +3,23 @@
|
|
|
3
3
|
"$id": "https://raw.githubusercontent.com/brianwestphal/kerf/main/ui/ai/component-catalog.schema.json",
|
|
4
4
|
"title": "Kerf UI component catalog",
|
|
5
5
|
"type": "object",
|
|
6
|
-
"required": ["schemaVersion", "package", "description", "entries"],
|
|
6
|
+
"required": ["schemaVersion", "package", "description", "propVocabulary", "entries"],
|
|
7
7
|
"properties": {
|
|
8
8
|
"$schema": { "type": "string" },
|
|
9
9
|
"schemaVersion": { "const": 1 },
|
|
10
10
|
"package": { "const": "@kerfjs/ui" },
|
|
11
11
|
"description": { "type": "string", "minLength": 1 },
|
|
12
|
+
"propVocabulary": {
|
|
13
|
+
"description": "Canonical size, density, and inset words, reviewed semantic exceptions, and one-major deprecated aliases.",
|
|
14
|
+
"type": "object",
|
|
15
|
+
"required": ["canonical", "exceptions", "aliases"],
|
|
16
|
+
"properties": {
|
|
17
|
+
"canonical": { "type": "object", "required": ["size", "density", "inset"], "properties": { "size": { "$ref": "#/$defs/stringList" }, "density": { "$ref": "#/$defs/stringList" }, "inset": { "$ref": "#/$defs/stringList" } }, "additionalProperties": false },
|
|
18
|
+
"exceptions": { "type": "array", "items": { "$ref": "#/$defs/propVocabularyException" } },
|
|
19
|
+
"aliases": { "type": "array", "items": { "$ref": "#/$defs/propVocabularyAlias" } }
|
|
20
|
+
},
|
|
21
|
+
"additionalProperties": false
|
|
22
|
+
},
|
|
12
23
|
"wiringProviders": {
|
|
13
24
|
"description": "Public helpers whose call installs other cataloged wiring helpers.",
|
|
14
25
|
"type": "array",
|
|
@@ -30,6 +41,8 @@
|
|
|
30
41
|
},
|
|
31
42
|
"additionalProperties": false,
|
|
32
43
|
"$defs": {
|
|
44
|
+
"propVocabularyException": { "type": "object", "required": ["component", "prop", "values", "reason"], "properties": { "component": { "type": "string" }, "prop": { "type": "string" }, "values": { "$ref": "#/$defs/stringList" }, "reason": { "type": "string", "minLength": 1 } }, "additionalProperties": false },
|
|
45
|
+
"propVocabularyAlias": { "type": "object", "required": ["component", "prop", "value", "replacement"], "properties": { "component": { "type": "string" }, "prop": { "type": "string" }, "value": { "type": "string" }, "replacement": { "type": "string" } }, "additionalProperties": false },
|
|
33
46
|
"entry": {
|
|
34
47
|
"type": "object",
|
|
35
48
|
"required": ["id", "name", "category", "kind", "source", "purpose", "useWhen", "avoidWhen", "delivery", "links"],
|
|
@@ -2153,13 +2153,31 @@
|
|
|
2153
2153
|
"id": "whether core kerfjs/overlay dialogs presented as bottom sheets take this package's geometry and slide (import @kerfjs/ui/overlay-sheet.css; exitClass 'kui-overlay-sheet-exit' for the slide out; the kui-overlay-sheet-resizable class plus wireOverlaySheets for a resize grabber)",
|
|
2154
2154
|
"owner": "application",
|
|
2155
2155
|
"required": false
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
"id": "pinned state and placement storage for a PinnablePopoverSurface (wirePinnablePopover's onChange reports them; its pinned and placement options restore them)",
|
|
2159
|
+
"owner": "application",
|
|
2160
|
+
"required": false
|
|
2156
2161
|
}
|
|
2157
2162
|
],
|
|
2158
2163
|
"wiring": {
|
|
2159
|
-
"required":
|
|
2160
|
-
"helpers": ["wireOverlaySheets"],
|
|
2161
|
-
"obligations": [],
|
|
2162
|
-
"stateAttributes": [
|
|
2164
|
+
"required": true,
|
|
2165
|
+
"helpers": ["wireOverlaySheets", "wirePinnablePopover"],
|
|
2166
|
+
"obligations": ["Use wirePinnablePopover as documented."],
|
|
2167
|
+
"stateAttributes": [
|
|
2168
|
+
{
|
|
2169
|
+
"name": "data-pinned",
|
|
2170
|
+
"on": "kui-pinnable-popover-surface",
|
|
2171
|
+
"helper": "wirePinnablePopover",
|
|
2172
|
+
"meaning": "Present while the surface is pinned: no light dismiss, movable by its title, resizable. Re-applied if a re-render drops it."
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"name": "data-placed",
|
|
2176
|
+
"on": "kui-pinnable-popover-surface",
|
|
2177
|
+
"helper": "wirePinnablePopover",
|
|
2178
|
+
"meaning": "Present while the controller places the open surface (below its anchor, or where the person moved it); absent, it is centered. Re-applied if a re-render drops it."
|
|
2179
|
+
}
|
|
2180
|
+
]
|
|
2163
2181
|
},
|
|
2164
2182
|
"responsive": { "owner": "not-applicable", "behaviors": [] },
|
|
2165
2183
|
"layout": {
|
|
@@ -2172,6 +2190,7 @@
|
|
|
2172
2190
|
"Name it with label (also its title text) or labelledBy (the id of a heading, such as a ToolbarText). The close button is named Close (closeLabel) and Escape asks to close; the cancelable kui-request-close event reports source close-button, escape, or backdrop.",
|
|
2173
2191
|
"closeEmphasis=\"quiet\" uses a smaller, quiet-colored close glyph inside the same 40px target; hover, focus ring, forced colors, accessible naming, and close requests remain available.",
|
|
2174
2192
|
"Name a PopoverDialogSurface with label or labelledBy. Describe either surface with describedBy (rendered as aria-describedby on the dialog root), usually the heading ToolbarText descriptionId or app-owned summary copy in the body; rootAttributes accepts only data-* attributes, so it never sets aria-describedby.",
|
|
2193
|
+
"PinnablePopoverSurface is a role=\"dialog\" named by its label, non-modal (nothing inert, focus stays where the person puts it). Its title is the move handle: a focusable button named by the label whose accessible description explains the drag and the arrow keys (Shift moves farther); the Pin control is a toggle button with aria-pressed, and Close and Escape (from inside it while pinned) close it.",
|
|
2175
2194
|
"A floating header's title uses the normal text color, which keeps WCAG AA over the 80% raised chrome material on any content; the material turns opaque under prefers-reduced-transparency, prefers-contrast: more, forced colors, or without backdrop-filter.",
|
|
2176
2195
|
"A resizable bottom sheet's grabber is a focusable horizontal separator (\"Resize sheet\") with aria-valuemin, aria-valuenow, and aria-valuemax in visible px; the arrow keys, Page Up/Down, Home, and End resize it, and its slide motion is skipped under prefers-reduced-motion.",
|
|
2177
2196
|
"Use popup surfaces only for real dropdown menus with named triggers."
|
|
@@ -2291,6 +2310,7 @@
|
|
|
2291
2310
|
"kui-dialog-surface__header-actions",
|
|
2292
2311
|
"kui-dialog-surface__title",
|
|
2293
2312
|
"kui-popover-dialog-surface",
|
|
2313
|
+
"kui-pinnable-popover-surface",
|
|
2294
2314
|
"kui-popup-surface"
|
|
2295
2315
|
],
|
|
2296
2316
|
"publicTokens": [
|
|
@@ -4962,7 +4982,8 @@
|
|
|
4962
4982
|
"padding": "self",
|
|
4963
4983
|
"notes": [
|
|
4964
4984
|
"TabBar owns inline flex allocation: tabs shrink and scroll, an adjacent trailing action follows the tab strip, and the end action stays pinned at the far edge; leading, trailing, and end actions do not shrink.",
|
|
4965
|
-
"In intrinsic allocation, tabs give up width by ellipsizing their names down to a minimum before the strip scrolls; do not cap or clip tab names in app CSS."
|
|
4985
|
+
"In intrinsic allocation, tabs give up width by ellipsizing their names down to a minimum before the strip scrolls; do not cap or clip tab names in app CSS.",
|
|
4986
|
+
"To adapt zone content to the room, read wireTabBars onFitChange (overflowing, free, tabsWidth, stripWidth, trailingWidth, endWidth); never measure .kui-tab-bar__* parts in app code."
|
|
4966
4987
|
]
|
|
4967
4988
|
}
|
|
4968
4989
|
},
|
|
@@ -6095,7 +6116,7 @@
|
|
|
6095
6116
|
"required": true,
|
|
6096
6117
|
"helpers": ["wireComboboxes"],
|
|
6097
6118
|
"obligations": [
|
|
6098
|
-
"Filters suggestions, moves the active option, and
|
|
6119
|
+
"Filters suggestions, moves the active option, reports commits, and keeps an open list open across an application render while the field is focused; without it the list never opens."
|
|
6099
6120
|
],
|
|
6100
6121
|
"stateAttributes": [
|
|
6101
6122
|
{
|