@reqvire-org/ads 0.5.0 → 0.5.1

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 (510) hide show
  1. package/README.md +9 -6
  2. package/dist/ads-errors.mjs +275 -12
  3. package/dist/ads-views.mjs +4 -4
  4. package/dist/analysis/design-usage.mjs +20 -4
  5. package/dist/analysis/mock-check.mjs +5 -4
  6. package/dist/analysis/owner-analysis-key.mjs +1 -1
  7. package/dist/analysis/owner-choices.mjs +172 -39
  8. package/dist/analysis/owner-composition.mjs +37 -13
  9. package/dist/analysis/owner-controls.mjs +27 -0
  10. package/dist/analysis/owner-source.mjs +67 -18
  11. package/dist/analysis/prose-owners.mjs +57 -0
  12. package/dist/analysis/styling-ownership.mjs +22 -0
  13. package/dist/check.mjs +7 -1
  14. package/dist/cli-arguments.mjs +2 -2
  15. package/dist/cli.mjs +3 -3
  16. package/dist/composed-contrast.mjs +28 -8
  17. package/dist/composed-keyline.mjs +107 -0
  18. package/dist/construction-output.mjs +146 -18
  19. package/dist/construction-spec.d.mts +212 -9
  20. package/dist/construction-spec.mjs +297 -56
  21. package/dist/corner-overpaint.mjs +53 -0
  22. package/dist/design-foundation.mjs +6 -1
  23. package/dist/design-usage.mjs +8 -2
  24. package/dist/emit/emission.mjs +11 -4
  25. package/dist/emit/font-emission.mjs +21 -1
  26. package/dist/emit/foundation-sheet.mjs +6 -5
  27. package/dist/emit/preview-tree.mjs +1 -1
  28. package/dist/finding-rules.mjs +7 -0
  29. package/dist/font-checks.mjs +42 -0
  30. package/dist/font-declaration.d.mts +10 -0
  31. package/dist/font-declaration.mjs +25 -3
  32. package/dist/font-fallback.d.mts +37 -0
  33. package/dist/font-fallback.mjs +25 -0
  34. package/dist/font-macro.d.mts +10 -0
  35. package/dist/font-metrics.d.mts +34 -0
  36. package/dist/font-metrics.mjs +314 -0
  37. package/dist/font-model.mjs +28 -2
  38. package/dist/foundation-macro.d.mts +1 -1
  39. package/dist/frame-regions.mjs +66 -3
  40. package/dist/grid-facts.mjs +72 -16
  41. package/dist/grid-lowering.mjs +11 -5
  42. package/dist/init.mjs +14 -23
  43. package/dist/lowering-enter.mjs +31 -0
  44. package/dist/lowering-properties.mjs +22 -1
  45. package/dist/lowering-region-layout.mjs +42 -8
  46. package/dist/lowering-sequence.mjs +89 -0
  47. package/dist/lowering-session.mjs +7 -0
  48. package/dist/lowering-transitions.mjs +22 -8
  49. package/dist/mcp/preview-http.bundle.js +2 -2
  50. package/dist/mcp/preview-widget.bundle.js +5 -5
  51. package/dist/motion-model.mjs +2 -0
  52. package/dist/owner-analysis-check.mjs +67 -7
  53. package/dist/owner-errors.mjs +16 -0
  54. package/dist/owner-lowering.mjs +36 -16
  55. package/dist/owner-scenarios.mjs +25 -3
  56. package/dist/ownership-model.mjs +23 -4
  57. package/dist/paint-contrast.mjs +5 -0
  58. package/dist/placeholder-contrast.mjs +1 -0
  59. package/dist/platform-features.mjs +26 -2
  60. package/dist/preview-bun.mjs +17 -16
  61. package/dist/preview-controls.mjs +35 -0
  62. package/dist/preview-incremental.mjs +1 -1
  63. package/dist/preview-source.mjs +2 -2
  64. package/dist/profile-macro.d.mts +15 -0
  65. package/dist/profile-model.mjs +3 -3
  66. package/dist/profile-view-facts.mjs +55 -4
  67. package/dist/prose-model.d.mts +81 -0
  68. package/dist/prose-model.mjs +101 -0
  69. package/dist/recipe-macro.d.mts +105 -3
  70. package/dist/recipe-model.mjs +31 -7
  71. package/dist/region-lowering.mjs +241 -41
  72. package/dist/render-audit/corner-overpaint.page.mjs +54 -0
  73. package/dist/render-audit/worker.mjs +6 -1
  74. package/dist/render-audit.mjs +25 -0
  75. package/dist/role-vocabulary.d.mts +38 -2
  76. package/dist/role-vocabulary.mjs +39 -4
  77. package/dist/scenario-kit.d.mts +6 -0
  78. package/dist/scenario-registry.mjs +1 -1
  79. package/dist/scheme-switch.d.mts +8 -0
  80. package/dist/scheme-switch.mjs +1 -0
  81. package/dist/showcase/ads-views.mjs +116 -53
  82. package/dist/showcase/assets-view.mjs +117 -86
  83. package/dist/showcase/client.bundle.js +65 -65
  84. package/dist/showcase/http-client.bundle.js +17 -17
  85. package/dist/showcase/preview-frame.css +2 -0
  86. package/dist/showcase/profiles-view.mjs +163 -122
  87. package/dist/showcase/scenario-page.d.mts +11 -1
  88. package/dist/showcase/scenario-page.mjs +18 -3
  89. package/dist/showcase/token-sample.mjs +47 -4
  90. package/dist/showcase/tokens-view.mjs +82 -34
  91. package/dist/showcase/ui/ui.css +1 -1
  92. package/dist/showcase/ui/ui.js +5 -5
  93. package/dist/skills/README.md +5 -5
  94. package/dist/skills/ads-designer/README.md +1 -1
  95. package/dist/skills/ads-designer/SKILL.md +13 -12
  96. package/dist/skills/ads-designer/references/accessibility.md +2 -2
  97. package/dist/skills/ads-designer/references/atomic-styles.md +8 -1
  98. package/dist/skills/ads-designer/references/branding.md +7 -2
  99. package/dist/skills/ads-designer/references/cli.md +4 -4
  100. package/dist/skills/ads-designer/references/contracts.md +9 -2
  101. package/dist/skills/ads-designer/references/design-craft.md +1 -1
  102. package/dist/skills/ads-designer/references/design-data.md +3 -3
  103. package/dist/skills/ads-designer/references/forms.md +6 -6
  104. package/dist/skills/ads-designer/references/layout.md +42 -3
  105. package/dist/skills/ads-designer/references/motion.md +37 -1
  106. package/dist/skills/ads-designer/references/performance.md +7 -1
  107. package/dist/skills/ads-designer/references/recipes.md +67 -6
  108. package/dist/skills/ads-designer/references/runtimes.md +1 -1
  109. package/dist/skills/ads-designer/references/scenarios.md +1 -0
  110. package/dist/skills/ads-import/references/atomic-styles.md +8 -1
  111. package/dist/skills/ads-import/references/cli.md +4 -4
  112. package/dist/skills/ads-import/references/contracts.md +9 -2
  113. package/dist/skills/ads-import/references/design-data.md +3 -3
  114. package/dist/skills/ads-import/references/forms.md +6 -6
  115. package/dist/skills/ads-import/references/layout.md +42 -3
  116. package/dist/skills/ads-import/references/recipes.md +67 -6
  117. package/dist/skills/ads-import/references/runtimes.md +1 -1
  118. package/dist/skills/ads-import/references/scenarios.md +1 -0
  119. package/dist/skills/ads-migrate/SKILL.md +2 -1
  120. package/dist/skills/ads-migrate/references/0.5.0-to-0.5.1.md +239 -0
  121. package/dist/skills/ads-port/references/atomic-styles.md +8 -1
  122. package/dist/skills/ads-port/references/cli.md +4 -4
  123. package/dist/skills/ads-port/references/contracts.md +9 -2
  124. package/dist/skills/ads-port/references/design-data.md +3 -3
  125. package/dist/skills/ads-port/references/forms.md +6 -6
  126. package/dist/skills/ads-port/references/layout.md +42 -3
  127. package/dist/skills/ads-port/references/recipes.md +67 -6
  128. package/dist/skills/ads-port/references/runtimes.md +1 -1
  129. package/dist/skills/ads-port/references/scenarios.md +1 -0
  130. package/dist/spatial-model.mjs +20 -4
  131. package/dist/state-conditions.d.mts +29 -0
  132. package/dist/state-conditions.mjs +42 -2
  133. package/dist/surface-contrast.mjs +68 -10
  134. package/dist/surface-effects.mjs +98 -0
  135. package/dist/target-size.mjs +1 -1
  136. package/dist/task-cache.mjs +1 -1
  137. package/dist/token-dtcg.mjs +1 -0
  138. package/dist/token-view-facts.mjs +54 -5
  139. package/dist/unreached-sources.mjs +5 -0
  140. package/dist/validation.mjs +1 -1
  141. package/docs/ADS.md +36 -13
  142. package/docs/ARCHITECTURE.md +160 -16
  143. package/docs/ASSETS.md +81 -10
  144. package/docs/CACHING.md +1 -1
  145. package/docs/CHANGELOG.md +346 -21
  146. package/docs/DESIGN-REFERENCES.md +5 -5
  147. package/docs/GUIDE.md +241 -72
  148. package/docs/LANGUAGE.md +287 -21
  149. package/docs/LOWERING.md +13 -1
  150. package/docs/MOTION.md +233 -7
  151. package/docs/PROFILE-KINDS.md +167 -13
  152. package/docs/PROFILES.md +2 -2
  153. package/docs/RULES.md +49 -18
  154. package/docs/TOKEN-ROLES.md +9 -7
  155. package/package.json +1 -1
  156. package/dist/starter-files.mjs +0 -155
  157. package/dist/starter-overlay.mjs +0 -189
  158. package/dist/starters/preact/design-system/assets/avatars/avatar.ads.ts +0 -10
  159. package/dist/starters/preact/design-system/assets/avatars/member.svg +0 -1
  160. package/dist/starters/preact/design-system/assets/brand/emblem.ads.ts +0 -18
  161. package/dist/starters/preact/design-system/assets/brand/emblem.svg +0 -4
  162. package/dist/starters/preact/design-system/assets/brand/iris-emblem.ads.ts +0 -14
  163. package/dist/starters/preact/design-system/assets/brand/iris-emblem.svg +0 -4
  164. package/dist/starters/preact/design-system/assets/brand/mark.ads.ts +0 -14
  165. package/dist/starters/preact/design-system/assets/brand/mark.svg +0 -1
  166. package/dist/starters/preact/design-system/assets/glyphs/arrow.ads.ts +0 -14
  167. package/dist/starters/preact/design-system/assets/glyphs/arrow.svg +0 -1
  168. package/dist/starters/preact/design-system/assets/glyphs/chevron-20.svg +0 -1
  169. package/dist/starters/preact/design-system/assets/glyphs/chevron-24.svg +0 -1
  170. package/dist/starters/preact/design-system/assets/glyphs/chevron.ads.ts +0 -20
  171. package/dist/starters/preact/design-system/assets/glyphs/close.ads.ts +0 -13
  172. package/dist/starters/preact/design-system/assets/glyphs/close.svg +0 -1
  173. package/dist/starters/preact/design-system/assets/glyphs/favorite.ads.ts +0 -23
  174. package/dist/starters/preact/design-system/assets/glyphs/favorite.normal.svg +0 -1
  175. package/dist/starters/preact/design-system/assets/glyphs/favorite.selected.svg +0 -1
  176. package/dist/starters/preact/design-system/assets/glyphs/search.ads.ts +0 -10
  177. package/dist/starters/preact/design-system/assets/glyphs/search.svg +0 -1
  178. package/dist/starters/preact/design-system/assets/illustrations/journey.ads.ts +0 -32
  179. package/dist/starters/preact/design-system/assets/illustrations/journey.contrast.svg +0 -6
  180. package/dist/starters/preact/design-system/assets/illustrations/journey.dark.svg +0 -13
  181. package/dist/starters/preact/design-system/assets/illustrations/journey.light.svg +0 -13
  182. package/dist/starters/preact/design-system/assets/logos/harbor-pay.ads.ts +0 -17
  183. package/dist/starters/preact/design-system/assets/logos/harbor-pay.dark.svg +0 -10
  184. package/dist/starters/preact/design-system/assets/logos/harbor-pay.light.svg +0 -10
  185. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
  186. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
  187. package/dist/starters/preact/design-system/assets/logos/lumen-cloud.light.svg +0 -9
  188. package/dist/starters/preact/design-system/assets/status/error.svg +0 -1
  189. package/dist/starters/preact/design-system/assets/status/outcomes.ads.ts +0 -31
  190. package/dist/starters/preact/design-system/assets/status/status.ads.ts +0 -16
  191. package/dist/starters/preact/design-system/assets/status/success.svg +0 -1
  192. package/dist/starters/preact/design-system/assets/status/sync-status.ads.ts +0 -14
  193. package/dist/starters/preact/design-system/assets/status/sync-status.svg +0 -7
  194. package/dist/starters/preact/design-system/assets/status/warning.svg +0 -1
  195. package/dist/starters/preact/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
  196. package/dist/starters/preact/design-system/components/Actions/Button/Button.tsx +0 -198
  197. package/dist/starters/preact/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
  198. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
  199. package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
  200. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
  201. package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
  202. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
  203. package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.tsx +0 -110
  204. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
  205. package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.tsx +0 -72
  206. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
  207. package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
  208. package/dist/starters/preact/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
  209. package/dist/starters/preact/design-system/components/Content/Icon/Icon.tsx +0 -41
  210. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
  211. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
  212. package/dist/starters/preact/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
  213. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
  214. package/dist/starters/preact/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
  215. package/dist/starters/preact/design-system/components/Content/Image/Image.tsx +0 -83
  216. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
  217. package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
  218. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
  219. package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
  220. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
  221. package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
  222. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
  223. package/dist/starters/preact/design-system/components/Forms/TextField/TextField.tsx +0 -173
  224. package/dist/starters/preact/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
  225. package/dist/starters/preact/design-system/components/Identity/Identity.tsx +0 -146
  226. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
  227. package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.tsx +0 -194
  228. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
  229. package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.tsx +0 -37
  230. package/dist/starters/preact/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
  231. package/dist/starters/preact/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
  232. package/dist/starters/preact/design-system/controllers/FormField/FormField.ts +0 -343
  233. package/dist/starters/preact/design-system/controllers/FormField/useFormField.ts +0 -70
  234. package/dist/starters/preact/design-system/controllers/Palette/Palette.ts +0 -165
  235. package/dist/starters/preact/design-system/foundation.ads.ts +0 -22
  236. package/dist/starters/preact/design-system/index.ts +0 -51
  237. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
  238. package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
  239. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
  240. package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
  241. package/dist/starters/preact/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
  242. package/dist/starters/preact/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
  243. package/dist/starters/preact/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
  244. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
  245. package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
  246. package/dist/starters/preact/design-system/mocks/Workspace/media/ads.svg +0 -1
  247. package/dist/starters/preact/design-system/palette.generated.ts +0 -188
  248. package/dist/starters/preact/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
  249. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
  250. package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
  251. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
  252. package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
  253. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
  254. package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
  255. package/dist/starters/preact/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
  256. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +0 -268
  257. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
  258. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
  259. package/dist/starters/preact/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
  260. package/dist/starters/preact/design-system/profiles/Containers/containers.ads.ts +0 -67
  261. package/dist/starters/preact/design-system/profiles/Containers/frames.ads.ts +0 -32
  262. package/dist/starters/preact/design-system/profiles/Containers/geometry.ads.ts +0 -30
  263. package/dist/starters/preact/design-system/profiles/Containers/spacing.ads.ts +0 -26
  264. package/dist/starters/preact/design-system/profiles/Controls/controls.ads.ts +0 -157
  265. package/dist/starters/preact/design-system/profiles/Controls/frames.ads.ts +0 -50
  266. package/dist/starters/preact/design-system/profiles/Controls/spacing.ads.ts +0 -29
  267. package/dist/starters/preact/design-system/profiles/Focus/keyboard.ads.ts +0 -13
  268. package/dist/starters/preact/design-system/profiles/Identity/identity.ads.ts +0 -25
  269. package/dist/starters/preact/design-system/profiles/Identity/spacing.ads.ts +0 -22
  270. package/dist/starters/preact/design-system/profiles/Layout/grid.ads.ts +0 -69
  271. package/dist/starters/preact/design-system/profiles/Layout/inspector.ads.ts +0 -146
  272. package/dist/starters/preact/design-system/profiles/Layout/overlays.ads.ts +0 -94
  273. package/dist/starters/preact/design-system/profiles/Layout/regions.ads.ts +0 -296
  274. package/dist/starters/preact/design-system/profiles/Motion/feedback.ads.ts +0 -92
  275. package/dist/starters/preact/design-system/profiles/Surfaces/controls.ads.ts +0 -142
  276. package/dist/starters/preact/design-system/profiles/Surfaces/document.ads.ts +0 -2
  277. package/dist/starters/preact/design-system/profiles/Surfaces/materials.ads.ts +0 -18
  278. package/dist/starters/preact/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
  279. package/dist/starters/preact/design-system/profiles/Typography/details.ads.ts +0 -19
  280. package/dist/starters/preact/design-system/profiles/Typography/document.ads.ts +0 -2
  281. package/dist/starters/preact/design-system/profiles/Typography/headings.ads.ts +0 -15
  282. package/dist/starters/preact/design-system/profiles/Typography/text.ads.ts +0 -73
  283. package/dist/starters/preact/design-system/profiles/Visuals/artwork.ads.ts +0 -46
  284. package/dist/starters/preact/design-system/profiles/Visuals/charts.ads.ts +0 -31
  285. package/dist/starters/preact/design-system/profiles/Visuals/content.ads.ts +0 -52
  286. package/dist/starters/preact/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
  287. package/dist/starters/preact/design-system/profiles/Visuals/identity.ads.ts +0 -24
  288. package/dist/starters/preact/design-system/tokens/Artwork/paint.ads.css +0 -7
  289. package/dist/starters/preact/design-system/tokens/Artwork/visual-size.ads.css +0 -12
  290. package/dist/starters/preact/design-system/tokens/Brand/paint.ads.css +0 -7
  291. package/dist/starters/preact/design-system/tokens/Charts/paint.ads.css +0 -19
  292. package/dist/starters/preact/design-system/tokens/Containers/border-width.ads.css +0 -1
  293. package/dist/starters/preact/design-system/tokens/Containers/content-gap.ads.css +0 -5
  294. package/dist/starters/preact/design-system/tokens/Containers/frame-inset.ads.css +0 -6
  295. package/dist/starters/preact/design-system/tokens/Containers/frame-size.ads.css +0 -11
  296. package/dist/starters/preact/design-system/tokens/Containers/radius.ads.css +0 -1
  297. package/dist/starters/preact/design-system/tokens/Controls/border-width.ads.css +0 -4
  298. package/dist/starters/preact/design-system/tokens/Controls/content-gap.ads.css +0 -6
  299. package/dist/starters/preact/design-system/tokens/Controls/control-min-size.ads.css +0 -17
  300. package/dist/starters/preact/design-system/tokens/Controls/frame-inset.ads.css +0 -21
  301. package/dist/starters/preact/design-system/tokens/Controls/radius.ads.css +0 -1
  302. package/dist/starters/preact/design-system/tokens/Controls/target-min-size.ads.css +0 -2
  303. package/dist/starters/preact/design-system/tokens/Controls/visual-size.ads.css +0 -2
  304. package/dist/starters/preact/design-system/tokens/Focus/border-width.ads.css +0 -1
  305. package/dist/starters/preact/design-system/tokens/Focus/focus-offset.ads.css +0 -1
  306. package/dist/starters/preact/design-system/tokens/Foundation/spacing.ads.css +0 -20
  307. package/dist/starters/preact/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
  308. package/dist/starters/preact/design-system/tokens/Grid/layer.ads.css +0 -2
  309. package/dist/starters/preact/design-system/tokens/Grid/layout-size.ads.css +0 -15
  310. package/dist/starters/preact/design-system/tokens/Grid/spacing.ads.css +0 -12
  311. package/dist/starters/preact/design-system/tokens/Grid/track-count.ads.css +0 -1
  312. package/dist/starters/preact/design-system/tokens/Identity/content-gap.ads.css +0 -6
  313. package/dist/starters/preact/design-system/tokens/Identity/visual-size.ads.css +0 -1
  314. package/dist/starters/preact/design-system/tokens/Motion/duration.ads.css +0 -6
  315. package/dist/starters/preact/design-system/tokens/Motion/easing.ads.css +0 -5
  316. package/dist/starters/preact/design-system/tokens/Motion/motion-angle.ads.css +0 -1
  317. package/dist/starters/preact/design-system/tokens/Motion/motion-distance.ads.css +0 -2
  318. package/dist/starters/preact/design-system/tokens/Motion/motion-scale.ads.css +0 -9
  319. package/dist/starters/preact/design-system/tokens/Surfaces/blur.ads.css +0 -2
  320. package/dist/starters/preact/design-system/tokens/Surfaces/gradient.ads.css +0 -2
  321. package/dist/starters/preact/design-system/tokens/Surfaces/opacity.ads.css +0 -2
  322. package/dist/starters/preact/design-system/tokens/Surfaces/paint.ads.css +0 -58
  323. package/dist/starters/preact/design-system/tokens/Surfaces/shadow.ads.css +0 -20
  324. package/dist/starters/preact/design-system/tokens/Typography/font-family.ads.css +0 -1
  325. package/dist/starters/preact/design-system/tokens/Typography/font-features.ads.css +0 -1
  326. package/dist/starters/preact/design-system/tokens/Typography/font-size.ads.css +0 -9
  327. package/dist/starters/preact/design-system/tokens/Typography/font-stretch.ads.css +0 -1
  328. package/dist/starters/preact/design-system/tokens/Typography/font-variations.ads.css +0 -1
  329. package/dist/starters/preact/design-system/tokens/Typography/font-weight.ads.css +0 -1
  330. package/dist/starters/preact/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
  331. package/dist/starters/preact/design-system/tokens/Typography/line-height.ads.css +0 -11
  332. package/dist/starters/preact/design-system/tokens/Typography/word-spacing.ads.css +0 -1
  333. package/dist/starters/preact/starter.json +0 -11
  334. package/dist/starters/react/design-system/assets/avatars/avatar.ads.ts +0 -10
  335. package/dist/starters/react/design-system/assets/avatars/member.svg +0 -1
  336. package/dist/starters/react/design-system/assets/brand/emblem.ads.ts +0 -18
  337. package/dist/starters/react/design-system/assets/brand/emblem.svg +0 -4
  338. package/dist/starters/react/design-system/assets/brand/iris-emblem.ads.ts +0 -14
  339. package/dist/starters/react/design-system/assets/brand/iris-emblem.svg +0 -4
  340. package/dist/starters/react/design-system/assets/brand/mark.ads.ts +0 -14
  341. package/dist/starters/react/design-system/assets/brand/mark.svg +0 -1
  342. package/dist/starters/react/design-system/assets/glyphs/arrow.ads.ts +0 -14
  343. package/dist/starters/react/design-system/assets/glyphs/arrow.svg +0 -1
  344. package/dist/starters/react/design-system/assets/glyphs/chevron-20.svg +0 -1
  345. package/dist/starters/react/design-system/assets/glyphs/chevron-24.svg +0 -1
  346. package/dist/starters/react/design-system/assets/glyphs/chevron.ads.ts +0 -20
  347. package/dist/starters/react/design-system/assets/glyphs/close.ads.ts +0 -13
  348. package/dist/starters/react/design-system/assets/glyphs/close.svg +0 -1
  349. package/dist/starters/react/design-system/assets/glyphs/favorite.ads.ts +0 -23
  350. package/dist/starters/react/design-system/assets/glyphs/favorite.normal.svg +0 -1
  351. package/dist/starters/react/design-system/assets/glyphs/favorite.selected.svg +0 -1
  352. package/dist/starters/react/design-system/assets/glyphs/search.ads.ts +0 -10
  353. package/dist/starters/react/design-system/assets/glyphs/search.svg +0 -1
  354. package/dist/starters/react/design-system/assets/illustrations/journey.ads.ts +0 -32
  355. package/dist/starters/react/design-system/assets/illustrations/journey.contrast.svg +0 -6
  356. package/dist/starters/react/design-system/assets/illustrations/journey.dark.svg +0 -13
  357. package/dist/starters/react/design-system/assets/illustrations/journey.light.svg +0 -13
  358. package/dist/starters/react/design-system/assets/logos/harbor-pay.ads.ts +0 -17
  359. package/dist/starters/react/design-system/assets/logos/harbor-pay.dark.svg +0 -10
  360. package/dist/starters/react/design-system/assets/logos/harbor-pay.light.svg +0 -10
  361. package/dist/starters/react/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
  362. package/dist/starters/react/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
  363. package/dist/starters/react/design-system/assets/logos/lumen-cloud.light.svg +0 -9
  364. package/dist/starters/react/design-system/assets/status/error.svg +0 -1
  365. package/dist/starters/react/design-system/assets/status/outcomes.ads.ts +0 -31
  366. package/dist/starters/react/design-system/assets/status/status.ads.ts +0 -16
  367. package/dist/starters/react/design-system/assets/status/success.svg +0 -1
  368. package/dist/starters/react/design-system/assets/status/sync-status.ads.ts +0 -14
  369. package/dist/starters/react/design-system/assets/status/sync-status.svg +0 -7
  370. package/dist/starters/react/design-system/assets/status/warning.svg +0 -1
  371. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
  372. package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +0 -198
  373. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
  374. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
  375. package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
  376. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
  377. package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
  378. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
  379. package/dist/starters/react/design-system/components/Content/Artwork/Artwork.tsx +0 -110
  380. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
  381. package/dist/starters/react/design-system/components/Content/BarChart/BarChart.tsx +0 -72
  382. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
  383. package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
  384. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
  385. package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +0 -41
  386. package/dist/starters/react/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
  387. package/dist/starters/react/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
  388. package/dist/starters/react/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
  389. package/dist/starters/react/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
  390. package/dist/starters/react/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
  391. package/dist/starters/react/design-system/components/Content/Image/Image.tsx +0 -83
  392. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
  393. package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
  394. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
  395. package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
  396. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
  397. package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
  398. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
  399. package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +0 -173
  400. package/dist/starters/react/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
  401. package/dist/starters/react/design-system/components/Identity/Identity.tsx +0 -146
  402. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
  403. package/dist/starters/react/design-system/components/Overlays/Menu/Menu.tsx +0 -194
  404. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
  405. package/dist/starters/react/design-system/components/Overlays/Popover/Popover.tsx +0 -37
  406. package/dist/starters/react/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
  407. package/dist/starters/react/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
  408. package/dist/starters/react/design-system/controllers/FormField/FormField.ts +0 -343
  409. package/dist/starters/react/design-system/controllers/FormField/useFormField.ts +0 -70
  410. package/dist/starters/react/design-system/controllers/Palette/Palette.ts +0 -165
  411. package/dist/starters/react/design-system/foundation.ads.ts +0 -22
  412. package/dist/starters/react/design-system/index.ts +0 -51
  413. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
  414. package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
  415. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
  416. package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
  417. package/dist/starters/react/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
  418. package/dist/starters/react/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
  419. package/dist/starters/react/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
  420. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
  421. package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
  422. package/dist/starters/react/design-system/mocks/Workspace/media/ads.svg +0 -1
  423. package/dist/starters/react/design-system/palette.generated.ts +0 -188
  424. package/dist/starters/react/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
  425. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
  426. package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
  427. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
  428. package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
  429. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
  430. package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
  431. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
  432. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +0 -268
  433. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
  434. package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
  435. package/dist/starters/react/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
  436. package/dist/starters/react/design-system/profiles/Containers/containers.ads.ts +0 -67
  437. package/dist/starters/react/design-system/profiles/Containers/frames.ads.ts +0 -32
  438. package/dist/starters/react/design-system/profiles/Containers/geometry.ads.ts +0 -30
  439. package/dist/starters/react/design-system/profiles/Containers/spacing.ads.ts +0 -26
  440. package/dist/starters/react/design-system/profiles/Controls/controls.ads.ts +0 -157
  441. package/dist/starters/react/design-system/profiles/Controls/frames.ads.ts +0 -50
  442. package/dist/starters/react/design-system/profiles/Controls/spacing.ads.ts +0 -29
  443. package/dist/starters/react/design-system/profiles/Focus/keyboard.ads.ts +0 -13
  444. package/dist/starters/react/design-system/profiles/Identity/identity.ads.ts +0 -25
  445. package/dist/starters/react/design-system/profiles/Identity/spacing.ads.ts +0 -22
  446. package/dist/starters/react/design-system/profiles/Layout/grid.ads.ts +0 -69
  447. package/dist/starters/react/design-system/profiles/Layout/inspector.ads.ts +0 -146
  448. package/dist/starters/react/design-system/profiles/Layout/overlays.ads.ts +0 -94
  449. package/dist/starters/react/design-system/profiles/Layout/regions.ads.ts +0 -296
  450. package/dist/starters/react/design-system/profiles/Motion/feedback.ads.ts +0 -92
  451. package/dist/starters/react/design-system/profiles/Surfaces/controls.ads.ts +0 -142
  452. package/dist/starters/react/design-system/profiles/Surfaces/document.ads.ts +0 -2
  453. package/dist/starters/react/design-system/profiles/Surfaces/materials.ads.ts +0 -18
  454. package/dist/starters/react/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
  455. package/dist/starters/react/design-system/profiles/Typography/details.ads.ts +0 -19
  456. package/dist/starters/react/design-system/profiles/Typography/document.ads.ts +0 -2
  457. package/dist/starters/react/design-system/profiles/Typography/headings.ads.ts +0 -15
  458. package/dist/starters/react/design-system/profiles/Typography/text.ads.ts +0 -73
  459. package/dist/starters/react/design-system/profiles/Visuals/artwork.ads.ts +0 -46
  460. package/dist/starters/react/design-system/profiles/Visuals/charts.ads.ts +0 -31
  461. package/dist/starters/react/design-system/profiles/Visuals/content.ads.ts +0 -52
  462. package/dist/starters/react/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
  463. package/dist/starters/react/design-system/profiles/Visuals/identity.ads.ts +0 -24
  464. package/dist/starters/react/design-system/tokens/Artwork/paint.ads.css +0 -7
  465. package/dist/starters/react/design-system/tokens/Artwork/visual-size.ads.css +0 -12
  466. package/dist/starters/react/design-system/tokens/Brand/paint.ads.css +0 -7
  467. package/dist/starters/react/design-system/tokens/Charts/paint.ads.css +0 -19
  468. package/dist/starters/react/design-system/tokens/Containers/border-width.ads.css +0 -1
  469. package/dist/starters/react/design-system/tokens/Containers/content-gap.ads.css +0 -5
  470. package/dist/starters/react/design-system/tokens/Containers/frame-inset.ads.css +0 -6
  471. package/dist/starters/react/design-system/tokens/Containers/frame-size.ads.css +0 -11
  472. package/dist/starters/react/design-system/tokens/Containers/radius.ads.css +0 -1
  473. package/dist/starters/react/design-system/tokens/Controls/border-width.ads.css +0 -4
  474. package/dist/starters/react/design-system/tokens/Controls/content-gap.ads.css +0 -6
  475. package/dist/starters/react/design-system/tokens/Controls/control-min-size.ads.css +0 -17
  476. package/dist/starters/react/design-system/tokens/Controls/frame-inset.ads.css +0 -21
  477. package/dist/starters/react/design-system/tokens/Controls/radius.ads.css +0 -1
  478. package/dist/starters/react/design-system/tokens/Controls/target-min-size.ads.css +0 -2
  479. package/dist/starters/react/design-system/tokens/Controls/visual-size.ads.css +0 -2
  480. package/dist/starters/react/design-system/tokens/Focus/border-width.ads.css +0 -1
  481. package/dist/starters/react/design-system/tokens/Focus/focus-offset.ads.css +0 -1
  482. package/dist/starters/react/design-system/tokens/Foundation/spacing.ads.css +0 -20
  483. package/dist/starters/react/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
  484. package/dist/starters/react/design-system/tokens/Grid/layer.ads.css +0 -2
  485. package/dist/starters/react/design-system/tokens/Grid/layout-size.ads.css +0 -15
  486. package/dist/starters/react/design-system/tokens/Grid/spacing.ads.css +0 -12
  487. package/dist/starters/react/design-system/tokens/Grid/track-count.ads.css +0 -1
  488. package/dist/starters/react/design-system/tokens/Identity/content-gap.ads.css +0 -6
  489. package/dist/starters/react/design-system/tokens/Identity/visual-size.ads.css +0 -1
  490. package/dist/starters/react/design-system/tokens/Motion/duration.ads.css +0 -6
  491. package/dist/starters/react/design-system/tokens/Motion/easing.ads.css +0 -5
  492. package/dist/starters/react/design-system/tokens/Motion/motion-angle.ads.css +0 -1
  493. package/dist/starters/react/design-system/tokens/Motion/motion-distance.ads.css +0 -2
  494. package/dist/starters/react/design-system/tokens/Motion/motion-scale.ads.css +0 -9
  495. package/dist/starters/react/design-system/tokens/Surfaces/blur.ads.css +0 -2
  496. package/dist/starters/react/design-system/tokens/Surfaces/gradient.ads.css +0 -2
  497. package/dist/starters/react/design-system/tokens/Surfaces/opacity.ads.css +0 -2
  498. package/dist/starters/react/design-system/tokens/Surfaces/paint.ads.css +0 -58
  499. package/dist/starters/react/design-system/tokens/Surfaces/shadow.ads.css +0 -20
  500. package/dist/starters/react/design-system/tokens/Typography/font-family.ads.css +0 -1
  501. package/dist/starters/react/design-system/tokens/Typography/font-features.ads.css +0 -1
  502. package/dist/starters/react/design-system/tokens/Typography/font-size.ads.css +0 -9
  503. package/dist/starters/react/design-system/tokens/Typography/font-stretch.ads.css +0 -1
  504. package/dist/starters/react/design-system/tokens/Typography/font-variations.ads.css +0 -1
  505. package/dist/starters/react/design-system/tokens/Typography/font-weight.ads.css +0 -1
  506. package/dist/starters/react/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
  507. package/dist/starters/react/design-system/tokens/Typography/line-height.ads.css +0 -11
  508. package/dist/starters/react/design-system/tokens/Typography/word-spacing.ads.css +0 -1
  509. package/dist/starters/react/starter.json +0 -11
  510. 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.
