@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
package/dist/index.js CHANGED
@@ -10,15 +10,16 @@ export { SplitButton } from './chunk-CRHKWHTA.js';
10
10
  export { SunkenPanel } from './chunk-NA4LKVPX.js';
11
11
  export { ScrollEffect } from './chunk-7KN5OQVN.js';
12
12
  export { SizedRegion } from './chunk-ECVTRAXN.js';
13
- export { RadioGroup } from './chunk-MLDO7WLA.js';
14
- export { MessageComposer } from './chunk-SJEPM5ZU.js';
13
+ export { RadioGroup } from './chunk-MVWR5WRX.js';
14
+ export { MessageComposer } from './chunk-LETAE6SX.js';
15
15
  export { EdgeActivityIndicator } from './chunk-5KWXM5O7.js';
16
16
  export { EditorFrame } from './chunk-LTOTL5AS.js';
17
17
  export { wireSummaryRows } from './chunk-CKPI4WIN.js';
18
- export { reorderTabs, wireTabBars } from './chunk-3ZWYGGEC.js';
18
+ export { reorderTabs, wireTabBars } from './chunk-ASU4ODOH.js';
19
19
  export { wireTextFields } from './chunk-KC6WUSNS.js';
20
20
  export { wireResizableRegions } from './chunk-MMOQR426.js';
21
- export { wireSearchFields } from './chunk-IR32NI2O.js';
21
+ export { wireSearchFields } from './chunk-ALBFHXMZ.js';
22
+ export { wireComboboxes } from './chunk-GE2BQXB3.js';
22
23
 
23
24
  export { fileMatchesAccept, wireFilePickers } from './chunk-KK3S5OTW.js';
24
25
  export { wireForms } from './chunk-44AOBT2F.js';
@@ -27,7 +28,6 @@ export { reorderListItems, wireListReorder } from './chunk-MJ5RU6XT.js';
27
28
  export { wireScrollDividers } from './chunk-M64TAGZY.js';
28
29
  export { wireCheckboxes } from './chunk-DJWBXEF4.js';
29
30
  export { readChoiceChips, wireChoiceChips } from './chunk-DB64I3DB.js';
30
- export { wireComboboxes } from './chunk-GE2BQXB3.js';
31
31
  export { TextField } from './chunk-RGB4DPMN.js';
32
32
  export { ValueTable, ValueTableRow } from './chunk-WSPXSWFG.js';
33
33
  export { TabBarItem } from './chunk-Q7RILH2D.js';
@@ -42,8 +42,8 @@ export { applySelection, isApplePlatform, selectionGesture } from './chunk-GXSX6
42
42
  export { Grid } from './chunk-FR5G77K5.js';
43
43
 
44
44
  export { ListActionRow } from './chunk-RHMY45DK.js';
45
- export { DialogSurface, PinnablePopoverSurface, PopoverDialogSurface, PopupSurface, isPopoverPinned, pinPopover, wirePinnablePopover } from './chunk-IMXLOMTF.js';
46
- export { closeDialog, openDialog } from './chunk-UQ4FRQ6M.js';
45
+ export { DialogSurface, PinnablePopoverSurface, PopoverDialogSurface, PopupSurface, isPopoverPinned, pinPopover, wirePinnablePopover } from './chunk-76BLSFEA.js';
46
+ export { closeDialog, openDialog } from './chunk-R4JK2C6D.js';
47
47
 
48
48
  export { EmptyState } from './chunk-FNJA4S6J.js';
49
49
  export { FileDropZone, FilePickerTrigger } from './chunk-4L5ZIKDZ.js';
@@ -55,7 +55,7 @@ export { ContentSwap } from './chunk-EHR7R7YP.js';
55
55
  export { CornerStatus } from './chunk-CPTQABDQ.js';
56
56
  export { Chip } from './chunk-BCHK33XL.js';
57
57
  export { ChoiceChips } from './chunk-DV6GE57V.js';
58
- export { ColumnTrack } from './chunk-34FWYJX6.js';
58
+ export { ColumnTrack } from './chunk-ECJHCPBN.js';
59
59
  export { openAnchoredSurface, openAnchoredSurfaceAt } from './chunk-COMEWURO.js';
