@kerfjs/ui 5.0.0-beta.124 → 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 (518) hide show
  1. package/README.md +6 -0
  2. package/ai/application-ui-diagnostic-ids-v1.json +1 -0
  3. package/ai/component-catalog.json +168 -7
  4. package/ai/component-catalog.schema.json +14 -1
  5. package/ai/component-composition.json +97 -6
  6. package/ai/component-props.json +447 -40
  7. package/ai/components/README.md +1 -0
  8. package/ai/components/combobox.md +1 -1
  9. package/ai/components/gauge.md +83 -0
  10. package/ai/components/segmented-control.md +1 -0
  11. package/ai/components/surface-scaffold.md +19 -5
  12. package/ai/components/tab-bar.md +2 -0
  13. package/ai/components/toolbar.md +1 -0
  14. package/ai/public-api-signatures-v1.md +345 -295
  15. package/ai/skill.md +36 -27
  16. package/ai/view-document.schema.json +55 -2
  17. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  18. package/analyzer/cli.mjs +60 -24
  19. package/analyzer/index.mjs +331 -58
  20. package/catalog-projection-cli.mjs +86 -50
  21. package/dist/anchored-surface.js +2 -1
  22. package/dist/browser/editor.js +11 -8
  23. package/dist/browser/gauge.js +3 -0
  24. package/dist/browser/segmented-control.js +1 -0
  25. package/dist/catalog-resources.d.ts +1 -1
  26. package/dist/catalog.d.ts +1 -1
  27. package/dist/catalog.js +7 -7
  28. package/dist/{chunk-VX3YF2UD.js → chunk-3K5V3ZSD.js} +3 -3
  29. package/dist/{chunk-VX3YF2UD.js.map → chunk-3K5V3ZSD.js.map} +1 -1
  30. package/dist/chunk-3SCGTP5O.js +682 -0
  31. package/dist/chunk-3SCGTP5O.js.map +1 -0
  32. package/dist/{chunk-3JOEJT2Z.js → chunk-3ZKUXWAV.js} +4 -4
  33. package/dist/chunk-3ZKUXWAV.js.map +1 -0
  34. package/dist/{chunk-ADMWT7FX.js → chunk-3ZWYGGEC.js} +136 -8
  35. package/dist/chunk-3ZWYGGEC.js.map +1 -0
  36. package/dist/{chunk-KLR3DCHH.js → chunk-4L5ZIKDZ.js} +1 -1
  37. package/dist/chunk-4L5ZIKDZ.js.map +1 -0
  38. package/dist/{chunk-2E7S5C4D.js → chunk-4UWLHKNU.js} +5 -5
  39. package/dist/chunk-4UWLHKNU.js.map +1 -0
  40. package/dist/{chunk-EXGDKG7B.js → chunk-5A2DN3LR.js} +5 -5
  41. package/dist/chunk-5A2DN3LR.js.map +1 -0
  42. package/dist/{chunk-DJ65XFVN.js → chunk-63TJH2RF.js} +4 -4
  43. package/dist/chunk-63TJH2RF.js.map +1 -0
  44. package/dist/{chunk-Q2CLQ3IJ.js → chunk-6PHG2DMG.js} +1 -1
  45. package/dist/chunk-6PHG2DMG.js.map +1 -0
  46. package/dist/{chunk-SPI6VMIY.js → chunk-6T7AX365.js} +4 -4
  47. package/dist/chunk-6T7AX365.js.map +1 -0
  48. package/dist/{chunk-GVII4JSD.js → chunk-6V6UHPJD.js} +4 -4
  49. package/dist/chunk-6V6UHPJD.js.map +1 -0
  50. package/dist/{chunk-2LM3PYHA.js → chunk-C2TY5DJC.js} +11 -8
  51. package/dist/chunk-C2TY5DJC.js.map +1 -0
  52. package/dist/{chunk-3WYREXW4.js → chunk-COMEWURO.js} +8 -6
  53. package/dist/chunk-COMEWURO.js.map +1 -0
  54. package/dist/{chunk-VPDSPD76.js → chunk-DB64I3DB.js} +4 -3
  55. package/dist/chunk-DB64I3DB.js.map +1 -0
  56. package/dist/{chunk-SBCXWGNP.js → chunk-DBCDYBZP.js} +2 -2
  57. package/dist/{chunk-SBCXWGNP.js.map → chunk-DBCDYBZP.js.map} +1 -1
  58. package/dist/{chunk-CNM6ZWP2.js → chunk-DJWBXEF4.js} +4 -2
  59. package/dist/chunk-DJWBXEF4.js.map +1 -0
  60. package/dist/{chunk-7AUZG5EW.js → chunk-E2MTHHLS.js} +3 -3
  61. package/dist/{chunk-7AUZG5EW.js.map → chunk-E2MTHHLS.js.map} +1 -1
  62. package/dist/{chunk-JG4ONAOI.js → chunk-EI55KWHP.js} +2 -2
  63. package/dist/chunk-EI55KWHP.js.map +1 -0
  64. package/dist/{chunk-MVKHSAKE.js → chunk-GE2BQXB3.js} +41 -4
  65. package/dist/chunk-GE2BQXB3.js.map +1 -0
  66. package/dist/{chunk-KELWWCMX.js → chunk-I2K4OQKB.js} +4 -4
  67. package/dist/chunk-I2K4OQKB.js.map +1 -0
  68. package/dist/chunk-IFDTSVE6.js +9 -0
  69. package/dist/chunk-IFDTSVE6.js.map +1 -0
  70. package/dist/{chunk-TPLVC5BE.js → chunk-IR32NI2O.js} +336 -247
  71. package/dist/chunk-IR32NI2O.js.map +1 -0
  72. package/dist/{chunk-ZKKO4MHC.js → chunk-JYKP7TBZ.js} +4 -2
  73. package/dist/chunk-JYKP7TBZ.js.map +1 -0
  74. package/dist/{chunk-F3PZGFEA.js → chunk-K3C35KGR.js} +4 -4
  75. package/dist/chunk-K3C35KGR.js.map +1 -0
  76. package/dist/{chunk-4RECPEHI.js → chunk-KBS3GP6S.js} +4 -3
  77. package/dist/chunk-KBS3GP6S.js.map +1 -0
  78. package/dist/{chunk-YHRJNKD5.js → chunk-KS7EXW4P.js} +6 -4
  79. package/dist/chunk-KS7EXW4P.js.map +1 -0
  80. package/dist/{chunk-V6N3YLTM.js → chunk-LTOTL5AS.js} +3 -3
  81. package/dist/chunk-LTOTL5AS.js.map +1 -0
  82. package/dist/chunk-M64TAGZY.js +590 -0
  83. package/dist/chunk-M64TAGZY.js.map +1 -0
  84. package/dist/{chunk-JZZVWTUB.js → chunk-MMOQR426.js} +2 -2
  85. package/dist/chunk-MMOQR426.js.map +1 -0
  86. package/dist/{chunk-SJBMKA4X.js → chunk-OHT2AXER.js} +11 -10
  87. package/dist/chunk-OHT2AXER.js.map +1 -0
  88. package/dist/{chunk-4Z4QSTRF.js → chunk-OZKBIPXU.js} +38 -5
  89. package/dist/chunk-OZKBIPXU.js.map +1 -0
  90. package/dist/{chunk-Q2SLOMN6.js → chunk-RHMY45DK.js} +4 -4
  91. package/dist/chunk-RHMY45DK.js.map +1 -0
  92. package/dist/{chunk-BZXA5SSA.js → chunk-S7QB5KMM.js} +2 -2
  93. package/dist/{chunk-BZXA5SSA.js.map → chunk-S7QB5KMM.js.map} +1 -1
  94. package/dist/{chunk-HDXUHLTQ.js → chunk-SHECA2N4.js} +8 -2
  95. package/dist/chunk-SHECA2N4.js.map +1 -0
  96. package/dist/{chunk-R6FIXYAE.js → chunk-SJEPM5ZU.js} +2 -2
  97. package/dist/{chunk-R6FIXYAE.js.map → chunk-SJEPM5ZU.js.map} +1 -1
  98. package/dist/{chunk-FJMABKKV.js → chunk-UQ4FRQ6M.js} +35 -17
  99. package/dist/chunk-UQ4FRQ6M.js.map +1 -0
  100. package/dist/{chunk-S4ZGTDSG.js → chunk-UU37OR3D.js} +2 -2
  101. package/dist/chunk-UU37OR3D.js.map +1 -0
  102. package/dist/{chunk-SWXWLSUD.js → chunk-WEQNPYVA.js} +1 -1
  103. package/dist/{chunk-SWXWLSUD.js.map → chunk-WEQNPYVA.js.map} +1 -1
  104. package/dist/{chunk-5SFHBYEY.js → chunk-WUVHP3UC.js} +97 -24
  105. package/dist/chunk-WUVHP3UC.js.map +1 -0
  106. package/dist/{chunk-3S3WXAZ5.js → chunk-X43QQWVC.js} +3 -2
  107. package/dist/chunk-X43QQWVC.js.map +1 -0
  108. package/dist/{chunk-Z3T24FX3.js → chunk-YE6KCAIN.js} +3 -2
  109. package/dist/chunk-YE6KCAIN.js.map +1 -0
  110. package/dist/{chunk-BCO673YW.js → chunk-Z3BT2SZE.js} +3 -3
  111. package/dist/chunk-Z3BT2SZE.js.map +1 -0
  112. package/dist/{chunk-NYNNNEAU.js → chunk-ZC4KSRAF.js} +7 -7
  113. package/dist/chunk-ZC4KSRAF.js.map +1 -0
  114. package/dist/collapsible-panel.d.ts +2 -2
  115. package/dist/collapsible-panel.js +2 -2
  116. package/dist/collapsible-panel.js.map +1 -1
  117. package/dist/column-explorer.d.ts +2 -2
  118. package/dist/column-explorer.js +2 -2
  119. package/dist/column-explorer.js.map +1 -1
  120. package/dist/dialog-surface-controller-BeKZ3e8Z.d.ts +251 -0
  121. package/dist/editor-frame.d.ts +1 -1
  122. package/dist/editor-frame.js +1 -1
  123. package/dist/editor.d.ts +38 -20
  124. package/dist/editor.js +10869 -6993
  125. package/dist/editor.js.map +1 -1
  126. package/dist/file-picker.js +1 -1
  127. package/dist/gauge.d.ts +73 -0
  128. package/dist/gauge.js +157 -0
  129. package/dist/gauge.js.map +1 -0
  130. package/dist/help-tags-register.js +2 -1
  131. package/dist/help-tags-register.js.map +1 -1
  132. package/dist/index.d.ts +2 -1
  133. package/dist/index.js +29 -28
  134. package/dist/list-action-row.d.ts +1 -1
  135. package/dist/list-action-row.js +1 -1
  136. package/dist/list-detail-dialog.d.ts +7 -7
  137. package/dist/list-detail-dialog.js +6 -5
  138. package/dist/list-detail-dialog.js.map +1 -1
  139. package/dist/list-header.d.ts +1 -1
  140. package/dist/list-header.js +1 -1
  141. package/dist/list-item.d.ts +1 -1
  142. package/dist/list-item.js +1 -1
  143. package/dist/message-composer.js +1 -1
  144. package/dist/nav-stack.d.ts +6 -6
  145. package/dist/nav-stack.js +1 -1
  146. package/dist/popup-menu-register.js +1 -7
  147. package/dist/popup-menu-register.js.map +1 -1
  148. package/dist/popup-menu.d.ts +2 -2
  149. package/dist/popup-menu.js +1 -1
  150. package/dist/resizable-region.js +1 -1
  151. package/dist/segmented-control.d.ts +22 -1
  152. package/dist/segmented-control.js +3 -1
  153. package/dist/select-register.js +17 -23
  154. package/dist/select-register.js.map +1 -1
  155. package/dist/split-view.d.ts +6 -6
  156. package/dist/split-view.js +1 -1
  157. package/dist/styles/badge.css +39 -0
  158. package/dist/styles/collapsible-panel.css +34 -25
  159. package/dist/styles/components/actions/popup-menu/popup-menu.css +4 -4
  160. package/dist/styles/components/actions/toolbar/toolbar.css +34 -1
  161. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +1 -1
  162. package/dist/styles/components/feedback/badge/badge.css +39 -0
  163. package/dist/styles/components/feedback/gauge/gauge.css +132 -0
  164. package/dist/styles/components/forms/segmented-control/segmented-control.css +17 -1
  165. package/dist/styles/components/layout/collapsible-panel/collapsible-panel.css +34 -25
  166. package/dist/styles/components/layout/split-view/split-view.css +19 -33
  167. package/dist/styles/components/navigation/nav-stack/nav-stack.css +15 -19
  168. package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +30 -29
  169. package/dist/styles/components/surfaces/editor-frame/editor-frame.css +2 -2
  170. package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +259 -4
  171. package/dist/styles/editor/editor.css +55 -0
  172. package/dist/styles/editor-frame.css +2 -2
  173. package/dist/styles/gauge.css +132 -0
  174. package/dist/styles/nav-stack.css +15 -19
  175. package/dist/styles/popup-menu.css +4 -4
  176. package/dist/styles/segmented-control.css +17 -1
  177. package/dist/styles/split-view.css +19 -33
  178. package/dist/styles/styles.css +1 -0
  179. package/dist/styles/surface-scaffold.css +259 -4
  180. package/dist/styles/tab-navigator.css +30 -29
  181. package/dist/styles/toolbar-control-group.css +1 -1
  182. package/dist/styles/toolbar.css +34 -1
  183. package/dist/styles/webawesome.css +4 -5
  184. package/dist/surface-scaffold-register.js +2 -1
  185. package/dist/surface-scaffold-register.js.map +1 -1
  186. package/dist/surface-scaffold.d.ts +153 -246
  187. package/dist/surface-scaffold.js +3 -2
  188. package/dist/toolbar-control-group.d.ts +2 -2
  189. package/dist/toolbar-control-group.js +1 -1
  190. package/dist/toolbar.d.ts +6 -1
  191. package/dist/toolbar.js +1 -1
  192. package/dist/tree-list.d.ts +2 -2
  193. package/dist/tree-list.js +1 -1
  194. package/dist/wire-catalog.d.ts +1 -1
  195. package/dist/wire-catalog.js +3 -2
  196. package/dist/wire-catalog.js.map +1 -1
  197. package/dist/wire-checkboxes.js +2 -1
  198. package/dist/wire-choice-chips.js +2 -1
  199. package/dist/wire-color-fields.js +2 -1
  200. package/dist/wire-color-pickers.js +2 -1
  201. package/dist/wire-comboboxes.d.ts +2 -0
  202. package/dist/wire-comboboxes.js +2 -1
  203. package/dist/wire-content-items.js +2 -1
  204. package/dist/wire-corner-status.js +2 -1
  205. package/dist/wire-nav-stack.js +2 -1
  206. package/dist/wire-overlay-sheets.js +2 -1
  207. package/dist/wire-paged-views.js +2 -2
  208. package/dist/wire-paged-views.js.map +1 -1
  209. package/dist/wire-resizable-regions.js +2 -1
  210. package/dist/wire-scroll-dividers.js +1 -1
  211. package/dist/wire-search-fields.js +2 -1
  212. package/dist/wire-sidebar.js +2 -1
  213. package/dist/wire-tab-bars.d.ts +41 -2
  214. package/dist/wire-tab-bars.js +1 -1
  215. package/dist/wire-tab-navigator.js +2 -1
  216. package/dist/wire-tag-fields.js +2 -1
  217. package/dist/wire-workbench.js +2 -1
  218. package/dist/workbench-dialog.d.ts +7 -7
  219. package/dist/workbench-dialog.js +5 -4
  220. package/dist/workbench-dialog.js.map +1 -1
  221. package/dist/workbench.d.ts +1 -1
  222. package/dist/workbench.js +1 -1
  223. package/docs/accessibility.md +3 -6
  224. package/docs/component-contract.md +47 -7
  225. package/docs/component-selection.md +90 -79
  226. package/docs/design/sketch/Kerf-UI.sketch +0 -0
  227. package/docs/design/sketch/README.md +1 -1
  228. package/docs/design/sketch/content/README.md +8 -8
  229. package/docs/design/sketch/coverage.md +7 -5
  230. package/docs/design/sketch/unified/README.md +1 -1
  231. package/docs/design/sketch/unified/pages/content.png +0 -0
  232. package/docs/design/templates/button/full-width-dark.svg +1 -1
  233. package/docs/design/templates/button/full-width.svg +1 -1
  234. package/docs/design/templates/button/icons-dark.svg +1 -1
  235. package/docs/design/templates/button/icons.svg +1 -1
  236. package/docs/design/templates/button/pill-dark.svg +1 -1
  237. package/docs/design/templates/button/pill.svg +1 -1
  238. package/docs/design/templates/button/toggles-dark.svg +1 -1
  239. package/docs/design/templates/button/toggles.svg +1 -1
  240. package/docs/design/templates/button-dark.svg +1 -1
  241. package/docs/design/templates/button.svg +1 -1
  242. package/docs/design/templates/checkbox/compact-dark.svg +1 -1
  243. package/docs/design/templates/checkbox/compact.svg +1 -1
  244. package/docs/design/templates/checkbox/mixed-dark.svg +1 -1
  245. package/docs/design/templates/checkbox/mixed.svg +1 -1
  246. package/docs/design/templates/checkbox/states-dark.svg +1 -1
  247. package/docs/design/templates/checkbox/states.svg +1 -1
  248. package/docs/design/templates/checkbox-dark.svg +1 -1
  249. package/docs/design/templates/checkbox-group/vertical-dark.svg +1 -1
  250. package/docs/design/templates/checkbox-group/vertical.svg +1 -1
  251. package/docs/design/templates/checkbox-group-dark.svg +1 -1
  252. package/docs/design/templates/checkbox-group.svg +1 -1
  253. package/docs/design/templates/checkbox.svg +1 -1
  254. package/docs/design/templates/chip/tags-dark.svg +1 -1
  255. package/docs/design/templates/chip/tags.svg +1 -1
  256. package/docs/design/templates/chip-dark.svg +1 -1
  257. package/docs/design/templates/chip.svg +1 -1
  258. package/docs/design/templates/choice-chips/compact-icons-dark.svg +1 -1
  259. package/docs/design/templates/choice-chips/compact-icons.svg +1 -1
  260. package/docs/design/templates/choice-chips-dark.svg +1 -1
  261. package/docs/design/templates/choice-chips.svg +1 -1
  262. package/docs/design/templates/color-field/compact-dark.svg +1 -1
  263. package/docs/design/templates/color-field/compact.svg +1 -1
  264. package/docs/design/templates/color-field/error-dark.svg +1 -1
  265. package/docs/design/templates/color-field/error.svg +1 -1
  266. package/docs/design/templates/color-field/hint-dark.svg +1 -1
  267. package/docs/design/templates/color-field/hint.svg +1 -1
  268. package/docs/design/templates/color-field-dark.svg +1 -1
  269. package/docs/design/templates/color-field.svg +1 -1
  270. package/docs/design/templates/color-picker/gray-dark.svg +1 -1
  271. package/docs/design/templates/color-picker/gray.svg +1 -1
  272. package/docs/design/templates/color-picker/hsb-dark.svg +1 -1
  273. package/docs/design/templates/color-picker/hsb.svg +1 -1
  274. package/docs/design/templates/color-picker/rgb-dark.svg +1 -1
  275. package/docs/design/templates/color-picker/rgb.svg +1 -1
  276. package/docs/design/templates/color-picker-dark.svg +1 -1
  277. package/docs/design/templates/color-picker.svg +1 -1
  278. package/docs/design/templates/disclosure/embedded-dark.svg +1 -1
  279. package/docs/design/templates/disclosure/embedded.svg +1 -1
  280. package/docs/design/templates/disclosure/framed-sunken-dark.svg +1 -1
  281. package/docs/design/templates/disclosure/framed-sunken.svg +1 -1
  282. package/docs/design/templates/disclosure/plain-dark.svg +1 -1
  283. package/docs/design/templates/disclosure/plain.svg +1 -1
  284. package/docs/design/templates/disclosure-dark.svg +1 -1
  285. package/docs/design/templates/disclosure.svg +1 -1
  286. package/docs/design/templates/empty-state/filtered-dark.svg +1 -1
  287. package/docs/design/templates/empty-state/filtered.svg +1 -1
  288. package/docs/design/templates/empty-state/with-action-dark.svg +1 -1
  289. package/docs/design/templates/empty-state/with-action.svg +1 -1
  290. package/docs/design/templates/empty-state-dark.svg +1 -1
  291. package/docs/design/templates/empty-state.svg +1 -1
  292. package/docs/design/templates/gauge/bare-dark.svg +1 -0
  293. package/docs/design/templates/gauge/bare.svg +1 -0
  294. package/docs/design/templates/gauge/full-dark.svg +1 -0
  295. package/docs/design/templates/gauge/full.svg +1 -0
  296. package/docs/design/templates/gauge-dark.svg +1 -0
  297. package/docs/design/templates/gauge.svg +1 -0
  298. package/docs/design/templates/list/compact-dark.svg +1 -1
  299. package/docs/design/templates/list/compact.svg +1 -1
  300. package/docs/design/templates/list/stack-dark.svg +1 -1
  301. package/docs/design/templates/list/stack.svg +1 -1
  302. package/docs/design/templates/list-action-row/default-dark.svg +1 -1
  303. package/docs/design/templates/list-action-row/default.svg +1 -1
  304. package/docs/design/templates/list-action-row/icon-tile-dark.svg +1 -1
  305. package/docs/design/templates/list-action-row/icon-tile.svg +1 -1
  306. package/docs/design/templates/list-action-row/selected-dark.svg +1 -1
  307. package/docs/design/templates/list-action-row/selected.svg +1 -1
  308. package/docs/design/templates/list-action-row/trailing-menu-dark.svg +1 -1
  309. package/docs/design/templates/list-action-row/trailing-menu.svg +1 -1
  310. package/docs/design/templates/list-action-row-dark.svg +1 -1
  311. package/docs/design/templates/list-action-row.svg +1 -1
  312. package/docs/design/templates/list-dark.svg +1 -1
  313. package/docs/design/templates/list-header/action-dark.svg +1 -1
  314. package/docs/design/templates/list-header/action.svg +1 -1
  315. package/docs/design/templates/list-header/inline-action-dark.svg +1 -1
  316. package/docs/design/templates/list-header/inline-action.svg +1 -1
  317. package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -1
  318. package/docs/design/templates/list-header/toggle-collapsed.svg +1 -1
  319. package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -1
  320. package/docs/design/templates/list-header/toggle-expanded.svg +1 -1
  321. package/docs/design/templates/list-header-dark.svg +1 -1
  322. package/docs/design/templates/list-header.svg +1 -1
  323. package/docs/design/templates/list-item/default-dark.svg +1 -1
  324. package/docs/design/templates/list-item/default.svg +1 -1
  325. package/docs/design/templates/list-item/icon-tile-dark.svg +1 -1
  326. package/docs/design/templates/list-item/icon-tile.svg +1 -1
  327. package/docs/design/templates/list-item/multiline-dark.svg +1 -1
  328. package/docs/design/templates/list-item/multiline.svg +1 -1
  329. package/docs/design/templates/list-item/selected-dark.svg +1 -1
  330. package/docs/design/templates/list-item/selected.svg +1 -1
  331. package/docs/design/templates/list-item/trailing-dark.svg +1 -1
  332. package/docs/design/templates/list-item/trailing.svg +1 -1
  333. package/docs/design/templates/list-item-dark.svg +1 -1
  334. package/docs/design/templates/list-item.svg +1 -1
  335. package/docs/design/templates/list.svg +1 -1
  336. package/docs/design/templates/progress-ring/sizes-dark.svg +1 -1
  337. package/docs/design/templates/progress-ring/sizes.svg +1 -1
  338. package/docs/design/templates/progress-ring/tones-dark.svg +1 -1
  339. package/docs/design/templates/progress-ring/tones.svg +1 -1
  340. package/docs/design/templates/progress-ring-dark.svg +1 -1
  341. package/docs/design/templates/progress-ring.svg +1 -1
  342. package/docs/design/templates/search-field/empty-dark.svg +1 -1
  343. package/docs/design/templates/search-field/empty.svg +1 -1
  344. package/docs/design/templates/search-field/tokens-dark.svg +1 -1
  345. package/docs/design/templates/search-field/tokens.svg +1 -1
  346. package/docs/design/templates/search-field-dark.svg +1 -1
  347. package/docs/design/templates/search-field.svg +1 -1
  348. package/docs/design/templates/segmented-control/equal-dark.svg +1 -1
  349. package/docs/design/templates/segmented-control/equal.svg +1 -1
  350. package/docs/design/templates/segmented-control/pill-small-dark.svg +1 -1
  351. package/docs/design/templates/segmented-control/pill-small.svg +1 -1
  352. package/docs/design/templates/segmented-control-dark.svg +1 -1
  353. package/docs/design/templates/segmented-control.svg +1 -1
  354. package/docs/design/templates/select/compact-dark.svg +1 -1
  355. package/docs/design/templates/select/compact.svg +1 -1
  356. package/docs/design/templates/select/form-dark.svg +1 -1
  357. package/docs/design/templates/select/form.svg +1 -1
  358. package/docs/design/templates/select/icons-dark.svg +1 -1
  359. package/docs/design/templates/select/icons.svg +1 -1
  360. package/docs/design/templates/select-dark.svg +1 -1
  361. package/docs/design/templates/select.svg +1 -1
  362. package/docs/design/templates/split-button/full-width-dark.svg +1 -1
  363. package/docs/design/templates/split-button/full-width.svg +1 -1
  364. package/docs/design/templates/split-button/pill-dark.svg +1 -1
  365. package/docs/design/templates/split-button/pill.svg +1 -1
  366. package/docs/design/templates/split-button/states-dark.svg +1 -1
  367. package/docs/design/templates/split-button/states.svg +1 -1
  368. package/docs/design/templates/split-button/tones-dark.svg +1 -1
  369. package/docs/design/templates/split-button/tones.svg +1 -1
  370. package/docs/design/templates/split-button-dark.svg +1 -1
  371. package/docs/design/templates/split-button.svg +1 -1
  372. package/docs/design/templates/state-banner/danger-dark.svg +1 -1
  373. package/docs/design/templates/state-banner/danger.svg +1 -1
  374. package/docs/design/templates/state-banner/info-badge-dark.svg +1 -1
  375. package/docs/design/templates/state-banner/info-badge.svg +1 -1
  376. package/docs/design/templates/state-banner/info-dark.svg +1 -1
  377. package/docs/design/templates/state-banner/info.svg +1 -1
  378. package/docs/design/templates/state-banner/strip-dark.svg +1 -1
  379. package/docs/design/templates/state-banner/strip.svg +1 -1
  380. package/docs/design/templates/state-banner/success-dark.svg +1 -1
  381. package/docs/design/templates/state-banner/success.svg +1 -1
  382. package/docs/design/templates/state-banner/warning-dark.svg +1 -1
  383. package/docs/design/templates/state-banner/warning.svg +1 -1
  384. package/docs/design/templates/state-banner-dark.svg +1 -1
  385. package/docs/design/templates/state-banner.svg +1 -1
  386. package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -1
  387. package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -1
  388. package/docs/design/templates/tab-bar-dark.svg +1 -1
  389. package/docs/design/templates/tab-bar.svg +1 -1
  390. package/docs/design/templates/tag-field/error-dark.svg +1 -1
  391. package/docs/design/templates/tag-field/error.svg +1 -1
  392. package/docs/design/templates/tag-field/tags-dark.svg +1 -1
  393. package/docs/design/templates/tag-field/tags.svg +1 -1
  394. package/docs/design/templates/tag-field-dark.svg +1 -1
  395. package/docs/design/templates/tag-field.svg +1 -1
  396. package/docs/design/templates/text-field/labeled-dark.svg +1 -1
  397. package/docs/design/templates/text-field/labeled.svg +1 -1
  398. package/docs/design/templates/text-field/search-dark.svg +1 -1
  399. package/docs/design/templates/text-field/search.svg +1 -1
  400. package/docs/design/templates/text-field-dark.svg +1 -1
  401. package/docs/design/templates/text-field.svg +1 -1
  402. package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -1
  403. package/docs/design/templates/toolbar/title-and-actions.svg +1 -1
  404. package/docs/design/templates/toolbar/width-visibility-320-dark.svg +1 -1
  405. package/docs/design/templates/toolbar/width-visibility-320.svg +1 -1
  406. package/docs/design/templates/toolbar/width-visibility-600-dark.svg +1 -1
  407. package/docs/design/templates/toolbar/width-visibility-600.svg +1 -1
  408. package/docs/design/templates/toolbar-control-group/borderless-single-dark.svg +1 -1
  409. package/docs/design/templates/toolbar-control-group/borderless-single.svg +1 -1
  410. package/docs/design/templates/toolbar-control-group/glass-dark.svg +1 -1
  411. package/docs/design/templates/toolbar-control-group/glass.svg +1 -1
  412. package/docs/design/templates/toolbar-control-group/icon-buttons-dark.svg +1 -1
  413. package/docs/design/templates/toolbar-control-group/icon-buttons.svg +1 -1
  414. package/docs/design/templates/toolbar-control-group/icon-tile-brand-dark.svg +1 -1
  415. package/docs/design/templates/toolbar-control-group/icon-tile-brand.svg +1 -1
  416. package/docs/design/templates/toolbar-control-group/icon-tile-danger-dark.svg +1 -1
  417. package/docs/design/templates/toolbar-control-group/icon-tile-danger.svg +1 -1
  418. package/docs/design/templates/toolbar-control-group/icon-tile-neutral-dark.svg +1 -1
  419. package/docs/design/templates/toolbar-control-group/icon-tile-neutral.svg +1 -1
  420. package/docs/design/templates/toolbar-control-group/icon-tile-success-dark.svg +1 -1
  421. package/docs/design/templates/toolbar-control-group/icon-tile-success.svg +1 -1
  422. package/docs/design/templates/toolbar-control-group/icon-tile-warning-dark.svg +1 -1
  423. package/docs/design/templates/toolbar-control-group/icon-tile-warning.svg +1 -1
  424. package/docs/design/templates/toolbar-control-group/push-buttons-dark.svg +1 -1
  425. package/docs/design/templates/toolbar-control-group/push-buttons.svg +1 -1
  426. package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -1
  427. package/docs/design/templates/toolbar-control-group/with-text.svg +1 -1
  428. package/docs/design/templates/toolbar-control-group-dark.svg +1 -1
  429. package/docs/design/templates/toolbar-control-group.svg +1 -1
  430. package/docs/design/templates/toolbar-dark.svg +1 -1
  431. package/docs/design/templates/toolbar.svg +1 -1
  432. package/docs/design/templates/tree-list/files-dark.svg +1 -1
  433. package/docs/design/templates/tree-list/files.svg +1 -1
  434. package/docs/design/templates/tree-list/outline-dark.svg +1 -1
  435. package/docs/design/templates/tree-list/outline.svg +1 -1
  436. package/docs/design/templates/tree-list-dark.svg +1 -1
  437. package/docs/design/templates/tree-list.svg +1 -1
  438. package/docs/design/templates/value-table/details-dark.svg +1 -1
  439. package/docs/design/templates/value-table/details.svg +1 -1
  440. package/docs/design/templates/value-table-dark.svg +1 -1
  441. package/docs/design/templates/value-table.svg +1 -1
  442. package/docs/design/templates.md +5 -4
  443. package/docs/editor-frame.md +1 -1
  444. package/docs/editor-host.md +15 -2
  445. package/docs/gauge.md +55 -0
  446. package/docs/overlay-tooltip.md +1 -1
  447. package/docs/progress.md +3 -2
  448. package/docs/recipes.md +1 -1
  449. package/docs/surface-scaffold.md +63 -2
  450. package/docs/ui-analyzer.md +42 -0
  451. package/docs/ui-doctor.md +45 -1
  452. package/docs/ui-evaluator.md +35 -0
  453. package/docs/ux-demo.md +1 -1
  454. package/docs/view.md +295 -0
  455. package/docs/webawesome-theme.md +16 -0
  456. package/doctor/cli.mjs +36 -31
  457. package/doctor/index.mjs +349 -162
  458. package/evaluator/cli.mjs +36 -30
  459. package/llms.txt +27 -5
  460. package/package.json +10 -2
  461. package/props/cli.mjs +47 -21
  462. package/scripts/lib/cli-args.mjs +98 -0
  463. package/ux-demo/recipes/compact-toolbar.tsx +1 -1
  464. package/ux-demo/recipes/loading-inspector.tsx +1 -1
  465. package/view/catalog.mjs +229 -0
  466. package/view/child-kind.mjs +22 -0
  467. package/view/cli.mjs +142 -119
  468. package/view/contract.mjs +84 -11
  469. package/view/css-grammar.mjs +93 -0
  470. package/view/generate.d.mts +16 -0
  471. package/view/generate.mjs +122 -43
  472. package/view/index.d.mts +80 -14
  473. package/view/index.mjs +5 -9
  474. package/view/interpret.mjs +104 -36
  475. package/view/types.mjs +161 -0
  476. package/view/validate-move.mjs +66 -30
  477. package/view/validate.mjs +420 -654
  478. package/vite-editor.d.mts +16 -1
  479. package/vite-editor.mjs +74 -4
  480. package/dist/chunk-2E7S5C4D.js.map +0 -1
  481. package/dist/chunk-2LM3PYHA.js.map +0 -1
  482. package/dist/chunk-3JOEJT2Z.js.map +0 -1
  483. package/dist/chunk-3S3WXAZ5.js.map +0 -1
  484. package/dist/chunk-3WYREXW4.js.map +0 -1
  485. package/dist/chunk-4RECPEHI.js.map +0 -1
  486. package/dist/chunk-4Z4QSTRF.js.map +0 -1
  487. package/dist/chunk-5SFHBYEY.js.map +0 -1
  488. package/dist/chunk-ADMWT7FX.js.map +0 -1
  489. package/dist/chunk-BCO673YW.js.map +0 -1
  490. package/dist/chunk-CNM6ZWP2.js.map +0 -1
  491. package/dist/chunk-DJ65XFVN.js.map +0 -1
  492. package/dist/chunk-EXGDKG7B.js.map +0 -1
  493. package/dist/chunk-F3PZGFEA.js.map +0 -1
  494. package/dist/chunk-FJMABKKV.js.map +0 -1
  495. package/dist/chunk-GVII4JSD.js.map +0 -1
  496. package/dist/chunk-HDXUHLTQ.js.map +0 -1
  497. package/dist/chunk-JG4ONAOI.js.map +0 -1
  498. package/dist/chunk-JZZVWTUB.js.map +0 -1
  499. package/dist/chunk-KELWWCMX.js.map +0 -1
  500. package/dist/chunk-KLR3DCHH.js.map +0 -1
  501. package/dist/chunk-LD6A6PYB.js +0 -268
  502. package/dist/chunk-LD6A6PYB.js.map +0 -1
  503. package/dist/chunk-MVKHSAKE.js.map +0 -1
  504. package/dist/chunk-NYNNNEAU.js.map +0 -1
  505. package/dist/chunk-Q2CLQ3IJ.js.map +0 -1
  506. package/dist/chunk-Q2SLOMN6.js.map +0 -1
  507. package/dist/chunk-S4ZGTDSG.js.map +0 -1
  508. package/dist/chunk-SJBMKA4X.js.map +0 -1
  509. package/dist/chunk-SPI6VMIY.js.map +0 -1
  510. package/dist/chunk-TPLVC5BE.js.map +0 -1
  511. package/dist/chunk-V6N3YLTM.js.map +0 -1
  512. package/dist/chunk-VNT4MXR5.js +0 -548
  513. package/dist/chunk-VNT4MXR5.js.map +0 -1
  514. package/dist/chunk-VPDSPD76.js.map +0 -1
  515. package/dist/chunk-YHRJNKD5.js.map +0 -1
  516. package/dist/chunk-Z3T24FX3.js.map +0 -1
  517. package/dist/chunk-ZKKO4MHC.js.map +0 -1
  518. package/dist/{nav-stack-DwxpXxqJ.d.ts → nav-stack-vQ3ieerq.d.ts} +3 -3
