@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
@@ -1,6 +1,20 @@
1
1
  # Public API signatures for the UI authoring corpus
2
2
 
3
- Generated from emitted declarations for `@kerfjs/ui@5.0.0-beta.129` and `kerfjs@5.0.0-beta.129`. This bounded reference covers only APIs used by the seven-task corpus. It is interface evidence, not an implementation or runtime guarantee.
3
+ Generated from emitted declarations for `@kerfjs/ui@5.0.0-beta.130` and `kerfjs@5.0.0-beta.130`. This bounded reference covers only APIs used by the seven-task corpus. It is interface evidence, not an implementation or runtime guarantee.
4
+
5
+ ## `@kerfjs/ui/view-runtime`
6
+
7
+ ```ts
8
+ import { SafeHtml } from 'kerfjs';
9
+
10
+ /**
11
+ * Preserve component prop inference behind a curried call boundary. Rollup's
12
+ * effect analysis stays linear through large generated component trees.
13
+ */
14
+ declare function kuiComponent<P>(component: (props: P) => SafeHtml): (props: P) => SafeHtml;
15
+
16
+ export { kuiComponent };
17
+ ```
4
18
 
5
19
  ## `@kerfjs/ui/css-values`
6
20
 
@@ -517,6 +531,9 @@ interface ToolbarControlGroupProps {
517
531
  expandedOverflow?: ToolbarControlGroupExpandedOverflow;
518
532
  /**
519
533
  * Responsive visibility owned by the enclosing Toolbar container.
534
+ * `yield-to-expanded-sibling` hides this group in a 480px-or-narrower
535
+ * Toolbar while another group in any of its zones is expanded, including
536
+ * a group relocated there from a collapsed panel.
520
537
  * `yield-to-priority-row` hides this trailing group exactly while its
521
538
  * Toolbar's `responsive="trailing-priority"` row is active (an expanded
522
539
  * trailing sibling at the Toolbar's `responsiveAt` width), so the app never
@@ -533,7 +550,13 @@ interface ToolbarControlGroupProps {
533
550
  placement?: ToolbarControlGroupPlacement;
534
551
  /** CSS length used as the minimum width and flex basis for `sizing="grow"`; defaults to 19rem. */
535
552
  growBasis?: string;
536
- /** Move this group into the work-area toolbar when its panel collapses. */
553
+ /**
554
+ * Move this group into the work-area toolbar when its panel collapses.
555
+ * A labeled relocatable group is keyed by its `label` (a `data-key`
556
+ * `rootAttributes` overrides it), so it keeps its DOM node, and a focused
557
+ * control keeps focus, when the relocated set changes around it. Give
558
+ * relocatable groups in one panel distinct labels.
559
+ */
537
560
  relocateOnCollapse?: boolean;
538
561
  /** Add contrast behind photo-backed avatar content. */
539
562
  scrim?: boolean;
@@ -836,6 +859,7 @@ type ListHeaderRootAttributes = Readonly<Record<`data-${string}`, string | undef
836
859
  'data-wrap'?: never;
837
860
  'data-indicator-tone'?: never;
838
861
  'data-toggle'?: never;
862
+ 'data-leading-edge'?: never;
839
863
  }>;
840
864
  type ListHeaderTriggerAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
841
865
  'data-action'?: never;
