@reqvire-org/ads 0.3.53 → 0.4.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 (401) hide show
  1. package/README.md +114 -94
  2. package/dist/a11y.mjs +108 -29
  3. package/dist/analysis/compiler-options.mjs +13 -0
  4. package/dist/analysis/context.mjs +46 -0
  5. package/dist/analysis/file-tree.mjs +52 -0
  6. package/dist/analysis/helpers.mjs +140 -0
  7. package/dist/analysis/impact.mjs +20 -0
  8. package/dist/analysis/inputs.mjs +15 -0
  9. package/dist/analysis/native-adapter.mjs +180 -0
  10. package/dist/analysis/native-project.mjs +323 -0
  11. package/dist/analysis/queries.mjs +133 -0
  12. package/dist/analysis/service.mjs +146 -0
  13. package/dist/analysis/standalone.mjs +57 -0
  14. package/dist/analysis/syntax.mjs +164 -0
  15. package/dist/analysis/worker.mjs +182 -0
  16. package/dist/assets.mjs +6 -6
  17. package/dist/atomic-composition.mjs +191 -70
  18. package/dist/atomic-trace.mjs +120 -50
  19. package/dist/behavior-libraries.mjs +106 -37
  20. package/dist/behaviors.mjs +222 -79
  21. package/dist/boundaries.mjs +137 -40
  22. package/dist/brand-assets.mjs +219 -47
  23. package/dist/brands.mjs +86 -27
  24. package/dist/bun-compiler.mjs +34 -13
  25. package/dist/bun-worker.mjs +7 -5
  26. package/dist/capture/worker.mjs +15 -4
  27. package/dist/capture-store.mjs +4 -2
  28. package/dist/capture.mjs +17 -14
  29. package/dist/check-service.mjs +66 -0
  30. package/dist/check.mjs +756 -196
  31. package/dist/cli.mjs +203 -100
  32. package/dist/color-values.mjs +21 -21
  33. package/dist/component-contrast.mjs +2 -2
  34. package/dist/config.mjs +308 -163
  35. package/dist/construction-styles.cjs +10 -0
  36. package/dist/contracts.d.mts +9 -0
  37. package/dist/control-padding.mjs +45 -25
  38. package/dist/css-values.mjs +3 -2
  39. package/dist/declarative-flow.mjs +209 -109
  40. package/dist/design-values.mjs +136 -51
  41. package/dist/development-runtime.mjs +4 -6
  42. package/dist/draft-boundary.mjs +11 -6
  43. package/dist/evidence.mjs +1 -1
  44. package/dist/finding-rules.mjs +7 -5
  45. package/dist/font-rules.mjs +2 -2
  46. package/dist/fonts-generated.mjs +4 -2
  47. package/dist/foundation-views.mjs +238 -0
  48. package/dist/foundation.mjs +63 -39
  49. package/dist/generated-entries.mjs +198 -0
  50. package/dist/icons.mjs +80 -33
  51. package/dist/image-attributes.mjs +109 -36
  52. package/dist/image-size.mjs +1 -1
  53. package/dist/index.mjs +0 -2
  54. package/dist/init.mjs +128 -68
  55. package/dist/investigations.mjs +2 -2
  56. package/dist/layers.mjs +300 -127
  57. package/dist/layout-widths.mjs +180 -85
  58. package/dist/linaria/preserve-values.cjs +7 -0
  59. package/dist/linaria/spatial-inputs.cjs +56 -0
  60. package/dist/lockup-composition.mjs +44 -0
  61. package/dist/lockup-model.cjs +64 -0
  62. package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
  63. package/dist/mcp/apps.mjs +4 -30
  64. package/dist/mcp/behavior-pages.mjs +72 -24
  65. package/dist/mcp/build-status.mjs +257 -64
  66. package/dist/mcp/catalog.mjs +91 -26
  67. package/dist/mcp/context.mjs +17 -18
  68. package/dist/mcp/draft-discovery.mjs +44 -21
  69. package/dist/mcp/drafts.mjs +978 -343
  70. package/dist/mcp/execution-coordinator.mjs +417 -167
  71. package/dist/mcp/execution-results.mjs +7 -7
  72. package/dist/mcp/mutations.mjs +701 -219
  73. package/dist/mcp/preview-watch.mjs +465 -161
  74. package/dist/mcp/preview-widget.bundle.js +44 -50
  75. package/dist/mcp/prompts.mjs +6 -6
  76. package/dist/mcp/result-pages.mjs +1 -1
  77. package/dist/mcp/sandbox-host.mjs +1 -1
  78. package/dist/mcp/server.mjs +2436 -570
  79. package/dist/mcp/showcase-host.mjs +176 -39
  80. package/dist/mcp/skills.mjs +1 -1
  81. package/dist/mcp/text-diff.mjs +29 -10
  82. package/dist/paint-contracts.mjs +174 -81
  83. package/dist/palette-generated.mjs +2 -2
  84. package/dist/preview-bun.mjs +493 -187
  85. package/dist/preview-failure.mjs +1 -1
  86. package/dist/preview-files.mjs +13 -13
  87. package/dist/preview-imports.mjs +104 -55
  88. package/dist/preview-inputs.mjs +2 -2
  89. package/dist/preview-requests.mjs +24 -0
  90. package/dist/preview-resources.mjs +288 -147
  91. package/dist/preview-scope.mjs +5 -4
  92. package/dist/program-cache.mjs +10 -0
  93. package/dist/project-documents.mjs +1 -1
  94. package/dist/public-api.mjs +70 -31
  95. package/dist/public-props.mjs +39 -22
  96. package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
  97. package/dist/{browser-audit → render-audit}/image-shape.mjs +2 -2
  98. package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
  99. package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
  100. package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
  101. package/dist/{browser-audit → render-audit}/worker.mjs +86 -30
  102. package/dist/render-audit.mjs +828 -0
  103. package/dist/render-color-probe.mjs +96 -42
  104. package/dist/resource-limits.mjs +229 -97
  105. package/dist/runtime-contracts.mjs +467 -185
  106. package/dist/scenario-groups.mjs +22 -10
  107. package/dist/scenario-inspector.mjs +6 -43
  108. package/dist/scenario-program.mjs +8 -25
  109. package/dist/scenario-registry.mjs +72 -30
  110. package/dist/scenario-selectors.mjs +161 -64
  111. package/dist/scenario-slots.mjs +149 -56
  112. package/dist/scenario-trace.mjs +215 -109
  113. package/dist/scenarios-compiler.mjs +768 -359
  114. package/dist/scenarios-vite.d.mts +1 -3
  115. package/dist/scenarios-vite.mjs +2 -81
  116. package/dist/scenarios.mjs +424 -159
  117. package/dist/selector-match.mjs +2 -2
  118. package/dist/showcase/client.bundle.js +57 -56
  119. package/dist/showcase/draft-navigation.js +18 -0
  120. package/dist/showcase/favicon.ico +0 -0
  121. package/dist/showcase/favicon.svg +1 -0
  122. package/dist/showcase/foundation-view.css +55 -0
  123. package/dist/showcase/foundation-view.mjs +252 -0
  124. package/dist/showcase/guide-controls.ads.review.mjs +32 -0
  125. package/dist/showcase/icons.js +1 -145
  126. package/dist/showcase/index.html +3 -31
  127. package/dist/showcase/preview-frame.ads.review.css +46 -0
  128. package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
  129. package/dist/showcase/preview-frame.ads.review.mjs +22 -0
  130. package/dist/showcase/preview-state.js +0 -9
  131. package/dist/showcase/refresh-scheduler.js +23 -0
  132. package/dist/showcase/style.css +5 -47
  133. package/dist/showcase/ui/ui.css +1353 -0
  134. package/dist/showcase/ui/ui.js +1062 -0
  135. package/dist/showcase-coverage.mjs +58 -37
  136. package/dist/skills/README.md +24 -23
  137. package/dist/skills/ads-designer/README.md +8 -2
  138. package/dist/skills/ads-designer/SKILL.md +152 -144
  139. package/dist/skills/ads-designer/references/accessibility.md +14 -11
  140. package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
  141. package/dist/skills/ads-designer/references/behaviors.md +34 -30
  142. package/dist/skills/ads-designer/references/branding.md +98 -10
  143. package/dist/skills/ads-designer/references/captures.md +31 -31
  144. package/dist/skills/ads-designer/references/cli.md +21 -20
  145. package/dist/skills/ads-designer/references/contracts.md +63 -29
  146. package/dist/skills/ads-designer/references/design-data.md +49 -52
  147. package/dist/skills/ads-designer/references/drafts.md +71 -52
  148. package/dist/skills/ads-designer/references/evidence.md +1 -5
  149. package/dist/skills/ads-designer/references/guarded-editing.md +58 -51
  150. package/dist/skills/ads-designer/references/layers.md +1 -1
  151. package/dist/skills/ads-designer/references/layout.md +347 -0
  152. package/dist/skills/ads-designer/references/mobile.md +2 -1
  153. package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
  154. package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
  155. package/dist/skills/ads-designer/references/performance.md +3 -2
  156. package/dist/skills/ads-designer/references/review.md +42 -38
  157. package/dist/skills/ads-designer/references/runtimes.md +33 -30
  158. package/dist/skills/ads-designer/references/scenarios.md +17 -19
  159. package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
  160. package/dist/skills/ads-designer/references/stress-test.md +68 -0
  161. package/dist/skills/ads-designer/references/validation.md +83 -71
  162. package/dist/skills/ads-designer/references/workflows.md +19 -37
  163. package/dist/skills/ads-import/SKILL.md +43 -328
  164. package/dist/skills/ads-import/references/atomic-styles.md +4 -4
  165. package/dist/skills/ads-import/references/behaviors.md +34 -30
  166. package/dist/skills/ads-import/references/branding.md +5 -5
  167. package/dist/skills/ads-import/references/captures.md +31 -31
  168. package/dist/skills/ads-import/references/cli.md +21 -20
  169. package/dist/skills/ads-import/references/compatibility.md +1 -1
  170. package/dist/skills/ads-import/references/contracts.md +63 -29
  171. package/dist/skills/ads-import/references/design-data.md +49 -52
  172. package/dist/skills/ads-import/references/drafts.md +71 -52
  173. package/dist/skills/ads-import/references/evidence.md +1 -5
  174. package/dist/skills/ads-import/references/guarded-editing.md +58 -51
  175. package/dist/skills/ads-import/references/implementation.md +2 -1
  176. package/dist/skills/ads-import/references/layers.md +1 -1
  177. package/dist/skills/ads-import/references/layout.md +347 -0
  178. package/dist/skills/ads-import/references/review.md +42 -38
  179. package/dist/skills/ads-import/references/runtimes.md +33 -30
  180. package/dist/skills/ads-import/references/scenarios.md +17 -19
  181. package/dist/skills/ads-import/references/tokens.md +3 -3
  182. package/dist/skills/ads-import/references/validation.md +83 -71
  183. package/dist/skills/ads-import/references/workflows.md +19 -37
  184. package/dist/skills/ads-migrate/SKILL.md +56 -0
  185. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
  186. package/dist/skills/ads-port/SKILL.md +54 -346
  187. package/dist/skills/ads-port/references/atomic-styles.md +4 -4
  188. package/dist/skills/ads-port/references/behaviors.md +34 -30
  189. package/dist/skills/ads-port/references/captures.md +31 -31
  190. package/dist/skills/ads-port/references/cli.md +21 -20
  191. package/dist/skills/ads-port/references/contracts.md +63 -29
  192. package/dist/skills/ads-port/references/design-data.md +49 -52
  193. package/dist/skills/ads-port/references/drafts.md +71 -52
  194. package/dist/skills/ads-port/references/evidence.md +1 -5
  195. package/dist/skills/ads-port/references/guarded-editing.md +58 -51
  196. package/dist/skills/ads-port/references/layers.md +1 -1
  197. package/dist/skills/ads-port/references/layout.md +347 -0
  198. package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
  199. package/dist/skills/ads-port/references/native-implementation.md +8 -7
  200. package/dist/skills/ads-port/references/review.md +42 -38
  201. package/dist/skills/ads-port/references/runtimes.md +33 -30
  202. package/dist/skills/ads-port/references/scenarios.md +17 -19
  203. package/dist/skills/ads-port/references/validation.md +83 -71
  204. package/dist/skills/ads-port/references/workflows.md +19 -37
  205. package/dist/source-symbols.mjs +1 -8
  206. package/dist/source-values.mjs +266 -128
  207. package/dist/spatial-composition.mjs +322 -0
  208. package/dist/spatial-contexts.cjs +56 -0
  209. package/dist/spatial-css.cjs +351 -0
  210. package/dist/spatial-inputs.cjs +80 -0
  211. package/dist/spatial-metadata.mjs +18 -0
  212. package/dist/spatial-model.cjs +322 -0
  213. package/dist/spatial.mjs +21 -0
  214. package/dist/stage-timing.cjs +20 -0
  215. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
  216. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
  217. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  218. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  219. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
  220. package/dist/starters/preact/ds.config.json +24 -19
  221. package/dist/starters/preact/package.json +4 -8
  222. package/dist/starters/preact/tsconfig.json +4 -5
  223. package/dist/starters/preact/vite.config.ts +3 -3
  224. package/dist/starters/react/ADS.md +42 -47
  225. package/dist/starters/react/README.md +54 -52
  226. package/dist/starters/react/design-system/components/Actions/Button/Button.ads.exports.ts +1 -0
  227. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.ads.exports.ts +1 -0
  228. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
  229. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
  230. package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.exports.ts +1 -0
  231. package/dist/starters/react/design-system/components/Content/Image/Image.ads.exports.ts +1 -0
  232. package/dist/starters/react/design-system/components/Content/Logo/Logo.ads.exports.ts +1 -0
  233. package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.exports.ts +1 -0
  234. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
  235. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
  236. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
  237. package/dist/starters/react/design-system/controllers/Palette/Palette.ads.exports.ts +1 -0
  238. package/dist/starters/react/design-system/index.ts +5 -8
  239. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
  240. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
  241. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
  242. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
  243. package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
  244. package/dist/starters/react/design-system/patterns/Search/SearchBar/SearchBar.ads.exports.ts +1 -0
  245. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
  246. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
  247. package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
  248. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
  249. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
  250. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
  251. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
  252. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -0
  253. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  254. package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
  255. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
  256. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
  257. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -0
  258. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  259. package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
  260. package/dist/starters/react/design-system/styles.css +1 -0
  261. package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
  262. package/dist/starters/react/design-system/tokens/colors.css +1 -1
  263. package/dist/starters/react/design-system/tokens/spacing.css +22 -32
  264. package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
  265. package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
  266. package/dist/starters/react/ds.config.json +24 -19
  267. package/dist/starters/react/package.json +2 -6
  268. package/dist/starters/react/tsconfig.json +2 -3
  269. package/dist/starters/react/vite.config.ts +3 -3
  270. package/dist/style-boundaries.mjs +73 -27
  271. package/dist/task-cache.mjs +173 -72
  272. package/dist/task-worker.mjs +22 -11
  273. package/dist/test-boundaries.mjs +133 -60
  274. package/dist/themes-generated.mjs +1 -1
  275. package/dist/themes-watch.mjs +60 -19
  276. package/dist/themes.mjs +176 -73
  277. package/dist/token-export.mjs +39 -14
  278. package/dist/token-policy.mjs +6 -3
  279. package/dist/token-quality.mjs +6 -6
  280. package/dist/token-samples.mjs +16 -5
  281. package/dist/tokens.mjs +71 -26
  282. package/dist/ui-framework.mjs +16 -14
  283. package/dist/unit-contracts.mjs +270 -89
  284. package/dist/units.mjs +215 -180
  285. package/dist/usage.mjs +138 -38
  286. package/dist/validation-checks.mjs +121 -38
  287. package/dist/validation-inputs.mjs +187 -78
  288. package/dist/validation.mjs +268 -102
  289. package/dist/verification/browser.mjs +27 -5
  290. package/dist/verification.mjs +711 -187
  291. package/docs/ADS.md +100 -89
  292. package/docs/ARCHITECTURE.md +353 -159
  293. package/docs/BEHAVIORS.md +33 -28
  294. package/docs/CACHING.md +55 -11
  295. package/docs/CHANGELOG.md +358 -17
  296. package/docs/COMPARISON.md +1 -1
  297. package/docs/CONTRACTS.md +22 -29
  298. package/docs/DESIGN-REFERENCES.md +40 -0
  299. package/docs/GUIDE.md +313 -292
  300. package/docs/MCP.md +261 -439
  301. package/docs/SPATIAL-CHECKS.md +69 -0
  302. package/docs/benchmarks/README.md +39 -0
  303. package/package.json +42 -34
  304. package/dist/browser-audit.mjs +0 -424
  305. package/dist/contract-migration.mjs +0 -110
  306. package/dist/create.mjs +0 -48
  307. package/dist/lint-config.mjs +0 -48
  308. package/dist/mcp/draft-exports.mjs +0 -40
  309. package/dist/mcp/edit-preparation.mjs +0 -115
  310. package/dist/mcp/project-widget.bundle.js +0 -114
  311. package/dist/mcp/reports.mjs +0 -101
  312. package/dist/mcp/widget.bundle.js +0 -147
  313. package/dist/oxlint.mjs +0 -88
  314. package/dist/preview-builder.mjs +0 -133
  315. package/dist/preview-workers.mjs +0 -184
  316. package/dist/showcase.mjs +0 -77
  317. package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
  318. package/dist/skills/ads-break-ui/README.md +0 -16
  319. package/dist/skills/ads-break-ui/SKILL.md +0 -415
  320. package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
  321. package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
  322. package/dist/skills/ads-break-ui/references/behaviors.md +0 -411
  323. package/dist/skills/ads-break-ui/references/captures.md +0 -160
  324. package/dist/skills/ads-break-ui/references/contracts.md +0 -284
  325. package/dist/skills/ads-break-ui/references/design-data.md +0 -354
  326. package/dist/skills/ads-break-ui/references/drafts.md +0 -178
  327. package/dist/skills/ads-break-ui/references/evidence.md +0 -128
  328. package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -154
  329. package/dist/skills/ads-break-ui/references/layers.md +0 -145
  330. package/dist/skills/ads-break-ui/references/reporting.md +0 -101
  331. package/dist/skills/ads-break-ui/references/review.md +0 -96
  332. package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
  333. package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
  334. package/dist/skills/ads-break-ui/references/validation.md +0 -162
  335. package/dist/skills/ads-break-ui/references/verification.md +0 -58
  336. package/dist/skills/ads-break-ui/references/workflows.md +0 -83
  337. package/dist/skills/ads-designer/references/reporting.md +0 -101
  338. package/dist/skills/ads-import/references/reporting.md +0 -101
  339. package/dist/skills/ads-motion/LICENSE.upstream +0 -21
  340. package/dist/skills/ads-motion/README.md +0 -22
  341. package/dist/skills/ads-motion/SKILL.md +0 -388
  342. package/dist/skills/ads-motion/agents/openai.yaml +0 -4
  343. package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
  344. package/dist/skills/ads-motion/references/audit.md +0 -44
  345. package/dist/skills/ads-motion/references/behaviors.md +0 -411
  346. package/dist/skills/ads-motion/references/captures.md +0 -160
  347. package/dist/skills/ads-motion/references/contracts.md +0 -284
  348. package/dist/skills/ads-motion/references/design-data.md +0 -354
  349. package/dist/skills/ads-motion/references/drafts.md +0 -178
  350. package/dist/skills/ads-motion/references/evidence.md +0 -128
  351. package/dist/skills/ads-motion/references/guarded-editing.md +0 -154
  352. package/dist/skills/ads-motion/references/layers.md +0 -145
  353. package/dist/skills/ads-motion/references/motion-review.md +0 -35
  354. package/dist/skills/ads-motion/references/reporting.md +0 -101
  355. package/dist/skills/ads-motion/references/review.md +0 -96
  356. package/dist/skills/ads-motion/references/runtimes.md +0 -203
  357. package/dist/skills/ads-motion/references/scenarios.md +0 -246
  358. package/dist/skills/ads-motion/references/validation.md +0 -162
  359. package/dist/skills/ads-motion/references/verification.md +0 -39
  360. package/dist/skills/ads-motion/references/workflows.md +0 -83
  361. package/dist/skills/ads-port/references/reporting.md +0 -101
  362. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
  363. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  364. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  365. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
  366. package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
  367. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
  368. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
  369. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
  370. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
  371. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
  372. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
  373. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
  374. package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
  375. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
  376. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  377. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
  378. package/dist/starters/react/design-system/review/index.ts +0 -5
  379. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  380. package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
  381. package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
  382. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
  383. package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
  384. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
  385. package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
  386. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
  387. package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
  388. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
  389. package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
  390. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
  391. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
  392. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
  393. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
  394. package/dist/starters/react/package-lock.json +0 -4707
  395. package/dist/token-fixtures.mjs +0 -30
  396. package/docs/benchmarks/bun-previews.md +0 -91
  397. package/docs/benchmarks/preview-memory.md +0 -147
  398. package/docs/benchmarks/turbo-poc.md +0 -284
  399. package/docs/plans/execution-coordination.md +0 -57
  400. /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
  401. /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