60
60
 
61
61
  export { BackdropImage } from './chunk-UPHPFKAD.js';
@@ -71,11 +71,8 @@ export { PopupMenu, closePopupMenu, openPopupMenu, openPopupMenuAt } from './chu
71
71
 
72
72
  export { ResizableRegion, clampRegionSize, resizeRegionFromPointer } from './chunk-6PHG2DMG.js';
73
73
  export { ToolbarText } from './chunk-JAC6AVZN.js';
74
- export { ListHeader } from './chunk-6T7AX365.js';
75
- export { FieldLabel, Text } from './chunk-F34LHBQI.js';
76
74
  export { FloatingToolbar } from './chunk-E7Q6UNCB.js';
77
- export { DisclosureArrow } from './chunk-RPJOLDSR.js';
78
- export { ToolbarActionLink, ToolbarButton, ToolbarControlGroup } from './chunk-5A2DN3LR.js';
75
+ export { ToolbarActionLink, ToolbarButton, ToolbarControlGroup } from './chunk-SGYBIKQA.js';
79
76
  export { Pane } from './chunk-KACJOE2N.js';
80
77
 
81
78
 
@@ -87,7 +84,10 @@ export { ListItem, ListItemLink } from './chunk-4UWLHKNU.js';
87
84
 
88
85
 
89
86
 
87
+ export { ListHeader } from './chunk-OSL4LQ7T.js';
88
+ export { FieldLabel, Text } from './chunk-F34LHBQI.js';
90
89
  export { Skeleton } from './chunk-VBXKYT4O.js';
90
+ export { DisclosureArrow } from './chunk-RPJOLDSR.js';
91
91
  export { List } from './chunk-WVQDIOD7.js';
92
92
 
93
93
 
@@ -5,7 +5,7 @@ import { SplitViewListWidth } from './split-view.js';
5
5
  import { n as DialogSurfaceSize, f as DialogSurfaceHeight, g as DialogSurfaceMaxHeight, l as DialogSurfaceRootAttributes } from './dialog-surface-controller-BeKZ3e8Z.js';
6
6
  export { D as DialogCloseSource, a as DialogRequestCloseDetail, o as closeDialog, p as openDialog } from './dialog-surface-controller-BeKZ3e8Z.js';
7
7
  import './extension-attributes-IJ4decoa.js';
8
- import './nav-stack-vQ3ieerq.js';
8
+ import './nav-stack-DKrvqFjA.js';
9
9
  import './list.js';
10
10
  import './flex-alignment-4ms8ZbV8.js';
11
11
  import './scroll-clearance-BikHljTc.js';
@@ -13,7 +13,7 @@ import './sides-BPSWde0A.js';
13
13
  import './pane.js';
14
14
  import './anchor-name-BZ1rpxaw.js';
15
15
  import './surface-tint-DQgYCaP9.js';
16
- import './panel-toolbar-vg6Ir5Dy.js';
16
+ import './panel-toolbar-CEcHHDkn.js';
17
17
  import './toolbar.js';
18
18
  import './lucide-icon.js';
19
19
  import 'lucide';
@@ -1,13 +1,13 @@
1
- import { SplitView } from './chunk-E2MTHHLS.js';
2
- import { DialogSurface } from './chunk-IMXLOMTF.js';
3
- export { closeDialog, openDialog } from './chunk-UQ4FRQ6M.js';
1
+ import { SplitView } from './chunk-2FA3SX57.js';
2
+ import { DialogSurface } from './chunk-76BLSFEA.js';
3
+ export { closeDialog, openDialog } from './chunk-R4JK2C6D.js';
4
4
 
5
5
 
6
6
 
7
7
 
8
8
  import { ToolbarText } from './chunk-JAC6AVZN.js';
9
9
 
10
- import { ToolbarControlGroup } from './chunk-5A2DN3LR.js';
10
+ import { ToolbarControlGroup } from './chunk-SGYBIKQA.js';
11
11
  import { Pane } from './chunk-KACJOE2N.js';
12
12
 
13
13
 
@@ -16,6 +16,7 @@ type ListHeaderRootAttributes = Readonly<Record<`data-${string}`, string | undef
16
16
  'data-wrap'?: never;
