@kerfjs/ui 5.0.0-beta.13 → 5.0.0-beta.130

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 (1603) hide show
  1. package/README.md +740 -163
  2. package/ai/application-ui-diagnostic-ids-v1.json +140 -0
  3. package/ai/application-ui-profile-sync.cjs +579 -0
  4. package/ai/application-ui-profile.d.mts +1 -0
  5. package/ai/application-ui-profile.d.ts +108 -0
  6. package/ai/application-ui-profile.defaults.json +226 -0
  7. package/ai/application-ui-profile.mjs +684 -0
  8. package/ai/application-ui-profile.schema.json +257 -0
  9. package/ai/catalog-authoring.json +34 -0
  10. package/ai/catalog-authoring.schema.json +105 -0
  11. package/ai/compile-time-contracts-v1.json +149 -0
  12. package/ai/compile-time-contracts-v1.schema.json +52 -0
  13. package/ai/component-catalog-extension.schema.json +104 -0
  14. package/ai/component-catalog.json +10582 -1339
  15. package/ai/component-catalog.schema.json +127 -2
  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 +586 -0
  20. package/ai/component-composition.d.ts +178 -0
  21. package/ai/component-composition.json +11314 -0
  22. package/ai/component-composition.schema.json +749 -0
  23. package/ai/component-props-overlay.json +8892 -0
  24. package/ai/component-props-overlay.schema.json +82 -0
  25. package/ai/component-props.json +34203 -0
  26. package/ai/component-props.schema.json +408 -0
  27. package/ai/components/README.md +216 -0
  28. package/ai/components/anchored-surface.md +99 -0
  29. package/ai/components/application-tabs.md +65 -0
  30. package/ai/components/backdrop-image.md +86 -0
  31. package/ai/components/badge.md +77 -0
  32. package/ai/components/button.md +103 -0
  33. package/ai/components/checkbox-group.md +91 -0
  34. package/ai/components/checkbox.md +92 -0
  35. package/ai/components/chip.md +82 -0
  36. package/ai/components/choice-chips.md +97 -0
  37. package/ai/components/collapsible-panel.md +103 -0
  38. package/ai/components/color-field.md +94 -0
  39. package/ai/components/color-picker.md +95 -0
  40. package/ai/components/color-swatches.md +84 -0
  41. package/ai/components/column-explorer.md +89 -0
  42. package/ai/components/column-track.md +79 -0
  43. package/ai/components/combobox.md +92 -0
  44. package/ai/components/content-item.md +107 -0
  45. package/ai/components/content-swap.md +78 -0
  46. package/ai/components/corner-status.md +88 -0
  47. package/ai/components/disclosure-arrow.md +77 -0
  48. package/ai/components/disclosure.md +90 -0
  49. package/ai/components/document-baseline.md +77 -0
  50. package/ai/components/edge-activity-indicator.md +81 -0
  51. package/ai/components/editor-frame.md +80 -0
  52. package/ai/components/empty-state.md +80 -0
  53. package/ai/components/feedback.md +71 -0
  54. package/ai/components/file-picker.md +92 -0
  55. package/ai/components/floating-toolbar.md +82 -0
  56. package/ai/components/form.md +86 -0
  57. package/ai/components/foundation.md +65 -0
  58. package/ai/components/framed-list.md +80 -0
  59. package/ai/components/gauge.md +83 -0
  60. package/ai/components/grid.md +101 -0
  61. package/ai/components/headers.md +63 -0
  62. package/ai/components/layout.md +75 -0
  63. package/ai/components/list-action-row.md +110 -0
  64. package/ai/components/list-detail-dialog.md +92 -0
  65. package/ai/components/list-header.md +93 -0
  66. package/ai/components/list-inset-control.md +74 -0
  67. package/ai/components/list-inset-text.md +72 -0
  68. package/ai/components/list-item.md +112 -0
  69. package/ai/components/list.md +131 -0
  70. package/ai/components/loading-spinner.md +73 -0
  71. package/ai/components/lucide-icon.md +99 -0
  72. package/ai/components/message-composer.md +87 -0
  73. package/ai/components/nav-stack.md +122 -0
  74. package/ai/components/paged-view.md +89 -0
  75. package/ai/components/pane.md +130 -0
  76. package/ai/components/popup-menu.md +177 -0
  77. package/ai/components/progress-bar.md +82 -0
  78. package/ai/components/progress-ring.md +80 -0
  79. package/ai/components/radio-group.md +95 -0
  80. package/ai/components/recipe-app-shell.md +57 -0
  81. package/ai/components/recipe-collapsible-sidebar.md +57 -0
  82. package/ai/components/recipe-compact-toolbar.md +57 -0
  83. package/ai/components/recipe-composer-form.md +57 -0
  84. package/ai/components/recipe-list-detail-dialog.md +57 -0
  85. package/ai/components/recipe-list-workspace-states.md +57 -0
  86. package/ai/components/recipe-loading-inspector.md +57 -0
  87. package/ai/components/recipe-media-detail.md +57 -0
  88. package/ai/components/recipe-navigation-sidebar.md +57 -0
  89. package/ai/components/recipe-navigation-stack.md +57 -0
  90. package/ai/components/recipe-workspace-header.md +57 -0
  91. package/ai/components/resize.md +106 -0
  92. package/ai/components/row.md +96 -0
  93. package/ai/components/scroll-effect.md +84 -0
  94. package/ai/components/search-field.md +110 -0
  95. package/ai/components/segmented-control.md +86 -0
  96. package/ai/components/select.md +122 -0
  97. package/ai/components/sized-region.md +86 -0
  98. package/ai/components/skeleton.md +84 -0
  99. package/ai/components/slider.md +86 -0
  100. package/ai/components/spacer.md +86 -0
  101. package/ai/components/split-button.md +85 -0
  102. package/ai/components/split-view.md +105 -0
  103. package/ai/components/state-banner.md +98 -0
  104. package/ai/components/summary-row.md +94 -0
  105. package/ai/components/sunken-panel.md +79 -0
  106. package/ai/components/surface-scaffold.md +137 -0
  107. package/ai/components/switch.md +83 -0
  108. package/ai/components/tab-bar.md +119 -0
  109. package/ai/components/tab-navigator.md +107 -0
  110. package/ai/components/tab-panel.md +84 -0
  111. package/ai/components/tabs.md +100 -0
  112. package/ai/components/tag-field.md +88 -0
  113. package/ai/components/text-field.md +104 -0
  114. package/ai/components/text.md +96 -0
  115. package/ai/components/toast.md +85 -0
  116. package/ai/components/toolbar-control-group.md +134 -0
  117. package/ai/components/toolbar-text.md +102 -0
  118. package/ai/components/toolbar.md +105 -0
  119. package/ai/components/tooltip.md +81 -0
  120. package/ai/components/tree-list.md +95 -0
  121. package/ai/components/value-preview.md +75 -0
  122. package/ai/components/value-table.md +80 -0
  123. package/ai/components/wa-accordion-item.md +63 -0
  124. package/ai/components/wa-accordion.md +71 -0
  125. package/ai/components/wa-animated-image.md +56 -0
  126. package/ai/components/wa-animation.md +56 -0
  127. package/ai/components/wa-avatar.md +56 -0
  128. package/ai/components/wa-badge.md +62 -0
  129. package/ai/components/wa-breadcrumb-item.md +56 -0
  130. package/ai/components/wa-breadcrumb.md +56 -0
  131. package/ai/components/wa-button-group.md +62 -0
  132. package/ai/components/wa-button.md +63 -0
  133. package/ai/components/wa-callout.md +60 -0
  134. package/ai/components/wa-card.md +67 -0
  135. package/ai/components/wa-carousel-item.md +54 -0
  136. package/ai/components/wa-carousel.md +58 -0
  137. package/ai/components/wa-checkbox-group.md +62 -0
  138. package/ai/components/wa-checkbox.md +63 -0
  139. package/ai/components/wa-color-picker.md +65 -0
  140. package/ai/components/wa-comparison.md +58 -0
  141. package/ai/components/wa-copy-button.md +58 -0
  142. package/ai/components/wa-details.md +69 -0
  143. package/ai/components/wa-dialog.md +67 -0
  144. package/ai/components/wa-divider.md +54 -0
  145. package/ai/components/wa-drawer.md +64 -0
  146. package/ai/components/wa-dropdown-item.md +64 -0
  147. package/ai/components/wa-dropdown.md +62 -0
  148. package/ai/components/wa-format-bytes.md +54 -0
  149. package/ai/components/wa-format-date.md +54 -0
  150. package/ai/components/wa-format-number.md +54 -0
  151. package/ai/components/wa-icon.md +59 -0
  152. package/ai/components/wa-include.md +55 -0
  153. package/ai/components/wa-input.md +64 -0
  154. package/ai/components/wa-intersection-observer.md +54 -0
  155. package/ai/components/wa-known-date.md +56 -0
  156. package/ai/components/wa-markdown.md +54 -0
  157. package/ai/components/wa-mutation-observer.md +54 -0
  158. package/ai/components/wa-number-input.md +58 -0
  159. package/ai/components/wa-option.md +61 -0
  160. package/ai/components/wa-otp-input.md +56 -0
  161. package/ai/components/wa-page.md +62 -0
  162. package/ai/components/wa-pagination.md +58 -0
  163. package/ai/components/wa-popover.md +61 -0
  164. package/ai/components/wa-popup.md +60 -0
  165. package/ai/components/wa-progress-bar.md +60 -0
  166. package/ai/components/wa-progress-ring.md +60 -0
  167. package/ai/components/wa-qr-code.md +54 -0
  168. package/ai/components/wa-radio-group.md +67 -0
  169. package/ai/components/wa-radio.md +63 -0
  170. package/ai/components/wa-random-content.md +54 -0
  171. package/ai/components/wa-rating.md +58 -0
  172. package/ai/components/wa-relative-time.md +54 -0
  173. package/ai/components/wa-resize-observer.md +54 -0
  174. package/ai/components/wa-scroller.md +61 -0
  175. package/ai/components/wa-select.md +67 -0
  176. package/ai/components/wa-skeleton.md +60 -0
  177. package/ai/components/wa-slider.md +63 -0
  178. package/ai/components/wa-spinner.md +60 -0
  179. package/ai/components/wa-split-panel.md +60 -0
  180. package/ai/components/wa-step.md +56 -0
  181. package/ai/components/wa-stepper.md +56 -0
  182. package/ai/components/wa-switch.md +62 -0
  183. package/ai/components/wa-tab-group.md +71 -0
  184. package/ai/components/wa-tab-panel.md +62 -0
  185. package/ai/components/wa-tab.md +63 -0
  186. package/ai/components/wa-tag-input.md +64 -0
  187. package/ai/components/wa-tag.md +62 -0
  188. package/ai/components/wa-textarea.md +62 -0
  189. package/ai/components/wa-time-input.md +58 -0
  190. package/ai/components/wa-toast-item.md +62 -0
  191. package/ai/components/wa-toast.md +62 -0
  192. package/ai/components/wa-tooltip.md +61 -0
  193. package/ai/components/wa-tree-item.md +63 -0
  194. package/ai/components/wa-tree.md +61 -0
  195. package/ai/components/wa-zoomable-frame.md +58 -0
  196. package/ai/components/workbench-dialog.md +92 -0
  197. package/ai/components/workbench.md +120 -0
  198. package/ai/design-mock/SKILL.md +27 -0
  199. package/ai/design-mock/references/hs2-example.md +7 -0
  200. package/ai/public-api-signatures-v1.md +7669 -523
  201. package/ai/skill.md +683 -66
  202. package/ai/view-document.schema.json +467 -0
  203. package/ai/webawesome-jsx-signatures-v1.md +12 -2
  204. package/analyzer/cli.mjs +85 -0
  205. package/analyzer/component-ownership.d.mts +72 -0
  206. package/analyzer/component-ownership.mjs +429 -0
  207. package/analyzer/index.d.mts +54 -0
  208. package/analyzer/index.mjs +2738 -0
  209. package/analyzer/loud-pairs.d.mts +49 -0
  210. package/analyzer/loud-pairs.mjs +357 -0
  211. package/analyzer/report.schema.json +66 -0
  212. package/analyzer/selectors.d.mts +21 -0
  213. package/analyzer/selectors.mjs +212 -0
  214. package/catalog-projection-cli.mjs +132 -0
  215. package/catalog-projection.d.mts +55 -0
  216. package/catalog-projection.mjs +62 -0
  217. package/dist/anchor-name-BZ1rpxaw.d.ts +4 -0
  218. package/dist/anchored-surface.d.ts +69 -0
  219. package/dist/anchored-surface.js +4 -0
  220. package/dist/anchored-surface.js.map +1 -0
  221. package/dist/backdrop-image.d.ts +147 -0
  222. package/dist/backdrop-image.js +6 -0
  223. package/dist/backdrop-image.js.map +1 -0
  224. package/dist/badge.d.ts +91 -0
  225. package/dist/badge.js +4 -0
  226. package/dist/badge.js.map +1 -0
  227. package/dist/browser/anchored-surface.js +3 -0
  228. package/dist/browser/backdrop-image.js +4 -0
  229. package/dist/browser/badge.js +3 -0
  230. package/dist/browser/button.js +5 -0
  231. package/dist/browser/catalog.js +29 -0
  232. package/dist/browser/checkbox-group.js +5 -0
  233. package/dist/browser/checkbox.js +4 -0
  234. package/dist/browser/chip.js +3 -0
  235. package/dist/browser/choice-chips.js +3 -0
  236. package/dist/browser/collapsible-panel.js +10 -0
  237. package/dist/browser/color-field.js +4 -0
  238. package/dist/browser/color-picker.js +5 -0
  239. package/dist/browser/color-swatches.js +3 -0
  240. package/dist/browser/column-explorer.js +13 -0
  241. package/dist/browser/column-track.js +3 -0
  242. package/dist/browser/combobox.js +3 -0
  243. package/dist/browser/content-item.js +5 -0
  244. package/dist/browser/content-swap.js +3 -0
  245. package/dist/browser/corner-status.js +3 -0
  246. package/dist/browser/disclosure.js +5 -0
  247. package/dist/browser/edge-activity-indicator.js +3 -0
  248. package/dist/browser/editor-frame.js +3 -0
  249. package/dist/browser/editor.js +50 -0
  250. package/dist/browser/file-picker.js +3 -0
  251. package/dist/browser/form.js +3 -0
  252. package/dist/browser/framed-list.js +3 -0
  253. package/dist/browser/gauge.js +3 -0
  254. package/dist/browser/grid.js +3 -0
  255. package/dist/browser/list-action-row.js +3 -0
  256. package/dist/browser/list-detail-dialog.js +15 -0
  257. package/dist/browser/list-header.js +3 -1
  258. package/dist/browser/list-item.js +1 -0
  259. package/dist/browser/list.js +3 -0
  260. package/dist/browser/message-composer.js +5 -0
  261. package/dist/browser/nav-stack.js +12 -0
  262. package/dist/browser/paged-view.js +3 -0
  263. package/dist/browser/pane.js +3 -0
  264. package/dist/browser/popup-menu.js +4 -0
  265. package/dist/browser/progress-bar.js +3 -0
  266. package/dist/browser/progress-ring.js +3 -0
  267. package/dist/browser/radio-group.js +4 -0
  268. package/dist/browser/row.js +3 -0
  269. package/dist/browser/scroll-effect.js +3 -0
  270. package/dist/browser/search-field.js +4 -0
  271. package/dist/browser/segmented-control.js +1 -1
  272. package/dist/browser/select.js +2 -1
  273. package/dist/browser/sized-region.js +3 -0
  274. package/dist/browser/slider.js +3 -0
  275. package/dist/browser/spacer.js +3 -0
  276. package/dist/browser/split-button.js +5 -0
  277. package/dist/browser/split-view.js +14 -0
  278. package/dist/browser/state-banner.js +1 -0
  279. package/dist/browser/summary-row.js +3 -0
  280. package/dist/browser/sunken-panel.js +3 -0
  281. package/dist/browser/surface-scaffold.js +4 -0
  282. package/dist/browser/switch.js +3 -0
  283. package/dist/browser/tab-bar-item.js +4 -0
  284. package/dist/browser/tab-navigator.js +4 -0
  285. package/dist/browser/tab-panel.js +3 -0
  286. package/dist/browser/tag-field.js +5 -0
  287. package/dist/browser/text-field.js +4 -0
  288. package/dist/browser/text.js +3 -0
  289. package/dist/browser/toolbar-control-group.js +2 -0
  290. package/dist/browser/tree-list.js +7 -0
  291. package/dist/browser/value-preview.js +3 -0
  292. package/dist/browser/workbench-dialog.js +16 -0
  293. package/dist/browser/workbench.js +15 -0
  294. package/dist/button.d.ts +164 -0
  295. package/dist/button.js +8 -0
  296. package/dist/button.js.map +1 -0
  297. package/dist/catalog-resources.d.ts +52 -0
  298. package/dist/catalog-resources.js +22 -0
  299. package/dist/catalog-resources.js.map +1 -0
  300. package/dist/catalog.d.ts +136 -101
  301. package/dist/catalog.js +706 -108
  302. package/dist/catalog.js.map +1 -1
  303. package/dist/checkbox-group.d.ts +70 -0
  304. package/dist/checkbox-group.js +7 -0
  305. package/dist/checkbox-group.js.map +1 -0
  306. package/dist/checkbox.d.ts +45 -0
  307. package/dist/checkbox.js +6 -0
  308. package/dist/checkbox.js.map +1 -0
  309. package/dist/chip.d.ts +117 -0
  310. package/dist/chip.js +4 -0
  311. package/dist/chip.js.map +1 -0
  312. package/dist/choice-chips.d.ts +135 -0
  313. package/dist/choice-chips.js +4 -0
  314. package/dist/choice-chips.js.map +1 -0
  315. package/dist/chunk-2FA3SX57.js +156 -0
  316. package/dist/chunk-2FA3SX57.js.map +1 -0
  317. package/dist/chunk-2GOCOLQL.js +270 -0
  318. package/dist/chunk-2GOCOLQL.js.map +1 -0
  319. package/dist/chunk-3K5V3ZSD.js +77 -0
  320. package/dist/chunk-3K5V3ZSD.js.map +1 -0
  321. package/dist/chunk-3TBMGGTA.js +27 -0
  322. package/dist/chunk-3TBMGGTA.js.map +1 -0
  323. package/dist/chunk-3VZ6SFD4.js +8 -0
  324. package/dist/chunk-3VZ6SFD4.js.map +1 -0
  325. package/dist/chunk-3XSY5LAB.js +385 -0
  326. package/dist/chunk-3XSY5LAB.js.map +1 -0
  327. package/dist/chunk-44AOBT2F.js +16 -0
  328. package/dist/chunk-44AOBT2F.js.map +1 -0
  329. package/dist/chunk-4CYCJ3NY.js +563 -0
  330. package/dist/chunk-4CYCJ3NY.js.map +1 -0
  331. package/dist/chunk-4IXG6XCT.js +70 -0
  332. package/dist/chunk-4IXG6XCT.js.map +1 -0
  333. package/dist/chunk-4K7XXSOX.js +21 -0
  334. package/dist/chunk-4K7XXSOX.js.map +1 -0
  335. package/dist/chunk-4L5ZIKDZ.js +129 -0
  336. package/dist/chunk-4L5ZIKDZ.js.map +1 -0
  337. package/dist/chunk-4UWLHKNU.js +190 -0
  338. package/dist/chunk-4UWLHKNU.js.map +1 -0
  339. package/dist/chunk-5KWXM5O7.js +51 -0
  340. package/dist/chunk-5KWXM5O7.js.map +1 -0
  341. package/dist/chunk-63TJH2RF.js +231 -0
  342. package/dist/chunk-63TJH2RF.js.map +1 -0
  343. package/dist/chunk-6BXPN5SC.js +73 -0
  344. package/dist/chunk-6BXPN5SC.js.map +1 -0
  345. package/dist/chunk-6C6DLP3W.js +31 -0
  346. package/dist/chunk-6C6DLP3W.js.map +1 -0
  347. package/dist/chunk-6PHG2DMG.js +127 -0
  348. package/dist/chunk-6PHG2DMG.js.map +1 -0
  349. package/dist/chunk-6V6UHPJD.js +153 -0
  350. package/dist/chunk-6V6UHPJD.js.map +1 -0
  351. package/dist/chunk-73LC3JAL.js +78 -0
  352. package/dist/chunk-73LC3JAL.js.map +1 -0
  353. package/dist/chunk-76BLSFEA.js +825 -0
  354. package/dist/chunk-76BLSFEA.js.map +1 -0
  355. package/dist/chunk-76VCWWUA.js +73 -0
  356. package/dist/chunk-76VCWWUA.js.map +1 -0
  357. package/dist/chunk-7DIWVGGA.js +36 -0
  358. package/dist/chunk-7DIWVGGA.js.map +1 -0
  359. package/dist/chunk-7KN5OQVN.js +157 -0
  360. package/dist/chunk-7KN5OQVN.js.map +1 -0
  361. package/dist/chunk-7QQ3HE47.js +17 -0
  362. package/dist/chunk-7QQ3HE47.js.map +1 -0
  363. package/dist/chunk-7U65KLDL.js +67 -0
  364. package/dist/chunk-7U65KLDL.js.map +1 -0
  365. package/dist/chunk-ALBFHXMZ.js +937 -0
  366. package/dist/chunk-ALBFHXMZ.js.map +1 -0
  367. package/dist/chunk-ASU4ODOH.js +658 -0
  368. package/dist/chunk-ASU4ODOH.js.map +1 -0
  369. package/dist/chunk-AYPGXR2E.js +20 -0
  370. package/dist/chunk-AYPGXR2E.js.map +1 -0
  371. package/dist/chunk-BCHK33XL.js +167 -0
  372. package/dist/chunk-BCHK33XL.js.map +1 -0
  373. package/dist/chunk-BMUYZKXW.js +155 -0
  374. package/dist/chunk-BMUYZKXW.js.map +1 -0
  375. package/dist/chunk-C2TY5DJC.js +303 -0
  376. package/dist/chunk-C2TY5DJC.js.map +1 -0
  377. package/dist/chunk-C4FBYP2D.js +59 -0
  378. package/dist/chunk-C4FBYP2D.js.map +1 -0
  379. package/dist/chunk-CCPWJDRW.js +61 -0
  380. package/dist/chunk-CCPWJDRW.js.map +1 -0
  381. package/dist/chunk-CIAUILRR.js +222 -0
  382. package/dist/chunk-CIAUILRR.js.map +1 -0
  383. package/dist/chunk-CJAKN2KZ.js +35 -0
  384. package/dist/chunk-CJAKN2KZ.js.map +1 -0
  385. package/dist/chunk-CKPI4WIN.js +58 -0
  386. package/dist/chunk-CKPI4WIN.js.map +1 -0
  387. package/dist/chunk-CMG4OZPV.js +119 -0
  388. package/dist/chunk-CMG4OZPV.js.map +1 -0
  389. package/dist/chunk-COMEWURO.js +122 -0
  390. package/dist/chunk-COMEWURO.js.map +1 -0
  391. package/dist/chunk-COQI4OMZ.js +71 -0
  392. package/dist/chunk-COQI4OMZ.js.map +1 -0
  393. package/dist/chunk-CPTQABDQ.js +36 -0
  394. package/dist/chunk-CPTQABDQ.js.map +1 -0
  395. package/dist/chunk-CRHKWHTA.js +90 -0
  396. package/dist/chunk-CRHKWHTA.js.map +1 -0
  397. package/dist/chunk-D2KHQNJ6.js +155 -0
  398. package/dist/chunk-D2KHQNJ6.js.map +1 -0
  399. package/dist/chunk-D4MXSAMI.js +50 -0
  400. package/dist/chunk-D4MXSAMI.js.map +1 -0
  401. package/dist/chunk-DB64I3DB.js +191 -0
  402. package/dist/chunk-DB64I3DB.js.map +1 -0
  403. package/dist/chunk-DBP3N6E5.js +204 -0
  404. package/dist/chunk-DBP3N6E5.js.map +1 -0
  405. package/dist/chunk-DJWBXEF4.js +40 -0
  406. package/dist/chunk-DJWBXEF4.js.map +1 -0
  407. package/dist/chunk-DKPYHVIV.js +13 -0
  408. package/dist/chunk-DKPYHVIV.js.map +1 -0
  409. package/dist/chunk-DV6GE57V.js +191 -0
  410. package/dist/chunk-DV6GE57V.js.map +1 -0
  411. package/dist/chunk-E7Q6UNCB.js +41 -0
  412. package/dist/chunk-E7Q6UNCB.js.map +1 -0
  413. package/dist/chunk-E7ZRBMVQ.js +76 -0
  414. package/dist/chunk-E7ZRBMVQ.js.map +1 -0
  415. package/dist/chunk-ECJHCPBN.js +48 -0
  416. package/dist/chunk-ECJHCPBN.js.map +1 -0
  417. package/dist/chunk-ECVTRAXN.js +37 -0
  418. package/dist/chunk-ECVTRAXN.js.map +1 -0
  419. package/dist/chunk-EHR7R7YP.js +62 -0
  420. package/dist/chunk-EHR7R7YP.js.map +1 -0
  421. package/dist/chunk-EI55KWHP.js +28 -0
  422. package/dist/chunk-EI55KWHP.js.map +1 -0
  423. package/dist/chunk-F34LHBQI.js +157 -0
  424. package/dist/chunk-F34LHBQI.js.map +1 -0
  425. package/dist/chunk-FNJA4S6J.js +38 -0
  426. package/dist/chunk-FNJA4S6J.js.map +1 -0
  427. package/dist/chunk-FQETQ7CM.js +48 -0
  428. package/dist/chunk-FQETQ7CM.js.map +1 -0
  429. package/dist/chunk-FR5G77K5.js +82 -0
  430. package/dist/chunk-FR5G77K5.js.map +1 -0
  431. package/dist/chunk-GE2BQXB3.js +206 -0
  432. package/dist/chunk-GE2BQXB3.js.map +1 -0
  433. package/dist/chunk-GHV36C6I.js +94 -0
  434. package/dist/chunk-GHV36C6I.js.map +1 -0
  435. package/dist/chunk-GXSX6Q6O.js +42 -0
  436. package/dist/chunk-GXSX6Q6O.js.map +1 -0
  437. package/dist/chunk-HHEBNP6Z.js +256 -0
  438. package/dist/chunk-HHEBNP6Z.js.map +1 -0
  439. package/dist/chunk-HPOXLOVC.js +184 -0
  440. package/dist/chunk-HPOXLOVC.js.map +1 -0
  441. package/dist/chunk-HTERKONR.js +49 -0
  442. package/dist/chunk-HTERKONR.js.map +1 -0
  443. package/dist/chunk-I2K4OQKB.js +426 -0
  444. package/dist/chunk-I2K4OQKB.js.map +1 -0
  445. package/dist/chunk-IFDTSVE6.js +9 -0
  446. package/dist/chunk-IFDTSVE6.js.map +1 -0
  447. package/dist/chunk-IKS72C6P.js +53 -0
  448. package/dist/chunk-IKS72C6P.js.map +1 -0
  449. package/dist/chunk-IPYQYLSX.js +169 -0
  450. package/dist/chunk-IPYQYLSX.js.map +1 -0
  451. package/dist/chunk-IQSRHXZR.js +164 -0
  452. package/dist/chunk-IQSRHXZR.js.map +1 -0
  453. package/dist/chunk-IRC5N7FA.js +16 -0
  454. package/dist/chunk-IRC5N7FA.js.map +1 -0
  455. package/dist/chunk-JAC6AVZN.js +104 -0
  456. package/dist/chunk-JAC6AVZN.js.map +1 -0
  457. package/dist/chunk-JHUEYWWI.js +74 -0
  458. package/dist/chunk-JHUEYWWI.js.map +1 -0
  459. package/dist/chunk-JYKP7TBZ.js +27 -0
  460. package/dist/chunk-JYKP7TBZ.js.map +1 -0
  461. package/dist/chunk-KACJOE2N.js +170 -0
  462. package/dist/chunk-KACJOE2N.js.map +1 -0
  463. package/dist/chunk-KBS3GP6S.js +68 -0
  464. package/dist/chunk-KBS3GP6S.js.map +1 -0
  465. package/dist/chunk-KC6WUSNS.js +34 -0
  466. package/dist/chunk-KC6WUSNS.js.map +1 -0
  467. package/dist/chunk-KK3S5OTW.js +98 -0
  468. package/dist/chunk-KK3S5OTW.js.map +1 -0
  469. package/dist/chunk-KS7EXW4P.js +290 -0
  470. package/dist/chunk-KS7EXW4P.js.map +1 -0
  471. package/dist/chunk-LET362AM.js +105 -0
  472. package/dist/chunk-LET362AM.js.map +1 -0
  473. package/dist/chunk-LETAE6SX.js +93 -0
  474. package/dist/chunk-LETAE6SX.js.map +1 -0
  475. package/dist/chunk-LOW7J7SE.js +63 -0
  476. package/dist/chunk-LOW7J7SE.js.map +1 -0
  477. package/dist/chunk-LTOTL5AS.js +56 -0
  478. package/dist/chunk-LTOTL5AS.js.map +1 -0
  479. package/dist/chunk-M64TAGZY.js +590 -0
  480. package/dist/chunk-M64TAGZY.js.map +1 -0
  481. package/dist/chunk-M72QLDUO.js +33 -0
  482. package/dist/chunk-M72QLDUO.js.map +1 -0
  483. package/dist/chunk-MHMWQ7RB.js +19 -0
  484. package/dist/chunk-MHMWQ7RB.js.map +1 -0
  485. package/dist/chunk-MJ5RU6XT.js +173 -0
  486. package/dist/chunk-MJ5RU6XT.js.map +1 -0
  487. package/dist/chunk-MMOQR426.js +14 -0
  488. package/dist/chunk-MMOQR426.js.map +1 -0
  489. package/dist/chunk-MVWR5WRX.js +99 -0
  490. package/dist/chunk-MVWR5WRX.js.map +1 -0
  491. package/dist/chunk-NA4LKVPX.js +48 -0
  492. package/dist/chunk-NA4LKVPX.js.map +1 -0
  493. package/dist/chunk-OK7FUK7U.js +9 -0
  494. package/dist/chunk-OK7FUK7U.js.map +1 -0
  495. package/dist/chunk-OKZTLRGG.js +34 -0
  496. package/dist/chunk-OKZTLRGG.js.map +1 -0
  497. package/dist/chunk-OSL4LQ7T.js +202 -0
  498. package/dist/chunk-OSL4LQ7T.js.map +1 -0
  499. package/dist/chunk-OZKBIPXU.js +114 -0
  500. package/dist/chunk-OZKBIPXU.js.map +1 -0
  501. package/dist/chunk-PVKAIVKE.js +283 -0
  502. package/dist/chunk-PVKAIVKE.js.map +1 -0
  503. package/dist/chunk-Q5BPZPCO.js +52 -0
  504. package/dist/chunk-Q5BPZPCO.js.map +1 -0
  505. package/dist/chunk-Q7RILH2D.js +152 -0
  506. package/dist/chunk-Q7RILH2D.js.map +1 -0
  507. package/dist/chunk-QDSZTQXL.js +28 -0
  508. package/dist/chunk-QDSZTQXL.js.map +1 -0
  509. package/dist/chunk-QPTJ5DOO.js +87 -0
  510. package/dist/chunk-QPTJ5DOO.js.map +1 -0
  511. package/dist/chunk-QR7MGGOM.js +49 -0
  512. package/dist/chunk-QR7MGGOM.js.map +1 -0
  513. package/dist/chunk-QSJAIXLM.js +524 -0
  514. package/dist/chunk-QSJAIXLM.js.map +1 -0
  515. package/dist/chunk-QXXLDY6I.js +164 -0
  516. package/dist/chunk-QXXLDY6I.js.map +1 -0
  517. package/dist/chunk-QY77Q7RY.js +129 -0
  518. package/dist/chunk-QY77Q7RY.js.map +1 -0
  519. package/dist/chunk-R4JK2C6D.js +358 -0
  520. package/dist/chunk-R4JK2C6D.js.map +1 -0
  521. package/dist/chunk-RGB4DPMN.js +144 -0
  522. package/dist/chunk-RGB4DPMN.js.map +1 -0
  523. package/dist/chunk-RHMY45DK.js +178 -0
  524. package/dist/chunk-RHMY45DK.js.map +1 -0
  525. package/dist/{chunk-56RJXPHG.js → chunk-RPJOLDSR.js} +15 -4
  526. package/dist/chunk-RPJOLDSR.js.map +1 -0
  527. package/dist/chunk-S7QB5KMM.js +398 -0
  528. package/dist/chunk-S7QB5KMM.js.map +1 -0
  529. package/dist/chunk-SGYBIKQA.js +265 -0
  530. package/dist/chunk-SGYBIKQA.js.map +1 -0
  531. package/dist/chunk-SHECA2N4.js +96 -0
  532. package/dist/chunk-SHECA2N4.js.map +1 -0
  533. package/dist/chunk-SNUDT6AX.js +89 -0
  534. package/dist/chunk-SNUDT6AX.js.map +1 -0
  535. package/dist/chunk-TBVSPSGX.js +14 -0
  536. package/dist/chunk-TBVSPSGX.js.map +1 -0
  537. package/dist/chunk-TNJLNLVE.js +115 -0
  538. package/dist/chunk-TNJLNLVE.js.map +1 -0
  539. package/dist/chunk-TRJS7M2H.js +39 -0
  540. package/dist/chunk-TRJS7M2H.js.map +1 -0
  541. package/dist/chunk-TUID42UE.js +15 -0
  542. package/dist/chunk-TUID42UE.js.map +1 -0
  543. package/dist/chunk-TXBNPEIJ.js +31 -0
  544. package/dist/chunk-TXBNPEIJ.js.map +1 -0
  545. package/dist/chunk-UD5KHQOH.js +322 -0
  546. package/dist/chunk-UD5KHQOH.js.map +1 -0
  547. package/dist/chunk-UPHPFKAD.js +190 -0
  548. package/dist/chunk-UPHPFKAD.js.map +1 -0
  549. package/dist/chunk-UU37OR3D.js +18 -0
  550. package/dist/chunk-UU37OR3D.js.map +1 -0
  551. package/dist/chunk-V3IXAI4L.js +52 -0
  552. package/dist/chunk-V3IXAI4L.js.map +1 -0
  553. package/dist/chunk-VBXKYT4O.js +71 -0
  554. package/dist/chunk-VBXKYT4O.js.map +1 -0
  555. package/dist/chunk-WCMGPAY2.js +103 -0
  556. package/dist/chunk-WCMGPAY2.js.map +1 -0
  557. package/dist/chunk-WEQNPYVA.js +62 -0
  558. package/dist/chunk-WEQNPYVA.js.map +1 -0
  559. package/dist/chunk-WSPXSWFG.js +76 -0
  560. package/dist/chunk-WSPXSWFG.js.map +1 -0
  561. package/dist/chunk-WUVHP3UC.js +530 -0
  562. package/dist/chunk-WUVHP3UC.js.map +1 -0
  563. package/dist/chunk-WVQDIOD7.js +148 -0
  564. package/dist/chunk-WVQDIOD7.js.map +1 -0
  565. package/dist/chunk-X43QQWVC.js +208 -0
  566. package/dist/chunk-X43QQWVC.js.map +1 -0
  567. package/dist/chunk-XO5IOPM5.js +218 -0
  568. package/dist/chunk-XO5IOPM5.js.map +1 -0
  569. package/dist/chunk-Y4VR6VNM.js +44 -0
  570. package/dist/chunk-Y4VR6VNM.js.map +1 -0
  571. package/dist/chunk-YE6KCAIN.js +382 -0
  572. package/dist/chunk-YE6KCAIN.js.map +1 -0
  573. package/dist/collapsible-panel.d.ts +104 -17
  574. package/dist/collapsible-panel.js +174 -14
  575. package/dist/collapsible-panel.js.map +1 -1
  576. package/dist/color-field.d.ts +51 -0
  577. package/dist/color-field.js +92 -0
  578. package/dist/color-field.js.map +1 -0
  579. package/dist/color-picker.d.ts +113 -0
  580. package/dist/color-picker.js +8 -0
  581. package/dist/color-picker.js.map +1 -0
  582. package/dist/color-swatches.d.ts +56 -0
  583. package/dist/color-swatches.js +4 -0
  584. package/dist/color-swatches.js.map +1 -0
  585. package/dist/column-explorer.d.ts +71 -0
  586. package/dist/column-explorer.js +22 -0
  587. package/dist/column-explorer.js.map +1 -0
  588. package/dist/column-track.d.ts +52 -0
  589. package/dist/column-track.js +4 -0
  590. package/dist/column-track.js.map +1 -0
  591. package/dist/combobox.d.ts +44 -0
  592. package/dist/combobox.js +4 -0
  593. package/dist/combobox.js.map +1 -0
  594. package/dist/content-item.d.ts +182 -0
  595. package/dist/content-item.js +8 -0
  596. package/dist/content-item.js.map +1 -0
  597. package/dist/content-swap.d.ts +38 -0
  598. package/dist/content-swap.js +4 -0
  599. package/dist/content-swap.js.map +1 -0
  600. package/dist/corner-status.d.ts +40 -0
  601. package/dist/corner-status.js +4 -0
  602. package/dist/corner-status.js.map +1 -0
  603. package/dist/css-values.d.ts +127 -0
  604. package/dist/css-values.js +3 -0
  605. package/dist/css-values.js.map +1 -0
  606. package/dist/device-class.js +1 -73
  607. package/dist/device-class.js.map +1 -1
  608. package/dist/dialog-surface-controller-BeKZ3e8Z.d.ts +251 -0
  609. package/dist/disclosure-arrow.d.ts +10 -1
  610. package/dist/disclosure-arrow.js +3 -1
  611. package/dist/disclosure.d.ts +66 -0
  612. package/dist/disclosure.js +51 -0
  613. package/dist/disclosure.js.map +1 -0
  614. package/dist/edge-activity-indicator.d.ts +32 -0
  615. package/dist/edge-activity-indicator.js +4 -0
  616. package/dist/edge-activity-indicator.js.map +1 -0
  617. package/dist/editor-frame.d.ts +41 -0
  618. package/dist/editor-frame.js +3 -0
  619. package/dist/editor-frame.js.map +1 -0
  620. package/dist/editor.d.ts +447 -0
  621. package/dist/editor.js +15604 -0
  622. package/dist/editor.js.map +1 -0
  623. package/dist/empty-state.d.ts +9 -2
  624. package/dist/empty-state.js +3 -1
  625. package/dist/extension-attributes-IJ4decoa.d.ts +19 -0
  626. package/dist/file-picker.d.ts +75 -0
  627. package/dist/file-picker.js +4 -0
  628. package/dist/file-picker.js.map +1 -0
  629. package/dist/flex-alignment-4ms8ZbV8.d.ts +5 -0
  630. package/dist/floating-toolbar.d.ts +33 -6
  631. package/dist/floating-toolbar.js +2 -1
  632. package/dist/form.d.ts +45 -0
  633. package/dist/form.js +4 -0
  634. package/dist/form.js.map +1 -0
  635. package/dist/framed-list.d.ts +47 -0
  636. package/dist/framed-list.js +4 -0
  637. package/dist/framed-list.js.map +1 -0
  638. package/dist/gauge.d.ts +73 -0
  639. package/dist/gauge.js +157 -0
  640. package/dist/gauge.js.map +1 -0
  641. package/dist/grid.d.ts +58 -0
  642. package/dist/grid.js +6 -0
  643. package/dist/grid.js.map +1 -0
  644. package/dist/help-tags-register.d.ts +13 -0
  645. package/dist/help-tags-register.js +11 -0
  646. package/dist/help-tags-register.js.map +1 -0
  647. package/dist/index.d.ts +81 -17
  648. package/dist/index.js +101 -27
  649. package/dist/list-action-row.d.ts +69 -12
  650. package/dist/list-action-row.js +10 -1
  651. package/dist/list-detail-dialog.d.ts +131 -0
  652. package/dist/list-detail-dialog.js +173 -0
  653. package/dist/list-detail-dialog.js.map +1 -0
  654. package/dist/list-header.d.ts +122 -10
  655. package/dist/list-header.js +4 -1
  656. package/dist/list-icon-tile-B8dr97OW.d.ts +18 -0
  657. package/dist/list-inset-control.d.ts +14 -4
  658. package/dist/list-inset-control.js +2 -1
  659. package/dist/list-inset-text.d.ts +18 -4
  660. package/dist/list-inset-text.js +2 -1
  661. package/dist/list-item.d.ts +49 -5
  662. package/dist/list-item.js +7 -1
  663. package/dist/list.d.ts +268 -0
  664. package/dist/list.js +7 -0
  665. package/dist/list.js.map +1 -0
  666. package/dist/loading-spinner.d.ts +16 -2
  667. package/dist/loading-spinner.js +3 -1
  668. package/dist/lucide-icon.d.ts +27 -3
  669. package/dist/lucide-icon.js +3 -1
  670. package/dist/message-composer.d.ts +70 -0
  671. package/dist/message-composer.js +6 -0
  672. package/dist/message-composer.js.map +1 -0
  673. package/dist/nav-stack-DKrvqFjA.d.ts +206 -0
  674. package/dist/nav-stack.d.ts +17 -38
  675. package/dist/nav-stack.js +18 -1
  676. package/dist/paged-view.d.ts +47 -0
  677. package/dist/paged-view.js +86 -0
  678. package/dist/paged-view.js.map +1 -0
  679. package/dist/pane.d.ts +275 -0
  680. package/dist/pane.js +8 -0
  681. package/dist/pane.js.map +1 -0
  682. package/dist/panel-toolbar-CEcHHDkn.d.ts +85 -0
  683. package/dist/popup-menu-register.d.ts +11 -0
  684. package/dist/popup-menu-register.js +7 -0
  685. package/dist/popup-menu-register.js.map +1 -0
  686. package/dist/popup-menu.d.ts +193 -0
  687. package/dist/popup-menu.js +8 -0
  688. package/dist/popup-menu.js.map +1 -0
  689. package/dist/progress-bar.d.ts +52 -0
  690. package/dist/progress-bar.js +68 -0
  691. package/dist/progress-bar.js.map +1 -0
  692. package/dist/progress-ring.d.ts +44 -0
  693. package/dist/progress-ring.js +73 -0
  694. package/dist/progress-ring.js.map +1 -0
  695. package/dist/radio-group.d.ts +79 -0
  696. package/dist/radio-group.js +6 -0
  697. package/dist/radio-group.js.map +1 -0
  698. package/dist/resizable-region.d.ts +36 -3
  699. package/dist/resizable-region.js +2 -1
  700. package/dist/row.d.ts +58 -0
  701. package/dist/row.js +7 -0
  702. package/dist/row.js.map +1 -0
  703. package/dist/scroll-clearance-BikHljTc.d.ts +14 -0
  704. package/dist/scroll-effect.d.ts +86 -0
  705. package/dist/scroll-effect.js +5 -0
  706. package/dist/scroll-effect.js.map +1 -0
  707. package/dist/search-field-5lNIszda.d.ts +212 -0
  708. package/dist/search-field-model.d.ts +4 -0
  709. package/dist/search-field-model.js +3 -0
  710. package/dist/search-field-model.js.map +1 -0
  711. package/dist/search-field.d.ts +4 -0
  712. package/dist/search-field.js +6 -0
  713. package/dist/search-field.js.map +1 -0
  714. package/dist/segmented-control.d.ts +40 -10
  715. package/dist/segmented-control.js +3 -1
  716. package/dist/select-register.d.ts +6 -3
  717. package/dist/select-register.js +403 -8
  718. package/dist/select-register.js.map +1 -1
  719. package/dist/select.d.ts +149 -9
  720. package/dist/select.js +6 -1
  721. package/dist/selection.d.ts +54 -0
  722. package/dist/selection.js +3 -0
  723. package/dist/selection.js.map +1 -0
  724. package/dist/semantic-content-BbzjvSu9.d.ts +14 -0
  725. package/dist/semantic-tone-CdW013KF.d.ts +4 -0
  726. package/dist/sides-BPSWde0A.d.ts +4 -0
  727. package/dist/sized-region.d.ts +44 -0
  728. package/dist/sized-region.js +4 -0
  729. package/dist/sized-region.js.map +1 -0
  730. package/dist/skeleton.d.ts +18 -7
  731. package/dist/skeleton.js +3 -1
  732. package/dist/slider.d.ts +74 -0
  733. package/dist/slider.js +103 -0
  734. package/dist/slider.js.map +1 -0
  735. package/dist/spacer.d.ts +22 -0
  736. package/dist/spacer.js +5 -0
  737. package/dist/spacer.js.map +1 -0
  738. package/dist/split-button.d.ts +69 -0
  739. package/dist/split-button.js +7 -0
  740. package/dist/split-button.js.map +1 -0
  741. package/dist/split-view.d.ts +71 -6
  742. package/dist/split-view.js +18 -15
  743. package/dist/split-view.js.map +1 -1
  744. package/dist/state-banner.d.ts +59 -7
  745. package/dist/state-banner.js +4 -1
  746. package/dist/styles/anchored-surface.css +44 -0
  747. package/dist/styles/backdrop-image.css +330 -0
  748. package/dist/styles/badge.css +227 -0
  749. package/dist/styles/button.css +396 -0
  750. package/dist/styles/catalog/components/catalog-example-stack.css +14 -0
  751. package/dist/styles/catalog/components/catalog-example.css +250 -0
  752. package/dist/styles/catalog/components/catalog-stage.css +61 -0
  753. package/dist/styles/catalog/components/catalog.css +26 -0
  754. package/dist/styles/catalog.css +5 -522
  755. package/dist/styles/checkbox-group.css +63 -0
  756. package/dist/styles/checkbox.css +122 -0
  757. package/dist/styles/chip.css +234 -0
  758. package/dist/styles/choice-chips.css +264 -0
  759. package/dist/styles/collapsible-panel.css +459 -16
  760. package/dist/styles/color-field.css +125 -0
  761. package/dist/styles/color-picker.css +366 -0
  762. package/dist/styles/color-swatches.css +122 -0
  763. package/dist/styles/column-explorer.css +6 -0
  764. package/dist/styles/column-track.css +62 -0
  765. package/dist/styles/combobox.css +115 -0
  766. package/dist/styles/components/actions/button/button.css +396 -0
  767. package/dist/styles/components/actions/floating-toolbar/floating-toolbar.css +119 -0
  768. package/dist/styles/components/actions/popup-menu/popup-menu.css +651 -0
  769. package/dist/styles/components/actions/split-button/split-button.css +141 -0
  770. package/dist/styles/components/actions/toolbar/toolbar.css +524 -0
  771. package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +1033 -0
  772. package/dist/styles/components/actions/toolbar-text/toolbar-text.css +256 -0
  773. package/dist/styles/components/collections/column-explorer/column-explorer.css +6 -0
  774. package/dist/styles/components/collections/framed-list/framed-list.css +53 -0
  775. package/dist/styles/components/collections/list/list.css +301 -0
  776. package/dist/styles/components/collections/list-action-row/list-action-row.css +466 -0
  777. package/dist/styles/components/collections/list-header/list-header.css +272 -0
  778. package/dist/styles/components/collections/list-inset-control/list-inset-control.css +30 -0
  779. package/dist/styles/components/collections/list-inset-text/list-inset-text.css +29 -0
  780. package/dist/styles/components/collections/list-item/list-item.css +532 -0
  781. package/dist/styles/components/collections/summary-row/summary-row.css +198 -0
  782. package/dist/styles/components/collections/tree-list/tree-list.css +8 -0
  783. package/dist/styles/components/data-display/value-preview/value-preview.css +18 -0
  784. package/dist/styles/components/data-display/value-table/value-table.css +184 -0
  785. package/dist/styles/components/feedback/anchored-surface/anchored-surface.css +44 -0
  786. package/dist/styles/components/feedback/badge/badge.css +227 -0
  787. package/dist/styles/components/feedback/chip/chip.css +234 -0
  788. package/dist/styles/components/feedback/corner-status/corner-status.css +60 -0
  789. package/dist/styles/components/feedback/edge-activity-indicator/edge-activity-indicator.css +127 -0
  790. package/dist/styles/components/feedback/empty-state/empty-state.css +47 -0
  791. package/dist/styles/components/feedback/gauge/gauge.css +132 -0
  792. package/dist/styles/components/feedback/loading-spinner/loading-spinner.css +25 -0
  793. package/dist/styles/components/feedback/progress-bar/progress-bar.css +168 -0
  794. package/dist/styles/components/feedback/progress-ring/progress-ring.css +91 -0
  795. package/dist/styles/components/feedback/skeleton/skeleton.css +92 -0
  796. package/dist/styles/components/feedback/state-banner/state-banner.css +317 -0
  797. package/dist/styles/components/forms/checkbox/checkbox.css +122 -0
  798. package/dist/styles/components/forms/checkbox-group/checkbox-group.css +63 -0
  799. package/dist/styles/components/forms/choice-chips/choice-chips.css +264 -0
  800. package/dist/styles/components/forms/color-field/color-field.css +125 -0
  801. package/dist/styles/components/forms/color-picker/color-picker.css +366 -0
  802. package/dist/styles/components/forms/color-swatches/color-swatches.css +122 -0
  803. package/dist/styles/components/forms/combobox/combobox.css +115 -0
  804. package/dist/styles/components/forms/file-picker/file-picker.css +92 -0
  805. package/dist/styles/components/forms/form/form.css +6 -0
  806. package/dist/styles/components/forms/message-composer/message-composer.css +84 -0
  807. package/dist/styles/components/forms/radio-group/radio-group.css +265 -0
  808. package/dist/styles/components/forms/search-field/search-field.css +441 -0
  809. package/dist/styles/components/forms/segmented-control/segmented-control.css +212 -0
  810. package/dist/styles/components/forms/select/select.css +663 -0
  811. package/dist/styles/components/forms/slider/slider.css +241 -0
  812. package/dist/styles/components/forms/switch/switch.css +132 -0
  813. package/dist/styles/components/forms/tag-field/tag-field.css +8 -0
  814. package/dist/styles/components/forms/text-field/text-field.css +237 -0
  815. package/dist/styles/components/layout/collapsible-panel/collapsible-panel.css +589 -0
  816. package/dist/styles/components/layout/column-track/column-track.css +62 -0
  817. package/dist/styles/components/layout/content-swap/content-swap.css +154 -0
  818. package/dist/styles/components/layout/grid/grid.css +88 -0
  819. package/dist/styles/components/layout/pane/pane.css +796 -0
  820. package/dist/styles/components/layout/resizable-region/resizable-region.css +536 -0
  821. package/dist/styles/components/layout/row/row.css +125 -0
  822. package/dist/styles/components/layout/sized-region/sized-region.css +22 -0
  823. package/dist/styles/components/layout/spacer/spacer.css +11 -0
  824. package/dist/styles/components/layout/split-view/split-view.css +157 -0
  825. package/dist/styles/components/layout/workbench/workbench.css +1077 -0
  826. package/dist/styles/components/media/lucide-icon/lucide-icon.css +15 -0
  827. package/dist/styles/components/navigation/disclosure-arrow/disclosure-arrow.css +43 -0
  828. package/dist/styles/components/navigation/nav-stack/nav-stack.css +617 -0
  829. package/dist/styles/components/navigation/paged-view/paged-view.css +160 -0
  830. package/dist/styles/components/navigation/tab-bar/tab-bar.css +210 -0
  831. package/dist/styles/components/navigation/tab-bar-item/tab-bar-item.css +450 -0
  832. package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +461 -0
  833. package/dist/styles/components/navigation/tab-panel/tab-panel.css +7 -0
  834. package/dist/styles/components/surfaces/backdrop-image/backdrop-image.css +208 -0
  835. package/dist/styles/components/surfaces/content-item/content-item.css +220 -0
  836. package/dist/styles/components/surfaces/disclosure/disclosure.css +136 -0
  837. package/dist/styles/components/surfaces/editor-frame/editor-frame.css +128 -0
  838. package/dist/styles/components/surfaces/scroll-effect/scroll-effect.css +121 -0
  839. package/dist/styles/components/surfaces/sunken-panel/sunken-panel.css +34 -0
  840. package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +1132 -0
  841. package/dist/styles/components/typography/text/text.css +270 -0
  842. package/dist/styles/content-item.css +551 -0
  843. package/dist/styles/content-swap.css +154 -0
  844. package/dist/styles/corner-status.css +60 -0
  845. package/dist/styles/disclosure-arrow.css +20 -0
  846. package/dist/styles/disclosure.css +136 -0
  847. package/dist/styles/document.css +102 -0
  848. package/dist/styles/edge-activity-indicator.css +127 -0
  849. package/dist/styles/editor/editor.css +585 -0
  850. package/dist/styles/editor-frame.css +128 -0
  851. package/dist/styles/editor.css +4 -0
  852. package/dist/styles/file-picker.css +92 -0
  853. package/dist/styles/floating-toolbar.css +87 -6
  854. package/dist/styles/form.css +6 -0
  855. package/dist/styles/foundation.css +550 -51
  856. package/dist/styles/framed-list.css +53 -0
  857. package/dist/styles/gauge.css +132 -0
  858. package/dist/styles/grid.css +88 -0
  859. package/dist/styles/layout.css +3 -41
  860. package/dist/styles/list-action-row.css +323 -17
  861. package/dist/styles/list-detail-dialog.css +11 -0
  862. package/dist/styles/list-header.css +172 -60
  863. package/dist/styles/list-inset-control.css +25 -2
  864. package/dist/styles/list-inset-text.css +27 -3
  865. package/dist/styles/list-item.css +443 -34
  866. package/dist/styles/list.css +301 -0
  867. package/dist/styles/loading-spinner.css +4 -0
  868. package/dist/styles/lucide-icon.css +9 -0
  869. package/dist/styles/message-composer.css +84 -0
  870. package/dist/styles/nav-stack.css +553 -47
  871. package/dist/styles/overlay-sheet.css +211 -0
  872. package/dist/styles/overlay-toast.css +149 -0
  873. package/dist/styles/overlay-tooltip.css +55 -0
  874. package/dist/styles/paged-view.css +160 -0
  875. package/dist/styles/pane.css +796 -0
  876. package/dist/styles/popup-menu.css +651 -0
  877. package/dist/styles/progress-bar.css +168 -0
  878. package/dist/styles/progress-ring.css +91 -0
  879. package/dist/styles/radio-group.css +265 -0
  880. package/dist/styles/resizable-region.css +429 -4
  881. package/dist/styles/row.css +125 -0
  882. package/dist/styles/scroll-effect.css +121 -0
  883. package/dist/styles/search-field.css +441 -0
  884. package/dist/styles/segmented-control.css +53 -10
  885. package/dist/styles/select.css +599 -74
  886. package/dist/styles/sized-region.css +22 -0
  887. package/dist/styles/skeleton.css +64 -3
  888. package/dist/styles/slider.css +241 -0
  889. package/dist/styles/spacer.css +11 -0
  890. package/dist/styles/split-button.css +141 -0
  891. package/dist/styles/split-view.css +125 -3
  892. package/dist/styles/state-banner.css +169 -25
  893. package/dist/styles/styles.css +52 -3
  894. package/dist/styles/summary-row.css +198 -0
  895. package/dist/styles/sunken-panel.css +34 -0
  896. package/dist/styles/surface-scaffold.css +1132 -0
  897. package/dist/styles/switch.css +132 -0
  898. package/dist/styles/tab-bar-item.css +450 -0
  899. package/dist/styles/tab-bar.css +174 -9
  900. package/dist/styles/tab-navigator.css +461 -0
  901. package/dist/styles/tab-panel.css +7 -0
  902. package/dist/styles/tag-field.css +8 -0
  903. package/dist/styles/text-field.css +237 -0
  904. package/dist/styles/text.css +270 -0
  905. package/dist/styles/toolbar-control-group.css +886 -78
  906. package/dist/styles/toolbar-text.css +223 -7
  907. package/dist/styles/toolbar.css +474 -11
  908. package/dist/styles/tree-list.css +8 -0
  909. package/dist/styles/value-preview.css +18 -0
  910. package/dist/styles/value-table.css +116 -7
  911. package/dist/styles/webawesome.css +823 -24
  912. package/dist/styles/workbench-dialog.css +10 -0
  913. package/dist/styles/workbench.css +990 -7
  914. package/dist/summary-row.d.ts +73 -0
  915. package/dist/summary-row.js +5 -0
  916. package/dist/summary-row.js.map +1 -0
  917. package/dist/sunken-panel.d.ts +42 -0
  918. package/dist/sunken-panel.js +5 -0
  919. package/dist/sunken-panel.js.map +1 -0
  920. package/dist/surface-scaffold-register.d.ts +12 -0
  921. package/dist/surface-scaffold-register.js +11 -0
  922. package/dist/surface-scaffold-register.js.map +1 -0
  923. package/dist/surface-scaffold.d.ts +283 -0
  924. package/dist/surface-scaffold.js +10 -0
  925. package/dist/surface-scaffold.js.map +1 -0
  926. package/dist/surface-tint-DQgYCaP9.d.ts +25 -0
  927. package/dist/switch.d.ts +38 -0
  928. package/dist/switch.js +4 -0
  929. package/dist/switch.js.map +1 -0
  930. package/dist/tab-bar-item.d.ts +76 -0
  931. package/dist/tab-bar-item.js +6 -0
  932. package/dist/tab-bar-item.js.map +1 -0
  933. package/dist/tab-bar.d.ts +46 -7
  934. package/dist/tab-bar.js +2 -1
  935. package/dist/tab-navigator.d.ts +177 -0
  936. package/dist/tab-navigator.js +155 -0
  937. package/dist/tab-navigator.js.map +1 -0
  938. package/dist/tab-panel.d.ts +35 -0
  939. package/dist/tab-panel.js +4 -0
  940. package/dist/tab-panel.js.map +1 -0
  941. package/dist/tag-field.d.ts +56 -0
  942. package/dist/tag-field.js +7 -0
  943. package/dist/tag-field.js.map +1 -0
  944. package/dist/text-field.d.ts +119 -0
  945. package/dist/text-field.js +6 -0
  946. package/dist/text-field.js.map +1 -0
  947. package/dist/text.d.ts +135 -0
  948. package/dist/text.js +4 -0
  949. package/dist/text.js.map +1 -0
  950. package/dist/toolbar-control-group.d.ts +201 -8
  951. package/dist/toolbar-control-group.js +6 -1
  952. package/dist/toolbar-text.d.ts +71 -9
  953. package/dist/toolbar-text.js +3 -1
  954. package/dist/toolbar.d.ts +88 -7
  955. package/dist/toolbar.js +2 -1
  956. package/dist/tree-list.d.ts +48 -0
  957. package/dist/tree-list.js +12 -0
  958. package/dist/tree-list.js.map +1 -0
  959. package/dist/tree-rows-Bms5QJvG.d.ts +68 -0
  960. package/dist/types-DmHWkSd6.d.ts +207 -0
  961. package/dist/value-preview.d.ts +25 -0
  962. package/dist/value-preview.js +4 -0
  963. package/dist/value-preview.js.map +1 -0
  964. package/dist/value-table.d.ts +37 -4
  965. package/dist/value-table.js +3 -1
  966. package/dist/view-runtime.d.ts +9 -0
  967. package/dist/view-runtime.js +8 -0
  968. package/dist/view-runtime.js.map +1 -0
  969. package/dist/webawesome.d.ts +11 -1
  970. package/dist/wire-catalog.d.ts +119 -5
  971. package/dist/wire-catalog.js +316 -14
  972. package/dist/wire-catalog.js.map +1 -1
  973. package/dist/wire-checkboxes.d.ts +10 -0
  974. package/dist/wire-checkboxes.js +4 -0
  975. package/dist/{wire-token-search-fields.js.map → wire-checkboxes.js.map} +1 -1
  976. package/dist/wire-choice-chips.d.ts +19 -0
  977. package/dist/wire-choice-chips.js +5 -0
  978. package/dist/wire-choice-chips.js.map +1 -0
  979. package/dist/wire-color-fields.d.ts +33 -0
  980. package/dist/wire-color-fields.js +12 -0
  981. package/dist/wire-color-fields.js.map +1 -0
  982. package/dist/wire-color-pickers.d.ts +35 -0
  983. package/dist/wire-color-pickers.js +10 -0
  984. package/dist/wire-color-pickers.js.map +1 -0
  985. package/dist/wire-column-explorer.d.ts +13 -0
  986. package/dist/wire-column-explorer.js +3 -0
  987. package/dist/wire-column-explorer.js.map +1 -0
  988. package/dist/wire-comboboxes.d.ts +28 -0
  989. package/dist/wire-comboboxes.js +5 -0
  990. package/dist/wire-comboboxes.js.map +1 -0
  991. package/dist/wire-content-items.d.ts +24 -0
  992. package/dist/wire-content-items.js +5 -0
  993. package/dist/wire-content-items.js.map +1 -0
  994. package/dist/wire-corner-status.d.ts +11 -0
  995. package/dist/wire-corner-status.js +4 -0
  996. package/dist/wire-corner-status.js.map +1 -0
  997. package/dist/wire-file-pickers.d.ts +27 -0
  998. package/dist/wire-file-pickers.js +3 -0
  999. package/dist/wire-file-pickers.js.map +1 -0
  1000. package/dist/wire-forms.d.ts +14 -0
  1001. package/dist/wire-forms.js +3 -0
  1002. package/dist/wire-forms.js.map +1 -0
  1003. package/dist/wire-list-focus-scroll.d.ts +16 -0
  1004. package/dist/wire-list-focus-scroll.js +3 -0
  1005. package/dist/wire-list-focus-scroll.js.map +1 -0
  1006. package/dist/wire-list-reorder.d.ts +41 -0
  1007. package/dist/wire-list-reorder.js +3 -0
  1008. package/dist/wire-list-reorder.js.map +1 -0
  1009. package/dist/wire-message-composers.d.ts +17 -0
  1010. package/dist/wire-message-composers.js +3 -0
  1011. package/dist/wire-message-composers.js.map +1 -0
  1012. package/dist/wire-nav-stack.d.ts +4 -1
  1013. package/dist/wire-nav-stack.js +1 -85
  1014. package/dist/wire-nav-stack.js.map +1 -1
  1015. package/dist/wire-overlay-sheets.d.ts +20 -0
  1016. package/dist/wire-overlay-sheets.js +5 -0
  1017. package/dist/wire-overlay-sheets.js.map +1 -0
  1018. package/dist/wire-paged-views.d.ts +27 -0
  1019. package/dist/wire-paged-views.js +186 -0
  1020. package/dist/wire-paged-views.js.map +1 -0
  1021. package/dist/wire-pane-chrome.d.ts +21 -0
  1022. package/dist/wire-pane-chrome.js +67 -0
  1023. package/dist/wire-pane-chrome.js.map +1 -0
  1024. package/dist/wire-resizable-regions.d.ts +2 -1
  1025. package/dist/wire-resizable-regions.js +4 -1
  1026. package/dist/wire-scroll-dividers.d.ts +87 -0
  1027. package/dist/wire-scroll-dividers.js +3 -0
  1028. package/dist/wire-scroll-dividers.js.map +1 -0
  1029. package/dist/{wire-token-search-fields.d.ts → wire-search-fields.d.ts} +35 -25
  1030. package/dist/wire-search-fields.js +8 -0
  1031. package/dist/wire-search-fields.js.map +1 -0
  1032. package/dist/wire-sidebar.d.ts +24 -4
  1033. package/dist/wire-sidebar.js +1 -114
  1034. package/dist/wire-sidebar.js.map +1 -1
  1035. package/dist/wire-sliders.d.ts +12 -0
  1036. package/dist/wire-sliders.js +3 -0
  1037. package/dist/wire-sliders.js.map +1 -0
  1038. package/dist/wire-summary-rows.d.ts +18 -0
  1039. package/dist/wire-summary-rows.js +4 -0
  1040. package/dist/wire-summary-rows.js.map +1 -0
  1041. package/dist/wire-tab-bars.d.ts +57 -3
  1042. package/dist/wire-tab-bars.js +1 -1
  1043. package/dist/wire-tab-navigator.d.ts +13 -0
  1044. package/dist/wire-tab-navigator.js +4 -0
  1045. package/dist/wire-tab-navigator.js.map +1 -0
  1046. package/dist/wire-tag-fields.d.ts +41 -0
  1047. package/dist/wire-tag-fields.js +10 -0
  1048. package/dist/wire-tag-fields.js.map +1 -0
  1049. package/dist/wire-text-fields.d.ts +12 -0
  1050. package/dist/wire-text-fields.js +3 -0
  1051. package/dist/wire-text-fields.js.map +1 -0
  1052. package/dist/wire-toolbar-visibility.d.ts +13 -0
  1053. package/dist/wire-toolbar-visibility.js +3 -0
  1054. package/dist/wire-toolbar-visibility.js.map +1 -0
  1055. package/dist/wire-tree-list.d.ts +53 -0
  1056. package/dist/wire-tree-list.js +3 -0
  1057. package/dist/wire-tree-list.js.map +1 -0
  1058. package/dist/wire-workbench.d.ts +132 -0
  1059. package/dist/wire-workbench.js +8 -0
  1060. package/dist/wire-workbench.js.map +1 -0
  1061. package/dist/workbench-dialog.d.ts +114 -0
  1062. package/dist/workbench-dialog.js +133 -0
  1063. package/dist/workbench-dialog.js.map +1 -0
  1064. package/dist/workbench.d.ts +271 -10
  1065. package/dist/workbench.js +25 -15
  1066. package/dist/workbench.js.map +1 -1
  1067. package/docs/accessibility.md +885 -40
  1068. package/docs/anchored-surface.md +107 -0
  1069. package/docs/app-layouts.md +270 -11
  1070. package/docs/apple-hig.md +2 -0
  1071. package/docs/backdrop-image.md +142 -0
  1072. package/docs/button.md +43 -0
  1073. package/docs/catalog.md +599 -63
  1074. package/docs/collapsible-panel.md +308 -25
  1075. package/docs/color-field.md +65 -0
  1076. package/docs/color-picker.md +102 -0
  1077. package/docs/color-swatches.md +46 -0
  1078. package/docs/column-explorer.md +79 -0
  1079. package/docs/component-contract.md +980 -61
  1080. package/docs/component-integration.md +79 -0
  1081. package/docs/component-selection.md +1190 -110
  1082. package/docs/dark-mode-checklist.md +15 -0
  1083. package/docs/data-tables-and-lists.md +18 -0
  1084. package/docs/design/sketch/Kerf-UI.sketch +0 -0
  1085. package/docs/design/sketch/README.md +73 -0
  1086. package/docs/design/sketch/advanced/README.md +75 -0
  1087. package/docs/design/sketch/button/README.md +270 -0
  1088. package/docs/design/sketch/content/README.md +70 -0
  1089. package/docs/design/sketch/coverage.md +162 -0
  1090. package/docs/design/sketch/forms/README.md +98 -0
  1091. package/docs/design/sketch/lists/README.md +65 -0
  1092. package/docs/design/sketch/toolbar/README.md +73 -0
  1093. package/docs/design/sketch/unified/README.md +69 -0
  1094. package/docs/design/sketch/unified/pages/advanced.png +0 -0
  1095. package/docs/design/sketch/unified/pages/button.png +0 -0
  1096. package/docs/design/sketch/unified/pages/content.png +0 -0
  1097. package/docs/design/sketch/unified/pages/forms.png +0 -0
  1098. package/docs/design/sketch/unified/pages/lists.png +0 -0
  1099. package/docs/design/sketch/unified/pages/toolbar.png +0 -0
  1100. package/docs/design/sketch-runner.md +87 -0
  1101. package/docs/design/templates/button/emphasis-dark.svg +1 -0
  1102. package/docs/design/templates/button/emphasis.svg +1 -0
  1103. package/docs/design/templates/button/full-width-dark.svg +1 -0
  1104. package/docs/design/templates/button/full-width.svg +1 -0
  1105. package/docs/design/templates/button/icons-dark.svg +1 -0
  1106. package/docs/design/templates/button/icons.svg +1 -0
  1107. package/docs/design/templates/button/pill-dark.svg +1 -0
  1108. package/docs/design/templates/button/pill.svg +1 -0
  1109. package/docs/design/templates/button/states-dark.svg +1 -0
  1110. package/docs/design/templates/button/states.svg +1 -0
  1111. package/docs/design/templates/button/toggles-dark.svg +1 -0
  1112. package/docs/design/templates/button/toggles.svg +1 -0
  1113. package/docs/design/templates/button/tones-dark.svg +1 -0
  1114. package/docs/design/templates/button/tones.svg +1 -0
  1115. package/docs/design/templates/button-dark.svg +1 -0
  1116. package/docs/design/templates/button.svg +1 -0
  1117. package/docs/design/templates/checkbox/compact-dark.svg +1 -0
  1118. package/docs/design/templates/checkbox/compact.svg +1 -0
  1119. package/docs/design/templates/checkbox/error-dark.svg +1 -0
  1120. package/docs/design/templates/checkbox/error.svg +1 -0
  1121. package/docs/design/templates/checkbox/mixed-dark.svg +1 -0
  1122. package/docs/design/templates/checkbox/mixed.svg +1 -0
  1123. package/docs/design/templates/checkbox/states-dark.svg +1 -0
  1124. package/docs/design/templates/checkbox/states.svg +1 -0
  1125. package/docs/design/templates/checkbox-dark.svg +1 -0
  1126. package/docs/design/templates/checkbox-group/horizontal-dark.svg +1 -0
  1127. package/docs/design/templates/checkbox-group/horizontal.svg +1 -0
  1128. package/docs/design/templates/checkbox-group/vertical-dark.svg +1 -0
  1129. package/docs/design/templates/checkbox-group/vertical.svg +1 -0
  1130. package/docs/design/templates/checkbox-group-dark.svg +1 -0
  1131. package/docs/design/templates/checkbox-group.svg +1 -0
  1132. package/docs/design/templates/checkbox.svg +1 -0
  1133. package/docs/design/templates/chip/action-filters-dark.svg +1 -0
  1134. package/docs/design/templates/chip/action-filters.svg +1 -0
  1135. package/docs/design/templates/chip/tags-dark.svg +1 -0
  1136. package/docs/design/templates/chip/tags.svg +1 -0
  1137. package/docs/design/templates/chip-dark.svg +1 -0
  1138. package/docs/design/templates/chip.svg +1 -0
  1139. package/docs/design/templates/choice-chips/color-palette-dark.svg +1 -0
  1140. package/docs/design/templates/choice-chips/color-palette.svg +1 -0
  1141. package/docs/design/templates/choice-chips/compact-icons-dark.svg +1 -0
  1142. package/docs/design/templates/choice-chips/compact-icons.svg +1 -0
  1143. package/docs/design/templates/choice-chips/multiple-dark.svg +1 -0
  1144. package/docs/design/templates/choice-chips/multiple.svg +1 -0
  1145. package/docs/design/templates/choice-chips-dark.svg +1 -0
  1146. package/docs/design/templates/choice-chips.svg +1 -0
  1147. package/docs/design/templates/color-field/compact-dark.svg +1 -0
  1148. package/docs/design/templates/color-field/compact.svg +1 -0
  1149. package/docs/design/templates/color-field/error-dark.svg +1 -0
  1150. package/docs/design/templates/color-field/error.svg +1 -0
  1151. package/docs/design/templates/color-field/hint-dark.svg +1 -0
  1152. package/docs/design/templates/color-field/hint.svg +1 -0
  1153. package/docs/design/templates/color-field-dark.svg +1 -0
  1154. package/docs/design/templates/color-field.svg +1 -0
  1155. package/docs/design/templates/color-picker/gray-dark.svg +1 -0
  1156. package/docs/design/templates/color-picker/gray.svg +1 -0
  1157. package/docs/design/templates/color-picker/hsb-dark.svg +1 -0
  1158. package/docs/design/templates/color-picker/hsb.svg +1 -0
  1159. package/docs/design/templates/color-picker/rgb-dark.svg +1 -0
  1160. package/docs/design/templates/color-picker/rgb.svg +1 -0
  1161. package/docs/design/templates/color-picker-dark.svg +1 -0
  1162. package/docs/design/templates/color-picker.svg +1 -0
  1163. package/docs/design/templates/color-swatches/palette-dark.svg +1 -0
  1164. package/docs/design/templates/color-swatches/palette.svg +1 -0
  1165. package/docs/design/templates/color-swatches-dark.svg +1 -0
  1166. package/docs/design/templates/color-swatches.svg +1 -0
  1167. package/docs/design/templates/disclosure/embedded-dark.svg +1 -0
  1168. package/docs/design/templates/disclosure/embedded.svg +1 -0
  1169. package/docs/design/templates/disclosure/framed-sunken-dark.svg +1 -0
  1170. package/docs/design/templates/disclosure/framed-sunken.svg +1 -0
  1171. package/docs/design/templates/disclosure/plain-dark.svg +1 -0
  1172. package/docs/design/templates/disclosure/plain.svg +1 -0
  1173. package/docs/design/templates/disclosure-dark.svg +1 -0
  1174. package/docs/design/templates/disclosure.svg +1 -0
  1175. package/docs/design/templates/empty-state/filtered-dark.svg +1 -1
  1176. package/docs/design/templates/empty-state/filtered.svg +1 -1
  1177. package/docs/design/templates/empty-state/with-action-dark.svg +1 -1
  1178. package/docs/design/templates/empty-state/with-action.svg +1 -1
  1179. package/docs/design/templates/empty-state-dark.svg +1 -7
  1180. package/docs/design/templates/empty-state.svg +1 -7
  1181. package/docs/design/templates/gauge/bare-dark.svg +1 -0
  1182. package/docs/design/templates/gauge/bare.svg +1 -0
  1183. package/docs/design/templates/gauge/full-dark.svg +1 -0
  1184. package/docs/design/templates/gauge/full.svg +1 -0
  1185. package/docs/design/templates/gauge-dark.svg +1 -0
  1186. package/docs/design/templates/gauge.svg +1 -0
  1187. package/docs/design/templates/list/compact-dark.svg +1 -0
  1188. package/docs/design/templates/list/compact.svg +1 -0
  1189. package/docs/design/templates/list/stack-dark.svg +1 -0
  1190. package/docs/design/templates/list/stack.svg +1 -0
  1191. package/docs/design/templates/list-action-row/default-dark.svg +1 -1
  1192. package/docs/design/templates/list-action-row/default.svg +1 -1
  1193. package/docs/design/templates/list-action-row/icon-tile-dark.svg +1 -0
  1194. package/docs/design/templates/list-action-row/icon-tile.svg +1 -0
  1195. package/docs/design/templates/list-action-row/selected-dark.svg +1 -1
  1196. package/docs/design/templates/list-action-row/selected.svg +1 -1
  1197. package/docs/design/templates/list-action-row/trailing-menu-dark.svg +1 -0
  1198. package/docs/design/templates/list-action-row/trailing-menu.svg +1 -0
  1199. package/docs/design/templates/list-action-row-dark.svg +1 -7
  1200. package/docs/design/templates/list-action-row.svg +1 -7
  1201. package/docs/design/templates/list-dark.svg +1 -0
  1202. package/docs/design/templates/list-header/action-dark.svg +1 -1
  1203. package/docs/design/templates/list-header/action.svg +1 -1
  1204. package/docs/design/templates/list-header/count-dark.svg +1 -1
  1205. package/docs/design/templates/list-header/count.svg +1 -1
  1206. package/docs/design/templates/list-header/inline-action-dark.svg +1 -0
  1207. package/docs/design/templates/list-header/inline-action.svg +1 -0
  1208. package/docs/design/templates/list-header/size-l-dark.svg +1 -0
  1209. package/docs/design/templates/list-header/size-l.svg +1 -0
  1210. package/docs/design/templates/list-header/size-m-dark.svg +1 -0
  1211. package/docs/design/templates/list-header/size-m.svg +1 -0
  1212. package/docs/design/templates/list-header/size-xl-dark.svg +1 -0
  1213. package/docs/design/templates/list-header/size-xl.svg +1 -0
  1214. package/docs/design/templates/list-header/size-xs-dark.svg +1 -0
  1215. package/docs/design/templates/list-header/size-xs.svg +1 -0
  1216. package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -1
  1217. package/docs/design/templates/list-header/toggle-collapsed.svg +1 -1
  1218. package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -1
  1219. package/docs/design/templates/list-header/toggle-expanded.svg +1 -1
  1220. package/docs/design/templates/list-header-dark.svg +1 -11
  1221. package/docs/design/templates/list-header.svg +1 -11
  1222. package/docs/design/templates/list-item/default-dark.svg +1 -1
  1223. package/docs/design/templates/list-item/default.svg +1 -1
  1224. package/docs/design/templates/list-item/icon-tile-dark.svg +1 -0
  1225. package/docs/design/templates/list-item/icon-tile.svg +1 -0
  1226. package/docs/design/templates/list-item/multiline-dark.svg +1 -1
  1227. package/docs/design/templates/list-item/multiline.svg +1 -1
  1228. package/docs/design/templates/list-item/selected-dark.svg +1 -1
  1229. package/docs/design/templates/list-item/selected.svg +1 -1
  1230. package/docs/design/templates/list-item/trailing-dark.svg +1 -1
  1231. package/docs/design/templates/list-item/trailing.svg +1 -1
  1232. package/docs/design/templates/list-item-dark.svg +1 -11
  1233. package/docs/design/templates/list-item.svg +1 -11
  1234. package/docs/design/templates/list.svg +1 -0
  1235. package/docs/design/templates/message-composer/chat-dark.svg +1 -0
  1236. package/docs/design/templates/message-composer/chat.svg +1 -0
  1237. package/docs/design/templates/message-composer/prompt-dark.svg +1 -0
  1238. package/docs/design/templates/message-composer/prompt.svg +1 -0
  1239. package/docs/design/templates/message-composer-dark.svg +1 -0
  1240. package/docs/design/templates/message-composer.svg +1 -0
  1241. package/docs/design/templates/progress-bar/determinate-dark.svg +1 -0
  1242. package/docs/design/templates/progress-bar/determinate.svg +1 -0
  1243. package/docs/design/templates/progress-bar/tones-dark.svg +1 -0
  1244. package/docs/design/templates/progress-bar/tones.svg +1 -0
  1245. package/docs/design/templates/progress-bar-dark.svg +1 -0
  1246. package/docs/design/templates/progress-bar.svg +1 -0
  1247. package/docs/design/templates/progress-ring/sizes-dark.svg +1 -0
  1248. package/docs/design/templates/progress-ring/sizes.svg +1 -0
  1249. package/docs/design/templates/progress-ring/tones-dark.svg +1 -0
  1250. package/docs/design/templates/progress-ring/tones.svg +1 -0
  1251. package/docs/design/templates/progress-ring-dark.svg +1 -0
  1252. package/docs/design/templates/progress-ring.svg +1 -0
  1253. package/docs/design/templates/radio-group/horizontal-dark.svg +1 -0
  1254. package/docs/design/templates/radio-group/horizontal.svg +1 -0
  1255. package/docs/design/templates/radio-group/tiles-dark.svg +1 -0
  1256. package/docs/design/templates/radio-group/tiles.svg +1 -0
  1257. package/docs/design/templates/radio-group/vertical-dark.svg +1 -0
  1258. package/docs/design/templates/radio-group/vertical.svg +1 -0
  1259. package/docs/design/templates/radio-group-dark.svg +1 -0
  1260. package/docs/design/templates/radio-group.svg +1 -0
  1261. package/docs/design/templates/search-field/empty-dark.svg +1 -0
  1262. package/docs/design/templates/search-field/empty.svg +1 -0
  1263. package/docs/design/templates/search-field/tokens-dark.svg +1 -0
  1264. package/docs/design/templates/search-field/tokens.svg +1 -0
  1265. package/docs/design/templates/search-field-dark.svg +1 -0
  1266. package/docs/design/templates/search-field.svg +1 -0
  1267. package/docs/design/templates/segmented-control/equal-dark.svg +1 -1
  1268. package/docs/design/templates/segmented-control/equal.svg +1 -1
  1269. package/docs/design/templates/segmented-control/pill-small-dark.svg +1 -1
  1270. package/docs/design/templates/segmented-control/pill-small.svg +1 -1
  1271. package/docs/design/templates/segmented-control-dark.svg +1 -7
  1272. package/docs/design/templates/segmented-control.svg +1 -7
  1273. package/docs/design/templates/select/compact-dark.svg +1 -0
  1274. package/docs/design/templates/select/compact.svg +1 -0
  1275. package/docs/design/templates/select/form-dark.svg +1 -0
  1276. package/docs/design/templates/select/form.svg +1 -0
  1277. package/docs/design/templates/select/icons-dark.svg +1 -0
  1278. package/docs/design/templates/select/icons.svg +1 -0
  1279. package/docs/design/templates/select-dark.svg +1 -0
  1280. package/docs/design/templates/select.svg +1 -0
  1281. package/docs/design/templates/skeleton-dark.svg +1 -9
  1282. package/docs/design/templates/skeleton.svg +1 -9
  1283. package/docs/design/templates/slider/compact-dark.svg +1 -0
  1284. package/docs/design/templates/slider/compact.svg +1 -0
  1285. package/docs/design/templates/slider/readout-dark.svg +1 -0
  1286. package/docs/design/templates/slider/readout.svg +1 -0
  1287. package/docs/design/templates/slider/ticks-dark.svg +1 -0
  1288. package/docs/design/templates/slider/ticks.svg +1 -0
  1289. package/docs/design/templates/slider-dark.svg +1 -0
  1290. package/docs/design/templates/slider.svg +1 -0
  1291. package/docs/design/templates/split-button/full-width-dark.svg +1 -0
  1292. package/docs/design/templates/split-button/full-width.svg +1 -0
  1293. package/docs/design/templates/split-button/pill-dark.svg +1 -0
  1294. package/docs/design/templates/split-button/pill.svg +1 -0
  1295. package/docs/design/templates/split-button/states-dark.svg +1 -0
  1296. package/docs/design/templates/split-button/states.svg +1 -0
  1297. package/docs/design/templates/split-button/tones-dark.svg +1 -0
  1298. package/docs/design/templates/split-button/tones.svg +1 -0
  1299. package/docs/design/templates/split-button-dark.svg +1 -0
  1300. package/docs/design/templates/split-button.svg +1 -0
  1301. package/docs/design/templates/state-banner/danger-dark.svg +1 -1
  1302. package/docs/design/templates/state-banner/danger.svg +1 -1
  1303. package/docs/design/templates/state-banner/info-badge-dark.svg +1 -0
  1304. package/docs/design/templates/state-banner/info-badge.svg +1 -0
  1305. package/docs/design/templates/state-banner/info-dark.svg +1 -1
  1306. package/docs/design/templates/state-banner/info.svg +1 -1
  1307. package/docs/design/templates/state-banner/strip-dark.svg +1 -0
  1308. package/docs/design/templates/state-banner/strip.svg +1 -0
  1309. package/docs/design/templates/state-banner/success-dark.svg +1 -1
  1310. package/docs/design/templates/state-banner/success.svg +1 -1
  1311. package/docs/design/templates/state-banner/warning-dark.svg +1 -1
  1312. package/docs/design/templates/state-banner/warning.svg +1 -1
  1313. package/docs/design/templates/state-banner-dark.svg +1 -11
  1314. package/docs/design/templates/state-banner.svg +1 -11
  1315. package/docs/design/templates/switch/compact-dark.svg +1 -0
  1316. package/docs/design/templates/switch/compact.svg +1 -0
  1317. package/docs/design/templates/switch/states-dark.svg +1 -0
  1318. package/docs/design/templates/switch/states.svg +1 -0
  1319. package/docs/design/templates/switch-dark.svg +1 -0
  1320. package/docs/design/templates/switch.svg +1 -0
  1321. package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -1
  1322. package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -1
  1323. package/docs/design/templates/tab-bar-dark.svg +1 -5
  1324. package/docs/design/templates/tab-bar.svg +1 -5
  1325. package/docs/design/templates/tag-field/error-dark.svg +1 -0
  1326. package/docs/design/templates/tag-field/error.svg +1 -0
  1327. package/docs/design/templates/tag-field/tags-dark.svg +1 -0
  1328. package/docs/design/templates/tag-field/tags.svg +1 -0
  1329. package/docs/design/templates/tag-field-dark.svg +1 -0
  1330. package/docs/design/templates/tag-field.svg +1 -0
  1331. package/docs/design/templates/text-field/compact-dark.svg +1 -0
  1332. package/docs/design/templates/text-field/compact.svg +1 -0
  1333. package/docs/design/templates/text-field/error-dark.svg +1 -0
  1334. package/docs/design/templates/text-field/error.svg +1 -0
  1335. package/docs/design/templates/text-field/labeled-dark.svg +1 -0
  1336. package/docs/design/templates/text-field/labeled.svg +1 -0
  1337. package/docs/design/templates/text-field/multiline-dark.svg +1 -0
  1338. package/docs/design/templates/text-field/multiline.svg +1 -0
  1339. package/docs/design/templates/text-field/number-dark.svg +1 -0
  1340. package/docs/design/templates/text-field/number.svg +1 -0
  1341. package/docs/design/templates/text-field/search-dark.svg +1 -0
  1342. package/docs/design/templates/text-field/search.svg +1 -0
  1343. package/docs/design/templates/text-field-dark.svg +1 -0
  1344. package/docs/design/templates/text-field.svg +1 -0
  1345. package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -1
  1346. package/docs/design/templates/toolbar/title-and-actions.svg +1 -1
  1347. package/docs/design/templates/toolbar/width-visibility-320-dark.svg +1 -0
  1348. package/docs/design/templates/toolbar/width-visibility-320.svg +1 -0
  1349. package/docs/design/templates/toolbar/width-visibility-600-dark.svg +1 -0
  1350. package/docs/design/templates/toolbar/width-visibility-600.svg +1 -0
  1351. package/docs/design/templates/toolbar-control-group/borderless-single-dark.svg +1 -1
  1352. package/docs/design/templates/toolbar-control-group/borderless-single.svg +1 -1
  1353. package/docs/design/templates/toolbar-control-group/glass-dark.svg +1 -0
  1354. package/docs/design/templates/toolbar-control-group/glass.svg +1 -0
  1355. package/docs/design/templates/toolbar-control-group/icon-buttons-dark.svg +1 -1
  1356. package/docs/design/templates/toolbar-control-group/icon-buttons.svg +1 -1
  1357. package/docs/design/templates/toolbar-control-group/icon-tile-brand-dark.svg +1 -0
  1358. package/docs/design/templates/toolbar-control-group/icon-tile-brand.svg +1 -0
  1359. package/docs/design/templates/toolbar-control-group/icon-tile-danger-dark.svg +1 -0
  1360. package/docs/design/templates/toolbar-control-group/icon-tile-danger.svg +1 -0
  1361. package/docs/design/templates/toolbar-control-group/icon-tile-neutral-dark.svg +1 -0
  1362. package/docs/design/templates/toolbar-control-group/icon-tile-neutral.svg +1 -0
  1363. package/docs/design/templates/toolbar-control-group/icon-tile-success-dark.svg +1 -0
  1364. package/docs/design/templates/toolbar-control-group/icon-tile-success.svg +1 -0
  1365. package/docs/design/templates/toolbar-control-group/icon-tile-warning-dark.svg +1 -0
  1366. package/docs/design/templates/toolbar-control-group/icon-tile-warning.svg +1 -0
  1367. package/docs/design/templates/toolbar-control-group/push-buttons-dark.svg +1 -1
  1368. package/docs/design/templates/toolbar-control-group/push-buttons.svg +1 -1
  1369. package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -1
  1370. package/docs/design/templates/toolbar-control-group/with-text.svg +1 -1
  1371. package/docs/design/templates/toolbar-control-group-dark.svg +1 -11
  1372. package/docs/design/templates/toolbar-control-group.svg +1 -11
  1373. package/docs/design/templates/toolbar-dark.svg +1 -5
  1374. package/docs/design/templates/toolbar-text/dark-tone-dark.svg +1 -0
  1375. package/docs/design/templates/toolbar-text/dark-tone.svg +1 -0
  1376. package/docs/design/templates/toolbar-text/default-dark.svg +1 -1
  1377. package/docs/design/templates/toolbar-text/default.svg +1 -1
  1378. package/docs/design/templates/toolbar-text/large-dark.svg +1 -1
  1379. package/docs/design/templates/toolbar-text/large.svg +1 -1
  1380. package/docs/design/templates/toolbar-text/small-dark.svg +1 -1
  1381. package/docs/design/templates/toolbar-text/small.svg +1 -1
  1382. package/docs/design/templates/toolbar-text-dark.svg +1 -9
  1383. package/docs/design/templates/toolbar-text.svg +1 -9
  1384. package/docs/design/templates/toolbar.svg +1 -5
  1385. package/docs/design/templates/tree-list/files-dark.svg +1 -0
  1386. package/docs/design/templates/tree-list/files.svg +1 -0
  1387. package/docs/design/templates/tree-list/outline-dark.svg +1 -0
  1388. package/docs/design/templates/tree-list/outline.svg +1 -0
  1389. package/docs/design/templates/tree-list-dark.svg +1 -0
  1390. package/docs/design/templates/tree-list.svg +1 -0
  1391. package/docs/design/templates/value-table/details-dark.svg +1 -1
  1392. package/docs/design/templates/value-table/details.svg +1 -1
  1393. package/docs/design/templates/value-table-dark.svg +1 -5
  1394. package/docs/design/templates/value-table.svg +1 -5
  1395. package/docs/design/templates.md +102 -36
  1396. package/docs/design-philosophy.md +69 -20
  1397. package/docs/device-class.md +10 -9
  1398. package/docs/disclosure.md +97 -0
  1399. package/docs/document-baseline.md +101 -0
  1400. package/docs/editor-frame.md +47 -0
  1401. package/docs/editor-host.md +397 -0
  1402. package/docs/examples/application-ui-profile.json +60 -0
  1403. package/docs/examples/command-palette-adapter.tsx +69 -17
  1404. package/docs/examples/component-catalog-extension.json +52 -0
  1405. package/docs/examples/component-composition-extension.json +80 -0
  1406. package/docs/forms-and-validation.md +50 -0
  1407. package/docs/gauge.md +55 -0
  1408. package/docs/interaction-conventions.md +55 -0
  1409. package/docs/investigations/content-item-media-scroll-performance.md +46 -0
  1410. package/docs/layout.md +1064 -53
  1411. package/docs/list-detail-dialog.md +105 -0
  1412. package/docs/manual-test-plan.md +87 -0
  1413. package/docs/message-composer.md +156 -0
  1414. package/docs/nav-stack.md +328 -14
  1415. package/docs/overlay-toast.md +62 -0
  1416. package/docs/overlay-tooltip.md +53 -0
  1417. package/docs/paged-view.md +89 -0
  1418. package/docs/progress.md +63 -0
  1419. package/docs/recipes.md +156 -73
  1420. package/docs/scroll-effect.md +127 -0
  1421. package/docs/slider.md +64 -0
  1422. package/docs/split-view.md +100 -8
  1423. package/docs/sunken-panel.md +106 -0
  1424. package/docs/surface-scaffold.md +677 -0
  1425. package/docs/tab-navigator.md +292 -0
  1426. package/docs/tag-field.md +66 -0
  1427. package/docs/testing-applications.md +25 -0
  1428. package/docs/tree-list.md +144 -0
  1429. package/docs/type-contracts.md +137 -0
  1430. package/docs/ui-analyzer.md +466 -0
  1431. package/docs/ui-doctor.md +370 -0
  1432. package/docs/ui-evaluator.md +176 -0
  1433. package/docs/upgrading.md +14 -0
  1434. package/docs/ux-demo.md +58 -17
  1435. package/docs/value-preview.md +16 -0
  1436. package/docs/view.md +314 -0
  1437. package/docs/webawesome-migration.md +93 -0
  1438. package/docs/webawesome-theme.md +343 -58
  1439. package/docs/workbench-dialog.md +92 -0
  1440. package/docs/workbench.md +658 -12
  1441. package/docs/writing.md +154 -0
  1442. package/doctor/cli.mjs +125 -0
  1443. package/doctor/component-style-checks.mjs +457 -0
  1444. package/doctor/config.schema.json +94 -0
  1445. package/doctor/copy-capitalization-checks.mjs +603 -0
  1446. package/doctor/eslint-diagnostics.d.mts +28 -0
  1447. package/doctor/eslint-diagnostics.mjs +29 -0
  1448. package/doctor/index.d.mts +122 -0
  1449. package/doctor/index.mjs +1648 -0
  1450. package/doctor/project-guidance-checks.d.mts +11 -0
  1451. package/doctor/project-guidance-checks.mjs +97 -0
  1452. package/doctor/report.schema.json +118 -0
  1453. package/evaluator/cli.mjs +95 -0
  1454. package/evaluator/firefox-app-data.d.mts +4 -0
  1455. package/evaluator/firefox-app-data.mjs +35 -0
  1456. package/evaluator/index.d.mts +90 -0
  1457. package/evaluator/index.mjs +1229 -0
  1458. package/evaluator/report.schema.json +152 -0
  1459. package/llms.txt +1161 -57
  1460. package/package.json +609 -49
  1461. package/props/cli.d.mts +1 -0
  1462. package/props/cli.mjs +142 -0
  1463. package/props/component-props.d.mts +180 -0
  1464. package/props/component-props.mjs +1208 -0
  1465. package/scripts/component-catalog-extension-validation.mjs +28 -0
  1466. package/scripts/lib/cli-args.mjs +98 -0
  1467. package/scripts/lib/json-schema-subset.mjs +137 -0
  1468. package/traversal-exclusions.mjs +86 -0
  1469. package/ux-demo/recipes/app-shell.tsx +118 -25
  1470. package/ux-demo/recipes/collapsible-sidebar.tsx +97 -62
  1471. package/ux-demo/recipes/compact-toolbar.tsx +50 -24
  1472. package/ux-demo/recipes/composer-form.tsx +49 -27
  1473. package/ux-demo/recipes/list-detail-dialog.tsx +113 -25
  1474. package/ux-demo/recipes/list-workspace-states.tsx +63 -14
  1475. package/ux-demo/recipes/loaders.ts +11 -3
  1476. package/ux-demo/recipes/loading-inspector.tsx +41 -60
  1477. package/ux-demo/recipes/media-detail.tsx +169 -0
  1478. package/ux-demo/recipes/mount-recipe.ts +28 -11
  1479. package/ux-demo/recipes/navigation-sidebar.tsx +53 -17
  1480. package/ux-demo/recipes/navigation-stack.tsx +48 -29
  1481. package/ux-demo/recipes/types.ts +18 -2
  1482. package/ux-demo/recipes/workspace-header.tsx +23 -6
  1483. package/view/catalog.mjs +229 -0
  1484. package/view/child-kind.mjs +22 -0
  1485. package/view/cli.d.mts +18 -0
  1486. package/view/cli.mjs +316 -0
  1487. package/view/contract.mjs +418 -0
  1488. package/view/css-grammar.mjs +93 -0
  1489. package/view/generate.d.mts +16 -0
  1490. package/view/generate.mjs +739 -0
  1491. package/view/index.d.mts +491 -0
  1492. package/view/index.mjs +36 -0
  1493. package/view/interpret.mjs +339 -0
  1494. package/view/project-types-worker.mjs +55 -0
  1495. package/view/project-types.d.mts +43 -0
  1496. package/view/project-types.mjs +618 -0
  1497. package/view/type-expression.d.mts +15 -0
  1498. package/view/type-expression.mjs +162 -0
  1499. package/view/types.mjs +165 -0
  1500. package/view/validate-move.mjs +353 -0
  1501. package/view/validate.mjs +1649 -0
  1502. package/vite-editor.d.mts +173 -0
  1503. package/vite-editor.mjs +548 -0
  1504. package/vite-ux-review.d.mts +83 -0
  1505. package/vite-ux-review.mjs +120 -0
  1506. package/dist/app-tab.d.ts +0 -30
  1507. package/dist/app-tab.js +0 -5
  1508. package/dist/app-tab.js.map +0 -1
  1509. package/dist/browser/app-tab.js +0 -4
  1510. package/dist/browser/panel-header.js +0 -7
  1511. package/dist/browser/token-search-field.js +0 -4
  1512. package/dist/chunk-2Z5TWHKQ.js +0 -34
  1513. package/dist/chunk-2Z5TWHKQ.js.map +0 -1
  1514. package/dist/chunk-37T3VNIZ.js +0 -19
  1515. package/dist/chunk-37T3VNIZ.js.map +0 -1
  1516. package/dist/chunk-55DATV3A.js +0 -10
  1517. package/dist/chunk-55DATV3A.js.map +0 -1
  1518. package/dist/chunk-56RJXPHG.js.map +0 -1
  1519. package/dist/chunk-5ATCDSQS.js +0 -42
  1520. package/dist/chunk-5ATCDSQS.js.map +0 -1
  1521. package/dist/chunk-5E2HVJ33.js +0 -10
  1522. package/dist/chunk-5E2HVJ33.js.map +0 -1
  1523. package/dist/chunk-7BR3DO2A.js +0 -31
  1524. package/dist/chunk-7BR3DO2A.js.map +0 -1
  1525. package/dist/chunk-7JB7VPRI.js +0 -34
  1526. package/dist/chunk-7JB7VPRI.js.map +0 -1
  1527. package/dist/chunk-7LDCTU7D.js +0 -134
  1528. package/dist/chunk-7LDCTU7D.js.map +0 -1
  1529. package/dist/chunk-AQNKJRFH.js +0 -79
  1530. package/dist/chunk-AQNKJRFH.js.map +0 -1
  1531. package/dist/chunk-AVZHJN6C.js +0 -14
  1532. package/dist/chunk-AVZHJN6C.js.map +0 -1
  1533. package/dist/chunk-B24C4A6T.js +0 -22
  1534. package/dist/chunk-B24C4A6T.js.map +0 -1
  1535. package/dist/chunk-BLK3UEEI.js +0 -23
  1536. package/dist/chunk-BLK3UEEI.js.map +0 -1
  1537. package/dist/chunk-CH4SQ6H5.js +0 -39
  1538. package/dist/chunk-CH4SQ6H5.js.map +0 -1
  1539. package/dist/chunk-DAFFDO33.js +0 -14
  1540. package/dist/chunk-DAFFDO33.js.map +0 -1
  1541. package/dist/chunk-I7INRJO4.js +0 -17
  1542. package/dist/chunk-I7INRJO4.js.map +0 -1
  1543. package/dist/chunk-L4OKFDJY.js +0 -24
  1544. package/dist/chunk-L4OKFDJY.js.map +0 -1
  1545. package/dist/chunk-LCOBDOCC.js +0 -265
  1546. package/dist/chunk-LCOBDOCC.js.map +0 -1
  1547. package/dist/chunk-M5JRI6MN.js +0 -27
  1548. package/dist/chunk-M5JRI6MN.js.map +0 -1
  1549. package/dist/chunk-RNPGFQ33.js +0 -10
  1550. package/dist/chunk-RNPGFQ33.js.map +0 -1
  1551. package/dist/chunk-RUNWEPR4.js +0 -10
  1552. package/dist/chunk-RUNWEPR4.js.map +0 -1
  1553. package/dist/chunk-VPCTCUED.js +0 -10
  1554. package/dist/chunk-VPCTCUED.js.map +0 -1
  1555. package/dist/chunk-W2FK7ZNY.js +0 -26
  1556. package/dist/chunk-W2FK7ZNY.js.map +0 -1
  1557. package/dist/chunk-WVPYVDXY.js +0 -15
  1558. package/dist/chunk-WVPYVDXY.js.map +0 -1
  1559. package/dist/chunk-XE4OX6AZ.js +0 -10
  1560. package/dist/chunk-XE4OX6AZ.js.map +0 -1
  1561. package/dist/chunk-XE5ZLPCC.js +0 -20
  1562. package/dist/chunk-XE5ZLPCC.js.map +0 -1
  1563. package/dist/chunk-XXMOARTH.js +0 -229
  1564. package/dist/chunk-XXMOARTH.js.map +0 -1
  1565. package/dist/chunk-YGN7OMLT.js +0 -57
  1566. package/dist/chunk-YGN7OMLT.js.map +0 -1
  1567. package/dist/panel-header.d.ts +0 -36
  1568. package/dist/panel-header.js +0 -7
  1569. package/dist/panel-header.js.map +0 -1
  1570. package/dist/styles/app-tab.css +0 -152
  1571. package/dist/styles/panel-header.css +0 -64
  1572. package/dist/styles/tab-scaffold.css +0 -84
  1573. package/dist/styles/token-search-field.css +0 -289
  1574. package/dist/tab-scaffold.d.ts +0 -30
  1575. package/dist/tab-scaffold.js +0 -16
  1576. package/dist/tab-scaffold.js.map +0 -1
  1577. package/dist/token-search-field.d.ts +0 -43
  1578. package/dist/token-search-field.js +0 -4
  1579. package/dist/token-search-field.js.map +0 -1
  1580. package/dist/wire-tab-scaffold.d.ts +0 -11
  1581. package/dist/wire-tab-scaffold.js +0 -16
  1582. package/dist/wire-tab-scaffold.js.map +0 -1
  1583. package/dist/wire-token-search-fields.js +0 -5
  1584. package/docs/design/templates/panel-header/icon-actions-dark.svg +0 -1
  1585. package/docs/design/templates/panel-header/icon-actions.svg +0 -1
  1586. package/docs/design/templates/panel-header/icon-summary-actions-dark.svg +0 -1
  1587. package/docs/design/templates/panel-header/icon-summary-actions.svg +0 -1
  1588. package/docs/design/templates/panel-header/no-icon-dark.svg +0 -1
  1589. package/docs/design/templates/panel-header/no-icon.svg +0 -1
  1590. package/docs/design/templates/panel-header/page-heading-dark.svg +0 -1
  1591. package/docs/design/templates/panel-header/page-heading.svg +0 -1
  1592. package/docs/design/templates/panel-header/title-only-dark.svg +0 -1
  1593. package/docs/design/templates/panel-header/title-only.svg +0 -1
  1594. package/docs/design/templates/panel-header-dark.svg +0 -13
  1595. package/docs/design/templates/panel-header.svg +0 -13
  1596. package/docs/design/templates/token-search-field/empty-dark.svg +0 -1
  1597. package/docs/design/templates/token-search-field/empty.svg +0 -1
  1598. package/docs/design/templates/token-search-field/tokens-dark.svg +0 -1
  1599. package/docs/design/templates/token-search-field/tokens.svg +0 -1
  1600. package/docs/design/templates/token-search-field-dark.svg +0 -7
  1601. package/docs/design/templates/token-search-field.svg +0 -7
  1602. package/docs/tab-scaffold.md +0 -41
  1603. package/ux-demo/recipes/recipes.css +0 -448
