@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
package/docs/LANGUAGE.md CHANGED
@@ -6,9 +6,10 @@ from `/profile`, `recipe()` and `combineRecipes()` from `/recipe`, `asset()`,
6
6
  `glyphSet()` and `glyph()` from `/asset`, `font()` from `/font`, and
7
7
  `foundation()` from `/foundation`. Tokens are ordinary CSS in role sheets.
8
8
  `ads check` reads the declarations and `ads emit` compiles them to plain
9
- TypeScript and CSS; ADS does not run in the application. Most examples come
10
- from [the starter](STARTER.md) (`ads init` installs it). [RULES.md](RULES.md)
11
- lists every rule.
9
+ TypeScript and CSS; ADS does not run in the application. The examples come
10
+ from the example design system, the one ADS is tested with (in its repository,
11
+ under `tests/fixtures/starter-project/`); `ads init` installs no design system.
12
+ [RULES.md](RULES.md) lists every rule.
12
13
 
13
14
  ## The authoring invariant
14
15
 
@@ -51,15 +52,14 @@ styles, spacing or native layout wrappers, or pass design through props or
51
52
  helpers. Application logic assembles the emitted public owners in its own
52
53
  source. Production exports exclude mocks, fixtures and scenarios.
53
54
 
54
- In the starter, Shell (`patterns/Shell/Shell.tsx`) owns shell layout and
55
+ In the example design system, Shell (`patterns/Shell/Shell.tsx`) owns shell layout and
55
56
  Workspace (`patterns/Workspace/Workspace/Workspace.tsx`) supplies feature
56
57
  content. Its mock (`mocks/Workspace/Workspace.ads.scenario.tsx`)
57
58
  supplies only state, data and callbacks, as does ConstructionWorkbench's.
58
59
 
59
60
  Mock-owned `media/` can contain a small mock image, passed to a public
60
61
  pattern as URL and intrinsic metadata. It is application data: never raw
