@kerfjs/ui 5.0.0-beta.123 → 5.0.0-beta.124

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 (721) hide show
  1. package/README.md +28 -5
  2. package/ai/application-ui-diagnostic-ids-v1.json +25 -1
  3. package/ai/application-ui-profile-sync.cjs +16 -8
  4. package/ai/application-ui-profile.d.ts +2 -0
  5. package/ai/application-ui-profile.defaults.json +6 -2
  6. package/ai/application-ui-profile.mjs +16 -8
  7. package/ai/application-ui-profile.schema.json +133 -38
  8. package/ai/component-catalog.json +1499 -213
  9. package/ai/component-catalog.schema.json +19 -0
  10. package/ai/component-composition-rules.json +18 -2
  11. package/ai/component-composition.d.ts +13 -0
  12. package/ai/component-composition.json +684 -25
  13. package/ai/component-composition.schema.json +58 -0
  14. package/ai/component-props-overlay.json +952 -0
  15. package/ai/component-props-overlay.schema.json +68 -0
  16. package/ai/component-props.json +29624 -0
  17. package/ai/component-props.schema.json +401 -0
  18. package/ai/components/README.md +11 -4
  19. package/ai/components/application-tabs.md +2 -2
  20. package/ai/components/backdrop-image.md +2 -1
  21. package/ai/components/button.md +12 -6
  22. package/ai/components/checkbox-group.md +2 -0
  23. package/ai/components/checkbox.md +2 -0
  24. package/ai/components/chip.md +2 -0
  25. package/ai/components/choice-chips.md +5 -1
  26. package/ai/components/color-field.md +2 -0
  27. package/ai/components/color-picker.md +2 -0
  28. package/ai/components/color-swatches.md +2 -0
  29. package/ai/components/column-explorer.md +89 -0
  30. package/ai/components/column-track.md +3 -2
  31. package/ai/components/combobox.md +2 -0
  32. package/ai/components/content-item.md +7 -2
  33. package/ai/components/disclosure.md +2 -0
  34. package/ai/components/file-picker.md +5 -2
  35. package/ai/components/form.md +86 -0
  36. package/ai/components/foundation.md +1 -1
  37. package/ai/components/list-action-row.md +2 -0
  38. package/ai/components/list-detail-dialog.md +2 -0
  39. package/ai/components/list-header.md +2 -0
  40. package/ai/components/list-item.md +4 -0
  41. package/ai/components/list.md +6 -2
  42. package/ai/components/message-composer.md +3 -1
  43. package/ai/components/nav-stack.md +2 -0
  44. package/ai/components/paged-view.md +89 -0
  45. package/ai/components/pane.md +4 -1
  46. package/ai/components/popup-menu.md +5 -2
  47. package/ai/components/radio-group.md +2 -0
  48. package/ai/components/recipe-composer-form.md +2 -2
  49. package/ai/components/scroll-effect.md +84 -0
  50. package/ai/components/search-field.md +2 -0
  51. package/ai/components/segmented-control.md +2 -0
  52. package/ai/components/select.md +4 -0
  53. package/ai/components/sized-region.md +86 -0
  54. package/ai/components/slider.md +2 -0
  55. package/ai/components/split-button.md +3 -1
  56. package/ai/components/split-view.md +1 -1
  57. package/ai/components/state-banner.md +2 -0
  58. package/ai/components/summary-row.md +14 -8
  59. package/ai/components/surface-scaffold.md +5 -3
  60. package/ai/components/switch.md +2 -0
  61. package/ai/components/tab-bar.md +5 -2
  62. package/ai/components/tab-navigator.md +2 -0
  63. package/ai/components/tab-panel.md +84 -0
  64. package/ai/components/tabs.md +6 -2
  65. package/ai/components/tag-field.md +2 -0
  66. package/ai/components/text-field.md +2 -0
  67. package/ai/components/text.md +3 -0
  68. package/ai/components/toolbar-control-group.md +10 -3
  69. package/ai/components/toolbar-text.md +2 -0
  70. package/ai/components/toolbar.md +4 -3
  71. package/ai/components/tree-list.md +95 -0
  72. package/ai/components/wa-accordion-item.md +2 -0
  73. package/ai/components/wa-breadcrumb-item.md +2 -0
  74. package/ai/components/wa-button.md +2 -0
  75. package/ai/components/wa-carousel.md +2 -0
  76. package/ai/components/wa-checkbox.md +2 -0
  77. package/ai/components/wa-color-picker.md +2 -0
  78. package/ai/components/wa-comparison.md +2 -0
  79. package/ai/components/wa-copy-button.md +2 -0
  80. package/ai/components/wa-details.md +2 -0
  81. package/ai/components/wa-dialog.md +2 -0
  82. package/ai/components/wa-drawer.md +2 -0
  83. package/ai/components/wa-dropdown-item.md +2 -0
  84. package/ai/components/wa-input.md +2 -0
  85. package/ai/components/wa-known-date.md +2 -0
  86. package/ai/components/wa-number-input.md +2 -0
  87. package/ai/components/wa-otp-input.md +2 -0
  88. package/ai/components/wa-pagination.md +2 -0
  89. package/ai/components/wa-radio.md +2 -0
  90. package/ai/components/wa-rating.md +2 -0
  91. package/ai/components/wa-select.md +2 -0
  92. package/ai/components/wa-slider.md +2 -0
  93. package/ai/components/wa-switch.md +2 -0
  94. package/ai/components/wa-tab-panel.md +5 -5
  95. package/ai/components/wa-tab.md +2 -0
  96. package/ai/components/wa-tag-input.md +2 -0
  97. package/ai/components/wa-textarea.md +2 -0
  98. package/ai/components/wa-time-input.md +2 -0
  99. package/ai/components/wa-tree-item.md +12 -5
  100. package/ai/components/wa-tree.md +10 -5
  101. package/ai/components/wa-zoomable-frame.md +2 -0
  102. package/ai/components/workbench-dialog.md +2 -0
  103. package/ai/public-api-signatures-v1.md +1249 -127
  104. package/ai/skill.md +106 -39
  105. package/ai/view-document.schema.json +360 -0
  106. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  107. package/analyzer/index.mjs +89 -1
  108. package/dist/anchor-name-BZ1rpxaw.d.ts +4 -0
  109. package/dist/backdrop-image.d.ts +6 -2
  110. package/dist/backdrop-image.js +2 -1
  111. package/dist/badge.js +1 -1
  112. package/dist/browser/backdrop-image.js +1 -0
  113. package/dist/browser/catalog.js +1 -1
  114. package/dist/browser/collapsible-panel.js +1 -0
  115. package/dist/browser/column-explorer.js +9 -0
  116. package/dist/browser/content-item.js +1 -0
  117. package/dist/browser/editor.js +45 -0
  118. package/dist/browser/form.js +3 -0
  119. package/dist/browser/list-detail-dialog.js +1 -0
  120. package/dist/browser/nav-stack.js +1 -0
  121. package/dist/browser/paged-view.js +3 -0
  122. package/dist/browser/scroll-effect.js +3 -0
  123. package/dist/browser/sized-region.js +3 -0
  124. package/dist/browser/split-view.js +1 -0
  125. package/dist/browser/tab-panel.js +3 -0
  126. package/dist/browser/toolbar-control-group.js +1 -0
  127. package/dist/browser/tree-list.js +7 -0
  128. package/dist/browser/workbench-dialog.js +1 -0
  129. package/dist/browser/workbench.js +1 -0
  130. package/dist/button.d.ts +54 -13
  131. package/dist/button.js +2 -1
  132. package/dist/catalog-resources.d.ts +3 -2
  133. package/dist/catalog.d.ts +3 -2
  134. package/dist/catalog.js +21 -17
  135. package/dist/catalog.js.map +1 -1
  136. package/dist/checkbox-group.js +1 -1
  137. package/dist/checkbox.js +1 -1
  138. package/dist/chip.js +1 -1
  139. package/dist/choice-chips.d.ts +21 -2
  140. package/dist/choice-chips.js +2 -1
  141. package/dist/{chunk-3WWX2O4G.js → chunk-2E7S5C4D.js} +5 -46
  142. package/dist/chunk-2E7S5C4D.js.map +1 -0
  143. package/dist/{chunk-QYMJHS4K.js → chunk-34FWYJX6.js} +9 -3
  144. package/dist/chunk-34FWYJX6.js.map +1 -0
  145. package/dist/{chunk-OUCHU7JB.js → chunk-3JOEJT2Z.js} +7 -7
  146. package/dist/{chunk-OUCHU7JB.js.map → chunk-3JOEJT2Z.js.map} +1 -1
  147. package/dist/chunk-3S3WXAZ5.js +207 -0
  148. package/dist/chunk-3S3WXAZ5.js.map +1 -0
  149. package/dist/{chunk-AN5IWMTM.js → chunk-3TBMGGTA.js} +6 -3
  150. package/dist/chunk-3TBMGGTA.js.map +1 -0
  151. package/dist/{chunk-3Z7N2NAZ.js → chunk-3XSY5LAB.js} +4 -4
  152. package/dist/{chunk-3Z7N2NAZ.js.map → chunk-3XSY5LAB.js.map} +1 -1
  153. package/dist/chunk-44AOBT2F.js +16 -0
  154. package/dist/chunk-44AOBT2F.js.map +1 -0
  155. package/dist/{chunk-YWLDLNAV.js → chunk-4IXG6XCT.js} +18 -3
  156. package/dist/chunk-4IXG6XCT.js.map +1 -0
  157. package/dist/chunk-4K7XXSOX.js +21 -0
  158. package/dist/chunk-4K7XXSOX.js.map +1 -0
  159. package/dist/{chunk-LZUUUHNH.js → chunk-4Z4QSTRF.js} +20 -3
  160. package/dist/chunk-4Z4QSTRF.js.map +1 -0
  161. package/dist/{chunk-QH5KOFNS.js → chunk-5KWXM5O7.js} +15 -3
  162. package/dist/chunk-5KWXM5O7.js.map +1 -0
  163. package/dist/{chunk-EYDXFOSH.js → chunk-5SFHBYEY.js} +2 -2
  164. package/dist/chunk-5SFHBYEY.js.map +1 -0
  165. package/dist/{chunk-HU5IHXCI.js → chunk-6BXPN5SC.js} +3 -3
  166. package/dist/{chunk-HU5IHXCI.js.map → chunk-6BXPN5SC.js.map} +1 -1
  167. package/dist/{chunk-6VVIW7VB.js → chunk-73LC3JAL.js} +13 -4
  168. package/dist/chunk-73LC3JAL.js.map +1 -0
  169. package/dist/{chunk-IO27YTL3.js → chunk-76VCWWUA.js} +2 -2
  170. package/dist/{chunk-IO27YTL3.js.map → chunk-76VCWWUA.js.map} +1 -1
  171. package/dist/{chunk-ETFP7HAR.js → chunk-7AUZG5EW.js} +13 -4
  172. package/dist/chunk-7AUZG5EW.js.map +1 -0
  173. package/dist/{chunk-3V4OCDTL.js → chunk-7DIWVGGA.js} +2 -14
  174. package/dist/chunk-7DIWVGGA.js.map +1 -0
  175. package/dist/chunk-7KN5OQVN.js +157 -0
  176. package/dist/chunk-7KN5OQVN.js.map +1 -0
  177. package/dist/chunk-7QQ3HE47.js +17 -0
  178. package/dist/chunk-7QQ3HE47.js.map +1 -0
  179. package/dist/{chunk-WPP5Q4A5.js → chunk-ADMWT7FX.js} +19 -1
  180. package/dist/chunk-ADMWT7FX.js.map +1 -0
  181. package/dist/{chunk-LMHN2TJL.js → chunk-BCHK33XL.js} +2 -2
  182. package/dist/{chunk-LMHN2TJL.js.map → chunk-BCHK33XL.js.map} +1 -1
  183. package/dist/chunk-BCO673YW.js +123 -0
  184. package/dist/chunk-BCO673YW.js.map +1 -0
  185. package/dist/{chunk-OQP3PFKQ.js → chunk-BZXA5SSA.js} +90 -33
  186. package/dist/chunk-BZXA5SSA.js.map +1 -0
  187. package/dist/{chunk-LTBVP6VN.js → chunk-C4FBYP2D.js} +2 -2
  188. package/dist/{chunk-LTBVP6VN.js.map → chunk-C4FBYP2D.js.map} +1 -1
  189. package/dist/{chunk-AMIHGFLP.js → chunk-CCPWJDRW.js} +4 -2
  190. package/dist/chunk-CCPWJDRW.js.map +1 -0
  191. package/dist/{chunk-S4Y3YTAI.js → chunk-CJAKN2KZ.js} +2 -2
  192. package/dist/{chunk-S4Y3YTAI.js.map → chunk-CJAKN2KZ.js.map} +1 -1
  193. package/dist/chunk-CKPI4WIN.js +58 -0
  194. package/dist/chunk-CKPI4WIN.js.map +1 -0
  195. package/dist/{chunk-HJXVVFBT.js → chunk-CMG4OZPV.js} +13 -2
  196. package/dist/chunk-CMG4OZPV.js.map +1 -0
  197. package/dist/{chunk-KH4KEMSP.js → chunk-COQI4OMZ.js} +1 -1
  198. package/dist/chunk-COQI4OMZ.js.map +1 -0
  199. package/dist/{chunk-G3J7JDP6.js → chunk-CPTQABDQ.js} +10 -3
  200. package/dist/chunk-CPTQABDQ.js.map +1 -0
  201. package/dist/{chunk-TI2GV36S.js → chunk-CRHKWHTA.js} +4 -4
  202. package/dist/{chunk-TI2GV36S.js.map → chunk-CRHKWHTA.js.map} +1 -1
  203. package/dist/{chunk-3KFMLOTH.js → chunk-DBP3N6E5.js} +8 -5
  204. package/dist/chunk-DBP3N6E5.js.map +1 -0
  205. package/dist/chunk-DJ65XFVN.js +231 -0
  206. package/dist/chunk-DJ65XFVN.js.map +1 -0
  207. package/dist/chunk-DKPYHVIV.js +13 -0
  208. package/dist/chunk-DKPYHVIV.js.map +1 -0
  209. package/dist/{chunk-ITUQC4FW.js → chunk-DV6GE57V.js} +31 -3
  210. package/dist/chunk-DV6GE57V.js.map +1 -0
  211. package/dist/{chunk-S3ECMF23.js → chunk-E7Q6UNCB.js} +11 -3
  212. package/dist/chunk-E7Q6UNCB.js.map +1 -0
  213. package/dist/{chunk-C26Q6P4Q.js → chunk-E7ZRBMVQ.js} +3 -3
  214. package/dist/{chunk-C26Q6P4Q.js.map → chunk-E7ZRBMVQ.js.map} +1 -1
  215. package/dist/chunk-ECVTRAXN.js +37 -0
  216. package/dist/chunk-ECVTRAXN.js.map +1 -0
  217. package/dist/{chunk-EIET4QLK.js → chunk-EHR7R7YP.js} +14 -3
  218. package/dist/chunk-EHR7R7YP.js.map +1 -0
  219. package/dist/{chunk-5J6Z4BWY.js → chunk-EXGDKG7B.js} +127 -5
  220. package/dist/chunk-EXGDKG7B.js.map +1 -0
  221. package/dist/{chunk-7K6U6FCN.js → chunk-F34LHBQI.js} +47 -12
  222. package/dist/chunk-F34LHBQI.js.map +1 -0
  223. package/dist/{chunk-IIQ2XIMU.js → chunk-F3PZGFEA.js} +32 -11
  224. package/dist/chunk-F3PZGFEA.js.map +1 -0
  225. package/dist/{chunk-3OP66VXU.js → chunk-FJMABKKV.js} +5 -3
  226. package/dist/chunk-FJMABKKV.js.map +1 -0
  227. package/dist/{chunk-B53PS2LE.js → chunk-FNJA4S6J.js} +7 -3
  228. package/dist/chunk-FNJA4S6J.js.map +1 -0
  229. package/dist/{chunk-YMUIQRWK.js → chunk-FQETQ7CM.js} +6 -2
  230. package/dist/chunk-FQETQ7CM.js.map +1 -0
  231. package/dist/{chunk-KCS6NJ3O.js → chunk-FR5G77K5.js} +2 -2
  232. package/dist/{chunk-KCS6NJ3O.js.map → chunk-FR5G77K5.js.map} +1 -1
  233. package/dist/chunk-GVII4JSD.js +153 -0
  234. package/dist/chunk-GVII4JSD.js.map +1 -0
  235. package/dist/chunk-HPOXLOVC.js +184 -0
  236. package/dist/chunk-HPOXLOVC.js.map +1 -0
  237. package/dist/{chunk-EKHDLBRP.js → chunk-JAC6AVZN.js} +21 -3
  238. package/dist/chunk-JAC6AVZN.js.map +1 -0
  239. package/dist/{chunk-CTQUDCY5.js → chunk-JG4ONAOI.js} +4 -2
  240. package/dist/{chunk-CTQUDCY5.js.map → chunk-JG4ONAOI.js.map} +1 -1
  241. package/dist/{chunk-K67XBCHG.js → chunk-JHUEYWWI.js} +6 -4
  242. package/dist/chunk-JHUEYWWI.js.map +1 -0
  243. package/dist/{chunk-GS2QD3N7.js → chunk-JZZVWTUB.js} +2 -2
  244. package/dist/{chunk-GS2QD3N7.js.map → chunk-JZZVWTUB.js.map} +1 -1
  245. package/dist/{chunk-XRZSK2WC.js → chunk-KACJOE2N.js} +16 -5
  246. package/dist/chunk-KACJOE2N.js.map +1 -0
  247. package/dist/chunk-KELWWCMX.js +426 -0
  248. package/dist/chunk-KELWWCMX.js.map +1 -0
  249. package/dist/{chunk-KDQZ3E5C.js → chunk-KLR3DCHH.js} +58 -4
  250. package/dist/chunk-KLR3DCHH.js.map +1 -0
  251. package/dist/{chunk-S3DCRI2M.js → chunk-LD6A6PYB.js} +43 -5
  252. package/dist/chunk-LD6A6PYB.js.map +1 -0
  253. package/dist/{chunk-BKUMG2KB.js → chunk-LET362AM.js} +13 -3
  254. package/dist/chunk-LET362AM.js.map +1 -0
  255. package/dist/{chunk-C2ZO3OZZ.js → chunk-LOW7J7SE.js} +4 -4
  256. package/dist/chunk-LOW7J7SE.js.map +1 -0
  257. package/dist/{chunk-ITENVZ6Q.js → chunk-M72QLDUO.js} +13 -4
  258. package/dist/chunk-M72QLDUO.js.map +1 -0
  259. package/dist/{chunk-OHPYT2BH.js → chunk-MLDO7WLA.js} +2 -2
  260. package/dist/{chunk-OHPYT2BH.js.map → chunk-MLDO7WLA.js.map} +1 -1
  261. package/dist/{chunk-D5RGM3XA.js → chunk-NA4LKVPX.js} +12 -2
  262. package/dist/chunk-NA4LKVPX.js.map +1 -0
  263. package/dist/chunk-NR3ZO4LK.js +67 -0
  264. package/dist/chunk-NR3ZO4LK.js.map +1 -0
  265. package/dist/{chunk-YPAQFBMN.js → chunk-NYNNNEAU.js} +44 -10
  266. package/dist/chunk-NYNNNEAU.js.map +1 -0
  267. package/dist/chunk-OKZTLRGG.js +34 -0
  268. package/dist/chunk-OKZTLRGG.js.map +1 -0
  269. package/dist/{chunk-ZX2QQJXD.js → chunk-PVKAIVKE.js} +95 -61
  270. package/dist/chunk-PVKAIVKE.js.map +1 -0
  271. package/dist/{chunk-Y6KT7ZTR.js → chunk-Q2CLQ3IJ.js} +21 -3
  272. package/dist/chunk-Q2CLQ3IJ.js.map +1 -0
  273. package/dist/{chunk-2J7XKAZX.js → chunk-Q2SLOMN6.js} +7 -6
  274. package/dist/chunk-Q2SLOMN6.js.map +1 -0
  275. package/dist/{chunk-S2XULQEK.js → chunk-Q5BPZPCO.js} +2 -2
  276. package/dist/{chunk-S2XULQEK.js.map → chunk-Q5BPZPCO.js.map} +1 -1
  277. package/dist/{chunk-ROEBKSIY.js → chunk-Q7RILH2D.js} +14 -6
  278. package/dist/chunk-Q7RILH2D.js.map +1 -0
  279. package/dist/chunk-QR7MGGOM.js +49 -0
  280. package/dist/chunk-QR7MGGOM.js.map +1 -0
  281. package/dist/{chunk-PS24PVR6.js → chunk-QXXLDY6I.js} +50 -10
  282. package/dist/chunk-QXXLDY6I.js.map +1 -0
  283. package/dist/chunk-QY77Q7RY.js +129 -0
  284. package/dist/chunk-QY77Q7RY.js.map +1 -0
  285. package/dist/{chunk-4OV272LF.js → chunk-R6FIXYAE.js} +4 -4
  286. package/dist/{chunk-4OV272LF.js.map → chunk-R6FIXYAE.js.map} +1 -1
  287. package/dist/{chunk-N2K3QGSX.js → chunk-RGB4DPMN.js} +16 -3
  288. package/dist/chunk-RGB4DPMN.js.map +1 -0
  289. package/dist/{chunk-TKNVL53O.js → chunk-RPJOLDSR.js} +11 -3
  290. package/dist/chunk-RPJOLDSR.js.map +1 -0
  291. package/dist/chunk-SBCXWGNP.js +256 -0
  292. package/dist/chunk-SBCXWGNP.js.map +1 -0
  293. package/dist/{chunk-WPNIKZMJ.js → chunk-SJBMKA4X.js} +2 -2
  294. package/dist/{chunk-WPNIKZMJ.js.map → chunk-SJBMKA4X.js.map} +1 -1
  295. package/dist/{chunk-RMWNO6BA.js → chunk-SNUDT6AX.js} +2 -2
  296. package/dist/{chunk-RMWNO6BA.js.map → chunk-SNUDT6AX.js.map} +1 -1
  297. package/dist/{chunk-NR6O74ST.js → chunk-SPI6VMIY.js} +14 -10
  298. package/dist/chunk-SPI6VMIY.js.map +1 -0
  299. package/dist/{chunk-ZN7KUMPY.js → chunk-SWXWLSUD.js} +17 -3
  300. package/dist/chunk-SWXWLSUD.js.map +1 -0
  301. package/dist/chunk-TBVSPSGX.js +14 -0
  302. package/dist/chunk-TBVSPSGX.js.map +1 -0
  303. package/dist/{chunk-UMNHJSIO.js → chunk-TPLVC5BE.js} +2 -2
  304. package/dist/{chunk-UMNHJSIO.js.map → chunk-TPLVC5BE.js.map} +1 -1
  305. package/dist/chunk-TRJS7M2H.js +39 -0
  306. package/dist/chunk-TRJS7M2H.js.map +1 -0
  307. package/dist/chunk-TXBNPEIJ.js +31 -0
  308. package/dist/chunk-TXBNPEIJ.js.map +1 -0
  309. package/dist/{chunk-VEME3D7K.js → chunk-UD5KHQOH.js} +27 -3
  310. package/dist/chunk-UD5KHQOH.js.map +1 -0
  311. package/dist/{chunk-5CLMV5YU.js → chunk-UPHPFKAD.js} +54 -18
  312. package/dist/chunk-UPHPFKAD.js.map +1 -0
  313. package/dist/{chunk-WVS6CUCT.js → chunk-V3IXAI4L.js} +6 -2
  314. package/dist/chunk-V3IXAI4L.js.map +1 -0
  315. package/dist/{chunk-CVD5IZGB.js → chunk-VBXKYT4O.js} +7 -2
  316. package/dist/chunk-VBXKYT4O.js.map +1 -0
  317. package/dist/{chunk-OZ6X76G5.js → chunk-VNT4MXR5.js} +4 -3
  318. package/dist/chunk-VNT4MXR5.js.map +1 -0
  319. package/dist/{chunk-K57NINLH.js → chunk-VPDSPD76.js} +54 -1
  320. package/dist/chunk-VPDSPD76.js.map +1 -0
  321. package/dist/chunk-VX3YF2UD.js +77 -0
  322. package/dist/chunk-VX3YF2UD.js.map +1 -0
  323. package/dist/chunk-WCMGPAY2.js +103 -0
  324. package/dist/chunk-WCMGPAY2.js.map +1 -0
  325. package/dist/{chunk-DZJ4GBSP.js → chunk-WSPXSWFG.js} +21 -4
  326. package/dist/chunk-WSPXSWFG.js.map +1 -0
  327. package/dist/{chunk-NB6POCFH.js → chunk-WVQDIOD7.js} +56 -11
  328. package/dist/chunk-WVQDIOD7.js.map +1 -0
  329. package/dist/{chunk-F653O57X.js → chunk-Y4VR6VNM.js} +6 -3
  330. package/dist/chunk-Y4VR6VNM.js.map +1 -0
  331. package/dist/{chunk-CEJ5FK6G.js → chunk-YHRJNKD5.js} +2 -2
  332. package/dist/{chunk-CEJ5FK6G.js.map → chunk-YHRJNKD5.js.map} +1 -1
  333. package/dist/{chunk-XWNXGFX3.js → chunk-Z3T24FX3.js} +2 -2
  334. package/dist/{chunk-XWNXGFX3.js.map → chunk-Z3T24FX3.js.map} +1 -1
  335. package/dist/collapsible-panel.d.ts +10 -3
  336. package/dist/collapsible-panel.js +45 -5
  337. package/dist/collapsible-panel.js.map +1 -1
  338. package/dist/color-field.js +2 -2
  339. package/dist/color-picker.js +1 -1
  340. package/dist/color-swatches.js +1 -1
  341. package/dist/column-explorer.d.ts +67 -0
  342. package/dist/column-explorer.js +140 -0
  343. package/dist/column-explorer.js.map +1 -0
  344. package/dist/column-track.d.ts +12 -3
  345. package/dist/column-track.js +1 -1
  346. package/dist/combobox.d.ts +5 -1
  347. package/dist/combobox.js +2 -1
  348. package/dist/content-item.d.ts +14 -4
  349. package/dist/content-item.js +2 -1
  350. package/dist/content-swap.d.ts +5 -1
  351. package/dist/content-swap.js +2 -1
  352. package/dist/corner-status.d.ts +5 -1
  353. package/dist/corner-status.js +2 -1
  354. package/dist/device-class.js +1 -101
  355. package/dist/device-class.js.map +1 -1
  356. package/dist/disclosure-arrow.d.ts +5 -1
  357. package/dist/disclosure-arrow.js +2 -1
  358. package/dist/disclosure.js +2 -2
  359. package/dist/edge-activity-indicator.d.ts +5 -1
  360. package/dist/edge-activity-indicator.js +2 -1
  361. package/dist/editor.d.ts +344 -0
  362. package/dist/editor.js +10076 -0
  363. package/dist/editor.js.map +1 -0
  364. package/dist/empty-state.d.ts +5 -1
  365. package/dist/empty-state.js +2 -1
  366. package/dist/{extension-attributes-mu8MFUl0.d.ts → extension-attributes-IJ4decoa.d.ts} +7 -1
  367. package/dist/file-picker.d.ts +25 -4
  368. package/dist/file-picker.js +2 -1
  369. package/dist/floating-toolbar.d.ts +5 -1
  370. package/dist/floating-toolbar.js +2 -1
  371. package/dist/form.d.ts +45 -0
  372. package/dist/form.js +4 -0
  373. package/dist/form.js.map +1 -0
  374. package/dist/framed-list.js +1 -1
  375. package/dist/grid.js +1 -1
  376. package/dist/index.d.ts +14 -7
  377. package/dist/index.js +82 -70
  378. package/dist/list-action-row.d.ts +1 -1
  379. package/dist/list-action-row.js +2 -1
  380. package/dist/list-detail-dialog.d.ts +10 -3
  381. package/dist/list-detail-dialog.js +15 -11
  382. package/dist/list-detail-dialog.js.map +1 -1
  383. package/dist/list-header.d.ts +11 -3
  384. package/dist/list-header.js +1 -1
  385. package/dist/list-inset-control.d.ts +5 -1
  386. package/dist/list-inset-control.js +2 -1
  387. package/dist/list-inset-text.js +1 -1
  388. package/dist/list-item.js +3 -1
  389. package/dist/list.d.ts +130 -11
  390. package/dist/list.js +1 -1
  391. package/dist/loading-spinner.d.ts +5 -1
  392. package/dist/loading-spinner.js +2 -1
  393. package/dist/lucide-icon.d.ts +5 -1
  394. package/dist/lucide-icon.js +2 -1
  395. package/dist/message-composer.js +1 -1
  396. package/dist/{nav-stack-CrZF95VO.d.ts → nav-stack-DwxpXxqJ.d.ts} +13 -2
  397. package/dist/nav-stack.d.ts +3 -2
  398. package/dist/nav-stack.js +4 -1
  399. package/dist/paged-view.d.ts +47 -0
  400. package/dist/paged-view.js +86 -0
  401. package/dist/paged-view.js.map +1 -0
  402. package/dist/pane.d.ts +42 -5
  403. package/dist/pane.js +2 -1
  404. package/dist/popup-menu-register.js +1 -1
  405. package/dist/popup-menu.d.ts +42 -2
  406. package/dist/popup-menu.js +2 -1
  407. package/dist/progress-bar.js +1 -1
  408. package/dist/progress-ring.js +1 -1
  409. package/dist/radio-group.js +1 -1
  410. package/dist/resizable-region.d.ts +5 -1
  411. package/dist/resizable-region.js +2 -1
  412. package/dist/row.d.ts +7 -2
  413. package/dist/row.js +1 -1
  414. package/dist/scroll-effect.d.ts +86 -0
  415. package/dist/scroll-effect.js +5 -0
  416. package/dist/scroll-effect.js.map +1 -0
  417. package/dist/{search-field-CrGTN5sa.d.ts → search-field-5lNIszda.d.ts} +5 -1
  418. package/dist/search-field-model.d.ts +2 -1
  419. package/dist/search-field.d.ts +2 -1
  420. package/dist/search-field.js +2 -1
  421. package/dist/segmented-control.d.ts +5 -1
  422. package/dist/segmented-control.js +2 -1
  423. package/dist/select-register.js +9 -2
  424. package/dist/select-register.js.map +1 -1
  425. package/dist/select.d.ts +22 -1
  426. package/dist/select.js +1 -1
  427. package/dist/sized-region.d.ts +44 -0
  428. package/dist/sized-region.js +4 -0
  429. package/dist/sized-region.js.map +1 -0
  430. package/dist/skeleton.d.ts +5 -1
  431. package/dist/skeleton.js +2 -1
  432. package/dist/slider.js +1 -1
  433. package/dist/spacer.d.ts +5 -1
  434. package/dist/spacer.js +2 -1
  435. package/dist/split-button.js +1 -1
  436. package/dist/split-view.d.ts +7 -3
  437. package/dist/split-view.js +4 -1
  438. package/dist/state-banner.d.ts +7 -0
  439. package/dist/state-banner.js +1 -1
  440. package/dist/styles/backdrop-image.css +136 -70
  441. package/dist/styles/badge.css +31 -0
  442. package/dist/styles/button.css +103 -0
  443. package/dist/styles/choice-chips.css +45 -0
  444. package/dist/styles/column-explorer.css +6 -0
  445. package/dist/styles/components/actions/button/button.css +103 -0
  446. package/dist/styles/components/actions/popup-menu/popup-menu.css +154 -1
  447. package/dist/styles/components/actions/toolbar/toolbar.css +19 -11
  448. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +38 -200
  449. package/dist/styles/components/collections/column-explorer/column-explorer.css +6 -0
  450. package/dist/styles/components/collections/list/list.css +6 -0
  451. package/dist/styles/components/collections/list-item/list-item.css +68 -2
  452. package/dist/styles/components/collections/summary-row/summary-row.css +39 -6
  453. package/dist/styles/components/collections/tree-list/tree-list.css +7 -0
  454. package/dist/styles/components/data-display/value-table/value-table.css +1 -1
  455. package/dist/styles/components/feedback/badge/badge.css +31 -0
  456. package/dist/styles/components/feedback/state-banner/state-banner.css +12 -7
  457. package/dist/styles/components/forms/choice-chips/choice-chips.css +45 -0
  458. package/dist/styles/components/forms/file-picker/file-picker.css +13 -2
  459. package/dist/styles/components/forms/form/form.css +6 -0
  460. package/dist/styles/components/forms/select/select.css +85 -2
  461. package/dist/styles/components/forms/text-field/text-field.css +44 -0
  462. package/dist/styles/components/layout/pane/pane.css +16 -0
  463. package/dist/styles/components/layout/resizable-region/resizable-region.css +0 -10
  464. package/dist/styles/components/layout/sized-region/sized-region.css +22 -0
  465. package/dist/styles/components/layout/workbench/workbench.css +0 -21
  466. package/dist/styles/components/navigation/nav-stack/nav-stack.css +2 -0
  467. package/dist/styles/components/navigation/paged-view/paged-view.css +160 -0
  468. package/dist/styles/components/navigation/tab-bar/tab-bar.css +9 -0
  469. package/dist/styles/components/navigation/tab-bar-item/tab-bar-item.css +110 -2
  470. package/dist/styles/components/navigation/tab-panel/tab-panel.css +7 -0
  471. package/dist/styles/components/surfaces/backdrop-image/backdrop-image.css +14 -70
  472. package/dist/styles/components/surfaces/scroll-effect/scroll-effect.css +121 -0
  473. package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +77 -29
  474. package/dist/styles/components/typography/text/text.css +4 -4
  475. package/dist/styles/content-item.css +551 -3
  476. package/dist/styles/document.css +1 -6
  477. package/dist/styles/editor/editor.css +530 -0
  478. package/dist/styles/editor.css +4 -0
  479. package/dist/styles/file-picker.css +13 -2
  480. package/dist/styles/form.css +6 -0
  481. package/dist/styles/foundation.css +55 -1
  482. package/dist/styles/list-item.css +68 -2
  483. package/dist/styles/list.css +6 -0
  484. package/dist/styles/nav-stack.css +2 -0
  485. package/dist/styles/overlay-sheet.css +7 -7
  486. package/dist/styles/paged-view.css +160 -0
  487. package/dist/styles/pane.css +16 -0
  488. package/dist/styles/popup-menu.css +154 -1
  489. package/dist/styles/resizable-region.css +0 -10
  490. package/dist/styles/scroll-effect.css +121 -0
  491. package/dist/styles/select.css +85 -2
  492. package/dist/styles/sized-region.css +22 -0
  493. package/dist/styles/state-banner.css +12 -7
  494. package/dist/styles/styles.css +11 -0
  495. package/dist/styles/summary-row.css +39 -6
  496. package/dist/styles/surface-scaffold.css +77 -29
  497. package/dist/styles/tab-bar-item.css +110 -2
  498. package/dist/styles/tab-bar.css +9 -0
  499. package/dist/styles/tab-panel.css +7 -0
  500. package/dist/styles/text-field.css +44 -0
  501. package/dist/styles/text.css +4 -4
  502. package/dist/styles/toolbar-control-group.css +38 -200
  503. package/dist/styles/toolbar.css +19 -11
  504. package/dist/styles/tree-list.css +7 -0
  505. package/dist/styles/value-table.css +1 -1
  506. package/dist/styles/webawesome.css +350 -6
  507. package/dist/styles/workbench.css +0 -21
  508. package/dist/summary-row.d.ts +9 -1
  509. package/dist/summary-row.js +1 -1
  510. package/dist/sunken-panel.d.ts +5 -1
  511. package/dist/sunken-panel.js +2 -1
  512. package/dist/surface-scaffold-register.js +1 -1
  513. package/dist/surface-scaffold.d.ts +37 -6
  514. package/dist/surface-scaffold.js +3 -2
  515. package/dist/switch.js +1 -1
  516. package/dist/tab-bar-item.d.ts +8 -1
  517. package/dist/tab-bar-item.js +1 -1
  518. package/dist/tab-bar.d.ts +15 -2
  519. package/dist/tab-bar.js +2 -1
  520. package/dist/tab-navigator.d.ts +25 -3
  521. package/dist/tab-navigator.js +42 -19
  522. package/dist/tab-navigator.js.map +1 -1
  523. package/dist/tab-panel.d.ts +35 -0
  524. package/dist/tab-panel.js +4 -0
  525. package/dist/tab-panel.js.map +1 -0
  526. package/dist/tag-field.d.ts +5 -1
  527. package/dist/tag-field.js +2 -1
  528. package/dist/text-field.d.ts +22 -4
  529. package/dist/text-field.js +1 -1
  530. package/dist/text.d.ts +37 -5
  531. package/dist/text.js +2 -1
  532. package/dist/toolbar-control-group.d.ts +83 -3
  533. package/dist/toolbar-control-group.js +4 -1
  534. package/dist/toolbar-text.d.ts +9 -1
  535. package/dist/toolbar-text.js +2 -1
  536. package/dist/toolbar.d.ts +6 -1
  537. package/dist/toolbar.js +2 -1
  538. package/dist/tree-list.d.ts +42 -0
  539. package/dist/tree-list.js +12 -0
  540. package/dist/tree-list.js.map +1 -0
  541. package/dist/tree-rows-eHnnGLGM.d.ts +65 -0
  542. package/dist/value-preview.d.ts +5 -1
  543. package/dist/value-preview.js +2 -1
  544. package/dist/value-table.d.ts +9 -2
  545. package/dist/value-table.js +2 -1
  546. package/dist/wire-catalog.d.ts +3 -2
  547. package/dist/wire-catalog.js +4 -3
  548. package/dist/wire-catalog.js.map +1 -1
  549. package/dist/wire-choice-chips.d.ts +3 -1
  550. package/dist/wire-choice-chips.js +1 -1
  551. package/dist/wire-color-fields.js +2 -73
  552. package/dist/wire-color-fields.js.map +1 -1
  553. package/dist/wire-color-pickers.js +1 -1
  554. package/dist/wire-column-explorer.d.ts +13 -0
  555. package/dist/wire-column-explorer.js +94 -0
  556. package/dist/wire-column-explorer.js.map +1 -0
  557. package/dist/wire-content-items.d.ts +10 -1
  558. package/dist/wire-content-items.js +1 -293
  559. package/dist/wire-content-items.js.map +1 -1
  560. package/dist/wire-forms.d.ts +14 -0
  561. package/dist/wire-forms.js +3 -0
  562. package/dist/wire-forms.js.map +1 -0
  563. package/dist/wire-nav-stack.js +1 -423
  564. package/dist/wire-nav-stack.js.map +1 -1
  565. package/dist/wire-paged-views.d.ts +27 -0
  566. package/dist/wire-paged-views.js +186 -0
  567. package/dist/wire-paged-views.js.map +1 -0
  568. package/dist/wire-resizable-regions.js +2 -1
  569. package/dist/wire-scroll-dividers.js +1 -1
  570. package/dist/wire-search-fields.d.ts +2 -1
  571. package/dist/wire-search-fields.js +2 -1
  572. package/dist/wire-sidebar.js +1 -229
  573. package/dist/wire-sidebar.js.map +1 -1
  574. package/dist/wire-sliders.js +1 -29
  575. package/dist/wire-sliders.js.map +1 -1
  576. package/dist/wire-summary-rows.d.ts +18 -0
  577. package/dist/wire-summary-rows.js +4 -0
  578. package/dist/wire-summary-rows.js.map +1 -0
  579. package/dist/wire-tab-bars.d.ts +1 -0
  580. package/dist/wire-tab-bars.js +1 -1
  581. package/dist/wire-tab-navigator.js +1 -151
  582. package/dist/wire-tab-navigator.js.map +1 -1
  583. package/dist/wire-tag-fields.js +3 -252
  584. package/dist/wire-tag-fields.js.map +1 -1
  585. package/dist/wire-tree-list.d.ts +53 -0
  586. package/dist/wire-tree-list.js +3 -0
  587. package/dist/wire-tree-list.js.map +1 -0
  588. package/dist/wire-workbench.js +2 -1
  589. package/dist/workbench-dialog.d.ts +10 -3
  590. package/dist/workbench-dialog.js +13 -9
  591. package/dist/workbench-dialog.js.map +1 -1
  592. package/dist/workbench.d.ts +7 -3
  593. package/dist/workbench.js +4 -1
  594. package/docs/accessibility.md +52 -9
  595. package/docs/app-layouts.md +70 -1
  596. package/docs/backdrop-image.md +10 -0
  597. package/docs/button.md +30 -2
  598. package/docs/column-explorer.md +75 -0
  599. package/docs/component-contract.md +38 -8
  600. package/docs/component-selection.md +150 -107
  601. package/docs/data-tables-and-lists.md +1 -1
  602. package/docs/design/sketch/Kerf-UI.sketch +0 -0
  603. package/docs/design/sketch/README.md +1 -1
  604. package/docs/design/sketch/coverage.md +120 -118
  605. package/docs/design/sketch/lists/README.md +6 -6
  606. package/docs/design/sketch/unified/README.md +1 -1
  607. package/docs/design/sketch/unified/pages/lists.png +0 -0
  608. package/docs/design/templates/button/emphasis-dark.svg +1 -1
  609. package/docs/design/templates/button/emphasis.svg +1 -1
  610. package/docs/design/templates/button-dark.svg +1 -1
  611. package/docs/design/templates/button.svg +1 -1
  612. package/docs/design/templates/tree-list/files-dark.svg +1 -0
  613. package/docs/design/templates/tree-list/files.svg +1 -0
  614. package/docs/design/templates/tree-list/outline-dark.svg +1 -0
  615. package/docs/design/templates/tree-list/outline.svg +1 -0
  616. package/docs/design/templates/tree-list-dark.svg +1 -0
  617. package/docs/design/templates/tree-list.svg +1 -0
  618. package/docs/design/templates.md +2 -2
  619. package/docs/document-baseline.md +6 -3
  620. package/docs/editor-host.md +299 -0
  621. package/docs/forms-and-validation.md +39 -0
  622. package/docs/interaction-conventions.md +1 -0
  623. package/docs/layout.md +87 -4
  624. package/docs/list-detail-dialog.md +5 -0
  625. package/docs/manual-test-plan.md +32 -0
  626. package/docs/nav-stack.md +2 -1
  627. package/docs/paged-view.md +89 -0
  628. package/docs/scroll-effect.md +127 -0
  629. package/docs/split-view.md +4 -1
  630. package/docs/surface-scaffold.md +32 -2
  631. package/docs/tab-navigator.md +5 -4
  632. package/docs/tree-list.md +134 -0
  633. package/docs/ui-analyzer.md +43 -25
  634. package/docs/ui-doctor.md +4 -1
  635. package/docs/ui-evaluator.md +2 -0
  636. package/docs/webawesome-migration.md +32 -31
  637. package/docs/webawesome-theme.md +27 -17
  638. package/docs/workbench-dialog.md +4 -0
  639. package/evaluator/index.mjs +14 -2
  640. package/llms.txt +159 -18
  641. package/package.json +90 -3
  642. package/props/cli.d.mts +1 -0
  643. package/props/cli.mjs +116 -0
  644. package/props/component-props.d.mts +177 -0
  645. package/props/component-props.mjs +1208 -0
  646. package/scripts/lib/json-schema-subset.mjs +137 -0
  647. package/ux-demo/recipes/app-shell.tsx +20 -22
  648. package/ux-demo/recipes/collapsible-sidebar.tsx +2 -2
  649. package/ux-demo/recipes/compact-toolbar.tsx +26 -29
  650. package/ux-demo/recipes/composer-form.tsx +6 -5
  651. package/ux-demo/recipes/list-workspace-states.tsx +39 -39
  652. package/ux-demo/recipes/loading-inspector.tsx +8 -6
  653. package/ux-demo/recipes/media-detail.tsx +29 -15
  654. package/ux-demo/recipes/navigation-sidebar.tsx +18 -19
  655. package/ux-demo/recipes/navigation-stack.tsx +2 -2
  656. package/ux-demo/recipes/workspace-header.tsx +16 -16
  657. package/view/cli.d.mts +18 -0
  658. package/view/cli.mjs +262 -0
  659. package/view/contract.mjs +342 -0
  660. package/view/generate.mjs +639 -0
  661. package/view/index.d.mts +411 -0
  662. package/view/index.mjs +40 -0
  663. package/view/interpret.mjs +271 -0
  664. package/view/validate-move.mjs +317 -0
  665. package/view/validate.mjs +1864 -0
  666. package/vite-editor.d.mts +130 -0
  667. package/vite-editor.mjs +314 -0
  668. package/dist/chunk-2J7XKAZX.js.map +0 -1
  669. package/dist/chunk-3KFMLOTH.js.map +0 -1
  670. package/dist/chunk-3OP66VXU.js.map +0 -1
  671. package/dist/chunk-3V4OCDTL.js.map +0 -1
  672. package/dist/chunk-3WWX2O4G.js.map +0 -1
  673. package/dist/chunk-5CLMV5YU.js.map +0 -1
  674. package/dist/chunk-5J6Z4BWY.js.map +0 -1
  675. package/dist/chunk-6VVIW7VB.js.map +0 -1
  676. package/dist/chunk-7K6U6FCN.js.map +0 -1
  677. package/dist/chunk-AMIHGFLP.js.map +0 -1
  678. package/dist/chunk-AN5IWMTM.js.map +0 -1
  679. package/dist/chunk-B53PS2LE.js.map +0 -1
  680. package/dist/chunk-BKUMG2KB.js.map +0 -1
  681. package/dist/chunk-C2ZO3OZZ.js.map +0 -1
  682. package/dist/chunk-CVD5IZGB.js.map +0 -1
  683. package/dist/chunk-D5RGM3XA.js.map +0 -1
  684. package/dist/chunk-DZJ4GBSP.js.map +0 -1
  685. package/dist/chunk-EIET4QLK.js.map +0 -1
  686. package/dist/chunk-EKHDLBRP.js.map +0 -1
  687. package/dist/chunk-ETFP7HAR.js.map +0 -1
  688. package/dist/chunk-EYDXFOSH.js.map +0 -1
  689. package/dist/chunk-F653O57X.js.map +0 -1
  690. package/dist/chunk-G3J7JDP6.js.map +0 -1
  691. package/dist/chunk-HJXVVFBT.js.map +0 -1
  692. package/dist/chunk-IIQ2XIMU.js.map +0 -1
  693. package/dist/chunk-ITENVZ6Q.js.map +0 -1
  694. package/dist/chunk-ITUQC4FW.js.map +0 -1
  695. package/dist/chunk-K57NINLH.js.map +0 -1
  696. package/dist/chunk-K67XBCHG.js.map +0 -1
  697. package/dist/chunk-KDQZ3E5C.js.map +0 -1
  698. package/dist/chunk-KH4KEMSP.js.map +0 -1
  699. package/dist/chunk-LZUUUHNH.js.map +0 -1
  700. package/dist/chunk-N2K3QGSX.js.map +0 -1
  701. package/dist/chunk-NB6POCFH.js.map +0 -1
  702. package/dist/chunk-NR6O74ST.js.map +0 -1
  703. package/dist/chunk-OQP3PFKQ.js.map +0 -1
  704. package/dist/chunk-OZ6X76G5.js.map +0 -1
  705. package/dist/chunk-PS24PVR6.js.map +0 -1
  706. package/dist/chunk-QH5KOFNS.js.map +0 -1
  707. package/dist/chunk-QYMJHS4K.js.map +0 -1
  708. package/dist/chunk-ROEBKSIY.js.map +0 -1
  709. package/dist/chunk-S3DCRI2M.js.map +0 -1
  710. package/dist/chunk-S3ECMF23.js.map +0 -1
  711. package/dist/chunk-TKNVL53O.js.map +0 -1
  712. package/dist/chunk-VEME3D7K.js.map +0 -1
  713. package/dist/chunk-WPP5Q4A5.js.map +0 -1
  714. package/dist/chunk-WVS6CUCT.js.map +0 -1
  715. package/dist/chunk-XRZSK2WC.js.map +0 -1
  716. package/dist/chunk-Y6KT7ZTR.js.map +0 -1
  717. package/dist/chunk-YMUIQRWK.js.map +0 -1
  718. package/dist/chunk-YPAQFBMN.js.map +0 -1
  719. package/dist/chunk-YWLDLNAV.js.map +0 -1
  720. package/dist/chunk-ZN7KUMPY.js.map +0 -1
  721. package/dist/chunk-ZX2QQJXD.js.map +0 -1
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.65.0
4
+ kerf-ui-skill-version: 1.72.0
5
5
  ---
