@kerfjs/ui 5.0.0-beta.129 → 5.0.0-beta.130

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.
Files changed (170) hide show
  1. package/ai/component-catalog.json +14 -9
  2. package/ai/component-composition-rules.json +1 -1
  3. package/ai/component-composition.d.ts +17 -0
  4. package/ai/component-composition.json +4 -3
  5. package/ai/component-composition.schema.json +326 -80
  6. package/ai/component-props-overlay.json +8568 -628
  7. package/ai/component-props-overlay.schema.json +15 -1
  8. package/ai/component-props.json +6221 -2069
  9. package/ai/component-props.schema.json +7 -0
  10. package/ai/components/radio-group.md +5 -1
  11. package/ai/components/state-banner.md +1 -1
  12. package/ai/components/surface-scaffold.md +3 -2
  13. package/ai/components/tab-bar.md +1 -1
  14. package/ai/components/toolbar-control-group.md +1 -1
  15. package/ai/public-api-signatures-v1.md +205 -42
  16. package/ai/skill.md +21 -8
  17. package/ai/view-document.schema.json +140 -86
  18. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  19. package/dist/browser/column-explorer.js +5 -1
  20. package/dist/browser/radio-group.js +1 -0
  21. package/dist/catalog-resources.d.ts +2 -2
  22. package/dist/catalog.d.ts +2 -2
  23. package/dist/catalog.js +5 -5
  24. package/dist/{chunk-E2MTHHLS.js → chunk-2FA3SX57.js} +2 -2
  25. package/dist/{chunk-E2MTHHLS.js.map → chunk-2FA3SX57.js.map} +1 -1
  26. package/dist/{chunk-ZC4KSRAF.js → chunk-4CYCJ3NY.js} +6 -4
  27. package/dist/chunk-4CYCJ3NY.js.map +1 -0
  28. package/dist/{chunk-IMXLOMTF.js → chunk-76BLSFEA.js} +30 -12
  29. package/dist/chunk-76BLSFEA.js.map +1 -0
  30. package/dist/{chunk-IR32NI2O.js → chunk-ALBFHXMZ.js} +3 -3
  31. package/dist/chunk-ALBFHXMZ.js.map +1 -0
  32. package/dist/{chunk-3ZWYGGEC.js → chunk-ASU4ODOH.js} +38 -7
  33. package/dist/chunk-ASU4ODOH.js.map +1 -0
  34. package/dist/chunk-BMUYZKXW.js +155 -0
  35. package/dist/chunk-BMUYZKXW.js.map +1 -0
  36. package/dist/{chunk-GQUDCWOD.js → chunk-D2KHQNJ6.js} +49 -23
  37. package/dist/chunk-D2KHQNJ6.js.map +1 -0
  38. package/dist/{chunk-34FWYJX6.js → chunk-ECJHCPBN.js} +8 -2
  39. package/dist/chunk-ECJHCPBN.js.map +1 -0
  40. package/dist/{chunk-DBCDYBZP.js → chunk-HHEBNP6Z.js} +2 -2
  41. package/dist/{chunk-DBCDYBZP.js.map → chunk-HHEBNP6Z.js.map} +1 -1
  42. package/dist/{chunk-3ZKUXWAV.js → chunk-IPYQYLSX.js} +16 -9
  43. package/dist/chunk-IPYQYLSX.js.map +1 -0
  44. package/dist/{chunk-SJEPM5ZU.js → chunk-LETAE6SX.js} +2 -2
  45. package/dist/{chunk-SJEPM5ZU.js.map → chunk-LETAE6SX.js.map} +1 -1
  46. package/dist/chunk-MVWR5WRX.js +99 -0
  47. package/dist/chunk-MVWR5WRX.js.map +1 -0
  48. package/dist/{chunk-6T7AX365.js → chunk-OSL4LQ7T.js} +52 -23
  49. package/dist/chunk-OSL4LQ7T.js.map +1 -0
  50. package/dist/{chunk-OHT2AXER.js → chunk-QSJAIXLM.js} +19 -3
  51. package/dist/chunk-QSJAIXLM.js.map +1 -0
  52. package/dist/{chunk-UQ4FRQ6M.js → chunk-R4JK2C6D.js} +13 -3
  53. package/dist/chunk-R4JK2C6D.js.map +1 -0
  54. package/dist/{chunk-5A2DN3LR.js → chunk-SGYBIKQA.js} +3 -1
  55. package/dist/chunk-SGYBIKQA.js.map +1 -0
  56. package/dist/{chunk-K3C35KGR.js → chunk-XO5IOPM5.js} +2 -2
  57. package/dist/{chunk-K3C35KGR.js.map → chunk-XO5IOPM5.js.map} +1 -1
  58. package/dist/collapsible-panel.d.ts +2 -2
  59. package/dist/collapsible-panel.js +2 -2
  60. package/dist/column-explorer.d.ts +5 -1
  61. package/dist/column-explorer.js +5 -1
  62. package/dist/column-track.d.ts +3 -1
  63. package/dist/column-track.js +1 -1
  64. package/dist/editor.d.ts +87 -2
  65. package/dist/editor.js +2249 -1320
  66. package/dist/editor.js.map +1 -1
  67. package/dist/index.js +12 -12
  68. package/dist/list-detail-dialog.d.ts +2 -2
  69. package/dist/list-detail-dialog.js +4 -4
  70. package/dist/list-header.d.ts +47 -5
  71. package/dist/list-header.js +1 -1
  72. package/dist/message-composer.js +1 -1
  73. package/dist/{nav-stack-vQ3ieerq.d.ts → nav-stack-DKrvqFjA.d.ts} +1 -1
  74. package/dist/nav-stack.d.ts +2 -2
  75. package/dist/nav-stack.js +1 -1
  76. package/dist/{panel-toolbar-vg6Ir5Dy.d.ts → panel-toolbar-CEcHHDkn.d.ts} +8 -0
  77. package/dist/radio-group.d.ts +19 -2
  78. package/dist/radio-group.js +3 -1
  79. package/dist/split-view.d.ts +2 -2
  80. package/dist/split-view.js +1 -1
  81. package/dist/styles/column-track.css +7 -2
  82. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +11 -4
  83. package/dist/styles/components/collections/list-header/list-header.css +50 -0
  84. package/dist/styles/components/collections/list-item/list-item.css +6 -1
  85. package/dist/styles/components/collections/tree-list/tree-list.css +3 -2
  86. package/dist/styles/components/forms/radio-group/radio-group.css +107 -0
  87. package/dist/styles/components/layout/column-track/column-track.css +7 -2
  88. package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +30 -1
  89. package/dist/styles/editor/editor.css +0 -23
  90. package/dist/styles/list-header.css +50 -0
  91. package/dist/styles/list-item.css +6 -1
  92. package/dist/styles/radio-group.css +107 -0
  93. package/dist/styles/surface-scaffold.css +30 -1
  94. package/dist/styles/toolbar-control-group.css +11 -4
  95. package/dist/styles/tree-list.css +3 -2
  96. package/dist/surface-scaffold-register.js +1 -1
  97. package/dist/surface-scaffold.d.ts +46 -11
  98. package/dist/surface-scaffold.js +2 -2
  99. package/dist/toolbar-control-group.d.ts +10 -1
  100. package/dist/toolbar-control-group.js +1 -1
  101. package/dist/tree-list.d.ts +7 -1
  102. package/dist/tree-list.js +1 -1
  103. package/dist/view-runtime.d.ts +9 -0
  104. package/dist/view-runtime.js +8 -0
  105. package/dist/view-runtime.js.map +1 -0
  106. package/dist/wire-catalog.d.ts +2 -2
  107. package/dist/wire-catalog.js +1 -1
  108. package/dist/wire-search-fields.js +1 -1
  109. package/dist/wire-tab-bars.d.ts +10 -0
  110. package/dist/wire-tab-bars.js +1 -1
  111. package/dist/wire-tag-fields.js +1 -1
  112. package/dist/wire-workbench.d.ts +17 -1
  113. package/dist/wire-workbench.js +1 -1
  114. package/dist/workbench-dialog.d.ts +2 -2
  115. package/dist/workbench-dialog.js +4 -4
  116. package/dist/workbench.d.ts +10 -2
  117. package/dist/workbench.js +1 -1
  118. package/docs/accessibility.md +1 -1
  119. package/docs/column-explorer.md +4 -0
  120. package/docs/component-contract.md +10 -4
  121. package/docs/component-integration.md +7 -3
  122. package/docs/component-selection.md +2 -1
  123. package/docs/design/sketch/Kerf-UI.sketch +0 -0
  124. package/docs/design/sketch/coverage.md +7 -6
  125. package/docs/design/sketch/forms/README.md +5 -4
  126. package/docs/design/sketch/unified/pages/forms.png +0 -0
  127. package/docs/design/templates/radio-group/tiles-dark.svg +1 -0
  128. package/docs/design/templates/radio-group/tiles.svg +1 -0
  129. package/docs/design/templates/radio-group-dark.svg +1 -1
  130. package/docs/design/templates/radio-group.svg +1 -1
  131. package/docs/editor-host.md +90 -5
  132. package/docs/interaction-conventions.md +2 -0
  133. package/docs/layout.md +1 -1
  134. package/docs/surface-scaffold.md +49 -2
  135. package/docs/tree-list.md +10 -0
  136. package/docs/workbench.md +16 -0
  137. package/evaluator/firefox-app-data.d.mts +4 -0
  138. package/evaluator/firefox-app-data.mjs +35 -0
  139. package/evaluator/index.mjs +19 -5
  140. package/llms.txt +20 -4
  141. package/package.json +8 -1
  142. package/props/component-props.d.mts +3 -0
  143. package/view/cli.mjs +36 -5
  144. package/view/contract.mjs +3 -0
  145. package/view/generate.mjs +8 -7
  146. package/view/index.d.mts +14 -0
  147. package/view/project-types-worker.mjs +55 -0
  148. package/view/project-types.d.mts +43 -0
  149. package/view/project-types.mjs +618 -0
  150. package/view/type-expression.d.mts +15 -0
  151. package/view/type-expression.mjs +162 -0
  152. package/view/types.mjs +4 -0
  153. package/view/validate.mjs +20 -1
  154. package/vite-editor.d.mts +31 -3
  155. package/vite-editor.mjs +168 -4
  156. package/dist/chunk-34FWYJX6.js.map +0 -1
  157. package/dist/chunk-3ZKUXWAV.js.map +0 -1
  158. package/dist/chunk-3ZWYGGEC.js.map +0 -1
  159. package/dist/chunk-5A2DN3LR.js.map +0 -1
  160. package/dist/chunk-6T7AX365.js.map +0 -1
  161. package/dist/chunk-BMOZSNDU.js +0 -133
  162. package/dist/chunk-BMOZSNDU.js.map +0 -1
  163. package/dist/chunk-GQUDCWOD.js.map +0 -1
  164. package/dist/chunk-IMXLOMTF.js.map +0 -1
  165. package/dist/chunk-IR32NI2O.js.map +0 -1
  166. package/dist/chunk-MLDO7WLA.js +0 -82
  167. package/dist/chunk-MLDO7WLA.js.map +0 -1
  168. package/dist/chunk-OHT2AXER.js.map +0 -1
  169. package/dist/chunk-UQ4FRQ6M.js.map +0 -1
  170. package/dist/chunk-ZC4KSRAF.js.map +0 -1