package/ai/skill.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: kerf-ui
3
3
  description: Build interfaces with kerfjs and the @kerfjs/ui production component package. Use whenever code imports @kerfjs/ui or a task asks for Kerf UI components.
4
- kerf-ui-skill-version: 1.72.0
4
+ kerf-ui-skill-version: 1.75.0
5
5
  ---
6
6
 
7
7
  # Building with @kerfjs/ui
@@ -28,6 +28,10 @@ by type name (`createEditor({ fieldEditors })`, or the Vite plugin's
28
28
  `src/kerf-ui-field-editors.ts`) and compose `context.form()` with `set` and
29
29
  `control` attributes rather than rebuilding the type-driven form
30
30
  (`../docs/editor-host.md`).
31
+ A view document (`*.kui.json`) is the source of truth for its generated
32
+ `*.view.ts`: change the document and run `kerf-ui-view generate`, never edit
33
+ the module, and validate documents with `validateView` from
34
+ `@kerfjs/ui/view` (`../docs/view.md`).
31
35
  Treat each `KUI-T###` contract as an exact declaration guarantee, including its
32
36
  documented dynamic-data widening. Do not extend those diagnostics to child
33
37
  markup, live DOM relationships, disposer invocation, or other conditions that
@@ -379,27 +383,27 @@ reports lowercase words in known title-style labels as `KUI-D040`. See
379
383
 
