@kerfjs/ui 4.4.1 → 5.0.0-beta.11

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 (386) hide show
  1. package/README.md +241 -10
  2. package/ai/component-catalog.json +4828 -0
  3. package/ai/component-catalog.schema.json +79 -0
  4. package/ai/public-api-signatures-v1.md +1371 -0
  5. package/ai/skill.md +73 -11
  6. package/ai/webawesome-jsx-signatures-v1.md +106 -0
  7. package/dist/app-tab.d.ts +14 -2
  8. package/dist/app-tab.js +3 -1
  9. package/dist/browser/app-tab.js +3 -2
  10. package/dist/browser/disclosure-arrow.js +4 -0
  11. package/dist/browser/empty-state.js +3 -3
  12. package/dist/browser/floating-toolbar.js +3 -0
  13. package/dist/browser/list-action-row.js +4 -0
  14. package/dist/browser/list-header.js +6 -0
  15. package/dist/browser/list-item.js +4 -0
  16. package/dist/browser/loading-spinner.js +2 -2
  17. package/dist/browser/lucide-icon.js +2 -2
  18. package/dist/browser/panel-header.js +7 -0
  19. package/dist/browser/resizable-region.js +2 -2
  20. package/dist/browser/segmented-control.js +3 -2
  21. package/dist/browser/select.js +4 -3
  22. package/dist/browser/skeleton.js +3 -0
  23. package/dist/browser/state-banner.js +3 -2
  24. package/dist/browser/tab-bar.js +2 -2
  25. package/dist/browser/token-search-field.js +4 -0
  26. package/dist/browser/toolbar-control-group.js +2 -2
  27. package/dist/browser/toolbar-text.js +3 -2
  28. package/dist/browser/toolbar.js +2 -2
  29. package/dist/browser/value-table.js +3 -2
  30. package/dist/catalog.d.ts +119 -0
  31. package/dist/catalog.js +146 -0
  32. package/dist/catalog.js.map +1 -0
  33. package/dist/chunk-2Z5TWHKQ.js +34 -0
  34. package/dist/chunk-2Z5TWHKQ.js.map +1 -0
  35. package/dist/chunk-37T3VNIZ.js +19 -0
  36. package/dist/chunk-37T3VNIZ.js.map +1 -0
  37. package/dist/chunk-56RJXPHG.js +43 -0
  38. package/dist/chunk-56RJXPHG.js.map +1 -0
  39. package/dist/chunk-5ATCDSQS.js +42 -0
  40. package/dist/chunk-5ATCDSQS.js.map +1 -0
  41. package/dist/chunk-5E2HVJ33.js +10 -0
  42. package/dist/chunk-5E2HVJ33.js.map +1 -0
  43. package/dist/chunk-7BR3DO2A.js +31 -0
  44. package/dist/chunk-7BR3DO2A.js.map +1 -0
  45. package/dist/chunk-7JB7VPRI.js +34 -0
  46. package/dist/chunk-7JB7VPRI.js.map +1 -0
  47. package/dist/chunk-7LDCTU7D.js +134 -0
  48. package/dist/chunk-7LDCTU7D.js.map +1 -0
  49. package/dist/{chunk-4HHCYSGT.js → chunk-AQNKJRFH.js} +2 -2
  50. package/dist/{chunk-4HHCYSGT.js.map → chunk-AQNKJRFH.js.map} +1 -1
  51. package/dist/{chunk-MBR3TYNL.js → chunk-AVZHJN6C.js} +3 -3
  52. package/dist/chunk-AVZHJN6C.js.map +1 -0
  53. package/dist/chunk-B24C4A6T.js +22 -0
  54. package/dist/chunk-B24C4A6T.js.map +1 -0
  55. package/dist/chunk-BLK3UEEI.js +23 -0
  56. package/dist/chunk-BLK3UEEI.js.map +1 -0
  57. package/dist/chunk-CH4SQ6H5.js +39 -0
  58. package/dist/chunk-CH4SQ6H5.js.map +1 -0
  59. package/dist/chunk-I7INRJO4.js +17 -0
  60. package/dist/chunk-I7INRJO4.js.map +1 -0
  61. package/dist/chunk-L4OKFDJY.js +24 -0
  62. package/dist/chunk-L4OKFDJY.js.map +1 -0
  63. package/dist/chunk-LCOBDOCC.js +265 -0
  64. package/dist/chunk-LCOBDOCC.js.map +1 -0
  65. package/dist/{chunk-3O7ZEUW2.js → chunk-M5JRI6MN.js} +3 -3
  66. package/dist/chunk-M5JRI6MN.js.map +1 -0
  67. package/dist/{chunk-MFKMHK5W.js → chunk-RNPGFQ33.js} +3 -3
  68. package/dist/chunk-RNPGFQ33.js.map +1 -0
  69. package/dist/chunk-RUNWEPR4.js +10 -0
  70. package/dist/chunk-RUNWEPR4.js.map +1 -0
  71. package/dist/chunk-XE5ZLPCC.js +20 -0
  72. package/dist/chunk-XE5ZLPCC.js.map +1 -0
  73. package/dist/{chunk-MQIZAD4A.js → chunk-XXMOARTH.js} +5 -3
  74. package/dist/chunk-XXMOARTH.js.map +1 -0
  75. package/dist/{chunk-TRNBHPNW.js → chunk-YGN7OMLT.js} +11 -8
  76. package/dist/chunk-YGN7OMLT.js.map +1 -0
  77. package/dist/collapsible-panel.d.ts +66 -0
  78. package/dist/collapsible-panel.js +22 -0
  79. package/dist/collapsible-panel.js.map +1 -0
  80. package/dist/device-class.d.ts +62 -0
  81. package/dist/device-class.js +75 -0
  82. package/dist/device-class.js.map +1 -0
  83. package/dist/disclosure-arrow.d.ts +14 -0
  84. package/dist/disclosure-arrow.js +4 -0
  85. package/dist/disclosure-arrow.js.map +1 -0
  86. package/dist/floating-toolbar.d.ts +28 -0
  87. package/dist/floating-toolbar.js +3 -0
  88. package/dist/floating-toolbar.js.map +1 -0
  89. package/dist/index.d.ts +11 -6
  90. package/dist/index.js +22 -16
  91. package/dist/list-action-row.d.ts +52 -0
  92. package/dist/list-action-row.js +5 -0
  93. package/dist/list-action-row.js.map +1 -0
  94. package/dist/list-header.d.ts +43 -0
  95. package/dist/list-header.js +7 -0
  96. package/dist/list-header.js.map +1 -0
  97. package/dist/list-item.d.ts +33 -0
  98. package/dist/list-item.js +5 -0
  99. package/dist/list-item.js.map +1 -0
  100. package/dist/nav-stack.d.ts +38 -0
  101. package/dist/nav-stack.js +5 -0
  102. package/dist/nav-stack.js.map +1 -0
  103. package/dist/panel-header.d.ts +36 -0
  104. package/dist/panel-header.js +7 -0
  105. package/dist/panel-header.js.map +1 -0
  106. package/dist/resizable-region.d.ts +3 -1
  107. package/dist/resizable-region.js +1 -1
  108. package/dist/segmented-control.d.ts +3 -1
  109. package/dist/segmented-control.js +2 -1
  110. package/dist/select-register.d.ts +5 -1
  111. package/dist/select-register.js +3 -0
  112. package/dist/select-register.js.map +1 -1
  113. package/dist/select.d.ts +5 -2
  114. package/dist/select.js +2 -1
  115. package/dist/skeleton.d.ts +24 -0
  116. package/dist/skeleton.js +3 -0
  117. package/dist/skeleton.js.map +1 -0
  118. package/dist/split-view.d.ts +42 -0
  119. package/dist/split-view.js +21 -0
  120. package/dist/split-view.js.map +1 -0
  121. package/dist/state-banner.d.ts +3 -1
  122. package/dist/state-banner.js +2 -1
  123. package/dist/styles/app-tab.css +152 -0
  124. package/dist/styles/catalog.css +522 -0
  125. package/dist/styles/collapsible-panel.css +146 -0
  126. package/dist/styles/disclosure-arrow.css +23 -0
  127. package/dist/styles/empty-state.css +47 -0
  128. package/dist/styles/floating-toolbar.css +38 -0
  129. package/dist/styles/foundation.css +347 -0
  130. package/dist/styles/layout.css +73 -0
  131. package/dist/styles/list-action-row.css +160 -0
  132. package/dist/styles/list-header.css +160 -0
  133. package/dist/styles/list-item.css +123 -0
  134. package/dist/styles/loading-spinner.css +21 -0
  135. package/dist/styles/lucide-icon.css +6 -0
  136. package/dist/styles/nav-stack.css +111 -0
  137. package/dist/styles/panel-header.css +64 -0
  138. package/dist/styles/resizable-region.css +111 -0
  139. package/{src → dist/styles}/segmented-control.css +62 -31
  140. package/dist/styles/select.css +138 -0
  141. package/dist/styles/skeleton.css +31 -0
  142. package/dist/styles/split-view.css +35 -0
  143. package/dist/styles/state-banner.css +173 -0
  144. package/dist/styles/styles.css +23 -0
  145. package/dist/styles/tab-bar.css +45 -0
  146. package/dist/styles/tab-scaffold.css +84 -0
  147. package/dist/styles/token-search-field.css +289 -0
  148. package/dist/styles/toolbar-control-group.css +225 -0
  149. package/dist/styles/toolbar-text.css +40 -0
  150. package/dist/styles/toolbar.css +61 -0
  151. package/dist/styles/value-table.css +75 -0
  152. package/{src → dist/styles}/webawesome.css +119 -29
  153. package/dist/styles/workbench.css +94 -0
  154. package/dist/tab-bar.d.ts +8 -1
  155. package/dist/tab-bar.js +1 -1
  156. package/dist/tab-scaffold.d.ts +30 -0
  157. package/dist/tab-scaffold.js +16 -0
  158. package/dist/tab-scaffold.js.map +1 -0
  159. package/dist/token-search-field.d.ts +43 -0
  160. package/dist/token-search-field.js +4 -0
  161. package/dist/token-search-field.js.map +1 -0
  162. package/dist/toolbar-control-group.d.ts +3 -1
  163. package/dist/toolbar-control-group.js +1 -1
  164. package/dist/toolbar-text.d.ts +15 -3
  165. package/dist/toolbar-text.js +2 -1
  166. package/dist/value-table.d.ts +12 -2
  167. package/dist/value-table.js +2 -1
  168. package/dist/webawesome.d.ts +100 -0
  169. package/dist/webawesome.js +3 -0
  170. package/dist/webawesome.js.map +1 -0
  171. package/dist/wire-catalog.d.ts +26 -0
  172. package/dist/wire-catalog.js +48 -0
  173. package/dist/wire-catalog.js.map +1 -0
  174. package/dist/wire-nav-stack.d.ts +15 -0
  175. package/dist/wire-nav-stack.js +88 -0
  176. package/dist/wire-nav-stack.js.map +1 -0
  177. package/dist/wire-resizable-regions.js +1 -1
  178. package/dist/wire-sidebar.d.ts +43 -0
  179. package/dist/wire-sidebar.js +117 -0
  180. package/dist/wire-sidebar.js.map +1 -0
  181. package/dist/wire-tab-bars.d.ts +15 -2
  182. package/dist/wire-tab-bars.js +1 -1
  183. package/dist/wire-tab-scaffold.d.ts +11 -0
  184. package/dist/wire-tab-scaffold.js +16 -0
  185. package/dist/wire-tab-scaffold.js.map +1 -0
  186. package/dist/wire-token-search-fields.d.ts +106 -0
  187. package/dist/wire-token-search-fields.js +5 -0
  188. package/dist/wire-token-search-fields.js.map +1 -0
  189. package/dist/workbench.d.ts +33 -0
  190. package/dist/workbench.js +17 -0
  191. package/dist/workbench.js.map +1 -0
  192. package/docs/accessibility.md +112 -3
  193. package/docs/app-layouts.md +61 -0
  194. package/docs/catalog.md +155 -0
  195. package/docs/collapsible-panel.md +102 -0
  196. package/docs/component-contract.md +169 -4
  197. package/docs/component-selection.md +186 -0
  198. package/docs/design/templates/empty-state/filtered-dark.svg +1 -0
  199. package/docs/design/templates/empty-state/filtered.svg +1 -0
  200. package/docs/design/templates/empty-state/with-action-dark.svg +1 -0
  201. package/docs/design/templates/empty-state/with-action.svg +1 -0
  202. package/docs/design/templates/empty-state-dark.svg +7 -0
  203. package/docs/design/templates/empty-state.svg +7 -0
  204. package/docs/design/templates/list-action-row/default-dark.svg +1 -0
  205. package/docs/design/templates/list-action-row/default.svg +1 -0
  206. package/docs/design/templates/list-action-row/selected-dark.svg +1 -0
  207. package/docs/design/templates/list-action-row/selected.svg +1 -0
  208. package/docs/design/templates/list-action-row-dark.svg +7 -0
  209. package/docs/design/templates/list-action-row.svg +7 -0
  210. package/docs/design/templates/list-header/action-dark.svg +1 -0
  211. package/docs/design/templates/list-header/action.svg +1 -0
  212. package/docs/design/templates/list-header/count-dark.svg +1 -0
  213. package/docs/design/templates/list-header/count.svg +1 -0
  214. package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -0
  215. package/docs/design/templates/list-header/toggle-collapsed.svg +1 -0
  216. package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -0
  217. package/docs/design/templates/list-header/toggle-expanded.svg +1 -0
  218. package/docs/design/templates/list-header-dark.svg +11 -0
  219. package/docs/design/templates/list-header.svg +11 -0
  220. package/docs/design/templates/list-item/default-dark.svg +1 -0
  221. package/docs/design/templates/list-item/default.svg +1 -0
  222. package/docs/design/templates/list-item/multiline-dark.svg +1 -0
  223. package/docs/design/templates/list-item/multiline.svg +1 -0
  224. package/docs/design/templates/list-item/selected-dark.svg +1 -0
  225. package/docs/design/templates/list-item/selected.svg +1 -0
  226. package/docs/design/templates/list-item/trailing-dark.svg +1 -0
  227. package/docs/design/templates/list-item/trailing.svg +1 -0
  228. package/docs/design/templates/list-item-dark.svg +11 -0
  229. package/docs/design/templates/list-item.svg +11 -0
  230. package/docs/design/templates/panel-header/icon-actions-dark.svg +1 -0
  231. package/docs/design/templates/panel-header/icon-actions.svg +1 -0
  232. package/docs/design/templates/panel-header/icon-summary-actions-dark.svg +1 -0
  233. package/docs/design/templates/panel-header/icon-summary-actions.svg +1 -0
  234. package/docs/design/templates/panel-header/no-icon-dark.svg +1 -0
  235. package/docs/design/templates/panel-header/no-icon.svg +1 -0
  236. package/docs/design/templates/panel-header/page-heading-dark.svg +1 -0
  237. package/docs/design/templates/panel-header/page-heading.svg +1 -0
  238. package/docs/design/templates/panel-header/title-only-dark.svg +1 -0
  239. package/docs/design/templates/panel-header/title-only.svg +1 -0
  240. package/docs/design/templates/panel-header-dark.svg +13 -0
  241. package/docs/design/templates/panel-header.svg +13 -0
  242. package/docs/design/templates/segmented-control/equal-dark.svg +1 -0
  243. package/docs/design/templates/segmented-control/equal.svg +1 -0
  244. package/docs/design/templates/segmented-control/pill-small-dark.svg +1 -0
  245. package/docs/design/templates/segmented-control/pill-small.svg +1 -0
  246. package/docs/design/templates/segmented-control-dark.svg +7 -0
  247. package/docs/design/templates/segmented-control.svg +7 -0
  248. package/docs/design/templates/skeleton/avatar-dark.svg +1 -0
  249. package/docs/design/templates/skeleton/avatar.svg +1 -0
  250. package/docs/design/templates/skeleton/block-dark.svg +1 -0
  251. package/docs/design/templates/skeleton/block.svg +1 -0
  252. package/docs/design/templates/skeleton/lines-dark.svg +1 -0
  253. package/docs/design/templates/skeleton/lines.svg +1 -0
  254. package/docs/design/templates/skeleton-dark.svg +9 -0
  255. package/docs/design/templates/skeleton.svg +9 -0
  256. package/docs/design/templates/state-banner/danger-dark.svg +1 -0
  257. package/docs/design/templates/state-banner/danger.svg +1 -0
  258. package/docs/design/templates/state-banner/info-dark.svg +1 -0
  259. package/docs/design/templates/state-banner/info.svg +1 -0
  260. package/docs/design/templates/state-banner/success-dark.svg +1 -0
  261. package/docs/design/templates/state-banner/success.svg +1 -0
  262. package/docs/design/templates/state-banner/warning-dark.svg +1 -0
  263. package/docs/design/templates/state-banner/warning.svg +1 -0
  264. package/docs/design/templates/state-banner-dark.svg +11 -0
  265. package/docs/design/templates/state-banner.svg +11 -0
  266. package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -0
  267. package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -0
  268. package/docs/design/templates/tab-bar-dark.svg +5 -0
  269. package/docs/design/templates/tab-bar.svg +5 -0
  270. package/docs/design/templates/token-search-field/empty-dark.svg +1 -0
  271. package/docs/design/templates/token-search-field/empty.svg +1 -0
  272. package/docs/design/templates/token-search-field/tokens-dark.svg +1 -0
  273. package/docs/design/templates/token-search-field/tokens.svg +1 -0
  274. package/docs/design/templates/token-search-field-dark.svg +7 -0
  275. package/docs/design/templates/token-search-field.svg +7 -0
  276. package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -0
  277. package/docs/design/templates/toolbar/title-and-actions.svg +1 -0
  278. package/docs/design/templates/toolbar-control-group/borderless-single-dark.svg +1 -0
  279. package/docs/design/templates/toolbar-control-group/borderless-single.svg +1 -0
  280. package/docs/design/templates/toolbar-control-group/icon-buttons-dark.svg +1 -0
  281. package/docs/design/templates/toolbar-control-group/icon-buttons.svg +1 -0
  282. package/docs/design/templates/toolbar-control-group/push-buttons-dark.svg +1 -0
  283. package/docs/design/templates/toolbar-control-group/push-buttons.svg +1 -0
  284. package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -0
  285. package/docs/design/templates/toolbar-control-group/with-text.svg +1 -0
  286. package/docs/design/templates/toolbar-control-group-dark.svg +11 -0
  287. package/docs/design/templates/toolbar-control-group.svg +11 -0
  288. package/docs/design/templates/toolbar-dark.svg +5 -0
  289. package/docs/design/templates/toolbar-text/default-dark.svg +1 -0
  290. package/docs/design/templates/toolbar-text/default.svg +1 -0
  291. package/docs/design/templates/toolbar-text/large-dark.svg +1 -0
  292. package/docs/design/templates/toolbar-text/large.svg +1 -0
  293. package/docs/design/templates/toolbar-text/small-dark.svg +1 -0
  294. package/docs/design/templates/toolbar-text/small.svg +1 -0
  295. package/docs/design/templates/toolbar-text-dark.svg +9 -0
  296. package/docs/design/templates/toolbar-text.svg +9 -0
  297. package/docs/design/templates/toolbar.svg +5 -0
  298. package/docs/design/templates/value-table/details-dark.svg +1 -0
  299. package/docs/design/templates/value-table/details.svg +1 -0
  300. package/docs/design/templates/value-table-dark.svg +5 -0
  301. package/docs/design/templates/value-table.svg +5 -0
  302. package/docs/design/templates.md +114 -0
  303. package/docs/design-philosophy.md +61 -1
  304. package/docs/device-class.md +54 -0
  305. package/docs/examples/command-palette-adapter.tsx +70 -0
  306. package/docs/layout.md +131 -0
  307. package/docs/nav-stack.md +47 -0
  308. package/docs/recipes.md +167 -0
  309. package/docs/split-view.md +49 -0
  310. package/docs/tab-scaffold.md +41 -0
  311. package/docs/ux-demo.md +23 -9
  312. package/docs/webawesome-theme.md +15 -0
  313. package/docs/workbench.md +47 -0
  314. package/llms.txt +123 -14
  315. package/package.json +147 -44
  316. package/ux-demo/recipes/app-shell.tsx +32 -0
  317. package/ux-demo/recipes/collapsible-sidebar.tsx +100 -0
  318. package/ux-demo/recipes/compact-toolbar.tsx +43 -0
  319. package/ux-demo/recipes/composer-form.tsx +63 -0
  320. package/ux-demo/recipes/list-detail-dialog.tsx +45 -0
  321. package/ux-demo/recipes/list-workspace-states.tsx +26 -0
  322. package/ux-demo/recipes/loaders.ts +33 -0
  323. package/ux-demo/recipes/loading-inspector.tsx +81 -0
  324. package/ux-demo/recipes/mount-recipe.ts +43 -0
  325. package/ux-demo/recipes/navigation-sidebar.tsx +26 -0
  326. package/ux-demo/recipes/navigation-stack.tsx +76 -0
  327. package/ux-demo/recipes/recipes.css +448 -0
  328. package/ux-demo/recipes/types.ts +17 -0
  329. package/ux-demo/recipes/workspace-header.tsx +12 -0
  330. package/dist/browser/dialog-header.js +0 -3
  331. package/dist/browser/menu-header.js +0 -3
  332. package/dist/browser/menu-item.js +0 -3
  333. package/dist/browser/page-header.js +0 -3
  334. package/dist/chunk-2PES33HS.js +0 -13
  335. package/dist/chunk-2PES33HS.js.map +0 -1
  336. package/dist/chunk-3O7ZEUW2.js.map +0 -1
  337. package/dist/chunk-723YNJBH.js +0 -17
  338. package/dist/chunk-723YNJBH.js.map +0 -1
  339. package/dist/chunk-GY5WH7TO.js +0 -10
  340. package/dist/chunk-GY5WH7TO.js.map +0 -1
  341. package/dist/chunk-MBR3TYNL.js.map +0 -1
  342. package/dist/chunk-MFKMHK5W.js.map +0 -1
  343. package/dist/chunk-MQIZAD4A.js.map +0 -1
  344. package/dist/chunk-NHXX4JI5.js +0 -28
  345. package/dist/chunk-NHXX4JI5.js.map +0 -1
  346. package/dist/chunk-OPCJRCYO.js +0 -19
  347. package/dist/chunk-OPCJRCYO.js.map +0 -1
  348. package/dist/chunk-T5XNMVOI.js +0 -24
  349. package/dist/chunk-T5XNMVOI.js.map +0 -1
  350. package/dist/chunk-TRNBHPNW.js.map +0 -1
  351. package/dist/chunk-VHW5YNIB.js +0 -17
  352. package/dist/chunk-VHW5YNIB.js.map +0 -1
  353. package/dist/chunk-VKH2JLDZ.js +0 -10
  354. package/dist/chunk-VKH2JLDZ.js.map +0 -1
  355. package/dist/chunk-WY4CAEPG.js +0 -14
  356. package/dist/chunk-WY4CAEPG.js.map +0 -1
  357. package/dist/dialog-header.d.ts +0 -14
  358. package/dist/dialog-header.js +0 -3
  359. package/dist/dialog-header.js.map +0 -1
  360. package/dist/menu-header.d.ts +0 -15
  361. package/dist/menu-header.js +0 -3
  362. package/dist/menu-header.js.map +0 -1
  363. package/dist/menu-item.d.ts +0 -22
  364. package/dist/menu-item.js +0 -3
  365. package/dist/menu-item.js.map +0 -1
  366. package/dist/page-header.d.ts +0 -9
  367. package/dist/page-header.js +0 -3
  368. package/dist/page-header.js.map +0 -1
  369. package/src/app-tab.css +0 -20
  370. package/src/dialog-header.css +0 -9
  371. package/src/empty-state.css +0 -6
  372. package/src/foundation.css +0 -106
  373. package/src/loading-spinner.css +0 -4
  374. package/src/lucide-icon.css +0 -1
  375. package/src/menu-header.css +0 -13
  376. package/src/menu-item.css +0 -12
  377. package/src/page-header.css +0 -3
  378. package/src/resizable-region.css +0 -19
  379. package/src/select.css +0 -18
  380. package/src/state-banner.css +0 -31
  381. package/src/styles.css +0 -18
  382. package/src/tab-bar.css +0 -4
  383. package/src/toolbar-control-group.css +0 -25
  384. package/src/toolbar-text.css +0 -4
  385. package/src/toolbar.css +0 -9
  386. package/src/value-table.css +0 -5
