@kerfjs/ui 5.0.0-beta.125 → 5.0.0-beta.126

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 (287) hide show
  1. package/README.md +5 -0
  2. package/ai/application-ui-diagnostic-ids-v1.json +1 -0
  3. package/ai/component-catalog.json +77 -6
  4. package/ai/component-catalog.schema.json +14 -1
  5. package/ai/component-composition.json +27 -6
  6. package/ai/component-props.json +245 -40
  7. package/ai/components/combobox.md +1 -1
  8. package/ai/components/surface-scaffold.md +19 -5
  9. package/ai/components/tab-bar.md +2 -0
  10. package/ai/components/toolbar.md +1 -0
  11. package/ai/public-api-signatures-v1.md +246 -295
  12. package/ai/skill.md +10 -4
  13. package/ai/view-document.schema.json +55 -2
  14. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  15. package/analyzer/cli.mjs +60 -24
  16. package/analyzer/index.mjs +331 -58
  17. package/catalog-projection-cli.mjs +86 -50
  18. package/dist/anchored-surface.js +2 -1
  19. package/dist/browser/editor.js +11 -8
  20. package/dist/catalog-resources.d.ts +1 -1
  21. package/dist/catalog.d.ts +1 -1
  22. package/dist/catalog.js +6 -6
  23. package/dist/{chunk-VX3YF2UD.js → chunk-3K5V3ZSD.js} +3 -3
  24. package/dist/{chunk-VX3YF2UD.js.map → chunk-3K5V3ZSD.js.map} +1 -1
  25. package/dist/chunk-3SCGTP5O.js +682 -0
  26. package/dist/chunk-3SCGTP5O.js.map +1 -0
  27. package/dist/{chunk-NHQOX7T4.js → chunk-3ZKUXWAV.js} +4 -4
  28. package/dist/chunk-3ZKUXWAV.js.map +1 -0
  29. package/dist/{chunk-ADMWT7FX.js → chunk-3ZWYGGEC.js} +136 -8
  30. package/dist/chunk-3ZWYGGEC.js.map +1 -0
  31. package/dist/{chunk-KLR3DCHH.js → chunk-4L5ZIKDZ.js} +1 -1
  32. package/dist/chunk-4L5ZIKDZ.js.map +1 -0
  33. package/dist/{chunk-2E7S5C4D.js → chunk-4UWLHKNU.js} +5 -5
  34. package/dist/chunk-4UWLHKNU.js.map +1 -0
  35. package/dist/{chunk-EXGDKG7B.js → chunk-5A2DN3LR.js} +5 -5
  36. package/dist/chunk-5A2DN3LR.js.map +1 -0
  37. package/dist/{chunk-DJ65XFVN.js → chunk-63TJH2RF.js} +4 -4
  38. package/dist/chunk-63TJH2RF.js.map +1 -0
  39. package/dist/{chunk-Q2CLQ3IJ.js → chunk-6PHG2DMG.js} +1 -1
  40. package/dist/chunk-6PHG2DMG.js.map +1 -0
  41. package/dist/{chunk-SPI6VMIY.js → chunk-6T7AX365.js} +4 -4
  42. package/dist/chunk-6T7AX365.js.map +1 -0
  43. package/dist/{chunk-GVII4JSD.js → chunk-6V6UHPJD.js} +4 -4
  44. package/dist/chunk-6V6UHPJD.js.map +1 -0
  45. package/dist/{chunk-2LM3PYHA.js → chunk-C2TY5DJC.js} +11 -8
  46. package/dist/chunk-C2TY5DJC.js.map +1 -0
  47. package/dist/{chunk-3WYREXW4.js → chunk-COMEWURO.js} +8 -6
  48. package/dist/chunk-COMEWURO.js.map +1 -0
  49. package/dist/{chunk-VPDSPD76.js → chunk-DB64I3DB.js} +4 -3
  50. package/dist/chunk-DB64I3DB.js.map +1 -0
  51. package/dist/{chunk-SBCXWGNP.js → chunk-DBCDYBZP.js} +2 -2
  52. package/dist/{chunk-SBCXWGNP.js.map → chunk-DBCDYBZP.js.map} +1 -1
  53. package/dist/{chunk-CNM6ZWP2.js → chunk-DJWBXEF4.js} +4 -2
  54. package/dist/chunk-DJWBXEF4.js.map +1 -0
  55. package/dist/{chunk-SVUJIVMR.js → chunk-E2MTHHLS.js} +3 -3
  56. package/dist/{chunk-SVUJIVMR.js.map → chunk-E2MTHHLS.js.map} +1 -1
  57. package/dist/{chunk-JG4ONAOI.js → chunk-EI55KWHP.js} +2 -2
  58. package/dist/chunk-EI55KWHP.js.map +1 -0
  59. package/dist/{chunk-MVKHSAKE.js → chunk-GE2BQXB3.js} +41 -4
  60. package/dist/chunk-GE2BQXB3.js.map +1 -0
  61. package/dist/{chunk-KELWWCMX.js → chunk-I2K4OQKB.js} +4 -4
  62. package/dist/chunk-I2K4OQKB.js.map +1 -0
  63. package/dist/chunk-IFDTSVE6.js +9 -0
  64. package/dist/chunk-IFDTSVE6.js.map +1 -0
  65. package/dist/{chunk-TPLVC5BE.js → chunk-IR32NI2O.js} +336 -247
  66. package/dist/chunk-IR32NI2O.js.map +1 -0
  67. package/dist/{chunk-ZKKO4MHC.js → chunk-JYKP7TBZ.js} +4 -2
  68. package/dist/chunk-JYKP7TBZ.js.map +1 -0
  69. package/dist/{chunk-6OT7FOSA.js → chunk-K3C35KGR.js} +4 -4
  70. package/dist/chunk-K3C35KGR.js.map +1 -0
  71. package/dist/{chunk-4RECPEHI.js → chunk-KBS3GP6S.js} +4 -3
  72. package/dist/chunk-KBS3GP6S.js.map +1 -0
  73. package/dist/{chunk-YHRJNKD5.js → chunk-KS7EXW4P.js} +6 -4
  74. package/dist/chunk-KS7EXW4P.js.map +1 -0
  75. package/dist/{chunk-V6N3YLTM.js → chunk-LTOTL5AS.js} +3 -3
  76. package/dist/chunk-LTOTL5AS.js.map +1 -0
  77. package/dist/chunk-M64TAGZY.js +590 -0
  78. package/dist/chunk-M64TAGZY.js.map +1 -0
  79. package/dist/{chunk-JZZVWTUB.js → chunk-MMOQR426.js} +2 -2
  80. package/dist/chunk-MMOQR426.js.map +1 -0
  81. package/dist/{chunk-SJBMKA4X.js → chunk-OHT2AXER.js} +11 -10
  82. package/dist/chunk-OHT2AXER.js.map +1 -0
  83. package/dist/{chunk-TTFW6E6C.js → chunk-OZKBIPXU.js} +2 -2
  84. package/dist/chunk-OZKBIPXU.js.map +1 -0
  85. package/dist/{chunk-Q2SLOMN6.js → chunk-RHMY45DK.js} +4 -4
  86. package/dist/chunk-RHMY45DK.js.map +1 -0
  87. package/dist/{chunk-BZXA5SSA.js → chunk-S7QB5KMM.js} +2 -2
  88. package/dist/{chunk-BZXA5SSA.js.map → chunk-S7QB5KMM.js.map} +1 -1
  89. package/dist/{chunk-HDXUHLTQ.js → chunk-SHECA2N4.js} +8 -2
  90. package/dist/chunk-SHECA2N4.js.map +1 -0
  91. package/dist/{chunk-R6FIXYAE.js → chunk-SJEPM5ZU.js} +2 -2
  92. package/dist/{chunk-R6FIXYAE.js.map → chunk-SJEPM5ZU.js.map} +1 -1
  93. package/dist/{chunk-FJMABKKV.js → chunk-UQ4FRQ6M.js} +35 -17
  94. package/dist/chunk-UQ4FRQ6M.js.map +1 -0
  95. package/dist/{chunk-S4ZGTDSG.js → chunk-UU37OR3D.js} +2 -2
  96. package/dist/chunk-UU37OR3D.js.map +1 -0
  97. package/dist/{chunk-SWXWLSUD.js → chunk-WEQNPYVA.js} +1 -1
  98. package/dist/{chunk-SWXWLSUD.js.map → chunk-WEQNPYVA.js.map} +1 -1
  99. package/dist/{chunk-5SFHBYEY.js → chunk-WUVHP3UC.js} +97 -24
  100. package/dist/chunk-WUVHP3UC.js.map +1 -0
  101. package/dist/{chunk-3S3WXAZ5.js → chunk-X43QQWVC.js} +3 -2
  102. package/dist/chunk-X43QQWVC.js.map +1 -0
  103. package/dist/{chunk-Z3T24FX3.js → chunk-YE6KCAIN.js} +3 -2
  104. package/dist/chunk-YE6KCAIN.js.map +1 -0
  105. package/dist/{chunk-BCO673YW.js → chunk-Z3BT2SZE.js} +3 -3
  106. package/dist/chunk-Z3BT2SZE.js.map +1 -0
  107. package/dist/{chunk-KQZIC5CA.js → chunk-ZC4KSRAF.js} +7 -7
  108. package/dist/chunk-ZC4KSRAF.js.map +1 -0
  109. package/dist/collapsible-panel.d.ts +2 -2
  110. package/dist/collapsible-panel.js +2 -2
  111. package/dist/collapsible-panel.js.map +1 -1
  112. package/dist/column-explorer.d.ts +2 -2
  113. package/dist/column-explorer.js +2 -2
  114. package/dist/column-explorer.js.map +1 -1
  115. package/dist/dialog-surface-controller-BeKZ3e8Z.d.ts +251 -0
  116. package/dist/editor-frame.d.ts +1 -1
  117. package/dist/editor-frame.js +1 -1
  118. package/dist/editor.d.ts +38 -20
  119. package/dist/editor.js +10855 -6979
  120. package/dist/editor.js.map +1 -1
  121. package/dist/file-picker.js +1 -1
  122. package/dist/help-tags-register.js +2 -1
  123. package/dist/help-tags-register.js.map +1 -1
  124. package/dist/index.d.ts +2 -1
  125. package/dist/index.js +24 -23
  126. package/dist/list-action-row.d.ts +1 -1
  127. package/dist/list-action-row.js +1 -1
  128. package/dist/list-detail-dialog.d.ts +7 -7
  129. package/dist/list-detail-dialog.js +6 -5
  130. package/dist/list-detail-dialog.js.map +1 -1
  131. package/dist/list-header.d.ts +1 -1
  132. package/dist/list-header.js +1 -1
  133. package/dist/list-item.d.ts +1 -1
  134. package/dist/list-item.js +1 -1
  135. package/dist/message-composer.js +1 -1
  136. package/dist/nav-stack.d.ts +6 -6
  137. package/dist/nav-stack.js +1 -1
  138. package/dist/popup-menu-register.js +1 -7
  139. package/dist/popup-menu-register.js.map +1 -1
  140. package/dist/popup-menu.d.ts +2 -2
  141. package/dist/popup-menu.js +1 -1
  142. package/dist/resizable-region.js +1 -1
  143. package/dist/segmented-control.d.ts +1 -1
  144. package/dist/segmented-control.js +1 -1
  145. package/dist/select-register.js +17 -23
  146. package/dist/select-register.js.map +1 -1
  147. package/dist/split-view.d.ts +6 -6
  148. package/dist/split-view.js +1 -1
  149. package/dist/styles/collapsible-panel.css +34 -25
  150. package/dist/styles/components/actions/popup-menu/popup-menu.css +4 -4
  151. package/dist/styles/components/actions/toolbar/toolbar.css +34 -1
  152. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +1 -1
  153. package/dist/styles/components/forms/segmented-control/segmented-control.css +1 -1
  154. package/dist/styles/components/layout/collapsible-panel/collapsible-panel.css +34 -25
  155. package/dist/styles/components/layout/split-view/split-view.css +19 -33
  156. package/dist/styles/components/navigation/nav-stack/nav-stack.css +15 -19
  157. package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +30 -29
  158. package/dist/styles/components/surfaces/editor-frame/editor-frame.css +2 -2
  159. package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +259 -4
  160. package/dist/styles/editor/editor.css +55 -0
  161. package/dist/styles/editor-frame.css +2 -2
  162. package/dist/styles/nav-stack.css +15 -19
  163. package/dist/styles/popup-menu.css +4 -4
  164. package/dist/styles/segmented-control.css +1 -1
  165. package/dist/styles/split-view.css +19 -33
  166. package/dist/styles/surface-scaffold.css +259 -4
  167. package/dist/styles/tab-navigator.css +30 -29
  168. package/dist/styles/toolbar-control-group.css +1 -1
  169. package/dist/styles/toolbar.css +34 -1
  170. package/dist/styles/webawesome.css +4 -5
  171. package/dist/surface-scaffold-register.js +2 -1
  172. package/dist/surface-scaffold-register.js.map +1 -1
  173. package/dist/surface-scaffold.d.ts +153 -246
  174. package/dist/surface-scaffold.js +3 -2
  175. package/dist/toolbar-control-group.d.ts +2 -2
  176. package/dist/toolbar-control-group.js +1 -1
  177. package/dist/toolbar.d.ts +6 -1
  178. package/dist/toolbar.js +1 -1
  179. package/dist/tree-list.d.ts +2 -2
  180. package/dist/tree-list.js +1 -1
  181. package/dist/wire-catalog.d.ts +1 -1
  182. package/dist/wire-catalog.js +3 -2
  183. package/dist/wire-catalog.js.map +1 -1
  184. package/dist/wire-checkboxes.js +2 -1
  185. package/dist/wire-choice-chips.js +2 -1
  186. package/dist/wire-color-fields.js +2 -1
  187. package/dist/wire-color-pickers.js +2 -1
  188. package/dist/wire-comboboxes.d.ts +2 -0
  189. package/dist/wire-comboboxes.js +2 -1
  190. package/dist/wire-content-items.js +2 -1
  191. package/dist/wire-corner-status.js +2 -1
  192. package/dist/wire-nav-stack.js +2 -1
  193. package/dist/wire-overlay-sheets.js +2 -1
  194. package/dist/wire-paged-views.js +2 -2
  195. package/dist/wire-paged-views.js.map +1 -1
  196. package/dist/wire-resizable-regions.js +2 -1
  197. package/dist/wire-scroll-dividers.js +1 -1
  198. package/dist/wire-search-fields.js +2 -1
  199. package/dist/wire-sidebar.js +2 -1
  200. package/dist/wire-tab-bars.d.ts +41 -2
  201. package/dist/wire-tab-bars.js +1 -1
  202. package/dist/wire-tab-navigator.js +2 -1
  203. package/dist/wire-tag-fields.js +2 -1
  204. package/dist/wire-workbench.js +2 -1
  205. package/dist/workbench-dialog.d.ts +7 -7
  206. package/dist/workbench-dialog.js +5 -4
  207. package/dist/workbench-dialog.js.map +1 -1
  208. package/dist/workbench.d.ts +1 -1
  209. package/dist/workbench.js +1 -1
  210. package/docs/accessibility.md +3 -6
  211. package/docs/component-contract.md +47 -7
  212. package/docs/component-selection.md +90 -80
  213. package/docs/design/templates.md +5 -4
  214. package/docs/editor-frame.md +1 -1
  215. package/docs/editor-host.md +15 -2
  216. package/docs/overlay-tooltip.md +1 -1
  217. package/docs/recipes.md +1 -1
  218. package/docs/surface-scaffold.md +63 -2
  219. package/docs/ui-analyzer.md +42 -0
  220. package/docs/ui-doctor.md +45 -1
  221. package/docs/ui-evaluator.md +35 -0
  222. package/docs/ux-demo.md +1 -1
  223. package/docs/view.md +295 -0
  224. package/docs/webawesome-theme.md +16 -0
  225. package/doctor/cli.mjs +36 -31
  226. package/doctor/index.mjs +349 -162
  227. package/evaluator/cli.mjs +36 -30
  228. package/llms.txt +17 -4
  229. package/package.json +3 -1
  230. package/props/cli.mjs +47 -21
  231. package/scripts/lib/cli-args.mjs +98 -0
  232. package/ux-demo/recipes/compact-toolbar.tsx +1 -1
  233. package/ux-demo/recipes/loading-inspector.tsx +1 -1
  234. package/view/catalog.mjs +229 -0
  235. package/view/child-kind.mjs +22 -0
  236. package/view/cli.mjs +142 -119
  237. package/view/contract.mjs +84 -11
  238. package/view/css-grammar.mjs +93 -0
  239. package/view/generate.d.mts +16 -0
  240. package/view/generate.mjs +122 -43
  241. package/view/index.d.mts +80 -14
  242. package/view/index.mjs +5 -9
  243. package/view/interpret.mjs +104 -36
  244. package/view/types.mjs +161 -0
  245. package/view/validate-move.mjs +66 -30
  246. package/view/validate.mjs +420 -654
  247. package/vite-editor.d.mts +16 -1
  248. package/vite-editor.mjs +74 -4
  249. package/dist/chunk-2E7S5C4D.js.map +0 -1
  250. package/dist/chunk-2LM3PYHA.js.map +0 -1
  251. package/dist/chunk-3S3WXAZ5.js.map +0 -1
  252. package/dist/chunk-3WYREXW4.js.map +0 -1
  253. package/dist/chunk-4RECPEHI.js.map +0 -1
  254. package/dist/chunk-5SFHBYEY.js.map +0 -1
  255. package/dist/chunk-6OT7FOSA.js.map +0 -1
  256. package/dist/chunk-ADMWT7FX.js.map +0 -1
  257. package/dist/chunk-BCO673YW.js.map +0 -1
  258. package/dist/chunk-CNM6ZWP2.js.map +0 -1
  259. package/dist/chunk-DJ65XFVN.js.map +0 -1
  260. package/dist/chunk-EXGDKG7B.js.map +0 -1
  261. package/dist/chunk-FJMABKKV.js.map +0 -1
  262. package/dist/chunk-GVII4JSD.js.map +0 -1
  263. package/dist/chunk-HDXUHLTQ.js.map +0 -1
  264. package/dist/chunk-JG4ONAOI.js.map +0 -1
  265. package/dist/chunk-JZZVWTUB.js.map +0 -1
  266. package/dist/chunk-KELWWCMX.js.map +0 -1
  267. package/dist/chunk-KLR3DCHH.js.map +0 -1
  268. package/dist/chunk-KQZIC5CA.js.map +0 -1
  269. package/dist/chunk-LD6A6PYB.js +0 -268
  270. package/dist/chunk-LD6A6PYB.js.map +0 -1
  271. package/dist/chunk-MVKHSAKE.js.map +0 -1
  272. package/dist/chunk-NHQOX7T4.js.map +0 -1
  273. package/dist/chunk-Q2CLQ3IJ.js.map +0 -1
  274. package/dist/chunk-Q2SLOMN6.js.map +0 -1
  275. package/dist/chunk-S4ZGTDSG.js.map +0 -1
  276. package/dist/chunk-SJBMKA4X.js.map +0 -1
  277. package/dist/chunk-SPI6VMIY.js.map +0 -1
  278. package/dist/chunk-TPLVC5BE.js.map +0 -1
  279. package/dist/chunk-TTFW6E6C.js.map +0 -1
  280. package/dist/chunk-V6N3YLTM.js.map +0 -1
  281. package/dist/chunk-VNT4MXR5.js +0 -548
  282. package/dist/chunk-VNT4MXR5.js.map +0 -1
  283. package/dist/chunk-VPDSPD76.js.map +0 -1
  284. package/dist/chunk-YHRJNKD5.js.map +0 -1
  285. package/dist/chunk-Z3T24FX3.js.map +0 -1
  286. package/dist/chunk-ZKKO4MHC.js.map +0 -1
  287. package/dist/{nav-stack-DwxpXxqJ.d.ts → nav-stack-vQ3ieerq.d.ts} +3 -3
