@vectoriox/iox-ui 5.197.0 → 5.198.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 +16 -2
- package/design-core/index.d.ts +160 -28
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +34 -2
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +259 -72
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1845 -396
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +2 -2
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +1286 -184
- package/package.json +1 -1
- package/src/composite-core/header.ts +34 -1
- package/src/design-core/brand.ts +58 -5
- package/src/design-core/contrast-audit.ts +49 -22
- package/src/design-core/design-apply.ts +34 -3
- package/src/design-core/flavor-fixtures.generated.ts +123 -123
- package/src/design-core/flavor-spec.generated.ts +44 -4
- package/src/design-core/flavor-tokens.ts +1 -1
- package/src/design-core/header-behaviour.ts +72 -13
- package/src/design-core/motion-language.ts +5 -14
- package/src/design-core/preloader.ts +4 -5
- package/src/generation-core/body-mix.ts +40 -102
- package/src/generation-core/check-free.ts +5 -2
- package/src/generation-core/check-layout.ts +10 -4
- package/src/generation-core/check-list.ts +3 -25
- package/src/generation-core/colour-mix.ts +296 -0
- package/src/generation-core/compose-free.ts +40 -18
- package/src/generation-core/compose-site.ts +92 -13
- package/src/generation-core/footer-mix.ts +102 -54
- package/src/generation-core/free-fallback.ts +6 -4
- package/src/generation-core/free-parts.ts +87 -0
- package/src/generation-core/free-slot-words.ts +30 -0
- package/src/generation-core/generation-tier.ts +6 -17
- package/src/generation-core/header-mix.ts +42 -1
- package/src/generation-core/layout-drawers.ts +3 -2
- package/src/generation-core/layout-wire.ts +10 -16
- package/src/generation-core/list-panel.ts +3 -3
- package/src/generation-core/list-table.ts +5 -14
- package/src/generation-core/list-words.ts +2 -1
- package/src/generation-core/opening-mix.ts +7 -34
- package/src/generation-core/part-tier.ts +14 -0
- package/src/generation-core/plan-wire.ts +31 -43
- package/src/generation-core/public-api.ts +2 -0
- package/src/generation-core/site-spec.generated.ts +1127 -93
- package/src/generation-core/validate-site-plan.ts +4 -5
- package/styles/iox-design.css +137 -3
|
@@ -2,6 +2,7 @@ import { ARRIVE_IDS, flavorPackById, MOVE_IDS, parseHexColor, PRELOADER_IDS, SCR
|
|
|
2
2
|
import { formPresetById } from '@vectoriox/iox-ui/forms-core';
|
|
3
3
|
import { filmScreensFor, normalizeFrameSequence } from '@vectoriox/iox-ui/media-core';
|
|
4
4
|
import { SEO_DESCRIPTION_MAX, SEO_ROBOTS_OPTIONS, SEO_TITLE_MAX } from '@vectoriox/iox-ui/seo-core';
|
|
5
|
+
import { freeSlotOf, FreeSlotKind } from './free-slot-words';
|
|
5
6
|
|
|
6
7
|
import {
|
|
7
8
|
BindScope, patternById, patternHasForm, patternLinkSlots, patternNeedsBinding, patternOptionalParts, patternRoleNeeds, patternTakesBinding, patternScopes,
|
|
@@ -940,8 +941,6 @@ interface FreeTreeContext {
|
|
|
940
941
|
readyMade: boolean;
|
|
941
942
|
}
|
|
942
943
|
|
|
943
|
-
const FREE_LIST_SLOT = 'list:';
|
|
944
|
-
const FREE_FORM_SLOT = 'form:';
|
|
945
944
|
|
|
946
945
|
function validateFreeTree(c: Collector, roots: unknown[], path: string, ctx: FreeTreeContext, single = false): void {
|
|
947
946
|
const ids = new Set<string>();
|
|
@@ -980,9 +979,9 @@ function validateFreeTree(c: Collector, roots: unknown[], path: string, ctx: Fre
|
|
|
980
979
|
}
|
|
981
980
|
if (type === FreeNodeType.Slot) {
|
|
982
981
|
const slot = String(raw['slot'] ?? '');
|
|
983
|
-
const
|
|
984
|
-
|
|
985
|
-
if (!ok) c.add(SitePlanIssueCode.Free, `${p}.slot`, `"${slot}" —
|
|
982
|
+
const placed = freeSlotOf(slot);
|
|
983
|
+
const ok = !placed ? false : placed.kind === FreeSlotKind.Form ? !!formPresetById(placed.ref) : isListSource(ctx.sources.get(placed.ref));
|
|
984
|
+
if (!ok) c.add(SitePlanIssueCode.Free, `${p}.slot`, `"${slot}" — form:<a form preset>, or list: / accordion: / tabs: / quotes: <a list source of the plan>`);
|
|
986
985
|
}
|
|
987
986
|
const move = raw['move'];
|
|
988
987
|
if (move !== undefined && !(isObject(move) && FREE_MOVES[move['trigger'] as FreeTrigger]?.[String(move['action'])])) c.add(SitePlanIssueCode.Free, `${p}.move`, 'a move the product has (FREE_MOVES)');
|
package/styles/iox-design.css
CHANGED
|
@@ -540,6 +540,19 @@ dialog[data-iox-dialog]:has(> .iox-dialog-close),
|
|
|
540
540
|
--iox-link-weight: var(--iox-weight-body);
|
|
541
541
|
}
|
|
542
542
|
|
|
543
|
+
/* vectoriox/iox-ui#173 (a), decided 2026-11-28 — a header's words wear the BAR's ink: its pages, the drawer's pages and the
|
|
544
|
+
menu word (a text button) rest in the bar's own colour, never the look's accent link colour (the accent menu word on the
|
|
545
|
+
Glass bar measured 2.03:1 over a dark section). The current page reads by its weight (the roles above rest at the body
|
|
546
|
+
weight, the current link at weight-strong — no line), and the accent comes on hover only. The contract's
|
|
547
|
+
`contrastAudit.headerInkScope`, verbatim (pinned by token-names.spec); declared on the header's CHILDREN, so a scheme the
|
|
548
|
+
header root wears — which re-declares the link colour on the root itself — never ties with it. */
|
|
549
|
+
.iox-es-nav > *, [data-iox-header] > * {
|
|
550
|
+
--iox-link-color: currentColor;
|
|
551
|
+
--iox-link-current-color: currentColor;
|
|
552
|
+
--iox-link-hover-color: var(--iox-accent-text);
|
|
553
|
+
--iox-button-ghost-ink: currentColor;
|
|
554
|
+
}
|
|
555
|
+
|
|
543
556
|
/* vectoriox/iox-ui#98 — a header on a PHONE is one row, and its name is held whole on one or two lines. The controls (the
|
|
544
557
|
menu button, the bag, the account, a pinned page, the cells holding them) keep their size and sit at half the look's gap;
|
|
545
558
|
the name takes the room the hidden pages leave and wraps balanced, a word too long for the room breaking rather than
|
|
@@ -2648,6 +2661,31 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
2648
2661
|
.iox-role-footer-ruled > :first-child { border-block-start: none; padding-block-start: 0; }
|
|
2649
2662
|
}
|
|
2650
2663
|
|
|
2664
|
+
/* FV1 arrange:halves (footer-v2 §2, after thepopuphotel and allerstudio) — two zones, the brand at the start and the blocks
|
|
2665
|
+
at the end, divided by a vertical hairline in the divider's colour on the END zone's start side (logical: right-to-left
|
|
2666
|
+
mirrors by itself). The start zone keeps its words on the column; each zone pads the gap toward the hairline. On a
|
|
2667
|
+
phone the zones stack and the hairline lies across. `:nth-child(n)` as ruled's, so a zone's own node rule never wins. */
|
|
2668
|
+
.iox-role-footer-halves > :nth-child(n) { padding-inline-end: var(--iox-space-gap); }
|
|
2669
|
+
.iox-role-footer-halves > :nth-child(2) {
|
|
2670
|
+
border-inline-start: var(--iox-border-width, 1px) solid var(--iox-divider-color);
|
|
2671
|
+
padding-inline: var(--iox-space-gap) 0;
|
|
2672
|
+
}
|
|
2673
|
+
@media (max-width: 767px) {
|
|
2674
|
+
.iox-role-footer-halves > :nth-child(n) { padding-inline: 0; }
|
|
2675
|
+
.iox-role-footer-halves > :nth-child(2) { border-inline-start: none; border-block-start: var(--iox-border-width, 1px) solid var(--iox-divider-color); padding-block-start: var(--iox-space-gap); margin-block-start: var(--iox-space-gap); }
|
|
2676
|
+
}
|
|
2677
|
+
@container iox-canvas (max-width: 767px) {
|
|
2678
|
+
.iox-role-footer-halves > :nth-child(n) { padding-inline: 0; }
|
|
2679
|
+
.iox-role-footer-halves > :nth-child(2) { border-inline-start: none; border-block-start: var(--iox-border-width, 1px) solid var(--iox-divider-color); padding-block-start: var(--iox-space-gap); margin-block-start: var(--iox-space-gap); }
|
|
2680
|
+
}
|
|
2681
|
+
|
|
2682
|
+
/* FV1 ground:framed — the footer on the page's own ground, as a ruled box inside the page frame: its margin and the padding
|
|
2683
|
+
that brings its words back onto the column are the root's (generation-core `FOOTER_FRAMED_STYLES`, an inset footer's);
|
|
2684
|
+
the rule is drawn here in the divider's colour. Two classes, so the section's own node rule never wins. */
|
|
2685
|
+
.iox-es.iox-footer-ground-framed {
|
|
2686
|
+
border: var(--iox-border-width, 1px) solid var(--iox-divider-color);
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2651
2689
|
/* closing:name-and-action (AW12-D3) — the name stands on the window's bottom and loses its lowest `footer-name-cut`
|
|
2652
2690
|
(0.12em, descenders included) to it: the footer ends where the name is cut, nothing under it. */
|
|
2653
2691
|
.iox-es.iox-footer-closing-name-and-action {
|
|
@@ -2793,14 +2831,14 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
2793
2831
|
}
|
|
2794
2832
|
/* AT REST (headerFirm false): no ground, the veil under the words, and the way back faster than the way in. An open menu
|
|
2795
2833
|
is a real <dialog open> live, and the canvas stage's [data-iox-menu-open] in the builder (iox-ui#181). */
|
|
2796
|
-
:root :is([data-iox-header-ground="over"], [data-iox-header-ground="over-glass"]):is([data-iox-opening-media="picture"] *):not([data-iox-scrolled] *):not(:has(:is(dialog[open], [data-iox-menu-open]))) {
|
|
2834
|
+
:root :is([data-iox-header-ground="over"], [data-iox-header-ground="over-glass"]):not([data-iox-header-shape]):is([data-iox-opening-media="picture"] *):not([data-iox-scrolled] *):not(:has(:is(dialog[open], [data-iox-menu-open]))) {
|
|
2797
2835
|
transition-duration: calc(var(--iox-dur-ui, 200ms) * 0.6);
|
|
2798
2836
|
}
|
|
2799
|
-
:root :is([data-iox-header-ground="over"], [data-iox-header-ground="over-glass"]):is([data-iox-opening-media="picture"] *):not([data-iox-scrolled] *):not(:has(:is(dialog[open], [data-iox-menu-open])))::before {
|
|
2837
|
+
:root :is([data-iox-header-ground="over"], [data-iox-header-ground="over-glass"]):not([data-iox-header-shape]):is([data-iox-opening-media="picture"] *):not([data-iox-scrolled] *):not(:has(:is(dialog[open], [data-iox-menu-open])))::before {
|
|
2800
2838
|
opacity: 0;
|
|
2801
2839
|
transition-duration: calc(var(--iox-dur-ui, 200ms) * 0.6);
|
|
2802
2840
|
}
|
|
2803
|
-
:root :is([data-iox-header-ground="over"], [data-iox-header-ground="over-glass"]):is([data-iox-opening-media="picture"] *):not([data-iox-scrolled] *):not(:has(:is(dialog[open], [data-iox-menu-open])))::after {
|
|
2841
|
+
:root :is([data-iox-header-ground="over"], [data-iox-header-ground="over-glass"]):not([data-iox-header-shape]):is([data-iox-opening-media="picture"] *):not([data-iox-scrolled] *):not(:has(:is(dialog[open], [data-iox-menu-open])))::after {
|
|
2804
2842
|
opacity: 1;
|
|
2805
2843
|
transition-duration: var(--iox-dur-ui, 200ms);
|
|
2806
2844
|
}
|
|
@@ -2835,3 +2873,99 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
2835
2873
|
--iox-nav-over-veil: none;
|
|
2836
2874
|
}
|
|
2837
2875
|
}
|
|
2876
|
+
|
|
2877
|
+
/* ── HI3 slice 2 — the header's OUTLINE and its NAME (header-ingredients-plan HI3-D15…D26, board hi3-shapes) ──────────
|
|
2878
|
+
Keyed on design-core `headerAttributes`: `data-iox-header-shape` (pill · islands) and `data-iox-header-brand` (hangs ·
|
|
2879
|
+
later). A floating header always writes its ground word (a solid one writes `solid`: the look's own bar), so it lives on
|
|
2880
|
+
slice 1's ground layer and gives its height back over a pictured opening (HI3-D17); it is never at rest
|
|
2881
|
+
(`HEADER_AT_REST_SELECTOR` excludes it: a floating shape wears its ground from the top, never a clear pill) and has no
|
|
2882
|
+
scroll edge (HI3-D20, `headerAttributes` writes none). The pill is ONE inset bar as wide as the content column
|
|
2883
|
+
(`--iox-content-width`, award §0c) and never wider than the window less its insets (HI3-D16); islands put the ground on
|
|
2884
|
+
each part of the bar (HI3-D18); the corner is the look's button corner (HI3-D19). All logical properties (HI3-D24). */
|
|
2885
|
+
[data-iox-header-ground='solid'] {
|
|
2886
|
+
--hdr-bg: var(--iox-nav-bg);
|
|
2887
|
+
--hdr-backdrop: var(--iox-nav-backdrop);
|
|
2888
|
+
--hdr-border: var(--iox-nav-border);
|
|
2889
|
+
--hdr-shadow: var(--iox-nav-shadow);
|
|
2890
|
+
}
|
|
2891
|
+
[data-iox-header-shape] {
|
|
2892
|
+
--hdr-float-block: 8px;
|
|
2893
|
+
--hdr-float-inline: max(24px, calc((100% - var(--iox-content-width, 100%)) / 2));
|
|
2894
|
+
--hdr-float-pad: 28px;
|
|
2895
|
+
--hdr-float-radius: var(--iox-button-radius, 999px);
|
|
2896
|
+
padding-block: var(--hdr-float-block) !important;
|
|
2897
|
+
}
|
|
2898
|
+
[data-iox-header-shape='pill'] {
|
|
2899
|
+
padding-inline: calc(var(--hdr-float-inline) + var(--hdr-float-pad)) !important;
|
|
2900
|
+
}
|
|
2901
|
+
[data-iox-header-shape='pill']::before {
|
|
2902
|
+
inset: var(--hdr-float-block) var(--hdr-float-inline);
|
|
2903
|
+
border-width: var(--iox-border-width, 1px);
|
|
2904
|
+
border-radius: var(--hdr-float-radius);
|
|
2905
|
+
}
|
|
2906
|
+
[data-iox-header-shape='islands'] {
|
|
2907
|
+
padding-inline: var(--hdr-float-inline) !important;
|
|
2908
|
+
}
|
|
2909
|
+
[data-iox-header-shape='islands']::before {
|
|
2910
|
+
display: none;
|
|
2911
|
+
}
|
|
2912
|
+
[data-iox-header-shape='islands'] > :not(dialog, :empty) {
|
|
2913
|
+
align-self: stretch;
|
|
2914
|
+
display: flex;
|
|
2915
|
+
align-items: center;
|
|
2916
|
+
padding-inline: 20px;
|
|
2917
|
+
border: var(--iox-border-width, 1px) solid var(--hdr-border);
|
|
2918
|
+
border-radius: var(--hdr-float-radius);
|
|
2919
|
+
background-color: var(--hdr-bg);
|
|
2920
|
+
box-shadow: var(--hdr-shadow);
|
|
2921
|
+
-webkit-backdrop-filter: var(--hdr-backdrop);
|
|
2922
|
+
backdrop-filter: var(--hdr-backdrop);
|
|
2923
|
+
}
|
|
2924
|
+
/* A header that has stepped aside leaves nothing of itself in view — its shadow goes with it at once (T3, R-H11). */
|
|
2925
|
+
[data-iox-header-shape][data-iox-header-hidden] {
|
|
2926
|
+
--hdr-shadow: none;
|
|
2927
|
+
}
|
|
2928
|
+
/* HI3-D21 — the name HANGS: the logo picture is half again the bar's height (at most 48px below it); its negative end
|
|
2929
|
+
margin keeps the bar its own height, and the opening's words keep clear of the overhang (T6). */
|
|
2930
|
+
[data-iox-header-brand='hangs'] {
|
|
2931
|
+
--hdr-hang: min(calc(var(--header-h, var(--hdr-h-fallback, 80px)) / 2), 48px);
|
|
2932
|
+
overflow: visible;
|
|
2933
|
+
}
|
|
2934
|
+
[data-iox-header-brand='hangs'] .iox-role-nav-brand {
|
|
2935
|
+
align-self: flex-start;
|
|
2936
|
+
position: relative;
|
|
2937
|
+
z-index: 1;
|
|
2938
|
+
}
|
|
2939
|
+
[data-iox-header-brand='hangs'] .iox-role-nav-brand img {
|
|
2940
|
+
block-size: calc(var(--header-h, var(--hdr-h-fallback, 80px)) + var(--hdr-hang));
|
|
2941
|
+
inline-size: auto;
|
|
2942
|
+
max-inline-size: none;
|
|
2943
|
+
margin-block-end: calc(-1 * var(--hdr-hang));
|
|
2944
|
+
}
|
|
2945
|
+
:root:has([data-iox-header-brand='hangs']) .iox-role-opening .iox-role-opening-words {
|
|
2946
|
+
padding-block-start: min(calc(var(--header-h, 80px) / 2), 48px);
|
|
2947
|
+
}
|
|
2948
|
+
/* On a phone the name fits (HI3-D23): a hanging logo would cover the heading on a narrow screen. */
|
|
2949
|
+
@media (max-width: 767px) {
|
|
2950
|
+
[data-iox-header-shape] { --hdr-float-block: 6px; --hdr-float-inline: 10px; --hdr-float-pad: 16px; }
|
|
2951
|
+
[data-iox-header-brand='hangs'] .iox-role-nav-brand img { block-size: auto; max-block-size: 100%; margin-block-end: 0; }
|
|
2952
|
+
:root:has([data-iox-header-brand='hangs']) .iox-role-opening .iox-role-opening-words { padding-block-start: 0; }
|
|
2953
|
+
}
|
|
2954
|
+
@container iox-canvas (max-width: 767px) {
|
|
2955
|
+
[data-iox-header-shape] { --hdr-float-block: 6px; --hdr-float-inline: 10px; --hdr-float-pad: 16px; }
|
|
2956
|
+
[data-iox-header-brand='hangs'] .iox-role-nav-brand img { block-size: auto; max-block-size: 100%; margin-block-end: 0; }
|
|
2957
|
+
:root:has([data-iox-header-brand='hangs']) .iox-role-opening .iox-role-opening-words { padding-block-start: 0; }
|
|
2958
|
+
}
|
|
2959
|
+
/* HI3-D22 — the name arrives LATER: hidden by opacity only (the raw SSR and a screen reader keep it), shown once the page
|
|
2960
|
+
has moved, while a menu is open, or from the top on a page that opens without a picture. A transition on the look's
|
|
2961
|
+
dur-ui in and 0.6× out, so it turns around from the live value; reduced motion keeps the fade, motion Off is instant. */
|
|
2962
|
+
[data-iox-header-brand='later'] .iox-role-nav-brand {
|
|
2963
|
+
opacity: 0;
|
|
2964
|
+
transition: opacity calc(var(--iox-dur-ui, 200ms) * 0.6) var(--iox-ease-standard, ease-out);
|
|
2965
|
+
}
|
|
2966
|
+
:is([data-iox-scrolled] *)[data-iox-header-brand='later'] .iox-role-nav-brand,
|
|
2967
|
+
[data-iox-header-brand='later']:has(:is(dialog[open], [data-iox-menu-open])) .iox-role-nav-brand,
|
|
2968
|
+
[data-iox-header-brand='later']:not([data-iox-opening-media="picture"] *) .iox-role-nav-brand {
|
|
2969
|
+
opacity: 1;
|
|
2970
|
+
transition-duration: var(--iox-dur-ui, 200ms);
|
|
2971
|
+
}
|