380
384
  Quick routing:
381
385
 
382
- | Need | Choose | Nearest alternatives / boundary |
383
- | -------------------------------------- | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
384
- | Navigation row | `ListItem` | Use an ordinary link or button when sidebar/menu anatomy and state do not apply. Its rounded root clips overflowing descendants; set `multiline` when the primary label should wrap. Multiline leading icons stay aligned with the first text line. |
385
- | Nested items (a tree or outline) | `TreeList` + `wireTreeList` | Rows are ListItems indented by depth with disclosure arrows; the app owns `nodes`, `expanded`, and `selected` and handles `action` / `toggleAction`. For drag-and-drop, mark nodes `draggable` and pass `wireTreeList(root, { canDrop, onMove })`; moves land `before`, `after`, or `inside` a row. A pointer drag your app runs from outside the tree (a palette) targets rows through `treeListExternalDrop(root, { canDrop })` (`over(hit, clientY, sourceId)` then `clear()`). Never indent `ListItem` rows or draw disclosure arrows yourself. Use `List` for a flat list and `Disclosure` for one collapsible section. |
386
- | A deep hierarchy, one level per column | `ColumnExplorer` + `wireColumnExplorer` | Columns of ListItem rows in a ColumnTrack; the app owns `nodes` and `path` (`treeListPath(nodes, id)` in `action`). Use `layout="paged"` on a phone. Never build the columns by hand; use TreeList for a shallow hierarchy. |
387
- | Pages in one panel region | `PagedView` + `wirePagedViews` | Full-size pages with floating page dots; the app owns `page` and sets it from `onPageChange(page, viewId)`. Page content owns its inset. Named destinations use TabBar + TabPanel. |
388
- | Horizontal flex layout | `Row` | Use `hAlign`/`vAlign`, a typed `gap`, and opt-in `wrap`; use `List` when the main axis is vertical. |
389
- | Equal-width columns | `Grid` | Use fixed `columns` or typed `minColumnWidth` for automatic container-width collapse, plus typed `gap`/`flex`. Use CSS grid for asymmetric/intrinsic tracks and `ResizableRegion` for adjustable boundaries. |
390
- | Navigation row with a trailing action | `ListActionRow` | Use `ListItem` when the trailing region is dormant; never put controls inside either component's SafeHtml slots. Multiline leading icons stay aligned with the first text line. A trailing "…" overflow menu is `trailingMenu` (a real `PopupMenu`), not a trailing button. |
391
- | Page, panel, or dialog heading | `Toolbar` + `ToolbarText` | Use a direct extra-large `ToolbarText`, optional grouped icon, grouped trailing controls, and short supporting copy as the `ToolbarText` `description` (quiet, one line, aligned under the title, with `descriptionId` for `aria-describedby`; longer copy stays app-owned content below). |
392
- | Exclusive choice | `TabBar`, `SegmentedControl`, or `Select` | Tabs switch tabpanels; segments expose a few choices; `ChoiceChips` keeps a larger visible set as wrapping pills (`multiple` for any number); Select handles a longer value list. |
393
- | Status or absent content | `StateBanner` or `EmptyState` | `StateBanner` accepts an optional terse, tone-tinted `badge` beside its title for a count or compact status; do not rely on color alone. toasts (`toast()` from `kerfjs/overlay`) are transient and never the only record of important state; import `@kerfjs/ui/overlay-toast.css` once to style them (pass `exitClass: 'kui-toast-exit'`, `exitDuration: 200`, `variant` for a tone, or a `StateBanner` as the only content) instead of `wa-toast` or hand-written toast CSS. A hover and focus explanation on any element is `tooltip()` from `kerfjs/overlay` with `@kerfjs/ui/overlay-tooltip.css` imported (`exitClass: 'kui-tooltip-exit'`, `exitDuration: 100`), never `wa-tooltip`; icon-only Kerf controls already get help tags. Show-and-hide content is `Disclosure` (`@kerfjs/ui/disclosure`, a native details element on content-item geometry; inside a `ContentItem` use `appearance="embedded"` with `flush` `Text` content so the item's inset frames it once; Disclosures sharing a `name` form an accordion; close one from code with `element.open = false`), never `wa-details` or `wa-accordion`. Progress is `ProgressBar` (`@kerfjs/ui/progress-bar`, a native progress element with a `label` or `ariaLabel`, `showValue`/`valueText`, and an indeterminate sweep without `value`) or, where a bar does not fit, `ProgressRing` (`@kerfjs/ui/progress-ring`, `small`/`medium`/`large`), never `wa-progress-bar` or `wa-progress-ring`. A value on a range is `Slider` (`@kerfjs/ui/slider`, a native range input with `label`, `showValue`/`unit`, `ticks`, and `hint`; call `wireSliders(root)` from `@kerfjs/ui/wire-sliders` once so the fill and readout follow a drag), never `wa-slider`. A list of short values submitted as form values is `TagField` (`@kerfjs/ui/tag-field`, SearchField's token editor as a form field with a hidden input per tag; call `wireTagFields(root, { onChange })` from `@kerfjs/ui/wire-tag-fields` and re-render with the reported tags; `max`, `normalize`, and `onReject` for validation), never `wa-tag-input`. One color from a small fixed palette is `ColorSwatches` (`@kerfjs/ui/color-swatches`, a native radio group of named round swatches with a hue-independent ring and an optional `'transparent'` no-color swatch). Any color is `ColorPicker` (`@kerfjs/ui/color-picker`, an inline panel with an area, channel sliders that follow the color model (red/green/blue, hue/saturation/lightness or brightness, or gray level, each track previewing its channel, hue as a fixed rainbow) plus opacity, RGB/HSL/HSB/Grayscale fields, hex, presets, and samples; call `wireColorPickers(root, { onChange })` from `@kerfjs/ui/wire-color-pickers` and re-render with the reported `value` and `mode`). A color in a form or inspector is `ColorField` (`@kerfjs/ui/color-field`, a swatch-and-hex trigger that opens a ColorPicker in an AnchoredSurface; call `wireColorFields(root, { onChange, pickers })` from `@kerfjs/ui/wire-color-fields` and re-render), never `wa-color-picker`. |
394
- | Compact metadata | `Badge` | Configure status, count, category, or metadata presentation with tone, appearance, shape, and size props. For new content without a count use `size="dot"` (no children) with a `label` or `ariaHidden`. Cap long app-supplied text with `maxWidth` (a `CssLength`); it truncates with an ellipsis and the full string becomes the `title`. Do not build badges with application CSS or use them as interactive controls. |
395
- | Hero image atop a scrolling view | `BackdropImage` | Lags the scroll (`parallax`), blurs progressively (`blur`, an opacity cross-fade to a once-blurred copy), dissolves into a typed `fadeTo` color that also paints the content below, and carries `overlay` content; Kerf owns the compositor-only scroll timeline and the reduced-motion, static-effects, and reduced-transparency fallbacks. Never hand-roll scroll listeners, `background-attachment: fixed`, or mask gradients. |
396
- | Scroll-linked content effect | `ScrollEffect` | Wraps any content: `parallax`, `reveal`, `fade`, `scale`, or `dim` presets over an `entry`/`exit`/`cover`/`contain` range of its own view timeline, compositor-only and nested in array order, with Kerf-owned static fallbacks. Not for hero images (BackdropImage) or state changes (ContentSwap); never hand-roll scroll listeners or `animation-timeline` CSS. |
397
- | Loading placeholder | a component's `placeholder` prop, or `Skeleton` | Set `placeholder` on a value-bearing component (`Select`, `ListHeader`, `ListItem`, `ValueTableRow`, `SegmentedControl`, `StateBanner`, `TabBarItem`, `ToolbarText`, `ListActionRow`) to render its real chrome with value slots as subtle **unanimated** skeletons and interactivity disabled; only unknown values change, so a placeholder is never dimmed or styled as disabled (a control whose own `disabled` / `trailingActionDisabled` / choice `disabled` / `actionDisabled` prop is set keeps its live disabled tone via the reserved `data-kui-disabled` marker) — do not hand-rebuild an empty state. Component-drawn chrome stays live too: a `ListItem` or `ListActionRow` placeholder keeps its `busy` spinner while its `status` text (and a `ListItem`'s `trailing` content, always a value) becomes a skeleton. `Skeleton` is the standalone block for a custom slot. A known `TabBarItem` that is still opening takes `pending` instead: it keeps its name (quiet, and as its accessible name) and the same geometry, shows your `trailing` spinner, and stays selectable (close and drag disabled) so your panel can show placeholders until it loads. Use `LoadingSpinner` for known busy activity, not a skeleton; never animate a skeleton; prefer it over `wa-skeleton`. |
398
- | Adjustable or asymmetric columns | `ResizableRegion` or CSS grid | Use `ResizableRegion` only for a user-operable controlled separator, CSS grid for asymmetric/intrinsic tracks, and `Grid` for static equal-width tracks. |
399
- | Structured or ordinary search | `SearchField` or an input | Use token search only when text and ordered filter chips form one editor. |
400
- | Command menu | `PopupMenu` | Put it in a `single` `ToolbarControlGroup` with `nestedDropdown`; register `@kerfjs/ui/popup-menu/register` once. It draws the same popup as `Select` (caret, rows, check column, group titles); do not restyle either to match the other. Use `Select` when the user chooses a persistent value. |
401
- | Key/value facts | `ValueTable` with `ValueTableRow` | Use rows with `icon` only when the optional 24px leading visual adds context. |
402
- | Command search | Application-local semantics using shared layout vocabulary | No runtime component or production recipe is exported; the app owns behavior, policy, and copy. |
386
+ | Need | Choose | Nearest alternatives / boundary |
387
+ | -------------------------------------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
388
+ | Navigation row | `ListItem` | Use an ordinary link or button when sidebar/menu anatomy and state do not apply. Its rounded root clips overflowing descendants; set `multiline` when the primary label should wrap. Multiline leading icons stay aligned with the first text line. |
389
+ | Nested items (a tree or outline) | `TreeList` + `wireTreeList` | Rows are ListItems indented by depth with disclosure arrows; the app owns `nodes`, `expanded`, and `selected` and handles `action` / `toggleAction`. For drag-and-drop, mark nodes `draggable` and pass `wireTreeList(root, { canDrop, onMove })`; moves land `before`, `after`, or `inside` a row. A pointer drag your app runs from outside the tree (a palette) targets rows through `treeListExternalDrop(root, { canDrop })` (`over(hit, clientY, sourceId)` then `clear()`). Never indent `ListItem` rows or draw disclosure arrows yourself. Use `List` for a flat list and `Disclosure` for one collapsible section. |
390
+ | A deep hierarchy, one level per column | `ColumnExplorer` + `wireColumnExplorer` | Columns of ListItem rows in a ColumnTrack; the app owns `nodes` and `path` (`treeListPath(nodes, id)` in `action`). Use `layout="paged"` on a phone. Never build the columns by hand; use TreeList for a shallow hierarchy. |
391
+ | Pages in one panel region | `PagedView` + `wirePagedViews` | Full-size pages with floating page dots; the app owns `page` and sets it from `onPageChange(page, viewId)`. Page content owns its inset. Named destinations use TabBar + TabPanel. |
392
+ | Horizontal flex layout | `Row` | Use `hAlign`/`vAlign`, a typed `gap`, and opt-in `wrap`; use `List` when the main axis is vertical. |
393
+ | Equal-width columns | `Grid` | Use fixed `columns` or typed `minColumnWidth` for automatic container-width collapse, plus typed `gap`/`flex`. Use CSS grid for asymmetric/intrinsic tracks and `ResizableRegion` for adjustable boundaries. |
394
+ | Navigation row with a trailing action | `ListActionRow` | Use `ListItem` when the trailing region is dormant; never put controls inside either component's SafeHtml slots. Multiline leading icons stay aligned with the first text line. A trailing "…" overflow menu is `trailingMenu` (a real `PopupMenu`), not a trailing button. |
395
+ | Page, panel, or dialog heading | `Toolbar` + `ToolbarText` | Use a direct extra-large `ToolbarText`, optional grouped icon, grouped trailing controls, and short supporting copy as the `ToolbarText` `description` (quiet, one line, aligned under the title, with `descriptionId` for `aria-describedby`; longer copy stays app-owned content below). |
396
+ | Exclusive choice | `TabBar`, `SegmentedControl`, or `Select` | Tabs switch tabpanels; segments expose a few choices; `ChoiceChips` keeps a larger visible set as wrapping pills (`multiple` for any number); Select handles a longer value list. |
397
+ | Status or absent content | `StateBanner` or `EmptyState` | `StateBanner` accepts an optional terse, tone-tinted `badge` beside its title for a count or compact status; do not rely on color alone. toasts (`toast()` from `kerfjs/overlay`) are transient and never the only record of important state; import `@kerfjs/ui/overlay-toast.css` once to style them (pass `exitClass: 'kui-toast-exit'`, `exitDuration: 200`, `variant` for a tone, or a `StateBanner` as the only content) instead of `wa-toast` or hand-written toast CSS. A hover and focus explanation on any element is `tooltip()` from `kerfjs/overlay` with `@kerfjs/ui/overlay-tooltip.css` imported (`exitClass: 'kui-tooltip-exit'`, `exitDuration: 100`), never `wa-tooltip`; icon-only Kerf controls already get help tags. Show-and-hide content is `Disclosure` (`@kerfjs/ui/disclosure`, a native details element on content-item geometry; inside a `ContentItem` use `appearance="embedded"` with `flush` `Text` content so the item's inset frames it once; Disclosures sharing a `name` form an accordion; close one from code with `element.open = false`), never `wa-details` or `wa-accordion`. Progress is `ProgressBar` (`@kerfjs/ui/progress-bar`, a native progress element with a `label` or `ariaLabel`, `showValue`/`valueText`, and an indeterminate sweep without `value`) or, where a bar does not fit, `ProgressRing` (`@kerfjs/ui/progress-ring`, `small`/`medium`/`large`), never `wa-progress-bar` or `wa-progress-ring`. A live rate or level read at a glance is `Gauge` (`@kerfjs/ui/gauge`, a speedometer dial named by `label`, `value` of `max` pinned past `max`, `valueText`/`unit`, `variant="bare"` at chip height, `tone`, `size`, and typed `colors` for a consumer palette instead of CSS), not progress. A value on a range is `Slider` (`@kerfjs/ui/slider`, a native range input with `label`, `showValue`/`unit`, `ticks`, and `hint`; call `wireSliders(root)` from `@kerfjs/ui/wire-sliders` once so the fill and readout follow a drag), never `wa-slider`. A list of short values submitted as form values is `TagField` (`@kerfjs/ui/tag-field`, SearchField's token editor as a form field with a hidden input per tag; call `wireTagFields(root, { onChange })` from `@kerfjs/ui/wire-tag-fields` and re-render with the reported tags; `max`, `normalize`, and `onReject` for validation), never `wa-tag-input`. One color from a small fixed palette is `ColorSwatches` (`@kerfjs/ui/color-swatches`, a native radio group of named round swatches with a hue-independent ring and an optional `'transparent'` no-color swatch). Any color is `ColorPicker` (`@kerfjs/ui/color-picker`, an inline panel with an area, channel sliders that follow the color model (red/green/blue, hue/saturation/lightness or brightness, or gray level, each track previewing its channel, hue as a fixed rainbow) plus opacity, RGB/HSL/HSB/Grayscale fields, hex, presets, and samples; call `wireColorPickers(root, { onChange })` from `@kerfjs/ui/wire-color-pickers` and re-render with the reported `value` and `mode`). A color in a form or inspector is `ColorField` (`@kerfjs/ui/color-field`, a swatch-and-hex trigger that opens a ColorPicker in an AnchoredSurface; call `wireColorFields(root, { onChange, pickers })` from `@kerfjs/ui/wire-color-fields` and re-render), never `wa-color-picker`. |
398
+ | Compact metadata | `Badge` | Configure status, count, category, or metadata presentation with tone, appearance, shape, and size props. For new content without a count use `size="dot"` (no children) with a `label` or `ariaHidden`. Cap long app-supplied text with `maxWidth` (a `CssLength`); it truncates with an ellipsis and the full string becomes the `title`. Do not build badges with application CSS or use them as interactive controls. |
399
+ | Hero image atop a scrolling view | `BackdropImage` | Lags the scroll (`parallax`), blurs progressively (`blur`, an opacity cross-fade to a once-blurred copy), dissolves into a typed `fadeTo` color that also paints the content below, and carries `overlay` content; Kerf owns the compositor-only scroll timeline and the reduced-motion, static-effects, and reduced-transparency fallbacks. Never hand-roll scroll listeners, `background-attachment: fixed`, or mask gradients. |
400
+ | Scroll-linked content effect | `ScrollEffect` | Wraps any content: `parallax`, `reveal`, `fade`, `scale`, or `dim` presets over an `entry`/`exit`/`cover`/`contain` range of its own view timeline, compositor-only and nested in array order, with Kerf-owned static fallbacks. Not for hero images (BackdropImage) or state changes (ContentSwap); never hand-roll scroll listeners or `animation-timeline` CSS. |
401
+ | Loading placeholder | a component's `placeholder` prop, or `Skeleton` | Set `placeholder` on a value-bearing component (`Select`, `ListHeader`, `ListItem`, `ValueTableRow`, `SegmentedControl`, `StateBanner`, `TabBarItem`, `ToolbarText`, `ListActionRow`) to render its real chrome with value slots as subtle **unanimated** skeletons and interactivity disabled; only unknown values change, so a placeholder is never dimmed or styled as disabled (a control whose own `disabled` / `trailingActionDisabled` / choice `disabled` / `actionDisabled` prop is set keeps its live disabled tone via the reserved `data-kui-disabled` marker) — do not hand-rebuild an empty state. Component-drawn chrome stays live too: a `ListItem` or `ListActionRow` placeholder keeps its `busy` spinner while its `status` text (and a `ListItem`'s `trailing` content, always a value) becomes a skeleton. `Skeleton` is the standalone block for a custom slot. A known `TabBarItem` that is still opening takes `pending` instead: it keeps its name (quiet, and as its accessible name) and the same geometry, shows your `trailing` spinner, and stays selectable (close and drag disabled) so your panel can show placeholders until it loads. Use `LoadingSpinner` for known busy activity, not a skeleton; never animate a skeleton; prefer it over `wa-skeleton`. |
402
+ | Adjustable or asymmetric columns | `ResizableRegion` or CSS grid | Use `ResizableRegion` only for a user-operable controlled separator, CSS grid for asymmetric/intrinsic tracks, and `Grid` for static equal-width tracks. |
403
+ | Structured or ordinary search | `SearchField` or an input | Use token search only when text and ordered filter chips form one editor. |
404
+ | Command menu | `PopupMenu` | Put it in a `single` `ToolbarControlGroup` with `nestedDropdown`; register `@kerfjs/ui/popup-menu/register` once. It draws the same popup as `Select` (caret, rows, check column, group titles); do not restyle either to match the other. Use `Select` when the user chooses a persistent value. |
405
+ | Key/value facts | `ValueTable` with `ValueTableRow` | Use rows with `icon` only when the optional 24px leading visual adds context. |
406
+ | Command search | Application-local semantics using shared layout vocabulary | No runtime component or production recipe is exported; the app owns behavior, policy, and copy. |
403
407
 