@@ -1,6 +1,6 @@
1
1
  # Public API signatures for the UI authoring corpus
2
2
 
3
- Generated from emitted declarations for `@kerfjs/ui@5.0.0-beta.125` and `kerfjs@5.0.0-beta.125`. 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.126` and `kerfjs@5.0.0-beta.126`. This bounded reference covers only APIs used by the seven-task corpus. It is interface evidence, not an implementation or runtime guarantee.
4
4
 
5
5
  ## `@kerfjs/ui/css-values`
6
6
 
@@ -221,11 +221,16 @@ interface ToolbarProps {
221
221
  * groups onto further rows.
222
222
  * - `wrap` keeps one row while every zone fits at its natural width, and
223
223
  * otherwise moves the trailing zone below a whole leading identity.
224
+ * - `wrap-groups` is for a leading zone of control groups rather than a
225
+ * title: each leading group shares a row with the trailing zone while it
226
+ * fits and otherwise moves, whole, to the next row; the trailing zone
227
+ * stays at the inline end. The leading zone draws no box of its own, so
228
+ * its padding and minimum-width tokens do not apply.
224
229
  * - `center-priority` gives an expanded center control the full row.
225
230
  * - `trailing-priority` moves an expanded trailing control to a full row
226
231
  * below the leading identity at `responsiveAt`.
227
232
  */
228
- responsive?: 'none' | 'stack' | 'wrap' | 'center-priority' | 'trailing-priority';
233
+ responsive?: 'none' | 'stack' | 'wrap' | 'wrap-groups' | 'center-priority' | 'trailing-priority';
229
234
  /** Container width at which `stack` or `trailing-priority` activates. */
230
235
  responsiveAt?: 'compact' | 'narrow';
231
236
  /**
@@ -366,14 +371,14 @@ type ToolbarControlGroupTileTone = 'neutral' | 'brand' | 'success' | 'warning' |
366
371
  type ToolbarControlGroupButtonAppearance = 'plain' | 'push';
367
372
  type ToolbarControlGroupShape = 'pill' | 'rounded';
368
373
  type ToolbarControlGroupSize = 'default' | 'compact';
369
- type ToolbarControlGroupDensity = 'comfortable' | 'tight';
374
+ type ToolbarControlGroupDensity = 'default' | 'compact' | /** @deprecated Use default. */ 'comfortable' | /** @deprecated Use compact. */ 'tight';
370
375
  type ToolbarControlGroupContent = 'icon' | 'text' | 'mixed' | 'avatar' | 'search';
371
376
  type ToolbarControlGroupFocusRing = 'control' | 'outline' | 'halo';
372
377
  type ToolbarControlGroupSelectedChrome = 'raised' | 'filled' | 'outline' | 'none';
373
378
  type ToolbarControlGroupSelectedTone = 'brand' | 'neutral' | 'pop';
374
379
  type ToolbarControlGroupOverflow = 'visible' | 'scroll' | 'wrap';
375
380
  type ToolbarControlGroupExpandedOverflow = 'clip' | 'visible';
376
- type ToolbarControlGroupMenuInset = 'standard' | 'compact' | 'list-zero';
381
+ type ToolbarControlGroupMenuInset = 'none' | 'compact' | 'default' | /** @deprecated Use default. */ 'standard' | /** @deprecated Use none. */ 'list-zero';
377
382
  type ToolbarControlGroupVisibility = 'always' | 'compact-only' | 'hide-collapsed-tiny' | 'yield-to-expanded-sibling' | 'yield-to-priority-row';
378
383
  type ToolbarControlGroupSizing = 'content' | 'grow' | 'fill';
379
384
  type ToolbarControlGroupPlacement = 'start' | 'end';
@@ -690,8 +695,8 @@ type PopupMenuTriggerName = {
690
695
  };
691
696
  /** How loudly a PopupMenu's button trigger asks: borderless or outlined. */
692
697
  type PopupMenuEmphasis = 'plain' | 'secondary';
693
- /** A PopupMenu button trigger's height: the standard control or compact. */
694
- type PopupMenuSize = 'standard' | 'compact';
698
+ /** A PopupMenu button trigger's height: the default control or compact. */
699
+ type PopupMenuSize = 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
695
700
  /** A context PopupMenu's viewport anchor point. */
696
701
  interface PopupMenuAnchor {
697
702
  x: number;
@@ -844,7 +849,7 @@ interface ListHeaderBaseProps {
844
849
  label: string;
845
850
  /** Visual label size, independent of the native heading level. Default `sm`. */
846
851
  size?: 'xs' | 'sm' | 'm' | 'l' | 'xl';
847
- density?: 'standard' | 'compact';
852
+ density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
848
853
  divider?: 'none' | 'before' | 'after' | 'both';
849
854
  /** Shrink-wrap the header without its default outer margin, border, or padding. */
850
855
  inline?: boolean;
@@ -1278,7 +1283,7 @@ interface ListActionRowCommonProps {
1278
1283
  status?: string | SafeHtml;
1279
1284
  busy?: boolean;
1280
1285
  /** Row height: `standard` is 44px; `compact` is 36px (42px with `iconTile`), the height of a compact `ListItem`. */
1281
- density?: 'standard' | 'compact';
1286
+ density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
1282
1287
  divider?: 'none' | 'before' | 'after' | 'both';
1283
1288
  /** Decorative dormant content for the primary button. Must not contain interactive descendants. */
1284
1289
  icon?: SafeHtml;
@@ -1355,7 +1360,7 @@ interface ListItemProps {
1355
1360
  status?: string | SafeHtml;
1356
1361
  /** Show a progress indicator and expose the row as busy without replacing its content; a placeholder keeps the indicator. */
1357
1362
  busy?: boolean;
1358
- density?: 'standard' | 'compact' | 'spacious';
1363
+ density?: 'default' | 'compact' | 'spacious' | /** @deprecated Use default. */ 'standard';
1359
1364
  divider?: 'none' | 'before' | 'after' | 'both';
1360
1365
  selected?: boolean;
1361
1366
  action: string;
@@ -1862,6 +1867,36 @@ import 'kerfjs';
1862
1867
  import './semantic-content-BbzjvSu9.js';
1863
1868
  import './extension-attributes-IJ4decoa.js';
1864
1869
 
1870
+ /**
1871
+ * How a TabBar's tabs fit their strip, and how wide its fixed action zones
1872
+ * are, as `wireTabBars` reports it through `onFitChange`. Widths are CSS
1873
+ * pixels rounded to whole pixels.
1874
+ */
1875
+ interface TabBarFit {
1876
+ /** The bar's `TabBar` `id` (`data-tab-bar-id`). */
1877
+ barId: string;
1878
+ /**
1879
+ * The tabs need more room than the strip has, so the strip scrolls and some
1880
+ * tab is at least partly out of view.
1881
+ */
1882
+ overflowing: boolean;
1883
+ /** Inline room the strip gives its tabs (its content box). */
1884
+ stripWidth: number;
1885
+ /** Inline extent the tabs occupy, from the first tab's start edge to the last tab's end edge. */
1886
+ tabsWidth: number;
1887
+ /**
1888
+ * `stripWidth - tabsWidth`: room the tabs leave unused, negative by the
1889
+ * amount they overflow. Intrinsic tabs ellipsize their names before the
1890
+ * strip scrolls, so `free` reaches 0 before `overflowing` turns true; under
1891
+ * `allocation="fill"` the tabs absorb the strip and `free` stays near 0.
1892
+ */
1893
+ free: number;
1894
+ /** Width of the `trailing` zone, 0 without one. */
1895
+ trailingWidth: number;
1896
+ /** Width of the `end` zone, 0 without one. */
1897
+ endWidth: number;
1898
+ }
1899
+
1865
1900
  type TabReorderSource = 'pointer' | 'keyboard';
1866
1901
  type TabDropPosition = 'before' | 'after';
1867
1902
  interface TabReorder {
@@ -1886,12 +1921,21 @@ interface WireTabBarsOptions {
1886
1921
  * `activation` prop) overrides this option for that strip.
1887
1922
  */
1888
1923
  activation?: TabActivation;
1924
+ /**
1925
+ * Report how each bar's tabs fit their strip and how wide its `trailing` and
1926
+ * `end` zones are: once per bar after wiring (and for each bar rendered
1927
+ * later), then on the next frame after any rounded value changes (a resize, an added or removed tab, a swapped
1928
+ * action). Use it to adapt app-owned zone content, such as swapping a wide
1929
+ * `end` action for a compact one while the tabs overflow, instead of
1930
+ * measuring the bar's parts yourself.
1931
+ */
1932
+ onFitChange?: (fit: TabBarFit) => void;
1889
1933
  }
1890
1934
  declare function reorderTabs<T>(items: readonly T[], getId: (item: T) => string, sourceId: string, targetId: string, position: TabDropPosition): T[];
1891
1935
  /** Wire reordering and keyboard navigation while leaving controlled state in the application. */
1892
- declare function wireTabBars(root: HTMLElement | Document, { onReorder, activation }: WireTabBarsOptions): () => void;
1936
+ declare function wireTabBars(root: HTMLElement | Document, { onReorder, activation, onFitChange }: WireTabBarsOptions): () => void;
1893
1937
 
1894
- export { TabActivation, type TabDropPosition, type TabReorder, type TabReorderSource, type WireTabBarsOptions, reorderTabs, wireTabBars };
1938
+ export { TabActivation, type TabBarFit, type TabDropPosition, type TabReorder, type TabReorderSource, type WireTabBarsOptions, reorderTabs, wireTabBars };
1895
1939
  ```