@@ -196,20 +200,30 @@ Each construct is a closed field lowered on the element's own path
196
200
  (`src/lowering-region-layout.mts`). Two constructs that write one property
197
201
  differently on one element are rejected (`construction/extent-conflict`,
198
202
  `construction/element-normalization-conflict`); input order settles nothing.
199
- The starter's Inspector (`patterns/Inspector/Inspector/Inspector.tsx`) uses
203
+ The example design system's Inspector (`patterns/Inspector/Inspector/Inspector.tsx`) uses
200
204
  them all.
201
205
 
202
206
  | Field | On | Lowers to | Rejected when |
203
207
  | --- | --- | --- | --- |
204
208
  | frame profile `paddingInline` / `paddingBlock` | frame | logical insets per axis | the profile also sets `padding` (`construction/frame-field-conflict`) |
209
+ | 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`) |
210
+ | `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`) | another field beside `profile`; a frame field the profile misuses, as on a root |
205
211
  | `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 |
212
+ | `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`) |
213
+ | `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
214
  | `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`) |
207
215
  | `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 |
216
+ | `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) |
217
+ | 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 |
218
+ | `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` |
208
219
  | `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`) |
220
+ | `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
221
  | `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` |
222
+ | `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 | any other part (`construction/outset-unsupported`) |
223
+ | `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
224
  | control `layout: "stack"` | control | visual above label; the control box centres visual + gap + line | `justify` |