@@ -1,293 +0,0 @@
1
- # Atomic style composition
2
-
3
- Use this guide when creating or migrating component/pattern styles, changing
4
- base/size/state combinations, or reviewing `atomic-composition-review` items.
5
- It is also available as `ads://guides/atomic-styles` through ADS MCP.
6
-
7
- ## Why valid tokens can still render incorrectly
8
-
9
- Atomic Linaria extracts declarations into reusable classes. `cx` from
10
- `@linaria/atomic` or `@linaria/core` replaces earlier atoms with the same property
11
- and selector/condition key. It does not expand every CSS shorthand or resolve
12
- every overlap between physical and logical properties.
13
-
14
- For example, these declarations have different atomic keys:
15
-
16
- ```tsx
17
- const base = css`
18
- padding: 0;
19
- `;
20
- const small = css`
21
- padding-inline: var(--space-6);
22
- `;
23
-
24
- cx(base, small);
25
- ```
26
-
27
- Both classes survive. Both declarations can affect horizontal padding in a
28
- horizontal writing mode. In the inspected Linaria implementation, `padding` and
29
- `padding-inline` receive equal specificity. If a reset atom is emitted later,
30
- it can override the intended size. Shared atom reuse and CSS splitting can make
31
- this visible in a larger build even when an isolated view appears correct.
32
- The order of class names in HTML does not decide equal-specificity rule order.
33
- Queries on one property therefore use exclusive ranges, such as
34
- `(min-width: 768px) and (max-width: 1023.98px)` beside `(min-width: 1024px)`.
35
- Valid tokens, successful extraction and a passing source check do not establish
36
- the intended computed value.
37
-
38
- See Linaria's [class merging implementation](https://github.com/callstack/linaria/blob/master/packages/core/src/cx.ts)
39
- and [property priority implementation](https://github.com/callstack/linaria/blob/master/packages/atomic/src/processors/helpers/propertyPriority.ts).
40
- Inspect the project's installed version when investigating its output.
41
-
42
- ## Prefer matching properties across composed blocks
43
-
44
- Express the reset and overrides using the same property vocabulary:
45
-
46
- ```tsx
47
- const base = css`
48
- padding-block: 0;
49
- padding-inline: 0;
50
- `;
51
- const small = css`
52
- padding-inline: var(--space-6);
53
- `;
54
- const regular = css`
55
- padding-block: var(--space-4);
56
- padding-inline: var(--space-8);
57
- `;
58
-
59
- cx(base, compact ? small : regular);
60
- ```
61
-
62
- Now each selected size replaces the corresponding base atom through `cx`.
63
- Review every size, including the default and icon-only variants. Changing only
64
- one size can leave another size mixing shorthand and logical properties.
65
- The names and tokens above are illustrative: use the project's real API and
66
- declared tokens. Preserve its intended dimensions and supported writing modes.
67
-
68
- The same reasoning applies to margin, inset, logical borders/corners, dimensions
69
- and overflow. For example, prefer `margin-inline: 0` plus a size's
70
- `margin-inline: var(...)` over combining `margin: 0` with that logical override.
71
- Choose consistent physical properties when the product deliberately positions
72
- against physical edges; logical properties are not mandatory.
73
-
74
- An intentional state override may have a different selector or condition:
75
-
76
- ```tsx
77
- const treatment = css`
78
- padding-inline: var(--space-6);
79
- &:hover { padding-inline: var(--space-8); }
80
- `;
81
- ```
82
-
83
- This is a distinct state, not two competing base atoms. Whether changing padding
84
- on hover is desirable remains a product decision.
85
-
86
- ## Register typed custom properties without atomizing their descriptors
87
-
88
- Use a literal `@property` in its component/pattern's Linaria template when the
89
- browser needs a typed, interpolated runtime variable:
90
-
91
- ```tsx
92
- const treatment = css`
93
- @property --ds-example-progress {
94
- syntax: "<number>";
95
- inherits: false;
96
- initial-value: 0;
97
- }
98
- opacity: var(--ds-example-progress);
99
- `;
100
- ```
101
-
102
- The identifier is illustrative; use a unique name owned by the real unit.
103
- Registrations are document-global, even when authored beside one component.
104
- Put them at template level or inside conditional at-rules, never element selectors.
105
- Use the same ADS tag resolver described below in both product and preview builds;
106
- it preserves each complete registration and its conditional context instead of
107
- splitting syntax/inherits/initial-value into invalid atomic rules. This works for
108
- atomic `css` and `styled`; the browser receives CSS without a registration runtime.
109
- MCP delivers it inside the App document, not the outer showcase host.
110
-
111
- `property-registration` validates descriptor shape, CSS syntax/initial-value and
112
- ownership, and rejects conflicting schemas or registrations shared by unrelated
113
- owners. Identical registrations from the same owner are permitted. Runtime
114
- `--ds-*` / `--ux-*` variables stay with their runtime owner. A shared token's
115
- registration belongs beside its actual definition in a foundation value sheet.
116
- Neither `base.css` nor `fonts.css` becomes a registration escape hatch. Registration
117
- alone does not define a token or satisfy its sample/fixture coverage.
118
-
119
- Typed initial values must match their syntax and be computationally independent:
120
- `0px` is valid metadata; `var(--space-4)`, `1rem` and `currentColor` are not.
121
- The literal exemption applies only to registration descriptors. Keep design
122
- assignments outside them token-backed; a technical fallback is not a place to
123
- hide a component skin. Use literal static descriptors so guards can inspect them.
124
- See the [W3C registration contract](https://www.w3.org/TR/css-properties-values-api-1/#at-property-rule).
125
-
126
- Verify extracted CSS and actual interpolation, including after minification and
127
- inside the MCP App. A declaration can parse while a browser ignores an invalid
128
- registration. Keep required browser fallbacks and reduced-motion behavior; do not
129
- replace a valid CSS implementation with script merely to evade extraction or a
130
- guard limitation. These checks cover declarative registrations; arbitrary dynamic
131
- `CSS.registerProperty()` calls are not an ownership proof.
132
-
133
- ## Preserve custom-property arithmetic during extraction
134
-
135
- Custom properties can hold an unevaluated token stream that becomes arithmetic
136
- only after substitution into a later `calc()`. For example:
137
-
138
- ```css
139
- --i: 2;
140
- --scale: var(--i) * 0.05 + 1;
141
- transform: scale(calc(-1 * var(--scale)));
142
- ```
143
-
144
- The result is scale `0.9`: substitution does not add parentheses around the
145
- custom property. Some Linaria/Stylis extraction versions strip the whitespace
146
- around the bare `+`, leaving `0.05+1`. The browser then treats the transform as
147
- invalid. This can happen with CSS minification disabled. Source guards cannot
148
- prove what a later extractor emits.
149
-
150
- Use ADS's build-only resolver in **both** the application's Linaria configuration
151
- and its separately configured MCP preview builder:
152
-
153
- ```js
154
- import wyw from "@wyw-in-js/vite";
155
- import { linariaTagResolver } from "@reqvire-org/ads/linaria";
156
-
157
- // In the project's Vite plugins:
158
- wyw({ tagResolver: linariaTagResolver });
159
- ```
160
-
161
- The resolver keeps the project's installed atomic processor and preserves opaque
162
- custom-property values through its nesting/atomization pass. It does not add a
163
- browser runtime or alter token ownership. Existing projects must adopt it in
164
- each extraction pipeline; upgrading ADS alone does not rewrite custom builders.
165
- If an existing `tagResolver` handles other tags, delegate atomic imports to
166
- `linariaTagResolver(source, tag)` and retain the existing fallback. WyW config
167
- files also support this resolver when a build integration requires serializable
168
- inline options.
169
-
170
- For a source workaround, write a self-contained formula and consume it directly:
171
-
172
- ```css
173
- --scale: calc(1 - var(--i) * 0.05);
174
- transform: scale(var(--scale));
175
- ```
176
-
177
- This also produces `0.9`. Simply wrapping the old value in `calc()` while keeping
178
- the outer `-1 *` changes its grouping and result. Verify extracted CSS text and a
179
- computed style after any rewrite, including nested `var()` fallbacks/transforms.
180
- Do not globally insert spaces into already extracted CSS: that can change valid
181
- signed numbers, identifiers, strings or URLs.
182
-
183
- ## Follow helpers and forwarded classes
184
-
185
- Composition can cross a helper or a component boundary. For example, in component
186
- implementation source:
187
-
188
- ```tsx
189
- function baseClasses() { return base; }
190
- function Primitive({ className, ...props }) {
191
- return <button {...props} className={cx(baseClasses(), className)} />;
192
- }
193
- function CompactPrimitive(props) {
194
- return <Primitive {...props} className={small} />;
195
- }
196
- ```
197
-
198
- The base and small atoms can reach the same button. Inspect both owners when
199
- correcting their property vocabulary. The wrapper's class does not style every
200
- descendant: a class on a child or sibling element is a separate composition.
201
- An imported stylesheet alone does not show that its classes co-apply.
202
-
203
- Spread order matters. `<button className={base} {...props} />` can replace the
204
- entire className; `<button {...props} className={cx(base, className)} />` composes
205
- it explicitly. Keep the product's intended forwarding behavior when fixing an
206
- overlap. Do not change the public API simply to make tracing easier.
207
-
208
- Review items include a bounded `composition` path through traced helpers and
209
- components. A `target` identifies a statically reached DOM element. This
210
- establishes source composition, not that a scenario mounted it or that its
211
- computed result is wrong. `writingModeDependent: true` identifies overlaps that
212
- change with direction or writing mode; evaluate those against supported modes.
213
- Literal overlaps with provably equal values are omitted where the analyzer can
214
- expand them safely. Token formulas, inheritance and runtime values still need
215
- review. A margin shorthand and `margin-inline: auto` may agree horizontally but
216
- disagree in vertical text, so horizontal equality alone is insufficient.
217
-
218
- ## Respond to a review item
219
-
220
- 1. Follow the review item's related file/line locations and inspect the actual `cx`
221
- composition. Variant lookups may contribute several possible combinations.
222
- 2. In a current built preview, inspect computed properties and the winning CSS
223
- rules. Establish whether extraction order, specificity, writing mode or an
224
- intentional override explains the result.
225
- 3. For accidental overlap, align property names/granularity across the base and
226
- affected variants. Use Linaria's `cx`, preserve tokens and fix the owning
227
- component/pattern. Reordering class strings does not remove overlapping keys.
228
- 4. Verify the affected sizes/states and supported directions in the normal app
229
- and preview build. Add a registered rendered check when a specific geometry
230
- or computed-style guarantee matters.
231
-
232
- Increasing specificity, adding `!important`, copying styles into scenarios or
233
- moving component styling into `base.css` can hide the symptom while retaining
234
- the conflict. Prefer resolving the composition itself. If an overlap is
235
- intentional, document why its precedence is stable and verify the resulting
236
- behavior rather than changing product capabilities to silence a review item.
237
-
238
- Use existing behavior contracts and `ads_verify` for important geometry. Register
239
- a check beside its owner, link its real scenario and use the project's browser
240
- profile. An assertion can inspect the actual control in the App frame:
241
-
242
- ```ts
243
- const frame = await openBehaviorScenario(page, "compact-spacing");
244
- await expect(frame.getByRole("button", { name: "Compact" }))
245
- .toHaveCSS("padding-inline-start", "8px");
246
- ```
247
-
248
- The name, check ID and expected value above are examples. Derive assertions from
249
- the project's intended API and design, with relevant variants, open/hover/focus
250
- states, themes and supported writing modes. Wait for observable readiness; an
251
- event-stream connection can prevent `networkidle` from settling. A generic
252
- overlap scan cannot decide which dimensions the product intended. A failed
253
- registered geometry assertion is blocking through the existing verification
254
- contract; an overlap review item remains a review signal.
255
-
256
- ## What ADS checks
257
-
258
- `atomic-composition-review` is a nonblocking review item, returned under `advisories`
259
- with `severity: "review"`. CLI checks still exit successfully when there are no
260
- errors; MCP checks and mutations preserve the review item and its guidance URI.
261
-
262
- An unchanged advisory baseline is not evidence that the affected styles are
263
- correct. Triage review items that reach an edited owner or its shared helpers against
264
- the actual DOM classes and computed styles in a compiled scenario. Interaction
265
- checks may pass without measuring padding, alignment or sizing. When an intended
266
- layout is known, add a focused rendered assertion for that contract; when keeping
267
- an overlap, state why it is intentional and which states/directions were checked.
268
- Keep unresolved paths and unsupported writing modes explicit in the evidence.
269
-
270
- The source review examines atomic Linaria templates and statically traceable
271
- `cx` arguments, including aliases, local imports/re-exports, local helper returns,
272
- arguments/defaults, nested composition, conditional expressions and variant-object
273
- lookups. It follows explicit `className` forwarding through local function
274
- components, props/rest spreads and imported React/Preact `memo`/`forwardRef`
275
- wrappers to an intrinsic JSX element. It checks known overlaps involving box
276
- spacing, inset, borders/corners, dimensions, overflow, backgrounds, typography,
277
- motion and common layout shorthands, plus `all` resets. It compares shared selector/condition contexts; separate alternatives
278
- within one conditional or lookup are not assumed to apply together. Matching
279
- atomic property/selector/condition keys are replaced during traced `cx`
280
- composition before comparing the surviving declarations.
281
-
282
- This is a bounded source review, not a CSS engine or a proof of precedence. It
283
- does not execute helpers or import project modules, enumerate every external
284
- class, or model arbitrary runtime mutation, component rendering, selectors or
285
- overlapping media queries. Recursive calls, unsupported call/control-flow paths,
286
- unresolved DOM targets and traversal limits produce bounded
287
- `atomic-composition-limit` informational advisories where known atomic styles
288
- reach an unresolved composition. Ordinary externally supplied className values
289
- remain open inputs, not guaranteed safe styles. Depth, work and alternative
290
- limits keep source inspection bounded; an unreported path or an empty review
291
- list does not establish visual correctness. Actual failed registered
292
- browser/behavior checks remain blocking; potentially intentional source overlaps
293
- remain review items.
@@ -1,44 +0,0 @@
1
- # Audit or plan motion
2
-
3
- Start with the requested component/screen, not the entire repository. Map its
4
- public inputs, state transitions, motion tokens, styles, geometry helpers,
5
- timers, cleanup, and tests. Read nearby call sites to understand frequency and
6
- composition. Track documented tradeoffs and accepted upstream comparisons.
7
-
8
- Review using the categories in [motion-review.md](motion-review.md). Expand into rendering
9
- performance only where observations or source evidence justify it; use
10
- [performance.md](performance.md) if profiling is requested. An audit does not
11
- silently apply production changes or rewrite configuration.
12
-
13
- ## Opportunities
14
-
15
- When requested, suggest a small set of motion opportunities grounded in actual
16
- state changes: new content, removal, selection, disclosure, or spatial movement.
17
- For each, explain the user purpose, frequency, owner, and reduced-motion state.
18
- Reject ideas that delay frequent input, duplicate existing feedback, or require
19
- an unrelated library. It is valid to recommend no new animation.
20
-
21
- ## Implementation plans
22
-
23
- If a plan is requested, make it executable against the inspected source:
24
-
25
- 1. Name the problem and its reproduction, including observed vs source-only
26
- evidence. Record the revision or inspected snapshot; do not invent a Git
27
- commit when the project has no committed source.
28
- 2. Identify owner files, public API implications, existing tokens, and any new
29
- token definitions. Explain the intended state transitions and cancellation.
30
- 3. Describe the smallest coherent implementation, including geometry and exit
31
- cleanup. Give exact changes where they resolve ambiguity; keep raw visual
32
- constants in the token layer rather than embedding them in component samples.
33
- 4. List regression cases, real project commands, browser comparisons, and
34
- practical limitations. Include reduced motion, interruption, and relevant
35
- pointer/keyboard paths.
36
- 5. Record accepted differences, affected neighbors, source credits/notices, and
37
- the local README updates needed after implementation.
38
-
39
- Write a plan file only when the task or project workflow calls for one. Do not
40
- create a parallel documentation tree for a small review. When implementation is
41
- authorized, recheck the current source, execute the relevant plan, and update
42
- the documentation to match what actually shipped. Ask only when a required
43
- decision remains unresolved; routine implementation does not need another
44
- confirmation after the user has already asked for it.