package/ai/skill.md CHANGED
@@ -1,28 +1,74 @@
1
1
  ---
2
2
  name: kerf-ui
3
3
  description: Build interfaces with kerfjs and the @kerfjs/ui production component package. Use whenever code imports @kerfjs/ui or a task asks for Kerf UI components.
4
- kerf-ui-skill-version: 1.5.0
4
+ kerf-ui-skill-version: 1.34.0
5
5
  ---
6
6
 
7
7
  # Building with @kerfjs/ui
8
8
 
9
- Read `../README.md`, `../docs/component-contract.md`, and `../docs/accessibility.md` before changing a consuming interface. Read `../docs/webawesome-theme.md` when using Web Awesome components or changing shared theme tokens.
9
+ Read `../docs/component-selection.md` first, then `./component-catalog.json`,
10
+ `./public-api-signatures-v1.md`, `./webawesome-jsx-signatures-v1.md`,
11
+ `../docs/recipes.md`, `../README.md`,
12
+ `../docs/component-contract.md`, and `../docs/accessibility.md` before changing
13
+ a consuming interface. Use the signature snapshot for exact props, callbacks,
14
+ return values, and supported import paths; do not infer them from examples.
15
+ Read `../docs/webawesome-theme.md` when using Web Awesome components or changing
16
+ shared theme tokens.
17
+
18
+ Choose from the need, not from visual resemblance:
19
+
20
+ 1. Search the Kerf catalog and preferred Web Awesome subset.
21
+ 2. Reuse a primitive when purpose, anatomy, state, and interaction match.
22
+ 3. Compose primitives for recurring layout. Prefer public props and tokens; use only cataloged `publicClasses` when composition-specific CSS needs a selector.
23
+ 4. Add a thin application adapter for copy, domain mapping, actions, routing, persistence, permissions, and transport.
24
+ 5. Build custom markup only when the semantic contract differs; if it recurs across products, open an upstream component or recipe request.
25
+
26
+ Quick routing:
27
+
28
+ | Need | Choose | Nearest alternatives / boundary |
29
+ | --- | --- | --- |
30
+ | Navigation row | `ListItem` | Use an ordinary link or button when sidebar/menu anatomy and state do not apply. Multiline leading icons stay aligned with the first text line. |
31
+ | Navigation row with a trailing action | `ListActionRow` | Use `ListItem` when the trailing region is dormant; never put controls inside either component's SafeHtml slots. Multiline leading icons stay aligned with the first text line. |
32
+ | Page, panel, or dialog heading | `Toolbar` or `PanelHeader` | Toolbar is persistent chrome; `PanelHeader` heads a panel, dialog, or page. |
33
+ | Exclusive choice | `TabBar`, `SegmentedControl`, or `Select` | Tabs switch tabpanels; segments expose a few choices; Select handles a longer value list. |
34
+ | Status or absent content | `StateBanner` or `EmptyState` | Web Awesome callouts suit ecosystem content; toasts are transient and never the only record of important state. |
35
+ | Loading placeholder | a component's `placeholder` prop, or `Skeleton` | Set `placeholder` on a value-bearing component (`Select`, `ListHeader`, `ListItem`, `ValueTableRow`, `PanelHeader`, `SegmentedControl`, `StateBanner`, `AppTab`, `ToolbarText`, `ListActionRow`) to render its real chrome with value slots as subtle **unanimated** skeletons and interactivity disabled — do not hand-rebuild an empty state. `Skeleton` is the standalone block for a custom slot. Use `LoadingSpinner` for known busy activity, not a skeleton; never animate a skeleton; prefer it over `wa-skeleton`. |
36
+ | Adjustable or static columns | `ResizableRegion` or CSS grid | Use the component only for a user-operable controlled separator. |
37
+ | Structured or ordinary search | `TokenSearchField` or an input | Use token search only when text and ordered filter chips form one editor. |
38
+ | Key/value facts | `ValueTable` with `ValueTableRow` | Use rows with `icon` only when the optional 24px leading visual adds context. |
39
+ | Command search | Application-local semantics using shared layout vocabulary | No runtime component or production recipe is exported; the app owns behavior, policy, and copy. |
40
+
41
+ For a complete shell, sidebar, workspace header, list-detail dialog, composer
42
+ form, list-state lifecycle, or mixed-control toolbar, start from the runnable
43
+ reference in [`docs/recipes.md`](../docs/recipes.md). Preserve its production
44
+ primitives and semantic ownership; replace application state, policy, and copy.
45
+
46
+ The concise human decision matrix is in [`component-selection.md`](../docs/component-selection.md). For exhaustive tool retrieval, load [`component-catalog.json`](./component-catalog.json), the canonical metadata for every public component/helper, composition, and supported Web Awesome entry. Use its linked current recipes instead of inferring behavior from CSS.
10
47
 