212
225
  | `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 |
226
+ | `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
227
  | `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
228
  | `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
229
  | `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`) |
@@ -264,10 +278,39 @@ A `when` key is a state of the owner's root, in a closed grammar
264
278
  more of `:hover`, `:active`, `:focus`, `:focus-visible`, `:focus-within`,
265
279
  `:disabled`, `:enabled`, `:checked`, `:indeterminate`, `[aria-*]`, `[data-*]`
266
280
  or `[open]` (an attribute optionally with one double-quoted value), each
267
- optionally inside `:not(…)`. The starter uses hover and active excluding
281
+ optionally inside `:not(…)`. The example design system uses hover and active excluding
268
282
  disabled, `&[aria-busy="true"]`, `&[data-user-invalid]`, `&[data-autofill]` and
269
283
  `&[open]`.
270
284
 
285
+ A `when` entry may also select the element's text: `when: {
286
+ '&[aria-pressed="true"]': { text: "label-strong" } }` on a text part, a root
287
+ or a control. The state's text profile may differ from the element's own in
288
+ `fontWeight` and `letterSpacing` only (`construction/state-text-field`
289
+ otherwise), so the line and the box's height stay where they are. A heavier
290
+ weight is wider: whether the box may grow with it is the designer's choice.
291
+
292
+ A state of one of the recipe's own direct parts is also a state of the root,
293
+ written `:has(> .part:state)` with `:checked`, `:indeterminate`,
294
+ `:focus-visible`, `:hover` or `:disabled`:
295
+
296
+ ```ts
297
+ parts: {
298
+ input: { selector: ".ds-checkbox-input" }, // the native <input type="checkbox">
299
+ box: {
300
+ selector: ".ds-checkbox-box", surface: "control-surface",
301
+ when: {
302
+ "&:has(> .ds-checkbox-input:checked)": { surface: "action-surface" },
303
+ "&:has(> .ds-checkbox-input:focus-visible)": { surface: "focused-control-surface" },
304
+ },
305
+ },
306
+ }
307
+ ```
308
+
309
+ A checkbox's drawn box follows its native input without script, and a field's
310
+ control reacts to its own hover (`&:has(> .ds-field-control:hover)`), not to
311
+ the label's. The class must be a direct part of the recipe, and nothing else
312
+ goes inside `:has()`.
313
+
271
314
  Anything else is rejected where authored (`spec/condition-unsupported`):
272
315
  a pseudo-element (`&::placeholder`), a combinator or class (`& > .child`), a
273
316
  type, a nested `&`, another attribute operator or a functional pseudo-class
@@ -284,7 +327,7 @@ machine: ordinary behavior owns the state (native Disclosure binds the actual
284
327
  **Form states** are attribute states of the root. `:user-invalid`,
285
328
  `:user-valid` and `:autofill` match a field's `<input>`, never its owner root,
286
329
  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:
330
+ (the example design system's `controllers/FormField`) mirrors onto the root:
288
331
  `[data-user-invalid]` (an error is shown: a constraint error after interaction,
289
332
  or the application's error), `[data-user-valid]` (interacted and valid) and
290
333
  `[data-autofill]` (the browser filled it). Owner analysis holds two rules for
@@ -333,6 +376,8 @@ pseudo-element is always last; `opacity: 1` removes Firefox's default dimming.
333
376
  - Where a `when` surface's colour meets a background from another surface
334
377
  profile, the pair needs 4.5:1 (`construction/state-contrast-insufficient`; an
335
378
  unprovable pair is the review note `review/state-contrast-unresolved`).
379
+ States that exclude each other (two values of one attribute, a state and its
380
+ `:not()`) are never paired.
336
381
  - A profile's own colour and background are checked with the profile
337
382
  (`surface-contrast`).
338
383
  - An element whose surface sets only a colour (a link, secondary text, a badge
@@ -343,8 +388,160 @@ pseudo-element is always last; `opacity: 1` removes Firefox's default dimming.
343
388
  kind consumed through the selected composite's motion slot.
344
389
  [MOTION.md](MOTION.md) owns its constructs:
345
390
  [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).
391
+ typed `when` endpoints), the [root press](MOTION.md#root-press),
392
+ [`paintTransition`](MOTION.md#paint-transitions) and
393
+ [`enter`](MOTION.md#entrances), an entrance on first render,
394
+ [motion on a region's parts](MOTION.md#motion-on-a-regions-parts),
395
+ [`play`](MOTION.md#sequences) for a sequence of steps, and `motion` on a
396
+ [measured value](MOTION.md#animating-a-measured-value). An animation is
397
+ [defined in the recipe and controlled in script](MOTION.md#defined-in-the-recipe-controlled-in-script).
398
+
399
+ ## Prose: long-form content
400
+
401
+ Articles, documentation, legal text and anything a content system or Markdown
402
+ produces is markup the owner does not write. A recipe with `layout: "prose"`
403
+ styles it: a closed set of plain flow elements inside its root, wherever they
404
+ nest.
405
+
406
+ ```ts
407
+ const article = recipe({
408
+ layout: "prose",
409
+ profile: "article", // spacing and surface slots, as any recipe
410
+ rhythm: { slot: "spacing", field: "contentGap" }, // the space between blocks
411
+ elements: {
412
+ paragraph: { text: "body" },
413
+ heading2: { text: "heading-2", spaceBefore: { slot: "spacing", field: "sectionGap" } },
414
+ link: { surface: "link", when: { "&:hover": { surface: "link-hover" } } },
415
+ strong: { text: "body-strong" },
416
+ list: { indent: { slot: "spacing", field: "indent" } },
417
+ item: { marker: "list-marker" },
418
+ quote: { surface: "quote", frame: "quote-frame" },
419
+ rule: { surface: "divider", frame: "divider-frame" },
420
+ pre: { surface: "code-block", text: "code" },
421
+ },
422
+ }).root;
423
+
424
+ export function Prose({ children }: { children: ReactNode }) {
425
+ return <div className={article}>{children}</div>;
426
+ }
427
+ ```
428
+
429
+ ```tsx
430
+ <Prose>
431
+ <h2>Title</h2>
432
+ <p>Text with a <a href="/docs">link</a>.</p>
433
+ <Callout tone="info">A component among the content.</Callout>
434
+ </Prose>
435
+ ```
436
+
437
+ **The elements.** The set is what Markdown produces (CommonMark with tables and
438
+ strikethrough) and the common HTML beside it:
439
+
440
+ | Element | Tags | Element | Tags |
441
+ | --- | --- | --- | --- |
442
+ | `paragraph` | `p` | `link` | `a` |
443
+ | `heading1` … `heading6` | `h1` … `h6` | `strong` | `strong`, `b` |
444
+ | `list` | `ul`, `ol` | `emphasis` | `em`, `i` |
445
+ | `item` | `li` | `deleted` | `del`, `s` |
446
+ | `quote` | `blockquote` | `code` | `code` |
447
+ | `rule` | `hr` | `sub`, `sup` | `sub`, `sup` |
448
+ | `pre` | `pre` | `kbd` | `kbd` |
449
+ | `table`, `headerCell`, `cell` | `table`, `th`, `td` | `mark` | `mark` |
450
+ | `figure`, `caption` | `figure`, `figcaption` | `descriptions`, `term`, `definition` | `dl`, `dt`, `dd` |
451
+ | `media` | `img`, `video`, `iframe` | | |
452
+
453
+ **An element is a part selected by tag.** Each entry names profiles: `text`
454
+ (a text profile), `surface` (a surface profile, with `when` for its states) and
455
+ `frame` (a frame profile: padding, borders, radius, sizes). Three extras belong
456
+ to one element each: `spaceBefore` on a block (it replaces the rhythm before
457
+ it), `indent` on `list`, and `marker` on `item` (a colour-only surface).
458
+
459
+ **What ADS guarantees.**
460
+
461
+ - **Only elements without a class are styled** (`p:not([class])`). Every
462
+ element an ADS owner renders has a class, so a component placed in the
463
+ content keeps its own design, and a paragraph inside that component is the
464
+ component's.
465
+ - **Nesting follows HTML.** A list in a list, a paragraph in a quote, a link in
466
+ a table cell: each is styled where it stands.
467
+ - **The rhythm is even.** Every block takes the rhythm (or its own
468
+ `spaceBefore`) before it, declared or not, and the first plain element of
469
+ the root and of each plain container starts flush. Browser margins, a
470
+ quote's and a figure's indent, a rule's inset border, a table's doubled
471
+ borders and media wider than its column are replaced.
472
+ - **A component among the blocks is spaced like them.** A component placed
473
+ directly in the prose root takes the rhythm before it (unless it comes
474
+ first); nothing else of it changes. A component inside a paragraph is inline
475
+ content and is left alone.
476
+ - **A table's structure and line breaks are content.** `thead`, `tbody`,
477
+ `tfoot` and `tr` come with a declared `table`, and `br` with any prose; no
478
+ rule is written for them.
479
+ - **Contrast is proven.** Each declared colour (base and state surfaces) is
480
+ checked on the root's background and on the background of every declared
481
+ element that can contain it, in every theme and brand:
482
+ `construction/prose-contrast-insufficient`. A code block holds code, so a
483
+ link's colour is not held to it.
484
+ - **The source of the markup does not matter.** JSX children, rendered
485
+ Markdown and HTML from a content system are styled alike.
486
+
487
+ **Content as an HTML string.** A content system or a Markdown renderer hands
488
+ the application a string. Application source cannot inject it
489
+ (`dangerouslySetInnerHTML` is a design prop to `ads-guard`), and it should not:
490
+ the injection belongs in one place. Give the same recipe a second component
491
+ that takes the string:
492
+
493
+ ```tsx
494
+ export function ProseHtml({ html }: { html: string }) {
495
+ return <div className={article} dangerouslySetInnerHTML={{ __html: html }} />;
496
+ }
497
+ ```
498
+
499
+ The application passes `html` as a plain prop. The string is injected as
500
+ written, so **the application sanitises it first**: ADS checks source, not
501
+ strings, and unsanitised HTML from outside is a security hole. Classes inside
502
+ the string are not styled by prose (only classless elements are), and elements
503
+ the recipe does not declare are drawn in the root's text without any report,
504
+ because no check reads the string. The example design system's Prose pattern exports both
505
+ forms.
506
+
507
+ **What a prose recipe does not have.** No `parts`, `gap`, `align` or `layer`:
508
+ prose flows. An element the recipe does not declare is drawn in the root's
509
+ text; the markup checks report it where content uses it
510
+ (`prose-element-undeclared`), so the gap shows up where it matters.
511
+
512
+ **The markup checks.** In scenarios, mocks and application source, plain flow
513
+ markup is accepted as the content of a prose owner: inside its element, through
514
+ plain prose elements only. A component between the owner and the element owns
515
+ what is inside it. An element outside the set (`div`, `span`, `section`) is
516
+ still markup of the file's own. `ads emit` records the prose owners in
517
+ `ads-prose.json` beside the entry, which is how `ads-guard` knows them.
518
+
519
+ ## Sticky elements
520
+
521
+ A bar, a contents list or a table header that stays in view while its container
522
+ scrolls declares `sticky` on its root or on the part:
523
+
524
+ ```ts
525
+ profile({ name: "under-bar", kind: "layer", fields: { clearBlockStart: "--bar-height", stickyLayer: "--layer-sticky" } });
526
+
527
+ const bar = recipe({ layout: "inline", profile: "site-bar", sticky: { edge: "block-start" } }).root;
528
+ const page = recipe({
529
+ layout: "stack",
530
+ profile: "docs-page", // its composite selects layerProfile: "under-bar"
531
+ parts: { contents: { selector: ".ux-contents", sticky: { edge: "block-start", clear: "block-start" } } },
532
+ }).root;
533
+ ```
534
+
535
+ - The element sticks inside its nearest scrolling container: the page, or an
536
+ ancestor that scrolls (a table header in a scrolling table). ADS does not
537
+ choose the container; an ancestor that scrolls on that axis becomes it.
538
+ - `clear: "block-start"` holds the element below a bar at the top by one shared
539
+ token, the layer profile's `clearBlockStart`, the same field an anchored
540
+ popover clears by. Change the bar's height in one place.
541
+ - The layer profile's `stickyLayer` (role `layer`) stacks the element above
542
+ positioned content that scrolls under it. Without it the element keeps its
543
+ place in document order.
544
+ - Only block edges stick. A top-layer root takes no `sticky`.
348
545
 
349
546
  ## Top-layer roots
350
547
 
@@ -430,7 +627,7 @@ media term the spatial algebra writes for the range below that tier
430
627
  that literal, so the owner's `matchMedia` and the CSS agree. It is a viewport
431
628
  query, so the owner's grids must not respond to a container
432
629
  (`source/layer-modal-context`). Reading it from another recipe is
433
- `choice/recipe-access-unsupported`. The starter's Shell closes its sheet when
630
+ `choice/recipe-access-unsupported`. The example design system's Shell closes its sheet when
434
631
  the viewport leaves that range and moves focus to the in-track navigation.
435
632
 
436
633
  ## Measured runtime geometry
@@ -557,6 +754,10 @@ const split = recipe({
557
754
  split.measured.set(root, { width });
558
755
  ```