1896
1940
 
1897
1941
  ## `@kerfjs/ui/wire-scroll-dividers`
@@ -2104,18 +2148,18 @@ export { wireSummaryRows };
2104
2148
  ## `@kerfjs/ui/nav-stack`
2105
2149
 
2106
2150
  ```ts
2107
- 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-DwxpXxqJ.js';
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';
2108
2152
  import 'kerfjs';
2153
+ import './list.js';
2109
2154
  import './semantic-content-BbzjvSu9.js';
2110
2155
  import './extension-attributes-IJ4decoa.js';
2111
- import './pane.js';
2156
+ import './flex-alignment-4ms8ZbV8.js';
2112
2157
  import './scroll-clearance-BikHljTc.js';
2113
- import './anchor-name-BZ1rpxaw.js';
2158
+ import './sides-BPSWde0A.js';
2114
2159
  import './css-values.js';
2160
+ import './pane.js';
2161
+ import './anchor-name-BZ1rpxaw.js';
2115
2162
  import './surface-tint-DQgYCaP9.js';
2116
- import './list.js';
2117
- import './flex-alignment-4ms8ZbV8.js';
2118
- import './sides-BPSWde0A.js';
2119
2163
  import './panel-toolbar-vg6Ir5Dy.js';
2120
2164
  import './toolbar.js';
2121
2165
  import './lucide-icon.js';
@@ -2152,16 +2196,16 @@ export { type WireNavStackOptions, wireNavStack };
2152
2196
  import * as kerfjs from 'kerfjs';
2153
2197
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2154
2198
  import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
2155
- import { N as NavStackProps, a as NavStackView } from './nav-stack-DwxpXxqJ.js';
2199
+ import { N as NavStackProps, a as NavStackView } from './nav-stack-vQ3ieerq.js';
2156
2200
  import { ResizableRegionProps } from './resizable-region.js';
2157
- import './pane.js';
2158
- import './scroll-clearance-BikHljTc.js';
2159
- import './anchor-name-BZ1rpxaw.js';
2160
- import './css-values.js';
2161
- import './surface-tint-DQgYCaP9.js';
2162
2201
  import './list.js';
2163
2202
  import './flex-alignment-4ms8ZbV8.js';
2203
+ import './scroll-clearance-BikHljTc.js';
2164
2204
  import './sides-BPSWde0A.js';
2205
+ import './css-values.js';
2206
+ import './pane.js';
2207
+ import './anchor-name-BZ1rpxaw.js';
2208
+ import './surface-tint-DQgYCaP9.js';
2165
2209
  import './panel-toolbar-vg6Ir5Dy.js';
2166
2210
  import './toolbar.js';
2167
2211
  import './lucide-icon.js';
@@ -2542,9 +2586,9 @@ export { Pane, type PaneAppearance, type PaneChromeDividers, type PaneChromePlac
2542
2586
 
2543
2587
  ```ts