11
48
  Hard rules:
12
49
 
13
50
  1. Import visual components from explicit JavaScript subpaths. In CSS-aware browser builds each subpath brings in its own reachable CSS, including UI subcomponents, while unrelated CSS remains out. The root barrel and `@kerfjs/ui/unstyled` are CSS-free; pair the root barrel with `styles.css` only when the complete layer is intentional. Manual CSS subpaths remain available for custom pipelines.
14
51
  2. Components return Kerf `SafeHtml`. Never pass DOM nodes as children or use inline JSX event handlers.
15
- 3. Keep state, product copy, persistence, and domain mappings in the application. Do not add product-specific actions or fields to a generic component.
52
+ 3. Keep state, product copy, persistence, and domain mappings in the application. Do not add product-specific actions or fields to a generic component. Put ListItem/ListActionRow/ListHeader/AppTab domain `data-*` metadata in `rootAttributes`; use ListActionRow `trailingActionAttributes` and ListHeader `triggerAttributes` only for domain `data-*` or native popover target/action and `aria-controls`/`aria-haspopup`. These slots do not replace component-owned action, item/tab identity, selection, disclosure, naming, disabled, icon, or role semantics.
16
53
  4. Wire `data-action` hooks from one stable root with `delegate()` or `delegateActions()` and retain disposers.
