@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
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from "react";
|
|
2
|
-
import { css } from "@linaria/atomic";
|
|
3
|
-
|
|
4
|
-
export interface ScreenFrameProps { title: string; description?: string; children?: ReactNode; }
|
|
5
|
-
|
|
6
|
-
const frame = css`
|
|
7
|
-
display: flex;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
gap: var(--space-8);
|
|
10
|
-
max-width: calc(var(--space-16) * 20);
|
|
11
|
-
padding: var(--space-12);
|
|
12
|
-
`;
|
|
13
|
-
const heading = css`
|
|
14
|
-
margin: 0;
|
|
15
|
-
font-size: var(--text-xl);
|
|
16
|
-
font-weight: var(--weight-semibold);
|
|
17
|
-
line-height: var(--leading-tight);
|
|
18
|
-
color: var(--text-strong);
|
|
19
|
-
`;
|
|
20
|
-
const lead = css`
|
|
21
|
-
margin: 0;
|
|
22
|
-
color: var(--text-muted);
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
/** Development-only page framing for composition scenarios: a heading and the page width. */
|
|
26
|
-
export function ScreenFrame({ title, description, children }: ScreenFrameProps) {
|
|
27
|
-
return (
|
|
28
|
-
<main className={frame}>
|
|
29
|
-
<h1 className={heading}>{title}</h1>
|
|
30
|
-
{description ? <p className={lead}>{description}</p> : null}
|
|
31
|
-
{children}
|
|
32
|
-
</main>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TokenPreview } from "./TokenPreview";
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect, useRef, useState } from "react";
|
|
2
|
-
import { css, cx } from "@linaria/atomic";
|
|
3
|
-
|
|
4
|
-
export interface TokenSample { token: `--${string}`; property: string; }
|
|
5
|
-
export interface TokenPreviewProps { title: string; samples: readonly TokenSample[]; text: string; }
|
|
6
|
-
|
|
7
|
-
const grid = css`
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-8) * 10), 1fr));
|
|
10
|
-
gap: var(--space-8);
|
|
11
|
-
padding: var(--space-8);
|
|
12
|
-
`;
|
|
13
|
-
const heading = css`
|
|
14
|
-
grid-column: 1 / -1;
|
|
15
|
-
margin: 0;
|
|
16
|
-
font-size: var(--text-base);
|
|
17
|
-
font-weight: var(--weight-semibold);
|
|
18
|
-
color: var(--text-body);
|
|
19
|
-
`;
|
|
20
|
-
const tile = css`
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
gap: var(--space-4);
|
|
24
|
-
padding: var(--space-8);
|
|
25
|
-
border: var(--border-w) solid var(--border-default);
|
|
26
|
-
border-radius: var(--radius-md);
|
|
27
|
-
background: var(--bg-surface);
|
|
28
|
-
overflow: hidden;
|
|
29
|
-
`;
|
|
30
|
-
const label = css`
|
|
31
|
-
font-size: var(--text-sm);
|
|
32
|
-
color: var(--text-muted);
|
|
33
|
-
overflow-wrap: anywhere;
|
|
34
|
-
`;
|
|
35
|
-
// Each sample shows its token through the property it styles: colors as swatches, lengths as
|
|
36
|
-
// bars, radius as a shape, type as text.
|
|
37
|
-
const sampleStyle = css`
|
|
38
|
-
display: block;
|
|
39
|
-
min-height: calc(var(--space-8) * 2);
|
|
40
|
-
color: var(--text-body);
|
|
41
|
-
font-size: var(--text-base);
|
|
42
|
-
&[data-ads-property="background-color"] {
|
|
43
|
-
border: var(--border-w) solid var(--border-default);
|
|
44
|
-
border-radius: var(--radius-md);
|
|
45
|
-
background-color: var(--ux-token-preview-value);
|
|
46
|
-
}
|
|
47
|
-
&[data-ads-property="color"] { color: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
|
|
48
|
-
&[data-ads-property="width"] {
|
|
49
|
-
width: var(--ux-token-preview-value);
|
|
50
|
-
max-width: 100%;
|
|
51
|
-
min-height: var(--space-8);
|
|
52
|
-
background: var(--accent);
|
|
53
|
-
}
|
|
54
|
-
&[data-ads-property="border-radius"] {
|
|
55
|
-
width: calc(var(--space-8) * 3);
|
|
56
|
-
border: var(--focus-w) solid var(--accent);
|
|
57
|
-
border-radius: var(--ux-token-preview-value);
|
|
58
|
-
}
|
|
59
|
-
&[data-ads-property="font-family"] { font-family: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
|
|
60
|
-
&[data-ads-property="font-size"] { font-size: var(--ux-token-preview-value); }
|
|
61
|
-
&[data-ads-property="font-weight"] { font-weight: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 2); line-height: 1; }
|
|
62
|
-
&[data-ads-property="line-height"] { line-height: var(--ux-token-preview-value); }
|
|
63
|
-
/* Column counts draw that many columns: stripes with a gap, filling the tile. */
|
|
64
|
-
&[data-ads-property="column-count"] {
|
|
65
|
-
column-count: var(--ux-token-preview-value);
|
|
66
|
-
height: calc(var(--space-8) * 3);
|
|
67
|
-
background: repeating-linear-gradient(
|
|
68
|
-
to right,
|
|
69
|
-
var(--accent) 0 calc((100% + var(--space-2)) / var(--ux-token-preview-value) - var(--space-2)),
|
|
70
|
-
transparent 0 calc((100% + var(--space-2)) / var(--ux-token-preview-value))
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
&[data-ads-property="letter-spacing"] { letter-spacing: var(--ux-token-preview-value); font-size: calc(var(--text-base) * 1.5); }
|
|
74
|
-
&[data-ads-property="height"] {
|
|
75
|
-
height: var(--ux-token-preview-value);
|
|
76
|
-
width: calc(var(--space-16) * 2);
|
|
77
|
-
border-radius: var(--radius-md);
|
|
78
|
-
background: var(--accent);
|
|
79
|
-
}
|
|
80
|
-
&[data-ads-property="box-shadow"] {
|
|
81
|
-
border-radius: var(--radius-md);
|
|
82
|
-
background: var(--bg-surface);
|
|
83
|
-
box-shadow: var(--ux-token-preview-value);
|
|
84
|
-
}
|
|
85
|
-
/* Durations and easing move a dot across the tile. */
|
|
86
|
-
&[data-ads-property="animation-duration"], &[data-ads-property="animation-timing-function"] {
|
|
87
|
-
width: var(--space-8);
|
|
88
|
-
border-radius: 50%;
|
|
89
|
-
background: var(--accent);
|
|
90
|
-
animation-name: ux-token-preview-travel;
|
|
91
|
-
animation-iteration-count: infinite;
|
|
92
|
-
animation-direction: alternate;
|
|
93
|
-
}
|
|
94
|
-
&[data-ads-property="animation-duration"] {
|
|
95
|
-
animation-duration: calc(var(--ux-token-preview-value) * 8);
|
|
96
|
-
animation-timing-function: var(--ease-standard);
|
|
97
|
-
}
|
|
98
|
-
&[data-ads-property="animation-timing-function"] {
|
|
99
|
-
animation-duration: calc(var(--dur-normal) * 6);
|
|
100
|
-
animation-timing-function: var(--ux-token-preview-value);
|
|
101
|
-
}
|
|
102
|
-
&[data-ads-property="z-index"] { z-index: var(--ux-token-preview-value); position: relative; }
|
|
103
|
-
@keyframes ux-token-preview-travel { to { transform: translateX(calc(var(--space-8) * 6)); } }
|
|
104
|
-
`;
|
|
105
|
-
|
|
106
|
-
function TokenTile({ sample, text }: { sample: TokenSample; text: string }) {
|
|
107
|
-
const ref = useRef<HTMLSpanElement>(null);
|
|
108
|
-
const [value, setValue] = useState("");
|
|
109
|
-
useLayoutEffect(() => {
|
|
110
|
-
ref.current?.style.setProperty("--ux-token-preview-value", `var(${sample.token})`);
|
|
111
|
-
// The value as the page computes it now, again when the theme changes.
|
|
112
|
-
const read = () => setValue(getComputedStyle(document.documentElement).getPropertyValue(sample.token).trim());
|
|
113
|
-
read();
|
|
114
|
-
const observer = new MutationObserver(read);
|
|
115
|
-
observer.observe(document.documentElement, { attributes: true, attributeFilter: ["data-theme"] });
|
|
116
|
-
return () => observer.disconnect();
|
|
117
|
-
}, [sample.token]);
|
|
118
|
-
return (
|
|
119
|
-
<article className={cx("ux-token-preview__item", tile)}>
|
|
120
|
-
<span ref={ref} className={cx("ux-token-preview__sample", sampleStyle)} data-ads-token={sample.token} data-ads-property={sample.property}>
|
|
121
|
-
{["background-color", "width", "height", "border-radius", "box-shadow", "column-count", "animation-duration", "animation-timing-function"].includes(sample.property) ? "" : text}
|
|
122
|
-
</span>
|
|
123
|
-
<code className={cx("ux-token-preview__name", label)}>{sample.token}</code>
|
|
124
|
-
<small className={label}>{value}</small>
|
|
125
|
-
</article>
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/** Project-owned review UI: one tile per token. Values always come from the real foundation CSS. */
|
|
130
|
-
export function TokenPreview({ title, samples, text }: TokenPreviewProps) {
|
|
131
|
-
return (
|
|
132
|
-
<section aria-label={title} className={cx("ux-token-preview", grid)}>
|
|
133
|
-
<h1 className={heading}>{title}</h1>
|
|
134
|
-
{samples.map(sample => <TokenTile key={`${sample.token}:${sample.property}`} sample={sample} text={text} />)}
|
|
135
|
-
</section>
|
|
136
|
-
);
|
|
137
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>ADS scenario</title><style>html,body,#root{height:100%}body{overflow:hidden}</style></head><body><div id="root"></div><script type="module" src="./main.tsx"></script></body></html>
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
export const fixture = {
|
|
2
|
-
"title": "Color",
|
|
3
|
-
"text": "Aa",
|
|
4
|
-
samples: [
|
|
5
|
-
{"token": "--slate-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
6
|
-
{"token": "--slate-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
7
|
-
{"token": "--slate-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
8
|
-
{"token": "--slate-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
9
|
-
{"token": "--slate-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
10
|
-
{"token": "--slate-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
11
|
-
{"token": "--slate-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
12
|
-
{"token": "--slate-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
13
|
-
{"token": "--slate-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
14
|
-
{"token": "--slate-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
15
|
-
{"token": "--slate-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
16
|
-
{"token": "--slate-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
17
|
-
{"token": "--color-accent-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
18
|
-
{"token": "--color-accent-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
19
|
-
{"token": "--color-accent-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
20
|
-
{"token": "--color-accent-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
21
|
-
{"token": "--color-accent-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
22
|
-
{"token": "--color-accent-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
23
|
-
{"token": "--color-accent-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
24
|
-
{"token": "--color-accent-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
25
|
-
{"token": "--color-accent-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
26
|
-
{"token": "--color-accent-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
27
|
-
{"token": "--color-accent-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
28
|
-
{"token": "--color-accent-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
29
|
-
{"token": "--color-green-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
30
|
-
{"token": "--color-green-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
31
|
-
{"token": "--color-green-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
32
|
-
{"token": "--color-green-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
33
|
-
{"token": "--color-green-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
34
|
-
{"token": "--color-green-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
35
|
-
{"token": "--color-green-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
36
|
-
{"token": "--color-green-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
37
|
-
{"token": "--color-green-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
38
|
-
{"token": "--color-green-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
39
|
-
{"token": "--color-green-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
40
|
-
{"token": "--color-green-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
41
|
-
{"token": "--color-amber-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
42
|
-
{"token": "--color-amber-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
43
|
-
{"token": "--color-amber-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
44
|
-
{"token": "--color-amber-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
45
|
-
{"token": "--color-amber-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
46
|
-
{"token": "--color-amber-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
47
|
-
{"token": "--color-amber-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
48
|
-
{"token": "--color-amber-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
49
|
-
{"token": "--color-amber-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
50
|
-
{"token": "--color-amber-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
51
|
-
{"token": "--color-amber-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
52
|
-
{"token": "--color-amber-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
53
|
-
{"token": "--color-red-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
54
|
-
{"token": "--color-red-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
55
|
-
{"token": "--color-red-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
56
|
-
{"token": "--color-red-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
57
|
-
{"token": "--color-red-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
58
|
-
{"token": "--color-red-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
59
|
-
{"token": "--color-red-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
60
|
-
{"token": "--color-red-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
61
|
-
{"token": "--color-red-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
62
|
-
{"token": "--color-red-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
63
|
-
{"token": "--color-red-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
64
|
-
{"token": "--color-red-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
65
|
-
{"token": "--color-blue-1", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
66
|
-
{"token": "--color-blue-2", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
67
|
-
{"token": "--color-blue-3", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
68
|
-
{"token": "--color-blue-4", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
69
|
-
{"token": "--color-blue-5", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
70
|
-
{"token": "--color-blue-6", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
71
|
-
{"token": "--color-blue-7", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
72
|
-
{"token": "--color-blue-8", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
73
|
-
{"token": "--color-blue-9", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
74
|
-
{"token": "--color-blue-10", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
75
|
-
{"token": "--color-blue-11", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
76
|
-
{"token": "--color-blue-12", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
77
|
-
{"token": "--bg-canvas", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
78
|
-
{"token": "--bg-surface", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
79
|
-
{"token": "--bg-raised", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
80
|
-
{"token": "--bg-field", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
81
|
-
{"token": "--bg-hover", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
82
|
-
{"token": "--bg-active", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
83
|
-
{"token": "--bg-selected", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
84
|
-
{"token": "--bg-disabled", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
85
|
-
{"token": "--bg-skeleton", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
86
|
-
{"token": "--bg-overlay", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
87
|
-
{"token": "--text-strong", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
88
|
-
{"token": "--text-body", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
89
|
-
{"token": "--text-muted", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
90
|
-
{"token": "--text-inverse", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
91
|
-
{"token": "--text-link", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
92
|
-
{"token": "--text-disabled", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
93
|
-
{"token": "--border-subtle", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
94
|
-
{"token": "--border-default", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
95
|
-
{"token": "--border-strong", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
96
|
-
{"token": "--border-focus", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
97
|
-
{"token": "--border-disabled", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
98
|
-
{"token": "--accent", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
99
|
-
{"token": "--accent-hover", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
100
|
-
{"token": "--accent-fg", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
101
|
-
{"token": "--accent-subtle", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
102
|
-
{"token": "--accent-text", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
103
|
-
{"token": "--success", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
104
|
-
{"token": "--success-fg", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
105
|
-
{"token": "--success-bg", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
106
|
-
{"token": "--success-border", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
107
|
-
{"token": "--success-text", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
108
|
-
{"token": "--warning", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
109
|
-
{"token": "--warning-fg", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
110
|
-
{"token": "--warning-bg", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
111
|
-
{"token": "--warning-border", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
112
|
-
{"token": "--warning-text", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
113
|
-
{"token": "--danger", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
114
|
-
{"token": "--danger-fg", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
115
|
-
{"token": "--danger-bg", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
116
|
-
{"token": "--danger-border", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
117
|
-
{"token": "--danger-text", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
118
|
-
{"token": "--info", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
119
|
-
{"token": "--info-fg", "property": "color", "probe": "rgb(31, 97, 163)"},
|
|
120
|
-
{"token": "--info-bg", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
121
|
-
{"token": "--info-border", "property": "background-color", "probe": "rgb(31, 97, 163)"},
|
|
122
|
-
{"token": "--info-text", "property": "color", "probe": "rgb(31, 97, 163)"}
|
|
123
|
-
]
|
|
124
|
-
} as const;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TokenPreview } from "@ds/review";
|
|
2
|
-
import { fixture } from "./Color.ads.fixture";
|
|
3
|
-
export const scenario = { title: fixture.title, covers: ["TokenPreview"], samples: fixture.samples };
|
|
4
|
-
export default function Scenario() { return <TokenPreview {...fixture} />; }
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export const fixture = {
|
|
2
|
-
"title": "Layout",
|
|
3
|
-
"text": "Aa",
|
|
4
|
-
samples: [
|
|
5
|
-
{"token": "--grid-columns-sm", "property": "column-count", "probe": "13"},
|
|
6
|
-
{"token": "--grid-columns-md", "property": "column-count", "probe": "13"},
|
|
7
|
-
{"token": "--grid-columns-lg", "property": "column-count", "probe": "13"},
|
|
8
|
-
{"token": "--grid-gutter", "property": "width", "probe": "13.375px"},
|
|
9
|
-
{"token": "--grid-gutter-narrow", "property": "width", "probe": "13.375px"},
|
|
10
|
-
{"token": "--grid-gutter-condensed", "property": "width", "probe": "13.375px"},
|
|
11
|
-
{"token": "--grid-margin-sm", "property": "width", "probe": "13.375px"},
|
|
12
|
-
{"token": "--grid-margin-md", "property": "width", "probe": "13.375px"},
|
|
13
|
-
{"token": "--grid-margin-lg", "property": "width", "probe": "13.375px"},
|
|
14
|
-
{"token": "--grid-span-1", "property": "width", "probe": "13.375px"},
|
|
15
|
-
{"token": "--grid-span-2", "property": "width", "probe": "13.375px"},
|
|
16
|
-
{"token": "--grid-span-3", "property": "width", "probe": "13.375px"},
|
|
17
|
-
{"token": "--grid-span-4", "property": "width", "probe": "13.375px"},
|
|
18
|
-
{"token": "--grid-span-5", "property": "width", "probe": "13.375px"},
|
|
19
|
-
{"token": "--grid-span-6", "property": "width", "probe": "13.375px"},
|
|
20
|
-
{"token": "--grid-span-7", "property": "width", "probe": "13.375px"},
|
|
21
|
-
{"token": "--grid-span-8", "property": "width", "probe": "13.375px"},
|
|
22
|
-
{"token": "--grid-span-9", "property": "width", "probe": "13.375px"},
|
|
23
|
-
{"token": "--grid-span-10", "property": "width", "probe": "13.375px"},
|
|
24
|
-
{"token": "--grid-span-11", "property": "width", "probe": "13.375px"},
|
|
25
|
-
{"token": "--grid-span-12", "property": "width", "probe": "13.375px"},
|
|
26
|
-
{"token": "--grid-span-13", "property": "width", "probe": "13.375px"},
|
|
27
|
-
{"token": "--grid-span-14", "property": "width", "probe": "13.375px"},
|
|
28
|
-
{"token": "--grid-span-15", "property": "width", "probe": "13.375px"},
|
|
29
|
-
{"token": "--grid-span-16", "property": "width", "probe": "13.375px"},
|
|
30
|
-
{"token": "--content-max", "property": "width", "probe": "13.375px"},
|
|
31
|
-
{"token": "--container-sm", "property": "width", "probe": "13.375px"},
|
|
32
|
-
{"token": "--container-md", "property": "width", "probe": "13.375px"},
|
|
33
|
-
{"token": "--container-lg", "property": "width", "probe": "13.375px"},
|
|
34
|
-
{"token": "--container-xl", "property": "width", "probe": "13.375px"},
|
|
35
|
-
{"token": "--app-header-height", "property": "width", "probe": "13.375px"},
|
|
36
|
-
{"token": "--side-pane-width", "property": "width", "probe": "13.375px"},
|
|
37
|
-
{"token": "--navigation-rail-width", "property": "width", "probe": "13.375px"}
|
|
38
|
-
]
|
|
39
|
-
} as const;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TokenPreview } from "@ds/review";
|
|
2
|
-
import { fixture } from "./Layout.ads.fixture";
|
|
3
|
-
export const scenario = { title: fixture.title, covers: ["TokenPreview"], samples: fixture.samples };
|
|
4
|
-
export default function Scenario() { return <TokenPreview {...fixture} />; }
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export const fixture = {
|
|
2
|
-
"title": "Motion",
|
|
3
|
-
"text": "Aa",
|
|
4
|
-
samples: [
|
|
5
|
-
{"token": "--dur-instant", "property": "animation-duration", "probe": "0.375s"},
|
|
6
|
-
{"token": "--dur-fast", "property": "animation-duration", "probe": "0.375s"},
|
|
7
|
-
{"token": "--dur-moderate", "property": "animation-duration", "probe": "0.375s"},
|
|
8
|
-
{"token": "--dur-normal", "property": "animation-duration", "probe": "0.375s"},
|
|
9
|
-
{"token": "--dur-slow", "property": "animation-duration", "probe": "0.375s"},
|
|
10
|
-
{"token": "--dur-slower", "property": "animation-duration", "probe": "0.375s"},
|
|
11
|
-
{"token": "--ease-standard", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"},
|
|
12
|
-
{"token": "--ease-enter", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"},
|
|
13
|
-
{"token": "--ease-exit", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"},
|
|
14
|
-
{"token": "--ease-strong", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"},
|
|
15
|
-
{"token": "--ease-enter-strong", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"},
|
|
16
|
-
{"token": "--ease-exit-strong", "property": "animation-timing-function", "probe": "cubic-bezier(.13,.27,.61,.83)"}
|
|
17
|
-
]
|
|
18
|
-
} as const;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TokenPreview } from "@ds/review";
|
|
2
|
-
import { fixture } from "./Motion.ads.fixture";
|
|
3
|
-
export const scenario = { title: fixture.title, covers: ["TokenPreview"], samples: fixture.samples };
|
|
4
|
-
export default function Scenario() { return <TokenPreview {...fixture} />; }
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export const fixture = {
|
|
2
|
-
"title": "Shape & elevation",
|
|
3
|
-
"text": "Aa",
|
|
4
|
-
samples: [
|
|
5
|
-
{"token": "--radius-xs", "property": "border-radius", "probe": "13.375px"},
|
|
6
|
-
{"token": "--radius-sm", "property": "border-radius", "probe": "13.375px"},
|
|
7
|
-
{"token": "--radius-md", "property": "border-radius", "probe": "13.375px"},
|
|
8
|
-
{"token": "--radius-lg", "property": "border-radius", "probe": "13.375px"},
|
|
9
|
-
{"token": "--radius-xl", "property": "border-radius", "probe": "13.375px"},
|
|
10
|
-
{"token": "--radius-2xl", "property": "border-radius", "probe": "13.375px"},
|
|
11
|
-
{"token": "--radius-full", "property": "border-radius", "probe": "13.375px"},
|
|
12
|
-
{"token": "--border-w", "property": "width", "probe": "13.375px"},
|
|
13
|
-
{"token": "--border-w-thick", "property": "width", "probe": "13.375px"},
|
|
14
|
-
{"token": "--focus-w", "property": "width", "probe": "13.375px"},
|
|
15
|
-
{"token": "--focus-offset", "property": "width", "probe": "13.375px"},
|
|
16
|
-
{"token": "--shadow-xs", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
|
|
17
|
-
{"token": "--shadow-sm", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
|
|
18
|
-
{"token": "--shadow-md", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
|
|
19
|
-
{"token": "--shadow-lg", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
|
|
20
|
-
{"token": "--shadow-xl", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
|
|
21
|
-
{"token": "--shadow-raised", "property": "box-shadow", "probe": "1px 3px 5px rgb(31, 97, 163)"},
|
|
22
|
-
{"token": "--z-base", "property": "z-index", "probe": "367"},
|
|
23
|
-
{"token": "--z-dropdown", "property": "z-index", "probe": "367"},
|
|
24
|
-
{"token": "--z-sticky", "property": "z-index", "probe": "367"},
|
|
25
|
-
{"token": "--z-overlay", "property": "z-index", "probe": "367"},
|
|
26
|
-
{"token": "--z-modal", "property": "z-index", "probe": "367"},
|
|
27
|
-
{"token": "--z-toast", "property": "z-index", "probe": "367"},
|
|
28
|
-
{"token": "--z-tooltip", "property": "z-index", "probe": "367"}
|
|
29
|
-
]
|
|
30
|
-
} as const;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TokenPreview } from "@ds/review";
|
|
2
|
-
import { fixture } from "./Shape.ads.fixture";
|
|
3
|
-
export const scenario = { title: fixture.title, covers: ["TokenPreview"], samples: fixture.samples };
|
|
4
|
-
export default function Scenario() { return <TokenPreview {...fixture} />; }
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export const fixture = {
|
|
2
|
-
"title": "Space & sizing",
|
|
3
|
-
"text": "Aa",
|
|
4
|
-
samples: [
|
|
5
|
-
{"token": "--space-0", "property": "width", "probe": "13.375px"},
|
|
6
|
-
{"token": "--space-1", "property": "width", "probe": "13.375px"},
|
|
7
|
-
{"token": "--space-2", "property": "width", "probe": "13.375px"},
|
|
8
|
-
{"token": "--space-3", "property": "width", "probe": "13.375px"},
|
|
9
|
-
{"token": "--space-4", "property": "width", "probe": "13.375px"},
|
|
10
|
-
{"token": "--space-6", "property": "width", "probe": "13.375px"},
|
|
11
|
-
{"token": "--space-8", "property": "width", "probe": "13.375px"},
|
|
12
|
-
{"token": "--space-10", "property": "width", "probe": "13.375px"},
|
|
13
|
-
{"token": "--space-12", "property": "width", "probe": "13.375px"},
|
|
14
|
-
{"token": "--space-16", "property": "width", "probe": "13.375px"},
|
|
15
|
-
{"token": "--space-20", "property": "width", "probe": "13.375px"},
|
|
16
|
-
{"token": "--space-24", "property": "width", "probe": "13.375px"},
|
|
17
|
-
{"token": "--space-32", "property": "width", "probe": "13.375px"},
|
|
18
|
-
{"token": "--space-40", "property": "width", "probe": "13.375px"},
|
|
19
|
-
{"token": "--space-48", "property": "width", "probe": "13.375px"},
|
|
20
|
-
{"token": "--space-80", "property": "width", "probe": "13.375px"},
|
|
21
|
-
{"token": "--space-stack-sm", "property": "width", "probe": "13.375px"},
|
|
22
|
-
{"token": "--space-stack-md", "property": "width", "probe": "13.375px"},
|
|
23
|
-
{"token": "--space-stack-lg", "property": "width", "probe": "13.375px"},
|
|
24
|
-
{"token": "--space-flow-paragraph", "property": "width", "probe": "13.375px"},
|
|
25
|
-
{"token": "--space-flow-heading", "property": "width", "probe": "13.375px"},
|
|
26
|
-
{"token": "--control-height-sm", "property": "height", "probe": "13.375px"},
|
|
27
|
-
{"token": "--control-height-md", "property": "height", "probe": "13.375px"},
|
|
28
|
-
{"token": "--control-height-lg", "property": "height", "probe": "13.375px"},
|
|
29
|
-
{"token": "--control-padding-sm", "property": "width", "probe": "13.375px"},
|
|
30
|
-
{"token": "--control-padding-md", "property": "width", "probe": "13.375px"},
|
|
31
|
-
{"token": "--control-padding-lg", "property": "width", "probe": "13.375px"},
|
|
32
|
-
{"token": "--icon-sm", "property": "width", "probe": "13.375px"},
|
|
33
|
-
{"token": "--icon-md", "property": "width", "probe": "13.375px"},
|
|
34
|
-
{"token": "--icon-lg", "property": "width", "probe": "13.375px"},
|
|
35
|
-
{"token": "--icon-xl", "property": "width", "probe": "13.375px"}
|
|
36
|
-
]
|
|
37
|
-
} as const;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TokenPreview } from "@ds/review";
|
|
2
|
-
import { fixture } from "./Space.ads.fixture";
|
|
3
|
-
export const scenario = { title: fixture.title, covers: ["TokenPreview"], samples: fixture.samples };
|
|
4
|
-
export default function Scenario() { return <TokenPreview {...fixture} />; }
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export const fixture = {
|
|
2
|
-
"title": "Type",
|
|
3
|
-
"text": "Aa",
|
|
4
|
-
samples: [
|
|
5
|
-
{"token": "--font-sans", "property": "font-family", "probe": "monospace, serif"},
|
|
6
|
-
{"token": "--font-mono", "property": "font-family", "probe": "monospace, serif"},
|
|
7
|
-
{"token": "--text-xs", "property": "font-size", "probe": "41.375px"},
|
|
8
|
-
{"token": "--text-sm", "property": "font-size", "probe": "41.375px"},
|
|
9
|
-
{"token": "--text-base", "property": "font-size", "probe": "41.375px"},
|
|
10
|
-
{"token": "--text-lg", "property": "font-size", "probe": "41.375px"},
|
|
11
|
-
{"token": "--text-xl", "property": "font-size", "probe": "41.375px"},
|
|
12
|
-
{"token": "--text-2xl", "property": "font-size", "probe": "41.375px"},
|
|
13
|
-
{"token": "--text-3xl", "property": "font-size", "probe": "41.375px"},
|
|
14
|
-
{"token": "--text-4xl", "property": "font-size", "probe": "41.375px"},
|
|
15
|
-
{"token": "--text-5xl", "property": "font-size", "probe": "41.375px"},
|
|
16
|
-
{"token": "--weight-normal", "property": "font-weight", "probe": "327"},
|
|
17
|
-
{"token": "--weight-medium", "property": "font-weight", "probe": "327"},
|
|
18
|
-
{"token": "--weight-semibold", "property": "font-weight", "probe": "327"},
|
|
19
|
-
{"token": "--weight-bold", "property": "font-weight", "probe": "327"},
|
|
20
|
-
{"token": "--leading-none", "property": "line-height", "probe": "2.375"},
|
|
21
|
-
{"token": "--leading-tight", "property": "line-height", "probe": "2.375"},
|
|
22
|
-
{"token": "--leading-snug", "property": "line-height", "probe": "2.375"},
|
|
23
|
-
{"token": "--leading-normal", "property": "line-height", "probe": "2.375"},
|
|
24
|
-
{"token": "--leading-relaxed", "property": "line-height", "probe": "2.375"},
|
|
25
|
-
{"token": "--tracking-tight", "property": "letter-spacing", "probe": "3.375px"},
|
|
26
|
-
{"token": "--tracking-normal", "property": "letter-spacing", "probe": "3.375px"},
|
|
27
|
-
{"token": "--tracking-wide", "property": "letter-spacing", "probe": "3.375px"}
|
|
28
|
-
]
|
|
29
|
-
} as const;
|