17
17
  'data-indicator-tone'?: never;
18
18
  'data-toggle'?: never;
19
+ 'data-leading-edge'?: never;
19
20
  }>;
20
21
  type ListHeaderTriggerAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
21
22
  'data-action'?: never;
@@ -41,6 +42,13 @@ interface ListHeaderBaseProps {
41
42
  * readable in a narrow column, such as a specimen or form-section heading.
42
43
  */
43
44
  wrap?: boolean;
45
+ /**
46
+ * Start the label on another component's leading-content edge (KF-J8GMA2).
47
+ * `summary-row` spans the full width as `SummaryRow`s do and starts the
48
+ * label where their leading content starts, compacting with them at the
49
+ * same width; for a fill-width header directly above summary rows.
50
+ */
51
+ leadingEdge?: 'default' | 'summary-row';
44
52
  indicatorTone?: 'neutral' | 'accent' | 'pop' | 'danger';
45
53
  /** Render as an unanimated loading skeleton: keep the label and action affordance, disable interaction. */
46
54
  placeholder?: boolean;
@@ -54,7 +62,41 @@ interface ListHeaderBaseProps {
54
62
  /** Native named-slot assignment when composed inside a web component. */
55
63
  slot?: string;
56
64
  }
57
- type ListHeaderModeProps = {
65
+ /**
66
+ * A toggle header's one trailing overflow button (KF-X2MRCT): its own focus
67
+ * stop at the logical end, outside the disclosure button, opening the
68
+ * section's commands. The label and arrow toggle the section; the overflow
69
+ * button never does.
70
+ */
71
+ type ListHeaderOverflowProps = {
72
+ /** The overflow button's `data-action`. */
73
+ overflowAction: string;
74
+ /** Its accessible name and tooltip ("Group actions"). */
75
+ overflowLabel: string;
76
+ /** Its icon, typically an `Ellipsis` `LucideIcon`. */
77
+ overflowIcon: SafeHtml;
78
+ overflowDisabled?: boolean;
79
+ /**
80
+ * Popup metadata for the overflow button (`popoverTarget`,
81
+ * `aria-haspopup`, `aria-controls`, `data-*`).
82
+ */
83
+ overflowTriggerAttributes?: ListHeaderTriggerAttributes;
84
+ } | {
85
+ overflowAction?: never;
86
+ overflowLabel?: never;
87
+ overflowIcon?: never;
88
+ overflowDisabled?: never;
89
+ overflowTriggerAttributes?: never;
90
+ };
91
+ /** The non-toggle modes take no overflow button. */
92
+ type ListHeaderNoOverflow = {
93
+ overflowAction?: never;
94
+ overflowLabel?: never;
95
+ overflowIcon?: never;
96
+ overflowDisabled?: never;
97
+ overflowTriggerAttributes?: never;
98
+ };
99
+ type ListHeaderModeProps = ({
58
100
  /** Render the title as a controlled disclosure trigger. */
59
101
  toggle: true;
60
102
  /** A toggle's label is its button text, not a heading. */
@@ -65,7 +107,7 @@ type ListHeaderModeProps = {
65
107
  actionLabel?: never;
66
108
  actionDisabled?: boolean;
67
109
  disabledReason?: string;
68
- } | {
110
+ } & ListHeaderOverflowProps) | ({
69
111
  /** Render a separately named trailing action. */
70
112
  toggle?: false;
71
113
  /**
@@ -79,7 +121,7 @@ type ListHeaderModeProps = {
79
121
  expanded?: never;
80
122
  actionDisabled?: boolean;
81
123
  disabledReason?: string;
82
- } | {
124
+ } & ListHeaderNoOverflow) | ({
83
125
  /** Render a passive section heading. */
84
126
  toggle?: false;
85
127
  /**
@@ -93,7 +135,7 @@ type ListHeaderModeProps = {
93
135
  expanded?: never;
94
136
  actionDisabled?: never;
95
137
  disabledReason?: never;
96
- };
138
+ } & ListHeaderNoOverflow);
97
139
  type ListHeaderIndicatorProps = {
98
140
  count: number;
99
141
  countLabel: string;
@@ -108,6 +150,6 @@ type ListHeaderIndicatorProps = {
108
150
  status?: string | SafeHtml | undefined;
109
151
  };
110
152
  type ListHeaderProps = ListHeaderBaseProps & ListHeaderIndicatorProps & ListHeaderModeProps;
111
- 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;
153
+ 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;
112
154
 
113
155
  export { ListHeader, type ListHeaderProps };
@@ -1,4 +1,4 @@
1
- export { ListHeader } from './chunk-6T7AX365.js';
1
+ export { ListHeader } from './chunk-OSL4LQ7T.js';
2
2
 
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- export { MessageComposer } from './chunk-SJEPM5ZU.js';
1
+ export { MessageComposer } from './chunk-LETAE6SX.js';
2
2
 
3
3
 
4
4
 
@@ -2,7 +2,7 @@ import * as kerfjs from 'kerfjs';
2
2
  import { ListConfig } from './list.js';
3
3
  import { PaneConfig, ScrollEdge } from './pane.js';
4
4
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
5
- import { c as PanelBottomToolbar } from './panel-toolbar-vg6Ir5Dy.js';
5
+ import { c as PanelBottomToolbar } from './panel-toolbar-CEcHHDkn.js';
6
6
  import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
7
7
  import { CssColor } from './css-values.js';
8
8
  import { S as SurfaceTint, a as SurfaceTintScheme } from './surface-tint-DQgYCaP9.js';
@@ -1,4 +1,4 @@
1
- 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';
1
+ 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';
2
2
  import 'kerfjs';
3
3
  import './list.js';
4
4
  import './semantic-content-BbzjvSu9.js';
@@ -10,7 +10,7 @@ import './css-values.js';
10
10
  import './pane.js';
11
11
  import './anchor-name-BZ1rpxaw.js';
12
12
  import './surface-tint-DQgYCaP9.js';
13
- import './panel-toolbar-vg6Ir5Dy.js';
13
+ import './panel-toolbar-CEcHHDkn.js';
14
14
  import './toolbar.js';
15
15
  import './lucide-icon.js';
16
16
  import 'lucide';
package/dist/nav-stack.js CHANGED
@@ -1,4 +1,4 @@
1
- export { NavStack } from './chunk-K3C35KGR.js';
1
+ export { NavStack } from './chunk-XO5IOPM5.js';
2
2
 
3
3
 
4
4
 
@@ -33,6 +33,14 @@ interface PanelToggle {
33
33
  showLabel?: string;
34
34
  /** Accessible label while the panel is open. Defaults to `Hide {name}`. */
35
35
  hideLabel?: string;
36
+ /**
37
+ * Visible text the toggle shows beside its icon while the panel is open
38
+ * and presents as an overlay ("Preview"), naming where closing it returns.
39
+ * It is then also the toggle's accessible name. Inline, or without it, the
40
+ * toggle stays icon-only. A Workbench panel learns its presentation from
41
+ * the `overlay` signal `wireWorkbench` writes (the panel's `overlaid`).
42
+ */
43
+ overlayLabel?: string;
36
44
  }
37
45
  /**
38
46
  * A collapsible panel's top toolbar, composed so its groups follow the
@@ -1,9 +1,15 @@
1
1
  import * as kerfjs from 'kerfjs';
2
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2
3
 
3
4
  /** `default` is a 20px circle beside 16px text; `compact` 18px and 14px. */
4
5
  type RadioGroupSize = 'default' | 'compact';
5
6
  /** `vertical` stacks the choices; `horizontal` lines them up and wraps. */
6
7
  type RadioGroupOrientation = 'vertical' | 'horizontal';
8
+ /**
9
+ * `list` draws a circle beside each label; `tiles` draws each choice as a
10
+ * framed preview with its label underneath, in a wrapping grid (KF-C29WJ9).
11
+ */
12
+ type RadioGroupPresentation = 'list' | 'tiles';
7
13
  /** Application `data-*` metadata; the RadioGroup's own markers stay protected. */
8
14
  type RadioGroupRootAttributes = Readonly<Record<`data-${string}`, string | undefined>>;
9
15
  interface RadioGroupChoice<Value extends string = string> {
@@ -13,6 +19,12 @@ interface RadioGroupChoice<Value extends string = string> {
13
19
  /** Supporting text under this choice's label, also its description. */
14
20
  hint?: string;
15
21
  disabled?: boolean;
22
+ /**
23
+ * Decorative artwork for a `tiles` choice (a small SVG or image of what
24
+ * choosing it looks like), framed above the label and hidden from
25
+ * assistive technology: the label names the choice. Ignored by `list`.
26
+ */
27
+ preview?: KerfUiContent;
16
28
  }
17
29
  /** A group is named by a visible `label` (its legend) or by `ariaLabel`. */
18
30
  type RadioGroupName = {
@@ -33,7 +45,10 @@ interface RadioGroupOptions<Value extends string = string> {
33
45
  /** A validation message: shown in the danger color and marking it invalid. */
34
46
  error?: string;
35
47
  size?: RadioGroupSize;
48
+ /** Ignored by `tiles`, whose grid always wraps. */
36
49
  orientation?: RadioGroupOrientation;
50
+ /** `list` (default) or `tiles`, for choices best told apart by a preview. */
51
+ presentation?: RadioGroupPresentation;
37
52
  /** Require a selection for native form validation. */
38
53
  required?: boolean;
39
54
  /** Disable the whole group. */
@@ -56,7 +71,9 @@ type RadioGroupProps<Value extends string = string> = RadioGroupName & RadioGrou
56
71
  * radios, each drawn as a Kerf circle beside its label, with the group label
57
72
  * above and hint and error text below. The browser owns the interaction: one
58
73
  * Tab stop, arrow keys move and select, and the checked value submits.
74
+ * `presentation="tiles"` draws each choice as a framed preview tile with a
75
+ * selected ring and check, for choices such as a color scheme.
59
76
  */
60
- 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;
77
+ 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;
61
78
 
62
- export { RadioGroup, type RadioGroupChoice, type RadioGroupName, type RadioGroupOptions, type RadioGroupOrientation, type RadioGroupProps, type RadioGroupRootAttributes, type RadioGroupSize };
79
+ export { RadioGroup, type RadioGroupChoice, type RadioGroupName, type RadioGroupOptions, type RadioGroupOrientation, type RadioGroupPresentation, type RadioGroupProps, type RadioGroupRootAttributes, type RadioGroupSize };
@@ -1,4 +1,6 @@
1
- export { RadioGroup } from './chunk-MLDO7WLA.js';
1
+ export { RadioGroup } from './chunk-MVWR5WRX.js';
2
+
3
+
2
4
 
3
5
 
4
6
  //# sourceMappingURL=radio-group.js.map
@@ -1,7 +1,7 @@
1
1
  import * as kerfjs from 'kerfjs';
2
2
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
3
3
  import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
4
- import { N as NavStackProps, a as NavStackView } from './nav-stack-vQ3ieerq.js';
4
+ import { N as NavStackProps, a as NavStackView } from './nav-stack-DKrvqFjA.js';
5
5
  import { ResizableRegionProps } from './resizable-region.js';
6
6
  import './list.js';
7
7
  import './flex-alignment-4ms8ZbV8.js';
@@ -11,7 +11,7 @@ import './css-values.js';
11
11
  import './pane.js';
12
12
  import './anchor-name-BZ1rpxaw.js';
13
13
  import './surface-tint-DQgYCaP9.js';
14
- import './panel-toolbar-vg6Ir5Dy.js';
14
+ import './panel-toolbar-CEcHHDkn.js';
15
15
  import './toolbar.js';
16
16
  import './lucide-icon.js';
17
17
  import 'lucide';
@@ -1,4 +1,4 @@
1
- export { SplitView } from './chunk-E2MTHHLS.js';
1
+ export { SplitView } from './chunk-2FA3SX57.js';
2
2
 
3
3
 
4
4
 
@@ -1,12 +1,13 @@
1
1
  /* The track is the sideways scroll owner and fills its parent's height; the
2
2
  columns sit flush in one row and own their insets and vertical scrolling. */
3
3
  .kui-column-track {
4
+ --_kui-column-track-inset: var(--kui-layout-inline-margin, 0.5rem);
4
5
  --_kui-column-track-min-width: 15.625rem;
5
6
  --_kui-column-track-peek: 1.5rem;
6
7
  width: 100%;
7
8
  height: 100%;
8
9
  min-height: 0;
9
- padding-inline: var(--kui-layout-inline-margin, 0.5rem);
10
+ padding-inline: var(--_kui-column-track-inset);
10
11
  overflow-x: auto;
11
12
  overflow-y: hidden;
12
13
  box-sizing: border-box;
@@ -31,7 +32,7 @@
31
32
  .kui-column-track[data-layout="paged"] {
32
33
  container-type: inline-size;
33
34
  scroll-behavior: smooth;
34
- scroll-padding-inline: var(--kui-layout-inline-margin, 0.5rem);
35
+ scroll-padding-inline: var(--_kui-column-track-inset);
35
36
  scroll-snap-type: x mandatory;
36
37
  scrollbar-width: none;
37
38
  }
@@ -55,3 +56,7 @@
55
56
  scroll-behavior: auto;
56
57
  }
57
58
  }
59
+
60
+ .kui-column-track[data-inset="none"] {
61
+ --_kui-column-track-inset: 0px;
62
+ }
@@ -125,11 +125,18 @@
125
125
  }
126
126
  }
127
127
 
128
- /* An expanded trailing control owns the compact row when sibling groups opt
129
- into yielding. Scoping to the trailing zone keeps independent center and
130
- leading controls visible, and the siblings return when it closes. */
128
+ /* An expanded control owns the compact row when groups opt into yielding.
129
+ An opted-in group yields to an expanded group in any zone of the same
130
+ Toolbar, so a group a collapsed Workbench panel relocated into the leading
131
+ zone gives way to the work area's expanded trailing search (KF-ZX9Q0X).
132
+ Groups that do not opt in stay visible, and the yielding groups return when
133
+ it closes. */
131
134
  @container kui-toolbar (max-width: 30rem) {
132
- .kui-toolbar__trailing:has(> .kui-toolbar-control-group[data-expanded="true"])
135
+ .kui-toolbar:has(
136
+ > :is(.kui-toolbar__leading, .kui-toolbar__center, .kui-toolbar__trailing)
137
+ > .kui-toolbar-control-group[data-expanded="true"]
138
+ )
139
+ > :is(.kui-toolbar__leading, .kui-toolbar__center, .kui-toolbar__trailing)
133
140
  > .kui-toolbar-control-group[data-visibility="yield-to-expanded-sibling"]:not(
134
141
  [data-expanded="true"]
135
142
  ) {
@@ -220,3 +220,53 @@
220
220
  height: var(--_kui-list-header-action-icon-size);
221
221
  min-block-size: 0;
222
222
  }
223
+
224
+ /* KF-J8GMA2: a header above summary rows starts its label on their
225
+ leading-content edge (the row's 1px border plus its body's inline
226
+ padding). It spans the full width as a SummaryRow does, so it measures the
227
+ width the rows compact at, and its title's 1px border matches the row's.
228
+ A toggle's label sits directly on its padding; a heading's label sits
229
+ inside the heading text's own item padding, which the title's padding
230
+ gives back. The tokens and the 384px compaction are summary-row.css's (a
231
+ test keeps the two in step). */
232
+ .kui-list-header[data-leading-edge="summary-row"]:not(
233
+ [data-inline="true"],
234
+ [data-width="content"]
235
+ ) {
236
+ --_kui-list-header-leading-edge: var(--kui-space-s);
237
+ width: 100%;
238
+ margin-inline: 0;
239
+ container-type: inline-size;
240
+ }
241
+
242
+ .kui-list-header[data-leading-edge="summary-row"]:not(
243
+ [data-inline="true"],
244
+ [data-width="content"]
245
+ )
246
+ > .kui-list-header__toggle {
247
+ padding-inline: var(--_kui-list-header-leading-edge);
248
+ }
249
+
250
+ .kui-list-header[data-leading-edge="summary-row"]:not(
251
+ [data-inline="true"],
252
+ [data-width="content"]
253
+ )
254
+ > div.kui-list-header__title {
255
+ padding-inline-start: max(
256
+ 0px,
257
+ calc(
258
+ var(--_kui-list-header-leading-edge) -
259
+ var(--kui-layout-item-padding, 0.5rem)
260
+ )
261
+ );
262
+ }
263
+
264
+ @container (max-width: 24rem) {
265
+ .kui-list-header[data-leading-edge="summary-row"]:not(
266
+ [data-inline="true"],
267
+ [data-width="content"]
268
+ )
269
+ > .kui-list-header__title {
270
+ --_kui-list-header-leading-edge: var(--kui-space-xs);
271
+ }
272
+ }
@@ -88,7 +88,12 @@
88
88
  border-start-end-radius: 0;
89
89
  }
90
90
 
91
- .kui-list-item:has(+ :is([data-divider="before"], [data-divider="both"])) {
91
+ /* Internal TreeList rows never carry dividers. Exclude them before :has so
92
+ sibling insertion/removal does not invalidate divider matching across a
93
+ large tree. Public ListItem rows keep their custom-role divider behavior. */
94
+ .kui-list-item:not([data-kui-tree-row]):has(
95
+ + :is([data-divider="before"], [data-divider="both"])
96
+ ) {
92
97
  border-end-start-radius: 0;
93
98
  border-end-end-radius: 0;
94
99
  }
@@ -1,7 +1,8 @@
1
1
  /* A TreeList is a column of ListItem treeitem rows; the rows own their
2
2
  geometry, indent, and disclosure arrows. */
3
3
  .kui-tree-list {
4
- display: flex;
4
+ /* Rows already own their widths and natural heights. Normal block flow
5
+ avoids re-running flex layout across every row for a keyed branch change. */
6
+ display: block;
5
7
  min-width: 0;
6
- flex-direction: column;
7
8
  }
@@ -145,6 +145,102 @@
145
145
  .kui-radio-group__hint + .kui-radio-group__error {
146
146
  margin-block-start: 0;
147
147
  }
148
+ /* Tiles (KF-C29WJ9): each choice is a framed preview above its label, in a
149
+ row that wraps whole tiles.
150
+ The native radio covers the whole tile, so a press anywhere on it selects
151
+ and the browser keeps one Tab stop with arrow-key selection. Selection is
152
+ a brand ring around the frame plus a check badge, never color alone. */
153
+ .kui-radio-group[data-presentation="tiles"] .kui-radio-group__choices {
154
+ display: flex;
155
+ flex-flow: row wrap;
156
+ gap: var(--kui-space-m, 1rem);
157
+ }
158
+ /* A definite tile width keeps the group's intrinsic width a row of whole
159
+ tiles, so it lines them up wherever it is shrink-wrapped and wraps them
160
+ when its container is narrower (three fit a phone-width column); the cap
161
+ keeps one tile inside a container narrower than a tile. */
162
+ .kui-radio-group[data-presentation="tiles"] .kui-radio-group__choice {
163
+ width: 6.5rem;
164
+ max-width: 100%;
165
+ }
166
+ .kui-radio-group__tile {
167
+ position: relative;
168
+ display: flex;
169
+ min-width: 0;
170
+ flex-direction: column;
171
+ gap: var(--kui-space-xs, 0.5rem);
172
+ color: var(--kui-color-text);
173
+ cursor: pointer;
174
+ }
175
+ .kui-radio-group__tile > .kui-radio-group__input {
176
+ z-index: 1;
177
+ }
178
+ .kui-radio-group__preview {
179
+ position: relative;
180
+ display: block;
181
+ overflow: hidden;
182
+ box-sizing: border-box;
183
+ aspect-ratio: 4 / 3;
184
+ border: 1px solid var(--kui-color-neutral-border-normal);
185
+ border-radius: var(--kui-radius-m, 0.5rem);
186
+ background-color: var(--kui-color-neutral-fill-quiet);
187
+ }
188
+ /* The app's decorative artwork fills the frame. */
189
+ .kui-radio-group__preview > :is(svg, img, picture) {
190
+ display: block;
191
+ width: 100%;
192
+ height: 100%;
193
+ object-fit: cover;
194
+ }
195
+ .kui-radio-group__input:checked + .kui-radio-group__preview {
196
+ border-color: var(--kui-color-brand-fill-loud);
197
+ box-shadow: 0 0 0 1px var(--kui-color-brand-fill-loud);
198
+ }
199
+ .kui-radio-group__input:focus-visible + .kui-radio-group__preview {
200
+ outline: var(--kui-focus-ring);
201
+ outline-offset: 2px;
202
+ }
203
+ .kui-radio-group[data-invalid] .kui-radio-group__preview {
204
+ border-color: var(--kui-color-danger-border-loud);
205
+ }
206
+ .kui-radio-group__check {
207
+ position: absolute;
208
+ inset-block-start: 0.375rem;
209
+ inset-inline-end: 0.375rem;
210
+ display: none;
211
+ box-sizing: border-box;
212
+ width: 1.25rem;
213
+ height: 1.25rem;
214
+ align-items: center;
215
+ justify-content: center;
216
+ border-radius: var(--kui-radius-circle, 50%);
217
+ background-color: var(--kui-color-brand-fill-loud);
218
+ color: var(--kui-color-brand-on-loud);
219
+ }
220
+ .kui-radio-group__check > [data-lucide] {
221
+ width: 0.875rem;
222
+ height: 0.875rem;
223
+ stroke-width: 3;
224
+ }
225
+ .kui-radio-group__input:checked
226
+ + .kui-radio-group__preview
227
+ > .kui-radio-group__check {
228
+ display: inline-flex;
229
+ }
230
+ .kui-radio-group__tile > .kui-radio-group__choice-label {
231
+ padding-block-start: 0;
232
+ text-align: center;
233
+ }
234
+ .kui-radio-group__tile > .kui-radio-group__choice-hint {
235
+ margin-block-start: calc(var(--kui-space-2xs) - var(--kui-space-xs));
236
+ padding-inline-start: 0;
237
+ text-align: center;
238
+ }
239
+ .kui-radio-group__choice:has(.kui-radio-group__input:disabled)
240
+ .kui-radio-group__tile {
241
+ cursor: not-allowed;
242
+ opacity: 0.5;
243
+ }
148
244
  @media (forced-colors: active) {
149
245
  .kui-radio-group__circle {
150
246
  border-color: CanvasText;
@@ -155,4 +251,15 @@
155
251
  .kui-radio-group__input:checked + .kui-radio-group__circle::after {
156
252
  background-color: Highlight;
157
253
  }
254
+ .kui-radio-group__preview {
255
+ border-color: CanvasText;
256
+ }
257
+ .kui-radio-group__input:checked + .kui-radio-group__preview {
258
+ border-color: Highlight;
259
+ box-shadow: 0 0 0 1px Highlight;
260
+ }
261
+ .kui-radio-group__check {
262
+ background-color: Highlight;
263
+ color: HighlightText;
264
+ }
158
265
  }
@@ -1,12 +1,13 @@
1
1
  /* The track is the sideways scroll owner and fills its parent's height; the
2
2
  columns sit flush in one row and own their insets and vertical scrolling. */
3
3
  .kui-column-track {
4
+ --_kui-column-track-inset: var(--kui-layout-inline-margin, 0.5rem);
4
5
  --_kui-column-track-min-width: 15.625rem;
5
6
  --_kui-column-track-peek: 1.5rem;
6
7
  width: 100%;
7
8
  height: 100%;
8
9
  min-height: 0;
9
- padding-inline: var(--kui-layout-inline-margin, 0.5rem);
10
+ padding-inline: var(--_kui-column-track-inset);
10
11
  overflow-x: auto;
11
12
  overflow-y: hidden;
12
13
  box-sizing: border-box;
@@ -31,7 +32,7 @@
31
32
  .kui-column-track[data-layout="paged"] {
32
33
  container-type: inline-size;
33
34
  scroll-behavior: smooth;
34
- scroll-padding-inline: var(--kui-layout-inline-margin, 0.5rem);
35
+ scroll-padding-inline: var(--_kui-column-track-inset);
35
36
  scroll-snap-type: x mandatory;
36
37
  scrollbar-width: none;
37
38
  }
@@ -55,3 +56,7 @@
55
56
  scroll-behavior: auto;
56
57
  }
57
58
  }
59
+
60
+ .kui-column-track[data-inset="none"] {
61
+ --_kui-column-track-inset: 0px;
62
+ }