@kerfjs/ui 5.0.0-beta.125 → 5.0.0-beta.127

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 (306) hide show
  1. package/README.md +5 -0
  2. package/ai/application-ui-diagnostic-ids-v1.json +1 -0
  3. package/ai/component-catalog.json +77 -6
  4. package/ai/component-catalog.schema.json +14 -1
  5. package/ai/component-composition.json +27 -6
  6. package/ai/component-props.json +265 -40
  7. package/ai/components/combobox.md +1 -1
  8. package/ai/components/surface-scaffold.md +19 -5
  9. package/ai/components/tab-bar.md +2 -0
  10. package/ai/components/toolbar.md +1 -0
  11. package/ai/public-api-signatures-v1.md +251 -298
  12. package/ai/skill.md +10 -4
  13. package/ai/view-document.schema.json +55 -2
  14. package/ai/webawesome-jsx-signatures-v1.md +1 -1
  15. package/analyzer/cli.mjs +60 -24
  16. package/analyzer/index.mjs +331 -58
  17. package/catalog-projection-cli.mjs +86 -50
  18. package/dist/anchored-surface.js +2 -1
  19. package/dist/browser/editor.js +12 -7
  20. package/dist/catalog-resources.d.ts +1 -1
  21. package/dist/catalog.d.ts +1 -1
  22. package/dist/catalog.js +6 -6
  23. package/dist/{chunk-VX3YF2UD.js → chunk-3K5V3ZSD.js} +3 -3
  24. package/dist/{chunk-VX3YF2UD.js.map → chunk-3K5V3ZSD.js.map} +1 -1
  25. package/dist/{chunk-NHQOX7T4.js → chunk-3ZKUXWAV.js} +4 -4
  26. package/dist/chunk-3ZKUXWAV.js.map +1 -0
  27. package/dist/{chunk-ADMWT7FX.js → chunk-3ZWYGGEC.js} +136 -8
  28. package/dist/chunk-3ZWYGGEC.js.map +1 -0
  29. package/dist/{chunk-KLR3DCHH.js → chunk-4L5ZIKDZ.js} +1 -1
  30. package/dist/chunk-4L5ZIKDZ.js.map +1 -0
  31. package/dist/{chunk-2E7S5C4D.js → chunk-4UWLHKNU.js} +5 -5
  32. package/dist/chunk-4UWLHKNU.js.map +1 -0
  33. package/dist/{chunk-EXGDKG7B.js → chunk-5A2DN3LR.js} +5 -5
  34. package/dist/chunk-5A2DN3LR.js.map +1 -0
  35. package/dist/{chunk-DJ65XFVN.js → chunk-63TJH2RF.js} +4 -4
  36. package/dist/chunk-63TJH2RF.js.map +1 -0
  37. package/dist/{chunk-Q2CLQ3IJ.js → chunk-6PHG2DMG.js} +1 -1
  38. package/dist/chunk-6PHG2DMG.js.map +1 -0
  39. package/dist/{chunk-SPI6VMIY.js → chunk-6T7AX365.js} +4 -4
  40. package/dist/chunk-6T7AX365.js.map +1 -0
  41. package/dist/{chunk-GVII4JSD.js → chunk-6V6UHPJD.js} +4 -4
  42. package/dist/chunk-6V6UHPJD.js.map +1 -0
  43. package/dist/{chunk-NR3ZO4LK.js → chunk-7U65KLDL.js} +1 -1
  44. package/dist/chunk-7U65KLDL.js.map +1 -0
  45. package/dist/chunk-BMOZSNDU.js +133 -0
  46. package/dist/chunk-BMOZSNDU.js.map +1 -0
  47. package/dist/{chunk-2LM3PYHA.js → chunk-C2TY5DJC.js} +11 -8
  48. package/dist/chunk-C2TY5DJC.js.map +1 -0
  49. package/dist/{chunk-3WYREXW4.js → chunk-COMEWURO.js} +8 -6
  50. package/dist/chunk-COMEWURO.js.map +1 -0
  51. package/dist/{chunk-VPDSPD76.js → chunk-DB64I3DB.js} +4 -3
  52. package/dist/chunk-DB64I3DB.js.map +1 -0
  53. package/dist/{chunk-SBCXWGNP.js → chunk-DBCDYBZP.js} +2 -2
  54. package/dist/{chunk-SBCXWGNP.js.map → chunk-DBCDYBZP.js.map} +1 -1
  55. package/dist/{chunk-CNM6ZWP2.js → chunk-DJWBXEF4.js} +4 -2
  56. package/dist/chunk-DJWBXEF4.js.map +1 -0
  57. package/dist/{chunk-SVUJIVMR.js → chunk-E2MTHHLS.js} +3 -3
  58. package/dist/{chunk-SVUJIVMR.js.map → chunk-E2MTHHLS.js.map} +1 -1
  59. package/dist/{chunk-JG4ONAOI.js → chunk-EI55KWHP.js} +2 -2
  60. package/dist/chunk-EI55KWHP.js.map +1 -0
  61. package/dist/{chunk-MVKHSAKE.js → chunk-GE2BQXB3.js} +41 -4
  62. package/dist/chunk-GE2BQXB3.js.map +1 -0
  63. package/dist/chunk-GHV36C6I.js +94 -0
  64. package/dist/chunk-GHV36C6I.js.map +1 -0
  65. package/dist/{chunk-BCO673YW.js → chunk-GQUDCWOD.js} +10 -4
  66. package/dist/chunk-GQUDCWOD.js.map +1 -0
  67. package/dist/chunk-HD7ZLISK.js +808 -0
  68. package/dist/chunk-HD7ZLISK.js.map +1 -0
  69. package/dist/{chunk-KELWWCMX.js → chunk-I2K4OQKB.js} +4 -4
  70. package/dist/chunk-I2K4OQKB.js.map +1 -0
  71. package/dist/chunk-IFDTSVE6.js +9 -0
  72. package/dist/chunk-IFDTSVE6.js.map +1 -0
  73. package/dist/{chunk-TPLVC5BE.js → chunk-IR32NI2O.js} +336 -247
  74. package/dist/chunk-IR32NI2O.js.map +1 -0
  75. package/dist/{chunk-ZKKO4MHC.js → chunk-JYKP7TBZ.js} +4 -2
  76. package/dist/chunk-JYKP7TBZ.js.map +1 -0
  77. package/dist/{chunk-6OT7FOSA.js → chunk-K3C35KGR.js} +4 -4
  78. package/dist/chunk-K3C35KGR.js.map +1 -0
  79. package/dist/{chunk-4RECPEHI.js → chunk-KBS3GP6S.js} +4 -3
  80. package/dist/chunk-KBS3GP6S.js.map +1 -0
  81. package/dist/{chunk-YHRJNKD5.js → chunk-KS7EXW4P.js} +6 -4
  82. package/dist/chunk-KS7EXW4P.js.map +1 -0
  83. package/dist/{chunk-V6N3YLTM.js → chunk-LTOTL5AS.js} +3 -3
  84. package/dist/chunk-LTOTL5AS.js.map +1 -0
  85. package/dist/chunk-M64TAGZY.js +590 -0
  86. package/dist/chunk-M64TAGZY.js.map +1 -0
  87. package/dist/{chunk-JZZVWTUB.js → chunk-MMOQR426.js} +2 -2
  88. package/dist/chunk-MMOQR426.js.map +1 -0
  89. package/dist/{chunk-SJBMKA4X.js → chunk-OHT2AXER.js} +11 -10
  90. package/dist/chunk-OHT2AXER.js.map +1 -0
  91. package/dist/{chunk-TTFW6E6C.js → chunk-OZKBIPXU.js} +2 -2
  92. package/dist/chunk-OZKBIPXU.js.map +1 -0
  93. package/dist/{chunk-Q2SLOMN6.js → chunk-RHMY45DK.js} +4 -4
  94. package/dist/chunk-RHMY45DK.js.map +1 -0
  95. package/dist/{chunk-BZXA5SSA.js → chunk-S7QB5KMM.js} +2 -2
  96. package/dist/{chunk-BZXA5SSA.js.map → chunk-S7QB5KMM.js.map} +1 -1
  97. package/dist/{chunk-HDXUHLTQ.js → chunk-SHECA2N4.js} +8 -2
  98. package/dist/chunk-SHECA2N4.js.map +1 -0
  99. package/dist/{chunk-R6FIXYAE.js → chunk-SJEPM5ZU.js} +2 -2
  100. package/dist/{chunk-R6FIXYAE.js.map → chunk-SJEPM5ZU.js.map} +1 -1
  101. package/dist/{chunk-FJMABKKV.js → chunk-UQ4FRQ6M.js} +35 -17
  102. package/dist/chunk-UQ4FRQ6M.js.map +1 -0
  103. package/dist/{chunk-S4ZGTDSG.js → chunk-UU37OR3D.js} +2 -2
  104. package/dist/chunk-UU37OR3D.js.map +1 -0
  105. package/dist/{chunk-SWXWLSUD.js → chunk-WEQNPYVA.js} +1 -1
  106. package/dist/{chunk-SWXWLSUD.js.map → chunk-WEQNPYVA.js.map} +1 -1
  107. package/dist/{chunk-5SFHBYEY.js → chunk-WUVHP3UC.js} +97 -24
  108. package/dist/chunk-WUVHP3UC.js.map +1 -0
  109. package/dist/{chunk-3S3WXAZ5.js → chunk-X43QQWVC.js} +3 -2
  110. package/dist/chunk-X43QQWVC.js.map +1 -0
  111. package/dist/{chunk-Z3T24FX3.js → chunk-YE6KCAIN.js} +3 -2
  112. package/dist/chunk-YE6KCAIN.js.map +1 -0
  113. package/dist/{chunk-KQZIC5CA.js → chunk-ZC4KSRAF.js} +7 -7
  114. package/dist/chunk-ZC4KSRAF.js.map +1 -0
  115. package/dist/collapsible-panel.d.ts +2 -2
  116. package/dist/collapsible-panel.js +2 -2
  117. package/dist/collapsible-panel.js.map +1 -1
  118. package/dist/column-explorer.d.ts +3 -3
  119. package/dist/column-explorer.js +16 -138
  120. package/dist/column-explorer.js.map +1 -1
  121. package/dist/dialog-surface-controller-BeKZ3e8Z.d.ts +251 -0
  122. package/dist/editor-frame.d.ts +1 -1
  123. package/dist/editor-frame.js +1 -1
  124. package/dist/editor.d.ts +38 -20
  125. package/dist/editor.js +11651 -7052
  126. package/dist/editor.js.map +1 -1
  127. package/dist/file-picker.js +1 -1
  128. package/dist/help-tags-register.js +2 -1
  129. package/dist/help-tags-register.js.map +1 -1
  130. package/dist/index.d.ts +2 -1
  131. package/dist/index.js +24 -23
  132. package/dist/list-action-row.d.ts +1 -1
  133. package/dist/list-action-row.js +1 -1
  134. package/dist/list-detail-dialog.d.ts +7 -7
  135. package/dist/list-detail-dialog.js +6 -5
  136. package/dist/list-detail-dialog.js.map +1 -1
  137. package/dist/list-header.d.ts +1 -1
  138. package/dist/list-header.js +1 -1
  139. package/dist/list-item.d.ts +1 -1
  140. package/dist/list-item.js +1 -1
  141. package/dist/message-composer.js +1 -1
  142. package/dist/nav-stack.d.ts +6 -6
  143. package/dist/nav-stack.js +1 -1
  144. package/dist/popup-menu-register.js +1 -7
  145. package/dist/popup-menu-register.js.map +1 -1
  146. package/dist/popup-menu.d.ts +2 -2
  147. package/dist/popup-menu.js +1 -1
  148. package/dist/resizable-region.js +1 -1
  149. package/dist/segmented-control.d.ts +1 -1
  150. package/dist/segmented-control.js +1 -1
  151. package/dist/select-register.js +17 -23
  152. package/dist/select-register.js.map +1 -1
  153. package/dist/split-view.d.ts +6 -6
  154. package/dist/split-view.js +1 -1
  155. package/dist/styles/collapsible-panel.css +34 -25
  156. package/dist/styles/components/actions/popup-menu/popup-menu.css +4 -4
  157. package/dist/styles/components/actions/toolbar/toolbar.css +34 -1
  158. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +1 -1
  159. package/dist/styles/components/forms/segmented-control/segmented-control.css +1 -1
  160. package/dist/styles/components/layout/collapsible-panel/collapsible-panel.css +34 -25
  161. package/dist/styles/components/layout/split-view/split-view.css +19 -33
  162. package/dist/styles/components/navigation/nav-stack/nav-stack.css +15 -19
  163. package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +30 -29
  164. package/dist/styles/components/surfaces/editor-frame/editor-frame.css +10 -3
  165. package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +291 -4
  166. package/dist/styles/editor/editor.css +78 -0
  167. package/dist/styles/editor-frame.css +10 -3
  168. package/dist/styles/nav-stack.css +15 -19
  169. package/dist/styles/popup-menu.css +4 -4
  170. package/dist/styles/segmented-control.css +1 -1
  171. package/dist/styles/split-view.css +19 -33
  172. package/dist/styles/surface-scaffold.css +291 -4
  173. package/dist/styles/tab-navigator.css +30 -29
  174. package/dist/styles/toolbar-control-group.css +1 -1
  175. package/dist/styles/toolbar.css +34 -1
  176. package/dist/styles/webawesome.css +4 -5
  177. package/dist/surface-scaffold-register.js +2 -1
  178. package/dist/surface-scaffold-register.js.map +1 -1
  179. package/dist/surface-scaffold.d.ts +155 -246
  180. package/dist/surface-scaffold.js +3 -2
  181. package/dist/toolbar-control-group.d.ts +2 -2
  182. package/dist/toolbar-control-group.js +1 -1
  183. package/dist/toolbar.d.ts +6 -1
  184. package/dist/toolbar.js +1 -1
  185. package/dist/tree-list.d.ts +4 -4
  186. package/dist/tree-list.js +2 -2
  187. package/dist/{tree-rows-eHnnGLGM.d.ts → tree-rows-Bms5QJvG.d.ts} +3 -0
  188. package/dist/wire-catalog.d.ts +1 -1
  189. package/dist/wire-catalog.js +3 -2
  190. package/dist/wire-catalog.js.map +1 -1
  191. package/dist/wire-checkboxes.js +2 -1
  192. package/dist/wire-choice-chips.js +2 -1
  193. package/dist/wire-color-fields.js +2 -1
  194. package/dist/wire-color-pickers.js +2 -1
  195. package/dist/wire-column-explorer.js +1 -92
  196. package/dist/wire-column-explorer.js.map +1 -1
  197. package/dist/wire-comboboxes.d.ts +2 -0
  198. package/dist/wire-comboboxes.js +2 -1
  199. package/dist/wire-content-items.js +2 -1
  200. package/dist/wire-corner-status.js +2 -1
  201. package/dist/wire-nav-stack.js +2 -1
  202. package/dist/wire-overlay-sheets.js +2 -1
  203. package/dist/wire-paged-views.js +2 -2
  204. package/dist/wire-paged-views.js.map +1 -1
  205. package/dist/wire-resizable-regions.js +2 -1
  206. package/dist/wire-scroll-dividers.js +1 -1
  207. package/dist/wire-search-fields.js +2 -1
  208. package/dist/wire-sidebar.js +2 -1
  209. package/dist/wire-tab-bars.d.ts +41 -2
  210. package/dist/wire-tab-bars.js +1 -1
  211. package/dist/wire-tab-navigator.js +2 -1
  212. package/dist/wire-tag-fields.js +2 -1
  213. package/dist/wire-workbench.js +2 -1
  214. package/dist/workbench-dialog.d.ts +7 -7
  215. package/dist/workbench-dialog.js +5 -4
  216. package/dist/workbench-dialog.js.map +1 -1
  217. package/dist/workbench.d.ts +1 -1
  218. package/dist/workbench.js +1 -1
  219. package/docs/accessibility.md +3 -6
  220. package/docs/component-contract.md +47 -7
  221. package/docs/component-selection.md +90 -80
  222. package/docs/design/templates.md +5 -4
  223. package/docs/editor-frame.md +1 -1
  224. package/docs/editor-host.md +15 -2
  225. package/docs/overlay-tooltip.md +1 -1
  226. package/docs/recipes.md +1 -1
  227. package/docs/surface-scaffold.md +63 -2
  228. package/docs/ui-analyzer.md +42 -0
  229. package/docs/ui-doctor.md +45 -1
  230. package/docs/ui-evaluator.md +35 -0
  231. package/docs/ux-demo.md +1 -1
  232. package/docs/view.md +314 -0
  233. package/docs/webawesome-theme.md +16 -0
  234. package/doctor/cli.mjs +36 -31
  235. package/doctor/index.mjs +349 -162
  236. package/evaluator/cli.mjs +36 -30
  237. package/llms.txt +17 -4
  238. package/package.json +6 -2
  239. package/props/cli.mjs +47 -21
  240. package/scripts/lib/cli-args.mjs +98 -0
  241. package/ux-demo/recipes/app-shell.tsx +48 -141
  242. package/ux-demo/recipes/collapsible-sidebar.tsx +43 -169
  243. package/ux-demo/recipes/compact-toolbar.tsx +22 -114
  244. package/ux-demo/recipes/composer-form.tsx +14 -104
  245. package/ux-demo/recipes/list-detail-dialog.tsx +38 -84
  246. package/ux-demo/recipes/list-workspace-states.tsx +29 -152
  247. package/ux-demo/recipes/loading-inspector.tsx +30 -174
  248. package/ux-demo/recipes/media-detail.tsx +29 -146
  249. package/ux-demo/recipes/navigation-sidebar.tsx +24 -113
  250. package/ux-demo/recipes/navigation-stack.tsx +7 -43
  251. package/ux-demo/recipes/workspace-header.tsx +2 -66
  252. package/view/catalog.mjs +229 -0
  253. package/view/child-kind.mjs +22 -0
  254. package/view/cli.mjs +142 -119
  255. package/view/contract.mjs +84 -11
  256. package/view/css-grammar.mjs +93 -0
  257. package/view/generate.d.mts +16 -0
  258. package/view/generate.mjs +155 -56
  259. package/view/index.d.mts +80 -14
  260. package/view/index.mjs +5 -9
  261. package/view/interpret.mjs +104 -36
  262. package/view/types.mjs +161 -0
  263. package/view/validate-move.mjs +66 -30
  264. package/view/validate.mjs +420 -654
  265. package/vite-editor.d.mts +16 -1
  266. package/vite-editor.mjs +74 -4
  267. package/dist/chunk-2E7S5C4D.js.map +0 -1
  268. package/dist/chunk-2LM3PYHA.js.map +0 -1
  269. package/dist/chunk-3S3WXAZ5.js.map +0 -1
  270. package/dist/chunk-3WYREXW4.js.map +0 -1
  271. package/dist/chunk-4RECPEHI.js.map +0 -1
  272. package/dist/chunk-5SFHBYEY.js.map +0 -1
  273. package/dist/chunk-6OT7FOSA.js.map +0 -1
  274. package/dist/chunk-ADMWT7FX.js.map +0 -1
  275. package/dist/chunk-BCO673YW.js.map +0 -1
  276. package/dist/chunk-CNM6ZWP2.js.map +0 -1
  277. package/dist/chunk-DJ65XFVN.js.map +0 -1
  278. package/dist/chunk-EXGDKG7B.js.map +0 -1
  279. package/dist/chunk-FJMABKKV.js.map +0 -1
  280. package/dist/chunk-GVII4JSD.js.map +0 -1
  281. package/dist/chunk-HDXUHLTQ.js.map +0 -1
  282. package/dist/chunk-JG4ONAOI.js.map +0 -1
  283. package/dist/chunk-JZZVWTUB.js.map +0 -1
  284. package/dist/chunk-KELWWCMX.js.map +0 -1
  285. package/dist/chunk-KLR3DCHH.js.map +0 -1
  286. package/dist/chunk-KQZIC5CA.js.map +0 -1
  287. package/dist/chunk-LD6A6PYB.js +0 -268
  288. package/dist/chunk-LD6A6PYB.js.map +0 -1
  289. package/dist/chunk-MVKHSAKE.js.map +0 -1
  290. package/dist/chunk-NHQOX7T4.js.map +0 -1
  291. package/dist/chunk-NR3ZO4LK.js.map +0 -1
  292. package/dist/chunk-Q2CLQ3IJ.js.map +0 -1
  293. package/dist/chunk-Q2SLOMN6.js.map +0 -1
  294. package/dist/chunk-S4ZGTDSG.js.map +0 -1
  295. package/dist/chunk-SJBMKA4X.js.map +0 -1
  296. package/dist/chunk-SPI6VMIY.js.map +0 -1
  297. package/dist/chunk-TPLVC5BE.js.map +0 -1
  298. package/dist/chunk-TTFW6E6C.js.map +0 -1
  299. package/dist/chunk-V6N3YLTM.js.map +0 -1
  300. package/dist/chunk-VNT4MXR5.js +0 -548
  301. package/dist/chunk-VNT4MXR5.js.map +0 -1
  302. package/dist/chunk-VPDSPD76.js.map +0 -1
  303. package/dist/chunk-YHRJNKD5.js.map +0 -1
  304. package/dist/chunk-Z3T24FX3.js.map +0 -1
  305. package/dist/chunk-ZKKO4MHC.js.map +0 -1
  306. package/dist/{nav-stack-DwxpXxqJ.d.ts → nav-stack-vQ3ieerq.d.ts} +3 -3
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/surfaces/workbench-dialog/workbench-dialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GA,SAAS,WAAA,CACP,OACA,OAAA,EAC4B;AAC5B,EAAA,OAAO,SAAS,OAAA,GAAU,EAAE,GAAG,KAAA,EAAO,YAAA,EAAc,WAAU,GAAI,KAAA;AACpE;AAaO,SAAS,eAAA,CAAgB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ACF;AAAA,GACF;AAEJ","file":"workbench-dialog.js","sourcesContent":["import { X } from 'lucide';\n\nimport type { KerfUiContent } from '../../../shared/content/semantic-content.js';\nimport type { CssLength } from '../../../shared/styles/css-values.js';\nimport { remify } from '../../../shared/styles/css-values.js';\nimport { ToolbarControlGroup } from '../../actions/toolbar-control-group/toolbar-control-group.js';\nimport { ToolbarText } from '../../actions/toolbar-text/toolbar-text.js';\nimport {\n Workbench,\n type WorkbenchMainBottomToolbar,\n type WorkbenchPanel,\n} from '../../layout/workbench/workbench.js';\nimport { LucideIcon } from '../../media/lucide-icon/lucide-icon.js';\nimport {\n DialogSurface,\n type DialogSurfaceHeight,\n type DialogSurfaceMaxHeight,\n type DialogSurfaceRootAttributes,\n type DialogSurfaceSize,\n} from '../surface-scaffold/surface-scaffold.js';\n\n// Open and close it like any DialogSurface, from the same import.\nexport {\n closeDialog,\n type DialogCloseSource,\n type DialogRequestCloseDetail,\n openDialog,\n} from '../surface-scaffold/surface-scaffold.js';\n\n/**\n * Application `data-*` identity on the dialog root, such as `data-key`; the\n * dialog's own configuration attributes stay protected.\n */\nexport type WorkbenchDialogRootAttributes = DialogSurfaceRootAttributes;\n\nexport interface WorkbenchDialogProps {\n /**\n * The dialog's id, for `openDialog(document.getElementById(id))`. The\n * Workbench inside is `<id>-workbench`, so its rails are\n * `<id>-workbench-left-rail` and `<id>-workbench-right-rail`.\n */\n id: string;\n /** The dialog's accessible name. */\n label: string;\n /** The dialog's primary title: an xl heading in the work area's toolbar. */\n title: string;\n /**\n * A short supporting line under the title. It is the dialog's accessible\n * description (`aria-describedby` to its `<id>-description`) unless\n * `describedBy` names other content.\n */\n description?: string;\n /**\n * Id of the element whose text is the dialog's accessible description, in\n * place of `description`, such as app-owned summary copy in `main`.\n */\n describedBy?: string;\n /** Groups after the title in the work area's toolbar. */\n leading?: KerfUiContent;\n /** Header controls before the close control, such as a `ToolbarControlGroup`. */\n actions?: KerfUiContent;\n /** The work area. */\n main: KerfUiContent;\n /** Fixed content over the work area's bottom toolbar, such as a status line. */\n mainFooter?: KerfUiContent;\n /** The work area's bottom toolbar, usually the dialog's buttons. */\n mainBottomToolbar?: WorkbenchMainBottomToolbar;\n /**\n * Side rails with their own toolbars. On compact devices each presents as\n * an overlay over the work area; the app starts it collapsed and its\n * `toolbar.toggle` shows it.\n */\n leftRail?: WorkbenchPanel;\n rightRail?: WorkbenchPanel;\n /** A bottom drawer under the work area. */\n bottomDrawer?: WorkbenchPanel;\n /**\n * Fill the screen with the rails as overlays: derive from\n * `deviceClass().value.compact`.\n */\n compact?: boolean;\n /**\n * Render in flow and always shown (DialogSurface `presentation=\"embedded\"`)\n * instead of as a modal, for a catalog, a design canvas, or a document. It\n * keeps its `height`; `openDialog` and `closeDialog` leave it alone.\n */\n embedded?: boolean;\n /** The close control's accessible name (default `Close`). */\n closeLabel?: string;\n /** Close on a press on the backdrop; otherwise the panel pulses. */\n lightDismiss?: boolean;\n /** Roomy preferred width preset (default `large`). */\n size?: DialogSurfaceSize;\n /** Roomy preferred width; takes precedence over `size`. */\n preferredWidth?: CssLength;\n /** Roomy definite height (default 560px), bounded by the viewport. */\n height?: DialogSurfaceHeight;\n /** Roomy height cap in place of a definite height. */\n maxHeight?: DialogSurfaceMaxHeight;\n /** Roomy edge clearance from the viewport. */\n viewportGutter?: CssLength;\n /** Minimum work-area width beside inline rails, in px (Workbench default 320). */\n mainMinSize?: number;\n rootAttributes?: WorkbenchDialogRootAttributes;\n className?: string;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n}\n\n/** A rail presents as an overlay in a compact dialog, as the app left it otherwise. */\nfunction compactRail(\n panel: WorkbenchPanel | undefined,\n compact: boolean,\n): WorkbenchPanel | undefined {\n return panel && compact ? { ...panel, presentation: 'overlay' } : panel;\n}\n\n/**\n * A workbench dialog: a modal whose body is a `Workbench`. The work area's\n * toolbar carries the dialog's primary title, its actions, and the close\n * control; side rails keep their own toolbars and run the dialog's full\n * height. On compact devices it fills the screen and its rails become\n * overlays over the work area, shown by their toolbar toggles, so the work\n * area keeps its width. Open it with `openDialog()`; the app owns each\n * rail's `collapsed` state, and `wireWorkbench` closes an overlay rail on\n * Escape or a press outside it before the dialog sees the Escape. Built from\n * `DialogSurface` and `Workbench`.\n */\nexport function WorkbenchDialog({\n id,\n label,\n title,\n description,\n describedBy,\n leading,\n actions,\n main,\n mainFooter,\n mainBottomToolbar,\n leftRail,\n rightRail,\n bottomDrawer,\n compact = false,\n embedded = false,\n closeLabel = 'Close',\n lightDismiss = false,\n size = 'large',\n preferredWidth,\n height,\n maxHeight,\n viewportGutter,\n mainMinSize,\n rootAttributes,\n className = '',\n slot,\n}: WorkbenchDialogProps) {\n return (\n <DialogSurface\n id={id}\n label={label}\n describedBy={\n describedBy ??\n (description === undefined ? undefined : `${id}-description`)\n }\n withoutHeader\n lightDismiss={lightDismiss}\n closeLabel={closeLabel}\n size={size}\n presentation={embedded ? 'embedded' : compact ? 'fullscreen' : 'modal'}\n preferredWidth={preferredWidth}\n height={\n compact && !embedded\n ? undefined\n : maxHeight === undefined\n ? (height ?? remify(560))\n : height\n }\n maxHeight={compact && !embedded ? undefined : maxHeight}\n viewportGutter={compact ? undefined : viewportGutter}\n bodyInset=\"none\"\n bodyLayout=\"fill\"\n rootAttributes={{\n ...rootAttributes,\n 'data-dialog-layout': 'workbench',\n }}\n className={className}\n slot={slot}\n >\n <Workbench\n id={`${id}-workbench`}\n label={label}\n mainToolbar={{\n label: title,\n title: (\n <ToolbarText\n text={title}\n description={description}\n descriptionId={\n description === undefined ? undefined : `${id}-description`\n }\n size=\"xlarge\"\n id={`${id}-title`}\n headingLevel={2}\n />\n ),\n leading,\n trailing: actions,\n // After any hidden right rail's toggle, so Close stays outermost.\n end: (\n <ToolbarControlGroup appearance=\"borderless\" single>\n <button\n type=\"button\"\n aria-label={closeLabel}\n data-dialog-close=\"\"\n >\n <LucideIcon icon={X} name=\"x\" />\n </button>\n </ToolbarControlGroup>\n ),\n }}\n main={main}\n mainFooter={mainFooter}\n mainBottomToolbar={mainBottomToolbar}\n leftRail={compactRail(leftRail, compact)}\n rightRail={compactRail(rightRail, compact)}\n bottomDrawer={bottomDrawer}\n mainMinSize={mainMinSize}\n />\n </DialogSurface>\n );\n}\n"]}
1
+ {"version":3,"sources":["../src/components/surfaces/workbench-dialog/workbench-dialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GA,SAAS,WAAA,CACP,OACA,OAAA,EAC4B;AAC5B,EAAA,OAAO,SAAS,OAAA,GAAU,EAAE,GAAG,KAAA,EAAO,YAAA,EAAc,WAAU,GAAI,KAAA;AACpE;AAaO,SAAS,eAAA,CAAgB;AAAA,EAC9B,EAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,WAAA;AAAA,EACA,WAAA;AAAA,EACA,OAAA;AAAA,EACA,OAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA;AAAA,EACA,iBAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,YAAA;AAAA,EACA,OAAA,GAAU,KAAA;AAAA,EACV,QAAA,GAAW,KAAA;AAAA,EACX,UAAA,GAAa,OAAA;AAAA,EACb,YAAA,GAAe,KAAA;AAAA,EACf,IAAA,GAAO,OAAA;AAAA,EACP,cAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,SAAA,GAAY,EAAA;AAAA,EACZ;AACF,CAAA,EAAyB;AACvB,EAAA,uBACE,GAAA;AAAA,IAAC,aAAA;AAAA,IAAA;AAAA,MACC,EAAA;AAAA,MACA,KAAA;AAAA,MACA,aACE,WAAA,KACC,WAAA,KAAgB,MAAA,GAAY,MAAA,GAAY,GAAG,EAAE,CAAA,YAAA,CAAA,CAAA;AAAA,MAEhD,aAAA,EAAa,IAAA;AAAA,MACb,YAAA;AAAA,MACA,UAAA;AAAA,MACA,IAAA;AAAA,MACA,YA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AK,QAAA;AAAA,gBACL,YAAA,EAAY,UAAA;AAAA,gBACZ,mBAAA,EAAkB,EAAA;AAAA,gBAElB,QAAA,kBAAA,GAAA,CAAC,UAAA,EAAA,EAAW,IAAA,EAAM,CAAA,EAAG,MAAK,GAAA,EAAI;AAAA;AAAA,aAChC,EACF;AAAA,WAEJ;AAAA,UACA,IAAA;AAAA,UACA,UAAA;AAAA,UACA,iBAAA;AAAA,UACA,QAAA,EAAU,WAAA,CAAY,QAAA,EAAU,OAAO,CAAA;AAAA,UACvC,SAAA,EAAW,WAAA,CAAY,SAAA,EAAW,OAAO,CAAA;AAAA,UACzC,YAAA;AAAA,UACA;AAAA;AAAA;AACF;AAAA,GACF;AAEJ","file":"workbench-dialog.js","sourcesContent":["import { X } from 'lucide';\n\nimport type { KerfUiContent } from '../../../shared/content/semantic-content.js';\nimport type { CssLength } from '../../../shared/styles/css-values.js';\nimport { remify } from '../../../shared/styles/css-values.js';\nimport { ToolbarControlGroup } from '../../actions/toolbar-control-group/toolbar-control-group.js';\nimport { ToolbarText } from '../../actions/toolbar-text/toolbar-text.js';\nimport {\n Workbench,\n type WorkbenchMainBottomToolbar,\n type WorkbenchPanel,\n} from '../../layout/workbench/workbench.js';\nimport { LucideIcon } from '../../media/lucide-icon/lucide-icon.js';\nimport {\n DialogSurface,\n type DialogSurfaceHeight,\n type DialogSurfaceMaxHeight,\n type DialogSurfaceRootAttributes,\n type DialogSurfaceSize,\n} from '../surface-scaffold/surface-scaffold.js';\n\n// Open and close it like any DialogSurface, from the same import.\nexport {\n closeDialog,\n type DialogCloseSource,\n type DialogRequestCloseDetail,\n openDialog,\n} from '../surface-scaffold/surface-scaffold.js';\n\n/**\n * Application `data-*` identity on the dialog root, such as `data-key`; the\n * dialog's own configuration attributes stay protected.\n */\nexport type WorkbenchDialogRootAttributes = DialogSurfaceRootAttributes;\n\nexport interface WorkbenchDialogProps {\n /**\n * The dialog's id, for `openDialog(document.getElementById(id))`. The\n * Workbench inside is `<id>-workbench`, so its rails are\n * `<id>-workbench-left-rail` and `<id>-workbench-right-rail`.\n */\n id: string;\n /** The dialog's accessible name. */\n label: string;\n /** The dialog's primary title: an xl heading in the work area's toolbar. */\n title: string;\n /**\n * A short supporting line under the title. It is the dialog's accessible\n * description (`aria-describedby` to its `<id>-description`) unless\n * `describedBy` names other content.\n */\n description?: string;\n /**\n * Id of the element whose text is the dialog's accessible description, in\n * place of `description`, such as app-owned summary copy in `main`.\n */\n describedBy?: string;\n /** Groups after the title in the work area's toolbar. */\n leading?: KerfUiContent;\n /** Header controls before the close control, such as a `ToolbarControlGroup`. */\n actions?: KerfUiContent;\n /** The work area. */\n main: KerfUiContent;\n /** Fixed content over the work area's bottom toolbar, such as a status line. */\n mainFooter?: KerfUiContent;\n /** The work area's bottom toolbar, usually the dialog's buttons. */\n mainBottomToolbar?: WorkbenchMainBottomToolbar;\n /**\n * Side rails with their own toolbars. On compact devices each presents as\n * an overlay over the work area; the app starts it collapsed and its\n * `toolbar.toggle` shows it.\n */\n leftRail?: WorkbenchPanel;\n rightRail?: WorkbenchPanel;\n /** A bottom drawer under the work area. */\n bottomDrawer?: WorkbenchPanel;\n /**\n * Fill the screen with the rails as overlays: derive from\n * `deviceClass().value.compact`.\n */\n compact?: boolean;\n /**\n * Render in flow and always shown (DialogSurface `presentation=\"embedded\"`)\n * instead of as a modal, for a catalog, a design canvas, or a document. It\n * keeps its `height`; `openDialog` and `closeDialog` leave it alone.\n */\n embedded?: boolean;\n /** The close control's accessible name (default `Close`). */\n closeLabel?: string;\n /** Close on a press on the backdrop; otherwise the panel pulses. */\n lightDismiss?: boolean;\n /** Roomy preferred width preset (default `large`). */\n size?: DialogSurfaceSize;\n /** Roomy preferred width; takes precedence over `size`. */\n preferredWidth?: CssLength;\n /** Roomy definite height (default 560px), bounded by the viewport. */\n height?: DialogSurfaceHeight;\n /** Roomy height cap in place of a definite height. */\n maxHeight?: DialogSurfaceMaxHeight;\n /** Roomy edge clearance from the viewport. */\n viewportGutter?: CssLength;\n /** Minimum work-area width beside inline rails, in px (Workbench default 320). */\n mainMinSize?: number;\n rootAttributes?: WorkbenchDialogRootAttributes;\n className?: string;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n}\n\n/** A rail presents as an overlay in a compact dialog, as the app left it otherwise. */\nfunction compactRail(\n panel: WorkbenchPanel | undefined,\n compact: boolean,\n): WorkbenchPanel | undefined {\n return panel && compact ? { ...panel, presentation: 'overlay' } : panel;\n}\n\n/**\n * A workbench dialog: a modal whose body is a `Workbench`. The work area's\n * toolbar carries the dialog's primary title, its actions, and the close\n * control; side rails keep their own toolbars and run the dialog's full\n * height. On compact devices it fills the screen and its rails become\n * overlays over the work area, shown by their toolbar toggles, so the work\n * area keeps its width. Open it with `openDialog()`; the app owns each\n * rail's `collapsed` state, and `wireWorkbench` closes an overlay rail on\n * Escape or a press outside it before the dialog sees the Escape. Built from\n * `DialogSurface` and `Workbench`.\n */\nexport function WorkbenchDialog({\n id,\n label,\n title,\n description,\n describedBy,\n leading,\n actions,\n main,\n mainFooter,\n mainBottomToolbar,\n leftRail,\n rightRail,\n bottomDrawer,\n compact = false,\n embedded = false,\n closeLabel = 'Close',\n lightDismiss = false,\n size = 'large',\n preferredWidth,\n height,\n maxHeight,\n viewportGutter,\n mainMinSize,\n rootAttributes,\n className = '',\n slot,\n}: WorkbenchDialogProps) {\n return (\n <DialogSurface\n id={id}\n label={label}\n describedBy={\n describedBy ??\n (description === undefined ? undefined : `${id}-description`)\n }\n withoutHeader\n lightDismiss={lightDismiss}\n closeLabel={closeLabel}\n size={size}\n presentation={embedded ? 'embedded' : compact ? 'fullscreen' : 'modal'}\n preferredWidth={preferredWidth}\n height={\n compact && !embedded\n ? undefined\n : maxHeight === undefined\n ? (height ?? remify(560))\n : height\n }\n maxHeight={compact && !embedded ? undefined : maxHeight}\n viewportGutter={compact ? undefined : viewportGutter}\n bodyInset=\"none\"\n bodyLayout=\"fill\"\n rootAttributes={{\n ...rootAttributes,\n 'data-dialog-layout': 'workbench',\n }}\n className={className}\n slot={slot}\n >\n <Workbench\n id={`${id}-workbench`}\n label={label}\n mainToolbar={{\n label: title,\n title: (\n <ToolbarText\n text={title}\n description={description}\n descriptionId={\n description === undefined ? undefined : `${id}-description`\n }\n size=\"xlarge\"\n id={`${id}-title`}\n headingLevel={2}\n />\n ),\n leading,\n trailing: actions,\n // After any hidden right rail's toggle, so Close stays outermost.\n end: (\n <ToolbarControlGroup appearance=\"borderless\" single>\n <button\n type=\"button\"\n aria-label={closeLabel}\n data-dialog-close=\"\"\n >\n <LucideIcon icon={X} name=\"x\" />\n </button>\n </ToolbarControlGroup>\n ),\n }}\n main={main}\n mainFooter={mainFooter}\n mainBottomToolbar={mainBottomToolbar}\n leftRail={compactRail(leftRail, compact)}\n rightRail={compactRail(rightRail, compact)}\n bottomDrawer={bottomDrawer}\n mainMinSize={mainMinSize}\n />\n </DialogSurface>\n );\n}\n"]}
@@ -1,7 +1,7 @@
1
1
  import { SafeHtml } from 'kerfjs';
2
+ import { b as NavPane, N as NavStackProps } from './nav-stack-vQ3ieerq.js';
2
3
  import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
3
4
  import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
4
- import { b as NavPane, N as NavStackProps } from './nav-stack-DwxpXxqJ.js';
5
5
  import { ListConfig } from './list.js';
6
6
  import { PaneConfig } from './pane.js';
7
7
  import { ResizableRegionSeparator, ResizableRegionCollapseMotion, ResizableRegionContentOverflow, ResizableRegionPresentation, ResizableRegionRestorePosition } from './resizable-region.js';
package/dist/workbench.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Workbench } from './chunk-KQZIC5CA.js';
1
+ export { Workbench } from './chunk-ZC4KSRAF.js';
2
2
 
