@kerfjs/ui 5.0.0-beta.10 → 5.0.0-beta.100

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 (997) hide show
  1. package/README.md +630 -132
  2. package/ai/application-ui-diagnostic-ids-v1.json +114 -0
  3. package/ai/application-ui-profile-sync.cjs +548 -0
  4. package/ai/application-ui-profile.d.mts +1 -0
  5. package/ai/application-ui-profile.d.ts +106 -0
  6. package/ai/application-ui-profile.defaults.json +96 -0
  7. package/ai/application-ui-profile.mjs +653 -0
  8. package/ai/application-ui-profile.schema.json +140 -0
  9. package/ai/catalog-authoring.json +34 -0
  10. package/ai/catalog-authoring.schema.json +105 -0
  11. package/ai/compile-time-contracts-v1.json +149 -0
  12. package/ai/compile-time-contracts-v1.schema.json +52 -0
  13. package/ai/component-catalog-extension.schema.json +104 -0
  14. package/ai/component-catalog.json +6401 -931
  15. package/ai/component-catalog.schema.json +94 -1
  16. package/ai/component-class-owners.cjs +83 -0
  17. package/ai/component-composition-extension.d.ts +7 -0
  18. package/ai/component-composition-extension.schema.json +7 -0
  19. package/ai/component-composition-rules.json +551 -0
  20. package/ai/component-composition.d.ts +132 -0
  21. package/ai/component-composition.json +8729 -0
  22. package/ai/component-composition.schema.json +412 -0
  23. package/ai/components/README.md +185 -0
  24. package/ai/components/anchored-surface.md +99 -0
  25. package/ai/components/application-tabs.md +65 -0
  26. package/ai/components/badge.md +76 -0
  27. package/ai/components/chip.md +76 -0
  28. package/ai/components/choice-chips.md +87 -0
  29. package/ai/components/collapsible-panel.md +103 -0
  30. package/ai/components/column-track.md +78 -0
  31. package/ai/components/combobox.md +88 -0
  32. package/ai/components/composer.md +83 -0
  33. package/ai/components/content-item.md +98 -0
  34. package/ai/components/content-swap.md +78 -0
  35. package/ai/components/corner-status.md +88 -0
  36. package/ai/components/disclosure-arrow.md +77 -0
  37. package/ai/components/document-baseline.md +77 -0
  38. package/ai/components/edge-activity-indicator.md +81 -0
  39. package/ai/components/empty-state.md +80 -0
  40. package/ai/components/feedback.md +71 -0
  41. package/ai/components/file-picker.md +88 -0
  42. package/ai/components/floating-toolbar.md +82 -0
  43. package/ai/components/foundation.md +65 -0
  44. package/ai/components/framed-list.md +80 -0
  45. package/ai/components/grid.md +101 -0
  46. package/ai/components/headers.md +63 -0
  47. package/ai/components/icon-button.md +82 -0
  48. package/ai/components/icon-toggle-button.md +80 -0
  49. package/ai/components/layout.md +75 -0
  50. package/ai/components/list-action-row.md +108 -0
  51. package/ai/components/list-header.md +91 -0
  52. package/ai/components/list-inset-control.md +74 -0
  53. package/ai/components/list-inset-text.md +72 -0
  54. package/ai/components/list-item.md +108 -0
  55. package/ai/components/list.md +125 -0
  56. package/ai/components/loading-spinner.md +73 -0
  57. package/ai/components/lucide-icon.md +97 -0
  58. package/ai/components/nav-stack.md +115 -0
  59. package/ai/components/pane.md +115 -0
  60. package/ai/components/popup-menu.md +171 -0
  61. package/ai/components/recipe-app-shell.md +57 -0
  62. package/ai/components/recipe-collapsible-sidebar.md +57 -0
  63. package/ai/components/recipe-compact-toolbar.md +57 -0
  64. package/ai/components/recipe-composer-form.md +57 -0
  65. package/ai/components/recipe-list-detail-dialog.md +57 -0
  66. package/ai/components/recipe-list-workspace-states.md +57 -0
  67. package/ai/components/recipe-loading-inspector.md +57 -0
  68. package/ai/components/recipe-navigation-sidebar.md +57 -0
  69. package/ai/components/recipe-navigation-stack.md +57 -0
  70. package/ai/components/recipe-workspace-header.md +57 -0
  71. package/ai/components/resize.md +106 -0
  72. package/ai/components/row.md +96 -0
  73. package/ai/components/segmented-control.md +82 -0
  74. package/ai/components/select.md +116 -0
  75. package/ai/components/skeleton.md +84 -0
  76. package/ai/components/spacer.md +86 -0
  77. package/ai/components/split-button.md +80 -0
  78. package/ai/components/split-view.md +105 -0
  79. package/ai/components/state-banner.md +96 -0
  80. package/ai/components/summary-row.md +85 -0
  81. package/ai/components/sunken-panel.md +79 -0
  82. package/ai/components/surface-scaffold.md +105 -0
  83. package/ai/components/tab-bar.md +114 -0
  84. package/ai/components/tab-navigator.md +100 -0
  85. package/ai/components/tabs.md +95 -0
  86. package/ai/components/text.md +90 -0
  87. package/ai/components/token-search-field.md +107 -0
  88. package/ai/components/toolbar-control-group.md +125 -0
  89. package/ai/components/toolbar-text.md +100 -0
  90. package/ai/components/toolbar.md +103 -0
  91. package/ai/components/value-table.md +80 -0
  92. package/ai/components/wa-accordion-item.md +55 -0
  93. package/ai/components/wa-accordion.md +65 -0
  94. package/ai/components/wa-animated-image.md +55 -0
  95. package/ai/components/wa-animation.md +55 -0
  96. package/ai/components/wa-avatar.md +55 -0
  97. package/ai/components/wa-badge.md +55 -0
  98. package/ai/components/wa-breadcrumb-item.md +53 -0
  99. package/ai/components/wa-breadcrumb.md +55 -0
  100. package/ai/components/wa-button-group.md +60 -0
  101. package/ai/components/wa-button.md +59 -0
  102. package/ai/components/wa-callout.md +58 -0
  103. package/ai/components/wa-card.md +59 -0
  104. package/ai/components/wa-carousel-item.md +53 -0
  105. package/ai/components/wa-carousel.md +55 -0
  106. package/ai/components/wa-checkbox-group.md +55 -0
  107. package/ai/components/wa-checkbox.md +55 -0
  108. package/ai/components/wa-color-picker.md +55 -0
  109. package/ai/components/wa-comparison.md +55 -0
  110. package/ai/components/wa-copy-button.md +55 -0
  111. package/ai/components/wa-details.md +61 -0
  112. package/ai/components/wa-dialog.md +59 -0
  113. package/ai/components/wa-divider.md +53 -0
  114. package/ai/components/wa-drawer.md +55 -0
  115. package/ai/components/wa-dropdown-item.md +60 -0
  116. package/ai/components/wa-dropdown.md +60 -0
  117. package/ai/components/wa-format-bytes.md +53 -0
  118. package/ai/components/wa-format-date.md +53 -0
  119. package/ai/components/wa-format-number.md +53 -0
  120. package/ai/components/wa-icon.md +58 -0
  121. package/ai/components/wa-include.md +53 -0
  122. package/ai/components/wa-input.md +59 -0
  123. package/ai/components/wa-intersection-observer.md +53 -0
  124. package/ai/components/wa-known-date.md +53 -0
  125. package/ai/components/wa-markdown.md +53 -0
  126. package/ai/components/wa-mutation-observer.md +53 -0
  127. package/ai/components/wa-number-input.md +55 -0
  128. package/ai/components/wa-option.md +59 -0
  129. package/ai/components/wa-otp-input.md +53 -0
  130. package/ai/components/wa-page.md +53 -0
  131. package/ai/components/wa-pagination.md +55 -0
  132. package/ai/components/wa-popover.md +55 -0
  133. package/ai/components/wa-popup.md +53 -0
  134. package/ai/components/wa-progress-bar.md +53 -0
  135. package/ai/components/wa-progress-ring.md +53 -0
  136. package/ai/components/wa-qr-code.md +53 -0
  137. package/ai/components/wa-radio-group.md +59 -0
  138. package/ai/components/wa-radio.md +55 -0
  139. package/ai/components/wa-random-content.md +53 -0
  140. package/ai/components/wa-rating.md +55 -0
  141. package/ai/components/wa-relative-time.md +53 -0
  142. package/ai/components/wa-resize-observer.md +53 -0
  143. package/ai/components/wa-scroller.md +53 -0
  144. package/ai/components/wa-select.md +63 -0
  145. package/ai/components/wa-skeleton.md +53 -0
  146. package/ai/components/wa-slider.md +55 -0
  147. package/ai/components/wa-spinner.md +58 -0
  148. package/ai/components/wa-split-panel.md +58 -0
  149. package/ai/components/wa-switch.md +53 -0
  150. package/ai/components/wa-tab-group.md +69 -0
  151. package/ai/components/wa-tab-panel.md +60 -0
  152. package/ai/components/wa-tab.md +59 -0
  153. package/ai/components/wa-tag.md +59 -0
  154. package/ai/components/wa-textarea.md +53 -0
  155. package/ai/components/wa-time-input.md +55 -0
  156. package/ai/components/wa-toast-item.md +60 -0
  157. package/ai/components/wa-toast.md +60 -0
  158. package/ai/components/wa-tooltip.md +55 -0
  159. package/ai/components/wa-tree-item.md +55 -0
  160. package/ai/components/wa-tree.md +55 -0
  161. package/ai/components/wa-zoomable-frame.md +55 -0
  162. package/ai/components/workbench.md +120 -0
  163. package/ai/public-api-signatures-v1.md +4261 -459
  164. package/ai/skill.md +441 -63
  165. package/ai/webawesome-jsx-signatures-v1.md +9 -2
  166. package/analyzer/cli.mjs +49 -0
  167. package/analyzer/component-ownership.d.mts +72 -0
  168. package/analyzer/component-ownership.mjs +429 -0
  169. package/analyzer/index.d.mts +53 -0
  170. package/analyzer/index.mjs +2375 -0
  171. package/analyzer/loud-pairs.d.mts +49 -0
  172. package/analyzer/loud-pairs.mjs +357 -0
  173. package/analyzer/report.schema.json +66 -0
  174. package/analyzer/selectors.d.mts +21 -0
  175. package/analyzer/selectors.mjs +212 -0
  176. package/catalog-projection-cli.mjs +96 -0
  177. package/catalog-projection.d.mts +55 -0
  178. package/catalog-projection.mjs +62 -0
  179. package/dist/anchored-surface.d.ts +69 -0
  180. package/dist/anchored-surface.js +3 -0
  181. package/dist/anchored-surface.js.map +1 -0
  182. package/dist/app-tab.d.ts +39 -4
  183. package/dist/app-tab.js +2 -1
  184. package/dist/badge.d.ts +83 -0
  185. package/dist/badge.js +4 -0
  186. package/dist/badge.js.map +1 -0
  187. package/dist/browser/anchored-surface.js +3 -0
  188. package/dist/browser/badge.js +3 -0
  189. package/dist/browser/catalog.js +28 -0
  190. package/dist/browser/chip.js +3 -0
  191. package/dist/browser/choice-chips.js +3 -0
  192. package/dist/browser/collapsible-panel.js +9 -0
  193. package/dist/browser/column-track.js +3 -0
  194. package/dist/browser/combobox.js +3 -0
  195. package/dist/browser/composer.js +4 -0
  196. package/dist/browser/content-item.js +3 -0
  197. package/dist/browser/content-swap.js +3 -0
  198. package/dist/browser/corner-status.js +3 -0
  199. package/dist/browser/edge-activity-indicator.js +3 -0
  200. package/dist/browser/file-picker.js +3 -0
  201. package/dist/browser/floating-toolbar.js +3 -0
  202. package/dist/browser/framed-list.js +3 -0
  203. package/dist/browser/grid.js +3 -0
  204. package/dist/browser/icon-button.js +4 -0
  205. package/dist/browser/icon-toggle-button.js +4 -0
  206. package/dist/browser/list-action-row.js +2 -0
  207. package/dist/browser/list-header.js +3 -1
  208. package/dist/browser/list-inset-control.js +3 -0
  209. package/dist/browser/list-inset-text.js +3 -0
  210. package/dist/browser/list-item.js +1 -0
  211. package/dist/browser/list.js +3 -0
  212. package/dist/browser/nav-stack.js +11 -0
  213. package/dist/browser/pane.js +3 -0
  214. package/dist/browser/popup-menu.js +3 -0
  215. package/dist/browser/row.js +3 -0
  216. package/dist/browser/segmented-control.js +0 -1
  217. package/dist/browser/select.js +2 -1
  218. package/dist/browser/spacer.js +3 -0
  219. package/dist/browser/split-button.js +5 -0
  220. package/dist/browser/split-view.js +13 -0
  221. package/dist/browser/state-banner.js +1 -0
  222. package/dist/browser/summary-row.js +3 -0
  223. package/dist/browser/sunken-panel.js +3 -0
  224. package/dist/browser/surface-scaffold.js +3 -0
  225. package/dist/browser/tab-navigator.js +4 -0
  226. package/dist/browser/text.js +3 -0
  227. package/dist/browser/toolbar-control-group.js +1 -0
  228. package/dist/browser/workbench.js +14 -0
  229. package/dist/catalog-resources.d.ts +50 -0
  230. package/dist/catalog-resources.js +22 -0
  231. package/dist/catalog-resources.js.map +1 -0
  232. package/dist/catalog.d.ts +134 -101
  233. package/dist/catalog.js +668 -105
  234. package/dist/catalog.js.map +1 -1
  235. package/dist/chip.d.ts +69 -0
  236. package/dist/chip.js +3 -0
  237. package/dist/chip.js.map +1 -0
  238. package/dist/choice-chips.d.ts +82 -0
  239. package/dist/choice-chips.js +3 -0
  240. package/dist/choice-chips.js.map +1 -0
  241. package/dist/chunk-2GOCOLQL.js +270 -0
  242. package/dist/chunk-2GOCOLQL.js.map +1 -0
  243. package/dist/chunk-2MSPNRWJ.js +82 -0
  244. package/dist/chunk-2MSPNRWJ.js.map +1 -0
  245. package/dist/chunk-34U4ANDJ.js +119 -0
  246. package/dist/chunk-34U4ANDJ.js.map +1 -0
  247. package/dist/chunk-3GLYIIFR.js +230 -0
  248. package/dist/chunk-3GLYIIFR.js.map +1 -0
  249. package/dist/{chunk-56RJXPHG.js → chunk-3VXDSIBJ.js} +7 -4
  250. package/dist/chunk-3VXDSIBJ.js.map +1 -0
  251. package/dist/chunk-3WYREXW4.js +120 -0
  252. package/dist/chunk-3WYREXW4.js.map +1 -0
  253. package/dist/chunk-4UB5Z3ZZ.js +68 -0
  254. package/dist/chunk-4UB5Z3ZZ.js.map +1 -0
  255. package/dist/chunk-6C6DLP3W.js +31 -0
  256. package/dist/chunk-6C6DLP3W.js.map +1 -0
  257. package/dist/chunk-7IUEBNCO.js +108 -0
  258. package/dist/chunk-7IUEBNCO.js.map +1 -0
  259. package/dist/chunk-AN5IWMTM.js +24 -0
  260. package/dist/chunk-AN5IWMTM.js.map +1 -0
  261. package/dist/chunk-AV7CPAPT.js +82 -0
  262. package/dist/chunk-AV7CPAPT.js.map +1 -0
  263. package/dist/chunk-B53PS2LE.js +34 -0
  264. package/dist/chunk-B53PS2LE.js.map +1 -0
  265. package/dist/chunk-CA7LNX3J.js +44 -0
  266. package/dist/chunk-CA7LNX3J.js.map +1 -0
  267. package/dist/chunk-CEJ5FK6G.js +288 -0
  268. package/dist/chunk-CEJ5FK6G.js.map +1 -0
  269. package/dist/chunk-CMETHPKR.js +175 -0
  270. package/dist/chunk-CMETHPKR.js.map +1 -0
  271. package/dist/chunk-CMLPFIC5.js +46 -0
  272. package/dist/chunk-CMLPFIC5.js.map +1 -0
  273. package/dist/chunk-CVD5IZGB.js +66 -0
  274. package/dist/chunk-CVD5IZGB.js.map +1 -0
  275. package/dist/chunk-CXZXHZTR.js +514 -0
  276. package/dist/chunk-CXZXHZTR.js.map +1 -0
  277. package/dist/chunk-D5RGM3XA.js +38 -0
  278. package/dist/chunk-D5RGM3XA.js.map +1 -0
  279. package/dist/chunk-DZJ4GBSP.js +59 -0
  280. package/dist/chunk-DZJ4GBSP.js.map +1 -0
  281. package/dist/chunk-EIET4QLK.js +51 -0
  282. package/dist/chunk-EIET4QLK.js.map +1 -0
  283. package/dist/chunk-ELCMSQNJ.js +49 -0
  284. package/dist/chunk-ELCMSQNJ.js.map +1 -0
  285. package/dist/chunk-EOO6PYGF.js +162 -0
  286. package/dist/chunk-EOO6PYGF.js.map +1 -0
  287. package/dist/chunk-ETCWQLJV.js +85 -0
  288. package/dist/chunk-ETCWQLJV.js.map +1 -0
  289. package/dist/chunk-FDZNYD4C.js +138 -0
  290. package/dist/chunk-FDZNYD4C.js.map +1 -0
  291. package/dist/chunk-FR76ZJQC.js +90 -0
  292. package/dist/chunk-FR76ZJQC.js.map +1 -0
  293. package/dist/chunk-G3J7JDP6.js +29 -0
  294. package/dist/chunk-G3J7JDP6.js.map +1 -0
  295. package/dist/chunk-GS2QD3N7.js +14 -0
  296. package/dist/chunk-GS2QD3N7.js.map +1 -0
  297. package/dist/chunk-HGV7J4T6.js +86 -0
  298. package/dist/chunk-HGV7J4T6.js.map +1 -0
  299. package/dist/chunk-HLDRH23D.js +84 -0
  300. package/dist/chunk-HLDRH23D.js.map +1 -0
  301. package/dist/chunk-HQZYKJ56.js +302 -0
  302. package/dist/chunk-HQZYKJ56.js.map +1 -0
  303. package/dist/chunk-HZPHCSCS.js +95 -0
  304. package/dist/chunk-HZPHCSCS.js.map +1 -0
  305. package/dist/chunk-IKS72C6P.js +53 -0
  306. package/dist/chunk-IKS72C6P.js.map +1 -0
  307. package/dist/chunk-IM3GKYOG.js +202 -0
  308. package/dist/chunk-IM3GKYOG.js.map +1 -0
  309. package/dist/chunk-INI4WDWC.js +125 -0
  310. package/dist/chunk-INI4WDWC.js.map +1 -0
  311. package/dist/chunk-IQSRHXZR.js +164 -0
  312. package/dist/chunk-IQSRHXZR.js.map +1 -0
  313. package/dist/chunk-JOR5LGYE.js +55 -0
  314. package/dist/chunk-JOR5LGYE.js.map +1 -0
  315. package/dist/chunk-K4AT3V3J.js +545 -0
  316. package/dist/chunk-K4AT3V3J.js.map +1 -0
  317. package/dist/chunk-KCS6NJ3O.js +82 -0
  318. package/dist/chunk-KCS6NJ3O.js.map +1 -0
  319. package/dist/chunk-KH4KEMSP.js +71 -0
  320. package/dist/chunk-KH4KEMSP.js.map +1 -0
  321. package/dist/chunk-LL45C7BB.js +122 -0
  322. package/dist/chunk-LL45C7BB.js.map +1 -0
  323. package/dist/chunk-LOSRXZAH.js +100 -0
  324. package/dist/chunk-LOSRXZAH.js.map +1 -0
  325. package/dist/chunk-MF6ZUUJZ.js +300 -0
  326. package/dist/chunk-MF6ZUUJZ.js.map +1 -0
  327. package/dist/chunk-MHMWQ7RB.js +19 -0
  328. package/dist/chunk-MHMWQ7RB.js.map +1 -0
  329. package/dist/chunk-MJ5RU6XT.js +173 -0
  330. package/dist/chunk-MJ5RU6XT.js.map +1 -0
  331. package/dist/chunk-MXNIVEVL.js +48 -0
  332. package/dist/chunk-MXNIVEVL.js.map +1 -0
  333. package/dist/{chunk-YGN7OMLT.js → chunk-NS2TBYM4.js} +8 -5
  334. package/dist/chunk-NS2TBYM4.js.map +1 -0
  335. package/dist/chunk-PIVY32AE.js +140 -0
  336. package/dist/chunk-PIVY32AE.js.map +1 -0
  337. package/dist/chunk-PYBBYSZ3.js +526 -0
  338. package/dist/chunk-PYBBYSZ3.js.map +1 -0
  339. package/dist/chunk-QDSZTQXL.js +28 -0
  340. package/dist/chunk-QDSZTQXL.js.map +1 -0
  341. package/dist/chunk-QH5KOFNS.js +39 -0
  342. package/dist/chunk-QH5KOFNS.js.map +1 -0
  343. package/dist/chunk-QIG4IGUP.js +139 -0
  344. package/dist/chunk-QIG4IGUP.js.map +1 -0
  345. package/dist/chunk-QLA25V2K.js +493 -0
  346. package/dist/chunk-QLA25V2K.js.map +1 -0
  347. package/dist/chunk-QROYYGWU.js +52 -0
  348. package/dist/chunk-QROYYGWU.js.map +1 -0
  349. package/dist/chunk-QYMJHS4K.js +36 -0
  350. package/dist/chunk-QYMJHS4K.js.map +1 -0
  351. package/dist/chunk-RHD7RKGI.js +176 -0
  352. package/dist/chunk-RHD7RKGI.js.map +1 -0
  353. package/dist/chunk-S2XULQEK.js +52 -0
  354. package/dist/chunk-S2XULQEK.js.map +1 -0
  355. package/dist/chunk-S3ECMF23.js +33 -0
  356. package/dist/chunk-S3ECMF23.js.map +1 -0
  357. package/dist/chunk-S4Y3YTAI.js +35 -0
  358. package/dist/chunk-S4Y3YTAI.js.map +1 -0
  359. package/dist/chunk-S4ZGTDSG.js +18 -0
  360. package/dist/chunk-S4ZGTDSG.js.map +1 -0
  361. package/dist/chunk-T4WJ5VGP.js +165 -0
  362. package/dist/chunk-T4WJ5VGP.js.map +1 -0
  363. package/dist/chunk-TDMHA7C3.js +251 -0
  364. package/dist/chunk-TDMHA7C3.js.map +1 -0
  365. package/dist/chunk-TGLUDQP2.js +138 -0
  366. package/dist/chunk-TGLUDQP2.js.map +1 -0
  367. package/dist/chunk-TLMMFQWM.js +222 -0
  368. package/dist/chunk-TLMMFQWM.js.map +1 -0
  369. package/dist/chunk-U6QYTMDB.js +85 -0
  370. package/dist/chunk-U6QYTMDB.js.map +1 -0
  371. package/dist/chunk-UMKV7YVQ.js +20 -0
  372. package/dist/chunk-UMKV7YVQ.js.map +1 -0
  373. package/dist/chunk-VFYO3UGZ.js +45 -0
  374. package/dist/chunk-VFYO3UGZ.js.map +1 -0
  375. package/dist/chunk-W4IK7AWD.js +73 -0
  376. package/dist/chunk-W4IK7AWD.js.map +1 -0
  377. package/dist/chunk-WVS6CUCT.js +48 -0
  378. package/dist/chunk-WVS6CUCT.js.map +1 -0
  379. package/dist/chunk-Y6KT7ZTR.js +109 -0
  380. package/dist/chunk-Y6KT7ZTR.js.map +1 -0
  381. package/dist/chunk-YMUIQRWK.js +44 -0
  382. package/dist/chunk-YMUIQRWK.js.map +1 -0
  383. package/dist/chunk-YOA5W5ZH.js +807 -0
  384. package/dist/chunk-YOA5W5ZH.js.map +1 -0
  385. package/dist/chunk-YQ2AC4E2.js +59 -0
  386. package/dist/chunk-YQ2AC4E2.js.map +1 -0
  387. package/dist/chunk-ZKKO4MHC.js +25 -0
  388. package/dist/chunk-ZKKO4MHC.js.map +1 -0
  389. package/dist/chunk-ZNROKDSZ.js +54 -0
  390. package/dist/chunk-ZNROKDSZ.js.map +1 -0
  391. package/dist/collapsible-panel.d.ts +96 -17
  392. package/dist/collapsible-panel.js +132 -14
  393. package/dist/collapsible-panel.js.map +1 -1
  394. package/dist/column-track.d.ts +41 -0
  395. package/dist/column-track.js +4 -0
  396. package/dist/column-track.js.map +1 -0
  397. package/dist/combobox.d.ts +40 -0
  398. package/dist/combobox.js +3 -0
  399. package/dist/combobox.js.map +1 -0
  400. package/dist/composer.d.ts +62 -0
  401. package/dist/composer.js +5 -0
  402. package/dist/composer.js.map +1 -0
  403. package/dist/content-item.d.ts +116 -0
  404. package/dist/content-item.js +4 -0
  405. package/dist/content-item.js.map +1 -0
  406. package/dist/content-swap.d.ts +34 -0
  407. package/dist/content-swap.js +3 -0
  408. package/dist/content-swap.js.map +1 -0
  409. package/dist/corner-status.d.ts +36 -0
  410. package/dist/corner-status.js +3 -0
  411. package/dist/corner-status.js.map +1 -0
  412. package/dist/css-values.d.ts +127 -0
  413. package/dist/css-values.js +3 -0
  414. package/dist/css-values.js.map +1 -0
  415. package/dist/device-class.js +34 -6
  416. package/dist/device-class.js.map +1 -1
  417. package/dist/disclosure-arrow.d.ts +6 -1
  418. package/dist/disclosure-arrow.js +2 -1
  419. package/dist/edge-activity-indicator.d.ts +28 -0
  420. package/dist/edge-activity-indicator.js +3 -0
  421. package/dist/edge-activity-indicator.js.map +1 -0
  422. package/dist/empty-state.d.ts +5 -2
  423. package/dist/empty-state.js +2 -1
  424. package/dist/extension-attributes-mu8MFUl0.d.ts +13 -0
  425. package/dist/file-picker.d.ts +47 -0
  426. package/dist/file-picker.js +3 -0
  427. package/dist/file-picker.js.map +1 -0
  428. package/dist/flex-alignment-4ms8ZbV8.d.ts +5 -0
  429. package/dist/floating-toolbar.d.ts +51 -0
  430. package/dist/floating-toolbar.js +3 -0
  431. package/dist/floating-toolbar.js.map +1 -0
  432. package/dist/framed-list.d.ts +47 -0
  433. package/dist/framed-list.js +4 -0
  434. package/dist/framed-list.js.map +1 -0
  435. package/dist/grid.d.ts +58 -0
  436. package/dist/grid.js +6 -0
  437. package/dist/grid.js.map +1 -0
  438. package/dist/help-tags-register.d.ts +13 -0
  439. package/dist/help-tags-register.js +9 -0
  440. package/dist/help-tags-register.js.map +1 -0
  441. package/dist/icon-button.d.ts +46 -0
  442. package/dist/icon-button.js +6 -0
  443. package/dist/icon-button.js.map +1 -0
  444. package/dist/icon-toggle-button.d.ts +42 -0
  445. package/dist/icon-toggle-button.js +6 -0
  446. package/dist/icon-toggle-button.js.map +1 -0
  447. package/dist/index.d.ts +63 -17
  448. package/dist/index.js +66 -23
  449. package/dist/list-action-row.d.ts +69 -12
  450. package/dist/list-action-row.js +5 -1
  451. package/dist/list-header.d.ts +65 -10
  452. package/dist/list-header.js +4 -1
  453. package/dist/list-icon-tile-B8dr97OW.d.ts +18 -0
  454. package/dist/list-inset-control.d.ts +22 -0
  455. package/dist/list-inset-control.js +3 -0
  456. package/dist/list-inset-control.js.map +1 -0
  457. package/dist/list-inset-text.d.ts +30 -0
  458. package/dist/list-inset-text.js +4 -0
  459. package/dist/list-inset-text.js.map +1 -0
  460. package/dist/list-item.d.ts +49 -5
  461. package/dist/list-item.js +4 -1
  462. package/dist/list.d.ts +128 -0
  463. package/dist/list.js +7 -0
  464. package/dist/list.js.map +1 -0
  465. package/dist/loading-spinner.d.ts +12 -2
  466. package/dist/loading-spinner.js +2 -1
  467. package/dist/lucide-icon.d.ts +15 -3
  468. package/dist/lucide-icon.js +2 -1
  469. package/dist/nav-stack-VXTumzKa.d.ts +158 -0
  470. package/dist/nav-stack.d.ts +15 -38
  471. package/dist/nav-stack.js +13 -1
  472. package/dist/pane.d.ts +153 -0
  473. package/dist/pane.js +5 -0
  474. package/dist/pane.js.map +1 -0
  475. package/dist/panel-toolbar-vg6Ir5Dy.d.ts +77 -0
  476. package/dist/popup-menu-register.d.ts +10 -0
  477. package/dist/popup-menu-register.js +336 -0
  478. package/dist/popup-menu-register.js.map +1 -0
  479. package/dist/popup-menu.d.ts +125 -0
  480. package/dist/popup-menu.js +3 -0
  481. package/dist/popup-menu.js.map +1 -0
  482. package/dist/resizable-region.d.ts +32 -3
  483. package/dist/resizable-region.js +1 -1
  484. package/dist/row.d.ts +53 -0
  485. package/dist/row.js +7 -0
  486. package/dist/row.js.map +1 -0
  487. package/dist/scroll-clearance-BikHljTc.d.ts +14 -0
  488. package/dist/segmented-control.d.ts +12 -9
  489. package/dist/segmented-control.js +1 -2
  490. package/dist/select-register.js +255 -3
  491. package/dist/select-register.js.map +1 -1
  492. package/dist/select.d.ts +103 -8
  493. package/dist/select.js +4 -1
  494. package/dist/semantic-content-BbzjvSu9.d.ts +14 -0
  495. package/dist/semantic-tone-CdW013KF.d.ts +4 -0
  496. package/dist/sides-BPSWde0A.d.ts +4 -0
  497. package/dist/skeleton.d.ts +14 -7
  498. package/dist/skeleton.js +2 -1
  499. package/dist/spacer.d.ts +18 -0
  500. package/dist/spacer.js +4 -0
  501. package/dist/spacer.js.map +1 -0
  502. package/dist/split-button.d.ts +57 -0
  503. package/dist/split-button.js +7 -0
  504. package/dist/split-button.js.map +1 -0
  505. package/dist/split-view.d.ts +63 -6
  506. package/dist/split-view.js +149 -10
  507. package/dist/split-view.js.map +1 -1
  508. package/dist/state-banner.d.ts +41 -7
  509. package/dist/state-banner.js +4 -1
  510. package/dist/styles/anchored-surface.css +41 -0
  511. package/dist/styles/app-tab.css +232 -0
  512. package/dist/styles/badge.css +145 -0
  513. package/dist/styles/catalog/components/catalog-example-stack.css +14 -0
  514. package/dist/styles/catalog/components/catalog-example.css +204 -0
  515. package/dist/styles/catalog/components/catalog-stage.css +61 -0
  516. package/dist/styles/catalog/components/catalog.css +26 -0
  517. package/dist/styles/catalog.css +5 -498
  518. package/dist/styles/chip.css +208 -0
  519. package/dist/styles/choice-chips.css +154 -0
  520. package/dist/styles/collapsible-panel.css +450 -16
  521. package/dist/styles/column-track.css +57 -0
  522. package/dist/styles/combobox.css +113 -0
  523. package/dist/styles/components/actions/floating-toolbar/floating-toolbar.css +119 -0
  524. package/dist/styles/components/actions/icon-button/icon-button.css +22 -0
  525. package/dist/styles/components/actions/icon-toggle-button/icon-toggle-button.css +83 -0
  526. package/dist/styles/components/actions/popup-menu/popup-menu.css +370 -0
  527. package/dist/styles/components/actions/split-button/split-button.css +95 -0
  528. package/dist/styles/components/actions/toolbar/toolbar.css +443 -0
  529. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +1069 -0
  530. package/dist/styles/components/actions/toolbar-text/toolbar-text.css +269 -0
  531. package/dist/styles/components/collections/framed-list/framed-list.css +47 -0
  532. package/dist/styles/components/collections/list/list.css +250 -0
  533. package/dist/styles/components/collections/list-action-row/list-action-row.css +466 -0
  534. package/dist/styles/components/collections/list-header/list-header.css +229 -0
  535. package/dist/styles/components/collections/list-inset-control/list-inset-control.css +30 -0
  536. package/dist/styles/components/collections/list-inset-text/list-inset-text.css +29 -0
  537. package/dist/styles/components/collections/list-item/list-item.css +461 -0
  538. package/dist/styles/components/collections/summary-row/summary-row.css +161 -0
  539. package/dist/styles/components/data-display/value-table/value-table.css +183 -0
  540. package/dist/styles/components/feedback/anchored-surface/anchored-surface.css +41 -0
  541. package/dist/styles/components/feedback/badge/badge.css +145 -0
  542. package/dist/styles/components/feedback/chip/chip.css +208 -0
  543. package/dist/styles/components/feedback/corner-status/corner-status.css +60 -0
  544. package/dist/styles/components/feedback/edge-activity-indicator/edge-activity-indicator.css +127 -0
  545. package/dist/styles/components/feedback/empty-state/empty-state.css +47 -0
  546. package/dist/styles/components/feedback/loading-spinner/loading-spinner.css +25 -0
  547. package/dist/styles/components/feedback/skeleton/skeleton.css +92 -0
  548. package/dist/styles/components/feedback/state-banner/state-banner.css +297 -0
  549. package/dist/styles/components/forms/choice-chips/choice-chips.css +154 -0
  550. package/dist/styles/components/forms/combobox/combobox.css +113 -0
  551. package/dist/styles/components/forms/composer/composer.css +100 -0
  552. package/dist/styles/components/forms/file-picker/file-picker.css +81 -0
  553. package/dist/styles/components/forms/segmented-control/segmented-control.css +196 -0
  554. package/dist/styles/components/forms/select/select.css +455 -0
  555. package/dist/styles/components/forms/token-search-field/token-search-field.css +432 -0
  556. package/dist/styles/components/layout/collapsible-panel/collapsible-panel.css +580 -0
  557. package/dist/styles/components/layout/column-track/column-track.css +57 -0
  558. package/dist/styles/components/layout/content-swap/content-swap.css +154 -0
  559. package/dist/styles/components/layout/grid/grid.css +88 -0
  560. package/dist/styles/components/layout/pane/pane.css +382 -0
  561. package/dist/styles/components/layout/resizable-region/resizable-region.css +545 -0
  562. package/dist/styles/components/layout/row/row.css +114 -0
  563. package/dist/styles/components/layout/spacer/spacer.css +11 -0
  564. package/dist/styles/components/layout/split-view/split-view.css +146 -0
  565. package/dist/styles/components/layout/workbench/workbench.css +1086 -0
  566. package/dist/styles/components/media/lucide-icon/lucide-icon.css +15 -0
  567. package/dist/styles/components/navigation/app-tab/app-tab.css +384 -0
  568. package/dist/styles/components/navigation/disclosure-arrow/disclosure-arrow.css +23 -0
  569. package/dist/styles/components/navigation/nav-stack/nav-stack.css +342 -0
  570. package/dist/styles/components/navigation/tab-bar/tab-bar.css +197 -0
  571. package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +325 -0
  572. package/dist/styles/components/surfaces/content-item/content-item.css +138 -0
  573. package/dist/styles/components/surfaces/sunken-panel/sunken-panel.css +31 -0
  574. package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +425 -0
  575. package/dist/styles/components/typography/text/text.css +220 -0
  576. package/dist/styles/composer.css +100 -0
  577. package/dist/styles/content-item.css +138 -0
  578. package/dist/styles/content-swap.css +154 -0
  579. package/dist/styles/corner-status.css +60 -0
  580. package/dist/styles/document.css +98 -0
  581. package/dist/styles/edge-activity-indicator.css +127 -0
  582. package/dist/styles/file-picker.css +81 -0
  583. package/dist/styles/floating-toolbar.css +119 -0
  584. package/dist/styles/foundation.css +261 -45
  585. package/dist/styles/framed-list.css +47 -0
  586. package/dist/styles/grid.css +88 -0
  587. package/dist/styles/icon-button.css +22 -0
  588. package/dist/styles/icon-toggle-button.css +83 -0
  589. package/dist/styles/layout.css +3 -41
  590. package/dist/styles/list-action-row.css +324 -18
  591. package/dist/styles/list-header.css +128 -59
  592. package/dist/styles/list-inset-control.css +30 -0
  593. package/dist/styles/list-inset-text.css +29 -0
  594. package/dist/styles/list-item.css +371 -33
  595. package/dist/styles/list.css +250 -0
  596. package/dist/styles/loading-spinner.css +4 -0
  597. package/dist/styles/lucide-icon.css +9 -0
  598. package/dist/styles/nav-stack.css +280 -49
  599. package/dist/styles/pane.css +382 -0
  600. package/dist/styles/popup-menu.css +370 -0
  601. package/dist/styles/resizable-region.css +438 -4
  602. package/dist/styles/row.css +114 -0
  603. package/dist/styles/segmented-control.css +36 -9
  604. package/dist/styles/select.css +338 -21
  605. package/dist/styles/skeleton.css +64 -3
  606. package/dist/styles/spacer.css +11 -0
  607. package/dist/styles/split-button.css +95 -0
  608. package/dist/styles/split-view.css +114 -3
  609. package/dist/styles/state-banner.css +146 -22
  610. package/dist/styles/styles.css +23 -1
  611. package/dist/styles/summary-row.css +161 -0
  612. package/dist/styles/sunken-panel.css +31 -0
  613. package/dist/styles/surface-scaffold.css +425 -0
  614. package/dist/styles/tab-bar.css +161 -9
  615. package/dist/styles/tab-navigator.css +325 -0
  616. package/dist/styles/text.css +220 -0
  617. package/dist/styles/token-search-field.css +202 -59
  618. package/dist/styles/toolbar-control-group.css +894 -36
  619. package/dist/styles/toolbar-text.css +236 -7
  620. package/dist/styles/toolbar.css +393 -11
  621. package/dist/styles/value-table.css +115 -7
  622. package/dist/styles/webawesome.css +410 -17
  623. package/dist/styles/workbench.css +999 -7
  624. package/dist/summary-row.d.ts +56 -0
  625. package/dist/summary-row.js +4 -0
  626. package/dist/summary-row.js.map +1 -0
  627. package/dist/sunken-panel.d.ts +38 -0
  628. package/dist/sunken-panel.js +4 -0
  629. package/dist/sunken-panel.js.map +1 -0
  630. package/dist/surface-scaffold-register.d.ts +9 -0
  631. package/dist/surface-scaffold-register.js +151 -0
  632. package/dist/surface-scaffold-register.js.map +1 -0
  633. package/dist/surface-scaffold.d.ts +170 -0
  634. package/dist/surface-scaffold.js +4 -0
  635. package/dist/surface-scaffold.js.map +1 -0
  636. package/dist/tab-bar.d.ts +33 -7
  637. package/dist/tab-bar.js +1 -1
  638. package/dist/tab-navigator.d.ts +114 -0
  639. package/dist/tab-navigator.js +102 -0
  640. package/dist/tab-navigator.js.map +1 -0
  641. package/dist/text.d.ts +98 -0
  642. package/dist/text.js +3 -0
  643. package/dist/text.js.map +1 -0
  644. package/dist/token-search-field.d.ts +3 -43
  645. package/dist/token-search-field.js +2 -1
  646. package/dist/token-search-model-aYR0YAei.d.ts +184 -0
  647. package/dist/token-search-model.d.ts +3 -0
  648. package/dist/token-search-model.js +3 -0
  649. package/dist/token-search-model.js.map +1 -0
  650. package/dist/toolbar-control-group.d.ts +96 -7
  651. package/dist/toolbar-control-group.js +3 -1
  652. package/dist/toolbar-text.d.ts +58 -9
  653. package/dist/toolbar-text.js +2 -1
  654. package/dist/toolbar.d.ts +71 -7
  655. package/dist/toolbar.js +1 -1
  656. package/dist/types-CVgIwSdq.d.ts +189 -0
  657. package/dist/value-table.d.ts +30 -4
  658. package/dist/value-table.js +2 -1
  659. package/dist/webawesome.d.ts +8 -1
  660. package/dist/wire-catalog.d.ts +111 -5
  661. package/dist/wire-catalog.js +302 -14
  662. package/dist/wire-catalog.js.map +1 -1
  663. package/dist/wire-comboboxes.d.ts +26 -0
  664. package/dist/wire-comboboxes.js +3 -0
  665. package/dist/wire-comboboxes.js.map +1 -0
  666. package/dist/wire-composers.d.ts +16 -0
  667. package/dist/wire-composers.js +3 -0
  668. package/dist/wire-composers.js.map +1 -0
  669. package/dist/wire-content-items.d.ts +11 -0
  670. package/dist/wire-content-items.js +139 -0
  671. package/dist/wire-content-items.js.map +1 -0
  672. package/dist/wire-corner-status.d.ts +11 -0
  673. package/dist/wire-corner-status.js +3 -0
  674. package/dist/wire-corner-status.js.map +1 -0
  675. package/dist/wire-file-pickers.d.ts +26 -0
  676. package/dist/wire-file-pickers.js +3 -0
  677. package/dist/wire-file-pickers.js.map +1 -0
  678. package/dist/wire-list-focus-scroll.d.ts +16 -0
  679. package/dist/wire-list-focus-scroll.js +3 -0
  680. package/dist/wire-list-focus-scroll.js.map +1 -0
  681. package/dist/wire-list-reorder.d.ts +41 -0
  682. package/dist/wire-list-reorder.js +3 -0
  683. package/dist/wire-list-reorder.js.map +1 -0
  684. package/dist/wire-nav-stack.d.ts +4 -1
  685. package/dist/wire-nav-stack.js +326 -15
  686. package/dist/wire-nav-stack.js.map +1 -1
  687. package/dist/wire-resizable-regions.d.ts +2 -1
  688. package/dist/wire-resizable-regions.js +2 -1
  689. package/dist/wire-scroll-dividers.d.ts +87 -0
  690. package/dist/wire-scroll-dividers.js +3 -0
  691. package/dist/wire-scroll-dividers.js.map +1 -0
  692. package/dist/wire-sidebar.d.ts +24 -4
  693. package/dist/wire-sidebar.js +159 -45
  694. package/dist/wire-sidebar.js.map +1 -1
  695. package/dist/wire-tab-bars.d.ts +6 -2
  696. package/dist/wire-tab-bars.js +1 -1
  697. package/dist/wire-tab-navigator.d.ts +13 -0
  698. package/dist/wire-tab-navigator.js +153 -0
  699. package/dist/wire-tab-navigator.js.map +1 -0
  700. package/dist/wire-token-search-fields.d.ts +28 -10
  701. package/dist/wire-token-search-fields.js +2 -1
  702. package/dist/wire-toolbar-visibility.d.ts +13 -0
  703. package/dist/wire-toolbar-visibility.js +3 -0
  704. package/dist/wire-toolbar-visibility.js.map +1 -0
  705. package/dist/wire-workbench.d.ts +116 -0
  706. package/dist/wire-workbench.js +6 -0
  707. package/dist/wire-workbench.js.map +1 -0
  708. package/dist/workbench.d.ts +253 -10
  709. package/dist/workbench.js +20 -15
  710. package/dist/workbench.js.map +1 -1
  711. package/docs/accessibility.md +640 -33
  712. package/docs/anchored-surface.md +101 -0
  713. package/docs/app-layouts.md +159 -10
  714. package/docs/apple-hig.md +2 -0
  715. package/docs/catalog.md +565 -63
  716. package/docs/collapsible-panel.md +308 -25
  717. package/docs/component-contract.md +816 -53
  718. package/docs/component-integration.md +75 -0
  719. package/docs/component-selection.md +962 -99
  720. package/docs/composer.md +143 -0
  721. package/docs/design/templates/choice-chips/color-palette-dark.svg +1 -0
  722. package/docs/design/templates/choice-chips/color-palette.svg +1 -0
  723. package/docs/design/templates/choice-chips/compact-icons-dark.svg +1 -0
  724. package/docs/design/templates/choice-chips/compact-icons.svg +1 -0
  725. package/docs/design/templates/choice-chips/multiple-dark.svg +1 -0
  726. package/docs/design/templates/choice-chips/multiple.svg +1 -0
  727. package/docs/design/templates/choice-chips-dark.svg +1 -0
  728. package/docs/design/templates/choice-chips.svg +1 -0
  729. package/docs/design/templates/composer/chat-dark.svg +1 -0
  730. package/docs/design/templates/composer/chat.svg +1 -0
  731. package/docs/design/templates/composer/prompt-dark.svg +1 -0
  732. package/docs/design/templates/composer/prompt.svg +1 -0
  733. package/docs/design/templates/composer-dark.svg +1 -0
  734. package/docs/design/templates/composer.svg +1 -0
  735. package/docs/design/templates/empty-state/filtered-dark.svg +1 -0
  736. package/docs/design/templates/empty-state/filtered.svg +1 -0
  737. package/docs/design/templates/empty-state/with-action-dark.svg +1 -0
  738. package/docs/design/templates/empty-state/with-action.svg +1 -0
  739. package/docs/design/templates/empty-state-dark.svg +1 -0
  740. package/docs/design/templates/empty-state.svg +1 -0
  741. package/docs/design/templates/list/compact-dark.svg +1 -0
  742. package/docs/design/templates/list/compact.svg +1 -0
  743. package/docs/design/templates/list/stack-dark.svg +1 -0
  744. package/docs/design/templates/list/stack.svg +1 -0
  745. package/docs/design/templates/list-action-row/default-dark.svg +1 -0
  746. package/docs/design/templates/list-action-row/default.svg +1 -0
  747. package/docs/design/templates/list-action-row/icon-tile-dark.svg +1 -0
  748. package/docs/design/templates/list-action-row/icon-tile.svg +1 -0
  749. package/docs/design/templates/list-action-row/selected-dark.svg +1 -0
  750. package/docs/design/templates/list-action-row/selected.svg +1 -0
  751. package/docs/design/templates/list-action-row/trailing-menu-dark.svg +1 -0
  752. package/docs/design/templates/list-action-row/trailing-menu.svg +1 -0
  753. package/docs/design/templates/list-action-row-dark.svg +1 -0
  754. package/docs/design/templates/list-action-row.svg +1 -0
  755. package/docs/design/templates/list-dark.svg +1 -0
  756. package/docs/design/templates/list-header/action-dark.svg +1 -0
  757. package/docs/design/templates/list-header/action.svg +1 -0
  758. package/docs/design/templates/list-header/count-dark.svg +1 -0
  759. package/docs/design/templates/list-header/count.svg +1 -0
  760. package/docs/design/templates/list-header/inline-action-dark.svg +1 -0
  761. package/docs/design/templates/list-header/inline-action.svg +1 -0
  762. package/docs/design/templates/list-header/size-l-dark.svg +1 -0
  763. package/docs/design/templates/list-header/size-l.svg +1 -0
  764. package/docs/design/templates/list-header/size-m-dark.svg +1 -0
  765. package/docs/design/templates/list-header/size-m.svg +1 -0
  766. package/docs/design/templates/list-header/size-xl-dark.svg +1 -0
  767. package/docs/design/templates/list-header/size-xl.svg +1 -0
  768. package/docs/design/templates/list-header/size-xs-dark.svg +1 -0
  769. package/docs/design/templates/list-header/size-xs.svg +1 -0
  770. package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -0
  771. package/docs/design/templates/list-header/toggle-collapsed.svg +1 -0
  772. package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -0
  773. package/docs/design/templates/list-header/toggle-expanded.svg +1 -0
  774. package/docs/design/templates/list-header-dark.svg +1 -0
  775. package/docs/design/templates/list-header.svg +1 -0
  776. package/docs/design/templates/list-item/default-dark.svg +1 -0
  777. package/docs/design/templates/list-item/default.svg +1 -0
  778. package/docs/design/templates/list-item/icon-tile-dark.svg +1 -0
  779. package/docs/design/templates/list-item/icon-tile.svg +1 -0
  780. package/docs/design/templates/list-item/multiline-dark.svg +1 -0
  781. package/docs/design/templates/list-item/multiline.svg +1 -0
  782. package/docs/design/templates/list-item/selected-dark.svg +1 -0
  783. package/docs/design/templates/list-item/selected.svg +1 -0
  784. package/docs/design/templates/list-item/trailing-dark.svg +1 -0
  785. package/docs/design/templates/list-item/trailing.svg +1 -0
  786. package/docs/design/templates/list-item-dark.svg +1 -0
  787. package/docs/design/templates/list-item.svg +1 -0
  788. package/docs/design/templates/list.svg +1 -0
  789. package/docs/design/templates/segmented-control/equal-dark.svg +1 -0
  790. package/docs/design/templates/segmented-control/equal.svg +1 -0
  791. package/docs/design/templates/segmented-control/pill-small-dark.svg +1 -0
  792. package/docs/design/templates/segmented-control/pill-small.svg +1 -0
  793. package/docs/design/templates/segmented-control-dark.svg +1 -0
  794. package/docs/design/templates/segmented-control.svg +1 -0
  795. package/docs/design/templates/skeleton/avatar-dark.svg +1 -0
  796. package/docs/design/templates/skeleton/avatar.svg +1 -0
  797. package/docs/design/templates/skeleton/block-dark.svg +1 -0
  798. package/docs/design/templates/skeleton/block.svg +1 -0
  799. package/docs/design/templates/skeleton/lines-dark.svg +1 -0
  800. package/docs/design/templates/skeleton/lines.svg +1 -0
  801. package/docs/design/templates/skeleton-dark.svg +1 -0
  802. package/docs/design/templates/skeleton.svg +1 -0
  803. package/docs/design/templates/state-banner/danger-dark.svg +1 -0
  804. package/docs/design/templates/state-banner/danger.svg +1 -0
  805. package/docs/design/templates/state-banner/info-badge-dark.svg +1 -0
  806. package/docs/design/templates/state-banner/info-badge.svg +1 -0
  807. package/docs/design/templates/state-banner/info-dark.svg +1 -0
  808. package/docs/design/templates/state-banner/info.svg +1 -0
  809. package/docs/design/templates/state-banner/strip-dark.svg +1 -0
  810. package/docs/design/templates/state-banner/strip.svg +1 -0
  811. package/docs/design/templates/state-banner/success-dark.svg +1 -0
  812. package/docs/design/templates/state-banner/success.svg +1 -0
  813. package/docs/design/templates/state-banner/warning-dark.svg +1 -0
  814. package/docs/design/templates/state-banner/warning.svg +1 -0
  815. package/docs/design/templates/state-banner-dark.svg +1 -0
  816. package/docs/design/templates/state-banner.svg +1 -0
  817. package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -0
  818. package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -0
  819. package/docs/design/templates/tab-bar-dark.svg +1 -0
  820. package/docs/design/templates/tab-bar.svg +1 -0
  821. package/docs/design/templates/token-search-field/empty-dark.svg +1 -0
  822. package/docs/design/templates/token-search-field/empty.svg +1 -0
  823. package/docs/design/templates/token-search-field/tokens-dark.svg +1 -0
  824. package/docs/design/templates/token-search-field/tokens.svg +1 -0
  825. package/docs/design/templates/token-search-field-dark.svg +1 -0
  826. package/docs/design/templates/token-search-field.svg +1 -0
  827. package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -0
  828. package/docs/design/templates/toolbar/title-and-actions.svg +1 -0
  829. package/docs/design/templates/toolbar/width-visibility-320-dark.svg +1 -0
  830. package/docs/design/templates/toolbar/width-visibility-320.svg +1 -0
  831. package/docs/design/templates/toolbar/width-visibility-600-dark.svg +1 -0
  832. package/docs/design/templates/toolbar/width-visibility-600.svg +1 -0
  833. package/docs/design/templates/toolbar-control-group/borderless-single-dark.svg +1 -1
  834. package/docs/design/templates/toolbar-control-group/borderless-single.svg +1 -1
  835. package/docs/design/templates/toolbar-control-group/icon-buttons-dark.svg +1 -1
  836. package/docs/design/templates/toolbar-control-group/icon-buttons.svg +1 -1
  837. package/docs/design/templates/toolbar-control-group/icon-tile-brand-dark.svg +1 -0
  838. package/docs/design/templates/toolbar-control-group/icon-tile-brand.svg +1 -0
  839. package/docs/design/templates/toolbar-control-group/icon-tile-danger-dark.svg +1 -0
  840. package/docs/design/templates/toolbar-control-group/icon-tile-danger.svg +1 -0
  841. package/docs/design/templates/toolbar-control-group/icon-tile-neutral-dark.svg +1 -0
  842. package/docs/design/templates/toolbar-control-group/icon-tile-neutral.svg +1 -0
  843. package/docs/design/templates/toolbar-control-group/icon-tile-success-dark.svg +1 -0
  844. package/docs/design/templates/toolbar-control-group/icon-tile-success.svg +1 -0
  845. package/docs/design/templates/toolbar-control-group/icon-tile-warning-dark.svg +1 -0
  846. package/docs/design/templates/toolbar-control-group/icon-tile-warning.svg +1 -0
  847. package/docs/design/templates/toolbar-control-group/push-buttons-dark.svg +1 -1
  848. package/docs/design/templates/toolbar-control-group/push-buttons.svg +1 -1
  849. package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -1
  850. package/docs/design/templates/toolbar-control-group/with-text.svg +1 -1
  851. package/docs/design/templates/toolbar-control-group-dark.svg +1 -11
  852. package/docs/design/templates/toolbar-control-group.svg +1 -11
  853. package/docs/design/templates/toolbar-dark.svg +1 -0
  854. package/docs/design/templates/toolbar-text/dark-tone-dark.svg +1 -0
  855. package/docs/design/templates/toolbar-text/dark-tone.svg +1 -0
  856. package/docs/design/templates/toolbar-text/default-dark.svg +1 -0
  857. package/docs/design/templates/toolbar-text/default.svg +1 -0
  858. package/docs/design/templates/toolbar-text/large-dark.svg +1 -0
  859. package/docs/design/templates/toolbar-text/large.svg +1 -0
  860. package/docs/design/templates/toolbar-text/small-dark.svg +1 -0
  861. package/docs/design/templates/toolbar-text/small.svg +1 -0
  862. package/docs/design/templates/toolbar-text-dark.svg +1 -0
  863. package/docs/design/templates/toolbar-text.svg +1 -0
  864. package/docs/design/templates/toolbar.svg +1 -0
  865. package/docs/design/templates/value-table/details-dark.svg +1 -0
  866. package/docs/design/templates/value-table/details.svg +1 -0
  867. package/docs/design/templates/value-table-dark.svg +1 -0
  868. package/docs/design/templates/value-table.svg +1 -0
  869. package/docs/design/templates.md +75 -18
  870. package/docs/design-philosophy.md +65 -20
  871. package/docs/device-class.md +10 -9
  872. package/docs/document-baseline.md +93 -0
  873. package/docs/examples/application-ui-profile.json +60 -0
  874. package/docs/examples/command-palette-adapter.tsx +69 -17
  875. package/docs/examples/component-catalog-extension.json +52 -0
  876. package/docs/examples/component-composition-extension.json +80 -0
  877. package/docs/layout.md +796 -53
  878. package/docs/nav-stack.md +287 -14
  879. package/docs/recipes.md +129 -73
  880. package/docs/split-view.md +96 -7
  881. package/docs/sunken-panel.md +106 -0
  882. package/docs/surface-scaffold.md +270 -0
  883. package/docs/tab-navigator.md +255 -0
  884. package/docs/type-contracts.md +137 -0
  885. package/docs/ui-analyzer.md +406 -0
  886. package/docs/ui-doctor.md +281 -0
  887. package/docs/ui-evaluator.md +139 -0
  888. package/docs/ux-demo.md +48 -17
  889. package/docs/webawesome-theme.md +215 -16
  890. package/docs/workbench.md +627 -12
  891. package/docs/writing.md +152 -0
  892. package/doctor/cli.mjs +120 -0
  893. package/doctor/component-style-checks.mjs +457 -0
  894. package/doctor/config.schema.json +94 -0
  895. package/doctor/copy-capitalization-checks.mjs +591 -0
  896. package/doctor/eslint-diagnostics.d.mts +24 -0
  897. package/doctor/eslint-diagnostics.mjs +24 -0
  898. package/doctor/index.d.mts +122 -0
  899. package/doctor/index.mjs +1424 -0
  900. package/doctor/report.schema.json +118 -0
  901. package/evaluator/cli.mjs +89 -0
  902. package/evaluator/index.d.mts +90 -0
  903. package/evaluator/index.mjs +1203 -0
  904. package/evaluator/report.schema.json +152 -0
  905. package/llms.txt +770 -50
  906. package/package.json +345 -27
  907. package/scripts/component-catalog-extension-validation.mjs +28 -0
  908. package/traversal-exclusions.mjs +86 -0
  909. package/ux-demo/recipes/app-shell.tsx +204 -16
  910. package/ux-demo/recipes/collapsible-sidebar.tsx +206 -45
  911. package/ux-demo/recipes/compact-toolbar.tsx +135 -14
  912. package/ux-demo/recipes/composer-form.tsx +133 -21
  913. package/ux-demo/recipes/list-detail-dialog.tsx +255 -14
  914. package/ux-demo/recipes/list-workspace-states.tsx +183 -11
  915. package/ux-demo/recipes/loaders.ts +9 -3
  916. package/ux-demo/recipes/loading-inspector.tsx +162 -39
  917. package/ux-demo/recipes/mount-recipe.ts +26 -10
  918. package/ux-demo/recipes/navigation-sidebar.tsx +137 -11
  919. package/ux-demo/recipes/navigation-stack.tsx +79 -24
  920. package/ux-demo/recipes/types.ts +17 -2
  921. package/ux-demo/recipes/workspace-header.tsx +86 -5
  922. package/vite-ux-review.d.mts +83 -0
  923. package/vite-ux-review.mjs +120 -0
  924. package/dist/browser/panel-header.js +0 -7
  925. package/dist/chunk-2Z5TWHKQ.js +0 -34
  926. package/dist/chunk-2Z5TWHKQ.js.map +0 -1
  927. package/dist/chunk-37T3VNIZ.js +0 -19
  928. package/dist/chunk-37T3VNIZ.js.map +0 -1
  929. package/dist/chunk-55DATV3A.js +0 -10
  930. package/dist/chunk-55DATV3A.js.map +0 -1
  931. package/dist/chunk-56RJXPHG.js.map +0 -1
  932. package/dist/chunk-7BR3DO2A.js +0 -31
  933. package/dist/chunk-7BR3DO2A.js.map +0 -1
  934. package/dist/chunk-7JB7VPRI.js +0 -34
  935. package/dist/chunk-7JB7VPRI.js.map +0 -1
  936. package/dist/chunk-7LDCTU7D.js +0 -134
  937. package/dist/chunk-7LDCTU7D.js.map +0 -1
  938. package/dist/chunk-AQNKJRFH.js +0 -79
  939. package/dist/chunk-AQNKJRFH.js.map +0 -1
  940. package/dist/chunk-AVZHJN6C.js +0 -14
  941. package/dist/chunk-AVZHJN6C.js.map +0 -1
  942. package/dist/chunk-B24C4A6T.js +0 -22
  943. package/dist/chunk-B24C4A6T.js.map +0 -1
  944. package/dist/chunk-BLK3UEEI.js +0 -23
  945. package/dist/chunk-BLK3UEEI.js.map +0 -1
  946. package/dist/chunk-CVZYNJJ5.js +0 -265
  947. package/dist/chunk-CVZYNJJ5.js.map +0 -1
  948. package/dist/chunk-DAFFDO33.js +0 -14
  949. package/dist/chunk-DAFFDO33.js.map +0 -1
  950. package/dist/chunk-I7INRJO4.js +0 -17
  951. package/dist/chunk-I7INRJO4.js.map +0 -1
  952. package/dist/chunk-L4OKFDJY.js +0 -24
  953. package/dist/chunk-L4OKFDJY.js.map +0 -1
  954. package/dist/chunk-LC3YSAZC.js +0 -39
  955. package/dist/chunk-LC3YSAZC.js.map +0 -1
  956. package/dist/chunk-M5JRI6MN.js +0 -27
  957. package/dist/chunk-M5JRI6MN.js.map +0 -1
  958. package/dist/chunk-MFKMHK5W.js +0 -10
  959. package/dist/chunk-MFKMHK5W.js.map +0 -1
  960. package/dist/chunk-RUNWEPR4.js +0 -10
  961. package/dist/chunk-RUNWEPR4.js.map +0 -1
  962. package/dist/chunk-W2FK7ZNY.js +0 -26
  963. package/dist/chunk-W2FK7ZNY.js.map +0 -1
  964. package/dist/chunk-W5EQ3HYQ.js +0 -42
  965. package/dist/chunk-W5EQ3HYQ.js.map +0 -1
  966. package/dist/chunk-WVPYVDXY.js +0 -15
  967. package/dist/chunk-WVPYVDXY.js.map +0 -1
  968. package/dist/chunk-XXMOARTH.js +0 -229
  969. package/dist/chunk-XXMOARTH.js.map +0 -1
  970. package/dist/chunk-Y5MRDTLC.js +0 -20
  971. package/dist/chunk-Y5MRDTLC.js.map +0 -1
  972. package/dist/chunk-YGN7OMLT.js.map +0 -1
  973. package/dist/panel-header.d.ts +0 -36
  974. package/dist/panel-header.js +0 -7
  975. package/dist/panel-header.js.map +0 -1
  976. package/dist/styles/panel-header.css +0 -64
  977. package/dist/styles/tab-scaffold.css +0 -84
  978. package/dist/tab-scaffold.d.ts +0 -30
  979. package/dist/tab-scaffold.js +0 -16
  980. package/dist/tab-scaffold.js.map +0 -1
  981. package/dist/wire-tab-scaffold.d.ts +0 -11
  982. package/dist/wire-tab-scaffold.js +0 -16
  983. package/dist/wire-tab-scaffold.js.map +0 -1
  984. package/docs/design/templates/panel-header/icon-actions-dark.svg +0 -1
  985. package/docs/design/templates/panel-header/icon-actions.svg +0 -1
  986. package/docs/design/templates/panel-header/icon-summary-actions-dark.svg +0 -1
  987. package/docs/design/templates/panel-header/icon-summary-actions.svg +0 -1
  988. package/docs/design/templates/panel-header/no-icon-dark.svg +0 -1
  989. package/docs/design/templates/panel-header/no-icon.svg +0 -1
  990. package/docs/design/templates/panel-header/page-heading-dark.svg +0 -1
  991. package/docs/design/templates/panel-header/page-heading.svg +0 -1
  992. package/docs/design/templates/panel-header/title-only-dark.svg +0 -1
  993. package/docs/design/templates/panel-header/title-only.svg +0 -1
  994. package/docs/design/templates/panel-header-dark.svg +0 -13
  995. package/docs/design/templates/panel-header.svg +0 -13
  996. package/docs/tab-scaffold.md +0 -41
  997. package/ux-demo/recipes/recipes.css +0 -448
