@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
@@ -0,0 +1,239 @@
1
+ # ADS 0.5.0 → 0.5.1
2
+
3
+ Confirm the target version in the installed package or registry. This guide also
4
+ accompanies a local release candidate and does not establish publication.
5
+
6
+ 0.5.1 adds design capabilities, two checks that can fail a design system that
7
+ passed under 0.5.0 (the text keyline and animation defined in script), and one
8
+ new review item (unreached source). One thing is removed: `ads init` no longer
9
+ installs a design system (see the last section). An existing project is not
10
+ affected by that. Run `ads check` after upgrading and repair what it reports
11
+ with the sections below.
12
+
13
+ ## A check that can newly fail: the text keyline
14
+
15
+ A padded container frame in a cell of a grid on a narrower gutter than `wide`
16
+ (a card in a `narrow` or `condensed` cell) must start its content on the grid's
17
+ text keyline: that gutter's start plus the frame's inline padding equals the
18
+ wide gutter's start, within the spatial profile's fine unit, in every theme and
19
+ brand.
20
+
21
+ | Finding | Where | Repair |
22
+ | --- | --- | --- |
23
+ | `source/keyline-missed` | The frame is in the grid's own owner | Set the frame's inline padding to the wide gutter's token |
24
+ | `component-keyline` | A public component placed in the cell, checked by its root frame | Give the component a frame for grid cells whose inline padding is the wide gutter's token, or place it in a `wide` cell |
25
+ | `component-keyline-unresolved` (review) | ADS cannot read the placed component's root | Confirm the alignment in the preview |
26
+
27
+ Borders are not counted. Controls, frames without inline padding and
28
+ `gutter: "none"` grids are exempt. Do not derive an inset from a border width,
29
+ and do not silence the finding by removing the padding from one side only. The
30
+ starter's `card-cell` profile (`--card-cell-inset: var(--grid-gutter-wide-start)`)
31
+ shows the repair.
32
+
33
+ ## A check that can newly fail: animation defined in script
34
+
35
+ `source/script-animation` (error) reports `element.animate(…)`,
36
+ `new Animation(…)`, `new KeyframeEffect(…)` and `setKeyframes(…)` in an owner or
37
+ a plain module. 0.5.0 let these pass. Move each into the recipe:
38
+
39
+ | The script did | Declare instead |
40
+ | --- | --- |
41
+ | Fade or move between two states | `paintTransition` (now with `opacity`), or `transition` with `when` effects on the part |
42
+ | Fade or move in on mount | `enter` |
43
+ | `input:checked + .box`, `input:focus-visible + .box`, a textarea's own `:hover` | a part `when` keyed `&:has(> .part:checked)` (also `:focus-visible`, `:hover`, `:disabled`, `:indeterminate`) |
44
+ | `font-weight` under a state (`&[aria-pressed="true"] { font-weight: 600 }`) | `when: { state: { text: "…-strong" } }` with a text profile that differs in weight or tracking only |
45
+ | `&::before { position: absolute; inset: -8% -6%; background: radial-gradient(…) }` (a glow) | a `layered` parent whose first part has `outset: { block, inline }` (spacing fields, not percentages) and a gradient surface |
46
+ | `grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr)` | a fluid grid with `columns: 2, weights: [0.85, 1.15]` |
47
+ | a border or rounded corners that change at a breakpoint | `frame: { rules, corners }` with `at: { <condition>: { frame: { rules, corners } } }`; the condition is a named one of the spatial profile and holds below its bound |
48
+ | a quiet icon colour designed for 3:1 | its own surface profile, selected only by visual parts or text-less controls; no declaration needed |
49
+ | `border-style: dashed` / `dotted` | `borderStyle` on the frame profile (and no `normalize.borderStyle` on a control that uses it) |
50
+ | a control whose label has another typography than its profile's | `text: "<profile>"` on the control recipe |
51
+ | two images, one hidden by a theme selector or a theme token (`[data-theme="dark"] .light { display: none }`) | two visual parts with `scheme: "light"` and `scheme: "dark"`, both `<img>` with `width` and `height`, the non-default one `loading="lazy"`; with the starter's `Image`, pass the second file as `sourceDark` |
52
+ | a boolean prop beside an optional callback (`removable` with `onRemove`), a closed list of names instead of an optional glyph, or an always-rendered wrapper with `hidden={footer === undefined}` | the optional callback, glyph or slot selects the markup directly: `{onRemove && <button>}`, `{icon && <span>}`, `{footer !== undefined && <div>}` (a node only with `!== undefined`); the element is a part with `required: false` |
53
+ | `resize: vertical` on a textarea | `normalize: { resize: "vertical" }` on the `<textarea>` part |
54
+ | A looping or one-shot keyframe sequence | a `sequence` profile played by a region part, a recipe root, a control's artwork or a standalone artwork |
55
+ | Animate to a size known at run time | a measured value with `motion` |
56
+
57
+ Keep in script only the control: set the owner state that starts it, and use
58
+ `element.getAnimations()` (`finished`, `cancel()`, `pause()`, `currentTime`) or
59
+ the animation events to wait for, cancel or seek it.
60
+
61
+ ## A check that can newly fail: rounded corners painted over
62
+
63
+ A frame with a radius and visible overflow does not clip what it holds.
64
+ `construction/corner-overpaint` (error, `ads check`) reports a first or last
65
+ part of a stack, or a layer, that paints a background over a rounded corner of
66
+ a root with no inset there. `corner-overpainted` (error, the render audit)
67
+ reports the same where the child is another component or an image.
68
+
69
+ Choose one repair, and do not add clipping everywhere:
70
+
71
+ | Repair | When |
72
+ | --- | --- |
73
+ | `overflow: "clip"` on the root | nothing inside needs to draw outside it (no menu, no focus outline at the edge) |
74
+ | padding in the root's frame profile | the content should sit inside the curve |
75
+ | `frame: { profile }` on the part, with the same radius | the part is the visible shape |
76
+ | `frame: { corners: [...] }` on the root | only some corners are meant to be round |
77
+
78
+ ## A new review item: unreached source
79
+
80
+ `source-unreached` (review, not blocking) reports every script in the design system that the
81
+ public entry does not reach: a component or helper that no exported owner
82
+ imports. ADS never checked or emitted such a file; it only looked like part of
83
+ the design system. For each one:
84
+
85
+ - export its owner from the public entry (and give it a scenario), or
86
+ - import it from an owner that is exported, or
87
+ - delete it. A component parked for later belongs on a branch.
88
+
89
+ Design declarations (`*.ads.ts`), scenarios, fixtures, tests and mocks are not
90
+ reported. During a migration, an owner that is not converted yet stays exported
91
+ so that it is still checked; do not park it outside the entry.
92
+
93
+ ## Surface effects now lower
94
+
95
+ In 0.5.0 a surface profile could state `blur` or `backdropBlur`, but an owner
96
+ that used such a surface failed emission (`unregistered-property`). Both now
97
+ lower, with three new fields. Replace hand-written `filter` and
98
+ `backdrop-filter` workarounds outside the design system with them:
99
+
100
+ | Need | Field (surface profile) | Token role |
101
+ | --- | --- | --- |
102
+ | Blur the element | `blur` | `blur` |
103
+ | Blur what is behind it (glass) | `backdropBlur` | `blur` |
104
+ | Make what is behind it more or less vivid | `backdropSaturate` | `saturation` (new: `tokens/<Group>/saturation.ads.css`, a percentage, `100%` unchanged) |
105
+ | A shadow that follows a transparent image or artwork | `shapeShadow`, on a `kind: "visual"` part | `shadow` |
106
+ | One shadow for a container and everything in it | `groupShadow`, on a root, control, grid or non-visual part | `shadow` |
107
+
108
+ - `mask-image` with a gradient becomes the surface field `mask` reading a
109
+ `gradient` token, on a visual part or on an element that scrolls.
110
+ - A `shapeShadow` or `groupShadow` token is one layer: two offsets, an optional
111
+ blur and a colour, with no spread, `inset`, `none` or second layer, in every
112
+ theme and brand. Give it its own token; keep layered tokens for `boxShadow`.
113
+ - A rectangular or rounded element keeps `boxShadow`. Use `shapeShadow` only
114
+ where the drawing is not its box.
115
+ - `paintTransition.channels` gains `filter` and `backdrop-filter`. An effect
116
+ that changes between an element's surfaces needs its channel.
117
+
118
+ ## Text case and text spacing
119
+
120
+ `textTransform: "uppercase" | "lowercase" | "capitalize"` on a text profile
121
+ replaces hand-written `text-transform`; keep the content in its natural case.
122
+ A text profile's `letterSpacing`, `wordSpacing`, `fontStretch`, font feature
123
+ and variation settings and text-decoration fields failed emission in 0.5.0 and
124
+ now lower: remove any workaround that set them outside the design system.
125
+
126
+ ## Long-form content
127
+
128
+ A component that styled its descendants (`& p { … }`, `& a { … }`) becomes a
129
+ prose owner: a recipe with `layout: "prose"`, a `rhythm` and one `elements`
130
+ entry per plain element the content uses, each naming existing text, surface
131
+ and frame profiles. The content does not change: it stays plain `<p>`, `<h2>`,
132
+ `<a>` inside the component, in JSX, Markdown output or CMS HTML. Remove classes
133
+ from content elements (only classless elements are styled) and wrap anything
134
+ that needs its own design in a component. `ads check` proves each colour on
135
+ each surface it can sit on; `ads-guard` accepts the markup once the design
136
+ system is emitted again (it reads `ads-prose.json`). Content that arrives as
137
+ an HTML string goes through a second component on the same recipe that takes
138
+ `html` and injects it; the application passes the string and sanitises it.
139
+
140
+ ## Insets per side and sizes per breakpoint
141
+
142
+ - `padding: 6px 12px 6px 9px` becomes a frame profile with `paddingBlock`,
143
+ `paddingInlineStart` and `paddingInlineEnd`. A control's frame (a chip, a
144
+ tag, a text input) takes them too, in place of `paddingInline`; its block
145
+ sides, where they differ, are `paddingBlockStart` and `paddingBlockEnd` in
146
+ place of `minimumBlockInset`.
147
+ - A drawing that is another size below a breakpoint becomes
148
+ `at: { "<condition>": { visual: "<profile>" } }` on its visual part, with the
149
+ condition declared in the spatial profile.
150
+
151
+ - `position: sticky; top: <bar height>` becomes `sticky: { edge: "block-start",
152
+ clear: "block-start" }` with the bar's height as the layer profile's
153
+ `clearBlockStart`; a bar at the very top is `sticky: { edge: "block-start" }`.
154
+ - A border with one thicker or differently painted side
155
+ (`border-inline-start: 4px solid accent` on a hairline card) becomes a side's
156
+ own width in the frame profile and a side's own paint in the surface profile.
157
+ - A list whose items have an optional element no longer needs a child component
158
+ per item: `items.map((item) => <li>…{item.sub && <span>…</span>}</li>)` is
159
+ accepted when `sub` is an optional text field and the span is a part with
160
+ `required: false`. (The destructured form, `({ text, sub }) => …`, already
161
+ worked in 0.5.0.) A component added only for this can be folded back.
162
+ - A surface with a fully transparent background reports the note
163
+ `surface-contrast-placed` instead of the review `surface-contrast-unresolved`.
164
+ - Fixed artwork inside a region no longer needs a second recipe or an icon
165
+ component: state `asset` and `visual` on the region's visual part.
166
+ - A decorative boxed child that became its own construction only to carry
167
+ padding, a border or a fixed size can be a part again:
168
+ `frame: { profile: "<frame profile>" }`.
169
+ - A full-width button is a recipe choice again: `extent: "container"` on the
170
+ control's recipe root. Restore a `block` (or similar) prop that selects that
171
+ recipe instead of changing each parent.
172
+
173
+ - `&:hover .child { transform: translateX(…) }` on a card becomes motion on
174
+ the region's part: `transition: ["translate"]` and
175
+ `when: { "&:hover": { translateInline: … } }`, with `translateBlock` and
176
+ `scale` for a lift or a zoom, each read from a motion profile. A text link
177
+ whose arrow moves is still a control, with its minimum size.
178
+
179
+ ## Entrances
180
+
181
+ An element that fades, sharpens or moves in on first render is declared with
182
+ `enter` on a recipe root or a region part. Move hand-written
183
+ `@starting-style`, entry keyframes and entry classes into it:
184
+
185
+ ```ts
186
+ enter: { from: { surface: "entering", translate: { slot: "motion", field: "distance" } }, motion: "enter-motion" }
187
+ ```
188
+
189
+ `from.surface` is a surface profile with only `opacity` and/or `blur`. The
190
+ movement (`translate` on the block axis, `scale` or `rotate`, at most one) is
191
+ read from the entrance's motion profile, which needs a duration, an easing and
192
+ `reduced: "static"`. Stagger parts with motion profiles that differ in `delay`.
193
+ Entrances that play when an element scrolls into view are not available yet:
194
+ keep that code where it is and do not hand-write it inside the design system.
195
+
196
+ ## Font fallback metrics
197
+
198
+ If the application hand-writes a `"<Family> Fallback"` `@font-face` with
199
+ `size-adjust` and metric overrides, delete it and declare the fallback:
200
+
201
+ ```ts
202
+ font({ family: "Inter", /* … */ fallback: "Arial" });
203
+ ```
204
+
205
+ ```css
206
+ :root { --font-ui: "Inter", "Inter Fallback", system-ui, sans-serif; }
207
+ ```
208
+
209
+ ADS measures each face file and emits the matched face. `fallback` is
210
+ `"Arial"`, `"Times New Roman"`, `"Courier New"`, or
211
+ `{ font: "Georgia", sizeAdjust: 104 }` for another system font. A font-family
212
+ token that names the family first without `"<Family> Fallback"` right after it
213
+ is `font-fallback` (error). A family without `fallback` is unchanged.
214
+
215
+ ## What else changes
216
+
217
+ - The starter gains a SplitView pattern, the `card-cell` profile, a
218
+ `saturation` sheet, a one-layer `--shadow-shape` and the `lifted-drawing`
219
+ surface. An existing project receives none of them automatically.
220
+ - Preview facts: a grid's `example` is replaced by `examples` and `omitted`.
221
+ - The platform feature inventory lists `backdrop-filter` and `filter-effects`.
222
+
223
+ ## `ads init` installs no design system
224
+
225
+ Through 0.5.0, `ads init` copied a starter design system into an empty
226
+ design-system folder. From 0.5.1 the package ships none: init writes
227
+ `ds.config.json`, the dependencies and scripts in `package.json`, a `tsconfig.json`
228
+ when the folder has none, and creates the design-system folder empty.
229
+
230
+ - **An existing project is unchanged.** Its design system is its own source;
231
+ nothing in it referred to the package's copy. A re-run of `ads init` keeps the
232
+ folder, as before.
233
+ - **A new project authors its design system.** Until `foundation.ads.ts` and the
234
+ public barrel `index.ts` exist, `ads check` fails and names what is missing
235
+ (`project-structure`). Start with the foundation and the role token sheets,
236
+ then profiles, then owners.
237
+ - **`InitResult.designSystem`** (the library's `initProject`): the outcome
238
+ `installed` (with `files`) is now `empty`; `kept` is unchanged.
239
+ - The published package no longer contains `dist/starters/`.
@@ -0,0 +1,185 @@
1
+ # ADS 0.5.1 → 0.5.2
2
+
3
+ No source change is required. Two fixes change emitted CSS for constructions
4
+ that were wrong before; the render audit now measures every owner state by
5
+ itself, which can report what was never measured before; the rest is new
6
+ language a project adopts when it needs it.
7
+
8
+ ## Emitted CSS that changes
9
+
10
+ - **A filling part in a minimum-height stack.** A part with `extent: "fill"`
11
+ in a `stack` whose frame states `minBlockSize` and nothing else about its
12
+ height (no `blockSize`, `maxBlockSize`, ratio or `overflow`) loses
13
+ `min-block-size: 0`. It now grows with its content and the stack grows
14
+ around it; before, tall content ran past the part and under the next one.
15
+ A page shell with a header, a filling main area and a footer is the usual
16
+ case. If a design relied on the old result (the main area never taller than
17
+ the free space), say how its content is confined: give the stack a fixed
18
+ `blockSize`, or `overflow` on the stack or the part.
19
+ - **A visual part with `frame: { profile }`.** The frame profile's
20
+ `inlineSize` and `blockSize` are now the part's box, with the drawing centred
21
+ at its visual profile's size. Before, the drawing's size replaced them. A
22
+ part that was written with a frame size and looked right only because the
23
+ size was ignored now takes that size: remove the size from the frame
24
+ profile if the drawing's own size is what you want.
25
+
26
+ Run `ads emit` and review the rendered owners that use either construction.
27
+
28
+ ## Checks that now accept what they refused
29
+
30
+ - **An optional glyph tested for being given** (`icon !== undefined && …`,
31
+ `icon && …`, `icon ? a : b`, `!icon`) is accepted, as the language reference
32
+ always said. A glyph set or a name union written only to get past
33
+ `source/glyph-reference-read` can go back to `icon?: Glyph`.
34
+ - **A recipe's part-level setters type under TypeScript 5.**
35
+ `measured.props({ focus: [x, y] })` and `({ intrinsic: [width, height] })`
36
+ on a part were typed as a number there. A cast or a `@ts-expect-error` added
37
+ for it can be removed.
38
+ - **Any artwork in a control.** `construction/paint-unsupported` is retired:
39
+ a control's visual part draws slot artwork (one paint must reach 3:1 on the
40
+ control's own background, `construction/artwork-paint-contrast-insufficient`)
41
+ and intrinsic artwork (a product's logo). A region built only to hold such a
42
+ drawing can be a control again.
43
+ - **Several visual parts in one region.** `construction/parts-visual-repeated`
44
+ is retired. A small owner made only to hold a second drawing can be folded
45
+ back. A control and standalone artwork still have one visual part.
46
+ - **A row with optional slots.** An owner that reached `choice/branch-limit`
47
+ because of optional slots (`lead !== undefined && …`, an indent spacer) is
48
+ analysed within the limit: a slot's presence no longer multiplies the row's
49
+ class analysis. Props merged or moved only to get under the limit can be
50
+ split again.
51
+ - **A large variant matrix.** An owner refused with `choice/construction-limit`
52
+ (256) is checked in full up to 4096 constructions, and its emitted module
53
+ stays small: independent props are emitted as one lookup each. Variant
54
+ owners split only to stay under the old limit can be joined again.
55
+ - **A control without text.** A control's text part is optional when it has
56
+ artwork or a decorative box; it is then named on its root
57
+ (`source/control-name-missing` otherwise).
58
+
59
+ Scripts or dashboards that match error codes should drop the two retired codes.
60
+
61
+ ## Messages that say more
62
+
63
+ - `choice/branch-limit` names the limit and every value the selection branched
64
+ on, with how many values each takes: merge or move the props it lists.
65
+ - `surface-contrast` names the `state: "inactive"` declaration in its repair:
66
+ a surface only a disabled state uses (a disabled field's grey fill) declares
67
+ it and has no contrast minimum. A fill removed to satisfy the check can be
68
+ restored that way.
69
+ - `construction/corner-overpaint` names the owner state whose frames open the
70
+ corner, when it is a state's.
71
+
72
+ ## Checks that now report what was silently ignored
73
+
74
+ - `check/typescript-config-invalid` (error): the project's `tsconfig.json`, or a
75
+ configuration it extends, does not parse, has an option TypeScript rejects,
76
+ extends a file that does not exist, or has a circular `extends` chain or one
77
+ longer than 64 levels. ADS used to fall back to other compiler
78
+ options without saying so. Fix the configuration the finding names; `tsc
79
+ --showConfig` shows the same problem.
80
+ - A large variant matrix no longer reports `component-contrast-unresolved` for
81
+ its texts: their cross-owner contrast is now proven, and a real failure is a
82
+ `component-contrast` error. Treat a new one as a contrast to fix.
83
+
84
+ ## The render audit measures owner states by itself
85
+
86
+ Every state a recipe declares (each `when` entry of a root or a part) is now
87
+ switched on and measured on each scenario that renders the owner, with no
88
+ scenario state written for it. Run `ads audit` (or `ads validate`) after
89
+ upgrading:
90
+
91
+ - **New findings are possible** on owners whose states were never shown by a
92
+ scenario: an overflow, a contrast or a non-text contrast failure that only
93
+ appears in that state. They are real: fix them as you would any audit
94
+ finding. Each names the state (`state &[data-user-invalid] of
95
+ components/Forms/TextField/TextField.tsx`).
96
+ - **A new review item**, `render-audit-construction-unrendered`, lists per
97
+ owner the variants with states that no scenario renders. Render them in a
98
+ scenario; nothing is blocked meanwhile.
99
+ - **States the audit cannot set** (another pseudo-class, a sibling
100
+ combinator) are `render-audit-skipped` info items, never silently passed.
101
+ - **The widths a condition flips at** are rendered too (one pixel each side of
102
+ every named condition and breakpoint), so overflow just before a layout
103
+ changes now shows.
104
+ - **Runtime paint values and glyph set members** are drawn in turn and
105
+ measured, so a series colour or a status glyph that fails only where it is
106
+ used now shows.
107
+ - **`render-audit-state-forced`** (review): the audit forced an attribute state
108
+ of an owner whose markup also changes with that prop. Add a scenario that
109
+ renders the owner in that state; the item clears.
110
+ - **`render-audit-state-derivable`** (info): a scenario state that the audit
111
+ derives anyway. It marks the candidates for removal below.
112
+ - **`review/hover-geometry-shift`**: an in-flow element that changes geometry
113
+ under `:hover`. Keep it when the movement is wanted.
114
+
115
+ ### Scenario states you can remove
116
+
117
+ A scenario state, or a whole specimen, that exists only so the audit measures
118
+ a state is now redundant when all of these hold:
119
+
120
+ 1. the owner is rendered by some other scenario or specimen anyway;
121
+ 2. the state is one the recipe declares (an attribute such as
122
+ `[data-expanded="true"]`, `[aria-checked="true"]`, `[data-user-invalid]`,
123
+ or `:checked` / `:disabled` / `:indeterminate` on the element or a direct
124
+ part), not a `:hover` or focus state, which the interaction pass covers;
125
+ 3. the component renders the same markup in that state, only styled
126
+ differently. A state in which the component mounts more (a counter shown
127
+ while open, an error message) stays: forcing the attribute shows the CSS,
128
+ not what the script renders;
129
+ 4. nobody needs to see it in the showcase. A specimen is also documentation:
130
+ keep the ones people look at.
131
+
132
+ The audit names them: each `render-audit-state-derivable` info item is a
133
+ scenario state that meets 1 to 3. Remove only those (and only if 4 holds), then
134
+ run the audit: the state must still appear in its findings or in the `Covered:`
135
+ count. ADS never deletes or rewrites a scenario itself.
136
+
137
+ ### Browser tests you can remove
138
+
139
+ The same applies to a project's own registered browser specs that only measure
140
+ what ADS now proves itself. ADS has no finding that names them, so review them
141
+ by hand. A spec is redundant when it asserts nothing but one of these, for a
142
+ state the recipe declares:
143
+
144
+ - **checked statically by `ads check`, in every state a frame takes:** the
145
+ target size, text containment, the text keyline, the fit in a grid cell,
146
+ corner overpaint, the hit area staying the same and the gap to neighbouring
147
+ targets;
148
+ - **measured by the render audit in each declared state:** overflow, text
149
+ contrast and non-text contrast, at the widths each condition flips at.
150
+
151
+ Keep a spec that drives script: it opens, types, chooses, focuses, announces
152
+ or mounts something, because neither the audit nor the check runs the
153
+ component's behaviour. Keep one that measures something these do not, such as
154
+ an exact position or an animation's end state. Remove a spec together with its
155
+ registration, then run `ads validate` (the full run): nothing else may lose its
156
+ evidence.
157
+
158
+ ## New language
159
+
160
+ Each is optional; nothing existing changes meaning.
161
+
162
+ | Need | Write |
163
+ | --- | --- |
164
+ | A glyph that turns while its control is open or pressed | `rotate: { slot: "motion", field: "angle" }` in the visual part's `when`, `"rotate"` in its `transition`, and `angle` in the motion profile |
165
+ | A picture dimmed in the dark theme | a `brightness.ads.css` token (`100%` light, lower dark), a surface profile with `brightness`, on the visual part |
166
+ | A backdrop that extends by a share of its box | a `box-share.ads.css` token, the spacing profile's `outsetBlock` / `outsetInline`, bound by the part's `outset` |
167
+ | The focus ring on a drawn checkbox box | `focus: { of: "<the input's part>" }` on the box part |
168
+ | A section or heading that lands clear of a sticky header when jumped to | `anchorClear` on the root, part or prose block, from the layer profile's `clearBlockStart` or the spacing profile's `anchorGap` |
169
+ | A pile that spreads on hover, items that appear in a row, a card that grows while open | `overlap`, `collapsed`, and `frame` / `spacing` in `when`, with `geometryTransition`; remove translate tricks and script-set sizes made for it |
170
+ | An Icon that needs its own quiet colour | `surface: "<colour-only surface>"` on the artwork recipe's root; remove the colour from slots that hold it |
171
+ | A switch built as a region with a target-size frame | a control with a decorative box for the knob (a part without a `kind`, `frame: { profile }`), moved by `translateInline` under `&[aria-checked="true"]` |
172
+ | Two or more drawings in one owner (a lead mark and an end mark) | declare each as its own visual part of the region and bind each by name; the small owners made only to hold a second drawing can be folded back |
173
+ | A glyph inside a boxed part of the same recipe | declare the visual part inside that part and read it by name (`recipe.parts.<name>`, `recipe.assets.<name>.source`) |
174
+ | A product logo or a two-paint drawing inside a button | bind the `intrinsic` or `slots` asset to the control's visual part; a region made only to hold it can go back to being a control |
175
+ | A native progress bar in the design's colours | `pseudo: { progressValue: { surface } }` on the `<progress>` part; its own surface is the track |
176
+ | Space around components placed among prose blocks | `elements.component: { spaceBefore, spaceAfter }` |
177
+ | A heading closer to its text than paragraphs are to each other | `spaceAfter` on the heading's prose element |
178
+ | Bold list markers; a marker shape per depth | `markerText` on `item`; `markers` on `list` |
179
+ | A button label centred when it wraps | `textAlign: "center"` on the control's text part |
180
+ | A target that must stay the same size in every state | nothing: a state frame with another hit area is refused (`hit-area`), and targets in an overlapping arrangement are refused (`targets-overlap`) |
181
+
182
+ A replaced hand-made workaround should be removed in the same change: a
183
+ checkbox that swapped the box's surface on focus instead of showing the focus
184
+ indicator, a glow with fixed outsets per size, a second owner made only to
185
+ turn an icon.
@@ -35,7 +35,14 @@ selection may instead be written in the profile reference object
35
35
 
36
36
  Selections and part presence are inferred from ordinary TypeScript: finite literal
37
37
  props and defaults, immutable local records, conditionals and `.map` over a
38
- literal array (or a local const array of records). Type the selecting prop as a
38
+ literal array (or a local const array of records), and the typed fields of a
39
+ mapped data item (a literal union or boolean, or an optional text by its
40
+ presence). An optional prop typed as an object, a function or a node selects by
41
+ whether it is given (`onRemove && <button>`, `icon ? … : …`,
42
+ `footer !== undefined && <div>`): two variants, both checked, so do not add a
43
+ boolean prop beside a callback or render a `hidden` wrapper for an optional
44
+ part. Test a node only with `!== undefined`: given, it may still be falsy.
45
+ Otherwise type the selecting prop as a
39
46
  literal union or const record key (`domain-not-finite`). Styled markup is written
40
47
  in the owner's JSX or a `.map` callback (`helper-markup`), and a `className` is
41
48
  built only from recipe outputs, at most one placement and declared asset bindings
@@ -42,9 +42,9 @@ npm run emit:ds # ads emit
42
42
 
43
43
  `--framework react` or `--framework preact` is required on the first init and
44
44
  saved in `ds.config.json`; later runs can omit it, and a different value is
45
- refused (exit 2) before anything is written. A Preact project gets the native
46
- Preact starter: the same design system, its owners on Preact's own JSX runtime
47
- and `preact/hooks`, with no `preact/compat`.
45
+ refused (exit 2) before anything is written. A Preact project's owners use
46
+ Preact's own JSX runtime and `preact/hooks`, with no `preact/compat`. Init
47
+ installs no design system: it leaves the design-system folder empty to author in.
48
48
 
49
49
  Use the confirmed package name/version if different. For a Bun project, use
50
50
  `bunx --bun @reqvire-org/ads init --framework react` and `bun install`. Bun 1.4.1+
@@ -56,7 +56,7 @@ and portable compiler/behavior commands.
56
56
 
57
57
  `init` accepts no directory argument and requires an existing `package.json`. It:
58
58
 
59
- - copies the starter design system shipped in the same package version into an
59
+ - copies the example design system design system shipped in the same package version into an
60
60
  empty or absent design-system folder; a folder that already has content is kept
61
61
  when the project has a `ds.config.json`, and refused when it has none;
62
62
  - writes `ds.config.json` with `schemaVersion`, `framework`, `dsDir` and the
@@ -55,13 +55,23 @@ An owner styles only its own elements, and only through its recipe:
55
55
  (`part-selector-unresolved`); one element carries one part or cell marker.
56
56
  - A parent never classes another owner's interior (`foreign-interior`); it changes
57
57
  a child through the child's public props.
58
+ - Every script in the design system should be reached from the public entry
59
+ (`source-unreached`, a review item): export a new owner from the barrel or
60
+ import it from an exported owner. A file nothing reaches is checked by
61
+ nothing.
58
62
  - Design evidence comes from the owner's source or the design system's own modules
59
63
  (`evidence-not-local`), and choices come from finite sets analysis can enumerate:
60
64
  literal unions, const records, conditionals and `.map` over literal arrays
61
- (`domain-not-finite`). Application text selects markup by presence only
62
- (`text-content-read`).
63
- - Artwork is painted only through the channels its asset declares
64
- (`paint-unsupported`); see `ads://guides/branding`.
65
+ (`domain-not-finite`). A `.map` over data reads each item's typed fields: a
66
+ literal-union or boolean field is a choice, an optional text field decides
67
+ presence (`item.sub && <span>`); no child component is needed for that. Application text selects markup by presence only
68
+ (`text-content-read`). An optional object, callback or node prop selects by whether
69
+ it is given, a node only through `!== undefined` (`domain-not-finite` otherwise).
70
+ - Artwork is painted as its asset declares, in a control as anywhere: by the
71
+ text colour (`foreground`), by its paint slots, or in its own colours
72
+ (`intrinsic`, a product's logo). In a control, slot artwork needs one paint at
73
+ 3:1 on the control's background (`artwork-paint-contrast-insufficient`); see
74
+ `ads://guides/branding`.
65
75
 
66
76
  A guarded `className` prop for placement is a public API decision of the owner;
67
77
  it never lets a caller override the recipe's interior.
@@ -131,7 +131,7 @@ By role: `font-size` in `rem`; `line-height` unitless; `spacing`, `content-gap`,
131
131
  `frame-inset` and `control-min-size` in `rem` when they hold or separate text
132
132
  and `px` when they should not move; `visual-size` in `rem` for icons and `px`
133
133
  for pictures; `border-width`, `focus-offset`, `blur` and `radius` in `px` (`%`
134
- for a pill); breakpoints and condition bounds in `rem` (`66rem`, not `1056px`: a query
134
+ for a pill); `saturation` and `brightness` in `%` (`100%` unchanged); `box-share` in `%` of the box (a backdrop's outset that grows with it); breakpoints and condition bounds in `rem` (`66rem`, not `1056px`: a query
135
135
  bound follows the reader's text size). Authors never write
136
136
  `lh`, container units or `fr`: ADS emits `lh`, and grids express the others.
137
137
  The full tables are in the token-role reference (`docs/TOKEN-ROLES.md`, *Units*).
@@ -264,13 +264,13 @@ imports it first. Each owner sheet carries its tokens' root rules and, with
264
264
 
265
265
  A renderer that needs colors as values reads them from the generated palette,
266
266
  never from the page per item. A design system that declares `palette: true` in
267
- `foundation()` (the starter does) keeps `<dsDir>/palette.generated.ts`: every
267
+ `foundation()` (the example design system does) keeps `<dsDir>/palette.generated.ts`: every
268
268
  paint-role token resolved for every declared context (each theme of the default
269
269
  brand, then `<brand>/<theme>`). `ads check` reports it missing, stale or present
270
270
  without the declaration (`palette-generated`); after declaring it or editing
271
271
  colour tokens or the declared contexts directly, run `ads sync`, which creates or
272
272
  regenerates it. A draft accepted through MCP does the same in the candidate. The
273
- starter's Palette controller reads it:
273
+ example design system's Palette controller reads it:
274
274
 
275
275
  ```ts
276
276
  import { paletteFor, observePalette } from "@ds";
@@ -34,9 +34,9 @@ browser's interaction flag counts as well.
34
34
  <a id="bridge"></a>
35
35
  ## The form-field bridge
36
36
 
37
- The starter ships a shared controller, `controllers/FormField`: framework-neutral
37
+ The example design system ships a shared controller, `controllers/FormField`: framework-neutral
38
38
  logic (`FormField.ts`) and the hooks a component binds it with
39
- (`useFormField.ts`, written for React; the Preact starter gets the same hooks
39
+ (`useFormField.ts`, written for React; a Preact project takes the same hooks
40
40
  from `preact/hooks`). It renders nothing and writes no styling.
41
41
 
42
42
  - `bindFormField(control, root, options)` listens to `input`, `change`, `blur`,
@@ -137,7 +137,7 @@ four-sided border:
137
137
  a quiet fill and `frame: { kind: "control", rules: ["block-end"] }` on the
138
138
  control part. The frame profile's border width is drawn on that side only,
139
139
  painted by the part's surface `borderColor`, which must reach 3:1 in every theme
140
- and brand (the starter uses its control outline colour). The other sides keep
140
+ and brand (the example design system uses its control outline colour). The other sides keep
141
141
  the border's space as inset, so the field's size and text do not move.
142
142
  - **A fill at 3:1** against the page, with any border or none.
143
143
  - Already exempt: disabled fields; buttons, links and tabs with text or an icon
@@ -163,7 +163,7 @@ The focus outline still needs 3:1 against the surroundings (`a11y-focus`).
163
163
  - `inputMode` (the virtual keyboard: `numeric` for codes) and `enterKeyHint`
164
164
  (`next`, `send`, `done`).
165
165
  - Identifiers (email, tel, url, password) take no spelling, correction or
166
- capitals: the starter's TextField defaults `spellCheck={false}`,
166
+ capitals: the example design system's TextField defaults `spellCheck={false}`,
167
167
  `autoCorrect="off"` and `autoCapitalize="none"` for those types; each can be
168
168
  set explicitly.
169
169
 
@@ -173,8 +173,8 @@ states no `autoComplete`: an `<input>` or `<textarea>`, or a public component
173
173
  whose props take `autoComplete` (`<TextField name="email" …>`). The suggestion
174
174
  is a heuristic; set the right token, or `off`, or dismiss the note.
175
175
 
176
- <a id="starter"></a>
177
- ## The starter's TextField
176
+ <a id="example"></a>
177
+ ## The example design system's TextField
178
178
 
179
179
  `TextField` takes `type`, `autoComplete`, `inputMode`, `enterKeyHint`,
180
180
  `spellCheck`, `autoCorrect`, `autoCapitalize`, `pattern`, `minLength`,