6
6
 
7
7
  # Building with @kerfjs/ui
@@ -21,6 +21,13 @@ accessibility, styling boundary, diagnostics), then
21
21
  `../docs/component-contract.md`, and `../docs/accessibility.md` before changing
22
22
  a consuming interface. Use the signature snapshot for exact props, callbacks,
23
23
  return values, and supported import paths; do not infer them from examples.
24
+ Tools that need props as data (inspector forms, document validators, generated
25
+ contracts) read `./component-props.json` instead of parsing declarations.
26
+ To edit an app type its own way in the Kerf UI editor, register a field editor
27
+ by type name (`createEditor({ fieldEditors })`, or the Vite plugin's
28
+ `src/kerf-ui-field-editors.ts`) and compose `context.form()` with `set` and
29
+ `control` attributes rather than rebuilding the type-driven form
30
+ (`../docs/editor-host.md`).
24
31
  Treat each `KUI-T###` contract as an exact declaration guarantee, including its
25
32
  documented dynamic-data widening. Do not extend those diagnostics to child
26
33
  markup, live DOM relationships, disposer invocation, or other conditions that
@@ -76,6 +83,31 @@ twice through a wrapper, a second background, or an unnecessary override.
76
83
  Check the resulting contrast in both color schemes, especially over a custom