@@ -5,9 +5,9 @@ Use the shipped [`component-catalog.json`](../ai/component-catalog.json) when a
5
5
  tool needs exhaustive structured facts; this page remains the concise human
6
6
  decision procedure.
7
7
 
8
- 1. Search the [Kerf UX catalog](./ux-demo.md) and the supported Web Awesome set.
8
+ 1. Search the [Kerf UX catalog](./ux-demo.md) and the supported Web Awesome set. Prefer a Kerf UI component over a Web Awesome component over a raw HTML tag, using each naturally for what it is good at.
9
9
  2. Reuse a primitive when its purpose, anatomy, state, and interaction match.
10
- 3. Compose primitives for recurring layout. Prefer public props and tokens; when a composition needs a selector, target only classes listed in the catalog's `publicClasses` contract.
10
+ 3. Compose primitives for recurring layout through public props and tokens. Do not select one component from another component's stylesheet.
11
11
  4. Add a thin application adapter for product copy, domain mapping, actions, routing, persistence, permissions, and transport.
12
12
  5. Use custom markup only when the semantic contract differs. If the pattern recurs across products, open an upstream component or recipe request.
13
13
 
@@ -15,38 +15,194 @@ The application adapter is usually a plain function that maps domain state to
15
15
  component props plus stable `data-action` values. It is not a fork of package
