@kerfjs/ui 5.0.0-beta.131 → 5.0.0-beta.133

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 (484) hide show
  1. package/README.md +26 -14
  2. package/ai/application-ui-profile-sync.cjs +5 -14
  3. package/ai/application-ui-profile.d.ts +0 -2
  4. package/ai/application-ui-profile.defaults.json +0 -4
  5. package/ai/application-ui-profile.mjs +5 -14
  6. package/ai/application-ui-profile.schema.json +0 -4
  7. package/ai/choice-wiring-mode.cjs +68 -0
  8. package/ai/component-catalog.json +13 -9
  9. package/ai/component-composition-rules.json +2 -10
  10. package/ai/component-composition.d.ts +0 -17
  11. package/ai/component-composition.json +9 -12
  12. package/ai/component-composition.schema.json +0 -59
  13. package/ai/components/combobox.md +1 -1
  14. package/ai/components/disclosure.md +2 -0
  15. package/ai/components/form.md +1 -2
  16. package/ai/components/popup-menu.md +1 -0
  17. package/ai/components/switch.md +1 -1
  18. package/ai/components/tab-panel.md +0 -1
  19. package/ai/components/toolbar-control-group.md +2 -2
  20. package/ai/public-api-signatures-v1.md +218 -205
  21. package/ai/skill.md +3 -20
  22. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  23. package/dist/backdrop-image.d.ts +1 -1
  24. package/dist/backdrop-image.js +1 -1
  25. package/dist/badge.js +1 -1
  26. package/dist/button.js +1 -1
  27. package/dist/catalog-library.d.ts +26 -0
  28. package/dist/catalog-library.js +2484 -0
  29. package/dist/catalog-library.js.map +1 -0
  30. package/dist/catalog-resources.d.ts +3 -3
  31. package/dist/catalog-resources.js +1 -20
  32. package/dist/catalog-resources.js.map +1 -1
  33. package/dist/catalog.d.ts +5 -4
  34. package/dist/catalog.js +151 -24
  35. package/dist/catalog.js.map +1 -1
  36. package/dist/checkbox-group.js +1 -1
  37. package/dist/checkbox.js +1 -1
  38. package/dist/chip.js +1 -1
  39. package/dist/choice-chips.d.ts +3 -3
  40. package/dist/choice-chips.js +1 -1
  41. package/dist/{chunk-Q5BPZPCO.js → chunk-22T7FFCL.js} +2 -2
  42. package/dist/{chunk-Q5BPZPCO.js.map → chunk-22T7FFCL.js.map} +1 -1
  43. package/dist/{chunk-BCHK33XL.js → chunk-27NEAPV7.js} +2 -2
  44. package/dist/{chunk-BCHK33XL.js.map → chunk-27NEAPV7.js.map} +1 -1
  45. package/dist/{chunk-76BLSFEA.js → chunk-2OYMXGW2.js} +6 -5
  46. package/dist/chunk-2OYMXGW2.js.map +1 -0
  47. package/dist/{chunk-EHR7R7YP.js → chunk-3DPHCZQB.js} +2 -2
  48. package/dist/{chunk-EHR7R7YP.js.map → chunk-3DPHCZQB.js.map} +1 -1
  49. package/dist/{chunk-RPJOLDSR.js → chunk-3UIZ36BP.js} +3 -3
  50. package/dist/{chunk-RPJOLDSR.js.map → chunk-3UIZ36BP.js.map} +1 -1
  51. package/dist/{chunk-QZA75NOK.js → chunk-42NLFCIN.js} +6 -6
  52. package/dist/{chunk-QZA75NOK.js.map → chunk-42NLFCIN.js.map} +1 -1
  53. package/dist/{chunk-UPHPFKAD.js → chunk-4GGIML4E.js} +2 -2
  54. package/dist/{chunk-UPHPFKAD.js.map → chunk-4GGIML4E.js.map} +1 -1
  55. package/dist/{chunk-5KWXM5O7.js → chunk-5C34PAUY.js} +2 -2
  56. package/dist/{chunk-5KWXM5O7.js.map → chunk-5C34PAUY.js.map} +1 -1
  57. package/dist/{chunk-6PHG2DMG.js → chunk-6OH734CG.js} +2 -2
  58. package/dist/{chunk-6PHG2DMG.js.map → chunk-6OH734CG.js.map} +1 -1
  59. package/dist/{chunk-E7ZRBMVQ.js → chunk-7XIY7G4K.js} +3 -3
  60. package/dist/{chunk-E7ZRBMVQ.js.map → chunk-7XIY7G4K.js.map} +1 -1
  61. package/dist/{chunk-OKZTLRGG.js → chunk-B5Q3KE4Z.js} +2 -2
  62. package/dist/{chunk-OKZTLRGG.js.map → chunk-B5Q3KE4Z.js.map} +1 -1
  63. package/dist/{chunk-SGYBIKQA.js → chunk-BADEZQ3V.js} +4 -4
  64. package/dist/chunk-BADEZQ3V.js.map +1 -0
  65. package/dist/{chunk-CJAKN2KZ.js → chunk-BLBMUD2W.js} +2 -2
  66. package/dist/{chunk-CJAKN2KZ.js.map → chunk-BLBMUD2W.js.map} +1 -1
  67. package/dist/{chunk-TRJS7M2H.js → chunk-BNRH7XG5.js} +2 -2
  68. package/dist/{chunk-TRJS7M2H.js.map → chunk-BNRH7XG5.js.map} +1 -1
  69. package/dist/{chunk-NA4LKVPX.js → chunk-BNXJQB2Y.js} +2 -2
  70. package/dist/{chunk-NA4LKVPX.js.map → chunk-BNXJQB2Y.js.map} +1 -1
  71. package/dist/{chunk-CCPWJDRW.js → chunk-BQHGXQVA.js} +2 -2
  72. package/dist/{chunk-CCPWJDRW.js.map → chunk-BQHGXQVA.js.map} +1 -1
  73. package/dist/{chunk-COQI4OMZ.js → chunk-BRDTP3RT.js} +1 -1
  74. package/dist/chunk-BRDTP3RT.js.map +1 -0
  75. package/dist/{chunk-RGB4DPMN.js → chunk-DGYGRMES.js} +3 -3
  76. package/dist/chunk-DGYGRMES.js.map +1 -0
  77. package/dist/{chunk-V3IXAI4L.js → chunk-DNNHT7RB.js} +2 -2
  78. package/dist/{chunk-V3IXAI4L.js.map → chunk-DNNHT7RB.js.map} +1 -1
  79. package/dist/{chunk-UU37OR3D.js → chunk-DT7KOBQJ.js} +1 -1
  80. package/dist/chunk-DT7KOBQJ.js.map +1 -0
  81. package/dist/{chunk-CUUW57WB.js → chunk-DXZA7OC6.js} +58 -14
  82. package/dist/chunk-DXZA7OC6.js.map +1 -0
  83. package/dist/{chunk-4OH6JSGU.js → chunk-F25UMYDX.js} +2 -2
  84. package/dist/{chunk-4OH6JSGU.js.map → chunk-F25UMYDX.js.map} +1 -1
  85. package/dist/{chunk-76VCWWUA.js → chunk-HSMSTCNZ.js} +2 -2
  86. package/dist/{chunk-76VCWWUA.js.map → chunk-HSMSTCNZ.js.map} +1 -1
  87. package/dist/{chunk-ECVTRAXN.js → chunk-IQOO3ZQK.js} +2 -2
  88. package/dist/{chunk-ECVTRAXN.js.map → chunk-IQOO3ZQK.js.map} +1 -1
  89. package/dist/{chunk-2FA3SX57.js → chunk-IXT2ARIM.js} +4 -4
  90. package/dist/{chunk-2FA3SX57.js.map → chunk-IXT2ARIM.js.map} +1 -1
  91. package/dist/{chunk-DBP3N6E5.js → chunk-JBL6SCNN.js} +3 -3
  92. package/dist/{chunk-DBP3N6E5.js.map → chunk-JBL6SCNN.js.map} +1 -1
  93. package/dist/{chunk-7KN5OQVN.js → chunk-JNQBPRAA.js} +2 -2
  94. package/dist/{chunk-7KN5OQVN.js.map → chunk-JNQBPRAA.js.map} +1 -1
  95. package/dist/{chunk-CPTQABDQ.js → chunk-JNSPYECP.js} +2 -2
  96. package/dist/{chunk-CPTQABDQ.js.map → chunk-JNSPYECP.js.map} +1 -1
  97. package/dist/{chunk-E7Q6UNCB.js → chunk-KBDYXGYT.js} +2 -2
  98. package/dist/{chunk-E7Q6UNCB.js.map → chunk-KBDYXGYT.js.map} +1 -1
  99. package/dist/{chunk-WVQDIOD7.js → chunk-KKMZP3YL.js} +2 -2
  100. package/dist/{chunk-WVQDIOD7.js.map → chunk-KKMZP3YL.js.map} +1 -1
  101. package/dist/{chunk-WSPXSWFG.js → chunk-KZEHTRPC.js} +3 -3
  102. package/dist/chunk-KZEHTRPC.js.map +1 -0
  103. package/dist/{chunk-KACJOE2N.js → chunk-LH5V6XGH.js} +2 -2
  104. package/dist/{chunk-KACJOE2N.js.map → chunk-LH5V6XGH.js.map} +1 -1
  105. package/dist/{chunk-VBXKYT4O.js → chunk-LH7YRRY7.js} +2 -2
  106. package/dist/{chunk-VBXKYT4O.js.map → chunk-LH7YRRY7.js.map} +1 -1
  107. package/dist/{chunk-QXXLDY6I.js → chunk-LI7AQ5NQ.js} +4 -4
  108. package/dist/{chunk-QXXLDY6I.js.map → chunk-LI7AQ5NQ.js.map} +1 -1
  109. package/dist/{chunk-CAB5IWV7.js → chunk-LSFPZR52.js} +4 -4
  110. package/dist/{chunk-CAB5IWV7.js.map → chunk-LSFPZR52.js.map} +1 -1
  111. package/dist/{chunk-CRHKWHTA.js → chunk-LUWZ7UZQ.js} +4 -4
  112. package/dist/{chunk-CRHKWHTA.js.map → chunk-LUWZ7UZQ.js.map} +1 -1
  113. package/dist/{chunk-CMG4OZPV.js → chunk-LWWIBUDK.js} +2 -2
  114. package/dist/{chunk-CMG4OZPV.js.map → chunk-LWWIBUDK.js.map} +1 -1
  115. package/dist/{chunk-LOW7J7SE.js → chunk-MHF2NK7F.js} +4 -4
  116. package/dist/{chunk-LOW7J7SE.js.map → chunk-MHF2NK7F.js.map} +1 -1
  117. package/dist/{chunk-JHUEYWWI.js → chunk-MPM6YBOM.js} +2 -2
  118. package/dist/{chunk-JHUEYWWI.js.map → chunk-MPM6YBOM.js.map} +1 -1
  119. package/dist/{chunk-3UEMBHBK.js → chunk-MPT6Y7Z2.js} +2 -2
  120. package/dist/{chunk-3UEMBHBK.js.map → chunk-MPT6Y7Z2.js.map} +1 -1
  121. package/dist/{chunk-OZKBIPXU.js → chunk-NO2XO7S6.js} +3 -3
  122. package/dist/{chunk-OZKBIPXU.js.map → chunk-NO2XO7S6.js.map} +1 -1
  123. package/dist/{chunk-FQETQ7CM.js → chunk-NSNQWDJ4.js} +2 -2
  124. package/dist/{chunk-FQETQ7CM.js.map → chunk-NSNQWDJ4.js.map} +1 -1
  125. package/dist/{chunk-UOBC36FL.js → chunk-OW2ODKHN.js} +2 -2
  126. package/dist/{chunk-UOBC36FL.js.map → chunk-OW2ODKHN.js.map} +1 -1
  127. package/dist/{chunk-PVKAIVKE.js → chunk-P427MACE.js} +63 -74
  128. package/dist/chunk-P427MACE.js.map +1 -0
  129. package/dist/{chunk-LET362AM.js → chunk-PBXTHYB4.js} +2 -2
  130. package/dist/chunk-PBXTHYB4.js.map +1 -0
  131. package/dist/{chunk-C4FBYP2D.js → chunk-PIYFVFPL.js} +9 -3
  132. package/dist/chunk-PIYFVFPL.js.map +1 -0
  133. package/dist/{chunk-FR5G77K5.js → chunk-PJKH2GZ3.js} +2 -2
  134. package/dist/{chunk-FR5G77K5.js.map → chunk-PJKH2GZ3.js.map} +1 -1
  135. package/dist/{chunk-FNJA4S6J.js → chunk-QNA27ABY.js} +3 -3
  136. package/dist/{chunk-FNJA4S6J.js.map → chunk-QNA27ABY.js.map} +1 -1
  137. package/dist/{chunk-RHMY45DK.js → chunk-QNB5DKKP.js} +5 -5
  138. package/dist/{chunk-RHMY45DK.js.map → chunk-QNB5DKKP.js.map} +1 -1
  139. package/dist/{chunk-XO5IOPM5.js → chunk-QWAAR5JX.js} +8 -8
  140. package/dist/{chunk-XO5IOPM5.js.map → chunk-QWAAR5JX.js.map} +1 -1
  141. package/dist/{chunk-6BXPN5SC.js → chunk-RO3TSZ5W.js} +3 -3
  142. package/dist/{chunk-6BXPN5SC.js.map → chunk-RO3TSZ5W.js.map} +1 -1
  143. package/dist/{chunk-4IXG6XCT.js → chunk-RUCUU7Z7.js} +2 -2
  144. package/dist/{chunk-4IXG6XCT.js.map → chunk-RUCUU7Z7.js.map} +1 -1
  145. package/dist/{chunk-QSJAIXLM.js → chunk-SDQZYSCA.js} +3 -3
  146. package/dist/{chunk-QSJAIXLM.js.map → chunk-SDQZYSCA.js.map} +1 -1
  147. package/dist/{chunk-3XSY5LAB.js → chunk-SXZTDJMG.js} +4 -4
  148. package/dist/{chunk-3XSY5LAB.js.map → chunk-SXZTDJMG.js.map} +1 -1
  149. package/dist/{chunk-LJV2FNOC.js → chunk-T7M5FKCE.js} +3 -3
  150. package/dist/{chunk-LJV2FNOC.js.map → chunk-T7M5FKCE.js.map} +1 -1
  151. package/dist/{chunk-KS7EXW4P.js → chunk-TIRBSPP2.js} +2 -2
  152. package/dist/{chunk-KS7EXW4P.js.map → chunk-TIRBSPP2.js.map} +1 -1
  153. package/dist/{chunk-2GEGIPDR.js → chunk-U5SQOZNK.js} +4 -4
  154. package/dist/{chunk-2GEGIPDR.js.map → chunk-U5SQOZNK.js.map} +1 -1
  155. package/dist/{chunk-Y4VR6VNM.js → chunk-UPOS666Q.js} +2 -2
  156. package/dist/{chunk-Y4VR6VNM.js.map → chunk-UPOS666Q.js.map} +1 -1
  157. package/dist/{chunk-YE6KCAIN.js → chunk-USSGJ3MD.js} +2 -2
  158. package/dist/{chunk-YE6KCAIN.js.map → chunk-USSGJ3MD.js.map} +1 -1
  159. package/dist/{chunk-4UWLHKNU.js → chunk-UWLJ7UEK.js} +3 -3
  160. package/dist/{chunk-4UWLHKNU.js.map → chunk-UWLJ7UEK.js.map} +1 -1
  161. package/dist/{chunk-SNUDT6AX.js → chunk-VHAYQGWR.js} +2 -2
  162. package/dist/{chunk-SNUDT6AX.js.map → chunk-VHAYQGWR.js.map} +1 -1
  163. package/dist/{chunk-DV6GE57V.js → chunk-VWGRAE2Q.js} +2 -2
  164. package/dist/chunk-VWGRAE2Q.js.map +1 -0
  165. package/dist/{chunk-4L5ZIKDZ.js → chunk-W7J3MQNV.js} +2 -2
  166. package/dist/{chunk-4L5ZIKDZ.js.map → chunk-W7J3MQNV.js.map} +1 -1
  167. package/dist/{chunk-MVWR5WRX.js → chunk-WWDDKUDW.js} +3 -3
  168. package/dist/{chunk-MVWR5WRX.js.map → chunk-WWDDKUDW.js.map} +1 -1
  169. package/dist/{chunk-4CYCJ3NY.js → chunk-XNSYDA6G.js} +10 -10
  170. package/dist/{chunk-4CYCJ3NY.js.map → chunk-XNSYDA6G.js.map} +1 -1
  171. package/dist/{chunk-WEQNPYVA.js → chunk-XXKRHKFH.js} +2 -2
  172. package/dist/{chunk-WEQNPYVA.js.map → chunk-XXKRHKFH.js.map} +1 -1
  173. package/dist/{chunk-OQFWF7Q7.js → chunk-XZ253TGP.js} +3 -3
  174. package/dist/{chunk-OQFWF7Q7.js.map → chunk-XZ253TGP.js.map} +1 -1
  175. package/dist/{chunk-3TBMGGTA.js → chunk-Y672Z7QY.js} +2 -2
  176. package/dist/{chunk-3TBMGGTA.js.map → chunk-Y672Z7QY.js.map} +1 -1
  177. package/dist/chunk-YM7VF5SY.js +22 -0
  178. package/dist/chunk-YM7VF5SY.js.map +1 -0
  179. package/dist/{chunk-S7QB5KMM.js → chunk-YRQ4KKLG.js} +29 -56
  180. package/dist/chunk-YRQ4KKLG.js.map +1 -0
  181. package/dist/{chunk-MMOQR426.js → chunk-YS3H6DEQ.js} +2 -2
  182. package/dist/{chunk-MMOQR426.js.map → chunk-YS3H6DEQ.js.map} +1 -1
  183. package/dist/{chunk-QR7MGGOM.js → chunk-YVGHWCMY.js} +3 -3
  184. package/dist/{chunk-QR7MGGOM.js.map → chunk-YVGHWCMY.js.map} +1 -1
  185. package/dist/{chunk-IPYQYLSX.js → chunk-ZDI5I2HT.js} +6 -6
  186. package/dist/{chunk-IPYQYLSX.js.map → chunk-ZDI5I2HT.js.map} +1 -1
  187. package/dist/{chunk-JAC6AVZN.js → chunk-ZIZXXYXM.js} +3 -3
  188. package/dist/{chunk-JAC6AVZN.js.map → chunk-ZIZXXYXM.js.map} +1 -1
  189. package/dist/collapsible-panel.d.ts +5 -5
  190. package/dist/collapsible-panel.js +4 -4
  191. package/dist/collapsible-panel.js.map +1 -1
  192. package/dist/color-field.js +2 -2
  193. package/dist/color-picker.js +1 -1
  194. package/dist/color-swatches.js +1 -1
  195. package/dist/column-explorer.d.ts +2 -2
  196. package/dist/column-explorer.js +166 -21
  197. package/dist/column-explorer.js.map +1 -1
  198. package/dist/column-track.d.ts +1 -1
  199. package/dist/column-track.js +1 -1
  200. package/dist/combobox.d.ts +8 -4
  201. package/dist/combobox.js +1 -1
  202. package/dist/compose-B_GFfFhm.d.ts +36 -0
  203. package/dist/content-item.d.ts +1 -1
  204. package/dist/content-item.js +1 -1
  205. package/dist/content-swap.d.ts +3 -3
  206. package/dist/content-swap.js +1 -1
  207. package/dist/corner-status.d.ts +3 -3
  208. package/dist/corner-status.js +1 -1
  209. package/dist/device-class.js +101 -1
  210. package/dist/device-class.js.map +1 -1
  211. package/dist/disclosure-arrow.d.ts +3 -3
  212. package/dist/disclosure-arrow.js +1 -1
  213. package/dist/disclosure.d.ts +14 -2
  214. package/dist/disclosure.js +13 -4
  215. package/dist/disclosure.js.map +1 -1
  216. package/dist/edge-activity-indicator.d.ts +3 -3
  217. package/dist/edge-activity-indicator.js +1 -1
  218. package/dist/empty-state.d.ts +3 -3
  219. package/dist/empty-state.js +1 -1
  220. package/dist/{extension-attributes-IJ4decoa.d.ts → extension-attributes-CnqvBmj3.d.ts} +1 -1
  221. package/dist/file-picker.d.ts +3 -3
  222. package/dist/file-picker.js +1 -1
  223. package/dist/floating-toolbar.d.ts +3 -3
  224. package/dist/floating-toolbar.js +1 -1
  225. package/dist/form.d.ts +3 -3
  226. package/dist/form.js +1 -1
  227. package/dist/framed-list.js +1 -1
  228. package/dist/gauge.js +1 -1
  229. package/dist/grid.js +1 -1
  230. package/dist/index.d.ts +2 -2
  231. package/dist/index.js +66 -66
  232. package/dist/list-action-row.js +1 -1
  233. package/dist/list-detail-dialog.d.ts +3 -3
  234. package/dist/list-detail-dialog.js +7 -7
  235. package/dist/list-detail-dialog.js.map +1 -1
  236. package/dist/list-header.d.ts +1 -1
  237. package/dist/list-header.js +1 -1
  238. package/dist/list-inset-control.d.ts +3 -3
  239. package/dist/list-inset-control.js +1 -1
  240. package/dist/list-inset-text.js +1 -1
  241. package/dist/list-item.js +1 -1
  242. package/dist/list.d.ts +1 -1
  243. package/dist/list.js +1 -1
  244. package/dist/loading-spinner.d.ts +3 -3
  245. package/dist/loading-spinner.js +1 -1
  246. package/dist/lucide-icon.d.ts +3 -3
  247. package/dist/lucide-icon.js +1 -1
  248. package/dist/message-composer.js +1 -1
  249. package/dist/{nav-stack-DKrvqFjA.d.ts → nav-stack-IKSMxo2A.d.ts} +3 -3
  250. package/dist/nav-stack.d.ts +2 -2
  251. package/dist/nav-stack.js +1 -1
  252. package/dist/paged-view.d.ts +3 -3
  253. package/dist/paged-view.js +1 -1
  254. package/dist/paged-view.js.map +1 -1
  255. package/dist/pane.js +1 -1
  256. package/dist/popup-menu-register.js +7 -1
  257. package/dist/popup-menu-register.js.map +1 -1
  258. package/dist/popup-menu.d.ts +3 -20
  259. package/dist/popup-menu.js +1 -1
  260. package/dist/progress-bar.js +1 -1
  261. package/dist/progress-ring.js +1 -1
  262. package/dist/radio-group.js +1 -1
  263. package/dist/resizable-region.d.ts +3 -3
  264. package/dist/resizable-region.js +1 -1
  265. package/dist/row.d.ts +1 -1
  266. package/dist/row.js +1 -1
  267. package/dist/scroll-effect.d.ts +1 -1
  268. package/dist/scroll-effect.js +1 -1
  269. package/dist/{search-field-7wLt3Bd5.d.ts → search-field-BA48RaJY.d.ts} +3 -3
  270. package/dist/search-field-model.d.ts +2 -2
  271. package/dist/search-field.d.ts +2 -2
  272. package/dist/search-field.js +1 -1
  273. package/dist/segmented-control.d.ts +3 -3
  274. package/dist/segmented-control.js +1 -1
  275. package/dist/select-register.js +3 -2
  276. package/dist/select-register.js.map +1 -1
  277. package/dist/select.d.ts +3 -13
  278. package/dist/select.js +1 -1
  279. package/dist/sized-region.d.ts +3 -3
  280. package/dist/sized-region.js +1 -1
  281. package/dist/skeleton.d.ts +3 -3
  282. package/dist/skeleton.js +1 -1
  283. package/dist/slider.js +1 -1
  284. package/dist/spacer.d.ts +3 -3
  285. package/dist/spacer.js +1 -1
  286. package/dist/split-button.js +1 -1
  287. package/dist/split-view.d.ts +4 -4
  288. package/dist/split-view.js +1 -1
  289. package/dist/state-banner.js +1 -1
  290. package/dist/styles/components/actions/popup-menu/popup-menu.css +12 -125
  291. package/dist/styles/components/actions/toolbar/toolbar.css +0 -7
  292. package/dist/styles/components/data-display/value-table/value-table.css +3 -1
  293. package/dist/styles/components/forms/select/select.css +0 -60
  294. package/dist/styles/components/forms/switch/switch.css +9 -0
  295. package/dist/styles/components/forms/text-field/text-field.css +1 -1
  296. package/dist/styles/components/surfaces/disclosure/disclosure.css +24 -4
  297. package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +1 -1
  298. package/dist/styles/disclosure.css +24 -4
  299. package/dist/styles/popup-menu.css +12 -125
  300. package/dist/styles/select.css +0 -60
  301. package/dist/styles/surface-scaffold.css +1 -1
  302. package/dist/styles/switch.css +9 -0
  303. package/dist/styles/text-field.css +1 -1
  304. package/dist/styles/toolbar.css +0 -7
  305. package/dist/styles/value-table.css +3 -1
  306. package/dist/styles/webawesome.css +7 -0
  307. package/dist/summary-row.js +1 -1
  308. package/dist/sunken-panel.d.ts +3 -3
  309. package/dist/sunken-panel.js +1 -1
  310. package/dist/surface-scaffold.d.ts +9 -5
  311. package/dist/surface-scaffold.js +1 -1
  312. package/dist/switch.d.ts +3 -1
  313. package/dist/switch.js +1 -1
  314. package/dist/tab-bar-item.js +1 -1
  315. package/dist/tab-bar.d.ts +3 -3
  316. package/dist/tab-bar.js +1 -1
  317. package/dist/tab-navigator.d.ts +3 -3
  318. package/dist/tab-navigator.js +2 -2
  319. package/dist/tab-navigator.js.map +1 -1
  320. package/dist/tab-panel.d.ts +3 -3
  321. package/dist/tab-panel.js +1 -1
  322. package/dist/tag-field.d.ts +3 -3
  323. package/dist/tag-field.js +1 -1
  324. package/dist/text-field.d.ts +2 -2
  325. package/dist/text-field.js +1 -1
  326. package/dist/text.d.ts +1 -1
  327. package/dist/text.js +1 -1
  328. package/dist/toolbar-control-group.d.ts +7 -7
  329. package/dist/toolbar-control-group.js +1 -1
  330. package/dist/toolbar-text.d.ts +3 -3
  331. package/dist/toolbar-text.js +1 -1
  332. package/dist/toolbar.d.ts +3 -3
  333. package/dist/toolbar.js +1 -1
  334. package/dist/tree-list.d.ts +3 -3
  335. package/dist/tree-list.js +151 -3
  336. package/dist/tree-list.js.map +1 -1
  337. package/dist/{tree-rows-Bms5QJvG.d.ts → tree-rows-BXChApji.d.ts} +1 -1
  338. package/dist/{types-DmHWkSd6.d.ts → types-CuKf5G87.d.ts} +6 -2
  339. package/dist/value-preview.d.ts +3 -3
  340. package/dist/value-preview.js +1 -1
  341. package/dist/value-table.d.ts +5 -5
  342. package/dist/value-table.js +1 -1
  343. package/dist/wire-catalog.d.ts +5 -5
  344. package/dist/wire-catalog.js +13 -4
  345. package/dist/wire-catalog.js.map +1 -1
  346. package/dist/wire-color-fields.js +73 -2
  347. package/dist/wire-color-fields.js.map +1 -1
  348. package/dist/wire-color-pickers.js +1 -1
  349. package/dist/wire-column-explorer.js +92 -1
  350. package/dist/wire-column-explorer.js.map +1 -1
  351. package/dist/wire-content-items.js +204 -1
  352. package/dist/wire-content-items.js.map +1 -1
  353. package/dist/wire-nav-stack.js +423 -1
  354. package/dist/wire-nav-stack.js.map +1 -1
  355. package/dist/wire-resizable-regions.js +1 -1
  356. package/dist/wire-search-fields.d.ts +2 -2
  357. package/dist/wire-search-fields.js +1 -1
  358. package/dist/wire-sidebar.js +228 -1
  359. package/dist/wire-sidebar.js.map +1 -1
  360. package/dist/wire-sliders.js +29 -1
  361. package/dist/wire-sliders.js.map +1 -1
  362. package/dist/wire-tab-bars.d.ts +1 -1
  363. package/dist/wire-tab-navigator.js +150 -1
  364. package/dist/wire-tab-navigator.js.map +1 -1
  365. package/dist/wire-tag-fields.js +252 -2
  366. package/dist/wire-tag-fields.js.map +1 -1
  367. package/dist/wire-tree-list.js +186 -1
  368. package/dist/wire-tree-list.js.map +1 -1
  369. package/dist/wire-workbench.js +1 -1
  370. package/dist/workbench-dialog.d.ts +3 -3
  371. package/dist/workbench-dialog.js +5 -5
  372. package/dist/workbench-dialog.js.map +1 -1
  373. package/dist/workbench.d.ts +4 -4
  374. package/dist/workbench.js +1 -1
  375. package/docs/accessibility.md +1 -1
  376. package/docs/catalog.md +59 -0
  377. package/docs/component-contract.md +4 -3
  378. package/docs/component-selection.md +7 -2
  379. package/docs/disclosure.md +22 -0
  380. package/docs/examples/composed-catalog.tsx +113 -0
  381. package/docs/examples/scoped-combobox.ts +99 -0
  382. package/docs/examples/typed-action-table.tsx +34 -0
  383. package/docs/forms-and-validation.md +2 -0
  384. package/docs/investigations/combobox-seed-ownership.md +49 -0
  385. package/docs/investigations/measure-scoped-combobox.mjs +87 -0
  386. package/docs/investigations/scoped-combobox.md +98 -0
  387. package/docs/list-detail-dialog.md +2 -3
  388. package/docs/scroll-effect.md +2 -2
  389. package/docs/surface-scaffold.md +5 -6
  390. package/docs/switch.md +21 -0
  391. package/docs/ui-doctor.md +16 -0
  392. package/docs/workbench-dialog.md +2 -3
  393. package/doctor/cli.mjs +38 -25
  394. package/doctor/explain-use.mjs +320 -0
  395. package/llms.txt +3 -44
  396. package/package.json +6 -33
  397. package/ux-demo/recipes/app-shell.tsx +141 -48
  398. package/ux-demo/recipes/collapsible-sidebar.tsx +169 -43
  399. package/ux-demo/recipes/compact-toolbar.tsx +114 -22
  400. package/ux-demo/recipes/composer-form.tsx +104 -14
  401. package/ux-demo/recipes/list-detail-dialog.tsx +84 -38
  402. package/ux-demo/recipes/list-workspace-states.tsx +152 -29
  403. package/ux-demo/recipes/loading-inspector.tsx +174 -30
  404. package/ux-demo/recipes/media-detail.tsx +146 -29
  405. package/ux-demo/recipes/navigation-sidebar.tsx +113 -24
  406. package/ux-demo/recipes/navigation-stack.tsx +43 -7
  407. package/ux-demo/recipes/workspace-header.tsx +66 -2
  408. package/ai/component-props-overlay.json +0 -8910
  409. package/ai/component-props-overlay.schema.json +0 -82
  410. package/ai/component-props.json +0 -34289
  411. package/ai/component-props.schema.json +0 -408
  412. package/ai/view-document.schema.json +0 -467
  413. package/dist/browser/editor.js +0 -50
  414. package/dist/chunk-3K5V3ZSD.js +0 -77
  415. package/dist/chunk-3K5V3ZSD.js.map +0 -1
  416. package/dist/chunk-63TJH2RF.js +0 -231
  417. package/dist/chunk-63TJH2RF.js.map +0 -1
  418. package/dist/chunk-6V6UHPJD.js +0 -153
  419. package/dist/chunk-6V6UHPJD.js.map +0 -1
  420. package/dist/chunk-76BLSFEA.js.map +0 -1
  421. package/dist/chunk-C4FBYP2D.js.map +0 -1
  422. package/dist/chunk-COQI4OMZ.js.map +0 -1
  423. package/dist/chunk-CUUW57WB.js.map +0 -1
  424. package/dist/chunk-D2KHQNJ6.js +0 -155
  425. package/dist/chunk-D2KHQNJ6.js.map +0 -1
  426. package/dist/chunk-DV6GE57V.js.map +0 -1
  427. package/dist/chunk-FCO7BT4P.js +0 -256
  428. package/dist/chunk-FCO7BT4P.js.map +0 -1
  429. package/dist/chunk-GHV36C6I.js +0 -94
  430. package/dist/chunk-GHV36C6I.js.map +0 -1
  431. package/dist/chunk-HPOXLOVC.js +0 -184
  432. package/dist/chunk-HPOXLOVC.js.map +0 -1
  433. package/dist/chunk-I2K4OQKB.js +0 -426
  434. package/dist/chunk-I2K4OQKB.js.map +0 -1
  435. package/dist/chunk-LET362AM.js.map +0 -1
  436. package/dist/chunk-PVKAIVKE.js.map +0 -1
  437. package/dist/chunk-RGB4DPMN.js.map +0 -1
  438. package/dist/chunk-S7QB5KMM.js.map +0 -1
  439. package/dist/chunk-SGYBIKQA.js.map +0 -1
  440. package/dist/chunk-TXBNPEIJ.js +0 -31
  441. package/dist/chunk-TXBNPEIJ.js.map +0 -1
  442. package/dist/chunk-UU37OR3D.js.map +0 -1
  443. package/dist/chunk-WCMGPAY2.js +0 -103
  444. package/dist/chunk-WCMGPAY2.js.map +0 -1
  445. package/dist/chunk-WSPXSWFG.js.map +0 -1
  446. package/dist/chunk-X43QQWVC.js +0 -208
  447. package/dist/chunk-X43QQWVC.js.map +0 -1
  448. package/dist/chunk-YA6OAJY6.js +0 -155
  449. package/dist/chunk-YA6OAJY6.js.map +0 -1
  450. package/dist/editor.d.ts +0 -447
  451. package/dist/editor.js +0 -15608
  452. package/dist/editor.js.map +0 -1
  453. package/dist/styles/editor/editor.css +0 -585
  454. package/dist/styles/editor.css +0 -4
  455. package/dist/view-runtime.d.ts +0 -9
  456. package/dist/view-runtime.js +0 -8
  457. package/dist/view-runtime.js.map +0 -1
  458. package/docs/editor-host.md +0 -397
  459. package/docs/view.md +0 -314
  460. package/props/cli.d.mts +0 -1
  461. package/props/cli.mjs +0 -142
  462. package/props/component-props.d.mts +0 -180
  463. package/props/component-props.mjs +0 -1208
  464. package/view/catalog.mjs +0 -229
  465. package/view/child-kind.mjs +0 -22
  466. package/view/cli.d.mts +0 -18
  467. package/view/cli.mjs +0 -316
  468. package/view/contract.mjs +0 -418
  469. package/view/css-grammar.mjs +0 -93
  470. package/view/generate.d.mts +0 -16
  471. package/view/generate.mjs +0 -739
  472. package/view/index.d.mts +0 -491
  473. package/view/index.mjs +0 -36
  474. package/view/interpret.mjs +0 -339
  475. package/view/project-types-worker.mjs +0 -55
  476. package/view/project-types.d.mts +0 -43
  477. package/view/project-types.mjs +0 -618
  478. package/view/type-expression.d.mts +0 -15
  479. package/view/type-expression.mjs +0 -162
  480. package/view/types.mjs +0 -165
  481. package/view/validate-move.mjs +0 -353
  482. package/view/validate.mjs +0 -1649
  483. package/vite-editor.d.mts +0 -173
  484. package/vite-editor.mjs +0 -548
