@vectoriox/iox-ui 5.202.1 → 5.204.0
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/actions-core/index.d.ts +8 -1
- package/design-core/index.d.ts +62 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +8 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +121 -11
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +5443 -293
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +381 -32
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +2368 -5
- package/index.d.ts +117 -12
- package/package.json +1 -1
- package/src/actions-core/element-actions.ts +9 -0
- package/src/design-core/contrast-audit.ts +93 -11
- package/src/design-core/flavor-spec.generated.ts +19 -0
- package/src/design-core/image-alt.ts +27 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/generation-core/audit-site.ts +17 -3
- package/src/generation-core/baseline-roles.ts +10 -6
- package/src/generation-core/check-free.ts +12 -2
- package/src/generation-core/check-layout.ts +3 -2
- package/src/generation-core/compose-free.ts +3 -1
- package/src/generation-core/compose-layout.ts +1 -1
- package/src/generation-core/compose-site.ts +29 -11
- package/src/generation-core/critic-calibration.ts +175 -0
- package/src/generation-core/critic-prompt.ts +153 -0
- package/src/generation-core/critic-rubric.generated.ts +24 -0
- package/src/generation-core/critic-sheet.ts +203 -0
- package/src/generation-core/critic.ts +175 -0
- package/src/generation-core/design-doc-index.ts +58 -0
- package/src/generation-core/design-motion.ts +247 -0
- package/src/generation-core/design-ops-check.ts +370 -0
- package/src/generation-core/design-ops-of.ts +200 -0
- package/src/generation-core/design-ops.model.ts +239 -0
- package/src/generation-core/design-ops.schema.ts +122 -0
- package/src/generation-core/design-ops.ts +361 -0
- package/src/generation-core/design-recipes.ts +58 -0
- package/src/generation-core/designer-brief.ts +81 -0
- package/src/generation-core/designer-direction.ts +248 -0
- package/src/generation-core/designer-estimate.ts +171 -0
- package/src/generation-core/designer-lessons.generated.ts +653 -0
- package/src/generation-core/designer-lessons.ts +153 -0
- package/src/generation-core/designer-stop.ts +94 -0
- package/src/generation-core/footer-free.ts +23 -2
- package/src/generation-core/footer-mix.ts +60 -14
- package/src/generation-core/layout-language.ts +2 -0
- package/src/generation-core/node-baselines.generated.ts +953 -10
- package/src/generation-core/public-api.ts +21 -0
- package/src/generation-core/site-spec.generated.ts +82 -10
- package/src/generation-core/social-links.ts +370 -0
- package/src/generation-core/structure-fingerprint.ts +565 -0
- package/src/generation-core/templates.ts +39 -3
- package/styles/iox-design.css +26 -1
- package/styles/iox-forms.css +22 -0
package/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
|
11
11
|
import { VideoPlan } from '@vectoriox/iox-ui/media-core';
|
|
12
12
|
import { SliderWords } from '@vectoriox/iox-ui/composite-core';
|
|
13
13
|
import { OpenerNodeLike, RouteInfo } from '@vectoriox/iox-ui/actions-core';
|
|
14
|
-
export { SCROLL_PROGRESS_TRIGGER } from '@vectoriox/iox-ui/actions-core';
|
|
14
|
+
export { ENTRANCE_ACTION_TYPES, EXIT_ACTION_TYPES, SCROLL_PROGRESS_TRIGGER } from '@vectoriox/iox-ui/actions-core';
|
|
15
15
|
import { ScrollDriver, ScrollMotionEnv, ScrollPlay, ScrollActionKind } from '@vectoriox/iox-ui/scene-core';
|
|
16
16
|
export * from '@vectoriox/iox-ui/data-core';
|
|
17
17
|
|
|
@@ -255,6 +255,8 @@ declare const IMAGE_DEFAULT_CSS: readonly string[];
|
|
|
255
255
|
declare class BuilderImageComponent {
|
|
256
256
|
src: string;
|
|
257
257
|
alt: string;
|
|
258
|
+
/** AD0b C9: the author's "decorative" switch — the picture is announced as nothing (`alt=""`), whatever Alt holds. */
|
|
259
|
+
decorative: boolean;
|
|
258
260
|
nodeId: string;
|
|
259
261
|
/**
|
|
260
262
|
* What a MARKED image shows WHENEVER it has no source (design-system DS3) — set by each renderer
|
|
@@ -286,7 +288,7 @@ declare class BuilderImageComponent {
|
|
|
286
288
|
get altAttr(): string;
|
|
287
289
|
get ariaHiddenAttr(): 'true' | null;
|
|
288
290
|
static ɵfac: i0.ɵɵFactoryDeclaration<BuilderImageComponent, never>;
|
|
289
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BuilderImageComponent, "img[iox-img]", never, { "src": { "alias": "src"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "emptySrc": { "alias": "emptySrc"; "required": false; }; }, {}, never, never, false, never>;
|
|
291
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BuilderImageComponent, "img[iox-img]", never, { "src": { "alias": "src"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; "decorative": { "alias": "decorative"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "emptySrc": { "alias": "emptySrc"; "required": false; }; }, {}, never, never, false, never>;
|
|
290
292
|
}
|
|
291
293
|
|
|
292
294
|
/** Directive-host spacer: the `<div>` IS the host — no wrapper. All styles on `.iox-node`. */
|
|
@@ -348,6 +350,8 @@ declare class BuilderLinkComponent {
|
|
|
348
350
|
[key: string]: any;
|
|
349
351
|
};
|
|
350
352
|
constructor(isPreview: boolean);
|
|
353
|
+
/** `noopener` for a new tab (the string renderer writes the same), else no attribute. A getter so it is unit-tested. */
|
|
354
|
+
get relAttr(): string | null;
|
|
351
355
|
get resolvedHref(): string;
|
|
352
356
|
onLinkClick(event: MouseEvent): void;
|
|
353
357
|
static ɵfac: i0.ɵɵFactoryDeclaration<BuilderLinkComponent, [{ optional: true; }]>;
|
|
@@ -432,6 +436,16 @@ declare class BuilderHeadingComponent implements OnInit {
|
|
|
432
436
|
static ɵcmp: i0.ɵɵComponentDeclaration<BuilderHeadingComponent, "h1[iox-heading],h2[iox-heading],h3[iox-heading],h4[iox-heading],h5[iox-heading],h6[iox-heading],span[iox-heading]", never, { "content": { "alias": "content"; "required": false; }; "level": { "alias": "level"; "required": false; }; "nodeId": { "alias": "nodeId"; "required": false; }; "node": { "alias": "node"; "required": false; }; "linkType": { "alias": "linkType"; "required": false; }; "url": { "alias": "url"; "required": false; }; "pageRoute": { "alias": "pageRoute"; "required": false; }; "target": { "alias": "target"; "required": false; }; }, {}, never, never, false, never>;
|
|
433
437
|
}
|
|
434
438
|
|
|
439
|
+
/**
|
|
440
|
+
* The Text's own defaults, as global CSS (no emulated `[_nghost-…]` attribute), the Image's way (iox-ui#104):
|
|
441
|
+
*
|
|
442
|
+
* - `white-space: pre-wrap` (typed spaces and line breaks show) at specificity 0,0,0 (`:where(…)`), so the node's
|
|
443
|
+
* `.iox-node-<id>` wins: Typography ▸ Line Breaks and ▸ Wrap (AD0b C1). As `:host` (0,1,0) it tied with the node rule
|
|
444
|
+
* and, appended after it, won — every Text ignored Line Breaks, and the shorthand reset the wrap mode, so Wrap ▸
|
|
445
|
+
* No Wrap never held on a Text either (measured by the engine's `e2e:batchc`).
|
|
446
|
+
* - the editing outline stays at 0,2,0, what `:host[contenteditable]` compiled to.
|
|
447
|
+
*/
|
|
448
|
+
declare const TEXT_DEFAULT_CSS: readonly string[];
|
|
435
449
|
/**
|
|
436
450
|
* Directive-host Text: the real `<p>`/`<span>` IS the host — no `app-text-block` wrapper,
|
|
437
451
|
* no inner/outer split. The tag is chosen by whoever CREATES the component (engine/builder
|
|
@@ -778,6 +792,8 @@ declare class ClientSliderContainerComponent implements AfterViewInit, OnDestroy
|
|
|
778
792
|
scrollPlays: boolean;
|
|
779
793
|
/** AW11-D1: the creative effect's named setting (`fan` — a list's fan you drag). */
|
|
780
794
|
creativePreset: string;
|
|
795
|
+
/** AD0b C8: the coverflow's angle (degrees; unset = Swiper's 50). */
|
|
796
|
+
coverflowRotate: number | string | null;
|
|
781
797
|
childrenHost: ViewContainerRef;
|
|
782
798
|
leadHost: ViewContainerRef;
|
|
783
799
|
trailHost: ViewContainerRef;
|
|
@@ -809,7 +825,7 @@ declare class ClientSliderContainerComponent implements AfterViewInit, OnDestroy
|
|
|
809
825
|
private boot;
|
|
810
826
|
private inputs;
|
|
811
827
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClientSliderContainerComponent, never>;
|
|
812
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ClientSliderContainerComponent, "iox-slider-container", never, { "nodeId": { "alias": "nodeId"; "required": false; }; "dir": { "alias": "dir"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "loop": { "alias": "loop"; "required": false; }; "slidesPerView": { "alias": "slidesPerView"; "required": false; }; "slidesPerGroup": { "alias": "slidesPerGroup"; "required": false; }; "spaceBetween": { "alias": "spaceBetween"; "required": false; }; "speed": { "alias": "speed"; "required": false; }; "effect": { "alias": "effect"; "required": false; }; "grabCursor": { "alias": "grabCursor"; "required": false; }; "centeredSlides": { "alias": "centeredSlides"; "required": false; }; "initialSlide": { "alias": "initialSlide"; "required": false; }; "autoHeight": { "alias": "autoHeight"; "required": false; }; "slideToClickedSlide": { "alias": "slideToClickedSlide"; "required": false; }; "freeMode": { "alias": "freeMode"; "required": false; }; "enableNavigation": { "alias": "enableNavigation"; "required": false; }; "enablePagination": { "alias": "enablePagination"; "required": false; }; "enableScrollbar": { "alias": "enableScrollbar"; "required": false; }; "enableAutoplay": { "alias": "enableAutoplay"; "required": false; }; "enableKeyboard": { "alias": "enableKeyboard"; "required": false; }; "enableMousewheel": { "alias": "enableMousewheel"; "required": false; }; "enableZoom": { "alias": "enableZoom"; "required": false; }; "enableGrid": { "alias": "enableGrid"; "required": false; }; "enableParallax": { "alias": "enableParallax"; "required": false; }; "autoplayDelay": { "alias": "autoplayDelay"; "required": false; }; "autoplayPauseOnMouseEnter": { "alias": "autoplayPauseOnMouseEnter"; "required": false; }; "autoplayDisableOnInteraction": { "alias": "autoplayDisableOnInteraction"; "required": false; }; "paginationType": { "alias": "paginationType"; "required": false; }; "paginationClickable": { "alias": "paginationClickable"; "required": false; }; "paginationDynamicBullets": { "alias": "paginationDynamicBullets"; "required": false; }; "navigationColor": { "alias": "navigationColor"; "required": false; }; "paginationColor": { "alias": "paginationColor"; "required": false; }; "gridRows": { "alias": "gridRows"; "required": false; }; "breakpoints": { "alias": "breakpoints"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "controlParts": { "alias": "controlParts"; "required": false; }; "scrollPlays": { "alias": "scrollPlays"; "required": false; }; "creativePreset": { "alias": "creativePreset"; "required": false; }; }, {}, never, never, false, never>;
|
|
828
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ClientSliderContainerComponent, "iox-slider-container", never, { "nodeId": { "alias": "nodeId"; "required": false; }; "dir": { "alias": "dir"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "loop": { "alias": "loop"; "required": false; }; "slidesPerView": { "alias": "slidesPerView"; "required": false; }; "slidesPerGroup": { "alias": "slidesPerGroup"; "required": false; }; "spaceBetween": { "alias": "spaceBetween"; "required": false; }; "speed": { "alias": "speed"; "required": false; }; "effect": { "alias": "effect"; "required": false; }; "grabCursor": { "alias": "grabCursor"; "required": false; }; "centeredSlides": { "alias": "centeredSlides"; "required": false; }; "initialSlide": { "alias": "initialSlide"; "required": false; }; "autoHeight": { "alias": "autoHeight"; "required": false; }; "slideToClickedSlide": { "alias": "slideToClickedSlide"; "required": false; }; "freeMode": { "alias": "freeMode"; "required": false; }; "enableNavigation": { "alias": "enableNavigation"; "required": false; }; "enablePagination": { "alias": "enablePagination"; "required": false; }; "enableScrollbar": { "alias": "enableScrollbar"; "required": false; }; "enableAutoplay": { "alias": "enableAutoplay"; "required": false; }; "enableKeyboard": { "alias": "enableKeyboard"; "required": false; }; "enableMousewheel": { "alias": "enableMousewheel"; "required": false; }; "enableZoom": { "alias": "enableZoom"; "required": false; }; "enableGrid": { "alias": "enableGrid"; "required": false; }; "enableParallax": { "alias": "enableParallax"; "required": false; }; "autoplayDelay": { "alias": "autoplayDelay"; "required": false; }; "autoplayPauseOnMouseEnter": { "alias": "autoplayPauseOnMouseEnter"; "required": false; }; "autoplayDisableOnInteraction": { "alias": "autoplayDisableOnInteraction"; "required": false; }; "paginationType": { "alias": "paginationType"; "required": false; }; "paginationClickable": { "alias": "paginationClickable"; "required": false; }; "paginationDynamicBullets": { "alias": "paginationDynamicBullets"; "required": false; }; "navigationColor": { "alias": "navigationColor"; "required": false; }; "paginationColor": { "alias": "paginationColor"; "required": false; }; "gridRows": { "alias": "gridRows"; "required": false; }; "breakpoints": { "alias": "breakpoints"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; "controlParts": { "alias": "controlParts"; "required": false; }; "scrollPlays": { "alias": "scrollPlays"; "required": false; }; "creativePreset": { "alias": "creativePreset"; "required": false; }; "coverflowRotate": { "alias": "coverflowRotate"; "required": false; }; }, {}, never, never, false, never>;
|
|
813
829
|
}
|
|
814
830
|
|
|
815
831
|
/**
|
|
@@ -1799,6 +1815,8 @@ interface SliderInputs {
|
|
|
1799
1815
|
scrollPlays?: boolean;
|
|
1800
1816
|
/** AW11: a named setting for the `creative` effect (`fan` — a list's fan you drag). */
|
|
1801
1817
|
creativePreset?: string;
|
|
1818
|
+
/** AD0b C8: how far each side slide of the `coverflow` effect turns, in degrees (unset = Swiper's own 50). */
|
|
1819
|
+
coverflowRotate?: number | string | null;
|
|
1802
1820
|
}
|
|
1803
1821
|
/** The slider's controls, when they are PARTS (CC3) — the elements Swiper is handed. */
|
|
1804
1822
|
interface SliderControlElements {
|
|
@@ -1841,6 +1859,13 @@ declare const SLIDER_FEEL: {
|
|
|
1841
1859
|
readonly resistanceRatio: 0.65;
|
|
1842
1860
|
readonly threshold: 6;
|
|
1843
1861
|
};
|
|
1862
|
+
/** AD0b C8: the coverflow angle's range (degrees). 0 is a flat centred row; past 90 a slide shows its back. */
|
|
1863
|
+
declare const COVERFLOW_ROTATE: {
|
|
1864
|
+
readonly min: 0;
|
|
1865
|
+
readonly max: 90;
|
|
1866
|
+
};
|
|
1867
|
+
/** The coverflow's turn the author set, clamped to {@link COVERFLOW_ROTATE}; null when unset (Swiper keeps its 50). */
|
|
1868
|
+
declare function coverflowRotate(value: unknown): number | null;
|
|
1844
1869
|
/**
|
|
1845
1870
|
* A "cards" stack (a list's deck, LI7): each card behind turns a little and peeks out a little; Swiper's shading on it is
|
|
1846
1871
|
* rounded and coloured by the shared CSS (iox-design.css). Under reduced motion the stack keeps its depth and drops the
|
|
@@ -1992,6 +2017,7 @@ declare function sliderInputsFromProps(props: Record<string, unknown>, responsiv
|
|
|
1992
2017
|
* `1vh` / `1vw` fallbacks restore native browser behaviour.
|
|
1993
2018
|
*/
|
|
1994
2019
|
declare function rewriteViewportUnits(value: string): string;
|
|
2020
|
+
declare function orderShorthandsFirst(props: Record<string, any>): Record<string, any>;
|
|
1995
2021
|
declare const SUPPRESSED_STYLE_PROPS_BY_TYPE: Readonly<Record<string, readonly string[]>>;
|
|
1996
2022
|
/** Remove the style props whose value a type's render-default always overrides. Returns the map
|
|
1997
2023
|
* unchanged (same reference) when the type suppresses nothing. */
|
|
@@ -2084,7 +2110,16 @@ declare function componentStatesFor(type: string | null | undefined, role?: stri
|
|
|
2084
2110
|
* on shadow (board 10). Every renderer emits a node's state rules in `orderStatesForEmit` order.
|
|
2085
2111
|
*/
|
|
2086
2112
|
declare const LAST_EMITTED_STATES: ReadonlyArray<string>;
|
|
2087
|
-
/**
|
|
2113
|
+
/**
|
|
2114
|
+
* The states that say what a node IS — the chosen tab, the open item, the current page, a pressed option, a busy or
|
|
2115
|
+
* disabled control — emitted AFTER every pointer state (AD0 A4, hotel MISSING 11): `:hover` ties with each of them on
|
|
2116
|
+
* specificity, so a hover stored after `on` used to repaint the ON tab's ground on hover. What a node is holds; the hover
|
|
2117
|
+
* styles the others. Focus stays after them all.
|
|
2118
|
+
*/
|
|
2119
|
+
declare const CHOSEN_STATES: ReadonlyArray<string>;
|
|
2120
|
+
/** Where a state's rules go in a node's emit order: 0 the rest (pointer states, scrolled…), 1 the chosen states, 2 focus. */
|
|
2121
|
+
declare function stateEmitRank(state: string): number;
|
|
2122
|
+
/** `states` in the order their rules are emitted: as given within a rank — the rest, the chosen states, then focus. */
|
|
2088
2123
|
declare function orderStatesForEmit<T extends string>(states: ReadonlyArray<T>): T[];
|
|
2089
2124
|
/** True when a rule key (`<nodeId>:<state>`) holds a state emitted last. */
|
|
2090
2125
|
declare function isLastEmittedStateKey(key: string): boolean;
|
|
@@ -2220,6 +2255,19 @@ declare function isGradientPaint(value: unknown): boolean;
|
|
|
2220
2255
|
declare const BACKDROP_WHOLE_KEY = "backdropFilter";
|
|
2221
2256
|
/** The prefixed twin emitted beside every composed `backdropFilter` (Safari). */
|
|
2222
2257
|
declare const BACKDROP_TWIN_KEY = "WebkitBackdropFilter";
|
|
2258
|
+
/** The Effects ▸ Fade Edges trait: a WORD the compiler turns into `mask-image`, so a stored value never holds a colour. */
|
|
2259
|
+
declare const MASK_FADE_KEY = "maskFade";
|
|
2260
|
+
declare enum MaskFade {
|
|
2261
|
+
None = "none",
|
|
2262
|
+
/** Both inline ends — a marquee's soft edges. Symmetric, so a right-to-left page needs no mirror. */
|
|
2263
|
+
Sides = "sides",
|
|
2264
|
+
TopBottom = "top-bottom",
|
|
2265
|
+
Top = "top",
|
|
2266
|
+
Bottom = "bottom"
|
|
2267
|
+
}
|
|
2268
|
+
declare const MASK_FADE_IMAGES: Readonly<Record<MaskFade, string>>;
|
|
2269
|
+
/** The `mask-image` a Fade Edges word stands for; undefined for a word the list does not hold. */
|
|
2270
|
+
declare function maskFadeImage(word: unknown): string | undefined;
|
|
2223
2271
|
declare const VIRTUAL_TRAIT_GROUPS: readonly VirtualTraitGroup[];
|
|
2224
2272
|
/** Every virtual trait key — derived from the groups so there is one list to maintain. */
|
|
2225
2273
|
declare const VIRTUAL_TRAIT_KEYS: Set<string>;
|
|
@@ -2414,6 +2462,61 @@ declare function isHoverState(state: string | null | undefined): boolean;
|
|
|
2414
2462
|
/** `css` as it is emitted for `state`: inside `HOVER_MEDIA_QUERY` for a hover state, unchanged otherwise. */
|
|
2415
2463
|
declare function gateHoverRule(state: string | null | undefined, css: string): string;
|
|
2416
2464
|
|
|
2465
|
+
/** What a stacked row's direct child defaults to — its own height, never a share of the column. */
|
|
2466
|
+
declare const STACKED_CHILD_DEFAULTS: Readonly<StyleMap>;
|
|
2467
|
+
/** What kind of box stacks: a flex row (its children get the defaults) or a grid (the grid gets them — AD-D24). */
|
|
2468
|
+
declare enum StackKind {
|
|
2469
|
+
Flex = "flex",
|
|
2470
|
+
Grid = "grid"
|
|
2471
|
+
}
|
|
2472
|
+
/** What a grid that becomes one column defaults to — its tracks hug their items (AD-D24). */
|
|
2473
|
+
declare const STACKED_GRID_DEFAULTS: Readonly<StyleMap>;
|
|
2474
|
+
/** …and, where the author's rows are `fr` tracks (a share of the height), no explicit rows: each row its item's height. */
|
|
2475
|
+
declare const STACKED_GRID_FR_ROWS: Readonly<StyleMap>;
|
|
2476
|
+
/** One stretch of widths over which a node is a column that was a row just wider. */
|
|
2477
|
+
interface StackedChildRule {
|
|
2478
|
+
/** The breakpoint where the row turns into a column; the rule holds at it and every narrower width… */
|
|
2479
|
+
breakpoint: OverrideBreakpoint;
|
|
2480
|
+
/** …until this narrower breakpoint, where the node stops being a column (a row again, or no flex box); null = all the way down. */
|
|
2481
|
+
until: OverrideBreakpoint | null;
|
|
2482
|
+
kind: StackKind;
|
|
2483
|
+
/** A grid: the declarations the GRID gets (the flex kind's go to its children — `STACKED_CHILD_DEFAULTS`). */
|
|
2484
|
+
grid?: StyleMap;
|
|
2485
|
+
}
|
|
2486
|
+
/** A compiled rule, ready to be placed BEFORE its breakpoint's own rules. */
|
|
2487
|
+
interface StackedChildBlock extends StackedChildRule {
|
|
2488
|
+
css: string;
|
|
2489
|
+
}
|
|
2490
|
+
/**
|
|
2491
|
+
* How many columns a `grid-template-columns` value draws: none / unset = one (the implicit column), `repeat(n, …)` counts
|
|
2492
|
+
* its tracks n times. null when the count depends on the width (`auto-fit` / `auto-fill`) or cannot be read.
|
|
2493
|
+
*/
|
|
2494
|
+
declare function gridColumnCount(value: unknown): number | null;
|
|
2495
|
+
/**
|
|
2496
|
+
* Where a node's children stack: every breakpoint at which its effective layout turns from a row (just wider — a flex row,
|
|
2497
|
+
* or a grid of two or more columns) into a column (a flex column, or a one-column grid), each up to the narrower
|
|
2498
|
+
* breakpoint where it stops being one. Only a row of the column's own kind stacks (a grid that turns into a flex box
|
|
2499
|
+
* changes its layout altogether). A node with no breakpoint layer never changes — nothing. A one-column grid whose author already placed it (its own
|
|
2500
|
+
* `align-content`, no `fr` rows) needs nothing either.
|
|
2501
|
+
*/
|
|
2502
|
+
declare function planStackedChildren(styleProps: StyleMap | null | undefined, responsive: ResponsiveOverrides | null | undefined): StackedChildRule[];
|
|
2503
|
+
/**
|
|
2504
|
+
* The node's direct children, whatever element each renders as: a component's host (`iox-outer-*`) or a one-element node
|
|
2505
|
+
* (`iox-node-*`, an Image). `:where()` keeps the parent weightless, `:is()` weighs one class — the child's own rules' weight.
|
|
2506
|
+
*/
|
|
2507
|
+
declare function stackedChildSelector(cssId: string): string;
|
|
2508
|
+
/** A one-column grid's own rule: the node itself, at one class — the weight of its own rules. */
|
|
2509
|
+
declare function stackedGridSelector(cssId: string): string;
|
|
2510
|
+
/** The query a rule holds under: its breakpoint's `max-width`, and the next one's `min-width` when it stops before the narrowest. */
|
|
2511
|
+
declare function stackedChildQuery(rule: Pick<StackedChildRule, 'breakpoint' | 'until'>, kind?: BreakpointQueryKind, containerName?: string): string;
|
|
2512
|
+
/**
|
|
2513
|
+
* THE B-D4 rule, compiled: one block per stretch where `cssId`'s row stacks, each to be placed after every base rule and
|
|
2514
|
+
* before the breakpoint rules of `breakpoint` (the engine wraps in `@media`, the canvas in its `@container`). A flex row's
|
|
2515
|
+
* block sizes its children; a grid's (AD-D24) places its own tracks. Declarations are compiled in the Override context —
|
|
2516
|
+
* `0`, `auto` and `none` undo the wider value, they are not no-ops here.
|
|
2517
|
+
*/
|
|
2518
|
+
declare function compileStackedChildren(cssId: string, styleProps: StyleMap | null | undefined, responsive: ResponsiveOverrides | null | undefined, kind?: BreakpointQueryKind, containerName?: string): StackedChildBlock[];
|
|
2519
|
+
|
|
2417
2520
|
/** Trait names whose value Swiper reads per breakpoint. Anything else is config-wide. */
|
|
2418
2521
|
declare const SWIPER_RESPONSIVE_TRAITS: readonly string[];
|
|
2419
2522
|
/** `{ [minWidth]: { slidesPerView, … } }` — Swiper's own `breakpoints` shape. */
|
|
@@ -2776,6 +2879,7 @@ declare function scrollbarsTakeWidthScript(): string;
|
|
|
2776
2879
|
* It is still visual-only — the element keeps its box — which is why the actions picker says so and
|
|
2777
2880
|
* why the mobile-nav pattern uses a Dialog instead (D9).
|
|
2778
2881
|
*/
|
|
2882
|
+
|
|
2779
2883
|
type InteractionKeyframe = Readonly<Record<string, string | number>>;
|
|
2780
2884
|
/** The attribute a runtime puts on an element an interaction has hidden (and removes on reveal). */
|
|
2781
2885
|
declare const INTERACTION_HIDDEN_ATTRIBUTE = "data-iox-hidden";
|
|
@@ -2803,10 +2907,7 @@ declare enum ScrollActionType {
|
|
|
2803
2907
|
Parallax = "parallax",
|
|
2804
2908
|
ProgressBar = "progressBar"
|
|
2805
2909
|
}
|
|
2806
|
-
|
|
2807
|
-
declare const ENTRANCE_ACTION_TYPES: ReadonlySet<string>;
|
|
2808
|
-
/** Actions that hide an element (visible → hidden). */
|
|
2809
|
-
declare const EXIT_ACTION_TYPES: ReadonlySet<string>;
|
|
2910
|
+
|
|
2810
2911
|
/** How far a dissolve grows when its stamp names no `grow` (the opening's picture — the contract's `rules.dissolve`). */
|
|
2811
2912
|
declare const DISSOLVE_GROW_DEFAULT = 1.5;
|
|
2812
2913
|
/** `params.grow` of a dissolve: its last scale, in (1, 2]. */
|
|
@@ -2852,9 +2953,13 @@ interface SettleOptions {
|
|
|
2852
2953
|
* frame is written (Hold) or released (Release) BEFORE `anim` is cancelled, so nothing flashes between the two.
|
|
2853
2954
|
*/
|
|
2854
2955
|
declare function settleInteraction(el: HTMLElement, frames: ReadonlyArray<InteractionKeyframe> | null | undefined, mode: SettleMode, options?: SettleOptions, anim?: Animation | null): void;
|
|
2956
|
+
/** The frames of a run without the properties it handed to a later run — what its settle may touch: a property handed
|
|
2957
|
+
* over is the later run's to settle (an exit's held `opacity: 0` is never released by the entrance it interrupted). */
|
|
2958
|
+
declare function framesStillAnimated(anim: Animation | null | undefined, frames: ReadonlyArray<InteractionKeyframe> | null | undefined): InteractionKeyframe[];
|
|
2855
2959
|
/**
|
|
2856
|
-
* Interrupt (Emil 52/59/62): the interaction runs in flight on `el` over the same properties
|
|
2857
|
-
* stacked
|
|
2960
|
+
* Interrupt (Emil 52/59/62): the interaction runs in flight on `el` over the same properties hand them over — never
|
|
2961
|
+
* stacked; a run keeps playing only what the new one does not animate (`handOver`) — and the new run starts from what
|
|
2962
|
+
* the element shows NOW (its presentation value), not from frame 0: a
|
|
2858
2963
|
* hover-out halfway through the hover-in turns back from where it is, a re-trigger continues. Untouched when
|
|
2859
2964
|
* nothing is running (the run starts from its own first frame, as before).
|
|
2860
2965
|
*/
|
|
@@ -5171,5 +5276,5 @@ declare function formToastsOnSend(form: Element | null | undefined): boolean;
|
|
|
5171
5276
|
/** Raise the form's Sent toast (from the form — its scope and its look). */
|
|
5172
5277
|
declare function raiseFormToast(form: Element): ToastHandle | null;
|
|
5173
5278
|
|
|
5174
|
-
export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BOUND_STYLE_PREFIX, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, COLOUR_FLOW_CLASS, COLOUR_FLOW_MAX_STOPS, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, CoverPaint, DECORATIVE_ROLES, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DISSOLVE_GROW_DEFAULT, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS,
|
|
5175
|
-
export type { A11yNodeSource, AnimateActionOptions, BoundStyleTarget, BoundValueSpec, BreakpointDef, ColourFlowHost, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CoverPanelContext, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InlineEditableNode, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageCoverSpec, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PopupOverlayState, PopupRuntimeOptions, PreloaderContent, PreloaderPreviewOptions, PreloaderRunOptions, PressAction, RegisteredField, ResolvedPageCover, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
|
|
5279
|
+
export { A11yAttribute, A11yTrait, ACCESSIBLE_NAME_TYPES, AOSService, ARIA_CURRENT_PAGE, BACKDROP_TWIN_KEY, BACKDROP_WHOLE_KEY, BLUR_IN_START_PX, BOUND_STYLE_PREFIX, BREAKPOINTS, Breakpoint, BreakpointQueryKind, BuilderButtonComponent, BuilderDividerComponent, BuilderHeadingComponent, BuilderIconComponent, BuilderImageComponent, BuilderLinkComponent, BuilderSpacerComponent, ButtonBlockComponent, CALENDAR_CLOSING_ATTRIBUTE, CALENDAR_DESIGN_ATTRIBUTE, CALENDAR_INSTANT_ATTRIBUTE, CALENDAR_SHEET_QUERY, CHOSEN_STATES, COLOUR_FLOW_CLASS, COLOUR_FLOW_MAX_STOPS, COMPONENT_STATE_SELECTOR, CONTAINER_HTML_TAGS, CONTEXT_ACTION_TYPES, COUNT_ATTRIBUTE, COUNT_DEFAULT_MS, COUNT_MAX_MS, COUNT_UP_ACTION, COVERFLOW_ROTATE, CURRENT_LINK_TYPES, CalendarClass, CardComponent, ClientGalleryComponent, ClientListComponent, ClientListItemComponent, ClientRepeaterComponent, ClientSliderContainerComponent, ClientSliderSlideComponent, ComponentInstanceRegistryService, ComponentState, ContainerComponent, ContextStore, CoverPaint, DECORATIVE_ROLES, DECORATIVE_TYPES, DEFAULT_GALLERY_SCHEDULER, DEFAULT_INTERACTION_EASING, DEFAULT_PAGE_TRANSITION, DEFAULT_PAGE_TRANSITION_DURATION, DEFAULT_PAGE_TRANSITION_EASING, DEFAULT_PAGE_TRANSITION_PERSPECTIVE, DEFAULT_PHOSPHOR_WEIGHT, DEFAULT_WIDTH_BY_TYPE, DEPTH_CLIP_ATTRIBUTE, DIALOG_CLOSE_ABOVE_ATTRIBUTE, DIALOG_NODE_TYPE, DISSOLVE_GROW_DEFAULT, DatePickerRuntime, DeclarationContext, EASING_KEYWORDS, EASING_TOKENS, ENTRANCE_FALLBACK_CSS, ENTRANCE_NOSCRIPT_CSS, ENTRANCE_PRESTATE_ATTRIBUTE, EasingKeyword, EasingToken, FLOATING_GAP, FLOATING_LAYER_CLASS, FLOATING_MARGIN, FLOATING_SHEET_QUERY, FLOW_STOPS_PROPERTY, FloatingAlign, FloatingSide, FormRenderState, FormRuntimeService, GALLERY_EFFECTS, GALLERY_EFFECT_DESCRIPTORS, GalleryLoop, HEADER_SCROLL_HYSTERESIS_PX, HOVER_DEFAULT_TRANSITION_TRAITS, HOVER_MEDIA_QUERY, HOVER_STATES, HeaderInkRuntime, HeaderRuntime, IMAGE_DEFAULT_CSS, INTERACTION_ANIMATION_ID, INTERACTION_HIDDEN_ATTRIBUTE, INTERACTION_MARKER_ATTRIBUTES, IOX_BUILDER_EVENTS, IOX_FORM_MESSAGES, IOX_FORM_NAVIGATOR, IOX_FORM_TRANSPORT, IS_PREVIEW, InlineEditEvent, IoxAnimateContainer, IoxAosDirective, IoxAosModule, IoxBuilderComponentsModule, IoxComponentRegistryService, IoxDialogComponent, IoxFieldComponent, IoxFormComponent, IoxFormErrorComponent, IoxFormSuccessComponent, IoxPageComponent, IoxPageModule, IoxPopoverComponent, IoxSubmitButtonComponent, IoxUiModule, IoxVideoComponent, LAST_EMITTED_STATES, LEGACY_DIRECTION_KEY, LEGACY_HOVER_TRANSITION_TRAITS, LEGACY_SWIPER_CONTROLS, LIST_GROUND_PIPE, LIST_INK_PIPE, LinkedContainerComponent, MANAGED_A11Y_ATTRIBUTES, MASK_FADE_IMAGES, MASK_FADE_KEY, MAX_LINES_KEY, MaskFade, NAMED_GROUP_ROLES, NO_PAGE_TRANSITION, ON_STATE_ROLES, OUTER_STYLE_PROPS, PAGE_LEAVE_RATIO, PAGE_STYLE_TOKENS, PAGE_TOKEN_FALLBACKS, PAGE_TRANSITION_CATEGORIES, PAGE_TRANSITION_PRESETS, PART_CLASS_NAMES, PART_PAGINATION_MODIFIER, PHONE_TRANSITION_QUERY, PIPE_DESCRIPTORS, PIPE_REGISTRY, POPOVER_SELECTOR, POPUP_ANNOUNCE_ATTRIBUTE, POPUP_SCALE_PROPERTY, POPUP_SELECTOR, POPUP_STILL_ATTRIBUTE, PRELOADER_AT_ATTRIBUTE, PRELOADER_CLASS, PRELOADER_CSS, PRELOADER_END_EVENT, PRELOADER_RUN_ATTRIBUTE, PRELOADING_ATTRIBUTE, PROGRESS_ATTRIBUTE, PageScrollProvider, PageStyleField, PageStyleSource, PausableTimer, PauseReason, PointerKind, PopoverAttribute, PopupRuntime, REDUCED_ENTRANCE_FRAMES, REDUCED_MOTION_QUERY, REDUCED_PAGE_LEAVE, RELATIONAL_STATE_PSEUDO, RevealActionType, SCROLLBARS_TAKE_WIDTH_CLASS, SCROLLED_ATTRIBUTE, SCROLLED_STATE_ROLE, SCROLLED_THRESHOLD_PX, SCROLL_ANIMATION_ID, SCROLL_EASINGS, SELF_PLAYING_TRIGGERS, SHAKE_DURATION_MS, SHAKE_EASING, SHAKE_KEYFRAMES, SLIDER_CARDS, SLIDER_FAN, SLIDER_FEEL, SLIDER_INPUTS_ATTRIBUTE, SLIDER_INPUT_NAMES, SLIDER_PHONE_BREAKPOINT, SLIDER_RUNWAY_CLASS, SLIDER_STEPS_PROPERTY, SLIDE_CAPTION_ATTRIBUTE, STACKED_CHILD_DEFAULTS, STACKED_GRID_DEFAULTS, STACKED_GRID_FR_ROWS, STATE_PSEUDO_CLASS, STRUCTURAL_STATES, SUPPRESSED_STYLE_PROPS_BY_TYPE, SWIPER_A11Y_OPTIONS, SWIPER_RESPONSIVE_TRAITS, SWIPER_TRIGGER_EVENTS, ScrollActionType, ScrollEasing, SectionComponent, SettleMode, SliderCreativePreset, StackKind, StringFormRuntime, SwiperModuleName, TARGETED_STATE_SUFFIX, TEXT_ALIGN_KEY, TEXT_DEFAULT_CSS, TEXT_DIRECTION_KEY, TOAST_DESIGN_ATTRIBUTE, TOAST_EDGE_ATTRIBUTE, TOAST_FIRST_LANDS_MS, TOAST_MAX_MS, TOAST_MAX_VISIBLE, TOAST_MIN_MS, TOAST_MS_PER_CHAR, TOOLTIP_ATTRIBUTE, TOOLTIP_FIRST_DELAY_MS, TOOLTIP_HIDE_GRACE_MS, TOOLTIP_INSTANT_ATTRIBUTE, TOOLTIP_PINNED_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, TOOLTIP_SIDE_ATTRIBUTE, TOOLTIP_TYPES, TOOLTIP_WARM_MS, TRANSITION_FEELS, TRANSITION_PROPERTY_KEY, TextAlign, TextBlockComponent, ToastClass, ToastEdge, TooltipClass, TooltipRuntime, VALIDATION_STATES, VALIDATION_STATE_CLASS, VIRTUAL_TRAIT_GROUPS, VIRTUAL_TRAIT_KEYS, ViewPositionDirective, ViewPositionModule, VisibilityActionType, activeActions, afterPreloader, animateAction, applyBindingPipes, applyBoundStyle, applyBoundStyles, applyFeel, armCountUp, armInteractionCounts, attachColourFlow, attachDatePicker, attachDatePickers, attachScrollProgress, attachStringForm, attachTooltips, bootSlider, boundStyleCss, boundStyleEntries, boundStyleOf, breakpointDef, breakpointForWidth, breakpointQueryFor, buildInteractionKeyframes, buildPartSelector, buildPreloaderLayer, buildSwiperBreakpoints, buildTargetedStateSelector, buildTargetedSuffixSelector, buildTransitionTimeline, canPopover, cascadeChain, clearInputOverride, clearOverride, clearToasts, closeAboveMediaQuery, closeAllPopovers, closePopover, collectContextSlotKeys, colourFlowOpacities, commitInlineEdit, compileDeclarations, compilePageStyle, compileStackedChildren, componentStatesFor, composeVirtualTraits, containerHtmlTag, contextActionEffect, contextSlotKeys, countDuration, countIsReadable, countLocaleOf, countOverrides, countValueAt, coverPanelStyle, coverflowRotate, createCoverPanel, datePickerOf, declaredInputNames, decomposeBackdropFilter, defaultHoverTransitionTraits, defaultMessageResolver, deriveSeoFromContent, describePageStyle, describeSeoFields, dialogCloseAboveMinWidth, directionalFrames, dissolveGrowOf, domHasSliderParts, durationMs, effectiveActionType, effectiveTransitionId, ensurePreloaderStyles, entrancePreStateStyle, entranceStartsHidden, fanMiddle, feelFor, fieldLanguage, finalKeyframe, firstScreenReadiness, floatingLayer, floatingScope, flowStopProperty, flowStopsIn, formSentWords, formToastsOnSend, formatCount, framesFromLiveValue, framesStillAnimated, gateHoverRule, getSeoValue, gridColumnCount, groundHeadersIn, hasCounted, hasHoverState, hasOwnPageTransition, hasOwnTransition, headerHeightScopeOf, headerShouldHide, heldFrames, hideFromTopLayer, hidingHeadersIn, holdsOnScreen, initialSlotValues, inkFollowingHeadersIn, interactionMarkerAttributes, isActionEnabled, isBoundProp, isBoundStyleProp, isContextAction, isCubicBezier, isCurrentLink, isEasingToken, isExternalOrFragment, isGradientPaint, isHoverPointer, isHoverState, isInputOverriddenAt, isInteractionEasing, isLastEmittedStateKey, isOpenPopover, isOperated, isOverriddenAt, isPopoverOpen, isPreloading, isPressFeedback, isScrolled, isStructuralState, isValidSlotKey, isWholeBackdropSet, keyframePropertyName, keyframeStyleEntries, layerFrame, legacyEnterToTransition, lookEaseOf, markScrollbarsTakeWidth, maskFadeImage, mediaQueryFor, mergeSwiperBreakpoints, migrateLegacyDirection, migrateLegacyTextAlign, motionAllowed, mountPreloader, nearestCommonAncestorId, needsAccessibleName, needsGroupName, nodeA11yAttributes, nodeCssId, nodeTraitValue, nodeUsesContext, normalizeAppPath, normalizeGalleryImage, normalizeIconClass, openPopover, openingPictureOf, orderShorthandsFirst, orderStatesForEmit, pageLanguageOf, pageTransitionOf, parentBreakpoint, parseCount, parseUrlList, partClassName, placeFloating, placePopover, planPartRule, planResponsiveRules, planScroll, planStackedChildren, planStateRule, planSwiperOptions, playCountUp, playDualLayerTransition, playInteraction, playPreloaderPreview, playsOnScroll, popoverPanelAttributes, popoverSide, popupAttributeGetter, popupIdOf, prefersReducedMotion, preloaderContentOf, preloaderHeadScript, raiseFloatingLayer, raiseFormToast, rectInLayer, reducedEntranceFades, reducedEntranceRun, renderDefaultDeclarations, resetPageStyleField, resetSeoField, resolveBoundValue, resolveContextValue, resolveGalleryEffect, resolveGalleryUrls, resolveInputChain, resolveInputs, resolveInteractionEasing, resolvePageTransition, resolvePath, resolveSeo, resolveStateStyles, resolveStyleProps, resolveToggleVisibility, resolveValueChain, restoreCountUp, rewriteViewportUnits, runPreloader, safeSetInput, scrollActionKind, scrollMotionEnv, scrollbarsTakeWidthScript, scrubUntilOf, serializeA11yAttributes, setDateFieldValue, setInputOverride, setOverride, setSeoAuto, setSeoBinding, setSeoOverride, setSeoValue, settleInteraction, settleModeFor, shakeElement, showCalendarDesign, showInTopLayer, showToast, showToastDesign, sliderControlElements, sliderInputsFromProps, sliderInputsOf, sliderRunwayHtml, splitOuterProps, splitPressFeedback, stackedChildQuery, stackedChildSelector, stackedGridSelector, stateEmitRank, stateNamesIn, statePseudoClass, stateSelectorSuffix, stateTransitionProperties, stringFormRuntimeOf, stripSuppressedProps, swiperAutoplayAllowed, swiperLoopOptions, swiperModuleNames, syncInteractionMarkers, syncNodeA11yAttributes, syncSubmitButtons, targetedStateSelector, toLayerRect, toastDuration, toastEdge, toastsToEvict, togglePopover, tooltipSide, tooltipTiming, tooltipWords, tooltipsOf, transitionPropertyList, translateYOf, viewportTransitionContext, watchHeaderHeight, watchHeaderInk, watchHeaders, watchScrolled, withContextSlots, withPhoneDefaults, withStateTransitions, wrapInBreakpointQuery, wrapInMediaQuery };
|
|
5280
|
+
export type { A11yNodeSource, AnimateActionOptions, BoundStyleTarget, BoundValueSpec, BreakpointDef, ColourFlowHost, ContextActionEffect, ContextActionLike, ContextItemRef, ContextSlotDefault, ContextValueSpec, ContextWriteScope, CountTarget, CoverPanelContext, CurrentLinkOptions, DatePickerOptions, FloatingLayerOptions, FloatingOptions, FloatingPlacement, FloatingRect, FloatingSize, FloatingViewport, FormMessageResolver, GalleryBoundSource, GalleryDurations, GalleryEffect, GalleryEffectDescriptor, GalleryImage, GalleryLoopOptions, GalleryLoopScheduler, GalleryLoopState, GallerySlideState, HeaderRuntimeOptions, IBuilderEventEmitter, InlineEditableNode, InputMap, InteractionKeyframe, IoxContextSlot, IoxPipe, LayerFrame, MatchMediaHost, NodeA11yContext, OverrideBreakpoint, PageCoverSpec, PageScrollStart, PageStyleFieldState, PageStyleOptions, PageStyleSettings, PageTransitionCategory, PageTransitionCategoryMeta, PageTransitionContext, PageTransitionOptions, PageTransitionPreset, PipeArgSpec, PipeContext, PipeDescriptor, PlannedPageTransition, PopoverCloseOptions, PopoverOpenOptions, PopupOverlayState, PopupRuntimeOptions, PreloaderContent, PreloaderPreviewOptions, PreloaderRunOptions, PressAction, RegisteredField, ResolvedPageCover, ResolvedPageTransition, ResponsiveLayer, ResponsiveOverrides, ResponsiveRuleSet, RouteAnimationLike, ScrollPlanContext, ScrollProgressAction, ScrollProgressHost, ScrollProgressInteraction, ScrollSource, SeoDerivedContent, SeoFieldSource, SeoFieldState, SeoResolveContext, SetContextParams, SettleOptions, SliderBootOptions, SliderControlElements, SliderInputs, StackedChildBlock, StackedChildRule, StateRulePlan, StateScope, StateStyleMap, StringFormOptions, StyleMap, StyleTreeNode, SwiperBreakpointMap, SwiperModuleFlags, SwiperPlan, SwiperPlanContext, ToastHandle, ToastOptions, ToggleableAction, TooltipRuntimeOptions, TooltipTimingState, TransitionFeel, TransitionPhase, TransitionPreviewLayers, TransitionTimelineInput, TransitionViewport, ValueSource, VirtualTraitGroup };
|
package/package.json
CHANGED
|
@@ -41,6 +41,15 @@ export const COUNT_UP_TRIGGERS: ReadonlyArray<string> = Object.freeze(['viewport
|
|
|
41
41
|
*/
|
|
42
42
|
export const DISSOLVE_ACTION = 'dissolve';
|
|
43
43
|
|
|
44
|
+
/**
|
|
45
|
+
* Actions that REVEAL an element (hidden → visible) — their first frame is the pre-state — and actions that HIDE one.
|
|
46
|
+
* Both interaction runtimes (iox-ui `interaction-keyframes`, which re-exports these) and the designer's static motion check
|
|
47
|
+
* (generation-core `design-motion`) read this ONE pair.
|
|
48
|
+
*/
|
|
49
|
+
export const ENTRANCE_ACTION_TYPES: ReadonlySet<string> =
|
|
50
|
+
new Set(['fadeIn', 'moveUp', 'moveDown', 'moveLeft', 'moveRight', 'scaleIn', 'show', 'clipReveal', 'zoomOut', 'revealText', 'blurIn']);
|
|
51
|
+
export const EXIT_ACTION_TYPES: ReadonlySet<string> = new Set(['fadeOut', 'scaleOut', 'hide', DISSOLVE_ACTION]);
|
|
52
|
+
|
|
44
53
|
export const ELEMENT_ACTION_DESCRIPTORS: readonly ActionDescriptor[] = Object.freeze([
|
|
45
54
|
// ── Motion (shipped WAAPI actions — timing row applies) ──────────────────
|
|
46
55
|
{ type: 'fadeIn', labelKey: 'builder.actions.fadeIn', kind: 'animated', group: 'motion', builderBehaviour: 'run' },
|
|
@@ -3,7 +3,7 @@ import { WCAG_AA_UI } from './brand-neutrals';
|
|
|
3
3
|
import { compositeOver, paintColours, parseCssColour, quantizeRgb, Rgba, ringColour } from './colour-eval';
|
|
4
4
|
import { ElementStyle, ELEMENT_STYLES } from './element-styles';
|
|
5
5
|
import { SPEC_CONTRAST_AUDIT, SPEC_INK_SCOPES, SPEC_SCHEMES } from './flavor-spec.generated';
|
|
6
|
-
import { SCHEME_INK } from './node-classes';
|
|
6
|
+
import { colorSchemeOf, DesignClassSource, SCHEME_INK } from './node-classes';
|
|
7
7
|
import { DesignTokenLike, ResolvedMode, schemeTokenResolver } from './token-css';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -146,20 +146,30 @@ export function auditDesignContrast(rows: ReadonlyArray<DesignTokenLike>, mode:
|
|
|
146
146
|
return findings.map(f => ({ ...f }));
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
/** A CONTAINER style — a Layout / Overlays style that paints a fill of its own (Card, Panel, Navigation bar, Dialog): what
|
|
150
|
+
* it holds is judged inside it. The section is the ground every scheme is judged on, never a box. */
|
|
151
|
+
function isBoxStyle(e: ElementStyle): boolean {
|
|
152
|
+
return CONTAINER_GROUPS.has(e.group) && !!ownStyle(e)['backgroundColor'] && e.id !== SECTION_STYLE;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** An ITEM style — a Layout style that paints ink but no fill of its own (the bottom bar's item, CC1) — sits ON a
|
|
156
|
+
* container like any content, so it is judged as content (the contract's audit, 1:1). */
|
|
157
|
+
function isItemStyle(e: ElementStyle): boolean {
|
|
158
|
+
return CONTAINER_GROUPS.has(e.group) && !ownStyle(e)['backgroundColor'] && !!ownStyle(e)['color'] && ownStyle(e)['color'] !== 'inherit';
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/** A CONTENT style — what the sweep judges on every ground (text, buttons, links, glyphs, items). */
|
|
162
|
+
function isContentStyle(e: ElementStyle): boolean {
|
|
163
|
+
return (!CONTAINER_GROUPS.has(e.group) || isItemStyle(e)) && !!(ownStyle(e)['color'] || ownStyle(e)['backgroundColor'])
|
|
164
|
+
&& e.group !== FORMS_GROUP && !NOT_CONTENT.has(e.id) && !SCRIM_STYLES.has(e.id) && !MARK_STYLES.has(e.id);
|
|
165
|
+
}
|
|
166
|
+
|
|
149
167
|
function sweepDesignContrast(rows: ReadonlyArray<DesignTokenLike>, mode: ResolvedMode): ContrastFinding[] {
|
|
150
168
|
const findings: ContrastFinding[] = [];
|
|
151
169
|
const styles = ELEMENT_STYLES;
|
|
152
170
|
const byId = new Map(styles.map(e => [e.id, e]));
|
|
153
|
-
const containers: Array<ElementStyle | null> = [
|
|
154
|
-
|
|
155
|
-
...styles.filter(e => CONTAINER_GROUPS.has(e.group) && ownStyle(e)['backgroundColor'] && e.id !== SECTION_STYLE),
|
|
156
|
-
];
|
|
157
|
-
// An ITEM style — a Layout style that paints ink but no fill of its own (the bottom bar's item, CC1) —
|
|
158
|
-
// sits ON a container like any content, so it is judged as content (the contract's audit, 1:1).
|
|
159
|
-
const isItem = (e: ElementStyle) => CONTAINER_GROUPS.has(e.group) && !ownStyle(e)['backgroundColor']
|
|
160
|
-
&& !!ownStyle(e)['color'] && ownStyle(e)['color'] !== 'inherit';
|
|
161
|
-
const content = styles.filter(e => (!CONTAINER_GROUPS.has(e.group) || isItem(e)) && (ownStyle(e)['color'] || ownStyle(e)['backgroundColor'])
|
|
162
|
-
&& e.group !== FORMS_GROUP && !NOT_CONTENT.has(e.id) && !SCRIM_STYLES.has(e.id) && !MARK_STYLES.has(e.id));
|
|
171
|
+
const containers: Array<ElementStyle | null> = [null, ...styles.filter(isBoxStyle)];
|
|
172
|
+
const content = styles.filter(isContentStyle);
|
|
163
173
|
const marks = styles.filter(e => MARK_STYLES.has(e.id));
|
|
164
174
|
const notices = styles.filter(e => e.group === FORMS_GROUP && ownStyle(e)['color']);
|
|
165
175
|
const section = ownStyle(byId.get(SECTION_STYLE) as ElementStyle);
|
|
@@ -446,3 +456,75 @@ export function floatingGroundFindings(
|
|
|
446
456
|
}
|
|
447
457
|
return out;
|
|
448
458
|
}
|
|
459
|
+
|
|
460
|
+
// ── What the pages RENDER (AD0 A6) ──────────────────────────────────────────────────────────────────────────────────
|
|
461
|
+
|
|
462
|
+
/** A node as the rendered-pairs walk reads it: a saved layout node or a builder node (its scheme, its element style). */
|
|
463
|
+
export interface ContrastTreeNode extends DesignClassSource {
|
|
464
|
+
type?: string;
|
|
465
|
+
children?: ReadonlyArray<ContrastTreeNode | null | undefined> | null;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/** A tree the site renders, and the schemes its root may stand in (a global header follows each page's opening). */
|
|
469
|
+
export interface ContrastTree {
|
|
470
|
+
nodes: ReadonlyArray<ContrastTreeNode | null | undefined>;
|
|
471
|
+
/** The schemes the tree's root stands in — `default` when absent. */
|
|
472
|
+
schemes?: ReadonlyArray<string>;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
const pairKey = (scheme: string, container: string, element: string) => `${scheme}\u0001${container}\u0001${element}`;
|
|
476
|
+
const STYLE_BY_ID: ReadonlyMap<string, ElementStyle> = new Map(ELEMENT_STYLES.map(e => [e.id, e]));
|
|
477
|
+
|
|
478
|
+
/** A node's own scheme, when it wears a real non-default one. */
|
|
479
|
+
function ownScheme(node: ContrastTreeNode): string | null {
|
|
480
|
+
const id = colorSchemeOf(node);
|
|
481
|
+
return id && id !== DEFAULT_SCHEME && SCHEME_IDS.includes(id) ? id : null;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* The (scheme, container, element) triples the pages actually RENDER — every element style a node wears, in the scheme
|
|
486
|
+
* it stands in and the nearest container style around it, as `auditDesignContrast` names its findings. Pure.
|
|
487
|
+
*/
|
|
488
|
+
export function renderedContrastPairs(trees: ReadonlyArray<ContrastTree>): Set<string> {
|
|
489
|
+
const out = new Set<string>();
|
|
490
|
+
const visit = (node: ContrastTreeNode, scheme: string, container: string) => {
|
|
491
|
+
const own = ownScheme(node);
|
|
492
|
+
const here = own ?? scheme;
|
|
493
|
+
const style = node.elementStyle ? STYLE_BY_ID.get(node.elementStyle) : undefined;
|
|
494
|
+
let inside = container;
|
|
495
|
+
if (own) out.add(pairKey(here, container, container));
|
|
496
|
+
if (style?.id === SECTION_STYLE) {
|
|
497
|
+
inside = SECTION;
|
|
498
|
+
out.add(pairKey(here, SECTION, SECTION));
|
|
499
|
+
} else if (style && isBoxStyle(style)) {
|
|
500
|
+
inside = style.id;
|
|
501
|
+
out.add(pairKey(here, style.id, style.id));
|
|
502
|
+
if (own) out.add(pairKey(own, `${style.id} in a ${scheme} section`, INHERITED_TEXT));
|
|
503
|
+
} else if (style) {
|
|
504
|
+
out.add(pairKey(here, container, style.id));
|
|
505
|
+
}
|
|
506
|
+
for (const child of node.children ?? []) if (child) visit(child, here, inside);
|
|
507
|
+
};
|
|
508
|
+
for (const tree of trees) {
|
|
509
|
+
for (const scheme of tree.schemes?.length ? tree.schemes : [DEFAULT_SCHEME]) {
|
|
510
|
+
out.add(pairKey(scheme, SECTION, SECTION));
|
|
511
|
+
for (const node of tree.nodes) if (node) visit(node, scheme, SECTION);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
return out;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* The findings of `auditDesignContrast` that a site's pages RENDER (AD0 A6): the sweep judges every pairing the look COULD
|
|
519
|
+
* make (472 failing on both designer-loop proof sites, almost all in schemes and boxes nobody used), so the Publish gate
|
|
520
|
+
* counted noise. Kept: a finding whose scheme, container and element the pages wear together (`renderedContrastPairs`);
|
|
521
|
+
* text over an image when the pages wear that scrim style; a Field's parts when a Field stands in that scheme and box.
|
|
522
|
+
*/
|
|
523
|
+
export function renderedContrastFindings(findings: ReadonlyArray<ContrastFinding>, trees: ReadonlyArray<ContrastTree>): ContrastFinding[] {
|
|
524
|
+
const pairs = renderedContrastPairs(trees);
|
|
525
|
+
const wornStyles = new Set([...pairs].map(k => k.split('\u0001')[2]));
|
|
526
|
+
return findings.filter(f => SCRIM_STYLES.has(f.element)
|
|
527
|
+
? wornStyles.has(f.element)
|
|
528
|
+
: pairs.has(pairKey(f.scheme, f.container, f.element)));
|
|
529
|
+
}
|
|
530
|
+
|
|
@@ -5696,6 +5696,25 @@ export const SPEC_FIELD_CLASS_BASELINE = {
|
|
|
5696
5696
|
"inline-size": "100%",
|
|
5697
5697
|
"box-sizing": "border-box"
|
|
5698
5698
|
},
|
|
5699
|
+
".iox-es-field .iox-field__control:where(input:not([type='checkbox'], [type='radio'], [type='range']), select, .iox-field__control--date)": {
|
|
5700
|
+
"line-height": "1.25"
|
|
5701
|
+
},
|
|
5702
|
+
".iox-es-field select.iox-field__control": {
|
|
5703
|
+
"appearance": "none",
|
|
5704
|
+
"-webkit-appearance": "none",
|
|
5705
|
+
"padding-inline-end": "2.25em",
|
|
5706
|
+
"background-image": "linear-gradient(45deg, transparent 50%, var(--iox-text-muted) 50%), linear-gradient(135deg, var(--iox-text-muted) 50%, transparent 50%)",
|
|
5707
|
+
"background-size": "0.35em 0.35em, 0.35em 0.35em",
|
|
5708
|
+
"background-repeat": "no-repeat",
|
|
5709
|
+
"background-position": "right calc(1em + 0.35em) center, right 1em center"
|
|
5710
|
+
},
|
|
5711
|
+
".iox-es-field select.iox-field__control:dir(rtl)": {
|
|
5712
|
+
"background-position": "left 1em center, left calc(1em + 0.35em) center"
|
|
5713
|
+
},
|
|
5714
|
+
".iox-es-field .iox-field__control--date": {
|
|
5715
|
+
"inline-size": "100%",
|
|
5716
|
+
"box-sizing": "border-box"
|
|
5717
|
+
},
|
|
5699
5718
|
".iox-es-field .iox-field__label": {
|
|
5700
5719
|
"font-family": "var(--iox-font-body)",
|
|
5701
5720
|
"font-size": "var(--iox-field-label-size)",
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A picture's words for assistive technology (ai-designer-plan AD0b C9, law MISSING 19). ONE reading for both renderers
|
|
3
|
+
* and the Publish gate: a picture marked DECORATIVE (the Image panel's switch) is announced as nothing — `alt=""` —
|
|
4
|
+
* whatever its Alt field still holds; any other picture says its Alt text. The switch is the author's statement that the
|
|
5
|
+
* picture carries no information (a texture, a colour twin, an ornament), which is what WCAG 1.1.1 asks for an empty alt.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/** The Image's alt-related props (the node's `props`, the component's inputs). */
|
|
9
|
+
export enum ImageTrait {
|
|
10
|
+
Alt = 'alt',
|
|
11
|
+
Decorative = 'decorative',
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/** The shape this module reads: any node's props or a component's inputs. */
|
|
15
|
+
export type ImageAltProps = Readonly<Record<string, unknown>> | null | undefined;
|
|
16
|
+
|
|
17
|
+
/** True when the author marked the picture decorative (the switch is on). */
|
|
18
|
+
export function isDecorativeImage(props: ImageAltProps): boolean {
|
|
19
|
+
return props?.[ImageTrait.Decorative] === true;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** The `alt` attribute both renderers write: `''` for a decorative picture, else the Alt text (`''` when none). */
|
|
23
|
+
export function imageAlt(props: ImageAltProps): string {
|
|
24
|
+
if (isDecorativeImage(props)) return '';
|
|
25
|
+
const alt = props?.[ImageTrait.Alt];
|
|
26
|
+
return typeof alt === 'string' ? alt : alt == null ? '' : String(alt);
|
|
27
|
+
}
|
|
@@ -26,6 +26,7 @@ export * from './footer-classes';
|
|
|
26
26
|
export * from './ink-on-ground';
|
|
27
27
|
export * from './field-classes';
|
|
28
28
|
export * from './empty-image';
|
|
29
|
+
export * from './image-alt';
|
|
29
30
|
export * from './node-links';
|
|
30
31
|
export * from './brand';
|
|
31
32
|
export * from './colour-eval';
|
|
@@ -2,7 +2,7 @@ import { ELEMENT_ACTION_DESCRIPTORS, POPUP_RULES, popupEnded, resolveActionAvail
|
|
|
2
2
|
import { CheckoutGateCode, CheckoutGateRefusal, labelIn } from '@vectoriox/iox-ui/commerce-core';
|
|
3
3
|
import { PopupArrive, PopupForm, popupFormOf, PopupRole, PopupTrait, ShopRole } from '@vectoriox/iox-ui/composite-core';
|
|
4
4
|
import { isNumberedPlaceholderTitle } from '@vectoriox/iox-ui/data-core';
|
|
5
|
-
import { auditDesignContrast, DesignTokenLike } from '@vectoriox/iox-ui/design-core';
|
|
5
|
+
import { auditDesignContrast, colorSchemeOf, ContrastTree, DesignTokenLike, isDecorativeImage, renderedContrastFindings } from '@vectoriox/iox-ui/design-core';
|
|
6
6
|
import { ConsentActionType } from '@vectoriox/iox-ui/composite-core';
|
|
7
7
|
import { collectFormSpec, FORM_CHANNEL_ROLE, FORM_NODE_TYPE, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
|
|
8
8
|
|
|
@@ -584,6 +584,17 @@ function checkLegalPages(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyA
|
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
|
|
587
|
+
/** What the site renders, for the contrast check: every page, and the globals in the default scheme and in each scheme a
|
|
588
|
+
* page OPENS on (a header with no scheme of its own follows the page's opening). The whole site, whatever page is
|
|
589
|
+
* being published: the look is the site's. */
|
|
590
|
+
function renderedTrees(snapshot: SiteAuditSnapshot): ContrastTree[] {
|
|
591
|
+
const openings = snapshot.pages.map(p => colorSchemeOf(p.layout.find(n => !!n))).filter((s): s is string => !!s);
|
|
592
|
+
return [
|
|
593
|
+
...snapshot.pages.map(p => ({ nodes: p.layout })),
|
|
594
|
+
{ nodes: snapshot.globals, schemes: [...new Set(['default', ...openings])] },
|
|
595
|
+
];
|
|
596
|
+
}
|
|
597
|
+
|
|
587
598
|
function checkAccessibility(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: ReadonlyArray<AuditPage>): void {
|
|
588
599
|
// AW1 (AW-D14): Israel requires an accessibility statement; a Hebrew site elsewhere is expected to carry one. Block
|
|
589
600
|
// new, warn old: only a site built with the law is held (`siteBuiltWithLaw`).
|
|
@@ -591,8 +602,10 @@ function checkAccessibility(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: Readon
|
|
|
591
602
|
const why = { variant: isIsraeli(snapshot) ? 'israel' : 'hebrew' };
|
|
592
603
|
add(ctx, siteBuiltWithLaw(snapshot) ? SiteFindingCode.NoAccessibilityStatement : SiteFindingCode.AccessibilityStatementAdvised, why);
|
|
593
604
|
}
|
|
605
|
+
const rendered = renderedTrees(snapshot);
|
|
594
606
|
for (const mode of snapshot.design?.modes ?? []) {
|
|
595
|
-
|
|
607
|
+
// AD0 A6: only the pairs the site's pages render — the sweep judges every pairing the look COULD make.
|
|
608
|
+
const failing = renderedContrastFindings(auditDesignContrast(snapshot.design!.rows, mode), rendered).filter(f => !f.pass);
|
|
596
609
|
if (failing.length) add(ctx, SiteFindingCode.LowContrast, { variant: mode, count: failing.length });
|
|
597
610
|
}
|
|
598
611
|
for (const page of pages) {
|
|
@@ -615,7 +628,8 @@ function checkAccessibility(ctx: Ctx, snapshot: SiteAuditSnapshot, pages: Readon
|
|
|
615
628
|
if (!said.has(n.id)) add(ctx, SiteFindingCode.PictureMissing, { variant: 'box' }, { ...where, nodeId: n.id });
|
|
616
629
|
return;
|
|
617
630
|
}
|
|
618
|
-
|
|
631
|
+
// AD0b C9: the switch alone decides — a decorative picture renders `alt=""` in both renderers (design-core imageAlt).
|
|
632
|
+
const decorative = isDecorativeImage(n.props);
|
|
619
633
|
const bound = n.bindings.some(b => b.prop === 'alt');
|
|
620
634
|
if (!decorative && !bound && !nonEmpty(n.props['alt'])) add(ctx, SiteFindingCode.ImageWithoutAlt, null, { ...where, nodeId: n.id });
|
|
621
635
|
});
|
|
@@ -6,7 +6,7 @@ import { NEUTRAL_STYLE_PROPS, NODE_BASELINES } from './node-baselines.generated'
|
|
|
6
6
|
* one of:
|
|
7
7
|
*
|
|
8
8
|
* - **Layout** — a size or spacing that exists only so an EMPTY node dropped from the palette is visible
|
|
9
|
-
* and grabbable (a Container's 200px
|
|
9
|
+
* and grabbable (a Divider's margin; a Container's 200px and a Text's 10px padding until AD0 / AD0b). A composed node is never empty and its
|
|
10
10
|
* pattern owns its box, so the composer RELEASES these to the neutral value unless the pattern
|
|
11
11
|
* declares one: the nav bar was 200px tall and every lead line indented 10px (W1's screenshot).
|
|
12
12
|
* - **Behaviour** — what makes the type work: a button's inline-flex centring, a form's column, the 44px
|
|
@@ -34,13 +34,17 @@ export const BASELINE_ROLES: Readonly<Record<string, Readonly<Record<string, Bas
|
|
|
34
34
|
},
|
|
35
35
|
Card: { width: Behaviour, maxWidth: Layout, padding: Look, borderWidth: Look, borderColor: Look, borderRadius: Look, backgroundColor: Look },
|
|
36
36
|
// `width: 100%` (DEFAULT_WIDTH_BY_TYPE) is what lets a block fill its row — a flex child collapses without it.
|
|
37
|
-
|
|
37
|
+
// AD0b: a palette Container drops with no floor (the canvas's empty slot gives an empty box its room).
|
|
38
|
+
Container: { width: Behaviour },
|
|
38
39
|
Heading: { fontSize: Look, fontWeight: Look },
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
// AD0 B-D1: a palette Text drops content-sized (no 10px padding, no 20px min-height) — nothing left to release.
|
|
41
|
+
Text: { width: Behaviour },
|
|
42
|
+
// AD0 B-D1: a palette Image fills its column at its picture's shape (no 300px cap, no square) — nothing to release.
|
|
43
|
+
Image: { width: Behaviour },
|
|
41
44
|
Link: {},
|
|
42
|
-
LinkedContainer: {
|
|
43
|
-
|
|
45
|
+
LinkedContainer: {},
|
|
46
|
+
// AD0b: no floor; the look's body font (`var(--iox-font-body)`) instead of Poppins — its pre-design-system paint.
|
|
47
|
+
Section: { fontFamily: Look },
|
|
44
48
|
Icon: { lineHeight: Behaviour, fontSize: Behaviour, color: Look },
|
|
45
49
|
Divider: { width: Behaviour, height: Look, margin: Layout, backgroundColor: Look },
|
|
46
50
|
Spacer: { width: Behaviour, height: Behaviour },
|