3
3
 
4
4
 
@@ -470,12 +470,9 @@ filtering rejects roles plus case variants of component- or wiring-owned
470
470
  action, identity, selection, drag, drop, and component attributes. An optional
471
471
  `closeIcon` is decorative dormant content inside the already named close button
472
472
  and must not contain interactive descendants.
473
- The first `TabBarItem` can set `pinned` to stay at the inline start while its peers
474
- scroll. It remains a normal tab within the same tablist and roving-focus order;
475
- focus and controlled selection reveal peers beyond the pinned tab. Pin only the
476
- leading tab of a strip.
477
- WebKit currently moves a pinned tab outside an RTL strip as it scrolls;
478
- `KF-MYFQAS` tracks the browser correction.
473
+ Tabs have no pinned variant: put a control that must stay visible while tabs
474
+ scroll in TabBar's `leading`, `trailing`, or `end` zone, outside the scrolling
475
+ tablist.
479
476
  `wireTabBars()` adds Left/Right wrapping, Home/End, Delete/Backspace close
480
477
  activation, same-bar pointer reordering, `Alt+Shift+ArrowLeft/ArrowRight`
481
478
  reordering, focus restoration, scroll-into-view, and pointer-proximity
@@ -14,6 +14,23 @@ Migrate Badge/Chip `tone="brand"` to `tone="info"`; `BadgeTone` and
14
14
 
