@reqvire-org/ads 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -6
- package/dist/ads-errors.mjs +275 -12
- package/dist/ads-views.mjs +4 -4
- package/dist/analysis/design-usage.mjs +20 -4
- package/dist/analysis/mock-check.mjs +5 -4
- package/dist/analysis/owner-analysis-key.mjs +1 -1
- package/dist/analysis/owner-choices.mjs +172 -39
- package/dist/analysis/owner-composition.mjs +37 -13
- package/dist/analysis/owner-controls.mjs +27 -0
- package/dist/analysis/owner-source.mjs +67 -18
- package/dist/analysis/prose-owners.mjs +57 -0
- package/dist/analysis/styling-ownership.mjs +22 -0
- package/dist/check.mjs +7 -1
- package/dist/cli-arguments.mjs +2 -2
- package/dist/cli.mjs +3 -3
- package/dist/composed-contrast.mjs +28 -8
- package/dist/composed-keyline.mjs +107 -0
- package/dist/construction-output.mjs +146 -18
- package/dist/construction-spec.d.mts +212 -9
- package/dist/construction-spec.mjs +297 -56
- package/dist/corner-overpaint.mjs +53 -0
- package/dist/design-foundation.mjs +6 -1
- package/dist/design-usage.mjs +8 -2
- package/dist/emit/emission.mjs +11 -4
- package/dist/emit/font-emission.mjs +21 -1
- package/dist/emit/foundation-sheet.mjs +6 -5
- package/dist/emit/preview-tree.mjs +1 -1
- package/dist/finding-rules.mjs +7 -0
- package/dist/font-checks.mjs +42 -0
- package/dist/font-declaration.d.mts +10 -0
- package/dist/font-declaration.mjs +25 -3
- package/dist/font-fallback.d.mts +37 -0
- package/dist/font-fallback.mjs +25 -0
- package/dist/font-macro.d.mts +10 -0
- package/dist/font-metrics.d.mts +34 -0
- package/dist/font-metrics.mjs +314 -0
- package/dist/font-model.mjs +28 -2
- package/dist/foundation-macro.d.mts +1 -1
- package/dist/frame-regions.mjs +66 -3
- package/dist/grid-facts.mjs +72 -16
- package/dist/grid-lowering.mjs +11 -5
- package/dist/init.mjs +14 -23
- package/dist/lowering-enter.mjs +31 -0
- package/dist/lowering-properties.mjs +22 -1
- package/dist/lowering-region-layout.mjs +42 -8
- package/dist/lowering-sequence.mjs +89 -0
- package/dist/lowering-session.mjs +7 -0
- package/dist/lowering-transitions.mjs +22 -8
- package/dist/mcp/preview-http.bundle.js +2 -2
- package/dist/mcp/preview-widget.bundle.js +5 -5
- package/dist/motion-model.mjs +2 -0
- package/dist/owner-analysis-check.mjs +67 -7
- package/dist/owner-errors.mjs +16 -0
- package/dist/owner-lowering.mjs +36 -16
- package/dist/owner-scenarios.mjs +25 -3
- package/dist/ownership-model.mjs +23 -4
- package/dist/paint-contrast.mjs +5 -0
- package/dist/placeholder-contrast.mjs +1 -0
- package/dist/platform-features.mjs +26 -2
- package/dist/preview-bun.mjs +17 -16
- package/dist/preview-controls.mjs +35 -0
- package/dist/preview-incremental.mjs +1 -1
- package/dist/preview-source.mjs +2 -2
- package/dist/profile-macro.d.mts +15 -0
- package/dist/profile-model.mjs +3 -3
- package/dist/profile-view-facts.mjs +55 -4
- package/dist/prose-model.d.mts +81 -0
- package/dist/prose-model.mjs +101 -0
- package/dist/recipe-macro.d.mts +105 -3
- package/dist/recipe-model.mjs +31 -7
- package/dist/region-lowering.mjs +241 -41
- package/dist/render-audit/corner-overpaint.page.mjs +54 -0
- package/dist/render-audit/worker.mjs +6 -1
- package/dist/render-audit.mjs +25 -0
- package/dist/role-vocabulary.d.mts +38 -2
- package/dist/role-vocabulary.mjs +39 -4
- package/dist/scenario-kit.d.mts +6 -0
- package/dist/scenario-registry.mjs +1 -1
- package/dist/scheme-switch.d.mts +8 -0
- package/dist/scheme-switch.mjs +1 -0
- package/dist/showcase/ads-views.mjs +116 -53
- package/dist/showcase/assets-view.mjs +117 -86
- package/dist/showcase/client.bundle.js +65 -65
- package/dist/showcase/http-client.bundle.js +17 -17
- package/dist/showcase/preview-frame.css +2 -0
- package/dist/showcase/profiles-view.mjs +163 -122
- package/dist/showcase/scenario-page.d.mts +11 -1
- package/dist/showcase/scenario-page.mjs +18 -3
- package/dist/showcase/token-sample.mjs +47 -4
- package/dist/showcase/tokens-view.mjs +82 -34
- package/dist/showcase/ui/ui.css +1 -1
- package/dist/showcase/ui/ui.js +5 -5
- package/dist/skills/README.md +5 -5
- package/dist/skills/ads-designer/README.md +1 -1
- package/dist/skills/ads-designer/SKILL.md +13 -12
- package/dist/skills/ads-designer/references/accessibility.md +2 -2
- package/dist/skills/ads-designer/references/atomic-styles.md +8 -1
- package/dist/skills/ads-designer/references/branding.md +7 -2
- package/dist/skills/ads-designer/references/cli.md +4 -4
- package/dist/skills/ads-designer/references/contracts.md +9 -2
- package/dist/skills/ads-designer/references/design-craft.md +1 -1
- package/dist/skills/ads-designer/references/design-data.md +3 -3
- package/dist/skills/ads-designer/references/forms.md +6 -6
- package/dist/skills/ads-designer/references/layout.md +42 -3
- package/dist/skills/ads-designer/references/motion.md +37 -1
- package/dist/skills/ads-designer/references/performance.md +7 -1
- package/dist/skills/ads-designer/references/recipes.md +67 -6
- package/dist/skills/ads-designer/references/runtimes.md +1 -1
- package/dist/skills/ads-designer/references/scenarios.md +1 -0
- package/dist/skills/ads-import/references/atomic-styles.md +8 -1
- package/dist/skills/ads-import/references/cli.md +4 -4
- package/dist/skills/ads-import/references/contracts.md +9 -2
- package/dist/skills/ads-import/references/design-data.md +3 -3
- package/dist/skills/ads-import/references/forms.md +6 -6
- package/dist/skills/ads-import/references/layout.md +42 -3
- package/dist/skills/ads-import/references/recipes.md +67 -6
- package/dist/skills/ads-import/references/runtimes.md +1 -1
- package/dist/skills/ads-import/references/scenarios.md +1 -0
- package/dist/skills/ads-migrate/SKILL.md +2 -1
- package/dist/skills/ads-migrate/references/0.5.0-to-0.5.1.md +239 -0
- package/dist/skills/ads-port/references/atomic-styles.md +8 -1
- package/dist/skills/ads-port/references/cli.md +4 -4
- package/dist/skills/ads-port/references/contracts.md +9 -2
- package/dist/skills/ads-port/references/design-data.md +3 -3
- package/dist/skills/ads-port/references/forms.md +6 -6
- package/dist/skills/ads-port/references/layout.md +42 -3
- package/dist/skills/ads-port/references/recipes.md +67 -6
- package/dist/skills/ads-port/references/runtimes.md +1 -1
- package/dist/skills/ads-port/references/scenarios.md +1 -0
- package/dist/spatial-model.mjs +20 -4
- package/dist/state-conditions.d.mts +29 -0
- package/dist/state-conditions.mjs +42 -2
- package/dist/surface-contrast.mjs +68 -10
- package/dist/surface-effects.mjs +98 -0
- package/dist/target-size.mjs +1 -1
- package/dist/task-cache.mjs +1 -1
- package/dist/token-dtcg.mjs +1 -0
- package/dist/token-view-facts.mjs +54 -5
- package/dist/unreached-sources.mjs +5 -0
- package/dist/validation.mjs +1 -1
- package/docs/ADS.md +36 -13
- package/docs/ARCHITECTURE.md +160 -16
- package/docs/ASSETS.md +81 -10
- package/docs/CACHING.md +1 -1
- package/docs/CHANGELOG.md +346 -21
- package/docs/DESIGN-REFERENCES.md +5 -5
- package/docs/GUIDE.md +241 -72
- package/docs/LANGUAGE.md +287 -21
- package/docs/LOWERING.md +13 -1
- package/docs/MOTION.md +233 -7
- package/docs/PROFILE-KINDS.md +167 -13
- package/docs/PROFILES.md +2 -2
- package/docs/RULES.md +49 -18
- package/docs/TOKEN-ROLES.md +9 -7
- package/package.json +1 -1
- package/dist/starter-files.mjs +0 -155
- package/dist/starter-overlay.mjs +0 -189
- package/dist/starters/preact/design-system/assets/avatars/avatar.ads.ts +0 -10
- package/dist/starters/preact/design-system/assets/avatars/member.svg +0 -1
- package/dist/starters/preact/design-system/assets/brand/emblem.ads.ts +0 -18
- package/dist/starters/preact/design-system/assets/brand/emblem.svg +0 -4
- package/dist/starters/preact/design-system/assets/brand/iris-emblem.ads.ts +0 -14
- package/dist/starters/preact/design-system/assets/brand/iris-emblem.svg +0 -4
- package/dist/starters/preact/design-system/assets/brand/mark.ads.ts +0 -14
- package/dist/starters/preact/design-system/assets/brand/mark.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/arrow.ads.ts +0 -14
- package/dist/starters/preact/design-system/assets/glyphs/arrow.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/chevron-20.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/chevron-24.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/chevron.ads.ts +0 -20
- package/dist/starters/preact/design-system/assets/glyphs/close.ads.ts +0 -13
- package/dist/starters/preact/design-system/assets/glyphs/close.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/favorite.ads.ts +0 -23
- package/dist/starters/preact/design-system/assets/glyphs/favorite.normal.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/favorite.selected.svg +0 -1
- package/dist/starters/preact/design-system/assets/glyphs/search.ads.ts +0 -10
- package/dist/starters/preact/design-system/assets/glyphs/search.svg +0 -1
- package/dist/starters/preact/design-system/assets/illustrations/journey.ads.ts +0 -32
- package/dist/starters/preact/design-system/assets/illustrations/journey.contrast.svg +0 -6
- package/dist/starters/preact/design-system/assets/illustrations/journey.dark.svg +0 -13
- package/dist/starters/preact/design-system/assets/illustrations/journey.light.svg +0 -13
- package/dist/starters/preact/design-system/assets/logos/harbor-pay.ads.ts +0 -17
- package/dist/starters/preact/design-system/assets/logos/harbor-pay.dark.svg +0 -10
- package/dist/starters/preact/design-system/assets/logos/harbor-pay.light.svg +0 -10
- package/dist/starters/preact/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
- package/dist/starters/preact/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
- package/dist/starters/preact/design-system/assets/logos/lumen-cloud.light.svg +0 -9
- package/dist/starters/preact/design-system/assets/status/error.svg +0 -1
- package/dist/starters/preact/design-system/assets/status/outcomes.ads.ts +0 -31
- package/dist/starters/preact/design-system/assets/status/status.ads.ts +0 -16
- package/dist/starters/preact/design-system/assets/status/success.svg +0 -1
- package/dist/starters/preact/design-system/assets/status/sync-status.ads.ts +0 -14
- package/dist/starters/preact/design-system/assets/status/sync-status.svg +0 -7
- package/dist/starters/preact/design-system/assets/status/warning.svg +0 -1
- package/dist/starters/preact/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
- package/dist/starters/preact/design-system/components/Actions/Button/Button.tsx +0 -198
- package/dist/starters/preact/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
- package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
- package/dist/starters/preact/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
- package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
- package/dist/starters/preact/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
- package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
- package/dist/starters/preact/design-system/components/Content/Artwork/Artwork.tsx +0 -110
- package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
- package/dist/starters/preact/design-system/components/Content/BarChart/BarChart.tsx +0 -72
- package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
- package/dist/starters/preact/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
- package/dist/starters/preact/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
- package/dist/starters/preact/design-system/components/Content/Icon/Icon.tsx +0 -41
- package/dist/starters/preact/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
- package/dist/starters/preact/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
- package/dist/starters/preact/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
- package/dist/starters/preact/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
- package/dist/starters/preact/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
- package/dist/starters/preact/design-system/components/Content/Image/Image.tsx +0 -83
- package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
- package/dist/starters/preact/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
- package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
- package/dist/starters/preact/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
- package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
- package/dist/starters/preact/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
- package/dist/starters/preact/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
- package/dist/starters/preact/design-system/components/Forms/TextField/TextField.tsx +0 -173
- package/dist/starters/preact/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
- package/dist/starters/preact/design-system/components/Identity/Identity.tsx +0 -146
- package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
- package/dist/starters/preact/design-system/components/Overlays/Menu/Menu.tsx +0 -194
- package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
- package/dist/starters/preact/design-system/components/Overlays/Popover/Popover.tsx +0 -37
- package/dist/starters/preact/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
- package/dist/starters/preact/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
- package/dist/starters/preact/design-system/controllers/FormField/FormField.ts +0 -343
- package/dist/starters/preact/design-system/controllers/FormField/useFormField.ts +0 -70
- package/dist/starters/preact/design-system/controllers/Palette/Palette.ts +0 -165
- package/dist/starters/preact/design-system/foundation.ads.ts +0 -22
- package/dist/starters/preact/design-system/index.ts +0 -51
- package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
- package/dist/starters/preact/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
- package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
- package/dist/starters/preact/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
- package/dist/starters/preact/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
- package/dist/starters/preact/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
- package/dist/starters/preact/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
- package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
- package/dist/starters/preact/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
- package/dist/starters/preact/design-system/mocks/Workspace/media/ads.svg +0 -1
- package/dist/starters/preact/design-system/palette.generated.ts +0 -188
- package/dist/starters/preact/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
- package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
- package/dist/starters/preact/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
- package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
- package/dist/starters/preact/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
- package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
- package/dist/starters/preact/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
- package/dist/starters/preact/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
- package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +0 -268
- package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
- package/dist/starters/preact/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
- package/dist/starters/preact/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
- package/dist/starters/preact/design-system/profiles/Containers/containers.ads.ts +0 -67
- package/dist/starters/preact/design-system/profiles/Containers/frames.ads.ts +0 -32
- package/dist/starters/preact/design-system/profiles/Containers/geometry.ads.ts +0 -30
- package/dist/starters/preact/design-system/profiles/Containers/spacing.ads.ts +0 -26
- package/dist/starters/preact/design-system/profiles/Controls/controls.ads.ts +0 -157
- package/dist/starters/preact/design-system/profiles/Controls/frames.ads.ts +0 -50
- package/dist/starters/preact/design-system/profiles/Controls/spacing.ads.ts +0 -29
- package/dist/starters/preact/design-system/profiles/Focus/keyboard.ads.ts +0 -13
- package/dist/starters/preact/design-system/profiles/Identity/identity.ads.ts +0 -25
- package/dist/starters/preact/design-system/profiles/Identity/spacing.ads.ts +0 -22
- package/dist/starters/preact/design-system/profiles/Layout/grid.ads.ts +0 -69
- package/dist/starters/preact/design-system/profiles/Layout/inspector.ads.ts +0 -146
- package/dist/starters/preact/design-system/profiles/Layout/overlays.ads.ts +0 -94
- package/dist/starters/preact/design-system/profiles/Layout/regions.ads.ts +0 -296
- package/dist/starters/preact/design-system/profiles/Motion/feedback.ads.ts +0 -92
- package/dist/starters/preact/design-system/profiles/Surfaces/controls.ads.ts +0 -142
- package/dist/starters/preact/design-system/profiles/Surfaces/document.ads.ts +0 -2
- package/dist/starters/preact/design-system/profiles/Surfaces/materials.ads.ts +0 -18
- package/dist/starters/preact/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
- package/dist/starters/preact/design-system/profiles/Typography/details.ads.ts +0 -19
- package/dist/starters/preact/design-system/profiles/Typography/document.ads.ts +0 -2
- package/dist/starters/preact/design-system/profiles/Typography/headings.ads.ts +0 -15
- package/dist/starters/preact/design-system/profiles/Typography/text.ads.ts +0 -73
- package/dist/starters/preact/design-system/profiles/Visuals/artwork.ads.ts +0 -46
- package/dist/starters/preact/design-system/profiles/Visuals/charts.ads.ts +0 -31
- package/dist/starters/preact/design-system/profiles/Visuals/content.ads.ts +0 -52
- package/dist/starters/preact/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
- package/dist/starters/preact/design-system/profiles/Visuals/identity.ads.ts +0 -24
- package/dist/starters/preact/design-system/tokens/Artwork/paint.ads.css +0 -7
- package/dist/starters/preact/design-system/tokens/Artwork/visual-size.ads.css +0 -12
- package/dist/starters/preact/design-system/tokens/Brand/paint.ads.css +0 -7
- package/dist/starters/preact/design-system/tokens/Charts/paint.ads.css +0 -19
- package/dist/starters/preact/design-system/tokens/Containers/border-width.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Containers/content-gap.ads.css +0 -5
- package/dist/starters/preact/design-system/tokens/Containers/frame-inset.ads.css +0 -6
- package/dist/starters/preact/design-system/tokens/Containers/frame-size.ads.css +0 -11
- package/dist/starters/preact/design-system/tokens/Containers/radius.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Controls/border-width.ads.css +0 -4
- package/dist/starters/preact/design-system/tokens/Controls/content-gap.ads.css +0 -6
- package/dist/starters/preact/design-system/tokens/Controls/control-min-size.ads.css +0 -17
- package/dist/starters/preact/design-system/tokens/Controls/frame-inset.ads.css +0 -21
- package/dist/starters/preact/design-system/tokens/Controls/radius.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Controls/target-min-size.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Controls/visual-size.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Focus/border-width.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Focus/focus-offset.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Foundation/spacing.ads.css +0 -20
- package/dist/starters/preact/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
- package/dist/starters/preact/design-system/tokens/Grid/layer.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Grid/layout-size.ads.css +0 -15
- package/dist/starters/preact/design-system/tokens/Grid/spacing.ads.css +0 -12
- package/dist/starters/preact/design-system/tokens/Grid/track-count.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Identity/content-gap.ads.css +0 -6
- package/dist/starters/preact/design-system/tokens/Identity/visual-size.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Motion/duration.ads.css +0 -6
- package/dist/starters/preact/design-system/tokens/Motion/easing.ads.css +0 -5
- package/dist/starters/preact/design-system/tokens/Motion/motion-angle.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Motion/motion-distance.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Motion/motion-scale.ads.css +0 -9
- package/dist/starters/preact/design-system/tokens/Surfaces/blur.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Surfaces/gradient.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Surfaces/opacity.ads.css +0 -2
- package/dist/starters/preact/design-system/tokens/Surfaces/paint.ads.css +0 -58
- package/dist/starters/preact/design-system/tokens/Surfaces/shadow.ads.css +0 -20
- package/dist/starters/preact/design-system/tokens/Typography/font-family.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/font-features.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/font-size.ads.css +0 -9
- package/dist/starters/preact/design-system/tokens/Typography/font-stretch.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/font-variations.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/font-weight.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
- package/dist/starters/preact/design-system/tokens/Typography/line-height.ads.css +0 -11
- package/dist/starters/preact/design-system/tokens/Typography/word-spacing.ads.css +0 -1
- package/dist/starters/preact/starter.json +0 -11
- package/dist/starters/react/design-system/assets/avatars/avatar.ads.ts +0 -10
- package/dist/starters/react/design-system/assets/avatars/member.svg +0 -1
- package/dist/starters/react/design-system/assets/brand/emblem.ads.ts +0 -18
- package/dist/starters/react/design-system/assets/brand/emblem.svg +0 -4
- package/dist/starters/react/design-system/assets/brand/iris-emblem.ads.ts +0 -14
- package/dist/starters/react/design-system/assets/brand/iris-emblem.svg +0 -4
- package/dist/starters/react/design-system/assets/brand/mark.ads.ts +0 -14
- package/dist/starters/react/design-system/assets/brand/mark.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/arrow.ads.ts +0 -14
- package/dist/starters/react/design-system/assets/glyphs/arrow.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/chevron-20.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/chevron-24.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/chevron.ads.ts +0 -20
- package/dist/starters/react/design-system/assets/glyphs/close.ads.ts +0 -13
- package/dist/starters/react/design-system/assets/glyphs/close.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/favorite.ads.ts +0 -23
- package/dist/starters/react/design-system/assets/glyphs/favorite.normal.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/favorite.selected.svg +0 -1
- package/dist/starters/react/design-system/assets/glyphs/search.ads.ts +0 -10
- package/dist/starters/react/design-system/assets/glyphs/search.svg +0 -1
- package/dist/starters/react/design-system/assets/illustrations/journey.ads.ts +0 -32
- package/dist/starters/react/design-system/assets/illustrations/journey.contrast.svg +0 -6
- package/dist/starters/react/design-system/assets/illustrations/journey.dark.svg +0 -13
- package/dist/starters/react/design-system/assets/illustrations/journey.light.svg +0 -13
- package/dist/starters/react/design-system/assets/logos/harbor-pay.ads.ts +0 -17
- package/dist/starters/react/design-system/assets/logos/harbor-pay.dark.svg +0 -10
- package/dist/starters/react/design-system/assets/logos/harbor-pay.light.svg +0 -10
- package/dist/starters/react/design-system/assets/logos/lumen-cloud.ads.ts +0 -15
- package/dist/starters/react/design-system/assets/logos/lumen-cloud.dark.svg +0 -9
- package/dist/starters/react/design-system/assets/logos/lumen-cloud.light.svg +0 -9
- package/dist/starters/react/design-system/assets/status/error.svg +0 -1
- package/dist/starters/react/design-system/assets/status/outcomes.ads.ts +0 -31
- package/dist/starters/react/design-system/assets/status/status.ads.ts +0 -16
- package/dist/starters/react/design-system/assets/status/success.svg +0 -1
- package/dist/starters/react/design-system/assets/status/sync-status.ads.ts +0 -14
- package/dist/starters/react/design-system/assets/status/sync-status.svg +0 -7
- package/dist/starters/react/design-system/assets/status/warning.svg +0 -1
- package/dist/starters/react/design-system/components/Actions/Button/Button.ads.scenario.tsx +0 -12
- package/dist/starters/react/design-system/components/Actions/Button/Button.tsx +0 -198
- package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +0 -95
- package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.ads.scenario.tsx +0 -22
- package/dist/starters/react/design-system/components/Actions/ToggleTile/ToggleTile.tsx +0 -60
- package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.ads.scenario.tsx +0 -24
- package/dist/starters/react/design-system/components/Containers/Disclosure/Disclosure.tsx +0 -50
- package/dist/starters/react/design-system/components/Content/Artwork/Artwork.ads.scenario.tsx +0 -8
- package/dist/starters/react/design-system/components/Content/Artwork/Artwork.tsx +0 -110
- package/dist/starters/react/design-system/components/Content/BarChart/BarChart.ads.scenario.tsx +0 -25
- package/dist/starters/react/design-system/components/Content/BarChart/BarChart.tsx +0 -72
- package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.ads.scenario.tsx +0 -8
- package/dist/starters/react/design-system/components/Content/GuideGrid/GuideGrid.tsx +0 -43
- package/dist/starters/react/design-system/components/Content/Icon/Icon.ads.scenario.tsx +0 -21
- package/dist/starters/react/design-system/components/Content/Icon/Icon.tsx +0 -41
- package/dist/starters/react/design-system/components/Content/Icon/glyphs/arrow.tsx +0 -10
- package/dist/starters/react/design-system/components/Content/Icon/glyphs/close.tsx +0 -10
- package/dist/starters/react/design-system/components/Content/Icon/glyphs/search.tsx +0 -10
- package/dist/starters/react/design-system/components/Content/Image/Image.ads.fixture.ts +0 -9
- package/dist/starters/react/design-system/components/Content/Image/Image.ads.scenario.tsx +0 -12
- package/dist/starters/react/design-system/components/Content/Image/Image.tsx +0 -83
- package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.ads.scenario.tsx +0 -27
- package/dist/starters/react/design-system/components/Content/InspectedGlyph/InspectedGlyph.tsx +0 -46
- package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.ads.scenario.tsx +0 -17
- package/dist/starters/react/design-system/components/Content/PartnerLogo/PartnerLogo.tsx +0 -41
- package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.ads.scenario.tsx +0 -20
- package/dist/starters/react/design-system/components/Content/StatusIcon/StatusIcon.tsx +0 -37
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.ads.scenario.tsx +0 -24
- package/dist/starters/react/design-system/components/Forms/TextField/TextField.tsx +0 -173
- package/dist/starters/react/design-system/components/Identity/Identity.ads.scenario.tsx +0 -13
- package/dist/starters/react/design-system/components/Identity/Identity.tsx +0 -146
- package/dist/starters/react/design-system/components/Overlays/Menu/Menu.ads.scenario.tsx +0 -27
- package/dist/starters/react/design-system/components/Overlays/Menu/Menu.tsx +0 -194
- package/dist/starters/react/design-system/components/Overlays/Popover/Popover.ads.scenario.tsx +0 -19
- package/dist/starters/react/design-system/components/Overlays/Popover/Popover.tsx +0 -37
- package/dist/starters/react/design-system/controllers/FormField/FormField.ads.behavior.ts +0 -70
- package/dist/starters/react/design-system/controllers/FormField/FormField.behavior.spec.ts +0 -237
- package/dist/starters/react/design-system/controllers/FormField/FormField.ts +0 -343
- package/dist/starters/react/design-system/controllers/FormField/useFormField.ts +0 -70
- package/dist/starters/react/design-system/controllers/Palette/Palette.ts +0 -165
- package/dist/starters/react/design-system/foundation.ads.ts +0 -22
- package/dist/starters/react/design-system/index.ts +0 -51
- package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.fixture.ts +0 -5
- package/dist/starters/react/design-system/mocks/ConstructionProofs/ConstructionProofs.ads.scenario.tsx +0 -22
- package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.fixture.ts +0 -12
- package/dist/starters/react/design-system/mocks/Inspector/Inspector.ads.scenario.tsx +0 -21
- package/dist/starters/react/design-system/mocks/Workspace/Layouts.ads.scenario.tsx +0 -24
- package/dist/starters/react/design-system/mocks/Workspace/Media.ads.scenario.tsx +0 -24
- package/dist/starters/react/design-system/mocks/Workspace/Stress.ads.scenario.tsx +0 -36
- package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.fixture.ts +0 -13
- package/dist/starters/react/design-system/mocks/Workspace/Workspace.ads.scenario.tsx +0 -27
- package/dist/starters/react/design-system/mocks/Workspace/media/ads.svg +0 -1
- package/dist/starters/react/design-system/palette.generated.ts +0 -188
- package/dist/starters/react/design-system/patterns/ArtworkCatalogue/ArtworkCatalogue/ArtworkCatalogue.tsx +0 -73
- package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.ads.scenario.tsx +0 -23
- package/dist/starters/react/design-system/patterns/ConstructionWorkbench/ConstructionWorkbench/ConstructionWorkbench.tsx +0 -94
- package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.ads.scenario.tsx +0 -21
- package/dist/starters/react/design-system/patterns/Forms/InviteMember/InviteMember.tsx +0 -137
- package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.ads.scenario.tsx +0 -22
- package/dist/starters/react/design-system/patterns/Inspector/Inspector/Inspector.tsx +0 -248
- package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +0 -26
- package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +0 -268
- package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.ads.scenario.tsx +0 -28
- package/dist/starters/react/design-system/patterns/Workspace/Workspace/Workspace.tsx +0 -105
- package/dist/starters/react/design-system/patterns/Workspace/Workspace/WorkspacePanels.tsx +0 -179
- package/dist/starters/react/design-system/profiles/Containers/containers.ads.ts +0 -67
- package/dist/starters/react/design-system/profiles/Containers/frames.ads.ts +0 -32
- package/dist/starters/react/design-system/profiles/Containers/geometry.ads.ts +0 -30
- package/dist/starters/react/design-system/profiles/Containers/spacing.ads.ts +0 -26
- package/dist/starters/react/design-system/profiles/Controls/controls.ads.ts +0 -157
- package/dist/starters/react/design-system/profiles/Controls/frames.ads.ts +0 -50
- package/dist/starters/react/design-system/profiles/Controls/spacing.ads.ts +0 -29
- package/dist/starters/react/design-system/profiles/Focus/keyboard.ads.ts +0 -13
- package/dist/starters/react/design-system/profiles/Identity/identity.ads.ts +0 -25
- package/dist/starters/react/design-system/profiles/Identity/spacing.ads.ts +0 -22
- package/dist/starters/react/design-system/profiles/Layout/grid.ads.ts +0 -69
- package/dist/starters/react/design-system/profiles/Layout/inspector.ads.ts +0 -146
- package/dist/starters/react/design-system/profiles/Layout/overlays.ads.ts +0 -94
- package/dist/starters/react/design-system/profiles/Layout/regions.ads.ts +0 -296
- package/dist/starters/react/design-system/profiles/Motion/feedback.ads.ts +0 -92
- package/dist/starters/react/design-system/profiles/Surfaces/controls.ads.ts +0 -142
- package/dist/starters/react/design-system/profiles/Surfaces/document.ads.ts +0 -2
- package/dist/starters/react/design-system/profiles/Surfaces/materials.ads.ts +0 -18
- package/dist/starters/react/design-system/profiles/Surfaces/surfaces.ads.ts +0 -48
- package/dist/starters/react/design-system/profiles/Typography/details.ads.ts +0 -19
- package/dist/starters/react/design-system/profiles/Typography/document.ads.ts +0 -2
- package/dist/starters/react/design-system/profiles/Typography/headings.ads.ts +0 -15
- package/dist/starters/react/design-system/profiles/Typography/text.ads.ts +0 -73
- package/dist/starters/react/design-system/profiles/Visuals/artwork.ads.ts +0 -46
- package/dist/starters/react/design-system/profiles/Visuals/charts.ads.ts +0 -31
- package/dist/starters/react/design-system/profiles/Visuals/content.ads.ts +0 -52
- package/dist/starters/react/design-system/profiles/Visuals/glyphs.ads.ts +0 -35
- package/dist/starters/react/design-system/profiles/Visuals/identity.ads.ts +0 -24
- package/dist/starters/react/design-system/tokens/Artwork/paint.ads.css +0 -7
- package/dist/starters/react/design-system/tokens/Artwork/visual-size.ads.css +0 -12
- package/dist/starters/react/design-system/tokens/Brand/paint.ads.css +0 -7
- package/dist/starters/react/design-system/tokens/Charts/paint.ads.css +0 -19
- package/dist/starters/react/design-system/tokens/Containers/border-width.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Containers/content-gap.ads.css +0 -5
- package/dist/starters/react/design-system/tokens/Containers/frame-inset.ads.css +0 -6
- package/dist/starters/react/design-system/tokens/Containers/frame-size.ads.css +0 -11
- package/dist/starters/react/design-system/tokens/Containers/radius.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Controls/border-width.ads.css +0 -4
- package/dist/starters/react/design-system/tokens/Controls/content-gap.ads.css +0 -6
- package/dist/starters/react/design-system/tokens/Controls/control-min-size.ads.css +0 -17
- package/dist/starters/react/design-system/tokens/Controls/frame-inset.ads.css +0 -21
- package/dist/starters/react/design-system/tokens/Controls/radius.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Controls/target-min-size.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Controls/visual-size.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Focus/border-width.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Focus/focus-offset.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Foundation/spacing.ads.css +0 -20
- package/dist/starters/react/design-system/tokens/Grid/grid-gutter.ads.css +0 -6
- package/dist/starters/react/design-system/tokens/Grid/layer.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Grid/layout-size.ads.css +0 -15
- package/dist/starters/react/design-system/tokens/Grid/spacing.ads.css +0 -12
- package/dist/starters/react/design-system/tokens/Grid/track-count.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Identity/content-gap.ads.css +0 -6
- package/dist/starters/react/design-system/tokens/Identity/visual-size.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Motion/duration.ads.css +0 -6
- package/dist/starters/react/design-system/tokens/Motion/easing.ads.css +0 -5
- package/dist/starters/react/design-system/tokens/Motion/motion-angle.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Motion/motion-distance.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Motion/motion-scale.ads.css +0 -9
- package/dist/starters/react/design-system/tokens/Surfaces/blur.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Surfaces/gradient.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Surfaces/opacity.ads.css +0 -2
- package/dist/starters/react/design-system/tokens/Surfaces/paint.ads.css +0 -58
- package/dist/starters/react/design-system/tokens/Surfaces/shadow.ads.css +0 -20
- package/dist/starters/react/design-system/tokens/Typography/font-family.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/font-features.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/font-size.ads.css +0 -9
- package/dist/starters/react/design-system/tokens/Typography/font-stretch.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/font-variations.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/font-weight.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/letter-spacing.ads.css +0 -1
- package/dist/starters/react/design-system/tokens/Typography/line-height.ads.css +0 -11
- package/dist/starters/react/design-system/tokens/Typography/word-spacing.ads.css +0 -1
- package/dist/starters/react/starter.json +0 -11
- package/docs/STARTER.md +0 -167
package/docs/ASSETS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A design system declares its artwork with `asset()` and its glyph sets with
|
|
4
4
|
`glyphSet()` (`@reqvire-org/ads/asset`), in `assets/**/*.ads.ts` beside the
|
|
5
|
-
drawings, never in CSS. The examples are the
|
|
5
|
+
drawings, never in CSS. The examples are the example design system's.
|
|
6
6
|
|
|
7
7
|
## One size selection
|
|
8
8
|
|
|
@@ -50,6 +50,28 @@ const largeChevron = recipe({
|
|
|
50
50
|
dangerouslySetInnerHTML={{ __html: largeChevron.assets.visual.source }} />
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
A region that arranges artwork beside other parts (a tick before a line of
|
|
54
|
+
text) can bind it in its own recipe: the visual part names the asset, and the
|
|
55
|
+
same recipe gives the element's class and the drawing.
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
const row = recipe({
|
|
59
|
+
layout: "inline",
|
|
60
|
+
parts: {
|
|
61
|
+
tick: { selector: ".ux-tick", kind: "visual", required: true, asset: "tick", visual: "glyph-md" },
|
|
62
|
+
label: { selector: ".ux-label", kind: "text", required: true },
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
<span className={row.root}>
|
|
66
|
+
<span className={`ux-tick ${row.parts.tick}`} aria-hidden="true"
|
|
67
|
+
dangerouslySetInnerHTML={{ __html: row.assets.tick.source }} />
|
|
68
|
+
<span className="ux-label">{label}</span>
|
|
69
|
+
</span>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Use a separate binding recipe, as above, when the artwork is a choice (one
|
|
73
|
+
recipe per asset, selected by a prop).
|
|
74
|
+
|
|
53
75
|
- Asset and profile reference the **same token identity**, not a filename, an
|
|
54
76
|
equal pixel value or a word such as "large". Different tokens with equal
|
|
55
77
|
values do not match.
|
|
@@ -58,7 +80,7 @@ const largeChevron = recipe({
|
|
|
58
80
|
- The 20/24 pair is a project choice: an optical asset can register any finite
|
|
59
81
|
set of `visual-size` tokens.
|
|
60
82
|
- A public option such as `<Artwork size="large" asset="chevron" />` maps once
|
|
61
|
-
to the large visual profile; it is not passed to the asset. The
|
|
83
|
+
to the large visual profile; it is not passed to the asset. The example design system's
|
|
62
84
|
Artwork (`components/Content/Artwork/Artwork.tsx`) shows this for the optical
|
|
63
85
|
Chevron and the scalable Sync status.
|
|
64
86
|
|
|
@@ -83,9 +105,7 @@ assets/
|
|
|
83
105
|
namespace (`assets/name-duplicate`).
|
|
84
106
|
- `source` is relative to its declaration and stays below that directory.
|
|
85
107
|
Parent traversal, remote URLs and filename-inferred themes are rejected.
|
|
86
|
-
- Production content images are
|
|
87
|
-
[application data](STARTER.md#content-media-is-application-data), not part of
|
|
88
|
-
this catalogue.
|
|
108
|
+
- Production content images are application data, not part of this catalogue.
|
|
89
109
|
|
|
90
110
|
| Owner | Responsibility |
|
|
91
111
|
| --- | --- |
|
|
@@ -100,7 +120,7 @@ assets/
|
|
|
100
120
|
|
|
101
121
|
- `name`, `title`, `description`, `license` and `paint` are required.
|
|
102
122
|
`description` is usage guidance, not an accessible label. `license` states the
|
|
103
|
-
actual ownership and licensing; the
|
|
123
|
+
actual ownership and licensing; the example design system's artwork is original, under the
|
|
104
124
|
repository's license.
|
|
105
125
|
- Declare exactly one of a root `source` or nonempty `variants`. A root source
|
|
106
126
|
is a single scalable `normal` drawing.
|
|
@@ -171,6 +191,11 @@ are emitted, not a full state × size × theme product.
|
|
|
171
191
|
`high-contrast` theme, with different viewBoxes and per-drawing centers. The
|
|
172
192
|
owner passes its real theme to its finite recipe choice and scoped wrapper;
|
|
173
193
|
nothing claims OS forced-colors support or DOM theme discovery.
|
|
194
|
+
- **A content image is not an asset.** A picture the application supplies
|
|
195
|
+
(a CMS or blog image) has no declaration and no variants. When it has a
|
|
196
|
+
second file for dark themes, its owner renders both as `<img>` elements in
|
|
197
|
+
two visual parts, `scheme: "light"` and `scheme: "dark"`, and the page's
|
|
198
|
+
theme displays one: see [a light and a dark file](#a-content-image-with-a-light-and-a-dark-file).
|
|
174
199
|
- **Brand** is not a drawing selector. Palette changes use token-bound
|
|
175
200
|
channels. A different identity is another asset: Identity selects Mark or
|
|
176
201
|
Iris emblem, and the mock supplies the matching brand scope, with no
|
|
@@ -217,7 +242,7 @@ import { IconButton, SearchIcon, closeGlyph } from "@ds";
|
|
|
217
242
|
```
|
|
218
243
|
|
|
219
244
|
An emitted module of the design system makes the reference, one per glyph in
|
|
220
|
-
the
|
|
245
|
+
the example design system (`components/Content/Icon/glyphs/close.tsx`):
|
|
221
246
|
|
|
222
247
|
```tsx
|
|
223
248
|
import { glyph } from "@reqvire-org/ads/asset" with { type: "macro" };
|
|
@@ -342,7 +367,7 @@ export default asset({
|
|
|
342
367
|
});
|
|
343
368
|
```
|
|
344
369
|
|
|
345
|
-
The
|
|
370
|
+
The example design system's `PartnerLogo` (`components/Content/PartnerLogo/PartnerLogo.tsx`)
|
|
346
371
|
binds each logo by name with one visual profile (`partner-logo`, a fixed height
|
|
347
372
|
that keeps the drawing whole). It takes the theme it is in, which selects the
|
|
348
373
|
light or dark artwork. Its two logos are fictional: replace them with real
|
|
@@ -353,6 +378,46 @@ declared asset by group and every glyph set with its members, each drawn from
|
|
|
353
378
|
its authored SVG in the preview's theme
|
|
354
379
|
([guide](GUIDE.md#showcase)). `ads check` and `ads_catalog` report them too.
|
|
355
380
|
|
|
381
|
+
## A content image with a light and a dark file
|
|
382
|
+
|
|
383
|
+
Declared artwork selects its drawing by theme at compile time, from its
|
|
384
|
+
variants. A content image cannot: its files are application data, and its owner
|
|
385
|
+
does not know the page's theme when it renders (a `data-theme` on the document,
|
|
386
|
+
a themed section around it, or the OS preference). So both images are in the
|
|
387
|
+
markup and CSS displays one, with no script:
|
|
388
|
+
|
|
389
|
+
```tsx
|
|
390
|
+
const picture = recipe({
|
|
391
|
+
layout: "inline",
|
|
392
|
+
profile: "content-media",
|
|
393
|
+
frame: {},
|
|
394
|
+
parts: {
|
|
395
|
+
light: { selector: ".ds-picture-light", kind: "visual", scheme: "light", required: true },
|
|
396
|
+
dark: { selector: ".ds-picture-dark", kind: "visual", scheme: "dark", required: true },
|
|
397
|
+
},
|
|
398
|
+
}).root;
|
|
399
|
+
|
|
400
|
+
<span className={picture}>
|
|
401
|
+
<img className="ds-picture-light" width={light.width} height={light.height} src={light.src} alt={alt} />
|
|
402
|
+
<img className="ds-picture-dark" loading="lazy" width={dark.width} height={dark.height} src={dark.src} alt={alt} />
|
|
403
|
+
</span>
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
- `foundation.css` writes two switches in every rule that sets `color-scheme`:
|
|
407
|
+
`--ads-not-light` and `--ads-not-dark`. Each scheme part's display reads its
|
|
408
|
+
own (`display: var(--ads-not-light, block)`), so it is displayed under its
|
|
409
|
+
scheme and `display: none` under the other. The hidden image is out of the
|
|
410
|
+
accessibility tree, so both carry the same `alt`.
|
|
411
|
+
- An `at` condition on a scheme part hides it like any part: the image is
|
|
412
|
+
displayed where both its scheme and the condition show it.
|
|
413
|
+
- Both images state `width` and `height`.
|
|
414
|
+
- The image of the scheme the default theme (the first declared) does not have
|
|
415
|
+
is `loading="lazy"` in every choice. Browsers do not download a hidden lazy
|
|
416
|
+
image, so a page in the default theme downloads one file. Only the default
|
|
417
|
+
scheme's image may load eagerly or take `fetchPriority`.
|
|
418
|
+
- A recipe declares both parts or neither, as siblings. The example design system's `Image`
|
|
419
|
+
takes the second file as `sourceDark`.
|
|
420
|
+
|
|
356
421
|
## Artwork guards at a glance
|
|
357
422
|
|
|
358
423
|
| Guard | Rejected |
|
|
@@ -383,8 +448,14 @@ or `[min, max]` range and an optional `style`) and optional `preload` faces.
|
|
|
383
448
|
weights those profiles draw.
|
|
384
449
|
- `ads emit` copies the files to `fonts/<family>/`, writes their `@font-face`
|
|
385
450
|
rules into `foundation.css` and lists the faces to preload in `fonts.ts`.
|
|
386
|
-
|
|
387
|
-
|
|
451
|
+
- Optional `fallback` names the system font drawn while the family loads
|
|
452
|
+
(`"Arial"`, `"Times New Roman"`, `"Courier New"`, or `{ font, sizeAdjust }`).
|
|
453
|
+
ADS measures each face file and emits a `"<family> Fallback"` face matched to
|
|
454
|
+
it (`size-adjust`, `ascent-override`, `descent-override`,
|
|
455
|
+
`line-gap-override`), so text does not move when the family arrives. The
|
|
456
|
+
font-family token names it right after the family (`font-fallback`).
|
|
457
|
+
|
|
458
|
+
The example design system keeps system fonts and declares no family. [The guide](GUIDE.md)
|
|
388
459
|
has an example, the checks and the emitted helpers.
|
|
389
460
|
|
|
390
461
|
## The application icon: a role, not a kind
|
package/docs/CACHING.md
CHANGED
|
@@ -126,7 +126,7 @@ the profile declarations already in its key. The composed contrast join over
|
|
|
126
126
|
every owner's facts belongs to the revision's memoized check, not to an owner's
|
|
127
127
|
entry: a token edit reuses every owner analysis and reruns only the join (stage
|
|
128
128
|
`composed-contrast`), and an owner edit changes that owner's facts alone. The
|
|
129
|
-
outcome schema is `ads-owner-analysis/
|
|
129
|
+
outcome schema is `ads-owner-analysis/9` (it carries each owner's closed props for the showcase's live controls); it includes the composition facts and
|
|
130
130
|
the profile/choice inventory `design`.
|
|
131
131
|
|
|
132
132
|
- Settled outcomes (facts or a deterministic analysis failure) are reused;
|
package/docs/CHANGELOG.md
CHANGED
|
@@ -2,60 +2,385 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
-
## 0.5.
|
|
5
|
+
## 0.5.1
|
|
6
6
|
|
|
7
7
|
<!-- ads-local-tests:start -->
|
|
8
|
-
Local verification: **
|
|
9
|
-
Tested commit: `
|
|
10
|
-
Completed 2026-11-
|
|
8
|
+
Local verification: **1971/1971 passed** with `bun run test`.
|
|
9
|
+
Tested commit: `c1f3a2a0fc34fd9df4e9e48faca2990876eebd3b`; Bun 1.4.4.
|
|
10
|
+
Completed 2026-11-20T23:43:33.242Z (1229 seconds).
|
|
11
11
|
|
|
12
12
|
<!-- ads-local-test-proof
|
|
13
13
|
{
|
|
14
14
|
"schema": 3,
|
|
15
|
-
"version": "0.5.
|
|
16
|
-
"commit": "
|
|
17
|
-
"sourceSha256": "
|
|
15
|
+
"version": "0.5.1",
|
|
16
|
+
"commit": "c1f3a2a0fc34fd9df4e9e48faca2990876eebd3b",
|
|
17
|
+
"sourceSha256": "54d382a6d8c0c0f14435061163097474de91c091cde83598ffb368c5c1370c30",
|
|
18
18
|
"command": "bun run test",
|
|
19
19
|
"result": "pass",
|
|
20
|
-
"tests":
|
|
21
|
-
"pass":
|
|
20
|
+
"tests": 1971,
|
|
21
|
+
"pass": 1971,
|
|
22
22
|
"fail": 0,
|
|
23
23
|
"skipped": 0,
|
|
24
24
|
"groups": [
|
|
25
25
|
{
|
|
26
26
|
"name": "unit",
|
|
27
|
-
"tests":
|
|
28
|
-
"pass":
|
|
27
|
+
"tests": 744,
|
|
28
|
+
"pass": 744,
|
|
29
29
|
"fail": 0,
|
|
30
30
|
"skipped": 0,
|
|
31
|
-
"reportSha256": "
|
|
31
|
+
"reportSha256": "23b8fcb121a9352378aec550eb898cc965758ef5735cd7d3be6ddfd6ddadc277"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"name": "integration",
|
|
35
|
-
"tests":
|
|
36
|
-
"pass":
|
|
35
|
+
"tests": 927,
|
|
36
|
+
"pass": 927,
|
|
37
37
|
"fail": 0,
|
|
38
38
|
"skipped": 0,
|
|
39
|
-
"reportSha256": "
|
|
39
|
+
"reportSha256": "1718b43fb0f2394578d8668f697fea9b417fe08ad6f949b31817961c76046deb"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"name": "browser",
|
|
43
|
-
"tests":
|
|
44
|
-
"pass":
|
|
43
|
+
"tests": 300,
|
|
44
|
+
"pass": 300,
|
|
45
45
|
"fail": 0,
|
|
46
46
|
"skipped": 0,
|
|
47
|
-
"reportSha256": "
|
|
47
|
+
"reportSha256": "dcea267c35cb4953d9790d9e1eb9109f5b931a4a391437b0c2357e5f724b8267"
|
|
48
48
|
}
|
|
49
49
|
],
|
|
50
50
|
"testOverrides": {},
|
|
51
51
|
"bun": "1.4.4",
|
|
52
|
-
"completedAt": "2026-11-
|
|
53
|
-
"durationMs":
|
|
54
|
-
"logSha256": "
|
|
52
|
+
"completedAt": "2026-11-20T23:43:33.242Z",
|
|
53
|
+
"durationMs": 1228954,
|
|
54
|
+
"logSha256": "7e87e28c41d83bf929e094d12d0ad4d0863483e5ff399d1a15616142ec95fad4"
|
|
55
55
|
}
|
|
56
56
|
-->
|
|
57
57
|
<!-- ads-local-tests:end -->
|
|
58
58
|
|
|
59
|
+
Upgrade from 0.5.0 with the `ads-migrate` skill
|
|
60
|
+
(`skills/ads-migrate/references/0.5.0-to-0.5.1.md`): the text keyline check can
|
|
61
|
+
fail a design system that passed before, animation defined in script is now
|
|
62
|
+
an error (`source/script-animation`), and a part or child that paints over a
|
|
63
|
+
rounded corner is an error (`construction/corner-overpaint`,
|
|
64
|
+
`corner-overpainted`). `ads init` no longer installs a design system. Everything
|
|
65
|
+
else is additive.
|
|
66
|
+
|
|
67
|
+
**Performance, measured.** The analysis benchmark's record for this version is
|
|
68
|
+
committed with its comparison marked failed, after investigation. Measured back
|
|
69
|
+
to back against the 0.5.0 code on the same machine: no change at 8 owners; at
|
|
70
|
+
24 owners the check after an owner edit, draft reject and sibling checks, and
|
|
71
|
+
warm emission are about 8 to 18% slower (under the suite's 25% gate), the cold
|
|
72
|
+
check about 3% slower, and peak memory is unchanged (about 1.1 GB). In each of
|
|
73
|
+
two recording runs one or two short scenarios (40 to 160 ms) crossed 25%, a
|
|
74
|
+
different pair each time. The likely cause of the real part is more work per
|
|
75
|
+
owner (the props recorded for live controls, surface uses for the contrast
|
|
76
|
+
rules, the optional-prop presence axis); it is not yet profiled.
|
|
77
|
+
|
|
78
|
+
- **`ads init` sets a project up and installs no design system.** It writes
|
|
79
|
+
`ds.config.json`, the dependencies and scripts, and creates the design-system
|
|
80
|
+
folder empty for the project to author in; the package no longer contains
|
|
81
|
+
`dist/starters/`. An existing project is not affected. `initProject`'s
|
|
82
|
+
outcome `installed` is now `empty`. The design system ADS is tested with
|
|
83
|
+
stays in the repository as a test project (`tests/fixtures/starter-project/`)
|
|
84
|
+
and is what the documents' examples quote.
|
|
85
|
+
|
|
86
|
+
- **A state of a part as an owner state.** A `when` key may read a state of one
|
|
87
|
+
of the recipe's own direct parts: `&:has(> .part:state)` with `:checked`,
|
|
88
|
+
`:indeterminate`, `:focus-visible`, `:hover` or `:disabled`. A checkbox's
|
|
89
|
+
drawn box follows its native input, and a field's control reacts to its own
|
|
90
|
+
hover, without script. See [the language](LANGUAGE.md).
|
|
91
|
+
- **Named corners, and a frame under a condition.** A region root's frame
|
|
92
|
+
rounds the corners it names (`corners: ["end-start", "end-end"]`), and
|
|
93
|
+
`at: { <condition>: { frame: { rules?, corners? } } }` changes its ruled
|
|
94
|
+
sides and rounded corners under a named condition of its spatial profile.
|
|
95
|
+
- **Track weights.** A fluid grid with local `columns` takes `weights: [0.85,
|
|
96
|
+
1.15]`: each column gets its share of the width, in the emitted tracks and
|
|
97
|
+
in the cell widths the checks use.
|
|
98
|
+
- **A backdrop larger than its box.** A childless part of a `layered` parent
|
|
99
|
+
takes `outset: { block?, inline? }` from the spacing slot and is drawn past
|
|
100
|
+
its parent's box (a glow behind a card); the layout does not change
|
|
101
|
+
(`construction/outset-unsupported` elsewhere).
|
|
102
|
+
- **A content image with a light and a dark file.** Two sibling visual parts
|
|
103
|
+
declare `scheme: "light"` and `scheme: "dark"`; both `<img>` elements are in
|
|
104
|
+
the markup and the theme in effect displays one, however the page selected
|
|
105
|
+
it (root `data-theme`, a themed section, the OS preference), with no script.
|
|
106
|
+
`foundation.css` writes the switches (`--ads-not-light`, `--ads-not-dark`)
|
|
107
|
+
beside every `color-scheme`. The image the default theme hides must be
|
|
108
|
+
`loading="lazy"`, so its file is not downloaded
|
|
109
|
+
(`source/scheme-image-not-lazy`, `source/scheme-image-size-missing`,
|
|
110
|
+
`source/scheme-image-element`, `construction/scheme-unsupported`). The
|
|
111
|
+
starter's `Image` takes the second file as `sourceDark`.
|
|
112
|
+
- **An optional callback, object or slot selects markup directly.** An
|
|
113
|
+
optional prop (or mapped item field) typed as an object, a function or a
|
|
114
|
+
node is one input with two variants, given and not given, both checked:
|
|
115
|
+
`{onRemove && <button>}`, `{icon ? … : …}`, `{footer !== undefined && <div>}`.
|
|
116
|
+
No second boolean prop or always-rendered `hidden` wrapper is needed. A node
|
|
117
|
+
selects only by `!== undefined` / `=== undefined` (given, it may still be
|
|
118
|
+
`0`, `""`, `false` or `null`), and `choice/domain-not-finite` says so; a type
|
|
119
|
+
that admits `null` beside an object has a third variant; a default makes
|
|
120
|
+
the prop always given. Optional text compared with `undefined` or `null` is
|
|
121
|
+
read in each of its three variants. See [the language](LANGUAGE.md).
|
|
122
|
+
- **Text weight by state.** A `when` entry may name a `text` profile for a text
|
|
123
|
+
part, a root or a control. It changes the weight and the tracking only
|
|
124
|
+
(`construction/state-text-field` for anything else), so the line does not
|
|
125
|
+
move.
|
|
126
|
+
- **`normalize.resize`.** A `<textarea>` part states `resize: "vertical"` or
|
|
127
|
+
`"none"` (`source/resize-not-textarea` on another element).
|
|
128
|
+
- **A showcase that shows what matters.**
|
|
129
|
+
- *Live controls.* `controls: true` on a scenario draws a control for each
|
|
130
|
+
closed prop of the owner it covers, taken from the owner's own analysis;
|
|
131
|
+
every specimen receives the chosen values as props.
|
|
132
|
+
- *Profile samples decided by ADS.* The facts of the Profiles view state
|
|
133
|
+
what each profile's sample is (one control, a box, text, a gap, a size, a
|
|
134
|
+
focus indicator), the values for each part, the frame's own extent and,
|
|
135
|
+
for a composite, the fields that shape it. A control is drawn as one
|
|
136
|
+
control, a sized frame on a stage, a focus ring only on a focus profile.
|
|
137
|
+
- *The views are pictures, not listings.* Tokens, Profiles, Artwork and the
|
|
138
|
+
grid are drawn as cards: a sample on a stage, the name, and one line of
|
|
139
|
+
what it is (a token's value and what its author says it is for; a
|
|
140
|
+
profile's own fields first). A duration and an easing are a square
|
|
141
|
+
travelling a track for that long, or along that curve.
|
|
142
|
+
- *Every theme at once.* A paint, gradient or shadow that differs between
|
|
143
|
+
themes is drawn in each, with the value there beside its swatch: ADS
|
|
144
|
+
resolves each theme's value (the token facts' `themed`), so nothing has to
|
|
145
|
+
be switched to compare.
|
|
146
|
+
- *Samples that say what they are.* A spacing profile draws every gap it
|
|
147
|
+
names as the space between two blocks. Artwork's size is a lined stand-in
|
|
148
|
+
with its size in pixels. A composite of artwork and text is drawn as the
|
|
149
|
+
two together. A change of scale is played on a control-sized block, where
|
|
150
|
+
a press of a few percent can be seen. A line height is two lines that far
|
|
151
|
+
apart. Artwork groups, glyph sets and the summaries are cards too.
|
|
152
|
+
- *One-line sidebar titles.* A title that does not fit ends in "…"; the
|
|
153
|
+
whole title is its tooltip.
|
|
154
|
+
- *The grids, drawn.* The grid view stands in Profiles as "Spatial grids"
|
|
155
|
+
(it stood under Tokens as "Foundation"), since it draws the spatial
|
|
156
|
+
profiles: a card per breakpoint with its columns and outer margin to
|
|
157
|
+
scale, a card per gutter mode with the content placed in its columns, the
|
|
158
|
+
spacing scale and the units, then the grid itself at the preview's width,
|
|
159
|
+
each example in its own card. Profiles that build on one grid share its
|
|
160
|
+
cards: they are drawn once, and each other profile shows only its own
|
|
161
|
+
tracks.
|
|
162
|
+
- *Fixed.* The Profiles and Tokens pages sometimes showed their own kind
|
|
163
|
+
or group buttons beside the sidebar: a re-rendered view was not told
|
|
164
|
+
again which page to show. A stand-in block painted over a rounded
|
|
165
|
+
corner of a profile's sample.
|
|
166
|
+
- *The showcase's own controls are set apart.* A scenario's state switch and
|
|
167
|
+
its live controls stand in one lined panel captioned "Showcase settings",
|
|
168
|
+
so they are not taken for part of the component shown.
|
|
169
|
+
- *Fixed.* A whole-screen scenario collapsed to its header's height. The
|
|
170
|
+
header's section menu was cut mid-item in a narrow window. The Motion
|
|
171
|
+
sample's own scenario did nothing on Replay.
|
|
172
|
+
- **Dashed and dotted borders.** A frame profile states `borderStyle:
|
|
173
|
+
"solid" | "dashed" | "dotted"`; a region's frame, its one-sided rules, a
|
|
174
|
+
part's box and a control draw their border with it.
|
|
175
|
+
- **A control's own text profile.** `text: "<profile>"` on a control recipe
|
|
176
|
+
replaces the text slot of its profile and sizes the control.
|
|
177
|
+
- **The starter's Popover opens at its trigger.** It was pinned to the
|
|
178
|
+
viewport's corner wherever its trigger stood. `placement="toolbar"` keeps
|
|
179
|
+
the pinned tool panel. The placement the Menu and the Popover share is
|
|
180
|
+
`anchoredPlacement` in `controllers/AnchoredPanel/`.
|
|
181
|
+
- **New rules for rounded corners.** `construction/corner-overpaint` (error):
|
|
182
|
+
a region root with a radius, visible overflow and no inset whose first or
|
|
183
|
+
last part (or a layer) paints a background over a corner. The render audit's
|
|
184
|
+
`corner-overpainted` (error) measures the same where the child is another
|
|
185
|
+
component or an image. Both can fail a design system that passed before;
|
|
186
|
+
the repair is to clip the root, inset it or round the part.
|
|
187
|
+
- **Safe alignment where an element scrolls.** Centre and end alignment on an
|
|
188
|
+
axis the element itself scrolls are emitted as `safe center` / `safe end`,
|
|
189
|
+
so overflowing content starts at the scroll origin instead of before it.
|
|
190
|
+
- **Contrast minimums follow what the colour paints.** 0.5.0 held every
|
|
191
|
+
surface colour to the text minimum, 4.5:1. Now large text and artwork that
|
|
192
|
+
carries meaning (a visual part, a control that renders no text) need 3:1,
|
|
193
|
+
and artwork hidden from assistive technology has none (WCAG 2.2 1.4.3,
|
|
194
|
+
1.4.11). A surface profile's own pair below 4.5:1 is accepted when every use
|
|
195
|
+
of the profile in the design system is one of those; anything ADS cannot
|
|
196
|
+
prove keeps 4.5:1.
|
|
197
|
+
- **Fixed: state contrast paired states that cannot hold together.** A
|
|
198
|
+
toggle's hover colour while not chosen (`&[aria-pressed="false"]:hover`) was
|
|
199
|
+
checked against its chosen fill (`&[aria-pressed="true"]`) and failed with
|
|
200
|
+
`construction/state-contrast-insufficient`. Two values of one attribute, a
|
|
201
|
+
state and its `:not()`, and `:disabled` with `:enabled` are no longer paired;
|
|
202
|
+
the same holds for placeholder contrast.
|
|
203
|
+
|
|
204
|
+
- **Prose: long-form content.** `layout: "prose"` styles the plain flow
|
|
205
|
+
elements of content its owner does not write (the elements Markdown produces
|
|
206
|
+
and the common HTML beside them), wherever they nest, from the text, surface
|
|
207
|
+
and frame profiles each element names, with a `rhythm` between blocks. Only
|
|
208
|
+
elements without a class are styled, so components in the content keep their
|
|
209
|
+
design. Each declared colour is proven on every surface it can sit on
|
|
210
|
+
(`construction/prose-contrast-insufficient`). Scenarios, mocks and
|
|
211
|
+
application source may hold plain flow markup inside a prose owner; an
|
|
212
|
+
element its recipe does not declare is `prose-element-undeclared`. `ads emit`
|
|
213
|
+
writes `ads-prose.json` for `ads-guard`. Spacing profiles gain `sectionGap`
|
|
214
|
+
and `indent`. The starter has a **Prose** pattern as the worked example, with
|
|
215
|
+
`ProseHtml` for content that arrives as an HTML string. See
|
|
216
|
+
[Prose](LANGUAGE.md#prose-long-form-content).
|
|
217
|
+
- **Masks.** Surface field `mask` (role `gradient`) fades an element by the
|
|
218
|
+
gradient's alpha, as `mask-image` with its `-webkit-` companion, on a visual
|
|
219
|
+
part or on an element that scrolls; elsewhere it is
|
|
220
|
+
`construction/surface-effect-misplaced`. The platform inventory lists
|
|
221
|
+
`mask-image`.
|
|
222
|
+
- **Sticky elements.** `sticky: { edge, clear? }` on a region root or part
|
|
223
|
+
keeps it at a block edge of its scrolling container (a menu bar, a contents
|
|
224
|
+
list, a table header). `clear: "block-start"` holds it below a bar by the
|
|
225
|
+
layer profile's `clearBlockStart`; the layer profile's new `stickyLayer`
|
|
226
|
+
stacks it.
|
|
227
|
+
- **Borders whose sides differ.** Frame profiles gain a border width per side
|
|
228
|
+
(`borderInlineStartWidth`, …) and surface profiles a border paint per side
|
|
229
|
+
(`borderInlineStartColor`, …), beside the shared `borderWidth` and
|
|
230
|
+
`borderColor`: a card with a thick accent edge and hairlines elsewhere.
|
|
231
|
+
One-sided `rules` take each named side's own values.
|
|
232
|
+
- **Frame insets per side.** Frame profiles gain `paddingInlineStart`,
|
|
233
|
+
`paddingInlineEnd`, `paddingBlockStart` and `paddingBlockEnd` for container
|
|
234
|
+
frames (a chip padded less beside its leading mark). A side stated beside its
|
|
235
|
+
axis or beside `padding` is `construction/frame-field-conflict`. The keyline
|
|
236
|
+
check reads the start inset.
|
|
237
|
+
- **Insets per side on a control frame.** A control's frame profile (a
|
|
238
|
+
button, a chip, a text input's frame) takes `paddingInlineStart` /
|
|
239
|
+
`paddingInlineEnd` and `paddingBlockStart` / `paddingBlockEnd` too: a tag
|
|
240
|
+
padded more before its remove button. A block side's inset is its least
|
|
241
|
+
inset, with `minimumBlockInset` as the axis's field; the target-size check
|
|
242
|
+
and one-sided `rules` read each side's own. A control frame with equal
|
|
243
|
+
sides emits the same CSS as before.
|
|
244
|
+
- **A visual part's size under a condition.** `at: { "<condition>": { visual:
|
|
245
|
+
"<profile>" } }` on a visual part resizes its drawing inside a named
|
|
246
|
+
condition's range (a play glyph that is smaller on narrow screens). New rule
|
|
247
|
+
`construction/condition-visual-unsupported`.
|
|
248
|
+
- **Sequences.** A new profile kind, `sequence`, holds a fixed series of
|
|
249
|
+
`steps` (opacity, travel, scale, rotation at percentages of the run) with a
|
|
250
|
+
duration, an easing, a `repeat` (`loop`, `alternate`, `once`) and an optional
|
|
251
|
+
`stagger`. A region part, a recipe root (region or control), a control's artwork or a
|
|
252
|
+
standalone artwork plays one with `play: { sequence, order? }`, always
|
|
253
|
+
or under an owner state: a mascot's blink, dots pulsing in turn, a shake.
|
|
254
|
+
ADS emits `@keyframes`; reduced motion plays nothing. A repeating sequence
|
|
255
|
+
that plays whenever its part is rendered gets the note `a11y-motion-endless`
|
|
256
|
+
(info, WCAG 2.2.2). The Profiles view lists a sequence's steps and plays
|
|
257
|
+
them. See [Sequences](MOTION.md#sequences).
|
|
258
|
+
- **A measured value can be animated.** `motion: "<motion profile>"` on a
|
|
259
|
+
measured `length` or `transform` makes the browser animate each change the
|
|
260
|
+
owner sets (an accordion opening to its content's height), instead of a
|
|
261
|
+
frame loop in script.
|
|
262
|
+
- **New rule: `source/script-animation`.** An owner or a plain module that
|
|
263
|
+
defines an animation in script (`element.animate`, `new Animation`,
|
|
264
|
+
`new KeyframeEffect`, `setKeyframes`) is an error: keyframes and timing are
|
|
265
|
+
design, declared in the recipe. Controlling a declared animation
|
|
266
|
+
(`getAnimations()`, `finished`, `cancel()`, `pause()`, `currentTime`, the
|
|
267
|
+
animation events) is not affected. Until now such a call passed unnoticed
|
|
268
|
+
while a direct style write was refused. **A design system that animates from
|
|
269
|
+
script fails `ads check`** until the motion is declared in its recipe.
|
|
270
|
+
- **Opacity is a transition channel.** `paintTransition.channels` gains
|
|
271
|
+
`opacity`, the surface's `opacity` between states (a toast fading out). A
|
|
272
|
+
state that changes opacity on a transitioned element needs the channel.
|
|
273
|
+
- **Scale on one axis.** `scaleInline` and `scaleBlock` beside `scale`, on a
|
|
274
|
+
control's visual part and on a region part (a blink).
|
|
275
|
+
- **New rule: `source-unreached`.** A script in the design system that its
|
|
276
|
+
public entry never reaches (no exported owner imports it) is a review item.
|
|
277
|
+
Until now such a file was silently ignored: no rule ran on it and nothing
|
|
278
|
+
emitted it, so a component could sit in the design system unchecked. It does
|
|
279
|
+
not fail `ads check`; export the file, import it from an exported owner, or
|
|
280
|
+
delete it.
|
|
281
|
+
- **Motion on a region's parts.** A region part can move under an owner state
|
|
282
|
+
of its root: `transition: ["translate", "scale"]` with `translateInline`,
|
|
283
|
+
`translateBlock` and `scale` effects in `when`, timed by the recipe's motion
|
|
284
|
+
slot or the part's own `motion` profile (a card whose arrow slides and whose
|
|
285
|
+
picture lifts while the card is hovered). Before, only a control's visual
|
|
286
|
+
part could move. See [Motion on a region's parts](MOTION.md#motion-on-a-regions-parts).
|
|
287
|
+
- **A mapped item's fields are finite choices.** In a `.map` over data,
|
|
288
|
+
`item.sub && <span>…</span>` is accepted for an optional text field, and a
|
|
289
|
+
literal-union or boolean field selects design, as the destructured form
|
|
290
|
+
(`({ sub }) => …`) already did. Before, reading the field through the item
|
|
291
|
+
was `domain-not-finite`, which pushed owners into a public child component
|
|
292
|
+
per item.
|
|
293
|
+
- **Fewer contrast reviews.** A surface whose background is fully transparent
|
|
294
|
+
is now the note `surface-contrast-placed` (info) instead of the review
|
|
295
|
+
`surface-contrast-unresolved`: it paints nothing itself, and its contrast is
|
|
296
|
+
decided where it is placed. A partly transparent background is still
|
|
297
|
+
reviewed.
|
|
298
|
+
- **A region part binds its own artwork.** A region's visual part may state
|
|
299
|
+
`asset` (or `set`, or `glyph: "reference"`) with `visual` and `state`, so the
|
|
300
|
+
recipe is its own binding: `parts.<name>` on the element and
|
|
301
|
+
`assets.<name>.source` as the drawing. Before, a region needed a second,
|
|
302
|
+
binding-only recipe, or a separate icon component.
|
|
303
|
+
- **A part's own box.** `frame: { profile: "<frame profile>" }` on a region
|
|
304
|
+
part gives it that profile's padding, border, radius and sizes (a disc
|
|
305
|
+
behind a mark, a badge's box). Before, a part's frame could only be a control
|
|
306
|
+
frame, so a decorative box needed its own owner.
|
|
307
|
+
- **A control that fills its container.** `extent: "container"` on a control's
|
|
308
|
+
recipe root makes it as wide as its container in any parent, as on an inline
|
|
309
|
+
region. Before, a full-width button depended on each parent stretching it.
|
|
310
|
+
- **Text profiles.** New field `textTransform` (`"uppercase"`, `"lowercase"`,
|
|
311
|
+
`"capitalize"`), a fixed choice that cases the text as drawn. Fixed: a text
|
|
312
|
+
profile's `letterSpacing`, `wordSpacing`, `fontStretch`,
|
|
313
|
+
`fontFeatureSettings`, `fontVariationSettings`, `textDecorationColor`,
|
|
314
|
+
`textDecorationThickness` and `textUnderlineOffset` passed `ads check` but
|
|
315
|
+
failed emission (`unregistered-property`) for the first owner that used them
|
|
316
|
+
in 0.5.0.
|
|
317
|
+
- A motion profile without `delay` now times a control's glyph transition; the
|
|
318
|
+
field was required there and optional everywhere else, so projects carried a
|
|
319
|
+
`0ms` token only to satisfy it.
|
|
320
|
+
- **Font fallback metrics.** `font({ …, fallback: "Arial" })` makes ADS read
|
|
321
|
+
each face file's measurements and emit a `"<family> Fallback"` `@font-face`
|
|
322
|
+
per face: the system font (`src: local()`) with `size-adjust`,
|
|
323
|
+
`ascent-override`, `descent-override` and `line-gap-override` matched to the
|
|
324
|
+
family, so text does not move when the web font arrives. `fallback` is
|
|
325
|
+
`"Arial"`, `"Times New Roman"`, `"Courier New"`, or
|
|
326
|
+
`{ font, sizeAdjust }` for another system font. New rule `font-fallback`
|
|
327
|
+
(error): a font-family token that names such a family first names
|
|
328
|
+
`"<family> Fallback"` right after it.
|
|
329
|
+
- **Entrances.** A recipe root (region or control) or a region part can enter
|
|
330
|
+
on its first render: `enter: { from: { surface, translate | scale | rotate },
|
|
331
|
+
motion }`. The starting surface states only `opacity` and `blur`; at most one
|
|
332
|
+
movement is read from the entrance's motion profile, which needs a duration,
|
|
333
|
+
an easing and `reduced: "static"`; a part's own `delay` staggers it. ADS
|
|
334
|
+
emits `@starting-style` and a transition group, with no script; reduced
|
|
335
|
+
motion and browsers without `@starting-style` show the element settled. New
|
|
336
|
+
rules: `construction/enter-surface-unsupported`,
|
|
337
|
+
`construction/enter-property-conflict`. See
|
|
338
|
+
[Entrances](MOTION.md#entrances). Entrances driven by scrolling are not built
|
|
339
|
+
yet.
|
|
340
|
+
- **Surface effects.** A surface profile's `blur` and `backdropBlur` now
|
|
341
|
+
lower (`filter: blur()`, `backdrop-filter: blur()`); in 0.5.0 an owner that
|
|
342
|
+
used such a surface failed emission with `unregistered-property`. New fields:
|
|
343
|
+
`backdropSaturate` (new token role **`saturation`**, sheet
|
|
344
|
+
`saturation.ads.css`, a percentage where `100%` is unchanged),
|
|
345
|
+
`shapeShadow` (a shadow that follows a drawing's shape, on a visual part) and
|
|
346
|
+
`groupShadow` (one shadow for a container and everything in it, an explicit
|
|
347
|
+
choice). ADS composes them in a fixed order, `filter: blur() drop-shadow()`
|
|
348
|
+
and `backdrop-filter: blur() saturate()`, with the `-webkit-backdrop-filter`
|
|
349
|
+
companion. A shape or group shadow in the wrong place is
|
|
350
|
+
`construction/surface-effect-misplaced`; its token must be one layer without
|
|
351
|
+
spread, inset or `none` in every theme and brand
|
|
352
|
+
(`construction/surface-shadow-layer`). `paintTransition` gains the channels
|
|
353
|
+
`filter` and `backdrop-filter`; an effect that changes between surfaces
|
|
354
|
+
needs its channel, where before any blur on a transitioned element was
|
|
355
|
+
refused. The platform inventory lists `backdrop-filter` and
|
|
356
|
+
`filter-effects`. The starter gains the `saturation` sheet, a one-layer
|
|
357
|
+
`--shadow-shape` and the `lifted-drawing` surface.
|
|
358
|
+
- **New rules: the text keyline.** A padded container frame in a cell of a grid
|
|
359
|
+
on a narrower gutter than `wide` (a card in a `narrow` or `condensed` cell)
|
|
360
|
+
must put its content on the grid's text keyline: that gutter's start and the
|
|
361
|
+
frame's inline padding equal the wide gutter's start, within the spatial
|
|
362
|
+
profile's fine unit, in every theme and brand. A frame in the grid's own
|
|
363
|
+
owner is `source/keyline-missed`; a public component placed in the cell is
|
|
364
|
+
checked by its root frame across owners, as `component-keyline` (a root ADS
|
|
365
|
+
cannot read is the review item `component-keyline-unresolved`). Borders are
|
|
366
|
+
not counted; controls, frames without inline padding and `gutter: "none"`
|
|
367
|
+
grids are exempt. **A design system with such a frame fails `ads check`**
|
|
368
|
+
until the frame's inline padding is the wide gutter's token; the starter
|
|
369
|
+
gains a `card-cell` profile that shows the repair.
|
|
370
|
+
- The starter has a **SplitView** pattern: two panes resized by a grip, by
|
|
371
|
+
pointer or keyboard, on a measured width, with a minimum for each pane, right
|
|
372
|
+
to left, and the values assistive technology needs. Its scenario nests a
|
|
373
|
+
container-context grid in a pane. It is the starter's example of a resizable
|
|
374
|
+
layout; before, a split view existed only as a test fixture.
|
|
375
|
+
- The Foundation view shows more of each grid: one example per gutter mode
|
|
376
|
+
(before, only the first), a hybrid grid for a profile that states fixed
|
|
377
|
+
tracks, a fixed tiling for one that states a tile size, and the spacing scale
|
|
378
|
+
with a bar per step. All come from the preview facts, where `example` is
|
|
379
|
+
replaced by `examples` and `omitted`. The view now takes the full token
|
|
380
|
+
sheet and no owner's sheet, so an owner-only edit no longer rebuilds it.
|
|
381
|
+
|
|
382
|
+
## 0.5.0
|
|
383
|
+
|
|
59
384
|
**0.5.0 has one new design model, and it is a breaking release.** A 0.4.x
|
|
60
385
|
design system fails the 0.5.0 checks; ADS does not detect or convert one.
|
|
61
386
|
Migrate with the `ads-migrate` skill
|
|
@@ -4,9 +4,9 @@ ADS's design draws on published work from IBM and Adobe. Thank you to their
|
|
|
4
4
|
designers and maintainers for publishing both guidance and source.
|
|
5
5
|
|
|
6
6
|
Two things are kept apart here: what the ADS engine requires of every project,
|
|
7
|
-
and what only the
|
|
7
|
+
and what only the example design system chooses.
|
|
8
8
|
|
|
9
|
-
| Borrowed from | In the ADS engine (every project) | In the
|
|
9
|
+
| Borrowed from | In the ADS engine (every project) | In the example design system only (a project may change it) |
|
|
10
10
|
| --- | --- | --- |
|
|
11
11
|
| IBM Carbon's 2x Grid | The shape of a `spatial` profile: a mini unit and a fine unit that divides it, ordered breakpoint tiers with a column count and an outer margin, and gutter modes that are insets inside a cell | The values: an 8px mini unit, 4/8/16 columns, the 320/672/1056px breakpoints (authored as 20/42/66rem), a 1584px maximum width, and the mode names `wide`, `narrow`, `condensed` |
|
|
12
12
|
| Adobe Spectrum | Nothing is required. A spacing scale is an explicit list of named tokens, so it may be uniform or not | A non-uniform scale: 0, 1, 2, 4, 6, 8, 12, 16, 24, 32, 48, 64, 96px |
|
|
@@ -15,13 +15,13 @@ and what only the starter chooses.
|
|
|
15
15
|
|
|
16
16
|
| Source | What it informed |
|
|
17
17
|
| --- | --- |
|
|
18
|
-
| [Carbon 2x Grid](https://www.carbondesignsystem.com/building-blocks/foundations/2x-grid/overview) | Mini-unit rhythm, fixed/fluid/hybrid layout concepts, shared track keylines and the
|
|
18
|
+
| [Carbon 2x Grid](https://www.carbondesignsystem.com/building-blocks/foundations/2x-grid/overview) | Mini-unit rhythm, fixed/fluid/hybrid layout concepts, shared track keylines and the example design system's breakpoint family |
|
|
19
19
|
| [Carbon grid implementation](https://github.com/carbon-design-system/carbon/tree/593de4deda2d96f47f71cdfc9b30d07bd1302304/packages/grid) | Reference for wide/narrow/condensed cell insets, responsive placement and inherited track alignment |
|
|
20
20
|
| [IBM UI icons](https://www.ibm.com/design/language/iconography/ui-icons/usage/) | Size roles and optical centering beside text in showcase UI and design guidance |
|
|
21
21
|
| [Adobe Spectrum](https://spectrum.adobe.com/) | The non-uniform spacing scale; the static-colour guidance |
|
|
22
22
|
| [IBM pictograms](https://www.ibm.com/design/language/iconography/pictograms/usage/) | Distinguishing larger illustration artwork from UI glyphs and preserving clear space |
|
|
23
23
|
|
|
24
|
-
The
|
|
24
|
+
The example design system's breakpoint values, column counts and outer margins follow Carbon's
|
|
25
25
|
[breakpoint table](https://www.carbondesignsystem.com/building-blocks/foundations/2x-grid/overview#breakpoints).
|
|
26
26
|
|
|
27
27
|
Carbon's Sass and React grid packages are not installed, vendored or runtime
|
|
@@ -29,7 +29,7 @@ dependencies of ADS. The grid source reference above identifies the revision
|
|
|
29
29
|
used during the design research.
|
|
30
30
|
|
|
31
31
|
This acknowledgment records design provenance, not a license change or a claim
|
|
32
|
-
that ADS implements every Carbon feature. The ADS marks and the
|
|
32
|
+
that ADS implements every Carbon feature. The ADS marks and the example design system
|
|
33
33
|
placeholder artwork have their own credits in their asset directories. Other
|
|
34
34
|
third-party material keeps its colocated notices, including the upstream license
|
|
35
35
|
shipped with `ads-designer`.
|