@kerfjs/ui 5.0.0-beta.8 → 5.0.0-beta.81

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 (807) hide show
  1. package/README.md +546 -139
  2. package/ai/application-ui-diagnostic-ids-v1.json +113 -0
  3. package/ai/application-ui-profile-sync.cjs +548 -0
  4. package/ai/application-ui-profile.d.mts +1 -0
  5. package/ai/application-ui-profile.d.ts +106 -0
  6. package/ai/application-ui-profile.defaults.json +96 -0
  7. package/ai/application-ui-profile.mjs +653 -0
  8. package/ai/application-ui-profile.schema.json +140 -0
  9. package/ai/catalog-authoring.json +36 -0
  10. package/ai/catalog-authoring.schema.json +109 -0
  11. package/ai/compile-time-contracts-v1.json +149 -0
  12. package/ai/compile-time-contracts-v1.schema.json +52 -0
  13. package/ai/component-catalog-extension.schema.json +104 -0
  14. package/ai/component-catalog.json +4280 -457
  15. package/ai/component-catalog.schema.json +94 -1
  16. package/ai/component-class-owners.cjs +83 -0
  17. package/ai/component-composition-extension.d.ts +7 -0
  18. package/ai/component-composition-extension.schema.json +7 -0
  19. package/ai/component-composition-rules.json +520 -0
  20. package/ai/component-composition.d.ts +129 -0
  21. package/ai/component-composition.json +7401 -0
  22. package/ai/component-composition.schema.json +408 -0
  23. package/ai/components/README.md +171 -0
  24. package/ai/components/application-tabs.md +65 -0
  25. package/ai/components/badge.md +72 -0
  26. package/ai/components/chip.md +72 -0
  27. package/ai/components/collapsible-panel.md +102 -0
  28. package/ai/components/content-item.md +96 -0
  29. package/ai/components/disclosure-arrow.md +77 -0
  30. package/ai/components/document-baseline.md +75 -0
  31. package/ai/components/empty-state.md +80 -0
  32. package/ai/components/feedback.md +71 -0
  33. package/ai/components/floating-toolbar.md +82 -0
  34. package/ai/components/foundation.md +65 -0
  35. package/ai/components/grid.md +100 -0
  36. package/ai/components/headers.md +63 -0
  37. package/ai/components/layout.md +75 -0
  38. package/ai/components/list-action-row.md +91 -0
  39. package/ai/components/list-header.md +91 -0
  40. package/ai/components/list-inset-control.md +74 -0
  41. package/ai/components/list-inset-text.md +72 -0
  42. package/ai/components/list-item.md +94 -0
  43. package/ai/components/list.md +106 -0
  44. package/ai/components/loading-spinner.md +73 -0
  45. package/ai/components/lucide-icon.md +97 -0
  46. package/ai/components/nav-stack.md +105 -0
  47. package/ai/components/pane.md +104 -0
  48. package/ai/components/popup-menu.md +171 -0
  49. package/ai/components/recipe-app-shell.md +57 -0
  50. package/ai/components/recipe-collapsible-sidebar.md +57 -0
  51. package/ai/components/recipe-compact-toolbar.md +57 -0
  52. package/ai/components/recipe-composer-form.md +57 -0
  53. package/ai/components/recipe-list-detail-dialog.md +57 -0
  54. package/ai/components/recipe-list-workspace-states.md +57 -0
  55. package/ai/components/recipe-loading-inspector.md +57 -0
  56. package/ai/components/recipe-navigation-sidebar.md +57 -0
  57. package/ai/components/recipe-navigation-stack.md +57 -0
  58. package/ai/components/recipe-workspace-header.md +57 -0
  59. package/ai/components/resize.md +106 -0
  60. package/ai/components/row.md +96 -0
  61. package/ai/components/segmented-control.md +82 -0
  62. package/ai/components/select.md +115 -0
  63. package/ai/components/skeleton.md +84 -0
  64. package/ai/components/spacer.md +86 -0
  65. package/ai/components/split-view.md +103 -0
  66. package/ai/components/state-banner.md +94 -0
  67. package/ai/components/sunken-panel.md +79 -0
  68. package/ai/components/surface-scaffold.md +87 -0
  69. package/ai/components/tab-bar.md +113 -0
  70. package/ai/components/tab-navigator.md +95 -0
  71. package/ai/components/tabs.md +95 -0
  72. package/ai/components/text.md +87 -0
  73. package/ai/components/token-search-field.md +107 -0
  74. package/ai/components/toolbar-control-group.md +121 -0
  75. package/ai/components/toolbar-text.md +98 -0
  76. package/ai/components/toolbar.md +101 -0
  77. package/ai/components/value-table.md +73 -0
  78. package/ai/components/wa-accordion-item.md +55 -0
  79. package/ai/components/wa-accordion.md +65 -0
  80. package/ai/components/wa-animated-image.md +55 -0
  81. package/ai/components/wa-animation.md +55 -0
  82. package/ai/components/wa-avatar.md +55 -0
  83. package/ai/components/wa-badge.md +55 -0
  84. package/ai/components/wa-breadcrumb-item.md +53 -0
  85. package/ai/components/wa-breadcrumb.md +55 -0
  86. package/ai/components/wa-button-group.md +59 -0
  87. package/ai/components/wa-button.md +55 -0
  88. package/ai/components/wa-callout.md +58 -0
  89. package/ai/components/wa-card.md +59 -0
  90. package/ai/components/wa-carousel-item.md +53 -0
  91. package/ai/components/wa-carousel.md +55 -0
  92. package/ai/components/wa-checkbox-group.md +55 -0
  93. package/ai/components/wa-checkbox.md +55 -0
  94. package/ai/components/wa-color-picker.md +55 -0
  95. package/ai/components/wa-comparison.md +55 -0
  96. package/ai/components/wa-copy-button.md +55 -0
  97. package/ai/components/wa-details.md +61 -0
  98. package/ai/components/wa-dialog.md +59 -0
  99. package/ai/components/wa-divider.md +53 -0
  100. package/ai/components/wa-drawer.md +55 -0
  101. package/ai/components/wa-dropdown-item.md +60 -0
  102. package/ai/components/wa-dropdown.md +60 -0
  103. package/ai/components/wa-format-bytes.md +53 -0
  104. package/ai/components/wa-format-date.md +53 -0
  105. package/ai/components/wa-format-number.md +53 -0
  106. package/ai/components/wa-icon.md +58 -0
  107. package/ai/components/wa-include.md +53 -0
  108. package/ai/components/wa-input.md +59 -0
  109. package/ai/components/wa-intersection-observer.md +53 -0
  110. package/ai/components/wa-known-date.md +53 -0
  111. package/ai/components/wa-markdown.md +53 -0
  112. package/ai/components/wa-mutation-observer.md +53 -0
  113. package/ai/components/wa-number-input.md +55 -0
  114. package/ai/components/wa-option.md +59 -0
  115. package/ai/components/wa-otp-input.md +53 -0
  116. package/ai/components/wa-page.md +53 -0
  117. package/ai/components/wa-pagination.md +55 -0
  118. package/ai/components/wa-popover.md +55 -0
  119. package/ai/components/wa-popup.md +53 -0
  120. package/ai/components/wa-progress-bar.md +53 -0
  121. package/ai/components/wa-progress-ring.md +53 -0
  122. package/ai/components/wa-qr-code.md +53 -0
  123. package/ai/components/wa-radio-group.md +59 -0
  124. package/ai/components/wa-radio.md +55 -0
  125. package/ai/components/wa-random-content.md +53 -0
  126. package/ai/components/wa-rating.md +55 -0
  127. package/ai/components/wa-relative-time.md +53 -0
  128. package/ai/components/wa-resize-observer.md +53 -0
  129. package/ai/components/wa-scroller.md +53 -0
  130. package/ai/components/wa-select.md +63 -0
  131. package/ai/components/wa-skeleton.md +53 -0
  132. package/ai/components/wa-slider.md +55 -0
  133. package/ai/components/wa-spinner.md +58 -0
  134. package/ai/components/wa-split-panel.md +58 -0
  135. package/ai/components/wa-switch.md +53 -0
  136. package/ai/components/wa-tab-group.md +69 -0
  137. package/ai/components/wa-tab-panel.md +60 -0
  138. package/ai/components/wa-tab.md +59 -0
  139. package/ai/components/wa-tag.md +59 -0
  140. package/ai/components/wa-textarea.md +53 -0
  141. package/ai/components/wa-time-input.md +55 -0
  142. package/ai/components/wa-toast-item.md +60 -0
  143. package/ai/components/wa-toast.md +60 -0
  144. package/ai/components/wa-tooltip.md +55 -0
  145. package/ai/components/wa-tree-item.md +55 -0
  146. package/ai/components/wa-tree.md +55 -0
  147. package/ai/components/wa-zoomable-frame.md +55 -0
  148. package/ai/components/workbench.md +119 -0
  149. package/ai/public-api-signatures-v1.md +2821 -250
  150. package/ai/skill.md +354 -66
  151. package/ai/webawesome-jsx-signatures-v1.md +9 -2
  152. package/analyzer/cli.mjs +49 -0
  153. package/analyzer/component-ownership.d.mts +72 -0
  154. package/analyzer/component-ownership.mjs +429 -0
  155. package/analyzer/index.d.mts +53 -0
  156. package/analyzer/index.mjs +2346 -0
  157. package/analyzer/loud-pairs.d.mts +49 -0
  158. package/analyzer/loud-pairs.mjs +357 -0
  159. package/analyzer/report.schema.json +66 -0
  160. package/analyzer/selectors.d.mts +21 -0
  161. package/analyzer/selectors.mjs +212 -0
  162. package/catalog-projection-cli.mjs +96 -0
  163. package/catalog-projection.d.mts +55 -0
  164. package/catalog-projection.mjs +62 -0
  165. package/dist/app-tab.d.ts +39 -4
  166. package/dist/app-tab.js +2 -1
  167. package/dist/badge.d.ts +54 -0
  168. package/dist/badge.js +3 -0
  169. package/dist/badge.js.map +1 -0
  170. package/dist/browser/badge.js +3 -0
  171. package/dist/browser/catalog.js +26 -0
  172. package/dist/browser/chip.js +3 -0
  173. package/dist/browser/collapsible-panel.js +9 -0
  174. package/dist/browser/content-item.js +3 -0
  175. package/dist/browser/floating-toolbar.js +3 -0
  176. package/dist/browser/grid.js +3 -0
  177. package/dist/browser/list-action-row.js +5 -0
  178. package/dist/browser/{menu-header.js → list-header.js} +5 -3
  179. package/dist/browser/list-inset-control.js +3 -0
  180. package/dist/browser/list-inset-text.js +3 -0
  181. package/dist/browser/list-item.js +5 -0
  182. package/dist/browser/list.js +3 -0
  183. package/dist/browser/nav-stack.js +11 -0
  184. package/dist/browser/pane.js +3 -0
  185. package/dist/browser/popup-menu.js +3 -0
  186. package/dist/browser/row.js +3 -0
  187. package/dist/browser/segmented-control.js +0 -1
  188. package/dist/browser/select.js +2 -1
  189. package/dist/browser/spacer.js +3 -0
  190. package/dist/browser/split-view.js +13 -0
  191. package/dist/browser/state-banner.js +1 -0
  192. package/dist/browser/sunken-panel.js +3 -0
  193. package/dist/browser/surface-scaffold.js +3 -0
  194. package/dist/browser/tab-navigator.js +4 -0
  195. package/dist/browser/text.js +3 -0
  196. package/dist/browser/toolbar-control-group.js +1 -0
  197. package/dist/browser/workbench.js +14 -0
  198. package/dist/catalog-resources.d.ts +48 -0
  199. package/dist/catalog-resources.js +22 -0
  200. package/dist/catalog-resources.js.map +1 -0
  201. package/dist/catalog.d.ts +92 -0
  202. package/dist/catalog.js +541 -0
  203. package/dist/catalog.js.map +1 -0
  204. package/dist/chip.d.ts +36 -0
  205. package/dist/chip.js +3 -0
  206. package/dist/chip.js.map +1 -0
  207. package/dist/chunk-2GOCOLQL.js +270 -0
  208. package/dist/chunk-2GOCOLQL.js.map +1 -0
  209. package/dist/chunk-3CXRQAYT.js +288 -0
  210. package/dist/chunk-3CXRQAYT.js.map +1 -0
  211. package/dist/chunk-3RE2JMZU.js +48 -0
  212. package/dist/chunk-3RE2JMZU.js.map +1 -0
  213. package/dist/chunk-3SXWV2IR.js +295 -0
  214. package/dist/chunk-3SXWV2IR.js.map +1 -0
  215. package/dist/chunk-3XPGJUUQ.js +37 -0
  216. package/dist/chunk-3XPGJUUQ.js.map +1 -0
  217. package/dist/chunk-4Y4L5YEI.js +66 -0
  218. package/dist/chunk-4Y4L5YEI.js.map +1 -0
  219. package/dist/chunk-5BZBIRQG.js +452 -0
  220. package/dist/chunk-5BZBIRQG.js.map +1 -0
  221. package/dist/chunk-5D3WDMIK.js +71 -0
  222. package/dist/chunk-5D3WDMIK.js.map +1 -0
  223. package/dist/chunk-62VMNBV2.js +779 -0
  224. package/dist/chunk-62VMNBV2.js.map +1 -0
  225. package/dist/chunk-75I3SNUJ.js +44 -0
  226. package/dist/chunk-75I3SNUJ.js.map +1 -0
  227. package/dist/chunk-7QQ3HE47.js +17 -0
  228. package/dist/chunk-7QQ3HE47.js.map +1 -0
  229. package/dist/chunk-7TE6XDFI.js +91 -0
  230. package/dist/chunk-7TE6XDFI.js.map +1 -0
  231. package/dist/chunk-A7DYEERU.js +59 -0
  232. package/dist/chunk-A7DYEERU.js.map +1 -0
  233. package/dist/chunk-AN5IWMTM.js +24 -0
  234. package/dist/chunk-AN5IWMTM.js.map +1 -0
  235. package/dist/chunk-ARZ4RSQO.js +48 -0
  236. package/dist/chunk-ARZ4RSQO.js.map +1 -0
  237. package/dist/chunk-BJLXE56E.js +135 -0
  238. package/dist/chunk-BJLXE56E.js.map +1 -0
  239. package/dist/chunk-BYHGRKC3.js +44 -0
  240. package/dist/chunk-BYHGRKC3.js.map +1 -0
  241. package/dist/chunk-CEJ5FK6G.js +288 -0
  242. package/dist/chunk-CEJ5FK6G.js.map +1 -0
  243. package/dist/chunk-CVKIADIS.js +172 -0
  244. package/dist/chunk-CVKIADIS.js.map +1 -0
  245. package/dist/chunk-DQDTZE4W.js +70 -0
  246. package/dist/chunk-DQDTZE4W.js.map +1 -0
  247. package/dist/chunk-EFDCALR3.js +66 -0
  248. package/dist/chunk-EFDCALR3.js.map +1 -0
  249. package/dist/chunk-FL6J644M.js +116 -0
  250. package/dist/chunk-FL6J644M.js.map +1 -0
  251. package/dist/chunk-GS2QD3N7.js +14 -0
  252. package/dist/chunk-GS2QD3N7.js.map +1 -0
  253. package/dist/chunk-H45DAZBL.js +491 -0
  254. package/dist/chunk-H45DAZBL.js.map +1 -0
  255. package/dist/chunk-H7ZJEI3H.js +52 -0
  256. package/dist/chunk-H7ZJEI3H.js.map +1 -0
  257. package/dist/chunk-HFLGWMG3.js +138 -0
  258. package/dist/chunk-HFLGWMG3.js.map +1 -0
  259. package/dist/chunk-HFQDSSED.js +188 -0
  260. package/dist/chunk-HFQDSSED.js.map +1 -0
  261. package/dist/{chunk-56RJXPHG.js → chunk-I4SDIMFA.js} +7 -4
  262. package/dist/chunk-I4SDIMFA.js.map +1 -0
  263. package/dist/chunk-IM3GKYOG.js +202 -0
  264. package/dist/chunk-IM3GKYOG.js.map +1 -0
  265. package/dist/chunk-J3AWE5I4.js +50 -0
  266. package/dist/chunk-J3AWE5I4.js.map +1 -0
  267. package/dist/chunk-JOR5LGYE.js +55 -0
  268. package/dist/chunk-JOR5LGYE.js.map +1 -0
  269. package/dist/chunk-JZM3G6RT.js +149 -0
  270. package/dist/chunk-JZM3G6RT.js.map +1 -0
  271. package/dist/{chunk-7BR3DO2A.js → chunk-LAZLBC2Q.js} +14 -5
  272. package/dist/chunk-LAZLBC2Q.js.map +1 -0
  273. package/dist/chunk-LQKY5S4F.js +506 -0
  274. package/dist/chunk-LQKY5S4F.js.map +1 -0
  275. package/dist/chunk-LRAIS3YB.js +158 -0
  276. package/dist/chunk-LRAIS3YB.js.map +1 -0
  277. package/dist/chunk-MXNIVEVL.js +48 -0
  278. package/dist/chunk-MXNIVEVL.js.map +1 -0
  279. package/dist/chunk-NJZMR7HM.js +135 -0
  280. package/dist/chunk-NJZMR7HM.js.map +1 -0
  281. package/dist/chunk-NMWDHZVM.js +35 -0
  282. package/dist/chunk-NMWDHZVM.js.map +1 -0
  283. package/dist/{chunk-YGN7OMLT.js → chunk-NS2TBYM4.js} +8 -5
  284. package/dist/chunk-NS2TBYM4.js.map +1 -0
  285. package/dist/chunk-NVKRZ5DI.js +222 -0
  286. package/dist/chunk-NVKRZ5DI.js.map +1 -0
  287. package/dist/chunk-NVRJ7C3W.js +83 -0
  288. package/dist/chunk-NVRJ7C3W.js.map +1 -0
  289. package/dist/chunk-O27D24CA.js +250 -0
  290. package/dist/chunk-O27D24CA.js.map +1 -0
  291. package/dist/chunk-PQQQXJGV.js +58 -0
  292. package/dist/chunk-PQQQXJGV.js.map +1 -0
  293. package/dist/chunk-RRCD3A6G.js +139 -0
  294. package/dist/chunk-RRCD3A6G.js.map +1 -0
  295. package/dist/chunk-S3ECMF23.js +33 -0
  296. package/dist/chunk-S3ECMF23.js.map +1 -0
  297. package/dist/chunk-S4ZGTDSG.js +18 -0
  298. package/dist/chunk-S4ZGTDSG.js.map +1 -0
  299. package/dist/chunk-VHXHLZ6R.js +69 -0
  300. package/dist/chunk-VHXHLZ6R.js.map +1 -0
  301. package/dist/chunk-VIGVNDXZ.js +165 -0
  302. package/dist/chunk-VIGVNDXZ.js.map +1 -0
  303. package/dist/chunk-VR7MWD2X.js +91 -0
  304. package/dist/chunk-VR7MWD2X.js.map +1 -0
  305. package/dist/chunk-Y6KT7ZTR.js +109 -0
  306. package/dist/chunk-Y6KT7ZTR.js.map +1 -0
  307. package/dist/chunk-YLJ6X3AC.js +34 -0
  308. package/dist/chunk-YLJ6X3AC.js.map +1 -0
  309. package/dist/collapsible-panel.d.ts +137 -0
  310. package/dist/collapsible-panel.js +135 -0
  311. package/dist/collapsible-panel.js.map +1 -0
  312. package/dist/content-item.d.ts +99 -0
  313. package/dist/content-item.js +4 -0
  314. package/dist/content-item.js.map +1 -0
  315. package/dist/css-values.d.ts +112 -0
  316. package/dist/css-values.js +3 -0
  317. package/dist/css-values.js.map +1 -0
  318. package/dist/device-class.js +34 -6
  319. package/dist/device-class.js.map +1 -1
  320. package/dist/disclosure-arrow.d.ts +6 -1
  321. package/dist/disclosure-arrow.js +2 -1
  322. package/dist/empty-state.d.ts +5 -2
  323. package/dist/empty-state.js +2 -1
  324. package/dist/flex-alignment-4ms8ZbV8.d.ts +5 -0
  325. package/dist/floating-toolbar.d.ts +51 -0
  326. package/dist/floating-toolbar.js +3 -0
  327. package/dist/floating-toolbar.js.map +1 -0
  328. package/dist/grid.d.ts +57 -0
  329. package/dist/grid.js +5 -0
  330. package/dist/grid.js.map +1 -0
  331. package/dist/help-tags-register.d.ts +13 -0
  332. package/dist/help-tags-register.js +9 -0
  333. package/dist/help-tags-register.js.map +1 -0
  334. package/dist/index.d.ts +40 -18
  335. package/dist/index.js +44 -23
  336. package/dist/{menu-action-row.d.ts → list-action-row.d.ts} +21 -9
  337. package/dist/list-action-row.js +8 -0
  338. package/dist/list-action-row.js.map +1 -0
  339. package/dist/list-header.d.ts +98 -0
  340. package/dist/list-header.js +10 -0
  341. package/dist/list-header.js.map +1 -0
  342. package/dist/list-inset-control.d.ts +22 -0
  343. package/dist/list-inset-control.js +3 -0
  344. package/dist/list-inset-control.js.map +1 -0
  345. package/dist/list-inset-text.d.ts +30 -0
  346. package/dist/list-inset-text.js +4 -0
  347. package/dist/list-inset-text.js.map +1 -0
  348. package/dist/list-item.d.ts +62 -0
  349. package/dist/list-item.js +8 -0
  350. package/dist/list-item.js.map +1 -0
  351. package/dist/list.d.ts +63 -0
  352. package/dist/list.js +6 -0
  353. package/dist/list.js.map +1 -0
  354. package/dist/loading-spinner.d.ts +12 -2
  355. package/dist/loading-spinner.js +2 -1
  356. package/dist/lucide-icon.d.ts +14 -2
  357. package/dist/lucide-icon.js +2 -1
  358. package/dist/nav-stack-B1Qc2e5q.d.ts +101 -0
  359. package/dist/nav-stack.d.ts +13 -38
  360. package/dist/nav-stack.js +10 -1
  361. package/dist/pane.d.ts +116 -0
  362. package/dist/pane.js +4 -0
  363. package/dist/pane.js.map +1 -0
  364. package/dist/panel-toolbar-CL9tYOkh.d.ts +72 -0
  365. package/dist/popup-menu-register.d.ts +9 -0
  366. package/dist/popup-menu-register.js +244 -0
  367. package/dist/popup-menu-register.js.map +1 -0
  368. package/dist/popup-menu.d.ts +100 -0
  369. package/dist/popup-menu.js +3 -0
  370. package/dist/popup-menu.js.map +1 -0
  371. package/dist/resizable-region.d.ts +32 -3
  372. package/dist/resizable-region.js +1 -1
  373. package/dist/row.d.ts +48 -0
  374. package/dist/row.js +6 -0
  375. package/dist/row.js.map +1 -0
  376. package/dist/segmented-control.d.ts +12 -9
  377. package/dist/segmented-control.js +1 -2
  378. package/dist/select-register.d.ts +5 -1
  379. package/dist/select-register.js +247 -3
  380. package/dist/select-register.js.map +1 -1
  381. package/dist/select.d.ts +103 -8
  382. package/dist/select.js +3 -1
  383. package/dist/semantic-content-BbzjvSu9.d.ts +14 -0
  384. package/dist/semantic-tone-CdW013KF.d.ts +4 -0
  385. package/dist/sides-BPSWde0A.d.ts +4 -0
  386. package/dist/skeleton.d.ts +14 -7
  387. package/dist/skeleton.js +2 -1
  388. package/dist/spacer.d.ts +18 -0
  389. package/dist/spacer.js +4 -0
  390. package/dist/spacer.js.map +1 -0
  391. package/dist/split-view.d.ts +44 -7
  392. package/dist/split-view.js +124 -10
  393. package/dist/split-view.js.map +1 -1
  394. package/dist/state-banner.d.ts +21 -7
  395. package/dist/state-banner.js +3 -1
  396. package/dist/styles/app-tab.css +224 -0
  397. package/dist/styles/badge.css +118 -0
  398. package/dist/styles/catalog/components/catalog-example-stack.css +9 -0
  399. package/dist/styles/catalog/components/catalog-example.css +168 -0
  400. package/dist/styles/catalog/components/catalog-stage.css +55 -0
  401. package/dist/styles/catalog/components/catalog.css +50 -0
  402. package/dist/styles/catalog.css +5 -0
  403. package/dist/styles/chip.css +138 -0
  404. package/dist/styles/collapsible-panel.css +580 -0
  405. package/dist/styles/components/actions/floating-toolbar/floating-toolbar.css +119 -0
  406. package/dist/styles/components/actions/popup-menu/popup-menu.css +285 -0
  407. package/dist/styles/components/actions/toolbar/toolbar.css +417 -0
  408. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +891 -0
  409. package/dist/styles/components/actions/toolbar-text/toolbar-text.css +171 -0
  410. package/dist/styles/components/collections/list/list.css +133 -0
  411. package/dist/styles/components/collections/list-action-row/list-action-row.css +258 -0
  412. package/dist/styles/components/collections/list-header/list-header.css +229 -0
  413. package/dist/styles/components/collections/list-inset-control/list-inset-control.css +30 -0
  414. package/dist/styles/components/collections/list-inset-text/list-inset-text.css +29 -0
  415. package/dist/styles/components/collections/list-item/list-item.css +255 -0
  416. package/dist/styles/components/data-display/value-table/value-table.css +105 -0
  417. package/dist/styles/components/feedback/badge/badge.css +118 -0
  418. package/dist/styles/components/feedback/chip/chip.css +138 -0
  419. package/dist/styles/components/feedback/empty-state/empty-state.css +47 -0
  420. package/dist/styles/components/feedback/loading-spinner/loading-spinner.css +25 -0
  421. package/dist/styles/components/feedback/skeleton/skeleton.css +92 -0
  422. package/dist/styles/components/feedback/state-banner/state-banner.css +248 -0
  423. package/dist/styles/components/forms/segmented-control/segmented-control.css +196 -0
  424. package/dist/styles/components/forms/select/select.css +454 -0
  425. package/dist/styles/components/forms/token-search-field/token-search-field.css +392 -0
  426. package/dist/styles/components/layout/collapsible-panel/collapsible-panel.css +580 -0
  427. package/dist/styles/components/layout/grid/grid.css +85 -0
  428. package/dist/styles/components/layout/pane/pane.css +294 -0
  429. package/dist/styles/components/layout/resizable-region/resizable-region.css +545 -0
  430. package/dist/styles/components/layout/row/row.css +111 -0
  431. package/dist/styles/components/layout/spacer/spacer.css +11 -0
  432. package/dist/styles/components/layout/split-view/split-view.css +146 -0
  433. package/dist/styles/components/layout/workbench/workbench.css +1075 -0
  434. package/dist/styles/components/media/lucide-icon/lucide-icon.css +15 -0
  435. package/dist/styles/components/navigation/app-tab/app-tab.css +376 -0
  436. package/dist/styles/components/navigation/disclosure-arrow/disclosure-arrow.css +23 -0
  437. package/dist/styles/components/navigation/nav-stack/nav-stack.css +242 -0
  438. package/dist/styles/components/navigation/tab-bar/tab-bar.css +183 -0
  439. package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +237 -0
  440. package/dist/styles/components/surfaces/content-item/content-item.css +120 -0
  441. package/dist/styles/components/surfaces/sunken-panel/sunken-panel.css +34 -0
  442. package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +111 -0
  443. package/dist/styles/components/typography/text/text.css +158 -0
  444. package/dist/styles/content-item.css +120 -0
  445. package/dist/styles/document.css +33 -0
  446. package/dist/styles/floating-toolbar.css +119 -0
  447. package/dist/styles/foundation.css +187 -45
  448. package/dist/styles/grid.css +85 -0
  449. package/dist/styles/layout.css +3 -41
  450. package/dist/styles/list-action-row.css +258 -0
  451. package/dist/styles/list-header.css +229 -0
  452. package/dist/styles/list-inset-control.css +30 -0
  453. package/dist/styles/list-inset-text.css +29 -0
  454. package/dist/styles/list-item.css +255 -0
  455. package/dist/styles/list.css +133 -0
  456. package/dist/styles/loading-spinner.css +4 -0
  457. package/dist/styles/lucide-icon.css +9 -0
  458. package/dist/styles/nav-stack.css +180 -50
  459. package/dist/styles/pane.css +294 -0
  460. package/dist/styles/popup-menu.css +285 -0
  461. package/dist/styles/resizable-region.css +438 -4
  462. package/dist/styles/row.css +111 -0
  463. package/dist/styles/segmented-control.css +36 -9
  464. package/dist/styles/select.css +337 -21
  465. package/dist/styles/skeleton.css +64 -3
  466. package/dist/styles/spacer.css +11 -0
  467. package/dist/styles/split-view.css +114 -3
  468. package/dist/styles/state-banner.css +94 -19
  469. package/dist/styles/styles.css +13 -4
  470. package/dist/styles/sunken-panel.css +34 -0
  471. package/dist/styles/surface-scaffold.css +111 -0
  472. package/dist/styles/tab-bar.css +147 -9
  473. package/dist/styles/tab-navigator.css +237 -0
  474. package/dist/styles/text.css +158 -0
  475. package/dist/styles/token-search-field.css +167 -56
  476. package/dist/styles/toolbar-control-group.css +710 -30
  477. package/dist/styles/toolbar-text.css +139 -8
  478. package/dist/styles/toolbar.css +367 -11
  479. package/dist/styles/value-table.css +34 -4
  480. package/dist/styles/webawesome.css +388 -16
  481. package/dist/styles/workbench.css +988 -7
  482. package/dist/sunken-panel.d.ts +31 -0
  483. package/dist/sunken-panel.js +3 -0
  484. package/dist/sunken-panel.js.map +1 -0
  485. package/dist/surface-scaffold-register.d.ts +4 -0
  486. package/dist/surface-scaffold-register.js +59 -0
  487. package/dist/surface-scaffold-register.js.map +1 -0
  488. package/dist/surface-scaffold.d.ts +38 -0
  489. package/dist/surface-scaffold.js +3 -0
  490. package/dist/surface-scaffold.js.map +1 -0
  491. package/dist/tab-bar.d.ts +39 -6
  492. package/dist/tab-bar.js +1 -1
  493. package/dist/tab-navigator.d.ts +86 -0
  494. package/dist/tab-navigator.js +95 -0
  495. package/dist/tab-navigator.js.map +1 -0
  496. package/dist/text.d.ts +63 -0
  497. package/dist/text.js +3 -0
  498. package/dist/text.js.map +1 -0
  499. package/dist/token-search-field.d.ts +3 -43
  500. package/dist/token-search-field.js +2 -1
  501. package/dist/token-search-model-DTcTXWMS.d.ts +154 -0
  502. package/dist/token-search-model.d.ts +3 -0
  503. package/dist/token-search-model.js +3 -0
  504. package/dist/token-search-model.js.map +1 -0
  505. package/dist/toolbar-control-group.d.ts +89 -7
  506. package/dist/toolbar-control-group.js +3 -1
  507. package/dist/toolbar-text.d.ts +45 -9
  508. package/dist/toolbar-text.js +2 -1
  509. package/dist/toolbar.d.ts +59 -7
  510. package/dist/toolbar.js +1 -1
  511. package/dist/types-C9BubXfz.d.ts +117 -0
  512. package/dist/value-table.d.ts +11 -3
  513. package/dist/value-table.js +2 -1
  514. package/dist/webawesome.d.ts +8 -1
  515. package/dist/wire-catalog.d.ts +82 -0
  516. package/dist/wire-catalog.js +407 -0
  517. package/dist/wire-catalog.js.map +1 -0
  518. package/dist/wire-content-items.d.ts +11 -0
  519. package/dist/wire-content-items.js +114 -0
  520. package/dist/wire-content-items.js.map +1 -0
  521. package/dist/wire-nav-stack.d.ts +4 -1
  522. package/dist/wire-nav-stack.js +191 -15
  523. package/dist/wire-nav-stack.js.map +1 -1
  524. package/dist/wire-resizable-regions.d.ts +2 -1
  525. package/dist/wire-resizable-regions.js +2 -1
  526. package/dist/wire-scroll-dividers.d.ts +72 -0
  527. package/dist/wire-scroll-dividers.js +3 -0
  528. package/dist/wire-scroll-dividers.js.map +1 -0
  529. package/dist/wire-sidebar.d.ts +63 -0
  530. package/dist/wire-sidebar.js +231 -0
  531. package/dist/wire-sidebar.js.map +1 -0
  532. package/dist/wire-tab-bars.d.ts +19 -2
  533. package/dist/wire-tab-bars.js +1 -1
  534. package/dist/wire-tab-navigator.d.ts +11 -0
  535. package/dist/wire-tab-navigator.js +21 -0
  536. package/dist/wire-tab-navigator.js.map +1 -0
  537. package/dist/wire-token-search-fields.d.ts +65 -3
  538. package/dist/wire-token-search-fields.js +2 -1
  539. package/dist/wire-toolbar-visibility.d.ts +13 -0
  540. package/dist/wire-toolbar-visibility.js +3 -0
  541. package/dist/wire-toolbar-visibility.js.map +1 -0
  542. package/dist/wire-workbench.d.ts +116 -0
  543. package/dist/wire-workbench.js +6 -0
  544. package/dist/wire-workbench.js.map +1 -0
  545. package/dist/workbench.d.ts +246 -9
  546. package/dist/workbench.js +17 -15
  547. package/dist/workbench.js.map +1 -1
  548. package/docs/accessibility.md +497 -26
  549. package/docs/app-layouts.md +141 -10
  550. package/docs/apple-hig.md +1 -0
  551. package/docs/catalog.md +493 -0
  552. package/docs/collapsible-panel.md +382 -0
  553. package/docs/component-contract.md +736 -61
  554. package/docs/component-integration.md +75 -0
  555. package/docs/component-selection.md +619 -97
  556. package/docs/design/templates/empty-state/filtered-dark.svg +1 -0
  557. package/docs/design/templates/empty-state/filtered.svg +1 -0
  558. package/docs/design/templates/empty-state/with-action-dark.svg +1 -0
  559. package/docs/design/templates/empty-state/with-action.svg +1 -0
  560. package/docs/design/templates/empty-state-dark.svg +1 -0
  561. package/docs/design/templates/empty-state.svg +1 -0
  562. package/docs/design/templates/list/compact-dark.svg +1 -0
  563. package/docs/design/templates/list/compact.svg +1 -0
  564. package/docs/design/templates/list/stack-dark.svg +1 -0
  565. package/docs/design/templates/list/stack.svg +1 -0
  566. package/docs/design/templates/list-action-row/default-dark.svg +1 -0
  567. package/docs/design/templates/list-action-row/default.svg +1 -0
  568. package/docs/design/templates/list-action-row/selected-dark.svg +1 -0
  569. package/docs/design/templates/list-action-row/selected.svg +1 -0
  570. package/docs/design/templates/list-action-row-dark.svg +1 -0
  571. package/docs/design/templates/list-action-row.svg +1 -0
  572. package/docs/design/templates/list-dark.svg +1 -0
  573. package/docs/design/templates/list-header/action-dark.svg +1 -0
  574. package/docs/design/templates/list-header/action.svg +1 -0
  575. package/docs/design/templates/list-header/count-dark.svg +1 -0
  576. package/docs/design/templates/list-header/count.svg +1 -0
  577. package/docs/design/templates/list-header/inline-action-dark.svg +1 -0
  578. package/docs/design/templates/list-header/inline-action.svg +1 -0
  579. package/docs/design/templates/list-header/size-l-dark.svg +1 -0
  580. package/docs/design/templates/list-header/size-l.svg +1 -0
  581. package/docs/design/templates/list-header/size-m-dark.svg +1 -0
  582. package/docs/design/templates/list-header/size-m.svg +1 -0
  583. package/docs/design/templates/list-header/size-xl-dark.svg +1 -0
  584. package/docs/design/templates/list-header/size-xl.svg +1 -0
  585. package/docs/design/templates/list-header/size-xs-dark.svg +1 -0
  586. package/docs/design/templates/list-header/size-xs.svg +1 -0
  587. package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -0
  588. package/docs/design/templates/list-header/toggle-collapsed.svg +1 -0
  589. package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -0
  590. package/docs/design/templates/list-header/toggle-expanded.svg +1 -0
  591. package/docs/design/templates/list-header-dark.svg +1 -0
  592. package/docs/design/templates/list-header.svg +1 -0
  593. package/docs/design/templates/list-item/default-dark.svg +1 -0
  594. package/docs/design/templates/list-item/default.svg +1 -0
  595. package/docs/design/templates/list-item/multiline-dark.svg +1 -0
  596. package/docs/design/templates/list-item/multiline.svg +1 -0
  597. package/docs/design/templates/list-item/selected-dark.svg +1 -0
  598. package/docs/design/templates/list-item/selected.svg +1 -0
  599. package/docs/design/templates/list-item/trailing-dark.svg +1 -0
  600. package/docs/design/templates/list-item/trailing.svg +1 -0
  601. package/docs/design/templates/list-item-dark.svg +1 -0
  602. package/docs/design/templates/list-item.svg +1 -0
  603. package/docs/design/templates/list.svg +1 -0
  604. package/docs/design/templates/segmented-control/equal-dark.svg +1 -0
  605. package/docs/design/templates/segmented-control/equal.svg +1 -0
  606. package/docs/design/templates/segmented-control/pill-small-dark.svg +1 -0
  607. package/docs/design/templates/segmented-control/pill-small.svg +1 -0
  608. package/docs/design/templates/segmented-control-dark.svg +1 -0
  609. package/docs/design/templates/segmented-control.svg +1 -0
  610. package/docs/design/templates/skeleton/avatar-dark.svg +1 -0
  611. package/docs/design/templates/skeleton/avatar.svg +1 -0
  612. package/docs/design/templates/skeleton/block-dark.svg +1 -0
  613. package/docs/design/templates/skeleton/block.svg +1 -0
  614. package/docs/design/templates/skeleton/lines-dark.svg +1 -0
  615. package/docs/design/templates/skeleton/lines.svg +1 -0
  616. package/docs/design/templates/skeleton-dark.svg +1 -0
  617. package/docs/design/templates/skeleton.svg +1 -0
  618. package/docs/design/templates/state-banner/danger-dark.svg +1 -0
  619. package/docs/design/templates/state-banner/danger.svg +1 -0
  620. package/docs/design/templates/state-banner/info-badge-dark.svg +1 -0
  621. package/docs/design/templates/state-banner/info-badge.svg +1 -0
  622. package/docs/design/templates/state-banner/info-dark.svg +1 -0
  623. package/docs/design/templates/state-banner/info.svg +1 -0
  624. package/docs/design/templates/state-banner/success-dark.svg +1 -0
  625. package/docs/design/templates/state-banner/success.svg +1 -0
  626. package/docs/design/templates/state-banner/warning-dark.svg +1 -0
  627. package/docs/design/templates/state-banner/warning.svg +1 -0
  628. package/docs/design/templates/state-banner-dark.svg +1 -0
  629. package/docs/design/templates/state-banner.svg +1 -0
  630. package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -0
  631. package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -0
  632. package/docs/design/templates/tab-bar-dark.svg +1 -0
  633. package/docs/design/templates/tab-bar.svg +1 -0
  634. package/docs/design/templates/token-search-field/empty-dark.svg +1 -0
  635. package/docs/design/templates/token-search-field/empty.svg +1 -0
  636. package/docs/design/templates/token-search-field/tokens-dark.svg +1 -0
  637. package/docs/design/templates/token-search-field/tokens.svg +1 -0
  638. package/docs/design/templates/token-search-field-dark.svg +1 -0
  639. package/docs/design/templates/token-search-field.svg +1 -0
  640. package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -0
  641. package/docs/design/templates/toolbar/title-and-actions.svg +1 -0
  642. package/docs/design/templates/toolbar/width-visibility-320-dark.svg +1 -0
  643. package/docs/design/templates/toolbar/width-visibility-320.svg +1 -0
  644. package/docs/design/templates/toolbar/width-visibility-600-dark.svg +1 -0
  645. package/docs/design/templates/toolbar/width-visibility-600.svg +1 -0
  646. package/docs/design/templates/toolbar-control-group/borderless-single-dark.svg +1 -0
  647. package/docs/design/templates/toolbar-control-group/borderless-single.svg +1 -0
  648. package/docs/design/templates/toolbar-control-group/icon-buttons-dark.svg +1 -0
  649. package/docs/design/templates/toolbar-control-group/icon-buttons.svg +1 -0
  650. package/docs/design/templates/toolbar-control-group/icon-tile-brand-dark.svg +1 -0
  651. package/docs/design/templates/toolbar-control-group/icon-tile-brand.svg +1 -0
  652. package/docs/design/templates/toolbar-control-group/icon-tile-danger-dark.svg +1 -0
  653. package/docs/design/templates/toolbar-control-group/icon-tile-danger.svg +1 -0
  654. package/docs/design/templates/toolbar-control-group/icon-tile-neutral-dark.svg +1 -0
  655. package/docs/design/templates/toolbar-control-group/icon-tile-neutral.svg +1 -0
  656. package/docs/design/templates/toolbar-control-group/icon-tile-success-dark.svg +1 -0
  657. package/docs/design/templates/toolbar-control-group/icon-tile-success.svg +1 -0
  658. package/docs/design/templates/toolbar-control-group/icon-tile-warning-dark.svg +1 -0
  659. package/docs/design/templates/toolbar-control-group/icon-tile-warning.svg +1 -0
  660. package/docs/design/templates/toolbar-control-group/push-buttons-dark.svg +1 -0
  661. package/docs/design/templates/toolbar-control-group/push-buttons.svg +1 -0
  662. package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -0
  663. package/docs/design/templates/toolbar-control-group/with-text.svg +1 -0
  664. package/docs/design/templates/toolbar-control-group-dark.svg +1 -0
  665. package/docs/design/templates/toolbar-control-group.svg +1 -0
  666. package/docs/design/templates/toolbar-dark.svg +1 -0
  667. package/docs/design/templates/toolbar-text/dark-tone-dark.svg +1 -0
  668. package/docs/design/templates/toolbar-text/dark-tone.svg +1 -0
  669. package/docs/design/templates/toolbar-text/default-dark.svg +1 -0
  670. package/docs/design/templates/toolbar-text/default.svg +1 -0
  671. package/docs/design/templates/toolbar-text/large-dark.svg +1 -0
  672. package/docs/design/templates/toolbar-text/large.svg +1 -0
  673. package/docs/design/templates/toolbar-text/small-dark.svg +1 -0
  674. package/docs/design/templates/toolbar-text/small.svg +1 -0
  675. package/docs/design/templates/toolbar-text-dark.svg +1 -0
  676. package/docs/design/templates/toolbar-text.svg +1 -0
  677. package/docs/design/templates/toolbar.svg +1 -0
  678. package/docs/design/templates/value-table/details-dark.svg +1 -0
  679. package/docs/design/templates/value-table/details.svg +1 -0
  680. package/docs/design/templates/value-table-dark.svg +1 -0
  681. package/docs/design/templates/value-table.svg +1 -0
  682. package/docs/design/templates.md +140 -0
  683. package/docs/design-philosophy.md +48 -20
  684. package/docs/device-class.md +10 -9
  685. package/docs/document-baseline.md +42 -0
  686. package/docs/examples/application-ui-profile.json +60 -0
  687. package/docs/examples/command-palette-adapter.tsx +69 -17
  688. package/docs/examples/component-catalog-extension.json +52 -0
  689. package/docs/examples/component-composition-extension.json +80 -0
  690. package/docs/layout.md +601 -59
  691. package/docs/nav-stack.md +154 -14
  692. package/docs/recipes.md +142 -55
  693. package/docs/split-view.md +77 -6
  694. package/docs/sunken-panel.md +93 -0
  695. package/docs/surface-scaffold.md +74 -0
  696. package/docs/tab-navigator.md +210 -0
  697. package/docs/type-contracts.md +135 -0
  698. package/docs/ui-analyzer.md +404 -0
  699. package/docs/ui-doctor.md +202 -0
  700. package/docs/ui-evaluator.md +139 -0
  701. package/docs/ux-demo.md +46 -16
  702. package/docs/webawesome-theme.md +188 -16
  703. package/docs/workbench.md +621 -12
  704. package/doctor/cli.mjs +120 -0
  705. package/doctor/component-style-checks.mjs +457 -0
  706. package/doctor/config.schema.json +94 -0
  707. package/doctor/eslint-diagnostics.d.mts +24 -0
  708. package/doctor/eslint-diagnostics.mjs +24 -0
  709. package/doctor/index.d.mts +122 -0
  710. package/doctor/index.mjs +1403 -0
  711. package/doctor/report.schema.json +118 -0
  712. package/evaluator/cli.mjs +89 -0
  713. package/evaluator/index.d.mts +90 -0
  714. package/evaluator/index.mjs +1203 -0
  715. package/evaluator/report.schema.json +152 -0
  716. package/llms.txt +510 -49
  717. package/package.json +266 -44
  718. package/scripts/component-catalog-extension-validation.mjs +28 -0
  719. package/traversal-exclusions.mjs +27 -0
  720. package/ux-demo/recipes/app-shell.tsx +205 -17
  721. package/ux-demo/recipes/collapsible-sidebar.tsx +260 -0
  722. package/ux-demo/recipes/compact-toolbar.tsx +135 -14
  723. package/ux-demo/recipes/composer-form.tsx +133 -21
  724. package/ux-demo/recipes/list-detail-dialog.tsx +286 -0
  725. package/ux-demo/recipes/list-workspace-states.tsx +183 -11
  726. package/ux-demo/recipes/loaders.ts +15 -5
  727. package/ux-demo/recipes/loading-inspector.tsx +204 -0
  728. package/ux-demo/recipes/mount-recipe.ts +28 -10
  729. package/ux-demo/recipes/navigation-sidebar.tsx +139 -13
  730. package/ux-demo/recipes/navigation-stack.tsx +81 -26
  731. package/ux-demo/recipes/types.ts +23 -2
  732. package/ux-demo/recipes/workspace-header.tsx +86 -5
  733. package/dist/browser/menu-action-row.js +0 -4
  734. package/dist/browser/menu-item.js +0 -4
  735. package/dist/browser/panel-header.js +0 -7
  736. package/dist/chunk-2RJBFNB6.js +0 -172
  737. package/dist/chunk-2RJBFNB6.js.map +0 -1
  738. package/dist/chunk-2Z5TWHKQ.js +0 -34
  739. package/dist/chunk-2Z5TWHKQ.js.map +0 -1
  740. package/dist/chunk-3YD6ZNRA.js +0 -34
  741. package/dist/chunk-3YD6ZNRA.js.map +0 -1
  742. package/dist/chunk-55DATV3A.js +0 -10
  743. package/dist/chunk-55DATV3A.js.map +0 -1
  744. package/dist/chunk-56RJXPHG.js.map +0 -1
  745. package/dist/chunk-7BR3DO2A.js.map +0 -1
  746. package/dist/chunk-7LDCTU7D.js +0 -134
  747. package/dist/chunk-7LDCTU7D.js.map +0 -1
  748. package/dist/chunk-AQNKJRFH.js +0 -79
  749. package/dist/chunk-AQNKJRFH.js.map +0 -1
  750. package/dist/chunk-B24C4A6T.js +0 -22
  751. package/dist/chunk-B24C4A6T.js.map +0 -1
  752. package/dist/chunk-BLK3UEEI.js +0 -23
  753. package/dist/chunk-BLK3UEEI.js.map +0 -1
  754. package/dist/chunk-BNQ2YDV4.js +0 -20
  755. package/dist/chunk-BNQ2YDV4.js.map +0 -1
  756. package/dist/chunk-DAFFDO33.js +0 -14
  757. package/dist/chunk-DAFFDO33.js.map +0 -1
  758. package/dist/chunk-H6URQGJI.js +0 -42
  759. package/dist/chunk-H6URQGJI.js.map +0 -1
  760. package/dist/chunk-I7INRJO4.js +0 -17
  761. package/dist/chunk-I7INRJO4.js.map +0 -1
  762. package/dist/chunk-LC3YSAZC.js +0 -39
  763. package/dist/chunk-LC3YSAZC.js.map +0 -1
  764. package/dist/chunk-M5JRI6MN.js +0 -27
  765. package/dist/chunk-M5JRI6MN.js.map +0 -1
  766. package/dist/chunk-MBR3TYNL.js +0 -14
  767. package/dist/chunk-MBR3TYNL.js.map +0 -1
  768. package/dist/chunk-MFKMHK5W.js +0 -10
  769. package/dist/chunk-MFKMHK5W.js.map +0 -1
  770. package/dist/chunk-MQIZAD4A.js +0 -227
  771. package/dist/chunk-MQIZAD4A.js.map +0 -1
  772. package/dist/chunk-PONXLV5U.js +0 -19
  773. package/dist/chunk-PONXLV5U.js.map +0 -1
  774. package/dist/chunk-RUNWEPR4.js +0 -10
  775. package/dist/chunk-RUNWEPR4.js.map +0 -1
  776. package/dist/chunk-W2FK7ZNY.js +0 -26
  777. package/dist/chunk-W2FK7ZNY.js.map +0 -1
  778. package/dist/chunk-WVPYVDXY.js +0 -15
  779. package/dist/chunk-WVPYVDXY.js.map +0 -1
  780. package/dist/chunk-YGN7OMLT.js.map +0 -1
  781. package/dist/chunk-YKUUZPED.js +0 -24
  782. package/dist/chunk-YKUUZPED.js.map +0 -1
  783. package/dist/menu-action-row.js +0 -5
  784. package/dist/menu-action-row.js.map +0 -1
  785. package/dist/menu-header.d.ts +0 -43
  786. package/dist/menu-header.js +0 -7
  787. package/dist/menu-header.js.map +0 -1
  788. package/dist/menu-item.d.ts +0 -33
  789. package/dist/menu-item.js +0 -5
  790. package/dist/menu-item.js.map +0 -1
  791. package/dist/panel-header.d.ts +0 -36
  792. package/dist/panel-header.js +0 -7
  793. package/dist/panel-header.js.map +0 -1
  794. package/dist/styles/menu-action-row.css +0 -160
  795. package/dist/styles/menu-header.css +0 -160
  796. package/dist/styles/menu-item.css +0 -123
  797. package/dist/styles/panel-header.css +0 -64
  798. package/dist/styles/tab-scaffold.css +0 -84
  799. package/dist/tab-scaffold.d.ts +0 -30
  800. package/dist/tab-scaffold.js +0 -16
  801. package/dist/tab-scaffold.js.map +0 -1
  802. package/dist/wire-tab-scaffold.d.ts +0 -11
  803. package/dist/wire-tab-scaffold.js +0 -16
  804. package/dist/wire-tab-scaffold.js.map +0 -1
  805. package/docs/tab-scaffold.md +0 -41
  806. package/ux-demo/recipes/master-detail-dialog.tsx +0 -45
  807. package/ux-demo/recipes/recipes.css +0 -355