15
15
  ## Selection boundary
16
16
 
17
+ ### Size, density, and inset words
18
+
19
+ For control size and row density, use `default` or `compact`. For surface
20
+ padding, use `none`, `compact`, `default`, or `comfortable` where the component
21
+ offers those steps. The machine-readable `propVocabulary` in
22
+ `ai/component-catalog.json` lists exceptions with their distinct meanings:
23
+ modal widths, text scales, indicator diameters, and safe-area placement.
24
+ `ListItem` also offers `spacious` density.
25
+
26
+ Prior words remain accepted for this major version and produce `KUI-L026`
27
+ review findings when written as literal JSX or component-call props. The
28
+ catalog lists each alias and replacement. In particular, legacy
29
+ `DialogSurface` `bodyInset="compact"` and `footerInset="compact"` retain their
30
+ 8px geometry; write `default` for that geometry in new code. `PopupSurface`
31
+ and `ToolbarControlGroup` menu `compact` remains 4px, while `list-zero` maps to
32
+ `none`. Runtime components normalize aliases to canonical DOM attributes.
33
+
17
34
  Begin with the [need-first component matrix](./component-selection.md). Reuse a
18
35
  primitive only when purpose, anatomy, state, and interaction match. Compose
19
36
  public primitives for recurring layout; add a thin application adapter for