17
- 5. Use the opinionated `--kui-color-*` semantic ramps and component-level override properties. Override tokens at the narrowest useful scope; do not hard-code appearance-specific colors or replace private descendant rules.
18
- 6. `Select` is pure until the app explicitly imports `@kerfjs/ui/select/register`; do not import Web Awesome's full registration bundle. When an app uses Web Awesome components, import the CSS-only `@kerfjs/ui/webawesome.css` theme once and keep importing individual Web Awesome component modules so their JavaScript remains tree-shakeable.
19
- 7. Decorative icons are hidden; controls are named; focus is visible; state never relies on color alone; reduced motion and increased contrast remain usable.
20
- 8. `ResizableRegion` uses `wireResizableRegions()` for Arrow, Shift+Arrow, Home/End, and pointer behavior. The app owns size persistence.
54
+ 5. Use the opinionated `--kui-color-*` semantic ramps and component-level override properties. Override tokens at the narrowest useful scope and prefer equivalent props/tokens. Public-class-to-public-class selectors are supported when every Kerf class appears in the catalog entry's `publicClasses`; never target descendant tags, ids, attribute-only anatomy, or unlisted implementation classes.
55
+ 6. `Select` is pure until the app explicitly imports `@kerfjs/ui/select/register`; do not import Web Awesome's full registration bundle. When an app writes direct `wa-*` JSX, add `import type {} from '@kerfjs/ui/webawesome'` for the catalog-supported intrinsic-element declarations, import the CSS-only `@kerfjs/ui/webawesome.css` theme once, and keep importing individual Web Awesome component modules so their JavaScript remains tree-shakeable. The type boundary emits no code and registers nothing. Pass icon-bearing `choices` and `renderSelected` content normally: `Select` preserves its slotted option icons across Kerf rerenders and keys selected content by the controlled value, so app wrappers must not add competing morph-control attributes.
56
+ 7. Decorative icons are hidden; controls are named; focus is visible; state never relies on color alone; reduced motion and increased contrast remain usable. `DisclosureArrow` defaults to an 18px root-scaled visual and exposes `--kui-disclosure-arrow-size` for consumer sizing; it never becomes the interaction or accessible-name owner. Put it in an owning native control with a stable accessible name and controlled `aria-expanded`. `ListHeader` toggle mode supplies it when `actionIcon` is omitted, but the app must reveal matching content; a custom icon replaces it. Author replacement icon content facing right before its configured direction transform is applied. Direction changes take the shortest rotation path, with counterclockwise chosen for a 180-degree closed-to-open tie. Kerf `Select` separately keeps its intrinsic Web Awesome expand glyph at `--kui-disclosure-icon-scale: .5`.
57
+ 8. `ResizableRegion` uses `wireResizableRegions()` for Arrow, Shift+Arrow, Home/End, and pointer behavior. The app owns size persistence. `handleIcon` replaces decorative dormant glyph content only.
21
58
  9. Use controlled `SegmentedControl` for a small exclusive choice set. Select `appearance="toolbar"` when nesting it inside `ToolbarControlGroup`; use rounded or pill shapes for standalone contexts. Handle its action, update `value`, keep meaningful choice labels, and preserve every enabled native button in sequential Tab order.
