@vectoriox/iox-ui 5.126.0 → 5.127.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 +74 -2
- package/design-core/index.d.ts +148 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +64 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +191 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +217 -24
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +8 -2
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +98 -16
- package/package.json +1 -1
- package/src/actions-core/public-api.ts +1 -0
- package/src/actions-core/reveal-origin.ts +102 -0
- package/src/design-core/flavor-spec.generated.ts +47 -0
- package/src/design-core/menu-look.ts +157 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/generation-core/compose-site.ts +10 -5
- package/src/generation-core/header-mix.ts +38 -4
- package/src/generation-core/nav-shape.ts +80 -1
- package/src/generation-core/site-spec.generated.ts +101 -15
- package/styles/iox-design.css +374 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AnimateId, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, colorSchemeClass, DesignChoices, LinkType, resolveDesignChoices, setColorScheme,
|
|
2
|
+
AnimateId, COLOR_SCHEME_TRAIT, COLOR_SCHEMES, ColorScheme, colorSchemeClass, DEFAULT_MENU_LOOK, DesignChoices, LinkType, MenuLook, resolveDesignChoices, setColorScheme,
|
|
3
3
|
} from '@vectoriox/iox-ui/design-core';
|
|
4
4
|
import { SEO_DESCRIPTION_MAX, SEO_TITLE_MAX, SeoRawDoc } from '@vectoriox/iox-ui/seo-core';
|
|
5
5
|
import { channelOpensNewTab, FORM_ACTIONS_ROLE, FORM_CHANNEL_ROLE, FormPresetChannel, FormPresetDef, FormPresetField, formPresetById } from '@vectoriox/iox-ui/forms-core';
|
|
@@ -1571,7 +1571,7 @@ export function composeSite(plan: SitePlan, context: ComposeContext): ComposedSi
|
|
|
1571
1571
|
// pages are behind its menu shows the menu at every width, on the side the mix names.
|
|
1572
1572
|
for (const [slot, pattern] of slotPatterns) {
|
|
1573
1573
|
if (!pattern.phoneMenu) continue;
|
|
1574
|
-
globals = planNavShape(globals, pattern.phoneMenu as NavShape, headerShapeOptions(slot === GlobalSlot.Header ? header.recipe : null), slot).globals;
|
|
1574
|
+
globals = planNavShape(globals, pattern.phoneMenu as NavShape, headerShapeOptions(slot === GlobalSlot.Header ? header.recipe : null, plan.locale), slot).globals;
|
|
1575
1575
|
}
|
|
1576
1576
|
// Premium M4 (T2): a header pattern's behaviour as the page scrolls — the same edit the Header section makes.
|
|
1577
1577
|
for (const [slot, pattern] of slotPatterns) {
|
|
@@ -1605,9 +1605,14 @@ export function planHeader(plan: SitePlan): { recipe: HeaderRecipe; context: Hea
|
|
|
1605
1605
|
|
|
1606
1606
|
/** The phone-menu options a header recipe asks for: its menu at every width and on its side (none for the defaults, so a
|
|
1607
1607
|
* stored header's edit is the one it always was). */
|
|
1608
|
-
function headerShapeOptions(recipe: HeaderRecipe | null): { everyWidth?: boolean; menuSide?: MenuSide } {
|
|
1608
|
+
function headerShapeOptions(recipe: HeaderRecipe | null, locale?: string): { everyWidth?: boolean; menuSide?: MenuSide; look?: Partial<MenuLook>; locale?: string } {
|
|
1609
1609
|
if (!recipe) return {};
|
|
1610
|
-
|
|
1610
|
+
// HI2a: the menu's look, only what differs from today's menu (a stored header composes as it always did — R-H4).
|
|
1611
|
+
const look = Object.fromEntries(Object.entries(recipe.menu).filter(([k, v]) => DEFAULT_MENU_LOOK[k as keyof MenuLook] !== v)) as Partial<MenuLook>;
|
|
1612
|
+
return {
|
|
1613
|
+
...(recipe.everyWidth ? { everyWidth: true } : {}), ...(recipe.menuSide === MenuSide.Start ? { menuSide: MenuSide.Start } : {}),
|
|
1614
|
+
...(Object.keys(look).length ? { look, ...(locale ? { locale } : {}) } : {}),
|
|
1615
|
+
};
|
|
1611
1616
|
}
|
|
1612
1617
|
|
|
1613
1618
|
// ── The site header on its own (CC1.1) ──────────────────────────────────────────────────────────
|
|
@@ -1707,7 +1712,7 @@ export function composeNavHeader(input: NavHeaderInput, options: NavHeaderOption
|
|
|
1707
1712
|
root.isGlobal = true;
|
|
1708
1713
|
root.globalPosition = pattern.global;
|
|
1709
1714
|
const shape = pattern.phoneMenu as NavShape | undefined;
|
|
1710
|
-
const header = shape ? planNavShape([root], shape, { newId: options.newId, ...headerShapeOptions(recipe) }, root.id).globals[0] : root;
|
|
1715
|
+
const header = shape ? planNavShape([root], shape, { newId: options.newId, ...headerShapeOptions(recipe, input.locale) }, root.id).globals[0] : root;
|
|
1711
1716
|
if (pattern.header) setHeaderBehaviour(header as unknown as CompositeNode, pattern.header.behaviour, pattern.header.edge ?? null);
|
|
1712
1717
|
return { header, issues, mix: checked.mix };
|
|
1713
1718
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
DesignChoices, elementStyleFace, MenuForm, menuButtonOf, menuFormOf, menuHoverOf, MenuLook, MenuPhoneForm, menuRevealOf, resolveDesignChoices, textWidthEm,
|
|
3
|
+
} from '@vectoriox/iox-ui/design-core';
|
|
2
4
|
|
|
3
5
|
import { MenuSide, NavRole, NavShape } from './nav-shape';
|
|
4
6
|
import { PatternGlobalPosition, PatternNode, SITE_PATTERNS, SitePattern } from './patterns';
|
|
@@ -30,6 +32,16 @@ export enum HeaderIngredient {
|
|
|
30
32
|
Scroll = 'scroll',
|
|
31
33
|
Edge = 'edge',
|
|
32
34
|
Phone = 'phone',
|
|
35
|
+
/** HB-D1 (HI2a): how the menu opens. */
|
|
36
|
+
Reveal = 'reveal',
|
|
37
|
+
/** HB-D1 (HI2a): the button that opens it. */
|
|
38
|
+
Button = 'button',
|
|
39
|
+
/** HB-D1 (HI2a): what the mouse does in it. */
|
|
40
|
+
MenuHover = 'menuHover',
|
|
41
|
+
/** HB-D1 (HI3): what sits above the bar. */
|
|
42
|
+
Above = 'above',
|
|
43
|
+
/** HB-D1 (HI3 / HI6): what more sits in the bar. */
|
|
44
|
+
InBar = 'inBar',
|
|
33
45
|
}
|
|
34
46
|
|
|
35
47
|
export enum HeaderArrange {
|
|
@@ -365,9 +377,26 @@ export interface HeaderRecipe {
|
|
|
365
377
|
/** The pages are behind a menu at every width (HI-D8). */
|
|
366
378
|
everyWidth: boolean;
|
|
367
379
|
menuSide: MenuSide;
|
|
380
|
+
/** HI2a: the menu's look — what `planNavShape` writes on the drawer, the menu button and its Close. */
|
|
381
|
+
menu: MenuLook;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/** The menu's look for a mix (HI2a): with its pages behind the menu, the `menu` form at every width and the `phone`
|
|
385
|
+
* ingredient's form on a phone; with its pages in the bar, the menu exists on a phone only, so its form IS the phone's
|
|
386
|
+
* (the drawer, or the full screen). How it opens, its button and its hover come from their own ingredients. */
|
|
387
|
+
export function menuLookOf(mix: HeaderMix): MenuLook {
|
|
388
|
+
const phoneFull = mix.phone === 'full';
|
|
389
|
+
const form = behindMenu(mix) ? menuFormOf(mix.menu) : phoneFull ? MenuForm.Full : MenuForm.Drawer;
|
|
390
|
+
return {
|
|
391
|
+
form,
|
|
392
|
+
reveal: menuRevealOf(mix.reveal),
|
|
393
|
+
button: menuButtonOf(mix.button),
|
|
394
|
+
hover: menuHoverOf(mix.menuHover),
|
|
395
|
+
phone: phoneFull && form !== MenuForm.Full ? MenuPhoneForm.Full : MenuPhoneForm.Drawer,
|
|
396
|
+
};
|
|
368
397
|
}
|
|
369
398
|
|
|
370
|
-
/** The phone ingredient as the phone menu's shape (`full`
|
|
399
|
+
/** The phone ingredient as the phone menu's shape (`full` is the drawer's Dialog, dressed as the full screen — HI2a). */
|
|
371
400
|
const PHONE_SHAPE: Readonly<Record<string, NavShape>> = { drawer: NavShape.Drawer, bar: NavShape.Bar, both: NavShape.Both, full: NavShape.Drawer };
|
|
372
401
|
|
|
373
402
|
/** A header mix as a pattern: what the composer stamps as the site's header (global, before the page). A mix that IS a
|
|
@@ -388,14 +417,19 @@ export function headerRecipe(mix: HeaderMix, ctx: HeaderContext): HeaderRecipe {
|
|
|
388
417
|
header: { behaviour: mix.scroll, edge: mix.edge },
|
|
389
418
|
node,
|
|
390
419
|
} as SitePattern;
|
|
391
|
-
return { pattern, everyWidth, menuSide };
|
|
420
|
+
return { pattern, everyWidth, menuSide, menu: menuLookOf(mix) };
|
|
392
421
|
}
|
|
393
422
|
|
|
394
423
|
// ── No sameness: another site's header is never worn again (§7, R-H2) ──────────────────────────────────────────────
|
|
395
424
|
|
|
396
425
|
/** The ingredients `distinctHeader` may change, in the order it tries them: how the pages are reached before where the
|
|
397
426
|
* name sits (the model chose the arrangement; the fingerprint sees both). */
|
|
398
|
-
const MEND_ORDER: ReadonlyArray<HeaderIngredient.Pages | HeaderIngredient.Arrange
|
|
427
|
+
const MEND_ORDER: ReadonlyArray<HeaderIngredient.Pages | HeaderIngredient.Arrange | HeaderIngredient.Reveal | HeaderIngredient.Button> = [
|
|
428
|
+
HeaderIngredient.Pages, HeaderIngredient.Arrange,
|
|
429
|
+
// HB-D6: how the menu opens and its button are in the fingerprint — the least visible change of all, tried after the
|
|
430
|
+
// two the model chose with the site in mind.
|
|
431
|
+
HeaderIngredient.Reveal, HeaderIngredient.Button,
|
|
432
|
+
];
|
|
399
433
|
|
|
400
434
|
/** The words of an ingredient the product draws. */
|
|
401
435
|
const drawnWords = (k: `${HeaderIngredient}`): string[] => headerWords(k).filter(w => !WAITS[`${k}.${w}`]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AccountRole, ShopRole } from '@vectoriox/iox-ui/composite-core';
|
|
2
|
-
import { LinkType } from '@vectoriox/iox-ui/design-core';
|
|
2
|
+
import { LinkType, MenuButtonKind, menuButtonOf, menuButtonProps, menuDialogProps, MenuLook, MenuTrait } from '@vectoriox/iox-ui/design-core';
|
|
3
3
|
|
|
4
4
|
import { PatternGlobalPosition } from './patterns';
|
|
5
5
|
import { createSerializedNode, SerializedNode, walkSerialized } from './serialized-node';
|
|
@@ -90,6 +90,12 @@ export interface NavShapeOptions {
|
|
|
90
90
|
/** HI-D15: the menu button at the start or the end of the bar (or of the side cell there). Default: where it already
|
|
91
91
|
* is, else the end. */
|
|
92
92
|
menuSide?: MenuSide | `${MenuSide}`;
|
|
93
|
+
/** HI2a: the menu's look — its form, how it opens, its button, what the mouse does in it, its phone form. Written as
|
|
94
|
+
* traits on the drawer, the menu button and the drawer's Close; a default writes nothing (R-H4). Absent: the parts
|
|
95
|
+
* keep what they have. */
|
|
96
|
+
look?: Partial<MenuLook>;
|
|
97
|
+
/** The site's language, for the words a menu button shows (`word`: Menu ⇄ Close). Default English. */
|
|
98
|
+
locale?: string;
|
|
93
99
|
}
|
|
94
100
|
|
|
95
101
|
export interface NavShapeResult {
|
|
@@ -122,10 +128,23 @@ const COMPOSED = { releaseLayoutDefaults: true };
|
|
|
122
128
|
export const NAV_SHAPE_COPY = {
|
|
123
129
|
menu: 'Menu',
|
|
124
130
|
closeMenu: 'Close menu',
|
|
131
|
+
/** HI2a: the word a `word` menu button turns into while its menu is open. */
|
|
132
|
+
close: 'Close',
|
|
125
133
|
more: 'More',
|
|
126
134
|
home: 'Home',
|
|
127
135
|
} as const;
|
|
128
136
|
|
|
137
|
+
/** The words a `word` menu button SHOWS, in the site's language (HI2a — visible words; the other parts' copy is still
|
|
138
|
+
* English and editable, as it always was). */
|
|
139
|
+
const MENU_WORDS: Readonly<Record<string, { menu: string; close: string }>> = {
|
|
140
|
+
en: { menu: NAV_SHAPE_COPY.menu, close: NAV_SHAPE_COPY.close },
|
|
141
|
+
he: { menu: 'תפריט', close: 'סגירה' },
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export function menuWords(locale: string | undefined): { menu: string; close: string } {
|
|
145
|
+
return MENU_WORDS[locale ?? ''] ?? MENU_WORDS['en'];
|
|
146
|
+
}
|
|
147
|
+
|
|
129
148
|
/** The layer names of the parts (R2: the tree, the breadcrumb and the toolbar read them). */
|
|
130
149
|
export const NAV_PART_LABELS: Readonly<Record<string, string>> = {
|
|
131
150
|
[NavRole.Root]: 'Navigation bar',
|
|
@@ -156,6 +175,9 @@ const ROUTE_ICONS: ReadonlyArray<[RegExp, string]> = [
|
|
|
156
175
|
const FALLBACK_ICON = 'ph-thin ph-file';
|
|
157
176
|
const MENU_ICON = 'ph-thin ph-list';
|
|
158
177
|
const CLOSE_ICON = 'ph-thin ph-x';
|
|
178
|
+
/** A `dots` button's icon — what a renderer without the shared CSS shows; the shared CSS draws the nine dots and their
|
|
179
|
+
* cross itself (iox-design.css "the menu's buttons"). */
|
|
180
|
+
const DOTS_ICON = 'ph-thin ph-dots-nine';
|
|
159
181
|
const MORE_ICON = 'ph-thin ph-dots-three';
|
|
160
182
|
|
|
161
183
|
export function barIconForRoute(route: string): string {
|
|
@@ -420,6 +442,61 @@ function drawer(kit: Kit, root: SerializedNode, pages: NavPage[], at: string): S
|
|
|
420
442
|
return dr;
|
|
421
443
|
}
|
|
422
444
|
|
|
445
|
+
// ── HI2a: the menu's look ───────────────────────────────────────────────────────────────────
|
|
446
|
+
|
|
447
|
+
/** The menu's own traits (on the drawer); its button's trait is on the menu button and the drawer's Close. */
|
|
448
|
+
const MENU_DIALOG_TRAITS: ReadonlyArray<[keyof MenuLook, MenuTrait]> = [
|
|
449
|
+
['form', MenuTrait.Form], ['reveal', MenuTrait.Reveal], ['hover', MenuTrait.Hover], ['phone', MenuTrait.Phone],
|
|
450
|
+
];
|
|
451
|
+
|
|
452
|
+
/** Write the look's menu traits on the drawer: each one the look names is replaced (a default writes nothing — R-H4);
|
|
453
|
+
* what it does not name is kept. */
|
|
454
|
+
function dressDrawer(dr: SerializedNode, look: Partial<MenuLook>): void {
|
|
455
|
+
const props = { ...(dr.props ?? {}) };
|
|
456
|
+
for (const [key, trait] of MENU_DIALOG_TRAITS) if (look[key] !== undefined) delete props[trait];
|
|
457
|
+
dr.props = { ...props, ...menuDialogProps(look) };
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/** A `word` button is as wide as its word (never narrower than the icon button it replaces). */
|
|
461
|
+
const WORD_BUTTON_LAY = { width: 'auto', minWidth: '48px' };
|
|
462
|
+
|
|
463
|
+
/** What a menu button shows for its kind — closed (the menu button) or open (the drawer's Close, which lands where the
|
|
464
|
+
* menu button is): the list icon and an X, the nine dots and an X (the shared CSS draws both as dots), or the word. */
|
|
465
|
+
function buttonFace(kit: Kit, suffix: string, kind: MenuButtonKind, open: boolean, locale: string | undefined): SerializedNode[] {
|
|
466
|
+
switch (kind) {
|
|
467
|
+
case MenuButtonKind.Word: {
|
|
468
|
+
const words = menuWords(locale);
|
|
469
|
+
return [labelText(kit, `${suffix}-word`, open ? words.close : words.menu)];
|
|
470
|
+
}
|
|
471
|
+
case MenuButtonKind.Dots: return [iconNode(kit, `${suffix}-dots`, open ? CLOSE_ICON : DOTS_ICON)];
|
|
472
|
+
default: return [iconNode(kit, `${suffix}-icon`, open ? CLOSE_ICON : MENU_ICON)];
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/** Give a menu button (or the drawer's Close) a kind. The same kind keeps the author's children; another kind gets that
|
|
477
|
+
* kind's face and size. */
|
|
478
|
+
function dressButton(kit: Kit, btn: SerializedNode, suffix: string, kind: MenuButtonKind, open: boolean, locale: string | undefined): void {
|
|
479
|
+
const was = menuButtonOf(btn.props?.[MenuTrait.Button]);
|
|
480
|
+
const { [MenuTrait.Button]: _drop, ...props } = btn.props ?? {};
|
|
481
|
+
btn.props = { ...props, ...menuButtonProps(kind) };
|
|
482
|
+
if (was === kind) return;
|
|
483
|
+
btn.children = buttonFace(kit, suffix, kind, open, locale);
|
|
484
|
+
if (kind === MenuButtonKind.Word) Object.assign(btn.styleProps, WORD_BUTTON_LAY);
|
|
485
|
+
else if (was === MenuButtonKind.Word) Object.assign(btn.styleProps, { width: MENU_BUTTON_LAY.width, minWidth: ICON_BUTTON_MIN_WIDTH });
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
/** An icon menu button's own min-width (its type's, as `part` stamps it) — what a `word` button gives back. */
|
|
489
|
+
const ICON_BUTTON_MIN_WIDTH = String(createSerializedNode('min-width', BUTTON, { tag: 'button' }, 'button-ghost', COMPOSED).styleProps['minWidth'] ?? '0px');
|
|
490
|
+
|
|
491
|
+
/** Put a look on a header's menu: the drawer's traits, and the menu button's and the Close's kind. */
|
|
492
|
+
function dressMenu(kit: Kit, dr: SerializedNode | null, menu: SerializedNode | null, look: Partial<MenuLook>, locale: string | undefined): void {
|
|
493
|
+
if (dr) dressDrawer(dr, look);
|
|
494
|
+
if (!look.button) return;
|
|
495
|
+
if (menu) dressButton(kit, menu, 'menu', look.button, false, locale);
|
|
496
|
+
const close = dr ? find([dr], NavRole.DrawerClose) : null;
|
|
497
|
+
if (close) dressButton(kit, close, 'drawer-close', look.button, true, locale);
|
|
498
|
+
}
|
|
499
|
+
|
|
423
500
|
function barItem(kit: Kit, i: number, page: NavPage): SerializedNode {
|
|
424
501
|
const item = part(kit, `bar-item-${i}`, LINKED, { linkType: LinkType.Page, pageRoute: page.route, target: '_self' }, 'bottom-bar-item', NavRole.BarItem, BAR_ITEM_LAY);
|
|
425
502
|
item.label = page.label;
|
|
@@ -620,6 +697,8 @@ export function planNavShape(globals: ReadonlyArray<SerializedNode>, shape: NavS
|
|
|
620
697
|
}
|
|
621
698
|
placeMenu(root, menu, (options.menuSide as MenuSide | undefined) ?? null, was);
|
|
622
699
|
}
|
|
700
|
+
// HI2a: the menu's look, when one is asked (the composer's header recipe; the Header studio later).
|
|
701
|
+
if (options.look) dressMenu(kit, dr, menu, options.look, options.locale);
|
|
623
702
|
if (dr && shape === NavShape.Drawer) kids.push(dr);
|
|
624
703
|
if (dr && shape === NavShape.Both) {
|
|
625
704
|
dr.isGlobal = true;
|
|
@@ -7796,11 +7796,16 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7796
7796
|
"menu": [
|
|
7797
7797
|
"drawer",
|
|
7798
7798
|
"full",
|
|
7799
|
-
"panel"
|
|
7799
|
+
"panel",
|
|
7800
|
+
"card",
|
|
7801
|
+
"mega"
|
|
7800
7802
|
],
|
|
7801
7803
|
"menuShows": [
|
|
7802
7804
|
"links",
|
|
7803
|
-
"pictures"
|
|
7805
|
+
"pictures",
|
|
7806
|
+
"big",
|
|
7807
|
+
"two-levels",
|
|
7808
|
+
"words-card"
|
|
7804
7809
|
],
|
|
7805
7810
|
"action": [
|
|
7806
7811
|
"none",
|
|
@@ -7811,7 +7816,8 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7811
7816
|
"ground": [
|
|
7812
7817
|
"solid",
|
|
7813
7818
|
"over",
|
|
7814
|
-
"glass"
|
|
7819
|
+
"glass",
|
|
7820
|
+
"blend"
|
|
7815
7821
|
],
|
|
7816
7822
|
"shape": [
|
|
7817
7823
|
"bar",
|
|
@@ -7838,6 +7844,34 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7838
7844
|
"bar",
|
|
7839
7845
|
"both",
|
|
7840
7846
|
"full"
|
|
7847
|
+
],
|
|
7848
|
+
"reveal": [
|
|
7849
|
+
"slide",
|
|
7850
|
+
"fade",
|
|
7851
|
+
"zoom",
|
|
7852
|
+
"circle",
|
|
7853
|
+
"torn"
|
|
7854
|
+
],
|
|
7855
|
+
"button": [
|
|
7856
|
+
"lines",
|
|
7857
|
+
"word",
|
|
7858
|
+
"dots"
|
|
7859
|
+
],
|
|
7860
|
+
"menuHover": [
|
|
7861
|
+
"line",
|
|
7862
|
+
"dim",
|
|
7863
|
+
"row",
|
|
7864
|
+
"none"
|
|
7865
|
+
],
|
|
7866
|
+
"above": [
|
|
7867
|
+
"none",
|
|
7868
|
+
"announcement",
|
|
7869
|
+
"marquee"
|
|
7870
|
+
],
|
|
7871
|
+
"inBar": [
|
|
7872
|
+
"none",
|
|
7873
|
+
"icons",
|
|
7874
|
+
"search"
|
|
7841
7875
|
]
|
|
7842
7876
|
},
|
|
7843
7877
|
"meanings": {
|
|
@@ -7850,11 +7884,16 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7850
7884
|
"pages.inline": "every page in the bar",
|
|
7851
7885
|
"pages.menu": "the pages behind the menu",
|
|
7852
7886
|
"pages.menu-pinned": "the pages behind the menu, one or two key pages kept in the bar",
|
|
7853
|
-
"menu.drawer": "a sheet from the
|
|
7887
|
+
"menu.drawer": "a sheet from the menu button's edge",
|
|
7854
7888
|
"menu.full": "a full-screen index of the page names, large",
|
|
7855
7889
|
"menu.panel": "a panel that drops from the top, as tall as its content",
|
|
7890
|
+
"menu.card": "a card that opens from the menu button's corner",
|
|
7891
|
+
"menu.mega": "a wide panel under the bar, its pages in columns",
|
|
7856
7892
|
"menuShows.links": "the page names",
|
|
7857
7893
|
"menuShows.pictures": "pictured cards for the main collections beside the page names",
|
|
7894
|
+
"menuShows.big": "the page names, large",
|
|
7895
|
+
"menuShows.two-levels": "sections, and the items of the one under the mouse with their counts",
|
|
7896
|
+
"menuShows.words-card": "the page names large, with a card (a picture or a reel) beside them",
|
|
7858
7897
|
"action.none": "no call to action",
|
|
7859
7898
|
"action.button": "one button",
|
|
7860
7899
|
"action.link": "one quiet link",
|
|
@@ -7862,6 +7901,7 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7862
7901
|
"ground.solid": "its own ground",
|
|
7863
7902
|
"ground.over": "over the opening, transparent until the page moves",
|
|
7864
7903
|
"ground.glass": "frosted glass (a look with a blur)",
|
|
7904
|
+
"ground.blend": "blends with what is under it, readable over any picture",
|
|
7865
7905
|
"shape.bar": "a full-width bar",
|
|
7866
7906
|
"shape.pill": "one floating rounded bar",
|
|
7867
7907
|
"shape.islands": "separate floating pills",
|
|
@@ -7877,24 +7917,42 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7877
7917
|
"phone.drawer": "a drawer on a phone",
|
|
7878
7918
|
"phone.bar": "a bottom bar on a phone",
|
|
7879
7919
|
"phone.both": "a bottom bar and a drawer on a phone",
|
|
7880
|
-
"phone.full": "a full-screen index on a phone"
|
|
7920
|
+
"phone.full": "a full-screen index on a phone",
|
|
7921
|
+
"reveal.slide": "slides in: a drawer from its edge, any other menu a short drop",
|
|
7922
|
+
"reveal.fade": "fades in",
|
|
7923
|
+
"reveal.zoom": "grows from the menu button's corner",
|
|
7924
|
+
"reveal.circle": "a circle that opens from the menu button",
|
|
7925
|
+
"reveal.torn": "a torn edge that opens from the menu button, rimmed in the accent",
|
|
7926
|
+
"button.lines": "three lines that become a cross",
|
|
7927
|
+
"button.word": "the word Menu, which becomes Close",
|
|
7928
|
+
"button.dots": "nine dots that spread under the mouse and become a cross",
|
|
7929
|
+
"menuHover.line": "a line draws under the page name",
|
|
7930
|
+
"menuHover.dim": "the other page names dim",
|
|
7931
|
+
"menuHover.row": "the row under the mouse lights up",
|
|
7932
|
+
"menuHover.none": "nothing moves under the mouse",
|
|
7933
|
+
"above.none": "nothing above the bar",
|
|
7934
|
+
"above.announcement": "one line of the owner's news above the bar",
|
|
7935
|
+
"above.marquee": "a moving band of the owner's words above the bar",
|
|
7936
|
+
"inBar.none": "nothing more in the bar",
|
|
7937
|
+
"inBar.icons": "small icons (sound, theme, chat) in the bar",
|
|
7938
|
+
"inBar.search": "a search field in the bar"
|
|
7881
7939
|
},
|
|
7882
7940
|
"waits": {
|
|
7883
|
-
"
|
|
7941
|
+
"menuShows.pictures": {
|
|
7884
7942
|
"phase": "HI2",
|
|
7885
|
-
"drawnAs": "
|
|
7943
|
+
"drawnAs": "links"
|
|
7886
7944
|
},
|
|
7887
|
-
"
|
|
7945
|
+
"menuShows.big": {
|
|
7888
7946
|
"phase": "HI2",
|
|
7889
|
-
"drawnAs": "
|
|
7947
|
+
"drawnAs": "links"
|
|
7890
7948
|
},
|
|
7891
|
-
"menuShows.
|
|
7949
|
+
"menuShows.words-card": {
|
|
7892
7950
|
"phase": "HI2",
|
|
7893
7951
|
"drawnAs": "links"
|
|
7894
7952
|
},
|
|
7895
|
-
"
|
|
7896
|
-
"phase": "
|
|
7897
|
-
"drawnAs": "
|
|
7953
|
+
"menuShows.two-levels": {
|
|
7954
|
+
"phase": "HI6",
|
|
7955
|
+
"drawnAs": "links"
|
|
7898
7956
|
},
|
|
7899
7957
|
"ground.over": {
|
|
7900
7958
|
"phase": "HI3",
|
|
@@ -7904,6 +7962,26 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7904
7962
|
"phase": "HI3",
|
|
7905
7963
|
"drawnAs": "solid"
|
|
7906
7964
|
},
|
|
7965
|
+
"ground.blend": {
|
|
7966
|
+
"phase": "HI3",
|
|
7967
|
+
"drawnAs": "solid"
|
|
7968
|
+
},
|
|
7969
|
+
"above.announcement": {
|
|
7970
|
+
"phase": "HI3",
|
|
7971
|
+
"drawnAs": "none"
|
|
7972
|
+
},
|
|
7973
|
+
"above.marquee": {
|
|
7974
|
+
"phase": "HI3",
|
|
7975
|
+
"drawnAs": "none"
|
|
7976
|
+
},
|
|
7977
|
+
"inBar.icons": {
|
|
7978
|
+
"phase": "HI3",
|
|
7979
|
+
"drawnAs": "none"
|
|
7980
|
+
},
|
|
7981
|
+
"inBar.search": {
|
|
7982
|
+
"phase": "HI6",
|
|
7983
|
+
"drawnAs": "none"
|
|
7984
|
+
},
|
|
7907
7985
|
"shape.pill": {
|
|
7908
7986
|
"phase": "HI3",
|
|
7909
7987
|
"drawnAs": "bar"
|
|
@@ -7933,7 +8011,12 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7933
8011
|
"brand": "fits",
|
|
7934
8012
|
"scroll": "hides",
|
|
7935
8013
|
"edge": "fade",
|
|
7936
|
-
"phone": "drawer"
|
|
8014
|
+
"phone": "drawer",
|
|
8015
|
+
"reveal": "slide",
|
|
8016
|
+
"button": "lines",
|
|
8017
|
+
"menuHover": "line",
|
|
8018
|
+
"above": "none",
|
|
8019
|
+
"inBar": "none"
|
|
7937
8020
|
},
|
|
7938
8021
|
"named": {
|
|
7939
8022
|
"nav.inline-cta": {},
|
|
@@ -7968,7 +8051,10 @@ export const SPEC_SITE_LAYOUT = {
|
|
|
7968
8051
|
"pages",
|
|
7969
8052
|
"menu",
|
|
7970
8053
|
"ground",
|
|
7971
|
-
"shape"
|
|
8054
|
+
"shape",
|
|
8055
|
+
"reveal",
|
|
8056
|
+
"button",
|
|
8057
|
+
"above"
|
|
7972
8058
|
],
|
|
7973
8059
|
"rules": {
|
|
7974
8060
|
"menuMinLinks": 3,
|