@reqvire-org/ads 0.5.0 → 0.5.2

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 (554) hide show
  1. package/README.md +9 -6
  2. package/dist/ads-errors.mjs +382 -34
  3. package/dist/ads-views.mjs +4 -4
  4. package/dist/analysis/composition-axes.mjs +48 -0
  5. package/dist/analysis/construction-memo.mjs +38 -0
  6. package/dist/analysis/context.mjs +19 -0
  7. package/dist/analysis/design-reads.mjs +177 -0
  8. package/dist/analysis/design-usage.mjs +20 -4
  9. package/dist/analysis/factored-classes.mjs +90 -0
  10. package/dist/analysis/helpers.mjs +5 -7
  11. package/dist/analysis/mock-check.mjs +5 -4
  12. package/dist/analysis/native-project.mjs +12 -0
  13. package/dist/analysis/owner-analysis-cache.mjs +86 -23
  14. package/dist/analysis/owner-analysis-key.mjs +42 -10
  15. package/dist/analysis/owner-choices.mjs +195 -43
  16. package/dist/analysis/owner-composition.mjs +152 -43
  17. package/dist/analysis/owner-controls.mjs +27 -0
  18. package/dist/analysis/owner-reuse.mjs +8 -6
  19. package/dist/analysis/owner-source.mjs +309 -83
  20. package/dist/analysis/prose-owners.mjs +57 -0
  21. package/dist/analysis/scenario-keys.mjs +10 -7
  22. package/dist/analysis/service.mjs +50 -3
  23. package/dist/analysis/standalone.mjs +7 -4
  24. package/dist/analysis/styling-ownership.mjs +22 -0
  25. package/dist/analysis/syntax.mjs +59 -1
  26. package/dist/analysis/worker-protocol.mjs +14 -2
  27. package/dist/analysis/worker.mjs +32 -10
  28. package/dist/architecture-report.mjs +26 -0
  29. package/dist/asset-view-facts.mjs +16 -2
  30. package/dist/boundaries.mjs +26 -10
  31. package/dist/bun-compiler.mjs +2 -2
  32. package/dist/check-service.mjs +29 -17
  33. package/dist/check.mjs +20 -7
  34. package/dist/cli-arguments.mjs +2 -2
  35. package/dist/cli.mjs +4 -4
  36. package/dist/composed-contrast.mjs +28 -8
  37. package/dist/composed-keyline.mjs +107 -0
  38. package/dist/config.mjs +2 -1
  39. package/dist/construction-output.mjs +149 -20
  40. package/dist/construction-spec.d.mts +320 -12
  41. package/dist/construction-spec.mjs +452 -69
  42. package/dist/corner-overpaint.mjs +65 -0
  43. package/dist/derived-states.mjs +182 -0
  44. package/dist/design-foundation.mjs +6 -1
  45. package/dist/design-inputs.mjs +18 -3
  46. package/dist/design-system-closure.mjs +12 -7
  47. package/dist/design-usage.mjs +8 -2
  48. package/dist/emit/contract.mjs +24 -5
  49. package/dist/emit/emission.mjs +14 -5
  50. package/dist/emit/font-emission.mjs +21 -1
  51. package/dist/emit/foundation-sheet.mjs +6 -5
  52. package/dist/emit/integrity.mjs +8 -2
  53. package/dist/emit/output-watch.mjs +120 -0
  54. package/dist/emit/owner-emission-cache.mjs +4 -4
  55. package/dist/emit/preview-emitter.mjs +4 -2
  56. package/dist/emit/preview-tree.mjs +1 -1
  57. package/dist/emit/service.mjs +8 -2
  58. package/dist/finding-rules.mjs +10 -0
  59. package/dist/font-checks.mjs +42 -0
  60. package/dist/font-declaration.d.mts +10 -0
  61. package/dist/font-declaration.mjs +25 -3
  62. package/dist/font-fallback.d.mts +37 -0
  63. package/dist/font-fallback.mjs +25 -0
  64. package/dist/font-macro.d.mts +10 -0
  65. package/dist/font-metrics.d.mts +34 -0
  66. package/dist/font-metrics.mjs +314 -0
  67. package/dist/font-model.mjs +28 -2
  68. package/dist/form-states.mjs +8 -0
  69. package/dist/foundation-macro.d.mts +1 -1
  70. package/dist/frame-regions.mjs +92 -9
  71. package/dist/grid-facts.mjs +72 -16
  72. package/dist/grid-lowering.mjs +11 -5
  73. package/dist/hover-geometry.mjs +15 -0
  74. package/dist/init.mjs +14 -23
  75. package/dist/input-digests.mjs +17 -10
  76. package/dist/linaria/delivery.mjs +2 -0
  77. package/dist/lowering-enter.mjs +31 -0
  78. package/dist/lowering-properties.mjs +27 -1
  79. package/dist/lowering-region-layout.mjs +49 -10
  80. package/dist/lowering-sequence.mjs +89 -0
  81. package/dist/lowering-session.mjs +7 -0
  82. package/dist/lowering-transitions.mjs +22 -8
  83. package/dist/mcp/build-status.mjs +9 -1
  84. package/dist/mcp/compiler-channel.mjs +11 -4
  85. package/dist/mcp/mutations.mjs +1 -0
  86. package/dist/mcp/preview-http.bundle.js +2 -2
  87. package/dist/mcp/preview-watch.mjs +2 -1
  88. package/dist/mcp/preview-widget.bundle.js +5 -5
  89. package/dist/motion-model.mjs +3 -1
  90. package/dist/owner-analysis-check.mjs +86 -12
  91. package/dist/owner-errors.mjs +20 -2
  92. package/dist/owner-lowering.mjs +104 -25
  93. package/dist/owner-scenarios.mjs +29 -4
  94. package/dist/ownership-model.mjs +37 -4
  95. package/dist/paint-contrast.mjs +5 -0
  96. package/dist/placeholder-contrast.mjs +18 -1
  97. package/dist/platform-features.mjs +35 -2
  98. package/dist/preview-bun.mjs +17 -16
  99. package/dist/preview-controls.mjs +35 -0
  100. package/dist/preview-incremental.mjs +1 -1
  101. package/dist/preview-source.mjs +2 -2
  102. package/dist/profile-macro.d.mts +15 -0
  103. package/dist/profile-model.mjs +3 -3
  104. package/dist/profile-view-facts.mjs +55 -4
  105. package/dist/prose-model.d.mts +81 -0
  106. package/dist/prose-model.mjs +101 -0
  107. package/dist/recipe-macro.d.mts +176 -15
  108. package/dist/recipe-model.mjs +35 -7
  109. package/dist/region-lowering.mjs +463 -65
  110. package/dist/render-audit/corner-overpaint.page.mjs +54 -0
  111. package/dist/render-audit/layout-shift.page.mjs +24 -0
  112. package/dist/render-audit/render-states.mjs +122 -1
  113. package/dist/render-audit/render-states.page.mjs +140 -0
  114. package/dist/render-audit/worker.mjs +23 -3
  115. package/dist/render-audit.mjs +139 -1
  116. package/dist/role-vocabulary.d.mts +43 -2
  117. package/dist/role-vocabulary.mjs +50 -4
  118. package/dist/scenario-kit.d.mts +6 -0
  119. package/dist/scenario-registry.mjs +1 -1
  120. package/dist/scenarios-compiler.mjs +20 -6
  121. package/dist/scheme-switch.d.mts +8 -0
  122. package/dist/scheme-switch.mjs +1 -0
  123. package/dist/showcase/ads-views.mjs +116 -53
  124. package/dist/showcase/assets-view.mjs +136 -89
  125. package/dist/showcase/client.bundle.js +65 -65
  126. package/dist/showcase/http-client.bundle.js +17 -17
  127. package/dist/showcase/preview-frame.css +2 -0
  128. package/dist/showcase/profiles-view.mjs +163 -122
  129. package/dist/showcase/scenario-page.d.mts +11 -1
  130. package/dist/showcase/scenario-page.mjs +18 -3
  131. package/dist/showcase/token-sample.mjs +47 -4
  132. package/dist/showcase/tokens-view.mjs +82 -34
  133. package/dist/showcase/ui/ui.css +1 -1
  134. package/dist/showcase/ui/ui.js +5 -5
  135. package/dist/skills/README.md +5 -5
  136. package/dist/skills/ads-designer/README.md +1 -1
  137. package/dist/skills/ads-designer/SKILL.md +13 -12
  138. package/dist/skills/ads-designer/references/accessibility.md +9 -2
  139. package/dist/skills/ads-designer/references/atomic-styles.md +8 -1
  140. package/dist/skills/ads-designer/references/branding.md +20 -5
  141. package/dist/skills/ads-designer/references/cli.md +4 -4
  142. package/dist/skills/ads-designer/references/contracts.md +14 -4
  143. package/dist/skills/ads-designer/references/design-craft.md +1 -1
  144. package/dist/skills/ads-designer/references/design-data.md +3 -3
  145. package/dist/skills/ads-designer/references/forms.md +6 -6
  146. package/dist/skills/ads-designer/references/layout.md +46 -3
  147. package/dist/skills/ads-designer/references/motion.md +45 -1
  148. package/dist/skills/ads-designer/references/performance.md +7 -1
  149. package/dist/skills/ads-designer/references/recipes.md +92 -7
  150. package/dist/skills/ads-designer/references/runtimes.md +1 -1
  151. package/dist/skills/ads-designer/references/scenarios.md +1 -0
  152. package/dist/skills/ads-import/references/atomic-styles.md +8 -1
  153. package/dist/skills/ads-import/references/cli.md +4 -4
  154. package/dist/skills/ads-import/references/contracts.md +14 -4
  155. package/dist/skills/ads-import/references/design-data.md +3 -3
  156. package/dist/skills/ads-import/references/forms.md +6 -6
  157. package/dist/skills/ads-import/references/layout.md +46 -3
  158. package/dist/skills/ads-import/references/recipes.md +92 -7
  159. package/dist/skills/ads-import/references/runtimes.md +1 -1
  160. package/dist/skills/ads-import/references/scenarios.md +1 -0
  161. package/dist/skills/ads-migrate/SKILL.md +3 -1
  162. package/dist/skills/ads-migrate/references/0.5.0-to-0.5.1.md +239 -0
  163. package/dist/skills/ads-migrate/references/0.5.1-to-0.5.2.md +185 -0
  164. package/dist/skills/ads-port/references/atomic-styles.md +8 -1
  165. package/dist/skills/ads-port/references/cli.md +4 -4
  166. package/dist/skills/ads-port/references/contracts.md +14 -4
  167. package/dist/skills/ads-port/references/design-data.md +3 -3
  168. package/dist/skills/ads-port/references/forms.md +6 -6
  169. package/dist/skills/ads-port/references/layout.md +46 -3
  170. package/dist/skills/ads-port/references/recipes.md +92 -7
  171. package/dist/skills/ads-port/references/runtimes.md +1 -1
  172. package/dist/skills/ads-port/references/scenarios.md +1 -0
  173. package/dist/spatial-model.mjs +20 -4
  174. package/dist/state-conditions.d.mts +29 -0
  175. package/dist/state-conditions.mjs +42 -2
  176. package/dist/surface-contrast.mjs +69 -10
  177. package/dist/surface-effects.mjs +100 -0
  178. package/dist/target-size.mjs +1 -1
  179. package/dist/task-cache.mjs +9 -19
  180. package/dist/token-dtcg.mjs +1 -0
  181. package/dist/token-view-facts.mjs +54 -5
  182. package/dist/unreached-sources.mjs +5 -0
  183. package/dist/validation-checks.mjs +1 -1
  184. package/dist/validation.mjs +1 -1
  185. package/docs/ADS.md +36 -13
  186. package/docs/ARCHITECTURE.md +223 -23
  187. package/docs/ASSETS.md +81 -10
  188. package/docs/CACHING.md +152 -24
  189. package/docs/CHANGELOG.md +525 -23
  190. package/docs/DESIGN-REFERENCES.md +5 -5
  191. package/docs/GUIDE.md +286 -73
  192. package/docs/LANGUAGE.md +428 -24
  193. package/docs/LOWERING.md +13 -1
  194. package/docs/MOTION.md +241 -7
  195. package/docs/PROFILE-KINDS.md +176 -14
  196. package/docs/PROFILES.md +2 -2
  197. package/docs/RULES.md +63 -24
  198. package/docs/TOKEN-ROLES.md +15 -7
  199. package/package.json +1 -1
  200. package/dist/starter-files.mjs +0 -155
  201. package/dist/starter-overlay.mjs +0 -189
  202. package/dist/starters/preact/design-system/assets/avatars/avatar.ads.ts +0 -10
  203. package/dist/starters/preact/design-system/assets/avatars/member.svg +0 -1
  204. package/dist/starters/preact/design-system/assets/brand/emblem.ads.ts +0 -18
  205. package/dist/starters/preact/design-system/assets/brand/emblem.svg +0 -4
  206. package/dist/starters/preact/design-system/assets/brand/iris-emblem.ads.ts +0 -14
  207. package/dist/starters/preact/design-system/assets/brand/iris-emblem.svg +0 -4
  208. package/dist/starters/preact/design-system/assets/brand/mark.ads.ts +0 -14
  209. package/dist/starters/preact/design-system/assets/brand/mark.svg +0 -1
  210. package/dist/starters/preact/design-system/assets/glyphs/arrow.ads.ts +0 -14
  211. package/dist/starters/preact/design-system/assets/glyphs/arrow.svg +0 -1
  212. package/dist/starters/preact/design-system/assets/glyphs/chevron-20.svg +0 -1
  213. package/dist/starters/preact/design-system/assets/glyphs/chevron-24.svg +0 -1
  214. package/dist/starters/preact/design-system/assets/glyphs/chevron.ads.ts +0 -20
  215. package/dist/starters/preact/design-system/assets/glyphs/close.ads.ts +0 -13
  216. package/dist/starters/preact/design-system/assets/glyphs/close.svg +0 -1
  217. package/dist/starters/preact/design-system/assets/glyphs/favorite.ads.ts +0 -23
  218. package/dist/starters/preact/design-system/assets/glyphs/favorite.normal.svg +0 -1
  219. package/dist/starters/preact/design-system/assets/glyphs/favorite.selected.svg +0 -1
  220. package/dist/starters/preact/design-system/assets/glyphs/search.ads.ts +0 -10
  221. package/dist/starters/preact/design-system/assets/glyphs/search.svg +0 -1
  222. package/dist/starters/preact/design-system/assets/illustrations/journey.ads.ts +0 -32
  223. package/dist/starters/preact/design-system/assets/illustrations/journey.contrast.svg +0 -6
  224. package/dist/starters/preact/design-system/assets/illustrations/journey.dark.svg +0 -13
  225. package/dist/starters/preact/design-system/assets/illustrations/journey.light.svg +0 -13
  226. package/dist/starters/preact/design-system/assets/logos/harbor-pay.ads.ts +0 -17
  227. package/dist/starters/preact/design-system/assets/logos/harbor-pay.dark.svg +0 -10
  228. package/dist/starters/preact/design-system/assets/logos/harbor-pay.light.svg +0 -10
  229. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
  230. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
  231. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.light.svg +0 -9
  232. package/dist/starters/preact/design-system/assets/status/error.svg +0 -1
  233. package/dist/starters/preact/design-system/assets/status/outcomes.ads.ts +0 -31
  234. package/dist/starters/preact/design-system/assets/status/status.ads.ts +0 -16
  235. package/dist/starters/preact/design-system/assets/status/success.svg +0 -1
  236. package/dist/starters/preact/design-system/assets/status/sync-status.ads.ts +0 -14
  237. package/dist/starters/preact/design-system/assets/status/sync-status.svg +0 -7
  238. package/dist/starters/preact/design-system/assets/status/warning.svg +0 -1
  239. package/dist/starters/preact/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
  240. package/dist/starters/preact/design-system/components/Actions/Button/Button.tsx +0 -198
  241. package/dist/starters/preact/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
  242. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
  243. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
  244. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
  245. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
  246. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
  247. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.tsx +0 -110
  248. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
  249. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.tsx +0 -72
  250. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
  251. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
  252. package/dist/starters/preact/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
  253. package/dist/starters/preact/design-system/components/Content/Icon/Icon.tsx +0 -41
  254. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
  255. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
  256. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
  257. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
  258. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
  259. package/dist/starters/preact/design-system/components/Content/Image/Image.tsx +0 -83
  260. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
  261. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
  262. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
  263. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
  264. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
  265. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
  266. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
  267. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.tsx +0 -173
  268. package/dist/starters/preact/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
  269. package/dist/starters/preact/design-system/components/Identity/Identity.tsx +0 -146
  270. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
  271. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.tsx +0 -194
  272. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
  273. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.tsx +0 -37
  274. package/dist/starters/preact/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
  275. package/dist/starters/preact/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
  276. package/dist/starters/preact/design-system/controllers/FormField/FormField.ts +0 -343
  277. package/dist/starters/preact/design-system/controllers/FormField/useFormField.ts +0 -70
  278. package/dist/starters/preact/design-system/controllers/Palette/Palette.ts +0 -165
  279. package/dist/starters/preact/design-system/foundation.ads.ts +0 -22
  280. package/dist/starters/preact/design-system/index.ts +0 -51
  281. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
  282. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
  283. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
  284. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
  285. package/dist/starters/preact/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
  286. package/dist/starters/preact/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
  287. package/dist/starters/preact/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
  288. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
  289. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
  290. package/dist/starters/preact/design-system/mocks/Workspace/media/ads.svg +0 -1
  291. package/dist/starters/preact/design-system/palette.generated.ts +0 -188
  292. package/dist/starters/preact/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
  293. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
  294. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
  295. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
  296. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
  297. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
  298. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
  299. package/dist/starters/preact/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
  300. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +0 -268
  301. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
  302. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
  303. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
  304. package/dist/starters/preact/design-system/profiles/Containers/containers.ads.ts +0 -67
  305. package/dist/starters/preact/design-system/profiles/Containers/frames.ads.ts +0 -32
  306. package/dist/starters/preact/design-system/profiles/Containers/geometry.ads.ts +0 -30
  307. package/dist/starters/preact/design-system/profiles/Containers/spacing.ads.ts +0 -26
  308. package/dist/starters/preact/design-system/profiles/Controls/controls.ads.ts +0 -157
  309. package/dist/starters/preact/design-system/profiles/Controls/frames.ads.ts +0 -50
  310. package/dist/starters/preact/design-system/profiles/Controls/spacing.ads.ts +0 -29
  311. package/dist/starters/preact/design-system/profiles/Focus/keyboard.ads.ts +0 -13
  312. package/dist/starters/preact/design-system/profiles/Identity/identity.ads.ts +0 -25
  313. package/dist/starters/preact/design-system/profiles/Identity/spacing.ads.ts +0 -22
  314. package/dist/starters/preact/design-system/profiles/Layout/grid.ads.ts +0 -69
  315. package/dist/starters/preact/design-system/profiles/Layout/inspector.ads.ts +0 -146
  316. package/dist/starters/preact/design-system/profiles/Layout/overlays.ads.ts +0 -94
  317. package/dist/starters/preact/design-system/profiles/Layout/regions.ads.ts +0 -296
  318. package/dist/starters/preact/design-system/profiles/Motion/feedback.ads.ts +0 -92
  319. package/dist/starters/preact/design-system/profiles/Surfaces/controls.ads.ts +0 -142
  320. package/dist/starters/preact/design-system/profiles/Surfaces/document.ads.ts +0 -2
  321. package/dist/starters/preact/design-system/profiles/Surfaces/materials.ads.ts +0 -18
  322. package/dist/starters/preact/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
  323. package/dist/starters/preact/design-system/profiles/Typography/details.ads.ts +0 -19
  324. package/dist/starters/preact/design-system/profiles/Typography/document.ads.ts +0 -2
  325. package/dist/starters/preact/design-system/profiles/Typography/headings.ads.ts +0 -15
  326. package/dist/starters/preact/design-system/profiles/Typography/text.ads.ts +0 -73
  327. package/dist/starters/preact/design-system/profiles/Visuals/artwork.ads.ts +0 -46
  328. package/dist/starters/preact/design-system/profiles/Visuals/charts.ads.ts +0 -31
  329. package/dist/starters/preact/design-system/profiles/Visuals/content.ads.ts +0 -52
  330. package/dist/starters/preact/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
  331. package/dist/starters/preact/design-system/profiles/Visuals/identity.ads.ts +0 -24
  332. package/dist/starters/preact/design-system/tokens/Artwork/paint.ads.css +0 -7
  333. package/dist/starters/preact/design-system/tokens/Artwork/visual-size.ads.css +0 -12
  334. package/dist/starters/preact/design-system/tokens/Brand/paint.ads.css +0 -7
  335. package/dist/starters/preact/design-system/tokens/Charts/paint.ads.css +0 -19
  336. package/dist/starters/preact/design-system/tokens/Containers/border-width.ads.css +0 -1
  337. package/dist/starters/preact/design-system/tokens/Containers/content-gap.ads.css +0 -5
  338. package/dist/starters/preact/design-system/tokens/Containers/frame-inset.ads.css +0 -6
  339. package/dist/starters/preact/design-system/tokens/Containers/frame-size.ads.css +0 -11
  340. package/dist/starters/preact/design-system/tokens/Containers/radius.ads.css +0 -1
  341. package/dist/starters/preact/design-system/tokens/Controls/border-width.ads.css +0 -4
  342. package/dist/starters/preact/design-system/tokens/Controls/content-gap.ads.css +0 -6
  343. package/dist/starters/preact/design-system/tokens/Controls/control-min-size.ads.css +0 -17
  344. package/dist/starters/preact/design-system/tokens/Controls/frame-inset.ads.css +0 -21
  345. package/dist/starters/preact/design-system/tokens/Controls/radius.ads.css +0 -1
  346. package/dist/starters/preact/design-system/tokens/Controls/target-min-size.ads.css +0 -2
  347. package/dist/starters/preact/design-system/tokens/Controls/visual-size.ads.css +0 -2
  348. package/dist/starters/preact/design-system/tokens/Focus/border-width.ads.css +0 -1
  349. package/dist/starters/preact/design-system/tokens/Focus/focus-offset.ads.css +0 -1
  350. package/dist/starters/preact/design-system/tokens/Foundation/spacing.ads.css +0 -20
  351. package/dist/starters/preact/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
  352. package/dist/starters/preact/design-system/tokens/Grid/layer.ads.css +0 -2
  353. package/dist/starters/preact/design-system/tokens/Grid/layout-size.ads.css +0 -15
  354. package/dist/starters/preact/design-system/tokens/Grid/spacing.ads.css +0 -12
  355. package/dist/starters/preact/design-system/tokens/Grid/track-count.ads.css +0 -1
  356. package/dist/starters/preact/design-system/tokens/Identity/content-gap.ads.css +0 -6
  357. package/dist/starters/preact/design-system/tokens/Identity/visual-size.ads.css +0 -1
  358. package/dist/starters/preact/design-system/tokens/Motion/duration.ads.css +0 -6
  359. package/dist/starters/preact/design-system/tokens/Motion/easing.ads.css +0 -5
  360. package/dist/starters/preact/design-system/tokens/Motion/motion-angle.ads.css +0 -1
  361. package/dist/starters/preact/design-system/tokens/Motion/motion-distance.ads.css +0 -2
  362. package/dist/starters/preact/design-system/tokens/Motion/motion-scale.ads.css +0 -9
  363. package/dist/starters/preact/design-system/tokens/Surfaces/blur.ads.css +0 -2
  364. package/dist/starters/preact/design-system/tokens/Surfaces/gradient.ads.css +0 -2
  365. package/dist/starters/preact/design-system/tokens/Surfaces/opacity.ads.css +0 -2
  366. package/dist/starters/preact/design-system/tokens/Surfaces/paint.ads.css +0 -58
  367. package/dist/starters/preact/design-system/tokens/Surfaces/shadow.ads.css +0 -20
  368. package/dist/starters/preact/design-system/tokens/Typography/font-family.ads.css +0 -1
  369. package/dist/starters/preact/design-system/tokens/Typography/font-features.ads.css +0 -1
  370. package/dist/starters/preact/design-system/tokens/Typography/font-size.ads.css +0 -9
  371. package/dist/starters/preact/design-system/tokens/Typography/font-stretch.ads.css +0 -1
  372. package/dist/starters/preact/design-system/tokens/Typography/font-variations.ads.css +0 -1
  373. package/dist/starters/preact/design-system/tokens/Typography/font-weight.ads.css +0 -1
  374. package/dist/starters/preact/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
  375. package/dist/starters/preact/design-system/tokens/Typography/line-height.ads.css +0 -11
  376. package/dist/starters/preact/design-system/tokens/Typography/word-spacing.ads.css +0 -1
  377. package/dist/starters/preact/starter.json +0 -11
  378. package/dist/starters/react/design-system/assets/avatars/avatar.ads.ts +0 -10
  379. package/dist/starters/react/design-system/assets/avatars/member.svg +0 -1
  380. package/dist/starters/react/design-system/assets/brand/emblem.ads.ts +0 -18
  381. package/dist/starters/react/design-system/assets/brand/emblem.svg +0 -4
  382. package/dist/starters/react/design-system/assets/brand/iris-emblem.ads.ts +0 -14
  383. package/dist/starters/react/design-system/assets/brand/iris-emblem.svg +0 -4
  384. package/dist/starters/react/design-system/assets/brand/mark.ads.ts +0 -14
  385. package/dist/starters/react/design-system/assets/brand/mark.svg +0 -1
  386. package/dist/starters/react/design-system/assets/glyphs/arrow.ads.ts +0 -14
  387. package/dist/starters/react/design-system/assets/glyphs/arrow.svg +0 -1
  388. package/dist/starters/react/design-system/assets/glyphs/chevron-20.svg +0 -1
  389. package/dist/starters/react/design-system/assets/glyphs/chevron-24.svg +0 -1
  390. package/dist/starters/react/design-system/assets/glyphs/chevron.ads.ts +0 -20
  391. package/dist/starters/react/design-system/assets/glyphs/close.ads.ts +0 -13
  392. package/dist/starters/react/design-system/assets/glyphs/close.svg +0 -1
  393. package/dist/starters/react/design-system/assets/glyphs/favorite.ads.ts +0 -23
  394. package/dist/starters/react/design-system/assets/glyphs/favorite.normal.svg +0 -1
  395. package/dist/starters/react/design-system/assets/glyphs/favorite.selected.svg +0 -1
  396. package/dist/starters/react/design-system/assets/glyphs/search.ads.ts +0 -10
  397. package/dist/starters/react/design-system/assets/glyphs/search.svg +0 -1
  398. package/dist/starters/react/design-system/assets/illustrations/journey.ads.ts +0 -32
  399. package/dist/starters/react/design-system/assets/illustrations/journey.contrast.svg +0 -6
  400. package/dist/starters/react/design-system/assets/illustrations/journey.dark.svg +0 -13
  401. package/dist/starters/react/design-system/assets/illustrations/journey.light.svg +0 -13
  402. package/dist/starters/react/design-system/assets/logos/harbor-pay.ads.ts +0 -17
  403. package/dist/starters/react/design-system/assets/logos/harbor-pay.dark.svg +0 -10
  404. package/dist/starters/react/design-system/assets/logos/harbor-pay.light.svg +0 -10
  405. package/dist/starters/react/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
  406. package/dist/starters/react/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
  407. package/dist/starters/react/design-system/assets/logos/lumen-cloud.light.svg +0 -9
  408. package/dist/starters/react/design-system/assets/status/error.svg +0 -1
  409. package/dist/starters/react/design-system/assets/status/outcomes.ads.ts +0 -31
  410. package/dist/starters/react/design-system/assets/status/status.ads.ts +0 -16
  411. package/dist/starters/react/design-system/assets/status/success.svg +0 -1
  412. package/dist/starters/react/design-system/assets/status/sync-status.ads.ts +0 -14
  413. package/dist/starters/react/design-system/assets/status/sync-status.svg +0 -7
  414. package/dist/starters/react/design-system/assets/status/warning.svg +0 -1
  415. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
  416. package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +0 -198
  417. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
  418. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
  419. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
  420. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
  421. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
  422. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
  423. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.tsx +0 -110
  424. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
  425. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.tsx +0 -72
  426. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
  427. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
  428. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
  429. package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +0 -41
  430. package/dist/starters/react/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
  431. package/dist/starters/react/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
  432. package/dist/starters/react/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
  433. package/dist/starters/react/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
  434. package/dist/starters/react/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
  435. package/dist/starters/react/design-system/components/Content/Image/Image.tsx +0 -83
  436. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
  437. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
  438. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
  439. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
  440. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
  441. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
  442. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
  443. package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +0 -173
  444. package/dist/starters/react/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
  445. package/dist/starters/react/design-system/components/Identity/Identity.tsx +0 -146
  446. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
  447. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.tsx +0 -194
  448. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
  449. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.tsx +0 -37
  450. package/dist/starters/react/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
  451. package/dist/starters/react/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
  452. package/dist/starters/react/design-system/controllers/FormField/FormField.ts +0 -343
  453. package/dist/starters/react/design-system/controllers/FormField/useFormField.ts +0 -70
  454. package/dist/starters/react/design-system/controllers/Palette/Palette.ts +0 -165
  455. package/dist/starters/react/design-system/foundation.ads.ts +0 -22
  456. package/dist/starters/react/design-system/index.ts +0 -51
  457. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
  458. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
  459. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
  460. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
  461. package/dist/starters/react/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
  462. package/dist/starters/react/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
  463. package/dist/starters/react/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
  464. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
  465. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
  466. package/dist/starters/react/design-system/mocks/Workspace/media/ads.svg +0 -1
  467. package/dist/starters/react/design-system/palette.generated.ts +0 -188
  468. package/dist/starters/react/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
  469. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
  470. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
  471. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
  472. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
  473. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
  474. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
  475. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
  476. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +0 -268
  477. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
  478. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
  479. package/dist/starters/react/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
  480. package/dist/starters/react/design-system/profiles/Containers/containers.ads.ts +0 -67
  481. package/dist/starters/react/design-system/profiles/Containers/frames.ads.ts +0 -32
  482. package/dist/starters/react/design-system/profiles/Containers/geometry.ads.ts +0 -30
  483. package/dist/starters/react/design-system/profiles/Containers/spacing.ads.ts +0 -26
  484. package/dist/starters/react/design-system/profiles/Controls/controls.ads.ts +0 -157
  485. package/dist/starters/react/design-system/profiles/Controls/frames.ads.ts +0 -50
  486. package/dist/starters/react/design-system/profiles/Controls/spacing.ads.ts +0 -29
  487. package/dist/starters/react/design-system/profiles/Focus/keyboard.ads.ts +0 -13
  488. package/dist/starters/react/design-system/profiles/Identity/identity.ads.ts +0 -25
  489. package/dist/starters/react/design-system/profiles/Identity/spacing.ads.ts +0 -22
  490. package/dist/starters/react/design-system/profiles/Layout/grid.ads.ts +0 -69
  491. package/dist/starters/react/design-system/profiles/Layout/inspector.ads.ts +0 -146
  492. package/dist/starters/react/design-system/profiles/Layout/overlays.ads.ts +0 -94
  493. package/dist/starters/react/design-system/profiles/Layout/regions.ads.ts +0 -296
  494. package/dist/starters/react/design-system/profiles/Motion/feedback.ads.ts +0 -92
  495. package/dist/starters/react/design-system/profiles/Surfaces/controls.ads.ts +0 -142
  496. package/dist/starters/react/design-system/profiles/Surfaces/document.ads.ts +0 -2
  497. package/dist/starters/react/design-system/profiles/Surfaces/materials.ads.ts +0 -18
  498. package/dist/starters/react/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
  499. package/dist/starters/react/design-system/profiles/Typography/details.ads.ts +0 -19
  500. package/dist/starters/react/design-system/profiles/Typography/document.ads.ts +0 -2
  501. package/dist/starters/react/design-system/profiles/Typography/headings.ads.ts +0 -15
  502. package/dist/starters/react/design-system/profiles/Typography/text.ads.ts +0 -73
  503. package/dist/starters/react/design-system/profiles/Visuals/artwork.ads.ts +0 -46
  504. package/dist/starters/react/design-system/profiles/Visuals/charts.ads.ts +0 -31
  505. package/dist/starters/react/design-system/profiles/Visuals/content.ads.ts +0 -52
  506. package/dist/starters/react/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
  507. package/dist/starters/react/design-system/profiles/Visuals/identity.ads.ts +0 -24
  508. package/dist/starters/react/design-system/tokens/Artwork/paint.ads.css +0 -7
  509. package/dist/starters/react/design-system/tokens/Artwork/visual-size.ads.css +0 -12
  510. package/dist/starters/react/design-system/tokens/Brand/paint.ads.css +0 -7
  511. package/dist/starters/react/design-system/tokens/Charts/paint.ads.css +0 -19
  512. package/dist/starters/react/design-system/tokens/Containers/border-width.ads.css +0 -1
  513. package/dist/starters/react/design-system/tokens/Containers/content-gap.ads.css +0 -5
  514. package/dist/starters/react/design-system/tokens/Containers/frame-inset.ads.css +0 -6
  515. package/dist/starters/react/design-system/tokens/Containers/frame-size.ads.css +0 -11
  516. package/dist/starters/react/design-system/tokens/Containers/radius.ads.css +0 -1
  517. package/dist/starters/react/design-system/tokens/Controls/border-width.ads.css +0 -4
  518. package/dist/starters/react/design-system/tokens/Controls/content-gap.ads.css +0 -6
  519. package/dist/starters/react/design-system/tokens/Controls/control-min-size.ads.css +0 -17
  520. package/dist/starters/react/design-system/tokens/Controls/frame-inset.ads.css +0 -21
  521. package/dist/starters/react/design-system/tokens/Controls/radius.ads.css +0 -1
  522. package/dist/starters/react/design-system/tokens/Controls/target-min-size.ads.css +0 -2
  523. package/dist/starters/react/design-system/tokens/Controls/visual-size.ads.css +0 -2
  524. package/dist/starters/react/design-system/tokens/Focus/border-width.ads.css +0 -1
  525. package/dist/starters/react/design-system/tokens/Focus/focus-offset.ads.css +0 -1
  526. package/dist/starters/react/design-system/tokens/Foundation/spacing.ads.css +0 -20
  527. package/dist/starters/react/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
  528. package/dist/starters/react/design-system/tokens/Grid/layer.ads.css +0 -2
  529. package/dist/starters/react/design-system/tokens/Grid/layout-size.ads.css +0 -15
  530. package/dist/starters/react/design-system/tokens/Grid/spacing.ads.css +0 -12
  531. package/dist/starters/react/design-system/tokens/Grid/track-count.ads.css +0 -1
  532. package/dist/starters/react/design-system/tokens/Identity/content-gap.ads.css +0 -6
  533. package/dist/starters/react/design-system/tokens/Identity/visual-size.ads.css +0 -1
  534. package/dist/starters/react/design-system/tokens/Motion/duration.ads.css +0 -6
  535. package/dist/starters/react/design-system/tokens/Motion/easing.ads.css +0 -5
  536. package/dist/starters/react/design-system/tokens/Motion/motion-angle.ads.css +0 -1
  537. package/dist/starters/react/design-system/tokens/Motion/motion-distance.ads.css +0 -2
  538. package/dist/starters/react/design-system/tokens/Motion/motion-scale.ads.css +0 -9
  539. package/dist/starters/react/design-system/tokens/Surfaces/blur.ads.css +0 -2
  540. package/dist/starters/react/design-system/tokens/Surfaces/gradient.ads.css +0 -2
  541. package/dist/starters/react/design-system/tokens/Surfaces/opacity.ads.css +0 -2
  542. package/dist/starters/react/design-system/tokens/Surfaces/paint.ads.css +0 -58
  543. package/dist/starters/react/design-system/tokens/Surfaces/shadow.ads.css +0 -20
  544. package/dist/starters/react/design-system/tokens/Typography/font-family.ads.css +0 -1
  545. package/dist/starters/react/design-system/tokens/Typography/font-features.ads.css +0 -1
  546. package/dist/starters/react/design-system/tokens/Typography/font-size.ads.css +0 -9
  547. package/dist/starters/react/design-system/tokens/Typography/font-stretch.ads.css +0 -1
  548. package/dist/starters/react/design-system/tokens/Typography/font-variations.ads.css +0 -1
  549. package/dist/starters/react/design-system/tokens/Typography/font-weight.ads.css +0 -1
  550. package/dist/starters/react/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
  551. package/dist/starters/react/design-system/tokens/Typography/line-height.ads.css +0 -11
  552. package/dist/starters/react/design-system/tokens/Typography/word-spacing.ads.css +0 -1
  553. package/dist/starters/react/starter.json +0 -11
  554. package/docs/STARTER.md +0 -167