22
- 10. Compose `AppTab` inside controlled `TabBar`; call `wireTabBars()` once and retain its disposer. It owns same-bar drag mechanics, including proximity-based horizontal edge autoscroll, while the app applies `onReorder` and owns order, selection, panels, close policy, routing, and persistence.
23
- 11. Demo work uses public production component subpaths and their browser-selected CSS. Give every public visual component its own category-grouped catalog route; list themed third-party components under a clearly labeled collapsible ecosystem section, with a focused route for each. Declare direct `uses` relationships so `Used by` stays derivable, and theme shell chrome through the same semantic tokens as the stage instead of drawing a substitute.
24
- 12. The Web Awesome theme makes Tooltip and Popover arrowless by default. Keep that default unless a pointer materially clarifies the anchor; opt back in with `--wa-tooltip-arrow-size`, `--kui-wa-popover-arrow-size`, or a popover's public `--arrow-size`, and use `without-arrow` when local no-arrow intent should survive theme changes.
25
- 13. Treat the complete Web Awesome catalog as support coverage, not a recommendation list. Consider Popup when it replaces custom anchored positioning. Prefer Kerf `Select` over direct Dropdown/Dropdown Item/Select/Option composition, `SegmentedControl` over Button Group, `TabBar` or `SegmentedControl` over Web Awesome Tabs, `LucideIcon` over Web Awesome Icon, and `ResizableRegion` over Split Panel. Use Tree/Tree Item, Animated Image, and Comparison only for a specific required behavior; avoid Zoomable Frame.
59
+ 10. Compose `AppTab` inside controlled `TabBar`; call `wireTabBars()` once and retain its disposer. It owns same-bar drag mechanics, including proximity-based horizontal edge autoscroll, while the app applies `onReorder` and owns order, selection, panels, close policy, routing, and persistence. Arrow/Home/End select on move by default; pass `activation: 'manual'` (or `TabBar activation="manual"` per strip) so arrow keys move focus only and the user selects with Enter/Space/click — use it when selecting a tab is a heavy action. Use runtime-filtered `rootAttributes` for domain metadata and keep an optional `closeIcon` decorative and noninteractive.
60
+ 11. Use token-controlled `TokenSearchField` when free text and removable structured filters share one editor. Editable text stays DOM-owned between token changes. The leading icon, first text line, clear action, and trailing slot share one fixed row when content wraps. The app owns parsing and suggestions; call `readTokenSearchField()` on input, empty `textContent` on clear, use `placeTokenSearchCaret()` after explicit controlled focus changes, and call `wireTokenSearchFields()` once so Enter submits without inserting a line break and keyboard chip deletion restores focus plus the text-relative caret after controlled replacement. Enable `collapsible` for an animated iconic closed state, standalone or inside `ToolbarControlGroup`; the field keeps text or tokens expanded, and `wireTokenSearchFields()` manages the transient expand/collapse/focus by default (activate to reveal + focus, Escape or empty blur to collapse). Bind the field's `expanded` to the returned handle's `expanded(id)` signal or adopt your own via `collapsible.signals`; opt a behavior out only when the app must own it. Do not hand-roll the open handler, the focusout collapse, or a clear-button mousedown guard — the helper owns them. For real-app adoption it also provides a focusout keep-open exception (`data-token-search-keep-open` regions or `collapsible.keepOpenOn(target)`, so a sibling suggestions/date/help surface does not collapse an empty field), opt-in atomic-chip keyboard (`keyboard`: Backspace/Delete remove the adjacent chip via `onRemoveToken`, ArrowRight moves the caret past a trailing chip), and an `onEdit({id, editor, event})` input callback (the `InputEvent` lets you gate on `inputType`/`data`) — reach for these instead of re-adding hand-rolled keydown/input handlers around the field.
61
+ 12. Demo work uses public production component subpaths and their browser-selected CSS. Give every public visual component its own category-grouped catalog route; list themed third-party components under a clearly labeled collapsible ecosystem section, with a focused route for each. Project its deterministic repository-relative demo source and existing documentation path so the detail can expose `View demo source` and `Read guidance` links without a runtime export; also derive first-party component implementation paths from their canonical browser imports, and label Web Awesome documentation as Kerf integration guidance. Declare direct `uses` relationships so `Used by` stays derivable, and theme shell chrome through the same semantic tokens as the stage instead of drawing a substitute.
62
+ 13. The Web Awesome theme makes Tooltip and Popover arrowless by default. Keep that default unless a pointer materially clarifies the anchor; opt back in with `--wa-tooltip-arrow-size`, `--kui-wa-popover-arrow-size`, or a popover's public `--arrow-size`, and use `without-arrow` when local no-arrow intent should survive theme changes.
63
+ 14. Treat the complete Web Awesome catalog as support coverage, not a recommendation list. Consider Popup when it replaces custom anchored positioning. Prefer Kerf `Select` over direct Dropdown/Dropdown Item/Select/Option composition, `SegmentedControl` over Button Group, `TabBar` or `SegmentedControl` over Web Awesome Tabs, `LucideIcon` over Web Awesome Icon, and `ResizableRegion` over Split Panel. Use Tree/Tree Item, Animated Image, and Comparison only for a specific required behavior; avoid Zoomable Frame.
64
+ 15. Build sidebars, main areas, inspectors, and dialogs from `@kerfjs/ui/layout.css`: an unpadded `.kui-pane`, optional `.kui-pane__toolbar`, one scrolling `.kui-pane__content`, and optional `.kui-pane__footer`. Add `.kui-content` for 24px major vertical separation and `.kui-content-item` for a child-owned 8px inline margin, 1px transparent-or-visible border, 8px padding, and 12px radius. Use the pill modifier for 22px. Do not pad pane shells or duplicate item geometry in wrappers.
65
+ 16. Keep a visible collapsible pane's collapse control in its own toolbar. When hidden, move its restore control into the adjacent main toolbar on the corresponding logical edge: leading for an inline-start sidebar and trailing for an inline-end inspector. Collapse the pane completely; do not preserve an empty icon-only rail.
66
+ 16. The only direct children of a `Toolbar` zone (`leading`/`center`/`trailing`) are `ToolbarText` (identity/title text) and `ToolbarControlGroup`; never drop bare buttons, inputs, links, or arbitrary markup straight into a zone. `SegmentedControl`, `Select`, a collapsible `TokenSearchField`, and Web Awesome controls all live inside a `ToolbarControlGroup`. A popup menu in a toolbar is a `single` `ToolbarControlGroup` wrapping a `wa-dropdown` whose `slot="trigger"` `wa-button` is the toolbar button and whose `wa-dropdown-item`s are the menu, with the dropdown kept under `data-morph-skip-children`. `PanelHeader` composes these for you as a panel/dialog/page heading. Wrap every toolbar item, including dormant text, in `ToolbarControlGroup`. A group remains 44px outside (`calc(2px + remify(42px))`) when its border/background are transparent; use 8px between groups and inside items. Split dormant and interactive regions: `ListHeader` fills the available inline width and keeps its label and mutually exclusive semantic count or non-count `badge` together, with an independent logical-end 44px action unless disclosure mode makes the title cluster the button. Its action visual defaults to 18px through `--kui-list-header-action-icon-size`; never shrink the target to match it. Pass every non-negative safe-integer section quantity through `count` with a localized full spoken `countLabel`; never concatenate it into `label` or put a number in `badge`. `ListItem.trailing` is dormant; use `ListActionRow` when primary and trailing actions need sibling 44px native buttons. Its `label`, `icon`, and `trailingActionIcon` slots are also dormant and cannot contain controls. Let panes relocate at narrow widths instead of shrinking targets.
67
+ 17. When a recurring concept has no matching export or production recipe, keep its semantics in a thin application adapter while reusing the public layout vocabulary. The composer recipe uses one visible form surface, `PanelHeader` title/summary ids, shared 8px field/action gutters, 24px major rhythm, and a conditional StateBanner as its only nested semantic surface; do not turn every section into a card or double-inset intrinsically bordered controls. The application-local `../docs/examples/command-palette-adapter.tsx` is reference source for one such missing concept, not an `@kerfjs/ui` runtime export or catalog recipe. The application owns its registration, ranking, history, permissions, availability, shortcut policy, focus policy, dispatch, and copy. If a missing concept recurs across products, open an upstream component or recipe request.
68
+ 18. Compose `ValueTable` from typed `ValueTableRow` entries instead of handwritten `dt`/`dd` wrappers. Pass `icon` for the optional 24px leading visual; the row owns 8px of root-scaled top and bottom padding, the 8px iconless or 40px icon-bearing separator start, and the common 8px right inset.
69
+ 19. Use `PanelHeader` for a panel, dialog, or page heading, not a custom heading row. It is a plain top `Toolbar` (overriding no Toolbar styles): the leading zone holds an optional icon (a normal bordered `ToolbarControlGroup` given a brand fill with a matching border) and the title as extra-large `ToolbarText`; the app's trailing controls (typically a `ToolbarControlGroup`) go straight in the trailing zone, and the icon group is omitted when no icon is passed. Its optional `summary`/`summaryId` row stays below the title. The app owns modal behavior, focus, dismissal, command policy, and action handling.
70
+ 20. Space with the official five-step scale, picked by how connected two elements are — not by eye. `0` `--kui-space-none` = no separation (one unit); `4px` `--kui-space-2xs` = very minor air on a connected cluster; `8px` `--kui-space-xs` = standard, between elements within a group; `16px` `--kui-space-m` = minor, between homogeneous groups; `24px` `--kui-space-l` = major, between heterogeneous groups (the `.kui-content` rhythm). The 8px-vs-24px distinction is inside-a-group vs between-major-differing-regions. `--kui-space-s` (12px) and `--kui-space-xl` (32px) are off-scale exceptions; prefer the five canonical remify-authored tokens. See `docs/layout.md` "Spacing scale".
71
+ 21. Pick a whole-screen layout from the opt-in, tree-shakeable subpaths by data + interaction + device, and derive responsiveness from `@kerfjs/ui/device-class`'s `deviceClass()` (`compact` = handset or portrait tablet = one pane at a time). Simple/flat → `NavStack` with one entry (single pane), plus `TabScaffold` (`@kerfjs/ui/tab-scaffold`, iOS bottom tabs, each tab its own `NavStack`) for 2–5 co-equal sections on `compact`. Drill-down → `NavStack` (`@kerfjs/ui/nav-stack`), upgrading to `SplitView` (`@kerfjs/ui/split-view`, list-detail) once both panes fit (`atLeast('tablet')` landscape); `SplitView` collapses to a `NavStack` on `compact`. Complex tool with peripheral panels → `Workbench` (`@kerfjs/ui/workbench`, collapsible rails + drawer) `atLeast('desktop')`, degrading to `NavStack`/overlays below. These are declarative (the app owns the stack/selection/collapsed/active state as signals) with disposer-returning `wire…` helpers; each ships a companion CSS import and stays out of the barrel. For a standalone collapsible rail or bottom drawer outside a full shell, use `CollapsiblePanel` + `CollapsiblePanelToggle` (`@kerfjs/ui/collapsible-panel`) with `wireSidebar` (`@kerfjs/ui/wire-sidebar`): the standard collapse animation and per-side icon convention (`PanelLeft*`/`PanelRight*`/`PanelBottom*`) plus toggle, focus, compact overlay, and persistence semantics. Dialogs pick the same inner layout, then present per device class (full-screen modal on `compact`, inline on desktop). See `docs/app-layouts.md` and `docs/collapsible-panel.md`.
26
72
 