@@ -428,10 +445,13 @@ colocated component source:
428
445
 
429
446
  The documented exceptions live with their reasons in
430
447
  `scripts/lib/css-ownership.mjs`, and an exception that stops matching fails the
431
- check, so the list only shrinks. The layout regions' inherited edge-inset
432
- context (`--kui-edge-inset-*` handed to a sole Pane or layout child and cleared
433
- for any other content, and a Toolbar clearing it for its zones) is the one
434
- design exception; the others name the open fix ticket. The scroll-clearance
448
+ check, so the list only shrinks; it is currently empty. The layout regions'
449
+ inherited edge-inset context (`--kui-edge-inset-*`) needs no exception: a
450
+ region keeps the context on its own element for a sole Pane or layout child to
451
+ inherit, and otherwise pads by a private copy named after itself
452
+ (`--_kui-split-view-edge-*`, `--_kui-nav-stack-view-edge-*`, …) and clears the
453
+ public context on its own element, so other content inherits zero. A Toolbar
454
+ clears it on its own zones. The scroll-clearance
435
455
  context (`--kui-scroll-clearance-block-*`) needs no exception: overlaying
436
456
  chrome publishes it on its own element (a `DialogSurface` on its dialog body,
437
457
  a `Pane` overlay header, through `wireScrollDividers`, on its own Pane root).