@@ -148,8 +148,8 @@ export const choiceErrors = {
148
148
  group: "unanalyzable",
149
149
  rule: "Design is selected from a finite set of choices ADS can enumerate, so every rendered combination can be checked.",
150
150
  guides: [RECIPES, "ads://guides/atomic-styles"],
151
- message: () => "A value that selects design does not come from a finite set of choices.",
152
- repair: "Type the selecting prop or variable as a literal union (or a const record key) so every choice can be enumerated."
151
+ message: (problem) => problem.falsy === void 0 ? "A value that selects design does not come from a finite set of choices." : `\`${problem.falsy}\` selects design by a test that is not a finite choice: its type admits a given value that is falsy (\`0\`, \`""\`, \`false\` or \`null\`). Test \`!== undefined\`.`,
152
+ repair: "Type the selecting prop or variable as a literal union (or a const record key) so every choice can be enumerated. An optional object, callback or node prop selects by whether it is given: test a node (or any type that admits text, a number or a boolean) with `!== undefined`, never by truthiness."
153
153
  },
154
154
  "work-limit": {
155
155
  group: "unanalyzable",
@@ -162,8 +162,8 @@ export const choiceErrors = {
162
162
  group: "unanalyzable",
163
163
  rule: "Choice analysis is bounded; a selection must stay small enough to be checked completely.",
164
164
  guides: [RECIPES],
165
- message: () => "Choice analysis exceeded its branch limit.",
166
- repair: "Replace deep conditional chains with one lookup over a const record keyed by the selecting value."
165
+ message: (failure) => `Choice analysis exceeded its limit of ${failure.limit} branches. The selection branches on ${failure.axes.length} values: ${failure.axes.map((axis) => `${axis.name} (${axis.values})`).join(", ")}.`,
166
+ repair: "Every listed value multiplies the combinations checked. Make fewer of them select styling or markup together: replace conditional chains with one lookup over a const record keyed by the selecting value, merge props that always change together, or move a part with its own props into its own owner."
167
167
  },
168
168
  "construction-limit": {
169
169
  group: "unanalyzable",
@@ -214,6 +214,13 @@ export const choiceErrors = {
214
214
  message: (failure) => `Part "${failure.name}" is not declared by the recipe.`,
215
215
  repair: "Declare the part in the recipe spec, or use one of the parts it already declares."
216
216
  },
217
+ "part-ambiguous": {
218
+ group: "unresolved-reference",
219
+ rule: "A part inside another part is read by its name, so the name belongs to one nested part of the recipe.",
220
+ guides: [RECIPES],
221
+ message: (failure) => `Part "${failure.name}" names several parts inside the recipe's parts.`,
222
+ repair: "Give each nested part the owner reads its own name."
223
+ },
217
224
  "property-unresolved": {
218
225
  group: "unanalyzable",
219
226
  rule: "Design values resolve to literals or const references inside the design system.",
@@ -362,6 +369,13 @@ export const choiceErrors = {
362
369
  message: (failure) => `The owner writes styling through the DOM (\`${failure.member}\`).`,
363
370
  repair: "Declare the value in the recipe's `measured` clause and write it with `recipe.measured.set(element, { \u2026 })`; any other styling belongs in the recipe."
364
371
  },
372
+ "script-animation": {
373
+ group: "design-bypass",
374
+ rule: "An animation is defined in a recipe and controlled in script. Its keyframes, duration and easing are design: they come from tokens through a recipe construct (`transition`, `paintTransition`, `enter`, a `play` of a sequence, a measured value's `motion`) and are at rest under reduced motion. Script may control what the recipe declared (`getAnimations()`, then `finished`, `cancel()`, `pause()`, `play()`, `currentTime`, and the animation and transition events) and may set measured values. It may not define an animation: `element.animate(\u2026)`, `new Animation(\u2026)`, `new KeyframeEffect(\u2026)` and `setKeyframes(\u2026)` put raw design values in script, outside tokens and outside the reduced-motion policy.",
375
+ guides: [RECIPES, "ads://guides/accessibility"],
376
+ message: (failure) => `The module defines an animation in script (\`${failure.member}\`).`,
377
+ repair: "Declare the motion in the recipe: a state `transition` or `paintTransition`, an `enter`, a sequence played by `play` (once, looping or alternating), or `motion` on a measured value. Start and stop it with an owner state; wait for it, cancel it or seek it through `element.getAnimations()`."
378
+ },
365
379
  "plain-stylesheet-import": {
366
380
  group: "design-bypass",
367
381
  rule: "Styling exists only in owners: a module that authors no recipe imports no stylesheet.",
@@ -579,12 +593,19 @@ export const choiceErrors = {
579
593
  message: (problem) => `${framePlace(problem)} ${problem.frame} needs ${pixels(problem.inlinePx)} (its ${problem.field}), but has ${pixels(problem.regionPx)} ${problem.tier === "every tier" ? "in its tile at every tier" : `at the lower edge of ${problem.tier}`}${problem.condition === null ? "" : ` while ${problem.condition} holds`} under ${problem.context}.`,
580
594
  repair: "Span the cell over more tracks at that tier (or widen the tile), give the frame a smaller fixed size or cap it to its region (`max-inline-size` of 100%, `min(100%, \u2026)`), reduce the insets around it, or place it where it fits."
581
595
  },
596
+ "keyline-missed": {
597
+ group: "wrong-value",
598
+ rule: "In a grid, text starts on one keyline: the start inset of the spatial profile's `wide` gutter, which a grid takes when it names no gutter. A grid on another gutter mode (`narrow`, `condensed`) starts its cells nearer the column line, so a padded frame in such a cell (a card) puts its content back on the keyline: that gutter's start inset and the frame's inline padding add up to the wide gutter's start, within the profile's fine unit, in every theme and brand. Borders are not counted: a border is the frame's edge, its width may change with the theme, and no inset token may be derived from a border width, so text sits a border's width past the keyline. The rule applies to the cell's own container frame, or to the first padded container frame inside it. A control's inset is its own (a button, a tile), a frame without inline padding is flush by choice, and `gutter: \"none\"` grids (structural layouts such as an application shell) have no text keyline. A public component placed in such a cell is checked across owners (`component-keyline`).",
599
+ guides: [RECIPES, "ads://guides/layout"],
600
+ message: (problem) => `${framePlace(problem)} ${problem.frame} starts its content ${pixels(problem.insetPx)} from the column line (the ${problem.gutter} gutter's start and its inline padding; borders are not counted), but the text keyline of this grid is ${pixels(problem.keylinePx)} (the wide gutter's start) under ${problem.context}: its text is ${pixels(Math.abs(problem.insetPx - problem.keylinePx))} ${problem.insetPx > problem.keylinePx ? "past" : "short of"} the keyline, more than the profile's fine unit (${pixels(problem.tolerancePx)}).`,
601
+ repair: "Give the frame an inline padding that, with the gutter's start, comes within the fine unit of the wide gutter's start (a frame profile whose `paddingInline` token is the wide gutter's start), or place the frame in a wide-gutter grid, or remove its inline padding so its content is flush."
602
+ },
582
603
  "form-state-colour-only": {
583
604
  group: "accessibility-semantics",
584
605
  rule: 'A field\'s error state (`[data-user-invalid]`, `[data-invalid]`, `[aria-invalid="true"]`) and its autofill state (`[data-autofill]`) are not shown by colour alone (WCAG 1.4.1): some element\'s treatment under the state adds a cue that is not a hue: an edge or ring (`boxShadow`), a pattern (`backgroundImage`) or a border that appears (`borderStyle: "solid"`).',
585
606
  guides: [FORMS, RECIPES, "ads://guides/accessibility"],
586
607
  message: (failure) => `The ${failure.state} state (${failure.condition}) changes only colours: nothing under it shows the state to someone who cannot tell the hues apart.`,
587
- repair: "Give the state's surface a ring or edge (`boxShadow` with an inset ring token, such as the starter's `--shadow-invalid`) on the control, or another non-hue cue; colour changes may stay beside it."
608
+ repair: "Give the state's surface a ring or edge (`boxShadow` with an inset ring token, such as `--shadow-invalid`) on the control, or another non-hue cue; colour changes may stay beside it."
588
609
  },
589
610
  "autofill-layout-shift": {
590
611
  group: "wrong-value",
@@ -621,6 +642,13 @@ export const choiceErrors = {
621
642
  message: (failure) => `Part "${failure.part}" clamps its text, but it is or is inside ${failure.element}, a control or its label.`,
622
643
  repair: 'Let the control\'s text wrap (remove `lines` and `wrap: "truncate"`), shorten the text, or clamp a description outside the control.'
623
644
  },
645
+ "resize-not-textarea": {
646
+ group: "structure-mismatch",
647
+ rule: "`normalize.resize` states how the user may resize a multi-line text field: it belongs on a part rendered as `<textarea>`. No other element has a resize handle in this language; a region's size comes from its recipe.",
648
+ guides: [RECIPES],
649
+ message: (failure) => `Part "${failure.part}" declares \`resize\` but is rendered as <${failure.element}>.`,
650
+ repair: "Declare `resize` on the part rendered as `<textarea>`, or remove it."
651
+ },
624
652
  "pointer-transparent-interactive": {
625
653
  group: "accessibility-semantics",
626
654
  rule: '`pointerEvents: "none"` is for decorative overlays: never on a focusable element, and only on markup hidden from assistive technology (`aria-hidden`) or free of interactive content.',
@@ -665,10 +693,10 @@ export const choiceErrors = {
665
693
  },
666
694
  "visual-binding-count": {
667
695
  group: "structure-mismatch",
668
- rule: "A construction has one visual part, and it binds exactly one declared asset.",
696
+ rule: "A visual part binds exactly one declared asset. A control and standalone artwork have one visual part; a region may have several, each with its own binding.",
669
697
  guides: ["ads://guides/branding", "ads://guides/pictograms"],
670
698
  message: () => "A visual part does not have exactly one artwork binding.",
671
- repair: "Bind exactly one declared asset to the visual part."
699
+ repair: "Bind exactly one declared asset to each visual part; in a control or standalone artwork, declare one visual part."
672
700
  },
673
701
  "asset-unknown": {
674
702
  group: "unresolved-reference",
@@ -775,6 +803,27 @@ export const choiceErrors = {
775
803
  message: () => "The image of a visual part has no alt attribute.",
776
804
  repair: 'Set `alt` to the text alternative, or `alt=""` when the image is decorative.'
777
805
  },
806
+ "scheme-image-element": {
807
+ group: "structure-mismatch",
808
+ rule: "A part that declares `scheme` is one file of a content image's light and dark pair: it is rendered as an `<img>` without an artwork binding. Declared artwork has its own theme variants.",
809
+ guides: [RECIPES, "ads://guides/branding"],
810
+ message: (failure) => `Part "${failure.part}" declares \`scheme\` but is rendered as <${failure.element}>${failure.element === "img" ? " with an artwork binding" : ""}.`,
811
+ repair: "Render both scheme parts as plain `<img>` elements whose `src` the application supplies, or remove `scheme`."
812
+ },
813
+ "scheme-image-size-missing": {
814
+ group: "structure-mismatch",
815
+ rule: "Both images of a light and dark pair state `width` and `height`: each file's own pixel size, so the box is reserved before either loads and the page does not move when the theme changes.",
816
+ guides: [RECIPES],
817
+ message: (failure) => `The image of part "${failure.part}" has no ${failure.attribute} attribute.`,
818
+ repair: "Set `width` and `height` on both images from each file's own pixel size."
819
+ },
820
+ "scheme-image-not-lazy": {
821
+ group: "structure-mismatch",
822
+ rule: 'In a light and dark image pair, the image of the scheme the default theme (the first declared) does not have is `loading="lazy"` in every choice: a hidden lazy image is not downloaded, an eager one is. Only the default scheme\'s image may load eagerly.',
823
+ guides: [RECIPES],
824
+ message: (failure) => `The ${failure.scheme} image of part "${failure.part}" is not always loading="lazy"; the default theme is ${failure.defaultScheme}, so this file would be downloaded while hidden.`,
825
+ repair: 'Write `loading="lazy"` on that image as a literal and apply any priority (eager loading, `fetchPriority`) to the default scheme\'s image only.'
826
+ },
778
827
  "image-alt-missing": {
779
828
  group: "accessibility-semantics",
780
829
  rule: "Every `<img>` an owner renders states its text alternative (WCAG 2.2 1.1.1): content media and any other image, as artwork images do; decorative images state it as empty.",
@@ -891,7 +940,7 @@ export const choiceErrors = {
891
940
  },
892
941
  "condition-unsupported": {
893
942
  group: "wrong-value",
894
- rule: "A `when` condition selects a state of the owner's root: `&` followed by interaction or form pseudo-classes (:hover, :active, :focus, :focus-visible, :focus-within, :disabled, :enabled, :checked, :indeterminate), `[aria-*]`, `[data-*]` or `[open]` attributes with an optional quoted value, each optionally inside :not(). Pseudo-elements, combinators, classes and other selectors are not states.",
943
+ rule: "A `when` condition selects a state of the owner's root: `&` followed by interaction or form pseudo-classes (:hover, :active, :focus, :focus-visible, :focus-within, :disabled, :enabled, :checked, :indeterminate), `[aria-*]`, `[data-*]` or `[open]` attributes with an optional quoted value, each optionally inside :not(). A state of one of the recipe's own direct parts is written `:has(> .part:state)` with :checked, :indeterminate, :focus-visible, :hover or :disabled (a checkbox's native input, a textarea's own hover). Pseudo-elements, combinators, classes and other selectors are not states.",
895
944
  guides: [RECIPES],
896
945
  message: (failure) => `${failure.construction} spec: condition ${failure.condition} at ${failure.path} ${conditionProblem(failure.problem)}.`,
897
946
  repair: "Write the condition as owner states only. Style a pseudo-element with the part's `pseudo` treatment (for example `pseudo: { placeholder: { surface } }`), and a child through its own part."
@@ -927,6 +976,10 @@ function conditionProblem(problem) {
927
976
  return `has ${problem.text} at offset ${problem.at}, which is not an owner state (a combinator, class, type, nested & or attribute operator)`;
928
977
  case "state-repeated":
929
978
  return `repeats ${problem.state}`;
979
+ case "part-state-unsupported":
980
+ return `has ${problem.text}; a part's state is written \`:has(> .part:state)\` with one of :checked, :indeterminate, :focus-visible, :hover or :disabled`;
981
+ case "part-unknown":
982
+ return `reads a state of ${problem.part}, which is not a direct part of this recipe`;
930
983
  }
931
984
  }
932
985
  export const constructionErrors = {
@@ -951,6 +1004,142 @@ export const constructionErrors = {
951
1004
  message: (failure) => `Profile ${failure.profile}.${failure.field} has unsupported value ${failure.value}.`,
952
1005
  repair: "Use a value this construction can lower."
953
1006
  },
1007
+ "surface-effect-misplaced": {
1008
+ group: "wrong-value",
1009
+ rule: "A shadow that follows an element's shape is declared where it belongs. `shapeShadow` is a visual part's (an image, artwork, a glyph), which has nothing inside it. `groupShadow` is a container's choice: everything inside it casts one shadow. A surface declares at most one of them. `boxShadow` remains the shadow of an element's box and suits any rectangular or rounded element. A `mask` fades a drawing (a visual part) or the edge of an element that scrolls; on any other container its text would fade where it stands, and that cannot be proven readable.",
1010
+ guides: [RECIPES, "ads://guides/tokens"],
1011
+ message: (failure) => {
1012
+ switch (failure.reason) {
1013
+ case "both":
1014
+ return `Surface ${failure.surface} declares both shapeShadow and groupShadow: an element casts one shadow that follows its shape.`;
1015
+ case "shape-on-container":
1016
+ return `Surface ${failure.surface} declares shapeShadow, but it is applied to a container: the shadow would follow everything inside it.`;
1017
+ case "group-on-visual":
1018
+ return `Surface ${failure.surface} declares groupShadow, but it is applied to a visual part, which has nothing inside it.`;
1019
+ case "mask-on-container":
1020
+ return `Surface ${failure.surface} declares mask, but it is applied to a container that does not scroll: its content, text included, would fade where it stands.`;
1021
+ case "brightness-off-visual":
1022
+ return `Surface ${failure.surface} declares brightness, but it is not applied to a visual part: the text it covers would change colour without a contrast check.`;
1023
+ }
1024
+ },
1025
+ repair: "On a visual part use `shapeShadow`; on a container use `boxShadow` for the shadow of its box, or `groupShadow` when one shadow for everything inside it is what you want. Put a `mask` on a visual part, or on an element whose `overflow` scrolls. Put `brightness` on a visual part (the picture itself). Give each element its own surface profile where they differ."
1026
+ },
1027
+ "surface-shadow-layer": {
1028
+ group: "wrong-value",
1029
+ rule: "A `shapeShadow` or `groupShadow` token is one shadow layer in every theme and brand: two offsets, an optional blur and a colour. `filter: drop-shadow()` takes no second layer, no spread and no `inset`, and `none` is not a shadow to cast; a shadow token with those is for `boxShadow`.",
1030
+ guides: ["ads://guides/tokens", RECIPES],
1031
+ message: (failure) => {
1032
+ const why = {
1033
+ none: "is `none`",
1034
+ "several-layers": "has more than one layer",
1035
+ inset: "is an `inset` shadow",
1036
+ spread: "has a spread (a fourth length)",
1037
+ unresolved: "does not resolve to a value"
1038
+ }[failure.problem];
1039
+ return `Surface ${failure.surface}'s ${failure.field === "shape-shadow" ? "shapeShadow" : "groupShadow"} ${failure.value} ${why} under ${failure.context}: a shadow that follows a shape is one layer of offsets, blur and colour.`;
1040
+ },
1041
+ repair: "Give the field its own shadow token with one layer and no spread, in every theme and brand, or use `boxShadow` for this shadow."
1042
+ },
1043
+ "prose-contrast-insufficient": {
1044
+ group: "accessibility-semantics",
1045
+ rule: "Text in prose reaches the contrast minimum (WCAG 2.2 1.4.3: 4.5:1, or 3:1 for provably large text) on every surface it can sit on, in every theme and brand: each declared element's colour on the prose root's background and on the background of each declared element that can contain it (a link in a quote, text in a table cell or a code block), in its base and state surfaces.",
1046
+ guides: ["ads://guides/accessibility", RECIPES],
1047
+ message: (failure) => `Prose element ${failure.element} draws ${failure.foreground} on ${failure.background} (${failure.on}) under ${failure.context}: ${failure.ratio.toFixed(2)}:1, below ${failure.minimum}:1.`,
1048
+ repair: "Change the element's colour or the surface it sits on until the pair passes in every theme and brand; give an element inside a tinted container (a quote, a code block) its own colour there by tinting the container's surface, not by a one-off value."
1049
+ },
1050
+ "condition-visual-unsupported": {
1051
+ group: "unsupported",
1052
+ rule: "A part's condition (`at`) may select another visual profile, so the drawing is another size in that range. The part is a visual part that draws registered artwork or contained application media, and both sizes select the same drawing: a condition is a media query and cannot swap the file.",
1053
+ guides: [RECIPES, "ads://guides/layout"],
1054
+ message: (failure) => {
1055
+ switch (failure.reason) {
1056
+ case "not-visual":
1057
+ return `Part ${failure.part} selects a visual profile under ${failure.condition}, but it is not a visual part.`;
1058
+ case "media":
1059
+ return `Part ${failure.part} selects a visual profile under ${failure.condition}, but its drawing (cropped or inspected media) is not sized by its profile.`;
1060
+ case "drawing-differs":
1061
+ return `Part ${failure.part} selects a visual profile under ${failure.condition} whose size selects another drawing of the asset: a condition cannot swap the file.`;
1062
+ }
1063
+ },
1064
+ repair: 'Put `at.<condition>.visual` on a `kind: "visual"` part that draws registered artwork or contained media, and choose sizes within one drawing\'s range (or declare one drawing for both sizes).'
1065
+ },
1066
+ "sequence-steps-invalid": {
1067
+ group: "wrong-value",
1068
+ rule: "A sequence profile has at least two steps, each at a distinct whole percentage of the run, from 0 to 100.",
1069
+ guides: [RECIPES],
1070
+ message: (failure) => `Sequence ${failure.profile}: ${failure.detail}.`,
1071
+ repair: "Give the sequence a step at 0 and a step at 100, and distinct whole percentages between them."
1072
+ },
1073
+ "sequence-not-seamless": {
1074
+ group: "wrong-value",
1075
+ rule: 'A looping sequence ends where it starts: its step at 100 states the same values as its step at 0, so the loop has no jump. A sequence that should run forward then backward declares `repeat: "alternate"`; one that plays one time declares `repeat: "once"`.',
1076
+ guides: [RECIPES],
1077
+ message: (failure) => `Sequence ${failure.profile} loops, but its last step differs from its first in ${failure.field}: the loop would jump.`,
1078
+ repair: 'Make the step at 100 state the values of the step at 0, or declare `repeat: "alternate"` or `repeat: "once"` in the profile.'
1079
+ },
1080
+ "sequence-step-field": {
1081
+ group: "wrong-value",
1082
+ rule: "A step of a sequence states what the part looks like there: `opacity`, travel (`translateInline`, `translateBlock`), one scale (`scale`, or `scaleInline` or `scaleBlock` for one axis) and `rotate`, each from a token of its role. A step states at least one, and one scale.",
1083
+ guides: [RECIPES],
1084
+ message: (failure) => failure.field === "" ? `Sequence ${failure.profile}: its step at ${failure.at} states nothing.` : `Sequence ${failure.profile}: its step at ${failure.at} cannot state ${failure.field}.`,
1085
+ repair: "State one of the step fields with a token of its role (opacity, motion-distance, motion-scale, motion-angle), and at most one scale per step."
1086
+ },
1087
+ "sequence-stagger-missing": {
1088
+ group: "wrong-value",
1089
+ rule: "A part's `order` starts it that many staggers after the first, so parts that share a sequence run in turn. The stagger is the sequence profile's `stagger` (role `duration`).",
1090
+ guides: [RECIPES],
1091
+ message: (failure) => `A part plays sequence ${failure.profile} with an order, but the profile states no stagger.`,
1092
+ repair: "Give the sequence profile a `stagger` token, or remove `order` from the part."
1093
+ },
1094
+ "state-text-field": {
1095
+ group: "wrong-value",
1096
+ rule: "A text profile selected under an owner state (`when: { state: { text } }`) changes the weight and the tracking only (`font-weight`, `letter-spacing`): the family, the size, the line height and every other text property stay the element's own, so the state moves neither the line nor the box's height.",
1097
+ guides: [RECIPES],
1098
+ message: (failure) => `${failure.element === "&" ? "The root" : `Part ${failure.element}`} takes text profile ${failure.profile} under a state, which changes ${failure.property}.`,
1099
+ repair: "Derive the state's text profile from the element's own (`extends`) and change only `weight` or `letterSpacing`; a different size or family is a different element or a recipe choice, not a state."
1100
+ },
1101
+ "outset-unsupported": {
1102
+ group: "structure-mismatch",
1103
+ rule: "`outset` draws a decorative backdrop past its parent's box (a glow behind a card): it belongs on a part of a `layered` parent that holds no parts and no text. The parent's box and the layout around it do not change.",
1104
+ guides: [RECIPES],
1105
+ message: (failure) => `Part ${failure.part} declares \`outset\` but is not a childless, non-text layer of a layered parent.`,
1106
+ repair: 'Make the parent `layout: "layered"` (root or a part\'s `recipe`) with the backdrop as its first part, and keep content in the other layers.'
1107
+ },
1108
+ "scheme-unsupported": {
1109
+ group: "structure-mismatch",
1110
+ rule: "`scheme` marks one file of a content image's light and dark pair: it belongs on a visual part rendered as an `<img>` without an artwork binding. Declared artwork selects its drawing by theme through its own variants.",
1111
+ guides: [RECIPES, "ads://guides/branding"],
1112
+ message: (failure) => `Part ${failure.part} declares \`scheme\` but is not a content image.`,
1113
+ repair: "Render the part as an `<img>` whose `src` the application supplies, or remove `scheme` and give the declared asset a variant for the other theme."
1114
+ },
1115
+ "state-text-unbound": {
1116
+ group: "unresolved-reference",
1117
+ rule: "A text profile selected under an owner state changes the element's own text: the element is a text part, a control, or a root or part that names a `text` profile.",
1118
+ guides: [RECIPES],
1119
+ message: (failure) => `${failure.element === "&" ? "The root" : `Part ${failure.element}`} takes text profile ${failure.profile} under a state but has no text profile of its own.`,
1120
+ repair: "Give the element its `text` profile, or move the state's `text` to the text part it should change."
1121
+ },
1122
+ "sequence-property-conflict": {
1123
+ group: "conflict",
1124
+ rule: "A property has one source of motion on an element. A property a part's sequence animates (`opacity`, `translate`, `scale`, `rotate`) is not also moved by the part's own `transition`, its paint transition's `opacity` channel or its `enter`.",
1125
+ guides: [RECIPES],
1126
+ message: (failure) => `Part ${failure.part} plays sequence ${failure.profile}, which animates ${failure.property}; the part already moves that property another way.`,
1127
+ repair: "Put the sequence on a wrapping part, or remove the other motion of that property from this part."
1128
+ },
1129
+ "enter-surface-unsupported": {
1130
+ group: "unsupported",
1131
+ rule: "An entrance's starting surface (`enter.from.surface`) states only `opacity` and `blur`, and at least one of them: each has an obvious resting value, opaque and sharp. A starting background, colour, border or shadow would be a second design for the element, which belongs to a state (`when`), not an entrance.",
1132
+ guides: [RECIPES],
1133
+ message: (failure) => failure.field === null ? `The entrance of ${failure.element} starts from surface ${failure.surface}, which states neither opacity nor blur.` : `The entrance of ${failure.element} starts from surface ${failure.surface}, which states ${failure.field}: a starting surface states only opacity and blur.`,
1134
+ repair: "Give the entrance its own surface profile with `opacity`, `blur` or both, and nothing else."
1135
+ },
1136
+ "enter-property-conflict": {
1137
+ group: "conflict",
1138
+ rule: "A property has one timing on an element. A property an entrance animates (`opacity`, `filter` for a starting blur, or its `translate`, `scale` or `rotate`) is not also transitioned by the element's `paintTransition` channels or its press.",
1139
+ guides: [RECIPES],
1140
+ message: (failure) => `The entrance of ${failure.element} animates ${failure.property}, which the element already transitions over another timing.`,
1141
+ repair: "Enter through another property, or put the entrance on a wrapping part and keep the transition on this element."
1142
+ },
954
1143
  "content-missing": {
955
1144
  group: "structure-mismatch",
956
1145
  rule: "A control renders text or artwork in every reachable choice, so it is never empty.",
@@ -965,13 +1154,6 @@ export const constructionErrors = {
965
1154
  message: (failure) => `Field ${failure.field} is supplied by both ${failure.providers[0]} and ${failure.providers[1]}.`,
966
1155
  repair: "Supply the field once: remove the explicit treatment or the slot provider."
967
1156
  },
968
- "parts-visual-repeated": {
969
- group: "structure-mismatch",
970
- rule: "A construction declares at most one visual part.",
971
- guides: [RECIPES],
972
- message: () => "The construction declares more than one visual part.",
973
- repair: "Declare a single visual part."
974
- },
975
1157
  "artwork-binding-missing": {
976
1158
  group: "structure-mismatch",
977
1159
  rule: "An artwork construction binds its visual part to a declared asset.",
@@ -979,12 +1161,12 @@ export const constructionErrors = {
979
1161
  message: () => "An artwork construction has no asset binding.",
980
1162
  repair: "Bind the visual part to a declared asset."
981
1163
  },
982
- "paint-unsupported": {
983
- group: "wrong-value",
984
- rule: "Artwork is painted only through channels its asset declares.",
985
- guides: ["ads://guides/pictograms", "ads://guides/contracts"],
986
- message: (failure) => `Asset ${failure.asset} does not support paint ${failure.paint}.`,
987
- repair: "Use a paint channel the asset declares, or declare the channel on the asset."
1164
+ "artwork-paint-contrast-insufficient": {
1165
+ group: "accessibility-semantics",
1166
+ rule: "A control's artwork with paint slots stays recognizable on the control: in every theme, brand and state, at least one of its paints reaches 3:1 against the control's own background (WCAG 1.4.11). A drawing with its own colours (`paint: \"intrinsic\"`, a product's logo) is not checked.",
1167
+ guides: ["ads://guides/pictograms", "ads://guides/accessibility", "ads://guides/tokens"],
1168
+ message: (failure) => `No paint of artwork ${failure.asset} (${failure.paints.join(", ")}) reaches ${failure.minimum}:1 on the control's background ${failure.background}${failure.state === null ? "" : ` (state ${failure.state})`} under ${failure.context}: the best is ${failure.ratio}:1.`,
1169
+ repair: "Give the drawing one paint that reaches 3:1 on that background in that context (an outline or a darker fill), or adjust the token's value there."
988
1170
  },
989
1171
  "spatial-token-expected": {
990
1172
  group: "design-bypass",
@@ -1030,17 +1212,20 @@ export const constructionErrors = {
1030
1212
  },
1031
1213
  "paint-transition-effect-unsupported": {
1032
1214
  group: "unsupported",
1033
- rule: "An element that transitions paints has only paint surfaces: a gradient image or blur would change without interpolating while its paints transition.",
1215
+ rule: "What changes between a transitioned element's surfaces interpolates. A gradient image never does, so such an element has none. A surface effect does through its own channel: `filter` for `blur`, `shapeShadow` and `groupShadow`, `backdrop-filter` for `backdropBlur` and `backdropSaturate`. An effect that changes between the surfaces without its channel listed would snap while the paints transition.",
1034
1216
  guides: [RECIPES],
1035
- message: (failure) => `The paint transition on ${failure.element} uses surface ${failure.surface}, whose ${failure.field} does not interpolate.`,
1036
- repair: "Use solid paint surfaces on a transitioned element, or remove its paint transition."
1217
+ message: (failure) => failure.field === "background-image" ? `The paint transition on ${failure.element} uses surface ${failure.surface}, whose background image does not interpolate.` : `The paint transition on ${failure.element} does not list the channel of ${failure.field}, which surface ${failure.surface} changes: it would snap while the paints transition.`,
1218
+ repair: "Add `filter` or `backdrop-filter` to the transition's `channels` for an effect that changes, use surfaces without a gradient image on a transitioned element, or remove its paint transition."
1037
1219
  },
1038
1220
  "pseudo-surface-unsupported": {
1039
1221
  group: "wrong-value",
1040
- rule: "A pseudo-element surface sets exactly one field, its text colour: backgrounds, borders and effects of a placeholder are not supported.",
1222
+ rule: "A pseudo-element surface sets exactly one field: a placeholder's text colour (`color`), or a progress bar's fill (`background`). Other paints, borders and effects of a pseudo-element are not supported.",
1041
1223
  guides: [RECIPES],
1042
- message: (failure) => failure.field === null ? `Surface ${failure.surface} on ::${failure.pseudo} sets no colour.` : `Surface ${failure.surface} on ::${failure.pseudo} sets ${failure.field}; only color is supported.`,
1043
- repair: "Treat the pseudo-element with a colour-only surface profile (for example one with just `color`)."
1224
+ message: (failure) => {
1225
+ const field = failure.pseudo === "progressValue" ? "background" : "color";
1226
+ return failure.field === null ? `Surface ${failure.surface} on ${failure.pseudo} sets no ${field}.` : `Surface ${failure.surface} on ${failure.pseudo} sets ${failure.field}; only ${field} is supported.`;
1227
+ },
1228
+ repair: "Treat the pseudo-element with a surface profile that sets only that field: `color` for a placeholder, `background` for a progress fill."
1044
1229
  },
1045
1230
  "placeholder-contrast-insufficient": {
1046
1231
  group: "accessibility-semantics",
@@ -1056,6 +1241,47 @@ export const constructionErrors = {
1056
1241
  message: (failure) => `The placeholder contrast of part "${failure.part}" cannot be proven in ${failure.context} (placeholder state ${failure.states[0] ?? "base"}, background state ${failure.states[1] ?? "base"}): ${failure.reason}.`,
1057
1242
  repair: "Give the part a surface with an opaque background colour token, and a placeholder colour that resolves to a colour token in every context."
1058
1243
  },
1244
+ "state-geometry-unsupported": {
1245
+ group: "wrong-value",
1246
+ rule: "An owner state may select an element's geometry: another frame profile, another spacing profile, and whether a part is collapsed. The state's frame states every field the element's own frame writes; a listed geometry channel changes under some state; a `:hover` state has a focus or attribute state of the same geometry, so it is not for pointer users only; a collapsed part has no frame or arrangement of its own and sits in a stack or a row; a state's frame keeps the element's hit area; neighbouring targets do not overlap.",
1247
+ guides: [RECIPES, "ads://guides/layout"],
1248
+ message: (failure) => {
1249
+ const element = failure.element === "&" ? "The root" : `Part "${failure.element}"`;
1250
+ switch (failure.reason) {
1251
+ case "frame-missing":
1252
+ return `${element} selects frame ${failure.detail} under a state but has no frame of its own to change.`;
1253
+ case "field-dropped":
1254
+ return `${element}: the state's frame does not state ${failure.detail}, which the element's own frame writes.`;
1255
+ case "channel-unused":
1256
+ return `${element} lists geometry channel ${failure.detail}, but nothing of that channel changes under any state.`;
1257
+ case "hover-only":
1258
+ return `${element} changes geometry under ${failure.detail} only: keyboard users never reach it.`;
1259
+ case "collapsed-box":
1260
+ return `${element} is collapsible but has ${failure.detail} of its own, which would still take room.`;
1261
+ case "collapsed-parent":
1262
+ return `${element} is collapsible, but its parent is ${failure.detail}: a part collapses along a stack or a row.`;
1263
+ case "hit-area":
1264
+ return `${element}: frame ${failure.detail} states another hit area than the element's own frame. A target is the same size in every state.`;
1265
+ case "targets-overlap":
1266
+ return `${element} overlaps its neighbours, and ${failure.detail} are targets next to each other: a press there would reach two of them.`;
1267
+ }
1268
+ },
1269
+ repair: "Give the element a frame before a state changes it; state every field in the state's frame profile; list only channels that change; repeat a hover state's geometry under `:focus-visible`, `:focus-within` or an attribute state; put a collapsible part's box on the one element it holds."
1270
+ },
1271
+ "progress-contrast-insufficient": {
1272
+ group: "accessibility-semantics",
1273
+ rule: "A progress bar's fill has at least 3:1 contrast against its track, the part's own background, in every theme, brand and state (WCAG 1.4.11).",
1274
+ guides: [RECIPES, "ads://guides/accessibility", "ads://guides/tokens"],
1275
+ message: (failure) => `The progress fill of part "${failure.part}" has contrast ${failure.ratio}:1 (minimum ${failure.minimum}:1) against its track in ${failure.context}, fill state ${failure.states[0] ?? "base"}, track state ${failure.states[1] ?? "base"}.`,
1276
+ repair: "Choose a fill surface whose background token contrasts enough with the part's own background in that context, or adjust the token's value there."
1277
+ },
1278
+ "progress-contrast-unresolved": {
1279
+ group: "unanalyzable",
1280
+ rule: "A progress bar's contrast is proven from tokens: the fill and the track resolve to opaque colours in every theme, brand and state.",
1281
+ guides: [RECIPES, "ads://guides/accessibility", "ads://guides/tokens"],
1282
+ message: (failure) => `The progress fill contrast of part "${failure.part}" cannot be proven in ${failure.context} (fill state ${failure.states[0] ?? "base"}, track state ${failure.states[1] ?? "base"}): ${failure.reason}.`,
1283
+ repair: "Give the part a surface with an opaque background colour token for its track, and the fill a surface whose background resolves to a colour token in every context."
1284
+ },
1059
1285
  "inactive-surface-active": {
1060
1286
  group: "accessibility-semantics",
1061
1287
  rule: 'A surface profile declaring `state: "inactive"` paints a disabled control: it has no contrast minimum (WCAG 2.2 1.4.3 exempts inactive components), so a construction selects it only under an inactive owner state (`:disabled`, `[aria-disabled="true"]`), never at rest or under another state.',
@@ -1065,7 +1291,7 @@ export const constructionErrors = {
1065
1291
  },
1066
1292
  "state-contrast-insufficient": {
1067
1293
  group: "accessibility-semantics",
1068
- rule: `An element's owner states keep its text readable: where a state's colour meets a background from another surface profile (a colour-only state over the base fill, a state fill under the base colour), the pair has at least 4.5:1 contrast in every theme, brand and condition, or 3:1 where the element's text profile makes its text large there (at least 24px, or 18.66px at weight 700); a state that holds only while the element is inactive (:disabled, [aria-disabled="true"]) has no minimum (WCAG 2.2 1.4.3).`,
1294
+ rule: `An element's owner states keep it readable (text 4.5:1 or 3:1 when large; a visual part's or a text-less control's artwork 3:1; artwork hidden from assistive technology has no minimum): where a state's colour meets a background from another surface profile (a colour-only state over the base fill, a state fill under the base colour), the pair has at least 4.5:1 contrast in every theme, brand and condition, or 3:1 where the element's text profile makes its text large there (at least 24px, or 18.66px at weight 700); a state that holds only while the element is inactive (:disabled, [aria-disabled="true"]) has no minimum (WCAG 2.2 1.4.3). Two states that cannot hold on one root together (two values of one attribute, a state and its :not(), :disabled and :enabled) are not paired.`,
1069
1295
  guides: [RECIPES, "ads://guides/accessibility", "ads://guides/tokens"],
1070
1296
  message: (failure) => `${failure.element === "&" ? "The root" : `Part "${failure.element}"`} pairs colour ${failure.foreground} (${failure.surfaces[0]}, state ${failure.states[0] ?? "base"}) with background ${failure.background} (${failure.surfaces[1]}, state ${failure.states[1] ?? "base"}) at ${failure.ratio}:1 under ${failure.context}; text needs ${failure.minimum}:1.`,
1071
1297
  repair: "Treat the state with a surface that sets both its colour and background, or choose colour and background tokens that contrast in that context."
@@ -1080,6 +1306,13 @@ export const constructionErrors = {
1080
1306
  ].join(" and ")}; a pointer target needs ${pixels(failure.minimumPx)} \xD7 ${pixels(failure.minimumPx)}.`,
1081
1307
  repair: "Raise the frame profile's min-block-size, padding-inline or the visual size in that context, or give the frame a min-target-inline-size / min-target-block-size hit area of at least 24px."
1082
1308
  },
1309
+ "corner-overpaint": {
1310
+ group: "conflict",
1311
+ rule: "A rounded frame's corners stay rounded. A region root whose frame profile declares a `radius`, with visible overflow and no inset on a corner's edges, does not clip what it holds: a part that reaches that corner (the first or last part of a stack, a layer of a layered root) and paints a background of its own draws a square corner over the curve. ADS does not clip for the author, because clipping also cuts focus outlines, shadows and menus.",
1312
+ guides: [RECIPES],
1313
+ message: (failure) => `Part "${failure.part}" paints the background of surface ${failure.surface}${failure.state === null ? "" : ` (state ${failure.state})`} over the root's rounded ${failure.corners.join(", ")} corner${failure.corners.length === 1 ? "" : "s"}${failure.under === null ? "" : ` under ${failure.under}`}: the root has a radius, visible overflow and no inset there${failure.under === null ? "" : " with the frames that state selects"}.`,
1314
+ repair: 'Choose one: clip the root (`overflow: "clip"`), inset it (padding in its frame profile), or round the part (a `frame: { profile }` whose frame profile has the matching radius). Name the rounded corners with `frame: { corners }` when only some are rounded.'
1315
+ },
1083
1316
  "non-text-contrast-insufficient": {
1084
1317
  group: "accessibility-semantics",
1085
1318
  rule: "A control part inside a known surface keeps its boundary and focus visible (WCAG 2.2 1.4.11): where its own background does not reach 3:1 against the enclosing background, its border colour (base and each owner state) does; its focus outline colour reaches 3:1 against what it sits on (the enclosing background outside the box, its own inside), in every theme, brand and condition.",
@@ -1830,6 +2063,15 @@ export const runtimeErrors = {
1830
2063
  repair: "Check the named elements by hand in the scenario's capture or showcase preview, and fix the owning style only if it actually fails the criterion.",
1831
2064
  emitters: ["src/render-audit.mts"]
1832
2065
  },
2066
+ "a11y-motion-endless": {
2067
+ group: "accessibility-semantics",
2068
+ severity: "info",
2069
+ rule: "A recipe root, a part or an artwork that plays a repeating sequence whenever it is rendered is noted: motion that starts by itself, runs longer than five seconds and is shown beside other content must be pausable, stoppable or hideable (WCAG 2.2 2.2.2), and the owner has no state to stop this one by. Reduced motion stops it only for users who set that preference.",
2070
+ guides: ["ads://guides/accessibility"],
2071
+ repair: "Play the sequence under an owner state the user can end, or render the part only while the work it stands for is in progress.",
2072
+ emitters: ["src/owner-analysis-check.mts"],
2073
+ situations: "an owner-analysis note with code review/motion-endless, at the `play` in its recipe (a root's, a region part's, a control artwork's or a standalone artwork's); a sequence whose profile declares `repeat: \"once\"` and a `play` inside a `when` entry are not noted."
2074
+ },
1833
2075
  "a11y-keyboard": {
1834
2076
  group: "accessibility-semantics",
1835
2077
  severity: "review",
@@ -1938,6 +2180,15 @@ export const runtimeErrors = {
1938
2180
  emitters: ["src/app-icon-checks.mts", "src/owner-analysis-check.mts"],
1939
2181
  situations: "located at appIcon.maskable in foundation.ads.ts; the safe zone and the full bleed are read from the drawing rendered at 256 px."
1940
2182
  },
2183
+ "source-unreached": {
2184
+ group: "project-files",
2185
+ severity: "review",
2186
+ rule: "A source file of a design system is reached from its public entry: an owner the barrel exports, or a module such an owner imports. ADS reads a design system through that import closure, so a script outside it is checked by nothing (no token, contrast, layout or accessibility rule runs on it) and is not emitted. It is reviewed, not refused: a file can be outside the entry on purpose for a while (a module only a behaviour contract or a test names, an owner being added or retired). Design declarations (`*.ads.ts`), scenarios, fixtures, tests and mocks have their own readers and are not concerned.",
2187
+ guides: ["ads://guides/layers", "ads://guides/contracts"],
2188
+ repair: "Export the file's owner from the public entry, import it from an owner that is exported, or delete the file. A component kept for later belongs on a branch, not in the design system.",
2189
+ emitters: ["src/owner-analysis-check.mts"],
2190
+ situations: "located at the file, line 1; reported only when every owner and plain module analyzed, because a failed owner's imports are unknown."
2191
+ },
1941
2192
  "asset-unused": {
1942
2193
  group: "project-files",
1943
2194
  severity: "error",
@@ -2194,6 +2445,15 @@ export const runtimeErrors = {
2194
2445
  emitters: ["src/owner-analysis-check.mts"],
2195
2446
  situations: "located at the declaration's display field."
2196
2447
  },
2448
+ "font-fallback": {
2449
+ group: "wrong-value",
2450
+ severity: "error",
2451
+ rule: 'A font() declaration with `fallback` makes ADS emit a system font matched to the family\'s measurements under the name "<family> Fallback". Every font-family token that names the family first names that fallback family right after it, in every theme and brand; otherwise the matched face is never drawn and text moves when the family loads.',
2452
+ guides: ["ads://guides/performance", "ads://guides/tokens"],
2453
+ repair: 'Write the token as "<family>", "<family> Fallback", then the generic families (for example "Karla", "Karla Fallback", system-ui, sans-serif), or remove `fallback` from the font declaration.',
2454
+ emitters: ["src/owner-analysis-check.mts"],
2455
+ situations: "located at the token's definition in its font-family sheet; the message names the token, the family and the contexts."
2456
+ },
2197
2457
  "font-format": {
2198
2458
  group: "wrong-value",
2199
2459
  severity: "review",
@@ -2247,6 +2507,14 @@ export const runtimeErrors = {
2247
2507
  repair: "Add height: auto so the declared attributes keep the proportions, or for a deliberate crop set object-fit in a box of its own with no aspect-ratio.",
2248
2508
  emitters: ["src/render-audit.mts"]
2249
2509
  },
2510
+ "corner-overpainted": {
2511
+ group: "rendered-check",
2512
+ severity: "error",
2513
+ rule: "A rendered rounded corner stays rounded: an element with a border radius and visible overflow whose corner a descendant (a child component's background, an image) paints over is reported. The static rule construction/corner-overpaint proves the same for a recipe's own parts; this measures what a recipe cannot see.",
2514
+ guides: [RECIPES],
2515
+ repair: 'Clip the rounded element (`overflow: "clip"` in its recipe), inset it (padding in its frame profile), or round what it holds to the same radius.',
2516
+ emitters: ["src/render-audit.mts"]
2517
+ },
2250
2518
  "import-leaves-design-system": {
2251
2519
  group: "boundary",
2252
2520
  severity: "error",
@@ -2589,7 +2857,7 @@ export const runtimeErrors = {
2589
2857
  severity: "error",
2590
2858
  rule: "ds.config.json's dsDir names an existing directory holding the public barrel (index.ts) and foundation.ads.ts.",
2591
2859
  guides: ["ads://guides/runtimes"],
2592
- repair: "Bootstrap the design system with `ads init`, or correct dsDir in ds.config.json and add the public barrel and foundation.ads.ts.",
2860
+ repair: "Author the public barrel (index.ts) and foundation.ads.ts in the design-system folder, or correct dsDir in ds.config.json.",
2593
2861
  emitters: ["src/check.mts"],
2594
2862
  situations: "render-stopping; stops the check before any other rule runs."
2595
2863
  },
@@ -2625,7 +2893,31 @@ export const runtimeErrors = {
2625
2893
  guides: ["ads://guides/accessibility"],
2626
2894
  repair: "Usually none; if a target matters, make it reachable in the scenario (an aria-haspopup trigger that opens a dialog/menu/listbox and closes on Escape, a page that settles within 5 s) or split a scenario that exceeds the 3-overlay/6-control limit.",
2627
2895
  emitters: ["src/render-audit.mts"],
2628
- situations: "reason overlay-did-not-open, overlay-trigger-gone, overlay-left-open, overlay-timeout, overlay-detached, overlay-failed, overlay-cap, control-gone, control-timeout, control-detached, control-failed, control-cap, content-still-changing, focus-not-reachable. One finding per reason across the run."
2896
+ situations: "reason overlay-did-not-open, overlay-trigger-gone, overlay-left-open, overlay-timeout, overlay-detached, overlay-failed, overlay-cap, control-gone, control-timeout, control-detached, control-failed, control-cap, content-still-changing, focus-not-reachable, derived-state-unsupported, derived-state-not-applied, derived-timeout, derived-detached, derived-failed. One finding per reason across the run."
2897
+ },
2898
+ "render-audit-construction-unrendered": {
2899
+ group: "evidence-missing",
2900
+ severity: "review",
2901
+ rule: "The audit measures every owner state a construction declares on the elements the scenarios render (`derived` in the audit's coverage). A construction with states that no audited scenario renders is listed by owner and classes: what its states do once laid out is unmeasured.",
2902
+ guides: ["ads://guides/accessibility", "ads://guides/validation"],
2903
+ repair: "Render that variant in a scenario of its owner (or of a pattern that holds it), with the props that select it; its states are then measured without anything more.",
2904
+ emitters: ["src/render-audit.mts"]
2905
+ },
2906
+ "render-audit-state-forced": {
2907
+ group: "evidence-missing",
2908
+ severity: "review",
2909
+ rule: "The audit measures an attribute state by setting the attribute. Where owner analysis proves that the prop which sets that attribute also changes the owner's markup, the audit measured the state's CSS over the content at rest: what the component really shows in that state is unmeasured until a scenario renders it.",
2910
+ guides: ["ads://guides/accessibility", "ads://guides/validation"],
2911
+ repair: "Add a scenario specimen or state that renders the owner with that prop set; the item clears when a render shows the state for real.",
2912
+ emitters: ["src/render-audit.mts"]
2913
+ },
2914
+ "render-audit-state-derivable": {
2915
+ group: "evidence-missing",
2916
+ severity: "info",
2917
+ rule: "A scenario state that only shows an attribute state of an owner rendered elsewhere is measured by the audit without it: the audit derives the state from the recipe.",
2918
+ guides: ["ads://guides/validation"],
2919
+ repair: "Usually none. Remove the scenario state when it exists only for the audit and nobody needs to see it in the showcase; keep it when the component renders other content in that state.",
2920
+ emitters: ["src/render-audit.mts"]
2629
2921
  },
2630
2922
  "render-audit-unavailable": {
2631
2923
  group: "environment",
@@ -2793,6 +3085,15 @@ export const runtimeErrors = {
2793
3085
  repair: "Replace the symlink with a real file inside the design system.",
2794
3086
  emitters: ["src/validation-inputs.mts"]
2795
3087
  },
3088
+ "typescript-config-invalid": {
3089
+ group: "unresolved-reference",
3090
+ severity: "error",
3091
+ rule: "ADS analyses the design system with the compiler options of the project's tsconfig.json and every configuration it extends, read from the checked revision; each of them parses, and every extends target it names by path is part of that revision.",
3092
+ guides: [],
3093
+ repair: "Fix the reported configuration: correct its syntax or option, or point extends at a configuration file of this project (or an installed package).",
3094
+ emitters: ["src/check.mts"],
3095
+ situations: "at line 1 of the configuration file the problem is in (the project's tsconfig.json, or the configuration it extends)."
3096
+ },
2796
3097
  "source-unavailable": {
2797
3098
  group: "unresolved-reference",
2798
3099
  severity: "error",
@@ -2823,9 +3124,9 @@ export const runtimeErrors = {
2823
3124
  "surface-contrast": {
2824
3125
  group: "accessibility-semantics",
2825
3126
  severity: "error",
2826
- rule: "A surface profile that sets both color and background meets WCAG 2.2 AA for text, 4.5:1, in every context (theme, brand, brand under theme and condition); its background-image gradient stops count as backgrounds. A profile does not say whether its colour paints only non-text UI, so 3:1 is never assumed.",
3127
+ rule: "A surface profile that sets both color and background meets WCAG 2.2 AA for text, 4.5:1, in every context (theme, brand, brand under theme and condition); its background-image gradient stops count as backgrounds. The minimum follows what the colour paints where the profile is used: a pair below 4.5:1 is accepted when every use of the profile in the design system is artwork (a visual part, or a control that renders no text: 3:1, WCAG 1.4.11), large text (at least 24px, or 18.66px at weight 700: 3:1) or artwork hidden from assistive technology (decoration: no minimum). A profile nothing uses, one a slot supplies, the document surface, and one the recipe also names for a pseudo-element, a prose element, a backdrop or an entrance keep 4.5:1.",
2827
3128
  guides: ["ads://guides/accessibility", "ads://guides/tokens"],
2828
- repair: "Adjust the colour or background token's value in the named context (or point the profile at a pair that contrasts), keeping the pair at 4.5:1 or more.",
3129
+ repair: 'Adjust the colour or background token\'s value in the named context (or point the profile at a pair that contrasts), keeping the pair at 4.5:1 or more; a colour meant for artwork at 3:1 belongs to a surface profile that only visual parts or text-less controls select. A surface that paints a disabled element declares `state: "inactive"` among its fields: it has no minimum (WCAG 1.4.3 exempts inactive components) and may then be selected only under `:disabled` or `[aria-disabled="true"]`.',
2829
3130
  emitters: ["src/owner-analysis-check.mts"],
2830
3131
  situations: "located at the profile's declaration; profiles with identical paints (a profile and those composing it unchanged) are one finding naming them all. Owner states that pair one profile's colour with another's background are checked by owner analysis (construction/state-contrast-insufficient)."
2831
3132
  },
@@ -2836,7 +3137,16 @@ export const runtimeErrors = {
2836
3137
  guides: ["ads://guides/accessibility", "ads://guides/tokens"],
2837
3138
  repair: "Use an opaque background token (and no element opacity) for text surfaces, or check the rendered contrast by hand with in the named context.",
2838
3139
  emitters: ["src/owner-analysis-check.mts"],
2839
- situations: "located at the profile's declaration: a translucent background, an opacity below 1, an image that is not a gradient, currentColor or a colour ADS does not resolve statically."
3140
+ situations: "located at the profile's declaration: a partly transparent background (a fully transparent one is the note `surface-contrast-placed`), an opacity below 1, an image that is not a gradient, currentColor or a colour ADS does not resolve statically."
3141
+ },
3142
+ "surface-contrast-placed": {
3143
+ group: "unanalyzable",
3144
+ severity: "info",
3145
+ rule: "A surface profile whose background is fully transparent paints nothing itself: its text is drawn on whatever the element is placed on. Nothing about the profile can be judged, so this is a note, not a review. The pair is checked where the surface is used: by the cross-owner check (`component-contrast`) for placements inside the design system, and by the render audit for what scenarios show. A placement in application code is outside both.",
3146
+ guides: ["ads://guides/accessibility", "ads://guides/tokens"],
3147
+ repair: "Nothing to repair in the profile. Show the owner on each backdrop it is meant for in a scenario, so the render audit measures it.",
3148
+ emitters: ["src/owner-analysis-check.mts"],
3149
+ situations: "located at the profile's declaration, for the contexts in which its background resolves to full transparency; a partly transparent background is `surface-contrast-unresolved`."
2840
3150
  },
2841
3151
  "component-contrast": {
2842
3152
  group: "accessibility-semantics",
@@ -2856,6 +3166,24 @@ export const runtimeErrors = {
2856
3166
  emitters: ["src/composed-contrast.mts", "src/owner-analysis-check.mts"],
2857
3167
  situations: "located at the element, surface or placement whose paint breaks the proof; one item per position and reason, at its first context."
2858
3168
  },
3169
+ "component-keyline": {
3170
+ group: "wrong-value",
3171
+ severity: "error",
3172
+ rule: "A public component placed in a cell of a grid on a narrower gutter than `wide` puts its content on the grid's text keyline, like a frame of the grid's own owner (`source/keyline-missed`): that gutter's start inset and the inline padding of the component's root frame add up to the wide gutter's start, within the spatial profile's fine unit, in every theme and brand. Borders are not counted. The component's root is the outermost element of its markup; a component whose root is another component takes that one's root. It applies where the placement is the cell, or sits inside owned elements of the cell that do not pad; `gutter: \"none\"` grids, a component whose root is a control, and a root frame without inline padding are exempt.",
3173
+ guides: ["ads://guides/recipes", "ads://guides/layout"],
3174
+ repair: "Give the component a variant whose root frame's inline padding is the wide gutter's start token and select it where it is placed in such a cell, or place it in a wide-gutter grid, or wrap it in an owned element that takes the keyline padding itself.",
3175
+ emitters: ["src/composed-keyline.mts", "src/owner-analysis-check.mts"],
3176
+ situations: "located at the placement, in the owner whose grid it is; `related` names the component's root frame; one finding per placement and frame, at its first failing context."
3177
+ },
3178
+ "component-keyline-unresolved": {
3179
+ group: "unanalyzable",
3180
+ severity: "review",
3181
+ rule: "The keyline of a public component in a narrower-gutter grid cell is proven from its root frame. Where that root cannot be read (its markup cannot be followed to one root element, its root is a component ADS does not analyze, its choices exceed what is enumerated), the placement is reviewed, never passed.",
3182
+ guides: ["ads://guides/layout"],
3183
+ repair: "Give the component one owned root element with its frame, or check the rendered alignment by hand at the placement.",
3184
+ emitters: ["src/composed-keyline.mts", "src/owner-analysis-check.mts"],
3185
+ situations: "located at the placement; one item per placement."
3186
+ },
2859
3187
  "theme-undefined": {
2860
3188
  group: "project-files",
2861
3189
  severity: "error",
@@ -3039,6 +3367,13 @@ export const runtimeErrors = {
3039
3367
  message: (problem) => `The mock renders <${problem.tag}>, which is not imported from the design system.`,
3040
3368
  repair: "Render public owners directly; an arrangement the screen needs belongs in a pattern."
3041
3369
  },
3370
+ "prose-element-undeclared": {
3371
+ group: "design-bypass",
3372
+ rule: 'Plain flow markup inside a prose owner (a component whose recipe has `layout: "prose"`) is that owner\'s content. Each element used there is one the recipe declares in `elements`; an element it does not declare would be drawn without a design.',
3373
+ guides: ["ads://guides/scenarios", RECIPES],
3374
+ message: (problem) => `<${problem.tag}> is content of ${problem.owner}, whose prose recipe declares no such element.`,
3375
+ repair: "Declare the element in the owner's prose recipe (`elements`), or write the content with the elements it declares."
3376
+ },
3042
3377
  "spread-props": {
3043
3378
  group: "unanalyzable",
3044
3379
  rule: "A mock passes explicit props: a spread could carry design ADS cannot see.",
@@ -3082,6 +3417,13 @@ export const runtimeErrors = {
3082
3417
  message: (review) => `Summary ${review.part === "&" ? "root" : `part "${review.part}"`} removes its marker and renders no artwork.`,
3083
3418
  repair: "Render a chevron (a visual part or a public Icon) chosen by the controlled open state, or keep the native marker."
3084
3419
  },
3420
+ "hover-geometry-shift": {
3421
+ group: "conflict",
3422
+ rule: "Geometry an element in flow takes under `:hover` (another frame or spacing profile, a part that opens) moves what follows it whenever the pointer passes over it. ADS accepts it as the designer's choice and lists it for review; a layer of a layered parent draws over its neighbours instead and is not listed.",
3423
+ guides: [RECIPES, "ads://guides/layout"],
3424
+ message: (review) => `${review.element === "&" ? "The root" : `Part "${review.element}"`} changes its geometry under ${review.condition}: what follows it moves as the pointer passes.`,
3425
+ repair: "Keep it when the movement is wanted (a pile that spreads and pushes what follows). Otherwise draw the change over its neighbours: a layer of a layered parent, an outset backdrop, or a translate or scale effect, which move nothing else."
3426
+ },
3085
3427
  "truncated-text-unnamed": {
3086
3428
  group: "accessibility-semantics",
3087
3429
  rule: "Truncated or clamped text keeps its full text available to sighted readers: a `title` with the same text, an expand control or the full content elsewhere (assistive technology reads the full text already). Analysis sees only a `title`.",
@@ -3159,6 +3501,13 @@ export const runtimeErrors = {
3159
3501
  message: (review) => `Whether the hit areas of parts "${review.elements[0]}" and "${review.elements[1]}" overlap cannot be proven under ${contextNames(review.contexts)}: ${review.reason}.`,
3160
3502
  repair: "Widen the gap to cover the hit areas' full reach, or check the rendered spacing by hand."
3161
3503
  },
3504
+ "motion-endless": {
3505
+ group: "accessibility-semantics",
3506
+ rule: "Motion that starts by itself, runs longer than five seconds and is shown beside other content can be paused, stopped or hidden by the user (WCAG 2.2 2.2.2). A repeating sequence a part plays whenever it is rendered has no owner state to stop it by; reduced motion stops it only for users who set that preference. A note, not a review: a short indicator shown only while something is working ends with that work.",
3507
+ guides: ["ads://guides/accessibility", RECIPES],
3508
+ message: (review) => `${review.part === "root" ? "The root" : `Part "${review.part}"`} plays the repeating sequence ${review.sequence} whenever it is rendered.`,
3509
+ repair: "If it can run for more than five seconds beside other content, play it under an owner state (`when: { '&[data-working=\"true\"]': { play } }`) and give the user a way to stop it; an indicator that is rendered only while work is in progress needs nothing."
3510
+ },
3162
3511
  "click-without-keyboard": {
3163
3512
  group: "accessibility-semantics",
3164
3513
  rule: "An `onClick` on a non-interactive element (div, span, li, img and similar) without a role and `tabIndex` cannot be reached or used from the keyboard (WCAG 2.2 2.1.1), unless a delegated or wrapping control handles it. Items of composite widgets (option, menuitem, tab, row, gridcell, \u2026) and backdrops whose handler reads `currentTarget` are exempt.",
@@ -3267,7 +3616,6 @@ export const productGaps = {
3267
3616
  expected: [
3268
3617
  "spec/field-unsupported",
3269
3618
  "construction/profile-field-unsupported",
3270
- "construction/paint-unsupported",
3271
3619
  "construction/spatial-clause-unsupported",
3272
3620
  "registration/syntax-outside-role",
3273
3621
  "registration/initial-out-of-bounds",