package/README.md CHANGED
@@ -124,6 +124,16 @@ mount(root, () => (
124
124
 
125
125
  Components return Kerf `SafeHtml`. They do not own application state or attach transient listeners. Actions are stable `data-action` hooks; the application wires them once with `delegate()` or `delegateActions()` and retains the disposer.
126
126
 
127
+ For an application-owned command table, derive the accepted names from its
128
+ handlers with `const click = action<keyof typeof clicks>`. Pass the resulting
129
+ spec's `.value` to a UI component or spread its `.attrs` onto native JSX.
130
+ Use `satisfies Record<string, ActionHandler<…>>` to check the table while
131
+ retaining its literal keys. An explicit `Record<string, …>` annotation widens
132
+ the keys to arbitrary strings. Define a separate table for each event. Direct
133
+ string props still accept application- or plugin-defined names. The
134
+ [typed action table example](./docs/examples/typed-action-table.tsx) shows
135
+ both emitters and the owning root's setup and cleanup.
136
+
127
137
  Component content positions use one convention: `children` is the homogeneous
128
138
  primary region, while semantic positions and replacement content use explicit
129
139
  named `SafeHtml` props such as `header`, `footer`, `leading`, `trailing`,
@@ -440,6 +450,11 @@ pretending app-local components are `@kerfjs/ui` exports. A package that
440
450
  keeps a `kerf.components.json` generates this extension with
441
451
  `kerf-component-catalog` by setting `kerfComponentCatalog.selectionOutput`
442
452
  instead of maintaining a second JSON by hand.
453
+ A developer catalog can import the published `kerfCatalogPackage` from
454
+ `@kerfjs/ui/catalog-library`, including its Web Awesome integration catalog.
455
+ `composeCatalog` resolves package-qualified navigation, Uses and Used by, and
456
+ optional previews. See [Import a library catalog](./docs/catalog.md#import-a-library-catalog).
457
+
443
458
  For a consumer UX demo, `@kerfjs/ui/catalog-projection` derives rows and
444
459
  relationships from that extension; `kerf-catalog-demo --write` emits a typed
445
460
  module and `--check` catches drift. See the [catalog guide](./docs/catalog.md)
@@ -553,7 +568,7 @@ context so adding the declaration boundary does not mutate a frozen measured
553
568
  regression suite.
554
569
 
555
570
  `npm run catalog:sync` deterministically projects the fields used by the UX
556
- catalog into `ux-demo/catalog.generated.ts`, including the existing guidance
571
+ catalog into `src/catalog/packages/catalog.generated.ts`, including the existing guidance
557
572
  path and the first-party source path for each main, recipe, or Web Awesome
558
573
  specimen. First-party component entries also derive their implementation path
559
574
  from the canonical browser import. Do not edit that generated file.
@@ -920,19 +935,6 @@ engine removes custom placement code, and treat Tree, Animated Image,
920
935
  Comparison, and Zoomable Frame as exceptional rather than default patterns.
921
936
  The detailed rationale lives in the theme contract.
922
937
 
923
- ## Editor
924
-
925
- `@kerfjs/ui/vite-editor` runs the Kerf UI editor in your application's own
926
- Vite dev server (`plugins: [kerfUiEditor()]`, then open `/__kerf-ui-editor/`),
927
- so your components preview and edit beside Kerf UI's. `@kerfjs/ui/editor` is
928
- the editor module for a host that builds its own page. See the
929
- [editor host guide](./docs/editor-host.md).
930
-
931
- The editor writes view documents (`*.kui.json`). `@kerfjs/ui/view` validates
932
- them (`validateView`) and renders them at runtime (`interpretView`), and the
933
- `kerf-ui-view` CLI generates each one's read-only, typed `*.view.ts` module
934
- (`generate`, `check`, `diff`). See the [view documents guide](./docs/view.md).
935
-
936
938
  ## Design and tool guidance
937
939
 
938
940
  - [Component selection and composition](./docs/component-selection.md)
@@ -985,3 +987,13 @@ declarations. An application that bundles Web Awesome components
985
987
  redistributes them, so it should retain Web Awesome's MIT notice; Font Awesome
986
988
  Free, whose icons Web Awesome embeds, asks that the attribution comments in
987
989
  those icons stay intact.
990
+
991
+ To inspect one Combobox or ChoiceChips use, run
992
+ `kerf-ui-doctor --root . --explain-use src/picker.tsx:12:7` at a position
993
+ inside its JSX opening tag. Add `--format json` for the versioned result.
994
+ The query reads the consumer's nearest workspace tsconfig and the shipped
995
+ component contract. With no tsconfig it inspects the selected file and its
996
+ imports. It reports literal interaction mode, application-owned state, wiring
997
+ and cleanup call sites, and unresolved relationships. Use those sites to
998
+ verify root containment and actual teardown. Dynamic props and application
999
+ wrappers can leave the mode or contract unknown.
@@ -230,11 +230,7 @@ function validateApplicationUiProfile(profile, options = {}) {
230
230
  for (const [index, catalog] of catalogs.entries()) {
231
231
  const path = `$.catalogs[${index}]`;
232
232
  if (!objectAt(catalog, path)) continue;
233
- rejectUnknown(
234
- catalog,
235
- ['package', 'selection', 'composition', 'props'],
236
- path,
237
- );
233
+ rejectUnknown(catalog, ['package', 'selection', 'composition'], path);
238
234
  if (!catalog.package)
239
235
  add('KUI-P003', `${path}.package`, 'Catalog package is required.');
240
236
  if (packages.has(catalog.package))
@@ -250,8 +246,8 @@ function validateApplicationUiProfile(profile, options = {}) {
250
246
  `${path}.selection`,
251
247
  'The @kerfjs/ui catalog requires its component-catalog.json selection location.',
252
248
  );
253
- // selection is @kerfjs/ui-only and props (component-props.json) is optional.
254
- for (const kind of ['selection', 'composition', 'props']) {
249
+ // selection is @kerfjs/ui-only and optional elsewhere.
250
+ for (const kind of ['selection', 'composition']) {
255
251
  if (kind !== 'composition' && !catalog[kind]) continue;
256
252
  rejectUnknown(
257
253
  catalog[kind],
@@ -480,18 +476,13 @@ function catalogFacts(resolved, fallbackCatalogs, seedRules) {
480
476
  for (const [index, catalog] of (resolved.profile.catalogs ?? []).entries()) {
481
477
  const owner = resolved.provenance[`$catalogs.${catalog.package}`];
482
478
  if (!owner) continue;
483
- for (const kind of ['selection', 'composition', 'props']) {
479
+ for (const kind of ['selection', 'composition']) {
484
480
  const location = catalog[kind];
485
481
  if (!location?.path) continue;
486
482
  const path = resolve(dirname(owner), location.path);
487
483
  try {
488
484
  const artifact = JSON.parse(readFileSync(path, 'utf8'));
489
- // component-props.json names its version in `schema`, not schemaVersion.
490
- const version =
491
- kind === 'props'
492
- ? artifact.schema ===
493
- `kerf-ui-component-props/v${location.schemaVersion}`
494
- : artifact.schemaVersion === location.schemaVersion;
485
+ const version = artifact.schemaVersion === location.schemaVersion;
495
486
  if (artifact.package !== catalog.package || !version)
496
487
  diagnostics.push({
497
488
  code: 'KUI-P020',
@@ -15,8 +15,6 @@ export interface ApplicationUiProfile {
15
15
  /** Required for @kerfjs/ui; composition-only consumer packages omit it. */
16
16
  selection?: ApplicationUiCatalogLocation;
17
17
  composition: ApplicationUiCatalogLocation;
18
- /** The package's component-props.json, for Kerf UI view tools. */
19
- props?: ApplicationUiCatalogLocation;
20
18
  }>;
21
19
  preferences?: Record<
22
20
  string,
@@ -12,10 +12,6 @@
12
12
  "composition": {
13
13
  "path": "./component-composition.json",
14
14
  "schemaVersion": 1
15
- },
16
- "props": {
17
- "path": "./component-props.json",
18
- "schemaVersion": 1
19
15
  }
20
16
  }
21
17
  ],
@@ -325,11 +325,7 @@ export function validateApplicationUiProfile(
325
325
  for (const [index, catalog] of catalogs.entries()) {
326
326
  const path = `$.catalogs[${index}]`;
327
327
  if (!objectAt(catalog, path)) continue;
328
- rejectUnknown(
329
- catalog,
330
- ['package', 'selection', 'composition', 'props'],
331
- path,
332
- );
328
+ rejectUnknown(catalog, ['package', 'selection', 'composition'], path);
333
329
  if (!catalog?.package)
334
330
  add('KUI-P003', `${path}.package`, 'Catalog package is required.');
335
331
  if (catalogPackages.has(catalog?.package))
@@ -345,8 +341,8 @@ export function validateApplicationUiProfile(
345
341
  `${path}.selection`,
346
342
  'The @kerfjs/ui catalog requires its component-catalog.json selection location.',
347
343
  );
348
- // selection is @kerfjs/ui-only and props (component-props.json) is optional.
349
- for (const kind of ['selection', 'composition', 'props']) {
344
+ // selection is @kerfjs/ui-only and optional elsewhere.
345
+ for (const kind of ['selection', 'composition']) {
350
346
  if (kind !== 'composition' && !catalog?.[kind]) continue;
351
347
  rejectUnknown(
352
348
  catalog?.[kind],
@@ -559,18 +555,13 @@ const catalogFactsForProfile = async (resolved, seedRules = []) => {
559
555
  for (const [index, catalog] of (resolved.profile.catalogs ?? []).entries()) {
560
556
  const owner = resolved.provenance[`$catalogs.${catalog.package}`];
561
557
  if (!owner) continue;
562
- for (const kind of ['selection', 'composition', 'props']) {
558
+ for (const kind of ['selection', 'composition']) {
563
559
  const location = catalog[kind];
564
560
  if (!location?.path) continue;
565
561
  const catalogPath = resolve(dirname(owner), location.path);
566
562
  try {
567
563
  const artifact = JSON.parse(await readFile(catalogPath, 'utf8'));
568
- // component-props.json names its version in `schema`, not schemaVersion.
569
- const version =
570
- kind === 'props'
571
- ? artifact.schema ===
572
- `kerf-ui-component-props/v${location.schemaVersion}`
573
- : artifact.schemaVersion === location.schemaVersion;
564
+ const version = artifact.schemaVersion === location.schemaVersion;
574
565
  if (artifact.package !== catalog.package || !version)
575
566
  diagnostics.push({
576
567
  code: 'KUI-P020',
@@ -135,10 +135,6 @@
135
135
  },
136
136
  "composition": {
137
137
  "$ref": "#/$defs/catalogLocation"
138
- },
139
- "props": {
140
- "$ref": "#/$defs/catalogLocation",
141
- "description": "The package's component-props.json (kerf-ui-component-props/v<schemaVersion>): structured props for Kerf UI view tools."
142
138
  }
143
139
  },
144
140
  "additionalProperties": false,
@@ -0,0 +1,68 @@
1
+ // Ordered JSX attributes. A spread can override either option until a later
2
+ // literal settles it. null means the value cannot be recovered statically.
3
+ function choiceMode(attributes) {
4
+ let multiple = false;
5
+ let overflow = 'wrap';
6
+ for (const [name, value] of attributes) {
7
+ if (name === '...') {
8
+ multiple = null;
9
+ overflow = null;
10
+ }
11
+ if (name === 'multiple') multiple = value;
12
+ if (name === 'overflow') overflow = value;
13
+ }
14
+ const mode =
15
+ multiple === null
16
+ ? 'unknown'
17
+ : multiple === true
18
+ ? 'listbox'
19
+ : multiple === 'toggle'
20
+ ? 'checkboxes'
21
+ : 'radios';
22
+ const required =
23
+ mode === 'listbox' || overflow === 'scroll'
24
+ ? true
25
+ : mode === 'unknown' || overflow === null
26
+ ? null
27
+ : false;
28
+ return { mode, required };
29
+ }
30
+
31
+ function tsAttributes(ts, opening) {
32
+ return opening.attributes.properties.map((prop) => {
33
+ if (ts.isJsxSpreadAttribute(prop)) return ['...', null];
34
+ const name = prop.name.getText();
35
+ if (!prop.initializer) return [name, true];
36
+ let value = prop.initializer;
37
+ if (ts.isJsxExpression(value)) value = value.expression;
38
+ if (value && ts.isStringLiteral(value)) return [name, value.text];
39
+ if (value?.kind === ts.SyntaxKind.TrueKeyword) return [name, true];
40
+ if (value?.kind === ts.SyntaxKind.FalseKeyword) return [name, false];
41
+ return [name, null];
42
+ });
43
+ }
44
+
45
+ // ESLint's cross-file pass has source text only. Parse JSX syntax rather
46
+ // than guessing where a JSX opening ends around nested expressions.
47
+ function choiceUses(source, name) {
48
+ const ts = require('typescript');
49
+ const file = ts.createSourceFile(
50
+ 'use.tsx',
51
+ source,
52
+ ts.ScriptTarget.Latest,
53
+ true,
54
+ ts.ScriptKind.TSX,
55
+ );
56
+ const visit = (node) => {
57
+ if (
58
+ (ts.isJsxOpeningElement(node) || ts.isJsxSelfClosingElement(node)) &&
59
+ node.tagName.getText(file) === name &&
60
+ choiceMode(tsAttributes(ts, node)).required !== false
61
+ )
62
+ return true;
63
+ return ts.forEachChild(node, visit);
64
+ };
65
+ return Boolean(visit(file));
66
+ }
67
+
68
+ module.exports = { choiceMode, tsAttributes, choiceUses };
@@ -10,6 +10,8 @@
10
10
  "inset": ["none", "compact", "default", "comfortable"]
11
11
  },
12
12
  "exceptions": [
13
+ { "component": "Badge", "prop": "size", "values": ["default", "compact", "dot"], "reason": "Text badge sizes plus the text-free dot form." },
14
+ { "component": "List", "prop": "inset", "values": ["document"], "reason": "Document reading-column inset, not a surface inset tier." },
13
15
  { "component": "ListDetailDialog", "prop": "size", "values": ["small", "medium", "large"], "reason": "Modal width tiers, not control size." },
14
16
  { "component": "ListHeader", "prop": "size", "values": ["xs", "sm", "m", "l", "xl"], "reason": "Heading typography scale." },
15
17
  { "component": "ProgressRing", "prop": "size", "values": ["small", "medium", "large"], "reason": "Indicator diameter tiers." },
@@ -2095,7 +2097,7 @@
2095
2097
  "useWhen": [
2096
2098
  "Group related controls inside a toolbar with a supported visual treatment.",
2097
2099
  "Use ToolbarActionLink for navigation or external resources that must retain native anchor semantics inside a group.",
2098
- "Use ToolbarButton for a group's button when it must be a component rather than markup (a view document, the Kerf UI editor, or generated code): it renders exactly the native <button type=\"button\"> the group styles, icon-only with ariaLabel, labeled, or (in an avatar group) ariaLabel alone, with action, pressed, disabled, title, a native popover invoker (popoverTarget, popoverTargetAction, ariaHasPopup), and a corner badge.",
2100
+ "Use ToolbarButton for a group's button when it must be a component rather than markup (generated code, or a composition that only accepts components): it renders exactly the native <button type=\"button\"> the group styles, icon-only with ariaLabel, labeled, or (in an avatar group) ariaLabel alone, with action, pressed, disabled, title, a native popover invoker (popoverTarget, popoverTargetAction, ariaHasPopup), and a corner badge.",
2099
2101
  "For a count on a group button, such as live workers or unread alerts, pass ToolbarButton badge (a number, short text, or true for a dot) with badgeTone (default danger) and badgeMax (default 99, so 128 shows 99+); a count of 0 shows no badge. The group owns its placement over the icon's top-trailing corner, its 2px ring against the group surface, and its compact sizing; never position a Badge over a group button with application CSS.",
2100
2102
  "Fill it with plain <button> controls (the group styles > button fully). A popup menu is a PopupMenu in a single group with nestedDropdown; it renders its own trigger, so never hand-write wa-dropdown markup. Each control stays whole: an icon sits beside its label on one row and no trigger gets a fixed width. Use overflow=wrap for independent links that should move as whole actions to another row on narrow surfaces.",
2101
2103
  "For an avatar control, set content=avatar and avatarImage instead of inserting an img; one button paints the group and multiple buttons paint only the pressed highlight.",
@@ -5889,7 +5891,8 @@
5889
5891
  "useWhen": [
5890
5892
  "Optional or advanced content should stay out of the way until a person asks for it (advanced settings, a build log, release notes).",
5891
5893
  "A list of questions or sections should open one at a time: give the Disclosures the same name for a native exclusive accordion.",
5892
- "A compact details panel belongs inside a ContentItem (a note card's AI feedback): use appearance embedded so the item's own inset frames it once."
5894
+ "A compact details panel belongs inside a ContentItem (a note card's AI feedback): use appearance embedded so the item's own inset frames it once.",
5895
+ "Secondary detail should read small and quiet beside content: set size compact (a 14px arrow and extra-small type) with a quiet title instead of overriding the arrow token."
5893
5896
  ],
5894
5897
  "avoidWhen": [
5895
5898
  "Do not use it to switch between peer views; use a SegmentedControl or TabBar.",
@@ -5912,6 +5915,7 @@
5912
5915
  "variants": [
5913
5916
  "plain, framed, or sunken appearance",
5914
5917
  "embedded appearance inside a ContentItem or other owner chrome: no margin, border, or padding of its own and a 24px minimum summary row",
5918
+ "compact size: a 14px arrow, extra-small summary type, and content on the narrower title column, for a small quiet in-content disclosure",
5915
5919
  "open or closed initially",
5916
5920
  "a quiet detail after the title",
5917
5921
  "an exclusive accordion group sharing a name"
@@ -6321,8 +6325,7 @@
6321
6325
  ],
6322
6326
  "useWhen": [
6323
6327
  "Render the content region a TabBar's tab selects; pair TabPanel id with the TabBarItem's panelId and TabPanel tabId with the TabBarItem's tabId.",
6324
- "Show placeholders in the panel of a pending TabBarItem; set busy until its content loads.",
6325
- "A view built in the Kerf UI editor needs a tab's panel."
6328
+ "Show placeholders in the panel of a pending TabBarItem; set busy until its content loads."
6326
6329
  ],
6327
6330
  "avoidWhen": [
6328
6331
  "Do not write a raw element with role=\"tabpanel\" in Kerf UI markup; render TabPanel.",
@@ -6507,11 +6510,10 @@
6507
6510
  ],
6508
6511
  "useWhen": [
6509
6512
  "Fields whose values are saved or sent together, such as a dialog's settings or a compose form, and an action reads them with new FormData(form).",
6510
- "A submit Button, or Enter in a field, should submit the fields; handle submit with delegateActions(root, 'submit', table) keyed on the Form's action.",
6511
- "A view built in the Kerf UI editor needs a form around its fields."
6513
+ "A submit Button, or Enter in a field, should submit the fields; handle submit with delegateActions(root, 'submit', table) keyed on the Form's action."
6512
6514
  ],
6513
6515
  "avoidWhen": [
6514
- "Do not write a raw form element in Kerf UI markup; render Form so submission never navigates and the editor can place it.",
6516
+ "Do not write a raw form element in Kerf UI markup; render Form so submission never navigates.",
6515
6517
  "Do not use Form for spacing, insets, or a frame; it adds none. Lay the fields out with List, Row, or Grid inside it.",
6516
6518
  "Do not rely on Form to post to a URL; it has no native action or method, and the application owns transport."
6517
6519
  ],
@@ -7854,7 +7856,8 @@
7854
7856
  "appOwns": [
7855
7857
  "the suggestions and the committed values",
7856
7858
  "normalizing and validating created values",
7857
- "clearing the field after a commit"
7859
+ "clearing the field after a commit",
7860
+ "a stable value prop for initial and form-reset text; changing it after blur replaces the displayed text"
7858
7861
  ],
7859
7862
  "variants": [
7860
7863
  "with create",
@@ -8505,7 +8508,7 @@
8505
8508
  "border": "self",
8506
8509
  "padding": "none",
8507
8510
  "notes": [
8508
- "A 35×20 track (31.5×18 compact) 8px (7px) before its label; the hint sits directly under the label, on its text column, like a Checkbox hint."
8511
+ "By default the 35×20 track (31.5×18 compact) precedes its label by 8px (7px). For a settings row, labelPlacement=\"start\" aligns the label and hint at the inline start and the track at the inline end. Both placements align the hint under the label."
8509
8512
  ]
8510
8513
  },
8511
8514
  "delivery": {
@@ -8778,6 +8781,7 @@
8778
8781
  "disabled items",
8779
8782
  "nested actions",
8780
8783
  "checked choices and trailing details",
8784
+ "description: a quiet second line under an item’s label for secondary text, such as a ticket title under its number",
8781
8785
  "danger tone and disabled reasons",
8782
8786
  "context trigger with a rendered anchor point and a zero-footprint anchor host",
8783
8787
  "placement",
@@ -1,15 +1,6 @@
1
1
  {
2
2
  "@kerfjs/ui:toolbar": {
3
3
  "_source": "docs/component-selection.md#toolbar-composition",
4
- "configTypes": [
5
- "ListDetailDialogDetail.actions",
6
- "ListDetailDialogList.toolbar",
7
- "NavStackViewToolbar",
8
- "PanelBottomToolbar",
9
- "PanelToolbar",
10
- "WorkbenchMainBottomToolbar",
11
- "WorkbenchMainToolbar"
12
- ],
13
4
  "contexts": [
14
5
  "application-chrome",
15
6
  "page-header",
@@ -100,7 +91,8 @@
100
91
  "@kerfjs/ui:toolbar",
101
92
  "@kerfjs/ui:floating-toolbar",
102
93
  "@kerfjs/ui:tab-bar",
103
- "@kerfjs/ui:message-composer"
94
+ "@kerfjs/ui:message-composer",
95
+ "@kerfjs/ui:surface-scaffold#headerActions"
104
96
  ]
105
97
  },
106
98
  "contexts": ["toolbar-zone"],
@@ -152,24 +152,7 @@ export interface CatalogCompositionEntry {
152
152
  diagnostics: CatalogDiagnostic[];
153
153
  provenance: { selection: string; composition: string };
154
154
  }
155
- /** Literal Library sample data; view bindings and expressions are not evaluated. */
156
- export type CatalogLibraryPreviewJson =
157
- | null
158
- | string
159
- | number
160
- | boolean
161
- | readonly CatalogLibraryPreviewJson[]
162
- | { readonly [key: string]: CatalogLibraryPreviewJson };
163
- export interface CatalogLibraryPreview {
164
- readonly props?: Readonly<Record<string, CatalogLibraryPreviewJson>>;
165
- }
166
155
  export interface ComponentComposition {
167
- /** Editor-only registrations, relative to this catalog or a package export. */
168
- libraryPreviewModule?: string;
169
- /** Library-only literal samples; no effect on insertion, defaults or production views. */
170
- libraryPreviews?: Readonly<
171
- Record<CatalogQualifiedKey, CatalogLibraryPreview>
172
- >;
173
156
  $schema?: string;
174
157
  schemaVersion: 1;
175
158
  package: string;
@@ -1921,16 +1921,7 @@
1921
1921
  "provenance": {
1922
1922
  "selection": "ai/component-catalog.json",
1923
1923
  "composition": "docs/component-selection.md#toolbar-composition"
1924
- },
1925
- "configTypes": [
1926
- "ListDetailDialogDetail.actions",
1927
- "ListDetailDialogList.toolbar",
1928
- "NavStackViewToolbar",
1929
- "PanelBottomToolbar",
1930
- "PanelToolbar",
1931
- "WorkbenchMainBottomToolbar",
1932
- "WorkbenchMainToolbar"
1933
- ]
1924
+ }
1934
1925
  },
1935
1926
  {
1936
1927
  "key": "@kerfjs/ui:toolbar-control-group",
@@ -1945,7 +1936,8 @@
1945
1936
  "@kerfjs/ui:toolbar",
1946
1937
  "@kerfjs/ui:floating-toolbar",
1947
1938
  "@kerfjs/ui:tab-bar",
1948
- "@kerfjs/ui:message-composer"
1939
+ "@kerfjs/ui:message-composer",
1940
+ "@kerfjs/ui:surface-scaffold#headerActions"
1949
1941
  ]
1950
1942
  },
1951
1943
  "contexts": ["toolbar-zone"],
@@ -6115,6 +6107,11 @@
6115
6107
  "id": "clearing the field after a commit",
6116
6108
  "owner": "application",
6117
6109
  "required": false
6110
+ },
6111
+ {
6112
+ "id": "a stable value prop for initial and form-reset text; changing it after blur replaces the displayed text",
6113
+ "owner": "application",
6114
+ "required": false
6118
6115
  }
6119
6116
  ],
6120
6117
  "wiring": {
@@ -6574,7 +6571,7 @@
6574
6571
  "border": "self",
6575
6572
  "padding": "none",
6576
6573
  "notes": [
6577
- "A 35×20 track (31.5×18 compact) 8px (7px) before its label; the hint sits directly under the label, on its text column, like a Checkbox hint."
6574
+ "By default the 35×20 track (31.5×18 compact) precedes its label by 8px (7px). For a settings row, labelPlacement=\"start\" aligns the label and hint at the inline start and the track at the inline end. Both placements align the hint under the label."
6578
6575
  ]
6579
6576
  }
6580
6577
  },
@@ -36,27 +36,6 @@
36
36
  "items": {
37
37
  "$ref": "#/$defs/entry"
38
38
  }
39
- },
40
- "libraryPreviewModule": {
41
- "type": "string",
42
- "minLength": 1,
43
- "description": "Optional editor-only ESM preview registration module, relative to this catalog or a resolvable package export. It is imported by the Vite editor host, never evaluated as JSON."
44
- },
45
- "libraryPreviews": {
46
- "type": "object",
47
- "additionalProperties": {
48
- "type": "object",
49
- "additionalProperties": false,
50
- "properties": {
51
- "props": {
52
- "type": "object",
53
- "additionalProperties": {
54
- "$ref": "#/$defs/libraryPreviewJson"
55
- }
56
- }
57
- }
58
- },
59
- "description": "Library-only literal sample props, keyed by the complete component key. An empty entry restores automatic rendering. Values are literal JSON; no view bindings, CSS/icon expressions or JavaScript are evaluated."
60
39
  }
61
40
  },
62
41
  "additionalProperties": false,
@@ -290,16 +269,6 @@
290
269
  "content": {
291
270
  "$ref": "#/$defs/interactiveContent"
292
271
  },
293
- "configTypes": {
294
- "description": "Prop-value types (definition names in this package's component-props.json) that another component renders as this one, such as a NavStack view's toolbar config. A content field inside such a value is placed in this component, so this component is its parent for placement contracts. `TypeName.field` names one field of a type whose other fields render elsewhere.",
295
- "type": "array",
296
- "minItems": 1,
297
- "items": {
298
- "type": "string",
299
- "pattern": "^[A-Z][A-Za-z0-9]*(\\.[a-z][A-Za-z0-9]*)?$"
300
- },
301
- "uniqueItems": true
302
- },
303
272
  "rendersAs": {
304
273
  "description": "For a wrapper component: the cataloged roots it renders (package-qualified keys), any one of them or nothing. Composition checks treat an element of this entry as each declared root: a zone accepts it only if it accepts every root, and each root's parent contract applies to where it is placed.",
305
274
  "type": "array",
@@ -716,34 +685,6 @@
716
685
  }
717
686
  },
718
687
  "additionalProperties": false
719
- },
720
- "libraryPreviewJson": {
721
- "anyOf": [
722
- {
723
- "type": "null"
724
- },
725
- {
726
- "type": "boolean"
727
- },
728
- {
729
- "type": "number"
730
- },
731
- {
732
- "type": "string"
733
- },
734
- {
735
- "type": "array",
736
- "items": {
737
- "$ref": "#/$defs/libraryPreviewJson"
738
- }
739
- },
740
- {
741
- "type": "object",
742
- "additionalProperties": {
743
- "$ref": "#/$defs/libraryPreviewJson"
744
- }
745
- }
746
- ]
747
688
  }
748
689
  }
749
690
  }
@@ -49,7 +49,7 @@ Exact prop names and types: [`@kerfjs/ui/combobox`](../public-api-signatures-v1.
49
49
 
50
50
  ## State and wiring
51
51
 
52
- **The app owns:** the suggestions and the committed values; normalizing and validating created values; clearing the field after a commit.
52
+ **The app owns:** the suggestions and the committed values; normalizing and validating created values; clearing the field after a commit; a stable value prop for initial and form-reset text; changing it after blur replaces the displayed text.
53
53
 
54
54
  **Wiring:** `wireComboboxes` is required.
55
55
 
@@ -13,6 +13,7 @@ Keep secondary or optional content one press away under a summary, or let a pers
13
13
  - Optional or advanced content should stay out of the way until a person asks for it (advanced settings, a build log, release notes).
14
14
  - A list of questions or sections should open one at a time: give the Disclosures the same name for a native exclusive accordion.
15
15
  - A compact details panel belongs inside a ContentItem (a note card's AI feedback): use appearance embedded so the item's own inset frames it once.
16
+ - Secondary detail should read small and quiet beside content: set size compact (a 14px arrow and extra-small type) with a quiet title instead of overriding the arrow token.
16
17
 
17
18
  **Not when:**
18
19
 
@@ -38,6 +39,7 @@ Exact prop names and types: [`@kerfjs/ui/disclosure`](../public-api-signatures-v
38
39
 
39
40
  - plain, framed, or sunken appearance
40
41
  - embedded appearance inside a ContentItem or other owner chrome: no margin, border, or padding of its own and a 24px minimum summary row
42
+ - compact size: a 14px arrow, extra-small summary type, and content on the narrower title column, for a small quiet in-content disclosure
41
43
  - open or closed initially
42
44
  - a quiet detail after the title
43
45
  - an exclusive accordion group sharing a name
@@ -12,11 +12,10 @@ Group fields in a native form so the application reads them with FormData, a sub
12
12
 
13
13
  - Fields whose values are saved or sent together, such as a dialog's settings or a compose form, and an action reads them with new FormData(form).
14
14
  - A submit Button, or Enter in a field, should submit the fields; handle submit with delegateActions(root, 'submit', table) keyed on the Form's action.
15
- - A view built in the Kerf UI editor needs a form around its fields.
16
15
 
17
16
  **Not when:**
18
17
 
19
- - Do not write a raw form element in Kerf UI markup; render Form so submission never navigates and the editor can place it.
18
+ - Do not write a raw form element in Kerf UI markup; render Form so submission never navigates.
20
19
  - Do not use Form for spacing, insets, or a frame; it adds none. Lay the fields out with List, Row, or Grid inside it.
21
20
  - Do not rely on Form to post to a URL; it has no native action or method, and the application owns transport.
22
21
 
@@ -45,6 +45,7 @@ Exact prop names and types: [`@kerfjs/ui/popup-menu`](../public-api-signatures-v
45
45
  - disabled items
46
46
  - nested actions
47
47
  - checked choices and trailing details
48
+ - description: a quiet second line under an item’s label for secondary text, such as a ticket title under its number
48
49
  - danger tone and disabled reasons
49
50
  - context trigger with a rendered anchor point and a zero-footprint anchor host
50
51
  - placement
@@ -56,7 +56,7 @@ No wiring helper.
56
56
 
57
57
  Margin: none · border: self · padding: none (layout role: controls). `self` means the component already owns it — do not add wrapper padding, margin, or borders around it.
58
58
 
59
- - A 35×20 track (31.5×18 compact) 8px (7px) before its label; the hint sits directly under the label, on its text column, like a Checkbox hint.
59
+ - By default the 35×20 track (31.5×18 compact) precedes its label by 8px (7px). For a settings row, labelPlacement="start" aligns the label and hint at the inline start and the track at the inline end. Both placements align the hint under the label.
60
60
 
61
61
  ## Accessibility
62
62
 
@@ -12,7 +12,6 @@ Render the tabpanel a TabBarItem controls, named by its tab through tabId, hidde
12
12
 
13
13
  - Render the content region a TabBar's tab selects; pair TabPanel id with the TabBarItem's panelId and TabPanel tabId with the TabBarItem's tabId.
14
14
  - Show placeholders in the panel of a pending TabBarItem; set busy until its content loads.
15
- - A view built in the Kerf UI editor needs a tab's panel.
16
15
 
17
16
  **Not when:**
18
17
 
@@ -12,7 +12,7 @@ Provide complete toolbar action geometry through configuration, including semant
12
12
 
13
13
  - Group related controls inside a toolbar with a supported visual treatment.
14
14
  - Use ToolbarActionLink for navigation or external resources that must retain native anchor semantics inside a group.
15
- - Use ToolbarButton for a group's button when it must be a component rather than markup (a view document, the Kerf UI editor, or generated code): it renders exactly the native \<button type="button"> the group styles, icon-only with ariaLabel, labeled, or (in an avatar group) ariaLabel alone, with action, pressed, disabled, title, a native popover invoker (popoverTarget, popoverTargetAction, ariaHasPopup), and a corner badge.
15
+ - Use ToolbarButton for a group's button when it must be a component rather than markup (generated code, or a composition that only accepts components): it renders exactly the native \<button type="button"> the group styles, icon-only with ariaLabel, labeled, or (in an avatar group) ariaLabel alone, with action, pressed, disabled, title, a native popover invoker (popoverTarget, popoverTargetAction, ariaHasPopup), and a corner badge.
16
16
  - For a count on a group button, such as live workers or unread alerts, pass ToolbarButton badge (a number, short text, or true for a dot) with badgeTone (default danger) and badgeMax (default 99, so 128 shows 99+); a count of 0 shows no badge. The group owns its placement over the icon's top-trailing corner, its 2px ring against the group surface, and its compact sizing; never position a Badge over a group button with application CSS.
17
17
  - Fill it with plain \<button> controls (the group styles > button fully). A popup menu is a PopupMenu in a single group with nestedDropdown; it renders its own trigger, so never hand-write wa-dropdown markup. Each control stays whole: an icon sits beside its label on one row and no trigger gets a fixed width. Use overflow=wrap for independent links that should move as whole actions to another row on narrow surfaces.
18
18
  - For an avatar control, set content=avatar and avatarImage instead of inserting an img; one button paints the group and multiple buttons paint only the pressed highlight.
@@ -74,7 +74,7 @@ Exact prop names and types: [`@kerfjs/ui/toolbar-control-group`](../public-api-s
74
74
 
75
75
  ## Composition
76
76
 
77
- - Parents: only inside [Toolbar](./toolbar.md) or [FloatingToolbar](./floating-toolbar.md) or [TabBar](./tab-bar.md) or [MessageComposer](./message-composer.md).
77
+ - Parents: only inside [Toolbar](./toolbar.md) or [FloatingToolbar](./floating-toolbar.md) or [TabBar](./tab-bar.md) or [MessageComposer](./message-composer.md) or [Surface Scaffolds](./surface-scaffold.md)'s `headerActions`.
78
78
  - Contexts: `toolbar-zone`.
79
79
  - Children: only `control` (required: `control`).
80
80
  - Built from: [LucideIcon](./lucide-icon.md), [SegmentedControl](./segmented-control.md).