@@ -750,7 +770,12 @@ parent item, Escape closes it, and choosing a child dispatches the normal
750
770
  The enclosing `Toolbar` owns zone alignment and responsive topology: use
751
771
  `centerAlign="stretch"` when the center group should consume its track, and
752
772
  choose `responsive="stack"` with `responsiveAt="compact" | "narrow"`,
753
- `responsive="wrap"` for a heading whose title must stay whole, or
773
+ `responsive="wrap"` for a heading whose title must stay whole,
774
+ `responsive="wrap-groups"` for a leading zone made of control groups (each
775
+ leading group is one of the toolbar's own wrapping items, so whole groups
776
+ share a row with the trailing zone while they fit and move to the next row
777
+ when they do not; the leading zone draws no box of its own, so its padding
778
+ and minimum-width tokens do not apply), or
754
779
  `responsive="center-priority"` instead of selecting its zone classes from a
755
780
  parent stylesheet. No policy clips an action: the trailing zone wraps whole
756
781
  groups and its standalone primary `Button` onto another row; a stacked
@@ -853,8 +878,10 @@ their CSS remain unreachable. The root barrel and `@kerfjs/ui/unstyled` stay
853
878
  CSS-free for Node, SSR, and custom styling pipelines; pair a root-barrel import
854
879
  with `styles.css` when the complete component layer is intended. Application