559
756
 
757
+ `resize: "vertical" | "none"` in a part's `normalize` states how the user may
758
+ resize a multi-line text field. It belongs on a part rendered as `<textarea>`
759
+ (`source/resize-not-textarea` otherwise) and takes no `when`.
760
+
560
761
  The fields occur in a root's or a part's `normalize` and in its `when`:
561
762
 
562
763
  - `cursor`: `pointer`, `default`, `grab`, `grabbing`, `col-resize`,
@@ -704,6 +905,13 @@ recipe({
704
905
  });
705
906
  ```
706
907
 
908
+ A fluid grid with local `columns` may weigh them: `columns: 2, weights: [0.85,
909
+ 1.15]` gives each column its share of the width (`minmax(0, 0.85fr) minmax(0,
910
+ 1.15fr)`), and the checks size each cell by the same shares. One positive
911
+ number per column; every column weighs 1 without `weights`. A cell still
912
+ stacks at a narrow tier by spanning both columns (`span: "full"` with
913
+ `at: { md: { span: 1 } }`).
914
+
707
915
  [Spatial profiles](PROFILE-KINDS.md#spatial) own units, scales, ratios, max
708
916
  width, track counts, breakpoints, gutter pairs, fixed sides and named
709
917
  conditions. Owner `at` selects those names. A relative condition such as `below: "--form-wrap-width"` keeps
@@ -726,7 +934,7 @@ container, so an owned ancestor in its owner starts one in every choice
726
934
  (`frame: { container: "region" }`, the only container). Otherwise the grid
727
935
  fails at the construction (`source/grid-container-missing`, GC-05).
728
936
 
729
- **Public rows.** A field exposes named rows through `exposeRows`. The starter's
937
+ **Public rows.** A field exposes named rows through `exposeRows`. The example design system's
730
938
  InviteMember binds them through `alignRows`, which
731
939
  [lowers to subgrid](LOWERING.md#public-row-alignment). The cell must span
732
940
  exactly those rows. Aligned rows share one gap: the grid takes the gap the rows
@@ -744,13 +952,18 @@ it auto-places (`start: "auto"`) at every tier.
744
952
  (`source/frame-exceeds-region`).
745
953
  - Where the region cannot be bounded, and for a public component placed as a
746
954
  cell or tile, it is reviewed (`review/frame-region-unresolved`), never passed.
955
+ - On a gutter other than `wide`, the first padded frame in a cell has an inline
956
+ padding that, with that gutter's start, equals the wide gutter's start within
957
+ the profile's fine unit (`source/keyline-missed`; `component-keyline` for a
958
+ public component placed in the cell). See
959
+ [the text keyline](GUIDE.md#the-text-keyline).
747
960
  - A frame's maximum inline size and the grid bound both hold (the smaller
748
961
  wins). Any other property both would write is an error.
749
962
 
750
- The starter's Shell and WorkspacePanels show hybrid, overlay, fixed, flow and
963
+ The example design system's Shell and WorkspacePanels show hybrid, overlay, fixed, flow and
751
964
  inherited layouts. Mixed tracks (a fixed indent beside fluid tracks, a fluid
752
965
  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.
966
+ by a test fixture (`tests/helpers/conversation-project.ts`), not the example design system.
754
967
 
755
968
  ## Cropped media
756
969
 
@@ -792,17 +1005,70 @@ the profile's height cap, known before the file loads, so nothing after it
792
1005
  moves when it arrives. Without the value its size is the loaded file's.
793
1006
 
794
1007
  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
1008
+ screenshot). The example design system's Image (`components/Content/Image/Image.tsx`) has both
796
1009
  forms.
797
1010
 
798
1011
  ## Choices the compiler infers
799
1012
 
800
1013
  Class selections and part presence are inferred from ordinary TypeScript:
801
1014
  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.
1015
+ `.map` over a literal array (or a local const array of records). A `.map`
1016
+ over data (a prop's array) is read through each item's declared type: a field
1017
+ typed as a literal union or a boolean is a finite choice, and an optional text
1018
+ field selects markup by presence, whether the callback destructures the item
1019
+ (`({ text, sub }) => …`) or reads its fields (`item.sub && <span>`). Both
1020
+ variants are checked, so the optional element must be a part that may be absent
1021
+ (`required: false`). A nested field (`item.a.b`), a number or a call is not
1022
+ finite. Application
1023
+ text (`string` props) selects markup by presence only (`help && <span>`): three
1024
+ variants, non-empty, empty and absent. Comparing or indexing designs by its
1025
+ content is an error, as is an unbounded choice. Spreads can pass props to
1026
+ public components but not to owned elements.
1027
+
1028
+ ### Optional callbacks, objects and slots
1029
+
1030
+ An optional prop (or mapped item field) whose type is an object, a function or
1031
+ a node selects markup by whether it is given. It is one input with two
1032
+ variants, given and not given, and both are checked; ADS reads the declared
1033
+ type and never the value, so no second boolean prop, closed list of names or
1034
+ always-rendered `hidden` wrapper is needed:
1035
+
1036
+ ```tsx
1037
+ function Tag({ label, icon, onRemove, footer }: { label: string; icon?: Glyph; onRemove?: () => void; footer?: ReactNode }) {
1038
+ return <span className={tag.root}>
1039
+ {icon && <span className="tag-icon" />}
1040
+ <span className="tag-label">{label}</span>
1041
+ {onRemove && <button type="button" className="tag-remove" onClick={onRemove}>Remove</button>}
1042
+ {footer !== undefined && <div className="tag-footer">{footer}</div>}
1043
+ </span>;
1044
+ }
1045
+ ```
1046
+
1047
+ | The prop's type | Tests that select | Variants |
1048
+ | --- | --- | --- |
1049
+ | 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 |
1050
+ | 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 |
1051
+ | a node, or any type that also admits text, a number or a boolean (`footer?: ReactNode`) | `prop !== undefined`, `prop === undefined` only | given, not given |
1052
+
1053
+ - A node that is given may still be falsy (`0`, `""`, `false`, `null`), so its
1054
+ truthiness, a comparison with `null` and `??` do not say whether it is given:
1055
+ `footer && <div>` is `choice/domain-not-finite`, and the message names the
1056
+ test to write (`!== undefined`). A given node that renders nothing (`null`,
1057
+ `false`) is the given variant.
1058
+ - A parameter default (`icon = defaultIcon`) makes the prop always given: there
1059
+ is one variant and no input. A required object or function selects nothing
1060
+ (`choice/domain-not-finite`), and an open `number` is never finite.
1061
+ - Inside the given variant the prop is an ordinary open value (`onClick={onRemove}`,
1062
+ `{footer}`). Its identity and its fields select nothing (`icon === other`,
1063
+ `icon.name === "x"`).
1064
+ - An element rendered in one variant only must be a part that may be absent
1065
+ (`required: false`).
1066
+ - Across owners, a placement that passes the prop selects the given variant and
1067
+ one that leaves it out the other; an argument that may be `undefined` (a
1068
+ conditional, a forwarded optional prop) or a spread selects both. `children`
1069
+ is content, so both variants are checked wherever the component is placed.
1070
+ - The variants count against the same bounds as every other choice
1071
+ (`choice/branch-limit`, `choice/construction-limit`).
806
1072
 
807
1073
  ## Artwork and text
808
1074
 
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