@@ -861,6 +885,13 @@ interface ListHeaderBaseProps {
861
885
  * readable in a narrow column, such as a specimen or form-section heading.
862
886
  */
863
887
  wrap?: boolean;
888
+ /**
889
+ * Start the label on another component's leading-content edge (KF-J8GMA2).
890
+ * `summary-row` spans the full width as `SummaryRow`s do and starts the
891
+ * label where their leading content starts, compacting with them at the
892
+ * same width; for a fill-width header directly above summary rows.
893
+ */
894
+ leadingEdge?: 'default' | 'summary-row';
864
895
  indicatorTone?: 'neutral' | 'accent' | 'pop' | 'danger';
865
896
  /** Render as an unanimated loading skeleton: keep the label and action affordance, disable interaction. */
866
897
  placeholder?: boolean;
@@ -874,7 +905,41 @@ interface ListHeaderBaseProps {
874
905
  /** Native named-slot assignment when composed inside a web component. */
875
906
  slot?: string;
876
907
  }
877
- type ListHeaderModeProps = {
908
+ /**
909
+ * A toggle header's one trailing overflow button (KF-X2MRCT): its own focus
910
+ * stop at the logical end, outside the disclosure button, opening the
911
+ * section's commands. The label and arrow toggle the section; the overflow
912
+ * button never does.
913
+ */
914
+ type ListHeaderOverflowProps = {
915
+ /** The overflow button's `data-action`. */
916
+ overflowAction: string;
917
+ /** Its accessible name and tooltip ("Group actions"). */
918
+ overflowLabel: string;
919
+ /** Its icon, typically an `Ellipsis` `LucideIcon`. */
920
+ overflowIcon: SafeHtml;
921
+ overflowDisabled?: boolean;
922
+ /**
923
+ * Popup metadata for the overflow button (`popoverTarget`,
924
+ * `aria-haspopup`, `aria-controls`, `data-*`).
925
+ */
926
+ overflowTriggerAttributes?: ListHeaderTriggerAttributes;
927
+ } | {
928
+ overflowAction?: never;
929
+ overflowLabel?: never;
930
+ overflowIcon?: never;
931
+ overflowDisabled?: never;
932
+ overflowTriggerAttributes?: never;
933
+ };
934
+ /** The non-toggle modes take no overflow button. */
935
+ type ListHeaderNoOverflow = {
936
+ overflowAction?: never;
937
+ overflowLabel?: never;
938
+ overflowIcon?: never;
939
+ overflowDisabled?: never;
940
+ overflowTriggerAttributes?: never;
941
+ };
942
+ type ListHeaderModeProps = ({
878
943
  /** Render the title as a controlled disclosure trigger. */
879
944
  toggle: true;
880
945
  /** A toggle's label is its button text, not a heading. */
@@ -885,7 +950,7 @@ type ListHeaderModeProps = {
885
950
  actionLabel?: never;
886
951
  actionDisabled?: boolean;
887
952
  disabledReason?: string;
888
- } | {
953
+ } & ListHeaderOverflowProps) | ({
889
954
  /** Render a separately named trailing action. */
890
955
  toggle?: false;
891
956
  /**
@@ -899,7 +964,7 @@ type ListHeaderModeProps = {
899
964
  expanded?: never;
900
965
  actionDisabled?: boolean;
901
966
  disabledReason?: string;
902
- } | {
967
+ } & ListHeaderNoOverflow) | ({
903
968
  /** Render a passive section heading. */
904
969
  toggle?: false;
905
970
  /**
@@ -913,7 +978,7 @@ type ListHeaderModeProps = {
913
978
  expanded?: never;
914
979
  actionDisabled?: never;
915
980
  disabledReason?: never;
916
- };
981
+ } & ListHeaderNoOverflow);
917
982
  type ListHeaderIndicatorProps = {
918
983
  count: number;
919
984
  countLabel: string;
@@ -928,7 +993,7 @@ type ListHeaderIndicatorProps = {
928
993
  status?: string | SafeHtml | undefined;
929
994
  };
930
995
  type ListHeaderProps = ListHeaderBaseProps & ListHeaderIndicatorProps & ListHeaderModeProps;
931
- declare function ListHeader({ label, size, headingLevel, count, countLabel, badge, status, density, divider, inline, width, wrap, indicatorTone, action, actionLabel, actionIcon, actionDisabled, disabledReason, expanded, toggle, placeholder, rootAttributes, triggerAttributes, controls, slot, }: ListHeaderProps): SafeHtml;
996
+ declare function ListHeader({ label, size, headingLevel, count, countLabel, badge, status, density, divider, inline, width, wrap, leadingEdge, indicatorTone, action, actionLabel, actionIcon, actionDisabled, disabledReason, expanded, toggle, overflowAction, overflowLabel, overflowIcon, overflowDisabled, overflowTriggerAttributes, placeholder, rootAttributes, triggerAttributes, controls, slot, }: ListHeaderProps): SafeHtml;
932
997
 
933
998
  export { ListHeader, type ListHeaderProps };
934
999
  ```
@@ -1895,6 +1960,16 @@ interface TabBarFit {
1895
1960
  trailingWidth: number;
1896
1961
  /** Width of the `end` zone, 0 without one. */
1897
1962
  endWidth: number;
1963
+ /** Inline room inside the bar's padding: what its zones share. */
1964
+ barWidth: number;
1965
+ /**
1966
+ * Room the bar leaves unused between its packed zones (leading, tabs,
1967
+ * trailing) and the `end` zone, or the bar's end edge without one. Under
1968
+ * `trailingPlacement="adjacent"` the strip is only as wide as its tabs, so
1969
+ * this is the room an `end` action can grow into; with the default
1970
+ * placement the strip absorbs the room and this stays near 0.
1971
+ */
1972
+ endFree: number;
1898
1973
  }
1899
1974
 
1900
1975
  type TabReorderSource = 'pointer' | 'keyboard';
@@ -2148,7 +2223,7 @@ export { wireSummaryRows };
2148
2223
  ## `@kerfjs/ui/nav-stack`
2149
2224
 
2150
2225
  ```ts
2151
- export { c as NavStack, d as NavStackBottomToolbarPresentation, e as NavStackChromePresentation, N as NavStackProps, f as NavStackToolbarConfig, a as NavStackView, g as NavStackViewBottomToolbar, h as NavStackViewToolbar } from './nav-stack-vQ3ieerq.js';
2226
+ export { c as NavStack, d as NavStackBottomToolbarPresentation, e as NavStackChromePresentation, N as NavStackProps, f as NavStackToolbarConfig, a as NavStackView, g as NavStackViewBottomToolbar, h as NavStackViewToolbar } from './nav-stack-DKrvqFjA.js';
2152
2227
  import 'kerfjs';
2153
2228
  import './list.js';
2154
2229
  import './semantic-content-BbzjvSu9.js';
@@ -2160,7 +2235,7 @@ import './css-values.js';
2160
2235
  import './pane.js';
2161
2236
  import './anchor-name-BZ1rpxaw.js';
2162
2237
  import './surface-tint-DQgYCaP9.js';
2163
- import './panel-toolbar-vg6Ir5Dy.js';
2238
+ import './panel-toolbar-CEcHHDkn.js';
2164
2239
  import './toolbar.js';
2165
2240
  import './lucide-icon.js';
2166
2241
  import 'lucide';
@@ -2196,7 +2271,7 @@ export { type WireNavStackOptions, wireNavStack };
2196
2271
  import * as kerfjs from 'kerfjs';
2197
2272
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2198
2273
  import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
2199
- import { N as NavStackProps, a as NavStackView } from './nav-stack-vQ3ieerq.js';
2274
+ import { N as NavStackProps, a as NavStackView } from './nav-stack-DKrvqFjA.js';
2200
2275
  import { ResizableRegionProps } from './resizable-region.js';
2201
2276
  import './list.js';
2202
2277
  import './flex-alignment-4ms8ZbV8.js';
@@ -2206,7 +2281,7 @@ import './css-values.js';
2206
2281
  import './pane.js';
2207
2282
  import './anchor-name-BZ1rpxaw.js';
2208
2283
  import './surface-tint-DQgYCaP9.js';
2209
- import './panel-toolbar-vg6Ir5Dy.js';
2284
+ import './panel-toolbar-CEcHHDkn.js';
2210
2285
  import './toolbar.js';
2211
2286
  import './lucide-icon.js';
2212
2287
  import 'lucide';
@@ -2586,13 +2661,13 @@ export { Pane, type PaneAppearance, type PaneChromeDividers, type PaneChromePlac
2586
2661
 
2587
2662
  ```ts
2588
2663
  import { SafeHtml } from 'kerfjs';
2589
- import { b as NavPane, N as NavStackProps } from './nav-stack-vQ3ieerq.js';
2664
+ import { b as NavPane, N as NavStackProps } from './nav-stack-DKrvqFjA.js';
2590
2665
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2591
2666
  import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
2592
2667
  import { ListConfig } from './list.js';
2593
2668
  import { PaneConfig } from './pane.js';
2594
2669
  import { ResizableRegionSeparator, ResizableRegionCollapseMotion, ResizableRegionContentOverflow, ResizableRegionPresentation, ResizableRegionRestorePosition } from './resizable-region.js';
2595
- import { a as PanelToolbar, c as PanelBottomToolbar, b as PanelChromePlacement, d as PanelToggle } from './panel-toolbar-vg6Ir5Dy.js';
2670
+ import { a as PanelToolbar, c as PanelBottomToolbar, b as PanelChromePlacement, d as PanelToggle } from './panel-toolbar-CEcHHDkn.js';
2596
2671
  import { ToolbarConfig } from './toolbar.js';
2597
2672
  import './css-values.js';
2598
2673
  import './surface-tint-DQgYCaP9.js';
@@ -2719,6 +2794,14 @@ interface WorkbenchPanelBase {
2719
2794
  * (pass `never` to keep one inline); the drawer defaults to inline.
2720
2795
  */
2721
2796
  responsiveOverlayAt?: WorkbenchResponsiveOverlayAt;
2797
+ /**
2798
+ * Whether the panel presents as an overlay right now. Render the `overlay`
2799
+ * signal `wireWorkbench` writes for the panel (`overlaid={overlay.value}`);
2800
+ * while it is true and the panel is open, its toolbar toggle shows its
2801
+ * `overlayLabel`. It changes nothing else: the presentation itself stays
2802
+ * `presentation` and `responsiveOverlayAt`.
2803
+ */
2804
+ overlaid?: boolean;
2722
2805
  /**
2723
2806
  * A rail's overlay width in a compact Workbench (default `inset`: the
2724
2807
  * Workbench less `--kui-workbench-overlay-dismiss-margin`, 44px). Ignored
@@ -2917,6 +3000,21 @@ interface WireWorkbenchPanel {
2917
3000
  * presses outside the panel and its allowed surfaces still dismiss it.
2918
3001
  */
2919
3002
  keepOpenOn?: (target: Node) => boolean;
3003
+ /**
3004
+ * Keep the panel open as the overlay when its `responsiveOverlayAt`
3005
+ * breakpoint begins to apply while it holds focus, instead of collapsing
3006
+ * it: a narrowing window then never takes away the field the user is
3007
+ * editing. An inspector or form panel opts in; a navigator usually does not.
3008
+ */
3009
+ keepFocusedOpen?: boolean;
3010
+ /**
3011
+ * An app-owned signal `wireWorkbench` keeps equal to whether the panel
3012
+ * presents as an overlay right now, whether through `presentation:
3013
+ * "overlay"` or its `responsiveOverlayAt` breakpoint. Render it as the
3014
+ * panel's `overlaid`, so the panel's toggle can show its `overlayLabel`.
3015
+ * Written only with `collapsed` and `dismissOverlays`.
3016
+ */
3017
+ overlay?: Signal<boolean>;
2920
3018
  }
2921
3019
  /** A resize the user made, after `wireWorkbench` wrote it to the size signal. */
2922
3020
  interface WorkbenchResize {
@@ -2950,7 +3048,8 @@ interface WireWorkbenchOptions {
2950
3048
  * Treat the panels given a `collapsed` signal as transient overlays while
2951
3049
  * they present as overlays (default `true`), like `wireSidebar`'s compact
2952
3050
  * overlay: a panel whose `responsiveOverlayAt` breakpoint begins to apply
2953
- * starts collapsed, with no collapse motion, and gets its inline collapsed
3051
+ * starts collapsed, with no collapse motion (unless its `keepFocusedOpen`
3052
+ * holds it open), and gets its inline collapsed
2954
3053
  * state back when the breakpoint stops applying (and on disposal); an open
2955
3054
  * overlay panel, responsive or `presentation: "overlay"`, closes on Escape
2956
3055
  * or a press that starts and ends outside it. A panel that opens as an
@@ -2998,8 +3097,8 @@ export { type WireWorkbenchOptions, type WireWorkbenchPanel, type WorkbenchPanel
2998
3097
 
2999
3098
  ```ts
3000
3099
  import { SafeHtml } from 'kerfjs';
3001
- import { P as PanelSide, a as PanelToolbar, b as PanelChromePlacement, c as PanelBottomToolbar, d as PanelToggle } from './panel-toolbar-vg6Ir5Dy.js';
3002
- export { e as collapsiblePanelToggleIcon } from './panel-toolbar-vg6Ir5Dy.js';
3100
+ import { P as PanelSide, a as PanelToolbar, b as PanelChromePlacement, c as PanelBottomToolbar, d as PanelToggle } from './panel-toolbar-CEcHHDkn.js';
3101
+ export { e as collapsiblePanelToggleIcon } from './panel-toolbar-CEcHHDkn.js';
3003
3102
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
3004
3103
  import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
3005
3104
  import { ToolbarConfig } from './toolbar.js';
@@ -3586,10 +3685,10 @@ import './anchor-name-BZ1rpxaw.js';
3586
3685
  import './css-values.js';
3587
3686
  import './surface-tint-DQgYCaP9.js';
3588
3687
  import './workbench.js';
3589
- import './nav-stack-vQ3ieerq.js';
3688
+ import './nav-stack-DKrvqFjA.js';
3590
3689
  import './list.js';
3591
3690
  import './flex-alignment-4ms8ZbV8.js';
3592
- import './panel-toolbar-vg6Ir5Dy.js';
3691
+ import './panel-toolbar-CEcHHDkn.js';
3593
3692
  import './lucide-icon.js';
3594
3693
  import 'lucide';
3595
3694
  import './toolbar-text.js';
@@ -3743,10 +3842,10 @@ import './anchor-name-BZ1rpxaw.js';
3743
3842
  import './css-values.js';
3744
3843
  import './surface-tint-DQgYCaP9.js';
3745
3844
  import './workbench.js';
3746
- import './nav-stack-vQ3ieerq.js';
3845
+ import './nav-stack-DKrvqFjA.js';
3747
3846
  import './list.js';
3748
3847
  import './flex-alignment-4ms8ZbV8.js';
3749
- import './panel-toolbar-vg6Ir5Dy.js';
3848
+ import './panel-toolbar-CEcHHDkn.js';
3750
3849
  import './lucide-icon.js';
3751
3850
  import 'lucide';
3752
3851
  import './toolbar-text.js';
@@ -3800,10 +3899,10 @@ import './anchor-name-BZ1rpxaw.js';
3800
3899
  import './css-values.js';
3801
3900
  import './surface-tint-DQgYCaP9.js';
3802
3901
  import './workbench.js';
3803
- import './nav-stack-vQ3ieerq.js';
3902
+ import './nav-stack-DKrvqFjA.js';
3804
3903
  import './list.js';
3805
3904
  import './flex-alignment-4ms8ZbV8.js';
3806
- import './panel-toolbar-vg6Ir5Dy.js';
3905
+ import './panel-toolbar-CEcHHDkn.js';
3807
3906
  import './lucide-icon.js';
3808
3907
  import 'lucide';
3809
3908
  import './toolbar-text.js';
@@ -5355,8 +5454,8 @@ export { wireToolbarVisibility };
5355
5454
  ## `@kerfjs/ui/surface-scaffold`
5356
5455
 
5357
5456
  ```ts
5358
- import { n as DialogSurfaceSize, f as DialogSurfaceHeight, g as DialogSurfaceMaxHeight, c as DialogSurfaceBodyLayout } from './dialog-surface-controller-BeKZ3e8Z.js';
5359
- export { D as DialogCloseSource, a as DialogRequestCloseDetail, b as DialogSurface, q as DialogSurfaceCloseEmphasis, d as DialogSurfaceFooterPresentation, e as DialogSurfaceHeaderPresentation, h as DialogSurfaceName, i as DialogSurfaceOptions, j as DialogSurfacePresentation, k as DialogSurfaceProps, l as DialogSurfaceRootAttributes, m as DialogSurfaceSheetMotion, r as DialogSurfaceStack, S as SurfaceInset, o as closeDialog, p as openDialog, s as syncDialogStack, w as wireDialogStack } from './dialog-surface-controller-BeKZ3e8Z.js';
5457
+ import { n as DialogSurfaceSize, f as DialogSurfaceHeight, g as DialogSurfaceMaxHeight, c as DialogSurfaceBodyLayout, S as SurfaceInset } from './dialog-surface-controller-BeKZ3e8Z.js';
5458
+ export { D as DialogCloseSource, a as DialogRequestCloseDetail, b as DialogSurface, q as DialogSurfaceCloseEmphasis, d as DialogSurfaceFooterPresentation, e as DialogSurfaceHeaderPresentation, h as DialogSurfaceName, i as DialogSurfaceOptions, j as DialogSurfacePresentation, k as DialogSurfaceProps, l as DialogSurfaceRootAttributes, m as DialogSurfaceSheetMotion, r as DialogSurfaceStack, o as closeDialog, p as openDialog, s as syncDialogStack, w as wireDialogStack } from './dialog-surface-controller-BeKZ3e8Z.js';
5360
5459
  import * as kerfjs from 'kerfjs';
5361
5460
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
5362
5461
  import { CssLength } from './css-values.js';
@@ -5467,7 +5566,10 @@ interface PinnablePopoverSurfaceProps {
5467
5566
  describedBy?: string;
5468
5567
  /** The body content, below the header. */
5469
5568
  children: KerfUiContent;
5470
- /** Controls before the Pin and Close buttons in the header. */
5569
+ /**
5570
+ * Controls before the Pin and Close buttons in the header (the only header
5571
+ * controls when both are omitted).
5572
+ */
5471
5573
  headerActions?: KerfUiContent;
5472
5574
  /**
5473
5575
  * `overlay` (default) is a native `popover="manual"` in the top layer that
@@ -5487,6 +5589,8 @@ interface PinnablePopoverSurfaceProps {
5487
5589
  preferredWidth?: CssLength;
5488
5590
  /** Definite height, bounded by the dynamic viewport minus both gutters. */
5489
5591
  height?: DialogSurfaceHeight;
5592
+ /** Minimum height, capped by maxHeight and the available viewport. Resizable overlays default to 160px. */
5593
+ minHeight?: CssLength;
5490
5594
  /** Height cap, bounded the same way, for a surface that sizes to content. */
5491
5595
  maxHeight?: DialogSurfaceMaxHeight;
5492
5596
  /**
@@ -5499,9 +5603,25 @@ interface PinnablePopoverSurfaceProps {
5499
5603
  * `fill-last` stacks fixed rows above one filling last child.
5500
5604
  */
5501
5605
  bodyLayout?: DialogSurfaceBodyLayout;
5606
+ /** Body edge clearance; none lets content owners meet the surface edges. Default default (8px). */
5607
+ bodyInset?: SurfaceInset;
5502
5608
  /** Add a bottom-edge handle that resizes by drag or arrow key without changing pin state. */
5503
5609
  resizeFromBottom?: boolean;
5504
- /** The Pin toggle's accessible name (default `Pin`). */
5610
+ /**
5611
+ * `false` makes it a persistent floating panel: always pinned, with no Pin
5612
+ * toggle, it never re-anchors or closes on a press outside (KF-850ZRF).
5613
+ * It still drags by its title, moves with the arrow keys, resizes, and
5614
+ * stays inside the viewport gutter. Default `true`.
5615
+ */
5616
+ pinnable?: boolean;
5617
+ /**
5618
+ * `false` omits the header Close button, for a surface whose visibility an
5619
+ * application control owns (it calls `hidePopover()` or toggles a
5620
+ * `popoverTarget`). Escape then closes it only when `wirePinnablePopover`
5621
+ * is given `closeOnEscape: true`. Default `true`.
5622
+ */
5623
+ closable?: boolean;
5624
+ /** The Pin toggle's accessible name (default `Pin`); unused when not pinnable. */
5505
5625
  pinLabel?: string;
5506
5626
  /** The close button's accessible name (default `Close`). */
5507
5627
  closeLabel?: string;
@@ -5520,10 +5640,12 @@ interface PinnablePopoverSurfaceProps {
5520
5640
  * keys, resizes, and stays inside the viewport gutter. Open it with a
5521
5641
  * `popoverTarget` control or `showPopover()`, and call `wirePinnablePopover()`
5522
5642
  * once for its placement, dismissal, and movement; the application stores
5523
- * what `onChange` reports. Use `PopoverDialogSurface` for a dialog that only
5524
- * ever light-dismisses.
5643
+ * what `onChange` reports. `pinnable={false}` makes it a persistent floating
5644
+ * panel and `closable={false}` leaves its visibility to an application
5645
+ * control. Use `PopoverDialogSurface` for a dialog that only ever
5646
+ * light-dismisses.
5525
5647
  */
5526
- declare function PinnablePopoverSurface({ id, label, describedBy, children, headerActions, presentation, pinned, size, preferredWidth, height, maxHeight, viewportGutter, bodyLayout, resizeFromBottom, pinLabel, closeLabel, moveDescription, rootAttributes, className, slot, }: PinnablePopoverSurfaceProps): kerfjs.SafeHtml;
5648
+ declare function PinnablePopoverSurface({ id, label, describedBy, children, headerActions, presentation, pinned, size, preferredWidth, height, minHeight, maxHeight, viewportGutter, bodyLayout, bodyInset, resizeFromBottom, pinnable, closable, pinLabel, closeLabel, moveDescription, rootAttributes, className, slot, }: PinnablePopoverSurfaceProps): kerfjs.SafeHtml;
5527
5649
 
5528
5650
  type PopupSurfaceInset = 'none' | 'compact' | 'default' | /** @deprecated Use default. */ 'standard' | /** @deprecated Use none. */ 'list-zero';
5529
5651
  interface PopupSurfaceProps {
@@ -5565,7 +5687,10 @@ interface PinnablePopoverOptions {
5565
5687
  * surface. Without one, a transient surface opens centered.
5566
5688
  */
5567
5689
  anchor?: Element | (() => Element | null);
5568
- /** Start pinned, as the application last stored it. */
5690
+ /**
5691
+ * Start pinned, as the application last stored it. A persistent surface
5692
+ * (`pinnable={false}`) is always pinned and ignores this.
5693
+ */
5569
5694
  pinned?: boolean;
5570
5695
  /** Placement and size to restore; transient surfaces ignore x and y. */
5571
5696
  placement?: PinnablePopoverPlacement;
@@ -5573,6 +5698,12 @@ interface PinnablePopoverOptions {
5573
5698
  step?: number;
5574
5699
  /** A Shift+arrow move, in px (default 40). */
5575
5700
  largeStep?: number;
5701
+ /**
5702
+ * Whether Escape, with focus inside the pinned surface, closes it. Default:
5703
+ * `true` unless the surface was rendered `closable={false}`, whose
5704
+ * visibility belongs to an application control.
5705
+ */
5706
+ closeOnEscape?: boolean;
5576
5707
  /**
5577
5708
  * Called when the person (or `pinPopover`) pins, unpins, moves, or resizes
5578
5709
  * the surface. A clamp after a window resize is not reported: the surface
@@ -5586,7 +5717,8 @@ declare function isPopoverPinned(surface: HTMLElement): boolean;
5586
5717
  * Pin (or, with `false`, unpin) a wired PinnablePopoverSurface, as its
5587
5718
  * header Pin toggle does. Pinned, it no longer closes on a press outside
5588
5719
  * and keeps where it is; unpinned, it returns below its anchor. Reported
5589
- * through `onChange`. Does nothing to a surface that is not wired.
5720
+ * through `onChange`. Does nothing to a surface that is not wired, and a
5721
+ * persistent (`pinnable={false}`) surface never unpins.
5590
5722
  */
5591
5723
  declare function pinPopover(surface: HTMLElement, pinned?: boolean): void;
5592
5724
  /**
@@ -5596,13 +5728,15 @@ declare function pinPopover(surface: HTMLElement, pinned?: boolean): void;
5596
5728
  * (Shift for `largeStep`) moving it, which pins it; resizing without changing
5597
5729
  * pin state; and a clamp inside the viewport gutter, kept after a window
5598
5730
  * resize. Pinned, it closes only by Escape (with focus inside it), its Close
5599
- * button, or `hidePopover()`. The state survives application re-renders and
5731
+ * button, or `hidePopover()`. A persistent surface (`pinnable={false}`) is
5732
+ * always pinned; with `closable={false}` only the application closes it,
5733
+ * unless `closeOnEscape` is set. The state survives application re-renders and
5600
5734
  * closing; `onChange` reports it for the application to store. An
5601
5735
  * `embedded` surface is left alone. Returns a disposer.
5602
5736
  */
5603
5737
  declare function wirePinnablePopover(surface: HTMLElement, options?: PinnablePopoverOptions): () => void;
5604
5738
 
5605
- export { DialogSurfaceBodyLayout, DialogSurfaceHeight, DialogSurfaceMaxHeight, DialogSurfaceSize, type PinnablePopoverChange, type PinnablePopoverChangeReason, type PinnablePopoverOptions, type PinnablePopoverPlacement, PinnablePopoverSurface, type PinnablePopoverSurfacePresentation, type PinnablePopoverSurfaceProps, PopoverDialogSurface, type PopoverDialogSurfaceDataAttributes, type PopoverDialogSurfaceDismiss, type PopoverDialogSurfacePresentation, type PopoverDialogSurfaceProps, PopupSurface, type PopupSurfaceInset, type PopupSurfaceProps, type SurfacePresentation, isPopoverPinned, pinPopover, wirePinnablePopover };
5739
+ export { DialogSurfaceBodyLayout, DialogSurfaceHeight, DialogSurfaceMaxHeight, DialogSurfaceSize, type PinnablePopoverChange, type PinnablePopoverChangeReason, type PinnablePopoverOptions, type PinnablePopoverPlacement, PinnablePopoverSurface, type PinnablePopoverSurfacePresentation, type PinnablePopoverSurfaceProps, PopoverDialogSurface, type PopoverDialogSurfaceDataAttributes, type PopoverDialogSurfaceDismiss, type PopoverDialogSurfacePresentation, type PopoverDialogSurfaceProps, PopupSurface, type PopupSurfaceInset, type PopupSurfaceProps, SurfaceInset, type SurfacePresentation, isPopoverPinned, pinPopover, wirePinnablePopover };
5606
5740
  ```
5607
5741
 
5608
5742
  ## `@kerfjs/ui/list-detail-dialog`
@@ -5615,7 +5749,7 @@ import { SplitViewListWidth } from './split-view.js';
5615
5749
  import { n as DialogSurfaceSize, f as DialogSurfaceHeight, g as DialogSurfaceMaxHeight, l as DialogSurfaceRootAttributes } from './dialog-surface-controller-BeKZ3e8Z.js';
5616
5750
  export { D as DialogCloseSource, a as DialogRequestCloseDetail, o as closeDialog, p as openDialog } from './dialog-surface-controller-BeKZ3e8Z.js';
5617
5751
  import './extension-attributes-IJ4decoa.js';
5618
- import './nav-stack-vQ3ieerq.js';
5752
+ import './nav-stack-DKrvqFjA.js';
5619
5753
  import './list.js';
5620
5754
  import './flex-alignment-4ms8ZbV8.js';
5621
5755
  import './scroll-clearance-BikHljTc.js';
@@ -5623,7 +5757,7 @@ import './sides-BPSWde0A.js';
5623
5757
  import './pane.js';
5624
5758
  import './anchor-name-BZ1rpxaw.js';
5625
5759
  import './surface-tint-DQgYCaP9.js';
5626
- import './panel-toolbar-vg6Ir5Dy.js';
5760
+ import './panel-toolbar-CEcHHDkn.js';
5627
5761
  import './toolbar.js';
5628
5762
  import './lucide-icon.js';
5629
5763
  import 'lucide';
@@ -5750,7 +5884,7 @@ import { CssLength } from './css-values.js';
5750
5884
  import { WorkbenchMainBottomToolbar, WorkbenchPanel } from './workbench.js';
5751
5885
  import { n as DialogSurfaceSize, f as DialogSurfaceHeight, g as DialogSurfaceMaxHeight, l as DialogSurfaceRootAttributes } from './dialog-surface-controller-BeKZ3e8Z.js';
5752
5886
  export { D as DialogCloseSource, a as DialogRequestCloseDetail, o as closeDialog, p as openDialog } from './dialog-surface-controller-BeKZ3e8Z.js';
5753
- import './nav-stack-vQ3ieerq.js';
5887
+ import './nav-stack-DKrvqFjA.js';
5754
5888
  import './list.js';
5755
5889
  import './extension-attributes-IJ4decoa.js';
5756
5890
  import './flex-alignment-4ms8ZbV8.js';
@@ -5759,7 +5893,7 @@ import './sides-BPSWde0A.js';
5759
5893
  import './pane.js';
5760
5894
  import './anchor-name-BZ1rpxaw.js';
5761
5895
  import './surface-tint-DQgYCaP9.js';
5762
- import './panel-toolbar-vg6Ir5Dy.js';
5896
+ import './panel-toolbar-CEcHHDkn.js';
5763
5897
  import './toolbar.js';
5764
5898
  import './lucide-icon.js';
5765
5899
  import 'lucide';
@@ -6146,6 +6280,12 @@ interface TreeListProps {
6146
6280
  nodes: readonly TreeListNode[];
6147
6281
  /** Ids of the expanded nodes. The application owns this state. */
6148
6282
  expanded: ReadonlySet<string> | readonly string[];
6283
+ /**
6284
+ * Reuse unchanged rows through native keyed reconciliation. Keep node objects
6285
+ * immutable and stable. Use only outside an enclosing each() row render.
6286
+ * Default false preserves ordinary markup composition, including nested lists.
6287
+ */
6288
+ keyedRows?: boolean;
6149
6289
  /** The selected node's id. */
6150
6290
  selected?: string;
6151
6291
  /** Delegated action for choosing a row; the row's `data-item-id` names it. */
@@ -6170,7 +6310,7 @@ interface TreeListProps {
6170
6310
  * which is selected, and handles `action` and `toggleAction`. Wire keyboard
6171
6311
  * navigation with `wireTreeList`.
6172
6312
  */
6173
- declare function TreeList({ id, label, nodes, expanded, selected, action, toggleAction, density, className, rootAttributes, slot, }: TreeListProps): kerfjs.SafeHtml;
6313
+ declare function TreeList({ id, label, nodes, expanded, selected, action, toggleAction, density, keyedRows, className, rootAttributes, slot, }: TreeListProps): kerfjs.SafeHtml;
6174
6314
 
6175
6315
  export { TreeList, TreeListNode, type TreeListProps };
6176
6316
  ```
@@ -6224,10 +6364,14 @@ interface ColumnExplorerProps {
6224
6364
  preview?: SafeHtml;
6225
6365
  /** ColumnTrack's layout: `scroll` (default) or `paged` for a phone. */
6226
6366
  layout?: 'scroll' | 'paged';
6367
+ /** ColumnTrack inline clearance; none clips columns at the explorer edges. */
6368
+ inset?: 'default' | 'none';
6227
6369
  /** Each column's minimum width (ColumnTrack's default 250px). */
6228
6370
  minColumnWidth?: CssLength;
6229
6371
  /** How much of the next column a paged layout shows. */
6230
6372
  peek?: CssLength;
6373
+ /** Show a quiet parent heading in every column, starting with this root name. */
6374
+ rootHeading?: string;
6231
6375
  /** Row density: `default` or `compact`. */
6232
6376
  density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
6233
6377
  className?: string;
@@ -6242,7 +6386,7 @@ interface ColumnExplorerProps {
6242
6386
  * its children. The application owns the nodes and the chosen path and
6243
6387
  * handles `action`; wire the keyboard with `wireColumnExplorer`.
6244
6388
  */
6245
- declare function ColumnExplorer({ id, label, nodes, path, action, preview, layout, minColumnWidth, peek, density, className, rootAttributes, slot, }: ColumnExplorerProps): SafeHtml;
6389
+ declare function ColumnExplorer({ id, label, nodes, path, action, preview, layout, inset, minColumnWidth, peek, rootHeading, density, className, rootAttributes, slot, }: ColumnExplorerProps): SafeHtml;
6246
6390
 
6247
6391
  export { ColumnExplorer, type ColumnExplorerProps, type ExplorerColumn, explorerChosen, explorerColumns };
6248
6392
  ```
@@ -6475,6 +6619,8 @@ interface ColumnTrackProps {
6475
6619
  * in, and scrolling snaps to column starts.
6476
6620
  */
6477
6621
  layout?: ColumnTrackLayout;
6622
+ /** Inline edge clearance: default uses the layout margin; none clips columns at the track edges. */
6623
+ inset?: 'default' | 'none';
6478
6624
  /** Narrowest a `scroll` column gets before the track scrolls; default 250px. */
6479
6625
  minColumnWidth?: CssLength;
6480
6626
  /** How much of the next column a `paged` track shows; default 24px. */
@@ -6501,7 +6647,7 @@ interface ColumnTrackProps {
6501
6647
  * insets and vertical scrolling. Kerf owns the overflow, the paged snapping,
6502
6648
  * and reduced motion.
6503
6649
  */
6504
- declare function ColumnTrack({ children, layout, minColumnWidth, peek, ariaLabel, id, className, rootAttributes, slot, }: ColumnTrackProps): kerfjs.SafeHtml;
6650
+ declare function ColumnTrack({ children, layout, inset, minColumnWidth, peek, ariaLabel, id, className, rootAttributes, slot, }: ColumnTrackProps): kerfjs.SafeHtml;
6505
6651
 
6506
6652
  export { ColumnTrack, type ColumnTrackLayout, type ColumnTrackProps };
6507
6653
  ```
@@ -7547,11 +7693,17 @@ export { CheckboxGroup, type CheckboxGroupChoice, type CheckboxGroupName, type C
7547
7693
 
7548
7694
  ```ts
7549
7695
  import * as kerfjs from 'kerfjs';
7696
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
7550
7697
 
7551
7698
  /** `default` is a 20px circle beside 16px text; `compact` 18px and 14px. */
7552
7699
  type RadioGroupSize = 'default' | 'compact';
7553
7700
  /** `vertical` stacks the choices; `horizontal` lines them up and wraps. */
7554
7701
  type RadioGroupOrientation = 'vertical' | 'horizontal';
7702
+ /**
7703
+ * `list` draws a circle beside each label; `tiles` draws each choice as a
7704
+ * framed preview with its label underneath, in a wrapping grid (KF-C29WJ9).
7705
+ */
7706
+ type RadioGroupPresentation = 'list' | 'tiles';
7555
7707
  /** Application `data-*` metadata; the RadioGroup's own markers stay protected. */
7556
7708
  type RadioGroupRootAttributes = Readonly<Record<`data-${string}`, string | undefined>>;
7557
7709
  interface RadioGroupChoice<Value extends string = string> {
@@ -7561,6 +7713,12 @@ interface RadioGroupChoice<Value extends string = string> {
7561
7713
  /** Supporting text under this choice's label, also its description. */
7562
7714
  hint?: string;
7563
7715
  disabled?: boolean;
7716
+ /**
7717
+ * Decorative artwork for a `tiles` choice (a small SVG or image of what
7718
+ * choosing it looks like), framed above the label and hidden from
7719
+ * assistive technology: the label names the choice. Ignored by `list`.
7720
+ */
7721
+ preview?: KerfUiContent;
7564
7722
  }
7565
7723
  /** A group is named by a visible `label` (its legend) or by `ariaLabel`. */
7566
7724
  type RadioGroupName = {
@@ -7581,7 +7739,10 @@ interface RadioGroupOptions<Value extends string = string> {
7581
7739
  /** A validation message: shown in the danger color and marking it invalid. */
7582
7740
  error?: string;
7583
7741
  size?: RadioGroupSize;
7742
+ /** Ignored by `tiles`, whose grid always wraps. */
7584
7743
  orientation?: RadioGroupOrientation;
7744
+ /** `list` (default) or `tiles`, for choices best told apart by a preview. */
7745
+ presentation?: RadioGroupPresentation;
7585
7746
  /** Require a selection for native form validation. */
7586
7747
  required?: boolean;
7587
7748
  /** Disable the whole group. */
@@ -7604,10 +7765,12 @@ type RadioGroupProps<Value extends string = string> = RadioGroupName & RadioGrou
7604
7765
  * radios, each drawn as a Kerf circle beside its label, with the group label
7605
7766
  * above and hint and error text below. The browser owns the interaction: one
7606
7767
  * Tab stop, arrow keys move and select, and the checked value submits.
7768
+ * `presentation="tiles"` draws each choice as a framed preview tile with a
7769
+ * selected ring and check, for choices such as a color scheme.
7607
7770
  */
7608
- declare function RadioGroup<Value extends string>({ label, ariaLabel, name, choices, value, hint, error, size, orientation, required, disabled, action, form, id, className, rootAttributes, slot, }: RadioGroupProps<Value>): kerfjs.SafeHtml;
7771
+ declare function RadioGroup<Value extends string>({ label, ariaLabel, name, choices, value, hint, error, size, orientation, presentation, required, disabled, action, form, id, className, rootAttributes, slot, }: RadioGroupProps<Value>): kerfjs.SafeHtml;
7609
7772
 
7610
- export { RadioGroup, type RadioGroupChoice, type RadioGroupName, type RadioGroupOptions, type RadioGroupOrientation, type RadioGroupProps, type RadioGroupRootAttributes, type RadioGroupSize };
7773
+ export { RadioGroup, type RadioGroupChoice, type RadioGroupName, type RadioGroupOptions, type RadioGroupOrientation, type RadioGroupPresentation, type RadioGroupProps, type RadioGroupRootAttributes, type RadioGroupSize };
7611
7774
  ```
7612
7775
 
7613
7776
  ## `@kerfjs/ui/switch`