27
73
  Common mistakes:
28
74
 
@@ -31,8 +77,24 @@ Common mistakes:
31
77
  | Hard-coded project/transport action in a component | Pass a semantic `data-action` string from an application adapter |
32
78
  | Per-instance signal at module scope | Create state in the application or a factory and pass it in |
33
79
  | `role="menuitem"` on one button | Use the native button, or implement the complete ARIA menu widget |
80
+ | Put a button/link/interactive role in `ListItem.trailing` or a `ListActionRow` SafeHtml slot | Use `ListActionRow` for the sibling controls and keep its label/icon slots dormant |
81
+ | Copy ListItem/ListHeader markup to add product data or a popover target | Use the typed `rootAttributes`/`triggerAttributes` slots and retain the component's protected semantics |
82
+ | Concatenate a section count into a ListHeader label or numeric badge | Pass `count={value}` and a localized full phrase such as `countLabel="3 notes"`; reserve `badge` for non-count SafeHtml |
83
+ | Put a chevron on navigation that reveals nothing | Remove it, or model a real controlled `ListHeader` disclosure; omit `actionIcon` to use the production `DisclosureArrow` |
34
84
  | Test only a custom-element attribute | Assert live property, emitted event, focus, and rendered output |
35
85
  | Import all Web Awesome components | Import only `@kerfjs/ui/select/register` for `Select`, or individual Web Awesome modules for other controls; `webawesome.css` registers no JavaScript |
86
+ | Write `wa-*` JSX without activating its types | Add `import type {} from '@kerfjs/ui/webawesome'`; registration and theme imports remain separate |
36
87
  | Maintain a root list of component styles | Import each visual component from its JS subpath; its reachable CSS follows automatically |
37
88
  | Add demo-only markup for a production state | Add the state to the production component, then render that export in the catalog |
38
89
  | Choose a listed ecosystem component by default | Apply the component-selection guidance above; catalog coverage means supported and themed, not preferred |