77
84
  backdrop. See `../docs/webawesome-theme.md#contextual-transparency`.
78
85
 
86
+ ### Nested whole-screen layouts need a SizedRegion
87
+
88
+ `NavStack`, `SplitView`, `TabNavigator`, and `Workbench` fill their parent's
89
+ height and have none of their own. As the app's root (or the only child of
90
+ another layout's view, tab, or region) they fill it. Placed below the root
91
+ beside other content, wrap one in `SizedRegion` from `@kerfjs/ui/sized-region`:
92
+ its default `height="fill"` takes the rest of a flex column such as a Pane's
93
+ content, and `minHeight` gives a usable height even in content that sizes to
94
+ itself (an app-CSS `min-height` does not). Do not put a whole-screen layout in a
95
+ `List` or `ContentItem`, and do not use `SizedRegion` to size ordinary
96
+ components. See `../docs/app-layouts.md#sizing-a-nested-layout`.
97
+
98
+ ### Group submitted fields in a Form
99
+
100
+ Wrap fields that are saved or sent together in `Form` from `@kerfjs/ui/form`,
101
+ never a raw `<form>`. It adds no inset, chrome, or layout (`display: contents`);
102
+ lay the fields out with a `List` or `Row` inside it. Call `wireForms(root)`
103
+ from `@kerfjs/ui/wire-forms` once so a submit `Button` or Enter in a field never
104
+ navigates the page, give the Form an `action` (a delegated `data-action`, not a
105
+ URL), and handle it with `delegateActions(root, 'submit', table)`, reading the
106
+ fields with `new FormData(form)`. Native validation runs first unless
107
+ `noValidate` is set. `eslint-plugin-kerfjs` reports a raw `<form>` as
108
+ `KUI-L303` and a `Form` without `wireForms` as `KUI-L401`. See
109
+ `../docs/forms-and-validation.md#form`.
110
+
79
111
  ### Clear chrome over imagery