@@ -1,11 +1,129 @@
1
1
  # Public API signatures for the UI authoring corpus
2
2
 
3
- Generated from emitted declarations for `@kerfjs/ui@5.0.0-beta.8` and `kerfjs@5.0.0-beta.8`. This bounded reference covers only APIs used by the seven-task corpus. It is interface evidence, not an implementation or runtime guarantee.
3
+ Generated from emitted declarations for `@kerfjs/ui@5.0.0-beta.81` and `kerfjs@5.0.0-beta.81`. This bounded reference covers only APIs used by the seven-task corpus. It is interface evidence, not an implementation or runtime guarantee.
4
+
5
+ ## `@kerfjs/ui/css-values`
6
+
7
+ ```ts
8
+ declare const cssValueBrand: unique symbol;
9
+ declare const cssLengthBrand: unique symbol;
10
+ declare const cssLengthExpressionBrand: unique symbol;
11
+ declare const cssFlexBrand: unique symbol;
12
+ declare const cssColorBrand: unique symbol;
13
+ declare const cssForegroundColorBrand: unique symbol;
14
+ /**
15
+ * A complete typed CSS value minted by a property-specific Kerf UI builder.
16
+ *
17
+ * This brand is an authoring correctness aid, not a sanitizer or security
18
+ * boundary. Prefer the narrower property grammar, such as {@link CssLength},
19
+ * whenever one is available.
20
+ */
21
+ type CssValue = string & {
22
+ readonly [cssValueBrand]: 'CssValue';
23
+ };
24
+ /**
25
+ * A complete CSS length-percentage value suitable for dimension-valued UI
26
+ * props. Despite the concise name, percentages are intentionally included.
27
+ */
28
+ type CssLength = CssValue & {
29
+ readonly [cssLengthBrand]: 'CssLength';
30
+ };
31
+ /**
32
+ * An incomplete arithmetic expression. Wrap it with {@link calc} before
33
+ * passing it to a prop that accepts {@link CssLength}.
34
+ */
35
+ type CssLengthExpression = string & {
36
+ readonly [cssLengthExpressionBrand]: 'CssLengthExpression';
37
+ };
38
+ /** A complete CSS `flex` shorthand. It is not interchangeable with a length. */
39
+ type CssFlex = CssValue & {
40
+ readonly [cssFlexBrand]: 'CssFlex';
41
+ };
42
+ /** A complete CSS color value. It is not interchangeable with a length. */
43
+ type CssColor = CssValue & {
44
+ readonly [cssColorBrand]: 'CssColor';
45
+ };
46
+ /**
47
+ * A complete CSS color meant to paint a foreground: text or an icon drawn over
48
+ * a surface. Mint it with {@link uiColor} and a foreground token name
49
+ * ({@link UiForegroundColorName}) or with {@link foregroundColorVar}. It is a
50
+ * {@link CssColor}, but a plain `CssColor` is not a foreground color: fill,
51
+ * border, and surface tokens are pale backgrounds that leave a foreground
52
+ * nearly invisible.
53
+ */
54
+ type CssForegroundColor = CssColor & {
55
+ readonly [cssForegroundColorBrand]: 'CssForegroundColor';
56
+ };
57
+ type CssFlexKeyword = 'none' | 'auto' | 'initial';
58
+ type CssFlexBasis = CssLength | 'auto' | 'content' | 'min-content' | 'max-content' | 'fit-content';
59
+ type CssSizeKeyword = 'auto' | 'min-content' | 'max-content' | 'fit-content';
60
+ /** A complete width/height value accepted by dimension-valued UI props. */
61
+ type CssSize = CssLength | CssSizeKeyword;
62
+ declare const uiColorNames: readonly ["brand-border-loud", "brand-border-normal", "brand-border-quiet", "brand-fill-loud", "brand-fill-normal", "brand-fill-quiet", "brand-on-fill", "brand-on-loud", "brand-on-normal", "brand-on-quiet", "danger-border-loud", "danger-border-normal", "danger-border-quiet", "danger-fill-loud", "danger-fill-normal", "danger-fill-quiet", "danger-on-fill", "danger-on-loud", "danger-on-normal", "danger-on-quiet", "neutral-border-loud", "neutral-border-normal", "neutral-border-quiet", "neutral-fill-loud", "neutral-fill-normal", "neutral-fill-quiet", "neutral-on-loud", "neutral-on-normal", "neutral-on-quiet", "pop-border-loud", "pop-border-normal", "pop-border-quiet", "pop-fill-loud", "pop-fill-normal", "pop-fill-quiet", "pop-on-fill", "pop-on-loud", "pop-on-normal", "pop-on-quiet", "success-border-loud", "success-border-normal", "success-border-quiet", "success-fill-loud", "success-fill-normal", "success-fill-quiet", "success-on-fill", "success-on-loud", "success-on-normal", "success-on-quiet", "surface", "surface-lowered", "surface-raised", "text", "text-link", "text-quiet", "warning-border-loud", "warning-border-normal", "warning-border-quiet", "warning-fill-loud", "warning-fill-normal", "warning-fill-quiet", "warning-on-fill", "warning-on-loud", "warning-on-normal", "warning-on-quiet"];
63
+ /** Names of the public `--kui-color-*` semantic tokens. */
64
+ type UiColorName = (typeof uiColorNames)[number];
65
+ /** The semantic tokens that paint a foreground: the `*-on-*` and text roles. */
66
+ type UiForegroundColorName = Extract<UiColorName, `${string}-on-${string}` | 'text' | 'text-quiet' | 'text-link'>;
67
+ /** Kerf UI's complete spacing-token vocabulary. `s` and `xl` are exceptions. */
68
+ type UiSpaceName = 'none' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl';
69
+ /** Create a complete pixel length. */
70
+ declare function px(value: number): CssLength;
71
+ /** Create a complete root-font-relative length. */
72
+ declare function rem(value: number): CssLength;
73
+ /** Converts a pixel value into rem units by dividing by 16. */
74
+ declare function remify(value: number): CssLength;
75
+ /** Create a complete current-font-relative length. */
76
+ declare function em(value: number): CssLength;
77
+ /** Create a complete percentage length. */
78
+ declare function pct(value: number): CssLength;
79
+ /** Resolve a Kerf UI spacing step to its public custom property. */
80
+ declare function space(name: UiSpaceName): CssLength;
81
+ /**
82
+ * Reference an application-owned custom property whose contract is a CSS
83
+ * length-percentage. The deliberately narrow name grammar keeps this helper
84
+ * from becoming an arbitrary CSS-string constructor.
85
+ */
86
+ declare function lengthVar(name: `--${string}`, fallback?: CssLength): CssLength;
87
+ /** Combine two or more complete lengths into a non-standalone sum. */
88
+ declare function plus(first: CssLength, second: CssLength, ...rest: readonly CssLength[]): CssLengthExpression;
89
+ /** Turn a typed length expression into a complete CSS `calc()` value. */
90
+ declare function calc(expression: CssLengthExpression): CssLength;
91
+ /** Build a complete, structured CSS flex shorthand. */
92
+ declare function flex(grow: number, shrink?: number, basis?: CssFlexBasis): CssFlex;
93
+ /**
94
+ * The brand {@link uiColor} returns for a token name: a
95
+ * {@link CssForegroundColor} for a foreground token, otherwise a plain
96
+ * {@link CssColor}.
97
+ */
98
+ type UiColor<Name extends UiColorName> = Name extends UiForegroundColorName ? CssForegroundColor : CssColor;
99
+ /**
100
+ * Resolve a public Kerf UI semantic color token. A foreground token name
101
+ * (`success-on-quiet`, `text-quiet`, …) returns a {@link CssForegroundColor};
102
+ * any other token returns a plain {@link CssColor}.
103
+ */
104
+ declare function uiColor<Name extends UiColorName>(name: Name): UiColor<Name>;
105
+ /** Reference an application-owned custom property whose contract is a color. */
106
+ declare function colorVar(name: `--${string}`, fallback?: CssColor): CssColor;
107
+ /**
108
+ * Reference an application-owned custom property whose contract is a
109
+ * foreground color (text or an icon over a surface). Use it where a prop
110
+ * accepts only {@link CssForegroundColor}, such as `SelectChoice.color`.
111
+ */
112
+ declare function foregroundColorVar(name: `--${string}`, fallback?: CssForegroundColor): CssForegroundColor;
113
+ /**
114
+ * Use an application-chosen CSS color for foreground content. The browser
115
+ * resolves the color syntax; this checks only that it is one declaration value.
116
+ */
117
+ declare function foregroundColor(value: string): CssForegroundColor;
118
+
119
+ export { type CssColor, type CssFlex, type CssFlexBasis, type CssFlexKeyword, type CssForegroundColor, type CssLength, type CssLengthExpression, type CssSize, type CssSizeKeyword, type CssValue, type UiColor, type UiColorName, type UiForegroundColorName, type UiSpaceName, calc, colorVar, em, flex, foregroundColor, foregroundColorVar, lengthVar, pct, plus, px, rem, remify, space, uiColor };
120
+ ```
4
121
 
5
122
  ## `@kerfjs/ui/disclosure-arrow`
6
123
 
7
124
  ```ts
8
125
  import { SafeHtml } from 'kerfjs';
126
+ import { CssLength } from './css-values.js';
9
127
 
10
128
  type DisclosureDirection = 'up' | 'down' | 'left' | 'right';
11
129
  interface DisclosureArrowProps {
@@ -14,9 +132,13 @@ interface DisclosureArrowProps {
14
132
  closedDirection?: DisclosureDirection;
15
133
  /** Replacement icons should use right as their unrotated orientation. */
16
134
  icon?: SafeHtml;
135
+ /** Typed box size for the square visual. Default: `remify(18px)`. */
136
+ size?: CssLength;
17
137
  className?: string;
138
+ /** Native named-slot assignment when composed inside a web component. */
139
+ slot?: string;
18
140
  }
19
- declare function DisclosureArrow({ open, openDirection, closedDirection, icon, className, }: DisclosureArrowProps): SafeHtml;
141
+ declare function DisclosureArrow({ open, openDirection, closedDirection, icon, size, className, slot, }: DisclosureArrowProps): SafeHtml;
20
142
 
21
143
  export { DisclosureArrow, type DisclosureArrowProps, type DisclosureDirection };
22
144
  ```
@@ -24,144 +146,608 @@ export { DisclosureArrow, type DisclosureArrowProps, type DisclosureDirection };
24
146
  ## `@kerfjs/ui/toolbar`
25
147
 
26
148
  ```ts
27
- import { SafeHtml } from 'kerfjs';
149
+ import * as kerfjs from 'kerfjs';
150
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
151
+ import { S as Sides } from './sides-BPSWde0A.js';
152
+ import { PaneSeparatorSide } from './pane.js';
28
153
 
154
+ type ToolbarPosition = 'header' | 'footer';
29
155
  interface ToolbarProps {
30
- leading?: SafeHtml;
31
- center?: SafeHtml;
32
- trailing?: SafeHtml;
156
+ leading?: KerfUiContent;
157
+ center?: KerfUiContent;
158
+ trailing?: KerfUiContent;
33
159
  label?: string;
34
- divider?: boolean;
160
+ /** Use footer semantics for a bottom toolbar; defaults to header. */
161
+ position?: ToolbarPosition;
162
+ /**
163
+ * Physical divider edges in canonical top/right/bottom/left order, drawn
164
+ * always. Defaults to none: a toolbar pinned over or under scrolling content
165
+ * gets its divider from the scroll state instead — a `Pane` draws the line
166
+ * between its chrome and content while content is scrolled away beneath it,
167
+ * and `wireScrollDividers` `targets` can name a toolbar as chrome, which
168
+ * then draws its facing side the same way.
169
+ */
170
+ dividerSides?: Sides;
171
+ /** `balanced` gives both side zones equal tracks, centering the middle zone on the toolbar even if only one side has controls. */
172
+ centerAlign?: 'center' | 'stretch' | 'balanced';
173
+ /**
174
+ * Component-owned responsive layout; applications choose the policy rather
175
+ * than restyling toolbar internals. Under every policy the trailing zone
176
+ * wraps its groups instead of clipping an action, and the center zone keeps
177
+ * its whole content width: when the zones do not fit one row, the leading
178
+ * title truncates with an ellipsis rather than the center overlapping it.
179
+ * - `none` keeps one row; the leading identity truncates first.
180
+ * - `stack` stacks the zones at `responsiveAt`, wrapping stacked control
181
+ * groups onto further rows.
182
+ * - `wrap` keeps one row while every zone fits at its natural width, and
183
+ * otherwise moves the trailing zone below a whole leading identity.
184
+ * - `center-priority` gives an expanded center control the full row.
185
+ * - `trailing-priority` moves an expanded trailing control to a full row
186
+ * below the leading identity at `responsiveAt`.
187
+ */
188
+ responsive?: 'none' | 'stack' | 'wrap' | 'center-priority' | 'trailing-priority';
189
+ /** Container width at which `stack` or `trailing-priority` activates. */
190
+ responsiveAt?: 'compact' | 'narrow';
191
+ /**
192
+ * Screen edges this toolbar claims for device safe-area compensation, for an
193
+ * app bar or bottom bar that sits directly at a screen edge rather than in a
194
+ * Pane header or footer. Each listed side pads by the inset its surrounding
195
+ * layout reports through `--kui-edge-inset-*`, or the full device inset when
196
+ * nothing routes that edge, while the toolbar's box and dividers paint
197
+ * through. Omitted, the toolbar pads only the inline edges an owner such as
198
+ * a Pane header hands it, and never a block edge.
199
+ */
200
+ safeAreaEdges?: readonly PaneSeparatorSide[];
35
201
  className?: string;
202
+ /** Native named-slot assignment when composed inside a web component. */
203
+ slot?: string;
36
204
  }
37
- declare function Toolbar({ leading, center, trailing, label, divider, className }: ToolbarProps): SafeHtml;
205
+ /**
206
+ * A toolbar's configuration, apart from its content: the props a composite
207
+ * that renders a `Toolbar` for the app (a Workbench or CollapsiblePanel
208
+ * toolbar) forwards, so the app configures that toolbar instead of styling it.
209
+ */
210
+ type ToolbarConfig = Pick<ToolbarProps, 'dividerSides' | 'centerAlign' | 'responsive' | 'responsiveAt' | 'safeAreaEdges'>;
211
+ declare function Toolbar({ leading, center, trailing, label, position, dividerSides, centerAlign, responsive, responsiveAt, safeAreaEdges, className, slot, }: ToolbarProps): kerfjs.SafeHtml;
38
212
 
39
- export { Toolbar, type ToolbarProps };
213
+ export { Sides, Toolbar, type ToolbarConfig, type ToolbarPosition, type ToolbarProps };
40
214
  ```