90
+ | Add sidebar-specific wrapper padding | Use the unpadded `.kui-pane`; let `ListHeader`, `ListItem`, and `.kui-content-item` own their 8/1/8 geometry |
91
+ | Put bare text or controls directly in a toolbar slot | Wrap every item in `ToolbarControlGroup`, using `appearance="borderless"` for transparent chrome |
92
+ | Let the document, pane, and list all scroll | Keep fixed chrome outside one `.kui-pane__content` scroll owner per pane |
93
+ | Invent an `@kerfjs/ui` command-palette export | Keep the semantics application-local, reuse public layout vocabulary, and propose recurring behavior upstream |
94
+ | Handwrite `ValueTable` row wrappers or compensate their padding or separators | Compose `ValueTableRow`; its root-scaled block padding, optional icon hook, and separator geometry are public contract |
95
+ | Rebuild a panel/dialog heading row by hand | Use `PanelHeader`: a plain toolbar with an optional bordered icon group, an xl title, trailing controls you pass, and the optional subtitle below |
96
+ | Force a `width`/`height`/`padding` on a component to size or space it | Let it size to its content and tokens; a forced box leaves a halo or a stretched oval — adjust an icon-size or spacing token, not the box |
97
+ | Wrap a component or region in a card, border, backdrop, or outline to "contain" it | Let it sit on the surface; add a `.kui-content-item` only for a real distinction — hierarchy comes from alignment, spacing, and type first |
98
+ | Add another container's padding on top of a content-item's own margin | Pick one owner of the inset; a pane has no padding and its `.kui-content` children own the 8/1/8 geometry — stacking them double-insets |
99
+ | Keep chrome, a label, or a readout that aids no decision | Delete it; every element must help a person decide or act |
100
+ | Override a component's default size or color because it "looks off" | Trust the default (a LucideIcon is 24px) and fix the surrounding layout instead |
@@ -0,0 +1,106 @@
1
+ # Web Awesome JSX signatures for the UI authoring corpus
2
+
3
+ Generated from the emitted `@kerfjs/ui@5.0.0-beta.11` declaration boundary. Import `@kerfjs/ui/webawesome` for type effects when authoring direct `wa-*` JSX. The module emits no runtime behavior and does not register custom elements.
4
+
5
+ ```ts
6
+ import { KerfCustomElement } from 'kerfjs/jsx-runtime';
7
+
8
+ /**
9
+ * Opt-in Kerf JSX declarations for the Web Awesome elements supported by the
10
+ * @kerfjs/ui catalog. Import this module for type effects only; component
11
+ * registration remains an explicit application concern.
12
+ */
13
+ declare module 'kerfjs/jsx-runtime' {
14
+ namespace JSX {
15
+ interface IntrinsicElements {
16
+ 'wa-accordion': KerfCustomElement;
17
+ 'wa-accordion-item': KerfCustomElement;
18
+ 'wa-animated-image': KerfCustomElement;
19
+ 'wa-animation': KerfCustomElement;
20
+ 'wa-avatar': KerfCustomElement;
21
+ 'wa-badge': KerfCustomElement;
22
+ 'wa-breadcrumb': KerfCustomElement;
23
+ 'wa-breadcrumb-item': KerfCustomElement;
24
+ 'wa-select': KerfCustomElement & {
25
+ class?: string;
26
+ name?: string;
27
+ label?: string;
28
+ 'aria-label'?: string;
29
+ value?: string;
30
+ placeholder?: string;
31
+ disabled?: boolean;
32
+ };
33
+ 'wa-option': KerfCustomElement & {
34
+ value?: string;
35
+ };
36
+ 'wa-button-group': KerfCustomElement;
37
+ 'wa-callout': KerfCustomElement;
38
+ 'wa-card': KerfCustomElement;
39
+ 'wa-carousel': KerfCustomElement;
40
+ 'wa-carousel-item': KerfCustomElement;
41
+ 'wa-checkbox': KerfCustomElement;
42
+ 'wa-checkbox-group': KerfCustomElement;
43
+ 'wa-color-picker': KerfCustomElement;
44
+ 'wa-comparison': KerfCustomElement;
45
+ 'wa-copy-button': KerfCustomElement;
46
+ 'wa-details': KerfCustomElement;
47
+ 'wa-divider': KerfCustomElement;
48
+ 'wa-dialog': KerfCustomElement;
49
+ 'wa-drawer': KerfCustomElement;
50
+ 'wa-button': KerfCustomElement & {
51
+ slot?: string;
52
+ appearance?: string;
53
+ 'with-caret'?: boolean;
54
+ 'aria-label'?: string;
55
+ };
56
+ 'wa-dropdown': KerfCustomElement & {
57
+ placement?: string;
58
+ };
59
+ 'wa-dropdown-item': KerfCustomElement;
60
+ 'wa-format-bytes': KerfCustomElement;
61
+ 'wa-format-date': KerfCustomElement;
62
+ 'wa-format-number': KerfCustomElement;
63
+ 'wa-icon': KerfCustomElement;
64
+ 'wa-include': KerfCustomElement;
65
+ 'wa-input': KerfCustomElement;
66
+ 'wa-intersection-observer': KerfCustomElement;
67
+ 'wa-known-date': KerfCustomElement;
68
+ 'wa-markdown': KerfCustomElement;
69
+ 'wa-mutation-observer': KerfCustomElement;
70
+ 'wa-number-input': KerfCustomElement;
71
+ 'wa-otp-input': KerfCustomElement;
72
+ 'wa-page': KerfCustomElement;
73
+ 'wa-pagination': KerfCustomElement;
74
+ 'wa-popover': KerfCustomElement;
75
+ 'wa-popup': KerfCustomElement;
76
+ 'wa-progress-bar': KerfCustomElement;
77
+ 'wa-progress-ring': KerfCustomElement;
78
+ 'wa-qr-code': KerfCustomElement;
79
+ 'wa-radio': KerfCustomElement;
80
+ 'wa-radio-group': KerfCustomElement;
81
+ 'wa-random-content': KerfCustomElement;
82
+ 'wa-rating': KerfCustomElement;
83
+ 'wa-relative-time': KerfCustomElement;
84
+ 'wa-resize-observer': KerfCustomElement;
85
+ 'wa-scroller': KerfCustomElement;
86
+ 'wa-skeleton': KerfCustomElement;
87
+ 'wa-slider': KerfCustomElement;
88
+ 'wa-spinner': KerfCustomElement;
89
+ 'wa-split-panel': KerfCustomElement;
90
+ 'wa-switch': KerfCustomElement;
91
+ 'wa-tab': KerfCustomElement;
92
+ 'wa-tab-group': KerfCustomElement;
93
+ 'wa-tab-panel': KerfCustomElement;
94
+ 'wa-tag': KerfCustomElement;
95
+ 'wa-textarea': KerfCustomElement;
96
+ 'wa-time-input': KerfCustomElement;
97
+ 'wa-toast': KerfCustomElement;
98
+ 'wa-toast-item': KerfCustomElement;
99
+ 'wa-tooltip': KerfCustomElement;
100
+ 'wa-tree': KerfCustomElement;
101
+ 'wa-tree-item': KerfCustomElement;
102
+ 'wa-zoomable-frame': KerfCustomElement;
103
+ }
104
+ }
105
+ }
106
+ ```
package/dist/app-tab.d.ts CHANGED
@@ -1,5 +1,13 @@
1
1
  import { SafeHtml } from 'kerfjs';
2
2
 