80
112
 
81
113
  For a header or bar laid over imagery (an Apple-Music-style detail page), use
@@ -116,21 +148,38 @@ color, set `tint={{ color, scheme }}` on the same components (and
116
148
  `TabNavigatorTab`, `PaneConfig`) instead: you declare whether the color is a
117
149
  `'light'` or `'dark'` surface, and the scope re-derives surface, text, quiet
118
150
  text, link, fills, and chrome material from it with lightness clamped to keep
119
- text at WCAG AA. Add `accent` to re-derive the brand ramp (loud fills, links, focus ring) from the artwork's vivid color with the same AA clamps. Never restyle tokens by hand inside a tinted region.
151
+ text at WCAG AA. Add `accent` to re-derive the brand ramp (loud fills, links, focus ring) from the artwork's vivid color with the same AA clamps. Never restyle tokens by hand inside a tinted region. For the plain palette in a fixed scheme without a color, set `scheme="light"` or `scheme="dark"` on the same components (a tint already implies its scheme; both must agree), or put Kerf's `kui-light` / `kui-dark` / `kui-invert` scope class on any element. They work without Web Awesome; do not use `wa-light` / `wa-dark` for a Kerf scope.
120
152
 
121
153
  For many image-led `ContentItem` cards in one feed, opt into
122
154
  `media.deferOffscreen` to skip offscreen hero painting while retaining the
123
- card's reserved height and the shared scroll owner. `BackdropImage` exposes
155
+ card's reserved height and the shared scroll owner. It trades fewer
156
+ compositor layers for a blank-hero frame after large scroll jumps (scrollbar
157
+ drag, End/Home), so keep it off for short feeds. `BackdropImage` exposes
124
158
  the same `deferOffscreen` option directly; leave it off for a single page hero.
125
159
 
126
- `SummaryRow` is an option in a labeled listbox by default. For a diagnostic
160
+ `SummaryRow` is an option in a labeled listbox by default: put the rows in
161
+ `List selectionMode="single" ariaLabel="…"`, which renders `role="listbox"`, and wire
162
+ `wireSummaryRows(root)` once: the listbox is one roving Tab stop, Up/Down/Home/End move
163
+ focus, and Enter/Space select through the option's delegated click; name that action with
164
+ the option's `action` prop (the app owns the selection). Kerf skips a key the app already `preventDefault()`ed, so intercept a key by
165
+ handling it first (on the option or in the capture phase). For a diagnostic
127
166
  row with a nested recovery action, use `semanticRole="group"` and a required
128
167
  `ariaLabel`; only the nested native button takes focus and activates, while
129
168
  the row/card surface, rail, and selected visual fill remain available.
169
+ A title longer than `titleLines` ends its last visible line with an
170
+ ellipsis; do not add a clamp or `text-overflow` in app CSS.
130
171
  An option SummaryRow accepts `draggable` on its root in either row or card
131
172
  presentation; the application owns dragstart/drop behavior, while the same
132
173
  option keeps its keyboard selection target and delegated `data-*` identity.
133
174
 
175
+ Name a List people navigate to by name (a reader, a result picker, a board
176
+ column) with `landmark="region"` and a required `ariaLabel`, not a `role` in
177
+ `rootAttributes`; a landmark List takes no `selectionMode`. Group content that
178
+ a visible label names (a read-only field preview under a `FieldLabel id`) with
179
+ `landmark="group"` and `labelledBy` set to that id, instead of copying the
180
+ label text into `ariaLabel`. Name a
181
+ `ColumnTrack` board with `ariaLabel`, which makes the track a `role="region"`.
182
+
134
183
  ## Components own their styles; configure, never override
135
184
 
136
185
  This is the rule every Kerf UI surface follows, and applications and
@@ -196,7 +245,7 @@ ownership remains the compatibility default and does not establish those
196
245
  application-level boundaries.
197
246
 
198
247
  Read `../docs/webawesome-theme.md` when using Web Awesome components or changing