@@ -0,0 +1,1649 @@
1
+ // validateView: checks a Kerf UI view document (kerf-ui-document/v1, see
2
+ // docs/26-ui-editor.md) against the component-props and composition
3
+ // catalogs. Pure and synchronous, with no Node APIs, so the editor runs it in
4
+ // the browser and the CLI runs it in Node. The catalog index, the type
5
+ // system, and the `$css` grammar it checks against live in catalog.mjs,
6
+ // types.mjs, and css-grammar.mjs.
7
+
8
+ import {
9
+ channelOf,
10
+ fieldParent,
11
+ fieldZoneOf,
12
+ isBinding,
13
+ isObject,
14
+ keyOf,
15
+ propsOf,
16
+ quoteValue,
17
+ resolveType,
18
+ withFieldZones,
19
+ } from './catalog.mjs';
20
+ import { childKind } from './child-kind.mjs';
21
+ import { CSS_HELPERS, parseCssCall } from './css-grammar.mjs';
22
+ import { ICON_NAME, isAssignable, isLiteralOf, literalOf } from './types.mjs';
23
+ import { hasTypeExpressions, validTypeExpression } from './type-expression.mjs';
24
+
25
+ export const VIEW_DOCUMENT_SCHEMA_ID = 'kerf-ui-document/v1';
26
+
27
+ const ULID = /^[0-9A-HJKMNP-TV-Z]{26}$/;
28
+ const CAMEL = /^[a-z][A-Za-z0-9]*$/;
29
+ const PASCAL = /^[A-Z][A-Za-z0-9]*$/;
30
+ const ACTION_NAME = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
31
+ const ACTION_PROP = /^action$|[a-z]Action$/;
32
+ // Loop variable names the generated module already uses.
33
+ const RESERVED_NAMES = new Set(['inputs', 'slots', 'each', 'handlers']);
34
+ const PARAM_KINDS = new Set([
35
+ 'string',
36
+ 'number',
37
+ 'boolean',
38
+ 'enum',
39
+ 'literal',
40
+ 'content',
41
+ 'array',
42
+ 'object',
43
+ // The exact type of one component prop (KF-H3CB2P: app-supplied values):
44
+ // `{ kind: 'prop', component: '@kerfjs/ui:search-field', prop: 'model' }`,
45
+ // for values a document cannot spell, such as functions and signals.
46
+ 'prop',
47
+ ]);
48
+
49
+ const only = (value, keys) =>
50
+ Object.keys(value).filter((key) => !keys.includes(key));
51
+
52
+ // Optional props print as `T | undefined`; messages name the type itself.
53
+ function describe(type) {
54
+ return (type?.text ?? type?.kind ?? 'unknown').replace(/ \| undefined$/, '');
55
+ }
56
+
57
+ /** Validates one param or slot-input type in the document's own grammar. */
58
+ function validateDeclaredType(ctx, type, path) {
59
+ if (type?.typescript !== undefined) {
60
+ if (!validTypeExpression(type))
61
+ ctx.report(
62
+ 'KUI-V001',
63
+ path,
64
+ 'invalid TypeScript expression or portable import context',
65
+ );
66
+ return;
67
+ }
68
+ if (!isObject(type) || !PARAM_KINDS.has(type.kind)) {
69
+ ctx.report(
70
+ 'KUI-V001',
71
+ path,
72
+ `type must be one of ${[...PARAM_KINDS].join(', ')}`,
73
+ );
74
+ return;
75
+ }
76
+ if (
77
+ type.kind === 'enum' &&
78
+ !(Array.isArray(type.values) && type.values.length)
79
+ ) {
80
+ ctx.report(
81
+ 'KUI-V001',
82
+ path,
83
+ 'an enum type needs a non-empty `values` list',
84
+ );
85
+ }
86
+ if (type.kind === 'prop') {
87
+ const owner =
88
+ typeof type.component === 'string'
89
+ ? ctx.catalog.components.get(type.component)?.component
90
+ : undefined;
91
+ if (!owner?.props.some((prop) => prop.name === type.prop)) {
92
+ ctx.report(
93
+ 'KUI-V001',
94
+ path,
95
+ 'a prop type names a catalog `component` key and one of its `prop`s',
96
+ );
97
+ }
98
+ return;
99
+ }
100
+ if (type.kind === 'array') {
101
+ if (!isObject(type.items))
102
+ ctx.report('KUI-V001', path, 'an array type needs `items`');
103
+ else validateDeclaredType(ctx, type.items, `${path}.items`);
104
+ }
105
+ if (type.kind === 'object') {
106
+ if (!Array.isArray(type.props)) {
107
+ ctx.report('KUI-V001', path, 'an object type needs a `props` list');
108
+ return;
109
+ }
110
+ type.props.forEach((prop, index) => {
111
+ const at = `${path}.props[${index}]`;
112
+ if (
113
+ !isObject(prop) ||
114
+ typeof prop.name !== 'string' ||
115
+ typeof prop.required !== 'boolean'
116
+ ) {
117
+ ctx.report(
118
+ 'KUI-V001',
119
+ at,
120
+ 'a prop needs `name`, `type`, and `required`',
121
+ );
122
+ return;
123
+ }
124
+ validateDeclaredType(ctx, prop.type, `${at}.type`);
125
+ });
126
+ }
127
+ }
128
+
129
+ /** Resolves a `$bind` path to its type, or reports why it cannot. */
130
+ function bindingType(ctx, path, scope, at) {
131
+ if (typeof path !== 'string' || path === '') {
132
+ ctx.report('KUI-V007', at, '`$bind` needs a dotted path');
133
+ return undefined;
134
+ }
135
+ const [head, ...rest] = path.split('.');
136
+ let type = scope.get(head) ?? ctx.params.get(head)?.type;
137
+ if (!type) {
138
+ ctx.report(
139
+ 'KUI-V007',
140
+ at,
141
+ `\`$bind\` path "${path}" names nothing in scope`,
142
+ );
143
+ return undefined;
144
+ }
145
+ const project = type.typescript;
146
+ for (const segment of rest) {
147
+ const prop = propsOf(type, {})?.find((item) => item.name === segment);
148
+ if (!prop) {
149
+ if (project) return { kind: 'unknown', typescript: project };
150
+ ctx.report(
151
+ 'KUI-V007',
152
+ at,
153
+ `\`$bind\` path "${path}" has no "${segment}"`,
154
+ );
155
+ return undefined;
156
+ }
157
+ type = prop.type;
158
+ }
159
+ return project ? { ...type, typescript: project } : type;
160
+ }
161
+
162
+ /**
163
+ * The type of a dynamic value (`$param` or `$bind`), `null` for a literal, or
164
+ * `undefined` after reporting an unresolvable reference.
165
+ */
166
+ function dynamicType(ctx, value, scope, at) {
167
+ if (!isObject(value)) return null;
168
+ if ('$param' in value) {
169
+ const param = ctx.params.get(value.$param);
170
+ if (!param)
171
+ ctx.report(
172
+ 'KUI-V007',
173
+ at,
174
+ `\`$param\` "${value.$param}" is not a document param`,
175
+ );
176
+ return param?.type;
177
+ }
178
+ if ('$bind' in value) return bindingType(ctx, value.$bind, scope, at);
179
+ return null;
180
+ }
181
+
182
+ function checkPropValue(ctx, prop, value, definitions, scope, at, rowScoped) {
183
+ if (isObject(value) && '$action' in value) {
184
+ if (
185
+ !ACTION_PROP.test(prop.name) ||
186
+ resolveType(prop.type, definitions).kind !== 'string'
187
+ ) {
188
+ ctx.report(
189
+ 'KUI-V009',
190
+ at,
191
+ `\`$action\` is only valid on an action-name prop, not "${prop.name}"`,
192
+ );
193
+ } else if (
194
+ typeof value.$action !== 'string' ||
195
+ !ACTION_NAME.test(value.$action)
196
+ ) {
197
+ ctx.report('KUI-V001', at, 'an action name is lowercase kebab-case');
198
+ } else {
199
+ ctx.noteAction(value.$action, rowScoped ? 'row' : 'view', at);
200
+ }
201
+ return;
202
+ }
203
+ if (isObject(value) && '$icon' in value) {
204
+ if (prop.iconSource !== 'lucide') {
205
+ ctx.report(
206
+ 'KUI-V013',
207
+ at,
208
+ `\`$icon\` is only valid on an icon-data prop, not "${prop.name}"`,
209
+ );
210
+ } else if (
211
+ typeof value.$icon !== 'string' ||
212
+ !ICON_NAME.test(value.$icon)
213
+ ) {
214
+ ctx.report(
215
+ 'KUI-V013',
216
+ at,
217
+ 'an icon name is a kebab-case Lucide name such as "inbox"',
218
+ );
219
+ } else if (ctx.icons && !ctx.icons.has(value.$icon)) {
220
+ ctx.report('KUI-V013', at, `unknown Lucide icon "${value.$icon}"`);
221
+ }
222
+ return;
223
+ }
224
+ if (isObject(value) && '$css' in value) {
225
+ const target = resolveType(prop.type, definitions);
226
+ const kinds =
227
+ target.kind === 'union'
228
+ ? target.members.map((member) => member.kind)
229
+ : [target.kind];
230
+ if (!kinds.includes('css-value')) {
231
+ ctx.report(
232
+ 'KUI-V010',
233
+ at,
234
+ `\`$css\` is only valid on a css-value prop, not "${prop.name}"`,
235
+ );
236
+ return;
237
+ }
238
+ const helpers = parseCssCall(value.$css);
239
+ const allowed = prop.cssValue?.helpers ?? CSS_HELPERS;
240
+ // The catalog's non-standalone helpers (`plus`) may appear nested.
241
+ const nested = [...allowed, ...(prop.cssValue?.nonStandaloneHelpers ?? [])];
242
+ if (
243
+ !helpers ||
244
+ !allowed.includes(helpers[0]) ||
245
+ !helpers
246
+ .slice(1)
247
+ .every((name) => nested.includes(name) || CSS_HELPERS.includes(name))
248
+ ) {
249
+ ctx.report(
250
+ 'KUI-V010',
251
+ at,
252
+ `\`$css\` must be one literal-argument call to ${allowed.join(', ')}`,
253
+ );
254
+ }
255
+ return;
256
+ }
257
+ const type = dynamicType(ctx, value, scope, at);
258
+ if (type === undefined) return;
259
+ // A param typed as a component prop binds only to that prop.
260
+ if (type?.kind === 'prop') {
261
+ // Outside a node's own props (a `#text` value, a `#view` prop, a `$if`
262
+ // condition, a `$slot` input) no component prop is being set, so a
263
+ // prop-typed value fits nothing there (KF-3624D4). Reading
264
+ // `ctx.component` there would name whichever component was checked last.
265
+ if (!ctx.inProps) {
266
+ ctx.report(
267
+ 'KUI-V004',
268
+ at,
269
+ `a ${type.component} "${type.prop}" value fits only that prop, not "${prop.name}"`,
270
+ );
271
+ return;
272
+ }
273
+ if (type.component !== ctx.component || type.prop !== prop.name) {
274
+ ctx.report(
275
+ 'KUI-V004',
276
+ at,
277
+ `a ${type.component} "${type.prop}" value does not fit "${prop.name}" of ${ctx.component}`,
278
+ );
279
+ }
280
+ return;
281
+ }
282
+ if (type === null) {
283
+ const hooks = {
284
+ slot: (slot) => checkValueSlot(ctx, slot, at),
285
+ dynamic: (item, type) =>
286
+ nestedDynamicFits(ctx, item, type, definitions, scope, at),
287
+ };
288
+ if (!literalOf(value, prop.type, definitions, hooks)) {
289
+ ctx.report(
290
+ 'KUI-V004',
291
+ at,
292
+ `${quoteValue(value)} is not a valid ${describe(prop.type)}`,
293
+ );
294
+ }
295
+ } else if (!isAssignable(type, prop.type, definitions)) {
296
+ ctx.report(
297
+ 'KUI-V004',
298
+ at,
299
+ `a ${describe(type)} value does not fit ${describe(prop.type)}`,
300
+ );
301
+ }
302
+ }
303
+
304
+ /**
305
+ * A `$param` / `$bind` inside a list or object prop value (KF-3QEZFB: nested
306
+ * params): it fits when its type is assignable to that position's type, as a
307
+ * whole prop's does. A prop-typed param names a whole component prop, so it
308
+ * never fits inside one. Each value object resolves once (an unknown param or
309
+ * an out-of-scope path reports once, though a union may try it against
310
+ * several members); an unresolved one counts as fitting, so it is not also a
311
+ * type mismatch.
312
+ */
313
+ function nestedDynamicFits(ctx, value, type, definitions, scope, at) {
314
+ if (!ctx.nestedDynamics.has(value))
315
+ ctx.nestedDynamics.set(value, dynamicType(ctx, value, scope, at));
316
+ const found = ctx.nestedDynamics.get(value);
317
+ if (found === undefined) return true;
318
+ if (found?.kind === 'prop') return false;
319
+ return isAssignable(found, type, definitions);
320
+ }
321
+
322
+ /**
323
+ * A `$slot` inside a prop value (KF-SXDM56: item slots): the application
324
+ * fills it with content, as a zone's `$slot`, but it passes no input. Each
325
+ * slot object reports once, though a union may try it against several
326
+ * members. Returns true, so a malformed slot is not also a type mismatch.
327
+ */
328
+ function checkValueSlot(ctx, slot, at) {
329
+ if (ctx.checkedSlots.has(slot)) return true;
330
+ ctx.checkedSlots.add(slot);
331
+ for (const key of only(slot, ['$slot']))
332
+ ctx.report(
333
+ 'KUI-V001',
334
+ `${at}`,
335
+ `a \`$slot\` in a prop value passes no "${key}"`,
336
+ );
337
+ if (typeof slot.$slot !== 'string' || !CAMEL.test(slot.$slot)) {
338
+ ctx.report('KUI-V001', at, 'a slot name is a camelCase identifier');
339
+ } else if (ctx.slots.get(slot.$slot)?.input) {
340
+ ctx.report(
341
+ 'KUI-V001',
342
+ at,
343
+ `slot "${slot.$slot}" declares an input, which a \`$slot\` in a prop value cannot pass`,
344
+ );
345
+ }
346
+ return true;
347
+ }
348
+
349
+ /**
350
+ * Why a `rootAttributes` key cannot appear in a document (KF-65FTKX: data-*
351
+ * only), or undefined. Documents carry lowercase `data-*` names only; the
352
+ * node marker and other `data-kerf-*` names, the row key (`data-key`), and
353
+ * the editor's `data-editor-*` hooks are reserved for the generated view.
354
+ */
355
+ export function dataAttributeProblem(key) {
356
+ if (!/^data-[a-z0-9]+(?:[-_.][a-z0-9]+)*$/.test(key))
357
+ return `"${key}" is not a lowercase data-* attribute name`;
358
+ if (/^data-(?:kerf-|editor-|key$)/.test(key))
359
+ return `"${key}" is reserved for the generated view and the editor`;
360
+ }
361
+
362
+ /** A zone key's binding: the composition zone, or a content (`slot`) prop. */
363
+ function zonesOf(ctx, component) {
364
+ const zones = new Map();
365
+ const entry =
366
+ component.export && component.key.includes('#')
367
+ ? undefined
368
+ : ctx.catalog.entries.get(component.key);
369
+ for (const zone of entry?.zones ?? []) {
370
+ if (zone.jsx?.prop) zones.set(zone.id, { prop: zone.jsx.prop, zone });
371
+ }
372
+ for (const prop of component.props) {
373
+ if (prop.slot) {
374
+ zones.set(prop.name, {
375
+ prop: prop.name,
376
+ text: prop.type.acceptsText === true,
377
+ });
378
+ }
379
+ }
380
+ // A Web Awesome element's slots are its zones; its default slot is its
381
+ // children, and slotted text is ordinary light-DOM text.
382
+ for (const slot of component.slots ?? []) {
383
+ zones.set(slot.name, { prop: 'children', slot: slot.name, text: true });
384
+ }
385
+ for (const binding of zones.values()) {
386
+ if (binding.text === undefined) {
387
+ const prop = component.props.find((item) => item.name === binding.prop);
388
+ binding.text = prop?.type.acceptsText === true;
389
+ }
390
+ }
391
+ return zones;
392
+ }
393
+
394
+ function variantMatches(variant, present, literals) {
395
+ if (!variant.required.every((name) => present.has(name))) return false;
396
+ if (variant.forbidden.some((name) => present.has(name))) return false;
397
+ return Object.entries(variant.when ?? {}).every(([name, value]) => {
398
+ if (!present.has(name)) return value === false || value === undefined;
399
+ return !literals.has(name) || literals.get(name) === value;
400
+ });
401
+ }
402
+
403
+ // Callers pass only objects: checkChild classifies non-objects, and root and
404
+ // `$each` templates are checked for a `type` before they get here.
405
+ function checkNode(ctx, node, at, scope, rowScoped, parentKey, text = false) {
406
+ // A scoped run (validate-move.mjs) records where each node is checked:
407
+ // these arguments and the enclosing control.
408
+ const trace = ctx.trace;
409
+ trace?.entries?.set(node, [
410
+ at,
411
+ scope,
412
+ rowScoped,
413
+ parentKey,
414
+ text,
415
+ ctx.interactiveHost,
416
+ ]);
417
+ ctx.noteId(node.id, at);
418
+ if (node.type === '#text') {
419
+ for (const key of only(node, ['id', 'type', 'value']))
420
+ ctx.report('KUI-V001', `${at}.${key}`, 'unknown field on a text node');
421
+ if (!text) {
422
+ ctx.report(
423
+ 'KUI-V004',
424
+ at,
425
+ 'this zone does not take plain text; place a text component (such as Text) instead',
426
+ );
427
+ }
428
+ checkPropValue(
429
+ ctx,
430
+ { name: 'value', type: { kind: 'string' } },
431
+ node.value,
432
+ {},
433
+ scope,
434
+ `${at}.value`,
435
+ rowScoped,
436
+ );
437
+ return;
438
+ }
439
+ if (node.type === '#view') {
440
+ for (const key of only(node, ['id', 'type', 'src', 'props']))
441
+ ctx.report('KUI-V001', `${at}.${key}`, 'unknown field on a #view node');
442
+ checkView(ctx, node, at, scope, rowScoped);
443
+ return;
444
+ }
445
+ for (const key of only(node, ['id', 'type', 'name', 'props', 'zones']))
446
+ ctx.report('KUI-V001', `${at}.${key}`, 'unknown node field');
447
+ const resolved =
448
+ typeof node.type === 'string'
449
+ ? ctx.catalog.components.get(node.type)
450
+ : undefined;
451
+ if (!resolved) {
452
+ ctx.report(
453
+ 'KUI-V002',
454
+ `${at}.type`,
455
+ `unknown component type ${JSON.stringify(node.type)}`,
456
+ );
457
+ return;
458
+ }
459
+ const { component, definitions } = resolved;
460
+ const pkg = keyOf(node.type).slice(0, keyOf(node.type).lastIndexOf(':'));
461
+ if (ctx.packages && !ctx.packages.has(pkg)) {
462
+ ctx.report(
463
+ 'KUI-V002',
464
+ `${at}.type`,
465
+ `${pkg} is not listed in the document's catalogs`,
466
+ );
467
+ }
468
+ if (node.name !== undefined) {
469
+ ctx.noteName(node.name, at);
470
+ if (channelOf(component) === 'none') {
471
+ ctx.report(
472
+ 'KUI-V011',
473
+ `${at}.name`,
474
+ `${node.type} has no data-* channel for the node marker, so it cannot be named`,
475
+ );
476
+ }
477
+ }
478
+ const interactive = interactiveOf(ctx.catalog, node);
479
+ if (interactive && ctx.interactiveHost) {
480
+ ctx.report(
481
+ 'KUI-V014',
482
+ at,
483
+ `${node.type} renders a control or link, so it cannot sit inside ${ctx.interactiveHost}, which renders one itself`,
484
+ );
485
+ }
486
+ const host = ctx.interactiveHost;
487
+ if (interactive === 'root' && !host) ctx.interactiveHost = node.type;
488
+ if (trace?.shallow === node) trace.hostAfter = ctx.interactiveHost;
489
+ const zones = zonesOf(ctx, component);
490
+ // The component whose props are checked next, for a prop-typed param.
491
+ ctx.component = node.type;
492
+ const byName = new Map(component.props.map((prop) => [prop.name, prop]));
493
+ const native = new Set(component.nativeAttributes ?? []);
494
+ const present = new Set();
495
+ const literals = new Map();
496
+ if (node.props !== undefined && !isObject(node.props))
497
+ ctx.report('KUI-V001', `${at}.props`, '`props` is an object');
498
+ // A field zone fills a content field inside a prop value (KF-PD6QC5), so
499
+ // the prop is checked with the zone's placeholder in that field.
500
+ const ownProps = isObject(node.props) ? node.props : {};
501
+ const ownZones = isObject(node.zones) ? node.zones : {};
502
+ const filledProps = withFieldZones(
503
+ ownProps,
504
+ Object.fromEntries(
505
+ Object.entries(ownZones).filter(([, children]) =>
506
+ Array.isArray(children),
507
+ ),
508
+ ),
509
+ component,
510
+ definitions,
511
+ );
512
+ ctx.inProps = true;
513
+ for (const [name, value] of Object.entries(filledProps)) {
514
+ const propAt = `${at}.props.${name}`;
515
+ const prop = byName.get(name);
516
+ if ([...zones.values()].some((zone) => zone.zone && zone.prop === name)) {
517
+ ctx.report(
518
+ 'KUI-V003',
519
+ propAt,
520
+ `"${name}" is a zone; fill it through \`zones\``,
521
+ );
522
+ continue;
523
+ }
524
+ if (!prop && !native.has(name)) {
525
+ ctx.report('KUI-V003', propAt, `${node.type} has no prop "${name}"`);
526
+ continue;
527
+ }
528
+ present.add(name);
529
+ if (!isObject(value) || Array.isArray(value)) literals.set(name, value);
530
+ // A literal data-* channel names only unreserved data-* keys (KF-65FTKX).
531
+ if (
532
+ name === 'rootAttributes' &&
533
+ isObject(value) &&
534
+ !isBinding(value) &&
535
+ Object.keys(value).filter((key) => {
536
+ const problem = dataAttributeProblem(key);
537
+ if (problem) ctx.report('KUI-V015', `${propAt}.${key}`, problem);
538
+ return problem;
539
+ }).length
540
+ )
541
+ continue;
542
+ checkPropValue(
543
+ ctx,
544
+ prop ?? {
545
+ name,
546
+ type: {
547
+ kind: 'union',
548
+ members: [
549
+ { kind: 'string' },
550
+ { kind: 'number' },
551
+ { kind: 'boolean' },
552
+ ],
553
+ },
554
+ },
555
+ value,
556
+ definitions,
557
+ scope,
558
+ propAt,
559
+ rowScoped,
560
+ );
561
+ }
562
+ ctx.inProps = false;
563
+ if (node.zones !== undefined && !isObject(node.zones))
564
+ ctx.report('KUI-V001', `${at}.zones`, '`zones` is an object');
565
+ const shapes = new Map();
566
+ for (const [zoneKey, children] of Object.entries(
567
+ isObject(node.zones) ? node.zones : {},
568
+ )) {
569
+ const zoneAt = `${at}.zones.${zoneKey}`;
570
+ const field = zones.has(zoneKey)
571
+ ? undefined
572
+ : fieldZoneOf(component, definitions, zoneKey);
573
+ const binding = zones.get(zoneKey) ?? field;
574
+ if (!binding) {
575
+ ctx.report('KUI-V003', zoneAt, `${node.type} has no zone "${zoneKey}"`);
576
+ continue;
577
+ }
578
+ if (!Array.isArray(children)) {
579
+ ctx.report('KUI-V001', zoneAt, 'a zone is a list of children');
580
+ continue;
581
+ }
582
+ if (field) {
583
+ const own = ownProps[field.prop];
584
+ if (isBinding(own)) {
585
+ ctx.report(
586
+ 'KUI-V003',
587
+ zoneAt,
588
+ `"${field.prop}" is bound, so a zone cannot fill "${zoneKey}"`,
589
+ );
590
+ } else if (
591
+ field.path.reduce(
592
+ (current, step) =>
593
+ current === undefined || current === null
594
+ ? undefined
595
+ : current[step],
596
+ own,
597
+ ) !== undefined
598
+ ) {
599
+ ctx.report(
600
+ 'KUI-V003',
601
+ zoneAt,
602
+ `"${zoneKey}" is set in both \`props\` and \`zones\``,
603
+ );
604
+ }
605
+ } else if (isObject(node.props) && binding.prop in node.props) {
606
+ ctx.report(
607
+ 'KUI-V003',
608
+ zoneAt,
609
+ `"${binding.prop}" is set in both \`props\` and \`zones\``,
610
+ );
611
+ }
612
+ // KF-YCM09F: an empty zone list is an explicit null, which a required
613
+ // prop of a nullable type (SplitView's `detail` with nothing selected)
614
+ // accepts; a zone left out entirely still leaves the prop missing.
615
+ if (
616
+ children.length > 0 ||
617
+ (!field && byName.get(binding.prop)?.type?.nullable === true)
618
+ )
619
+ present.add(binding.prop);
620
+ // A field inside a value another component renders (a view's toolbar
621
+ // config) places its children in that component (KF-THTR71).
622
+ const parent =
623
+ (field && fieldParent(ctx, node, component, definitions, zoneKey)) ||
624
+ node.type;
625
+ // A shallow run checks the node alone, noting where a child appended to
626
+ // `trace.zone` would be checked.
627
+ if (trace?.shallow === node) {
628
+ if (zoneKey === trace.zone)
629
+ trace.child = [
630
+ `${zoneAt}[${children.length - 1}]`,
631
+ scope,
632
+ rowScoped,
633
+ parent,
634
+ binding.text,
635
+ ctx.interactiveHost,
636
+ ];
637
+ } else
638
+ children.forEach((child, index) =>
639
+ checkChild(
640
+ ctx,
641
+ child,
642
+ `${zoneAt}[${index}]`,
643
+ scope,
644
+ rowScoped,
645
+ parent,
646
+ binding.text,
647
+ ),
648
+ );
649
+ shapes.set(zoneKey, combine(children.map((child) => childShape(child))));
650
+ }
651
+ ctx.interactiveHost = host;
652
+ if (component.variants) {
653
+ if (
654
+ !component.variants.some((variant) =>
655
+ variantMatches(variant, present, literals),
656
+ )
657
+ ) {
658
+ ctx.report(
659
+ 'KUI-V004',
660
+ at,
661
+ `${node.type} props match none of its variants`,
662
+ );
663
+ }
664
+ } else {
665
+ for (const prop of component.props) {
666
+ if (prop.required && !prop.variantOnly && !present.has(prop.name)) {
667
+ ctx.report('KUI-V005', at, `${node.type} requires "${prop.name}"`);
668
+ }
669
+ }
670
+ }
671
+ checkComposition(ctx, node, at, parentKey, shapes, literals, zones);
672
+ }
673
+
674
+ /**
675
+ * An `$each` template: one keyable node, or (KF-8J8E5V: per-item row
676
+ * designs) an `$if` chain whose every branch is one. `else` is required, so
677
+ * each item yields exactly one row and a repeat never filters.
678
+ */
679
+ function checkTemplate(
680
+ ctx,
681
+ template,
682
+ at,
683
+ scope,
684
+ parentKey,
685
+ text,
686
+ chain = true,
687
+ ) {
688
+ // A chain nests only in `else`; `then` is always one node.
689
+ if (chain && isObject(template) && '$if' in template) {
690
+ for (const key of only(template, ['$if', 'then', 'else']))
691
+ ctx.report('KUI-V001', `${at}.${key}`, 'unknown `$if` field');
692
+ checkPropValue(
693
+ ctx,
694
+ { name: 'condition', type: { kind: 'boolean' } },
695
+ template.$if,
696
+ {},
697
+ scope,
698
+ `${at}.$if`,
699
+ true,
700
+ );
701
+ checkTemplate(
702
+ ctx,
703
+ template.then,
704
+ `${at}.then`,
705
+ scope,
706
+ parentKey,
707
+ text,
708
+ false,
709
+ );
710
+ if ('else' in template)
711
+ checkTemplate(ctx, template.else, `${at}.else`, scope, parentKey, text);
712
+ else
713
+ ctx.report(
714
+ 'KUI-V008',
715
+ at,
716
+ 'a template `$if` needs an `else`, so every item yields exactly one row',
717
+ );
718
+ return;
719
+ }
720
+ if (!isObject(template) || !('type' in template)) {
721
+ ctx.report(
722
+ 'KUI-V008',
723
+ at,
724
+ 'the template is exactly one node, or an `$if` chain of them',
725
+ );
726
+ return;
727
+ }
728
+ const entry = ctx.catalog.components.get(template.type);
729
+ if (entry && channelOf(entry.component) === 'none') {
730
+ ctx.report(
731
+ 'KUI-V008',
732
+ at,
733
+ `${template.type} has no data-* channel to carry the row key`,
734
+ );
735
+ }
736
+ checkNode(ctx, template, at, scope, true, parentKey, text);
737
+ }
738
+
739
+ /**
740
+ * An `$each`'s rows: exactly one of `template` (one node or an `$if` chain)
741
+ * and `templates`, a map of one node per item kind picked by `kind`
742
+ * (KF-YX6HMT: keyed row designs). `templates` needs a `default`, which an
743
+ * item of any other kind takes, so every item yields exactly one row.
744
+ */
745
+ function checkRows(ctx, child, at, scope, parentKey, text) {
746
+ if (!('templates' in child)) {
747
+ if ('kind' in child)
748
+ ctx.report(
749
+ 'KUI-V008',
750
+ `${at}.kind`,
751
+ '`kind` picks one of `templates`; this `$each` has none',
752
+ );
753
+ checkTemplate(
754
+ ctx,
755
+ child.template,
756
+ `${at}.template`,
757
+ scope,
758
+ parentKey,
759
+ text,
760
+ );
761
+ return;
762
+ }
763
+ if ('template' in child)
764
+ ctx.report(
765
+ 'KUI-V008',
766
+ at,
767
+ 'an `$each` has exactly one of `template` and `templates`',
768
+ );
769
+ const templates = isObject(child.templates) ? child.templates : {};
770
+ if (!('default' in templates))
771
+ ctx.report(
772
+ 'KUI-V008',
773
+ `${at}.templates`,
774
+ '`templates` needs a `default` row design, which an item of any other kind takes',
775
+ );
776
+ if ('kind' in child)
777
+ checkPropValue(
778
+ ctx,
779
+ { name: 'kind', type: { kind: 'string' } },
780
+ child.kind,
781
+ {},
782
+ scope,
783
+ `${at}.kind`,
784
+ true,
785
+ );
786
+ else
787
+ ctx.report(
788
+ 'KUI-V008',
789
+ `${at}.kind`,
790
+ '`templates` needs a `kind` that resolves to a string on the item',
791
+ );
792
+ for (const [kind, template] of Object.entries(templates)) {
793
+ const path = `${at}.templates.${kind}`;
794
+ if (!isObject(template) || !('type' in template))
795
+ ctx.report(
796
+ 'KUI-V008',
797
+ path,
798
+ 'each `templates` entry is exactly one node',
799
+ );
800
+ else checkTemplate(ctx, template, path, scope, parentKey, text, false);
801
+ }
802
+ }
803
+
804
+ /**
805
+ * The templates an `$each` can render a row from: its `template`, or every
806
+ * entry of its `templates` map in order (KF-YX6HMT). Each is one node or an
807
+ * `$if` chain of them.
808
+ */
809
+ export function eachTemplates(each) {
810
+ if (!('templates' in each)) return [each.template];
811
+ // A malformed map is one malformed template, so walkers report it.
812
+ return isObject(each.templates)
813
+ ? Object.values(each.templates)
814
+ : [each.templates];
815
+ }
816
+
817
+ /** Every node an `$each` can render a row from, in order; the first keys it. */
818
+ export function eachNodes(each) {
819
+ return eachTemplates(each).flatMap(templateNodes);
820
+ }
821
+
822
+ /**
823
+ * The nodes an `$each` template can render, in branch order: the template
824
+ * itself, or every leaf of its `$if` chain.
825
+ */
826
+ export function templateNodes(template) {
827
+ if (isObject(template) && '$if' in template)
828
+ return [
829
+ ...templateNodes(template.then),
830
+ ...('else' in template ? templateNodes(template.else) : []),
831
+ ];
832
+ return isObject(template) ? [template] : [];
833
+ }
834
+
835
+ function checkChild(ctx, child, at, scope, rowScoped, parentKey, text = false) {
836
+ if (!isObject(child)) {
837
+ ctx.report('KUI-V001', at, 'a zone child is an object');
838
+ return;
839
+ }
840
+ switch (childKind(child)) {
841
+ case 'each':
842
+ return checkEach(ctx, child, at, scope, rowScoped, parentKey, text);
843
+ case 'if':
844
+ return checkIf(ctx, child, at, scope, rowScoped, parentKey, text);
845
+ case 'slot':
846
+ return checkSlot(ctx, child, at, scope, rowScoped);
847
+ default:
848
+ return checkNode(ctx, child, at, scope, rowScoped, parentKey, text);
849
+ }
850
+ }
851
+
852
+ /** Checks an `$each` child: its fields, source list, key, and rows. */
853
+ function checkEach(ctx, child, at, scope, rowScoped, parentKey, text) {
854
+ for (const key of only(child, [
855
+ '$each',
856
+ 'as',
857
+ 'key',
858
+ 'template',
859
+ 'templates',
860
+ 'kind',
861
+ ]))
862
+ ctx.report('KUI-V001', `${at}.${key}`, 'unknown `$each` field');
863
+ // KF-CFA1S1: an inner `$each` in this document renders as a plain map, but
864
+ // a document composed into another's row cannot know it is in one: its
865
+ // module renders a keyed each(), which kerf refuses inside a row render.
866
+ if (ctx.rowHost && !rowScoped) {
867
+ ctx.report(
868
+ 'KUI-V016',
869
+ at,
870
+ 'a document composed into an `$each` row cannot repeat; move the `$each` into the composing document',
871
+ );
872
+ }
873
+ const source = dynamicType(ctx, child.$each, scope, `${at}.$each`);
874
+ const list = source ? resolveType(source, {}) : undefined;
875
+ if (source === null)
876
+ ctx.report(
877
+ 'KUI-V008',
878
+ `${at}.$each`,
879
+ '`$each` iterates a `$param` or `$bind`, not a literal',
880
+ );
881
+ else if (list && list.kind !== 'array')
882
+ ctx.report(
883
+ 'KUI-V008',
884
+ `${at}.$each`,
885
+ `\`$each\` needs an array, not ${describe(list)}`,
886
+ );
887
+ // kerf's each() keys rows by item identity, so items are objects.
888
+ else if (
889
+ list &&
890
+ !['object', 'unknown', 'record'].includes(resolveType(list.items, {}).kind)
891
+ ) {
892
+ ctx.report(
893
+ 'KUI-V008',
894
+ `${at}.$each`,
895
+ '`$each` items are objects (each() keys rows by item identity)',
896
+ );
897
+ }
898
+ if (
899
+ typeof child.as !== 'string' ||
900
+ !CAMEL.test(child.as) ||
901
+ RESERVED_NAMES.has(child.as) ||
902
+ ctx.params.has(child.as) ||
903
+ scope.has(child.as)
904
+ ) {
905
+ ctx.report(
906
+ 'KUI-V008',
907
+ `${at}.as`,
908
+ '`as` names the item with a camelCase identifier that is not reserved, a param, or an outer item',
909
+ );
910
+ return;
911
+ }
912
+ const inner = new Map(scope).set(
913
+ child.as,
914
+ list?.kind === 'array' ? list.items : { kind: 'unknown' },
915
+ );
916
+ const keyType =
917
+ typeof child.key === 'string' && child.key.split('.')[0] === child.as
918
+ ? bindingType(ctx, child.key, inner, `${at}.key`)
919
+ : undefined;
920
+ const keyKind = keyType && resolveType(keyType, {}).kind;
921
+ if (!keyType || !['string', 'number', 'unknown'].includes(keyKind)) {
922
+ ctx.report(
923
+ 'KUI-V008',
924
+ `${at}.key`,
925
+ '`key` is a path on the item that resolves to a string or number',
926
+ );
927
+ }
928
+ checkRows(ctx, child, at, inner, parentKey, text);
929
+ }
930
+
931
+ /** Checks an `$if` child: its condition and both branches. */
932
+ function checkIf(ctx, child, at, scope, rowScoped, parentKey, text) {
933
+ for (const key of only(child, ['$if', 'then', 'else']))
934
+ ctx.report('KUI-V001', `${at}.${key}`, 'unknown `$if` field');
935
+ checkPropValue(
936
+ ctx,
937
+ { name: 'condition', type: { kind: 'boolean' } },
938
+ child.$if,
939
+ {},
940
+ scope,
941
+ `${at}.$if`,
942
+ rowScoped,
943
+ );
944
+ checkChild(ctx, child.then, `${at}.then`, scope, rowScoped, parentKey, text);
945
+ if ('else' in child)
946
+ checkChild(
947
+ ctx,
948
+ child.else,
949
+ `${at}.else`,
950
+ scope,
951
+ rowScoped,
952
+ parentKey,
953
+ text,
954
+ );
955
+ }
956
+
957
+ /** Checks a `$slot` child: its name and the input it passes. */
958
+ function checkSlot(ctx, child, at, scope, rowScoped) {
959
+ for (const key of only(child, ['$slot', 'input']))
960
+ ctx.report('KUI-V001', `${at}.${key}`, 'unknown `$slot` field');
961
+ if (typeof child.$slot !== 'string' || !CAMEL.test(child.$slot)) {
962
+ ctx.report(
963
+ 'KUI-V001',
964
+ `${at}.$slot`,
965
+ 'a slot name is a camelCase identifier',
966
+ );
967
+ return;
968
+ }
969
+ const declared = ctx.slots.get(child.$slot);
970
+ const props = declared?.input?.props ?? [];
971
+ if (child.input !== undefined && !declared?.input) {
972
+ ctx.report(
973
+ 'KUI-V001',
974
+ `${at}.input`,
975
+ `slot "${child.$slot}" declares no input`,
976
+ );
977
+ return;
978
+ }
979
+ const given = isObject(child.input) ? child.input : {};
980
+ for (const prop of props) {
981
+ if (!(prop.name in given)) {
982
+ if (prop.required)
983
+ ctx.report(
984
+ 'KUI-V005',
985
+ `${at}.input`,
986
+ `slot "${child.$slot}" requires input "${prop.name}"`,
987
+ );
988
+ continue;
989
+ }
990
+ checkPropValue(
991
+ ctx,
992
+ prop,
993
+ given[prop.name],
994
+ {},
995
+ scope,
996
+ `${at}.input.${prop.name}`,
997
+ rowScoped,
998
+ );
999
+ }
1000
+ for (const name of Object.keys(given)) {
1001
+ if (!props.some((prop) => prop.name === name))
1002
+ ctx.report(
1003
+ 'KUI-V003',
1004
+ `${at}.input.${name}`,
1005
+ `slot "${child.$slot}" has no input "${name}"`,
1006
+ );
1007
+ }
1008
+ }
1009
+
1010
+ /**
1011
+ * KF-3X7MFF: where a `#view`'s `src` points, relative to the top document's
1012
+ * folder, from the composing document at `from` (undefined for the top
1013
+ * document): `src` resolves from the folder of the document that contains it,
1014
+ * as each generated module imports its children. A posix path with `.`
1015
+ * segments removed and `..` folded; it may start with `../` (or `/`).
1016
+ */
1017
+ export function composedViewPath(from, src) {
1018
+ const parts = from === undefined ? [] : from.split('/').slice(0, -1);
1019
+ if (src.startsWith('/')) parts.length = 0;
1020
+ for (const part of src.split('/')) {
1021
+ if (part === '' || part === '.') continue;
1022
+ if (part !== '..') parts.push(part);
1023
+ // `..` folds a folder; above the root (`/`) it stays at the root.
1024
+ else if (parts.length && parts.at(-1) !== '..') {
1025
+ if (parts.at(-1) !== '') parts.pop();
1026
+ } else parts.push(part);
1027
+ }
1028
+ return `${src.startsWith('/') ? '/' : ''}${parts.join('/')}`;
1029
+ }
1030
+
1031
+ function checkView(ctx, node, at, scope, rowScoped) {
1032
+ if (typeof node.src !== 'string' || node.src === '') {
1033
+ ctx.report(
1034
+ 'KUI-V012',
1035
+ `${at}.src`,
1036
+ 'a #view node names its document in `src`',
1037
+ );
1038
+ return;
1039
+ }
1040
+ if (!ctx.resolveView) return;
1041
+ // Cycles compare where sources point, not their text: the same `src` in
1042
+ // two folders names two documents.
1043
+ const path = composedViewPath(ctx.viewPath, node.src);
1044
+ if (ctx.viewStack.includes(path)) {
1045
+ ctx.report('KUI-V012', `${at}.src`, `#view "${node.src}" is cyclic`);
1046
+ return;
1047
+ }
1048
+ const child = ctx.resolveView(node.src, path);
1049
+ if (!isObject(child)) {
1050
+ ctx.report('KUI-V012', `${at}.src`, `#view "${node.src}" was not found`);
1051
+ return;
1052
+ }
1053
+ if (isObject(child.slots) && Object.keys(child.slots).length > 0) {
1054
+ ctx.report(
1055
+ 'KUI-V012',
1056
+ `${at}.src`,
1057
+ `#view "${node.src}" declares slots, which a composing document cannot fill`,
1058
+ );
1059
+ }
1060
+ const params = isObject(child.params) ? child.params : {};
1061
+ const given = isObject(node.props) ? node.props : {};
1062
+ for (const [name, value] of Object.entries(given)) {
1063
+ if (!isObject(params[name])) {
1064
+ ctx.report(
1065
+ 'KUI-V012',
1066
+ `${at}.props.${name}`,
1067
+ `#view "${node.src}" has no param "${name}"`,
1068
+ );
1069
+ continue;
1070
+ }
1071
+ checkPropValue(
1072
+ ctx,
1073
+ { name, type: params[name].type },
1074
+ value,
1075
+ {},
1076
+ scope,
1077
+ `${at}.props.${name}`,
1078
+ rowScoped,
1079
+ );
1080
+ }
1081
+ for (const [name, param] of Object.entries(params)) {
1082
+ if (
1083
+ isObject(param) &&
1084
+ !('default' in param) &&
1085
+ param.optional !== true &&
1086
+ !(name in given)
1087
+ ) {
1088
+ ctx.report(
1089
+ 'KUI-V012',
1090
+ at,
1091
+ `#view "${node.src}" requires param "${name}"`,
1092
+ );
1093
+ }
1094
+ }
1095
+ const nested = validateView(child, ctx.catalog, {
1096
+ resolveView: ctx.resolveView,
1097
+ icons: ctx.icons,
1098
+ viewStack: [...ctx.viewStack, path],
1099
+ viewPath: path,
1100
+ // A composed document inside a control renders inside it too.
1101
+ interactiveHost: ctx.interactiveHost,
1102
+ // ... and one inside a row renders inside that row.
1103
+ rowHost: ctx.rowHost || rowScoped,
1104
+ });
1105
+ for (const diagnostic of nested.diagnostics) {
1106
+ ctx.report(
1107
+ diagnostic.code,
1108
+ `${at}{${node.src}}${diagnostic.path.slice(1)}`,
1109
+ diagnostic.message,
1110
+ );
1111
+ }
1112
+ // KF-RDZ7N7: a document composed into a row renders inside that keyed row,
1113
+ // and the generated row passes its key to the composed root, so a delegated
1114
+ // handler reads the row key there. Its actions are row actions of the
1115
+ // composing document; its own contract keeps them view-scoped, since
1116
+ // standalone it has no row.
1117
+ for (const [name, actionScope] of nested.actions)
1118
+ ctx.noteAction(name, rowScoped ? 'row' : actionScope, at);
1119
+ }
1120
+
1121
+ // Zone shapes, as the ESLint rule computes them over JSX: how many direct
1122
+ // children a zone can hold at least and at most, and which ones.
1123
+ const shape = (min, max, items) => ({ min, max, items });
1124
+ function combine(shapes) {
1125
+ return shapes.reduce(
1126
+ (total, item) =>
1127
+ shape(total.min + item.min, total.max + item.max, [
1128
+ ...total.items,
1129
+ ...item.items,
1130
+ ]),
1131
+ shape(0, 0, []),
1132
+ );
1133
+ }
1134
+ function childShape(child) {
1135
+ if (!isObject(child)) return shape(0, 0, []);
1136
+ switch (childKind(child)) {
1137
+ case 'each': {
1138
+ const items = eachTemplates(child).flatMap((template) =>
1139
+ isObject(template) ? childShape(template).items : [],
1140
+ );
1141
+ return shape(0, Number.POSITIVE_INFINITY, items);
1142
+ }
1143
+ case 'if': {
1144
+ const then = childShape(child.then);
1145
+ const otherwise =
1146
+ 'else' in child ? childShape(child.else) : shape(0, 0, []);
1147
+ return shape(
1148
+ Math.min(then.min, otherwise.min),
1149
+ Math.max(then.max, otherwise.max),
1150
+ [...then.items, ...otherwise.items],
1151
+ );
1152
+ }
1153
+ case 'slot':
1154
+ case 'view':
1155
+ return shape(1, 1, []);
1156
+ default:
1157
+ if (child.type === '#text') return shape(1, 1, [{ label: 'text' }]);
1158
+ return shape(1, 1, [{ node: child }]);
1159
+ }
1160
+ }
1161
+
1162
+ // Interactive content (HTML's button, a, input, label, and so on) cannot hold
1163
+ // more of it: the parser splits the host and the row contract breaks. An
1164
+ // entry's `content.interactive` rules say whether a node renders a control as
1165
+ // its root or inside it; `content.exports` does the same per JSX export.
1166
+ function interactiveOf(catalog, node) {
1167
+ const [base, exportName] = node.type.split('#');
1168
+ const content = catalog.entries.get(base)?.content;
1169
+ const rules = exportName
1170
+ ? content?.exports?.[exportName]?.interactive
1171
+ : content?.interactive;
1172
+ const props = isObject(node.props) ? node.props : {};
1173
+ const applies = (rule) =>
1174
+ !rule.whenProps ||
1175
+ rule.whenProps.some((name) => props[name] != null && props[name] !== false);
1176
+ const matched = (rules ?? []).filter(applies).map((rule) => rule.kind);
1177
+ return matched.includes('root') ? 'root' : matched[0];
1178
+ }
1179
+
1180
+ const conditionLabel = ({ prop, equals }) =>
1181
+ `\`${prop}=${JSON.stringify(equals)}\``;
1182
+
1183
+ function bringsInset(entry, node) {
1184
+ const geometry = entry?.layout?.geometry;
1185
+ if (
1186
+ !geometry ||
1187
+ !['margin', 'border', 'padding'].every((side) => geometry[side] === 'self')
1188
+ )
1189
+ return false;
1190
+ const props = isObject(node.props) ? node.props : {};
1191
+ return !(entry.insetFreeWhen ?? []).some((condition) => {
1192
+ const value = props[condition.prop];
1193
+ const known = !isObject(value);
1194
+ return !known || value === condition.equals;
1195
+ });
1196
+ }
1197
+
1198
+ function checkComposition(
1199
+ ctx,
1200
+ node,
1201
+ at,
1202
+ parentKey,
1203
+ shapes,
1204
+ literals,
1205
+ bindings,
1206
+ ) {
1207
+ const [base, exportName] = node.type.split('#');
1208
+ const entry = ctx.catalog.entries.get(base);
1209
+ if (!entry) return;
1210
+ const exportContract = exportName
1211
+ ? entry.jsxExports?.[exportName]
1212
+ : undefined;
1213
+ const rootsOf = (key) => ctx.catalog.entries.get(key)?.rendersAs ?? [key];
1214
+ const parents = exportName ? exportContract?.parents : entry.parents;
1215
+ if (parents?.mode === 'listed' && parentKey) {
1216
+ const parentRoots = rootsOf(keyOf(parentKey));
1217
+ if (!parentRoots.every((root) => parents.entries.includes(root))) {
1218
+ ctx.report(
1219
+ 'KUI-L201',
1220
+ at,
1221
+ `\`${node.type}\` requires one of these cataloged parents: ${parents.entries.join(', ')}`,
1222
+ );
1223
+ }
1224
+ }
1225
+ if (exportName) return;
1226
+ const insetCondition = (entry.insetFreeChildren ?? []).find(
1227
+ (condition) =>
1228
+ literals.has(condition.prop) &&
1229
+ literals.get(condition.prop) === condition.equals,
1230
+ );
1231
+ for (const zone of entry.zones ?? []) {
1232
+ if (!zone.jsx?.prop) continue;
1233
+ const found = shapes.get(zone.id) ?? shape(0, 0, []);
1234
+ const allowed = new Set(
1235
+ zone.accepts
1236
+ .map((accepted) =>
1237
+ accepted.includes(':') ? accepted : `${entry.package}:${accepted}`,
1238
+ )
1239
+ .filter((accepted) => ctx.catalog.entries.has(accepted)),
1240
+ );
1241
+ if (allowed.size) {
1242
+ for (const item of found.items) {
1243
+ const key = item.node
1244
+ ? item.node.type.includes('#')
1245
+ ? item.node.type.replace('#', ':')
1246
+ : item.node.type
1247
+ : undefined;
1248
+ const roots = key ? rootsOf(key) : [];
1249
+ if (!key || !roots.every((root) => allowed.has(root))) {
1250
+ ctx.report(
1251
+ 'KUI-L202',
1252
+ `${at}.zones.${zone.id}`,
1253
+ `\`${node.type}\` zone \`${zone.id}\` does not accept ${key ?? item.label}; catalog accepts: ${[...allowed].join(', ')}`,
1254
+ );
1255
+ }
1256
+ }
1257
+ }
1258
+ const { min, max } = zone.cardinality;
1259
+ if (found.max < min || (max !== 'unbounded' && found.min > max)) {
1260
+ ctx.report(
1261
+ 'KUI-L203',
1262
+ `${at}.zones.${zone.id}`,
1263
+ `\`${node.type}\` zone \`${zone.id}\` requires ${min}..${max} direct children; found ${found.max < min ? found.max : found.min}`,
1264
+ );
1265
+ }
1266
+ }
1267
+ // The inset rule reads the children region, whether the catalog binds it
1268
+ // as a zone or the component exposes it as a content prop.
1269
+ const childrenKey = [...bindings].find(
1270
+ ([, binding]) => binding.prop === 'children',
1271
+ )?.[0];
1272
+ const children = childrenKey ? shapes.get(childrenKey) : undefined;
1273
+ if (!insetCondition || !children) return;
1274
+ for (const item of children.items) {
1275
+ const childEntry = item.node && ctx.catalog.entries.get(item.node.type);
1276
+ if (!childEntry || !bringsInset(childEntry, item.node)) continue;
1277
+ const fix = childEntry.insetFreeWhen?.length
1278
+ ? `set ${childEntry.insetFreeWhen.map(conditionLabel).join(' or ')}`
1279
+ : 'use an inset-free child';
1280
+ ctx.report(
1281
+ 'KUI-L204',
1282
+ `${at}.zones.${childrenKey}`,
1283
+ `\`${item.node.type}\` brings its own content-item inset into \`${node.type}\` with ${conditionLabel(insetCondition)}, which expects inset-free content; ${fix}`,
1284
+ );
1285
+ }
1286
+ }
1287
+
1288
+ /**
1289
+ * Kerf UI's whole-screen layouts: each fills its parent's height and has no
1290
+ * height of its own, so below the root it collapses to its bar unless a
1291
+ * SizedRegion or another of these layouts gives it a height (KF-KQ72TW).
1292
+ */
1293
+ const SCREEN_LAYOUTS = new Set([
1294
+ '@kerfjs/ui:nav-stack',
1295
+ '@kerfjs/ui:split-view',
1296
+ '@kerfjs/ui:tab-navigator',
1297
+ '@kerfjs/ui:workbench',
1298
+ ]);
1299
+ const SIZED_REGION = '@kerfjs/ui:sized-region';
1300
+
1301
+ const PANE = '@kerfjs/ui:pane';
1302
+
1303
+ /**
1304
+ * Whether `node`'s `zone` gives a child a definite height. A SizedRegion or
1305
+ * another whole-screen layout always does. A Pane with a literal `fill: true`
1306
+ * gives its `content` zone one when the Pane itself sits in a sized place (the
1307
+ * root, inside a SizedRegion or layout), since its rows then have a height
1308
+ * (KF-AMEZB3: a filled root Pane sizes a nested layout).
1309
+ */
1310
+ function zoneSizes(node, zone, sized) {
1311
+ if (node.type === SIZED_REGION || SCREEN_LAYOUTS.has(node.type)) return true;
1312
+ return (
1313
+ sized &&
1314
+ node.type === PANE &&
1315
+ zone === 'content' &&
1316
+ isObject(node.props) &&
1317
+ node.props.fill === true
1318
+ );
1319
+ }
1320
+
1321
+ /**
1322
+ * `KUI-H001` hints (non-blocking): a whole-screen layout below the root whose
1323
+ * place has no definite height: its parent is not a SizedRegion, another
1324
+ * whole-screen layout, or a filled Pane's content in a sized place. `sized`
1325
+ * is whether `node` itself sits in a place with a definite height.
1326
+ */
1327
+ function hintUnsizedLayouts(node, at, sized, hints, isRoot = false) {
1328
+ if (!isObject(node) || typeof node.type !== 'string') return;
1329
+ if (!isRoot && !sized && SCREEN_LAYOUTS.has(node.type))
1330
+ hints.push({
1331
+ code: 'KUI-H001',
1332
+ path: at,
1333
+ message: `${node.type} has no height of its own here and collapses to its bar; wrap it in ${SIZED_REGION}`,
1334
+ });
1335
+ const child = (item, path, childSized) => {
1336
+ if (!isObject(item)) return;
1337
+ switch (childKind(item)) {
1338
+ case 'each':
1339
+ if ('templates' in item)
1340
+ for (const [kind, template] of Object.entries(
1341
+ isObject(item.templates) ? item.templates : {},
1342
+ ))
1343
+ child(template, `${path}.templates.${kind}`, childSized);
1344
+ else child(item.template, `${path}.template`, childSized);
1345
+ break;
1346
+ case 'if':
1347
+ child(item.then, `${path}.then`, childSized);
1348
+ if ('else' in item) child(item.else, `${path}.else`, childSized);
1349
+ break;
1350
+ default:
1351
+ hintUnsizedLayouts(item, path, childSized, hints);
1352
+ }
1353
+ };
1354
+ for (const [zone, children] of Object.entries(
1355
+ isObject(node.zones) ? node.zones : {},
1356
+ )) {
1357
+ const childSized = zoneSizes(node, zone, sized);
1358
+ if (Array.isArray(children))
1359
+ children.forEach((item, index) =>
1360
+ child(item, `${at}.zones.${zone}[${index}]`, childSized),
1361
+ );
1362
+ }
1363
+ }
1364
+
1365
+ /**
1366
+ * Validates a view document. Returns `{ valid, diagnostics, hints, actions }`,
1367
+ * where each diagnostic is `{ code, path, message }` (a `KUI-V###` document id
1368
+ * or a `KUI-L201`–`L204` composition id) and `actions` maps each action name
1369
+ * to its `row` or `view` scope. `hints` are non-blocking `KUI-H###` advice
1370
+ * about a valid document (a nested layout with no height); they never make it
1371
+ * invalid. `options.resolveView(src, path)` loads a composed document, where
1372
+ * `path` is where `src` points relative to the top document's folder (each
1373
+ * `src` resolves from the document that contains it); without it, `#view`
1374
+ * nodes are checked for shape only.
1375
+ */
1376
+ export function validateView(document, catalog, options = {}) {
1377
+ return runView(document, catalog, options);
1378
+ }
1379
+
1380
+ /**
1381
+ * A validation context: the options, a diagnostics sink, and the id, name,
1382
+ * and action tables. A `trace` marks a scoped run (validate-move.mjs): it
1383
+ * records each action use, and a `quiet` one leaves conflicts to its caller.
1384
+ */
1385
+ function createContext(catalog, options, trace) {
1386
+ const diagnostics = [];
1387
+ const ids = new Map();
1388
+ const names = new Map();
1389
+ const actions = new Map();
1390
+ const ctx = {
1391
+ catalog,
1392
+ diagnostics,
1393
+ actions,
1394
+ trace,
1395
+ resolveView: options.resolveView,
1396
+ icons: options.icons ? new Set(options.icons) : undefined,
1397
+ viewStack: options.viewStack ?? [],
1398
+ viewPath: options.viewPath,
1399
+ params: new Map(),
1400
+ slots: new Map(),
1401
+ checkedSlots: new WeakSet(),
1402
+ nestedDynamics: new WeakMap(),
1403
+ packages: undefined,
1404
+ interactiveHost: options.interactiveHost,
1405
+ rowHost: options.rowHost === true,
1406
+ report(code, path, message) {
1407
+ diagnostics.push({ code, path, message });
1408
+ },
1409
+ noteId(id, at) {
1410
+ if (typeof id !== 'string' || !ULID.test(id)) {
1411
+ ctx.report('KUI-V006', `${at}.id`, 'a node id is a 26-character ULID');
1412
+ } else if (ids.has(id)) {
1413
+ ctx.report(
1414
+ 'KUI-V006',
1415
+ `${at}.id`,
1416
+ `duplicate node id ${id} (first at ${ids.get(id)})`,
1417
+ );
1418
+ } else ids.set(id, at);
1419
+ },
1420
+ noteName(name, at) {
1421
+ if (typeof name !== 'string' || !CAMEL.test(name)) {
1422
+ ctx.report(
1423
+ 'KUI-V006',
1424
+ `${at}.name`,
1425
+ 'a node name is a camelCase identifier',
1426
+ );
1427
+ } else if (names.has(name)) {
1428
+ ctx.report(
1429
+ 'KUI-V006',
1430
+ `${at}.name`,
1431
+ `duplicate node name "${name}" (first at ${names.get(name)})`,
1432
+ );
1433
+ } else names.set(name, at);
1434
+ },
1435
+ noteAction(name, scope, at) {
1436
+ if (trace) {
1437
+ trace.notes.push([name, scope]);
1438
+ if (trace.quiet) return;
1439
+ }
1440
+ const seen = actions.get(name);
1441
+ if (seen && seen !== scope) {
1442
+ ctx.report(
1443
+ 'KUI-V009',
1444
+ at,
1445
+ `action "${name}" is used with both row and view scope`,
1446
+ );
1447
+ } else actions.set(name, scope);
1448
+ },
1449
+ };
1450
+ return ctx;
1451
+ }
1452
+
1453
+ /**
1454
+ * Checks a document's own fields, params, and slots into `ctx`, which then
1455
+ * knows them. False when the document is not an object.
1456
+ */
1457
+ function checkHeader(ctx, document) {
1458
+ if (!isObject(document)) {
1459
+ ctx.report('KUI-V001', '$', 'a view document is a JSON object');
1460
+ return false;
1461
+ }
1462
+ for (const key of only(document, [
1463
+ '$schema',
1464
+ 'schema',
1465
+ 'name',
1466
+ 'catalogs',
1467
+ 'params',
1468
+ 'slots',
1469
+ 'root',
1470
+ ])) {
1471
+ ctx.report('KUI-V001', `$.${key}`, 'unknown top-level field');
1472
+ }
1473
+ if (document.schema !== VIEW_DOCUMENT_SCHEMA_ID) {
1474
+ ctx.report(
1475
+ 'KUI-V001',
1476
+ '$.schema',
1477
+ `schema must be "${VIEW_DOCUMENT_SCHEMA_ID}"`,
1478
+ );
1479
+ }
1480
+ if (typeof document.name !== 'string' || !PASCAL.test(document.name)) {
1481
+ ctx.report('KUI-V001', '$.name', 'name is a PascalCase identifier');
1482
+ }
1483
+ if (
1484
+ !Array.isArray(document.catalogs) ||
1485
+ document.catalogs.some((item) => typeof item !== 'string')
1486
+ ) {
1487
+ ctx.report(
1488
+ 'KUI-V001',
1489
+ '$.catalogs',
1490
+ 'catalogs is a list of package names or catalog paths',
1491
+ );
1492
+ } else {
1493
+ // Only package names can be checked here; a path's package is the caller's
1494
+ // to resolve, so a document naming any path skips the package check.
1495
+ const pathLike = document.catalogs.some(
1496
+ (item) => item.startsWith('.') || item.startsWith('/'),
1497
+ );
1498
+ if (!pathLike) ctx.packages = new Set(document.catalogs);
1499
+ }
1500
+ for (const [name, param] of Object.entries(
1501
+ isObject(document.params) ? document.params : {},
1502
+ )) {
1503
+ const at = `$.params.${name}`;
1504
+ if (!CAMEL.test(name) || !isObject(param)) {
1505
+ ctx.report(
1506
+ 'KUI-V001',
1507
+ at,
1508
+ 'a param is a camelCase name mapped to `{ type, default?, optional? }`',
1509
+ );
1510
+ continue;
1511
+ }
1512
+ for (const key of only(param, [
1513
+ 'type',
1514
+ 'default',
1515
+ 'optional',
1516
+ 'description',
1517
+ ]))
1518
+ ctx.report('KUI-V001', `${at}.${key}`, 'unknown param field');
1519
+ // KF-JE8KHX: `optional: true` makes an input optional with no default,
1520
+ // so an omitted value reads as absent (an optional item field extracted
1521
+ // into a row document).
1522
+ if ('optional' in param && (param.optional !== true || 'default' in param))
1523
+ ctx.report(
1524
+ 'KUI-V001',
1525
+ `${at}.optional`,
1526
+ 'optional is `true`, on a param with no default (a default already makes it optional)',
1527
+ );
1528
+ validateDeclaredType(ctx, param.type, `${at}.type`);
1529
+ // A prop-typed param's default is a literal of that prop (KF-V9V2B6: a
1530
+ // Select's choices promoted with their current list).
1531
+ const owner =
1532
+ param.type?.kind === 'prop'
1533
+ ? ctx.catalog.components.get(param.type.component)
1534
+ : undefined;
1535
+ const ownerProp = owner?.component.props.find(
1536
+ (prop) => prop.name === param.type.prop,
1537
+ );
1538
+ if (
1539
+ 'default' in param &&
1540
+ PARAM_KINDS.has(param.type?.kind) &&
1541
+ !(ownerProp
1542
+ ? isLiteralOf(param.default, ownerProp.type, owner.definitions)
1543
+ : isLiteralOf(param.default, param.type))
1544
+ ) {
1545
+ ctx.report(
1546
+ 'KUI-V004',
1547
+ `${at}.default`,
1548
+ `the default is not a valid ${describe(param.type)}`,
1549
+ );
1550
+ }
1551
+ ctx.params.set(name, param);
1552
+ }
1553
+ if (document.params !== undefined && !isObject(document.params))
1554
+ ctx.report('KUI-V001', '$.params', 'params is an object');
1555
+ for (const [name, slot] of Object.entries(
1556
+ isObject(document.slots) ? document.slots : {},
1557
+ )) {
1558
+ const at = `$.slots.${name}`;
1559
+ if (!CAMEL.test(name) || !isObject(slot)) {
1560
+ ctx.report(
1561
+ 'KUI-V001',
1562
+ at,
1563
+ 'a slot is a camelCase name mapped to `{ input? }`',
1564
+ );
1565
+ continue;
1566
+ }
1567
+ for (const key of only(slot, ['input', 'description']))
1568
+ ctx.report('KUI-V001', `${at}.${key}`, 'unknown slot field');
1569
+ if (slot.input !== undefined) {
1570
+ if (slot.input?.kind !== 'object')
1571
+ ctx.report('KUI-V001', `${at}.input`, 'a slot input is an object type');
1572
+ else validateDeclaredType(ctx, slot.input, `${at}.input`);
1573
+ }
1574
+ ctx.slots.set(name, slot);
1575
+ }
1576
+ return true;
1577
+ }
1578
+
1579
+ /**
1580
+ * `validateView` with an optional `trace` (validate-move.mjs): its
1581
+ * `entries` map, when given, records where each node is checked. Internal.
1582
+ */
1583
+ export function runView(document, catalog, options, trace) {
1584
+ const ctx = createContext(catalog, options, trace);
1585
+ const { diagnostics, actions } = ctx;
1586
+ if (!checkHeader(ctx, document))
1587
+ return { valid: false, diagnostics, hints: [], actions };
1588
+ // KF-PK3GVY: an editor's empty draft has no root yet; it is a document,
1589
+ // but nothing can generate or render it until a component becomes one.
1590
+ if (document.root === undefined) {
1591
+ ctx.report(
1592
+ 'KUI-V017',
1593
+ '$.root',
1594
+ 'the document has no root; add a component to start it',
1595
+ );
1596
+ } else if (!isObject(document.root) || !('type' in document.root)) {
1597
+ ctx.report('KUI-V001', '$.root', 'root is exactly one node');
1598
+ } else {
1599
+ checkNode(ctx, document.root, '$.root', new Map(), false, undefined);
1600
+ }
1601
+ const hints = [];
1602
+ if (hasTypeExpressions(document))
1603
+ hints.push({
1604
+ code: 'KUI-H002',
1605
+ path: '$.params',
1606
+ message:
1607
+ 'TypeScript parameter expressions require the owning project compiler; this pass checks structure only.',
1608
+ });
1609
+ hintUnsizedLayouts(document.root, '$.root', true, hints, true);
1610
+ return { valid: diagnostics.length === 0, diagnostics, hints, actions };
1611
+ }
1612
+
1613
+ /**
1614
+ * Checks pieces of `document` alone (KF-SFAA5R: scoped move validation), as
1615
+ * `validateView(document, catalog)` checks them in the place `entry`
1616
+ * describes (an `entries` record of a traced run). Returns a function that
1617
+ * checks `item`, a node (or, with `asChild`, any zone child) and its
1618
+ * subtree, or, with `shallow`, the node alone, noting where a child appended
1619
+ * to `zone` would be checked. Action conflicts and duplicate ids and names
1620
+ * are left to the caller: each run has its own tables. Internal.
1621
+ */
1622
+ export function createScopedCheck(document, catalog) {
1623
+ const header = createContext(catalog, {});
1624
+ checkHeader(header, document);
1625
+ return (item, entry, { asChild = false, shallow = false, zone } = {}) => {
1626
+ const trace = {
1627
+ quiet: true,
1628
+ notes: [],
1629
+ shallow: shallow ? item : undefined,
1630
+ zone,
1631
+ child: undefined,
1632
+ hostAfter: undefined,
1633
+ };
1634
+ const ctx = createContext(catalog, {}, trace);
1635
+ ctx.params = header.params;
1636
+ ctx.slots = header.slots;
1637
+ ctx.packages = header.packages;
1638
+ ctx.interactiveHost = entry[5];
1639
+ (asChild ? checkChild : checkNode)(ctx, item, ...entry.slice(0, 5));
1640
+ return { ...trace, diagnostics: ctx.diagnostics };
1641
+ };
1642
+ }
1643
+
1644
+ /**
1645
+ * What a parent's checks read of node `node` as its child: its type and
1646
+ * whether it brings its own content-item inset (`KUI-L204`). Internal.
1647
+ */
1648
+ export const childFacts = (catalog, node) =>
1649
+ `${node.type} ${bringsInset(catalog.entries.get(node.type), node)}`;