@vectoriox/iox-ui 5.205.0 → 5.206.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/data-core/index.d.ts +13 -4
- package/design-core/index.d.ts +269 -6
- package/fesm2022/vectoriox-iox-ui-data-core.mjs +23 -4
- package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +3064 -2682
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1159 -172
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +71 -19
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs +32 -4
- package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
- package/generation-core/index.d.ts +411 -34
- package/harness-core/index.d.ts +52 -12
- package/package.json +1 -1
- package/scene-core/index.d.ts +16 -2
- package/src/data-core/placeholder-rows.ts +24 -3
- package/src/design-core/colour-eval.ts +22 -0
- package/src/design-core/contrast-audit.ts +96 -2
- package/src/design-core/design-token.model.ts +2 -0
- package/src/design-core/flavor-spec.generated.ts +184 -0
- package/src/design-core/font-metrics.ts +14 -1
- package/src/design-core/font-vertical.ts +80 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/design-core/style-presets.ts +20 -1
- package/src/design-core/token-css.ts +3 -1
- package/src/generation-core/audit-site.ts +5 -3
- package/src/generation-core/compose-free.ts +1 -1
- package/src/generation-core/compose-layout.ts +172 -22
- package/src/generation-core/critic-calibration.ts +26 -9
- package/src/generation-core/critic-numbers.ts +259 -0
- package/src/generation-core/critic-prompt.ts +53 -6
- package/src/generation-core/critic-rubric.generated.ts +6 -6
- package/src/generation-core/critic-sheet.ts +112 -1
- package/src/generation-core/layout-render-check.ts +35 -2
- package/src/generation-core/nav-shape.ts +67 -8
- package/src/generation-core/opening-mix.ts +61 -17
- package/src/generation-core/public-api.ts +2 -0
- package/src/generation-core/social-links.ts +47 -8
- package/src/generation-core/stock-photos.ts +149 -14
- package/src/generation-core/stock-search.ts +108 -19
- package/src/generation-core/stock-subjects.ts +204 -0
- package/src/harness-core/business-types.ts +3 -0
- package/src/harness-core/harness-spec.generated.ts +54 -15
- package/src/harness-core/intake.ts +18 -5
- package/src/scene-core/scene.ts +34 -3
- package/styles/iox-design.css +41 -2
- package/styles/iox-forms.css +7 -6
package/styles/iox-design.css
CHANGED
|
@@ -2539,9 +2539,43 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
2539
2539
|
directions; the stylesheet holds the inline side and the two motions, in logical insets, so a Hebrew site mirrors.
|
|
2540
2540
|
Two classes, so it holds over the parts' own rules (one class each). */
|
|
2541
2541
|
.iox-role-opening :is(.iox-role-opening-badge, .iox-role-opening-card, .iox-role-opening-cue) { inset-inline-end: 4%; }
|
|
2542
|
+
/* iox-ui#196: the cue is as wide as its words and keeps the same 4% on its start side — a cue saved at a Text's own 100%
|
|
2543
|
+
started 4% off the screen (the hotel's caption at x −58, the salon's "תל אביב" past the right edge at 390). */
|
|
2544
|
+
.iox-role-opening .iox-role-opening-cue { width: auto; max-width: 92%; }
|
|
2542
2545
|
/* A display line is one line on a laptop (sized by its measured width) and wraps between words on a phone — never inside
|
|
2543
2546
|
a word, never cut by the screen (R-H6). */
|
|
2544
2547
|
.iox-role-opening .iox-role-opening-words .iox-role-opening-title { text-wrap: balance; overflow-wrap: normal; }
|
|
2548
|
+
/* vectoriox/iox-ui#211: words that stand OVER the opening's scrim layer (a sibling after it — on the edge, a wordmark,
|
|
2549
|
+
behind, apart, the aside and the scroll cue) read the scrim's fixed ink, as the words a scrim block HOLDS do (the contract's
|
|
2550
|
+
`inkScopes` for `media-scrim`). They used to read their frame's scheme: a pictured frame wears Inverse, which is a DARK
|
|
2551
|
+
ground in a light look and a LIGHT one in a dark look, so in a dark look (pro-ceramics, Midnight) the name was near-black
|
|
2552
|
+
on the dark wash, 1.88:1 on a laptop and 1.33:1 on a phone. Three classes, so it holds over a box's own `color:
|
|
2553
|
+
inherit` (two). The gate reads the same list (design-core `SCRIM_LAYER_WORD_ROLES`, pinned to this rule by a spec). */
|
|
2554
|
+
.iox-role-opening .iox-role-opening-scrim ~ :is(.iox-role-opening-words, .iox-role-opening-apart, .iox-role-opening-aside, .iox-role-opening-cue) {
|
|
2555
|
+
color: var(--iox-media-scrim-ink);
|
|
2556
|
+
--iox-heading-color: currentColor;
|
|
2557
|
+
--iox-eyebrow-color: currentColor;
|
|
2558
|
+
--iox-text-muted: currentColor;
|
|
2559
|
+
--iox-link-color: currentColor;
|
|
2560
|
+
--iox-link-hover-color: currentColor;
|
|
2561
|
+
--iox-icon-color: currentColor;
|
|
2562
|
+
--iox-button-ghost-ink: currentColor;
|
|
2563
|
+
}
|
|
2564
|
+
/* vectoriox/iox-ui#212: and they stand on the scrim wherever they are. The layer is a top-down gradient from `transparent`,
|
|
2565
|
+
so words at its top (the edge's aside) or high on a phone stood on the bare picture — pro-store's line 4.26:1. Each block
|
|
2566
|
+
lays the scrim under itself as a soft cloud: it reaches 40px past the box and blurs by half that, so the box's own edge
|
|
2567
|
+
still holds ~98% of it and it is gone a little further out — the wash, never a panel. Under every word the picture is
|
|
2568
|
+
dimmed at least as much as by the scrim itself: what the gate judges (`scrimFindings`, the scrim's ink over the scrim).
|
|
2569
|
+
The block is positioned with z-index 1 (its own stacking context), so the cloud stays under its words, over the picture. */
|
|
2570
|
+
.iox-role-opening .iox-role-opening-scrim ~ :is(.iox-role-opening-words, .iox-role-opening-apart, .iox-role-opening-aside, .iox-role-opening-cue)::before {
|
|
2571
|
+
content: '';
|
|
2572
|
+
position: absolute;
|
|
2573
|
+
inset: -40px;
|
|
2574
|
+
z-index: -1;
|
|
2575
|
+
pointer-events: none;
|
|
2576
|
+
background: var(--iox-media-scrim);
|
|
2577
|
+
filter: blur(20px);
|
|
2578
|
+
}
|
|
2545
2579
|
/* On a phone the card leaves the picture's corner and follows the words (board 4), and two pictures become one: the
|
|
2546
2580
|
second leaves. The node holds that hide too (`resp.mobile`), but an Image's own component rule (`display: block`, one
|
|
2547
2581
|
attribute) comes after the layout's styles on the engine and wins the tie — vectoriox/iox-ui#104 — so the two classes
|
|
@@ -2951,14 +2985,19 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
2951
2985
|
--hdr-border: var(--iox-nav-border);
|
|
2952
2986
|
--hdr-shadow: var(--iox-nav-shadow);
|
|
2953
2987
|
}
|
|
2988
|
+
/* iox-ui#210 (all six Pro sites, 2026-12-01): the pill's bar is inset by `--hdr-float-block` — so the header's own block
|
|
2989
|
+
padding must be that inset PLUS the bar's inner air (`--hdr-float-pad-block`), or the name sits on the bar's top edge and
|
|
2990
|
+
the button on its bottom (the bar and the content box were one height; a 390 hotel bar 16.5 px around a 17 px name). */
|
|
2954
2991
|
[data-iox-header-shape] {
|
|
2955
2992
|
--hdr-float-block: 8px;
|
|
2956
2993
|
--hdr-float-inline: max(24px, calc((100% - var(--iox-content-width, 100%)) / 2));
|
|
2957
2994
|
--hdr-float-pad: 28px;
|
|
2995
|
+
--hdr-float-pad-block: 10px;
|
|
2958
2996
|
--hdr-float-radius: var(--iox-button-radius, 999px);
|
|
2959
2997
|
padding-block: var(--hdr-float-block) !important;
|
|
2960
2998
|
}
|
|
2961
2999
|
[data-iox-header-shape='pill'] {
|
|
3000
|
+
padding-block: calc(var(--hdr-float-block) + var(--hdr-float-pad-block)) !important;
|
|
2962
3001
|
padding-inline: calc(var(--hdr-float-inline) + var(--hdr-float-pad)) !important;
|
|
2963
3002
|
}
|
|
2964
3003
|
[data-iox-header-shape='pill']::before {
|
|
@@ -3019,12 +3058,12 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
3019
3058
|
}
|
|
3020
3059
|
/* On a phone the name fits (HI3-D23): a hanging logo would cover the heading on a narrow screen. */
|
|
3021
3060
|
@media (max-width: 767px) {
|
|
3022
|
-
[data-iox-header-shape] { --hdr-float-block: 6px; --hdr-float-inline: 10px; --hdr-float-pad: 16px; }
|
|
3061
|
+
[data-iox-header-shape] { --hdr-float-block: 6px; --hdr-float-inline: 10px; --hdr-float-pad: 16px; --hdr-float-pad-block: 8px; }
|
|
3023
3062
|
[data-iox-header-brand='hangs'] .iox-role-nav-brand img { block-size: auto; max-block-size: 100%; margin-block-end: 0; }
|
|
3024
3063
|
:root:has([data-iox-header-brand='hangs']) .iox-role-opening .iox-role-opening-words { padding-block-start: 0; }
|
|
3025
3064
|
}
|
|
3026
3065
|
@container iox-canvas (max-width: 767px) {
|
|
3027
|
-
[data-iox-header-shape] { --hdr-float-block: 6px; --hdr-float-inline: 10px; --hdr-float-pad: 16px; }
|
|
3066
|
+
[data-iox-header-shape] { --hdr-float-block: 6px; --hdr-float-inline: 10px; --hdr-float-pad: 16px; --hdr-float-pad-block: 8px; }
|
|
3028
3067
|
[data-iox-header-brand='hangs'] .iox-role-nav-brand img { block-size: auto; max-block-size: 100%; margin-block-end: 0; }
|
|
3029
3068
|
:root:has([data-iox-header-brand='hangs']) .iox-role-opening .iox-role-opening-words { padding-block-start: 0; }
|
|
3030
3069
|
}
|
package/styles/iox-forms.css
CHANGED
|
@@ -74,8 +74,9 @@
|
|
|
74
74
|
button side by side on a laptop, the way 8pm / Vonder / Atticus Finch sign up. The preset puts the consent tick FIRST,
|
|
75
75
|
so every part is drawn in the DOM's order and the keyboard meets them as the eye does (WCAG 2.4.3): the tick, then the
|
|
76
76
|
row, then the legal line and the answer blocks. Nothing here sets `order`.
|
|
77
|
-
It STACKS on a phone, and in any column narrower than about
|
|
78
|
-
|
|
77
|
+
It STACKS on a phone, and in any column narrower than about 44ch — room for an email box of about 24ch beside its
|
|
78
|
+
button (iox-ui#208: at 28ch the hotel's 255px footer column put a 96px box, "you@co", beside a 143px button): the email box and the button share the "albatross"
|
|
79
|
+
basis `(44ch - 100%) * 999` — negative (so 0, and they share the row) when the form is wider than 44ch, enormous (so
|
|
79
80
|
each takes a whole row) when it is narrower. No query on the form's own width is needed, so the footer column, the
|
|
80
81
|
popup and the builder's frame all get it from the one rule. Only an email box straight before the button makes the
|
|
81
82
|
row — a form saved in another order simply stacks.
|
|
@@ -95,19 +96,19 @@
|
|
|
95
96
|
min-inline-size: 0;
|
|
96
97
|
}
|
|
97
98
|
.iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]):has(+ .iox-submit) {
|
|
98
|
-
flex: 1 1 calc((
|
|
99
|
+
flex: 1 1 calc((44ch - 100%) * 999);
|
|
99
100
|
}
|
|
100
101
|
.iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]) > .iox-field__label {
|
|
101
102
|
line-height: 1.5;
|
|
102
103
|
}
|
|
103
104
|
.iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]) + .iox-submit {
|
|
104
|
-
flex: 0 1 calc((
|
|
105
|
+
flex: 0 1 calc((44ch - 100%) * 999);
|
|
105
106
|
min-inline-size: auto;
|
|
106
107
|
white-space: nowrap;
|
|
107
|
-
margin-block-start: clamp(0px, (100% -
|
|
108
|
+
margin-block-start: clamp(0px, (100% - 44ch) * 999, 1.5em);
|
|
108
109
|
}
|
|
109
110
|
.iox-form[data-iox-form^="newsletter-"] > .iox-es-field:has(input[type="email"]) + .iox-submit {
|
|
110
|
-
margin-block-start: clamp(0px, (100% -
|
|
111
|
+
margin-block-start: clamp(0px, (100% - 44ch) * 999, var(--iox-field-label-size) * 1.5);
|
|
111
112
|
}
|
|
112
113
|
.iox-form[data-iox-form^="newsletter-"] > .iox-field:has(input[type="email"]):has(> .iox-field__label--hidden) + .iox-submit {
|
|
113
114
|
margin-block-start: 0;
|