199
- shared theme tokens. When overriding a loud fill
248
+ shared theme tokens. With the Web Awesome integration, when overriding a loud fill
200
249
  (`--wa-color-{tone}-fill-loud`), set the matching `--wa-color-{tone}-on-loud`
201
250
  in the same selector and at-rule scope with a foreground that clears 4.5:1;
202
251
  the analyzer reports an override with no governing `on-loud` (same or ancestor
@@ -330,23 +379,27 @@ reports lowercase words in known title-style labels as `KUI-D040`. See
330
379
 
331
380
  Quick routing:
332
381
 
333
- | Need | Choose | Nearest alternatives / boundary |
334
- | ------------------------------------- | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
335
- | 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. |
336
- | Horizontal flex layout | `Row` | Use `hAlign`/`vAlign`, a typed `gap`, and opt-in `wrap`; use `List` when the main axis is vertical. |
337
- | 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. |
338
- | 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. |
339
- | 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). |
340
- | 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. |
341
- | 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`. |
342
- | 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. |
343
- | 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. |
344
- | 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`. |
345
- | 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. |
346
- | Structured or ordinary search | `SearchField` or an input | Use token search only when text and ordered filter chips form one editor. |
347
- | 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. |
348
- | Key/value facts | `ValueTable` with `ValueTableRow` | Use rows with `icon` only when the optional 24px leading visual adds context. |
349
- | Command search | Application-local semantics using shared layout vocabulary | No runtime component or production recipe is exported; the app owns behavior, policy, and copy. |
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. |
350
403
 
351
404
  For equal-width responsive forms, set `Grid minColumnWidth={px(376)}` instead of
352
405
  `columns`. Grid fits tracks from its own container width and collapses to one
@@ -386,6 +439,12 @@ choice that should remain only when application context justifies it. Apply the
386
439
  same metadata when authoring consumer component catalogs so lint, analyzer, and
387
440
  doctor feedback covers local components too.
388
441
 