404
408
  For equal-width responsive forms, set `Grid minColumnWidth={px(376)}` instead of
405
409
  `columns`. Grid fits tracks from its own container width and collapses to one
@@ -467,19 +471,19 @@ Hard rules:
467
471
  7. Decorative icons are hidden; controls are named; focus is visible; state never relies on color alone; reduced motion and increased contrast remain usable. When the app detects a low-power device, it sets `data-kui-effects="static"` on the root element to turn backdrop materials opaque and stop scroll-driven animations; `@media (update: slow)` does the same automatically. `DisclosureArrow` defaults to an 18px root-scaled visual; size it with its typed `size` prop (`size={remify(24)}`); it never becomes the interaction or accessible-name owner. Put it in an owning control with a stable accessible name and controlled expanded state: a `Button` with `expanded` and the arrow as its `icon`, or a native control with `aria-expanded`. `ListHeader` toggle mode supplies it when `actionIcon` is omitted, but the app must reveal matching content; a custom icon replaces it. Author replacement icon content facing right before its configured direction transform is applied. Direction changes take the shortest rotation path, with counterclockwise chosen for a 180-degree closed-to-open tie. Kerf `Select` separately keeps its intrinsic Web Awesome expand glyph at `--kui-disclosure-icon-scale: .5`; an icon-only toolbar Select may set `caret={false}` for a round trigger while preserving its help tag and keyboard listbox, and a custom `renderSelected` icon stays centered.