61
- markup, never an import available to production owners, and never emitted. See
62
- [starter media ownership](STARTER.md#content-media-is-application-data).
62
+ markup, never an import available to production owners, and never emitted.
63
63
 
64
64
  `ads check` enforces these rules (`mock-ownership`, codes
65
65
  `mock/<kind>`, `src/analysis/mock-check.mts`) for every script under `mocks/` and
@@ -148,6 +148,10 @@ const compact = recipe({ select: { size: "sm" } });
148
148
  const largerText = recipe({ select: { typography: "lg" } });
149
149
  ```
150
150
 
151
+ A control recipe may name its own text profile, `text: "caption"`, as a region
152
+ does. It replaces the text slot of the control's profile, and the control's
153
+ box is sized from that text's line.
154
+
151
155
  - Explicit selections are collected before defaults. Repeating a selected
152
156
  argument or its existing default is an error; a default branch needs no
153
157
  selection class. A fixed selection can go in the profile reference object.
@@ -181,6 +185,33 @@ part's children.
181
185
  size. Its frame profile can declare `minInlineSize` (a `control-min-size`
182
186
  token), which makes an icon-only control square without deriving its padding
183
187
  from its height. See the [equations](LOWERING.md#control-frame-calculation).
188
+ - A control holds at most one text part and one visual part, and any number of
189
+ **decorative boxes**: parts without a `kind`, each with `frame: { profile }`
190
+ (its size and shape) and optionally a `surface`. A box shows the control's
191
+ state by its paint or position, as a switch's knob does:
192
+
193
+ ```ts
194
+ recipe({
195
+ layout: "inline", profile: "switch", frame: "control", align: "center", justify: "start", surface: "switch-track",
196
+ when: { '&[aria-checked="true"]': { surface: "switch-track-on" } },
197
+ parts: {
198
+ knob: {
199
+ selector: ".switch-knob", required: true, frame: { profile: "switch-knob" }, surface: "switch-knob",
200
+ transition: ["translate"],
201
+ when: { '&[aria-checked="true"]': { translateInline: { slot: "motion", field: "distance" } } },
202
+ },
203
+ },
204
+ })
205
+ ```
206
+
207
+ A box's `when` takes a `surface`, `translateInline` and the scales; inline
208
+ travel mirrors under right-to-left. Where the knob is says whether the switch
209
+ is on, so reduced motion keeps the position and drops only the animation. The
210
+ box is never a target of its own (`source/pointer-transparent-interactive`),
211
+ and a control that renders no text is named on its root
212
+ (`source/control-name-missing`). A control's effects are accepted under
213
+ `&[aria-checked="true"]` and `&[aria-selected="true"]` as well. ADS does not
214
+ prove the knob against the track: the render audit measures it.
184
215
  - `frame: "container"` requires complete frame and surface contracts.
185
216
  - A frame without a layout keeps native display semantics, including
186
217
  Disclosure's summary marker.
@@ -196,20 +227,32 @@ Each construct is a closed field lowered on the element's own path
196
227
  (`src/lowering-region-layout.mts`). Two constructs that write one property
197
228
  differently on one element are rejected (`construction/extent-conflict`,
198
229
  `construction/element-normalization-conflict`); input order settles nothing.
199
- The starter's Inspector (`patterns/Inspector/Inspector/Inspector.tsx`) uses
230
+ The example design system's Inspector (`patterns/Inspector/Inspector/Inspector.tsx`) uses
200
231
  them all.
201
232
 
202
233
  | Field | On | Lowers to | Rejected when |
203
234
  | --- | --- | --- | --- |
204
235
  | frame profile `paddingInline` / `paddingBlock` | frame | logical insets per axis | the profile also sets `padding` (`construction/frame-field-conflict`) |
236
+ | frame profile `paddingInlineStart` / `paddingInlineEnd` / `paddingBlockStart` / `paddingBlockEnd` | container frame, control frame | one side's inset, where the two sides of an axis differ (a tag padded more before its remove button). On a control frame a block side's inset is its least inset, and `minimumBlockInset` is the block axis's field | the profile also sets that side's axis or `padding`; on a control frame, a block inset beside `minimumBlockInset` (`construction/frame-field-conflict`) |
237
+ | `frame: { profile: "<frame profile>" }` | part (not a control, not a vector) | the profile's insets, border, radius and sizes as the part's own box (`box-sizing: border-box`); on a visual part bound to artwork the profile's `inlineSize`/`blockSize` are the box (a disc behind a mark) and the drawing keeps its visual profile's size, centred in it | another field beside `profile`; a frame field the profile misuses, as on a root |
205
238
  | `frame: { rules: ["block-end", …] }` (root), `frame: { kind: "control", rules: [...] }` (control part) | region root, control part | the profile's `border-width`, solid, on the named logical sides only, painted by the element's surface `border-color` (mirrors in RTL); on a control part an unruled side keeps the border's space as inset, so the box and its text do not move (a soft field's underline) | empty or repeated sides; no profile width (`rule-width-missing`); no surface border colour (`rule-paint-missing`); on a grid |
239
+ | `frame: { corners: ["end-start", "end-end"] }` | region root | the frame profile's `radius` on the named corners (block edge, then inline edge), `0` on the others, as `border-<corner>-radius`; every corner without it | a frame profile without `radius` (`profile-field-missing`) |
240
+ | `at: { <condition>: { frame: { rules?, corners? } } }` | region root with a `frame` | under the named condition of the root's spatial profile (`@media (width < bound)`), only the border and corner writes that differ: a divider that is the block-end edge when wide and the inline-start edge when narrow | a condition the spatial profile does not name (`construction/condition-unknown`); `rules` under the condition without `rules` on the frame; more than one condition |
206
241
  | `accessibility: { boundary: "visible-label" \| "boundary-on-interaction", reason }` | control part (`frame: "control"`, a text-like input, textarea or select) | nothing: its border contrast error becomes the review item `boundary-identified-otherwise`; acceptance enforces human approval | another kind, a reason outside 20–300 characters (`accessibility-declaration-invalid`); another part (`accessibility-declaration-unsupported`); an approver, date or other field (`field-unsupported`) |
242
+ | `focus: { of: "<sibling part>" }` | region part | the nearest focus profile's outline on this part while the named part of the same parent has keyboard focus (`<parent>:has(> <control>:focus-visible) > <part>`): the drawn box of a checkbox, radio or switch whose native `<input>` is visually hidden. The owner keeps the native control focusable and in the same parent | `of` names the part itself or no part of the same parent (`spec/value-invalid`) |
243
+ | `anchorClear: { slot: "layer", field: "clearBlockStart" }` or `{ slot: "spacing", field: "anchorGap" }` | root (not a top-layer root), part, prose block element | `scroll-margin-block-start`: where a jump to the element (a fragment link, `scrollIntoView`) lands below the top of its scroll container. The layer profile's `clearBlockStart` puts it right under the region sticky elements clear; the spacing profile's `anchorGap` is the element's own distance, for a target that lines up with something beside it (a heading level with a sticky side column). Layout is unchanged. ADS does not check that the distance clears what is stuck on the page the owner ends up in | another slot or field (`spec/value-invalid`); on a top-layer root or an inline prose element (`spec/field-unsupported`) |
207
244
  | `overflow: "clip" \| "scroll-block" \| "scroll-inline" \| "scroll-both"` | root, part | `overflow` (physical x/y pair of the horizontal writing mode) and a released axis minimum | on a top-layer root (`profile-provider-conflict`); with truncation |
208
- | `extent: "fill" \| "fill-both"` | part | `flex: 1 1 0`, the main-axis minimum released; `align-self: stretch` with `fill-both` | the parent is not `stack`/`inline` (`extent-parent-unsupported`); a frame or reserved lines set that minimum |
209
- | `extent: "content" \| "container"` | root of an `inline` row | `"content"` (the default): as wide as its content, never wider than its container (`display: inline-flex; max-inline-size: 100%`, or `min(100%, <cap>)` under its frame's own cap); `"container"`: the width available in any parent, a block one, a column that aligns its children, or a row beside siblings (`display: flex; inline-size: 100%`), so a filling part has the rest of the row | on a `stack`, `flow`, `layered` or top-layer root, which never hug (`spec/field-unsupported`); `"container"` with a frame that fixes the row's width (`construction/extent-conflict`); a part with `extent: "fill"` in a `"content"` row whose frame does not fix its width (`construction/extent-row-hugs`) |
245
+ | `align` / `justify` on an element that scrolls | root, part | `safe center` / `safe end` on the axis the element itself scrolls: content stays aligned while it fits and starts at the scroll origin when it overflows, so its start is never unreachable | n/a (automatic) |
246
+ | a rounded frame (`radius`) with visible overflow | region root | n/a | a first or last part of a stack, or a layer, that paints a background over a corner with no inset there (`construction/corner-overpaint`): clip the root, inset it, or round the part |
247
+ | `sticky: { edge: "block-start" \| "block-end", clear?: "block-start" }` | root (not a top-layer root), part | `position: sticky` at that edge of the nearest scrolling container (`inset-block-start: 0`); with `clear`, below the region the layer profile's `clearBlockStart` names; `z-index` from the layer profile's `stickyLayer` when it has one | `clear` with the end edge; `clear` without a layer profile that states `clearBlockStart` |
248
+ | `extent: "fill" \| "fill-both"` | part | `flex: 1 1 0`, the main-axis minimum released, so the part's content is confined to it; in a `stack` whose frame states only a minimum height (`minBlockSize`, with no `blockSize`, `maxBlockSize`, ratio or `overflow`) the part keeps its content's height and the stack grows with it; `align-self: stretch` with `fill-both` | the parent is not `stack`/`inline` (`extent-parent-unsupported`); a frame or reserved lines set that minimum |
249
+ | `extent: "content" \| "container"` | root of an `inline` row, or of a control | `"content"` (the default): as wide as its content, never wider than its container (`display: inline-flex; max-inline-size: 100%`, or `min(100%, <cap>)` under its frame's own cap); `"container"`: the width available in any parent, a block one, a column that aligns its children, or a row beside siblings (`display: flex; inline-size: 100%`), so a filling part has the rest of the row | on a `stack`, `flow`, `layered` or top-layer root, which never hug (`spec/field-unsupported`); `"container"` with a frame that fixes the row's width (`construction/extent-conflict`); a part with `extent: "fill"` in a `"content"` row whose frame does not fix its width (`construction/extent-row-hugs`) |
210
250
  | `layout: "layered"` | root, part recipe | one `minmax(0,1fr)` grid area; every declared child part at `1 / 1`; paint order is DOM order, no `z-index` | fewer than two parts (`layered-parts-missing`); `gap` or `wrap` |
251
+ | `outset: { block?, inline? }` (spacing fields) | a childless, non-text part of a `layered` parent | `margin-block` / `margin-inline: calc(-1 * <spacing>)`: the backdrop is drawn past its parent's box (a glow behind a card); the grid area and the layout around it are unchanged. A field bound to a `box-share` token (the spacing profile's `outsetBlock` / `outsetInline`) is a share of the box on that axis and grows with it: the same margin on the inline axis, and on the block axis `block-size: calc(100% + 2 * <share>)` centred over the area (`align-self: center`) | any other part (`construction/outset-unsupported`) |
252
+ | `scheme: "light" \| "dark"` | a visual part rendered as a content `<img>`; its sibling declares the other scheme | `display: var(--ads-not-light, block)` (or `--ads-not-dark`): the image is displayed under its colour scheme and `display: none` under the other, by the scheme switches `foundation.css` writes wherever it sets `color-scheme` (root `data-theme`, a themed section, the OS preference); no script. An `at` condition still hides the part: it is displayed where both show it | siblings without exactly one `light` and one `dark` part (`spec/value-invalid`); a part that is not visual (`spec/field-unsupported`); a part that is not an `<img>` or has an artwork binding (`source/scheme-image-element`, `construction/scheme-unsupported`); an image without `width` or `height` (`source/scheme-image-size-missing`); the image of the scheme the first declared theme does not have without `loading="lazy"` in every choice (`source/scheme-image-not-lazy`) |
211
253
  | control `layout: "stack"` | control | visual above label; the control box centres visual + gap + line | `justify` |
212
254
  | `at: { "<condition>": { visible } }` | part | `display: none` inside the condition's range, the part's own display inside its complement | unknown condition (`condition-unknown`); a required part hidden (`condition-hides-required`); more than one condition |
255
+ | `at: { "<condition>": { visual: "<visual profile>" } }` | visual part (`kind: "visual"`) | the part's geometry at that profile's size, inside the condition's range; may stand beside `visible` | a part that is not a visual, cropped or inspected media, or a size that selects another drawing of the asset (`construction/condition-visual-unsupported`) |
213
256
  | `recipe.conditionQuery["<condition>"]` | owner code | the literal media range the CSS writes (`(width < 47.5rem)`), for `matchMedia` | the recipe's spatial profile lacks it (`choice/recipe-access-unsupported`) |
214
257
  | `element: "iframe" \| "select" \| "search-input" \| "text-input" \| "table" \| "header-cell" \| "cell" \| "list" \| "summary"`, `marker: "none"` | root, part | the element's closed UA normalization (no iframe border, list markers or summary marker; collapsed table; start-aligned, middle cells) | another tag (`source/part-element-mismatch`); a summary outside `<details>` (`source/summary-outside-details`) |
215
258
  | `normalize: { textDecoration: "none", pointerEvents: "none", borderStyle: "none" }` | root, `normalize.when` | `text-decoration-line`, `pointer-events`, `border-style` | pointer transparency on focusable or interactive, non-`aria-hidden` markup (`source/pointer-transparent-interactive`) |
@@ -217,6 +260,7 @@ them all.
217
260
  | `wrap: "anywhere" \| "never" \| "truncate" \| "balance" \| "pretty"` (`true` = anywhere), `textAlign`, `reserveLines: 1–3` | text part | `overflow-wrap`, `white-space`, one-line ellipsis truncation, `text-wrap: balance \| pretty` (without support: normal wrapping); `text-align`; `min-block-size: Nlh` | reserved lines without a text profile (`reserve-without-text`) |
218
261
  | `wrap: "truncate", lines: 2 \| 3` | text part | a clamp: at most N lines, the last ending in "…" (`line-clamp` beside `display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp`, `overflow: hidden`) | `lines: 1` or another value (one line is plain `truncate`); `reserveLines` above `lines` (`spec/value-invalid` at `reserveLines`, naming both); `lines` with another `wrap`; on a declared `element`; an arrangement's display (`extent-conflict`); on, or inside, a control or form label (`source/clamp-on-control`) |
219
262
  | control label `wrap`: absent, `true`/`"anywhere"`, `"never"` | control text part | breaks between words when one word alone would overflow (`overflow-wrap: break-word`, the default), anywhere, or never: one line, and the control does not shrink below the label's width | `"truncate"` or another value |
263
+ | control label `textAlign: "start" \| "center" \| "end"` | control text part | `text-align` on the label: how its lines sit once it wraps or the control is wider than it | another value |
220
264
  | `kind: "vector", surface, stroke: { slot: "visual", field }` | part | `stroke` from a colour-only surface, `stroke-width` from the visual profile, `fill: none`, non-scaling stroke; any number of data-driven shapes | a surface with other fields (`vector-surface-unsupported`); not an SVG shape under an owned `<svg>` |
221
265
  | `kind: "visual", media: "inspected-svg"` | part | contains the inserted drawing within the visual profile's size; its intrinsic size is data | markup, children or `dangerouslySetInnerHTML` in the part (`source/inspected-svg-inline`); the owner parses markup (`source/inspected-svg-parsed`) |
222
266
 
@@ -264,10 +308,40 @@ A `when` key is a state of the owner's root, in a closed grammar
264
308
  more of `:hover`, `:active`, `:focus`, `:focus-visible`, `:focus-within`,
265
309
  `:disabled`, `:enabled`, `:checked`, `:indeterminate`, `[aria-*]`, `[data-*]`
266
310
  or `[open]` (an attribute optionally with one double-quoted value), each
267
- optionally inside `:not(…)`. The starter uses hover and active excluding
311
+ optionally inside `:not(…)`. The example design system uses hover and active excluding
268
312
  disabled, `&[aria-busy="true"]`, `&[data-user-invalid]`, `&[data-autofill]` and
269
313
  `&[open]`.
270
314
 
315
+ A `when` entry may also select the element's text: `when: {
316
+ '&[aria-pressed="true"]': { text: "label-strong" } }` on a text part, a root
317
+ or a control. The state's text profile may differ from the element's own in
318
+ `fontWeight` and `letterSpacing` only (`construction/state-text-field`
319
+ otherwise), so the line and the box's height stay where they are. A heavier
320
+ weight is wider: whether the box may grow with it is the designer's choice.
321
+
322
+ A state of one of the recipe's own direct parts is also a state of the root,
323
+ written `:has(> .part:state)` with `:checked`, `:indeterminate`,
324
+ `:focus-visible`, `:hover` or `:disabled`:
325
+
326
+ ```ts
327
+ parts: {
328
+ input: { selector: ".ds-checkbox-input" }, // the native <input type="checkbox">
329
+ box: {
330
+ selector: ".ds-checkbox-box", surface: "control-surface",
331
+ focus: { of: "input" }, // the focus profile's outline, drawn on the box
332
+ when: {
333
+ "&:has(> .ds-checkbox-input:checked)": { surface: "action-surface" },
334
+ "&:has(> .ds-checkbox-input:focus-visible)": { surface: "focused-control-surface" },
335
+ },
336
+ },
337
+ }
338
+ ```
339
+
340
+ A checkbox's drawn box follows its native input without script, and a field's
341
+ control reacts to its own hover (`&:has(> .ds-field-control:hover)`), not to
342
+ the label's. The class must be a direct part of the recipe, and nothing else
343
+ goes inside `:has()`.
344
+
271
345
  Anything else is rejected where authored (`spec/condition-unsupported`):
272
346
  a pseudo-element (`&::placeholder`), a combinator or class (`& > .child`), a
273
347
  type, a nested `&`, another attribute operator or a functional pseudo-class
@@ -284,7 +358,7 @@ machine: ordinary behavior owns the state (native Disclosure binds the actual
284
358
  **Form states** are attribute states of the root. `:user-invalid`,
285
359
  `:user-valid` and `:autofill` match a field's `<input>`, never its owner root,
286
360
  so they are rejected with a pointer to the states that the form-field bridge
287
- (the starter's `controllers/FormField`) mirrors onto the root:
361
+ (the example design system's `controllers/FormField`) mirrors onto the root:
288
362
  `[data-user-invalid]` (an error is shown: a constraint error after interaction,
289
363
  or the application's error), `[data-user-valid]` (interacted and valid) and
290
364
  `[data-autofill]` (the browser filled it). Owner analysis holds two rules for
@@ -320,8 +394,26 @@ control: {
320
394
  It lowers to `& > .ds-field-control::placeholder { color; opacity: 1 }` and
321
395
  `&[data-user-invalid] > .ds-field-control::placeholder { color }`. The
322
396
  pseudo-element is always last; `opacity: 1` removes Firefox's default dimming.
323
- `placeholder` is the only pseudo-element, and another element cannot host it
324
- (`source/pseudo-host-unsupported`).
397
+ `placeholder` belongs to an `<input>` or `<textarea>`; another element cannot
398
+ host it (`source/pseudo-host-unsupported`).
399
+
400
+ The other pseudo-element is a progress bar's fill, on a `<progress>` part:
401
+
402
+ ```ts
403
+ bar: { selector: ".indicator-bar", required: true, surface: "progress-track", frame: { profile: "progress-bar" },
404
+ pseudo: { progressValue: { surface: "progress-fill" } } },
405
+ ```
406
+
407
+ The part's own surface is the track; `progressValue` takes a surface that sets
408
+ only `background`, with `when` for states. ADS turns off the engine's drawing
409
+ (`appearance: none`) and writes the fill once per engine
410
+ (`::-webkit-progress-value`, `::-moz-progress-bar`), since there is no standard
411
+ pseudo-element and a selector an engine does not know would void a shared rule.
412
+ The fill inherits the part's radius. It needs 3:1 against the track in every
413
+ theme, brand and state (`construction/progress-contrast-insufficient`); a part
414
+ without a background has no track to prove it on
415
+ (`construction/progress-contrast-unresolved`). ADS's browser tests cover
416
+ Chromium only.
325
417
 
326
418
  **Contrast**, in every theme, brand and token condition:
327
419
 
@@ -333,6 +425,8 @@ pseudo-element is always last; `opacity: 1` removes Firefox's default dimming.
333
425
  - Where a `when` surface's colour meets a background from another surface
334
426
  profile, the pair needs 4.5:1 (`construction/state-contrast-insufficient`; an
335
427
  unprovable pair is the review note `review/state-contrast-unresolved`).
428
+ States that exclude each other (two values of one attribute, a state and its
429
+ `:not()`) are never paired.
336
430
  - A profile's own colour and background are checked with the profile
337
431
  (`surface-contrast`).
338
432
  - An element whose surface sets only a colour (a link, secondary text, a badge
@@ -343,8 +437,249 @@ pseudo-element is always last; `opacity: 1` removes Firefox's default dimming.
343
437
  kind consumed through the selected composite's motion slot.
344
438
  [MOTION.md](MOTION.md) owns its constructs:
345
439
  [part effects](MOTION.md#effect-and-state-semantics) (`transition` channels with
346
- typed `when` endpoints), the [root press](MOTION.md#root-press) and
347
- [`paintTransition`](MOTION.md#paint-transitions).
440
+ typed `when` endpoints), the [root press](MOTION.md#root-press),
441
+ [`paintTransition`](MOTION.md#paint-transitions) and
442
+ [`enter`](MOTION.md#entrances), an entrance on first render,
443
+ [motion on a region's parts](MOTION.md#motion-on-a-regions-parts),
444
+ [`play`](MOTION.md#sequences) for a sequence of steps, and `motion` on a
445
+ [measured value](MOTION.md#animating-a-measured-value). An animation is
446
+ [defined in the recipe and controlled in script](MOTION.md#defined-in-the-recipe-controlled-in-script).
447
+
448
+ ## Geometry by state
449
+
450
+ A state selects geometry the way it selects a surface: by naming another
451
+ profile. A `when` entry on a region root or a part may carry a frame profile
452
+ and a spacing profile, and on a part whether it is collapsed:
453
+
454
+ ```ts
455
+ const pile = recipe({
456
+ layout: "inline",
457
+ profile: "pile",
458
+ overlap: { slot: "spacing", field: "overlap" }, // neighbours overlap instead of being separated
459
+ when: { '&[data-expanded="true"]': { spacing: "pile-open" } },
460
+ geometryTransition: { channels: ["gap"], motion: { slot: "motion" } },
461
+ parts: {
462
+ count: { selector: ".pile-count", required: true, collapsed: true,
463
+ when: { '&[data-expanded="true"]': { collapsed: false } },
464
+ geometryTransition: { channels: ["size"], motion: { slot: "motion" } } },
465
+ card: { selector: ".pile-card", required: true, frame: { profile: "tile" },
466
+ when: { '&[data-expanded="true"]': { frame: { profile: "tile-open" } } } },
467
+ },
468
+ });
469
+ ```
470
+
471
+ | Field | On | Lowers to | Rejects |
472
+ | --- | --- | --- | --- |
473
+ | `when: { state: { frame: { profile } } }` | a region root with a `frame`, a part with `frame: { profile }` | the state's frame profile lowered whole, as the element's own is; one rule under the state with only what differs | an element without a frame profile of its own, which includes a text-entry control part, whose control frame is calculated and not selected (`frame-missing`); a state frame that does not state a field the base frame writes (`field-dropped`); a control or a top-layer root (`spec/field-unsupported`) |
474
+ | `when: { state: { spacing: "<spacing profile>" } }` | a root or a part with an arrangement | the arrangement's `gap` and `overlap` read from that profile under the state, by the same fields as at rest | n/a |
475
+ | `overlap: { slot: "spacing", field: "overlap" }` | an `inline` or `stack` root or part recipe | every neighbour after the first starts inside the one before it by the spacing profile's `overlap` (an `overlap` token): real layout, so the arrangement is as large as what it shows and what follows it moves with it; later neighbours paint over earlier ones; no gap is written | beside `gap`, `rowGap` or `wrap`; on another layout |
476
+ | `collapsed: true \| false`, on the part and in its `when` entries | a part of a `stack` or `inline` parent | collapsed: no size on the parent's main axis whatever it holds, transparent, and out of the accessibility tree and of focus (`visibility: hidden`); open: its content's size. In an overlapping arrangement a collapsed part takes none of the overlap either | a part with a frame, an arrangement, an overflow or a filling extent of its own (`collapsed-box`): put its box on what it holds; a parent that is not a stack or a row (`collapsed-parent`) |
477
+ | `geometryTransition: { channels, motion }` | root, part | the listed channels' properties join the element's transition set, timed by the motion profile; instant under reduced motion. Channels: `size`, `inset` (padding), `gap`, `radius`, `border-width`, and `overlap`: the element's own start margin where an overlapping arrangement places it | a listed channel that changes under no state (`channel-unused`; `overlap` is the arrangement's to change, so it is never refused) |
478
+
479
+ All of these are `construction/state-geometry-unsupported` with the reason
480
+ given, unless a code is named.
481
+
482
+ - **A frame a state selects is checked as the element's own is.** The checks
483
+ that read an element's frame run once for the frame at rest and once for
484
+ each frame a state selects:
485
+ - the text keyline and the fit of a frame in its grid cell
486
+ (`source/keyline-missed`, `source/frame-exceeds-region`,
487
+ `component-keyline` across owners) name the state's frame profile;
488
+ - a rounded corner a child paints over (`construction/corner-overpaint`)
489
+ is found under the state whose frames open it: one that rounds the root,
490
+ removes its inset, or squares the part;
491
+ - target size reads one size per target, so it is kept by construction: a
492
+ control, a text-entry control part and a hit area never change by state
493
+ (`hit-area`), neighbouring targets are proven at every gap a state
494
+ selects, and targets next to each other in an overlapping arrangement are
495
+ refused (`targets-overlap`).
496
+ The render audit still sees a state only where a scenario shows it.
497
+ - **Not for pointer users only.** A state that names `:hover` needs a state of
498
+ the same geometry under `:focus-visible`, `:focus-within` or an attribute
499
+ (`hover-only`).
500
+ - **Autofill does not move layout.** Geometry under `[data-autofill]` is
501
+ `construction/autofill-layout-shift`.
502
+ - **Who animates an overlap.** A declared part animates its margin with its
503
+ arrangement's `gap` channel. Any other neighbour (a component, a mapped
504
+ element with its own recipe) lists `overlap` in its own
505
+ `geometryTransition`: its transitions are its own, so the arrangement never
506
+ writes them.
507
+ - **A collapsed part opening to its content's size** animates where the engine
508
+ interpolates to a content size (`interpolate-size`); elsewhere it opens at
509
+ once, with the same result.
510
+ - **What a state cannot change:** the layout kind, a grid's tracks, a text
511
+ profile's size (a state text profile still changes weight and tracking
512
+ only). A hover state that resizes an element in flow moves what follows it:
513
+ that is the designer's choice, and ADS does not refuse it; it is listed for
514
+ review (`review/hover-geometry-shift`). A layer of a layered parent draws over
515
+ its neighbours and is not listed.
516
+
517
+ ## Prose: long-form content
518
+
519
+ Articles, documentation, legal text and anything a content system or Markdown
520
+ produces is markup the owner does not write. A recipe with `layout: "prose"`
521
+ styles it: a closed set of plain flow elements inside its root, wherever they
522
+ nest.
523
+
524
+ ```ts
525
+ const article = recipe({
526
+ layout: "prose",
527
+ profile: "article", // spacing and surface slots, as any recipe
528
+ rhythm: { slot: "spacing", field: "contentGap" }, // the space between blocks
529
+ elements: {
530
+ paragraph: { text: "body" },
531
+ heading2: { text: "heading-2", spaceBefore: { slot: "spacing", field: "sectionGap" } },
532
+ link: { surface: "link", when: { "&:hover": { surface: "link-hover" } } },
533
+ strong: { text: "body-strong" },
534
+ list: { indent: { slot: "spacing", field: "indent" } },
535
+ item: { marker: "list-marker" },
536
+ quote: { surface: "quote", frame: "quote-frame" },
537
+ rule: { surface: "divider", frame: "divider-frame" },
538
+ pre: { surface: "code-block", text: "code" },
539
+ },
540
+ }).root;
541
+
542
+ export function Prose({ children }: { children: ReactNode }) {
543
+ return <div className={article}>{children}</div>;
544
+ }
545
+ ```
546
+
547
+ ```tsx
548
+ <Prose>
549
+ <h2>Title</h2>
550
+ <p>Text with a <a href="/docs">link</a>.</p>
551
+ <Callout tone="info">A component among the content.</Callout>
552
+ </Prose>
553
+ ```
554
+
555
+ **The elements.** The set is what Markdown produces (CommonMark with tables and
556
+ strikethrough) and the common HTML beside it:
557
+
558
+ | Element | Tags | Element | Tags |
559
+ | --- | --- | --- | --- |
560
+ | `paragraph` | `p` | `link` | `a` |
561
+ | `heading1` … `heading6` | `h1` … `h6` | `strong` | `strong`, `b` |
562
+ | `list` | `ul`, `ol` | `emphasis` | `em`, `i` |
563
+ | `item` | `li` | `deleted` | `del`, `s` |
564
+ | `quote` | `blockquote` | `code` | `code` |
565
+ | `rule` | `hr` | `sub`, `sup` | `sub`, `sup` |
566
+ | `pre` | `pre` | `kbd` | `kbd` |
567
+ | `table`, `headerCell`, `cell` | `table`, `th`, `td` | `mark` | `mark` |
568
+ | `figure`, `caption` | `figure`, `figcaption` | `descriptions`, `term`, `definition` | `dl`, `dt`, `dd` |
569
+ | `media` | `img`, `video`, `iframe` | | |
570
+
571
+ **An element is a part selected by tag.** Each entry names profiles: `text`
572
+ (a text profile), `surface` (a surface profile, with `when` for its states) and
573
+ `frame` (a frame profile: padding, borders, radius, sizes). The extras belong
574
+ to one element each:
575
+
576
+ - `spaceBefore` on a block replaces the rhythm before it.
577
+ - `spaceAfter` on a block is the space between it and whatever follows, plain
578
+ markup or a component, in place of the rhythm (a heading that sits closer to
579
+ its text than paragraphs sit to each other). Where the next block states its
580
+ own `spaceBefore`, the larger of the two applies, as collapsing margins would
581
+ give: a list with 22 px after it, followed by a heading with 44 px before
582
+ it, is 44 px from that heading.
583
+ - `indent` on `list` is its start inset; `markers` on `list` is an unordered
584
+ list's marker shape at each depth of nesting, outermost first (one to three
585
+ of `"disc"`, `"circle"`, `"square"`; a deeper list keeps the last). Ordered
586
+ lists keep their numbers.
587
+ - `anchorClear` on a block (a heading with an id) is where a jump to it lands.
588
+ - `component` is not a tag: it is any component placed directly among the
589
+ blocks (a callout, a code block with its own owner). It takes `spaceBefore`
590
+ and `spaceAfter` only, in place of the rhythm and with the same "larger of the
591
+ two" rule against a neighbour's own space. A component's design stays its
592
+ owner's, and every component among the blocks takes the same space.
593
+ - `marker` on `item` is a colour-only surface; `markerText` on `item` is a text
594
+ profile whose weight the marker takes (bold bullets and numbers). The
595
+ marker's size and line stay the item's.
596
+
597
+ **What ADS guarantees.**
598
+
599
+ - **Only elements without a class are styled** (`p:not([class])`). Every
600
+ element an ADS owner renders has a class, so a component placed in the
601
+ content keeps its own design, and a paragraph inside that component is the
602
+ component's.
603
+ - **Nesting follows HTML.** A list in a list, a paragraph in a quote, a link in
604
+ a table cell: each is styled where it stands.
605
+ - **The rhythm is even.** Every block takes the rhythm (or its own
606
+ `spaceBefore`) before it, declared or not, and the first plain element of
607
+ the root and of each plain container starts flush. Browser margins, a
608
+ quote's and a figure's indent, a rule's inset border, a table's doubled
609
+ borders and media wider than its column are replaced.
610
+ - **A component among the blocks is spaced like them.** A component placed
611
+ directly in the prose root takes the rhythm before it (unless it comes
612
+ first); nothing else of it changes. A component inside a paragraph is inline
613
+ content and is left alone.
614
+ - **A table's structure and line breaks are content.** `thead`, `tbody`,
615
+ `tfoot` and `tr` come with a declared `table`, and `br` with any prose; no
616
+ rule is written for them.
617
+ - **Contrast is proven.** Each declared colour (base and state surfaces) is
618
+ checked on the root's background and on the background of every declared
619
+ element that can contain it, in every theme and brand:
620
+ `construction/prose-contrast-insufficient`. A code block holds code, so a
621
+ link's colour is not held to it.
622
+ - **The source of the markup does not matter.** JSX children, rendered
623
+ Markdown and HTML from a content system are styled alike.
624
+
625
+ **Content as an HTML string.** A content system or a Markdown renderer hands
626
+ the application a string. Application source cannot inject it
627
+ (`dangerouslySetInnerHTML` is a design prop to `ads-guard`), and it should not:
628
+ the injection belongs in one place. Give the same recipe a second component
629
+ that takes the string:
630
+
631
+ ```tsx
632
+ export function ProseHtml({ html }: { html: string }) {
633
+ return <div className={article} dangerouslySetInnerHTML={{ __html: html }} />;
634
+ }
635
+ ```
636
+
637
+ The application passes `html` as a plain prop. The string is injected as
638
+ written, so **the application sanitises it first**: ADS checks source, not
639
+ strings, and unsanitised HTML from outside is a security hole. Classes inside
640
+ the string are not styled by prose (only classless elements are), and elements
641
+ the recipe does not declare are drawn in the root's text without any report,
642
+ because no check reads the string. The example design system's Prose pattern exports both
643
+ forms.
644
+
645
+ **What a prose recipe does not have.** No `parts`, `gap`, `align` or `layer`:
646
+ prose flows. An element the recipe does not declare is drawn in the root's
647
+ text; the markup checks report it where content uses it
648
+ (`prose-element-undeclared`), so the gap shows up where it matters.
649
+
650
+ **The markup checks.** In scenarios, mocks and application source, plain flow
651
+ markup is accepted as the content of a prose owner: inside its element, through
652
+ plain prose elements only. A component between the owner and the element owns
653
+ what is inside it. An element outside the set (`div`, `span`, `section`) is
654
+ still markup of the file's own. `ads emit` records the prose owners in
655
+ `ads-prose.json` beside the entry, which is how `ads-guard` knows them.
656
+
657
+ ## Sticky elements
658
+
659
+ A bar, a contents list or a table header that stays in view while its container
660
+ scrolls declares `sticky` on its root or on the part:
661
+
662
+ ```ts
663
+ profile({ name: "under-bar", kind: "layer", fields: { clearBlockStart: "--bar-height", stickyLayer: "--layer-sticky" } });
664
+
665
+ const bar = recipe({ layout: "inline", profile: "site-bar", sticky: { edge: "block-start" } }).root;
666
+ const page = recipe({
667
+ layout: "stack",
668
+ profile: "docs-page", // its composite selects layerProfile: "under-bar"
669
+ parts: { contents: { selector: ".ux-contents", sticky: { edge: "block-start", clear: "block-start" } } },
670
+ }).root;
671
+ ```
672
+
673
+ - The element sticks inside its nearest scrolling container: the page, or an
674
+ ancestor that scrolls (a table header in a scrolling table). ADS does not
675
+ choose the container; an ancestor that scrolls on that axis becomes it.
676
+ - `clear: "block-start"` holds the element below a bar at the top by one shared
677
+ token, the layer profile's `clearBlockStart`, the same field an anchored
678
+ popover clears by. Change the bar's height in one place.
679
+ - The layer profile's `stickyLayer` (role `layer`) stacks the element above
680
+ positioned content that scrolls under it. Without it the element keeps its
681
+ place in document order.
682
+ - Only block edges stick. A top-layer root takes no `sticky`.
348
683
 
349
684
  ## Top-layer roots
350
685
 
@@ -430,7 +765,7 @@ media term the spatial algebra writes for the range below that tier
430
765
  that literal, so the owner's `matchMedia` and the CSS agree. It is a viewport
431
766
  query, so the owner's grids must not respond to a container
432
767
  (`source/layer-modal-context`). Reading it from another recipe is
433
- `choice/recipe-access-unsupported`. The starter's Shell closes its sheet when
768
+ `choice/recipe-access-unsupported`. The example design system's Shell closes its sheet when
434
769
  the viewport leaves that range and moves focus to the in-track navigation.
435
770
 
436
771
  ## Measured runtime geometry
@@ -557,6 +892,10 @@ const split = recipe({
557
892
  split.measured.set(root, { width });
558
893
  ```
559
894
 
895
+ `resize: "vertical" | "none"` in a part's `normalize` states how the user may
896
+ resize a multi-line text field. It belongs on a part rendered as `<textarea>`
897
+ (`source/resize-not-textarea` otherwise) and takes no `when`.
898
+
560
899
  The fields occur in a root's or a part's `normalize` and in its `when`:
561
900
 
562
901
  - `cursor`: `pointer`, `default`, `grab`, `grabbing`, `col-resize`,
@@ -704,6 +1043,13 @@ recipe({
704
1043
  });
705
1044
  ```
706
1045
 
1046
+ A fluid grid with local `columns` may weigh them: `columns: 2, weights: [0.85,
1047
+ 1.15]` gives each column its share of the width (`minmax(0, 0.85fr) minmax(0,
1048
+ 1.15fr)`), and the checks size each cell by the same shares. One positive
1049
+ number per column; every column weighs 1 without `weights`. A cell still
1050
+ stacks at a narrow tier by spanning both columns (`span: "full"` with
1051
+ `at: { md: { span: 1 } }`).
1052
+
707
1053
  [Spatial profiles](PROFILE-KINDS.md#spatial) own units, scales, ratios, max
708
1054
  width, track counts, breakpoints, gutter pairs, fixed sides and named
709
1055
  conditions. Owner `at` selects those names. A relative condition such as `below: "--form-wrap-width"` keeps
@@ -726,7 +1072,7 @@ container, so an owned ancestor in its owner starts one in every choice
726
1072
  (`frame: { container: "region" }`, the only container). Otherwise the grid
727
1073
  fails at the construction (`source/grid-container-missing`, GC-05).
728
1074
 
729
- **Public rows.** A field exposes named rows through `exposeRows`. The starter's
1075
+ **Public rows.** A field exposes named rows through `exposeRows`. The example design system's
730
1076
  InviteMember binds them through `alignRows`, which
731
1077
  [lowers to subgrid](LOWERING.md#public-row-alignment). The cell must span
732
1078
  exactly those rows. Aligned rows share one gap: the grid takes the gap the rows
@@ -744,13 +1090,18 @@ it auto-places (`start: "auto"`) at every tier.
744
1090
  (`source/frame-exceeds-region`).
745
1091
  - Where the region cannot be bounded, and for a public component placed as a
746
1092
  cell or tile, it is reviewed (`review/frame-region-unresolved`), never passed.
1093
+ - On a gutter other than `wide`, the first padded frame in a cell has an inline
1094
+ padding that, with that gutter's start, equals the wide gutter's start within
1095
+ the profile's fine unit (`source/keyline-missed`; `component-keyline` for a
1096
+ public component placed in the cell). See
1097
+ [the text keyline](GUIDE.md#the-text-keyline).
747
1098
  - A frame's maximum inline size and the grid bound both hold (the smaller
748
1099
  wins). Any other property both would write is an error.
749
1100
 
750
- The starter's Shell and WorkspacePanels show hybrid, overlay, fixed, flow and
1101
+ The example design system's Shell and WorkspacePanels show hybrid, overlay, fixed, flow and
751
1102
  inherited layouts. Mixed tracks (a fixed indent beside fluid tracks, a fluid
752
1103
  avatar column with a fixed-size avatar, inherited message keylines) are proven
753
- by a test fixture (`tests/helpers/conversation-project.ts`), not the starter.
1104
+ by a test fixture (`tests/helpers/conversation-project.ts`), not the example design system.
754
1105
 
755
1106
  ## Cropped media
756
1107
 
@@ -792,17 +1143,70 @@ the profile's height cap, known before the file loads, so nothing after it
792
1143
  moves when it arrives. Without the value its size is the loaded file's.
793
1144
 
794
1145
  ADS cannot see a crop that cuts off something that matters (text in a
795
- screenshot). The starter's Image (`components/Content/Image/Image.tsx`) has both
1146
+ screenshot). The example design system's Image (`components/Content/Image/Image.tsx`) has both
796
1147
  forms.
797
1148
 
798
1149
  ## Choices the compiler infers
799
1150
 
800
1151
  Class selections and part presence are inferred from ordinary TypeScript:
801
1152
  finite literal props and defaults, immutable local records, conditionals and
802
- `.map` over a literal array (or a local const array of records). Application
803
- text (`string` props) selects markup by presence only (`help && <span>`).
804
- Comparing or indexing designs by its content is an error, as is an unbounded
805
- choice. Spreads can pass props to public components but not to owned elements.
1153
+ `.map` over a literal array (or a local const array of records). A `.map`
1154
+ over data (a prop's array) is read through each item's declared type: a field
1155
+ typed as a literal union or a boolean is a finite choice, and an optional text
1156
+ field selects markup by presence, whether the callback destructures the item
1157
+ (`({ text, sub }) => …`) or reads its fields (`item.sub && <span>`). Both
1158
+ variants are checked, so the optional element must be a part that may be absent
1159
+ (`required: false`). A nested field (`item.a.b`), a number or a call is not
1160
+ finite. Application
1161
+ text (`string` props) selects markup by presence only (`help && <span>`): three
1162
+ variants, non-empty, empty and absent. Comparing or indexing designs by its
1163
+ content is an error, as is an unbounded choice. Spreads can pass props to
1164
+ public components but not to owned elements.
1165
+
1166
+ ### Optional callbacks, objects and slots
1167
+
1168
+ An optional prop (or mapped item field) whose type is an object, a function or
1169
+ a node selects markup by whether it is given. It is one input with two
1170
+ variants, given and not given, and both are checked; ADS reads the declared
1171
+ type and never the value, so no second boolean prop, closed list of names or
1172
+ always-rendered `hidden` wrapper is needed:
1173
+
1174
+ ```tsx
1175
+ function Tag({ label, icon, onRemove, footer }: { label: string; icon?: Glyph; onRemove?: () => void; footer?: ReactNode }) {
1176
+ return <span className={tag.root}>
1177
+ {icon && <span className="tag-icon" />}
1178
+ <span className="tag-label">{label}</span>
1179
+ {onRemove && <button type="button" className="tag-remove" onClick={onRemove}>Remove</button>}
1180
+ {footer !== undefined && <div className="tag-footer">{footer}</div>}
1181
+ </span>;
1182
+ }
1183
+ ```
1184
+
1185
+ | The prop's type | Tests that select | Variants |
1186
+ | --- | --- | --- |
1187
+ | an object or a function, optional (`icon?: Glyph`, `onRemove?: () => void`) | `prop && …`, `prop ? a : b`, `!prop`, `prop !== undefined`, `prop === undefined`, `prop != null`, `prop == null`, `prop ?? other` | given, not given |
1188
+ | the same with `null` (`icon?: Glyph \| null`) | the same, and `prop === null` | given, `null`, not given: each test holds as it does at run time |
1189
+ | a node, or any type that also admits text, a number or a boolean (`footer?: ReactNode`) | `prop !== undefined`, `prop === undefined` only | given, not given |
1190
+
1191
+ - A node that is given may still be falsy (`0`, `""`, `false`, `null`), so its
1192
+ truthiness, a comparison with `null` and `??` do not say whether it is given:
1193
+ `footer && <div>` is `choice/domain-not-finite`, and the message names the
1194
+ test to write (`!== undefined`). A given node that renders nothing (`null`,
1195
+ `false`) is the given variant.
1196
+ - A parameter default (`icon = defaultIcon`) makes the prop always given: there
1197
+ is one variant and no input. A required object or function selects nothing
1198
+ (`choice/domain-not-finite`), and an open `number` is never finite.
1199
+ - Inside the given variant the prop is an ordinary open value (`onClick={onRemove}`,
1200
+ `{footer}`). Its identity and its fields select nothing (`icon === other`,
1201
+ `icon.name === "x"`).
1202
+ - An element rendered in one variant only must be a part that may be absent
1203
+ (`required: false`).
1204
+ - Across owners, a placement that passes the prop selects the given variant and
1205
+ one that leaves it out the other; an argument that may be `undefined` (a
1206
+ conditional, a forwarded optional prop) or a spread selects both. `children`
1207
+ is content, so both variants are checked wherever the component is placed.
1208
+ - The variants count against the same bounds as every other choice
1209
+ (`choice/branch-limit`, `choice/construction-limit`).
806
1210
 
807
1211
  ## Artwork and text
808
1212
 
package/docs/LOWERING.md CHANGED
@@ -53,7 +53,7 @@ composite; CSS order decides nothing.
53
53
  | Selected spatial profile plus local recipe | Track declarations, breakpoint conditions and placement bounds | Actual viewport/container width |
54
54
  | State-selected surface profile | Paint/shadow token bindings | Interaction state, theme/brand values and declared transitions |
55
55
 
56
- The first two rows show resolved inputs. The starter authors `ads-snap-up(38px, var(--grid-mini-unit))` in a `control-min-size` sheet
56
+ The first two rows show resolved inputs. The example design system authors `ads-snap-up(38px, var(--grid-mini-unit))` in a `control-min-size` sheet
57
57
  and `ads-half-border(var(--border-control))` in a `grid-gutter` sheet.
58
58
 
59
59
  - `ads-snap-up` rounds its first argument, a positive finite pixel literal, up
@@ -91,6 +91,18 @@ block inset = max(P, (H - content envelope) / 2 - B)
91
91
  minimum height = max(H, content envelope + 2 × (P + B))
92
92
  ```
93
93
 
94
+ A frame profile may state a side's own inset (`paddingInlineStart`,
95
+ `paddingInlineEnd`, `paddingBlockStart`, `paddingBlockEnd`) in place of the
96
+ axis field (`paddingInline`, `minimumBlockInset`); each side has one source.
97
+ An inline side's inset is written as stated. Block sides Ps and Pe that
98
+ differ keep each its least inset and share the remaining height equally:
99
+
100
+ ```text
101
+ spare = max(0, (H - content envelope - Ps - Pe) / 2 - B)
102
+ block inset = Ps + spare (start), Pe + spare (end)
103
+ minimum height = max(H, content envelope + Ps + Pe + 2 × B)
104
+ ```
105
+
94
106
  - At least one content part must be present; a composite slot creates none.
95
107
  - Lowering writes L as `1lh`, the line height the element's own text computes.
96
108
  A unitless multiplier resolves against the font size and a length stays as it