@@ -229,6 +229,13 @@
229
229
  "group": {
230
230
  "type": "string"
231
231
  },
232
+ "subgroup": {
233
+ "type": "string"
234
+ },
235
+ "label": {
236
+ "description": "The task-facing name the editor's Inspector shows.",
237
+ "type": "string"
238
+ },
232
239
  "order": {
233
240
  "type": "integer",
234
241
  "minimum": 0
@@ -4,19 +4,21 @@
4
4
 
5
5
  `@kerfjs/ui:radio-group` · Kerf UI · component · Controls
6
6
 
7
- A native fieldset of radios, each drawn as a Kerf circle beside its label, with the group label above, per-choice hints, and hint and error text below, stacked or wrapping.
7
+ A native fieldset of radios, each drawn as a Kerf circle beside its label or, with presentation="tiles", as a framed preview tile with its label under it, with the group label above, per-choice hints, and hint and error text below, stacked or wrapping.
8
8
 
9
9
  ## When to use
10
10
 
11
11
  Choose exactly one of a few options that should stay visible with room for a label and hint each, with native keyboard behavior and form participation.
12
12
 
13
13
  - A form asks for one of two to about six options that people should compare at a glance, each with a readable label and an optional hint.
14
+ - The options are best told apart by a picture of their result (a color scheme, a layout, a theme): use presentation="tiles" with a decorative preview per choice.
14
15
 
15
16
  **Not when:**
16
17
 
17
18
  - Do not use for many options or a compact toolbar value; use Select.
18
19
  - Do not use to switch a view; use SegmentedControl.
19
20
  - Do not use for chip-styled or color choices; use ChoiceChips.
21
+ - Do not hand-build preview tiles from native radios and app CSS; use presentation="tiles".
20
22
 
21
23
  **Alternatives:**
22
24
 
@@ -46,6 +48,7 @@ Exact prop names and types: [`@kerfjs/ui/radio-group`](../public-api-signatures-
46
48
  - error
47
49
  - required
48
50
  - default or compact size
51
+ - list or preview tiles: a framed decorative preview per choice above its label, a selected ring plus check, wrapping whole tiles
49
52
 
50
53
  ## Composition
51
54
 
@@ -69,6 +72,7 @@ Margin: none · border: none · padding: self (layout role: controls). `self` me
69
72
 
70
73
  - A native \<fieldset role="radiogroup"> named by its legend (label) or ariaLabel; each choice is a native radio inside its \<label>, invisibly over the drawn circle. The browser owns the interaction: one Tab stop, arrow keys move and select, and the checked radio submits its value under name.
71
74
  - The group's hint and error form its aria-description; an error sets aria-invalid on the group and the danger border on each circle. required sets each radio's native required and aria-required on the group. A choice's hint is that radio's aria-description.
75
+ - With presentation="tiles" each choice's native radio covers its whole tile, so the semantics, Tab stop, and arrow keys are unchanged; the preview artwork is aria-hidden (the label names the choice), and the selection is a ring and a check mark, never color alone.
72
76
 
73
77
  The component renders controls inside it, so it cannot sit in the zones of a component whose root is a control or link. (`KUI-V014`)
74
78
 
@@ -62,7 +62,7 @@ Exact prop names and types: [`@kerfjs/ui/state-banner`](../public-api-signatures
62
62
  Zones (a zone is bound to JSX only through its listed prop; never assume the zone id is a prop):
63
63
 
64
64
  - `icon` — JSX prop `icon`; accepts `dormant-decoration`; 0–1.
65
- - `action` — JSX prop `action`; accepts `control`; 0–1.
65
+ - `action` — JSX prop `action`; accepts `control`; any number.
66
66
 
67
67
  ## State and wiring
68
68
 
@@ -15,7 +15,7 @@ Configure recurring dialog and popup geometry without consumer ::part() override
15
15
  - A modal needs a typed preferred width, viewport gutter, or dynamic viewport-bounded height cap while retaining native body scrolling and footer actions.
16
16
  - A dialog needs a less prominent built-in close control: closeEmphasis="quiet" softens the glyph while keeping the native button target and close behavior.
17
17
  - 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".
18
- - 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.
18
+ - 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. A persistent floating panel whose visibility an app control owns (a feature detached from a sidebar) sets pinnable={false} (always pinned, no Pin toggle, no light dismiss) and closable={false} (no Close X; Escape closes it only with wirePinnablePopover's closeOnEscape), keeping the app's Reattach control in headerActions.
19
19
  - 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".
20
20
  - 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.
21
21
  - 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").
@@ -25,7 +25,7 @@ Configure recurring dialog and popup geometry without consumer ::part() override
25
25
  - 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().
26
26
  - Do not stack a dialog body inset around children that already own List or content-item geometry; use bodyInset none.
27
27
  - 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.
28
- - 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.
28
+ - 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. Do not hide its Pin toggle or Close button with CSS; use pinnable={false} and closable={false}.
29
29
 
30
30
  ## Imports
31
31
 
@@ -57,6 +57,7 @@ Exact prop names and types: [`@kerfjs/ui/surface-scaffold`](../public-api-signat
57
57
  - 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
58
58
  - non-modal light-dismiss PopoverDialogSurface, overlay or embedded in flow, named by label or labelledBy and described by describedBy
59
59
  - 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
60
+ - persistent floating PinnablePopoverSurface: pinnable={false} always pinned with no Pin toggle and no light dismiss, closable={false} with no Close button and visibility owned by an app control
60
61
  - none, compact, or comfortable body and footer inset
61
62
  - standard, compact, or zero-inset popup menu
62
63
  - core kerfjs/overlay confirm/prompt/form/choice as a bottom sheet styled by @kerfjs/ui/overlay-sheet.css
@@ -87,7 +87,7 @@ Margin: none · border: self · padding: self (layout role: navigation). `self`
87
87
 
88
88
  - 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.
89
89
  - 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.
90
- - 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.
90
+ - To adapt zone content to the room, read wireTabBars onFitChange (overflowing, free, tabsWidth, stripWidth, trailingWidth, endWidth, barWidth, endFree; with trailingPlacement="adjacent" the room an end action can grow into is endFree, not free); never measure .kui-tab-bar__\* parts in app code.
91
91
 
92
92
  ## Accessibility
93
93
 
@@ -59,7 +59,7 @@ Exact prop names and types: [`@kerfjs/ui/toolbar-control-group`](../public-api-s
59
59
  - standard, compact, or list-zero dropdown menu inset
60
60
  - visible, horizontally scrollable, or whole-action wrapping overflow
61
61
  - always visible or compact-only responsive visibility
62
- - yield to an expanded trailing sibling at 480px, or exactly while a trailing-priority Toolbar row is active (yield-to-priority-row)
62
+ - yield to an expanded group in any zone of the same Toolbar at 480px (including a group relocated from a collapsed panel), or exactly while a trailing-priority Toolbar row is active (yield-to-priority-row)
63
63
  - relocate on panel collapse
64
64
  - avatar scrim
65
65
  - contained avatar background on a single group or selected multi-button highlight