2544
2588
  import { SafeHtml } from 'kerfjs';
2589
+ import { b as NavPane, N as NavStackProps } from './nav-stack-vQ3ieerq.js';
2545
2590
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2546
2591
  import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
2547
- import { b as NavPane, N as NavStackProps } from './nav-stack-DwxpXxqJ.js';
2548
2592
  import { ListConfig } from './list.js';
2549
2593
  import { PaneConfig } from './pane.js';
2550
2594
  import { ResizableRegionSeparator, ResizableRegionCollapseMotion, ResizableRegionContentOverflow, ResizableRegionPresentation, ResizableRegionRestorePosition } from './resizable-region.js';
@@ -2954,10 +2998,10 @@ export { type WireWorkbenchOptions, type WireWorkbenchPanel, type WorkbenchPanel
2954
2998
 
2955
2999
  ```ts
2956
3000
  import { SafeHtml } from 'kerfjs';
2957
- import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2958
- import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
2959
3001
  import { P as PanelSide, a as PanelToolbar, b as PanelChromePlacement, c as PanelBottomToolbar, d as PanelToggle } from './panel-toolbar-vg6Ir5Dy.js';
2960
3002
  export { e as collapsiblePanelToggleIcon } from './panel-toolbar-vg6Ir5Dy.js';
3003
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
3004
+ import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
2961
3005
  import { ToolbarConfig } from './toolbar.js';
2962
3006
  import { ListConfig } from './list.js';
2963
3007
  import { PaneConfig } from './pane.js';
@@ -3542,7 +3586,7 @@ import './anchor-name-BZ1rpxaw.js';
3542
3586
  import './css-values.js';
3543
3587
  import './surface-tint-DQgYCaP9.js';
3544
3588
  import './workbench.js';
3545
- import './nav-stack-DwxpXxqJ.js';
3589
+ import './nav-stack-vQ3ieerq.js';
3546
3590
  import './list.js';
3547
3591
  import './flex-alignment-4ms8ZbV8.js';
3548
3592
  import './panel-toolbar-vg6Ir5Dy.js';
@@ -3699,7 +3743,7 @@ import './anchor-name-BZ1rpxaw.js';
3699
3743
  import './css-values.js';
3700
3744
  import './surface-tint-DQgYCaP9.js';
3701
3745
  import './workbench.js';
3702
- import './nav-stack-DwxpXxqJ.js';
3746
+ import './nav-stack-vQ3ieerq.js';
3703
3747
  import './list.js';
3704
3748
  import './flex-alignment-4ms8ZbV8.js';
3705
3749
  import './panel-toolbar-vg6Ir5Dy.js';
@@ -3756,7 +3800,7 @@ import './anchor-name-BZ1rpxaw.js';
3756
3800
  import './css-values.js';
3757
3801
  import './surface-tint-DQgYCaP9.js';
3758
3802
  import './workbench.js';
3759
- import './nav-stack-DwxpXxqJ.js';
3803
+ import './nav-stack-vQ3ieerq.js';
3760
3804
  import './list.js';
3761
3805
  import './flex-alignment-4ms8ZbV8.js';
3762
3806
  import './panel-toolbar-vg6Ir5Dy.js';
@@ -3899,7 +3943,7 @@ type BadgeValue = number | string | true;
3899
3943
 
3900
3944
  type SegmentedControlAppearance = 'filled' | 'outlined' | 'toolbar';
3901
3945
  type SegmentedControlShape = 'rounded' | 'pill';
3902
- type SegmentedControlSize = 'small' | 'default';
3946
+ type SegmentedControlSize = 'default' | 'compact' | /** @deprecated Use compact. */ 'small';
3903
3947
  type SegmentedControlLayout = 'content' | 'equal';
3904
3948
  interface SegmentedControlChoice<Value extends string = string> {
3905
3949
  value: Value;
@@ -5311,259 +5355,26 @@ export { wireToolbarVisibility };
5311
5355
  ## `@kerfjs/ui/surface-scaffold`
5312
5356
 
5313
5357
  ```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';
5314
5360
  import * as kerfjs from 'kerfjs';
5315
5361
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
5316
- import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
5317
- import { A as AnchorName } from './anchor-name-BZ1rpxaw.js';
5318
5362
  import { CssLength } from './css-values.js';
5363
+ import { A as AnchorName } from './anchor-name-BZ1rpxaw.js';
5364
+ import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
5319
5365
 
5320
- /** What asked an open DialogSurface to close. */
5321
- type DialogCloseSource = 'close-button' | 'escape' | 'backdrop';
5322
- /** The detail of a DialogSurface's cancelable `kui-request-close` event. */
5323
- interface DialogRequestCloseDetail {
5324
- readonly source: DialogCloseSource;
5325
- }
5326
5366
  /**
5327
- * Open a DialogSurface as a modal dialog: in the top layer, the rest of the
5328
- * page inert, focus on its `autofocus` element or else the panel. It plays
5329
- * its enter motion and, with the controller installed here, keeps its
5330
- * measured chrome, sheet height, and keyboard clearance across application
5331
- * re-renders. Opening an open dialog does nothing, and so does opening an
5332
- * `embedded` one, which is always shown in flow.
5367
+ * Where a popover surface appears: `overlay` in the top layer, or `embedded`
5368
+ * in document flow (a static preview). Shared by PopoverDialogSurface and
5369
+ * PinnablePopoverSurface.
5333
5370
  */
5334
- declare function openDialog(dialog: HTMLDialogElement): void;
5335
- /**
5336
- * Close an open DialogSurface after its exit motion. The application's own
5337
- * close is never refused: no `kui-request-close` is dispatched. The native
5338
- * `close` event fires once it has closed. An `embedded` one never closes.
5339
- */
5340
- declare function closeDialog(dialog: HTMLDialogElement): void;
5341
- /**
5342
- * Reconcile one controlled stack after rendering its DialogSurface layers.
5343
- * Opening back-to-front establishes native top-layer order; unchanged layers
5344
- * keep their DOM nodes and focus. The application owns `stack.open` and handles
5345
- * `kui-request-close` to update that state before calling this again.
5346
- */
5347
- declare function syncDialogStack(root: ParentNode): void;
5348
- /** Follow a controlled stack's render updates until the returned stop runs. */
5349
- declare function wireDialogStack(root: ParentNode): () => void;
5371
+ type SurfacePresentation = 'overlay' | 'embedded';
5350
5372
 
5351
- type DialogSurfaceSize = 'small' | 'medium' | 'large';
5352
- /**
5353
- * How the dialog is presented: `modal` (default) centered on the screen,
5354
- * `side-sheet` against the inline end, `fullscreen`, or `bottom-sheet`
5355
- * attached to the bottom edge (square bottom corners, safe-area and
5356
- * virtual-keyboard clearance, optionally user-resizable).
5357
- */
5358
- type DialogSurfacePresentation = 'modal' | 'side-sheet' | 'fullscreen' | 'bottom-sheet'
5359
5373
  /**
5360
- * In flow, always shown: the same panel without the top layer or a
5361
- * backdrop, never wider than its container. For a catalog, a design
5362
- * canvas, or a document; `openDialog` / `closeDialog` leave it alone and
5363
- * `data-dialog-close` does not hide it.
5374
+ * Where a PopoverDialogSurface appears: the top layer, or in flow. An alias
5375
+ * of the shared {@link SurfacePresentation}.
5364
5376
  */
5365
- | 'embedded';
5366
- /**
5367
- * How a bottom sheet appears or leaves: `slide` (default) moves the panel in
5368
- * from, or out to, the bottom edge; `standard` keeps the dialog's
5369
- * scale-and-fade. Both honor `prefers-reduced-motion`.
5370
- */
5371
- type DialogSurfaceSheetMotion = 'slide' | 'standard';
5372
- type SurfaceInset = 'none' | 'compact' | 'comfortable';
5373
- type DialogSurfaceMaxHeight = CssLength | 'viewport';
5374
- /** A definite modal height: a length or the full viewport, minus both gutters. */
5375
- type DialogSurfaceHeight = CssLength | 'viewport';
5376
- /**
5377
- * How the dialog body lays out its children: `flow` (default) scrolls ordinary
5378
- * content in the body; `fill` gives one child the body's whole height and
5379
- * lets it own scrolling (a SplitView, a Pane, an editor); `fill-last` stacks
5380
- * the leading children at their natural height and gives the last child the
5381
- * remaining height to own its scrolling (a heading and notices above a
5382
- * scrolling transcript).
5383
- */
5384
- type DialogSurfaceBodyLayout = 'flow' | 'fill' | 'fill-last';
5385
- /**
5386
- * Where the dialog footer sits: `docked` (default) below the body, or
5387
- * `floating` over the body's block end, inset from the panel's inline and
5388
- * block-end edges on a transparent background (a chat composer).
5389
- */
5390
- type DialogSurfaceFooterPresentation = 'docked' | 'floating';
5391
- /**
5392
- * Where the dialog header sits: `docked` (default) above the body, or
5393
- * `floating` over the body's block-start edge on the translucent chrome
5394
- * material, so content scrolls visibly beneath the title bar.
5395
- */
5396
- type DialogSurfaceHeaderPresentation = 'docked' | 'floating';
5397
- /** The built-in close control's visual weight; `normal` keeps the default. */
5398
- type DialogSurfaceCloseEmphasis = 'normal' | 'quiet';
5399
- /**
5400
- * Application `data-*` identity on the DialogSurface root, such as
5401
- * `data-key`; the surface's own configuration attributes stay protected.
5402
- */
5403
- type DialogSurfaceRootAttributes = Readonly<Record<`data-${string}`, string | undefined>>;
5404
- /**
5405
- * The dialog's accessible name: its `label` text (also the default title), or
5406
- * the id of an element that names it, such as a `heading` ToolbarText.
5407
- */
5408
- type DialogSurfaceName = {
5409
- label: string;
5410
- labelledBy?: never;
5411
- } | {
5412
- label?: never;
5413
- labelledBy: string;
5414
- };
5415
- type DialogSurfaceProps = DialogSurfaceName & DialogSurfaceOptions;
5416
- /** Controlled state of one native modal layer inside a `wireDialogStack` root. */
5417
- interface DialogSurfaceStack {
5418
- /** Whether this layer belongs in the native top layer. */
5419
- open: boolean;
5420
- /** The one frontmost open layer; it owns modal focus and accessibility. */
5421
- active: boolean;
5422
- /** One-based order from the back to the front. */
5423
- position: number;
5424
- /** Number of layers in the stack, including closed layers still rendered. */
5425
- count: number;
5426
- /** Optional vertical offset for an inactive layer; omitted on phones. */
5427
- offset?: CssLength;
5428
- }
5429
- interface DialogSurfaceOptions {
5430
- /** The dialog's id, for `openDialog(document.getElementById(id))`. */
5431
- id?: string;
5432
- /**
5433
- * Id of the element whose text is the dialog's accessible description,
5434
- * such as the `heading` ToolbarText's `descriptionId` or app-owned summary
5435
- * copy in the body; rendered as `aria-describedby` on the `<dialog>`.
5436
- */
5437
- describedBy?: string;
5438
- /**
5439
- * An alert dialog: a confirmation that interrupts the person to report
5440
- * something urgent or ask before a destructive action ("Delete this
5441
- * topic?"). Renders `role="alertdialog"` on the `<dialog>`; set
5442
- * `describedBy` to the element holding the message, and leave
5443
- * `lightDismiss` off so the person answers it.
5444
- */
5445
- alert?: boolean;
5446
- /** The body content. */
5447
- children: KerfUiContent;
5448
- /** Controlled modal stack state; call `wireDialogStack` on the containing root. */
5449
- stack?: DialogSurfaceStack;
5450
- /**
5451
- * Header title content in place of the `label` text, such as an xl
5452
- * `ToolbarText` with a description. The dialog keeps its `label` (or
5453
- * `labelledBy`) name.
5454
- */
5455
- heading?: KerfUiContent;
5456
- /** Controls before the close button in the header. */
5457
- headerActions?: KerfUiContent;
5458
- /** The footer, below the body (or floating over it); usually its buttons. */
5459
- footer?: KerfUiContent;
5460
- /**
5461
- * Render no header: no title and no close button. The content then owns its
5462
- * heading and a way to close (an element with `data-dialog-close`).
5463
- */
5464
- withoutHeader?: boolean;
5465
- /** Close on a press on the backdrop; otherwise the panel pulses. */
5466
- lightDismiss?: boolean;
5467
- /** The close button's accessible name (default `Close`). */
5468
- closeLabel?: string;
5469
- /** Soften the built-in close control without changing its 40px target. */
5470
- closeEmphasis?: DialogSurfaceCloseEmphasis;
5471
- size?: DialogSurfaceSize;
5472
- presentation?: DialogSurfacePresentation;
5473
- /** Modal preferred width. Takes precedence over size, within the viewport cap. */
5474
- preferredWidth?: CssLength;
5475
- bodyInset?: SurfaceInset;
5476
- footerInset?: SurfaceInset;
5477
- /** Modal edge clearance. Omit to retain Web Awesome's default viewport cap. */
5478
- viewportGutter?: CssLength;
5479
- /**
5480
- * Modal height cap, bounded by the dynamic viewport minus both gutters. On a
5481
- * bottom sheet, the cap (and the resize ceiling), bounded by the dynamic
5482
- * viewport minus the top safe area and one gutter.
5483
- */
5484
- maxHeight?: DialogSurfaceMaxHeight;
5485
- /**
5486
- * Modal definite height, bounded the same way, so a filling child has a
5487
- * height to fill. Takes precedence over `maxHeight`. On a bottom sheet, the
5488
- * height it opens at (the visible height above the safe area or keyboard).
5489
- */
5490
- height?: DialogSurfaceHeight;
5491
- /**
5492
- * A resizable bottom sheet's resize floor (default 160px), the visible
5493
- * height above the safe area or keyboard.
5494
- */
5495
- minHeight?: CssLength;
5496
- /**
5497
- * Let the person resize a bottom sheet by its top grabber (drag, or the
5498
- * arrow, Page Up/Down, Home and End keys) between `minHeight` and the
5499
- * sheet's cap. Needs the `/register` entry; each opening starts at `height`
5500
- * (or the content height). Ignored by other presentations.
5501
- */
5502
- resizable?: boolean;
5503
- /** How a bottom sheet appears (default `slide` up from the bottom edge). */
5504
- enterMotion?: DialogSurfaceSheetMotion;
5505
- /** How a bottom sheet is dismissed (default `slide` down off the bottom edge). */
5506
- exitMotion?: DialogSurfaceSheetMotion;
5507
- /**
5508
- * Body layout (default `flow`); `fill` lets one child own the body and
5509
- * `fill-last` stacks fixed rows above one filling last child.
5510
- */
5511
- bodyLayout?: DialogSurfaceBodyLayout;
5512
- /**
5513
- * Header placement (default `docked`); `floating` lays the dialog's header
5514
- * (its title and close control) over the body's block-start edge on the
5515
- * translucent chrome material (`--kui-chrome-material-raised`, opaque under
5516
- * `prefers-reduced-transparency`, increased contrast, forced colors, or
5517
- * without `backdrop-filter`). The `/register` entry measures the header;
5518
- * the body reserves that height before its own inset, so its first content
5519
- * rests below the title bar. A `fill`/`fill-last` child that is the body's
5520
- * only child and opts into block-start `scrollClearance` (a `List` or
5521
- * `Pane`) takes the clearance inside its own scroll area instead, published
5522
- * as `--kui-scroll-clearance-block-start`, so its content scrolls visibly
5523
- * beneath the header. Unmeasured (without the register), the header stays
5524
- * docked. Keep header text in the normal text color: quiet text can fall
5525
- * below AA over the content passing beneath it.
5526
- */
5527
- headerPresentation?: DialogSurfaceHeaderPresentation;
5528
- /**
5529
- * Footer placement (default `docked`); `floating` lays the footer over the
5530
- * body's block end. The body reserves the footer's measured height so its
5531
- * last content is never hidden beneath it. A `fill`/`fill-last` child that
5532
- * opts into block-end `scrollClearance` (a `List` or `Pane`) takes that
5533
- * clearance inside its own scroll area instead, published as
5534
- * `--kui-scroll-clearance-block-end`, so its content scrolls visibly beneath
5535
- * the transparent footer.
5536
- */
5537
- footerPresentation?: DialogSurfaceFooterPresentation;
5538
- /**
5539
- * A floating footer's clearance from the panel's inline and block-end edges
5540
- * (default the 16px container inset). Choose a phone value such as
5541
- * `remify(8)` from `deviceClass()`; the scaffold adds no breakpoint.
5542
- */
5543
- footerOffset?: CssLength;
5544
- /**
5545
- * Safe `data-*` identity on the root. Give sibling dialogs distinct
5546
- * `data-key`s so a re-render morphs each surface into itself instead of
5547
- * reusing one dialog's element for another (structurally identical roots
5548
- * are otherwise matched by position).
5549
- */
5550
- rootAttributes?: DialogSurfaceRootAttributes;
5551
- className?: string;
5552
- /** Native named-slot assignment when composed inside a web component. */
5553
- slot?: string;
5554
- }
5555
- /**
5556
- * A modal dialog: a native `<dialog>` with Kerf's header, body, and footer
5557
- * chrome, sized and presented by its props. Render it closed, then open it
5558
- * with `openDialog()` and close it with `closeDialog()`, the close button, an
5559
- * element with `data-dialog-close`, Escape, or (with `lightDismiss`) a press
5560
- * on the backdrop. Import `@kerfjs/ui/surface-scaffold/register` for the
5561
- * floating header and footer measurement, the bottom sheet's keyboard
5562
- * clearance and grabber, and re-render resilience while open.
5563
- */
5564
- declare function DialogSurface({ id, label, labelledBy, describedBy, alert, heading, headerActions, footer, withoutHeader, lightDismiss, closeLabel, closeEmphasis, children, stack, size, presentation, preferredWidth, bodyInset, footerInset, viewportGutter, maxHeight, height, minHeight, resizable, enterMotion, exitMotion, bodyLayout, headerPresentation, footerPresentation, footerOffset, rootAttributes, className, slot, }: DialogSurfaceProps): kerfjs.SafeHtml;
5565
- /** Where a PopoverDialogSurface appears: the top layer, or in flow. */
5566
- type PopoverDialogSurfacePresentation = 'overlay' | 'embedded';
5377
+ type PopoverDialogSurfacePresentation = SurfacePresentation;
5567
5378
  /** How an overlay PopoverDialogSurface closes: light dismiss, or its own controls. */
5568
5379
  type PopoverDialogSurfaceDismiss = 'light' | 'manual';
5569
5380
  /** Application `data-*` metadata on the surface root. */
@@ -5635,7 +5446,84 @@ type PopoverDialogSurfaceProps = PopoverDialogSurfaceName & {
5635
5446
  * task must block the page.
5636
5447
  */
5637
5448
  declare function PopoverDialogSurface({ id, children, label, labelledBy, describedBy, presentation, dismiss, anchorName, size, preferredWidth, height, maxHeight, viewportGutter, bodyLayout, rootAttributes, className, slot, }: PopoverDialogSurfaceProps): kerfjs.SafeHtml;
5638
- type PopupSurfaceInset = 'standard' | 'compact' | 'list-zero';
5449
+
5450
+ /**
5451
+ * Where a PinnablePopoverSurface appears: the top layer, or in flow. An alias
5452
+ * of the shared {@link SurfacePresentation}.
5453
+ */
5454
+ type PinnablePopoverSurfacePresentation = SurfacePresentation;
5455
+ interface PinnablePopoverSurfaceProps {
5456
+ /**
5457
+ * The root id: what an opening control's `popoverTarget` names. The title
5458
+ * and the move description derive their ids from it.
5459
+ */
5460
+ id: string;
5461
+ /** The title text: the surface's accessible name and its move handle's. */
5462
+ label: string;
5463
+ /**
5464
+ * Id of the element whose text describes the surface, rendered as
5465
+ * `aria-describedby` on the `role="dialog"` root.
5466
+ */
5467
+ describedBy?: string;
5468
+ /** The body content, below the header. */
5469
+ children: KerfUiContent;
5470
+ /** Controls before the Pin and Close buttons in the header. */
5471
+ headerActions?: KerfUiContent;
5472
+ /**
5473
+ * `overlay` (default) is a native `popover="manual"` in the top layer that
5474
+ * `wirePinnablePopover` places, dismisses, and moves; `embedded` renders
5475
+ * the same surface in flow for a catalog or a design canvas.
5476
+ */
5477
+ presentation?: PinnablePopoverSurfacePresentation;
5478
+ /**
5479
+ * Render it pinned: an `embedded` preview of the pinned state. An
5480
+ * overlay's pinned state belongs to `wirePinnablePopover`; pass `pinned`
5481
+ * there to restore it.
5482
+ */
5483
+ pinned?: boolean;
5484
+ /** Preferred width preset: 400px, 560px (default), or 800px. */
5485
+ size?: DialogSurfaceSize;
5486
+ /** Preferred width; takes precedence over `size`, within the viewport cap. */
5487
+ preferredWidth?: CssLength;
5488
+ /** Definite height, bounded by the dynamic viewport minus both gutters. */
5489
+ height?: DialogSurfaceHeight;
5490
+ /** Height cap, bounded the same way, for a surface that sizes to content. */
5491
+ maxHeight?: DialogSurfaceMaxHeight;
5492
+ /**
5493
+ * Edge clearance on each side of the viewport (default 16px): the surface
5494
+ * is placed, dragged, and moved inside it.
5495
+ */
5496
+ viewportGutter?: CssLength;
5497
+ /**
5498
+ * Body layout (default `flow`); `fill` lets one child own the body and
5499
+ * `fill-last` stacks fixed rows above one filling last child.
5500
+ */
5501
+ bodyLayout?: DialogSurfaceBodyLayout;
5502
+ /** The Pin toggle's accessible name (default `Pin`). */
5503
+ pinLabel?: string;
5504
+ /** The close button's accessible name (default `Close`). */
5505
+ closeLabel?: string;
5506
+ /** The move handle's accessible description of the pointer and keyboard move. */
5507
+ moveDescription?: string;
5508
+ rootAttributes?: PopoverDialogSurfaceDataAttributes;
5509
+ className?: string;
5510
+ /** Native named-slot assignment when composed inside a web component. */
5511
+ slot?: string;
5512
+ }
5513
+ /**
5514
+ * A non-modal surface a person can pin and move. Transient by default: it
5515
+ * opens below the control that opened it and closes on Escape or a press
5516
+ * outside. Pinned (by its header Pin toggle or `pinPopover()`), it stays
5517
+ * open while the page is used, drags by its title, moves with the arrow
5518
+ * keys, resizes, and stays inside the viewport gutter. Open it with a
5519
+ * `popoverTarget` control or `showPopover()`, and call `wirePinnablePopover()`
5520
+ * once for its placement, dismissal, and movement; the application stores
5521
+ * what `onChange` reports. Use `PopoverDialogSurface` for a dialog that only
5522
+ * ever light-dismisses.
5523
+ */
5524
+ declare function PinnablePopoverSurface({ id, label, describedBy, children, headerActions, presentation, pinned, size, preferredWidth, height, maxHeight, viewportGutter, bodyLayout, pinLabel, closeLabel, moveDescription, rootAttributes, className, slot, }: PinnablePopoverSurfaceProps): kerfjs.SafeHtml;
5525
+
5526
+ type PopupSurfaceInset = 'none' | 'compact' | 'default' | /** @deprecated Use default. */ 'standard' | /** @deprecated Use none. */ 'list-zero';
5639
5527
  interface PopupSurfaceProps {
5640
5528
  children: KerfUiContent;
5641
5529
  inset?: PopupSurfaceInset;
@@ -5649,7 +5537,70 @@ interface PopupSurfaceProps {
5649
5537
  /** Configure recurring Web Awesome dropdown-menu geometry without consumer ::part() CSS. */
5650
5538
  declare function PopupSurface({ children, inset, className, slot, rootAttributes, }: PopupSurfaceProps): kerfjs.SafeHtml;
5651
5539
 
5652
- export { type DialogCloseSource, type DialogRequestCloseDetail, DialogSurface, type DialogSurfaceBodyLayout, type DialogSurfaceCloseEmphasis, type DialogSurfaceFooterPresentation, type DialogSurfaceHeaderPresentation, type DialogSurfaceHeight, type DialogSurfaceMaxHeight, type DialogSurfaceName, type DialogSurfaceOptions, type DialogSurfacePresentation, type DialogSurfaceProps, type DialogSurfaceRootAttributes, type DialogSurfaceSheetMotion, type DialogSurfaceSize, type DialogSurfaceStack, PopoverDialogSurface, type PopoverDialogSurfaceDataAttributes, type PopoverDialogSurfaceDismiss, type PopoverDialogSurfacePresentation, type PopoverDialogSurfaceProps, PopupSurface, type PopupSurfaceInset, type PopupSurfaceProps, type SurfaceInset, closeDialog, openDialog, syncDialogStack, wireDialogStack };
5540
+ /**
5541
+ * Where a pinned PinnablePopoverSurface sits: its top-left corner in viewport
5542
+ * px, and the size the person resized it to (omitted until they do).
5543
+ */
5544
+ interface PinnablePopoverPlacement {
5545
+ readonly x: number;
5546
+ readonly y: number;
5547
+ readonly width?: number;
5548
+ readonly height?: number;
5549
+ }
5550
+ /** What changed a PinnablePopoverSurface's pinned state or placement. */
5551
+ type PinnablePopoverChangeReason = 'pin' | 'unpin' | 'move' | 'resize';
5552
+ /** What `wirePinnablePopover`'s `onChange` reports. */
5553
+ interface PinnablePopoverChange {
5554
+ readonly pinned: boolean;
5555
+ /** The pinned placement; `null` while transient. */
5556
+ readonly placement: PinnablePopoverPlacement | null;
5557
+ readonly reason: PinnablePopoverChangeReason;
5558
+ }
5559
+ interface PinnablePopoverOptions {
5560
+ /**
5561
+ * The element a transient surface opens below (or above, without room
5562
+ * below). Default: the first control whose `popovertarget` names the
5563
+ * surface. Without one, a transient surface opens centered.
5564
+ */
5565
+ anchor?: Element | (() => Element | null);
5566
+ /** Start pinned, as the application last stored it. */
5567
+ pinned?: boolean;
5568
+ /** The pinned placement to restore, as `onChange` last reported it. */
5569
+ placement?: PinnablePopoverPlacement;
5570
+ /** An arrow key's move, in px (default 8). */
5571
+ step?: number;
5572
+ /** A Shift+arrow move, in px (default 40). */
5573
+ largeStep?: number;
5574
+ /**
5575
+ * Called when the person (or `pinPopover`) pins, unpins, moves, or resizes
5576
+ * the surface. A clamp after a window resize is not reported: the surface
5577
+ * returns to the reported placement when the window has room again.
5578
+ */
5579
+ onChange?: (change: PinnablePopoverChange) => void;
5580
+ }
5581
+ /** Whether `surface` is pinned (its rendered state when it is not wired). */
5582
+ declare function isPopoverPinned(surface: HTMLElement): boolean;
5583
+ /**
5584
+ * Pin (or, with `false`, unpin) a wired PinnablePopoverSurface, as its
5585
+ * header Pin toggle does. Pinned, it no longer closes on a press outside
5586
+ * and keeps where it is; unpinned, it returns below its anchor. Reported
5587
+ * through `onChange`. Does nothing to a surface that is not wired.
5588
+ */
5589
+ declare function pinPopover(surface: HTMLElement, pinned?: boolean): void;
5590
+ /**
5591
+ * Give an overlay PinnablePopoverSurface its behavior: placement below its
5592
+ * anchor while transient, a press outside or Escape closing it; the Pin
5593
+ * toggle; a drag by the header and the arrow keys on the focused title
5594
+ * (Shift for `largeStep`) moving it, which pins it; a pinned surface's
5595
+ * resize; and a clamp inside the viewport gutter, kept after a window
5596
+ * resize. Pinned, it closes only by Escape (with focus inside it), its Close
5597
+ * button, or `hidePopover()`. The state survives application re-renders and
5598
+ * closing; `onChange` reports it for the application to store. An
5599
+ * `embedded` surface is left alone. Returns a disposer.
5600
+ */
5601
+ declare function wirePinnablePopover(surface: HTMLElement, options?: PinnablePopoverOptions): () => void;
5602
+
5603
+ 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 };
5653
5604
  ```
5654
5605
 
5655
5606
  ## `@kerfjs/ui/list-detail-dialog`
@@ -5659,17 +5610,17 @@ import * as kerfjs from 'kerfjs';
5659
5610
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
5660
5611
  import { CssLength } from './css-values.js';
5661
5612
  import { SplitViewListWidth } from './split-view.js';
5662
- import { DialogSurfaceSize, DialogSurfaceHeight, DialogSurfaceMaxHeight, DialogSurfaceRootAttributes } from './surface-scaffold.js';
5663
- export { DialogCloseSource, DialogRequestCloseDetail, closeDialog, openDialog } from './surface-scaffold.js';
5613
+ import { n as DialogSurfaceSize, f as DialogSurfaceHeight, g as DialogSurfaceMaxHeight, l as DialogSurfaceRootAttributes } from './dialog-surface-controller-BeKZ3e8Z.js';
5614
+ export { D as DialogCloseSource, a as DialogRequestCloseDetail, o as closeDialog, p as openDialog } from './dialog-surface-controller-BeKZ3e8Z.js';
5664
5615
  import './extension-attributes-IJ4decoa.js';
5665
- import './nav-stack-DwxpXxqJ.js';
5666
- import './pane.js';
5667
- import './scroll-clearance-BikHljTc.js';
5668
- import './anchor-name-BZ1rpxaw.js';
5669
- import './surface-tint-DQgYCaP9.js';
5616
+ import './nav-stack-vQ3ieerq.js';
5670
5617
  import './list.js';
5671
5618
  import './flex-alignment-4ms8ZbV8.js';
5619
+ import './scroll-clearance-BikHljTc.js';
5672
5620
  import './sides-BPSWde0A.js';
5621
+ import './pane.js';
5622
+ import './anchor-name-BZ1rpxaw.js';
5623
+ import './surface-tint-DQgYCaP9.js';
5673
5624
  import './panel-toolbar-vg6Ir5Dy.js';
5674
5625
  import './toolbar.js';
5675
5626
  import './lucide-icon.js';
@@ -5795,17 +5746,17 @@ import * as kerfjs from 'kerfjs';
5795
5746
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
5796
5747
  import { CssLength } from './css-values.js';
5797
5748
  import { WorkbenchMainBottomToolbar, WorkbenchPanel } from './workbench.js';
5798
- import { DialogSurfaceSize, DialogSurfaceHeight, DialogSurfaceMaxHeight, DialogSurfaceRootAttributes } from './surface-scaffold.js';
5799
- export { DialogCloseSource, DialogRequestCloseDetail, closeDialog, openDialog } from './surface-scaffold.js';
5749
+ import { n as DialogSurfaceSize, f as DialogSurfaceHeight, g as DialogSurfaceMaxHeight, l as DialogSurfaceRootAttributes } from './dialog-surface-controller-BeKZ3e8Z.js';
5750
+ export { D as DialogCloseSource, a as DialogRequestCloseDetail, o as closeDialog, p as openDialog } from './dialog-surface-controller-BeKZ3e8Z.js';
5751
+ import './nav-stack-vQ3ieerq.js';
5752
+ import './list.js';
5800
5753
  import './extension-attributes-IJ4decoa.js';
5801
- import './nav-stack-DwxpXxqJ.js';
5802
- import './pane.js';
5754
+ import './flex-alignment-4ms8ZbV8.js';
5803
5755
  import './scroll-clearance-BikHljTc.js';
5756
+ import './sides-BPSWde0A.js';
5757
+ import './pane.js';
5804
5758
  import './anchor-name-BZ1rpxaw.js';
5805
5759
  import './surface-tint-DQgYCaP9.js';
5806
- import './list.js';
5807
- import './flex-alignment-4ms8ZbV8.js';
5808
- import './sides-BPSWde0A.js';
5809
5760
  import './panel-toolbar-vg6Ir5Dy.js';
5810
5761
  import './toolbar.js';
5811
5762
  import './lucide-icon.js';
@@ -6056,7 +6007,7 @@ import { CssLength } from './css-values.js';
6056
6007
 
6057
6008
  type EditorFrameMode = 'source' | 'preview';
6058
6009
  type EditorFrameAppearance = 'framed' | 'embedded';
6059
- type EditorFrameInset = 'padded' | 'flush';
6010
+ type EditorFrameInset = 'none' | 'comfortable' | /** @deprecated Use comfortable. */ 'padded' | /** @deprecated Use none. */ 'flush';
6060
6011
  interface EditorFrameProps {
6061
6012
  /** A Toolbar or other fixed controls above the writing surface. */
6062
6013
  toolbar?: KerfUiContent;
@@ -6202,8 +6153,8 @@ interface TreeListProps {
6202
6153
  * arrow or the keyboard (Right and Left). Flip the id in `expanded`.
6203
6154
  */
6204
6155
  toggleAction: string;
6205
- /** Row density: `standard` (44px rows, default) or `compact` (36px). */
6206
- density?: 'standard' | 'compact';
6156
+ /** Row density: `default` (44px rows) or `compact` (36px). */
6157
+ density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
6207
6158
  className?: string;
6208
6159
  /** Safe `data-*` metadata for the tree element. */
6209
6160
  rootAttributes?: RootDataAttributes;
@@ -6275,8 +6226,8 @@ interface ColumnExplorerProps {
6275
6226
  minColumnWidth?: CssLength;
6276
6227
  /** How much of the next column a paged layout shows. */
6277
6228
  peek?: CssLength;
6278
- /** Row density: `standard` (default) or `compact`. */
6279
- density?: 'standard' | 'compact';
6229
+ /** Row density: `default` or `compact`. */
6230
+ density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
6280
6231
  className?: string;
6281
6232
  /** Safe `data-*` metadata for the explorer element. */
6282
6233
  rootAttributes?: RootDataAttributes;