@reqvire-org/ads 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -6
- package/dist/ads-errors.mjs +382 -34
- package/dist/ads-views.mjs +4 -4
- package/dist/analysis/composition-axes.mjs +48 -0
- package/dist/analysis/construction-memo.mjs +38 -0
- package/dist/analysis/context.mjs +19 -0
- package/dist/analysis/design-reads.mjs +177 -0
- package/dist/analysis/design-usage.mjs +20 -4
- package/dist/analysis/factored-classes.mjs +90 -0
- package/dist/analysis/helpers.mjs +5 -7
- package/dist/analysis/mock-check.mjs +5 -4
- package/dist/analysis/native-project.mjs +12 -0
- package/dist/analysis/owner-analysis-cache.mjs +86 -23
- package/dist/analysis/owner-analysis-key.mjs +42 -10
- package/dist/analysis/owner-choices.mjs +195 -43
- package/dist/analysis/owner-composition.mjs +152 -43
- package/dist/analysis/owner-controls.mjs +27 -0
- package/dist/analysis/owner-reuse.mjs +8 -6
- package/dist/analysis/owner-source.mjs +309 -83
- package/dist/analysis/prose-owners.mjs +57 -0
- package/dist/analysis/scenario-keys.mjs +10 -7
- package/dist/analysis/service.mjs +50 -3
- package/dist/analysis/standalone.mjs +7 -4
- package/dist/analysis/styling-ownership.mjs +22 -0
- package/dist/analysis/syntax.mjs +59 -1
- package/dist/analysis/worker-protocol.mjs +14 -2
- package/dist/analysis/worker.mjs +32 -10
- package/dist/architecture-report.mjs +26 -0
- package/dist/asset-view-facts.mjs +16 -2
- package/dist/boundaries.mjs +26 -10
- package/dist/bun-compiler.mjs +2 -2
- package/dist/check-service.mjs +29 -17
- package/dist/check.mjs +20 -7
- package/dist/cli-arguments.mjs +2 -2
- package/dist/cli.mjs +4 -4
- package/dist/composed-contrast.mjs +28 -8
- package/dist/composed-keyline.mjs +107 -0
- package/dist/config.mjs +2 -1
- package/dist/construction-output.mjs +149 -20
- package/dist/construction-spec.d.mts +320 -12
- package/dist/construction-spec.mjs +452 -69
- package/dist/corner-overpaint.mjs +65 -0
- package/dist/derived-states.mjs +182 -0
- package/dist/design-foundation.mjs +6 -1
- package/dist/design-inputs.mjs +18 -3
- package/dist/design-system-closure.mjs +12 -7
- package/dist/design-usage.mjs +8 -2
- package/dist/emit/contract.mjs +24 -5
- package/dist/emit/emission.mjs +14 -5
- package/dist/emit/font-emission.mjs +21 -1
- package/dist/emit/foundation-sheet.mjs +6 -5
- package/dist/emit/integrity.mjs +8 -2
- package/dist/emit/output-watch.mjs +120 -0
- package/dist/emit/owner-emission-cache.mjs +4 -4
- package/dist/emit/preview-emitter.mjs +4 -2
- package/dist/emit/preview-tree.mjs +1 -1
- package/dist/emit/service.mjs +8 -2
- package/dist/finding-rules.mjs +10 -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/form-states.mjs +8 -0
- package/dist/foundation-macro.d.mts +1 -1
- package/dist/frame-regions.mjs +92 -9
- package/dist/grid-facts.mjs +72 -16
- package/dist/grid-lowering.mjs +11 -5
- package/dist/hover-geometry.mjs +15 -0
- package/dist/init.mjs +14 -23
- package/dist/input-digests.mjs +17 -10
- package/dist/linaria/delivery.mjs +2 -0
- package/dist/lowering-enter.mjs +31 -0
- package/dist/lowering-properties.mjs +27 -1
- package/dist/lowering-region-layout.mjs +49 -10
- package/dist/lowering-sequence.mjs +89 -0
- package/dist/lowering-session.mjs +7 -0
- package/dist/lowering-transitions.mjs +22 -8
- package/dist/mcp/build-status.mjs +9 -1
- package/dist/mcp/compiler-channel.mjs +11 -4
- package/dist/mcp/mutations.mjs +1 -0
- package/dist/mcp/preview-http.bundle.js +2 -2
- package/dist/mcp/preview-watch.mjs +2 -1
- package/dist/mcp/preview-widget.bundle.js +5 -5
- package/dist/motion-model.mjs +3 -1
- package/dist/owner-analysis-check.mjs +86 -12
- package/dist/owner-errors.mjs +20 -2
- package/dist/owner-lowering.mjs +104 -25
- package/dist/owner-scenarios.mjs +29 -4
- package/dist/ownership-model.mjs +37 -4
- package/dist/paint-contrast.mjs +5 -0
- package/dist/placeholder-contrast.mjs +18 -1
- package/dist/platform-features.mjs +35 -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 +176 -15
- package/dist/recipe-model.mjs +35 -7
- package/dist/region-lowering.mjs +463 -65
- package/dist/render-audit/corner-overpaint.page.mjs +54 -0
- package/dist/render-audit/layout-shift.page.mjs +24 -0
- package/dist/render-audit/render-states.mjs +122 -1
- package/dist/render-audit/render-states.page.mjs +140 -0
- package/dist/render-audit/worker.mjs +23 -3
- package/dist/render-audit.mjs +139 -1
- package/dist/role-vocabulary.d.mts +43 -2
- package/dist/role-vocabulary.mjs +50 -4
- package/dist/scenario-kit.d.mts +6 -0
- package/dist/scenario-registry.mjs +1 -1
- package/dist/scenarios-compiler.mjs +20 -6
- 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 +136 -89
- 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 +9 -2
- package/dist/skills/ads-designer/references/atomic-styles.md +8 -1
- package/dist/skills/ads-designer/references/branding.md +20 -5
- package/dist/skills/ads-designer/references/cli.md +4 -4
- package/dist/skills/ads-designer/references/contracts.md +14 -4
- 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 +46 -3
- package/dist/skills/ads-designer/references/motion.md +45 -1
- package/dist/skills/ads-designer/references/performance.md +7 -1
- package/dist/skills/ads-designer/references/recipes.md +92 -7
- 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 +14 -4
- 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 +46 -3
- package/dist/skills/ads-import/references/recipes.md +92 -7
- 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 +3 -1
- package/dist/skills/ads-migrate/references/0.5.0-to-0.5.1.md +239 -0
- package/dist/skills/ads-migrate/references/0.5.1-to-0.5.2.md +185 -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 +14 -4
- 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 +46 -3
- package/dist/skills/ads-port/references/recipes.md +92 -7
- 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 +69 -10
- package/dist/surface-effects.mjs +100 -0
- package/dist/target-size.mjs +1 -1
- package/dist/task-cache.mjs +9 -19
- 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-checks.mjs +1 -1
- package/dist/validation.mjs +1 -1
- package/docs/ADS.md +36 -13
- package/docs/ARCHITECTURE.md +223 -23
- package/docs/ASSETS.md +81 -10
- package/docs/CACHING.md +152 -24
- package/docs/CHANGELOG.md +525 -23
- package/docs/DESIGN-REFERENCES.md +5 -5
- package/docs/GUIDE.md +286 -73
- package/docs/LANGUAGE.md +428 -24
- package/docs/LOWERING.md +13 -1
- package/docs/MOTION.md +241 -7
- package/docs/PROFILE-KINDS.md +176 -14
- package/docs/PROFILES.md +2 -2
- package/docs/RULES.md +63 -24
- package/docs/TOKEN-ROLES.md +15 -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
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { type Result } from "./result.mjs";
|
|
2
|
+
import type { ColorScheme } from "./asset-declaration.mjs";
|
|
2
3
|
import { type Json, type JsonObject } from "./json.mjs";
|
|
3
4
|
import { type ConditionProblem } from "./state-conditions.mjs";
|
|
5
|
+
import { type ProseElementName } from "./prose-model.mjs";
|
|
4
6
|
export type ConstructionKind = "control" | "artwork" | "region" | "grid";
|
|
5
7
|
export type SpecFailure = {
|
|
6
8
|
readonly kind: "field-unsupported";
|
|
@@ -72,18 +74,20 @@ export interface TextPart {
|
|
|
72
74
|
readonly required: boolean;
|
|
73
75
|
readonly textEdge: readonly string[];
|
|
74
76
|
readonly wrap: ControlLabelWrap;
|
|
77
|
+
/** How the label's lines sit in its box (`text-align`): it shows once the label wraps or the control is wider than it. */
|
|
78
|
+
readonly align: TextAlign | null;
|
|
75
79
|
}
|
|
76
80
|
/** A state effect on a control's visual part, bound to the motion profile. */
|
|
81
|
+
/** A control's artwork effect under an owner state. The three scales are one channel: whole, or one axis only (a blink). */
|
|
77
82
|
export type GlyphEffect = {
|
|
78
|
-
readonly effect: "scale";
|
|
79
|
-
readonly field: string;
|
|
80
|
-
} | {
|
|
81
|
-
readonly effect: "translate-inline";
|
|
83
|
+
readonly effect: "scale" | "scale-inline" | "scale-block" | "translate-inline" | "rotate";
|
|
82
84
|
readonly field: string;
|
|
83
85
|
};
|
|
84
86
|
export interface GlyphPart {
|
|
85
87
|
readonly kind: "visual";
|
|
86
88
|
readonly name: string;
|
|
89
|
+
/** The sequences the artwork plays: at most one always, and one per owner state. */
|
|
90
|
+
readonly plays: readonly PlaySpec[];
|
|
87
91
|
readonly selector: string;
|
|
88
92
|
readonly required: boolean;
|
|
89
93
|
readonly transition: readonly string[];
|
|
@@ -108,7 +112,7 @@ export interface RootPressState {
|
|
|
108
112
|
readonly path: string;
|
|
109
113
|
}
|
|
110
114
|
/** The paints a surface treatment can transition, as CSS transition properties. */
|
|
111
|
-
export declare const PAINT_CHANNELS: readonly ["background-color", "border-color", "color", "box-shadow"];
|
|
115
|
+
export declare const PAINT_CHANNELS: readonly ["background-color", "border-color", "color", "box-shadow", "filter", "backdrop-filter", "opacity"];
|
|
112
116
|
export type PaintChannel = (typeof PAINT_CHANNELS)[number];
|
|
113
117
|
/** The motion profile that times a transition: the nearest recipe's motion slot, or a named motion profile. */
|
|
114
118
|
export type MotionBinding = {
|
|
@@ -117,13 +121,110 @@ export type MotionBinding = {
|
|
|
117
121
|
readonly kind: "profile";
|
|
118
122
|
readonly name: string;
|
|
119
123
|
};
|
|
124
|
+
/** How a region part moves under an owner state: each effect reads one field of the part's motion profile. */
|
|
125
|
+
export declare const PART_EFFECTS: {
|
|
126
|
+
readonly scale: {
|
|
127
|
+
readonly channel: "scale";
|
|
128
|
+
readonly field: "scale";
|
|
129
|
+
};
|
|
130
|
+
readonly scaleInline: {
|
|
131
|
+
readonly channel: "scale";
|
|
132
|
+
readonly field: "scale";
|
|
133
|
+
};
|
|
134
|
+
readonly scaleBlock: {
|
|
135
|
+
readonly channel: "scale";
|
|
136
|
+
readonly field: "scale";
|
|
137
|
+
};
|
|
138
|
+
readonly translateInline: {
|
|
139
|
+
readonly channel: "translate";
|
|
140
|
+
readonly field: "distance";
|
|
141
|
+
};
|
|
142
|
+
readonly translateBlock: {
|
|
143
|
+
readonly channel: "translate";
|
|
144
|
+
readonly field: "distance";
|
|
145
|
+
};
|
|
146
|
+
readonly rotate: {
|
|
147
|
+
readonly channel: "rotate";
|
|
148
|
+
readonly field: "angle";
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
/** A scale effect's value on its axis: the whole element, or one axis with the other at rest. */
|
|
152
|
+
export declare const scaleValue: (effect: "scale" | "scaleInline" | "scaleBlock" | "scale-inline" | "scale-block", value: string) => string;
|
|
153
|
+
export type PartEffectName = keyof typeof PART_EFFECTS;
|
|
154
|
+
export type PartChannel = "translate" | "scale" | "rotate";
|
|
155
|
+
/**
|
|
156
|
+
* A region part's motion under owner states: a card whose arrow slides, or whose picture grows, while
|
|
157
|
+
* the card is hovered. `transition` lists the channels that animate (an effect whose channel is not
|
|
158
|
+
* listed applies at once); `motion` times them and supplies their endpoints.
|
|
159
|
+
*/
|
|
160
|
+
export interface PartMotion {
|
|
161
|
+
readonly transition: readonly PartChannel[];
|
|
162
|
+
readonly motion: MotionBinding;
|
|
163
|
+
readonly when: readonly (readonly [condition: string, effects: readonly PartEffectName[]])[];
|
|
164
|
+
readonly path: string;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* `play: { sequence, order? }`: a part plays a sequence profile's steps (src/lowering-sequence.mts),
|
|
168
|
+
* whenever it is rendered (on the part) or under an owner state (in a `when` entry). `order` starts
|
|
169
|
+
* it that many of the profile's staggers late.
|
|
170
|
+
*/
|
|
171
|
+
export interface PlaySpec {
|
|
172
|
+
readonly condition: string | null;
|
|
173
|
+
readonly sequence: string;
|
|
174
|
+
readonly order: number;
|
|
175
|
+
readonly path: string;
|
|
176
|
+
}
|
|
177
|
+
/** The block edges an element can stick to while its container scrolls. */
|
|
178
|
+
export declare const STICKY_EDGES: readonly ["block-start", "block-end"];
|
|
179
|
+
/**
|
|
180
|
+
* `sticky: { edge, clear? }`: the element stays at an edge of its scrolling container while the rest
|
|
181
|
+
* scrolls. `clear: "block-start"` holds it below a region at the top (a sticky bar), by the layer
|
|
182
|
+
* profile's `clear-block-start`; without it the element sticks at the edge itself.
|
|
183
|
+
*/
|
|
184
|
+
export interface StickySpec {
|
|
185
|
+
readonly edge: (typeof STICKY_EDGES)[number];
|
|
186
|
+
readonly clear: boolean;
|
|
187
|
+
}
|
|
188
|
+
/** What an entering element moves by: each reads one field of the entrance's motion profile. */
|
|
189
|
+
export declare const ENTER_MOVEMENTS: {
|
|
190
|
+
readonly translate: "distance";
|
|
191
|
+
readonly scale: "scale";
|
|
192
|
+
readonly rotate: "angle";
|
|
193
|
+
};
|
|
194
|
+
export type EnterMovement = keyof typeof ENTER_MOVEMENTS;
|
|
195
|
+
/**
|
|
196
|
+
* What starts an entrance. `first-render`: the element's first style (`@starting-style`), timed by its
|
|
197
|
+
* motion profile. Further drivers (an owner state, the element's entry into view) join this union.
|
|
198
|
+
*/
|
|
199
|
+
export type EnterDriver = {
|
|
200
|
+
readonly kind: "first-render";
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* `enter: { from: { surface?, translate? | scale? | rotate? }, motion }`: the element starts from a
|
|
204
|
+
* declared look and settles into its own. The starting surface states only `opacity` and `blur`
|
|
205
|
+
* (checked when it lowers); at most one movement, read from the entrance's motion profile.
|
|
206
|
+
*/
|
|
207
|
+
export interface EnterSpec {
|
|
208
|
+
readonly driver: EnterDriver;
|
|
209
|
+
readonly surface: string | null;
|
|
210
|
+
readonly movement: {
|
|
211
|
+
readonly kind: EnterMovement;
|
|
212
|
+
readonly field: string;
|
|
213
|
+
} | null;
|
|
214
|
+
readonly motion: MotionBinding;
|
|
215
|
+
readonly path: string;
|
|
216
|
+
}
|
|
120
217
|
/** Paint channels of one element that change between its state surfaces over its motion profile's timing. */
|
|
121
218
|
export interface PaintTransition {
|
|
122
219
|
readonly channels: readonly PaintChannel[];
|
|
123
220
|
readonly motion: MotionBinding;
|
|
124
221
|
}
|
|
125
|
-
/**
|
|
126
|
-
|
|
222
|
+
/**
|
|
223
|
+
* Pseudo-elements an owned part may treat. `placeholder` is the native placeholder text of an input or
|
|
224
|
+
* textarea (a colour). `progressValue` is the filled part of a `<progress>` (a background): the part's own
|
|
225
|
+
* surface is its track.
|
|
226
|
+
*/
|
|
227
|
+
export declare const PSEUDO_ELEMENTS: readonly ["placeholder", "progressValue"];
|
|
127
228
|
export type PseudoElement = (typeof PSEUDO_ELEMENTS)[number];
|
|
128
229
|
/** The elements that have each pseudo-element: a treatment on any other element would never match. */
|
|
129
230
|
export declare const PSEUDO_HOSTS: {
|
|
@@ -163,9 +264,40 @@ interface ControlCommon {
|
|
|
163
264
|
readonly press: RootPress;
|
|
164
265
|
/** Paint channels of the control's root that transition between its surfaces; `null` when they change instantly. */
|
|
165
266
|
readonly paintTransition: PaintTransition | null;
|
|
166
|
-
|
|
267
|
+
/** The control's entrance; `null` when it appears settled. */
|
|
268
|
+
readonly enter: EnterSpec | null;
|
|
269
|
+
/** How wide the control is in its container: as wide as its content, or as wide as the container. */
|
|
270
|
+
readonly extent: RootExtent;
|
|
271
|
+
/** The sequences the control plays as a whole: at most one always, and one per owner state. */
|
|
272
|
+
readonly plays: readonly PlaySpec[];
|
|
273
|
+
/** The text profiles the control's text takes under its states (weight and tracking only). */
|
|
274
|
+
readonly textWhen: readonly StateText[];
|
|
275
|
+
/** The control's own text profile, replacing its profile's text slot; `null`: the slot's. */
|
|
276
|
+
readonly text: string | null;
|
|
277
|
+
/** `null` for a control that renders no text of its own (a switch, whose label is beside it). */
|
|
278
|
+
readonly label: TextPart | null;
|
|
167
279
|
/** `null` for a text-only control. */
|
|
168
280
|
readonly glyph: GlyphPart | null;
|
|
281
|
+
/** The control's decorative boxes (a switch's knob), in authored order. */
|
|
282
|
+
readonly decor: readonly DecorPart[];
|
|
283
|
+
}
|
|
284
|
+
/**
|
|
285
|
+
* A decorative box of a control: an empty element with a frame profile's box and a surface, hidden from
|
|
286
|
+
* assistive technology, that shows the control's state by its paint or position (a switch's knob, a
|
|
287
|
+
* radio's dot). `effects` move it under owner states; a move is the state's shape, so reduced motion keeps
|
|
288
|
+
* it and drops only its animation.
|
|
289
|
+
*/
|
|
290
|
+
export interface DecorPart {
|
|
291
|
+
readonly kind: "box";
|
|
292
|
+
readonly name: string;
|
|
293
|
+
readonly selector: string;
|
|
294
|
+
readonly required: boolean;
|
|
295
|
+
/** The frame profile that sizes and shapes the box. */
|
|
296
|
+
readonly box: string;
|
|
297
|
+
readonly surface: string | null;
|
|
298
|
+
readonly when: readonly (readonly [condition: string, surface: string | null, effects: readonly GlyphEffect[]])[];
|
|
299
|
+
/** The channels that animate (`translate`, `scale`), each with an effect in some `when` entry. */
|
|
300
|
+
readonly transition: readonly ("translate" | "scale")[];
|
|
169
301
|
}
|
|
170
302
|
/** A declared continuous rotation of standalone artwork under one condition. */
|
|
171
303
|
export interface ContinuousEffect {
|
|
@@ -179,19 +311,62 @@ export interface ArtworkPart {
|
|
|
179
311
|
/** The part's motion profile, when it declares motion. */
|
|
180
312
|
readonly motion: string | null;
|
|
181
313
|
readonly effects: readonly ContinuousEffect[];
|
|
314
|
+
/** The sequences the artwork plays: at most one always, and one per owner state. */
|
|
315
|
+
readonly plays: readonly PlaySpec[];
|
|
182
316
|
}
|
|
183
317
|
export interface ArtworkSpec {
|
|
184
318
|
readonly kind: "artwork";
|
|
185
319
|
readonly source: JsonObject;
|
|
186
320
|
readonly align: string;
|
|
187
321
|
readonly part: ArtworkPart;
|
|
322
|
+
/** A colour-only surface: the colour a foreground drawing takes (an icon's own quiet tone); `null`: its container's. */
|
|
323
|
+
readonly surface: string | null;
|
|
188
324
|
}
|
|
189
325
|
/**
|
|
190
326
|
* `native` keeps the element's own display: a treatment or frame without an
|
|
191
327
|
* arrangement. `layered` stacks every declared child part in one grid area,
|
|
192
328
|
* painted in DOM order.
|
|
193
329
|
*/
|
|
194
|
-
export type RegionLayout = "native" | "inline" | "stack" | "flow" | "layered";
|
|
330
|
+
export type RegionLayout = "native" | "inline" | "stack" | "flow" | "layered" | "prose";
|
|
331
|
+
/**
|
|
332
|
+
* One element of a prose recipe (./prose-model.mts): the profiles its plain markup takes, by name.
|
|
333
|
+
* `spaceBefore` replaces the rhythm before a block (more space above a heading); `indent` is a
|
|
334
|
+
* list's start inset; `marker` a colour-only surface for a list item's marker.
|
|
335
|
+
*/
|
|
336
|
+
export interface ProseElement {
|
|
337
|
+
readonly name: ProseElementName;
|
|
338
|
+
readonly path: string;
|
|
339
|
+
readonly text: string | null;
|
|
340
|
+
readonly surface: string | null;
|
|
341
|
+
readonly frame: string | null;
|
|
342
|
+
readonly when: readonly StateTreatment[];
|
|
343
|
+
readonly spaceBefore: SlotBinding | null;
|
|
344
|
+
/** The space between a block and whatever follows it, in place of the rhythm (a heading closer to its text); the larger of it and the next block's own `spaceBefore`. */
|
|
345
|
+
readonly spaceAfter: SlotBinding | null;
|
|
346
|
+
readonly indent: SlotBinding | null;
|
|
347
|
+
readonly marker: string | null;
|
|
348
|
+
/** Where a jump to the block lands (a heading with an id). */
|
|
349
|
+
readonly anchorClear: SlotBinding | null;
|
|
350
|
+
/** A text profile whose weight an item's marker takes (bold numbers and bullets). */
|
|
351
|
+
readonly markerText: string | null;
|
|
352
|
+
/** An unordered list's marker shape at each depth of nesting, outermost first; deeper lists keep the last. */
|
|
353
|
+
readonly markers: readonly ProseMarker[];
|
|
354
|
+
}
|
|
355
|
+
export declare const PROSE_MARKERS: readonly ["disc", "circle", "square"];
|
|
356
|
+
export type ProseMarker = (typeof PROSE_MARKERS)[number];
|
|
357
|
+
/** `layout: "prose"`: the space between blocks and the elements the recipe styles, in authored order. */
|
|
358
|
+
export interface ProseSpec {
|
|
359
|
+
readonly rhythm: SlotBinding | null;
|
|
360
|
+
readonly elements: readonly ProseElement[];
|
|
361
|
+
/**
|
|
362
|
+
* `elements.component`: the space around a component placed directly among the blocks (a callout, a code
|
|
363
|
+
* block with its own owner). Its design is its owner's; only the space the flow gives it is prose's.
|
|
364
|
+
*/
|
|
365
|
+
readonly component: {
|
|
366
|
+
readonly spaceBefore: SlotBinding | null;
|
|
367
|
+
readonly spaceAfter: SlotBinding | null;
|
|
368
|
+
} | null;
|
|
369
|
+
}
|
|
195
370
|
/** The scroll-snap axis and strictness a scrolling element declares (`scroll-snap-type`), on logical axes: they follow the writing mode, as `overflow` does. */
|
|
196
371
|
export declare const SNAP_TYPES: readonly ["inline mandatory", "inline proximity", "block mandatory", "block proximity", "both mandatory", "both proximity"];
|
|
197
372
|
export type SnapType = (typeof SNAP_TYPES)[number];
|
|
@@ -208,12 +383,46 @@ export interface Snap {
|
|
|
208
383
|
readonly align: SnapAlign;
|
|
209
384
|
}
|
|
210
385
|
/** How an element arranges its children. */
|
|
386
|
+
/** Later neighbours paint over earlier ones (DOM order). */
|
|
387
|
+
export interface OverlapSpec {
|
|
388
|
+
readonly by: SlotBinding;
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Geometry an element takes under one owner state: another frame profile (sizes, insets, radius, border
|
|
392
|
+
* widths), another spacing profile (the arrangement's gap and overlap are read from it), and for a part
|
|
393
|
+
* whether it is collapsed. Each is a whole profile, lowered and checked as the base one is.
|
|
394
|
+
*/
|
|
395
|
+
export interface StateGeometry {
|
|
396
|
+
readonly condition: string;
|
|
397
|
+
readonly frame: string | null;
|
|
398
|
+
readonly spacing: string | null;
|
|
399
|
+
/** A part only: `null` leaves the part as it is at rest. */
|
|
400
|
+
readonly collapsed: boolean | null;
|
|
401
|
+
readonly path: string;
|
|
402
|
+
}
|
|
403
|
+
/** The geometry that animates between states, as closed channels, timed by a motion profile. */
|
|
404
|
+
/**
|
|
405
|
+
* `overlap` is the element's own start margin where an overlapping arrangement places it: the arrangement
|
|
406
|
+
* decides the value, the element animates its change (a face in a pile that spreads).
|
|
407
|
+
*/
|
|
408
|
+
export declare const GEOMETRY_CHANNELS: readonly ["size", "inset", "gap", "radius", "border-width", "overlap"];
|
|
409
|
+
export type GeometryChannel = (typeof GEOMETRY_CHANNELS)[number];
|
|
410
|
+
export interface GeometryTransition {
|
|
411
|
+
readonly channels: readonly GeometryChannel[];
|
|
412
|
+
readonly motion: MotionBinding;
|
|
413
|
+
readonly path: string;
|
|
414
|
+
}
|
|
211
415
|
export interface Arrangement {
|
|
212
416
|
readonly layout: RegionLayout;
|
|
213
417
|
readonly align: string | null;
|
|
214
418
|
readonly justify: string | null;
|
|
215
419
|
readonly wrap: boolean;
|
|
216
420
|
readonly gap: SlotBinding | null;
|
|
421
|
+
/**
|
|
422
|
+
* `overlap`: neighbours overlap by a spacing value instead of being separated by one (a pile of faces, a
|
|
423
|
+
* stack of cards). Real layout: the row is as wide as what it shows. Never beside `gap`.
|
|
424
|
+
*/
|
|
425
|
+
readonly overlap: OverlapSpec | null;
|
|
217
426
|
/** `null` when the element does not snap its children. */
|
|
218
427
|
readonly snap: Snap | null;
|
|
219
428
|
}
|
|
@@ -256,13 +465,29 @@ export type RegionFrame =
|
|
|
256
465
|
readonly container: boolean;
|
|
257
466
|
readonly ratio: string | null;
|
|
258
467
|
readonly border: FrameBorder;
|
|
468
|
+
readonly corners: readonly FrameCorner[] | null;
|
|
259
469
|
}
|
|
260
470
|
/** `frame: "container"` requires complete frame and surface contracts. */
|
|
261
471
|
| {
|
|
262
472
|
readonly kind: "container";
|
|
263
473
|
readonly container: boolean;
|
|
264
474
|
readonly border: FrameBorder;
|
|
475
|
+
readonly corners: readonly FrameCorner[] | null;
|
|
265
476
|
};
|
|
477
|
+
/**
|
|
478
|
+
* The corners a frame rounds, by block then inline edge (`start-end`: the block-start, inline-end
|
|
479
|
+
* corner). `corners` on a frame rounds the named ones by the frame profile's `radius` and squares the
|
|
480
|
+
* others; without it every corner is rounded.
|
|
481
|
+
*/
|
|
482
|
+
export declare const FRAME_CORNERS: readonly ["start-start", "start-end", "end-start", "end-end"];
|
|
483
|
+
export type FrameCorner = (typeof FRAME_CORNERS)[number];
|
|
484
|
+
/** A region root's frame under one named condition: other ruled sides, other rounded corners, or both. */
|
|
485
|
+
export interface FrameCondition {
|
|
486
|
+
readonly condition: string;
|
|
487
|
+
readonly border: FrameBorder | null;
|
|
488
|
+
readonly corners: readonly FrameCorner[] | null;
|
|
489
|
+
readonly path: string;
|
|
490
|
+
}
|
|
266
491
|
/** Content beyond an element's box: shown (the default), clipped, or scrolled on one axis or both. */
|
|
267
492
|
export type Overflow = {
|
|
268
493
|
readonly kind: "visible";
|
|
@@ -283,7 +508,10 @@ export type Extent = {
|
|
|
283
508
|
/** A part shown or hidden while a named condition of the nearest recipe's spatial profile holds (viewport width below its token). */
|
|
284
509
|
export interface PartCondition {
|
|
285
510
|
readonly condition: string;
|
|
286
|
-
|
|
511
|
+
/** Whether the part is shown in the condition; `null` when the condition does not decide it. */
|
|
512
|
+
readonly visible: boolean | null;
|
|
513
|
+
/** The visual profile a visual part takes in the condition (its size there); `null` when it keeps its own. */
|
|
514
|
+
readonly visual: string | null;
|
|
287
515
|
}
|
|
288
516
|
/**
|
|
289
517
|
* The native element a region or part declares, for the closed UA
|
|
@@ -361,11 +589,14 @@ export type MeasuredType = (typeof MEASURED_TYPES)[number];
|
|
|
361
589
|
* the first set, `null` keeps the construction's own value or the property's
|
|
362
590
|
* initial value. A `size-track` replaces one track (1-based) of a grid's list.
|
|
363
591
|
*/
|
|
364
|
-
export type MeasuredValue =
|
|
592
|
+
export type MeasuredValue =
|
|
593
|
+
/** `motion`: the motion profile that animates a change of the value (an accordion opening to a measured height); `null` applies it at once. */
|
|
594
|
+
{
|
|
365
595
|
readonly type: "length";
|
|
366
596
|
readonly name: string;
|
|
367
597
|
readonly property: string;
|
|
368
598
|
readonly fallback: number | null;
|
|
599
|
+
readonly motion: string | null;
|
|
369
600
|
} | {
|
|
370
601
|
readonly type: "transform";
|
|
371
602
|
readonly name: string;
|
|
@@ -374,12 +605,14 @@ export type MeasuredValue = {
|
|
|
374
605
|
readonly x: number;
|
|
375
606
|
readonly y: number;
|
|
376
607
|
} | null;
|
|
608
|
+
readonly motion: string | null;
|
|
377
609
|
} | {
|
|
378
610
|
readonly type: "size-track";
|
|
379
611
|
readonly name: string;
|
|
380
612
|
readonly property: string;
|
|
381
613
|
readonly track: number;
|
|
382
614
|
readonly fallback: number | null;
|
|
615
|
+
readonly motion: string | null;
|
|
383
616
|
}
|
|
384
617
|
/** A cropped image's focal point, `[x, y]` in optical-centre coordinates: centred until it is given. */
|
|
385
618
|
| {
|
|
@@ -411,6 +644,21 @@ export interface RuntimePaint {
|
|
|
411
644
|
export interface RegionPart {
|
|
412
645
|
readonly name: string;
|
|
413
646
|
readonly selector: string;
|
|
647
|
+
/** `anchorClear`: where a jump to this element lands below the scroll container's top edge. */
|
|
648
|
+
readonly anchorClear: SlotBinding | null;
|
|
649
|
+
/** The geometry the part takes under owner states. */
|
|
650
|
+
readonly geometryWhen: readonly StateGeometry[];
|
|
651
|
+
readonly geometryTransition: GeometryTransition | null;
|
|
652
|
+
/**
|
|
653
|
+
* `collapsed: true`: the part takes no room on its parent's main axis, is transparent, and is hidden from
|
|
654
|
+
* assistive technology and focus; a `when` entry may open it (`collapsed: false`) or close an open one.
|
|
655
|
+
*/
|
|
656
|
+
readonly collapsed: boolean;
|
|
657
|
+
/**
|
|
658
|
+
* `focus: { of: "<sibling part>" }`: this part is the drawn stand-in of a native control beside it (the box
|
|
659
|
+
* of a checkbox whose `<input>` is hidden) and shows the focus indicator while that control has keyboard focus.
|
|
660
|
+
*/
|
|
661
|
+
readonly focusOf: string | null;
|
|
414
662
|
readonly required: boolean;
|
|
415
663
|
readonly content: PartContent;
|
|
416
664
|
readonly textEdge: readonly string[];
|
|
@@ -424,14 +672,33 @@ export interface RegionPart {
|
|
|
424
672
|
readonly surface: string | null;
|
|
425
673
|
/** A control frame on a native element (a text input): border-aware insets from its own text, its border on every side or as one-sided rules. */
|
|
426
674
|
readonly frame: ControlFrame | null;
|
|
675
|
+
/**
|
|
676
|
+
* A frame profile the part takes as its own box (`frame: { profile }`): padding, border, radius and
|
|
677
|
+
* sizes for a part that is not a control (a disc behind a mark, a badge's box). `null` otherwise.
|
|
678
|
+
*/
|
|
679
|
+
readonly box: string | null;
|
|
427
680
|
/** A declared, human-approved boundary of this text-entry control (`frame` is a control frame). */
|
|
428
681
|
readonly accessibility: AccessibilityDeclaration | null;
|
|
429
682
|
readonly when: readonly StateTreatment[];
|
|
683
|
+
/** The text profiles the part's text takes under owner states (weight and tracking only). */
|
|
684
|
+
readonly textWhen: readonly StateText[];
|
|
430
685
|
/** The part's interaction normalization (cursor, touch action, text selection): CSS property → value. */
|
|
431
686
|
readonly normalize: Normalized;
|
|
432
687
|
/** Interaction normalization under owner states, lowered under the condition with the part's path appended. */
|
|
433
688
|
readonly normalizeWhen: readonly (readonly [condition: string, values: Normalized])[];
|
|
434
689
|
readonly paintTransition: PaintTransition | null;
|
|
690
|
+
/** The part's entrance; `null` when it appears settled. */
|
|
691
|
+
readonly enter: EnterSpec | null;
|
|
692
|
+
/** The part's motion under owner states; `null` when it does not move. */
|
|
693
|
+
readonly effects: PartMotion | null;
|
|
694
|
+
/** The sequences the part plays: at most one always, and one per owner state. */
|
|
695
|
+
readonly plays: readonly PlaySpec[];
|
|
696
|
+
/** The part stays at an edge of its scrolling container; `null` when it scrolls with the rest. */
|
|
697
|
+
/** A layered backdrop's reach past its parent's box; `null` when it fills the box. */
|
|
698
|
+
readonly outset: OutsetSpec | null;
|
|
699
|
+
/** The colour scheme the part is shown under (a visual part of a light and dark pair); `null`: under both. */
|
|
700
|
+
readonly scheme: ColorScheme | null;
|
|
701
|
+
readonly sticky: StickySpec | null;
|
|
435
702
|
/** Treatments of the part's pseudo-elements, at most one per pseudo-element. */
|
|
436
703
|
readonly pseudo: readonly PseudoTreatment[];
|
|
437
704
|
/** A nested recipe arranging this part's children. */
|
|
@@ -513,6 +780,23 @@ export interface RegionSpec {
|
|
|
513
780
|
/** The root's press effect (a `scale` endpoint in a root `when` entry); never on a top-layer root. */
|
|
514
781
|
readonly press: RootPress;
|
|
515
782
|
readonly paintTransition: PaintTransition | null;
|
|
783
|
+
/** The sequences the root plays as a whole: at most one always, and one per owner state. */
|
|
784
|
+
readonly plays: readonly PlaySpec[];
|
|
785
|
+
/** The text profiles the root's text takes under its states (weight and tracking only). */
|
|
786
|
+
readonly textWhen: readonly StateText[];
|
|
787
|
+
/** The root's frame under one named condition; `null` when it is the same at every width. */
|
|
788
|
+
readonly frameAt: FrameCondition | null;
|
|
789
|
+
/** The elements a prose root styles; `null` for every other layout. */
|
|
790
|
+
readonly prose: ProseSpec | null;
|
|
791
|
+
/** Where a jump to the root lands; never on a top-layer root, which is not in the page's flow. */
|
|
792
|
+
readonly anchorClear: SlotBinding | null;
|
|
793
|
+
/** The geometry the root takes under owner states; never on a top-layer root. */
|
|
794
|
+
readonly geometryWhen: readonly StateGeometry[];
|
|
795
|
+
readonly geometryTransition: GeometryTransition | null;
|
|
796
|
+
/** The root's entrance; never on a top-layer root, whose layer motion is its entrance. */
|
|
797
|
+
readonly enter: EnterSpec | null;
|
|
798
|
+
/** The root stays at an edge of its scrolling container; never on a top-layer root, which the top layer places. */
|
|
799
|
+
readonly sticky: StickySpec | null;
|
|
516
800
|
readonly parts: readonly RegionPart[];
|
|
517
801
|
/** Parts exposed as public rows, in row order, for a parent's `alignRows`. */
|
|
518
802
|
readonly exposeRows: readonly string[];
|
|
@@ -535,7 +819,7 @@ export interface GridCell {
|
|
|
535
819
|
}
|
|
536
820
|
/** A grid's track system: owned tracks (`hybrid`, `fluid`), auto-filled tiles (`fixed`) or the parent cell's tracks (`inherited`). */
|
|
537
821
|
export type GridMode = "hybrid" | "fluid" | "fixed" | "inherited";
|
|
538
|
-
export declare const GRID_FIELDS: readonly ["columns", "gutter", "margin", "bound", "rows", "context", "align"];
|
|
822
|
+
export declare const GRID_FIELDS: readonly ["columns", "weights", "gutter", "margin", "bound", "rows", "context", "align"];
|
|
539
823
|
export type GridField = (typeof GRID_FIELDS)[number];
|
|
540
824
|
/** Cell placements under a named condition of the spatial profile (`narrow-content`), replacing tier placement while it holds. */
|
|
541
825
|
export interface NamedPlacement {
|
|
@@ -581,10 +865,16 @@ export interface DeclaredPart {
|
|
|
581
865
|
readonly clamped: boolean;
|
|
582
866
|
/** A text part with balanced breaks (`wrap: "balance"`): for headings and short titles, not paragraphs. */
|
|
583
867
|
readonly balanced: boolean;
|
|
868
|
+
/** The sequence profiles the part plays whenever it is rendered (not under an owner state). */
|
|
869
|
+
readonly playsAlways: readonly string[];
|
|
584
870
|
/** A scroll container: it should be reachable by keyboard. */
|
|
585
871
|
readonly scrolls: boolean;
|
|
586
872
|
/** An `accessibility` declaration: its element must be a text-entry control (`<input>` of a text type, `<textarea>`, `<select>`). */
|
|
587
873
|
readonly declaresBoundary: boolean;
|
|
874
|
+
/** Whether the part declares `normalize.resize`: its element is a `<textarea>`. */
|
|
875
|
+
readonly resizes: boolean;
|
|
876
|
+
/** The colour scheme a visual part of a light and dark pair is shown under; `null` for every other part. */
|
|
877
|
+
readonly scheme: ColorScheme | null;
|
|
588
878
|
}
|
|
589
879
|
/** The JSX tags an element kind renders. */
|
|
590
880
|
export declare function elementTags(element: ElementKind): readonly string[];
|
|
@@ -641,15 +931,29 @@ export declare function declaredPaints(spec: ConstructionSpec): readonly Runtime
|
|
|
641
931
|
export declare const declaredCells: (spec: ConstructionSpec) => readonly string[];
|
|
642
932
|
/** The binding a binding recipe declares for one part: exactly one of `asset`, `set` or `glyph: "reference"`; `null` otherwise. */
|
|
643
933
|
export declare function visualBinding(part: Json | undefined): VisualBinding | null;
|
|
934
|
+
/** A text profile an element's text takes under one owner state: `when: { state: { text } }`. */
|
|
935
|
+
export interface StateText {
|
|
936
|
+
readonly condition: string;
|
|
937
|
+
readonly text: string;
|
|
938
|
+
readonly path: string;
|
|
939
|
+
}
|
|
644
940
|
/** How wide an inline row is in its container: as wide as its content, or as wide as the container. */
|
|
645
941
|
export declare const ROOT_EXTENTS: readonly ["content", "container"];
|
|
646
942
|
export type RootExtent = (typeof ROOT_EXTENTS)[number];
|
|
943
|
+
/** `outset: { block?, inline? }`: how far a layered backdrop is drawn past its parent's box on each axis, from the spacing slot. */
|
|
944
|
+
export interface OutsetSpec {
|
|
945
|
+
readonly block: SlotBinding | null;
|
|
946
|
+
readonly inline: SlotBinding | null;
|
|
947
|
+
readonly path: string;
|
|
948
|
+
}
|
|
647
949
|
/** Normalization as CSS property → value pairs, in authored order. */
|
|
648
950
|
export type Normalized = readonly (readonly [property: string, value: string])[];
|
|
649
951
|
/** The pointer cursors an element may show (`normalize.cursor`): a closed set, no image cursors. */
|
|
650
952
|
export declare const CURSORS: readonly ["pointer", "default", "grab", "grabbing", "col-resize", "row-resize", "move", "text", "not-allowed"];
|
|
651
953
|
/** The touch gestures an element leaves to the browser (`normalize.touchAction`): none, or panning on one axis. */
|
|
652
954
|
export declare const TOUCH_ACTIONS: readonly ["none", "pan-x", "pan-y"];
|
|
955
|
+
/** How the user may resize a multi-line text field (`normalize.resize`, on a `<textarea>` part): by its block edge only, or not at all. */
|
|
956
|
+
export declare const RESIZES: readonly ["vertical", "none"];
|
|
653
957
|
/** Text selection an element may suppress (`normalize.userSelect`). */
|
|
654
958
|
export declare const USER_SELECTS: readonly ["none"];
|
|
655
959
|
/**
|
|
@@ -686,6 +990,10 @@ export declare const NORMALIZE_FIELDS: {
|
|
|
686
990
|
readonly property: "user-select";
|
|
687
991
|
readonly values: readonly ["none"];
|
|
688
992
|
};
|
|
993
|
+
readonly resize: {
|
|
994
|
+
readonly property: "resize";
|
|
995
|
+
readonly values: readonly ["vertical", "none"];
|
|
996
|
+
};
|
|
689
997
|
};
|
|
690
998
|
export type NormalizeField = keyof typeof NORMALIZE_FIELDS;
|
|
691
999
|
/**
|