442
+ A group's buttons are native `<button type="button">` elements; where a
443
+ component is needed instead of markup (a view document, generated code), use
444
+ `ToolbarButton` (icon-only with `ariaLabel`, labeled, or `ariaLabel` alone in
445
+ an avatar group, which shows the group's `avatarImage`), which renders the
446
+ same button.
447
+
389
448
  Toolbar action links and menus are configuration, not application CSS: put
390
449
  `ToolbarActionLink` inside `ToolbarControlGroup`, set `overflow="scroll"` for a
391
450
  bounded action row or `overflow="wrap"` to keep independent links fully visible
@@ -401,20 +460,20 @@ Hard rules:
401
460
 
402
461
  1. Import visual components from explicit JavaScript subpaths. In CSS-aware browser builds each subpath brings in its own reachable CSS, including UI subcomponents, while unrelated CSS remains out. The root barrel and `@kerfjs/ui/unstyled` are CSS-free; pair the root barrel with `styles.css` only when the complete layer is intentional. Manual CSS subpaths remain available for custom pipelines. When a public subpath exposes several visual components, implement it as a folder with one component per file and one owned stylesheet per visual component; compatibility entrypoints only re-export the component modules or import their owner stylesheets.
403
462
  2. Components return Kerf `SafeHtml`. Never pass DOM nodes as children or use inline JSX event handlers.
404
- 3. Keep state, product copy, persistence, and domain mappings in the application. Do not add product-specific actions or fields to a generic component. Put ListItem/ListActionRow/ListHeader/TabBarItem domain `data-*` metadata in `rootAttributes`; use ListActionRow `trailingActionAttributes` and ListHeader `triggerAttributes` only for domain `data-*` or native popover target/action and `aria-controls`/`aria-haspopup`. These slots do not replace component-owned action, item/tab identity, selection, disclosure, naming, disabled, icon, or role semantics.
463
+ 3. Keep state, product copy, persistence, and domain mappings in the application. Do not add product-specific actions or fields to a generic component. Put ListItem/ListActionRow/ListHeader/TabBarItem domain `data-*` metadata in `rootAttributes`; use ListActionRow `trailingActionAttributes` and ListHeader `triggerAttributes` only for domain `data-*` or native popover target/action and `aria-controls`/`aria-haspopup`. Name a ListHeader toggle's disclosed region with `controls` (and collapse a List region with `hidden`) rather than passing `aria-controls` through `triggerAttributes`. These slots do not replace component-owned action, item/tab identity, selection, disclosure, naming, disabled, icon, or role semantics.
405
464
  4. Wire `data-action` hooks from one stable root with `delegate()` or `delegateActions()` and retain disposers.
406
465
  5. Configure components through their typed props; components own their own styles (see "Components own their styles; configure, never override" above). Use the opinionated `--kui-color-*` semantic ramps for theming, not to reshape a component. Use `pop` only for attractive non-status emphasis such as featured, novel, or celebratory content; never substitute it for info, success, warning, or danger. Set a theme token only at the narrowest useful scope, and never where an equivalent prop exists. `publicClasses` exist for diagnostics, tooling, tests, and package-owned composition, not application styling. Never target a Kerf or Web Awesome component from application CSS; add missing configuration to the owner.
407
466
  6. `Select` is pure until the app explicitly imports `@kerfjs/ui/select/register`; once registered, an icon-only `Select` (and, via `@kerfjs/ui/popup-menu/register`, an icon-only `PopupMenu`) shows an `aria-hidden` help tag repeating its accessible name (and a Select's current choice) on hover and keyboard focus, hidden while its popup is open — never add a `title` or your own tooltip to these triggers. The same installer tags an icon-only `<button>` or link in a `ToolbarControlGroup` named by `aria-label` (no visible text, no `title`); a toolbar with such buttons but no registered Select or PopupMenu imports `@kerfjs/ui/help-tags/register` once. Name those buttons with `aria-label`, not `title`: a `title` keeps the browser tooltip and skips the tag. Do not import Web Awesome's full registration bundle. When an app writes direct `wa-*` JSX, add `import type {} from '@kerfjs/ui/webawesome'` for the catalog-supported intrinsic-element declarations, import the CSS-only `@kerfjs/ui/webawesome.css` theme once, and keep importing individual Web Awesome component modules so their JavaScript remains tree-shakeable. The type boundary emits no code and registers nothing. Pass icon-bearing `choices` and `renderSelected` content normally: `Select` preserves its option icons across Kerf rerenders and keys selected content by the controlled value, so app wrappers must not add competing morph-control attributes. Give it a visible `label` or an `ariaLabel` for a visually hidden name; the nonempty visible label takes precedence and the package names its native trigger, including with `renderSelected`, without adding label geometry. Use `hint` for persistent supporting text below the control and `placeholderText` only for the empty value inside the closed control; loading placeholders retain the hint. For any number of choices set `multiple` with an array `value`: the popup stays open while choices toggle and closes on an outside press or Escape, the closed control summarizes the chosen labels, and `change` reports the value array; do not add app code to keep it open or to render tags. For a toolbar filter menu, add `selectedPresentation="icon-only"` plus a fixed `triggerIcon` (such as a funnel `LucideIcon`): the trigger shows that icon, a count badge while any choice is chosen, and ends its accessible name with the chosen labels ("Filter by label: Bug, Docs"); do not render your own count badge or rewrite the name. When testing name or description, target the element with the `combobox` role (the native trigger) rather than the `kui-select` root; the hint is already its `aria-description`, so do not add another.
408
- 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 native control with a stable accessible name and controlled `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.
467
+ 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.
409
468
  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.
410
469
  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.
411
- 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. 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.
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.
412
471
  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.
413
472
  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.
414
473
  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.
415
- 13. The Web Awesome 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.
474
+ 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.
416
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.
417
- 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`. 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.
476
+ 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.
418
477
  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.
419
478
 
420
479
  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.
@@ -423,7 +482,7 @@ Hard rules:
423
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.
424
483
  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.
425
484
 
426
- 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. 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.
485
+ 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.
427
486
 
428
487
  On compact devices, let a Pane's chrome give way through
429
488
  `compactChrome: { header, footer }` (`scroll` puts it inline with the content,
@@ -441,9 +500,12 @@ For a status `Badge` that opens a menu, pass the Badge as a `PopupMenu`'s
441
500
  application button.
442
501
 
443
502
  For a count or dot on an icon control, pass `badge` (plus `badgeLabel` for its
444
- meaning) to an icon-only `Button`, or put a `Badge placement="corner"` inside a
445
- `ToolbarControlGroup` button and name the count in its `aria-label`; never
446
- position a badge with application CSS.
503
+ meaning) to an icon-only `Button`. On a `ToolbarControlGroup` button, pass
504
+ `ToolbarButton` `badge` (a count, short text, or `true` for a dot) with
505
+ `badgeTone` and `badgeMax` (default 99, so 128 shows "99+"); a count of 0 shows
506
+ 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.
447
509
 
448
510
  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.
449
511
 
@@ -475,11 +537,11 @@ set `fill` on `Button`, the same `fill` `SplitButton` takes: it spans the
475
537
  parent's available inline width with its label centered, a link (`href`) too;
476
538
  never give a Button `width: 100%` from application CSS.
477
539
 
478
- 19. Compose `ValueTable` from typed `ValueTableRow` entries instead of handwritten `dt`/`dd` wrappers. Pass `icon` for the optional 24px leading visual; the row owns 8px of root-scaled top and bottom padding, the 8px iconless or 40px icon-bearing separator start, and the common 8px right inset. 20. Use the standard direct `Toolbar` composition for a panel, dialog, or page heading, not a private wrapper or custom heading row. Put an optional icon in a `ToolbarControlGroup`, the title directly in the leading zone as extra-large `ToolbarText`, and actions in a trailing group. Set `headingLevel` for page/section landmarks. Supporting copy stays below the toolbar as app-owned content. The app owns modal behavior, focus, dismissal, command policy, ids, and action handling. 21. Space with the official five-step scale, picked by how connected two elements are — not by eye. `0` `--kui-space-none` = no separation (one unit); `4px` `--kui-space-2xs` = very minor air on a connected cluster; `8px` `--kui-space-xs` = standard, between elements within a group; `16px` `--kui-space-m` = minor, between homogeneous groups; `24px` `--kui-space-l` = major, between heterogeneous groups (the `.kui-content` rhythm). The 8px-vs-24px distinction is inside-a-group vs between-major-differing-regions. `--kui-space-s` (12px) and `--kui-space-xl` (32px) are off-scale exceptions. For `Row.gap`, `Grid.gap`, or `List.gap`, pass a finite shorthand such as `gap="xs"` or `gap="m"`; use `Spacer` for one intentional typed empty width/height or a flexible main-axis gap. When one token is insufficient, import typed builders from the CSS-free `@kerfjs/ui/css-values` subpath. Preserve property grammar: lengths for gap/Spacer/Skeleton geometry, `flex()` for Row/Grid/List flex, and a foreground color for choice icons: `uiColor()` with a `*-on-*` or text token (`success-on-quiet`, `text-quiet`) or `foregroundColorVar()`. Fill tokens (`*-fill-*`) are backgrounds, not foregrounds, and `SelectChoice.color` rejects them. Never cast between brands or emit raw row `style` declarations. `plus` is not standalone and must be wrapped in `calc`; `remify()` remains source-CSS syntax and is never a runtime prop value. See `docs/layout.md` "Spacing scale". 22. Pick a whole-screen layout from the opt-in, tree-shakeable subpaths by data + interaction + device, and derive responsiveness from `@kerfjs/ui/device-class`'s `deviceClass()` (`compact` = handset or portrait tablet = one pane at a time). Simple/flat → `NavStack` with one entry (single pane), plus `TabNavigator` (`@kerfjs/ui/tab-navigator`, iOS bottom tabs, each tab its own `NavStack`) for 2–5 co-equal sections on `compact`; show an unread count on a tab with its `badge` (a number or short string, rendered as the top-trailing danger `Badge` on the icon) plus a localized `badgeLabel` ("3 unread", folded into the tab's name as "Inbox, 3 unread"), never by concatenating the count into `label` or restyling the badge; for new content without a count pass `badge: true` (the text-free dot) with its required `badgeLabel` ("New activity"). Drill-down → `NavStack` (`@kerfjs/ui/nav-stack`), upgrading to `SplitView` (`@kerfjs/ui/split-view`, list-detail) once both panes fit (`atLeast('tablet')` landscape); `SplitView` collapses to a `NavStack` on `compact`. Keep each stack's ordered views controlled; put view-specific bottom chrome on `NavStackView.bottomToolbar` (or use the component-level persistent fallback), then call `wireNavStack` so content slides while the active view's top and bottom chrome cross-fade and focus moves into the new top view/restores on pop. Mark a preferred initial heading or control with `data-nav-focus` when DOM order is not sufficient. The stack's top chrome is a real `Toolbar`: put a view's title and groups on `NavStackView.toolbar` (`title`, `leading`, `center`, `trailing`), where its Toolbar configuration overrides stack-wide `toolbarConfig` defaults; the title leads, left-aligned and xlarge, at the root and steps down to large and centers (truncating before any control) once the back control shows, unless the view supplies `center` — do not restyle it to align; configure `backIcon` / `backText` through the stack, never with CSS. Each view and the stack fallback use a structured `bottomToolbar` with an accessible `label`; a view can also provide `header` / `footer`, `headerList` / `footerList`, and `pane` configuration, which render a Pane around that view's scrolling content. `SplitView` forwards both of its inner components: `resizable` takes the list `ResizableRegion`'s `separator`, `handleIcon`, `contentOverflow`, and collapse props (`collapsed`, `transitioning`, `collapseMotion`, `restoreControl`, `restorePosition`), and `compactStack` takes the compact stack's `toolbarConfig`, `backIcon`, `backText`, `hideToolbar`, `bottomToolbar`, plus `list` / `detail` view toolbars (structured `toolbar` and `bottomToolbar`). Complex tool with peripheral panels → `Workbench` (`@kerfjs/ui/workbench`, collapsible rails + drawer) `atLeast('desktop')`, degrading to `NavStack`/overlays below. Workbench panels are fixed-size unless a panel opts in with `resizable` (`true` or `{ min, max }`); then render `size={sizeSignal.value}` and call `wireWorkbench(root, { id, panels: { leftRail: { size: sizeSignal, storageKey? } }, deviceClass })` from `@kerfjs/ui/wire-workbench` for pointer drags, arrow/Shift+arrow/Home/End on the separator, persistence, and no resizing on `compact` classes. Inline rails, fixed or resizable, leave the work area `mainMinSize` px of width (a `Workbench` prop, default 320, `0` off), and an inline bottom drawer leaves it `mainMinHeight` px of height (default 120, `0` off): resizable panels stop growing there, rails shrink in proportion when the Workbench narrows and the drawer when it gets shorter, so do not add your own main-area `min-width` / `min-height`. Rails present as overlays below the `narrow` Workbench container breakpoint (704px) by default — `responsiveOverlayAt: "compact"` moves that to 448px and `"never"` keeps a rail inline — and a bottom drawer opts in the same way; do not derive `presentation` from `deviceClass`, and overlays never resize. At compact widths an overlay rail fills the Workbench less a 44px dismiss strip (`--kui-workbench-overlay-dismiss-margin`) on the side away from its edge; `compactOverlay: "full"` makes one rail fill it. Pass each such panel's `collapsed` signal to `wireWorkbench` too (`panels: { leftRail: { collapsed: navCollapsed } }`, `size` optional) so the overlay is transient like `wireSidebar`'s compact overlay: it collapses when the breakpoint begins to apply (the inline state returns when it ends), takes focus on its first control and keeps Tab inside it while open, and closes on Escape or an outside press with focus returned to its toggle (give each toggle `aria-controls` naming its panel's derived id, `<workbench id>-left-rail` / `-right-rail` / `-bottom-drawer`, so a panel open at wire-up has a focus target too); opening one overlay closes the other open overlays, so they never cover each other's controls; do not hand-roll those listeners (`dismissOverlays: false` opts out of all of it, `exclusiveOverlays: false` of exclusivity only). Collapse stays the app's `collapsed` flag and keeps the size, so an expanded panel returns at its last size. Let the Workbench compose panel toolbars: give each panel `toolbar: { label, title?, leading?, center?, trailing?, toggle: { action, name, showLabel?, hideLabel? } }` (`name` is the title-style panel name, such as "Navigator", which yields "Show Navigator" / "Hide Navigator") and the work area `mainToolbar` (and `mainBottomToolbar` for a drawer). Each of these toolbars takes the `Toolbar`'s configuration (`ToolbarConfig`: `dividerSides`, `centerAlign`, `responsive`, `responsiveAt`, `safeAreaEdges`); configure a composed toolbar through those props (for example `dividerSides: ""` to drop its divider), never with CSS. Configure the composed panes and chrome lists the same way: a panel's `pane` (and `CollapsiblePanel`'s `pane`) and the Workbench's `mainPane` take `PaneConfig` (`contentElement`, `contentLabel`, `separators`, `safeAreaEdges` — for example `{ contentElement: "nav", contentLabel: "Files" }` for a navigator rail), and `mainHeaderList` / `mainFooterList` take `ListConfig` (`gap`, `hAlign`, `vAlign`, `dividerSides`, `textInsets`, `controlInsets`). Open, a panel's toolbar places groups in its leading, center, and trailing zones, with the toggle last; mark a ToolbarControlGroup relocateOnCollapse to keep it available when closed (pass marked groups directly or in arrays rather than JSX fragments); closed, marked groups follow zone order into the work area before the toggle — a left rail's lead `mainToolbar`, a right rail's end it, a drawer's trail `mainBottomToolbar` or float in a corner `FloatingToolbar` — and panel-only groups stay behind. A control sits near where its effect appears: a collapsed drawer's restore belongs in the bottom toolbar or a `FloatingToolbar` beside the drawer, not in a distant top toolbar. Do not hand-place panel toggles in the work-area toolbar or render a second copy, and handle only the toggle's `data-action`. A collapsed panel renders `inert` and `aria-hidden` by itself, on the rail/drawer and its content (its `restoreControl` stays outside and reachable), so do not add your own `tabindex`, `aria-hidden`, or `inert` to hide it. These are declarative (the app owns the stack/selection/collapsed/active state as signals) with disposer-returning `wire…` helpers; each stays out of the barrel, and its CSS-aware browser import loads the layout's CSS plus that of every component it renders (`Pane`, `Toolbar`, `List`, …), so do not hand-import `pane.css` or the other internal stylesheets; the companion `.css` subpath is only for pipelines without the `browser` condition. For a standalone collapsible rail or bottom drawer outside a full shell, use `CollapsiblePanel` + `CollapsiblePanelToggle` (`@kerfjs/ui/collapsible-panel`) with `wireSidebar` (`@kerfjs/ui/wire-sidebar`): the standard collapse animation and per-side icon convention (`PanelLeft*`/`PanelRight*`/`PanelBottom*`) plus toggle, focus, compact overlay, and persistence semantics. Give a standalone panel the same `toolbar` roles and render `CollapsiblePanelRelocated` in your work-area toolbar (first in leading for a left rail, last in trailing for a right rail, a bottom toolbar or a `FloatingToolbar` restoreControl for a drawer) instead of hand-placing a second toggle. A collapsed `CollapsiblePanel`, `ResizableRegion`, or Workbench panel renders `inert` and `aria-hidden` by itself, so do not hide collapsed content yourself either. Likewise an open side overlay (a Workbench rail overlay, a `wireSidebar` compact overlay, an overlay `CollapsiblePanel` or horizontal `ResizableRegion`) hides the covered work area's `FloatingToolbar`s and restore corners by itself until it closes, so do not hide them from overlay state. A compact overlay opens only on a user action: wire-up on a compact device and a wide-to-compact crossing collapse every panel, and a wide crossing restores the inline state. Seed the signal with `signal(device.value.compact)` and pass the panel's `inlineCollapsed` default so the first compact render has no overlay. Dialogs pick the same inner layout, then present per device class (full-screen modal on `compact`, inline on desktop). A modal list-detail task uses `ListDetailDialog` (`@kerfjs/ui/list-detail-dialog`), not a `DialogSurface` wrapped around a `SplitView`: its list and detail columns each run the dialog's full height, the list column carries a default-size `list.title` and `list.toolbar` controls, and the detail column carries the dialog's primary xl `detail.title`, its `detail.actions`, the close control, and a pinned `detail.footer` for record actions; pass `compact` from `deviceClass()` so it becomes a full-screen `NavStack` drill-down (the app owns selection and `detailActive`, and pops on `nav-back`). An editing task with side panels in a modal is `WorkbenchDialog` (`@kerfjs/ui/workbench-dialog`), a header-less dialog around a `Workbench`: its `title`, `actions`, and close control sit in the work area's toolbar (close stays outermost, after a hidden right rail's toggle), the rails keep their own toolbars, and `compact` makes the rails overlays that start collapsed; wire `wireWorkbench` on `<id>-workbench` with each rail's `collapsed` signal. Use `DialogSurface` for a single-pane dialog. A top-level percentage-height shell needs a definite containing height: opt into `@kerfjs/ui/document.css` and put `.kui-app-root` on the one direct mount container, or provide equivalent application-owned geometry. The global baseline is deliberately absent from `styles.css` and component imports. See `docs/app-layouts.md`, `docs/document-baseline.md`, and `docs/collapsible-panel.md`. 23. Layouts and `Pane` are safe-area aware without configuration: backgrounds, separators, and dividers paint through a device's unsafe areas (a collapsible rail or drawer grows by the inset it docks to), content is padded only on the sides a region actually reaches, and block insets are scroll padding inside the scroller so first/last content can always be scrolled clear. Interior edges get nothing, and a collapsed rail hands its edge back to the center. Never add your own `env(safe-area-inset-*)` padding around a kerf layout or pane — that double-insets. In an app-owned arrangement of panes, pass `Pane.safeAreaEdges` (the sides that pane reaches; `[]` opts out); give an app bar or bottom bar that sits at a screen edge outside a Pane header or footer `Toolbar.safeAreaEdges` for the sides it reaches (for example `['block-start', 'inline-start', 'inline-end']`); the Workbench `mainToolbar` / `mainBottomToolbar` and panel `toolbar` configurations forward the same `safeAreaEdges` to their `Toolbar`. Do not set the internal `--kui-edge-inset-*` context yourself. The device insets are `--kui-safe-area-*` (defaulting to `env()`), overridable on `:root`. See `docs/app-layouts.md` "Safe areas".
540
+ 19. Compose `ValueTable` from typed `ValueTableRow` entries instead of handwritten `dt`/`dd` wrappers. Pass `icon` for the optional 24px leading visual; the row owns 8px of root-scaled top and bottom padding, the 8px iconless or 40px icon-bearing separator start, and the common 8px right inset. 20. Use the standard direct `Toolbar` composition for a panel, dialog, or page heading, not a private wrapper or custom heading row. Put an optional icon in a `ToolbarControlGroup`, the title directly in the leading zone as extra-large `ToolbarText`, and actions in a trailing group. Set `headingLevel` for page/section landmarks. Supporting copy stays below the toolbar as app-owned content. The app owns modal behavior, focus, dismissal, command policy, ids, and action handling. 21. Space with the official five-step scale, picked by how connected two elements are — not by eye. `0` `--kui-space-none` = no separation (one unit); `4px` `--kui-space-2xs` = very minor air on a connected cluster; `8px` `--kui-space-xs` = standard, between elements within a group; `16px` `--kui-space-m` = minor, between homogeneous groups; `24px` `--kui-space-l` = major, between heterogeneous groups (the `.kui-content` rhythm). The 8px-vs-24px distinction is inside-a-group vs between-major-differing-regions. `--kui-space-s` (12px) and `--kui-space-xl` (32px) are off-scale exceptions. For `Row.gap`, `Grid.gap`, or `List.gap`, pass a finite shorthand such as `gap="xs"` or `gap="m"`; use `Spacer` for one intentional typed empty width/height or a flexible main-axis gap. When one token is insufficient, import typed builders from the CSS-free `@kerfjs/ui/css-values` subpath. Preserve property grammar: lengths for gap/Spacer/Skeleton geometry, `flex()` for Row/Grid/List flex, and a foreground color for choice icons: `uiColor()` with a `*-on-*` or text token (`success-on-quiet`, `text-quiet`) or `foregroundColorVar()`. Fill tokens (`*-fill-*`) are backgrounds, not foregrounds, and `SelectChoice.color` rejects them. Never cast between brands or emit raw row `style` declarations. `plus` is not standalone and must be wrapped in `calc`; `remify()` remains source-CSS syntax and is never a runtime prop value. See `docs/layout.md` "Spacing scale". 22. Pick a whole-screen layout from the opt-in, tree-shakeable subpaths by data + interaction + device, and derive responsiveness from `@kerfjs/ui/device-class`'s `deviceClass()` (`compact` = handset or portrait tablet = one pane at a time). Simple/flat → `NavStack` with one entry (single pane; a single pane that never navigates and needs no stack chrome may instead be a `Pane fill` in `.kui-app-root`), plus `TabNavigator` (`@kerfjs/ui/tab-navigator`, iOS bottom tabs, each tab its own `NavStack`) for 2–5 co-equal sections on `compact`; show an unread count on a tab with its `badge` (a number or short string, rendered as the top-trailing danger `Badge` on the icon) plus a localized `badgeLabel` ("3 unread", folded into the tab's name as "Inbox, 3 unread"), never by concatenating the count into `label` or restyling the badge; for new content without a count pass `badge: true` (the text-free dot) with its required `badgeLabel` ("New activity"). Drill-down → `NavStack` (`@kerfjs/ui/nav-stack`), upgrading to `SplitView` (`@kerfjs/ui/split-view`, list-detail) once both panes fit (`atLeast('tablet')` landscape); `SplitView` collapses to a `NavStack` on `compact`. Keep each stack's ordered views controlled; put view-specific bottom chrome on `NavStackView.bottomToolbar` (or use the component-level persistent fallback), then call `wireNavStack` so content slides while the active view's top and bottom chrome cross-fade and focus moves into the new top view/restores on pop. Mark a preferred initial heading or control with `data-nav-focus` when DOM order is not sufficient. The stack's top chrome is a real `Toolbar`: put a view's title and groups on `NavStackView.toolbar` (`title`, `leading`, `center`, `trailing`), where its Toolbar configuration overrides stack-wide `toolbarConfig` defaults; the title leads, left-aligned and xlarge, at the root and steps down to large and centers (truncating before any control) once the back control shows, unless the view supplies `center` — do not restyle it to align; configure `backIcon` / `backText` through the stack, never with CSS. Each view and the stack fallback use a structured `bottomToolbar` with an accessible `label`; a view can also provide `header` / `footer`, `headerList` / `footerList`, and `pane` configuration, which render a Pane around that view's scrolling content. `SplitView` forwards both of its inner components: `resizable` takes the list `ResizableRegion`'s `separator`, `handleIcon`, `contentOverflow`, and collapse props (`collapsed`, `transitioning`, `collapseMotion`, `restoreControl`, `restorePosition`), and `compactStack` takes the compact stack's `toolbarConfig`, `backIcon`, `backText`, `hideToolbar`, `bottomToolbar`, plus `list` / `detail` view toolbars (structured `toolbar` and `bottomToolbar`). Complex tool with peripheral panels → `Workbench` (`@kerfjs/ui/workbench`, collapsible rails + drawer) `atLeast('desktop')`, degrading to `NavStack`/overlays below. Workbench panels are fixed-size unless a panel opts in with `resizable` (`true` or `{ min, max }`); then render `size={sizeSignal.value}` and call `wireWorkbench(root, { id, panels: { leftRail: { size: sizeSignal, storageKey? } }, deviceClass })` from `@kerfjs/ui/wire-workbench` for pointer drags, arrow/Shift+arrow/Home/End on the separator, persistence, and no resizing on `compact` classes. Inline rails, fixed or resizable, leave the work area `mainMinSize` px of width (a `Workbench` prop, default 320, `0` off), and an inline bottom drawer leaves it `mainMinHeight` px of height (default 120, `0` off): resizable panels stop growing there, rails shrink in proportion when the Workbench narrows and the drawer when it gets shorter, so do not add your own main-area `min-width` / `min-height`. Rails present as overlays below the `narrow` Workbench container breakpoint (704px) by default — `responsiveOverlayAt: "compact"` moves that to 448px and `"never"` keeps a rail inline — and a bottom drawer opts in the same way; do not derive `presentation` from `deviceClass`, and overlays never resize. At compact widths an overlay rail fills the Workbench less a 44px dismiss strip (`--kui-workbench-overlay-dismiss-margin`) on the side away from its edge; `compactOverlay: "full"` makes one rail fill it. Pass each such panel's `collapsed` signal to `wireWorkbench` too (`panels: { leftRail: { collapsed: navCollapsed } }`, `size` optional) so the overlay is transient like `wireSidebar`'s compact overlay: it collapses when the breakpoint begins to apply (the inline state returns when it ends), takes focus on its first control and keeps Tab inside it while open, and closes on Escape or an outside press with focus returned to its toggle (give each toggle `aria-controls` naming its panel's derived id, `<workbench id>-left-rail` / `-right-rail` / `-bottom-drawer`, so a panel open at wire-up has a focus target too); opening one overlay closes the other open overlays, so they never cover each other's controls; do not hand-roll those listeners (`dismissOverlays: false` opts out of all of it, `exclusiveOverlays: false` of exclusivity only). Collapse stays the app's `collapsed` flag and keeps the size, so an expanded panel returns at its last size. Let the Workbench compose panel toolbars: give each panel `toolbar: { label, title?, leading?, center?, trailing?, toggle: { action, name, showLabel?, hideLabel? } }` (`name` is the title-style panel name, such as "Navigator", which yields "Show Navigator" / "Hide Navigator") and the work area `mainToolbar` (and `mainBottomToolbar` for a drawer). Each of these toolbars takes the `Toolbar`'s configuration (`ToolbarConfig`: `dividerSides`, `centerAlign`, `responsive`, `responsiveAt`, `safeAreaEdges`); configure a composed toolbar through those props (for example `dividerSides: ""` to drop its divider), never with CSS. Configure the composed panes and chrome lists the same way: a panel's `pane` (and `CollapsiblePanel`'s `pane`) and the Workbench's `mainPane` take `PaneConfig` (`contentElement`, `contentLabel`, `separators`, `safeAreaEdges` — for example `{ contentElement: "nav", contentLabel: "Files" }` for a navigator rail), and `mainHeaderList` / `mainFooterList` take `ListConfig` (`gap`, `hAlign`, `vAlign`, `dividerSides`, `textInsets`, `controlInsets`). Open, a panel's toolbar places groups in its leading, center, and trailing zones, with the toggle last; mark a ToolbarControlGroup relocateOnCollapse to keep it available when closed (pass marked groups directly or in arrays rather than JSX fragments); closed, marked groups follow zone order into the work area before the toggle — a left rail's lead `mainToolbar`, a right rail's end it, a drawer's trail `mainBottomToolbar` or float in a corner `FloatingToolbar` — and panel-only groups stay behind. A control sits near where its effect appears: a collapsed drawer's restore belongs in the bottom toolbar or a `FloatingToolbar` beside the drawer, not in a distant top toolbar. Do not hand-place panel toggles in the work-area toolbar or render a second copy, and handle only the toggle's `data-action`. A collapsed panel renders `inert` and `aria-hidden` by itself, on the rail/drawer and its content (its `restoreControl` stays outside and reachable), so do not add your own `tabindex`, `aria-hidden`, or `inert` to hide it. These are declarative (the app owns the stack/selection/collapsed/active state as signals) with disposer-returning `wire…` helpers; each stays out of the barrel, and its CSS-aware browser import loads the layout's CSS plus that of every component it renders (`Pane`, `Toolbar`, `List`, …), so do not hand-import `pane.css` or the other internal stylesheets; the companion `.css` subpath is only for pipelines without the `browser` condition. For a standalone collapsible rail or bottom drawer outside a full shell, use `CollapsiblePanel` + `CollapsiblePanelToggle` (`@kerfjs/ui/collapsible-panel`) with `wireSidebar` (`@kerfjs/ui/wire-sidebar`): the standard collapse animation and per-side icon convention (`PanelLeft*`/`PanelRight*`/`PanelBottom*`) plus toggle, focus, compact overlay, and persistence semantics. Give a standalone panel the same `toolbar` roles and render `CollapsiblePanelRelocated` in your work-area toolbar (first in leading for a left rail, last in trailing for a right rail, a bottom toolbar or a `FloatingToolbar` restoreControl for a drawer) instead of hand-placing a second toggle. A collapsed `CollapsiblePanel`, `ResizableRegion`, or Workbench panel renders `inert` and `aria-hidden` by itself, so do not hide collapsed content yourself either. Likewise an open side overlay (a Workbench rail overlay, a `wireSidebar` compact overlay, an overlay `CollapsiblePanel` or horizontal `ResizableRegion`) hides the covered work area's `FloatingToolbar`s and restore corners by itself until it closes, so do not hide them from overlay state. A compact overlay opens only on a user action: wire-up on a compact device and a wide-to-compact crossing collapse every panel, and a wide crossing restores the inline state. Seed the signal with `signal(device.value.compact)` and pass the panel's `inlineCollapsed` default so the first compact render has no overlay. Dialogs pick the same inner layout, then present per device class (full-screen modal on `compact`, inline on desktop). A modal list-detail task uses `ListDetailDialog` (`@kerfjs/ui/list-detail-dialog`), not a `DialogSurface` wrapped around a `SplitView`: its list and detail columns each run the dialog's full height, the list column carries a default-size `list.title` and `list.toolbar` controls, and the detail column carries the dialog's primary xl `detail.title`, its `detail.actions`, the close control, and a pinned `detail.footer` for record actions; pass `compact` from `deviceClass()` so it becomes a full-screen `NavStack` drill-down (the app owns selection and `detailActive`, and pops on `nav-back`). An editing task with side panels in a modal is `WorkbenchDialog` (`@kerfjs/ui/workbench-dialog`), a header-less dialog around a `Workbench`: its `title`, `actions`, and close control sit in the work area's toolbar (close stays outermost, after a hidden right rail's toggle), the rails keep their own toolbars, and `compact` makes the rails overlays that start collapsed; wire `wireWorkbench` on `<id>-workbench` with each rail's `collapsed` signal. Use `DialogSurface` for a single-pane dialog. A top-level percentage-height shell needs a definite containing height: opt into `@kerfjs/ui/document.css` and put `.kui-app-root` on the one direct mount container, or provide equivalent application-owned geometry. The global baseline is deliberately absent from `styles.css` and component imports. See `docs/app-layouts.md`, `docs/document-baseline.md`, and `docs/collapsible-panel.md`. 23. Layouts and `Pane` are safe-area aware without configuration: backgrounds, separators, and dividers paint through a device's unsafe areas (a collapsible rail or drawer grows by the inset it docks to), content is padded only on the sides a region actually reaches, and block insets are scroll padding inside the scroller so first/last content can always be scrolled clear. Interior edges get nothing, and a collapsed rail hands its edge back to the center. Never add your own `env(safe-area-inset-*)` padding around a kerf layout or pane — that double-insets. In an app-owned arrangement of panes, pass `Pane.safeAreaEdges` (the sides that pane reaches; `[]` opts out); give an app bar or bottom bar that sits at a screen edge outside a Pane header or footer `Toolbar.safeAreaEdges` for the sides it reaches (for example `['block-start', 'inline-start', 'inline-end']`); the Workbench `mainToolbar` / `mainBottomToolbar` and panel `toolbar` configurations forward the same `safeAreaEdges` to their `Toolbar`. Do not set the internal `--kui-edge-inset-*` context yourself. The device insets are `--kui-safe-area-*` (defaulting to `env()`), overridable on `:root`. See `docs/app-layouts.md` "Safe areas".
479
541
 
480
- For application tabs, `TabBarItem presentation="icon-only"` retains its accessible `name`, `labelMaxWidth` truncates the visible name, and `attention` colors it through `--kui-tab-bar-item-attention-color`. Configure TabBar strip geometry through public `--kui-tab-bar-strip-*` tokens.
542
+ For application tabs, `TabBarItem presentation="icon-only"` retains its accessible `name`, `labelMaxWidth` truncates the visible name, and `attention` colors it through `--kui-tab-bar-item-attention-color`. Configure TabBar strip geometry through public `--kui-tab-bar-strip-*` tokens. In intrinsic allocation, tabs give up width by ellipsizing their names down to a minimum before the strip scrolls (the full name stays the accessible name, and `wireTabBars` adds it as a `title` while truncated); do not cap or clip tab names in app CSS, and reserve `labelMaxWidth` for a cap that should hold even when there is room.
481
543
 
482
- `TabBar presentation="inspector"` uses the shared rounded rectangle radius for its strip and inset segmented tabs. Ordinary `presentation="segmented"` keeps pill strip ends and smaller corners between tabs; do not restyle TabBarItem to make one presentation match the other.
544
+ `TabBar presentation="inspector"` uses the shared rounded rectangle radius for its strip and inset segmented tabs. Ordinary `presentation="segmented"` keeps pill strip ends and smaller corners between tabs, and `shape="rounded"` draws a segmented strip at the rounded rectangle radius with concentric tabs; do not restyle TabBarItem to make one presentation match the other.
483
545
 
484
546
  Set `TabBarItem dropTarget` while content is dragged over a tab to highlight the target without changing selection. Use `nameOverflow="visible"` for an inline loading treatment that needs the full visible name; the default is an ellipsis.
485
547
 
@@ -497,10 +559,10 @@ For a filled command list, scope `--kui-list-item-background`, `--kui-list-item-
497
559
 
498
560
  Use `Toolbar responsive="trailing-priority"` when an expanded trailing search needs a full second row below its heading at `responsiveAt`. Configure a leading minimum width, trailing gap and justification, or zone inline padding with the public `--kui-toolbar-*` tokens rather than selectors into toolbar zones.
499
561
 
500
- For a 40px header embedded in a panel or card, pass `Toolbar density="compact"` (a 34px control band with 3px block insets) and give its groups `size="compact"`; never shrink a Toolbar with CSS. Workbench, CollapsiblePanel, NavStack, and SplitView toolbars take `density` through their `ToolbarConfig` and size the groups they compose (panel toggles, the back button) to match; pass `density` to `CollapsiblePanelRelocated` when the destination toolbar is compact. Set `--kui-toolbar-inset: 0px` on an embedded Toolbar to remove its outer padding while retaining `--kui-toolbar-gap` between zones. The same inset token controls the minimum-height allowance; safe-area padding still applies at claimed edges.
562
+ For a 40px header embedded in a panel or card, pass `Toolbar density="compact"` (a 34px control band with 3px block insets) and give its groups `size="compact"`, whose text controls (plain buttons, action links, PopupMenu triggers) take the compact 14px text a compact `Button` uses; never shrink a Toolbar with CSS. Workbench, CollapsiblePanel, NavStack, and SplitView toolbars take `density` through their `ToolbarConfig` and size the groups they compose (panel toggles, the back button) to match; pass `density` to `CollapsiblePanelRelocated` when the destination toolbar is compact. Set `--kui-toolbar-inset: 0px` on an embedded Toolbar to remove its outer padding while retaining `--kui-toolbar-gap` between zones. The same inset token controls the minimum-height allowance; safe-area padding still applies at claimed edges.
501
563
 
502
564
  For compact dialog copy, use `Text flush lineHeight="tight"`; center short status copy with `Text align="center"` (or end-align a value with `align="end"`) rather than setting `text-align` on `.kui-text`; for compact metadata, use `ValueTable density="compact"` and its public row columns/padding/gap tokens. `ToolbarText size="xsmall"` fits a dense rail heading. A `SearchField` editor shrinks inside a narrow group by default; set `--kui-search-field-editor-min-width` when a minimum is needed. A full-height shell uses the one `.kui-app-root` mount container documented in `docs/document-baseline.md`.
503
- When importing the opt-in `@kerfjs/ui/document.css` baseline, the body gets Web Awesome-compatible font smoothing and disabled automatic text inflation, and native `strong`/`b` get weight 600 (or `--wa-font-weight-bold`). Native `th`, `td`, `button`, `input`, `select`, and `textarea` inherit the surrounding font family, size, and line height; table headers retain their native emphasis. The baseline also gives native controls zero-specificity semantic cursors (pointer on enabled buttons, links, role=button, checkbox/radio inputs, and selects; not-allowed on disabled controls and a disabled `wa-button`; text on text inputs), so do not ship an app-wide cursor stylesheet. A full-viewport shell whose document must never scroll adds `data-viewport="locked"` to its body-child `.kui-app-root` (100dvh plus `overflow: clip` on `html`, `body`, and the root) instead of app CSS. Load application typography overrides after the baseline.
565
+ When importing the opt-in `@kerfjs/ui/document.css` baseline, the body gets Web Awesome-compatible font smoothing and disabled automatic text inflation, and native `strong`/`b` get weight 600 (the `--kui-font-weight-bold` token, which follows `--wa-font-weight-bold` when a Web Awesome theme supplies it). Native `th`, `td`, `button`, `input`, `select`, and `textarea` inherit the surrounding font family, size, and line height; table headers retain their native emphasis. The baseline also gives native controls zero-specificity semantic cursors (pointer on enabled buttons, links, role=button, checkbox/radio inputs, and selects; not-allowed on disabled controls and a disabled `wa-button`; text on text inputs), so do not ship an app-wide cursor stylesheet. A full-viewport shell whose document must never scroll adds `data-viewport="locked"` to its body-child `.kui-app-root` (100dvh plus `overflow: clip` on `html`, `body`, and the root) instead of app CSS. Load application typography overrides after the baseline.
504
566
 
505
567
  For a read-only field preview that replaces a Web Awesome input, use `FieldLabel` from `@kerfjs/ui/text` above the preview. Put it in `ListInsetControl sides="trl"` beside a `ContentItem` value; give it an id and use `aria-labelledby` on the preview group. The app owns preview/edit state and hint copy.
506
568
 
@@ -539,9 +601,10 @@ Common mistakes:
539
601
  | Expect a bare toolbar control to receive group chrome automatically | Style and name the direct control itself, or use `ToolbarControlGroup` when controls need shared chrome |
540
602
  | Reach for `wa-button` for a plain control inside a `ToolbarControlGroup` | Use a plain `<button>` (the group styles it fully); for a popup menu use `PopupMenu`, which renders its own trigger |
541
603
  | Render a `wa-button` for a standalone action (a dialog footer, a form, a toolbar or tab bar action) | Use `Button` (`@kerfjs/ui/button`): `tone` `brand` for the main action, `danger` for a destructive one, `emphasis` `secondary` or `plain` for quieter ones; an icon-only `Button` (`icon` and `ariaLabel`) for an icon-only action, `pressed` for a toggle |
542
- | Render a `wa-input` or `wa-textarea` for a form field | Use `TextField` (`@kerfjs/ui/text-field`): `label`, `hint`, and `error`; `multiline` with `rows` (and `maxRows` to grow) for a textarea; `clearable` and `showCount` with `wireTextFields(root)` |
604
+ | Render a `wa-input` or `wa-textarea` for a form field | Use `TextField` (`@kerfjs/ui/text-field`): `label`, `hint`, and `error`; `multiline` with `rows` (and `maxRows` to grow) for a textarea; `clearable` and `showCount` with `wireTextFields(root)`; `toggle` for an end icon toggle the app flips in its `action` |
543
605
  | Render a `wa-checkbox`, `wa-checkbox-group`, `wa-radio-group`, or `wa-switch` | Use `Checkbox` (`indeterminate` with `wireCheckboxes(root)`; stack several in a `List gap="xs"`, the 28px pitch `RadioGroup` choices share), `CheckboxGroup` for a labeled set (`choices`, an array `value`, `name`), `RadioGroup` (`choices`, `value`, `name`), or `Switch` (only for a setting that applies immediately) |
544
606
  | Render a `Discouraged` Web Awesome element (`wa-dropdown`, `wa-button-group`, `wa-select`, `wa-tab-group`, `wa-icon`, …) directly | Use the Kerf component that replaces it (`PopupMenu`, `SegmentedControl`, `Select`, `TabBar`, `LucideIcon`); file a component gap rather than dropping to the raw element. `KUI-L301` (`ui-preferences`, also run by `kerf-ui-doctor`) reports the raw tag and names the replacement |
607
+ | Put `wa-light` / `wa-dark` / `wa-invert` on a Kerf surface for an appearance scope | Use the `scheme` prop on `ContentItem`, `Pane`, `NavStack`, or `TabNavigator`, or the `.kui-light` / `.kui-dark` / `.kui-invert` class: the `wa-*` classes do nothing without the Web Awesome theme. `KUI-L302` (`ui-preferences`) reports them |
545
608
  | Let a toolbar group wrap, or stack an icon above its label | Keep icon and label on one row and let the group size to its content; relocate whole groups with the toolbar's `responsive` policy |
546
609
  | Add CSS to show, hide, or reshape a Select or PopupMenu trigger's focus ring | Nothing: the ring follows the control's shape and drops while the popup is open; set `focusRingOwner="group"` when the group paints the composed ring |
547
610
  | Add a border or a permanent `dividerSides` under pinned chrome to separate it from scrolling content | Call `wireScrollDividers(appRoot)` once: a `Pane` draws the line only while content is scrolled beneath it, and never pad below a divider to adjust it |
@@ -563,9 +626,11 @@ Common mistakes:
563
626
 
564
627
  For prominent content text, use `Text size="large"`; use `size="xlarge"` for display copy. Both sizes work with semantic `variant`, `tone`, and `font`, so keep heading levels based on the document outline.
565
628
 
629
+ For a link that looks like a button, give `Button` a `link`: a URL string, a `URL`, or `{ href, target }` (`link` is the preferred form of `href` + `target`, which still work; never give both). A link with `target: '_blank'` gets `rel="noopener noreferrer"` automatically, as a `Chip`'s `external` does; do not add your own `rel`. For an action or a link that should read as an inline text link inside content (a feed card's "Source", a "Show Details" action), set `emphasis="link"` on any Button: it draws underlined text in its tone's link color at the surrounding text size, keeps its native role and focus ring, and drops the 44px control box. Use `ListItemLink` for a navigation row and `ToolbarActionLink` in a toolbar instead, and never hand-write a styled `<a>`. See `docs/button.md`.
630
+
566
631
  For a setup or progress sequence, use `Button currentStep` on its current step. The native button or link reports `aria-current="step"`, including when disabled; the app owns the label and which step is current. See `docs/button.md`.
567
632
 
568
- For an exclusive choice among several visible options that must wrap (a labeled color palette), use `ChoiceChips` from `@kerfjs/ui/choice-chips`: separate pills backed by native radios, so the group is one Tab stop, arrow keys select, and the checked radio submits under `name`. Name it with `label` or `labelledBy` (a visible `FieldLabel`), lead choices with `swatch` (a `CssColor` such as `fillColor('#3b82f6')`, or `'transparent'` for the struck-through no-color dot) or `icon`, and handle the delegated `action` on `change`. Never wrap a `SegmentedControl` or button-appearance `wa-radio` set instead. When any number of the options may be on, give `value` a `readonly Value[]` and pick a model. `multiple: 'toggle'` (label filters, annotation intents) makes the pills native checkboxes in a `role="group"`: each its own Tab stop, a click or Space toggles it alone, and every checked value submits under `name` (read the checked boxes by name in the change handler). `multiple: true` is the desktop multi-select: an `aria-multiselectable` listbox where a click selects one chip, Cmd (Apple) or Ctrl (elsewhere) toggles one, and Shift extends a range; it is one Tab stop with arrow, Shift+arrow, Space, and Cmd/Ctrl+A selection, and hidden inputs submit under `name`. It requires `wireChoiceChips(root)` from `@kerfjs/ui/wire-choice-chips`, which fires `change` on the group (the group carries the `action`); read the set with `readChoiceChips(group)`. A multiple group takes no `required`. On dark inverse chrome, put the chips in a dark appearance scope (`.wa-dark` or any `color-scheme: dark` ancestor) instead of restyling them.
633
+ For an exclusive choice among several visible options that must wrap (a labeled color palette), use `ChoiceChips` from `@kerfjs/ui/choice-chips`: separate pills backed by native radios, so the group is one Tab stop, arrow keys select, and the checked radio submits under `name`. Name it with `label` or `labelledBy` (a visible `FieldLabel`), lead choices with `swatch` (a `CssColor` such as `fillColor('#3b82f6')`, or `'transparent'` for the struck-through no-color dot) or `icon`, and handle the delegated `action` on `change`. Never wrap a `SegmentedControl` or button-appearance `wa-radio` set instead. When any number of the options may be on, give `value` a `readonly Value[]` and pick a model. `multiple: 'toggle'` (label filters, annotation intents) makes the pills native checkboxes in a `role="group"`: each its own Tab stop, a click or Space toggles it alone, and every checked value submits under `name` (read the checked boxes by name in the change handler). `multiple: true` is the desktop multi-select: an `aria-multiselectable` listbox where a click selects one chip, Cmd (Apple) or Ctrl (elsewhere) toggles one, and Shift extends a range; it is one Tab stop with arrow, Shift+arrow, Space, and Cmd/Ctrl+A selection, and hidden inputs submit under `name`. It requires `wireChoiceChips(root)` from `@kerfjs/ui/wire-choice-chips`, which fires `change` on the group (the group carries the `action`); read the set with `readChoiceChips(group)`. A multiple group takes no `required`. A section or filter strip that must stay one row (a feed's sections on a phone) takes `overflow="scroll"`: one row that scrolls sideways inside the group, never wrapping the content below down; `wireChoiceChips` keeps the checked chip in view and `wireScrollDividers` fades the edges with chips past them (a `TabBar` only when the choice switches tabpanels). On dark inverse chrome, put the chips in a dark appearance scope (a container's `scheme="dark"`, `.kui-dark`, or any `color-scheme: dark` ancestor) instead of restyling them.
569
634
 
570
635
  For removable tags use `Chip`, with `removeAction` for delegated handling and a specific `removeLabel` for the native button. `itemId` identifies the tag; the app owns removal. `size="compact"` and `disabled` replace app styling of raw `wa-tag` internals. Use `Badge` for non-interactive metadata. For a downloadable file or a short link, give `Chip` an `href` (optional `download`, `true` or a file name, and `external`) instead of styling an `<a>`: it renders a native link with chip geometry, icon, truncation, focus ring, and hover feedback, and cannot also carry a remove button. Inside a `brand-loud` or `neutral` ContentItem bubble set `tone="inherit"`, which follows the bubble's foreground with a currentColor border and no fill. For a short value the user activates once (a filter token in a search help popover that inserts itself into the query), give `Chip` an `action` and `itemId`: the whole chip becomes a native `<button type="button" data-action data-item-id>` with hover, press, focus-ring, and disabled states, and an optional `actionLabel` that contains the visible label. It cannot also take `href` or `removeAction`. A compact rounded action chip keeps a compact `Badge`'s height in a compact `ValueTable` cell, so use it there instead of a `Badge` the app makes clickable.
571
636
 
@@ -574,7 +639,7 @@ For a chat message or assistant prompt, use `MessageComposer` from `@kerfjs/ui/m
574
639
  For an icon with a specific meaning, set `LucideIcon.color` using `uiColor('warning-on-quiet')` or another foreground token. Use `foregroundColorVar('--app-icon-color')` for an app-owned property or `foregroundColor('#8b5cf6')` for a direct custom CSS color. Omit the prop to inherit text color. Outline stroke and solid fill both follow the chosen color; size, appearance, label, and slot remain separate props. Avoid pale fill tokens as foregrounds.
575
640
  Set `LucideIcon.inline` when an icon belongs within `Text` or another sentence; the SVG flows as `inline-block` instead of its default block layout. It retains its inherited 1em size unless you set `size`.
576
641
 
577
- For `Select`, mark an unavailable choice with `disabled` and optionally `disabledReason`. In a multiple Select, `selectAllLabel` and `clearLabel` opt in to localized footer actions that select enabled choices or clear the selection through normal input/change events; the app still owns the controlled `value`.
642
+ For `Select`, mark an unavailable choice with `disabled` and optionally `disabledReason`. In a multiple Select, `selectAllLabel` and `clearLabel` opt in to localized footer actions that select enabled choices or clear the selection through normal input/change events; the app still owns the controlled `value`. `popupNote` (on `Select` and `PopupMenu`) adds quiet text at the bottom of the open popup, announced as the listbox's or menu's description: use it for what the choices leave out, especially in a toolbar Select, where `hint` has no room below the trigger. `embedded` (on `Select` and `PopupMenu`) renders the popup open at its trigger (a Select's listbox right below the control, over its `hint`), in the document, and inert (its trigger opens nothing, its rows choose nothing or take focus, and menu items drop their `data-action`); with it, PopupMenu `embeddedSubmenu` (a path of `items` indices) also shows that submenu open beside its item: use it only for a static preview, as the Kerf UI editor's edit canvas does for a selected one, never in place of an interactive popup.
578
643
 
579
644
  For nested action menus, use `PopupMenuItem.submenu` with item, heading, and divider entries; headings and dividers do not enter keyboard navigation. Items support `checked`, `icon`, `details`, `disabledReason`, and `tone`. The app owns choice state. For a right-click menu, use `PopupMenu` with `context: true` and `anchor` (a signal holding the pointer's `{ x, y }` client coordinates); the `contextmenu` handler sets that signal and calls `openPopupMenu(menu)`. Its `placement` applies at that point (`top-start` opens above it), with the same viewport flip. The menu owns its zero-footprint anchor host and keeps the point across re-renders, so never wrap it in a fixed/1px/z-index anchor element or re-apply the point after a render; `openPopupMenuAt(menu, x, y)` is only for a menu rendered without `anchor`. Call `closePopupMenu` for programmatic dismissal. `openPopupMenuAt` also opens a button-triggered `PopupMenu` (one without `context`) at the pointer for one opening (`bottom-start`, or pass `{ placement: 'top-start' }` as a fourth argument to open above the point; the flip still applies); it returns to its trigger once closed, so a row's visible overflow menu doubles as its context menu. For a row's trailing "…" overflow menu, pass `ListActionRow` a `trailingMenu: { label, icon, items, placement?, disabled? }` instead of the `trailingAction*` props; never compose a `PopupMenu` next to or inside a `ListItem`.
580
645
 
@@ -621,6 +686,8 @@ Give sibling `DialogSurface`s that render conditionally a stable `rootAttributes
621
686
 
622
687
  Render a modal dialog as `DialogSurface` itself, a native `<dialog>` (set `alert` for a confirmation before a destructive action, which renders `role="alertdialog"`; pair it with `describedBy` on the message and leave `lightDismiss` off): `label` (or `labelledBy` with a `heading`, such as an xl `ToolbarText` with a description) names it, `describedBy` (the heading ToolbarText's `descriptionId`, or app-owned summary copy) describes it as `aria-describedby`, `children` is its body, `footer` holds its buttons, and `headerActions` sit before its close button (`withoutHeader` drops the header for content that owns its heading and close control). Open it with `openDialog(dialog)` and close it with `closeDialog(dialog)` from `@kerfjs/ui/surface-scaffold`; never toggle its `open` attribute. The close button, any `data-dialog-close` element inside (a Cancel button), Escape, and, with `lightDismiss`, a backdrop press dispatch a cancelable `kui-request-close` (`detail.source`: `close-button`, `escape`, or `backdrop`); cancel it to keep the dialog open (the panel pulses). The native `close` event fires once it closes. `openDialog` installs the listeners and, while the dialog is open, measures its floating header/footer, follows a bottom sheet's keyboard and grabber, and keeps that state across re-renders; import `@kerfjs/ui/surface-scaffold/register` only when a dialog may open some other way. Do not write `wa-dialog` inside a `DialogSurface`.
623
688
 
689
+ 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
+
624
691
  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`.
625
692
 
626
693
  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.