41
215
 
42
216
  ## `@kerfjs/ui/toolbar-text`
43
217
 
44
218
  ```ts
45
219
  import * as kerfjs from 'kerfjs';
220
+ import { CssLength } from './css-values.js';
46
221
 
47
- type ToolbarTextSize = 'xlarge' | 'large' | 'default' | 'small';
222
+ type ToolbarTextSize = 'xlarge' | 'xlarge-fixed' | 'large' | 'default' | 'small' | 'xsmall';
223
+ type ToolbarTextTone = 'default' | 'dark';
48
224
  /** ARIA heading level for a title exposed as a heading landmark. */
49
225
  type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
50
- interface ToolbarTextProps {
226
+ interface ToolbarTextBaseProps {
51
227
  text: string;
52
228
  size?: ToolbarTextSize;
229
+ /** Use dark-toolbar foregrounds on a dark or photo-backed toolbar. */
230
+ tone?: ToolbarTextTone;
231
+ /** Hide below this Toolbar content width; requires wireToolbarVisibility. */
232
+ hideBelow?: CssLength;
233
+ /** Show only below this Toolbar content width; requires wireToolbarVisibility. */
234
+ showBelow?: CssLength;
53
235
  className?: string;
54
236
  /** Optional id, e.g. so a dialog can reference the title via aria-labelledby. */
55
237
  id?: string;
56
238
  /**
57
- * Expose heading semantics (`role="heading"` + `aria-level`) so the text acts as
58
- * a heading landmark — e.g. a page's primary title. Omit to keep the plain span
59
- * (the default), which suits a dialog title referenced via `aria-labelledby`.
239
+ * Show a trailing ellipsis (…) where the text is truncated — on the single line
240
+ * (default), or at the `maxLines` boundary when wrapping. Set false to hard-clip
241
+ * instead. Default true.
242
+ */
243
+ ellipsis?: boolean;
244
+ /**
245
+ * Grow to fill the free space of the flex row it sits in (a Toolbar zone),
246
+ * truncating at the space left by its siblings instead of taking only its
247
+ * text's width. Default false.
60
248
  */
249
+ fill?: boolean;
250
+ /** Native named-slot assignment when composed inside a web component. */
251
+ slot?: string;
252
+ }
253
+ type ToolbarTextWrappingProps = {
254
+ /** Wrap onto multiple lines; combine with `maxLines` to cap them. */
255
+ wrap: true;
256
+ maxLines?: number | null;
257
+ } | {
258
+ wrap?: false;
259
+ maxLines?: never;
260
+ };
261
+ type ToolbarTextProps = ToolbarTextBaseProps & (({
262
+ action?: never;
263
+ /** Expose `role="heading"` and `aria-level` on read-only text. */
61
264
  headingLevel?: HeadingLevel;
62
- /** Render the text as an unanimated loading skeleton instead of its value. */
265
+ /** Render an unanimated loading skeleton instead of the text. */
63
266
  placeholder?: boolean;
64
- }
65
- declare function ToolbarText({ text, size, className, id, headingLevel, placeholder }: ToolbarTextProps): kerfjs.SafeHtml;
66
-
67
- export { type HeadingLevel, ToolbarText, type ToolbarTextProps, type ToolbarTextSize };
267
+ } & ToolbarTextWrappingProps) | {
268
+ /** Render a native button with this delegated action; the app owns editing. */
269
+ action: string;
270
+ headingLevel?: never;
271
+ placeholder?: never;
272
+ wrap?: never;
273
+ maxLines?: never;
274
+ });
275
+ declare function ToolbarText({ text, size, tone, hideBelow, showBelow, className, id, headingLevel, placeholder, wrap, ellipsis, maxLines, fill, slot, action, }: ToolbarTextProps): kerfjs.SafeHtml;
276
+
277
+ export { type HeadingLevel, ToolbarText, type ToolbarTextProps, type ToolbarTextSize, type ToolbarTextTone };
68
278
  ```
69
279
 
70
280
  ## `@kerfjs/ui/toolbar-control-group`
71
281
 
72
282
  ```ts
73
- import { SafeHtml } from 'kerfjs';
74
-
283
+ import * as kerfjs from 'kerfjs';
284
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
285
+ import { CssLength } from './css-values.js';
286
+
287
+ type ToolbarControlGroupAppearance = 'contained' | 'borderless';
288
+ type ToolbarControlGroupTone = 'default' | 'dark';
289
+ /** Quiet palette for a contained, single decorative icon tile. */
290
+ type ToolbarControlGroupTileTone = 'neutral' | 'brand' | 'success' | 'warning' | 'danger';
291
+ type ToolbarControlGroupButtonAppearance = 'plain' | 'push';
292
+ type ToolbarControlGroupShape = 'pill' | 'rounded';
293
+ type ToolbarControlGroupSize = 'default' | 'compact';
294
+ type ToolbarControlGroupDensity = 'comfortable' | 'tight';
295
+ type ToolbarControlGroupContent = 'icon' | 'text' | 'mixed' | 'avatar' | 'search';
296
+ type ToolbarControlGroupFocusRing = 'control' | 'outline' | 'halo';
297
+ type ToolbarControlGroupSelectedChrome = 'raised' | 'filled' | 'outline';
298
+ type ToolbarControlGroupSelectedTone = 'brand' | 'neutral' | 'pop';
299
+ type ToolbarControlGroupOverflow = 'visible' | 'scroll' | 'wrap';
300
+ type ToolbarControlGroupExpandedOverflow = 'clip' | 'visible';
301
+ type ToolbarControlGroupMenuInset = 'standard' | 'compact' | 'list-zero';
302
+ type ToolbarControlGroupVisibility = 'always' | 'compact-only' | 'hide-collapsed-tiny' | 'yield-to-expanded-sibling';
303
+ type ToolbarControlGroupSizing = 'content' | 'grow' | 'fill';
304
+ type ToolbarControlGroupPlacement = 'start' | 'end';
305
+ interface ToolbarActionLinkProps {
306
+ href: string;
307
+ label: string;
308
+ icon?: KerfUiContent;
309
+ /** Optional machine-readable detail hidden visually but included in the default accessible name. */
310
+ detail?: string;
311
+ /** Override the accessible name when surrounding context is needed. */
312
+ ariaLabel?: string;
313
+ /** Open in a new tab with a safe rel and announce that behavior. */
314
+ external?: boolean;
315
+ className?: string;
316
+ /** Native named-slot assignment when composed inside a web component. */
317
+ slot?: string;
318
+ }
319
+ /** A semantic anchor with ToolbarControlGroup-owned action geometry. */
320
+ declare function ToolbarActionLink({ href, label, icon, detail, ariaLabel, external, className, slot, }: ToolbarActionLinkProps): kerfjs.SafeHtml;
75
321
  interface ToolbarControlGroupProps {
76
- children: SafeHtml | SafeHtml[];
322
+ children: KerfUiContent;
77
323
  label?: string;
78
324
  className?: string;
79
325
  expanded?: boolean;
80
326
  single?: boolean;
81
- appearance?: 'contained' | 'borderless';
82
- tone?: 'default' | 'dark';
83
- buttonAppearance?: 'plain' | 'push';
327
+ appearance?: ToolbarControlGroupAppearance;
328
+ tone?: ToolbarControlGroupTone;
329
+ /** Quiet fill, matching border and foreground for a contained single group whose only child is a decorative SVG. Ignored for interactive or mixed content. */
330
+ tileTone?: ToolbarControlGroupTileTone;
331
+ buttonAppearance?: ToolbarControlGroupButtonAppearance;
332
+ /** Corner shape: fully round `pill` (default) or a softer `rounded` rectangle. */
333
+ shape?: ToolbarControlGroupShape;
334
+ size?: ToolbarControlGroupSize;
335
+ density?: ToolbarControlGroupDensity;
336
+ content?: ToolbarControlGroupContent;
337
+ /** Whether controls paint focus individually or the group paints an outline/halo on focus-within. */
338
+ focusRing?: ToolbarControlGroupFocusRing;
339
+ selectedChrome?: ToolbarControlGroupSelectedChrome;
340
+ selectedTone?: ToolbarControlGroupSelectedTone;
341
+ /** Size a nested Web Awesome dropdown trigger as part of this group. */
342
+ nestedDropdown?: boolean;
343
+ /** Configure the nested dropdown menu inset without consumer ::part() CSS. */
344
+ menuInset?: ToolbarControlGroupMenuInset;
345
+ /** Keep an overlong row inside the available width by scrolling or wrapping. */
346
+ overflow?: ToolbarControlGroupOverflow;
347
+ /** Let app-owned anchored surfaces extend outside an expanded search group. Collapsed searches retain their clipping. */
348
+ expandedOverflow?: ToolbarControlGroupExpandedOverflow;
349
+ /** Responsive visibility owned by the enclosing Toolbar container. */
350
+ visibility?: ToolbarControlGroupVisibility;
351
+ /** Hide below this Toolbar content width; requires wireToolbarVisibility. */
352
+ hideBelow?: CssLength;
353
+ /** Show only below this Toolbar content width; requires wireToolbarVisibility. */
354
+ showBelow?: CssLength;
355
+ /** Intrinsic (default), grow from a basis, or occupy a full wrapping row. */
356
+ sizing?: ToolbarControlGroupSizing;
357
+ /** Place this group at the end of its flex row in a wrapping Toolbar zone. */
358
+ placement?: ToolbarControlGroupPlacement;
359
+ /** CSS length used as the minimum width and flex basis for `sizing="grow"`; defaults to 19rem. */
360
+ growBasis?: string;
361
+ /** Move this group into the work-area toolbar when its panel collapses. */
362
+ relocateOnCollapse?: boolean;
363
+ /** Add contrast behind photo-backed avatar content. */
364
+ scrim?: boolean;
365
+ /** Block the group's controls and show a spinner without changing its dimensions. */
366
+ busy?: boolean;
367
+ /** Announced status while busy; defaults to “Working”. */
368
+ busyLabel?: string;
369
+ /**
370
+ * Avatar image URL. A single-control group paints it on the group; a
371
+ * multi-control group paints it only on the pressed selection highlight.
372
+ */
373
+ avatarImage?: string;
374
+ /** Native named-slot assignment when composed inside a web component. */
375
+ slot?: string;
84
376
  }
85
- declare function ToolbarControlGroup({ children, label, className, expanded, single, appearance, tone, buttonAppearance }: ToolbarControlGroupProps): SafeHtml;
377
+ declare function ToolbarControlGroup({ children, label, className, expanded, single, appearance, tone, tileTone, buttonAppearance, shape, size, density, content, focusRing, selectedChrome, selectedTone, nestedDropdown, menuInset, overflow, expandedOverflow, visibility, hideBelow, showBelow, sizing, placement, growBasis, relocateOnCollapse, scrim, busy, busyLabel, avatarImage, slot, }: ToolbarControlGroupProps): kerfjs.SafeHtml;
86
378
 
87
- export { ToolbarControlGroup, type ToolbarControlGroupProps };
379
+ export { ToolbarActionLink, type ToolbarActionLinkProps, ToolbarControlGroup, type ToolbarControlGroupAppearance, type ToolbarControlGroupButtonAppearance, type ToolbarControlGroupContent, type ToolbarControlGroupDensity, type ToolbarControlGroupExpandedOverflow, type ToolbarControlGroupFocusRing, type ToolbarControlGroupMenuInset, type ToolbarControlGroupOverflow, type ToolbarControlGroupPlacement, type ToolbarControlGroupProps, type ToolbarControlGroupSelectedChrome, type ToolbarControlGroupSelectedTone, type ToolbarControlGroupShape, type ToolbarControlGroupSize, type ToolbarControlGroupSizing, type ToolbarControlGroupTileTone, type ToolbarControlGroupTone, type ToolbarControlGroupVisibility };
88
380
  ```
89
381
 
90
- ## `@kerfjs/ui/menu-header`
382
+ ## `@kerfjs/ui/floating-toolbar`
383
+
384
+ ```ts
385
+ import * as kerfjs from 'kerfjs';
386
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
387
+ import { CssLength } from './css-values.js';
388
+
389
+ /** Where a {@link FloatingToolbar} floats within its positioned container. */
390
+ type FloatingToolbarPosition = 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end';
391
+ interface FloatingToolbarProps {
392
+ /** Toolbar contents — normally one or more `ToolbarControlGroup`s. */
393
+ children: KerfUiContent;
394
+ /** Accessible name for the toolbar (required — it exposes `role="toolbar"`). */
395
+ label: string;
396
+ /**
397
+ * Corner or edge it floats to inside its nearest positioned ancestor.
398
+ * Default: `'bottom-end'`.
399
+ */
400
+ position?: FloatingToolbarPosition;
401
+ /** Keep the toolbar in normal document flow instead of floating over content. */
402
+ placement?: 'floating' | 'inline';
403
+ /**
404
+ * Distance from the container edges named by `position`. Default:
405
+ * `space('m')` (16px, 8px past a top toolbar's own inset). Omit it inside a
406
+ * `Workbench`, `CollapsiblePanel`, or `ResizableRegion` restore corner: the
407
+ * corner owns the inset there and sets it to zero.
408
+ */
409
+ inset?: CssLength;
410
+ /** Add device or layout-routed safe-area insets to the positioned edges. */
411
+ safeAreaInsets?: boolean;
412
+ className?: string;
413
+ /** Native named-slot assignment when composed inside a web component. */
414
+ slot?: string;
415
+ }
416
+ /**
417
+ * A toolbar that floats above the main content of its nearest positioned
418
+ * ancestor — a transparent, forced-dark cluster of controls (e.g. a drawer
419
+ * restore button) that sits over the content but NOT over dialogs or overlays
420
+ * (it is not in the top layer). It is inset from the container edges by
421
+ * `inset` (default `--kui-space-m`, i.e. 8px more than a top toolbar's own
422
+ * inset); pass a typed length to move it. Inside a `Workbench`, `CollapsiblePanel`, or
423
+ * `ResizableRegion` restore corner the corner owns the inset, so the toolbar
424
+ * floats from the corner's own position. While one of those layouts has a
425
+ * side overlay open over the toolbar's region (a Workbench rail overlay, a
426
+ * `wireSidebar` compact overlay, an overlay `CollapsiblePanel` or horizontal
427
+ * `ResizableRegion`), the toolbar is hidden — unfocusable and out of the
428
+ * accessibility tree — until the overlay closes. The app owns the controls
429
+ * and their behavior — wire them with `delegate()` as usual. Set
430
+ * `placement="inline"` for normal flow when an owner already positions the
431
+ * control; floating placement can add safe-area insets to its per-edge tokens.
432
+ */
433
+ declare function FloatingToolbar({ children, label, position, placement, inset, safeAreaInsets, className, slot, }: FloatingToolbarProps): kerfjs.SafeHtml;
434
+
435
+ export { FloatingToolbar, type FloatingToolbarPosition, type FloatingToolbarProps };
436
+ ```
437
+
438
+ ## `@kerfjs/ui/popup-menu`
91
439
 
92
440
  ```ts
93
441
  import { SafeHtml } from 'kerfjs';
442
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
94
443
 
95
- type MenuHeaderRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
444
+ type PopupMenuPlacement = 'bottom-start' | 'bottom' | 'bottom-end' | 'top-start' | 'top' | 'top-end';
445
+ type PopupMenuDataAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
446
+ 'data-action'?: never;
447
+ 'data-component'?: never;
448
+ 'data-key'?: never;
449
+ 'data-morph-skip-children'?: never;
450
+ }>;
451
+ /** One command in the menu. */
452
+ interface PopupMenuItem {
453
+ kind?: 'item';
454
+ label: string;
455
+ /** Delegated `data-action` the app handles when the item is chosen. */
456
+ action?: string;
457
+ /** Native `wa-dropdown-item` value, reported by its `wa-select` event. */
458
+ value?: string;
459
+ /** Leading icon, typically a `LucideIcon`; it is placed in the item's icon slot. */
460
+ icon?: SafeHtml;
461
+ /** A checkbox choice, including nested choices; omit for a plain command. */
462
+ checked?: boolean;
463
+ /** Trailing safe content, such as secondary status. */
464
+ details?: SafeHtml;
465
+ /** Destructive command styling. */
466
+ tone?: 'default' | 'danger';
467
+ disabled?: boolean;
468
+ /** Native tooltip text for a disabled command. */
469
+ disabledReason?: string;
470
+ /** Application `data-*` metadata such as a record id. */
471
+ attributes?: PopupMenuDataAttributes;
472
+ /** Child commands, headings, and dividers opened by hover or keyboard navigation. */
473
+ submenu?: readonly PopupMenuEntry[];
474
+ }
475
+ /** A labeled group heading; items that follow it belong to the group. */
476
+ interface PopupMenuHeading {
477
+ kind: 'heading';
478
+ label: string;
479
+ }
480
+ /** A separator between groups of items. */
481
+ interface PopupMenuDivider {
482
+ kind: 'divider';
483
+ }
484
+ type PopupMenuEntry = PopupMenuItem | PopupMenuHeading | PopupMenuDivider;
485
+ type PopupMenuTriggerName = {
486
+ /** Visible trigger text, which is also its accessible name. */
487
+ text: string;
488
+ label?: never;
489
+ } | {
490
+ text?: never;
491
+ /**
492
+ * Accessible name of an icon-only trigger, rendered as visually hidden
493
+ * slotted text (a Web Awesome button takes its name from its content).
494
+ */
495
+ label: string;
496
+ };
497
+ type PopupMenuTrigger = (PopupMenuTriggerName & {
498
+ context?: false;
499
+ }) | {
500
+ context: true;
501
+ label: string;
502
+ text?: never;
503
+ icon?: never;
504
+ caret?: never;
505
+ disabled?: never;
506
+ };
507
+ type PopupMenuProps = PopupMenuTrigger & {
508
+ /** Trigger icon, typically a `LucideIcon`, before any visible text. */
509
+ icon?: KerfUiContent;
510
+ items: readonly PopupMenuEntry[];
511
+ /** Where the menu opens relative to its trigger. Defaults to `bottom-start`. */
512
+ placement?: PopupMenuPlacement;
513
+ /** Show the disclosure caret after the trigger content. Defaults to true. */
514
+ caret?: boolean;
515
+ disabled?: boolean;
516
+ /** Application `data-*` metadata on the menu root. */
517
+ rootAttributes?: PopupMenuDataAttributes;
518
+ /** Native named-slot assignment when composed inside a web component. */
519
+ slot?: string;
520
+ };
521
+ /** A rendered context PopupMenu with Web Awesome's controlled open state. */
522
+ type PopupMenuElement = HTMLElement & {
523
+ open: boolean;
524
+ };
525
+ /** Open a context PopupMenu at viewport pointer coordinates. */
526
+ declare function openPopupMenuAt(menu: PopupMenuElement, x: number, y: number): void;
527
+ /** Close a programmatically opened PopupMenu. */
528
+ declare function closePopupMenu(menu: PopupMenuElement): void;
529
+ /**
530
+ * An action menu: a trigger button that opens a list of commands. Renders the
531
+ * `wa-dropdown` root directly, so a `single` `ToolbarControlGroup` (with
532
+ * `nestedDropdown`) or a `PopupSurface` sizes and insets it as usual. Items
533
+ * dispatch through delegated `data-action`s; the app owns the commands and any
534
+ * open-state reaction. Import `@kerfjs/ui/popup-menu/register` once to register
535
+ * the Web Awesome elements. At viewport widths up to 480px, submenus appear
536
+ * above or below their parent menu so their rows do not cover the parent list.
537
+ */
538
+ declare function PopupMenu({ text, label, icon, items, placement, caret, disabled, rootAttributes, slot, context, }: PopupMenuProps): SafeHtml;
539
+
540
+ export { PopupMenu, type PopupMenuDivider, type PopupMenuElement, type PopupMenuEntry, type PopupMenuHeading, type PopupMenuItem, type PopupMenuPlacement, type PopupMenuProps, closePopupMenu, openPopupMenuAt };
541
+ ```
542
+
543
+ ## `@kerfjs/ui/list-header`
544
+
545
+ ```ts
546
+ import { SafeHtml } from 'kerfjs';
547
+ import { HeadingLevel } from './toolbar-text.js';
548
+ import './css-values.js';
549
+
550
+ type ListHeaderRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
96
551
  'data-component'?: never;
97
552
  'data-action'?: never;
98
553
  'data-has-badge'?: never;
99
554
  'data-has-count'?: never;
555
+ 'data-density'?: never;
556
+ 'data-size'?: never;
557
+ 'data-divider'?: never;
558
+ 'data-inline'?: never;
559
+ 'data-width'?: never;
560
+ 'data-indicator-tone'?: never;
100
561
  'data-toggle'?: never;
101
562
  }>;
102
- type MenuHeaderTriggerAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
563
+ type ListHeaderTriggerAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
103
564
  'data-action'?: never;
565
+ 'data-kui-disabled'?: never;
104
566
  popoverTarget?: string;
105
567
  popoverTargetAction?: 'toggle' | 'show' | 'hide';
106
568
  'aria-controls'?: string;
107
569
  'aria-haspopup'?: 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid' | 'true';
108
570
  }>;
109
- interface MenuHeaderBaseProps {
571
+ interface ListHeaderBaseProps {
110
572
  label: string;
111
- action?: string;
112
- actionLabel?: string;
113
- actionIcon?: SafeHtml;
114
- actionDisabled?: boolean;
115
- disabledReason?: string;
116
- expanded?: boolean;
117
- toggle?: boolean;
573
+ /** Visual label size, independent of the native heading level. Default `sm`. */
574
+ size?: 'xs' | 'sm' | 'm' | 'l' | 'xl';
575
+ density?: 'standard' | 'compact';
576
+ divider?: 'none' | 'before' | 'after' | 'both';
577
+ /** Shrink-wrap the header without its default outer margin, border, or padding. */
578
+ inline?: boolean;
579
+ /** Fill the available row or shrink-wrap while retaining normal header geometry. */
580
+ width?: 'fill' | 'content';
581
+ indicatorTone?: 'neutral' | 'accent' | 'pop' | 'danger';
118
582
  /** Render as an unanimated loading skeleton: keep the label and action affordance, disable interaction. */
119
583
  placeholder?: boolean;
120
- rootAttributes?: MenuHeaderRootAttributes;
121
- triggerAttributes?: MenuHeaderTriggerAttributes;
584
+ rootAttributes?: ListHeaderRootAttributes;
585
+ triggerAttributes?: ListHeaderTriggerAttributes;
586
+ /** Native named-slot assignment when composed inside a web component. */
587
+ slot?: string;
122
588
  }
123
- type MenuHeaderIndicatorProps = {
589
+ type ListHeaderModeProps = {
590
+ /** Render the title as a controlled disclosure trigger. */
591
+ toggle: true;
592
+ /** A toggle's label is its button text, not a heading. */
593
+ headingLevel?: never;
594
+ action: string;
595
+ expanded: boolean;
596
+ actionIcon?: SafeHtml;
597
+ actionLabel?: never;
598
+ actionDisabled?: boolean;
599
+ disabledReason?: string;
600
+ } | {
601
+ /** Render a separately named trailing action. */
602
+ toggle?: false;
603
+ /**
604
+ * Native heading level (`h1`–`h6`) of the label. Default `2`. Match the
605
+ * document outline; the visual treatment does not change.
606
+ */
607
+ headingLevel?: HeadingLevel;
608
+ action: string;
609
+ actionLabel: string;
610
+ actionIcon: SafeHtml;
611
+ expanded?: never;
612
+ actionDisabled?: boolean;
613
+ disabledReason?: string;
614
+ } | {
615
+ /** Render a passive section heading. */
616
+ toggle?: false;
617
+ /**
618
+ * Native heading level (`h1`–`h6`) of the label. Default `2`. Match the
619
+ * document outline; the visual treatment does not change.
620
+ */
621
+ headingLevel?: HeadingLevel;
622
+ action?: never;
623
+ actionLabel?: never;
624
+ actionIcon?: never;
625
+ expanded?: never;
626
+ actionDisabled?: never;
627
+ disabledReason?: never;
628
+ };
629
+ type ListHeaderIndicatorProps = {
124
630
  count: number;
125
631
  countLabel: string;
126
632
  badge?: never;
633
+ status?: never;
127
634
  } | {
128
635
  count?: never;
129
636
  countLabel?: never;
130
- badge?: SafeHtml;
637
+ badge?: SafeHtml | undefined;
638
+ status?: SafeHtml | undefined;
131
639
  };
132
- type MenuHeaderProps = MenuHeaderBaseProps & MenuHeaderIndicatorProps;
133
- declare function MenuHeader({ label, count, countLabel, badge, action, actionLabel, actionIcon, actionDisabled, disabledReason, expanded, toggle, placeholder, rootAttributes, triggerAttributes }: MenuHeaderProps): SafeHtml;
640
+ type ListHeaderProps = ListHeaderBaseProps & ListHeaderIndicatorProps & ListHeaderModeProps;
641
+ declare function ListHeader({ label, size, headingLevel, count, countLabel, badge, status, density, divider, inline, width, indicatorTone, action, actionLabel, actionIcon, actionDisabled, disabledReason, expanded, toggle, placeholder, rootAttributes, triggerAttributes, slot, }: ListHeaderProps): SafeHtml;
642
+
643
+ export { ListHeader, type ListHeaderProps };
644
+ ```
645
+
646
+ ## `@kerfjs/ui/list`
647
+
648
+ ```ts
649
+ import * as kerfjs from 'kerfjs';
650
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
651
+ import { H as HorizontalAlignment, L as ListVerticalAlignment } from './flex-alignment-4ms8ZbV8.js';
652
+ export { V as VerticalAlignment } from './flex-alignment-4ms8ZbV8.js';
653
+ import { S as Sides } from './sides-BPSWde0A.js';
654
+ import { UiSpaceName, CssLength, CssFlexKeyword, CssFlex } from './css-values.js';
655
+
656
+ type ListRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
657
+ 'data-component'?: never;
658
+ 'data-gap'?: never;
659
+ 'data-flex'?: never;
660
+ 'data-fill'?: never;
661
+ 'data-h-align'?: never;
662
+ 'data-v-align'?: never;
663
+ 'data-scrollable'?: never;
664
+ 'data-text-insets'?: never;
665
+ 'data-control-insets'?: never;
666
+ }>;
667
+ interface ListProps {
668
+ children?: KerfUiContent;
669
+ /** Make this list a labeled multi-select grid for `ContentItem selectionMode="multiple"` rows. */
670
+ selectionMode?: 'multiple';
671
+ /** Accessible name for the multi-select grid. */
672
+ ariaLabel?: string;
673
+ /** Use the standard item gap, a named UI spacing token, or a typed CSS length. Defaults to no gap. */
674
+ gap?: boolean | UiSpaceName | CssLength;
675
+ /** Allow this list to grow/shrink, use a keyword, or supply a typed CSS flex shorthand. */
676
+ flex?: boolean | CssFlexKeyword | CssFlex;
677
+ /**
678
+ * Fill the height of a parent with a definite height, such as an app root or
679
+ * a fixed-height frame, when this list is that parent's layout root. Inside a
680
+ * flex layout use `flex` instead. Defaults to false.
681
+ */
682
+ fill?: boolean;
683
+ /** Horizontal alignment. Defaults to full to preserve stretch-aligned list children. */
684
+ hAlign?: HorizontalAlignment;
685
+ /** Vertical distribution. Defaults to top. */
686
+ vAlign?: ListVerticalAlignment;
687
+ /** Own vertical scrolling and overscroll containment. */
688
+ scrollable?: boolean;
689
+ /** Physical divider edges in canonical top/right/bottom/left order. */
690
+ dividerSides?: Sides;
691
+ /** Physical sides that receive the standard 17px text inset. */
692
+ textInsets?: Sides;
693
+ /** Physical sides that receive the standard 8px control inset. Text insets win on overlap. */
694
+ controlInsets?: Sides;
695
+ className?: string;
696
+ /** Safe `data-*` metadata; List-owned structural attributes remain protected. */
697
+ rootAttributes?: ListRootAttributes;
698
+ /** Native named-slot assignment when composed inside a web component. */
699
+ slot?: string;
700
+ }
701
+ /**
702
+ * A list's configuration, apart from its content and styling hooks: the props a
703
+ * composite that renders a `List` for the app (the Workbench's `mainHeader` /
704
+ * `mainFooter` chrome) forwards, so the app configures that list instead of
705
+ * styling it. An omitted or `undefined` field keeps the composite's default.
706
+ */
707
+ type ListConfig = Pick<ListProps, 'gap' | 'hAlign' | 'vAlign' | 'dividerSides' | 'textInsets' | 'controlInsets'>;
708
+ /** A stretch-aligned vertical stack with optional gap, flex, fill, scroll, and dividers. */
709
+ declare function List({ children, selectionMode, ariaLabel, gap, flex, fill, hAlign, vAlign, scrollable, dividerSides, textInsets, controlInsets, className, rootAttributes, slot, }: ListProps): kerfjs.SafeHtml;
134
710
 
135
- export { MenuHeader, type MenuHeaderProps };
711
+ export { CssFlex, CssFlexKeyword, CssLength, HorizontalAlignment, List, type ListConfig, type ListProps, ListVerticalAlignment, Sides, UiSpaceName };
136
712
  ```
137
713
 
138
- ## `@kerfjs/ui/menu-action-row`
714
+ ## `@kerfjs/ui/list-action-row`
139
715
 
