@reqvire-org/ads 0.4.0 → 0.4.3
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.
- package/README.md +115 -87
- package/dist/a11y.mjs +133 -48
- package/dist/analysis/compiler-options.mjs +13 -0
- package/dist/analysis/context.mjs +46 -0
- package/dist/analysis/file-tree.mjs +52 -0
- package/dist/analysis/helpers.mjs +142 -0
- package/dist/analysis/impact.mjs +20 -0
- package/dist/analysis/inputs.mjs +22 -0
- package/dist/analysis/module-resolvers.mjs +46 -0
- package/dist/analysis/native-adapter.mjs +180 -0
- package/dist/analysis/native-project.mjs +323 -0
- package/dist/analysis/queries.mjs +133 -0
- package/dist/analysis/service.mjs +153 -0
- package/dist/analysis/standalone.mjs +57 -0
- package/dist/analysis/syntax.mjs +179 -0
- package/dist/analysis/worker.mjs +182 -0
- package/dist/assets.mjs +6 -6
- package/dist/atomic-composition.mjs +191 -70
- package/dist/atomic-trace.mjs +120 -50
- package/dist/behavior-libraries.mjs +106 -37
- package/dist/behaviors.mjs +219 -77
- package/dist/boundaries.mjs +140 -41
- package/dist/brand-assets.mjs +219 -47
- package/dist/brands.mjs +86 -27
- package/dist/bun-compiler.mjs +28 -14
- package/dist/bun-worker.mjs +7 -5
- package/dist/capture/worker.mjs +15 -4
- package/dist/capture-store.mjs +4 -2
- package/dist/capture.mjs +17 -14
- package/dist/check-service.mjs +44 -58
- package/dist/check.mjs +754 -188
- package/dist/cli.mjs +200 -99
- package/dist/color-values.mjs +21 -21
- package/dist/component-contrast.mjs +127 -9
- package/dist/config.mjs +303 -135
- package/dist/construction-styles.cjs +10 -0
- package/dist/contrast-composition.mjs +134 -0
- package/dist/control-padding.mjs +45 -25
- package/dist/css-values.mjs +3 -2
- package/dist/declarative-flow.mjs +209 -109
- package/dist/design-values.mjs +136 -51
- package/dist/development-runtime.mjs +4 -6
- package/dist/draft-boundary.mjs +11 -6
- package/dist/evidence.mjs +1 -1
- package/dist/finding-rules.mjs +9 -5
- package/dist/font-rules.mjs +22 -17
- package/dist/fonts-generated.mjs +23 -16
- package/dist/foundation-views.mjs +242 -0
- package/dist/foundation.mjs +63 -39
- package/dist/generated-entries.mjs +101 -34
- package/dist/icons.mjs +79 -32
- package/dist/image-attributes.mjs +143 -66
- package/dist/image-size.mjs +1 -1
- package/dist/index.mjs +0 -2
- package/dist/init.mjs +122 -41
- package/dist/investigations.mjs +2 -2
- package/dist/layers.mjs +298 -129
- package/dist/layout-widths.mjs +180 -85
- package/dist/linaria/preserve-values.cjs +7 -0
- package/dist/linaria/spatial-inputs.cjs +56 -0
- package/dist/lockup-composition.mjs +44 -0
- package/dist/lockup-model.cjs +64 -0
- package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
- package/dist/mcp/apps.mjs +4 -30
- package/dist/mcp/behavior-pages.mjs +72 -24
- package/dist/mcp/build-status.mjs +257 -64
- package/dist/mcp/catalog.mjs +90 -26
- package/dist/mcp/context.mjs +17 -18
- package/dist/mcp/draft-discovery.mjs +44 -21
- package/dist/mcp/drafts.mjs +903 -281
- package/dist/mcp/execution-coordinator.mjs +417 -167
- package/dist/mcp/execution-results.mjs +7 -7
- package/dist/mcp/mutations.mjs +673 -234
- package/dist/mcp/preview-watch.mjs +448 -170
- package/dist/mcp/preview-widget.bundle.js +44 -50
- package/dist/mcp/prompts.mjs +5 -5
- package/dist/mcp/result-pages.mjs +1 -1
- package/dist/mcp/sandbox-host.mjs +1 -1
- package/dist/mcp/server.mjs +2409 -577
- package/dist/mcp/showcase-host.mjs +165 -41
- package/dist/mcp/skills.mjs +1 -1
- package/dist/mcp/text-diff.mjs +29 -10
- package/dist/paint-contracts.mjs +174 -81
- package/dist/palette-generated.mjs +2 -2
- package/dist/pictogram-model.mjs +59 -0
- package/dist/pictograms.mjs +52 -0
- package/dist/preview-bun.mjs +494 -187
- package/dist/preview-failure.mjs +1 -1
- package/dist/preview-files.mjs +13 -13
- package/dist/preview-imports.mjs +104 -55
- package/dist/preview-inputs.mjs +2 -2
- package/dist/preview-requests.mjs +24 -0
- package/dist/preview-resources.mjs +288 -147
- package/dist/preview-scope.mjs +5 -4
- package/dist/program-cache.mjs +8 -34
- package/dist/project-documents.mjs +1 -1
- package/dist/public-api.mjs +69 -31
- package/dist/public-props.mjs +39 -22
- package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
- package/dist/{browser-audit → render-audit}/image-shape.mjs +15 -5
- package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
- package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
- package/dist/render-audit/pictograms.mjs +88 -0
- package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
- package/dist/{browser-audit → render-audit}/worker.mjs +98 -30
- package/dist/render-audit.mjs +838 -0
- package/dist/render-color-probe.mjs +96 -42
- package/dist/render-composition.mjs +164 -0
- package/dist/resource-limits.mjs +229 -97
- package/dist/runtime-contracts.mjs +467 -185
- package/dist/scenario-groups.mjs +22 -10
- package/dist/scenario-inspector.mjs +6 -43
- package/dist/scenario-program.mjs +8 -25
- package/dist/scenario-registry.mjs +72 -30
- package/dist/scenario-selectors.mjs +161 -64
- package/dist/scenario-slots.mjs +149 -56
- package/dist/scenario-trace.mjs +215 -109
- package/dist/scenarios-compiler.mjs +719 -378
- package/dist/scenarios-vite.d.mts +1 -3
- package/dist/scenarios-vite.mjs +2 -81
- package/dist/scenarios.mjs +421 -157
- package/dist/selector-match.mjs +2 -2
- package/dist/showcase/client.bundle.js +57 -56
- package/dist/showcase/draft-navigation.js +21 -3
- package/dist/showcase/favicon.ico +0 -0
- package/dist/showcase/favicon.svg +1 -0
- package/dist/showcase/foundation-view.css +58 -0
- package/dist/showcase/foundation-view.mjs +255 -0
- package/dist/showcase/guide-controls.ads.review.mjs +32 -0
- package/dist/showcase/icons.js +1 -145
- package/dist/showcase/index.html +3 -31
- package/dist/showcase/pictogram-view.mjs +53 -0
- package/dist/showcase/preview-frame.ads.review.css +46 -0
- package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
- package/dist/showcase/preview-frame.ads.review.mjs +22 -0
- package/dist/showcase/preview-state.js +0 -9
- package/dist/showcase/refresh-scheduler.js +23 -0
- package/dist/showcase/style.css +5 -47
- package/dist/showcase/ui/ui.css +1353 -0
- package/dist/showcase/ui/ui.js +1064 -0
- package/dist/showcase-coverage.mjs +58 -37
- package/dist/skills/README.md +24 -23
- package/dist/skills/ads-designer/README.md +8 -2
- package/dist/skills/ads-designer/SKILL.md +143 -120
- package/dist/skills/ads-designer/references/accessibility.md +78 -15
- package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
- package/dist/skills/ads-designer/references/behaviors.md +30 -27
- package/dist/skills/ads-designer/references/branding.md +101 -24
- package/dist/skills/ads-designer/references/captures.md +25 -0
- package/dist/skills/ads-designer/references/cli.md +21 -24
- package/dist/skills/ads-designer/references/contracts.md +7 -6
- package/dist/skills/ads-designer/references/design-data.md +49 -52
- package/dist/skills/ads-designer/references/drafts.md +20 -17
- package/dist/skills/ads-designer/references/evidence.md +1 -5
- package/dist/skills/ads-designer/references/guarded-editing.md +14 -18
- package/dist/skills/ads-designer/references/layers.md +1 -1
- package/dist/skills/ads-designer/references/layout.md +347 -0
- package/dist/skills/ads-designer/references/mobile.md +2 -1
- package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
- package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
- package/dist/skills/ads-designer/references/performance.md +3 -2
- package/dist/skills/ads-designer/references/pictograms.md +131 -0
- package/dist/skills/ads-designer/references/review.md +37 -34
- package/dist/skills/ads-designer/references/runtimes.md +33 -30
- package/dist/skills/ads-designer/references/scenarios.md +16 -18
- package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
- package/dist/skills/ads-designer/references/stress-test.md +68 -0
- package/dist/skills/ads-designer/references/validation.md +83 -75
- package/dist/skills/ads-designer/references/workflows.md +8 -33
- package/dist/skills/ads-import/SKILL.md +43 -325
- package/dist/skills/ads-import/references/atomic-styles.md +4 -4
- package/dist/skills/ads-import/references/behaviors.md +30 -27
- package/dist/skills/ads-import/references/branding.md +5 -5
- package/dist/skills/ads-import/references/captures.md +25 -0
- package/dist/skills/ads-import/references/cli.md +21 -24
- package/dist/skills/ads-import/references/compatibility.md +1 -1
- package/dist/skills/ads-import/references/contracts.md +7 -6
- package/dist/skills/ads-import/references/design-data.md +49 -52
- package/dist/skills/ads-import/references/drafts.md +20 -17
- package/dist/skills/ads-import/references/evidence.md +1 -5
- package/dist/skills/ads-import/references/guarded-editing.md +14 -18
- package/dist/skills/ads-import/references/implementation.md +2 -1
- package/dist/skills/ads-import/references/layers.md +1 -1
- package/dist/skills/ads-import/references/layout.md +347 -0
- package/dist/skills/ads-import/references/review.md +37 -34
- package/dist/skills/ads-import/references/runtimes.md +33 -30
- package/dist/skills/ads-import/references/scenarios.md +16 -18
- package/dist/skills/ads-import/references/tokens.md +3 -3
- package/dist/skills/ads-import/references/validation.md +83 -75
- package/dist/skills/ads-import/references/workflows.md +8 -33
- package/dist/skills/ads-migrate/SKILL.md +56 -0
- package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
- package/dist/skills/ads-port/SKILL.md +58 -344
- package/dist/skills/ads-port/references/atomic-styles.md +4 -4
- package/dist/skills/ads-port/references/behaviors.md +30 -27
- package/dist/skills/ads-port/references/captures.md +25 -0
- package/dist/skills/ads-port/references/cli.md +21 -24
- package/dist/skills/ads-port/references/contracts.md +7 -6
- package/dist/skills/ads-port/references/design-data.md +49 -52
- package/dist/skills/ads-port/references/drafts.md +20 -17
- package/dist/skills/ads-port/references/evidence.md +1 -5
- package/dist/skills/ads-port/references/guarded-editing.md +14 -18
- package/dist/skills/ads-port/references/layers.md +1 -1
- package/dist/skills/ads-port/references/layout.md +347 -0
- package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
- package/dist/skills/ads-port/references/native-implementation.md +2 -1
- package/dist/skills/ads-port/references/review.md +37 -34
- package/dist/skills/ads-port/references/runtimes.md +33 -30
- package/dist/skills/ads-port/references/scenarios.md +16 -18
- package/dist/skills/ads-port/references/validation.md +83 -75
- package/dist/skills/ads-port/references/workflows.md +8 -33
- package/dist/source-symbols.mjs +1 -8
- package/dist/source-values.mjs +270 -129
- package/dist/spatial-composition.mjs +322 -0
- package/dist/spatial-contexts.cjs +56 -0
- package/dist/spatial-css.cjs +351 -0
- package/dist/spatial-inputs.cjs +80 -0
- package/dist/spatial-metadata.mjs +18 -0
- package/dist/spatial-model.cjs +322 -0
- package/dist/spatial.mjs +21 -0
- package/dist/stage-timing.cjs +20 -0
- package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
- package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
- package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
- package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
- package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
- package/dist/starters/preact/ds.config.json +25 -6
- package/dist/starters/preact/package.json +4 -8
- package/dist/starters/preact/tsconfig.json +4 -5
- package/dist/starters/preact/vite.config.ts +3 -3
- package/dist/starters/react/ADS.md +42 -47
- package/dist/starters/react/README.md +47 -49
- package/dist/starters/react/design-system/assets/pictograms/catalog.ads.json +13 -0
- package/dist/starters/react/design-system/assets/pictograms/journey.dark.svg +7 -0
- package/dist/starters/react/design-system/assets/pictograms/journey.svg +7 -0
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
- package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
- package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.fixture.ts +1 -0
- package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.ads.scenario.tsx +7 -0
- package/dist/starters/react/design-system/components/Content/Pictogram/Pictogram.tsx +26 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
- package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
- package/dist/starters/react/design-system/index.ts +2 -1
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
- package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
- package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
- package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
- package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
- package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
- package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -1
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
- package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
- package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
- package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -1
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
- package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
- package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
- package/dist/starters/react/design-system/tokens/colors.css +1 -1
- package/dist/starters/react/design-system/tokens/spacing.css +22 -32
- package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
- package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
- package/dist/starters/react/ds.config.json +25 -6
- package/dist/starters/react/package.json +2 -6
- package/dist/starters/react/tsconfig.json +2 -3
- package/dist/starters/react/vite.config.ts +3 -3
- package/dist/style-boundaries.mjs +70 -25
- package/dist/task-cache.mjs +173 -72
- package/dist/task-worker.mjs +22 -11
- package/dist/test-boundaries.mjs +132 -59
- package/dist/themes-generated.mjs +1 -1
- package/dist/themes-watch.mjs +57 -22
- package/dist/themes.mjs +176 -73
- package/dist/token-export.mjs +39 -14
- package/dist/token-policy.mjs +6 -3
- package/dist/token-quality.mjs +6 -6
- package/dist/token-samples.mjs +16 -5
- package/dist/tokens.mjs +71 -26
- package/dist/ui-framework.mjs +16 -14
- package/dist/unit-contracts.mjs +251 -104
- package/dist/units.mjs +209 -99
- package/dist/usage.mjs +138 -38
- package/dist/validation-checks.mjs +115 -38
- package/dist/validation-inputs.mjs +191 -78
- package/dist/validation.mjs +268 -102
- package/dist/verification/browser.mjs +27 -5
- package/dist/verification.mjs +711 -187
- package/docs/ADS.md +96 -80
- package/docs/ARCHITECTURE.md +368 -137
- package/docs/BEHAVIORS.md +29 -25
- package/docs/CACHING.md +77 -17
- package/docs/CHANGELOG.md +332 -17
- package/docs/CONTRACTS.md +12 -4
- package/docs/DESIGN-REFERENCES.md +40 -0
- package/docs/GUIDE.md +300 -263
- package/docs/MCP.md +187 -324
- package/docs/SPATIAL-CHECKS.md +69 -0
- package/docs/benchmarks/README.md +39 -0
- package/package.json +43 -34
- package/dist/browser-audit.mjs +0 -429
- package/dist/create.mjs +0 -48
- package/dist/lint-config.mjs +0 -50
- package/dist/mcp/project-widget.bundle.js +0 -114
- package/dist/mcp/reports.mjs +0 -101
- package/dist/mcp/widget.bundle.js +0 -147
- package/dist/oxlint.mjs +0 -89
- package/dist/preview-builder.mjs +0 -133
- package/dist/preview-workers.mjs +0 -184
- package/dist/showcase.mjs +0 -77
- package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
- package/dist/skills/ads-break-ui/README.md +0 -16
- package/dist/skills/ads-break-ui/SKILL.md +0 -412
- package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
- package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
- package/dist/skills/ads-break-ui/references/behaviors.md +0 -412
- package/dist/skills/ads-break-ui/references/captures.md +0 -135
- package/dist/skills/ads-break-ui/references/contracts.md +0 -317
- package/dist/skills/ads-break-ui/references/design-data.md +0 -354
- package/dist/skills/ads-break-ui/references/drafts.md +0 -194
- package/dist/skills/ads-break-ui/references/evidence.md +0 -128
- package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -165
- package/dist/skills/ads-break-ui/references/layers.md +0 -145
- package/dist/skills/ads-break-ui/references/reporting.md +0 -101
- package/dist/skills/ads-break-ui/references/review.md +0 -97
- package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
- package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
- package/dist/skills/ads-break-ui/references/validation.md +0 -166
- package/dist/skills/ads-break-ui/references/verification.md +0 -58
- package/dist/skills/ads-break-ui/references/workflows.md +0 -90
- package/dist/skills/ads-designer/references/reporting.md +0 -101
- package/dist/skills/ads-import/references/reporting.md +0 -101
- package/dist/skills/ads-motion/LICENSE.upstream +0 -21
- package/dist/skills/ads-motion/README.md +0 -22
- package/dist/skills/ads-motion/SKILL.md +0 -385
- package/dist/skills/ads-motion/agents/openai.yaml +0 -4
- package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
- package/dist/skills/ads-motion/references/audit.md +0 -44
- package/dist/skills/ads-motion/references/behaviors.md +0 -412
- package/dist/skills/ads-motion/references/captures.md +0 -135
- package/dist/skills/ads-motion/references/contracts.md +0 -317
- package/dist/skills/ads-motion/references/design-data.md +0 -354
- package/dist/skills/ads-motion/references/drafts.md +0 -194
- package/dist/skills/ads-motion/references/evidence.md +0 -128
- package/dist/skills/ads-motion/references/guarded-editing.md +0 -165
- package/dist/skills/ads-motion/references/layers.md +0 -145
- package/dist/skills/ads-motion/references/motion-review.md +0 -35
- package/dist/skills/ads-motion/references/reporting.md +0 -101
- package/dist/skills/ads-motion/references/review.md +0 -97
- package/dist/skills/ads-motion/references/runtimes.md +0 -203
- package/dist/skills/ads-motion/references/scenarios.md +0 -246
- package/dist/skills/ads-motion/references/validation.md +0 -166
- package/dist/skills/ads-motion/references/verification.md +0 -39
- package/dist/skills/ads-motion/references/workflows.md +0 -90
- package/dist/skills/ads-port/references/reporting.md +0 -101
- package/dist/starters/preact/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
- package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
- package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
- package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
- package/dist/starters/preact/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
- package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
- package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
- package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
- package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
- package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
- package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
- package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
- package/dist/starters/react/design-system/review/brand-preview/BrandPreview.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
- package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
- package/dist/starters/react/design-system/review/grid-cell/GridCell.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
- package/dist/starters/react/design-system/review/index.ts +0 -6
- package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
- package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
- package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.exports.ts +0 -1
- package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
- package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
- package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
- package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
- package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
- package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
- package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
- package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
- package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
- package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
- package/dist/starters/react/package-lock.json +0 -4707
- package/dist/token-fixtures.mjs +0 -30
- package/docs/benchmarks/bun-previews.md +0 -91
- package/docs/benchmarks/preview-memory.md +0 -147
- package/docs/benchmarks/turbo-poc.md +0 -284
- package/docs/plans/execution-coordination.md +0 -57
- /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
- /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
|
@@ -147,8 +147,8 @@ around the bare `+`, leaving `0.05+1`. The browser then treats the transform as
|
|
|
147
147
|
invalid. This can happen with CSS minification disabled. Source guards cannot
|
|
148
148
|
prove what a later extractor emits.
|
|
149
149
|
|
|
150
|
-
Use ADS's build-only resolver in
|
|
151
|
-
|
|
150
|
+
Use ADS's build-only resolver in the application's Linaria configuration.
|
|
151
|
+
ADS's managed Bun preview compiler already uses it:
|
|
152
152
|
|
|
153
153
|
```js
|
|
154
154
|
import wyw from "@wyw-in-js/vite";
|
|
@@ -161,7 +161,7 @@ wyw({ tagResolver: linariaTagResolver });
|
|
|
161
161
|
The resolver keeps the project's installed atomic processor and preserves opaque
|
|
162
162
|
custom-property values through its nesting/atomization pass. It does not add a
|
|
163
163
|
browser runtime or alter token ownership. Existing projects must adopt it in
|
|
164
|
-
|
|
164
|
+
their application extraction pipelines; upgrading ADS does not rewrite those builders.
|
|
165
165
|
If an existing `tagResolver` handles other tags, delegate atomic imports to
|
|
166
166
|
`linariaTagResolver(source, tag)` and retain the existing fallback. WyW config
|
|
167
167
|
files also support this resolver when a build integration requires serializable
|
|
@@ -235,7 +235,7 @@ the conflict. Prefer resolving the composition itself. If an overlap is
|
|
|
235
235
|
intentional, document why its precedence is stable and verify the resulting
|
|
236
236
|
behavior rather than changing product capabilities to silence a review item.
|
|
237
237
|
|
|
238
|
-
Use existing behavior contracts
|
|
238
|
+
Use existing behavior contracts, run by the gates or `ads verify`, for important geometry. Register
|
|
239
239
|
a check beside its owner, link its real scenario and use the project's browser
|
|
240
240
|
profile. An assertion can inspect the actual control in the App frame:
|
|
241
241
|
|
|
@@ -163,7 +163,7 @@ command. For a project with an installed Playwright test runner:
|
|
|
163
163
|
}
|
|
164
164
|
```
|
|
165
165
|
|
|
166
|
-
Here `runtime` uses the
|
|
166
|
+
Here `runtime` uses the Bun that runs ADS, and the
|
|
167
167
|
project supplies the installed Playwright entry. Explicit executable commands
|
|
168
168
|
retain their meaning. A Bun package-script profile can use `command: "bun"`
|
|
169
169
|
with `args: ["--bun", "run", "test:behavior", "--"]`. The Playwright
|
|
@@ -221,11 +221,11 @@ after a failure, does not establish the cause. Preserve the draft and original
|
|
|
221
221
|
diagnostic; do not change a component API, reference example or verification
|
|
222
222
|
policy to compensate for a resource-loading failure.
|
|
223
223
|
|
|
224
|
-
The reporter atomically publishes partial snapshots at test start/end. While
|
|
225
|
-
run is active, `ads_status.
|
|
226
|
-
elapsed time, completed/active/pending counts,
|
|
227
|
-
case identities/timings.
|
|
228
|
-
`ads_status.mutations.progress`. Clients requesting MCP progress receive updates
|
|
224
|
+
The reporter atomically publishes partial snapshots at test start/end. While an
|
|
225
|
+
`ads_validate` run is active, `ads_status.validation.progress` (stage `behavior`)
|
|
226
|
+
exposes the profile, runner budget, elapsed time, completed/active/pending counts,
|
|
227
|
+
worker count when available and case identities/timings. Draft acceptance exposes
|
|
228
|
+
the same data at `ads_status.mutations.progress`. Clients requesting MCP progress receive updates
|
|
229
229
|
and a heartbeat during the runner phase; client-side request timeouts still apply.
|
|
230
230
|
`durationMs` records completed case execution, including attempts, separately from
|
|
231
231
|
the suite's wall time. Parallel case durations can sum to more than wall time.
|
|
@@ -324,9 +324,10 @@ General listings return counts and short API/guarantee/scenario summaries. Exact
|
|
|
324
324
|
owner requests return the registered details; source reads remain available for
|
|
325
325
|
bounded inspection of large contracts. No full guide or test body is injected
|
|
326
326
|
into discovery results.
|
|
327
|
-
|
|
327
|
+
Over MCP, behavior tests run inside the two gates: `ads_accept` runs the draft
|
|
328
|
+
owners' own tests and `ads_validate` every test its change set reaches. Read
|
|
328
329
|
`ads://project/behaviors` for current evidence or `ads://guides/behaviors` for this
|
|
329
|
-
guide. CLI
|
|
330
|
+
guide. To run one unit's checks from the CLI or CI:
|
|
330
331
|
|
|
331
332
|
```sh
|
|
332
333
|
ads behaviors . --json
|
|
@@ -374,34 +375,36 @@ and retains dependencies with declared side effects. This narrowing requires a
|
|
|
374
375
|
package `sideEffects:false` or a supported simple `sideEffects` glob array; preserve
|
|
375
376
|
CSS/global effects in that policy. Unknown policies/patterns, wildcard exports and
|
|
376
377
|
computed imports remain conservative. Barrel source changes still invalidate
|
|
377
|
-
dependents.
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
`
|
|
385
|
-
`
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
for
|
|
378
|
+
dependents. Native snapshots reuse unchanged ASTs and semantic queries across
|
|
379
|
+
inspections; request facts and dependency digests are scoped to captured inputs.
|
|
380
|
+
Later runs verify current source/configuration before reusing results. Selection
|
|
381
|
+
includes previous consumers when imports change and widens conservatively when
|
|
382
|
+
dependency evidence is missing.
|
|
383
|
+
|
|
384
|
+
Draft acceptance and guarded mutations run the draft owners' own registered
|
|
385
|
+
behavior contracts after `ads check` and `acceptance.scripts`, before writing
|
|
386
|
+
source, unless `acceptance.behavior` is false. `ads_validate` always runs every
|
|
387
|
+
contract its change set reaches, including the consumers of a changed shared
|
|
388
|
+
controller, selected conservatively. See [the two gates](validation.md). Rejected
|
|
389
|
+
and dry-run patches publish no source changes. Verification output stays under
|
|
390
|
+
`.ds/`. To check a draft, call `ads_accept({id, revision, dryRun:true})`. This
|
|
391
|
+
checks the candidate, including the owners' behavior contracts and their browser
|
|
392
|
+
preview, rendered through ADS's managed compiler. Candidate evidence is not
|
|
393
|
+
persisted as passing evidence for live source. `ads verify` runs checks for current
|
|
394
|
+
source and has no draft argument.
|
|
393
395
|
|
|
394
396
|
## Packaging and performance
|
|
395
397
|
|
|
396
398
|
Controllers follow normal component/scenario imports into the project's compiled
|
|
397
|
-
resource graph. Their framework dependencies are bundled by
|
|
399
|
+
resource graph. Their framework dependencies are bundled by ADS's Bun preview compiler
|
|
398
400
|
and served through MCP resources inside the App iframe; external hosts install
|
|
399
401
|
nothing. The selected scenario loads its dependency closure. Shared modules are
|
|
400
402
|
cached within that App instance, and each separately opened App has its own runtime.
|
|
401
403
|
|
|
402
404
|
Keep ESM modules and explicit imports. Avoid an eagerly imported controller
|
|
403
|
-
registry.
|
|
404
|
-
side effects, global CSS and dynamic
|
|
405
|
+
registry. Production tree shaking and shared chunks follow the application's
|
|
406
|
+
bundler; previews use Bun. Class methods, side effects, global CSS and dynamic
|
|
407
|
+
maps can retain extra code. Inspect emitted
|
|
405
408
|
resources instead of assuming a controller produces a minimal bundle.
|
|
406
409
|
|
|
407
410
|
Development-only `review/<Owner>` units may register the same guarantee/check
|
|
@@ -31,39 +31,116 @@ artwork; component styles still use tokens.
|
|
|
31
31
|
- **Show it in a component.** A logo appears in the UI through a project
|
|
32
32
|
component (the starter's `components/Content/Logo`) that imports the SVG with
|
|
33
33
|
a plain import, which gives its URL. Artwork that nothing uses is reported (`brand-unused`).
|
|
34
|
-
- **
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
- **It is previewed for you.** ADS renders the artwork in `assets/brand/`, subfolders included, in the
|
|
35
|
+
showcase's first section, **Brand** (`brand/Assets`): each artwork in the current theme and
|
|
36
|
+
separate construction-grid cards and clean actual-size samples. Projects author no brand
|
|
37
|
+
preview scenarios or renderers. The grid follows the SVG viewBox (or image pixel coordinates),
|
|
38
|
+
not the page's layout mini unit; the caption identifies its scale. It is an inspection aid,
|
|
39
|
+
not evidence that the artwork is correctly aligned beside text.
|
|
40
|
+
|
|
41
|
+
## Aligning artwork with text
|
|
42
|
+
|
|
43
|
+
Choose the relationship before changing dimensions. A UI icon, the project's brand mark
|
|
44
|
+
paired with its name, and another product's logo have different constraints.
|
|
45
|
+
|
|
46
|
+
**UI icons beside labels.** Use the project's icon-size and text-size pairing. The ADS
|
|
47
|
+
starter's 16/20/24/32px roles are a useful starting point, not a formula for every font.
|
|
48
|
+
Center the icon beside the label; align neighboring text spans by their text baseline.
|
|
49
|
+
Keep the SVG's intended internal padding and proportions. Do not baseline-align every
|
|
50
|
+
icon or resize its visible artwork to equal the capital letters. This follows
|
|
51
|
+
[IBM's UI icon guidance](https://www.ibm.com/design/language/iconography/ui-icons/usage/).
|
|
52
|
+
|
|
53
|
+
**A mark beside a brand name.** Prefer an approved combined wordmark when one exists.
|
|
54
|
+
Otherwise use a small-size mark appropriate to the text and preserve its documented
|
|
55
|
+
clear space. Start with a centered mark and a separate text group sharing one baseline:
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
const lockup = css`
|
|
59
|
+
@ads-lockup {
|
|
60
|
+
artwork: .ux-lockup-artwork;
|
|
61
|
+
text: .ux-lockup-text;
|
|
62
|
+
size: --icon-sm;
|
|
63
|
+
}
|
|
64
|
+
gap: var(--space-4);
|
|
65
|
+
& .ux-lockup-text {
|
|
66
|
+
gap: var(--space-4);
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
69
|
+
|
|
70
|
+
<span className={lockup}>
|
|
71
|
+
<span className="ux-lockup-artwork"><BrandMark /></span>
|
|
72
|
+
<span className="ux-lockup-text"><strong>ADS</strong><span>Workspace</span></span>
|
|
73
|
+
</span>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The lockup declares the artwork's height token and owns the relationship; the artwork
|
|
77
|
+
keeps its intrinsic width and proportions. The containing pattern owns spacing.
|
|
78
|
+
An intentionally cap-height-sized brand treatment is a separate documented
|
|
79
|
+
choice, not the default for all icons. CSS `cap` describes a font metric, not every
|
|
80
|
+
letter's painted edges. A mark inside a padded SVG viewBox does not fill its element box.
|
|
81
|
+
|
|
82
|
+
Review the actual size with the intended font loaded, the real label, both themes and
|
|
83
|
+
relevant zoom/text sizes. Use enlarged Brand/Icons grids to inspect padding and drawing
|
|
84
|
+
coordinates, then judge the clean small samples for legibility. Equal element heights
|
|
85
|
+
or matching the mini-unit grid do not prove optical balance. Keep corrections in the
|
|
86
|
+
owned artwork/component; avoid scattered per-use transforms that conceal inconsistent assets.
|
|
87
|
+
Whole-pixel outer sizes do not guarantee sharp internal edges: the SVG coordinates,
|
|
88
|
+
scale, element position and display pixel ratio all affect rasterization. A dense mark
|
|
89
|
+
may need an authorized small-size version rather than more shrinking or darker paint.
|
|
90
|
+
|
|
91
|
+
For a third-party logo, follow its owner's artwork and clear-space rules; the example
|
|
92
|
+
above does not authorize cropping, recoloring or redrawing it.
|
|
93
|
+
|
|
94
|
+
### What checks establish
|
|
95
|
+
|
|
96
|
+
`@ads-lockup` is an opt-in construction in an owned atomic Linaria template. It names
|
|
97
|
+
one direct artwork child and one direct text-group child using distinct class hooks
|
|
98
|
+
or data hooks such as `[data-lockup="art"]`. `size` is a shared token name, not a
|
|
99
|
+
pixel value or `var()` expression. No spatial definition is required.
|
|
100
|
+
|
|
101
|
+
Keep each text run in its own native span (or `strong`/`em`) inside the text group,
|
|
102
|
+
as above. ADS centers the artwork beside that group and baseline-aligns its runs.
|
|
103
|
+
It emits `text-box-trim: trim-both; text-box-edge: cap alphabetic` on those runs,
|
|
104
|
+
so font leading does not offset the letters from the mark. This trims the text's
|
|
105
|
+
alignment box; it does not shrink the artwork to cap height or clip descenders.
|
|
106
|
+
Browsers without text-trimming support retain ordinary box centering; review those
|
|
107
|
+
browsers separately when they are supported by the product.
|
|
108
|
+
|
|
109
|
+
The blocking `lockup-construction` control checks the declaration, owned hooks in
|
|
110
|
+
every resolved class alternative, inline SVG `preserveAspectRatio`, and conflicting
|
|
111
|
+
size, ratio, alignment or text-trimming styles, including composed classes. Change
|
|
112
|
+
the declaration instead of adding a second class to override it. Unknown class
|
|
113
|
+
evidence does not certify a lockup. Artwork may be an image/SVG or a wrapper for an
|
|
114
|
+
owned component/theme variants; emitted image/SVG sizing preserves intrinsic ratios.
|
|
115
|
+
|
|
116
|
+
This control does not impose square artwork, symmetry, internal padding or painted
|
|
117
|
+
edge equality. It does not inspect drawing coordinates or prove optical balance.
|
|
118
|
+
CSS or SVG internals hidden behind an opaque component/import need their owner's
|
|
119
|
+
checks and visual review. Standalone illustrations and undeclared brand treatments
|
|
120
|
+
are not lockups and remain unrestricted by this control.
|
|
121
|
+
|
|
122
|
+
Current ADS checks cover token/style ownership, glyph viewBoxes/colors, image shape,
|
|
123
|
+
accessible names and configured accessibility/render checks. They do not compare a
|
|
124
|
+
logo's painted edges to a label's glyphs, or choose the right icon/text size pairing
|
|
125
|
+
for a project. Do not report a clean check as proof of optical alignment.
|
|
39
126
|
|
|
40
127
|
## SVG masters, finished images and icon files
|
|
41
128
|
|
|
42
129
|
`assets/brand/` holds SVG masters, finished images (PNG, JPEG, WebP) and finished
|
|
43
130
|
icon files (`.ico`, `.icns`), in any mix. Each file is artwork in its own right:
|
|
44
131
|
described, previewed and used like an SVG. SVG renders cleanly at any size; a
|
|
45
|
-
finished image
|
|
46
|
-
app icon of 1024 px)
|
|
132
|
+
finished image should be delivered at or below its own pixel size, so supply it large
|
|
133
|
+
(an app icon of 1024 px). The Brand construction view may enlarge it for inspection;
|
|
134
|
+
that does not create higher-resolution artwork. A finished icon file is only copied.
|
|
47
135
|
Prefer SVG masters when they exist; take finished images as delivered when that
|
|
48
136
|
is what the brand provides.
|
|
49
137
|
|
|
50
138
|
## Pictograms and illustrations
|
|
51
139
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
group.
|
|
57
|
-
|
|
58
|
-
- Show them at 48 px or larger, at their original proportions; never crop or stretch them.
|
|
59
|
-
- Keep clear space of at least a quarter of their size on every side, with or without a
|
|
60
|
-
container. Containers are a circle or a square only, with the pictogram optically
|
|
61
|
-
centered.
|
|
62
|
-
- Pair light and dark versions as `<name>.svg` and `<name>.dark.svg`, and show the one that
|
|
63
|
-
matches the background: light artwork on light surfaces, dark on dark. Avoid mid-tone
|
|
64
|
-
backgrounds and gradients behind them.
|
|
65
|
-
- A pictogram that carries meaning needs a text alternative; one that repeats nearby text is
|
|
66
|
-
decorative (`alt=""`).
|
|
140
|
+
Illustrative pictograms belong in `assets/pictograms/` with `catalog.ads.json` and
|
|
141
|
+
have their own **Pictograms** gallery. Read [pictograms.md](pictograms.md) for theme
|
|
142
|
+
variants, artistic freedom and the source/render guards. They are separate from
|
|
143
|
+
brand identity and small UI glyphs. Existing artwork is not moved automatically.
|
|
67
144
|
|
|
68
145
|
## Web icons
|
|
69
146
|
|
|
@@ -158,7 +235,7 @@ or written permission.
|
|
|
158
235
|
The showcase's Icons tab shows each file as it is, on a white and a black tile.
|
|
159
236
|
|
|
160
237
|
ADS generates nothing from `assets/logos/` and does not treat its files as brand
|
|
161
|
-
artwork or glyphs: the brand checks (`brand-readme`, `brand-
|
|
238
|
+
artwork or glyphs: the brand checks (`brand-readme`, `brand-license`,
|
|
162
239
|
`brand-unused`), `assets.iconSource` and `assets.targets` cover only
|
|
163
240
|
`assets/brand/`, and the glyph checks cover only `assets.glyphs.source`. Keep the
|
|
164
|
-
project's own
|
|
241
|
+
project's own identity artwork in `assets/brand/`, and catalogued illustrative pictograms in `assets/pictograms/`.
|
|
@@ -81,6 +81,31 @@ Screenshots hide the text caret and disable animations by default. Set
|
|
|
81
81
|
`animations:"allow"` when motion must remain active, and account for nondeterminism.
|
|
82
82
|
The same capture settings are used for both sides of a candidate comparison.
|
|
83
83
|
|
|
84
|
+
## Capture layout guides
|
|
85
|
+
|
|
86
|
+
Select any combination of the showcase's existing geometry layers:
|
|
87
|
+
|
|
88
|
+
```js
|
|
89
|
+
ads_capture({
|
|
90
|
+
scenario: "patterns/Example",
|
|
91
|
+
guides: ["tracks", "gaps", "padding", "mini"],
|
|
92
|
+
viewport: { width: 1280, height: 800 }
|
|
93
|
+
})
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
`guides` accepts `bounds`, `tracks` (columns and rows), `gaps` (including gutters),
|
|
97
|
+
`padding`, `margins`, and `mini` (mini-unit squares). Omit it or pass `[]` for a
|
|
98
|
+
clean screenshot. Selected layers show on all visible elements using the same
|
|
99
|
+
overlay as the showcase, without hover or a toolbar in the image. Geometry is
|
|
100
|
+
drawn only where it exists; mini-unit squares use the project's mini-unit token.
|
|
101
|
+
Guides are supported for components, patterns, compositions and `tokens/Layout`;
|
|
102
|
+
other scenario kinds reject a nonempty selection.
|
|
103
|
+
|
|
104
|
+
Named targets retain their existing crop. Current and candidate use the same
|
|
105
|
+
guide selection, which is recorded in each image's `settings.guides`. It replaces
|
|
106
|
+
the existing scenario/target slots, not an additional image history. These
|
|
107
|
+
annotations are visual inspection aids, not evidence that layout checks pass.
|
|
108
|
+
|
|
84
109
|
## Review a draft without accepting it
|
|
85
110
|
|
|
86
111
|
Capture the draft's exact revision beside the accepted version, without acceptance
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Choose [direct source editing or MCP-only editing](workflows.md). CLI commands
|
|
4
4
|
are available to direct editors; MCP-only clients use exposed tools instead of
|
|
5
|
-
assuming shell access.
|
|
5
|
+
assuming shell access. ADS owns preview compilation: MCP manages its watcher;
|
|
6
|
+
`ads compile` provides the standalone/CI command.
|
|
6
7
|
|
|
7
8
|
Install Bun 1.4.1+ for ADS tooling and previews. The application keeps its own
|
|
8
9
|
Node/npm or Bun build pipeline. Use these commands alongside this skill's research,
|
|
9
10
|
implementation, documentation, and verification workflow. ADS must be a project
|
|
10
11
|
development dependency, and its checks must run before the project's build.
|
|
11
12
|
Routine builds use the local CLI. ADS manages its internal Turbo dependency and
|
|
12
|
-
local task cache automatically; no project Turbo configuration is required.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
inputs. `ads assets` also writes the generated entries: the styles entry and the
|
|
13
|
+
local task cache automatically; no project Turbo configuration is required.
|
|
14
|
+
Checks reuse successful source reports only when their captured inputs match.
|
|
15
|
+
`ads assets` also writes the generated entries: the styles entry and the
|
|
16
16
|
public/review barrels from the owners' `.ads.exports.ts` files.
|
|
17
17
|
In Hermit-managed projects, pin supported Bun (>=1.4.1); Turbo arrives through
|
|
18
18
|
ADS in devDependencies, so do not add a separate Hermit/global Turbo installation.
|
|
@@ -43,16 +43,16 @@ tooling and rejects conflicting saved/JSX settings instead of converting it.
|
|
|
43
43
|
|
|
44
44
|
Use the confirmed package name/version if different. For a Bun project, use
|
|
45
45
|
`bunx --bun @reqvire-org/ads init --framework react`, `bun install` and
|
|
46
|
-
`bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init
|
|
47
|
-
`packageManager` or `bun.lock`/`bun.lockb
|
|
48
|
-
with Bun. See [runtimes.md](runtimes.md)
|
|
46
|
+
`bun --bun run build`. Bun 1.4.1+ suffices; Node is unnecessary. Init reads
|
|
47
|
+
`packageManager` or `bun.lock`/`bun.lockb`. See [runtimes.md](runtimes.md)
|
|
49
48
|
for MCP configuration and portable compiler/behavior commands.
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
Init reads the package manager from the project: `packageManager` in `package.json`,
|
|
50
|
+
else its lockfile. A project that declares neither must set one first. Preserve the
|
|
51
|
+
project's existing package-manager policy and lockfile.
|
|
52
52
|
|
|
53
|
-
`
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
`init --include-starter` also adds the starter shipped in the same package version: its
|
|
54
|
+
example design system, Vite and TypeScript setup, scripts and development dependencies
|
|
55
|
+
that the project lacks. It never replaces an existing file or writes a lockfile.
|
|
56
56
|
`init` accepts no directory argument and requires an existing `package.json`. For an existing app, init preserves app files,
|
|
57
57
|
framework configuration, lockfiles, and build scripts. It adds only missing ADS
|
|
58
58
|
foundation files, config, development dependencies, and build checks. Existing
|
|
@@ -69,11 +69,11 @@ commit the updated lockfile.
|
|
|
69
69
|
## Local checkout testing
|
|
70
70
|
|
|
71
71
|
If no published distribution exists, build and pack the tooling checkout with
|
|
72
|
-
`
|
|
72
|
+
`bun run build` and `bun run pack:tool`. Resolve its tarball to an absolute path.
|
|
73
73
|
From inside an existing test project:
|
|
74
74
|
|
|
75
75
|
```sh
|
|
76
|
-
ads_tool_package="/absolute/path/to/
|
|
76
|
+
ads_tool_package="/absolute/path/to/the-tarball-produced-by-pack-tool.tgz"
|
|
77
77
|
npx --yes --package "$ads_tool_package" ads --help
|
|
78
78
|
npx --yes --package "$ads_tool_package" ads init --framework react --tool-package "$ads_tool_package"
|
|
79
79
|
npm install
|
|
@@ -81,7 +81,7 @@ npm run build
|
|
|
81
81
|
```
|
|
82
82
|
|
|
83
83
|
Use Bun's install/build commands for Bun projects. Keep npx options before
|
|
84
|
-
`
|
|
84
|
+
`ads`. `--tool-package` is optional local-testing/version-override support;
|
|
85
85
|
registry users do not need an archive. A `file:` dependency must remain
|
|
86
86
|
available wherever dependencies are installed. A published pinned version is
|
|
87
87
|
portable between machines.
|
|
@@ -114,23 +114,20 @@ Integrate that directory through the app's existing asset mount. Fixed token
|
|
|
114
114
|
names and prefixes are required; project values and artwork remain project-owned.
|
|
115
115
|
Builds use the installed local tool, not the initializing npx cache. Ignore `.ds/`.
|
|
116
116
|
Register component-specific guards as explicit project scripts and include them
|
|
117
|
-
in the project build and, when needed, `acceptance.
|
|
118
|
-
optional adapter for projects that explicitly choose Oxlint; ADS gates do not
|
|
119
|
-
require or invoke it.
|
|
117
|
+
in the project build and, when needed, `acceptance.scripts`.
|
|
120
118
|
|
|
121
119
|
`mcp` starts stdio plus its local website; `showcase` starts the browser-only MCP
|
|
122
120
|
runtime. Open the existing URL from `ads_status` when connected; otherwise use
|
|
123
|
-
`npm run dev:showcase` or the installed `ads showcase`. With the saved framework
|
|
124
|
-
|
|
121
|
+
`npm run dev:showcase` or the installed `ads showcase`. With the saved framework,
|
|
122
|
+
ADS supplies the Bun compiler and prewarms views
|
|
125
123
|
sequentially. Init supplies a framework mount adapter; existing projects can keep
|
|
126
|
-
their own compatible adapter
|
|
127
|
-
then use the same foundation and Linaria extraction as the application. Source discovery,
|
|
124
|
+
their own compatible adapter, using the same foundation and Linaria extraction as the application. Source discovery,
|
|
128
125
|
selected component/pattern/style/brand imports, explicit theme-value imports, and
|
|
129
126
|
migration are agent workflows. There is no CLI `import` command. Core checks
|
|
130
127
|
do not copy source, import values, or establish behavior/motion parity; continue
|
|
131
128
|
project type checking, meaningful tests, and browser comparisons.
|
|
132
129
|
|
|
133
130
|
If no CLI distribution is available, continue with the target's existing
|
|
134
|
-
checks;
|
|
131
|
+
checks; setting ADS up needs the ADS package (`ads init`).
|
|
135
132
|
Install skills separately with `npx skills`; the tool does not install skills
|
|
136
133
|
or fetch an external UI catalogue.
|
|
@@ -21,14 +21,15 @@ components/Plot/
|
|
|
21
21
|
Plot.ads.behavior.spec.ts registered browser checks
|
|
22
22
|
Plot.ads.test.tsx optional unit tests
|
|
23
23
|
Plot.ads.helpers.ts development-only adapters
|
|
24
|
+
Plot.ads.review.tsx project-specific demonstration presentation
|
|
24
25
|
README.md API/provenance
|
|
25
26
|
```
|
|
26
27
|
|
|
27
28
|
This is an example, not a required inventory. Use the same roles for patterns,
|
|
28
|
-
controllers and relevant development owners. `review/`
|
|
29
|
-
|
|
29
|
+
controllers and relevant development owners. `review/` optionally organizes shared scenario helpers; every implementation and
|
|
30
|
+
style file still carries its `.ads.review.*` marker.
|
|
30
31
|
Runtime components, types and styles cannot import `.ads.` files, tests, fixtures
|
|
31
|
-
or review code through aliases, barrels or helpers. Unknown `.ads.` roles are
|
|
32
|
+
or review code through aliases, barrels or helpers. Review presentation uses `.ads.review.*`; generic preview mounting uses `.ads.mount.*`. Unknown `.ads.` roles are
|
|
32
33
|
still development-only and are diagnosed. Fixtures/helpers cannot define styles;
|
|
33
34
|
put demo framing in review. Ordinary README/license files retain their names.
|
|
34
35
|
|
|
@@ -55,10 +56,10 @@ export type { ButtonProps } from "./Button";
|
|
|
55
56
|
|
|
56
57
|
An exports file holds only named re-exports of its own owner's modules by relative
|
|
57
58
|
path: no `export *`, no other code, no peers' files. Public names are unique across
|
|
58
|
-
owners. ADS generates the public barrel (`
|
|
59
|
+
owners. ADS generates the public barrel (`index.ts`) by copying
|
|
59
60
|
every exports file's re-exports with paths rebased onto the barrel, so it names each
|
|
60
61
|
public export directly from its source and a product build never includes an exports
|
|
61
|
-
file. The review entry is generated the same way from the exports files under `review/`. It also generates the styles entry (`
|
|
62
|
+
file. The review entry is generated the same way from the exports files under `review/`. It also generates the styles entry (`styles.css`) with one `@import`
|
|
62
63
|
per canonical token sheet in foundation order; the public barrel imports it first.
|
|
63
64
|
Never edit a generated entry: `ads check` reports a stale or hand-edited one
|
|
64
65
|
(`generated-entry`), and the showcase, the MCP server, draft previews, acceptance
|
|
@@ -208,7 +209,7 @@ one declared field, or a per-theme value built with the generated helpers from
|
|
|
208
209
|
takes the value for its color scheme). Every value is a declared field and the argument is
|
|
209
210
|
an object literal without spreads. The normal key/map/root proof still applies. Raw
|
|
210
211
|
constants, undeclared fields, `light-dark()`, extra writes and unknown transforms are
|
|
211
|
-
rejected. The
|
|
212
|
+
rejected. The render audit checks an accessible color reference in every theme's branch;
|
|
212
213
|
a local SVG URL or `none` is not a color there.
|
|
213
214
|
|
|
214
215
|
Families cannot overlap shared tokens, private runtime
|
|
@@ -34,6 +34,19 @@ belong under the shared token directory. The public contract remains about share
|
|
|
34
34
|
names, meanings, types and alias relationships; ADS supplies no hardcoded palette,
|
|
35
35
|
spacing grid or component catalogue.
|
|
36
36
|
|
|
37
|
+
## How the Tokens section is built
|
|
38
|
+
|
|
39
|
+
ADS renders the Tokens section itself from the token sheets and `tokens/catalog.ads.json`. Each
|
|
40
|
+
catalogue group is a sidebar group with one view per kind of token (fills, text colors, font
|
|
41
|
+
sizes, shadows…), derived from each token's sample property; a group with one kind is one view. The catalogue is project data: groups (`id`, `title`) and, for each
|
|
42
|
+
token, a sample binding `{ "token", "property", "probe" }`. `property` is the CSS property the
|
|
43
|
+
token is shown with; `probe` is a valid test value different from the token's own, which the view
|
|
44
|
+
swaps in to prove the property responds. Each token belongs to at most one group. A token with no
|
|
45
|
+
entry is listed under **Values** with a default binding for its type. When adding a token, add
|
|
46
|
+
its catalogue entry in the same change. Invalid JSON, unknown fields, duplicate groups or
|
|
47
|
+
bindings, and entries for undefined tokens are `foundation-catalog` errors. Do not write token
|
|
48
|
+
scenarios or review renderers; ADS owns the presentation.
|
|
49
|
+
|
|
37
50
|
## Component variables are mappings and runtime mechanics
|
|
38
51
|
|
|
39
52
|
`--ds-*` belongs to component implementations, `--ux-*` to patterns and review
|
|
@@ -72,6 +85,15 @@ calculations using shared values can remain valid; static analysis cannot prove
|
|
|
72
85
|
whether a dimensionless factor represents real geometry or an invented scale.
|
|
73
86
|
Review that intent and do not disguise a new design decision as arithmetic.
|
|
74
87
|
|
|
88
|
+
## Demonstration geometry stays out of production Data
|
|
89
|
+
|
|
90
|
+
The showcase owns generic preview framing. Project-specific `.ads.review.*`
|
|
91
|
+
helpers may declare finite dimensions for demonstration width/height, logical
|
|
92
|
+
sizes, flex-basis and grid tracks. Those values stay in development source;
|
|
93
|
+
they do not become production tokens. Color, typography, spacing and motion
|
|
94
|
+
still use production Data unchanged. Marked `.ads.*` CSS is excluded from the
|
|
95
|
+
production token inventory and cannot enter the production stylesheet graph.
|
|
96
|
+
|
|
75
97
|
## Review overlap without deleting legitimate roles
|
|
76
98
|
|
|
77
99
|
`token-overlap-review` is a nonblocking review item for shared tokens with identical
|
|
@@ -113,6 +135,9 @@ keeps independent component token definitions valid.
|
|
|
113
135
|
inside a track (segmented control, switch) uses `--control-inset` (add it to the spacing
|
|
114
136
|
tokens if the project has none). Anything that is not a control does not use
|
|
115
137
|
`--control-height-*`.
|
|
138
|
+
Local aliases preserve this requirement; a different size's padding token is not a
|
|
139
|
+
substitute. In the starter, control heights and side padding derive from shared spacing
|
|
140
|
+
primitives while retaining their established 32/40/48px heights and 10/14/18px padding.
|
|
116
141
|
|
|
117
142
|
`token-overlap-review` (review) compares values only within a token family (`--radius-*`
|
|
118
143
|
with `--radius-*`): a radius equal to a spacing step is two scales meeting, not a duplicate.
|
|
@@ -120,68 +145,40 @@ with `--radius-*`): a radius equal to a spacing step is two scales meeting, not
|
|
|
120
145
|
## Exchange format
|
|
121
146
|
|
|
122
147
|
`ads tokens --format dtcg` prints the tokens as W3C Design Tokens (Community Group draft)
|
|
123
|
-
JSON: groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
|
|
148
|
+
JSON (over MCP, read `ads://project/tokens/dtcg`, with `?theme=` and `?brand=`): groups by family, typed `$value`s, `{group.token}` references for `var()` aliases.
|
|
124
149
|
Values the format cannot express (fluid `clamp()` sizes, layered shadows) keep their CSS in
|
|
125
150
|
`$extensions["org.reqvire.ads"].css`; other themes' values are in
|
|
126
151
|
`$extensions["org.reqvire.ads"].scopes`.
|
|
127
152
|
|
|
128
|
-
##
|
|
129
|
-
|
|
130
|
-
The `--grid-*` tokens describe a column grid: `--grid-columns-sm/md/lg` (the starter's 4, 8
|
|
131
|
-
and 16), `--grid-gutter`, `--grid-gutter-narrow`, `--grid-gutter-condensed` and
|
|
132
|
-
`--grid-margin-sm/md/lg`, aliasing spacing steps. The starter's `Grid` switches columns by
|
|
133
|
-
container width (768 and 1024 px) with container queries, since CSS variables cannot be
|
|
134
|
-
breakpoints. The showcase's grid overlay draws these tokens over every preview at the same
|
|
135
|
-
widths; a project without them shows no overlay. Align text to a cell's edge, not its gutter.
|
|
153
|
+
## Layout widths
|
|
136
154
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
```css
|
|
144
|
-
inline-size: 100%;
|
|
145
|
-
@container (min-width: 1024px) { max-inline-size: var(--grid-span-10); }
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
Atomic CSS does not keep rule order, so two queries on one property need exclusive ranges:
|
|
149
|
-
|
|
150
|
-
```css
|
|
151
|
-
@container (min-width: 768px) and (max-width: 1023.98px) { max-inline-size: var(--grid-span-12); }
|
|
152
|
-
@container (min-width: 1024px) { max-inline-size: var(--grid-span-10); }
|
|
153
|
-
```
|
|
155
|
+
Grid geometry is not a set of width tokens. The `--grid-*` tokens are roles in the project's
|
|
156
|
+
spatial definition (`tokens/spatial.ads.json`): breakpoints, column counts, margins and gutter
|
|
157
|
+
insets. Layouts use them through `@ads-layout`, which ADS validates and compiles; see
|
|
158
|
+
`ads://guides/layout`. The showcase's layout guides draw the actual rendered tracks, gutters,
|
|
159
|
+
padding and margins of the inspected element.
|
|
154
160
|
|
|
155
161
|
Use `%` or `fr` for a share of the parent and a `ch` measure for running text
|
|
156
162
|
(`max-inline-size: 65ch`).
|
|
157
163
|
|
|
158
|
-
`layout-fixed-width`
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
When it fires, pick the fix by what the element is:
|
|
164
|
+
`layout-fixed-width` checks the role and bounds of a fixed minimum, rather than imposing a
|
|
165
|
+
universal pixel limit. Fixed sizes come from `spatial.ads.json`'s scale, its mini/fine units,
|
|
166
|
+
standard control/icon sizes, or explicit `layout.widthTokens` roles. Aliases and calculated
|
|
167
|
+
values retain their source roles; a fixed minimum must also fit the spatial maximum.
|
|
168
|
+
Projects without a spatial definition may use their shared `--space-N` sizing primitives.
|
|
164
169
|
|
|
165
170
|
| The element | Do |
|
|
166
171
|
|---|---|
|
|
167
|
-
| A
|
|
168
|
-
| A panel
|
|
169
|
-
| A
|
|
170
|
-
|
|
|
171
|
-
|
|
|
172
|
-
|
|
173
|
-
These do not fix it:
|
|
174
|
-
|
|
175
|
-
- Another unit. `32.5ch`, `20em` and `20rem` are as fixed as `280px`, and depend on the font too.
|
|
176
|
-
`ch` and `em` are measured at the rule's `font-size`, or 16 px.
|
|
177
|
-
- `max(100%, 280px)`, `clamp(200px, 50%, 400px)`, `calc(100% + 200px)`: they cannot shrink below
|
|
178
|
-
their fixed part.
|
|
179
|
-
- `min(100%, 64px)` around a small part. `layout-width-noop` asks for the plain size; in a flex or
|
|
180
|
-
grid parent the percentage can affect wrapping, so compare the scenario after changing it.
|
|
181
|
-
- A token name. `--control-*`, `--side-pane-*` and every other name are read for their value.
|
|
172
|
+
| A control, icon or fixed part | Use its shared control/icon size or a size in the spatial scale |
|
|
173
|
+
| A panel or column that can give way | Use `width: min(100%, var(--side-pane-width))`, a shrinking flex basis, or a fluid track |
|
|
174
|
+
| A fixed panel beside fluid content | Use `@ads-layout hybrid`; ADS checks remaining space at each tier |
|
|
175
|
+
| Repeated fixed tiles | Use `@ads-layout fixed` with a tile token |
|
|
176
|
+
| A fixed role outside the shared scale | Declare the token in `layout.widthTokens` and use it plainly |
|
|
177
|
+
| An overlay | Declare its owner in `layout.fixedWidthUnits`; keep its sizing in shared tokens |
|
|
182
178
|
|
|
183
|
-
|
|
184
|
-
|
|
179
|
+
Percentages, fractional tracks, intrinsic sizing, legitimate bounded calculations and maximum
|
|
180
|
+
sizes remain available. `min(100%, var(--space-8))` is valid: wrapping behavior is not a source
|
|
181
|
+
error. Declared fixed roles are listed for review (`layout-declared-width`).
|
|
185
182
|
|
|
186
183
|
`ads audit` opens each control with `aria-haspopup` and measures what opens, hovers and focuses
|
|
187
184
|
controls for contrast, and checks a control with `aria-busy="true"`. So give overlay triggers
|
|
@@ -190,8 +187,8 @@ controls for contrast, and checks a control with `aria-busy="true"`. So give ove
|
|
|
190
187
|
`layout-overflow` (`ads audit`) renders every UI scenario at 390, 768 and 1280 px and fails on
|
|
191
188
|
horizontal page overflow, elements past the viewport and clipped content. `overflow-x: auto`
|
|
192
189
|
scrollers and `text-overflow: ellipsis` are exempt. It also renders components and patterns in a
|
|
193
|
-
240 px container
|
|
194
|
-
scroll it. Only an overlay's owner, listed in `layout.fixedWidthUnits`, stays out of this render.
|
|
190
|
+
240 px container and lists a set width above 96 px that overflows it for review
|
|
191
|
+
(`layout-overflow-narrow`). Make that width fluid, or scroll it. Only an overlay's owner, listed in `layout.fixedWidthUnits`, stays out of this render.
|
|
195
192
|
|
|
196
193
|
## Color roles and states
|
|
197
194
|
|
|
@@ -350,5 +347,5 @@ padding inside components and for gaps between them; a value off the scale needs
|
|
|
350
347
|
Six durations (`--dur-instant` 70 ms, `--dur-fast` 110, `--dur-moderate` 150, `--dur-normal`
|
|
351
348
|
240, `--dur-slow` 400, `--dur-slower` 700) and three curve pairs (standard, enter and exit, each everyday and
|
|
352
349
|
`-strong`). Every duration is 0 under `prefers-reduced-motion`. Pick by purpose, not by
|
|
353
|
-
number: the ads-motion
|
|
350
|
+
number: the ads-designer motion guide (`references/motion.md`) maps each token to its use and gives the easing
|
|
354
351
|
rules.
|