@vectoriox/iox-ui 5.163.0 → 5.164.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/composite-core/index.d.ts +10 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +9 -0
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +400 -22
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +3 -0
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +6 -3
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +41 -7
- package/index.d.ts +4 -1
- package/package.json +1 -1
- package/scene-core/index.d.ts +1 -1
- package/src/composite-core/composite-kinds.ts +9 -0
- package/src/generation-core/check-layout.ts +34 -4
- package/src/generation-core/compose-layout.ts +211 -10
- package/src/generation-core/compose-site.ts +2 -0
- package/src/generation-core/layout-drawers.ts +106 -0
- package/src/generation-core/layout-fingerprint.ts +3 -0
- package/src/generation-core/layout-language.ts +4 -0
- package/src/generation-core/layout-space.ts +3 -2
- package/src/generation-core/layout-wire.ts +15 -3
- package/src/generation-core/patterns.ts +4 -0
- package/src/generation-core/site-spec.generated.ts +57 -5
- package/src/scene-core/scene.ts +3 -0
- package/styles/iox-design.css +20 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { ColorScheme } from '@vectoriox/iox-ui/design-core';
|
|
2
|
+
|
|
3
|
+
import { LayoutLayer, LayoutLayerKind, LayoutSection, LayoutSectionKind } from './layout-language';
|
|
4
|
+
import { GenerationTier } from './site-plan.model';
|
|
5
|
+
import { SPEC_SITE_LAYOUT } from './site-spec.generated';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* AW9 `drawers` (award plan "Reddottours" S4, RT-D1): a held section whose STEPS slide in from the inline end, one after
|
|
9
|
+
* the other, linearly with the scroll, and stop one spine after the step before — so the stack builds a row of titled
|
|
10
|
+
* spines — while their grounds deepen through the look's schemes to the brand. Pure: what a drawers section is, how long
|
|
11
|
+
* it holds and when each step moves; `composeLayout` stamps it and `checkLayout` holds it. The words arriving as a step
|
|
12
|
+
* lands is AW10, not here.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
const D = SPEC_SITE_LAYOUT.drawers;
|
|
16
|
+
/** How many steps a drawers section holds (one heading each): fewer or more is refused. */
|
|
17
|
+
export const DRAWER_STEPS: readonly [number, number] = [SPEC_SITE_LAYOUT.limits.drawerSteps[0], SPEC_SITE_LAYOUT.limits.drawerSteps[1]];
|
|
18
|
+
/** A spine's width, in % of the stage's width (cqw). */
|
|
19
|
+
export const DRAWER_SPINE: number = D.spine;
|
|
20
|
+
|
|
21
|
+
/** The kinds a step may hold: words and buttons — a step is the owner's words, never a picture (the award plan: "it needs
|
|
22
|
+
* no photos"). */
|
|
23
|
+
export const DRAWER_KINDS: ReadonlySet<string> = new Set([
|
|
24
|
+
LayoutLayerKind.Heading, LayoutLayerKind.Word, LayoutLayerKind.Text, LayoutLayerKind.Label, LayoutLayerKind.Number,
|
|
25
|
+
LayoutLayerKind.List, LayoutLayerKind.Button,
|
|
26
|
+
]);
|
|
27
|
+
|
|
28
|
+
/** Is this section the drawers signature? */
|
|
29
|
+
export const isDrawers = (s: Pick<LayoutSection, 'kind'> | null | undefined): boolean => s?.kind === LayoutSectionKind.Drawers;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* A drawers section's steps, as indices into its layers: each heading starts a step and holds the layers written after it,
|
|
33
|
+
* up to the next heading. Layers written before the first heading belong to the first step.
|
|
34
|
+
*/
|
|
35
|
+
export function drawerSteps(layers: ReadonlyArray<Pick<LayoutLayer, 'kind'>>): number[][] {
|
|
36
|
+
const steps: number[][] = [];
|
|
37
|
+
layers.forEach((l, i) => {
|
|
38
|
+
if (l.kind === LayoutLayerKind.Heading || !steps.length) steps.push([i]);
|
|
39
|
+
else steps[steps.length - 1].push(i);
|
|
40
|
+
});
|
|
41
|
+
// A first step opened by a non-heading and followed by a heading: the heading opened a step of its own above; the
|
|
42
|
+
// words before it are its own step only when there was no heading at all.
|
|
43
|
+
if (steps.length > 1 && layers[steps[0][0]]?.kind !== LayoutLayerKind.Heading) {
|
|
44
|
+
const [lead, next, ...rest] = steps;
|
|
45
|
+
return [[...lead, ...next], ...rest];
|
|
46
|
+
}
|
|
47
|
+
return steps;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** How many steps a drawers section holds: its headings (at least one step when it has any layer). */
|
|
51
|
+
export function drawerStepCount(layers: ReadonlyArray<Pick<LayoutLayer, 'kind'>>): number {
|
|
52
|
+
return drawerSteps(layers).length;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface DrawersTiming {
|
|
56
|
+
/** Screens of scroll the stage holds. */
|
|
57
|
+
hold: number;
|
|
58
|
+
/** The root's height, in screens (the hold and the stage). */
|
|
59
|
+
screens: number;
|
|
60
|
+
/** Each step's slide, as `[start, end]` of the hold's progress (0–1); the first step's is null — it is there from the start. */
|
|
61
|
+
windows: Array<[number, number] | null>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const round = (v: number): number => Math.round(v * 10000) / 10000;
|
|
65
|
+
|
|
66
|
+
/** How long `n` steps hold and when each slides: a rest, one slide per step after the first, a rest (theirs: ½ · 1 · ½). */
|
|
67
|
+
export function drawersTiming(n: number): DrawersTiming {
|
|
68
|
+
const count = Math.max(1, Math.round(n));
|
|
69
|
+
const hold = D.rest * 2 + D.slide * (count - 1);
|
|
70
|
+
const windows = Array.from({ length: count }, (_, i): [number, number] | null => {
|
|
71
|
+
if (i === 0 || hold <= 0) return null;
|
|
72
|
+
const start = D.rest + D.slide * (i - 1);
|
|
73
|
+
return [round(start / hold), round((start + D.slide) / hold)];
|
|
74
|
+
});
|
|
75
|
+
return { hold, screens: hold + 1, windows };
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** Where step `i` of `n` rests once landed, in % of the stage's width from the inline start: one spine per step before it. */
|
|
79
|
+
export const drawerRestX = (i: number): number => round(i * DRAWER_SPINE);
|
|
80
|
+
|
|
81
|
+
/** A step's width: the stage less the spines of every step after the first. */
|
|
82
|
+
export const drawerWidth = (n: number): number => round(100 - (Math.max(1, n) - 1) * DRAWER_SPINE);
|
|
83
|
+
|
|
84
|
+
/** The schemes `n` steps wear, first to last — the look's own, deepening to the brand. Null outside the steps allowed. */
|
|
85
|
+
export function drawerRamp(n: number): ColorScheme[] | null {
|
|
86
|
+
const ramp = (D.ramp as Readonly<Record<string, ReadonlyArray<string>>>)[String(n)];
|
|
87
|
+
return ramp ? ramp.map(id => id as ColorScheme) : null;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/** A signature of the contract offered to a build at `tier`: a `pro` row to the award tier alone (AW-D23). */
|
|
91
|
+
export function layoutSignatureOffered(id: string, tier: `${GenerationTier}` | string | null | undefined): boolean {
|
|
92
|
+
const row = SPEC_SITE_LAYOUT.signatures.find(s => s.id === id);
|
|
93
|
+
return !!row && (row.tier !== 'pro' || tier === GenerationTier.Award);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/** The section kinds the layout wire offers a build at `tier`: content · inhale · signature, and a signature kind
|
|
97
|
+
* (`drawers`) only where its signature is offered. */
|
|
98
|
+
export function layoutSectionKindsOffered(tier: `${GenerationTier}` | string | null | undefined): string[] {
|
|
99
|
+
return (SPEC_SITE_LAYOUT.vocab.sectionKinds as ReadonlyArray<string>)
|
|
100
|
+
.filter(k => !SPEC_SITE_LAYOUT.signatures.some(s => s.id === k) || layoutSignatureOffered(k, tier));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** The signatures a build at `tier` may be told of (the layout prompt's list). */
|
|
104
|
+
export function layoutSignaturesOffered(tier: `${GenerationTier}` | string | null | undefined): Array<{ id: string; label: string; how: string }> {
|
|
105
|
+
return SPEC_SITE_LAYOUT.signatures.filter(s => layoutSignatureOffered(s.id, tier)).map(s => ({ id: s.id, label: s.label, how: s.how }));
|
|
106
|
+
}
|
|
@@ -39,6 +39,8 @@ export enum LayoutSignatureId {
|
|
|
39
39
|
HalvesApart = 'halves-apart',
|
|
40
40
|
SidewaysWalk = 'sideways-walk',
|
|
41
41
|
ObjectTurning = 'object-turning',
|
|
42
|
+
/** AW9: steps sliding in from the end and stacking by their spines (the award tier's). */
|
|
43
|
+
Drawers = 'drawers',
|
|
42
44
|
HeldScreen = 'held-screen',
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -133,6 +135,7 @@ const SIGNATURE_BY_TRACK: ReadonlyArray<[LayoutTrackProp, LayoutSignatureId]> =
|
|
|
133
135
|
|
|
134
136
|
export function signatureOf(s: LayoutSection | undefined): LayoutSignatureId {
|
|
135
137
|
if (!s) return LayoutSignatureId.HeldScreen;
|
|
138
|
+
if (s.kind === LayoutSectionKind.Drawers) return LayoutSignatureId.Drawers;
|
|
136
139
|
const layers = s.layers ?? [];
|
|
137
140
|
if (layers.some(l => l.kinetic)) return LayoutSignatureId.WordsLit;
|
|
138
141
|
if (layers.some(l => l.gallery?.scroll)) return LayoutSignatureId.ScrollReel;
|
|
@@ -143,6 +143,10 @@ export const LAYOUT_PHOTO_ASPECT: Readonly<Record<LayoutPhotoShape, string>> = {
|
|
|
143
143
|
export enum LayoutSectionKind {
|
|
144
144
|
Content = 'content',
|
|
145
145
|
Inhale = 'inhale',
|
|
146
|
+
/** AW9 (award plan "Reddottours" S4): the drawers signature — a held section whose steps (a heading each, then its words
|
|
147
|
+
* and buttons) slide in from the inline end and stack, each keeping its titled spine. Award tier only; it is the page's
|
|
148
|
+
* signature (`signature: true`), its length is its steps' (`drawersOf`). */
|
|
149
|
+
Drawers = 'drawers',
|
|
146
150
|
}
|
|
147
151
|
|
|
148
152
|
export enum LayoutButtonVariant {
|
|
@@ -100,9 +100,10 @@ export function layoutShapeHasPurpose(s: LayoutSection, li: number): boolean {
|
|
|
100
100
|
return !!l.motion?.length || (!!l.depth && l.depth !== LayoutDepth.Mid);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
/** A held section where nothing moves by the scroll: no track, no kinetic line, no gallery the scroll turns.
|
|
103
|
+
/** A held section where nothing moves by the scroll: no track, no kinetic line, no gallery the scroll turns. Drawers
|
|
104
|
+
* (AW9) are never still: their steps slide. */
|
|
104
105
|
export function layoutHeldStill(s: LayoutSection): boolean {
|
|
105
|
-
if (!s.pin || (s.track ?? 1) > 1 || s.readyMade || s.carry) return false;
|
|
106
|
+
if (!s.pin || (s.track ?? 1) > 1 || s.readyMade || s.carry || s.kind === LayoutSectionKind.Drawers) return false;
|
|
106
107
|
return !(s.layers ?? []).some(l => !!l.motion?.length || !!l.kinetic || (l.kind === LayoutLayerKind.Gallery && !!l.gallery?.scroll));
|
|
107
108
|
}
|
|
108
109
|
|
|
@@ -3,8 +3,9 @@ import { columnWordOf, isScrubId, ScrubId, SPEC_AXES } from '@vectoriox/iox-ui/d
|
|
|
3
3
|
import { JsonSchema, jsonClosedObject, jsonInteger, jsonListOf, jsonOneOf, jsonText } from './json-schema';
|
|
4
4
|
import {
|
|
5
5
|
LAYOUT_BEAT_DELAY, LayoutDial, LayoutForm, LayoutGallery, LayoutIssue, LayoutIssueCode, LayoutLayer, LayoutListArrange, LayoutListArrive,
|
|
6
|
-
LayoutListHow, LayoutListItem, LayoutListMix, LayoutListPhone, LayoutListWho, LayoutPage, LayoutSection, LayoutTrack,
|
|
6
|
+
LayoutListHow, LayoutListItem, LayoutListMix, LayoutListPhone, LayoutListWho, LayoutPage, LayoutSection, LayoutSectionKind, LayoutTrack,
|
|
7
7
|
} from './layout-language';
|
|
8
|
+
import { DRAWER_STEPS, layoutSectionKindsOffered } from './layout-drawers';
|
|
8
9
|
import { isPlainObject, PlainObject } from './shape-check';
|
|
9
10
|
import { LIST_INGREDIENTS, LIST_TABLE, listBuiltWords, listIngredientWords, listWordOffered, listWordRefusal } from './list-table';
|
|
10
11
|
import { SPEC_SITE_LAYOUT } from './site-spec.generated';
|
|
@@ -24,6 +25,8 @@ const GALLERY_EFFECTS: ReadonlyArray<string> = V.galleryEffects;
|
|
|
24
25
|
const FORM_PRESETS: ReadonlyArray<string> = V.formPresets;
|
|
25
26
|
const BUTTON_VARIANTS: ReadonlyArray<string> = V.buttonVariants;
|
|
26
27
|
const NONE = 'none';
|
|
28
|
+
/** AW9: the section kind that is the drawers signature. */
|
|
29
|
+
const DRAWERS = LayoutSectionKind.Drawers as string;
|
|
27
30
|
const CLIP = 'clipReveal';
|
|
28
31
|
const CLIP_SIDE = `${CLIP}-`;
|
|
29
32
|
/** A gallery the wire marks `autoplay` turns every 5 s — what the proof sites' autoplaying galleries do. */
|
|
@@ -227,7 +230,9 @@ export function layoutWireJsonSchema(options: LayoutWireOptions = {}): JsonSchem
|
|
|
227
230
|
});
|
|
228
231
|
const section = closed({
|
|
229
232
|
id: text('a short slug, unique on the page'),
|
|
230
|
-
kind: oneOf(
|
|
233
|
+
kind: oneOf(layoutSectionKindsOffered(options.tier), layoutSectionKindsOffered(options.tier).includes(DRAWERS)
|
|
234
|
+
? `content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE) · drawers (the signature as ${DRAWER_STEPS[0]}–${DRAWER_STEPS[1]} steps sliding in and stacking: each step a heading, then its words and buttons; held, no photos)`
|
|
235
|
+
: 'content · inhale (a breath: ≤ 2 small layers, no photo) · signature (exactly ONE)'),
|
|
231
236
|
screens: integer('1..5 screen heights'),
|
|
232
237
|
hold: integer('0 flows · 1 held (the page stops while its layers move) · 2..4 held and carried sideways that many screens'),
|
|
233
238
|
ground: text("a colour name, or photo:<id>"),
|
|
@@ -420,6 +425,13 @@ function expandSection(s: PlainObject): LayoutSection {
|
|
|
420
425
|
if (kind === 'signature') out.signature = true;
|
|
421
426
|
if (hold >= 1) out.pin = true;
|
|
422
427
|
if (hold >= 2) out.track = hold;
|
|
428
|
+
// AW9: drawers IS the page's signature, and held — its steps say how long; it never walks sideways.
|
|
429
|
+
if (kind === DRAWERS) {
|
|
430
|
+
out.kind = LayoutSectionKind.Drawers;
|
|
431
|
+
out.signature = true;
|
|
432
|
+
out.pin = true;
|
|
433
|
+
delete out.track;
|
|
434
|
+
}
|
|
423
435
|
return out;
|
|
424
436
|
}
|
|
425
437
|
|
|
@@ -504,7 +516,7 @@ export function layoutToWire(page: Pick<LayoutPage, 'sections'> & Partial<Pick<L
|
|
|
504
516
|
...(columnWordOf(page.column) ? { column: page.column } : {}),
|
|
505
517
|
sections: page.sections.map(s => (s.carry ? carryPlaceToWire(s) : {
|
|
506
518
|
id: s.id,
|
|
507
|
-
kind: s.signature ? 'signature' : s.kind ?? 'content',
|
|
519
|
+
kind: s.kind === LayoutSectionKind.Drawers ? DRAWERS : s.signature ? 'signature' : s.kind ?? 'content',
|
|
508
520
|
screens: s.screens,
|
|
509
521
|
hold: s.pin ? s.track ?? 1 : 0,
|
|
510
522
|
ground: s.ground ?? 'ground',
|
|
@@ -113,6 +113,10 @@ export interface PatternTrack {
|
|
|
113
113
|
readonly prop: string;
|
|
114
114
|
readonly keys: ReadonlyArray<readonly [number, number | string]>;
|
|
115
115
|
readonly from?: string;
|
|
116
|
+
/** How it runs between keys when not its property's own (`linear` · `smooth`, AW9 RT-D1). */
|
|
117
|
+
readonly ease?: string;
|
|
118
|
+
/** What its progress is measured over when not the hold (`exit` · `cross-inline` · `cross-block`, AW9). */
|
|
119
|
+
readonly range?: string;
|
|
116
120
|
}
|
|
117
121
|
|
|
118
122
|
|
|
@@ -606,6 +606,20 @@ export const SPEC_SITE_PATTERNS = {
|
|
|
606
606
|
100
|
|
607
607
|
]
|
|
608
608
|
]
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"prop": "y",
|
|
612
|
+
"range": "exit",
|
|
613
|
+
"keys": [
|
|
614
|
+
[
|
|
615
|
+
0,
|
|
616
|
+
0
|
|
617
|
+
],
|
|
618
|
+
[
|
|
619
|
+
1,
|
|
620
|
+
30
|
|
621
|
+
]
|
|
622
|
+
]
|
|
609
623
|
}
|
|
610
624
|
]
|
|
611
625
|
},
|
|
@@ -6894,7 +6908,8 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
6894
6908
|
"sectionKinds": [
|
|
6895
6909
|
"content",
|
|
6896
6910
|
"inhale",
|
|
6897
|
-
"signature"
|
|
6911
|
+
"signature",
|
|
6912
|
+
"drawers"
|
|
6898
6913
|
],
|
|
6899
6914
|
"buttonVariants": [
|
|
6900
6915
|
"primary",
|
|
@@ -7047,7 +7062,11 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7047
7062
|
"voidScreen": 0.6,
|
|
7048
7063
|
"bandColumns": 10,
|
|
7049
7064
|
"composedPages": 2,
|
|
7050
|
-
"repairs": 1
|
|
7065
|
+
"repairs": 1,
|
|
7066
|
+
"drawerSteps": [
|
|
7067
|
+
3,
|
|
7068
|
+
5
|
|
7069
|
+
]
|
|
7051
7070
|
},
|
|
7052
7071
|
"sameness": {
|
|
7053
7072
|
"sequence": 0.8,
|
|
@@ -7074,7 +7093,7 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7074
7093
|
{
|
|
7075
7094
|
"id": "photo-unveiled",
|
|
7076
7095
|
"label": "a photo unveiled",
|
|
7077
|
-
"how": "a clip track opening a photo from a
|
|
7096
|
+
"how": "a clip track opening a photo to the full screen — drawn from a framed 60% with the ground around it, sinking as the next band rises (AW9)",
|
|
7078
7097
|
"tier": "all"
|
|
7079
7098
|
},
|
|
7080
7099
|
{
|
|
@@ -7113,6 +7132,12 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7113
7132
|
"how": "rotate + opacity tracks while its words change",
|
|
7114
7133
|
"tier": "all"
|
|
7115
7134
|
},
|
|
7135
|
+
{
|
|
7136
|
+
"id": "drawers",
|
|
7137
|
+
"label": "drawers",
|
|
7138
|
+
"how": "a held section whose 3–5 steps (one heading each, words and buttons only) slide in from the end and stack, each keeping its titled spine, the grounds deepening to the brand",
|
|
7139
|
+
"tier": "pro"
|
|
7140
|
+
},
|
|
7116
7141
|
{
|
|
7117
7142
|
"id": "held-screen",
|
|
7118
7143
|
"label": "a held screen",
|
|
@@ -11664,8 +11689,10 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
11664
11689
|
"where": "an entrance plays once (viewportEnter, once), or by the scroll (AW10: scrollProgress, until 0.5)"
|
|
11665
11690
|
},
|
|
11666
11691
|
"phoneWalk": {
|
|
11667
|
-
"built": [
|
|
11668
|
-
|
|
11692
|
+
"built": [
|
|
11693
|
+
"swipe"
|
|
11694
|
+
],
|
|
11695
|
+
"where": "generation-core composeLayout (AW9, RT-D4): on a phone a sideways walk is a row you swipe, one screen of it per card — every tier"
|
|
11669
11696
|
},
|
|
11670
11697
|
"phoneBar": {
|
|
11671
11698
|
"built": [
|
|
@@ -11806,5 +11833,30 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
11806
11833
|
"meaning": "an out-of-season card with notify me"
|
|
11807
11834
|
}
|
|
11808
11835
|
]
|
|
11836
|
+
},
|
|
11837
|
+
"drawers": {
|
|
11838
|
+
"spine": 4.5,
|
|
11839
|
+
"slide": 1,
|
|
11840
|
+
"rest": 0.5,
|
|
11841
|
+
"ramp": {
|
|
11842
|
+
"3": [
|
|
11843
|
+
"subtle",
|
|
11844
|
+
"muted",
|
|
11845
|
+
"accent"
|
|
11846
|
+
],
|
|
11847
|
+
"4": [
|
|
11848
|
+
"default",
|
|
11849
|
+
"subtle",
|
|
11850
|
+
"muted",
|
|
11851
|
+
"accent"
|
|
11852
|
+
],
|
|
11853
|
+
"5": [
|
|
11854
|
+
"default",
|
|
11855
|
+
"subtle",
|
|
11856
|
+
"muted",
|
|
11857
|
+
"inverse",
|
|
11858
|
+
"accent"
|
|
11859
|
+
]
|
|
11860
|
+
}
|
|
11809
11861
|
}
|
|
11810
11862
|
} as const;
|
package/src/scene-core/scene.ts
CHANGED
|
@@ -445,6 +445,9 @@ export const SCENE_FLOW_RULES = `.iox-role-scene{height:auto!important}`
|
|
|
445
445
|
+ `[${SceneAttribute.Tracks}]{transform:none!important;opacity:1!important;clip-path:none!important;pointer-events:auto!important}`
|
|
446
446
|
// A row the scroll slid sideways has no scroll to slide it now: it wraps, or its last items run off the side of a phone.
|
|
447
447
|
+ `[${SceneAttribute.Tracks}]{max-width:100%!important;flex-wrap:wrap!important}`
|
|
448
|
+
// Drawers (AW9) flow as the phone draws them: each step full width, its spine a label above its words.
|
|
449
|
+
+ `.iox-role-scene-drawer{width:100%!important;height:auto!important;flex-direction:column!important}`
|
|
450
|
+
+ `.iox-role-scene-drawer-spine{writing-mode:horizontal-tb!important;rotate:none!important;width:auto!important;height:auto!important}`
|
|
448
451
|
// A Video the scroll plays stands as its poster, at the poster's own height: a percent of a stage that now flows is nothing.
|
|
449
452
|
+ `[${VideoAttribute.Frames}]{height:auto!important}`
|
|
450
453
|
// On the component path it stands inside a host that took no height from it, so the host steps out of the layout.
|
package/styles/iox-design.css
CHANGED
|
@@ -89,6 +89,26 @@ iox-gallery.iox-es-media[data-iox-empty] > .iox-gallery {
|
|
|
89
89
|
overflow-x: clip;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
/* AW9 (award plan "Reddottours"). A sideways walk on a phone is a row the visitor swipes (RT-D4): each screen is a card
|
|
93
|
+
the row snaps to, the next one peeking. A drawer's spine (`drawers`) stands on end beside its step, and is a label above
|
|
94
|
+
the step on a phone. The sizes are the nodes' own (`composeLayout`); only what a node has no style for is here. Written
|
|
95
|
+
twice, because a size query (the canvas) and a media query cannot share a block. Reduced motion and no script flow
|
|
96
|
+
them (scene-core `SCENE_FLOW_RULES`). */
|
|
97
|
+
.iox-role-scene-drawer-spine {
|
|
98
|
+
writing-mode: vertical-rl;
|
|
99
|
+
rotate: 180deg;
|
|
100
|
+
}
|
|
101
|
+
@media (max-width: 767px) {
|
|
102
|
+
.iox-role-scene-walk { overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
|
|
103
|
+
.iox-role-scene-walk-screen { scroll-snap-align: start; }
|
|
104
|
+
.iox-role-scene-drawer-spine { writing-mode: horizontal-tb; rotate: none; }
|
|
105
|
+
}
|
|
106
|
+
@container iox-canvas (max-width: 767px) {
|
|
107
|
+
.iox-role-scene-walk { overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
|
|
108
|
+
.iox-role-scene-walk-screen { scroll-snap-align: start; }
|
|
109
|
+
.iox-role-scene-drawer-spine { writing-mode: horizontal-tb; rotate: none; }
|
|
110
|
+
}
|
|
111
|
+
|
|
92
112
|
/* ── Card v2 (composite T23; complex-components board 8) ──────────────────────────────────────────
|
|
93
113
|
The parts are ordinary nodes; `nodeDesignClasses` writes `iox-role-<role>` on each, so these rules are
|
|
94
114
|
the same in every renderer. Zero-specificity where an author's own value must win. */
|