140
716
  ```ts
141
717
  import { SafeHtml } from 'kerfjs';
142
718
 
143
- type MenuActionRowRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
719
+ type ListActionRowRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
144
720
  'data-component'?: never;
145
721
  'data-action'?: never;
146
722
  'data-item-id'?: never;
147
723
  'data-has-icon'?: never;
148
724
  'data-multiline'?: never;
725
+ 'data-density'?: never;
726
+ 'data-divider'?: never;
727
+ 'data-busy'?: never;
728
+ 'data-trailing-visibility'?: never;
149
729
  'data-state'?: never;
150
730
  'data-selected'?: never;
151
731
  'data-pressed'?: never;
152
732
  }>;
153
- type MenuActionRowTrailingAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
733
+ type ListActionRowTrailingAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
154
734
  'data-component'?: never;
155
735
  'data-action'?: never;
156
736
  'data-item-id'?: never;
737
+ 'data-kui-disabled'?: never;
157
738
  popoverTarget?: string;
158
739
  popoverTargetAction?: 'toggle' | 'show' | 'hide';
159
740
  'aria-controls'?: string;
160
741
  'aria-haspopup'?: 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid' | 'true';
161
742
  }>;
162
- interface MenuActionRowProps {
743
+ interface ListActionRowProps {
163
744
  /** Visible dormant content for the primary button. Must not contain interactive descendants. */
164
745
  label: string | SafeHtml;
746
+ description?: string | SafeHtml;
747
+ status?: string | SafeHtml;
748
+ busy?: boolean;
749
+ density?: 'standard' | 'compact';
750
+ divider?: 'none' | 'before' | 'after' | 'both';
165
751
  /** Decorative dormant content for the primary button. Must not contain interactive descendants. */
166
752
  icon?: SafeHtml;
167
753
  action: string;
@@ -174,7 +760,7 @@ interface MenuActionRowProps {
174
760
  state?: string;
175
761
  disabled?: boolean;
176
762
  tabIndex?: number;
177
- /** Render as an unanimated loading skeleton, disabling both actions. */
763
+ /** Render as an unanimated loading skeleton, disabling both actions: label, description, icon, and status text become skeletons; the `busy` indicator stays live. */
178
764
  placeholder?: boolean;
179
765
  trailingAction: string;
180
766
  trailingActionLabel: string;
@@ -182,99 +768,257 @@ interface MenuActionRowProps {
182
768
  trailingActionIcon: SafeHtml;
183
769
  trailingActionDisabled?: boolean;
184
770
  trailingActionTitle?: string;
771
+ trailingActionVisibility?: 'always' | 'interaction';
185
772
  className?: string;
186
- style?: string;
187
- rootAttributes?: MenuActionRowRootAttributes;
188
- trailingActionAttributes?: MenuActionRowTrailingAttributes;
773
+ rootAttributes?: ListActionRowRootAttributes;
774
+ trailingActionAttributes?: ListActionRowTrailingAttributes;
775
+ /** Native named-slot assignment when composed inside a web component. */
776
+ slot?: string;
189
777
  }
190
- declare function MenuActionRow({ label, icon, action, itemId, selected, pressed, accessibleLabel, title, multiline, state, disabled, tabIndex, placeholder, trailingAction, trailingActionLabel, trailingActionIcon, trailingActionDisabled, trailingActionTitle, className, style, rootAttributes, trailingActionAttributes }: MenuActionRowProps): SafeHtml;
778
+ declare function ListActionRow({ label, description, status, busy, density, divider, icon, action, itemId, selected, pressed, accessibleLabel, title, multiline, state, disabled, tabIndex, placeholder, trailingAction, trailingActionLabel, trailingActionIcon, trailingActionDisabled, trailingActionTitle, trailingActionVisibility, className, rootAttributes, trailingActionAttributes, slot, }: ListActionRowProps): SafeHtml;
191
779
 
192
- export { MenuActionRow, type MenuActionRowProps };
780
+ export { ListActionRow, type ListActionRowProps };
193
781
  ```
194
782
 
195
- ## `@kerfjs/ui/menu-item`
783
+ ## `@kerfjs/ui/list-item`
196
784
 
197
785
  ```ts
198
786
  import { SafeHtml } from 'kerfjs';
787
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
199
788
 
200
- type MenuItemRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
789
+ type ListItemRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
201
790
  'data-component'?: never;
202
791
  'data-action'?: never;
203
792
  'data-item-id'?: never;
204
793
  'data-has-icon'?: never;
794
+ 'data-has-description'?: never;
205
795
  'data-multiline'?: never;
796
+ 'data-density'?: never;
797
+ 'data-divider'?: never;
798
+ 'data-busy'?: never;
206
799
  'data-state'?: never;
800
+ 'data-kui-disabled'?: never;
801
+ 'data-icon-align'?: never;
207
802
  }>;
208
- interface MenuItemProps {
803
+ interface ListItemProps {
209
804
  label: string | SafeHtml;
805
+ /** App-owned supporting text rendered in the component's stable label stack. */
806
+ description?: string | SafeHtml;
210
807
  icon?: SafeHtml;
211
- trailing?: SafeHtml;
808
+ /** Dormant author content at the row's end; a placeholder renders it as a skeleton. */
809
+ trailing?: KerfUiContent;
810
+ /** Dormant status metadata rendered before trailing content; a placeholder renders it as a skeleton. */
811
+ status?: string | SafeHtml;
812
+ /** Show a progress indicator and expose the row as busy without replacing its content; a placeholder keeps the indicator. */
813
+ busy?: boolean;
814
+ density?: 'standard' | 'compact' | 'spacious';
815
+ divider?: 'none' | 'before' | 'after' | 'both';
212
816
  selected?: boolean;
213
817
  action: string;
214
818
  itemId?: string;
215
819
  className?: string;
216
- style?: string;
217
820
  pressed?: boolean;
218
821
  accessibleLabel?: string;
219
822
  title?: string;
220
823
  multiline?: boolean;
824
+ /** Alignment of an icon beside a wrapped label. Defaults to its first line. */
825
+ multilineIconAlign?: 'first-line' | 'center';
221
826
  state?: string;
222
827
  disabled?: boolean;
223
828
  tabIndex?: number;
224
- /** Render the row as an unanimated loading skeleton, disabling its action. */
829
+ /** Render the row as an unanimated loading skeleton, disabling its action: label, description, icon, status, and trailing content become skeletons; the `busy` indicator stays live. */
225
830
  placeholder?: boolean;
226
- rootAttributes?: MenuItemRootAttributes;
831
+ rootAttributes?: ListItemRootAttributes;
832
+ /** Native named-slot assignment when composed inside a web component. */
833
+ slot?: string;
227
834
  }
228
- declare function MenuItem({ label, icon, trailing, selected, action, itemId, className, style, pressed, accessibleLabel, title, multiline, state, disabled, tabIndex, placeholder, rootAttributes }: MenuItemProps): SafeHtml;
835
+ interface ListItemLinkProps extends Omit<ListItemProps, 'action' | 'pressed'> {
836
+ /** Native destination for this navigation row. */
837
+ href: string;
838
+ /** Open in a new tab with a safe rel and announce that behavior. */
839
+ external?: boolean;
840
+ action?: never;
841
+ pressed?: never;
842
+ }
843
+ declare function ListItem({ label, description, icon, trailing, status, busy, density, divider, selected, action, itemId, className, pressed, accessibleLabel, title, multiline, multilineIconAlign, state, disabled, tabIndex, placeholder, rootAttributes, slot, }: ListItemProps): SafeHtml;
844
+ /** A navigation row with native link activation and ListItem geometry. */
845
+ declare function ListItemLink({ href, external, label, description, icon, trailing, status, busy, density, divider, selected, itemId, className, accessibleLabel, title, multiline, multilineIconAlign, state, disabled, tabIndex, placeholder, rootAttributes, slot, }: ListItemLinkProps): SafeHtml;
229
846
 
230
- export { MenuItem, type MenuItemProps };
847
+ export { ListItem, ListItemLink, type ListItemLinkProps, type ListItemProps };
231
848
  ```
232
849
 
233
- ## `@kerfjs/ui/panel-header`
850
+ ## `@kerfjs/ui/list-inset-control`
234
851
 
235
852
  ```ts
236
- import { SafeHtml } from 'kerfjs';
237
- import { HeadingLevel } from './toolbar-text.js';
853
+ import * as kerfjs from 'kerfjs';
854
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
855
+ import { S as Sides } from './sides-BPSWde0A.js';
856
+
857
+ interface ListInsetControlProps {
858
+ /** Control(s) that own their own border and padding (e.g. an input, a `wa-*`). */
859
+ children: KerfUiContent;
860
+ /** Physical inset sides in canonical top/right/bottom/left order. Defaults to all sides. */
861
+ sides?: Sides;
862
+ className?: string;
863
+ /** Native named-slot assignment when composed inside a web component. */
864
+ slot?: string;
865
+ }
866
+ /**
867
+ * Insets a control into a pane/list content region: an 8px inline margin (so its
868
+ * edges line up with `.kui-content` items) and a stretch flex row with an 8px gap.
869
+ * Use it for controls that carry their own border and padding but no outer margin
870
+ * — the wrapper adds only the alignment margin and layout, not a second inset.
871
+ */
872
+ declare function ListInsetControl({ children, sides, className, slot, }: ListInsetControlProps): kerfjs.SafeHtml;
238
873
 
239
- interface PanelHeaderProps {
240
- title: string;
241
- titleId: string;
242
- summary?: string;
243
- summaryId?: string;
244
- icon?: SafeHtml;
245
- iconClassName?: string;
246
- actions?: SafeHtml;
874
+ export { ListInsetControl, type ListInsetControlProps, Sides };
875
+ ```
876
+
877
+ ## `@kerfjs/ui/list-inset-text`
878
+
879
+ ```ts
880
+ import * as kerfjs from 'kerfjs';
881
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
882
+ import { S as Sides } from './sides-BPSWde0A.js';
883
+
884
+ type ListInsetTextRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
885
+ 'data-component'?: never;
886
+ 'data-sides'?: never;
887
+ }>;
888
+ interface ListInsetTextProps {
889
+ /** Text (or inline content) that carries no margin, border, or padding of its own. */
890
+ children: KerfUiContent | string;
891
+ /** Physical inset sides in canonical top/right/bottom/left order. Defaults to all sides. */
892
+ sides?: Sides;
893
+ className?: string;
894
+ /** Safe `data-*` metadata; component-owned structural attributes stay protected. */
895
+ rootAttributes?: ListInsetTextRootAttributes;
896
+ /** Native named-slot assignment when composed inside a web component. */
897
+ slot?: string;
898
+ }
899
+ /**
900
+ * Gives bare text the content-item geometry — an 8px inline margin, a 1px
901
+ * transparent border, and 8px padding — so a plain string lines up with
902
+ * bordered `.kui-content` items (its text edge lands at the same 17px inset).
903
+ * Use it for text elements that have no margin, border, or padding of their own.
904
+ * Pass `sides="rl"` to keep the horizontal inset but drop the vertical box
905
+ * space for tight text layout.
906
+ */
907
+ declare function ListInsetText({ children, sides, className, rootAttributes, slot, }: ListInsetTextProps): kerfjs.SafeHtml;
908
+
909
+ export { ListInsetText, type ListInsetTextProps, Sides };
910
+ ```
911
+
912
+ ## `@kerfjs/ui/content-item`
913
+
914
+ ```ts
915
+ import * as kerfjs from 'kerfjs';
916
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
917
+ import { S as SemanticTone } from './semantic-tone-CdW013KF.js';
918
+
919
+ /** Base surface treatment or semantic status colors. */
920
+ type ContentItemAppearance = 'transparent' | 'surface' | SemanticTone;
921
+ /** Whether the item's always-reserved 1px border is transparent or visible. */
922
+ type ContentItemFrame = 'none' | 'framed';
923
+ /** Corner shape: the 12px rounded rectangle or the 22px pill. */
924
+ type ContentItemShape = 'rounded' | 'pill';
925
+ /** `single` uses an option; `multiple` uses a grid row; `toggle` uses a pressed button. */
926
+ type ContentItemSelectionMode = 'none' | 'single' | 'multiple' | 'toggle';
927
+ type ContentItemRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
928
+ 'data-component'?: never;
929
+ 'data-appearance'?: never;
930
+ 'data-outlined'?: never;
931
+ }>;
932
+ type ContentItemInteractiveRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
933
+ 'data-component'?: never;
934
+ 'data-appearance'?: never;
935
+ 'data-outlined'?: never;
936
+ 'data-action'?: never;
937
+ 'data-item-id'?: never;
938
+ 'data-interactive'?: never;
939
+ 'data-selected'?: never;
940
+ 'data-disabled'?: never;
941
+ 'data-selection-mode'?: never;
942
+ 'data-kui-pressed'?: never;
943
+ }>;
944
+ interface ContentItemBaseProps {
247
945
  /**
248
- * Expose the title as a heading landmark (`role="heading"` + `aria-level`). Set it
249
- * for a PAGE or view heading so screen-reader heading navigation works and the view
250
- * has a primary heading; omit it (the default) for a dialog title, which is instead
251
- * referenced via `aria-labelledby={titleId}` and needs no heading landmark.
946
+ * Coordinated background, border, and foreground colors. `transparent`
947
+ * preserves the surrounding surface; `surface` paints the base surface;
948
+ * semantic values match StateBanner. Defaults to `transparent`.
252
949
  */
253
- headingLevel?: HeadingLevel;
254
- /** Render the title and summary as unanimated loading skeletons, keeping the icon and actions. */
255
- placeholder?: boolean;
950
+ appearance?: ContentItemAppearance;
951
+ /** Item content; a plain string is allowed for bare copy. */
952
+ children?: KerfUiContent | string;
953
+ /**
954
+ * `framed` paints the standard neutral border in the 1px the item always
955
+ * reserves, so framing never changes geometry. Frame only an item that
956
+ * marks a real distinction. Defaults to `none` (transparent border).
957
+ */
958
+ frame?: ContentItemFrame;
959
+ /** Remove block padding and block borders while retaining inline geometry. */
960
+ flush?: boolean;
961
+ /** Corner shape. Defaults to `rounded`. */
962
+ shape?: ContentItemShape;
963
+ /** Native hover tooltip. */
964
+ title?: string;
965
+ /**
966
+ * Names the item as a distinct region (`role="region"`). Omit it for an
967
+ * ordinary item, which stays a non-landmark grouping.
968
+ */
969
+ ariaLabel?: string;
970
+ /**
971
+ * Makes the item a programmatic focus target (`tabindex="-1"`, never a tab
972
+ * stop), for example the preferred initial focus of a NavStack view when
973
+ * combined with `data-nav-focus` in `rootAttributes`.
974
+ */
975
+ focusTarget?: boolean;
976
+ /** Keep the standard focus outline visible, such as for a drop target. */
977
+ outlined?: boolean;
978
+ className?: string;
979
+ /** Native named-slot assignment when composed inside a web component. */
980
+ slot?: string;
256
981
  }
982
+ type ContentItemProps = ContentItemBaseProps & ({
983
+ interactive?: false;
984
+ action?: never;
985
+ itemId?: never;
986
+ selectionMode?: never;
987
+ selected?: never;
988
+ disabled?: never;
989
+ /** Opt into keyboard (`0`) or programmatic (`-1`) focus. */
990
+ tabIndex?: 0 | -1;
991
+ /** Existing static `data-*` metadata remains available. */
992
+ rootAttributes?: ContentItemRootAttributes;
993
+ } | {
994
+ /** Enable a keyboard reachable card; wire `wireContentItems` once on its containing root. */
995
+ interactive: true;
996
+ /** Delegated action dispatched by pointer, Enter, or Space. */
997
+ action: string;
998
+ itemId?: string;
999
+ selectionMode?: ContentItemSelectionMode;
1000
+ selected?: boolean;
1001
+ disabled?: boolean;
1002
+ tabIndex?: never;
1003
+ /** Safe app metadata; interaction attributes are component-owned. */
1004
+ rootAttributes?: ContentItemInteractiveRootAttributes;
1005
+ });
257
1006
  /**
258
- * The heading of a panel, dialog, or page: a plain `Toolbar` whose leading zone
259
- * holds an optional icon control group and the title as extra-large `ToolbarText`,
260
- * whose trailing zone holds the app's action controls, and with an optional
261
- * subtitle on its own row, left-aligned with the title.
262
- *
263
- * PanelHeader overrides no Toolbar styles — it is just a Toolbar with an xl title.
264
- * The only styling it adds is the icon group's fill/border color and the subtitle.
265
- * When no icon is provided, the icon group is omitted entirely. The `actions` slot
266
- * is passed straight into the toolbar's trailing zone; the app supplies whatever
267
- * trailing controls it needs (typically a `ToolbarControlGroup`).
1007
+ * One self-contained `.kui-content` child: an 8px inline margin, a real 1px
1008
+ * border (transparent unless `framed`), 8px padding, and a rounded or pill
1009
+ * radius. It owns that whole geometry, so wrappers must not add more.
268
1010
  */
269
- declare function PanelHeader({ title, titleId, summary, summaryId, icon, iconClassName, actions, headingLevel, placeholder }: PanelHeaderProps): SafeHtml;
1011
+ declare function ContentItem({ appearance, children, frame, flush, shape, title, ariaLabel, focusTarget, outlined, tabIndex, interactive, action, itemId, selectionMode, selected, disabled, className, rootAttributes, slot, }: ContentItemProps): kerfjs.SafeHtml;
270
1012
 
271
- export { PanelHeader, type PanelHeaderProps };
1013
+ export { ContentItem, type ContentItemAppearance, type ContentItemFrame, type ContentItemProps, type ContentItemSelectionMode, type ContentItemShape, SemanticTone };
272
1014
  ```
273
1015
 
274
1016
  ## `@kerfjs/ui/value-table`
275
1017
 
276
1018
  ```ts
1019
+ import * as kerfjs from 'kerfjs';
277
1020
  import { SafeHtml } from 'kerfjs';
1021
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
278
1022
 
279
1023
  interface ValueTableRowProps {
280
1024
  label: string | SafeHtml;
@@ -283,15 +1027,21 @@ interface ValueTableRowProps {
283
1027
  className?: string;
284
1028
  /** Render the value as an unanimated loading skeleton, keeping the field label. */
285
1029
  placeholder?: boolean;
1030
+ /** Native named-slot assignment when composed inside a web component. */
1031
+ slot?: string;
286
1032
  }
287
- declare function ValueTableRow({ label, value, icon, className, placeholder }: ValueTableRowProps): SafeHtml;
1033
+ declare function ValueTableRow({ label, value, icon, className, placeholder, slot, }: ValueTableRowProps): SafeHtml;
288
1034
 
289
1035
  interface ValueTableProps {
290
1036
  label: string;
1037
+ /** Compact row spacing for metadata-dense surfaces. */
1038
+ density?: 'default' | 'compact';
291
1039
  className?: string;
292
- children: SafeHtml | readonly SafeHtml[];
1040
+ children: KerfUiContent;
1041
+ /** Native named-slot assignment when composed inside a web component. */
1042
+ slot?: string;
293
1043
  }
294
- declare function ValueTable({ label, className, children }: ValueTableProps): SafeHtml;
1044
+ declare function ValueTable({ label, density, className, children, slot, }: ValueTableProps): kerfjs.SafeHtml;
295
1045
 
296
1046
  export { ValueTable, type ValueTableProps, ValueTableRow, type ValueTableRowProps };
297
1047
  ```