855
880
  overrides load later in the cascade or set scoped `--kui-*` variables. JavaScript
856
- modules are pure except the browser style wrappers and `@kerfjs/ui/select/register`,
857
- which registers exactly the Web Awesome elements used by `Select`. Eventful
881
+ modules are pure except the browser style wrappers and the four `/register`
882
+ entries (`@kerfjs/ui/select/register`, `popup-menu/register`, `help-tags/register`,
883
+ and `surface-scaffold/register`), each of which defines only the custom elements
884
+ its component needs. Eventful
858
885
  helpers such as `wireResizableRegions` and `wireTabBars` attach listeners only
859
886
  when called and return disposers. `wireSearchFields` goes one step further:
860
887
  by default it also owns the collapsible field's transient expand/collapse/focus
@@ -1063,6 +1090,19 @@ their own morph-control attributes.
1063
1090
 
1064
1091
  `kerfjs` is a peer dependency and remains external in every build. Importing a toolbar must not bundle a second Kerf runtime, another UI component, Web Awesome registration, the UX catalog, or development tooling.
1065
1092
 
1093
+ ### Realms
1094
+
1095
+ A controller or `wire…` helper builds its observers (`MutationObserver`,
1096
+ `ResizeObserver`, `IntersectionObserver`) and schedules its timers
1097
+ (`setTimeout`, `requestAnimationFrame`) on the window that owns the node it
1098
+ wires — `realmOf(node)` from `src/shared/dom/realm.ts`, or the `view` /
1099
+ `win` it already derived from `node.ownerDocument.defaultView` — never on the
1100
+ global constructors. A component wired inside an iframe or a second document
1101
+ then observes and times against that document's own event loop, and a test
1102
+ can stub one window without patching globals. An inline style the controller
1103
+ owns and a re-render may morph away is kept with `watchOwnedStyles` from
1104
+ `src/shared/dom/owned-styles.ts`, which follows the same rule.
1105
+
1066
1106
  ## Extracted versus application-specific
1067
1107
 
1068
1108
  The package set is intentionally domain-neutral: icon rendering, toolbar primitives, controlled segmented choices, a controlled token-chip search field with DOM read/caret helpers, menu rows/headers, resizable regions and wiring, controlled reorderable tab bars, headers, loading, select, banners, empty states, dialog headers, and typed value-table rows.