468
472
  8. `ResizableRegion` uses `wireResizableRegions()` for Arrow, Shift+Arrow, Home/End, and pointer behavior. The app owns size persistence. `handleIcon` replaces decorative dormant glyph content only. Set `responsiveFillAt="narrow"` or `"compact"` when a responsive composition exposes the pane as its only inline track; the component fills that track and hides its dormant separator. For compact overlays, set `presentation="overlay"` and the overlay maximum variables. A lone child (normally a `Pane`) fills the region and owns scrolling; several children stack at natural height. Do not add descendant width/height overrides.
469
473
  9. Use controlled `SegmentedControl` for a small exclusive choice set. Select `appearance="toolbar"` when nesting it inside `ToolbarControlGroup`; use rounded or pill shapes for standalone contexts. The package derives inset hover/selection radii from the owning outer shape through `--kui-layout-highlight-inset`; do not restyle an inner highlight to an independent radius. Handle its action, update `value`, keep meaningful choice labels, and preserve every enabled native button in sequential Tab order. Set `disabled` to make the whole control unavailable (its selection stays visible); a choice's own `disabled` disables just that segment.
470
- 10. Compose `TabBarItem` inside controlled `TabBar`; call `wireTabBars()` once and retain its disposer. It owns same-bar drag mechanics, including proximity-based horizontal edge autoscroll, while the app applies `onReorder` and owns order, selection, panels, close policy, routing, and persistence. Render each panel with `TabPanel` from `@kerfjs/ui/tab-panel`, never a raw `role="tabpanel"` element: its `id` is the tab's `panelId`, its `tabId` is the tab's `tabId` (written as `aria-labelledby`), `hidden` is set on every panel but the selected tab's, and `busy` marks a pending tab's loading panel. For a tab-local action followed by a separately pinned workspace action, set `trailingPlacement="adjacent"`, put the local action in `trailing`, and the workspace action in `end`; each action zone accepts one `ToolbarControlGroup`, a standalone Kerf `Button`, or a standalone `wa-button` for an exceptional Web Awesome use. TabBar owns the shrinking/scrolling tabs and fixed action geometry, so do not add descendant flex overrides. Arrow/Home/End select on move by default and restore focus by bar/tab identity when controlled activation replaces the strip; pass `activation: 'manual'` (or `TabBar activation="manual"` per strip) so arrow keys move focus only and the user selects with Enter/Space/click — use it when selecting a tab is a heavy action. Put fixed controls in the outer `leading`, `trailing`, or `end` zones, outside the scrolling tablist. `snapTabs` aligns ordinary tabs with the strip edge in LTR and RTL. Use runtime-filtered `rootAttributes` for domain metadata and keep an optional `closeIcon` decorative and noninteractive.
474
+ 10. Compose `TabBarItem` inside controlled `TabBar`; call `wireTabBars()` once and retain its disposer. It owns same-bar drag mechanics, including proximity-based horizontal edge autoscroll, while the app applies `onReorder` and owns order, selection, panels, close policy, routing, and persistence. Render each panel with `TabPanel` from `@kerfjs/ui/tab-panel`, never a raw `role="tabpanel"` element: its `id` is the tab's `panelId`, its `tabId` is the tab's `tabId` (written as `aria-labelledby`), `hidden` is set on every panel but the selected tab's, and `busy` marks a pending tab's loading panel. For a tab-local action followed by a separately pinned workspace action, set `trailingPlacement="adjacent"`, put the local action in `trailing`, and the workspace action in `end`; each action zone accepts one `ToolbarControlGroup`, a standalone Kerf `Button`, or a standalone `wa-button` for an exceptional Web Awesome use. TabBar owns the shrinking/scrolling tabs and fixed action geometry, so do not add descendant flex overrides. Arrow/Home/End select on move by default and restore focus by bar/tab identity when controlled activation replaces the strip; pass `activation: 'manual'` (or `TabBar activation="manual"` per strip) so arrow keys move focus only and the user selects with Enter/Space/click — use it when selecting a tab is a heavy action. Put fixed controls in the outer `leading`, `trailing`, or `end` zones, outside the scrolling tablist. `snapTabs` aligns ordinary tabs with the strip edge in LTR and RTL. To adapt app-owned zone content to the room (for example, swapping a wide `end` action for an icon button while the tabs overflow), pass `onFitChange` to `wireTabBars` and read its `TabBarFit` (`overflowing`, `free`, `tabsWidth`, `stripWidth`, `trailingWidth`, `endWidth`). Never measure `.kui-tab-bar__*` parts yourself. Remember the wide action's `endWidth` and swap back only when `free` covers the difference, so the bar never oscillates. Use runtime-filtered `rootAttributes` for domain metadata and keep an optional `closeIcon` decorative and noninteractive.
471
475
  11. Use token-controlled `SearchField` when free text and removable structured filters share one editor. Editable text stays DOM-owned between token changes; to replace the text programmatically (reseeding a persistent dialog's field on reopen, applying a saved search) change the field's `revision` along with `query` for an unmanaged field, or call `model.replace({ query, tokens })` for a model-managed field; never re-key a wrapper. The leading icon, first text line, clear action, and trailing slot share one fixed row when content wraps. For automatic parsing, chips, suggestions, and evaluation, use createSearchFieldModel with grammar rules, pass it as SearchField.model, and register it in wireSearchFields models; a rule's `suggest(input, state)` receives committed tokens so it can exclude selected values. The field subscribes only to `model.structure` (committed tokens, empty or non-empty text, editor revision), so plain typing never re-runs the host render; in the host's own render read `model.state.peek()` and bind `model.result` (or a `computed`) as a signal hole — reading `model.state.value` there re-renders the host on every keystroke. Otherwise the app owns parsing and suggestions; call `readSearchField()` on input, empty `textContent` on clear, use `placeSearchFieldCaret()` after explicit controlled focus changes, and call `wireSearchFields()` once so Enter submits without inserting a line break and keyboard chip deletion restores focus plus the text-relative caret after controlled replacement. `clearIcon` replaces the clear action's glyph (its `clearLabel` still names it). For a compact icon button beside the clear button (a search-syntax help glyph), pass `trailingAction: { icon, label, action, expanded?, pressed?, controls?, haspopup?, attributes? }` — it matches the clear button's size, hover, focus, and cursor in every presentation; set `expanded` for a disclosure or `pressed` for a toggle, never both, and never hand-style a button into `trailing`. Enable `collapsible` for an animated iconic closed state, standalone or inside `ToolbarControlGroup`; the field keeps text or tokens expanded, and `wireSearchFields()` manages the transient expand/collapse/focus by default (activate to reveal + focus, Escape or empty blur to collapse). Bind the field's `expanded` to the returned handle's `expanded(id)` signal or adopt your own via `collapsible.signals`; opt a behavior out only when the app must own it. Do not hand-roll the open handler, the focusout collapse, a clear-button mousedown guard, or reopening after controlled clear or Select All deletion — the helper keeps the replacement editor open and focused. Clear and deletion restoration finish at the replacement mutation checkpoint before the next input task, so shortcut-letter typing cannot escape to the page and delayed animation frames cannot overwrite a later selection. Persist both query and tokens returned by the DOM read. For real-app adoption it also provides a focusout keep-open exception (`data-search-field-keep-open` regions or `collapsible.keepOpenOn(target)`, so a sibling suggestions/date/help surface does not collapse an empty field), opt-in atomic-chip keyboard (`keyboard`: Backspace/Delete remove the adjacent chip via `onRemoveToken`, ArrowRight moves the caret past a trailing chip), and an `onEdit({id, editor, event})` input callback (the `InputEvent` lets you gate on `inputType`/`data`) — reach for these instead of re-adding hand-rolled keydown/input handlers around the field.
472
476
  An application helper can call `model.commit(value)` for the active `name:` prefix when it computes a valid value outside suggestions; invalid values and missing prefixes leave the query unchanged.
473
477
  12. Demo work uses public production component subpaths and their browser-selected CSS. Focused demos and recipes have no local stylesheet, inline style, or styling-only class; use public components and `CatalogExample.viewport` for unavoidable specimen constraints (a recipe declares its frame through its exported `presentation`). To preview a top-layer specimen that production anchors with CSS anchor positioning, name the frame with `viewport.anchorName` (a dashed-ident such as `"--app-shell-main"`) and center in-flow content with `viewport.contentWidth` + `contentAlign: "center"` instead of wrapping the specimen in a stage element. When a recipe needs a capability no component offers, report the component gap instead of adding CSS. Use exactly three demo kinds: a `component` is one component with variants/states, a `composition` is a focused container of components commonly used together, and a `recipe` is the recommended production approach to a task. Organize catalog routes into product-important functional groups; within each group put all components before compositions, order each kind by importance with display-name alphabetical tie-breaking, and put recipes after every component/composition group. Show `Composition` as an entry tag instead of repeating the word in its name. Give every public visual component its own category-grouped catalog route; list themed third-party components under a clearly labeled collapsible ecosystem section, with a focused route for each. For the complete taxonomy, focused/composition decision, `CatalogExample` / `CatalogExampleStack` row/group nesting, specimen structure and metadata ownership, follow the single [Catalog demo authoring contract](../docs/catalog.md#catalog-demo-authoring-contract), discovered machine-readably through [`catalog-authoring.json`](./catalog-authoring.json). Never infer structure from private `kui-catalog-*` classes. Project each component's deterministic repository-relative demo source and existing documentation path so the detail can expose `View demo source` and `Read guidance` links without a runtime export; also derive first-party component implementation paths from their canonical browser imports, and label Web Awesome documentation as Kerf integration guidance. Declare direct `uses` relationships so `Used by` stays derivable, and theme shell chrome through the same semantic tokens as the stage instead of drawing a substitute. Enable `wireCatalog({ revealSelection: true })` for long desktop sidebars so controlled selections remain visible without moving focus; keep its default compact media guard unless compact scrolling is an explicit product behavior, and use `revealCatalogEntry` for an initial deep link.
474
478
  13. With the Web Awesome integration, its theme makes Tooltip and Popover arrowless by default. Keep that default unless a pointer materially clarifies the anchor; opt back in with `--wa-tooltip-arrow-size`, `--kui-wa-popover-arrow-size`, or a popover's public `--arrow-size`, and use `without-arrow` when local no-arrow intent should survive theme changes. Its non-field chrome uses `--kui-wa-control-inset` (8px controls/items), `--kui-wa-surface-margin` / `--kui-wa-surface-inset` (8px around/inside Accordion, Card, Details, Callout, and Include), and `--kui-wa-container-inset` (16px Tab Panel content and framed disclosure regions). Plain Details use the 8px surface inset on the trigger and keep the body flush; plain Accordion items use it on both trigger and body. Outlined and sunken Details use the 16px container inset on the trigger and 8px on the body; framed Accordion items use 16px on both. Dialog maps its body to the 8px surface tier and its footer to the 16px container tier independently of `--spacing`. Override those tiers instead of restyling individual parts. Filled badges use each variant's quiet fill with normal text so their compact copy stays WCAG-AA readable; override the pair with `--kui-wa-badge-filled-background` / `--kui-wa-badge-filled-foreground`, not host selectors. The theme draws a dialog's or drawer's built-in close control as the same 40px borderless circle a single `ToolbarControlGroup` button uses, so do not restyle it. When a dialog provides another dismissal affordance, put `hide-actions` on the `wa-dialog` host to hide its directly exported `header-actions` part; never chain `::part()` selectors through internal parts. Checkbox and Radio Group option regions and the Color Picker trigger stay flush, so each box, circle, or swatch sits on the host's inline-start edge like Kerf's `Checkbox`, `RadioGroup`, and `ColorField`, with the label and hint on the 9px text column. Bordered fields and Switch draw their border or track on that same edge like `TextField`, `Select`, and `Switch`, so place a Web Awesome field exactly where the Kerf field would go. Slider's complete interactive region receives the shared 8px logical inline outer inset. Known Date field captions and bordered text-like field hints align with values at the 9px border-plus-padding inset. OTP Input's label uses the same uppercase xs/650 treatment as other field labels, and both its label and hint use that 9px inset.
475
- 14. Kerf UI needs no Web Awesome. Treat the Web Awesome catalog as optional integration coverage, not a recommendation list; its UX sidebar marks every element a Kerf component replaces `Discouraged`, and `../docs/webawesome-migration.md` maps each to its Kerf replacement. Use `openAnchoredSurface` from `@kerfjs/ui/anchored-surface` for arbitrary interactive help or popup content beside a control, or `openAnchoredSurfaceAt` at pointer coordinates; pass an accessible label and let the app own content/actions. For a popup anchored to dark media chrome (a `ToolbarControlGroup tone="dark"`), pass `tone: 'dark'` instead of styling an app-owned dark panel: the surface takes that group's inverse tone and its content (a `ListItem`, a `wa-slider`) inherits the inverse text, border, and focus colors. It stays interactive inside a native `<dialog>`, `wa-dialog`, or `wa-drawer` (no host markup needed for the Web Awesome ones) and closes with that dialog. In an integration application, consider Popup only when its lower-level behavior is specifically needed, and use Tree/Tree Item, Animated Image, and Comparison only for a specific required behavior; avoid Zoomable Frame. Never render a `Discouraged` element in application, demo, or recipe markup; use the Kerf component that replaces it (`Button`, `TextField`, `Checkbox`, `RadioGroup`, `Switch`, `Select`, `PopupMenu`, `DialogSurface`, `SegmentedControl`, `TabBar`, `Chip`, `Badge`, `LucideIcon`, `ResizableRegion`), and treat a Kerf component gap as a request to file, not a reason to drop to the raw element.
479
+ 14. Kerf UI needs no Web Awesome, and no Kerf component requests anything from the network: icons are bundled Lucide SVG. An application that renders Web Awesome elements itself must register a local icon library, or `wa-icon` fetches from Font Awesome's CDN (`../docs/webawesome-theme.md`). Treat the Web Awesome catalog as optional integration coverage, not a recommendation list; its UX sidebar marks every element a Kerf component replaces `Discouraged`, and `../docs/webawesome-migration.md` maps each to its Kerf replacement. Use `openAnchoredSurface` from `@kerfjs/ui/anchored-surface` for arbitrary interactive help or popup content beside a control, or `openAnchoredSurfaceAt` at pointer coordinates; pass an accessible label and let the app own content/actions. For a popup anchored to dark media chrome (a `ToolbarControlGroup tone="dark"`), pass `tone: 'dark'` instead of styling an app-owned dark panel: the surface takes that group's inverse tone and its content (a `ListItem`, a `wa-slider`) inherits the inverse text, border, and focus colors. It stays interactive inside a native `<dialog>`, `wa-dialog`, or `wa-drawer` (no host markup needed for the Web Awesome ones) and closes with that dialog. In an integration application, consider Popup only when its lower-level behavior is specifically needed, and use Tree/Tree Item, Animated Image, and Comparison only for a specific required behavior; avoid Zoomable Frame. Never render a `Discouraged` element in application, demo, or recipe markup; use the Kerf component that replaces it (`Button`, `TextField`, `Checkbox`, `RadioGroup`, `Switch`, `Select`, `PopupMenu`, `DialogSurface`, `SegmentedControl`, `TabBar`, `Chip`, `Badge`, `LucideIcon`, `ResizableRegion`), and treat a Kerf component gap as a request to file, not a reason to drop to the raw element.
476
480
  15. Build sidebars, main areas, inspectors, and dialogs by rendering `Pane` (`@kerfjs/ui/pane`): an unpadded `.kui-pane` root, an optional `header`, one scrolling `.kui-pane__content`, and an optional `footer`; pick landmarks with `element` / `contentElement`. Never write a component's anatomy classes (`kui-pane`, `kui-toolbar`, `kui-list-item`, …) onto your own element to recreate it — render the component (`KUI-L103`). Only the catalog's `placeableClasses` (the `.kui-content` / `.kui-scroll-owner` / `.kui-control-cluster` / `.kui-inline-metadata` layout utilities, `.kui-app-root`, and `.kui-content-item` geometry on a non-div carrier) belong on elements you write. Use `Row` instead of a hand-written flex-row wrapper, `List` instead of a hand-written flex-column wrapper, and `Grid` instead of repeated equal-track CSS when children need a fixed positive count of evenly distributed columns. `Row` defaults to left/full with an `xs` gap and no wrapping; Grid defaults to an `xs` gap and keeps each track at `minmax(0, 1fr)`; List retains full/top and zero-gap defaults. The app owns Grid's responsive column-count changes. When a Row, List, or Grid is the layout root of a definite-height parent (an app root or a fixed-height frame), pass `fill` so it takes that full height, and put route/test/recipe `data-*` markers in its `rootAttributes`; never wrap a layout in a frame `Pane` just for height or a root attribute, because its content slot becomes a scroll owner that never scrolls. Inside a flex layout use `flex`, not `fill`. A `Pane` takes its content's height by default; when a Pane is itself the root of a definite-height parent (a one-screen app in `.kui-app-root`, a `SizedRegion`, a grid cell) or the rest of a flex column, pass `Pane fill` so its header and footer pin and its content scrolls. A Pane that is the only child of a `NavStack` view, `TabNavigator` scene, or `Workbench` region already fills it. Use `List` when rows or sections also need flex growth, one vertical scroll owner, or physical-edge dividers. `dividerSides`, `textInsets`, and `controlInsets` use canonical physical `t`/`r`/`b`/`l` order; text geometry wins where text and control selections overlap. `ListInsetText` and `ListInsetControl` inset all four sides by default and accept the same `sides` grammar for selective edges. A dialog body is generally a `List`: set `DialogSurface bodyInset="none"` when its list children own geometry, and wrap bare dialog prose in `ListInsetText` so it aligns with bordered siblings without a second inset. Add `.kui-content` for 24px major vertical separation and render each ordinary surface-like child as `ContentItem` (`@kerfjs/ui/content-item`) for a child-owned 8px inline margin, 1px border, 8px padding, and 12px radius. For a chat transcript, set `bubble="start"` (other participants) or `bubble="end"` with `appearance="brand-loud"` (the person's own messages) instead of app width, alignment, or color CSS; the item fits its message up to 80% of the row. Choose `frame="framed"` (neutral border in the always-reserved 1px, same geometry) only for a real distinction and `shape="pill"` for 22px; do not hand-write `<div class="kui-content-item">` or its modifier classes. There is no filled variant: a lowered filled surface is `SunkenPanel`. Do not pad pane shells, duplicate item geometry in wrappers, or create nested scroll owners. Align text to text and icons to icons across a pane — a title, a row label, and bare prose share the same text column (`ListInsetText` puts bare text on it); a border is decoration and never the alignment anchor, so a bordered surface extends to the pane gutter instead of being indented to line its border up with a heading's text; bordered elements in one column instead align their outer edges with each other (a `ListHeader` action ends on a selected `ListItem`'s edge), and a borderless nested glyph aligns with their nested content.
477
481
  15a. Use `Text` from `@kerfjs/ui/text` for ordinary headings, paragraphs, and inline secondary text outside toolbar title zones. Omit `variant` for the default `p`, pass `h1`–`h6` according to the document outline, or use `variant="span"` inside a row, label, or table cell; ordinary native attributes pass through. Express supporting, error, compact, or code text with the independent finite `tone="quiet|danger"`, `size="compact"`, and `font="monospace"` props instead of global utility classes or appearance-only heading choices. Block Text variants own a transparent 1px border and the standard item padding; `span` owns no box geometry. Keep toolbar identity/title content on `ToolbarText` and list-aligned bare prose on `ListInsetText`. `ToolbarText` below `xlarge` is intentionally quiet identity text in default tone; a normal-color subsection title is `Text` with an `h2`–`h6` variant (or `ListHeader` for a list or menu section), never a recolored `ToolbarText`. Use `controlMargins` with canonical physical Sides for an exterior 8px control gutter without a Row wrapper; avoid stacking parent insets, and remember spans retain native inline margin behavior.
478
482
 
479
483
  16. Keep a visible collapsible pane's collapse control in its own toolbar. When hidden, move its restore control into the adjacent main toolbar on the corresponding logical edge: leading for an inline-start sidebar and trailing for an inline-end inspector. Collapse the pane completely; do not preserve an empty icon-only rail.
480
484
  16a. Dividers between pinned chrome and scrolling content are component chrome: a `Toolbar` draws none by default (`dividerSides` is for a permanent edge only). Call `wireScrollDividers(appRoot)` from `@kerfjs/ui/wire-scroll-dividers` once and retain its disposer; a plain `Pane` with `chromeDividers="scroll"` draws the line under its header only while content is scrolled beneath it and over its footer only while more content lies below (never when the content fits), every `NavStack`'s top chrome and bottom toolbar and every `TabNavigator` bar do the same around the active view or scene (keyed on whatever actually scrolls there, including a sole `Pane`'s content), and every `TabBar` marks each side of its strip with tabs scrolled out of view. Outside a `Pane`, give the `Toolbar` and the scrolling `List` an `id` and pair them in `wireScrollDividers(appRoot, { targets: [{ scroller: 'list-id', top: 'toolbar-id' }] })` instead of a permanent `dividerSides`. Configure a pane with `chromeDividers` (`scroll` by default for plain panes, `always` by default for sunken panes, or explicit `scroll`, `always`, `none`, also via `PaneConfig`); `always` draws both lines even when content fits. A `NavStack` or `TabNavigator` has its own `chromeDividers` (same values: `always` draws the chrome lines without the wiring, `none` never, even when wired; a `SplitView` forwards it through `compactStack`); a `toolbarConfig.dividerSides` edge stays the Toolbar's own. Name app-owned chrome by id in `targets`. The wiring writes only `data-scroll-overflow` / `data-scroll-divider` state; never write a border onto a component to show a divider. For a header that floats over its scrolling content on translucent material, set `headerPresentation="overlay"` on the `Pane` (also in `PaneConfig`). The same wiring measures the header and publishes its height as block-start scroll clearance, which the content clears without a `scrollClearance` prop. Never set `--kui-scroll-clearance-block-start`, `--kui-pane-scrollbar-inline-size`, or a header height yourself; the header leaves a classic scrollbar uncovered on its own. An untoned `ToolbarText` keeps AA there by itself (normal-color title, lifted description); put other quiet secondary copy in the content. For an iOS-style translucent stack bar, set `chromePresentation="overlay"` on the `NavStack` (a `SplitView` forwards it through `compactStack`, a Workbench panel through `navStack`): `wireNavStack` measures the live top chrome and hands its height, top safe area included, to the views as their block-start inset, so a plain view or a sole `Pane` rests its first item below the bar with no prop; never pad a view to clear the bar yourself. An untoned `ToolbarText` in that chrome lifts its own title and description to AA, as in an overlay Pane header. For an iOS-style translucent bottom toolbar, set `bottomToolbarPresentation="overlay"` (a separate prop; `chromePresentation` covers only the top chrome, and `compactStack` / `navStack` forward both): `wireNavStack` measures the live bottom toolbar and hands its height, bottom safe area included, to the views as their block-end inset, so a plain view's or a sole `Pane`'s last item (or the Pane's footer) rests just above it with no prop. A default-tone `ToolbarControlGroup` in either overlaid bar lifts its controls to the normal text color by itself; never recolor them.
481
485
  16b. Change the application's brand with `--kui-color-brand` on `:root` (any color; Kerf derives the fill, brand text, text on brand fills, and the focus ring at WCAG AA, and Web Awesome's brand tokens follow). Never override `--kui-color-brand-fill-loud` alone: brand text and the focus ring stay the default blue. A green brand makes `info` read like `success`; pick a hue apart from the status tones.
482
- 17. Each `Toolbar` zone accepts `KerfUiContent` directly, including status content, native controls, and application markup. Put identity/title text directly in the zone as `ToolbarText`; use `ToolbarControlGroup` when related controls need shared toolbar chrome, sizing, hover treatment, or overflow behavior. Bare controls keep their own styling and accessibility responsibilities. A standalone primary `wa-button` in trailing keeps its own Web Awesome chrome. `SegmentedControl`, `Select`, and `SearchField` can live inside a group when they need that shared presentation. Configure zone behavior with `Toolbar.centerAlign` and its `responsive` / `responsiveAt` policy instead of selecting toolbar zone classes. No policy clips an action: trailing (and stacked center) zones wrap whole groups onto another row, and the center zone never compresses below its content (a leading title too long for the row truncates with an ellipsis instead), so never hide or shrink a toolbar control to make it fit; use `responsive="wrap"` for a heading whose title must stay whole, and move genuinely lower-priority commands into an app-owned "More" popup menu. For an ordinary icon/action control inside a group, use a plain `<button>` (the group styles `> button` fully) — that is the default; reach for `wa-button` only when you need a Web Awesome feature. A popup menu in a toolbar is a `PopupMenu` (`@kerfjs/ui/popup-menu`, registered once via `@kerfjs/ui/popup-menu/register`) in a `single` group with `nestedDropdown` and a `menuInset`: give it typed `items` (commands with `action`s, `heading`s, `divider`s) and a trigger `icon` plus visible `text` or an accessible `label`; never hand-write `wa-dropdown` / `wa-dropdown-item` markup for a menu. Let the group size that trigger from its icon, localized text, and caret; do not force a width on the menu or button. By default a group stays on one row: each icon sits beside its label, and the toolbar's `responsive` policy relocates whole groups when needed. Set `overflow="wrap"` only for independent links that should move as whole actions to another row within the group; use `overflow="scroll"` for a bounded one-row action strip. A `ToolbarText` is one line ending in an ellipsis by default; opt into `wrap` (capped by `maxLines`) or `ellipsis={false}` deliberately. Inside a group, a `Select` or `PopupMenu` trigger drops its focus ring while its popup is open (the open popup and its current row show where focus is) and the ring returns when the popup closes; a ring follows the control's shape (a pill for an icon-and-caret trigger, a circle for a compact icon button) — set `focusRingOwner="group"` on a Select whose group paints the composed ring, and never add CSS to show, hide, or reshape a ring. For a compact mixed group, keep the standard item padding and raised selected chrome; the selected item paints over the outer border without an internal separator. For an avatar control, set `content="avatar"` and `avatarImage` on the group instead of inserting an `img`: a lone control paints the contained image on the outer group and a multi-button group paints it only on the pressed selection highlight. Compose panel/dialog/page headings with a direct extra-large `ToolbarText`, optional grouped icon, grouped trailing controls, and short supporting copy as the `ToolbarText` `description` (quiet, one line, aligned under the title, with `descriptionId` for `aria-describedby`; longer copy stays app-owned content below). A non-interactive heading icon is an icon tile: put the `LucideIcon` directly in its `ToolbarControlGroup` (it takes an icon button's 40px slot and centers), never inside a `<button>` that does nothing. A group remains 44px outside (`calc(2px + remify(42px))`) when its border/background are transparent; use 8px between groups and inside items. Each zone item sits in the toolbar's top 44px control band, centered by its own size; a taller item (a wrapped title, a second trailing row) starts at the band's top and grows down without moving the others, so a wrapped `ToolbarText` keeps trailing controls beside its first line — do not add alignment CSS for this. Split dormant and interactive regions: `ListHeader` fills the available inline width by default; set `width="content"` to shrink-wrap while retaining its normal geometry, or `inline` when it belongs in surrounding text without outer margin, border, or padding. It keeps its label and either a semantic count or independent `badge` and `status` indicators together, with an independent logical-end action unless disclosure mode makes the title cluster the button. Its action visual defaults to 18px through `--kui-list-header-action-icon-size` inside a fitted 36px hover square whose transparent hit layer keeps the pointer target at least 44px (44px wide by the 36px row in `density="compact"`); never shrink the target to match the visual, and never force the button to 44px. Pass a sole non-negative safe-integer section quantity through `count` with a localized full spoken `countLabel`; never concatenate it into `label` or put a bare number in `badge`. For a contextual phrase such as "3 lines unpriced", `badge` can appear beside `status`, and either may be `undefined`. `ListItem.trailing` is dormant; use `ListActionRow` when primary and trailing actions need sibling native buttons. Its `label`, `icon`, and `trailingActionIcon` slots are also dormant and cannot contain controls. Let panes relocate at narrow widths instead of shrinking targets. Dividers are chrome and earn their place: a `Toolbar` draws none by default, and the line between pinned chrome and scrolling content comes from scroll state (rule 16a), so never add a border, a permanent `dividerSides`, or a margin to fake or adjust one.
486
+ 17. Each `Toolbar` zone accepts `KerfUiContent` directly, including status content, native controls, and application markup. Put identity/title text directly in the zone as `ToolbarText`; use `ToolbarControlGroup` when related controls need shared toolbar chrome, sizing, hover treatment, or overflow behavior. Bare controls keep their own styling and accessibility responsibilities. A standalone primary `wa-button` in trailing keeps its own Web Awesome chrome. `SegmentedControl`, `Select`, and `SearchField` can live inside a group when they need that shared presentation. Configure zone behavior with `Toolbar.centerAlign` and its `responsive` / `responsiveAt` policy instead of selecting toolbar zone classes. No policy clips an action: trailing (and stacked center) zones wrap whole groups onto another row, and the center zone never compresses below its content (a leading title too long for the row truncates with an ellipsis instead), so never hide or shrink a toolbar control to make it fit; use `responsive="wrap"` for a heading whose title must stay whole, `responsive="wrap-groups"` for a leading zone made of control groups rather than a title (each leading group shares a row with the trailing zone while it fits and otherwise moves, whole, to the next row; never move leading controls into the trailing zone to make them wrap), and move genuinely lower-priority commands into an app-owned "More" popup menu. For an ordinary icon/action control inside a group, use a plain `<button>` (the group styles `> button` fully) — that is the default; reach for `wa-button` only when you need a Web Awesome feature. A popup menu in a toolbar is a `PopupMenu` (`@kerfjs/ui/popup-menu`, registered once via `@kerfjs/ui/popup-menu/register`) in a `single` group with `nestedDropdown` and a `menuInset`: give it typed `items` (commands with `action`s, `heading`s, `divider`s) and a trigger `icon` plus visible `text` or an accessible `label`; never hand-write `wa-dropdown` / `wa-dropdown-item` markup for a menu. Let the group size that trigger from its icon, localized text, and caret; do not force a width on the menu or button. By default a group stays on one row: each icon sits beside its label, and the toolbar's `responsive` policy relocates whole groups when needed. Set `overflow="wrap"` only for independent links that should move as whole actions to another row within the group; use `overflow="scroll"` for a bounded one-row action strip. A `ToolbarText` is one line ending in an ellipsis by default; opt into `wrap` (capped by `maxLines`) or `ellipsis={false}` deliberately. Inside a group, a `Select` or `PopupMenu` trigger drops its focus ring while its popup is open (the open popup and its current row show where focus is) and the ring returns when the popup closes; a ring follows the control's shape (a pill for an icon-and-caret trigger, a circle for a compact icon button) — set `focusRingOwner="group"` on a Select whose group paints the composed ring, and never add CSS to show, hide, or reshape a ring. For a compact mixed group, keep the standard item padding and raised selected chrome; the selected item paints over the outer border without an internal separator. For an avatar control, set `content="avatar"` and `avatarImage` on the group instead of inserting an `img`: a lone control paints the contained image on the outer group and a multi-button group paints it only on the pressed selection highlight. Compose panel/dialog/page headings with a direct extra-large `ToolbarText`, optional grouped icon, grouped trailing controls, and short supporting copy as the `ToolbarText` `description` (quiet, one line, aligned under the title, with `descriptionId` for `aria-describedby`; longer copy stays app-owned content below). A non-interactive heading icon is an icon tile: put the `LucideIcon` directly in its `ToolbarControlGroup` (it takes an icon button's 40px slot and centers), never inside a `<button>` that does nothing. A group remains 44px outside (`calc(2px + remify(42px))`) when its border/background are transparent; use 8px between groups and inside items. Each zone item sits in the toolbar's top 44px control band, centered by its own size; a taller item (a wrapped title, a second trailing row) starts at the band's top and grows down without moving the others, so a wrapped `ToolbarText` keeps trailing controls beside its first line — do not add alignment CSS for this. Split dormant and interactive regions: `ListHeader` fills the available inline width by default; set `width="content"` to shrink-wrap while retaining its normal geometry, or `inline` when it belongs in surrounding text without outer margin, border, or padding. It keeps its label and either a semantic count or independent `badge` and `status` indicators together, with an independent logical-end action unless disclosure mode makes the title cluster the button. Its action visual defaults to 18px through `--kui-list-header-action-icon-size` inside a fitted 36px hover square whose transparent hit layer keeps the pointer target at least 44px (44px wide by the 36px row in `density="compact"`); never shrink the target to match the visual, and never force the button to 44px. Pass a sole non-negative safe-integer section quantity through `count` with a localized full spoken `countLabel`; never concatenate it into `label` or put a bare number in `badge`. For a contextual phrase such as "3 lines unpriced", `badge` can appear beside `status`, and either may be `undefined`. `ListItem.trailing` is dormant; use `ListActionRow` when primary and trailing actions need sibling native buttons. Its `label`, `icon`, and `trailingActionIcon` slots are also dormant and cannot contain controls. Let panes relocate at narrow widths instead of shrinking targets. Dividers are chrome and earn their place: a `Toolbar` draws none by default, and the line between pinned chrome and scrolling content comes from scroll state (rule 16a), so never add a border, a permanent `dividerSides`, or a margin to fake or adjust one.
483
487
  For a toolbar heading that must remain at the 20px `--kui-font-l` step, use `ToolbarText size="xlarge-fixed"`; `xlarge` retains the responsive page-title clamp. Pass `headingLevel` when it is a section landmark.
484
488
 
485
489
  18. When a recurring concept has no matching export or production recipe, keep its semantics in a thin application adapter while reusing the public layout vocabulary. The composer recipe uses one visible form surface, toolbar title/supporting-copy ids, shared 8px field/action gutters, 24px major rhythm, and a conditional StateBanner as its only nested semantic surface; do not turn every section into a card or double-inset intrinsically bordered controls. Give a StateBanner's `action` as compact pill `Button`s (`size="compact" shape="pill"`), with any other controls (a `LoadingSpinner`) beside them: the action lays its controls out as a wrapping, end-aligned horizontal list, and a neutral Button takes the banner's tone (brand, success, and danger keep their own), so never wrap them in a `Row` or restyle them. For multi-line banner copy use `copyLayout="stacked"`; use `actionPlacement="below"` for an action that always takes its own trailing row (the default trailing action already wraps onto that row when a narrow banner leaves the copy too little room, so never switch placement per breakpoint). For a full-width status band at a layout edge (above a workspace), use `presentation="strip"` with optional `dividerSides` (bottom by default) instead of zeroing the card's margin, radius, and border tokens. For non-dismissible app-level progress with no home beside the affected work ("Loading…", "Updating… 3 of 12"), host the banner in `CornerStatus` and call `wireCornerStatus` once instead of fixed-position CSS or a toast with its close part hidden. For an icon-only `wa-button` with a `LucideIcon` (a Browse button beside a field), use an icon-only `Button` (`icon` plus a required `ariaLabel`, no label) rather than overriding `wa-button::part(base)` width, min-height, or padding. The application-local `../docs/examples/command-palette-adapter.tsx` is reference source for one such missing concept, not an `@kerfjs/ui` runtime export or catalog recipe. The application owns its registration, ranking, history, permissions, availability, shortcut policy, focus policy, dispatch, and copy. If a missing concept recurs across products, open an upstream component or recipe request.
@@ -504,8 +508,11 @@ meaning) to an icon-only `Button`. On a `ToolbarControlGroup` button, pass
504
508
  `ToolbarButton` `badge` (a count, short text, or `true` for a dot) with
505
509
  `badgeTone` and `badgeMax` (default 99, so 128 shows "99+"); a count of 0 shows
506
510
  nothing. That badge is decorative, so name the count in the button's
507
- `ariaLabel` and `title` ("Workers, 2 live"). Never position a badge with
508
- application CSS.
511
+ `ariaLabel` and `title` ("Workers, 2 live"). On a `SegmentedControl` choice,
512
+ such as a toolbar view switcher's, pass the same `badge`, `badgeTone`, and
513
+ `badgeMax` on the choice and name the count in its `label` and `title`
514
+ ("Workers View, 2 live"); give it icon `content`, since `label` is otherwise
515
+ also the visible text. Never position a badge with application CSS.
509
516
 
510
517
  If the primary toolbar has search, make it search or filter the primary searchable content of the current page or view. Rebind its scope and available filters on sub-pages and alternate views; do not wire it only to the first view. Potentially long lists, especially dynamic or user-generated ones, should normally be searchable or filterable. Omit search where the page has no searchable content. `SearchField` supplies the editor; the application owns which content the query filters.
511
518
 
@@ -688,6 +695,8 @@ Render a modal dialog as `DialogSurface` itself, a native `<dialog>` (set `alert
688
695
 
689
696
  Render a non-modal dialog as `PopoverDialogSurface` (opened by a control's `popoverTarget`), never a hand-built `popover` element with its own chrome CSS. For a request the person must answer, set `dismiss="manual"` so Escape and outside presses leave it open; to dock it to an app region (the shell's main column) instead of the viewport center, pass that region's CSS anchor name as `anchorName` and name the region with the same `anchorName` on its `Pane` (or a layout's `PaneConfig`, such as Workbench `mainPane`), never with app CSS. See `docs/surface-scaffold.md`.
690
697
 
698
+ For a non-modal panel the person may keep open while working (a component library, a palette), render `PinnablePopoverSurface` (same subpath, an `id` and a `label`) and call `wirePinnablePopover(surface, { pinned, placement, onChange })` once, never a hand-built draggable panel with app CSS and pointer handlers. It opens transient below its `popoverTarget` control and closes on Escape or a press outside; pinned (its header Pin toggle or `pinPopover(surface)`, read with `isPopoverPinned`) it stays open while the page is used, drags by its title, moves with the arrow keys (Shift for larger steps), resizes from its corner, and stays inside the viewport gutter after a window resize. The app owns storage: keep what `onChange` reports (`{ pinned, placement: { x, y, width?, height? } | null, reason }`) and pass it back to restore. Close it after a task (a drop) only when `isPopoverPinned` is false.
699
+
691
700
  Set `DialogSurface closeEmphasis="quiet"` when its built-in close control should recede. It keeps the native 40px button target, `closeLabel`, focus ring, and `kui-request-close` behavior. See `docs/surface-scaffold.md`.
692
701
 
693
702
  Toolbar visibility measurement probes and invisible state children are helper-owned and survive Kerf rerenders through `data-morph-preserve`. Actual CSS visibility stays stable while rendering removes transient parent markers, preventing geometry-driven render feedback and repeated probe recreation. Toolbar replacement, explicit internal-node removal and disposal retain their existing behavior.
@@ -62,6 +62,10 @@
62
62
  "$ref": "#/$defs/declaredType"
63
63
  },
64
64
  "default": {},
65
+ "optional": {
66
+ "description": "Makes the input optional with no default, so an omitted value reads as absent. A param with a default does not take it.",
67
+ "const": true
68
+ },
65
69
  "description": {
66
70
  "type": "string"
67
71
  }
@@ -290,7 +294,7 @@
290
294
  "required": ["$each"]
291
295
  },
292
296
  "then": {
293
- "required": ["$each", "as", "key", "template"],
297
+ "required": ["$each", "as", "key"],
294
298
  "additionalProperties": false,
295
299
  "properties": {
296
300
  "$each": {
@@ -305,7 +309,33 @@
305
309
  "minLength": 1
306
310
  },
307
311
  "template": {
308
- "$ref": "#/$defs/node"
312
+ "$ref": "#/$defs/template"
313
+ },
314
+ "templates": {
315
+ "description": "One row node per item kind; kind picks one, and an item of any other kind takes default, which is required.",
316
+ "type": "object",
317
+ "required": ["default"],
318
+ "additionalProperties": {
319
+ "$ref": "#/$defs/node"
320
+ }
321
+ },
322
+ "kind": {
323
+ "description": "A string in the item's scope that names the row's template in templates."
324
+ }
325
+ },
326
+ "if": {
327
+ "required": ["templates"]
328
+ },
329
+ "then": {
330
+ "required": ["kind"],
331
+ "not": {
332
+ "required": ["template"]
333
+ }
334
+ },
335
+ "else": {
336
+ "required": ["template"],
337
+ "not": {
338
+ "required": ["kind"]
309
339
  }
310
340
  }
311
341
  }
@@ -355,6 +385,29 @@
355
385
  }
356
386
  }
357
387
  ]
388
+ },
389
+ "template": {
390
+ "description": "An $each template: one keyable node, or an $if chain whose every branch is one. else is required, so each item yields exactly one row.",
391
+ "type": "object",
392
+ "if": {
393
+ "required": ["$if"]
394
+ },
395
+ "then": {
396
+ "required": ["$if", "then", "else"],
397
+ "additionalProperties": false,
398
+ "properties": {
399
+ "$if": {},
400
+ "then": {
401
+ "$ref": "#/$defs/node"
402
+ },
403
+ "else": {
404
+ "$ref": "#/$defs/template"
405
+ }
406
+ }
407
+ },
408
+ "else": {
409
+ "$ref": "#/$defs/node"
410
+ }
358
411
  }
359
412
  }
360
413
  }
@@ -1,6 +1,6 @@
1
1
  # Web Awesome JSX signatures for the UI authoring corpus
2
2
 
3
- Generated from the emitted `@kerfjs/ui@5.0.0-beta.124` declaration boundary. Import `@kerfjs/ui/webawesome` for type effects when authoring direct `wa-*` JSX. The module emits no runtime behavior and does not register custom elements.
3
+ Generated from the emitted `@kerfjs/ui@5.0.0-beta.126` declaration boundary. Import `@kerfjs/ui/webawesome` for type effects when authoring direct `wa-*` JSX. The module emits no runtime behavior and does not register custom elements.
4
4
 
5
5
  ```ts
6
6
  import { KerfCustomElement } from 'kerfjs/jsx-runtime';