@@ -300,6 +1050,7 @@ export { ValueTable, type ValueTableProps, ValueTableRow, type ValueTableRowProp
300
1050
 
301
1051
  ```ts
302
1052
  import { SafeHtml } from 'kerfjs';
1053
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
303
1054
 
304
1055
  type AppTabRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
305
1056
  'data-component'?: never;
@@ -308,15 +1059,36 @@ type AppTabRootAttributes = Readonly<Record<`data-${string}`, string | undefined
308
1059
  'data-selected'?: never;
309
1060
  'data-tab-dragging'?: never;
310
1061
  'data-tab-drop-position'?: never;
1062
+ 'data-attention'?: never;
1063
+ 'data-drop-target'?: never;
1064
+ 'data-name-overflow'?: never;
1065
+ 'data-pinned'?: never;
311
1066
  }>;
1067
+ type AppTabPresentation = 'pill' | 'segmented' | 'icon-only';
1068
+ type AppTabSize = 'default' | 'compact';
1069
+ type AppTabNameOverflow = 'ellipsis' | 'visible';
312
1070
  interface AppTabProps {
313
1071
  id: string;
314
1072
  name: string;
315
1073
  selected?: boolean;
1074
+ /** Emphasize the visible tab name with the attention color token. */
1075
+ attention?: boolean;
1076
+ /** Highlight this tab as the target of a drag over its content. */
1077
+ dropTarget?: boolean;
1078
+ /** Keep the leading tab visible within its TabBar tablist while peers scroll. */
1079
+ pinned?: boolean;
316
1080
  closable?: boolean;
317
1081
  draggable?: boolean;
318
- leading?: SafeHtml;
319
- trailing?: SafeHtml;
1082
+ leading?: KerfUiContent;
1083
+ trailing?: KerfUiContent;
1084
+ /** Visual treatment within a TabBar. Icon-only tabs retain `name` as their accessible name. */
1085
+ presentation?: AppTabPresentation;
1086
+ /** Compact tabs use the 32px application-rail height. */
1087
+ size?: AppTabSize;
1088
+ /** Maximum visible label width in CSS pixels before ellipsis. */
1089
+ labelMaxWidth?: number;
1090
+ /** Keep the full name visible for an inline loading treatment. */
1091
+ nameOverflow?: AppTabNameOverflow;
320
1092
  /** Decorative dormant content for the close button. Must not contain interactive descendants. */
321
1093
  closeIcon?: SafeHtml;
322
1094
  selectAction?: string;
@@ -324,35 +1096,85 @@ interface AppTabProps {
324
1096
  className?: string;
325
1097
  /** Render as an unanimated loading skeleton, disabling select/close and dragging. */
326
1098
  placeholder?: boolean;
1099
+ /**
1100
+ * Named and still opening: the tab is known but its content is loading.
1101
+ * Keeps `name` visible in the quiet text color and as the tab's accessible
1102
+ * name, shows `trailing` (for example a `LoadingSpinner`), and marks the
1103
+ * tab `aria-busy`. Unlike `placeholder` it stays selectable — the
1104
+ * application shows placeholder content in its panel until loading
1105
+ * completes — while close and dragging stay disabled. Same pill geometry
1106
+ * as the live tab, so swapping it in place does not shift the bar.
1107
+ * `placeholder` wins when both are set.
1108
+ */
1109
+ pending?: boolean;
327
1110
  rootAttributes?: AppTabRootAttributes;
1111
+ /** Native named-slot assignment when composed inside a web component. */
1112
+ slot?: string;
328
1113
  }
329
- declare function AppTab({ id, name, selected, closable, draggable, leading, trailing, closeIcon, selectAction, closeAction, className, placeholder, rootAttributes }: AppTabProps): SafeHtml;
1114
+ declare function AppTab({ id, name, selected, attention, dropTarget, pinned, closable, draggable, leading, trailing, presentation, size, labelMaxWidth, nameOverflow, closeIcon, selectAction, closeAction, className, placeholder, pending, rootAttributes, slot, }: AppTabProps): SafeHtml;
330
1115
 
331
- export { AppTab, type AppTabProps };
1116
+ export { AppTab, type AppTabNameOverflow, type AppTabPresentation, type AppTabProps, type AppTabSize };
332
1117
  ```
333
1118
 
334
1119
  ## `@kerfjs/ui/tab-bar`
335
1120
 
336
1121
  ```ts
337
- import { SafeHtml } from 'kerfjs';
338
-
1122
+ import * as kerfjs from 'kerfjs';
1123
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
1124
+
1125
+ type TabActivation = 'automatic' | 'manual';
1126
+ type TabBarAllocation = 'intrinsic' | 'fill';
1127
+ type TabBarPresentation = 'rail' | 'segmented' | 'inspector';
1128
+ type TabBarTrailingPlacement = 'separate' | 'adjacent';
1129
+ /** Tablist width where segmented AppTabs switch to icon-only. */
1130
+ type TabBarIconOnlyAt = 'wide' | 'narrow' | 'compact';
339
1131
  interface TabBarProps {
340
1132
  id: string;
341
1133
  label: string;
342
- children: SafeHtml | readonly SafeHtml[];
343
- leading?: SafeHtml;
344
- trailing?: SafeHtml;
1134
+ children: KerfUiContent;
1135
+ leading?: KerfUiContent;
1136
+ /** Tab-local action: a ToolbarControlGroup or a standalone Web Awesome button. */
1137
+ trailing?: KerfUiContent;
1138
+ /**
1139
+ * Action pinned to the far edge of the bar. Combine with an adjacent `trailing`
1140
+ * action when the tab-local and workspace-level actions must remain distinct.
1141
+ * Accepts a ToolbarControlGroup or a standalone Web Awesome button.
1142
+ */
1143
+ end?: KerfUiContent;
345
1144
  className?: string;
1145
+ /**
1146
+ * Keyboard activation mode for this strip, emitted as `data-tab-activation` for
1147
+ * `wireTabBars` to read (overrides its `activation` option). `'automatic'` (default)
1148
+ * selects on arrow / Home / End; `'manual'` moves roving focus only and the user
1149
+ * selects with Enter / Space / click — use it when selecting a tab is a heavy action.
1150
+ */
1151
+ activation?: TabActivation;
1152
+ /** How available strip width is allocated across child AppTabs. */
1153
+ allocation?: TabBarAllocation;
1154
+ /** Named strip chrome for application rails, segmented tabs, or inspectors. */
1155
+ presentation?: TabBarPresentation;
1156
+ /** Switch segmented AppTabs to icon-only at tablist widths of 832, 704, or 448px. Each tab needs a leading icon. */
1157
+ iconOnlyAt?: TabBarIconOnlyAt;
1158
+ /** Keep a trailing action beside the final tab or at the far edge of the bar. */
1159
+ trailingPlacement?: TabBarTrailingPlacement;
1160
+ /** Settle scrolling peers at whole-tab starts; wireTabBars measures a pinned leading tab's inset. */
1161
+ snapTabs?: boolean;
1162
+ /** Native named-slot assignment when composed inside a web component. */
1163
+ slot?: string;
346
1164
  }
347
1165
  /** Render a controlled tab strip. The application owns selection, order, and persistence. */
348
- declare function TabBar({ id, label, children, leading, trailing, className }: TabBarProps): SafeHtml;
1166
+ declare function TabBar({ id, label, children, leading, trailing, end, className, activation, allocation, presentation, iconOnlyAt, trailingPlacement, snapTabs, slot, }: TabBarProps): kerfjs.SafeHtml;
349
1167
 
350
- export { TabBar, type TabBarProps };
1168
+ export { type TabActivation, TabBar, type TabBarAllocation, type TabBarIconOnlyAt, type TabBarPresentation, type TabBarProps, type TabBarTrailingPlacement };
351
1169
  ```
352
1170
 
353
1171
  ## `@kerfjs/ui/wire-tab-bars`
354
1172
 
355
1173
  ```ts
1174
+ import { TabActivation } from './tab-bar.js';
1175
+ import 'kerfjs';
1176
+ import './semantic-content-BbzjvSu9.js';
1177
+
356
1178
  type TabReorderSource = 'pointer' | 'keyboard';
357
1179
  type TabDropPosition = 'before' | 'after';
358
1180
  interface TabReorder {
@@ -362,57 +1184,122 @@ interface TabReorder {
362
1184
  position: TabDropPosition;
363
1185
  source: TabReorderSource;
364
1186
  }
1187
+
365
1188
  interface WireTabBarsOptions {
366
1189
  onReorder: (change: TabReorder) => void;
1190
+ /**
1191
+ * How arrow / Home / End keys activate tabs (default `'automatic'`):
1192
+ * - `'automatic'` moves roving focus **and** selects the focused tab (clicks it).
1193
+ * - `'manual'` moves roving focus only; the user selects with Enter / Space / click
1194
+ * (the ARIA Tabs manual-activation pattern). Use this when activation is a heavy or
1195
+ * side-effecting action (e.g. a tab that loads a project) so arrowing through the
1196
+ * strip doesn't trigger it on every tab.
1197
+ *
1198
+ * A per-bar `data-tab-activation="manual" | "automatic"` attribute (see the `TabBar`
1199
+ * `activation` prop) overrides this option for that strip.
1200
+ */
1201
+ activation?: TabActivation;
367
1202
  }
368
1203
  declare function reorderTabs<T>(items: readonly T[], getId: (item: T) => string, sourceId: string, targetId: string, position: TabDropPosition): T[];
369
1204
  /** Wire reordering and keyboard navigation while leaving controlled state in the application. */
370
- declare function wireTabBars(root: HTMLElement | Document, { onReorder }: WireTabBarsOptions): () => void;
1205
+ declare function wireTabBars(root: HTMLElement | Document, { onReorder, activation }: WireTabBarsOptions): () => void;
371
1206
 
372
- export { type TabDropPosition, type TabReorder, type TabReorderSource, type WireTabBarsOptions, reorderTabs, wireTabBars };
1207
+ export { TabActivation, type TabDropPosition, type TabReorder, type TabReorderSource, type WireTabBarsOptions, reorderTabs, wireTabBars };
373
1208
  ```
374
1209
 
375
- ## `@kerfjs/ui/nav-stack`
1210
+ ## `@kerfjs/ui/wire-scroll-dividers`
376
1211
 
377
1212
  ```ts
378
- import { SafeHtml } from 'kerfjs';
379
-
380
1213
  /**
381
- * One entry in a {@link NavStack}. The app owns the stack as an array (usually a
382
- * signal); `NavStack` renders it and `wireNavStack` animates the transitions.
1214
+ * An app-owned scroll arrangement outside a `Pane`: the `id` of the element
1215
+ * that scrolls and the `id`s of the pinned chrome on each physical side of it.
1216
+ * Each named chrome element shows its divider on the side facing the scroller
1217
+ * while content is scrolled away beyond that side. Ids are resolved below the
1218
+ * wired root on every refresh, so a re-render that replaces an element keeps
1219
+ * the pairing.
383
1220
  */
384
- interface NavStackView {
385
- /** Stable identity for keyed reconcile and transition direction. */
386
- key: string;
387
- content: SafeHtml;
388
- /** Title shown in the top toolbar for this view. */
389
- title?: string;
390
- /** Trailing actions for this view's top toolbar. */
391
- toolbar?: SafeHtml;
1221
+ interface ScrollDividerTarget {
1222
+ /** The `id` of the scrolling element. */
1223
+ scroller: string;
1224
+ /** Chrome above the scroller: shows its bottom divider once scrolled down. */
1225
+ top?: string;
1226
+ /**
1227
+ * Chrome right of the scroller: shows its left divider while content is
1228
+ * hidden beyond the scroller's right edge (never when nothing overflows).
1229
+ */
1230
+ right?: string;
1231
+ /**
1232
+ * Chrome below the scroller: shows its top divider while content is hidden
1233
+ * beyond the scroller's bottom edge (never when nothing overflows).
1234
+ */
1235
+ bottom?: string;
1236
+ /** Chrome left of the scroller: shows its right divider once scrolled right. */
1237
+ left?: string;
392
1238
  }
393
- interface NavStackProps {
394
- id: string;
395
- /** Accessible name for the stack region. */
396
- label: string;
397
- /** The stack, root first; the last entry is the active top view. */
398
- views: NavStackView[];
399
- /** Accessible label for the back control (default "Back"). */
400
- backLabel?: string;
401
- /** Hide the top toolbar entirely (rare — a fully custom-chrome view). */
402
- hideToolbar?: boolean;
403
- /** Optional persistent bottom toolbar. */
404
- bottomToolbar?: SafeHtml;
405
- className?: string;
1239
+ interface WireScrollDividersOptions {
1240
+ /**
1241
+ * App-owned scroll arrangements to pair beyond the ones found by structure
1242
+ * (every `Pane`'s header and footer around its content, every `NavStack`'s
1243
+ * and `TabNavigator`'s chrome around its active region, and every `TabBar`
1244
+ * strip).
1245
+ */
1246
+ targets?: readonly ScrollDividerTarget[];
406
1247
  }
1248
+ type Root = HTMLElement | Document;
407
1249
  /**
408
- * A navigation stack (iOS-style push/pop). Renders every entry stacked, the last
409
- * one active; `@kerfjs/ui/wire-nav-stack`'s `wireNavStack` slides the content and
410
- * cross-fades the chrome across a change. A single-pane layout is a `NavStack`
411
- * with one entry. See `docs/23-app-layouts.md` §3.1.
1250
+ * Wire scroll dividers below `root`: a divider between pinned chrome and the
1251
+ * content that scrolls beside it shows only while content is scrolled away
1252
+ * from that edge. Near edges (top, left) hide at the scroll start; far edges
1253
+ * (bottom, right) hide at the scroll end and whenever nothing overflows.
1254
+ *
1255
+ * The wiring only reports scroll state; each component draws its own divider
1256
+ * from it. It writes `data-scroll-overflow` (the edges with hidden content, in
1257
+ * canonical `t`/`r`/`b`/`l` order) on each scroller, and `data-scroll-divider`
1258
+ * (the sides to draw) on each paired chrome element:
1259
+ *
1260
+ * - every `Pane` with a header or footer: its header shows a bottom divider and
1261
+ * its footer a top divider (drawn by the Pane, per its `chromeDividers`);
1262
+ * - every `NavStack`'s top chrome and bottom toolbar around its active view,
1263
+ * and every `TabNavigator`'s bar under its active scene: the chrome shows a
1264
+ * bottom (top chrome) or top (bottom toolbar, bar) divider. The scroller is
1265
+ * whichever element actually scrolls there: the view or scene itself, or,
1266
+ * through a sole child with no chrome of its own on that edge, a `Pane`'s
1267
+ * content or a nested `NavStack` / `TabNavigator` region (a Pane's own header
1268
+ * or footer draws that boundary instead);
1269
+ * - every `TabBar` strip: the bar draws a divider on each side of the strip
1270
+ * whose tabs are scrolled out of view;
1271
+ * - each app-owned `targets` pairing: a `Toolbar` or `List` named as chrome
1272
+ * draws the divider on its facing side.
1273
+ *
1274
+ * Structure is re-read after every DOM change below root (a re-render that
1275
+ * drops the attributes gets them back before paint), scroll is tracked with
1276
+ * one capturing listener per registered root, and size changes of each
1277
+ * scroller and its children with a `ResizeObserver`. Overlapping registrations
1278
+ * share one attribute writer; each disposer removes its registration, and the
1279
+ * final disposer removes the wiring-owned attributes. See
1280
+ * `docs/23-app-layouts.md` §3.7.
412
1281
  */
413
- declare function NavStack({ id, label, views, backLabel, hideToolbar, bottomToolbar, className }: NavStackProps): SafeHtml;
1282
+ declare function wireScrollDividers(root: Root, { targets }?: WireScrollDividersOptions): () => void;
1283
+
1284
+ export { type ScrollDividerTarget, type WireScrollDividersOptions, wireScrollDividers };
1285
+ ```
1286
+
1287
+ ## `@kerfjs/ui/nav-stack`
414
1288
 
415
- export { NavStack, type NavStackProps, type NavStackView };
1289
+ ```ts
1290
+ export { c as NavStack, N as NavStackProps, d as NavStackToolbarConfig, a as NavStackView, e as NavStackViewBottomToolbar, f as NavStackViewToolbar } from './nav-stack-B1Qc2e5q.js';
1291
+ import 'kerfjs';
1292
+ import './semantic-content-BbzjvSu9.js';
1293
+ import './list.js';
1294
+ import './flex-alignment-4ms8ZbV8.js';
1295
+ import './sides-BPSWde0A.js';
1296
+ import './css-values.js';
1297
+ import './pane.js';
1298
+ import './panel-toolbar-CL9tYOkh.js';
1299
+ import './toolbar.js';
1300
+ import './lucide-icon.js';
1301
+ import 'lucide';
1302
+ import './toolbar-text.js';
416
1303
  ```
417
1304
 
418
1305
  ## `@kerfjs/ui/wire-nav-stack`
@@ -428,7 +1315,10 @@ interface WireNavStackOptions {
428
1315
  * Animate a `NavStack`'s push/pop transitions and wire its back control. The app
429
1316
  * owns the stack (a signal of `NavStackView[]`) and re-renders `NavStack` when it
430
1317
  * changes; this helper slides the content and settles the chrome across each
431
- * change, and calls `onBack` when the back control is used. Returns a disposer.
1318
+ * change, moves focus into every new top view, restores that view's last focused
1319
+ * descendant on pop, and calls `onBack` when the back control is used. Mark a
1320
+ * preferred initial target with `data-nav-focus`; otherwise the first focusable
1321
+ * descendant (or the view itself) receives focus. Returns a disposer.
432
1322
  */
433
1323
  declare function wireNavStack(root: Element, options?: WireNavStackOptions): () => void;
434
1324
 
@@ -438,20 +1328,53 @@ export { type WireNavStackOptions, wireNavStack };
438
1328
  ## `@kerfjs/ui/split-view`
439
1329
 
440
1330
  ```ts
441
- import { SafeHtml } from 'kerfjs';
1331
+ import * as kerfjs from 'kerfjs';
1332
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
1333
+ import { N as NavStackProps, a as NavStackView } from './nav-stack-B1Qc2e5q.js';
1334
+ import { ResizableRegionProps } from './resizable-region.js';
1335
+ import './list.js';
1336
+ import './flex-alignment-4ms8ZbV8.js';
1337
+ import './sides-BPSWde0A.js';
1338
+ import './css-values.js';
1339
+ import './pane.js';
1340
+ import './panel-toolbar-CL9tYOkh.js';
1341
+ import './toolbar.js';
1342
+ import './lucide-icon.js';
1343
+ import 'lucide';
1344
+ import './toolbar-text.js';
442
1345
 
443
- interface SplitViewResizable {
1346
+ /**
1347
+ * The roomy list pane's `ResizableRegion`: its committed `size` and `min` /
1348
+ * `max` limits, plus the region configuration that forwards unchanged
1349
+ * (`separator`, `handleIcon`, `contentOverflow`, and collapse:
1350
+ * `collapsed`, `transitioning`, `collapseMotion`, `restoreControl`,
1351
+ * `restorePosition`). Omitted options keep the region's defaults.
1352
+ */
1353
+ interface SplitViewResizable extends Pick<ResizableRegionProps, 'separator' | 'handleIcon' | 'contentOverflow' | 'collapsed' | 'transitioning' | 'collapseMotion' | 'restoreControl' | 'restorePosition'> {
444
1354
  size: number;
445
1355
  min: number;
446
1356
  max: number;
447
1357
  }
1358
+ /** One compact view's top- and bottom-toolbar content (see `NavStackView`). */
1359
+ type SplitViewCompactViewToolbars = Pick<NavStackView, 'toolbar' | 'bottomToolbar'>;
1360
+ /**
1361
+ * The compact `NavStack`'s configuration: its toolbar configuration, back
1362
+ * control, persistent bottom toolbar, and chrome dividers forward to the
1363
+ * stack, and `list` / `detail` give each view its own toolbar groups.
1364
+ */
1365
+ interface SplitViewCompactStack extends Pick<NavStackProps, 'toolbarConfig' | 'backIcon' | 'backText' | 'hideToolbar' | 'bottomToolbar' | 'chromeDividers'> {
1366
+ /** Toolbar content for the list (root) view. */
1367
+ list?: SplitViewCompactViewToolbars;
1368
+ /** Toolbar content for the pushed detail view. */
1369
+ detail?: SplitViewCompactViewToolbars;
1370
+ }
448
1371
  interface SplitViewProps {
449
1372
  id: string;
450
1373
  label: string;
451
1374
  /** The list (primary) pane. */
452
- list: SafeHtml;
1375
+ list: KerfUiContent;
453
1376
  /** The detail (secondary) pane. */
454
- detail: SafeHtml;
1377
+ detail: KerfUiContent;
455
1378
  /**
456
1379
  * Compact ("one pane at a time") classes — a handset or portrait tablet.
457
1380
  * Derive from `deviceClass().value.compact`. When true the split collapses to
@@ -466,118 +1389,875 @@ interface SplitViewProps {
466
1389
  detailTitle?: string;
467
1390
  /** Back label for the compact NavStack (default "Back"). */
468
1391
  backLabel?: string;
1392
+ /** Compact NavStack configuration and per-view toolbars. */
1393
+ compactStack?: SplitViewCompactStack;
469
1394
  /** A resizable separator on roomy classes (min/max px). Omit for a fixed split. */
470
1395
  resizable?: SplitViewResizable;
471
1396
  className?: string;
1397
+ /** Native named-slot assignment when composed inside a web component. */
1398
+ slot?: string;
472
1399
  }
473
1400
  /**
474
- * A list-detail (master-detail) split. On roomy classes it shows both panes side
1401
+ * A list-detail split. On roomy classes it shows both panes side
475
1402
  * by side with an optional resizable separator; on compact classes it collapses
476
1403
  * to a `NavStack` (list → detail). See `docs/23-app-layouts.md` §3.2. Compose the
477
1404
  * resizable wiring with `wireResizableRegions` and the compact back with
478
1405
  * `wireNavStack`.
479
1406
  */
480
- declare function SplitView({ id, label, list, detail, compact, detailActive, listTitle, detailTitle, backLabel, resizable, className }: SplitViewProps): SafeHtml;
1407
+ declare function SplitView({ id, label, list, detail, compact, detailActive, listTitle, detailTitle, backLabel, compactStack, resizable, className, slot, }: SplitViewProps): kerfjs.SafeHtml;
1408
+
1409
+ export { SplitView, type SplitViewCompactStack, type SplitViewCompactViewToolbars, type SplitViewProps, type SplitViewResizable };
1410
+ ```
1411
+
1412
+ ## `@kerfjs/ui/pane`
1413
+
1414
+ ```ts
1415
+ import * as kerfjs from 'kerfjs';
1416
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
1417
+
1418
+ /**
1419
+ * Logical pane sides: where a {@link Pane} can show a separator and where it can
1420
+ * compensate for a device safe-area inset.
1421
+ */
1422
+ type PaneSeparatorSide = 'block-start' | 'block-end' | 'inline-start' | 'inline-end';
1423
+ /** Semantic root elements supported by {@link Pane}. */
1424
+ type PaneElement = 'article' | 'aside' | 'div' | 'main' | 'section';
1425
+ /** Semantic elements supported by the scrolling content slot. */
1426
+ type PaneContentElement = 'div' | 'main' | 'nav' | 'section';
1427
+ type PaneRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
1428
+ 'data-component'?: never;
1429
+ 'data-separator-block-start'?: never;
1430
+ 'data-separator-block-end'?: never;
1431
+ 'data-separator-inline-start'?: never;
1432
+ 'data-separator-inline-end'?: never;
1433
+ 'data-safe-area-block-start'?: never;
1434
+ 'data-safe-area-block-end'?: never;
1435
+ 'data-safe-area-inline-start'?: never;
1436
+ 'data-safe-area-inline-end'?: never;
1437
+ 'data-chrome-placement'?: never;
1438
+ 'data-chrome-dividers'?: never;
1439
+ 'data-appearance'?: never;
1440
+ 'data-deep-inset'?: never;
1441
+ 'data-outlined'?: never;
1442
+ }>;
1443
+ /** How a Pane's header and footer relate to its scrolling content. */
1444
+ type PaneChromePlacement = 'fixed' | 'auto';
1445
+ /**
1446
+ * When a Pane draws the divider between its pinned header or footer and its
1447
+ * scrolling content: `scroll` while content is scrolled away beneath that
1448
+ * chrome, as `wireScrollDividers` reports; `always`; or `none`.
1449
+ */
1450
+ type PaneChromeDividers = 'scroll' | 'always' | 'none';
1451
+ /** Background treatment of the Pane's scrolling work surface. */
1452
+ type PaneAppearance = 'default' | 'sunken';
1453
+ interface PaneProps {
1454
+ /** Optional fixed chrome above the scrolling content, arranged vertically. */
1455
+ header?: KerfUiContent;
1456
+ /** The pane's primary vertical, scrolling content stack. */
1457
+ children?: KerfUiContent;
1458
+ /** Optional fixed chrome below the scrolling content. */
1459
+ footer?: KerfUiContent;
1460
+ /**
1461
+ * Whether the header and footer stay pinned around the scrolling content.
1462
+ * `fixed` (default) always pins them. `auto` pins them while the pane is
1463
+ * tall enough, and below 480px of height (30rem, so it scales with the text
1464
+ * size) lets the whole pane scroll as one column, so tall chrome can never
1465
+ * squeeze the content to nothing.
1466
+ */
1467
+ chromePlacement?: PaneChromePlacement;
1468
+ /**
1469
+ * The divider under the header and over the footer, where they meet the
1470
+ * scrolling content. Omitted defaults to `scroll` for a plain pane and
1471
+ * `always` for `appearance="sunken"`. `scroll` shows the header's divider only
1472
+ * while the content is scrolled down, and the footer's only while more
1473
+ * content lies below — never when the content fits — once
1474
+ * `wireScrollDividers` (`@kerfjs/ui/wire-scroll-dividers`) is wired above
1475
+ * the pane; unwired, neither shows. `always` shows both; `none` neither.
1476
+ * The line is drawn inside the chrome, so no state moves the content.
1477
+ */
1478
+ chromeDividers?: PaneChromeDividers;
1479
+ /** Paint the scrolling work surface with the shared lowered-surface color. */
1480
+ appearance?: PaneAppearance;
1481
+ /** Add 8px to every side of scrolling content (default: false). */
1482
+ deepInset?: boolean;
1483
+ /** Opt into keyboard (`0`) or programmatic (`-1`) focus on the Pane root. */
1484
+ tabIndex?: 0 | -1;
1485
+ /** Keep the standard focus outline visible, such as for a drop target. */
1486
+ outlined?: boolean;
1487
+ /** Root semantics. Defaults to `div`. */
1488
+ element?: PaneElement;
1489
+ /** Scrolling content semantics. Defaults to `div`. */
1490
+ contentElement?: PaneContentElement;
1491
+ /** Independent logical-edge separator lines. Defaults to none. */
1492
+ separators?: readonly PaneSeparatorSide[];
1493
+ /**
1494
+ * Sides on which the pane may compensate for a device safe-area inset.
1495
+ * Defaults to every side: the pane pads its slots for each side that still
1496
+ * reaches an unsafe screen edge, as its surrounding layout reports, while its
1497
+ * background and separators paint through. List only the sides an app-owned
1498
+ * layout places at a screen edge, or pass `[]` to opt out.
1499
+ */
1500
+ safeAreaEdges?: readonly PaneSeparatorSide[];
1501
+ id?: string;
1502
+ /** Accessible name for a landmark root such as `aside` or `main`. */
1503
+ label?: string;
1504
+ /** Accessible name for a landmark scrolling slot such as `nav`. */
1505
+ contentLabel?: string;
1506
+ className?: string;
1507
+ headerClassName?: string;
1508
+ contentClassName?: string;
1509
+ footerClassName?: string;
1510
+ /** Safe `data-*` metadata; Pane-owned structural attributes remain protected. */
1511
+ rootAttributes?: PaneRootAttributes;
1512
+ /** Native named-slot assignment when composed inside a web component. */
1513
+ slot?: string;
1514
+ }
1515
+ /**
1516
+ * A pane's configuration, apart from its content and styling hooks: the props a
1517
+ * composite that renders a `Pane` for the app (a Workbench panel or work area,
1518
+ * or a CollapsiblePanel) forwards, so the app configures that pane instead of
1519
+ * styling it. An omitted or `undefined` field keeps the composite's default.
1520
+ */
1521
+ type PaneConfig = Pick<PaneProps, 'contentElement' | 'contentLabel' | 'separators' | 'safeAreaEdges' | 'chromeDividers' | 'appearance' | 'deepInset' | 'tabIndex' | 'outlined'>;
1522
+ /**
1523
+ * An unpadded application column with optional fixed header/footer slots and one
1524
+ * scrolling vertical content owner. Separator lines are independently opt-in on
1525
+ * each logical edge, so the same component works as a sidebar, main area,
1526
+ * inspector, or dialog column.
1527
+ */
1528
+ declare function Pane({ header, children, footer, chromePlacement, chromeDividers, appearance, deepInset, tabIndex, outlined, element, contentElement, separators, safeAreaEdges, id, label, contentLabel, className, headerClassName, contentClassName, footerClassName, rootAttributes, slot, }: PaneProps): kerfjs.SafeHtml;
481
1529
 
482
- export { SplitView, type SplitViewProps, type SplitViewResizable };
1530
+ export { Pane, type PaneAppearance, type PaneChromeDividers, type PaneChromePlacement, type PaneConfig, type PaneContentElement, type PaneElement, type PaneProps, type PaneSeparatorSide };
483
1531
  ```
484
1532
 
485
1533
  ## `@kerfjs/ui/workbench`
486
1534
 
487
1535
  ```ts
488
1536
  import { SafeHtml } from 'kerfjs';
1537
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
1538
+ import { b as NavPane, N as NavStackProps } from './nav-stack-B1Qc2e5q.js';
1539
+ import { ListConfig } from './list.js';
1540
+ import { PaneConfig } from './pane.js';
1541
+ import { ResizableRegionSeparator, ResizableRegionCollapseMotion, ResizableRegionContentOverflow, ResizableRegionPresentation, ResizableRegionRestorePosition } from './resizable-region.js';
1542
+ import { a as PanelToolbar, c as PanelBottomToolbar, b as PanelChromePlacement, d as PanelToggle } from './panel-toolbar-CL9tYOkh.js';
1543
+ import { ToolbarConfig } from './toolbar.js';
1544
+ import './toolbar-text.js';
1545
+ import './css-values.js';
1546
+ import './flex-alignment-4ms8ZbV8.js';
1547
+ import './sides-BPSWde0A.js';
1548
+ import './lucide-icon.js';
1549
+ import 'lucide';
1550
+
1551
+ /** The standard toggle a Workbench renders for a panel (see {@link PanelToggle}). */
1552
+ type WorkbenchPanelToggle = PanelToggle;
1553
+ /**
1554
+ * A Workbench panel's top toolbar, composed by the Workbench so its groups can
1555
+ * follow the panel's open state (see {@link PanelToolbar} for the roles).
1556
+ * A collapsed rail's marked groups and toggle go to the leading edge of
1557
+ * `mainToolbar` (left rail) or its trailing edge (right rail); a collapsed
1558
+ * drawer's go to the trailing edge of `mainBottomToolbar`, else to a
1559
+ * `FloatingToolbar` in the work area's bottom-end corner.
1560
+ */
1561
+ type WorkbenchPanelToolbar = PanelToolbar;
1562
+ type WorkbenchPanelBottomToolbar = PanelBottomToolbar;
1563
+ /**
1564
+ * The work area's top toolbar; collapsed rails add their groups to it. Its
1565
+ * configuration forwards to its `Toolbar`. It draws no divider of its own by
1566
+ * default: the work area's `Pane` draws one under its header chrome, wherever
1567
+ * that chrome ends, while `main` is scrolled (`mainPane.chromeDividers`).
1568
+ */
1569
+ interface WorkbenchMainToolbar extends ToolbarConfig {
1570
+ label: string;
1571
+ /** The work area's title, usually an extra-large `ToolbarText`. */
1572
+ title?: KerfUiContent;
1573
+ /** Groups after the title. */
1574
+ leading?: KerfUiContent;
1575
+ center?: KerfUiContent;
1576
+ /** Groups at the trailing edge, before a collapsed right rail's groups. */
1577
+ trailing?: KerfUiContent;
1578
+ }
1579
+ /**
1580
+ * The work area's bottom toolbar; a collapsed drawer adds its groups to it.
1581
+ * Its configuration forwards to its `Toolbar`. It draws no divider of its own
1582
+ * by default: the work area's `Pane` draws one over its footer chrome while
1583
+ * more of `main` lies below (`mainPane.chromeDividers`).
1584
+ */
1585
+ interface WorkbenchMainBottomToolbar extends ToolbarConfig {
1586
+ label: string;
1587
+ leading?: KerfUiContent;
1588
+ center?: KerfUiContent;
1589
+ trailing?: KerfUiContent;
1590
+ }
1591
+ /**
1592
+ * Whether the work area's header or footer chrome stays pinned (`fixed`),
1593
+ * scrolls away with the content (`scroll`), or stays pinned while the work
1594
+ * area is tall enough and scrolls with the content when it is short (`auto`,
1595
+ * the Pane's `chromePlacement="auto"`; it applies to the pinned header and
1596
+ * footer together).
1597
+ */
1598
+ type WorkbenchChromePlacement = PanelChromePlacement;
489
1599
 
490
- /** A collapsible Workbench panel — a side rail or the bottom drawer. */
491
- interface WorkbenchPanel {
492
- content: SafeHtml;
1600
+ /**
1601
+ * The Workbench container breakpoint below which a panel presents as an
1602
+ * overlay: `narrow` (704px or less) or `compact` (448px or less) — the same
1603
+ * breakpoints as `ResizableRegion`'s `responsiveFillAt` — or `never` to keep
1604
+ * it inline at every width.
1605
+ */
1606
+ type WorkbenchResponsiveOverlayAt = 'compact' | 'narrow' | 'never' | number;
1607
+ /**
1608
+ * How wide a rail's overlay is in a compact (448px or less) Workbench: `inset`
1609
+ * fills the Workbench less a dismiss margin on the side away from the rail's
1610
+ * edge, so a press beside it closes it; `full` fills the Workbench.
1611
+ */
1612
+ type WorkbenchCompactOverlay = 'inset' | 'full';
1613
+ /** Drag-resize limits for a resizable Workbench panel, in px. */
1614
+ interface WorkbenchPanelResizable {
1615
+ /** Smallest size (default 180 for a rail, 120 for the drawer). */
1616
+ min?: number;
1617
+ /** Largest size (default 480). */
1618
+ max?: number;
1619
+ }
1620
+ /** Region sizing, collapse, and presentation shared by either panel body. */
1621
+ interface WorkbenchPanelBase {
493
1622
  /** Whether the panel is currently collapsed (the app owns this). */
494
1623
  collapsed?: boolean;
495
- /** Rail width, or drawer height, in px. Overrides the CSS default. */
1624
+ /**
1625
+ * Rail width, or drawer height, in px. Overrides the CSS default. For a
1626
+ * resizable panel it is the current size (default 280 for a rail, 220 for
1627
+ * the drawer), clamped to the limits; the app owns it and `wireWorkbench`
1628
+ * reports each resize.
1629
+ */
496
1630
  size?: number;
1631
+ /**
1632
+ * Opt in to drag and keyboard resizing on the panel's inner separator:
1633
+ * `true` for the default limits, or `{ min, max }`. Off by default. Pair it
1634
+ * with `wireWorkbench` from `@kerfjs/ui/wire-workbench`.
1635
+ */
1636
+ resizable?: boolean | WorkbenchPanelResizable;
497
1637
  /** Accessible name for the panel region. */
498
1638
  label?: string;
1639
+ /** Opt into keyboard (`0`) or programmatic (`-1`) focus on the panel region. */
1640
+ tabIndex?: 0 | -1;
1641
+ /** Keep the standard focus outline visible while this panel is expanded. */
1642
+ outlined?: boolean;
1643
+ separator?: ResizableRegionSeparator;
1644
+ collapseMotion?: ResizableRegionCollapseMotion;
1645
+ contentOverflow?: ResizableRegionContentOverflow;
1646
+ presentation?: ResizableRegionPresentation;
1647
+ /**
1648
+ * Present the panel as an overlay, without a separator, below a Workbench
1649
+ * container breakpoint, and inline above it. `compact` and `narrow` use
1650
+ * CSS container queries; a positive number is a pixel threshold measured
1651
+ * by `wireWorkbench` and requires a `collapsed` signal. A rail overlays from its side at full
1652
+ * height, over the work area and an open drawer; the bottom drawer
1653
+ * overlays the bottom of the work-area column. Rails default to `narrow`
1654
+ * (pass `never` to keep one inline); the drawer defaults to inline.
1655
+ */
1656
+ responsiveOverlayAt?: WorkbenchResponsiveOverlayAt;
1657
+ /**
1658
+ * A rail's overlay width in a compact Workbench (default `inset`: the
1659
+ * Workbench less `--kui-workbench-overlay-dismiss-margin`, 44px). Ignored
1660
+ * by the drawer.
1661
+ */
1662
+ compactOverlay?: WorkbenchCompactOverlay;
1663
+ /**
1664
+ * Control shown while collapsed, in a safe-area-aware corner of the
1665
+ * Workbench (not the viewport); the bottom drawer's sits in the work-area
1666
+ * column. Prefer `toolbar.toggle`, which the Workbench relocates into the
1667
+ * work area's toolbar (or this corner when that toolbar is absent).
1668
+ */
1669
+ restoreControl?: SafeHtml;
1670
+ restorePosition?: ResizableRegionRestorePosition;
1671
+ }
1672
+ /** The original static panel body: one toolbar, optional fixed chrome, and one Pane. */
1673
+ interface WorkbenchStaticPanel extends WorkbenchPanelBase, NavPane<WorkbenchPanelToolbar, WorkbenchPanelBottomToolbar> {
1674
+ /** The composed toolbar; marked groups and its toggle relocate on collapse. */
1675
+ toolbar?: WorkbenchPanelToolbar;
1676
+ headerPlacement?: WorkbenchChromePlacement;
1677
+ footerPlacement?: WorkbenchChromePlacement;
1678
+ navStack?: never;
1679
+ }
1680
+ /** A panel whose active NavStack view supplies the toolbar, fixed header, and scroll body. */
1681
+ interface WorkbenchNavigationPanel extends WorkbenchPanelBase {
1682
+ navStack: Omit<NavStackProps, 'panelToggle' | 'hideToolbar' | 'className' | 'slot'>;
1683
+ /** Supplies the standard toggle; active view groups precede it and may relocate on collapse. */
1684
+ toolbar: Omit<WorkbenchPanelToolbar, 'title' | 'leading' | 'center' | 'trailing'> & {
1685
+ toggle: NonNullable<WorkbenchPanelToolbar['toggle']>;
1686
+ };
1687
+ content?: never;
1688
+ header?: never;
1689
+ headerList?: never;
1690
+ headerPlacement?: never;
1691
+ footer?: never;
1692
+ footerList?: never;
1693
+ bottomToolbar?: never;
1694
+ footerPlacement?: never;
1695
+ pane?: never;
499
1696
  }
1697
+ /** A collapsible Workbench side rail or bottom drawer. */
1698
+ type WorkbenchPanel = WorkbenchStaticPanel | WorkbenchNavigationPanel;
500
1699
  interface WorkbenchProps {
1700
+ /**
1701
+ * The Workbench's `id`. Each panel's `id` derives from it —
1702
+ * `<id>-left-rail`, `<id>-right-rail`, `<id>-bottom-drawer` — so a toggle
1703
+ * can name the panel it shows and hides with `aria-controls`.
1704
+ */
501
1705
  id: string;
502
1706
  label: string;
503
1707
  /** The central work area. */
504
- main: SafeHtml;
1708
+ main: KerfUiContent;
1709
+ /**
1710
+ * The work area's top toolbar. A collapsed left rail's marked groups
1711
+ * and toggle lead it; a collapsed right rail's trail it. With it, `main`
1712
+ * renders in a `Pane` below the toolbar.
1713
+ */
1714
+ mainToolbar?: WorkbenchMainToolbar;
1715
+ /**
1716
+ * Fixed content under `mainToolbar` — supporting copy such as a
1717
+ * description — divided from the scrolling `main` below it.
1718
+ */
1719
+ mainHeader?: KerfUiContent;
1720
+ /**
1721
+ * Fixed content over `mainBottomToolbar` — a status line or a resource
1722
+ * toolbar — divided from the scrolling `main` above it.
1723
+ */
1724
+ mainFooter?: KerfUiContent;
1725
+ /**
1726
+ * The work area's bottom toolbar. A collapsed drawer's marked groups and
1727
+ * toggle trail it; without it they float in the work area's corner.
1728
+ */
1729
+ mainBottomToolbar?: WorkbenchMainBottomToolbar;
1730
+ /**
1731
+ * Whether `mainToolbar` and `mainHeader` stay pinned (`fixed`, default),
1732
+ * scroll away with `main` (`scroll`) — useful where large text would leave
1733
+ * pinned chrome little room — or stay pinned while the work area is tall
1734
+ * enough and scroll with `main` when it is short (`auto`).
1735
+ */
1736
+ mainHeaderPlacement?: WorkbenchChromePlacement;
1737
+ /** The same for `mainFooter` and `mainBottomToolbar` (default `fixed`). */
1738
+ mainFooterPlacement?: WorkbenchChromePlacement;
1739
+ /**
1740
+ * Configuration for the work area's `Pane` (`contentElement`,
1741
+ * `contentLabel`, `separators`, `safeAreaEdges`, `chromeDividers`), which it has whenever it
1742
+ * has a toolbar, `mainHeader`, or `mainFooter`; without that chrome, `main`
1743
+ * renders as given and this is ignored. Omitted or `undefined` fields keep
1744
+ * the `Pane` defaults.
1745
+ */
1746
+ mainPane?: PaneConfig;
1747
+ /** Accessible name for the central region when it needs its own landmark. */
1748
+ mainLabel?: string;
1749
+ /** Opt into keyboard (`0`) or programmatic (`-1`) focus on the central region. */
1750
+ mainTabIndex?: 0 | -1;
1751
+ /** Keep the standard focus outline visible on the central region. */
1752
+ mainOutlined?: boolean;
1753
+ /**
1754
+ * Configuration for the `List` that holds `mainHeader` (`gap`, `hAlign`,
1755
+ * `vAlign`, `dividerSides`, `textInsets`, `controlInsets`). Omitted or
1756
+ * `undefined` fields keep the defaults (no divider: the work area's
1757
+ * `Pane` draws the line under its header chrome).
1758
+ */
1759
+ mainHeaderList?: ListConfig;
1760
+ /**
1761
+ * The same for the `List` that holds `mainFooter` (no divider by default:
1762
+ * the work area's `Pane` draws the line over its footer chrome).
1763
+ */
1764
+ mainFooterList?: ListConfig;
505
1765
  leftRail?: WorkbenchPanel;
506
1766
  rightRail?: WorkbenchPanel;
507
1767
  bottomDrawer?: WorkbenchPanel;
1768
+ /**
1769
+ * Minimum width, in px, the work area keeps beside the inline rails, fixed
1770
+ * or `resizable` (default 320; `0` turns it off). Resizing a rail stops
1771
+ * where the work area would drop below it, and inline rails shrink
1772
+ * proportionally when the Workbench gets narrower. Workbenches without a
1773
+ * rail ignore it.
1774
+ */
1775
+ mainMinSize?: number;
1776
+ /**
1777
+ * Minimum height, in px, the work area keeps above an inline bottom drawer,
1778
+ * fixed or `resizable` (default 120; `0` turns it off) — the drawer's
1779
+ * counterpart of `mainMinSize`. Resizing the drawer stops where the work
1780
+ * area would drop below it, and the drawer shrinks when the Workbench gets
1781
+ * shorter. Workbenches without a drawer ignore it.
1782
+ */
1783
+ mainMinHeight?: number;
1784
+ /** Dim the work area below any open overlay and absorb outside presses; off by default. */
1785
+ overlayBackdrop?: boolean;
508
1786
  className?: string;
1787
+ /** Native named-slot assignment when composed inside a web component. */
1788
+ slot?: string;
509
1789
  }
510
1790
  /**
511
1791
  * The Xcode-like multi-panel workspace: a collapsible left rail, right rail, and
512
1792
  * bottom drawer around a central work area (any absent). Collapsing snaps the
513
1793
  * panel's track to zero in one reflow while its fixed-size content slides out via
514
1794
  * a composited transform — the instant-width / sliding-content technique, so the
515
- * work area relayouts once, not per frame. The app owns each `collapsed` flag;
516
- * the collapse is pure CSS (no wire). See `docs/23-app-layouts.md` §3.3.
1795
+ * work area relayouts once, not per frame. Bottom-drawer content stays anchored
1796
+ * to the shell's stable bottom edge throughout that transition. The app owns
1797
+ * each `collapsed` flag; the collapse is pure CSS. A collapsed panel renders
1798
+ * `inert` and `aria-hidden`, so neither Tab nor assistive technology reaches
1799
+ * controls that have slid out of view or an empty landmark (its restore control
1800
+ * lives outside it and stays reachable). A panel may opt in to drag and keyboard resizing with
1801
+ * `resizable`, which `wireWorkbench` drives. See `docs/23-app-layouts.md` §3.3.
1802
+ */
1803
+ declare function Workbench({ id, label, main, leftRail, rightRail, bottomDrawer, mainToolbar, mainHeader, mainFooter, mainBottomToolbar, mainHeaderPlacement, mainFooterPlacement, mainPane, mainLabel, mainTabIndex, mainOutlined, mainHeaderList, mainFooterList, mainMinSize, mainMinHeight, overlayBackdrop, className, slot, }: WorkbenchProps): SafeHtml;
1804
+
1805
+ export { Workbench, type WorkbenchChromePlacement, type WorkbenchCompactOverlay, type WorkbenchMainBottomToolbar, type WorkbenchMainToolbar, type WorkbenchNavigationPanel, type WorkbenchPanel, type WorkbenchPanelBottomToolbar, type WorkbenchPanelResizable, type WorkbenchPanelToggle, type WorkbenchPanelToolbar, type WorkbenchProps, type WorkbenchResponsiveOverlayAt, type WorkbenchStaticPanel };
1806
+ ```
1807
+
1808
+ ## `@kerfjs/ui/wire-workbench`
1809
+
1810
+ ```ts
1811
+ import { Signal, ReadonlySignal } from 'kerfjs';
1812
+ import { DeviceClass } from './device-class.js';
1813
+
1814
+ /** A Workbench panel slot, named after its `WorkbenchProps` prop. */
1815
+ type WorkbenchPanelKey = 'leftRail' | 'rightRail' | 'bottomDrawer';
1816
+
1817
+ /** Minimal `localStorage`-shaped store, so the persistence hook is testable. */
1818
+ interface WorkbenchStorage {
1819
+ getItem(key: string): string | null;
1820
+ setItem(key: string, value: string): void;
1821
+ }
1822
+ /** One Workbench panel's app-owned state. */
1823
+ interface WireWorkbenchPanel {
1824
+ /**
1825
+ * The app-owned size signal a `resizable` panel renders as its `size`.
1826
+ * `wireWorkbench` writes each committed resize here; collapsing never
1827
+ * touches it, so an expanded panel returns at the size it had. Omit it for
1828
+ * a panel that is not resizable.
1829
+ */
1830
+ size?: Signal<number>;
1831
+ /**
1832
+ * When set with `size`, the size is loaded from and saved to `storage`
1833
+ * under this key, so the panel remembers the user's size.
1834
+ */
1835
+ storageKey?: string;
1836
+ /**
1837
+ * The app-owned signal the panel renders as its `collapsed`. With it (and
1838
+ * `dismissOverlays`, on by default) `wireWorkbench` treats the panel as a
1839
+ * transient overlay while it presents as one: it collapses when its
1840
+ * `responsiveOverlayAt` breakpoint begins to apply and gets its inline state
1841
+ * back when the breakpoint stops applying, an open overlay takes focus and
1842
+ * keeps Tab inside it, and it closes on Escape or a press outside it.
1843
+ */
1844
+ collapsed?: Signal<boolean>;
1845
+ /**
1846
+ * Treat presses in a portal surface launched by this panel (for example a
1847
+ * body-level menu or dialog) as inside it. The predicate receives each Node
1848
+ * in the press's composed path; return true for the portal root. Ordinary
1849
+ * presses outside the panel and its allowed surfaces still dismiss it.
1850
+ */
1851
+ keepOpenOn?: (target: Node) => boolean;
1852
+ }
1853
+ /** A resize the user made, after `wireWorkbench` wrote it to the size signal. */
1854
+ interface WorkbenchResize {
1855
+ panel: WorkbenchPanelKey;
1856
+ size: number;
1857
+ source: 'keyboard' | 'pointer';
1858
+ }
1859
+ interface WireWorkbenchOptions {
1860
+ /** The `id` the `Workbench` was rendered with. */
1861
+ id: string;
1862
+ /**
1863
+ * The wired panels, keyed like the `Workbench` props. Render a panel given
1864
+ * a `size` with `resizable` and `size={panel.size.value}`, and one given a
1865
+ * `collapsed` signal with `collapsed={panel.collapsed.value}`.
1866
+ */
1867
+ panels: Partial<Record<WorkbenchPanelKey, WireWorkbenchPanel>>;
1868
+ /**
1869
+ * When provided, resizing is suspended while `deviceClass.compact` is true —
1870
+ * the classes where rails become overlay drawers or are replaced.
1871
+ */
1872
+ deviceClass?: ReadonlySignal<DeviceClass>;
1873
+ /** Persistence store (default `globalThis.localStorage`, if present). */
1874
+ storage?: WorkbenchStorage;
1875
+ /** Keyboard step in px (default 16). */
1876
+ step?: number;
1877
+ /** Shift+arrow step in px (default 64). */
1878
+ largeStep?: number;
1879
+ /** Called after each committed resize. */
1880
+ onResize?: (change: WorkbenchResize) => void;
1881
+ /**
1882
+ * Treat the panels given a `collapsed` signal as transient overlays while
1883
+ * they present as overlays (default `true`), like `wireSidebar`'s compact
1884
+ * overlay: a panel whose `responsiveOverlayAt` breakpoint begins to apply
1885
+ * starts collapsed, with no collapse motion, and gets its inline collapsed
1886
+ * state back when the breakpoint stops applying (and on disposal); an open
1887
+ * overlay panel, responsive or `presentation: "overlay"`, closes on Escape
1888
+ * or a press that starts and ends outside it. A panel that opens as an
1889
+ * overlay takes focus on its first focusable control, and while it is open
1890
+ * Tab and Shift+Tab cycle through its controls instead of reaching the
1891
+ * work area it covers (the ARIA dialog pattern of `wireSidebar`'s compact
1892
+ * overlay); inline panels never move focus. Focus stranded in a closing
1893
+ * panel — however it closed, the app's own control inside it included —
1894
+ * returns to the control that had it when the panel opened, else to the
1895
+ * panel's restore control, else to a control outside the panel whose
1896
+ * `aria-controls` names it (each panel's `id` is its region id, e.g.
1897
+ * `studio-left-rail`) — the fallback for a panel already open at wire-up.
1898
+ * An opener inside a panel that has closed since is skipped. `false` leaves
1899
+ * every `collapsed` write and all focus handling to the app.
1900
+ */
1901
+ dismissOverlays?: boolean;
1902
+ /**
1903
+ * Keep overlays exclusive (default `true`), like `wireSidebar`'s
1904
+ * `exclusiveCompact`: when a panel opens while it presents as an overlay,
1905
+ * every other open overlay panel — rails and the bottom drawer alike —
1906
+ * closes, so one overlay never covers another's controls. Panels presenting
1907
+ * inline are never closed by it. Applies only with `dismissOverlays`.
1908
+ */
1909
+ exclusiveOverlays?: boolean;
1910
+ }
1911
+ /**
1912
+ * Wire a `Workbench`'s panels. For `resizable` panels given a `size` signal:
1913
+ * pointer drags and arrow / Shift+arrow / Home / End on each panel's
1914
+ * separator, clamped to the panel's limits and to the room that leaves the
1915
+ * work area its minimum width and height, committed to the app-owned size signals.
1916
+ * Optional persistence loads and saves each size; optional `deviceClass`
1917
+ * suspends resizing on compact classes. Collapse stays the app's `collapsed`
1918
+ * flag and never changes a size. For panels given a `collapsed` signal,
1919
+ * overlays are transient (`dismissOverlays`): a responsive overlay starts
1920
+ * collapsed, an open overlay takes focus and keeps Tab inside it, it closes
1921
+ * on Escape or an outside press, and
1922
+ * opening one overlay closes the others (`exclusiveOverlays`). Returns a disposer. See `docs/23-app-layouts.md` §3.3.
517
1923
  */
518
- declare function Workbench({ id, label, main, leftRail, rightRail, bottomDrawer, className }: WorkbenchProps): SafeHtml;
1924
+ declare function wireWorkbench(root: HTMLElement, { id, panels, deviceClass, storage, step, largeStep, onResize, dismissOverlays, exclusiveOverlays, }: WireWorkbenchOptions): () => void;
519
1925
 
520
- export { Workbench, type WorkbenchPanel, type WorkbenchProps };
1926
+ export { type WireWorkbenchOptions, type WireWorkbenchPanel, type WorkbenchPanelKey, type WorkbenchResize, type WorkbenchStorage, wireWorkbench };
521
1927
  ```
522
1928
 
523
- ## `@kerfjs/ui/tab-scaffold`
1929
+ ## `@kerfjs/ui/collapsible-panel`
524
1930
 
525
1931
  ```ts
526
1932
  import { SafeHtml } from 'kerfjs';
1933
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
1934
+ import { P as PanelSide, a as PanelToolbar, b as PanelChromePlacement, c as PanelBottomToolbar, d as PanelToggle } from './panel-toolbar-CL9tYOkh.js';
1935
+ export { e as collapsiblePanelToggleIcon } from './panel-toolbar-CL9tYOkh.js';
1936
+ import { ListConfig } from './list.js';
1937
+ import { PaneConfig } from './pane.js';
1938
+ import { ResizableRegionSeparator, ResizableRegionCollapseMotion, ResizableRegionContentOverflow, ResizableRegionPresentation, ResizableRegionRestorePosition } from './resizable-region.js';
1939
+ import './toolbar.js';
1940
+ import './sides-BPSWde0A.js';
1941
+ import './lucide-icon.js';
1942
+ import 'lucide';
1943
+ import './css-values.js';
1944
+ import './flex-alignment-4ms8ZbV8.js';
1945
+
1946
+ /** Which edge a {@link CollapsiblePanel} docks to. */
1947
+ type CollapsiblePanelSide = PanelSide;
1948
+ /** The standard toggle a panel toolbar renders (see {@link CollapsiblePanelToolbar}). */
1949
+ type CollapsiblePanelToolbarToggle = PanelToggle;
1950
+ /**
1951
+ * A panel's composed top toolbar. Its groups occupy `leading`, `center`, and
1952
+ * `trailing` while open; groups marked `relocateOnCollapse` and the standard
1953
+ * toggle move to the work-area toolbar through
1954
+ * {@link CollapsiblePanelRelocated} while it is collapsed.
1955
+ */
1956
+ type CollapsiblePanelToolbar = PanelToolbar;
1957
+ type CollapsiblePanelBottomToolbar = PanelBottomToolbar;
1958
+ type CollapsiblePanelChromePlacement = PanelChromePlacement;
1959
+ interface CollapsiblePanelToggleProps {
1960
+ /** The panel this toggle controls. */
1961
+ side: CollapsiblePanelSide;
1962
+ /** The panel's current collapsed state (drives the icon direction). */
1963
+ collapsed: boolean;
1964
+ /** `data-action` the button carries so `wireSidebar` can delegate its click. */
1965
+ action: string;
1966
+ /** The panel id the button targets (`data-tab-panel`-style: `data-collapsible-panel`). */
1967
+ panelId?: string;
1968
+ /** Accessible label; defaults to "Collapse"/"Expand". */
1969
+ label?: string;
1970
+ className?: string;
1971
+ /** Native named-slot assignment when composed inside a web component. */
1972
+ slot?: string;
1973
+ }
1974
+ /**
1975
+ * A standard collapse/expand toggle button for a {@link CollapsiblePanel}: the
1976
+ * recognizable per-side icon (see {@link collapsiblePanelToggleIcon}) plus the
1977
+ * `data-action` / `aria-expanded` `wireSidebar` reads. Placement is the app's —
1978
+ * put it in the panel's own header (to collapse) and somewhere always-visible
1979
+ * (to expand while collapsed).
1980
+ */
1981
+ declare function CollapsiblePanelToggle({ side, collapsed, action, panelId, label, className, slot, }: CollapsiblePanelToggleProps): SafeHtml;
1982
+ interface CollapsiblePanelProps {
1983
+ /** A stable id for the panel — `wireSidebar` targets it and toggles reference it. */
1984
+ id: string;
1985
+ /** Which edge the panel docks to: a left/right rail or a bottom drawer. */
1986
+ side: CollapsiblePanelSide;
1987
+ /** Whether the panel is currently collapsed (the app owns this signal). */
1988
+ collapsed?: boolean;
1989
+ /** Rail width or drawer height in px. Overrides the CSS default. */
1990
+ size?: number;
1991
+ /** Accessible label for the panel region. */
1992
+ label?: string;
1993
+ /** Opt into keyboard (`0`) or programmatic (`-1`) focus on the panel region. */
1994
+ tabIndex?: 0 | -1;
1995
+ /** Keep the standard focus outline visible while the panel is expanded. */
1996
+ outlined?: boolean;
1997
+ /** Panel content. */
1998
+ children?: KerfUiContent;
1999
+ /**
2000
+ * The panel's top toolbar, composed so its groups follow the panel's open
2001
+ * state. With it, `children` renders in a `Pane` below the toolbar; render
2002
+ * {@link CollapsiblePanelRelocated} in the app's work-area toolbar so the
2003
+ * marked groups and toggle stay reachable while the panel is collapsed.
2004
+ */
2005
+ toolbar?: CollapsiblePanelToolbar;
2006
+ /** Fixed content below a toolbar panel's top toolbar. */
2007
+ header?: KerfUiContent;
2008
+ headerList?: ListConfig;
2009
+ headerPlacement?: CollapsiblePanelChromePlacement;
2010
+ /** Fixed content above a toolbar panel's bottom toolbar. */
2011
+ footer?: KerfUiContent;
2012
+ footerList?: ListConfig;
2013
+ bottomToolbar?: CollapsiblePanelBottomToolbar;
2014
+ footerPlacement?: CollapsiblePanelChromePlacement;
2015
+ /**
2016
+ * Configuration for a `toolbar` panel's `Pane` (`contentElement`,
2017
+ * `contentLabel`, `separators`, `safeAreaEdges`, `chromeDividers`) — for example
2018
+ * `{ contentElement: 'nav', contentLabel: 'Sections' }` for a navigation
2019
+ * rail. Omitted or `undefined` fields keep the `Pane` defaults. Ignored
2020
+ * without a `toolbar`, where `children` renders as given.
2021
+ */
2022
+ pane?: PaneConfig;
2023
+ separator?: ResizableRegionSeparator;
2024
+ collapseMotion?: ResizableRegionCollapseMotion;
2025
+ contentOverflow?: ResizableRegionContentOverflow;
2026
+ presentation?: ResizableRegionPresentation;
2027
+ /** Control shown while collapsed, in a safe-area-aware corner of the panel's container (not the viewport). */
2028
+ restoreControl?: SafeHtml;
2029
+ restorePosition?: ResizableRegionRestorePosition;
2030
+ className?: string;
2031
+ }
2032
+ /**
2033
+ * A standalone collapsible side rail or bottom drawer, outside the full
2034
+ * {@link Workbench} shell. It owns only the presentation: a fixed-size content
2035
+ * area that stays laid out while the panel's track snaps to zero and the content
2036
+ * slides out via `transform` (one reflow, composited — the same technique
2037
+ * `Workbench` and the catalog sidebar use). Bottom-drawer content stays anchored
2038
+ * to the panel's fixed bottom edge, so the track cannot move its layout origin
2039
+ * underneath the transform transition. A collapsed panel renders `inert` (with
2040
+ * `aria-hidden`), so neither Tab, pointer, nor assistive technology reaches
2041
+ * content that has slid out of view; its `restoreControl` renders outside the
2042
+ * panel and stays reachable.
2043
+ * The app owns the `collapsed` signal;
2044
+ * pair it with `wireSidebar` for the toggle, focus, compact-overlay, keyboard,
2045
+ * and persistence semantics, and with `CollapsiblePanelToggle` for the standard
2046
+ * affordance. See `ui/docs/collapsible-panel.md` and `docs/23-app-layouts.md`.
2047
+ */
2048
+ declare function CollapsiblePanel({ id, side, collapsed, size, label, tabIndex, outlined, children, toolbar, header, headerList, headerPlacement, footer, footerList, bottomToolbar, footerPlacement, pane, separator, collapseMotion, contentOverflow, presentation, restoreControl, restorePosition, className, }: CollapsiblePanelProps): SafeHtml;
2049
+ interface CollapsiblePanelRelocatedProps {
2050
+ /** The panel's `id`. */
2051
+ panelId: string;
2052
+ side: CollapsiblePanelSide;
2053
+ /** The panel's current collapsed state. */
2054
+ collapsed: boolean;
2055
+ /** The same `toolbar` the panel receives. */
2056
+ toolbar: CollapsiblePanelToolbar;
2057
+ }
2058
+ /**
2059
+ * A collapsed {@link CollapsiblePanel}'s marked groups and standard
2060
+ * toggle, for the app's work-area toolbar — nothing while the panel is open.
2061
+ * Put it first in the leading zone for a left rail, last in the trailing zone
2062
+ * for a right rail, and last in a bottom toolbar (or a `FloatingToolbar`
2063
+ * `restoreControl`) for a bottom drawer. `wireSidebar` hands focus to it when
2064
+ * the panel closes from its own toggle.
2065
+ */
2066
+ declare function CollapsiblePanelRelocated({ panelId, side, collapsed, toolbar, }: CollapsiblePanelRelocatedProps): SafeHtml;
2067
+
2068
+ export { CollapsiblePanel, type CollapsiblePanelBottomToolbar, type CollapsiblePanelChromePlacement, type CollapsiblePanelProps, CollapsiblePanelRelocated, type CollapsiblePanelRelocatedProps, type CollapsiblePanelSide, CollapsiblePanelToggle, type CollapsiblePanelToggleProps, type CollapsiblePanelToolbar, type CollapsiblePanelToolbarToggle };
2069
+ ```
2070
+
2071
+ ## `@kerfjs/ui/wire-sidebar`
2072
+
2073
+ ```ts
2074
+ import { Signal, ReadonlySignal } from 'kerfjs';
2075
+ import { DeviceClass } from './device-class.js';
527
2076
 
528
- interface TabScaffoldTab {
2077
+ /** Minimal `localStorage`-shaped store, so the persistence hook is testable. */
2078
+ interface SidebarStorage {
2079
+ getItem(key: string): string | null;
2080
+ setItem(key: string, value: string): void;
2081
+ }
2082
+ interface WireSidebarPanel {
2083
+ /** The panel id — matches `CollapsiblePanel`'s `id` and a toggle's `panelId`. */
529
2084
  id: string;
2085
+ /** The app-owned collapsed signal. `wireSidebar` reads it (focus, overlay) and
2086
+ * writes it (toggle, Escape, backdrop, persistence). */
2087
+ collapsed: Signal<boolean>;
2088
+ /** `data-action` value the panel's toggle button(s) carry. */
2089
+ toggleAction: string;
2090
+ /** When set, the panel's inline collapsed state is loaded from and saved to
2091
+ * `storage` under this key (a persistence hook), so the panel remembers the
2092
+ * user's inline choice. A compact overlay's open/closed state is transient
2093
+ * and is never persisted. */
2094
+ storageKey?: string;
2095
+ /** The panel's inline (non-compact) collapsed state when `storage` holds no
2096
+ * choice for it; wire-up seeds the signal with it. Defaults to the signal's
2097
+ * own value. Set it when the app seeds the signal from the device class
2098
+ * (`signal(device.value.compact)`) so a compact first render already starts
2099
+ * collapsed while a later crossing to a wide class still restores this
2100
+ * inline default. */
2101
+ inlineCollapsed?: boolean;
2102
+ }
2103
+ interface WireSidebarOptions {
2104
+ panels: readonly WireSidebarPanel[];
2105
+ /**
2106
+ * When provided, the sidebar adopts a compact **overlay** presentation while
2107
+ * `deviceClass.compact` is true: an open panel floats over the content with a
2108
+ * dismissable backdrop, Escape and backdrop-click collapse it, and focus is
2109
+ * trapped within the open panel (the ARIA dialog pattern). Without it the panel
2110
+ * is always inline.
2111
+ *
2112
+ * An overlay is transient and user-initiated: whenever the compact overlay
2113
+ * presentation begins (wire-up on a compact device, or a crossing from a wide
2114
+ * class), every panel starts collapsed so nothing blocks the page until the
2115
+ * user opens it. The inline state is remembered and restored when the device
2116
+ * crosses back to a wide class (and on disposal).
2117
+ */
2118
+ deviceClass?: ReadonlySignal<DeviceClass>;
2119
+ /** Compact devices either overlay the panels (default) or hide them in favor
2120
+ * of an application-owned responsive replacement. */
2121
+ compactPresentation?: 'overlay' | 'hidden';
2122
+ /** Collapse the other panels when one opens in compact overlay mode. */
2123
+ exclusiveCompact?: boolean;
2124
+ /** Persistence store (default `globalThis.localStorage`, if present). */
2125
+ storage?: SidebarStorage;
2126
+ }
2127
+ /**
2128
+ * The reusable sidebar-semantics layer for {@link CollapsiblePanel}s: toggle
2129
+ * delegation with focus restore, focus-into on open, an optional compact overlay
2130
+ * (backdrop + Escape + focus trap) driven by {@link deviceClass}, and an optional
2131
+ * persistence hook. The app owns each `collapsed` signal and the layout; this wire
2132
+ * owns the interaction. Returns a disposer. See `ui/docs/collapsible-panel.md` and `docs/23-app-layouts.md`.
2133
+ */
2134
+ declare function wireSidebar(root: HTMLElement, { panels, deviceClass, compactPresentation, exclusiveCompact, storage, }: WireSidebarOptions): () => void;
2135
+
2136
+ export { type SidebarStorage, type WireSidebarOptions, type WireSidebarPanel, wireSidebar };
2137
+ ```
2138
+
2139
+ ## `@kerfjs/ui/tab-navigator`
2140
+
2141
+ ```ts
2142
+ import { SafeHtml } from 'kerfjs';
2143
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2144
+ import { PaneAppearance } from './pane.js';
2145
+
2146
+ interface TabNavigatorTabBase<Id extends string> {
2147
+ id: Id;
530
2148
  label: string;
531
2149
  /** Decorative icon shown above the label in the bottom bar. */
532
2150
  icon?: SafeHtml;
533
2151
  /** The tab's content — typically a `NavStack` so each tab keeps its own stack. */
534
- content: SafeHtml;
2152
+ content: KerfUiContent;
2153
+ /** Background of this scene's scrolling work surface. */
2154
+ appearance?: PaneAppearance;
2155
+ /** Add 8px to every side of a plain scene's scrolling content. */
2156
+ deepInset?: boolean;
2157
+ /** Opt into keyboard (`0`) or programmatic (`-1`) focus on this scene. */
2158
+ tabIndex?: 0 | -1;
2159
+ /** Keep the standard focus outline visible while this scene is active. */
2160
+ outlined?: boolean;
535
2161
  }
536
- interface TabScaffoldProps {
2162
+ /** A tab with an optional count or short-status badge. */
2163
+ interface TabNavigatorTabCountBadge {
2164
+ /**
2165
+ * Optional count or short status shown as a solid danger `Badge` at the
2166
+ * top-trailing corner of the tab icon (the iOS tab-bar badge). Omitted, `''`,
2167
+ * or non-finite numbers render no badge. The visual badge is `aria-hidden`;
2168
+ * its meaning reaches assistive technology through `badgeLabel`.
2169
+ *
2170
+ * Pass `true` instead for the text-free dot (new content without a count).
2171
+ */
2172
+ badge?: string | number;
2173
+ /**
2174
+ * Localized phrase folded into the tab's accessible name as
2175
+ * `"<label>, <badgeLabel>"` (for example `"3 unread"` → `"Inbox, 3 unread"`).
2176
+ * Defaults to the badge text itself. Ignored when no badge renders.
2177
+ */
2178
+ badgeLabel?: string;
2179
+ }
2180
+ /** A tab with the text-free dot badge (new content without a count). */
2181
+ interface TabNavigatorTabDotBadge {
2182
+ /**
2183
+ * `true` shows a solid danger dot `Badge` at the top-trailing corner of the
2184
+ * tab icon — the iOS tab-bar dot for new content without a count.
2185
+ */
2186
+ badge: true;
2187
+ /**
2188
+ * Required localized phrase folded into the tab's accessible name as
2189
+ * `"<label>, <badgeLabel>"` (for example `"New activity"` →
2190
+ * `"Feed, New activity"`). A dot has no text, so this is its only meaning.
2191
+ */
2192
+ badgeLabel: string;
2193
+ }
2194
+ /** One bottom-bar destination: its label, optional icon and badge, and content. */
2195
+ type TabNavigatorTab<Id extends string = string> = TabNavigatorTabBase<Id> & (TabNavigatorTabCountBadge | TabNavigatorTabDotBadge);
2196
+ interface TabNavigatorProps<Id extends string = string> {
537
2197
  id: string;
538
2198
  /** Accessible name for the tab bar. */
539
2199
  label: string;
540
- tabs: TabScaffoldTab[];
2200
+ tabs: readonly TabNavigatorTab<Id>[];
541
2201
  /** The controlled active tab id (the app owns selection). */
542
- active: string;
2202
+ active: NoInfer<Id>;
2203
+ /**
2204
+ * The line over the tab bar, where it meets the active scene. `scroll`
2205
+ * (default) shows it only while more of the scene's content lies below —
2206
+ * never at the scroll end or when the content fits — once
2207
+ * `wireScrollDividers` (`@kerfjs/ui/wire-scroll-dividers`) is wired above
2208
+ * the scaffold; unwired, it does not show. `always` shows it without the
2209
+ * wiring; `none` never, even when wired. The line is the bar's own 1px top
2210
+ * border, so no state moves the bar or a tab.
2211
+ */
2212
+ chromeDividers?: 'scroll' | 'always' | 'none';
543
2213
  className?: string;
2214
+ /** Native named-slot assignment when composed inside a web component. */
2215
+ slot?: string;
544
2216
  }
545
2217
  /**
546
- * A mobile-first, iOS-like bottom tab scaffold: a bottom tab bar that switches
2218
+ * A mobile-first, iOS-like bottom tab navigator: a bottom tab bar that switches
547
2219
  * between major sections, each tab keeping its own content (usually a `NavStack`)
548
2220
  * mounted so its stack and scroll survive a switch. Controlled — the app owns
549
- * `active`; wire selection with `@kerfjs/ui/wire-tab-scaffold`'s `wireTabScaffold`.
2221
+ * `active`; wire selection with `@kerfjs/ui/wire-tab-navigator`'s `wireTabNavigator`.
550
2222
  * On larger classes, promote the tabs to a `Workbench` rail or sidebar instead of
551
2223
  * a bottom bar. See `docs/23-app-layouts.md` §3.4.
552
2224
  */
553
- declare function TabScaffold({ id, label, tabs, active, className }: TabScaffoldProps): SafeHtml;
2225
+ declare function TabNavigator<Id extends string>({ id, label, tabs, active, chromeDividers, className, slot, }: TabNavigatorProps<Id>): SafeHtml;
554
2226
 
555
- export { TabScaffold, type TabScaffoldProps, type TabScaffoldTab };
2227
+ export { TabNavigator, type TabNavigatorProps, type TabNavigatorTab };
556
2228
  ```
557
2229
 
558
- ## `@kerfjs/ui/wire-tab-scaffold`
2230
+ ## `@kerfjs/ui/wire-tab-navigator`
559
2231
 
560
2232
  ```ts
561
- interface WireTabScaffoldOptions {
2233
+ interface WireTabNavigatorOptions {
562
2234
  /** Invoked with the selected tab id when a bottom-bar tab is activated. */
563
2235
  onSelect: (tabId: string) => void;
564
2236
  }
565
2237
  /**
566
- * Wire a `TabScaffold`'s bottom tab bar: clicking a tab calls `onSelect` with its
2238
+ * Wire a `TabNavigator`'s bottom tab bar: clicking a tab calls `onSelect` with its
567
2239
  * id (the app then updates its controlled `active`). Returns a disposer.
568
2240
  */
569
- declare function wireTabScaffold(root: Element, options: WireTabScaffoldOptions): () => void;
2241
+ declare function wireTabNavigator(root: Element, options: WireTabNavigatorOptions): () => void;
570
2242
 
571
- export { type WireTabScaffoldOptions, wireTabScaffold };
2243
+ export { type WireTabNavigatorOptions, wireTabNavigator };
572
2244
  ```
573
2245
 
574
2246
  ## `@kerfjs/ui/resizable-region`
575
2247
 
576
2248
  ```ts
577
2249
  import { SafeHtml } from 'kerfjs';
2250
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2251
+ import { CssLength } from './css-values.js';
578
2252
 
579
2253
  type ResizableRegionAxis = 'horizontal' | 'vertical';
580
2254
  type ResizableRegionEdge = 'start' | 'end';
2255
+ type ResizableRegionSeparator = 'auto' | 'hidden';
2256
+ type ResizableRegionCollapseMotion = 'none' | 'slide' | 'fade-slide';
2257
+ type ResizableRegionContentOverflow = 'clip' | 'auto' | 'visible';
2258
+ type ResizableRegionPresentation = 'inline' | 'overlay' | 'hidden';
2259
+ type ResizableRegionRestorePosition = 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
2260
+ type ResizableRegionResponsiveFillAt = 'compact' | 'narrow';
581
2261
  interface ResizableRegionProps {
582
2262
  id: string;
583
2263
  label: string;
@@ -586,17 +2266,38 @@ interface ResizableRegionProps {
586
2266
  max: number;
587
2267
  axis?: ResizableRegionAxis;
588
2268
  edge?: ResizableRegionEdge;
2269
+ /** Snap the track to zero. The region renders `inert` and `aria-hidden`
2270
+ * while collapsed, so neither Tab nor assistive technology reaches it or
2271
+ * lands on an empty landmark; `restoreControl` renders outside the region. */
589
2272
  collapsed?: boolean;
590
2273
  transitioning?: boolean;
2274
+ /** Whether the separator line is painted. The resize hit target remains available. */
2275
+ separator?: ResizableRegionSeparator;
2276
+ /** Keep the track change instant while optionally sliding the fixed-size content. */
2277
+ collapseMotion?: ResizableRegionCollapseMotion;
2278
+ /** Use `visible` while an anchored popup must escape the content box; it raises the region to the popup layer. */
2279
+ contentOverflow?: ResizableRegionContentOverflow;
2280
+ /** Inline layout, an edge overlay, or a responsive replacement that removes the region. */
2281
+ presentation?: ResizableRegionPresentation;
2282
+ /** Always-available control rendered while collapsed, outside the clipped region. */
2283
+ restoreControl?: SafeHtml;
2284
+ /** Safe-area-aware corner of the region's container (not the viewport) for `restoreControl`. */
2285
+ restorePosition?: ResizableRegionRestorePosition;
2286
+ /** Position a restore control in its container corner or leave it in normal flow. */
2287
+ restorePlacement?: 'corner' | 'inline';
2288
+ /** Corner distance before the container's safe-area inset. */
2289
+ restoreInset?: CssLength;
2290
+ /** Fill the available inline track and hide the separator below a container breakpoint. */
2291
+ responsiveFillAt?: ResizableRegionResponsiveFillAt;
591
2292
  /** Decorative dormant content for the separator handle. Must not contain interactive descendants. */
592
2293
  handleIcon?: SafeHtml;
593
- children: SafeHtml | SafeHtml[];
2294
+ children: KerfUiContent;
594
2295
  }
595
2296
  declare const clampRegionSize: (size: number, min: number, max: number) => number;
596
2297
  declare const resizeRegionFromPointer: (startSize: number, delta: number, edge: ResizableRegionEdge) => number;
597
- declare function ResizableRegion({ id, label, size, min, max, axis, edge, collapsed, transitioning, handleIcon, children }: ResizableRegionProps): SafeHtml;
2298
+ declare function ResizableRegion({ id, label, size, min, max, axis, edge, collapsed, transitioning, separator, collapseMotion, contentOverflow, presentation, restoreControl, restorePosition, restorePlacement, restoreInset, responsiveFillAt, handleIcon, children, }: ResizableRegionProps): SafeHtml;
598
2299
 
599
- export { ResizableRegion, type ResizableRegionAxis, type ResizableRegionEdge, type ResizableRegionProps, clampRegionSize, resizeRegionFromPointer };
2300
+ export { ResizableRegion, type ResizableRegionAxis, type ResizableRegionCollapseMotion, type ResizableRegionContentOverflow, type ResizableRegionEdge, type ResizableRegionPresentation, type ResizableRegionProps, type ResizableRegionResponsiveFillAt, type ResizableRegionRestorePosition, type ResizableRegionSeparator, clampRegionSize, resizeRegionFromPointer };
600
2301
  ```
601
2302
 
602
2303
  ## `@kerfjs/ui/wire-resizable-regions`
@@ -613,8 +2314,9 @@ interface WireResizableRegionsOptions {
613
2314
  onPreview?: (change: ResizeCommit) => void;
614
2315
  onCommit: (change: ResizeCommit) => void;
615
2316
  }
2317
+
616
2318
  /** Wire pointer and separator-keyboard behavior for every ResizableRegion below root. */
617
- declare function wireResizableRegions(root: HTMLElement, { step, largeStep, onPreview, onCommit }: WireResizableRegionsOptions): () => void;
2319
+ declare function wireResizableRegions(root: HTMLElement, options: WireResizableRegionsOptions): () => void;
618
2320
 
619
2321
  export { type ResizeCommit, type WireResizableRegionsOptions, wireResizableRegions };
620
2322
  ```
@@ -686,77 +2388,465 @@ declare function deviceClass(options?: DeviceClassOptions): ReadonlySignal<Devic
686
2388
  export { DEFAULT_BREAKPOINTS, type DeviceBreakpoints, type DeviceClass, type DeviceClassOptions, type DeviceOrientation, type DeviceSize, type Viewport, classifyViewport, deviceClass };
687
2389
  ```
688
2390
 
689
- ## `@kerfjs/ui/segmented-control`
2391
+ ## `@kerfjs/ui/catalog`
690
2392
 
691
2393
  ```ts
2394
+ import * as kerfjs from 'kerfjs';
692
2395
  import { SafeHtml } from 'kerfjs';
2396
+ import { a as CatalogProps } from './types-C9BubXfz.js';
2397
+ export { b as CatalogBrand, c as CatalogEntry, d as CatalogRelated, C as CatalogResource, e as CatalogSecondaryGroup, f as CatalogSection, g as CatalogStageRootAttributes } from './types-C9BubXfz.js';
2398
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2399
+ import './toolbar.js';
2400
+ import './sides-BPSWde0A.js';
2401
+ import './pane.js';
2402
+ import './workbench.js';
2403
+ import './nav-stack-B1Qc2e5q.js';
2404
+ import './list.js';
2405
+ import './flex-alignment-4ms8ZbV8.js';
2406
+ import './css-values.js';
2407
+ import './panel-toolbar-CL9tYOkh.js';
2408
+ import './lucide-icon.js';
2409
+ import 'lucide';
2410
+ import './toolbar-text.js';
2411
+ import './resizable-region.js';
2412
+
2413
+ /**
2414
+ * Controlled, stateless component-catalog shell: a `Workbench` whose left rail
2415
+ * is the catalog navigation and whose work area is the active entry — its
2416
+ * toolbar, description, preview stage, and resource footer. The sidebar's
2417
+ * standard toggle moves into the entry toolbar while it is collapsed, and on
2418
+ * a small screen the sidebar overlays the stage like any Workbench rail.
2419
+ */
2420
+ declare function Catalog({ id, brand, sections, active, content, collapsed, theme, headerActions, secondarySections, sidebarFooter, status, geometryOverlay, stageRootAttributes, selectAction, toggleSidebarAction, toggleThemeAction, toggleSecondaryAction, headerPlacement, footerPlacement, sidebar, mainToolbar, footerToolbar, className, slot, }: CatalogProps): kerfjs.SafeHtml;
2421
+
2422
+ /** How a specimen aligns its visible edge with its `ListHeader` label. */
2423
+ type CatalogExampleAlign = 'glyph' | 'inline-control' | 'text-trigger' | 'none';
2424
+ interface CatalogExampleViewport {
2425
+ layout?: 'grid' | 'flex' | 'flex-column';
2426
+ width?: 'full' | 'compact' | 'medium' | 'wide' | 'text' | 'control';
2427
+ /** Fixed specimen height; `app` frames an application-sized recipe or layout.
2428
+ * A fixed height is definite, so a child that fills with `height: 100%`
2429
+ * (a horizontal `ResizableRegion`, say) spans the whole frame. */
2430
+ height?: 'short' | 'reduced' | 'medium' | 'tall' | 'app';
2431
+ /** A minimum the frame may grow past. It is not a definite height: a child
2432
+ * sized with `height: 100%` falls back to its content height, so use
2433
+ * `height` when the specimen must fill the frame. */
2434
+ minHeight?: 'short' | 'medium';
2435
+ frame?: 'solid' | 'dashed';
2436
+ surface?: 'default' | 'lowered';
2437
+ overflow?: 'hidden' | 'auto-x';
2438
+ responsive?: 'roomy-only';
2439
+ shadow?: boolean;
2440
+ /** Public component custom properties applied to the specimen viewport. */
2441
+ tokens?: Readonly<Record<`--${string}`, string>>;
2442
+ }
2443
+ type CatalogExampleRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
2444
+ 'data-catalog-example'?: never;
2445
+ 'data-catalog-example-stack'?: never;
2446
+ 'data-catalog-example-label'?: never;
2447
+ 'data-catalog-example-note'?: never;
2448
+ 'data-align'?: never;
2449
+ }>;
2450
+ interface CatalogExampleProps {
2451
+ label?: string;
2452
+ note?: SafeHtml | string;
2453
+ align?: CatalogExampleAlign;
2454
+ /** Optional catalog-owned constraints for demonstrating layout components. */
2455
+ viewport?: CatalogExampleViewport;
2456
+ /** Replacement guidance shown when a roomy-only viewport is hidden. */
2457
+ compactFallback?: SafeHtml | string;
2458
+ rootAttributes?: CatalogExampleRootAttributes;
2459
+ className?: string;
2460
+ children?: KerfUiContent;
2461
+ /** Native named-slot assignment when composed inside a web component. */
2462
+ slot?: string;
2463
+ }
2464
+ /** A labeled catalog specimen with optional explanatory text and alignment. */
2465
+ declare function CatalogExample({ label, note, align, viewport, compactFallback, rootAttributes, className, children, slot, }: CatalogExampleProps): SafeHtml;
2466
+
2467
+ type CatalogExampleStackRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
2468
+ 'data-catalog-example'?: never;
2469
+ 'data-catalog-example-stack'?: never;
2470
+ 'data-catalog-example-label'?: never;
2471
+ 'data-catalog-example-note'?: never;
2472
+ 'data-align'?: never;
2473
+ }>;
2474
+ interface CatalogExampleStackProps {
2475
+ label?: string;
2476
+ rootAttributes?: CatalogExampleStackRootAttributes;
2477
+ className?: string;
2478
+ children?: KerfUiContent;
2479
+ /** Native named-slot assignment when composed inside a web component. */
2480
+ slot?: string;
2481
+ }
2482
+ /** A vertically stacked group of catalog examples. */
2483
+ declare function CatalogExampleStack({ label, rootAttributes, className, children, slot, }: CatalogExampleStackProps): kerfjs.SafeHtml;
2484
+
2485
+ export { Catalog, CatalogExample, type CatalogExampleAlign, type CatalogExampleProps, CatalogExampleStack, type CatalogExampleStackProps, type CatalogExampleViewport, CatalogProps };
2486
+ ```
2487
+
2488
+ ## `@kerfjs/ui/catalog-resources`
2489
+
2490
+ ```ts
2491
+ import { C as CatalogResource } from './types-C9BubXfz.js';
2492
+ import './toolbar.js';
2493
+ import 'kerfjs';
2494
+ import './semantic-content-BbzjvSu9.js';
2495
+ import './sides-BPSWde0A.js';
2496
+ import './pane.js';
2497
+ import './workbench.js';
2498
+ import './nav-stack-B1Qc2e5q.js';
2499
+ import './list.js';
2500
+ import './flex-alignment-4ms8ZbV8.js';
2501
+ import './css-values.js';
2502
+ import './panel-toolbar-CL9tYOkh.js';
2503
+ import './lucide-icon.js';
2504
+ import 'lucide';
2505
+ import './toolbar-text.js';
2506
+ import './resizable-region.js';
2507
+
2508
+ /**
2509
+ * Standard resource labels for a Kerf catalog detail footer. Keep these labels
2510
+ * stable across catalogs so people and AI-generated integrations see the same
2511
+ * choices in the same vocabulary.
2512
+ */
2513
+ type CatalogResourceKind = 'demoSource' | 'componentSource' | 'designTemplate' | 'guidance' | 'integrationGuidance';
2514
+ type CatalogGuidanceKind = 'guidance' | 'integrationGuidance';
2515
+ interface CatalogResourceTarget {
2516
+ href: string;
2517
+ /** Optional monospace detail, normally the repository-relative source path. */
2518
+ detail?: string;
2519
+ }
2520
+ interface CatalogResourcesInput {
2521
+ /** Required source for the runnable demonstration. */
2522
+ demoSource: CatalogResourceTarget;
2523
+ /** Source for the production component; omit for recipes and integrations. */
2524
+ componentSource?: CatalogResourceTarget;
2525
+ /** Optional design-tool template associated with the component. */
2526
+ designTemplate?: CatalogResourceTarget;
2527
+ /** Required UI or integration guidance. */
2528
+ guidance: CatalogResourceTarget;
2529
+ /** Use `integrationGuidance` when the component implementation is upstream. */
2530
+ guidanceKind?: CatalogGuidanceKind;
2531
+ }
2532
+ /**
2533
+ * Build the standard catalog resource group in its canonical order: demo,
2534
+ * component, optional design template, then guidance.
2535
+ */
2536
+ declare function catalogResources(input: CatalogResourcesInput): CatalogResource[];
2537
+
2538
+ export { type CatalogGuidanceKind, type CatalogResourceKind, type CatalogResourceTarget, type CatalogResourcesInput, catalogResources };
2539
+ ```
2540
+
2541
+ ## `@kerfjs/ui/wire-catalog`
2542
+
2543
+ ```ts
2544
+ import { Signal } from 'kerfjs';
2545
+
2546
+ interface WireCatalogOptions {
2547
+ /** Invoked with the entry id when a sidebar item or a related-entry option is chosen. */
2548
+ onSelect: (id: string) => void;
2549
+ /** Invoked when the sidebar collapse/expand control is activated. */
2550
+ onToggleSidebar?: () => void;
2551
+ /** Invoked when the theme toggle is activated. */
2552
+ onToggleTheme?: () => void;
2553
+ /** Invoked when the secondary (ecosystem) group's disclosure toggle is activated. */
2554
+ onToggleSecondary?: () => void;
2555
+ /** When set, `?<urlParam>=<id>` is written on select via `history.replaceState`. */
2556
+ urlParam?: string;
2557
+ /**
2558
+ * Reveal the chosen sidebar row after selection. `true` uses desktop-safe
2559
+ * defaults; pass options to customize scroll alignment or the media guard.
2560
+ */
2561
+ revealSelection?: boolean | CatalogRevealOptions;
2562
+ selectAction?: string;
2563
+ toggleSidebarAction?: string;
2564
+ toggleThemeAction?: string;
2565
+ toggleSecondaryAction?: string;
2566
+ /**
2567
+ * The sidebar's app-owned collapsed flag. With it, the catalog's Workbench
2568
+ * sidebar is wired like any Workbench rail: it becomes a transient overlay
2569
+ * on a small screen (collapsed as the breakpoint applies, closed on Escape
2570
+ * or a press outside, focus handed back), and choosing an entry from the
2571
+ * open overlay closes it.
2572
+ */
2573
+ collapsed?: Signal<boolean>;
2574
+ /**
2575
+ * The app-owned sidebar width signal for a Catalog rendered with
2576
+ * `sidebar={{ resizable: true, size: sidebarSize.value }}`. Each committed
2577
+ * drag or keyboard resize is written to it.
2578
+ */
2579
+ sidebarSize?: Signal<number>;
2580
+ /**
2581
+ * With `sidebarSize`, load and save the width under this storage key so the
2582
+ * catalog remembers the user's sidebar width.
2583
+ */
2584
+ sidebarStorageKey?: string;
2585
+ /** The Catalog's `id`, when it is not the default `kui-catalog`. */
2586
+ id?: string;
2587
+ }
2588
+ interface CatalogRevealOptions {
2589
+ /** Scroll alignment within the sidebar. Default `'nearest'`. */
2590
+ block?: ScrollLogicalPosition;
2591
+ /** Cross-axis alignment. Default `'nearest'`. */
2592
+ inline?: ScrollLogicalPosition;
2593
+ /** Scroll behavior. Default `'auto'`. */
2594
+ behavior?: ScrollBehavior;
2595
+ /**
2596
+ * Only reveal when this media query matches. Defaults to the Catalog's
2597
+ * desktop layout; pass `false` to reveal at every viewport size.
2598
+ */
2599
+ media?: string | false;
2600
+ }
2601
+ /**
2602
+ * Reveal one Catalog sidebar entry after the controlled render settles without
2603
+ * moving focus. Returns a cancellation function for rapid selection changes.
2604
+ */
2605
+ declare function revealCatalogEntry(root: HTMLElement, id: string, { block, inline, behavior, media, }?: CatalogRevealOptions): () => void;
2606
+ /**
2607
+ * Keep a Catalog's opt-in geometry overlay synchronized with its preview.
2608
+ * Specimens receive computed border highlights (or a dashed bound when they
2609
+ * have no border and are transparent), while positive computed margins use
2610
+ * devtools-style orange bands. CSS/stylesheet-only changes are observed too.
2611
+ * Returns a disposer.
2612
+ */
2613
+ declare function wireCatalogGeometryOverlay(root: HTMLElement): () => void;
2614
+ /**
2615
+ * Wire a {@link Catalog}'s interactions with one delegated listener set: sidebar
2616
+ * item selection (and the related-entry popup menu), the sidebar collapse toggle, and
2617
+ * the theme toggle. The app owns the `active`/`collapsed`/`theme` signals and updates
2618
+ * them in the callbacks; optionally mirror the active id into the URL via `urlParam`.
2619
+ * It also wires the scroll dividers below root (`wireScrollDividers`), so the
2620
+ * catalog's panes and every example in it show their chrome dividers only
2621
+ * while scrolled. Returns a disposer.
2622
+ */
2623
+ declare function wireCatalog(root: HTMLElement, { onSelect, onToggleSidebar, onToggleTheme, onToggleSecondary, urlParam, revealSelection, selectAction, toggleSidebarAction, toggleThemeAction, toggleSecondaryAction, collapsed, sidebarSize, sidebarStorageKey, id: catalogId, }: WireCatalogOptions): () => void;
2624
+
2625
+ export { type CatalogRevealOptions, type WireCatalogOptions, revealCatalogEntry, wireCatalog, wireCatalogGeometryOverlay };
2626
+ ```
2627
+
2628
+ ## `@kerfjs/ui/segmented-control`
2629
+
2630
+ ```ts
2631
+ import * as kerfjs from 'kerfjs';
2632
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
693
2633
 
694
2634
  type SegmentedControlAppearance = 'filled' | 'outlined' | 'toolbar';
695
2635
  type SegmentedControlShape = 'rounded' | 'pill';
696
2636
  type SegmentedControlSize = 'small' | 'default';
697
2637
  type SegmentedControlLayout = 'content' | 'equal';
698
- interface SegmentedControlChoice {
699
- value: string;
2638
+ interface SegmentedControlChoice<Value extends string = string> {
2639
+ value: Value;
700
2640
  label: string;
701
- content?: SafeHtml;
2641
+ content?: KerfUiContent;
702
2642
  title?: string;
703
2643
  disabled?: boolean;
704
2644
  }
705
- interface SegmentedControlProps {
2645
+ interface SegmentedControlProps<Value extends string = string> {
706
2646
  id: string;
707
2647
  label: string;
708
- value: string;
709
- choices: readonly SegmentedControlChoice[];
2648
+ value: NoInfer<Value>;
2649
+ choices: readonly SegmentedControlChoice<Value>[];
710
2650
  action?: string;
711
2651
  appearance?: SegmentedControlAppearance;
712
2652
  shape?: SegmentedControlShape;
713
2653
  size?: SegmentedControlSize;
714
2654
  layout?: SegmentedControlLayout;
715
2655
  className?: string;
716
- /** Render as an unanimated loading skeleton, disabling every segment. */
2656
+ /** Render as a loading placeholder: every choice keeps its live label or icon, none is selected, and every segment is disabled. */
717
2657
  placeholder?: boolean;
2658
+ /** Native named-slot assignment when composed inside a web component. */
2659
+ slot?: string;
718
2660
  }
719
- declare function SegmentedControl({ id, label, value, choices, action, appearance, shape, size, layout, className, placeholder, }: SegmentedControlProps): SafeHtml;
2661
+ declare function SegmentedControl<Value extends string>({ id, label, value, choices, action, appearance, shape, size, layout, className, placeholder, slot, }: SegmentedControlProps<Value>): kerfjs.SafeHtml;
720
2662
 
721
2663
  export { SegmentedControl, type SegmentedControlAppearance, type SegmentedControlChoice, type SegmentedControlLayout, type SegmentedControlProps, type SegmentedControlShape, type SegmentedControlSize };
722
2664
  ```
723
2665
 
724
- ## `@kerfjs/ui/state-banner`
2666
+ ## `@kerfjs/ui/select`
725
2667
 
726
2668
  ```ts
727
2669
  import { SafeHtml } from 'kerfjs';
2670
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2671
+ import { CssForegroundColor } from './css-values.js';
2672
+ import { LucideNode } from './lucide-icon.js';
2673
+ import 'lucide';
2674
+
2675
+ interface SelectChoice<Value extends string = string> {
2676
+ value: Value;
2677
+ label: string;
2678
+ icon?: LucideNode;
2679
+ iconName?: string;
2680
+ /**
2681
+ * Foreground color for the optional icon: a semantic foreground token such
2682
+ * as `uiColor('success-on-quiet')`, or an application-owned
2683
+ * `foregroundColorVar('--app-icon-color')`. Fill tokens such as
2684
+ * `uiColor('success-fill-quiet')` are pale background tints and do not
2685
+ * type-check.
2686
+ */
2687
+ color?: CssForegroundColor;
2688
+ group?: string;
2689
+ /** Keep an unavailable choice visible but prevent selection. */
2690
+ disabled?: boolean;
2691
+ /** Optional explanation exposed as the disabled option's native tooltip. */
2692
+ disabledReason?: string;
2693
+ /**
2694
+ * Draw a divider between this choice and the previous choice in the same
2695
+ * list. A group boundary is already a separator, so the first choice of a
2696
+ * group (or of the whole menu) never draws a second one.
2697
+ */
2698
+ separatorBefore?: boolean;
2699
+ }
2700
+ type SelectAccessibleName = {
2701
+ label: string;
2702
+ ariaLabel?: string;
2703
+ } | {
2704
+ label?: never;
2705
+ ariaLabel: string;
2706
+ };
2707
+ type SelectPresentation = 'form' | 'toolbar-borderless' | 'navigation' | 'inline' | 'title';
2708
+ type SelectSize = 'default' | 'compact';
2709
+ type SelectSelectedPresentation = 'label' | 'icon-only';
2710
+ type SelectFocusRingOwner = 'select' | 'group';
2711
+ type SelectTriggerWidth = 'fit-content' | 'max-content' | 'fill';
2712
+ interface SelectBaseProps<Value extends string = string> {
2713
+ name: string;
2714
+ choices: readonly SelectChoice<Value>[];
2715
+ className?: string;
2716
+ /** Empty-value hint text shown in the closed control (the native select placeholder). */
2717
+ placeholderText?: string;
2718
+ /** Supporting text shown below the control and associated with its combobox. */
2719
+ hint?: string;
2720
+ disabled?: boolean;
2721
+ /** Match menu width to the trigger; default menus grow to content within viewport gutters. */
2722
+ fitMenu?: boolean;
2723
+ /** Render as an unanimated loading skeleton: the label above a static, empty control box. */
2724
+ placeholder?: boolean;
2725
+ /** Form (default), borderless toolbar, intrinsic navigation, inline, or view-title chrome. */
2726
+ presentation?: SelectPresentation;
2727
+ size?: SelectSize;
2728
+ /** Closed trigger width; omit to keep the presentation's default. */
2729
+ triggerWidth?: SelectTriggerWidth;
2730
+ /** Show the disclosure caret (default); omit it for a compact icon-only trigger. */
2731
+ caret?: boolean;
2732
+ /** Let an enclosing ToolbarControlGroup paint the composed focus ring. */
2733
+ focusRingOwner?: SelectFocusRingOwner;
2734
+ /** Keep the trigger's focus ring inside its box when an ancestor clips overflow. */
2735
+ focusRingInset?: boolean;
2736
+ /** Maximum closed-control label width in CSS pixels before ellipsis. */
2737
+ labelMaxWidth?: number;
2738
+ /** Native named-slot assignment when composed inside a web component. */
2739
+ slot?: string;
2740
+ }
2741
+ /** One chosen value (the default). */
2742
+ interface SelectSingleValueProps<Value extends string = string> {
2743
+ multiple?: false;
2744
+ value: NoInfer<Value>;
2745
+ renderSelected?: (choice: SelectChoice<Value>) => SafeHtml;
2746
+ /** Show only the selected choice icon while retaining the Select's accessible name. */
2747
+ selectedPresentation?: SelectSelectedPresentation;
2748
+ triggerIcon?: never;
2749
+ selectAllLabel?: never;
2750
+ clearLabel?: never;
2751
+ }
2752
+ /**
2753
+ * Any number of chosen values. The popup stays open while the person toggles
2754
+ * choices and closes on an outside click, Escape, or focus leaving; the closed
2755
+ * control summarizes the chosen labels in choice order.
2756
+ */
2757
+ interface SelectMultipleLabelProps<Value extends string = string> {
2758
+ multiple: true;
2759
+ value: readonly NoInfer<Value>[];
2760
+ renderSelected?: never;
2761
+ selectedPresentation?: 'label';
2762
+ triggerIcon?: never;
2763
+ /** Opt in to a footer action that selects every enabled choice. */
2764
+ selectAllLabel?: string;
2765
+ /** Opt in to a footer action that clears the current selection. */
2766
+ clearLabel?: string;
2767
+ }
2768
+ /**
2769
+ * A multiple Select drawn as an icon-only toolbar trigger, such as a
2770
+ * "Filter by label" funnel. No single choice is selected, so the trigger shows
2771
+ * a fixed `triggerIcon` naming the menu's purpose; while any choice is chosen
2772
+ * a count badge sits beside it, and the combobox's accessible name ends with
2773
+ * the chosen labels in choice order.
2774
+ */
2775
+ interface SelectMultipleIconProps<Value extends string = string> {
2776
+ multiple: true;
2777
+ value: readonly NoInfer<Value>[];
2778
+ renderSelected?: never;
2779
+ selectedPresentation: 'icon-only';
2780
+ /**
2781
+ * The trigger's fixed icon, typically a `LucideIcon` naming the menu's
2782
+ * purpose (a funnel for a filter), independent of the selection.
2783
+ */
2784
+ triggerIcon: KerfUiContent;
2785
+ /** Opt in to a footer action that selects every enabled choice. */
2786
+ selectAllLabel?: string;
2787
+ /** Opt in to a footer action that clears the current selection. */
2788
+ clearLabel?: string;
2789
+ }
2790
+ type SelectMultipleValueProps<Value extends string = string> = SelectMultipleLabelProps<Value> | SelectMultipleIconProps<Value>;
2791
+ type SelectProps<Value extends string = string> = SelectBaseProps<Value> & SelectAccessibleName & (SelectSingleValueProps<Value> | SelectMultipleValueProps<Value>);
2792
+ declare function Select<Value extends string>(props: SelectProps<Value>): SafeHtml;
2793
+
2794
+ export { Select, type SelectChoice, type SelectFocusRingOwner, type SelectMultipleIconProps, type SelectMultipleLabelProps, type SelectMultipleValueProps, type SelectPresentation, type SelectProps, type SelectSelectedPresentation, type SelectSingleValueProps, type SelectSize, type SelectTriggerWidth };
2795
+ ```
2796
+
2797
+ ## `@kerfjs/ui/state-banner`
728
2798
 
729
- type StateBannerTone = 'neutral' | 'info' | 'success' | 'warning' | 'danger';
2799
+ ```ts
2800
+ import { SafeHtml } from 'kerfjs';
2801
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2802
+ import { S as SemanticTone } from './semantic-tone-CdW013KF.js';
2803
+
2804
+ /** @deprecated Use SemanticTone. */
2805
+ type StateBannerTone = SemanticTone;
2806
+ type StateBannerUrgency = 'status' | 'alert';
2807
+ type StateBannerCopyLayout = 'inline' | 'stacked';
2808
+ type StateBannerActionPlacement = 'trailing' | 'below';
730
2809
  interface StateBannerProps {
731
2810
  title: string;
732
2811
  detail?: string;
2812
+ /** Optional compact status or count shown beside the title. */
2813
+ badge?: string;
733
2814
  icon?: SafeHtml;
734
- action?: SafeHtml;
735
- tone?: StateBannerTone;
736
- urgency?: 'status' | 'alert';
2815
+ action?: KerfUiContent;
2816
+ tone?: SemanticTone;
2817
+ urgency?: StateBannerUrgency;
2818
+ /** Keep the detail beside the title, or give it its own line. */
2819
+ copyLayout?: StateBannerCopyLayout;
2820
+ /** Place the action beside the copy or on a separate trailing row. */
2821
+ actionPlacement?: StateBannerActionPlacement;
737
2822
  className?: string;
738
- /** Render the title and detail as unanimated loading skeletons, keeping the icon and tone. */
2823
+ /** Render the title, badge, and detail as unanimated loading skeletons, keeping the icon and tone. The detail line appears only when `detail` is set, as in the live banner. */
739
2824
  placeholder?: boolean;
2825
+ /** Native named-slot assignment when composed inside a web component. */
2826
+ slot?: string;
740
2827
  }
741
- declare function StateBanner({ title, detail, icon, action, tone, urgency, className, placeholder }: StateBannerProps): SafeHtml;
2828
+ declare function StateBanner({ title, detail, badge, icon, action, tone, urgency, copyLayout, actionPlacement, className, placeholder, slot, }: StateBannerProps): SafeHtml;
742
2829
 
743
- export { StateBanner, type StateBannerProps, type StateBannerTone };
2830
+ export { SemanticTone, StateBanner, type StateBannerActionPlacement, type StateBannerCopyLayout, type StateBannerProps, type StateBannerTone, type StateBannerUrgency };
744
2831
  ```
745
2832
 
746
2833
  ## `@kerfjs/ui/empty-state`
747
2834
 
748
2835
  ```ts
749
2836
  import { SafeHtml } from 'kerfjs';
2837
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
750
2838
 
751
2839
  interface EmptyStateProps {
752
2840
  title: string;
753
2841
  detail?: string;
754
2842
  icon?: SafeHtml;
755
- action?: SafeHtml;
2843
+ action?: KerfUiContent;
756
2844
  busy?: boolean;
757
2845
  className?: string;
2846
+ /** Native named-slot assignment when composed inside a web component. */
2847
+ slot?: string;
758
2848
  }
759
- declare function EmptyState({ title, detail, icon, action, busy, className }: EmptyStateProps): SafeHtml;
2849
+ declare function EmptyState({ title, detail, icon, action, busy, className, slot, }: EmptyStateProps): SafeHtml;
760
2850
 
761
2851
  export { EmptyState, type EmptyStateProps };
762
2852
  ```
@@ -765,34 +2855,51 @@ export { EmptyState, type EmptyStateProps };
765
2855
 
766
2856
  ```ts
767
2857
  import * as kerfjs from 'kerfjs';
2858
+ import { CssForegroundColor } from './css-values.js';
2859
+ import { LucideIconSize } from './lucide-icon.js';
2860
+ import 'lucide';
768
2861
 
2862
+ type LoadingSpinnerSize = LucideIconSize;
769
2863
  interface LoadingSpinnerProps {
770
2864
  className?: string;
2865
+ /** Foreground color; omit to inherit the surrounding text color. */
2866
+ color?: CssForegroundColor;
771
2867
  label?: string;
2868
+ /** Named icon scale or positive pixel size, converted to rem. Omit for 1em. */
2869
+ size?: LoadingSpinnerSize;
2870
+ /** Native named-slot assignment when composed inside a web component. */
2871
+ slot?: string;
772
2872
  }
773
2873
  /** Stable viewBox-centered progress ring based on svg-spinners' MIT-licensed 180-ring. */
774
- declare function LoadingSpinner({ className, label }: LoadingSpinnerProps): kerfjs.SafeHtml;
2874
+ declare function LoadingSpinner({ className, color, label, size, slot, }: LoadingSpinnerProps): kerfjs.SafeHtml;
775
2875
 
776
- export { LoadingSpinner, type LoadingSpinnerProps };
2876
+ export { LoadingSpinner, type LoadingSpinnerProps, type LoadingSpinnerSize };
777
2877
  ```
778
2878
 
779
2879
  ## `@kerfjs/ui/skeleton`
780
2880
 
781
2881
  ```ts
782
2882
  import * as kerfjs from 'kerfjs';
2883
+ import { CssSize, CssLength } from './css-values.js';
783
2884
 
784
2885
  interface SkeletonProps {
785
- /** Width as any CSS length (e.g. `remify(120px)`, `60%`). Defaults to filling its slot. */
786
- width?: string;
787
- /** Height as any CSS length. Defaults to a single text line. */
788
- height?: string;
789
- /** Corner radius override (a CSS length). Defaults to the small radius token. */
790
- radius?: string;
2886
+ /** Typed width or intrinsic sizing keyword. Defaults to filling its slot. */
2887
+ width?: CssSize;
2888
+ /** Typed height or intrinsic sizing keyword. Defaults to a single text line. */
2889
+ height?: CssSize;
2890
+ /** Typed corner-radius override. Defaults to the small radius token. */
2891
+ radius?: CssLength;
791
2892
  /** Render this many stacked lines (the last one shorter), for multi-line text. */
792
2893
  lines?: number;
2894
+ /** Lay the block out as `display: block` instead of the default
2895
+ * `inline-block`, so it takes no text line of its own: no baseline gap
2896
+ * below it, and it centers like an icon in a slot. Defaults to `false`. */
2897
+ block?: boolean;
793
2898
  /** Accessible label. Omit to keep the block decorative (`aria-hidden`). */
794
2899
  label?: string;
795
2900
  className?: string;
2901
+ /** Native named-slot assignment when composed inside a web component. */
2902
+ slot?: string;
796
2903
  }
797
2904
  /**
798
2905
  * A subtle, deliberately **unanimated** loading placeholder block. Use it for a
@@ -800,68 +2907,111 @@ interface SkeletonProps {
800
2907
  * `placeholder` prop. Decorative by default (`aria-hidden`); pass `label` to
801
2908
  * announce it. Sizes to its slot unless `width`/`height` are given.
802
2909
  */
803
- declare function Skeleton({ width, height, radius, lines, label, className }: SkeletonProps): kerfjs.SafeHtml;
2910
+ declare function Skeleton({ width, height, radius, lines, block, label, className, slot, }: SkeletonProps): kerfjs.SafeHtml;
804
2911
 
805
2912
  export { Skeleton, type SkeletonProps };
806
2913
  ```
807
2914
 
808
- ## `@kerfjs/ui/token-search-field`
2915
+ ## `@kerfjs/ui/sunken-panel`
809
2916
 
810
2917
  ```ts
811
- import { SafeHtml } from 'kerfjs';
812
-
813
- interface TokenSearchToken {
814
- value: string;
815
- label: string;
816
- offset?: number;
817
- accessibleLabel?: string;
818
- }
819
- interface TokenSearchFieldProps {
820
- id: string;
821
- label: string;
822
- query?: string;
823
- tokens?: readonly TokenSearchToken[];
824
- placeholder?: string;
825
- tokenPlaceholder?: string;
826
- disabled?: boolean;
827
- autofocus?: boolean;
828
- /** Allow an empty field to render as one iconic action. */
829
- collapsible?: boolean;
830
- /** Keep an empty collapsible field open while the application owns focus. */
831
- expanded?: boolean;
832
- expandAction?: string;
833
- expandLabel?: string;
834
- leading?: SafeHtml;
835
- trailing?: SafeHtml;
836
- editAction?: string;
837
- removeAction?: string;
838
- clearAction?: string;
839
- clearLabel?: string;
2918
+ import * as kerfjs from 'kerfjs';
2919
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
2920
+ import { CssFlexKeyword, CssFlex } from './css-values.js';
2921
+
2922
+ type SunkenPanelShape = 'rounded' | 'square';
2923
+ interface SunkenPanelProps {
2924
+ children?: KerfUiContent;
2925
+ /** Optional accessible landmark name for a distinct application region. */
2926
+ ariaLabel?: string;
2927
+ /** Corner shape: a rounded rectangle (default) or square corners. */
2928
+ shape?: SunkenPanelShape;
2929
+ /** Grow or shrink within a flex parent, using Grid's typed flex contract. */
2930
+ flex?: boolean | CssFlexKeyword | CssFlex;
2931
+ /** Fill a parent with a definite height; use flex inside a flex layout. */
2932
+ fill?: boolean;
2933
+ /** Opt into keyboard (`0`) or programmatic (`-1`) focus on the panel. */
2934
+ tabIndex?: 0 | -1;
2935
+ /** Keep the standard focus outline visible, such as for a drop target. */
2936
+ outlined?: boolean;
840
2937
  className?: string;
841
- editorAttributes?: Readonly<Record<`data-${string}`, string>>;
2938
+ /** Native named-slot assignment when composed inside a web component. */
2939
+ slot?: string;
842
2940
  }
843
- interface TokenSearchFieldValue {
844
- query: string;
845
- tokens: TokenSearchToken[];
846
- }
847
- declare function TokenSearchField({ id, label, query, tokens, placeholder, tokenPlaceholder, disabled, autofocus, collapsible, expanded, expandAction, expandLabel, leading, trailing, editAction, removeAction, clearAction, clearLabel, className, editorAttributes, }: TokenSearchFieldProps): SafeHtml;
848
- /** Read editable text and ordered token offsets from a rendered TokenSearchField editor. */
849
- declare function readTokenSearchField(editor: HTMLElement, knownTokens?: readonly TokenSearchToken[]): TokenSearchFieldValue;
850
- /** Focus an editor and place its caret at a text offset, skipping atomic token chips. */
851
- declare function placeTokenSearchCaret(editor: HTMLElement, offset?: number): void;
2941
+ /**
2942
+ * A lowered application surface with one compact inset and a vertical content
2943
+ * stack. The panel owns its background and padding; children own their own
2944
+ * borders and internal geometry.
2945
+ */
2946
+ declare function SunkenPanel({ children, ariaLabel, shape, flex, fill, tabIndex, outlined, className, slot, }: SunkenPanelProps): kerfjs.SafeHtml;
2947
+
2948
+ export { SunkenPanel, type SunkenPanelProps, type SunkenPanelShape };
2949
+ ```
2950
+
2951
+ ## `@kerfjs/ui/token-search-field`
852
2952
 
853
- export { TokenSearchField, type TokenSearchFieldProps, type TokenSearchFieldValue, type TokenSearchToken, placeTokenSearchCaret, readTokenSearchField };
2953
+ ```ts
2954
+ export { T as TokenSearchEditorAttributes, a as TokenSearchField, b as TokenSearchFieldProps, c as TokenSearchFieldValue, j as TokenSearchToken, k as TokenSearchTrailingAction, p as placeTokenSearchCaret, r as readTokenSearchField } from './token-search-model-DTcTXWMS.js';
2955
+ import 'kerfjs';
2956
+ import './semantic-content-BbzjvSu9.js';
854
2957
  ```
855
2958
 
856
2959
  ## `@kerfjs/ui/wire-token-search-fields`
857
2960
 
858
2961
  ```ts
859
2962
  import { Signal } from 'kerfjs';
2963
+ import { d as TokenSearchModel } from './token-search-model-DTcTXWMS.js';
2964
+ import './semantic-content-BbzjvSu9.js';
860
2965
 
861
2966
  interface TokenSearchSubmit {
862
2967
  id: string;
863
2968
  editor: HTMLElement;
864
2969
  }
2970
+ /** Reported to {@link WireTokenSearchFieldsOptions.onEdit} on every editor input. */
2971
+ interface TokenSearchEdit extends TokenSearchSubmit {
2972
+ /**
2973
+ * The `InputEvent` that mutated the editor — read `event.inputType` / `event.data`
2974
+ * to gate commit behavior (e.g. only parse a chip on whitespace-terminated input)
2975
+ * without keeping a separate `input` listener.
2976
+ */
2977
+ event: InputEvent;
2978
+ }
2979
+ /** Reported when adjacent-token keyboard deletion asks the app to drop a chip. */
2980
+ interface TokenSearchTokenRemoval {
2981
+ id: string;
2982
+ /** The `data-token-value` of the token the app should remove from its state. */
2983
+ value: string;
2984
+ editor: HTMLElement;
2985
+ /** `'backward'` = the token before the caret (Backspace); `'forward'` = after (Delete). */
2986
+ direction: 'backward' | 'forward';
2987
+ }
2988
+ /**
2989
+ * Opt-in keyboard behavior for the atomic token chips. Off unless `keyboard` is
2990
+ * set; each piece defaults on once opted in. The helper never mutates app state:
2991
+ * a removal is reported through {@link TokenSearchKeyboardOptions.onRemoveToken}
2992
+ * for the caller to apply, while caret movement past a chip is a pure ephemeral
2993
+ * mechanic the helper performs itself.
2994
+ */
2995
+ interface TokenSearchKeyboardBaseOptions {
2996
+ /**
2997
+ * From a collapsed caret with no selection, Backspace removes the token
2998
+ * immediately before it and Delete the token immediately after — reported via
2999
+ * `onRemoveToken` — instead of deleting a character. Default: true.
3000
+ */
3001
+ /**
3002
+ * ArrowRight moves the caret past a trailing atomic token so text typed next
3003
+ * lands after the chip. Default: true.
3004
+ */
3005
+ moveCaretPastToken?: boolean;
3006
+ }
3007
+ type TokenSearchKeyboardOptions = TokenSearchKeyboardBaseOptions & ({
3008
+ removeAdjacentToken?: true;
3009
+ /** Apply the reported removal to your controlled state, then re-render. */
3010
+ onRemoveToken: (removal: TokenSearchTokenRemoval) => void;
3011
+ } | {
3012
+ removeAdjacentToken: false;
3013
+ onRemoveToken?: never;
3014
+ });
865
3015
  /**
866
3016
  * Managed collapsible behavior for the iconic TokenSearchField. Every piece is on
867
3017
  * by default; disable a specific one to own it in the app. Provide `signals` to
@@ -874,15 +3024,30 @@ interface TokenSearchCollapsibleOptions {
874
3024
  collapseOnEmptyBlur?: boolean;
875
3025
  /** Collapse an empty field on Escape and restore focus to its trigger. Default: true. */
876
3026
  collapseOnEscape?: boolean;
877
- /** Focus the editor on expand and the trigger on Escape-collapse. Default: true. */
3027
+ /** Focus the editor on expand/controlled clear and the trigger on Escape-collapse. Default: true. */
878
3028
  manageFocus?: boolean;
3029
+ /**
3030
+ * Keep an empty field expanded when focus moves to a caller-owned surface
3031
+ * rendered outside the field — a suggestions dropdown, date picker, or help
3032
+ * popover shown beside it. Return true for any focus target that must NOT
3033
+ * trigger collapse-on-empty-blur. An element carrying `data-token-search-keep-open`
3034
+ * (or any node inside one) is always exempt, so this predicate is only needed
3035
+ * for surfaces you cannot mark declaratively.
3036
+ */
3037
+ keepOpenOn?: (target: Node | null) => boolean;
879
3038
  /** App-owned `expanded` signals keyed by field id; adopted instead of helper-created. */
880
3039
  signals?: Readonly<Record<string, Signal<boolean>>>;
881
3040
  }
882
3041
  interface WireTokenSearchFieldsOptions {
3042
+ /** Optional automatic grammar/suggestion models, keyed by TokenSearchField id. */
3043
+ models?: Readonly<Record<string, TokenSearchModel>>;
883
3044
  onSubmit?: (submission: TokenSearchSubmit) => void;
3045
+ /** Fired on every editor `input`, after the browser mutates it, so a caller can drop its own `input` listener. */
3046
+ onEdit?: (edit: TokenSearchEdit) => void;
884
3047
  /** Managed collapsible transient behavior. `true`/omitted = on with defaults; `false` = fully off. */
885
3048
  collapsible?: boolean | TokenSearchCollapsibleOptions;
3049
+ /** Opt-in atomic-chip keyboard behavior (off by default). */
3050
+ keyboard?: false | TokenSearchKeyboardOptions;
886
3051
  }
887
3052
  /**
888
3053
  * The value returned from {@link wireTokenSearchFields}: call it (or `dispose()`) to
@@ -906,9 +3071,9 @@ interface TokenSearchFieldsHandle {
906
3071
  * expand/collapse/focus. Returns a {@link TokenSearchFieldsHandle} — a disposer that also
907
3072
  * exposes the managed `expanded` state per field id.
908
3073
  */
909
- declare function wireTokenSearchFields(root: HTMLElement, { onSubmit, collapsible }?: WireTokenSearchFieldsOptions): TokenSearchFieldsHandle;
3074
+ declare function wireTokenSearchFields(root: HTMLElement, { models, onSubmit, onEdit, collapsible, keyboard, }?: WireTokenSearchFieldsOptions): TokenSearchFieldsHandle;
910
3075
 
911
- export { type TokenSearchCollapsibleOptions, type TokenSearchFieldsHandle, type TokenSearchSubmit, type WireTokenSearchFieldsOptions, wireTokenSearchFields };
3076
+ export { type TokenSearchCollapsibleOptions, type TokenSearchEdit, type TokenSearchFieldsHandle, type TokenSearchKeyboardOptions, type TokenSearchSubmit, type TokenSearchTokenRemoval, type WireTokenSearchFieldsOptions, wireTokenSearchFields };
912
3077
  ```
913
3078
 
914
3079
  ## `kerfjs/actions`
@@ -987,3 +3152,409 @@ declare function delegateActions<E extends Element = Element>(root: HTMLElement,
987
3152
 
988
3153
  export { type ActionHandler, type DelegateActionsOptions, action, delegateActions };
989
3154
  ```
3155
+
3156
+ ## `@kerfjs/ui/badge`
3157
+
3158
+ ```ts
3159
+ import { SafeHtml } from 'kerfjs';
3160
+ import { S as SemanticTone } from './semantic-tone-CdW013KF.js';
3161
+
3162
+ /** @deprecated Use SemanticTone. */
3163
+ type BadgeTone = SemanticTone;
3164
+ type BadgeAppearance = 'quiet' | 'solid' | 'outline';
3165
+ type BadgeShape = 'pill' | 'rounded';
3166
+ /** Size of a text badge. A text-free dot is the separate `size: 'dot'` form. */
3167
+ type BadgeSize = 'compact' | 'default';
3168
+ interface BadgeCommonProps {
3169
+ tone?: SemanticTone;
3170
+ className?: string;
3171
+ /** Native named-slot assignment when composed inside a web component. */
3172
+ slot?: string;
3173
+ }
3174
+ /** A badge that shows a short status, count, or category as visible text. */
3175
+ interface BadgeTextProps extends BadgeCommonProps {
3176
+ children: SafeHtml | string | number;
3177
+ appearance?: BadgeAppearance;
3178
+ shape?: BadgeShape;
3179
+ size?: BadgeSize;
3180
+ /** Optional accessible name when the visible content is abbreviated. */
3181
+ label?: string;
3182
+ /** Hide a repeated visual badge from assistive technology. */
3183
+ ariaHidden?: boolean;
3184
+ }
3185
+ /** A labeled dot, announced as an image with its own accessible name. */
3186
+ interface BadgeDotLabeled {
3187
+ /** Accessible name for the dot, for example `"New activity"`. */
3188
+ label: string;
3189
+ ariaHidden?: false;
3190
+ }
3191
+ /** A decorative dot whose meaning the owning component already announces. */
3192
+ interface BadgeDotDecorative {
3193
+ label?: never;
3194
+ ariaHidden: true;
3195
+ }
3196
+ /**
3197
+ * A text-free status dot (the iOS "new content" dot): a small solid circle in
3198
+ * the badge's tone. It has no visible text, so it must either carry its own
3199
+ * accessible `label` (exposed as an image) or be `ariaHidden` because the
3200
+ * surrounding component already folds its meaning into an accessible name.
3201
+ */
3202
+ type BadgeDotProps = BadgeCommonProps & {
3203
+ size: 'dot';
3204
+ children?: never;
3205
+ appearance?: never;
3206
+ shape?: never;
3207
+ } & (BadgeDotLabeled | BadgeDotDecorative);
3208
+ type BadgeProps = BadgeTextProps | BadgeDotProps;
3209
+ /** Compact, non-interactive metadata whose tone, emphasis, and shape are configured by props. */
3210
+ declare function Badge(props: BadgeProps): SafeHtml;
3211
+
3212
+ export { Badge, type BadgeAppearance, type BadgeDotProps, type BadgeProps, type BadgeShape, type BadgeSize, type BadgeTextProps, type BadgeTone, SemanticTone };
3213
+ ```
3214
+
3215
+ ## `@kerfjs/ui/chip`
3216
+
3217
+ ```ts
3218
+ import { SafeHtml } from 'kerfjs';
3219
+ import { S as SemanticTone } from './semantic-tone-CdW013KF.js';
3220
+ import { BadgeAppearance, BadgeShape, BadgeSize } from './badge.js';
3221
+
3222
+ interface ChipCommonProps {
3223
+ /** Decorative leading icon, normally an unsized LucideIcon. */
3224
+ icon?: SafeHtml;
3225
+ tone?: SemanticTone;
3226
+ appearance?: BadgeAppearance;
3227
+ shape?: BadgeShape;
3228
+ size?: BadgeSize;
3229
+ disabled?: boolean;
3230
+ /** Record identifier available to an application delegated action handler. */
3231
+ itemId?: string;
3232
+ className?: string;
3233
+ /** Native named-slot assignment when composed inside a web component. */
3234
+ slot?: string;
3235
+ }
3236
+ /** A removable chip needs both a delegated action and a specific accessible name. */
3237
+ type ChipProps = ChipCommonProps & ({
3238
+ children: SafeHtml | string | number;
3239
+ truncate?: false;
3240
+ } | {
3241
+ children: string;
3242
+ truncate: true;
3243
+ }) & ({
3244
+ removeAction: string;
3245
+ removeLabel: string;
3246
+ } | {
3247
+ removeAction?: never;
3248
+ removeLabel?: never;
3249
+ });
3250
+ /** A short label with an optional native remove button. The application owns removal. */
3251
+ declare function Chip({ children, icon, truncate, tone, appearance, shape, size, disabled, itemId, className, slot, ...remove }: ChipProps): SafeHtml;
3252
+
3253
+ export { Chip, type ChipProps };
3254
+ ```
3255
+
3256
+ ## `@kerfjs/ui/lucide-icon`
3257
+
3258
+ ```ts
3259
+ import * as kerfjs from 'kerfjs';
3260
+ import { IconNode } from 'lucide';
3261
+ import { CssForegroundColor } from './css-values.js';
3262
+
3263
+ type LucideNode = IconNode;
3264
+ type LucideIconSize = 'xs' | 's' | 'm' | 'l' | 'xl' | number;
3265
+ interface LucideIconProps {
3266
+ icon: LucideNode;
3267
+ name: string;
3268
+ /** Outline by default; solid fills compatible glyphs with the current text color. */
3269
+ appearance?: 'outline' | 'solid';
3270
+ className?: string;
3271
+ /** Foreground color; omit to inherit the surrounding text color. */
3272
+ color?: CssForegroundColor;
3273
+ /** Flow with surrounding text instead of occupying a block. */
3274
+ inline?: boolean;
3275
+ label?: string;
3276
+ /** Named icon scale or positive pixel size, converted to rem. Omit for 1em. */
3277
+ size?: LucideIconSize;
3278
+ /** Native named-slot assignment when composed inside a web component. */
3279
+ slot?: string;
3280
+ }
3281
+ /** Render a Lucide-compatible icon node without copying icon SVG strings. */
3282
+ declare function LucideIcon({ icon, name, appearance, className, color, inline, label, size, slot, }: LucideIconProps): kerfjs.SafeHtml;
3283
+
3284
+ export { LucideIcon, type LucideIconProps, type LucideIconSize, type LucideNode };
3285
+ ```
3286
+
3287
+ ## `@kerfjs/ui/wire-toolbar-visibility`
3288
+
3289
+ ```ts
3290
+ type Root = HTMLElement | Document;
3291
+ /**
3292
+ * Wire ToolbarText and ToolbarControlGroup width thresholds below root.
3293
+ * Below is strict: hideBelow hides at width < threshold; showBelow hides at
3294
+ * width >= threshold. Percentages use the closest Toolbar's content box;
3295
+ * em and custom properties use the item's own inherited context. Invalid,
3296
+ * negative, unresolved, or contradictory thresholds leave the item visible.
3297
+ * This helper changes only a component-owned visibility marker. Existing
3298
+ * CSS visibility policies still apply. Dispose with the owning application.
3299
+ */
3300
+ declare function wireToolbarVisibility(root: Root): () => void;
3301
+
3302
+ export { wireToolbarVisibility };
3303
+ ```
3304
+
3305
+ ## `@kerfjs/ui/surface-scaffold`
3306
+
3307
+ ```ts
3308
+ import * as kerfjs from 'kerfjs';
3309
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
3310
+ import { CssLength } from './css-values.js';
3311
+
3312
+ type DialogSurfaceSize = 'small' | 'medium' | 'large';
3313
+ type DialogSurfacePresentation = 'modal' | 'side-sheet' | 'fullscreen';
3314
+ type SurfaceInset = 'none' | 'compact' | 'comfortable';
3315
+ type DialogSurfaceMaxHeight = CssLength | 'viewport';
3316
+ interface DialogSurfaceProps {
3317
+ children: KerfUiContent;
3318
+ size?: DialogSurfaceSize;
3319
+ presentation?: DialogSurfacePresentation;
3320
+ /** Modal preferred width. Takes precedence over size, within the viewport cap. */
3321
+ preferredWidth?: CssLength;
3322
+ bodyInset?: SurfaceInset;
3323
+ footerInset?: SurfaceInset;
3324
+ /** Modal edge clearance. Omit to retain Web Awesome's default viewport cap. */
3325
+ viewportGutter?: CssLength;
3326
+ /** Modal height cap, bounded by the dynamic viewport minus both gutters. */
3327
+ maxHeight?: DialogSurfaceMaxHeight;
3328
+ className?: string;
3329
+ /** Native named-slot assignment when composed inside a web component. */
3330
+ slot?: string;
3331
+ }
3332
+ /** Configure recurring Web Awesome dialog geometry without consumer ::part() CSS. */
3333
+ declare function DialogSurface({ children, size, presentation, preferredWidth, bodyInset, footerInset, viewportGutter, maxHeight, className, slot, }: DialogSurfaceProps): kerfjs.SafeHtml;
3334
+ type PopupSurfaceInset = 'standard' | 'compact' | 'list-zero';
3335
+ interface PopupSurfaceProps {
3336
+ children: KerfUiContent;
3337
+ inset?: PopupSurfaceInset;
3338
+ className?: string;
3339
+ /** Native named-slot assignment when composed inside a web component. */
3340
+ slot?: string;
3341
+ }
3342
+ /** Configure recurring Web Awesome dropdown-menu geometry without consumer ::part() CSS. */
3343
+ declare function PopupSurface({ children, inset, className, slot, }: PopupSurfaceProps): kerfjs.SafeHtml;
3344
+
3345
+ export { DialogSurface, type DialogSurfaceMaxHeight, type DialogSurfacePresentation, type DialogSurfaceProps, type DialogSurfaceSize, PopupSurface, type PopupSurfaceInset, type PopupSurfaceProps, type SurfaceInset };
3346
+ ```
3347
+
3348
+ ## `@kerfjs/ui/text`
3349
+
3350
+ ```ts
3351
+ import * as kerfjs from 'kerfjs';
3352
+ import { KerfBaseAttrs } from 'kerfjs/jsx-runtime';
3353
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
3354
+ import { S as Sides } from './sides-BPSWde0A.js';
3355
+ import { CssForegroundColor } from './css-values.js';
3356
+
3357
+ type FieldLabelProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className'> & {
3358
+ children: string;
3359
+ class?: string;
3360
+ className?: string;
3361
+ };
3362
+ /** Visible field heading for a read-only preview; use its id with aria-labelledby on the preview group. */
3363
+ declare function FieldLabel({ children, class: classValue, className, ...attributes }: FieldLabelProps): kerfjs.SafeHtml;
3364
+
3365
+ type TextVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
3366
+ type TextTone = 'default' | 'quiet' | 'danger';
3367
+ type TextSize = 'compact' | 'default' | 'large' | 'xlarge';
3368
+ type TextFont = 'default' | 'monospace';
3369
+ type TextBorder = 'transparent' | 'none';
3370
+ type TextLineHeight = 'default' | 'tight';
3371
+ type TextWrap = 'normal' | 'anywhere' | 'nowrap' | 'truncate';
3372
+ type TextContent = KerfUiContent | string | number | readonly TextContent[];
3373
+ type TextCommonProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className'> & {
3374
+ /** Native heading, paragraph, or inline span element to render. Defaults to `p`. */
3375
+ variant?: TextVariant;
3376
+ /** Semantic foreground treatment. Defaults to the inherited foreground. */
3377
+ tone?: TextTone;
3378
+ /** Foreground color; overrides tone when supplied, or inherits when omitted. */
3379
+ color?: CssForegroundColor;
3380
+ /** Text sizing independent of the native semantic element. */
3381
+ size?: TextSize;
3382
+ /** Font family independent of the native semantic element. */
3383
+ font?: TextFont;
3384
+ /** Transparent alignment border or no border when embedded in owner chrome. */
3385
+ border?: TextBorder;
3386
+ /** Add the shared control gutter outside selected physical edges. */
3387
+ controlMargins?: Sides;
3388
+ /** Remove the block variant's item padding and border in compact content. */
3389
+ flush?: boolean;
3390
+ /** Use compact leading for short dialog or metadata copy. */
3391
+ lineHeight?: TextLineHeight;
3392
+ children: TextContent;
3393
+ class?: string;
3394
+ className?: string;
3395
+ };
3396
+ type TextProps = TextCommonProps & ({
3397
+ /** Wrap normally or break long unbroken strings. Defaults to normal. */
3398
+ wrap?: 'normal' | 'anywhere';
3399
+ /** Cap wrapped text to this positive number of lines. */
3400
+ maxLines?: number;
3401
+ } | {
3402
+ /** Keep one line, with or without an ellipsis. */
3403
+ wrap: 'nowrap' | 'truncate';
3404
+ maxLines?: never;
3405
+ });
3406
+ /**
3407
+ * Semantic heading, paragraph, or inline text. Block variants use the standard
3408
+ * content-item padding; `span` adds no box geometry.
3409
+ * All ordinary native heading/paragraph attributes pass through to the element.
3410
+ */
3411
+ declare function Text({ variant: Variant, tone, color, size, font, border, flush, controlMargins, lineHeight, wrap, maxLines, children, class: classValue, className, style, ...attributes }: TextProps): kerfjs.SafeHtml;
3412
+
3413
+ export { FieldLabel, type FieldLabelProps, Sides, Text, type TextBorder, type TextContent, type TextFont, type TextLineHeight, type TextProps, type TextSize, type TextTone, type TextVariant, type TextWrap };
3414
+ ```
3415
+
3416
+ ## `@kerfjs/ui/row`
3417
+
3418
+ ```ts
3419
+ import * as kerfjs from 'kerfjs';
3420
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
3421
+ import { H as HorizontalAlignment, V as VerticalAlignment } from './flex-alignment-4ms8ZbV8.js';
3422
+ import { S as Sides } from './sides-BPSWde0A.js';
3423
+ import { UiSpaceName, CssLength, CssFlexKeyword, CssFlex } from './css-values.js';
3424
+
3425
+ type RowRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
3426
+ 'data-component'?: never;
3427
+ 'data-h-align'?: never;
3428
+ 'data-v-align'?: never;
3429
+ 'data-flex'?: never;
3430
+ 'data-fill'?: never;
3431
+ 'data-wrap'?: never;
3432
+ 'data-text-insets'?: never;
3433
+ 'data-control-insets'?: never;
3434
+ }>;
3435
+ interface RowProps {
3436
+ children?: KerfUiContent;
3437
+ /** Horizontal distribution. Defaults to left. */
3438
+ hAlign?: HorizontalAlignment;
3439
+ /** Vertical alignment and wrapped-line distribution. Defaults to full. */
3440
+ vAlign?: VerticalAlignment;
3441
+ /** A named UI spacing token or typed CSS length. Defaults to xs. */
3442
+ gap?: UiSpaceName | CssLength;
3443
+ /** Allow this row to grow/shrink, use a keyword, or supply a typed CSS flex shorthand. */
3444
+ flex?: boolean | CssFlexKeyword | CssFlex;
3445
+ /**
3446
+ * Fill the height of a parent with a definite height, such as an app root or
3447
+ * a fixed-height frame, when this row is that parent's layout root. Inside a
3448
+ * flex layout use `flex` instead. Defaults to false.
3449
+ */
3450
+ fill?: boolean;
3451
+ /** Allow children to wrap onto additional lines. */
3452
+ wrap?: boolean;
3453
+ /** Physical sides that receive the standard 17px text inset. */
3454
+ textInsets?: Sides;
3455
+ /** Physical sides that receive the standard 8px control inset. Text insets win on overlap. */
3456
+ controlInsets?: Sides;
3457
+ className?: string;
3458
+ /** Safe `data-*` metadata; Row-owned structural attributes remain protected. */
3459
+ rootAttributes?: RowRootAttributes;
3460
+ /** Native named-slot assignment when composed inside a web component. */
3461
+ slot?: string;
3462
+ }
3463
+ /** A horizontal flex row with explicit physical-axis alignment and spacing. */
3464
+ declare function Row({ children, hAlign, vAlign, gap, flex, fill, wrap, textInsets, controlInsets, className, rootAttributes, slot, }: RowProps): kerfjs.SafeHtml;
3465
+
3466
+ export { CssFlex, CssFlexKeyword, CssLength, HorizontalAlignment, Row, type RowProps, Sides, UiSpaceName, VerticalAlignment };
3467
+ ```
3468
+
3469
+ ## `@kerfjs/ui/grid`
3470
+
3471
+ ```ts
3472
+ import * as kerfjs from 'kerfjs';
3473
+ import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
3474
+ import { S as Sides } from './sides-BPSWde0A.js';
3475
+ import { UiSpaceName, CssLength, CssFlexKeyword, CssFlex } from './css-values.js';
3476
+
3477
+ type GridRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
3478
+ 'data-component'?: never;
3479
+ 'data-columns'?: never;
3480
+ 'data-min-column-width'?: never;
3481
+ 'data-auto-fill'?: never;
3482
+ 'data-flex'?: never;
3483
+ 'data-fill'?: never;
3484
+ 'data-text-insets'?: never;
3485
+ 'data-control-insets'?: never;
3486
+ }>;
3487
+ interface GridCommonProps {
3488
+ children?: KerfUiContent;
3489
+ /** Make this a labeled multi-select grid for `ContentItem selectionMode="multiple"` tiles. */
3490
+ selectionMode?: 'multiple';
3491
+ /** Accessible name for the multi-select grid. */
3492
+ ariaLabel?: string;
3493
+ /** A named UI spacing token or typed CSS length. Defaults to xs. */
3494
+ gap?: UiSpaceName | CssLength;
3495
+ /** Allow this grid to grow/shrink, use a keyword, or supply a typed CSS flex shorthand. */
3496
+ flex?: boolean | CssFlexKeyword | CssFlex;
3497
+ /**
3498
+ * Fill the height of a parent with a definite height, such as an app root or
3499
+ * a fixed-height frame, when this grid is that parent's layout root. Inside a
3500
+ * flex layout use `flex` instead. Defaults to false.
3501
+ */
3502
+ fill?: boolean;
3503
+ /** Physical sides that receive the standard 17px text inset. */
3504
+ textInsets?: Sides;
3505
+ /** Physical sides that receive the standard 8px control inset. Text insets win on overlap. */
3506
+ controlInsets?: Sides;
3507
+ className?: string;
3508
+ /** Safe `data-*` metadata; Grid-owned structural attributes remain protected. */
3509
+ rootAttributes?: GridRootAttributes;
3510
+ /** Native named-slot assignment when composed inside a web component. */
3511
+ slot?: string;
3512
+ }
3513
+ type GridProps = GridCommonProps & ({
3514
+ /** Number of equal-width columns. Must be a positive safe integer. */
3515
+ columns: number;
3516
+ minColumnWidth?: never;
3517
+ autoFill?: never;
3518
+ } | {
3519
+ columns?: never;
3520
+ /** Fit equal columns of at least this width; collapse as the container narrows. */
3521
+ minColumnWidth: CssLength;
3522
+ /** Keep empty tracks instead of stretching a sparse row. Defaults to false. */
3523
+ autoFill?: boolean;
3524
+ });
3525
+ /** Render equal tracks with a fixed count or a responsive minimum width. */
3526
+ declare function Grid({ children, selectionMode, ariaLabel, columns, minColumnWidth, autoFill, gap, flex, fill, textInsets, controlInsets, className, rootAttributes, slot, }: GridProps): kerfjs.SafeHtml;
3527
+
3528
+ export { CssFlex, CssFlexKeyword, CssLength, Grid, type GridProps, Sides, UiSpaceName };
3529
+ ```
3530
+
3531
+ ## `@kerfjs/ui/spacer`
3532
+
3533
+ ```ts
3534
+ import * as kerfjs from 'kerfjs';
3535
+ import { UiSpaceName, CssLength } from './css-values.js';
3536
+
3537
+ interface SpacerProps {
3538
+ /** Grow and shrink to fill the available space along a parent's flex axis. */
3539
+ flex?: boolean;
3540
+ /** A named UI spacing token or typed physical width. */
3541
+ width?: UiSpaceName | CssLength;
3542
+ /** A named UI spacing token or typed physical height. */
3543
+ height?: UiSpaceName | CssLength;
3544
+ className?: string;
3545
+ /** Native named-slot assignment when composed inside a web component. */
3546
+ slot?: string;
3547
+ }
3548
+ /** A decorative fixed-size or flexible gap for Row, List, and other flex layouts. */
3549
+ declare function Spacer({ flex, width, height, className, slot, }: SpacerProps): kerfjs.SafeHtml;
3550
+
3551
+ export { CssLength, Spacer, type SpacerProps, UiSpaceName };
3552
+ ```
3553
+
3554
+ ## `@kerfjs/ui/token-search-model`
3555
+
3556
+ ```ts
3557
+ export { d as TokenSearchModel, e as TokenSearchModelOptions, f as TokenSearchResolvedToken, g as TokenSearchRule, h as TokenSearchState, i as TokenSearchSuggestion, l as createTokenSearchModel } from './token-search-model-DTcTXWMS.js';
3558
+ import 'kerfjs';
3559
+ import './semantic-content-BbzjvSu9.js';
3560
+ ```