3
+ type AppTabRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
4
+ 'data-component'?: never;
5
+ 'data-action'?: never;
6
+ 'data-tab-id'?: never;
7
+ 'data-selected'?: never;
8
+ 'data-tab-dragging'?: never;
9
+ 'data-tab-drop-position'?: never;
10
+ }>;
3
11
  interface AppTabProps {
4
12
  id: string;
5
13
  name: string;
@@ -8,11 +16,15 @@ interface AppTabProps {
8
16
  draggable?: boolean;
9
17
  leading?: SafeHtml;
10
18
  trailing?: SafeHtml;
19
+ /** Decorative dormant content for the close button. Must not contain interactive descendants. */
20
+ closeIcon?: SafeHtml;
11
21
  selectAction?: string;
12
22
  closeAction?: string;
13
23
  className?: string;
14
- rootAttributes?: Readonly<Record<`data-${string}`, string>>;
24
+ /** Render as an unanimated loading skeleton, disabling select/close and dragging. */
25
+ placeholder?: boolean;
26
+ rootAttributes?: AppTabRootAttributes;
15
27
  }
16
- declare function AppTab({ id, name, selected, closable, draggable, leading, trailing, selectAction, closeAction, className, rootAttributes }: AppTabProps): SafeHtml;
28
+ declare function AppTab({ id, name, selected, closable, draggable, leading, trailing, closeIcon, selectAction, closeAction, className, placeholder, rootAttributes }: AppTabProps): SafeHtml;
17
29
 
18
30
  export { AppTab, type AppTabProps };
package/dist/app-tab.js CHANGED
@@ -1,3 +1,5 @@
1
- export { AppTab } from './chunk-T5XNMVOI.js';
1
+ export { AppTab } from './chunk-2Z5TWHKQ.js';
2
+
3
+
2
4
 
3
5
  //# sourceMappingURL=app-tab.js.map
@@ -1,3 +1,4 @@
1
- import '../../src/foundation.css';
2
- import '../../src/app-tab.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/skeleton.css';
3
+ import '../styles/app-tab.css';
3
4
  export * from '../app-tab.js';
@@ -0,0 +1,4 @@
1
+ import '../styles/foundation.css';
2
+ import '../styles/lucide-icon.css';
3
+ import '../styles/disclosure-arrow.css';
4
+ export * from '../disclosure-arrow.js';
@@ -1,4 +1,4 @@
1
- import '../../src/foundation.css';
2
- import '../../src/loading-spinner.css';
3
- import '../../src/empty-state.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/loading-spinner.css';
3
+ import '../styles/empty-state.css';
4
4
  export * from '../empty-state.js';
@@ -0,0 +1,3 @@
1
+ import '../styles/foundation.css';
2
+ import '../styles/floating-toolbar.css';
3
+ export * from '../floating-toolbar.js';
@@ -0,0 +1,4 @@
1
+ import '../styles/foundation.css';
2
+ import '../styles/skeleton.css';
3
+ import '../styles/list-action-row.css';
4
+ export * from '../list-action-row.js';
@@ -0,0 +1,6 @@
1
+ import '../styles/foundation.css';
2
+ import '../styles/lucide-icon.css';
3
+ import '../styles/disclosure-arrow.css';
4
+ import '../styles/skeleton.css';
5
+ import '../styles/list-header.css';
6
+ export * from '../list-header.js';
@@ -0,0 +1,4 @@
1
+ import '../styles/foundation.css';
2
+ import '../styles/skeleton.css';
3
+ import '../styles/list-item.css';
4
+ export * from '../list-item.js';
@@ -1,3 +1,3 @@
1
- import '../../src/foundation.css';
2
- import '../../src/loading-spinner.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/loading-spinner.css';
3
3
  export * from '../loading-spinner.js';
@@ -1,3 +1,3 @@
1
- import '../../src/foundation.css';
2
- import '../../src/lucide-icon.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/lucide-icon.css';
3
3
  export * from '../lucide-icon.js';
@@ -0,0 +1,7 @@
1
+ import '../styles/foundation.css';
2
+ import '../styles/skeleton.css';
3
+ import '../styles/toolbar.css';
4
+ import '../styles/toolbar-control-group.css';
5
+ import '../styles/toolbar-text.css';
6
+ import '../styles/panel-header.css';
7
+ export * from '../panel-header.js';
@@ -1,3 +1,3 @@
1
- import '../../src/foundation.css';
2
- import '../../src/resizable-region.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/resizable-region.css';
3
3
  export * from '../resizable-region.js';
@@ -1,3 +1,4 @@
1
- import '../../src/foundation.css';
2
- import '../../src/segmented-control.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/skeleton.css';
3
+ import '../styles/segmented-control.css';
3
4
  export * from '../segmented-control.js';
@@ -1,4 +1,5 @@
1
- import '../../src/foundation.css';
2
- import '../../src/lucide-icon.css';
3
- import '../../src/select.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/lucide-icon.css';
3
+ import '../styles/skeleton.css';
4
+ import '../styles/select.css';
4
5
  export * from '../select.js';
@@ -0,0 +1,3 @@
1
+ import '../styles/foundation.css';
2
+ import '../styles/skeleton.css';
3
+ export * from '../skeleton.js';
@@ -1,3 +1,4 @@
1
- import '../../src/foundation.css';
2
- import '../../src/state-banner.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/skeleton.css';
3
+ import '../styles/state-banner.css';
3
4
  export * from '../state-banner.js';
@@ -1,3 +1,3 @@
1
- import '../../src/foundation.css';
2
- import '../../src/tab-bar.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/tab-bar.css';
3
3
  export * from '../tab-bar.js';
@@ -0,0 +1,4 @@
1
+ import '../styles/foundation.css';
2
+ import '../styles/lucide-icon.css';
3
+ import '../styles/token-search-field.css';
4
+ export * from '../token-search-field.js';
@@ -1,3 +1,3 @@
1
- import '../../src/foundation.css';
2
- import '../../src/toolbar-control-group.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/toolbar-control-group.css';
3
3
  export * from '../toolbar-control-group.js';
@@ -1,3 +1,4 @@
1
- import '../../src/foundation.css';
2
- import '../../src/toolbar-text.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/skeleton.css';
3
+ import '../styles/toolbar-text.css';
3
4
  export * from '../toolbar-text.js';
@@ -1,3 +1,3 @@
1
- import '../../src/foundation.css';
2
- import '../../src/toolbar.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/toolbar.css';
3
3
  export * from '../toolbar.js';
@@ -1,3 +1,4 @@
1
- import '../../src/foundation.css';
2
- import '../../src/value-table.css';
1
+ import '../styles/foundation.css';
2
+ import '../styles/skeleton.css';
3
+ import '../styles/value-table.css';
3
4
  export * from '../value-table.js';
@@ -0,0 +1,119 @@
1
+ import { SafeHtml } from 'kerfjs';
2
+
3
+ /** A reference link shown in the detail footer for the active entry. */
4
+ interface CatalogResource {
5
+ label: string;
6
+ href: string;
7
+ /** Optional monospace detail (e.g. a file path) shown after the label. */
8
+ detail?: string;
9
+ }
10
+ /** A related entry offered in the detail footer's "Related entries" popup menu. */
11
+ interface CatalogRelated {
12
+ id: string;
13
+ name: string;
14
+ /** Group heading in the menu, e.g. "Uses" / "Used by". */
15
+ group: string;
16
+ }
17
+ interface CatalogEntry {
18
+ id: string;
19
+ name: string;
20
+ description?: string;
21
+ resources?: readonly CatalogResource[];
22
+ related?: readonly CatalogRelated[];
23
+ }
24
+ interface CatalogSection {
25
+ category: string;
26
+ entries: readonly CatalogEntry[];
27
+ }
28
+ /**
29
+ * A secondary group of sections shown below the primary sidebar sections with a
30
+ * quieter "ecosystem" treatment (e.g. third-party components). Optionally
31
+ * collapsible — the app owns `expanded` and toggles it from `wireCatalog`'s
32
+ * `onToggleSecondary`.
33
+ */
34
+ interface CatalogSecondaryGroup {
35
+ label: string;
36
+ sections: readonly CatalogSection[];
37
+ /** When true, the group's label is a disclosure toggle controlling `expanded`. */
38
+ collapsible?: boolean;
39
+ /** Whether the group is expanded (controlled). Ignored unless `collapsible`. */
40
+ expanded?: boolean;
41
+ }
42
+ interface CatalogBrand {
43
+ title: string;
44
+ subtitle?: string;
45
+ /** Logo image URL (rendered decorative). Omit for a text-only brand. */
46
+ logoUrl?: string;
47
+ }
48
+ interface CatalogProps {
49
+ brand: CatalogBrand;
50
+ sections: readonly CatalogSection[];
51
+ /** The controlled active entry id — the app owns this signal. */
52
+ active: string;
53
+ /** The rendered preview for the active entry; the app computes it from `active`. */
54
+ content: SafeHtml;
55
+ /** Whether the sidebar is collapsed (controlled). */
56
+ collapsed?: boolean;
57
+ /** Current theme; when set, a theme toggle is shown that switches to the opposite. Omit to hide it. */
58
+ theme?: 'light' | 'dark';
59
+ /** Extra header controls placed before the theme toggle (each a `ToolbarControlGroup`). */
60
+ headerActions?: SafeHtml;
61
+ /** A secondary "ecosystem" group of sections below the primary category groups. */
62
+ secondarySections?: CatalogSecondaryGroup;
63
+ /** Extra sidebar content below the category groups (and the secondary group). */
64
+ sidebarFooter?: SafeHtml;
65
+ /** Status line content shown at the start of the detail footer. */
66
+ status?: SafeHtml;
67
+ selectAction?: string;
68
+ toggleSidebarAction?: string;
69
+ toggleThemeAction?: string;
70
+ /** Action fired by the secondary group's disclosure toggle (when collapsible). */
71
+ toggleSecondaryAction?: string;
72
+ className?: string;
73
+ }
74
+ /**
75
+ * A reusable component-catalog shell: a collapsible category sidebar, a titled
76
+ * detail stage that renders the active entry's preview, and a footer with
77
+ * reference links and a related-entry popup menu. Built entirely from public
78
+ * `@kerfjs/ui` primitives. Controlled and stateless — the app owns the `active`,
79
+ * `collapsed`, and `theme` signals and computes `content` from `active` in its own
80
+ * render; wire the sidebar/collapse/theme actions with `wireCatalog`.
81
+ */
82
+ declare function Catalog({ brand, sections, active, content, collapsed, theme, headerActions, secondarySections, sidebarFooter, status, selectAction, toggleSidebarAction, toggleThemeAction, toggleSecondaryAction, className, }: CatalogProps): SafeHtml;
83
+ /**
84
+ * How a {@link CatalogExample}'s content aligns its visible left edge with the
85
+ * example's `ListHeader` label (which sits 16px in — 8px title + 8px label):
86
+ * - `'glyph'` — a bare glyph/text specimen with no inline geometry insets the full 16px.
87
+ * - `'inline-control'` — a control that already carries ~8px of its own inline padding insets 8px so its content lands on the same line.
88
+ * - `'none'` — a content-item / composition that owns its geometry and already aligns; no inset (default).
89
+ */
90
+ type CatalogExampleAlign = 'glyph' | 'inline-control' | 'none';
91
+ interface CatalogExampleProps {
92
+ /** The example's label, shown as a `ListHeader` above the specimen. Omit for a bare specimen. */
93
+ label?: string;
94
+ /** Optional explanatory note between the label and the specimen. */
95
+ note?: SafeHtml | string;
96
+ /** Alignment inset for the specimen — see {@link CatalogExampleAlign}. Default `'none'`. */
97
+ align?: CatalogExampleAlign;
98
+ className?: string;
99
+ children?: SafeHtml | readonly SafeHtml[];
100
+ }
101
+ /**
102
+ * One labeled example in a catalog preview: a `ListHeader` label, an optional
103
+ * note, and the specimen. `align` insets the specimen so its visible left edge
104
+ * lines up with the label text, encoding the catalog's alignment rules as a
105
+ * first-class prop instead of per-demo CSS. The inset is published as the
106
+ * `--kui-catalog-example-align` custom property so a debug overlay can exclude it
107
+ * from a specimen's measured margin.
108
+ */
109
+ declare function CatalogExample({ label, note, align, className, children }: CatalogExampleProps): SafeHtml;
110
+ interface CatalogExampleStackProps {
111
+ /** Accessible label for the stack region. */
112
+ label?: string;
113
+ className?: string;
114
+ children?: SafeHtml | readonly SafeHtml[];
115
+ }
116
+ /** A vertically-stacked group of {@link CatalogExample}s with the catalog's example rhythm. */
117
+ declare function CatalogExampleStack({ label, className, children }: CatalogExampleStackProps): SafeHtml;
118
+
119
+ export { Catalog, type CatalogBrand, type CatalogEntry, CatalogExample, type CatalogExampleAlign, type CatalogExampleProps, CatalogExampleStack, type CatalogExampleStackProps, type CatalogProps, type CatalogRelated, type CatalogResource, type CatalogSecondaryGroup, type CatalogSection };