16
16
  markup or CSS.
17
17
 
18
- **Don't fight the components.** The package is built to look right unstyled, so
19
- custom CSS is the exception. Before adding `padding`, `margin`, `width`, `height`,
20
- `border`, `background`, a wrapper card, or a decoration, check whether the
21
- component, the pane, or the content-item already owns it — it almost always does,
22
- and adding more usually double-insets or fights it. Trust component defaults and
23
- fix the surrounding layout instead of overriding a control. See
18
+ ## Decision pass before JSX or CSS
19
+
20
+ Make these choices in order for each region, including a region copied from a
21
+ mockup or another application:
22
+
23
+ 1. **Name the job.** What does the person read, choose, edit, or navigate? What
24
+ state and keyboard behavior must survive? Search the Kerf catalog, then the
25
+ consuming application's catalog. Choose by that contract, not by a similar
26
+ silhouette. For example, use `ContentItem` for an owned content surface,
27
+ `List` for vertical rhythm, `Grid` for equal responsive tracks,
28
+ `Toolbar`/`ToolbarText` for a heading with actions, and `PopupMenu` for a
29
+ command menu. `TokenSearchField` is for text plus filter chips; an ordinary
30
+ search input does not gain tokens just to use that component.
31
+ 2. **Reuse, compose, then extend.** If a component already owns the job,
32
+ configure it. If several primitives form the job, compose them and keep
33
+ product data/actions in a thin adapter. Create an application component when
34
+ it owns a repeatable domain contract or genuinely new structure. If the
35
+ missing contract would benefit other applications, file a Kerf component or
36
+ recipe gap. Do not clone a component's markup to make a local variant.
37
+ 3. **Give every element and class a reason.** An element should supply semantic
38
+ meaning, an interaction target, an accessibility relationship, or layout
39
+ that no selected component already owns. Put accepted content directly in
40
+ the component's props/slots; delete wrapper `div`/`span` elements and
41
+ fragments used only for spacing, styling, or satisfying a child type. Add a
42
+ CSS class only for an application-owned selector, not to restyle a Kerf
43
+ root; use stable `data-action` hooks for behavior. Native links, tables,
44
+ and form controls still belong where their native semantics are the right
45
+ contract.
46
+ 4. **Assign geometry once.** Decide which component owns the surface, inset,
47
+ scrollport, and each gap before adding styles. Align neighboring text edges
48
+ and control edges; group related items tightly and separate distinct
49
+ sections with a larger step from the shared scale. Leave useful empty space
50
+ around a short form or sparse state instead of filling it with decorative
51
+ cards, labels, or dividers. Use a public edge-to-edge or inset option where
52
+ available; a negative margin or compensating wrapper is a sign to revisit
53
+ ownership. Check narrow and intermediate widths before choosing fixed
54
+ columns or dimensions.
55
+ 5. **Compare the finished composition.** Inspect it beside adjacent screens
56
+ and the catalog specimen, then in a real browser at wide and narrow widths.
57
+ Check reading order, content edges, wrapping, clipping, whitespace, scroll
58
+ ownership, focus, and active/empty/loading states. Revise the component
59
+ choice or composition when the result needs repeated CSS corrections.
60
+
61
+ The package's defaults are the starting design, not an empty canvas. A custom
62
+ component or rule should explain which missing behavior or structure it owns.
63
+
64
+ Write the copy by the package rule as you choose components: a component's
65
+ naming props (button and menu-item labels, segment and `Select` choices,
66
+ `ToolbarText` titles, `ListHeader` labels, field labels) take title style, and
67
+ its describing props (`description`, `detail`, hints, placeholders, tooltips,
68
+ option text, status) take sentence style. See
69
+ [Writing interface copy](./writing.md#capitalization).
70
+
71
+ **Don't fight the components.** The package is built to look right without an
72
+ application customization layer. Before adding `padding`, `margin`, `width`,
73
+ `height`, `border`, `background`, a wrapper card, or a decoration, check whether
74
+ the component, the pane, or the content-item already owns it — it almost always
75
+ does. Express presentation through props and tokens. Encapsulate genuinely new
76
+ structure in a self-styled application component, and never reach into a nested
77
+ Kerf or Web Awesome component from that stylesheet. See
24
78
  [`design-philosophy.md`](./design-philosophy.md) "Reach for the primitive, not for
25
79
  CSS".
26
80
 
81
+ ### Shared semantic tones
82
+
83
+ `SemanticTone` is the shared color-role type for `Badge`, `Chip`, `StateBanner`,
84
+ and semantic `ContentItem` appearances: `neutral`, `info`, `pop`, `success`,
85
+ `warning`, and `danger`. Import it as a type from `@kerfjs/ui`,
86
+ `@kerfjs/ui/badge`, `@kerfjs/ui/state-banner`, or `@kerfjs/ui/content-item`.
87
+ Use `info` for the role backed by the existing `--kui-color-brand-*` tokens.
88
+ Migrate Badge/Chip `tone="brand"` to `tone="info"`; `BadgeTone` and
89
+ `StateBannerTone` remain deprecated aliases of `SemanticTone`.
90
+
91
+ ## Foundation tokens
92
+
93
+ Import the opt-in `@kerfjs/ui/document.css` baseline when the application wants
94
+ Kerf UI to own global box sizing, body typography/colors, plain-link color, and
95
+ the definite full-height chain. It also lets native table cells and form controls
96
+ inherit the surrounding font metrics without removing table-header emphasis.
97
+ Put `.kui-app-root` on the one direct mount
98
+ container only for a full-height shell; ordinary flowing pages can omit it. See
99
+ [Document baseline](document-baseline.md).
100
+
101
+ Import `@kerfjs/ui/foundation.css` when application-owned composition CSS needs
102
+ the same semantic typography, spacing, device breakpoints, geometry, radii,
103
+ colors, focus ring, or shadows as Kerf components. Its complete supported
104
+ `--kui-*` surface is cataloged by the `foundation` entry; tools may treat that
105
+ entry as the public allowlist rather than inferring stability from CSS text.
106
+ Override these tokens globally for an application theme or on the narrowest
107
+ useful subtree. Prefer a component prop or component-specific token when the
108
+ change belongs to one component or instance, and preserve the documented
109
+ foreground/background contrast relationships and visible focus ring.
110
+
111
+ ### Typed runtime dimensions
112
+
113
+ Use `Row`, `Grid`, or `List` spacing shorthands for repeated sibling spacing: `gap="xs"`,
114
+ `gap="m"`, and the other `UiSpaceName` values resolve to their matching
115
+ `--kui-space-*` token. Use `Spacer` for one deliberate empty width or height, or
116
+ pass `flex` to consume the remaining space along a flex parent's main axis.
117
+ Pass `gap={{ column: 'none', row: 'm' }}` when the axes need different values;
118
+ each axis accepts the same token or complete typed length as the scalar form.
119
+ The canonical rhythm is `none`, `2xs`, `xs`, `m`, and `l`; use `s` and `xl`
120
+ only as deliberate exceptions.
121
+
122
+ When a value cannot be expressed by one spacing step, import the CSS-free
123
+ `@kerfjs/ui/css-values` subpath. `px`, `rem`, `em`, and `pct` create typed
124
+ `CssLength` values; `space` and `lengthVar` reference spacing or
125
+ application-owned length tokens. `plus` creates a non-standalone
126
+ `CssLengthExpression`, so wrap it with `calc` before passing it to a gap prop:
127
+
128
+ ```tsx
129
+ import { calc, pct, plus, rem, space } from "@kerfjs/ui/css-values";
130
+ import { Grid } from "@kerfjs/ui/grid";
131
+ import { List } from "@kerfjs/ui/list";
132
+ import { Row } from "@kerfjs/ui/row";
133
+
134
+ <List gap="xs">...</List>;
135
+ <Grid columns={3} gap="m">...</Grid>;
136
+ <Grid columns={3} gap={{ column: 'none', row: 'm' }}>...</Grid>;
137
+ <Row hAlign="full" vAlign="middle" gap="m">...</Row>;
138
+ <List gap={space("m")}>...</List>;
139
+ <List gap={calc(plus(rem(0.25), pct(10)))}>...</List>;
140
+ ```
141
+
142
+ `CssValue` is the common branded base, not an arbitrary-string constructor.
143
+ For a responsive equal-width form, pass `Grid minColumnWidth={px(376)}` instead
144
+ of `columns`; the Grid's container width decides when the tracks collapse.
145
+ Raw strings such as `"0.25rem"` do not satisfy `Row.gap`, `Grid.gap`, or `List.gap`; this
146
+ contract lands before the 5.0 stable release so misspelled tokens and incomplete
147
+ expressions fail during typechecking rather than in the browser.
148
+
149
+ Other CSS-valued props use distinct contracts: `Spacer.width` and
150
+ `Spacer.height` take `UiSpaceName | CssLength`; `flex()` creates `CssFlex` for
151
+ `Row.flex`, `Grid.flex`, and `List.flex`; `Skeleton` dimensions take typed lengths (plus finite intrinsic
152
+ keywords for width/height); and `SelectChoice.color` takes a
153
+ `CssForegroundColor` from `uiColor()` with a foreground token (`*-on-*`, a text
154
+ role, or a `*-text` alias), from `foregroundColorVar()`, or from `foregroundColor()` via the `foregroundColor` helper for an application-chosen CSS color. `LucideIcon.color` accepts the same foreground type and otherwise inherits surrounding text color. The bare `success`,
155
+ `warning`, `danger`, `pop`, and `accent` tokens are quiet fills, not
156
+ foregrounds, and are rejected there; `colorVar()` returns a plain `CssColor`.
157
+ `LucideIcon` is block-level by default; set `inline` to let it flow inside
158
+ `Text` or other prose without changing its size or accessibility semantics.
159
+ Do not substitute one brand for another. Row components
160
+ have no declaration-string `style` prop; use `className`, documented public
161
+ tokens, and semantic component props. Catalog media queries remain strings and
162
+ semantic pixel measurements remain numbers because those are different APIs.
163
+ The corresponding public builders are `flex`, `uiColor`, `colorVar`, and
164
+ `foregroundColorVar`.
165
+
27
166
  ## Production recipes
28
167
 
29
168
  Use the [complete recipe guide](./recipes.md) when several primitives form one
30
169
  application boundary:
31
170
 
32
- | Task | Stable catalog route |
33
- | --- | --- |
34
- | Desktop application shell | [Catalog](../ux-demo/) · `?component=recipe-app-shell` |
35
- | Navigation sidebar | [Catalog](../ux-demo/) · `?component=recipe-navigation-sidebar` |
36
- | Workspace header | [Catalog](../ux-demo/) · `?component=recipe-workspace-header` |
37
- | List-detail dialog | [Catalog](../ux-demo/) · `?component=recipe-list-detail-dialog` |
38
- | Composer form | [Catalog](../ux-demo/) · `?component=recipe-composer-form` |
39
- | List workspace states | [Catalog](../ux-demo/) · `?component=recipe-list-workspace-states` |
40
- | Compact toolbar choices and actions | [Catalog](../ux-demo/) · `?component=recipe-compact-toolbar` |
41
- | Navigation stack | [Catalog](../ux-demo/) · `?component=recipe-navigation-stack` |
42
- | Loading inspector | [Catalog](../ux-demo/) · `?component=recipe-loading-inspector` |
43
- | Collapsible sidebar | [Catalog](../ux-demo/) · `?component=recipe-collapsible-sidebar` |
171
+ | Task | Stable catalog route |
172
+ | ----------------------------------- | ------------------------------------------------------------------ |
173
+ | Desktop application shell | [Catalog](../ux-demo/) · `?component=recipe-app-shell` |
174
+ | Navigation sidebar | [Catalog](../ux-demo/) · `?component=recipe-navigation-sidebar` |
175
+ | Workspace header | [Catalog](../ux-demo/) · `?component=recipe-workspace-header` |
176
+ | List-detail dialog | [Catalog](../ux-demo/) · `?component=recipe-list-detail-dialog` |
177
+ | Composer form | [Catalog](../ux-demo/) · `?component=recipe-composer-form` |
178
+ | List workspace states | [Catalog](../ux-demo/) · `?component=recipe-list-workspace-states` |
179
+ | Compact toolbar choices and actions | [Catalog](../ux-demo/) · `?component=recipe-compact-toolbar` |
180
+ | Navigation stack | [Catalog](../ux-demo/) · `?component=recipe-navigation-stack` |
181
+ | Loading inspector | [Catalog](../ux-demo/) · `?component=recipe-loading-inspector` |
182
+ | Collapsible sidebar | [Catalog](../ux-demo/) · `?component=recipe-collapsible-sidebar` |
44
183
 
45
184
  Recipes use public production exports and show ownership boundaries; they are
46
185
  copyable reference compositions, not new monolithic components.
47
186
 
187
+ When presenting a component or recipe in a Catalog, use the authoritative
188
+ [Catalog demo authoring contract](./catalog.md#catalog-demo-authoring-contract)
189
+ rather than deriving preview structure from these
190
+ selection entries.
191
+
48
192
  ## Missing recurring concepts
49
193
 
194
+ For arbitrary interactive help or popup content beside a control, use
195
+ [`openAnchoredSurface`](anchored-surface.md) with an accessible label; use
196
+ `openAnchoredSurfaceAt` for pointer coordinates. It owns the Kerf UI surface,
197
+ placement (an 8px viewport gutter, and a height fitted to the room beside the
198
+ anchor with scrolling content), focus, dismissal, and modal-dialog hosting while
199
+ the app owns its content and action policy. Never add media queries or
200
+ `max-height` overrides to make a surface fit a phone. For a popup anchored to
201
+ dark media chrome (a `ToolbarControlGroup tone="dark"` over a preview), pass
202
+ `tone: 'dark'` rather than building an app-owned dark panel: the surface takes
203
+ the group's inverse tone and its content inherits the matching colors. Use
204
+ `PopupMenu` for a typed command list.
205
+
50
206
  Kerf UI does not export a command-palette component. Do not invent a package
51
207
  command-palette import.
52
208
  The typed [application adapter example](./examples/command-palette-adapter.tsx)
@@ -58,97 +214,635 @@ an upstream component or recipe request.
58
214
 
59
215
  ## Problem-to-component matrix
60
216
 
61
- | Interface need | Use when | Do not use when; nearest alternative | Required wiring | Application owns | Import | Recipe |
62
- | --- | --- | --- | --- | --- | --- | --- |
63
- | Icon — `LucideIcon` | A decorative or explicitly labeled Lucide-compatible icon belongs in app UI. | Do not use an icon as the only name of an unfamiliar action; add visible or accessible text. Prefer it over Web Awesome `wa-icon`. | None. | Icon choice and meaningful label. | `@kerfjs/ui/lucide-icon` | [Accessibility](./accessibility.md#shared-rules) |
64
- | Disclosure indicator — `DisclosureArrow` | A control needs one animated 18px root-scaled visual for open and closed state, including configurable directions or a replacement icon. | Do not use it as the interactive control or accessible name; place it inside the button or control that exposes expanded state. | Pass the controlled `open` state, render it inside the owning control, author replacement icon content facing right before transforms, and override `--kui-disclosure-arrow-size` only when another visual size is required. Direction changes use the shortest rotation path, with counterclockwise chosen for a 180-degree closed-to-open tie. | Open state, interaction, accessible name, size override, replacement glyph, direction choices, and shortest-path rotation. | `@kerfjs/ui/disclosure-arrow` | [Component ownership](./component-contract.md#ownership-boundaries) |
65
- | Application toolbar — `Toolbar` | Leading identity, optional centered content, and trailing controls form one horizontal app bar. | Do not use it for a page, panel, or dialog heading; use `PanelHeader`. | Compose `ToolbarText` and `ToolbarControlGroup` where their contracts fit. | Actions, command availability, responsive relocation, and state. | `@kerfjs/ui/toolbar` | [Toolbar composition](../README.md#component-subpaths) |
66
- | Toolbar control cluster — `ToolbarControlGroup` | Related toolbar controls need contained, borderless, pressed, or single-control treatment. | Do not use it merely to align unrelated buttons; use toolbar slots or ordinary layout. Web Awesome `wa-button-group` is only for an exceptional grouped-action contract. | Delegate child actions; use `SegmentedControl` for an exclusive choice. | Actions, pressed/expanded state, and policy. | `@kerfjs/ui/toolbar-control-group` | [Component ownership](./component-contract.md#ownership-boundaries) |
67
- | Toolbar identity text — `ToolbarText` | A toolbar needs extra-large (page/panel title), large, default, or compact textual identity. | Plain text is not a heading by default; when a title needs heading semantics pass `headingLevel` (or prefer `PanelHeader`, which forwards it). | Optional `headingLevel` for `role="heading"` + `aria-level`. | Text, heading level, and responsive priority. | `@kerfjs/ui/toolbar-text` | [Toolbar composition](../README.md#component-subpaths) |
68
- | Navigation row — `ListItem` | A pane or navigation area needs a selectable, disabled, dormant-trailing, or multiline action row. | Do not put a control in `trailing`; use `ListActionRow` when the trailing region must be independently interactive. Use an `<a>` for navigation that must retain link behavior, a native `<button>` for an ordinary action, or implement the complete ARIA menu widget. | Delegate its `data-action`; compose inside a `.kui-content` section. Put domain event/drop metadata in `rootAttributes` rather than adding wrapper markup. | Routing, selection, permissions, copy, action handling, and domain `data-*` values. | `@kerfjs/ui/list-item` | [Pane geometry](../README.md#pane-and-content-geometry) |
69
- | Navigation row with trailing action — `ListActionRow` | A full-width row needs a selectable primary action and an independently focusable trailing action. | Use `ListItem` when trailing content is dormant metadata. Do not put controls inside the row's `label`, `icon`, or `trailingActionIcon` SafeHtml slots. Do not use `AppTab` outside tablist semantics or `ToolbarControlGroup` outside a toolbar. | Delegate both action strings; update controlled selection and any popover/context-menu state in the app. | Routing, selection, both action policies, domain metadata, and popover/context-menu behavior. | `@kerfjs/ui/list-action-row` | [Accessibility](./accessibility.md#listactionrow) |
70
- | Navigation section heading — `ListHeader` | A menu section needs a full-width label, semantic count, non-count badge, logical-end action, or real disclosure state. | Do not concatenate counts into `label` or put numeric content in `badge`; use `count` with the localized full phrase in `countLabel`. Do not add a disclosure arrow to navigation that reveals nothing. Do not shrink its 44px action target to the 18px visual. Do not use it as a page, panel, or dialog title; use `PanelHeader`. | Delegate its optional action; the app controls expanded state and revealed content. Toggle mode supplies `DisclosureArrow` unless `actionIcon` replaces it. Use `triggerAttributes` only for domain `data-*` or a native popover relationship. | Section organization, valid count and localized count label, disclosure state and content, non-count badge content, popover target behavior, and policy. | `@kerfjs/ui/list-header` | [Pane geometry](../README.md#pane-and-content-geometry) |
71
- | Application layout composition | A sidebar, main area, inspector, or dialog needs shared toolbar/content/footer and child geometry. | Do not pad the pane shell, wrap child-owned geometry in competing insets, invent unrelated centered measures, or leave an icon-only rail for a hidden pane. | Use `.kui-pane` and one `.kui-pane__content`; add `.kui-content` and `.kui-content-item` as needed. A visible pane owns collapse in its toolbar; move a hidden inline-start pane's restore control to the main toolbar leading edge and an inline-end pane's restore control to its trailing edge. | Layout hierarchy, reading width, scroll ownership, responsive relocation, and pane visibility state. | `@kerfjs/ui/layout.css` | [Pane anatomy](./layout.md#anatomy) |
72
- | Menu composition | Navigation sections need full-size rows and the same content-item geometry as every other pane. | Do not add sidebar-specific wrapper padding, shrink targets to icon size, nest an interactive trailing control in `ListItem`, or use a chevron on a row that does not disclose content. Use ordinary links for a different navigation contract. | Compose `ListHeader`, `ListItem`, and `ListActionRow` in `.kui-content`; use `ListHeader` toggle mode with real controlled content, and use `.kui-content-item` for other surfaces plus a pane footer for toolbar actions. | Information architecture, disclosure content and state, responsive drawer/shell behavior, and token overrides. | `@kerfjs/ui/layout.css` | [Pane geometry](../README.md#pane-and-content-geometry) |
73
- | Resizable application pane — `ResizableRegion`, `clampRegionSize`, `resizeRegionFromPointer` | A controlled split pane needs the Kerf separator, collapse state, pointer plus keyboard resizing, or a product-specific decorative grip. | Do not use it for a static two-column layout; use CSS grid. Prefer it over Web Awesome `wa-split-panel` unless that component's distinct API is required. Keep `handleIcon` noninteractive. | Call `wireResizableRegions` from `@kerfjs/ui/wire-resizable-regions` once and retain its disposer. | Size signal, min/max policy, collapse policy, persistence, and optional decorative handle icon. | `@kerfjs/ui/resizable-region` | [ResizableRegion contract](./accessibility.md#resizableregion) |
74
- | One application tab — `AppTab` | A controlled app tab needs selection, close, drag, leading/trailing anatomy, safe domain metadata, or a product-specific close glyph. | Do not render it alone or use it for a small settings choice; compose in `TabBar`, or use `SegmentedControl`. Keep `closeIcon` noninteractive. | Compose in `TabBar`; let `wireTabBars` manage interaction. Put only domain `data-*` values in `rootAttributes`. | Tab identity, order, selection, close policy, content, and domain metadata values. | `@kerfjs/ui/app-tab` | [Tabs contract](./accessibility.md#tabs) |
75
- | Application tab strip — `TabBar`, `wireTabBars`, `reorderTabs` | Tabs switch page regions and may overflow, close, or reorder. | Do not use it for a compact local view toggle; use `SegmentedControl`. Do not use it for a long choice list; use `Select`. Prefer it over Web Awesome `wa-tab-group`, `wa-tab`, and `wa-tab-panel` for Kerf app tabs. | Call `wireTabBars` once, retain the disposer, and apply `onReorder` synchronously; `reorderTabs` is the default array helper. | Ordered tabs, selection, panels, routing, closing, and persistence. | `@kerfjs/ui/tab-bar` plus `@kerfjs/ui/wire-tab-bars` | [Tabs contract](./accessibility.md#tabs) |
76
- | Panel, dialog, or page heading — `PanelHeader` | A panel, dialog, or page needs a heading with an extra-large title, an optional icon and subtitle, and trailing actions. | Do not use it as persistent app chrome; use `Toolbar`. It supplies header structure, not modal behavior; use an application overlay or Web Awesome `wa-dialog` for that behavior. | Connect the title id and any provided summary id to the dialog or panel host, pass the trailing controls (typically a `ToolbarControlGroup`), and delegate their actions. **For a page or view title set `headingLevel` (usually `1`)** so the title is a real heading landmark (`role="heading"` + `aria-level`) for screen-reader heading navigation; omit it for a dialog title, which is referenced via `aria-labelledby` to `titleId` and needs no heading. | Open state, focus lifecycle, dismissal, the trailing controls, labels, copy, and the heading level for page use. | `@kerfjs/ui/panel-header` | [Header ownership](./component-contract.md#extracted-versus-application-specific) |
77
- | Key/value facts — `ValueTable`, `ValueTableRow` | Read-only labels and values form a semantic definition list, optionally with a leading icon. | Do not use it for editable form fields or a row/column data grid; use native form or table semantics. | Compose typed `ValueTableRow` entries; pass `icon` when a 24px leading icon adds useful context. | Values, formatting, icon meaning, and empty/loading policy. | `@kerfjs/ui/value-table` | [Component ownership](./component-contract.md#ownership-boundaries) |
78
- | Indeterminate activity — `LoadingSpinner` | A Kerf surface needs compact, labeled or decorative indeterminate progress. | Do not use it for known progress; use Web Awesome `wa-progress-bar` or `wa-progress-ring`. Direct Web Awesome UI may use `wa-spinner`; do not mix spinner systems within one surface. | None; pass a label when the spinner conveys status. | Loading lifecycle and adjacent status copy. | `@kerfjs/ui/loading-spinner` | [Accessibility](./accessibility.md#shared-rules) |
79
- | Loading placeholder — `Skeleton` + a component's `placeholder` prop | A value or a whole component is still loading and should hold its space as a subtle, unanimated block, keeping the layout stable — an inspector or detail view rendering its real chrome with per-record values absent. | Do not use it for known progress (use `LoadingSpinner`), do not animate it, and do not hand-rebuild a component's empty state — set `placeholder` on the component instead. Prefer it over `wa-skeleton`, which the pure-Kerf primitives avoid to stay Web-Awesome-free. | Set `placeholder` on a value-bearing component (`Select`, `ListHeader`, `ListItem`, `ValueTableRow`, `PanelHeader`, `SegmentedControl`, `StateBanner`, `AppTab`, `ToolbarText`, `ListActionRow`) to render skeletons in its value slots with interactivity disabled; use the standalone `Skeleton` for a custom slot. | Loading lifecycle, which slots are unknown, and announcing the loading region. | `@kerfjs/ui/skeleton` | [Accessibility](./accessibility.md#shared-rules) |
80
- | Value selection — `Select` | A controlled form value comes from a moderate or long choice list, possibly grouped or icon-bearing. | Do not use it for commands; use a real action menu. Do not use it for a small visible choice set; use `SegmentedControl`. Prefer it over direct `wa-select`, `wa-option`, or value-like `wa-dropdown`/`wa-dropdown-item` composition. | Import `@kerfjs/ui/select/register` once; listen for standard input/change events. | Controlled value, validation, choices, and domain mapping. | `@kerfjs/ui/select` | [Web Awesome integration](../README.md#web-awesome-theme) |
81
- | Small exclusive choice — `SegmentedControl` | A few visible choices switch a compact view or setting, with toolbar, rounded, or pill presentation. | Do not use it for tabpanel semantics; use `TabBar`. Do not use it for many choices; use `Select`. Prefer it over `wa-button-group` when the controls select one value. | Delegate its action, read `data-segment-value`, update `value`, and rerender. | Controlled value, labels, action, and persistence. | `@kerfjs/ui/segmented-control` | [SegmentedControl contract](./accessibility.md#segmentedcontrol) |
82
- | Structured search editor — `TokenSearchField`, `readTokenSearchField`, `placeTokenSearchCaret`, `wireTokenSearchFields` | Free text and ordered, editable, removable filter tokens share one searchbox; enable `collapsible` when an empty, unfocused field should reduce to one iconic action, standalone or in a toolbar group. | Do not use it for ordinary text entry; use a native input or Web Awesome `wa-input`. Do not use it when filters belong in separate form controls. | Read DOM-owned text on input, empty `textContent` on clear, and use `placeTokenSearchCaret` after explicit controlled focus changes. Call `wireTokenSearchFields` from `@kerfjs/ui/wire-token-search-fields` once so Enter submits without adding a line break and keyboard chip deletion restores focus plus the text-relative caret after controlled replacement. In `collapsible` mode it also 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 signal on the returned handle (`handle.expanded(id)`) or adopt your own via `collapsible.signals`, and opt out per behavior only when the app must own it. | Parsing, suggestions, tokens, query execution, results, announcements, and — only if overriding the default — the collapsible `expanded` signal. | `@kerfjs/ui/token-search-field` | [TokenSearchField contract](./accessibility.md#tokensearchfield) |
83
- | Persistent inline status — `StateBanner` | A neutral, info, success, warning, or danger message belongs next to the affected work. | Do not use it for a no-content screen; use `EmptyState`. Do not use it for transient confirmation; use a toast. Web Awesome `wa-callout` is the ecosystem alternative for Web Awesome-owned content. | Delegate an optional action; choose alert urgency only for attention-requiring failure. | State mapping, message lifetime, retry/action behavior, and copy. | `@kerfjs/ui/state-banner` | [Feedback accessibility](./accessibility.md#shared-rules) |
84
- | Empty or busy content area — `EmptyState` | A content region has no items, cannot proceed, or is loading and needs explanation plus an optional action. | Do not use it for an inline status update; use `StateBanner`. Do not use it for transient success; use `wa-toast`/`wa-toast-item` or the application's toast system. | Delegate its optional action; it composes `LoadingSpinner` when busy. | Empty/busy policy, recovery action, illustration, and copy. | `@kerfjs/ui/empty-state` | [Feedback ownership](./component-contract.md#extracted-versus-application-specific) |
217
+ For a read-only or click-to-edit field preview, use `FieldLabel` from
218
+ `@kerfjs/ui/text` above the preview instead of a `ListHeader`. It matches the
219
+ themed Web Awesome form-control label. Put it in `ListInsetControl sides="trl"`
220
+ beside a `ContentItem` value, and connect its id to the preview group's
221
+ `aria-labelledby`; see [Field labels](./layout.md#text).
222
+
223
+ | Interface need | Use when | Do not use when; nearest alternative | Required wiring | Application owns | Import | Recipe |
224
+ | ----------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
225
+ | Icon — `LucideIcon` | A decorative or explicitly labeled Lucide-compatible icon belongs in app UI. | Do not use an icon as the only name of an unfamiliar action; add visible or accessible text. Prefer it over Web Awesome `wa-icon`. | None. | Icon choice and meaningful label. | `@kerfjs/ui/lucide-icon` | [Accessibility](./accessibility.md#shared-rules) |
226
+ | Compact metadata — `Badge` | A short status, count, category, or metadata label needs self-owned visual treatment configured by semantic props. | Do not use it as a button, link, or removable chip. Do not restyle consuming-component descendants to create a badge. | Choose `tone`, `appearance`, `shape`, and `size`; supply `label` for abbreviated content or `ariaHidden` when a surrounding component already owns the same accessible text. For new content without a count use the text-free `size="dot"`, which requires `label` or `ariaHidden`. Set `maxWidth` to truncate long app-supplied text with an ellipsis and a hover `title`. | Metadata text, semantic tone mapping, and abbreviated-content labeling. | `@kerfjs/ui/badge` | [Component ownership](./component-contract.md#ownership-boundaries) |
227
+ | Disclosure indicator — `DisclosureArrow` | A control needs one animated 18px root-scaled visual for open and closed state, including configurable directions or a replacement icon. | Do not use it as the interactive control or accessible name; place it inside the button or control that exposes expanded state. | Pass the controlled `open` state, render it inside the owning control, author replacement icon content facing right before transforms, and override `--kui-disclosure-arrow-size` only when another visual size is required. Direction changes use the shortest rotation path, with counterclockwise chosen for a 180-degree closed-to-open tie. | Open state, interaction, accessible name, size override, replacement glyph, direction choices, and shortest-path rotation. | `@kerfjs/ui/disclosure-arrow` | [Component ownership](./component-contract.md#ownership-boundaries) |
228
+ | Application toolbar or heading — `Toolbar` | Leading identity, optional centered content, and trailing controls form one horizontal app bar or a page/panel/dialog heading. | Do not add bespoke heading geometry or a private wrapper; use the same zone contract everywhere. | Put identity/title text directly in a zone as `ToolbarText`; group controls and icon tiles in `ToolbarControlGroup`. | Actions, command availability, responsive relocation, state, and supporting copy below a heading. | `@kerfjs/ui/toolbar` | [Toolbar composition](../README.md#component-subpaths) |
229
+ | Toolbar control cluster — `ToolbarControlGroup`, `ToolbarActionLink` | Related toolbar buttons, semantic links, compact/tight controls, avatar actions, or a dropdown trigger/menu surface need one configured chrome contract. | Do not use it merely to align unrelated controls. Do not restyle anchors or dropdown parts in application CSS; use `ToolbarActionLink`, `overflow`, and `menuInset`. Web Awesome `wa-button-group` is only for an exceptional grouped-action contract. | Delegate child actions; use `ToolbarActionLink` for native navigation, `overflow="scroll"` for bounded action rows, and `menuInset` for dropdown surface padding. Use `avatarImage` instead of inserting an `img`; use `SegmentedControl` for an exclusive choice. | Actions, destinations, pressed/expanded state, content, and policy. | `@kerfjs/ui/toolbar-control-group` | [Component ownership](./component-contract.md#ownership-boundaries) |
230
+ | Floating controls over content — `FloatingToolbar` | A small cluster of controls (e.g. a drawer restore) must float over scrolling content — distinct and forced-dark — inside a positioned container. | Do not use it for a primary page or panel toolbar (use `Toolbar`), or for anything that must sit above dialogs/overlays — it is not top-layer. | Compose `ToolbarControlGroup`s and delegate their actions; the app owns visibility and position. | Controls, visibility, and position. | `@kerfjs/ui/floating-toolbar` | [Component subpaths](../README.md#component-subpaths) |
231
+ | Toolbar identity text — `ToolbarText` | A toolbar needs extra-large (page/panel title), large, default, or compact textual identity. | Plain text is not a heading by default; when a title needs heading semantics pass `headingLevel`. Sizes below `xlarge` are intentionally quiet identity text in default tone — do not use them as a normal-color subsection title; use `Text` with an `h2`–`h6` variant, or `ListHeader` for a list section. | Optional `headingLevel` for `role="heading"` + `aria-level`. Defaults to one line, ellipsized when it does not fit; `wrap` flows onto multiple lines, `ellipsis` toggles the trailing …, and `maxLines` caps a wrap. | Text, heading level, overflow behavior, and responsive priority. | `@kerfjs/ui/toolbar-text` | [Toolbar composition](../README.md#component-subpaths) |
232
+ | Semantic block or inline text — `Text` | Ordinary application copy needs native `h1`–`h6` or `p` semantics plus standard geometry, or inline secondary copy needs a native `span` without box geometry. | Do not choose heading levels for appearance alone or recreate muted, error, small, or code utility classes. Use `ToolbarText` for toolbar identity/title content and `ListInsetText` when list-aligned prose needs full margin/border/padding geometry. | Omit `variant` for the default `p`, choose `h1`–`h6` from the document outline, or choose `span` inside a row, label, or table cell. Independently compose `tone="quiet | danger"`, `size="compact"`, and `font="monospace"`; ordinary native global, `data-_`, and `aria-_` attributes pass through. | Copy, localization, semantic variant, presentation roles, and document heading hierarchy. | `@kerfjs/ui/text` | [Text](./layout.md#text) |
233
+ | Vertical stack — `List` | Rows, sections, or arbitrary components need a consistent vertical stretch layout, optional standard/custom gap, flex growth, one vertical scroll owner, or edge dividers. | It is layout-only and does not provide `ul`/`ol` semantics. Do not nest scroll owners or use it when a horizontal layout is required. | Choose `gap`, `flex`, `scrollable`, and canonical `dividerSides` (`t`, `r`, `b`, `l` combinations in that order); bound the block size when scrolling. | Child semantics/content, containing height, and which optional layout behaviors apply. | `@kerfjs/ui/list` | [Pane geometry](../README.md#pane-and-content-geometry) |
234
+ | Equal-width columns — `Grid` | Equal-width sibling columns need a fixed count or should collapse as their container narrows, while preserving equal tracks despite intrinsic child widths. | Do not use it for intrinsic, asymmetric, spanning, or masonry tracks; use application-owned CSS grid. Do not use it for a user-operable separator; use `ResizableRegion`. | Choose fixed `columns` or typed `minColumnWidth`, plus typed `gap`, optional `flex`, and physical-side `textInsets` / `controlInsets` when the track group needs a standard text or control inset; text wins on overlap. | Child semantics/content, outer width, fixed count or minimum width, and typed gap/flex/inset choices. | `@kerfjs/ui/grid` | [Grid](./layout.md#grid) |
235
+ | Board of columns — `ColumnTrack` | A board shows parallel columns (kanban lanes) that must keep a readable width and scroll sideways, or page one at a time on a phone. | Do not use it for a wrapping responsive grid; use `Grid`. Do not use it for two resizable panes; use `SplitView`. Do not re-track a `Grid` from app CSS. | Pass columns as children (each owns its inset and vertical scroll); set `minColumnWidth` (default 250px) or `layout="paged"` with an optional `peek` for phones. Name it with `rootAttributes`. | Columns, their content, the layout choice per device, and drag and drop. | `@kerfjs/ui/column-track` | [Feedback accessibility](./accessibility.md#shared-rules) |
236
+ | Two contents swapped in place — `ContentSwap` | A region swaps between two contents in place, such as a dialog's two steps or a footer's changing actions, and the change should read as motion. | Do not use it for full views with toolbars; use `NavStack`. Do not hand-roll stacked cells, inert handling, or push keyframes. | Set `active` to `a` or `b`, `transition` (`push`, `crossfade`, `none`) and the push `direction`; pass `label` to name it and `slot`/`fill` for a dialog label or footer. | The active side, the direction, both contents, and the region name. | `@kerfjs/ui/content-swap` | [Feedback accessibility](./accessibility.md#shared-rules) |
237
+ | Navigation row — `ListItem` | A pane or navigation area needs a selectable, disabled, dormant-trailing, or multiline action row. | Do not put a control in `trailing`; use `ListActionRow` when the trailing region must be independently interactive. Use an `<a>` for navigation that must retain link behavior, a native `<button>` for an ordinary action, or implement the complete ARIA menu widget. | Delegate its `data-action`; compose inside a `.kui-content` section. Put domain event/drop metadata in `rootAttributes` rather than adding wrapper markup. The rounded root clips overflowing descendants; set `multiline` when the primary label should wrap. | Routing, selection, permissions, copy, action handling, and domain `data-*` values. | `@kerfjs/ui/list-item` | [Pane geometry](../README.md#pane-and-content-geometry) |
238
+ | Navigation row with trailing action — `ListActionRow` | A full-width row needs a selectable primary action and an independently focusable trailing action. | Use `ListItem` when trailing content is dormant metadata. Do not put controls inside the row's `label`, `icon`, or `trailingActionIcon` SafeHtml slots. Do not use `AppTab` outside tablist semantics or `ToolbarControlGroup` outside a toolbar. | Delegate both action strings; update controlled selection and any popover/context-menu state in the app. | Routing, selection, both action policies, domain metadata, and popover/context-menu behavior. | `@kerfjs/ui/list-action-row` | [Accessibility](./accessibility.md#listactionrow) |
239
+ | Navigation section heading — `ListHeader` | A menu section needs a full-width label, semantic count, non-count badge, logical-end action, or real disclosure state. | Do not concatenate counts into `label` or put numeric content in `badge`; use `count` with the localized full phrase in `countLabel`. Do not add a disclosure arrow to navigation that reveals nothing. Keep its 44px hit target; do not resize its 36px square. Do not use it as a page, panel, or dialog title; use a heading `Toolbar`. | Delegate its optional action; the app controls expanded state and revealed content. Toggle mode supplies `DisclosureArrow` unless `actionIcon` replaces it. Use `triggerAttributes` only for domain `data-*` or a native popover relationship. | Section organization, valid count and localized count label, disclosure state and content, non-count badge content, popover target behavior, and policy. | `@kerfjs/ui/list-header` | [Pane geometry](../README.md#pane-and-content-geometry) |
240
+ | Inset self-bordered control — `ListInsetControl` | A control that owns its own border and padding but no outer margin (a search input, a `SegmentedControl`) must line up inside a `.kui-content` list with the standard 8px inline margins and stretch to fill the row. | Do not wrap a `.kui-content-item` or a `ListItem`/`ListHeader` that already owns its inline margin — that double-insets it. Do not add ad-hoc `margin`/`padding` around a bare control to align it; use this instead. | Place the self-bordered control(s) as children; they stretch to fill. It applies only the inline margin, flex stretch, and 8px gap — the child owns its own border and padding. | The control(s), their state, and action wiring. | `@kerfjs/ui/list-inset-control` | [Pane geometry](../README.md#component-subpaths) |
241
+ | Inset bare text — `ListInsetText` | A plain string or inline content with no margin, border, or padding of its own must sit in a `.kui-content` list with its text edge aligned to the bordered items around it. | Do not use it to wrap a component that already owns content-item geometry (`ListItem`, `StateBanner`, a `.kui-content-item`) — that double-insets it. Do not hand-roll the 8px margin / 1px border / 8px padding. | Pass the text or inline `SafeHtml` as children; it supplies the 8px inline margin, 1px transparent border, and 8px padding so the text edge lands at the standard 17px inset. Pass `sides="rl"` to keep that horizontal inset but drop the vertical margin, border, and padding for tight text layout. | The text, copy, and localization. | `@kerfjs/ui/list-inset-text` | [Pane geometry](../README.md#component-subpaths) |
242
+ | Self-contained content child — `ContentItem` | An ordinary surface-like child of a `Pane` or `.kui-content` stack needs the shared 8px margin / 1px border / 8px padding geometry; pass `frame="framed"` only when it marks a real distinction, `appearance="surface"` or a semantic appearance for coordinated surface colors, and `shape="pill"` for the 22px radius. | Do not wrap a component that already owns content-item geometry (`ListItem`, `ListHeader`, `StateBanner`, `Toolbar`, `ValueTable`) or pad around it — that double-insets. Do not frame an item only to make it look contained. Use `SunkenPanel` for a lowered inset stack and `ListInsetText` for bare text that only needs to align. | Pass the item content as children; choose `appearance` (`transparent` default, `surface`, or a semantic status), `frame`, and `shape` instead of writing CSS. Put safe `data-*` metadata in `rootAttributes`; `ariaLabel` names a distinct region and `focusTarget` makes it a programmatic focus target. | The content, surface or status appearance, and whether it marks a distinction worth a visible frame. | `@kerfjs/ui/content-item` | [Content items](./layout.md#content-items) |
243
+ | Application column — `Pane` | A sidebar, main area, inspector, or dialog needs shared vertical header/content/footer organization, one scroll owner, and optional edge separators. | Do not pad the pane shell, wrap child-owned geometry in competing insets, invent unrelated centered measures, or leave an icon-only rail for a hidden pane. | Import `Pane`, use `children` for its homogeneous primary content and the named `SafeHtml` prop slots `header`/`footer` for optional fixed chrome, then opt into only the needed logical-edge separators; add `ContentItem` children as needed. A visible pane owns collapse in its toolbar; move a hidden inline-start pane's restore control to the main toolbar leading edge and an inline-end pane's restore control to its trailing edge. | Layout hierarchy, reading width, responsive relocation, pane visibility state, slot semantics, labels, and separator placement. | `@kerfjs/ui/pane` | [Pane anatomy](./layout.md#anatomy) |
244
+ | Scroll dividers — `wireScrollDividers` | Pinned chrome (a `Pane` header or footer, a `NavStack` top chrome or bottom toolbar, a `TabNavigator` bar, the sides of a `TabBar` strip, or app-owned chrome around a scroller) needs a divider only while content is scrolled away beneath it. | Do not keep a static toolbar divider to fake it or write a border onto another component; each component draws its own line from the wiring's state. | Call `wireScrollDividers` once at the app root and retain the disposer; it covers every `Pane`, `NavStack`, `TabNavigator`, and `TabBar` below it. Name app-owned arrangements in `targets` by id; a `Toolbar` or `List` named as chrome draws its facing side. Configure a pane with `chromeDividers` (`scroll` default, `always`, `none`). | Which panes follow the scroll, app-owned targets, and the disposer. | `@kerfjs/ui/wire-scroll-dividers` | [Scroll dividers](./layout.md#scroll-dividers) |
245
+ | Keyboard focus scroll in scrollable Lists — `wireListFocusScroll` | Rows of a `scrollable` List are reached by keyboard (Tab, or the app's own arrow-key focus moves) and must come fully into view, focus ring included, in Firefox and Safari too: their `focus()` leaves a partly hidden row clipped. | Do not call `scrollIntoView` from app focus handlers or style the List; do not wire it for pointer-only lists. | Call `wireListFocusScroll(root)` once at the app root and retain the disposer. On keyboard (`:focus-visible`) focus inside a `scrollable` List it scrolls the focused element into view only when its ring crosses the clip; pointer focus is left alone. | The disposer. | `@kerfjs/ui/wire-list-focus-scroll` | [Framed result pickers](./layout.md#framed-result-pickers) |
246
+ | One-pane navigation — `NavStack` | A compact flow pushes into details while keeping earlier views mounted, or a single-pane screen needs the same stable layout contract. | Do not use it when list and detail should remain visible together; use `SplitView`. Do not use it alone for co-equal top-level destinations; use one stack per `TabNavigator` tab. | Keep the ordered view array controlled, put view-specific bottom chrome on each view (or use the component fallback), import its CSS explicitly, and call `wireNavStack` for back delegation, content-slide/chrome-cross-fade transitions, and focus move/restore. Mark a preferred initial target with `data-nav-focus` when DOM order is insufficient. | View keys/content/titles, push and pop actions, preferred initial focus targets, and per-view or persistent bottom toolbar content. | `@kerfjs/ui/nav-stack` | [App-layout decision matrix](./app-layouts.md#decision-matrix) |
247
+ | Responsive list-detail — `SplitView` | A primary list and related detail belong together on roomy devices but become a one-pane drill-down on compact devices. | Do not use it for a single linear flow or a multi-panel editor shell. | Provide controlled selection/detail state and device class; opt into resize wiring only when the separator is user adjustable. | Selection, detail content, compact back action, device policy, and optional persisted width. | `@kerfjs/ui/split-view` | [App-layout decision matrix](./app-layouts.md#decision-matrix) |
248
+ | Compact top-level destinations — `TabNavigator` | A handset or portrait-tablet app has two to five co-equal destinations whose scenes and nested navigation must remain mounted across switches. | Do not use it for document tabs, reorderable work items, or a desktop navigation rail. | Keep the active id controlled, import its CSS explicitly, and call `wireTabNavigator`; commonly place one `NavStack` in each tab scene. | Destination definitions, active id, routing, persistence, and roomy-device replacement. | `@kerfjs/ui/tab-navigator` | [App-layout decision matrix](./app-layouts.md#decision-matrix) |
249
+ | Desktop multi-panel workspace — `Workbench` | A desktop-class tool needs a central work area plus independently collapsible navigator, inspector, or console regions. | Do not shrink the full shell onto compact devices or use it for one standalone panel. | Render only the required rails/drawer, keep collapse state controlled, and replace peripheral regions with stacks or overlays below desktop sizes. Opt a panel into drag/keyboard resizing with `resizable` and call `wireWorkbench` with its size signal. | Panel presence/content, collapsed states, sizes, persistence, responsive replacement, and controls. | `@kerfjs/ui/workbench` | [Workbench](./workbench.md) |
250
+ | Standalone rail or drawer — `CollapsiblePanel` | One left/right rail or bottom drawer needs controlled collapse without adopting the complete `Workbench` shell. | Do not use it for several coordinated workspace panels or retain an empty icon-only rail while collapsed. | Pair it with `CollapsiblePanelToggle`; call `wireSidebar` for focus transfer, Escape/backdrop dismissal, compact overlay trapping, and persistence integration. | Panel content/size, collapsed state, toggle placement, persistence, and compact policy. | `@kerfjs/ui/collapsible-panel` | [App-layout decision matrix](./app-layouts.md#decision-matrix) |
251
+ | Lowered content surface — `SunkenPanel` | A main work area or nested content group needs one visually lowered surface with a compact inset and vertical stack. | Do not use it merely to add padding, as a replacement for `Pane` anatomy, or around children that already own the same outer surface. | Compose the application-owned content as children, choose the default `rounded` shape or `square` for a flush edge-to-edge area, and pass `ariaLabel` only when the surface is a distinct named region. Every sunken surface carries a fine grain texture, generated once per page by the first one that renders; call `ensureSunkenTexture` only when the page paints Web Awesome `appearance="sunken"` without any Kerf sunken component, and set `--kui-sunken-texture: none` at `:root` for a flat surface. | Region semantics, accessible name, shape, scroll ownership, child ordering, and content. | `@kerfjs/ui/sunken-panel` | [SunkenPanel](./sunken-panel.md) |
252
+ | Menu composition | Navigation sections need full-size rows and the same content-item geometry as every other pane. | Do not add sidebar-specific wrapper padding, shrink targets to icon size, nest an interactive trailing control in `ListItem`, or use a chevron on a row that does not disclose content. Use ordinary links for a different navigation contract. | Compose `ListHeader`, `ListItem`, and `ListActionRow` in `.kui-content`; use `ListHeader` toggle mode with real controlled content, and use `ContentItem` for other surfaces plus a pane footer for toolbar actions. | Information architecture, disclosure content and state, responsive drawer/shell behavior, and token overrides. | `@kerfjs/ui/layout.css` | [Pane geometry](../README.md#pane-and-content-geometry) |
253
+ | Resizable application pane — `ResizableRegion`, `clampRegionSize`, `resizeRegionFromPointer` | A controlled split pane needs the Kerf separator, collapse state, pointer plus keyboard resizing, or a product-specific decorative grip. | Do not use it for static equal columns; use `Grid`. Use application CSS grid for static asymmetric or intrinsic tracks. Prefer it over Web Awesome `wa-split-panel` unless that component's distinct API is required. Keep `handleIcon` noninteractive. | Call `wireResizableRegions` from `@kerfjs/ui/wire-resizable-regions` once and retain its disposer. | Size signal, min/max policy, collapse policy, persistence, and optional decorative handle icon. | `@kerfjs/ui/resizable-region` | [ResizableRegion contract](./accessibility.md#resizableregion) |
254
+ | One application tab — `AppTab` | A controlled app tab needs selection, close, drag, leading/trailing anatomy, compact/segmented/icon-only presentation, label truncation, safe domain metadata, or a product-specific close glyph. | Do not render it alone or use it for a small settings choice; compose in `TabBar`, or use `SegmentedControl`. Keep `closeIcon` noninteractive. | Compose in `TabBar`; let `wireTabBars` manage interaction. Put only domain `data-*` values in `rootAttributes`; use typed appearance props instead of descendant CSS. | Tab identity, order, selection, close policy, content, domain metadata values, and outer placement. | `@kerfjs/ui/app-tab` | [Tabs contract](./accessibility.md#tabs) |
255
+ | Application tab strip — `TabBar`, `wireTabBars`, `reorderTabs` | Tabs switch page regions and may overflow, close, reorder, fill a segmented inspector strip, sit beside a trailing action, or keep that adjacent action distinct from a far-edge end action. | Do not use it for a compact local view toggle; use `SegmentedControl`. Do not use it for a long choice list; use `Select`. Prefer it over Web Awesome `wa-tab-group`, `wa-tab`, and `wa-tab-panel` for Kerf app tabs. | Call `wireTabBars` once, retain the disposer, and apply `onReorder` synchronously; `reorderTabs` is the default array helper. Combine `trailingPlacement="adjacent"` with `end` for split actions; TabBar owns the shrinking/scrolling tab geometry and keeps both actions visible. Choose typed presentation/allocation props while the parent owns outer placement. | Ordered tabs, selection, panels, routing, closing, persistence, action content, and outer placement. | `@kerfjs/ui/tab-bar` plus `@kerfjs/ui/wire-tab-bars` | [Tabs contract](./accessibility.md#tabs) |
256
+ | Panel, dialog, or page heading — `Toolbar` + `ToolbarText` | A panel, dialog, or page needs an extra-large title, optional icon, grouped trailing actions, and optional supporting copy. | Do not add a private heading wrapper or bespoke layout. The toolbar supplies structure, not modal behavior; use an application overlay or Web Awesome `wa-dialog` for that behavior. In a narrow peripheral rail or drawer, where xlarge would truncate at the panel's minimum size, use the default `ToolbarText` size as pane identity. | Connect title/supporting-copy ids to the host, group controls, and delegate actions. **For a page or view title set `headingLevel` (usually `1`)** on `ToolbarText`; omit it for a dialog title referenced by `aria-labelledby`. | Open state, focus lifecycle, dismissal, controls, ids, copy, and heading level. | `@kerfjs/ui/toolbar` + `@kerfjs/ui/toolbar-text` | [Toolbar headings](./accessibility.md#toolbar-headings) |
257
+ | Dialog or popup geometry — `DialogSurface`, `PopoverDialogSurface`, `PopupSurface` | Recurring Web Awesome dialogs need standard sizes/presentations/body/footer insets, typed modal viewport bounds, a definite height, or a body one child fills; a dialog must stay non-modal and light-dismiss; or dropdown menus need list-compatible inset ownership. | Do not use these wrappers as generic layout or to replace native dialog/dropdown behavior. Avoid consumer `::part()` overrides and do not stack a dialog body inset around list-owned child geometry. | Wrap one `wa-dialog` or `wa-dropdown`; choose the typed geometry while retaining native labeling, open state, focus, dismissal, and menu semantics. Compose a dialog body as a `List` by default, use `bodyInset="none"` when its children own list geometry, and wrap bare prose in `ListInsetText`. Set `height` with `bodyLayout="fill"` when one `SplitView` or `Pane` should fill the body. For a non-modal, light-dismiss dialog render `PopoverDialogSurface` (native `popover="auto"`, opened by a `popoverTarget` control or `showPopover()`), never a hand-built popover with app chrome CSS; `presentation="embedded"` shows it in flow. | State, focus lifecycle, dismissal, labels, content, and outer placement. | `@kerfjs/ui/surface-scaffold` | [Surface scaffolds](./surface-scaffold.md) |
258
+ | Key/value facts — `ValueTable`, `ValueTableRow` | Read-only labels and values form a semantic definition list, optionally with a leading icon. | Do not use it for editable form fields or a row/column data grid; use native form or table semantics. | Compose typed `ValueTableRow` entries; pass `icon` when a 24px leading icon adds useful context. Set `labelWidth` for a minimum label column, `presentation="stacked"` to put each value under its label, or `stackBelow` (`compact` 512px, `narrow` 576px) to stack only while the table is that narrow; never override `--kui-value-table-row-columns` for these. | Values, formatting, icon meaning, and empty/loading policy. | `@kerfjs/ui/value-table` | [Component ownership](./component-contract.md#ownership-boundaries) |
259
+ | Framed rows of arbitrary content — `FramedList`, `FramedListRow` | Settings rows, account or source cards, or a shortcut list group several rows of copy and controls in one rounded frame with dividers between them. | Do not use it for read-only label/value facts; use `ValueTable`. Do not use it for selectable navigation rows or a bounded result picker; use `List` with `ListItem` (a picker adds `frame`, `scrollable`, and `maxHeight`). Do not pad or border rows from application CSS. | Compose any row content (a `Row` of copy, a keycap, `IconButton`s) in each `FramedListRow`; mark the row being edited `highlighted`. Name the list with `label` when no heading does. | Row content, controls, which row is highlighted, and the list's name. | `@kerfjs/ui/framed-list` | [Feedback accessibility](./accessibility.md#shared-rules) |
260
+ | Selectable item summaries — `SummaryRow` | A list or board shows many items as dense, selectable summaries: an identifier and title, a timestamp, and a metadata line (tickets, tasks). | Do not use it for navigation rows; use `ListItem`. Do not use it for free-form selectable tiles; use `ContentItem`. Do not hand-roll row chrome. | Pass `title`, optional `leading`, `trailingMeta`, and `metadata`; choose `presentation` (`row` or `card`), `rail`, `selected`, `dimmed`, `listEdge`, and `titleLines`. Put rows in a labeled `role="listbox"` and own selection and arrow-key focus in the app. | The listbox, selection, keyboard movement, content, rail tone, and dimming. | `@kerfjs/ui/summary-row` | [Feedback accessibility](./accessibility.md#shared-rules) |
261
+ | Indeterminate activity — `LoadingSpinner` | A Kerf surface needs compact, labeled or decorative indeterminate progress. | Do not use it for known progress; use Web Awesome `wa-progress-bar` or `wa-progress-ring`. Direct Web Awesome UI may use `wa-spinner`; do not mix spinner systems within one surface. | Pass a label when the spinner conveys status; use size for a named icon step or positive pixel size. | Loading lifecycle and adjacent status copy. | `@kerfjs/ui/loading-spinner` | [Accessibility](./accessibility.md#shared-rules) |
262
+ | Loading placeholder — `Skeleton` + a component's `placeholder` prop | A value or a whole component is still loading and should hold its space as a subtle, unanimated block, keeping the layout stable — an inspector or detail view rendering its real chrome with per-record values absent. | Do not use it for known progress (use `LoadingSpinner`), do not animate it, and do not hand-rebuild a component's empty state — set `placeholder` on the component instead. Prefer it over `wa-skeleton`, which the pure-Kerf primitives avoid to stay Web-Awesome-free. | Set `placeholder` on a value-bearing component (`Select`, `ListHeader`, `ListItem`, `ValueTableRow`, `SegmentedControl`, `StateBanner`, `AppTab`, `ToolbarText`, `ListActionRow`) to render skeletons in its value slots with interactivity disabled; use the standalone `Skeleton` for a custom slot. | Loading lifecycle, which slots are unknown, and announcing the loading region. | `@kerfjs/ui/skeleton` | [Accessibility](./accessibility.md#shared-rules) |
263
+ | Command menu — `PopupMenu` | A short list of commands sits behind one trigger, such as a toolbar sort or More menu, optionally grouped under headings and dividers with item icons. | Do not use it to choose a persistent value; use `Select`. Do not hand-write `wa-dropdown`/`wa-dropdown-item` markup for an action menu. | Import `@kerfjs/ui/popup-menu/register` once. Place it in a `single` `ToolbarControlGroup` with `nestedDropdown` and a `menuInset`, or wrap it in `PopupSurface` outside a toolbar. Handle item `action`s by delegation. | Commands, enabled state, and reactions to opening or closing. | `@kerfjs/ui/popup-menu` | [Toolbar composition](#toolbar-composition) |
264
+ | Icon-only action — `IconButton` | One action is clear from its icon alone and stands by itself or beside a form field, such as Browse next to a path input. | Do not use it inside a `ToolbarControlGroup`; the group owns control geometry, so compose a native `button` with a `LucideIcon` there. Do not use it when the action needs visible text; use `wa-button` with text. Do not override `wa-button::part(base)` to square a Lucide icon button. | Pass a Lucide `icon`, its `iconName`, and a required `label` that names the button; delegate its `action`. Register `wa-button` once. Beside a field in a `ListInsetControl` it keeps its square and aligns with the field below its label. | The delegated action, accessible name, and appearance, variant, and size. | `@kerfjs/ui/icon-button` | [Feedback accessibility](./accessibility.md#shared-rules) |
265
+ | Standalone icon toggle — `IconToggleButton` | An icon-only on/off control (show a panel or a conversation) sits in content or a pane footer, outside any Toolbar. | Do not use it inside a `Toolbar`; compose a `ToolbarControlGroup` there. Do not use it for a momentary action; use `IconButton`. Do not use it for one-of-several choices; use `SegmentedControl`. | Pass a Lucide `icon`, `iconName`, a required `label`, and the controlled `pressed` state; flip it from the delegated `action`. It has a single contained toolbar group's 44px geometry and raised pressed face, and shows its label as a help tag when help tags are registered. | The pressed state, its action, and the accessible name. | `@kerfjs/ui/icon-toggle-button` | [Feedback accessibility](./accessibility.md#shared-rules) |
266
+ | Primary action with options — `SplitButton` | A prominent primary action has a closely related set of options chosen from an attached trigger, such as Drive with a provider menu. | Do not use it for a plain action; use `wa-button`. Do not use it for a toolbar command menu; use `PopupMenu`. Do not assemble one from `wa-button-group`, whose hosts do not forward names or `aria-expanded`. | Pass the primary `label` and `action`, the options trigger's `optionsLabel`, `optionsAction`, and `optionsExpanded`; pick a loud `tone`, `fill` for full width, `busy` while work runs, and `disabled`/`optionsDisabled`. | Both actions, the options menu and its open state, the running state and tone switch, and copy. | `@kerfjs/ui/split-button` | [Feedback accessibility](./accessibility.md#shared-rules) |
267
+ | Choosing or dropping files — `FilePickerTrigger`, `FileDropZone`, `wireFilePickers` | People attach or import files by browsing or by dropping them onto a target. | Do not style a native file input or its label from app CSS. Do not make the drop zone the only way in; it also opens the chooser. | Use `FilePickerTrigger` for a compact Add control and `FileDropZone` for a dashed target; set `accept`, `multiple`, `name`, and `pickerId`. Call `wireFilePickers(root, { onFiles })` once: it reports browsed and dropped files (drops filtered by `accept`, the same check `fileMatchesAccept` exposes) and marks the zone while dragging. | What happens to the files, the chosen-file list, copy, and accepted types. | `@kerfjs/ui/file-picker`, `@kerfjs/ui/wire-file-pickers` | [Feedback accessibility](./accessibility.md#shared-rules) |
268
+ | Value selection — `Select` | A controlled form, toolbar, or compact navigation value comes from a moderate or long choice list, possibly grouped, icon-bearing, icon-only when closed, or truncating. Set `multiple` with an array `value` when the person may choose any number of them; add `selectedPresentation="icon-only"` and a fixed `triggerIcon` for a toolbar filter menu. | Do not use it for commands; use `PopupMenu`. Do not use it for a small visible choice set; use `SegmentedControl`. Prefer it over direct `wa-select`, `wa-option`, or value-like `wa-dropdown`/`wa-dropdown-item` composition. | Import `@kerfjs/ui/select/register` once for registration and current-request animation ownership; listen for standard input/change events. Do not add consumer popup timing or positioning repairs. Use typed presentation props rather than consumer `::part()` overrides; let the parent own placement. | Controlled value, validation, choices, domain mapping, and outer placement. | `@kerfjs/ui/select` | [Web Awesome integration](../README.md#web-awesome-theme) |
269
+ | Pick or create a value by typing — `Combobox`, `wireComboboxes` | People type to find an existing value among many or create a new one (tags, labels, recipients). | Do not use it when only existing values are allowed; use `Select`. Do not use it for search text with removable filter tokens; use `TokenSearchField`. Do not style a native input with a datalist. | Pass `id`, `label`, and `suggestions` (strings or `{ value, label }`), plus `placeholder`, `hint`, and `createLabel` (or `false` for suggestions only). Call `wireComboboxes(root, { onCommit })` once; it filters, moves the active option with the arrows, and reports `{ id, value, created, input }` on Enter, a comma, or a click. | Suggestions, committed values, normalization, and clearing the field. | `@kerfjs/ui/combobox`, `@kerfjs/ui/wire-comboboxes` | [Feedback accessibility](./accessibility.md#shared-rules) |
270
+ | Small exclusive choice — `SegmentedControl` | A few visible choices switch a compact view or setting, with toolbar, rounded, or pill presentation. | Do not use it for tabpanel semantics; use `TabBar`. Do not use it for many choices; use `ChoiceChips` when they stay visible and wrap, or `Select` for a long list. Prefer it over `wa-button-group` when the controls select one value. | Delegate its action, read `data-segment-value`, update `value`, and rerender. | Controlled value, labels, action, and persistence. | `@kerfjs/ui/segmented-control` | [SegmentedControl contract](./accessibility.md#segmentedcontrol) |
271
+ | Wrapping visible choice — `ChoiceChips` | Several visible options, too many for one segmented track, must wrap onto more rows — a labeled color palette with swatches, a tag color, a category. Set `multiple` with an array `value` when any number may be on, such as label filters or annotation intents. | Do not use it for a few compact choices on one track; use `SegmentedControl`. Do not use it for a long list or tight space; use `Select`. Do not use it for removable tags (`Chip`). Prefer it over `wa-radio-group` with `appearance="button"` radios, which wrap as a ragged joined group. | Pass a form `name`, a `label` or `labelledBy`, and the controlled `value`; delegate the `action` on `change`, read the radio `value` (or, with `multiple`, the checked boxes under `name`), and rerender. Place it in a dark appearance scope for inverse chrome rather than restyling it. Lead choices with a `swatch` (`CssColor` or `'transparent'`) or an `icon`. | Controlled value, choices, swatch colors, change handling, and form submission. | `@kerfjs/ui/choice-chips` | [ChoiceChips contract](./accessibility.md#choicechips) |
272
+ | Chat or prompt composer — `Composer`, `wireComposers` | A chat message, assistant prompt, or reply is written in a raised frame and sent with a trailing action, often in a `DialogSurface` floating footer over a transcript. | Do not use it for an ordinary form field submitted with the rest of a form; use `wa-textarea` with a `FieldLabel`. Do not wrap it in another framed `ContentItem` or card; it owns its frame, padding, and shadow. Prefer it over a `wa-textarea` and a button in app-styled chrome. | Pass a `name`, a title-style `label`, an `id` when it has a `hint`, and the trailing `actions` (a brand Send `wa-button`). Bound the growing field with `minRows` and `maxRows`. Read and clear the textarea from the send action. For Enter-to-send, set `submitOnEnter` and call `wireComposers(root)` once; Enter clicks the first trailing action, Shift+Enter is a newline, and IME commits never send. | Value, sending, shortcuts beyond the opt-in Enter-to-send, and the disabled or busy state of its actions. | `@kerfjs/ui/composer`, `@kerfjs/ui/wire-composers` | [Composer](./composer.md) |
273
+ | Structured search editor — `TokenSearchField`, `readTokenSearchField`, `placeTokenSearchCaret`, `wireTokenSearchFields` | Free text and ordered, editable, removable filter tokens share one searchbox; enable `collapsible` when an empty, unfocused field should reduce to one iconic action, standalone or in a toolbar group. | Do not use it for ordinary text entry; use a native input or Web Awesome `wa-input`. Do not use it when filters belong in separate form controls. | Read DOM-owned text on input, empty `textContent` on clear, and use `placeTokenSearchCaret` after explicit controlled focus changes. Call `wireTokenSearchFields` from `@kerfjs/ui/wire-token-search-fields` once so Enter submits without adding a line break and keyboard chip deletion restores focus plus the text-relative caret after controlled replacement. In `collapsible` mode it also 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 signal on the returned handle (`handle.expanded(id)`) or adopt your own via `collapsible.signals`, and opt out per behavior only when the app must own it. | Parsing, suggestions, tokens, query execution, results, announcements, and — only if overriding the default — the collapsible `expanded` signal. | `@kerfjs/ui/token-search-field` | [TokenSearchField contract](./accessibility.md#tokensearchfield) |
274
+ | Persistent inline status — `StateBanner` | A neutral, info, pop, success, warning, or danger message belongs next to the affected work; pop highlights featured or novel content without implying status. | Do not use pop as a success, warning, or danger substitute. Do not use StateBanner for a no-content screen; use `EmptyState`. Do not use it for transient confirmation; use a toast. Web Awesome `wa-callout` is the ecosystem alternative for Web Awesome-owned content. | Delegate an optional action; choose alert urgency only for attention-requiring failure. Use the optional tone-tinted `badge` for a terse count or status beside the title, not as the only expression of meaning. | State mapping, message lifetime, retry/action behavior, badge content, and copy. | `@kerfjs/ui/state-banner` | [Feedback accessibility](./accessibility.md#shared-rules) |
275
+ | App-level progress in a corner — `CornerStatus`, `wireCornerStatus` | Ongoing app-wide work, such as "Loading…" or "Updating Tickets… 3 of 12", needs a non-dismissible status that has no better home beside the affected work. | Do not use it for transient, dismissible confirmation; use a toast. Do not use it for status that belongs beside the affected work; place a `StateBanner` there. Do not position a `StateBanner` with fixed-position application CSS. | Compose one or more `StateBanner`s with `urgency="status"`; they stack. Call `wireCornerStatus` once so each overlay host opens in the top layer as renders insert it. It never takes focus and has no close button, light dismiss, or Escape. | Status lifetime (render while the work runs, remove when it ends), banner copy and progress, and corner placement. | `@kerfjs/ui/corner-status`, `@kerfjs/ui/wire-corner-status` | [Feedback accessibility](./accessibility.md#shared-rules) |
276
+ | Ambient edge activity — `EdgeActivityIndicator` | App-wide background activity (server work, sync) should be visible along the top edge without a modal, a banner, or a layout shift. | Do not use it for progress the user waits on or must read; use `CornerStatus`. Do not use it for known progress; use a progress bar. Do not make it the only record of important state. | Drive `busy`; pass an optional `message` for a polite status pill and a `tone`. It sits below the top safe area (or flush with `inset="none"`), takes no pointer, and only fades under reduced motion. | The busy state, message, and tone. | `@kerfjs/ui/edge-activity-indicator` | [Feedback accessibility](./accessibility.md#shared-rules) |
277
+ | Empty or busy content area — `EmptyState` | A content region has no items, cannot proceed, or is loading and needs explanation plus an optional action. | Do not use it for an inline status update; use `StateBanner`. Do not use it for transient success; use `wa-toast`/`wa-toast-item` or the application's toast system. | Delegate its optional action; it composes `LoadingSpinner` when busy. | Empty/busy policy, recovery action, illustration, and copy. | `@kerfjs/ui/empty-state` | [Feedback ownership](./component-contract.md#extracted-versus-application-specific) |
85
278
 
86
279
  ## Ambiguous choices
87
280
 
88
- - `Toolbar` is persistent app chrome; `PanelHeader` heads a panel, dialog, or page.
89
- - `TabBar` changes tabpanels and supports overflow/reorder; `SegmentedControl` chooses among a few compact views; `Select` handles a longer value list.
281
+ For a lowered background behind an entire scrolling work area, choose
282
+ `Pane appearance="sunken"` or the appearance option on the layout that owns
283
+ the scroll viewport. Use `SunkenPanel` for a padded content group that does
284
+ not introduce scrolling. See [Lowered work surfaces](./layout.md#lowered-work-surfaces).
285
+
286
+ Set `ResizableRegion`'s `--kui-resizable-region-background` for an inline
287
+ surface. An open descendant `PopupMenu` or Web Awesome dropdown automatically
288
+ releases clipping and raises the region on its public popup layer. Set
289
+ `contentOverflow="visible"` for other anchored content that must escape the
290
+ region. A collapsed region can place `restoreControl` in a top or bottom corner with
291
+ `restorePosition`, set its typed `restoreInset`, or use
292
+ `restorePlacement="inline"` for a control in normal flow.
293
+
294
+ Use `FloatingToolbar placement="inline"` when a restore owner supplies the
295
+ position. Floating placement supports per-edge `--kui-floating-toolbar-inset-*`
296
+ tokens; `safeAreaInsets` adds the layout-routed or device safe-area inset to
297
+ the positioned edges.
298
+
299
+ For a larger option row, use `ListItem density="spacious"`; `compact` and
300
+ `standard` remain available. `multiline` wraps its label and aligns its icon
301
+ to the first line; `multilineIconAlign="center"` centers the icon against the
302
+ whole label. `divider` owns a before or after separator. Set
303
+ `state="drag-target"` for the component's drop outline and background (a row
304
+ that accepts dropped content). For a list the person reorders, set
305
+ `draggable` on each `ListItem`, `ListItemLink`, or `ListActionRow` (each with
306
+ an `itemId`) and call `wireListReorder` from `@kerfjs/ui/wire-list-reorder`
307
+ once, retaining its disposer: it dims the dragged rows, draws the 2px brand
308
+ insertion line on the hovered row's `before` or `after` edge, moves rows with
309
+ Alt+Shift+ArrowUp/ArrowDown, and reports
310
+ `{ listId, sourceIds, target: { id, position }, source }`. Dragging a selected
311
+ or pressed row moves every selected row of its `List` (set `data-list-id` on
312
+ the `List` to tell several lists apart). Apply the change synchronously with
313
+ `reorderListItems`; order stays application state. Without the wiring, the
314
+ `dragging` and `dropPosition` props render the same states from app-owned
315
+ drag state. Public
316
+ `--kui-list-item-*` tokens control its row, icon, label, and trailing geometry
317
+ and color. `ListHeader` exposes `--kui-list-header-min-height`, title padding,
318
+ title minimum height, and border-width tokens for section density.
319
+ Set `--kui-list-group-divider-color` on a containing `List` to give
320
+ `ListHeader`, `ListItem`, and `ListActionRow` the same before/after divider
321
+ color; each row otherwise uses the quiet neutral border tone.
322
+ Set `--kui-list-row-padding-inline` on a containing `List` to give `ListItem`
323
+ and `ListActionRow` rows one leading inline inset: both start their leading
324
+ icons on the same edge at any value, and the token defaults to
325
+ `--kui-layout-item-padding`. `--kui-list-item-padding-inline` still overrides
326
+ it for `ListItem` rows alone, so use the shared token whenever the two row kinds
327
+ share a list.
328
+ Both row kinds also draw their untiled leading icon at one shared size,
329
+ `--kui-list-row-icon-size` (default 18px), so a list that mixes them starts
330
+ their labels on one edge too. Set it on the containing `List` to resize both
331
+ row kinds together; `--kui-list-item-icon-size` still overrides it for
332
+ `ListItem` rows alone. An `iconTile` keeps its 32px tile and 18px glyph at any
333
+ value.
334
+ For a filled command list, set `--kui-list-item-background` and
335
+ `--kui-list-item-border` on the list or row. Scope `--kui-list-item-color`,
336
+ `--kui-list-item-hover-background`, `--kui-list-item-selected-color`, and
337
+ `--kui-list-item-selected-background` at the same boundary for text and state
338
+ fills. The matching `--kui-list-item-hover-border` and
339
+ `--kui-list-item-selected-border` tokens set state outlines without replacing
340
+ ListItem CSS or neutralizing global semantic border colors.
341
+
342
+ Use `ListItemLink` from `@kerfjs/ui/list-item` for a navigation row with a
343
+ real `href`. It shares `ListItem` content slots, density, selection, and row
344
+ geometry while rendering a native anchor. `external` opens a new tab with
345
+ `noopener noreferrer` and announces that behavior in the default accessible
346
+ name. Disabled and loading links omit `href` and leave the tab order. Use
347
+ `ListItem` for an application action dispatched through `action`.
348
+
349
+ Use `Toolbar responsive="trailing-priority"` for a collapsible search in the
350
+ trailing zone that should take a full second row when expanded. `responsiveAt`
351
+ chooses the compact or narrow container breakpoint. The leading identity stays
352
+ in the first row. Set `centerAlign="balanced"` when the center zone must sit on
353
+ the toolbar's midpoint despite unequal or empty side content; it gives the
354
+ leading and trailing zones equal tracks. A lone `ToolbarText` in a balanced
355
+ center is a navigation-bar title: the side zones keep their content width and
356
+ the title truncates first, centered while the sides leave room (NavStack uses
357
+ this once it shows a back control). `--kui-toolbar-leading-min-width`,
358
+ `--kui-toolbar-trailing-gap`, `--kui-toolbar-trailing-justify`, and the
359
+ `--kui-toolbar-*-padding-inline` zone tokens adjust local geometry without
360
+ selecting toolbar anatomy from application CSS.
361
+ For a shorter header embedded in a panel or card, pass `Toolbar
362
+ density="compact"`: a 40px toolbar with a 34px control band and 3px block
363
+ insets (inline insets and the zone gap stay 8px). Give its groups
364
+ `size="compact"` so they fit the band. Composite toolbars take the same
365
+ `density` through their `ToolbarConfig` (Workbench panel, main, and bottom
366
+ toolbars, CollapsiblePanel, NavStack, and SplitView) and size the groups they
367
+ compose — panel toggles, relocated toggles, the back button — to match. Pass
368
+ `density` to `CollapsiblePanelRelocated` when its destination toolbar is
369
+ compact.
370
+
371
+ Set `--kui-toolbar-inset: 0px` on an embedded Toolbar that should have no outer
372
+ padding while keeping its `--kui-toolbar-gap` between control zones. The token
373
+ also reduces its minimum height by the removed inset; safe-area compensation
374
+ still adds to the chosen inset on claimed edges.
375
+
376
+ For compact dialog copy, use `Text flush lineHeight="tight"`; block Text still
377
+ resets native margins. Center short status copy with `Text align="center"`
378
+ (`end` aligns a trailing value) instead of setting `text-align` on `.kui-text`. `ValueTable density="compact"` reduces row padding and
379
+ gap. Its `--kui-value-table-row-columns`, `--kui-value-table-row-padding-block`,
380
+ and `--kui-value-table-row-gap` tokens support a specific metadata layout.
381
+ Use `ToolbarText size="xsmall"` for a dense rail heading. Use
382
+ `size="xlarge-fixed"` for a toolbar heading at the fixed 20px step; `xlarge`
383
+ retains the responsive page-title clamp. Pass `headingLevel` when the text is
384
+ a section landmark. A `TokenSearchField` editor can shrink to zero minimum width inside a narrow
385
+ group; set `--kui-token-search-editor-min-width` only when a wider editor is
386
+ required.
387
+
388
+ - `Toolbar` serves persistent app chrome and headings; the zone contents and accessible naming distinguish the purpose.
389
+ - `TabBar` changes tabpanels and supports overflow/reorder; `SegmentedControl` chooses among a few compact views; `ChoiceChips` keeps a larger exclusive set (or, with `multiple`, any-number set) visible as wrapping pills; `Select` handles a longer value list.
390
+
391
+ Use `AppTab presentation="icon-only"` with its `name` kept as the accessible
392
+ tab name. For segmented tabs that should show names in a wide reader and icons
393
+ in a narrower container, set `TabBar iconOnlyAt="wide"` (832px), `"narrow"`
394
+ (704px), or `"compact"` (448px), and give each segmented `AppTab` a leading
395
+ icon. The tablist's own width controls the switch; the visually hidden name
396
+ remains its accessible name. Use `labelMaxWidth` for an ellipsized visible name. Set `attention`
397
+ to color a tab's name with `--kui-app-tab-attention-color`. Set `dropTarget`
398
+ while an app drag is over a tab's content; the tab keeps its selection semantics
399
+ and uses the `--kui-app-tab-drop-target-*` tokens for its highlight. Set
400
+ `nameOverflow="visible"` when an inline loading treatment needs the full name
401
+ instead of the default ellipsis. A `TabBar` owns its
402
+ scrolling strip; its public `--kui-tab-bar-strip-*` tokens configure strip
403
+ height, spacing, border, radius, background, and scroll inset without styling
404
+ its internal classes. `--kui-tab-bar-trailing-flex` controls the trailing zone.
405
+ For a distinct application action, use `end` to pin it at the far edge; use
406
+ `trailingPlacement="adjacent"` to keep a tab-local `trailing` action beside the
407
+ strip. Each zone accepts one `ToolbarControlGroup` or one standalone
408
+ `wa-button` for a primary action with its own chrome. Avoid wrappers and
409
+ application flex overrides.
410
+ Set `pinned` on the first `AppTab` when that tab must remain visible as peers
411
+ scroll. It stays inside the tablist and keyboard order. Set the `TabBar`
412
+ `snapTabs` prop when scrolling peers should settle at whole-tab starts
413
+ beside that pinned tab. `wireTabBars` measures the pinned inset and provides
414
+ enough end scroll room for the last peer to align there; a partial peer can
415
+ still appear at the trailing edge as an overflow cue. This mode also aligns a
416
+ newly selected tab at the pinned edge in LTR and RTL. Set the prop on the bar,
417
+ without styling its strip or tab internals. With `snapTabs`, keep the trailing
418
+ zone non-shrinking (the default `--kui-tab-bar-trailing-flex`): the reserved
419
+ end room counts toward the strip's share when both zones shrink.
420
+ Set the public
421
+ `--kui-app-tab-pinned-background` token if the surrounding surface differs from
422
+ the default; the pinned tab must cover peers as they scroll beneath it. Its
423
+ background also covers the strip's inline padding and border so scrolled labels
424
+ cannot paint beside the pinned edge, including in right-to-left strips. The
425
+ backing follows the tab's pill radius, keeping a selected pinned tab's corners
426
+ and shadow whole beside the overflow divider. Call
427
+ `wireTabBars` for keyboard selection and reorder behavior and its WebKit RTL
428
+ scroll correction.
429
+
90
430
  - `StateBanner` persists beside affected work; `EmptyState` replaces absent content; `wa-callout` is contextual ecosystem content; `wa-toast` and `wa-toast-item` are transient and must not carry the only copy of important state.
91
- - `ResizableRegion` is an interactive controlled pane. CSS grid is the right answer when columns do not need a user-operable separator.
431
+
432
+ For a banner with multi-line supporting copy, use `copyLayout="stacked"` to put
433
+ the detail below the title and badge. The default `actionPlacement="trailing"`
434
+ keeps the action beside the copy while the copy has room and moves it to its
435
+ own end-aligned trailing row when the banner is narrow (a phone, a sidebar),
436
+ so a group of buttons never squeezes or covers the title; no breakpoint or
437
+ `actionPlacement` switch is needed for narrow layouts. Use
438
+ `actionPlacement="below"` when the action should always take a separate
439
+ trailing row. The default copy layout keeps the detail inline;
440
+ `--kui-state-banner-copy-gap` and `--kui-state-banner-copy-row-gap` adjust the
441
+ stacked copy's spacing at an instance boundary.
442
+
443
+ For a full-width status band at a layout edge — above a workspace, below an
444
+ app bar — use `presentation="strip"` instead of restyling the card: it is flush
445
+ (no inline margin), square, puts its copy on the shared content-text column,
446
+ and draws only tone-colored `dividerSides` edges (bottom by default; `''` for
447
+ none). Keep the default `card` presentation for a banner beside the affected
448
+ work inside a pane.
449
+
450
+ For ongoing app-level progress that has no home beside the affected work, host
451
+ the banner in `CornerStatus` rather than positioning it with fixed CSS: a
452
+ manual popover in the top layer, at a safe-area-aware viewport corner, with no
453
+ close button, light dismiss, or Escape. Call `wireCornerStatus` once; it opens
454
+ each host as renders insert it, and the application removes the host when the
455
+ work ends.
456
+
457
+ A modal dialog opened while the status shows stacks above it, as it does over a
458
+ toast. Raising the status back above the modal would only paint it there: a
459
+ modal makes everything outside its own subtree inert, so the status could not
460
+ be reached or announced either way. When the dialog's task depends on that
461
+ progress, show it inside the dialog.
462
+
463
+ For a compact `Select`, set `triggerWidth` to `"fit-content"`, `"max-content"`,
464
+ or `"fill"` and cap it with `--kui-select-trigger-max-width` when needed.
465
+ For a round icon-only toolbar trigger, set `selectedPresentation="icon-only"`
466
+ and `caret={false}`. The control keeps its accessible name, current choice help
467
+ tag, and keyboard-operated listbox; the selected icon stays centered even when
468
+ `renderSelected` supplies it. The default keeps the visible caret.
469
+ Custom `renderSelected` text inherits the control color by default; the
470
+ `--kui-select-selected-color`, `--kui-select-selected-font-size`, and
471
+ `--kui-select-selected-font-weight` tokens configure its typography. Plain
472
+ selected text stays on one ellipsized line when the trigger narrows.
473
+
474
+ For an unavailable entry, set `SelectChoice.disabled` and optionally
475
+ `disabledReason`; the option stays visible but cannot be chosen. A multiple
476
+ `Select` can opt in to `selectAllLabel` and `clearLabel` footer buttons.
477
+ Select all includes only enabled choices, Clear removes the selection, and
478
+ both report changes through the normal `input` and `change` events. The app
479
+ still owns the controlled `value` and localized action labels.
480
+
481
+ - `ResizableRegion` is an interactive controlled pane. `Grid` is the right answer for static equal-width columns; application CSS grid remains the answer for asymmetric or intrinsic tracks.
482
+ - A `ResizableRegion`'s content spans the whole region, like its separator. Give
483
+ it one child — normally a `Pane` — and that child fills the region, so the
484
+ pane reaches the region's far edge and owns scrolling for long content.
485
+ Several children stack at their natural height. Do not size the child with
486
+ application `height` rules. While expanded, slide-motion content follows the
487
+ region's actual track, so a region its parent clamps (a `max-width`, a narrow
488
+ container) never shows content past its separator; the fixed expanded size
489
+ applies only while the collapsed content slides out.
490
+ - A `ResizableRegion` overlay automatically clamps both its track and fixed-size
491
+ animated content to the responsive overlay maximum. Set the policy and maximum
492
+ on the component instead of adding application descendant width/height fixes.
493
+ It paints `--kui-color-surface` itself (an inline region stays transparent),
494
+ so do not add a background to make an overlay opaque.
495
+ - Give `Workbench` panels a `toolbar` (title, `leading` / `center` / `trailing`
496
+ groups, and a standard `toggle`) and the work area a `mainToolbar` /
497
+ `mainBottomToolbar`: the Workbench moves a closed panel's groups marked
498
+ `relocateOnCollapse`
499
+ and toggle into the work area's toolbar, so never hand-place or duplicate
500
+ panel toggles. See [Workbench panel toolbars](workbench.md#panel-toolbars).
501
+ - Configure application panels through the shared `separator`, `collapseMotion`,
502
+ `contentOverflow`, `presentation`, `restoreControl`, and `restorePosition`
503
+ props on `ResizableRegion`, `Workbench` panels, and `CollapsiblePanel`. These
504
+ cover separator suppression, one-reflow collapse with composited motion,
505
+ bottom-drawer popups, compact overlays or replacements, and safe-area restore
506
+ placement without descendant `.kui-*` overrides. A `Workbench` rail's
507
+ or bottom drawer's `responsiveOverlayAt` (like `ResizableRegion`'s
508
+ `responsiveFillAt`) switches it to an overlay below a container breakpoint
509
+ without a device-class check.
510
+ `wireSidebar` also accepts a
511
+ hidden compact replacement and keeps compact overlays exclusive by default.
92
512
  - `TokenSearchField` is a structured editor. A native input or `wa-input` is the right answer for ordinary text.
93
513
 
514
+ For common structured search, use `createTokenSearchModel` from `@kerfjs/ui/token-search-model`, pass the model to `TokenSearchField`, and register it under the field id in `wireTokenSearchFields(root, { models })`. Rules parse `name:value` expressions and provide suggestions; the model owns chips, selection, removal, clear, and an optional evaluation result. Omit `model` and `models` for full manual control.
515
+
516
+ In a form, use `TokenSearchField presentation="form-field"` with its `label`,
517
+ optional `hint`, and `required` state. It renders a full-width control beside
518
+ `wa-input` without a Toolbar or extra inline inset. The app validates required
519
+ search content before saving.
520
+ The form-field corners and required marker use the same Web Awesome
521
+ form-control radius, marker color, and offset tokens as a neighboring
522
+ `wa-input`.
523
+ The four public color tokens (`--kui-token-search-background`,
524
+ `--kui-token-search-border`, `--kui-token-search-token-background`, and
525
+ `--kui-token-search-token-foreground`) inherit from an app ancestor or the
526
+ field's root. `className` marks that root, including the outer wrapper in
527
+ `form-field` presentation, so one app class can configure either form.
528
+ `TokenSearchRule.suggest(input, state)` receives the unfinished value and current committed tokens, so a rule can omit values already selected. Existing one-argument suggestion callbacks continue to work.
529
+ For a sibling date picker or other app helper, call `model.commit(value)` while a `name:` prefix is active. It parses and commits that value for the active rule even when it is absent from suggestions, replacing the unfinished prefix text. Invalid values and calls without an active prefix leave the query unchanged; `choose(value)` remains restricted to suggested tokens.
530
+ To apply a saved search or restore a query programmatically, call `model.replace({ query, tokens })`. It publishes parsed state and rebuilds the DOM-owned editor text even when no chip changed. For a field without a model, change the field's `revision` prop when setting `query` yourself.
531
+ When one root contains both kinds of field, a registered model enables chip keyboard behavior only for its own field. Other fields keep native editing unless the root opts into `keyboard` with an application removal callback.
532
+ For an icon action at the end of the field, pass `trailingAction` with `icon`,
533
+ accessible `label`, and delegated `action` (plus optional `id`). The component
534
+ renders a compact button beside the clear button, with the same size, hover,
535
+ focus ring, and cursor, in every presentation. For a help toggle that opens a
536
+ surface, set `expanded` (and `haspopup`, plus `controls` while it is open); for
537
+ an on/off toggle, set `pressed`. The open or pressed state keeps the hover fill.
538
+ Put domain `data-*` metadata in `attributes`. Never style your own button into
539
+ the `trailing` slot; reserve `trailing` for passive content such as a shortcut
540
+ hint.
541
+ Set `fill` on a collapsible `TokenSearchField` in a stretched Toolbar center to
542
+ use the available width when expanded; the field and its search group retain
543
+ their compact widths when collapsed.
544
+ When the expanded toolbar field has focus, its inset surface uses
545
+ `--kui-token-search-background` or the default surface color if that token is
546
+ unset.
547
+
548
+ `ToolbarControlGroup.tileTone` selects `neutral`, `brand`, `success`, `warning`, or `danger` quiet fill, matching quiet border, and on-quiet foreground for a non-interactive icon tile. Compose a contained `single` group whose only child is a direct decorative LucideIcon (`aria-hidden="true"`). Omission preserves the normal group palette. The prop does not recolor interactive, mixed, multi-control, or borderless groups; keep real actions in controls with their existing focus/hover/pressed treatments.
549
+
550
+ `ListItem`, `ListItemLink`, and `ListActionRow` take `iconTile` to present their leading `icon` in a filled 32px rounded tile holding an 18px glyph, for settings or command rows that identify each entry by color. Pass a tone (`neutral`, `brand`, `success`, `warning`, or `danger`) for the same quiet fill, matching quiet border, and on-quiet foreground as `ToolbarControlGroup.tileTone`, or `{ color, foreground? }` for an application color: `color` is a `CssColor` (`uiColor()`, `colorVar()`, or `fillColor('#e5484d')`) and `foreground` a `CssForegroundColor`; without one, the glyph is black or white, whichever contrasts with the fill. The tile sits 6px clear of a standard 44px row (a compact row is at least 42px tall), moves the label to the tile's edge, and keeps its colors when the row is hovered or selected. Never wrap the icon in your own tile or resize the row's icon slot.
551
+
94
552
  ## Toolbar composition
95
553
 
96
- A `Toolbar` has three zones — `leading`, `center`, and `trailing`. In almost
97
- every case the only things that go **directly** in a zone are `ToolbarText`
98
- (identity/title text) and `ToolbarControlGroup` (any control or cluster of
99
- controls). Do not drop bare buttons, inputs, links, or arbitrary markup straight
100
- into a zone; wrap controls in a `ToolbarControlGroup` so they get the shared
101
- toolbar geometry, hover/pressed treatment, and grouping. `SegmentedControl`,
102
- `Select`, a collapsible `TokenSearchField`, and Web Awesome controls all live
103
- **inside** a `ToolbarControlGroup`, not loose in the zone. `PanelHeader` is the
104
- one wrapper that composes these for you as a panel/dialog/page heading.
554
+ Use `ToolbarText tone="dark"` on a loud or photo-backed toolbar surface to
555
+ match dark control groups. It applies to read-only headings and actionable
556
+ titles at every size; default tone retains existing identity and heading colors.
557
+
558
+ A `FloatingToolbar` accepts `ToolbarControlGroup` directly as its children in
559
+ both floating and inline placement. Name the toolbar with `label`; group its
560
+ controls as you would in a `Toolbar` zone.
561
+
562
+ A `Toolbar` has three zones — `leading`, `center`, and `trailing`. Each accepts
563
+ `KerfUiContent` directly, including a status `Chip`, a native control, or
564
+ application markup. `ToolbarText` is the standard identity/title; use
565
+ `ToolbarControlGroup` when related controls should share its chrome, sizing,
566
+ hover treatment, or overflow behavior. A standalone primary `wa-button` keeps
567
+ its own Web Awesome chrome and fits naturally in the trailing zone. Bare
568
+ controls retain their own styling and accessibility responsibilities; the
569
+ toolbar only positions them within the zone.
570
+ For a title that opens an editor, set `action` on a direct `ToolbarText`: it
571
+ renders a native button that keeps its content width when possible and
572
+ ellipsizes before an adjacent status chip when the leading zone narrows. The
573
+ application handles the delegated action and replaces it with its own input
574
+ while editing. Use a separate heading landmark if the view needs one.
575
+ For a search or cluster that needs shared toolbar geometry, place
576
+ `SegmentedControl`, `Select`, or `TokenSearchField` inside a
577
+ `ToolbarControlGroup`. The ToolbarText catalog's actionable-title example
578
+ places its status `Chip` directly beside the title while the search uses a
579
+ group. `TabBar` also accepts a `ToolbarControlGroup` in its `leading`,
580
+ `trailing`, or `end` zone, including an application wrapper that renders one.
581
+ For a page, panel, or
582
+ dialog heading, put an extra-large `ToolbarText` directly in the leading zone,
583
+ optionally preceded by a grouped icon, and group trailing actions. Keep supporting
584
+ copy below as app-owned content. Size the title to its track: a narrow
585
+ peripheral rail or drawer (a navigator, inspector, or console beside a work
586
+ area that carries the extra-large title, often with its own close control in
587
+ the header) labels itself with the default size, because extra-large truncates
588
+ there — "Inspector" becomes "Ins…" in a 160px rail. By default, nothing wraps
589
+ inside a `ToolbarControlGroup`: an icon sits beside its label on one row and the
590
+ group sizes to its content, so a row that does not fit relocates whole groups
591
+ through the toolbar's `responsive` policy. For independent action links that
592
+ must all remain visible, set `overflow="wrap"`: whole links move to another
593
+ row inside the group without breaking an icon from its label. Use
594
+ `overflow="scroll"` when a single-row action strip is intentional. A
595
+ toolbar draws no divider by default: pinned over or under scrolling content,
596
+ it gets one from the scroll state instead — the `Pane` it heads draws the line
597
+ only while content is scrolled beneath it, once `wireScrollDividers` is wired
598
+ (see [Scroll dividers](./layout.md#scroll-dividers)). Set `dividerSides` to the
599
+ canonical physical-edge combinations (`t`, `r`, `b`, `l`, in that order—for
600
+ example `b`, `tr`, or `trbl`) only when the toolbar owns a permanent separator
601
+ edge. Dividers earn their place: never fake one with a border or pad below one
602
+ to make it look right.
603
+
604
+ `Toolbar` renders a semantic `header` by default. Set `position="footer"`
605
+ for a toolbar at the bottom of a pane or page; Workbench's
606
+ `mainBottomToolbar` and the catalog resource bar apply this automatically.
607
+ The position changes the HTML element without changing zones or geometry.
105
608
 
106
609
  Common toolbar patterns:
107
610
 
108
- | Want | Put in the zone | Notes |
109
- | --- | --- | --- |
110
- | Identity or title text | `<ToolbarText text="…" size="large" />` (or `xlarge` for a page/panel title) | Wrap in a `single` borderless group only when it must align with adjacent control pills |
111
- | One or more icon/text buttons | `<ToolbarControlGroup>{buttons}</ToolbarControlGroup>` | Use `buttonAppearance="push"` for toggle buttons with `aria-pressed`; `single` for a lone control |
112
- | An exclusive view switch | `<ToolbarControlGroup><SegmentedControl … /></ToolbarControlGroup>` | Not `TabBar`, which switches tabpanels |
113
- | A value list | `<ToolbarControlGroup><Select … /></ToolbarControlGroup>` | Register `@kerfjs/ui/select/register` once |
114
- | A collapsible search box | `<ToolbarControlGroup single><TokenSearchField collapsible … /></ToolbarControlGroup>` | The group animates the iconic ↔ expanded states; `wireTokenSearchFields` manages expand/collapse/focus by default |
611
+ For a long-running icon action, set `busy` on its single-control
612
+ `ToolbarControlGroup` and supply a descriptive `busyLabel`. The group preserves
613
+ the control's dimensions, shows `LoadingSpinner` in its icon slot, sets
614
+ `aria-busy`, and makes the control inert until the app clears `busy`.
615
+
616
+ | Want | Put in the zone | Notes |
617
+ | ------------------------------ | -------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
618
+ | Identity or title text | `<ToolbarText text="…" size="large" />` (or `xlarge` for a page/panel title that fits) | Wrap in a `single` borderless group only when it must align with adjacent control pills |
619
+ | One or more icon/text buttons | `<ToolbarControlGroup>{buttons}</ToolbarControlGroup>` | Use `buttonAppearance="push"` for toggle buttons with `aria-pressed`; `single` for a lone control |
620
+ | One primary application action | `trailing={<wa-button variant="brand">New Ticket…</wa-button>}` | The standalone button keeps its Web Awesome chrome; use `variant="danger"` when the action is destructive |
621
+ | An exclusive view switch | `<ToolbarControlGroup><SegmentedControl … /></ToolbarControlGroup>` | Not `TabBar`, which switches tabpanels |
622
+ | A value list | `<ToolbarControlGroup><Select … /></ToolbarControlGroup>` | Register `@kerfjs/ui/select/register` once; use `focusRingOwner="group"` so focus follows the group's geometry |
623
+ | A command menu | `<ToolbarControlGroup single nestedDropdown><PopupMenu … /></ToolbarControlGroup>` | Register `@kerfjs/ui/popup-menu/register` once; set `menuInset` on the group |
624
+ | A collapsible search box | `<ToolbarControlGroup single><TokenSearchField collapsible … /></ToolbarControlGroup>` | The group animates the iconic ↔ expanded states; `wireTokenSearchFields` manages expand/collapse/focus by default |
115
625
 
116
- A **popup menu in a toolbar** is a `single` `ToolbarControlGroup` wrapping a Web
117
- Awesome `wa-dropdown`: its `slot="trigger"` `wa-button` is the toolbar button and
118
- the `wa-dropdown-item`s are the menu. Keep the dropdown's managed light-DOM
119
- children under `data-morph-skip-children` so kerf does not reconcile Web Awesome's
120
- own DOM.
626
+ ### Room for an expanded search
627
+
628
+ A collapsible search group grows into the room beside its sibling groups. When
629
+ that room is too small, the siblings wrap onto a new row partway through the
630
+ opening, and the toolbar grows a row taller. Kerf does not hide or move your
631
+ other controls; plan for it instead:
632
+
633
+ - Size the expanded search to what fits: `--kui-token-search-expanded-width`
634
+ for a plain search group, or `sizing="grow"` with a `growBasis` that fits
635
+ beside the siblings.
636
+ - If a useful search cannot fit beside the other controls, set those controls
637
+ aside while it is open. Mark them `visibility="yield-to-expanded-sibling"`
638
+ (they leave a 480px-or-narrower toolbar while a sibling is expanded), or
639
+ gather them behind a "…" `PopupMenu` overflow group. The application decides
640
+ which controls yield.
641
+
642
+ ### Application surfaces below search
643
+
644
+ Pass `expandedOverflow="visible"` to `ToolbarControlGroup content="search"`
645
+ when an application-owned suggestion list, date picker, or help surface extends
646
+ below it. The group is the positioning containing block, retains auto height,
647
+ and permits overflow only while `expanded` is true. Omission or `"clip"` keeps
648
+ existing behavior, including Kerf's built-in suggestions. Other content modes
649
+ and collapsed searches keep their existing overflow rules.
121
650
 
122
651
  ```tsx
123
- <ToolbarControlGroup single>
124
- <wa-dropdown placement="bottom-start" data-morph-skip-children>
125
- <wa-button slot="trigger" appearance="plain" with-caret aria-label="Sort">
126
- <LucideIcon icon={ArrowDownAZ} name="arrow-down-a-z" />
127
- </wa-button>
128
- <wa-dropdown-item data-action="sort-recent">Recently updated</wa-dropdown-item>
129
- <wa-dropdown-item data-action="sort-priority">Priority</wa-dropdown-item>
130
- </wa-dropdown>
652
+ <ToolbarControlGroup content="search" expanded={open} expandedOverflow="visible">
653
+ <TokenSearchField id="ticket-search" label="Search tickets" presentation="toolbar-group" collapsible expanded={open} />
654
+ {open ? <AppDatePicker data-token-search-keep-open /> : null}
131
655
  </ToolbarControlGroup>
132
656
  ```
133
657
 
658
+ The application owns placement (for example absolute positioning below the
659
+ group), stacking, dismissal, and hiding/removing its surface on collapse. Mark
660
+ focusable floating content `data-token-search-keep-open`, or configure
661
+ `collapsible.keepOpenOn`, to keep an empty field open when focus enters it.
662
+ This prop does not escape clipping imposed by an ancestor or create a top-layer
663
+ popover. Do not override the group's position, height, or overflow in app CSS.
664
+
665
+ ### Popup menu migration
666
+
667
+ A **popup menu in a toolbar** is a `PopupMenu` (`@kerfjs/ui/popup-menu`) in a
668
+ `single` `ToolbarControlGroup` with `nestedDropdown`; the group sizes the trigger
669
+ as a toolbar button and `menuInset` sets the menu's inset. `PopupMenu` renders the
670
+ Web Awesome dropdown, its trigger, and its typed items (commands, headings, and
671
+ dividers), and keeps Web Awesome's managed children out of the morph. Register
672
+ `@kerfjs/ui/popup-menu/register` once. Do not hand-write `wa-dropdown` markup for a
673
+ menu.
674
+
675
+ ```tsx
676
+ <ToolbarControlGroup single nestedDropdown menuInset="compact">
677
+ <PopupMenu
678
+ label="Sort"
679
+ icon={<LucideIcon icon={ArrowDownAZ} name="arrow-down-a-z" />}
680
+ items={[
681
+ { label: "Recently Updated", action: "sort-recent" },
682
+ { label: "Priority", action: "sort-priority" },
683
+ ]}
684
+ />
685
+ </ToolbarControlGroup>
686
+ ```
687
+
688
+ Nested decisions use an item with `submenu`. Children keep their own actions,
689
+ `attributes` metadata, icons, `checked` state, disabled state and
690
+ `disabledReason` tooltip. Nested `heading` and `divider` entries group those
691
+ commands without entering keyboard navigation. `tone: 'danger'` maps to the Web Awesome destructive
692
+ variant. A parent can sit among ordinary commands and dividers, so the same
693
+ items shape covers single-line and batch actions; compute each batch child's
694
+ `disabled` state from the current selection.
695
+
696
+ ```tsx
697
+ <PopupMenu
698
+ label="Line actions"
699
+ items={[
700
+ { label: 'Copy Reference', action: 'copy-reference', attributes: { 'data-item-id': lineId } },
701
+ { label: 'Decide', submenu: [
702
+ { kind: 'heading', label: 'Review' },
703
+ { label: 'Approve', action: 'decide', checked: current === 'approve', attributes: { 'data-item-id': lineId, 'data-decision': 'approve' } },
704
+ { label: 'Reject', action: 'decide', tone: 'danger', disabled: needsPrice, disabledReason: needsPrice ? 'Add a price first' : undefined, attributes: { 'data-item-id': lineId, 'data-decision': 'reject' } },
705
+ { kind: 'divider' },
706
+ { label: 'Other…', action: 'choose-other' },
707
+ ] },
708
+ { kind: 'divider' },
709
+ { label: 'Remove', action: 'remove', tone: 'danger' },
710
+ ]}
711
+ />
712
+ ```
713
+
714
+ For a flat command menu with persistent sort choices, group commands under
715
+ `heading` entries and set `checked` explicitly on each choice. Checked rows
716
+ show a checkmark; the background marks the current keyboard row, as in `Select`.
717
+ Items with `checked: true` or `checked: false` reserve checkmark space, and so
718
+ does every plain command in a menu level (the top menu or one submenu) that
719
+ holds such an item, so icons and labels line up across the level; a level
720
+ without a choice keeps the compact start. Omit `checked` for a plain command,
721
+ including one beside checkbox items.
722
+ Commands still dispatch their own `data-action` once on pointer and keyboard
723
+ selection.
724
+
725
+ For a row opened by right-click, render `PopupMenu` with `context`, `label`,
726
+ `anchor`, and a stable root `data-*` marker. Its trigger is an invisible anchor
727
+ removed from the accessibility tree; a separate visible button may stay
728
+ disabled. The menu owns its anchor host: it renders out of flow with no layout
729
+ footprint (no line box, no gap slot), so render it anywhere in the surface it
730
+ belongs to — never inside an app wrapper with `position: fixed`, a 1px size,
731
+ or a `z-index` (the open menu is in the browser top layer). In the app's
732
+ `contextmenu` handler, prevent the browser menu, store
733
+ `{ x: event.clientX, y: event.clientY }` in the signal the menu renders as
734
+ `anchor`, and call `openPopupMenu` with the menu. Because the point is part of the
735
+ menu's own template, it survives re-renders and a rebuilt menu, so the app
736
+ never re-applies it. `openPopupMenuAt` still opens a menu rendered without `anchor` at a given
737
+ point. Call `closePopupMenu` for programmatic dismissal. The pointer anchor
738
+ retains Web Awesome's collision placement, focus management, submenu keyboard
739
+ navigation, and outside/Escape dismissal.
740
+
741
+ The dropdown's popup flips and shifts at viewport edges, limits its height to
742
+ the available space, and uses the browser top layer where supported. The app
743
+ supplies pointer coordinates and command policy; it does not need to calculate
744
+ menu offsets. For other anchored content, use Web Awesome `wa-tooltip` or
745
+ `wa-popover` when its interaction fits, and `wa-popup` when only placement is
746
+ needed. `kerfjs/overlay` provides a structural popover or tooltip with its own
747
+ lifecycle for applications that do not use Web Awesome. These are distinct
748
+ interaction contracts: a command menu still uses `PopupMenu`.
749
+
750
+ ## Configuring recurring list rows
751
+
752
+ Configure the List family instead of selecting its descendant classes. Use
753
+ `density="compact"` for result-heavy panes, `description` for the secondary
754
+ label line, `status` for dormant state text, and `busy` for known progress that
755
+ keeps current content visible. `divider` marks group boundaries without an
756
+ app-owned separator rule. `ListHeader.indicatorTone` gives count, badge, or
757
+ status content neutral, accent, pop, or danger attention. Pop marks featured or
758
+ novel content without claiming a status transition.
759
+
760
+ When a row needs a context action, use `ListActionRow`; its two native buttons
761
+ remain siblings. `trailingActionVisibility="interaction"` keeps the action
762
+ available on hover and keyboard focus and automatically leaves it visible on
763
+ non-hover devices. These props own presentation only—the application still
764
+ owns labels, status meaning, action policy, selection, and domain metadata.
765
+ `density="compact"` makes a single-line row 36px tall (42px with `iconTile`),
766
+ the same height as a compact `ListItem`, so the two row kinds stay level in a
767
+ dense mixed list; a standard row is 44px.
768
+
769
+ When the trailing control is an overflow menu ("…" with Edit, Delete, …),
770
+ pass `trailingMenu: { label, icon, items, placement?, disabled? }` instead of
771
+ the `trailingAction*` props. The row renders a real `PopupMenu` (icon-only, no
772
+ caret, opening `bottom-end` by default) as its sibling trailing control, and
773
+ `trailingActionVisibility="interaction"` reveals it the same way, keeping it
774
+ visible while the menu is open. Register `@kerfjs/ui/popup-menu/register` once.
775
+ Items dispatch their own `data-action`s; find the row from a chosen item with
776
+ `closest('[data-component="list-action-row"]')`. To open the same menu on a
777
+ right-click, delegate `contextmenu` on the row's primary button, prevent the
778
+ browser menu, and call `openPopupMenuAt` with the row's
779
+ `[data-component="popup-menu"]` child and the pointer's `clientX` /
780
+ `clientY`: a button-triggered menu opens `bottom-start` at the pointer for that
781
+ opening and returns to its trigger once it closes.
782
+
783
+ ```tsx
784
+ <ListActionRow
785
+ action="select-command"
786
+ itemId={command.id}
787
+ label={command.name}
788
+ trailingActionVisibility="interaction"
789
+ trailingMenu={{
790
+ label: `Actions for ${command.name}`,
791
+ icon: moreIcon,
792
+ items: [
793
+ { label: 'Edit', action: 'edit-command' },
794
+ { kind: 'divider' },
795
+ { label: 'Delete', action: 'delete-command', tone: 'danger' },
796
+ ],
797
+ }}
798
+ />;
799
+
800
+ delegate(list, 'contextmenu', '[data-action="select-command"]', (event, primary) => {
801
+ const menu = primary.parentElement?.querySelector<PopupMenuElement>(
802
+ ':scope > [data-component="popup-menu"]',
803
+ );
804
+ if (!menu) return;
805
+ event.preventDefault();
806
+ openPopupMenuAt(menu, (event as MouseEvent).clientX, (event as MouseEvent).clientY);
807
+ });
808
+ ```
809
+
134
810
  ## Correct composition and duplicated-markup trap
135
811
 
136
812
  Correct: let the pane stay unpadded while its children own the shared 8/1/8
137
813
  geometry and 44px targets.
138
814
 
139
815
  ```tsx
140
- <aside class="kui-pane">
141
- <nav class="kui-pane__content kui-content">
816
+ <Pane element="aside" contentElement="nav" label="Workspace" contentLabel="Workspace pages">
142
817
  <section>
143
- <ListHeader label="Workspace" />
144
- <ListItem action="open" label="Inbox" icon={inboxIcon} />
145
- <ListActionRow action="open-file" label="main.ts" trailingAction="file-actions" trailingActionLabel="Actions for main.ts" trailingActionIcon={moreIcon} />
818
+ <ListHeader label="Workspace" />
819
+ <ListItem action="open" label="Inbox" icon={inboxIcon} />
820
+ <ListActionRow
821
+ action="open-file"
822
+ label="main.ts"
823
+ trailingAction="file-actions"
824
+ trailingActionLabel="Actions for main.ts"
825
+ trailingActionIcon={moreIcon}
826
+ />
146
827
  </section>
147
- <div class="kui-content-item">Workspace details</div>
148
- </nav>
149
- </aside>
828
+ <ContentItem>Workspace details</ContentItem>
829
+ </Pane>
150
830
  ```
151
831
 
832
+ When that child is a selectable card, configure `ContentItem` with
833
+ `interactive`, `action`, `itemId`, and a `selectionMode`; wire
834
+ `wireContentItems` once for Enter and Space. The component owns selection,
835
+ hover, focus, and disabled paint in its reserved 1px frame (see
836
+ [Content items](./layout.md#content-items)).
837
+ For a multi-select card containing its own controls, place
838
+ `selectionMode="multiple"` ContentItems inside a labeled
839
+ `List selectionMode="multiple"`; the app supplies each card's `selected`
840
+ state and handles range gestures.
841
+ For wrapped document tiles, use `Grid minColumnWidth={px(160)}` with
842
+ `selectionMode="multiple"` and `ariaLabel`. The same ContentItem row/gridcell
843
+ contract applies, while `wireContentItems` follows the rendered tile layout
844
+ with all four arrow keys.
845
+
152
846
  Incorrect: duplicating component-like rows and compensating for nested padding
153
847
  forks the package anatomy and spacing contract.
154
848
 
@@ -160,26 +854,195 @@ forks the package anatomy and spacing contract.
160
854
  </aside>
161
855
  ```
162
856
 
857
+ ## Removable tags
858
+
859
+ Use `Chip` when a short tag has a remove action. `removeAction` becomes the
860
+ native button's `data-action`; `removeLabel` must name the specific tag for
861
+ assistive technology. Use `itemId` for the application's delegated handler.
862
+ The application updates its tag list after the action. `size="compact"` uses a
863
+ 20px chip with a 16px remove button, and `disabled` disables removal. Tone,
864
+ appearance, and shape use the same semantic choices as `Badge`; use `Badge`
865
+ when no removal is needed and the content is status or count metadata.
866
+ Pass an unsized, decorative `LucideIcon` through `icon` for a leading glyph;
867
+ Chip sizes it to its own type scale and aligns it beside the label. For a long
868
+ plain-text label, set `truncate`: the chip can shrink within a `Row`, its label
869
+ gets a one-line ellipsis, and the full string is the label's native `title`.
870
+ Keep a price or other unbreakable sibling in `Text wrap="nowrap"`. `truncate`
871
+ requires a string label so the title cannot lose text hidden inside markup.
872
+
873
+ ```tsx
874
+ <Chip
875
+ size="compact"
876
+ tone="info"
877
+ itemId={tag.id}
878
+ removeAction="remove-tag"
879
+ removeLabel={`Remove ${tag.name} tag`}
880
+ >
881
+ {tag.name}
882
+ </Chip>
883
+ ```
884
+
885
+ ## File and link chips
886
+
887
+ Give `Chip` an `href` when a short chip should open or download something,
888
+ such as the files a chat message references. The chip becomes a native `<a>`
889
+ with the same geometry, icon slot, truncation, and focus ring, plus hover
890
+ feedback. `download` is `true` or the suggested file name; `external` opens a
891
+ new tab with `rel="noopener noreferrer"` and announces it, like
892
+ `ListItemLink`. A link chip cannot also carry a remove button. Use
893
+ `ListItemLink` for a navigation row and `ToolbarActionLink` in a toolbar.
894
+
895
+ Inside a `brand-loud` or `neutral` `ContentItem` bubble, set
896
+ `tone="inherit"`: the chip follows the bubble's foreground and draws its shape
897
+ with a currentColor border (soft for `quiet`, full strength for `outline` and
898
+ `solid`) instead of a fill, so its label keeps the bubble's text contrast.
899
+ Its hover strengthens the border and underlines the label, and its focus ring
900
+ follows the foreground. Semantic tones keep their fills and add a currentColor
901
+ wash on hover. File names are data: keep their spelling.
902
+
903
+ ```tsx
904
+ <Row gap="xs" wrap>
905
+ {files.map((file) => (
906
+ <Chip
907
+ tone="inherit"
908
+ href={file.url}
909
+ download={file.name}
910
+ icon={<LucideIcon icon={FileText} name="file-text" />}
911
+ truncate
912
+ >
913
+ {file.name}
914
+ </Chip>
915
+ ))}
916
+ </Row>
917
+ ```
918
+
919
+ ## Wrapping exclusive choices
920
+
921
+ Use `ChoiceChips` when one value is chosen from a visible set that does not
922
+ fit one segmented track: a nine-color palette in a 560px dialog, say, which
923
+ must wrap onto several rows and still read well at phone width. Each choice is
924
+ a separate pill backed by a native radio, so the group is one Tab stop, arrow
925
+ keys move the selection, and the checked radio is the form value under `name`.
926
+ The pills wrap with the standard 8px control gap; never wrap a
927
+ `SegmentedControl` or button-appearance `wa-radio` set instead — their joined
928
+ borders turn ragged across rows.
929
+
930
+ Lead a choice with `swatch` for a color (a `CssColor` from `uiColor()`,
931
+ `colorVar()`, or the `fillColor` helper — `fillColor('#3b82f6')` — for an
932
+ application-chosen CSS color; never `foregroundColor()` for a fill), `swatch: 'transparent'` for the
933
+ no-color option (an outlined dot struck through diagonally), or a decorative
934
+ `icon`. Keep every label visible: the swatch and the selected tint are
935
+ supplementary. Name the group with `label`, or with `labelledBy` pointing at a
936
+ visible `FieldLabel`.
937
+
938
+ ```tsx
939
+ <FieldLabel id="command-color-label">Color</FieldLabel>
940
+ <ChoiceChips
941
+ name="color"
942
+ labelledBy="command-color-label"
943
+ value={command.color}
944
+ action="select-command-color"
945
+ choices={[
946
+ { value: 'transparent', label: 'Transparent', swatch: 'transparent' },
947
+ { value: 'blue', label: 'Blue', swatch: fillColor('#3b82f6') },
948
+ { value: 'green', label: 'Green', swatch: fillColor('#22c55e') },
949
+ ]}
950
+ />
951
+ ```
952
+
953
+ ### Wrapping multiple choices
954
+
955
+ Set `multiple` when the person may turn any number of the visible options on
956
+ or off — label filters, or the intents an annotation carries. The same pills
957
+ are then native checkboxes in a `role="group"`: each pill is a Tab stop, Space
958
+ toggles it, and every checked value submits under `name`. `value` becomes a
959
+ `readonly Value[]` (the type rejects a single value, and a single group
960
+ rejects an array). Delegate the `action` on `change` and read the checked
961
+ boxes by `name`, which lists them in choice order. A multiple group takes no `required`. Prefer a
962
+ multiple `Select` when the option list is long or space is tight.
963
+
964
+ On dark inverse chrome, such as a media viewer, put the chips inside a dark
965
+ appearance scope (`.wa-dark`, or any `color-scheme: dark` ancestor) rather
966
+ than restyling them: every chip color is a theme token that follows the scope.
967
+
968
+ ```tsx
969
+ <ChoiceChips
970
+ name="intents"
971
+ label="Annotation Intents"
972
+ multiple
973
+ value={annotation.intents}
974
+ action="toggle-annotation-intent"
975
+ choices={[
976
+ { value: 'comment', label: 'Comment' },
977
+ { value: 'bug', label: 'Bug' },
978
+ { value: 'question', label: 'Question' },
979
+ ]}
980
+ />
981
+ ```
982
+
983
+ ```ts
984
+ delegateActions(root, 'change', {
985
+ 'toggle-annotation-intent': () => {
986
+ annotation.intents = [
987
+ ...root.querySelectorAll<HTMLInputElement>(
988
+ 'input[name="intents"]:checked',
989
+ ),
990
+ ].map((box) => box.value);
991
+ },
992
+ });
993
+ ```
994
+
163
995
  ## Web Awesome overlap policy
164
996
 
165
997
  Web Awesome catalog coverage means supported and themed, not preferred. Import
166
998
  `@kerfjs/ui/webawesome` for Kerf JSX types, individual component modules for
167
- registration, and the CSS-only `@kerfjs/ui/webawesome.css` theme.
168
-
169
- | Web Awesome choice | Kerf decision |
170
- | --- | --- |
171
- | `wa-button`, `wa-dropdown`, `wa-dropdown-item` | Use buttons and command menus for actions. Use `ListItem` for a navigation row and `Select` when the user chooses a value. |
172
- | `wa-button-group` | Use only for exceptional grouped actions; use `SegmentedControl` for one-of-many selection. |
173
- | `wa-input`, `wa-tag` | Use for ordinary text and tags; use `TokenSearchField` only when text and ordered filter tokens form one editor. |
174
- | `wa-select`, `wa-option` | Use `Select`, which owns Kerf spacing, controlled rendering, icon stability, and explicit registration. |
175
- | `wa-tab-group`, `wa-tab`, `wa-tab-panel` | Use `TabBar`/`AppTab` for application tabs or `SegmentedControl` for compact local views. |
176
- | `wa-icon` | Use `LucideIcon` in application UI. |
177
- | `wa-split-panel` | Use `ResizableRegion` for Kerf application panes; retain Split Panel only when its distinct API is required. |
999
+ registration, and the CSS-only `@kerfjs/ui/webawesome.css` theme. The UX catalog
1000
+ marks the superseded or exceptional choices below with a visible `Discouraged`
1001
+ tag; Popup remains untagged because low-level anchored positioning can be the
1002
+ right primitive. Never render a `Discouraged` element directly in application,
1003
+ demo, or recipe markup: reach it only through the Kerf component that wraps or
1004
+ replaces it (`PopupMenu` renders `wa-dropdown`; `Select` renders `wa-select` /
1005
+ `wa-option`), and file a component gap rather than dropping to the raw tag.
1006
+
1007
+ | Web Awesome choice | Kerf decision |
1008
+ | ------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
1009
+ | `wa-button`, `wa-dropdown`, `wa-dropdown-item` | Use buttons for actions and `PopupMenu` for a command menu, never raw dropdown markup. Use `ListItem` for a navigation row and `Select` for a value. |
1010
+ | `wa-button-group` | Use only for exceptional grouped actions; use `SegmentedControl` for one-of-many selection. |
1011
+ | `wa-input`, `wa-tag` | Use `Chip` for removable or disabled tags; use `TokenSearchField` only when text and ordered filter tokens form one editor. |
1012
+ | `wa-select`, `wa-option` | Use `Select`, which owns Kerf spacing, controlled rendering, icon stability, and explicit registration. |
1013
+ | `wa-tab-group`, `wa-tab`, `wa-tab-panel` | Use `TabBar`/`AppTab` for application tabs or `SegmentedControl` for compact local views. |
1014
+ | `wa-icon` | Use `LucideIcon` in application UI. |
1015
+ | `wa-split-panel` | Use `ResizableRegion` for Kerf application panes; retain Split Panel only when its distinct API is required. |
178
1016
  | `wa-spinner`, `wa-progress-bar`, `wa-progress-ring`, `wa-skeleton` | Use `LoadingSpinner` for compact Kerf indeterminate activity; choose the ecosystem component when its distinct progress or placeholder semantics fit. |
179
- | `wa-callout`, `wa-toast`, `wa-toast-item` | Use `StateBanner` for persistent inline app status, `EmptyState` for absent content, and toasts only for transient feedback. |
180
- | `wa-popup`, `wa-tooltip`, `wa-popover` | Prefer the high-level interaction whose semantics fit. Use Popup only when its low-level anchored positioning removes custom placement code. |
181
- | `wa-tree`, `wa-tree-item`, `wa-animated-image`, `wa-comparison` | Use only for the specialized behavior named by the component. |
182
- | `wa-zoomable-frame` | Avoid for application UI; keep embedded-media behavior application-owned. |
1017
+ | `wa-callout`, `wa-toast`, `wa-toast-item` | Use `StateBanner` for persistent inline app status, `EmptyState` for absent content, and toasts only for transient feedback. |
1018
+ | `wa-popup`, `wa-tooltip`, `wa-popover` | Prefer the high-level interaction whose semantics fit. Use Popup only when its low-level anchored positioning removes custom placement code. |
1019
+ | `wa-tree`, `wa-tree-item`, `wa-animated-image`, `wa-comparison` | Use only for the specialized behavior named by the component. |
1020
+ | `wa-zoomable-frame` | Avoid for application UI; keep embedded-media behavior application-owned. |
183
1021
 
184
1022
  All other entries in the [Web Awesome theme contract](./webawesome-theme.md#coverage)
185
1023
  remain supported when their native semantic contract matches the product need.
1024
+
1025
+ ### Toolbar width visibility
1026
+
1027
+ `ToolbarText` and `ToolbarControlGroup` accept typed `hideBelow` and
1028
+ `showBelow` CSS lengths. Call `wireToolbarVisibility` with the application root from
1029
+ `@kerfjs/ui/wire-toolbar-visibility` after mounting, and call its disposer when
1030
+ the application unmounts. The nearest Toolbar's **content-box width**, excluding
1031
+ padding, borders, and safe-area insets, determines visibility. `hideBelow={px(416)}`
1032
+ hides strictly below 416px; `showBelow={px(416)}` shows strictly below 416px. At
1033
+ 416px the first is visible and the second hidden. Together they define the visible
1034
+ interval `[hideBelow, showBelow)`. Width rules intersect existing visibility and
1035
+ expanded-state rules; they never force a CSS-hidden group visible.
1036
+
1037
+ Use `px`, `rem`, `em`, `pct`, `space`, `lengthVar`, or `calc`/`plus` to construct
1038
+ lengths. Percentages resolve against that content box, `em` uses the child item's
1039
+ font size, and custom properties use its inherited and own token context. The
1040
+ helper follows resizes, theme/token/font changes, inserted items, nested toolbars,
1041
+ and relocated groups. Invalid, unresolved, negative, or contradictory thresholds
1042
+ leave the item visible under this width policy. Server-rendered content is visible
1043
+ until wiring runs; without browser observers, initial wiring and window resize
1044
+ still update it. Dispose to remove measurement probes and restore prior markers.
1045
+
1046
+ Hidden controls leave layout and keyboard navigation. A hidden busy group also
1047
+ hides only its own adjacent busy status. Keep primary actions always available;
1048
+ show a complementary overflow group for secondary actions at narrow widths.