@vectoriox/iox-ui 5.168.0 → 5.169.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/commerce-core/index.d.ts +32 -3
- package/design-core/index.d.ts +55 -4
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +52 -1
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +87 -8
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +62 -4
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +30 -5
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +33 -3
- package/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/commerce-core/shop-display.ts +35 -1
- package/src/commerce-core/variants.ts +25 -0
- package/src/design-core/footer-classes.ts +14 -3
- package/src/design-core/header-behaviour.ts +87 -5
- package/src/generation-core/compose-site.ts +3 -0
- package/src/generation-core/contact-facts.ts +61 -0
- package/src/generation-core/footer-mix.ts +7 -3
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-build-run.ts +12 -0
- package/styles/iox-design.css +45 -8
package/styles/iox-design.css
CHANGED
|
@@ -573,6 +573,30 @@ dialog[data-iox-dialog]:has(> .iox-dialog-close),
|
|
|
573
573
|
.iox-role-nav :is(.iox-role-nav-brand[data-iox-name='longest'], .iox-role-nav-brand > [data-iox-name='longest']) :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-small); }
|
|
574
574
|
}
|
|
575
575
|
|
|
576
|
+
/* vectoriox/iox-ui#143 — a CROWDED phone bar: three controls or more beside the name (a store's account and bag beside the
|
|
577
|
+
menu). The name's own step (`data-iox-name`) counts its characters and cannot see its neighbours: on a 390 store header
|
|
578
|
+
"Homeware shop in Tel Aviv" kept 77px at `size-lead` and broke inside "Homeware". The navigation root says the bar is
|
|
579
|
+
crowded (design-core `navBarAttributes`): an empty side cell gives back its gap, the controls sit at a quarter of the
|
|
580
|
+
look's gap, a worded menu button keeps half the gap on each side (still well over a 44px target), and the name takes the
|
|
581
|
+
crowded step (`data-iox-bar-name`) — never larger type than its own step (equal specificity, written after it).
|
|
582
|
+
Both carriers, as for the brand (#135): the attribute on the role's element or on its direct child. */
|
|
583
|
+
@media (max-width: 767px) {
|
|
584
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell:empty { display: none; }
|
|
585
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell { column-gap: calc(var(--iox-space-gap) / 4); }
|
|
586
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-menu-button[data-iox-menu-button='word'] { padding-inline: calc(var(--iox-space-gap) / 2); }
|
|
587
|
+
:is(.iox-role-nav[data-iox-bar-name='long'], .iox-role-nav > [data-iox-bar-name='long']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-lead); }
|
|
588
|
+
:is(.iox-role-nav[data-iox-bar-name='longer'], .iox-role-nav > [data-iox-bar-name='longer']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-body); }
|
|
589
|
+
:is(.iox-role-nav[data-iox-bar-name='longest'], .iox-role-nav > [data-iox-bar-name='longest']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-small); }
|
|
590
|
+
}
|
|
591
|
+
@container iox-canvas (max-width: 767px) {
|
|
592
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell:empty { display: none; }
|
|
593
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-cell { column-gap: calc(var(--iox-space-gap) / 4); }
|
|
594
|
+
:is(.iox-role-nav[data-iox-bar='crowded'], .iox-role-nav > [data-iox-bar='crowded']) .iox-role-nav-menu-button[data-iox-menu-button='word'] { padding-inline: calc(var(--iox-space-gap) / 2); }
|
|
595
|
+
:is(.iox-role-nav[data-iox-bar-name='long'], .iox-role-nav > [data-iox-bar-name='long']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-lead); }
|
|
596
|
+
:is(.iox-role-nav[data-iox-bar-name='longer'], .iox-role-nav > [data-iox-bar-name='longer']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-body); }
|
|
597
|
+
:is(.iox-role-nav[data-iox-bar-name='longest'], .iox-role-nav > [data-iox-bar-name='longest']) .iox-role-nav-brand :is(h1, h2, h3, h4, h5, h6, p) { font-size: var(--iox-size-small); }
|
|
598
|
+
}
|
|
599
|
+
|
|
576
600
|
/* ── Header ingredients HI2a: the MENU's forms, reveals, buttons and hover (header-builder board v2, HB-D1/HB-D2) ─────────
|
|
577
601
|
A menu is the navigation's drawer Dialog wearing design-core `menuDialogAttributes`; its button and its Close wear
|
|
578
602
|
`menuButtonAttributes`. A menu with none of them is the drawer it always was (R-H4). Board 2: only transform, opacity,
|
|
@@ -1880,20 +1904,28 @@ span.iox-video__play { pointer-events: none; }
|
|
|
1880
1904
|
A product's price is one unbreakable line (the money pipe joins number and currency with a no-break space) at the price
|
|
1881
1905
|
style's heading size, inside a card padded as a full-width one: at 320 a half tile kept 46px for its words, and the
|
|
1882
1906
|
price ran 9px past its card at 390, 24 at 360, the ₪ cut by the card's clip (vectoriox/iox-ui#127). In a half tile a
|
|
1883
|
-
card that sells keeps half its padding (only it: a turned or colour-block card keeps its own)
|
|
1884
|
-
|
|
1885
|
-
(`1,249.00 ₪`) — never above the lead size, never under the small one. */
|
|
1907
|
+
card that sells keeps half its padding (only it: a turned or colour-block card keeps its own). The price itself is sized
|
|
1908
|
+
against its CARD (below), so a list with no arrangement word steps it too. */
|
|
1886
1909
|
@container iox-list (max-width: 640px) {
|
|
1887
1910
|
:is(.iox-role-list-grid-two, .iox-role-list-tilted-two, .iox-role-list-grid-two > .repeater-wrapper, .iox-role-list-tilted-two > .repeater-wrapper) > .repeater-root .iox-role-card-title { font-size: var(--iox-size-lead); }
|
|
1888
1911
|
:is(.iox-role-list-grid-two, .iox-role-list-tilted-two, .iox-role-list-grid-two > .repeater-wrapper, .iox-role-list-tilted-two > .repeater-wrapper) > .repeater-root .iox-role-card:has(.iox-role-shop-price-amount) { padding: calc(var(--iox-card-pad) / 2); }
|
|
1889
|
-
:is(.iox-role-list-grid-two, .iox-role-list-tilted-two, .iox-role-list-grid-two > .repeater-wrapper, .iox-role-list-tilted-two > .repeater-wrapper) > .repeater-root .iox-role-shop-price-amount { font-size: clamp(var(--iox-size-small), calc((50cqi - var(--iox-space-gap) / 2 - var(--iox-card-pad)) * 0.19), var(--iox-size-lead)); }
|
|
1890
1912
|
}
|
|
1891
1913
|
@container iox-strips (max-width: 640px) {
|
|
1892
1914
|
:is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root .iox-role-card-title { font-size: var(--iox-size-lead); }
|
|
1893
1915
|
:is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root .iox-role-card:has(.iox-role-shop-price-amount) { padding: calc(var(--iox-card-pad) / 2); }
|
|
1894
|
-
:is(.iox-role-list-strips-two, .iox-role-list-strips-two > .repeater-wrapper) > .repeater-root .iox-role-shop-price-amount { font-size: clamp(var(--iox-size-small), calc((50cqi - var(--iox-space-gap) / 2 - var(--iox-card-pad)) * 0.19), var(--iox-size-lead)); }
|
|
1895
1916
|
}
|
|
1896
1917
|
|
|
1918
|
+
/* vectoriox/iox-ui#127: a card that sells is the container its price measures. A two-across list made by its own stored
|
|
1919
|
+
grid (an older build, a list placed by hand) carries no arrangement word and no `iox-list` container, so a step written
|
|
1920
|
+
against the list never reached it and the price ran 9px past a 163px card at 390, 24 at 360, the ₪ cut. Against the
|
|
1921
|
+
CARD it reaches every narrow card that sells: once the card's content box is under 220px (a half tile on any phone; a
|
|
1922
|
+
one-across card keeps its own size down to 320) the price is sized to that box (100cqi) over the ~5.2em an eleven-glyph
|
|
1923
|
+
price stands (`1,249.00 ₪`) — never above the lead size, never under the small one. "From ₪89.00" (#142) breaks at its
|
|
1924
|
+
space. The card's own width comes from its cell (Card v2 is `width: 100%`), so inline-size containment changes no size. */
|
|
1925
|
+
.iox-role-card:has(.iox-role-shop-price-amount) { container: iox-price-card / inline-size; }
|
|
1926
|
+
@container iox-price-card (max-width: 220px) {
|
|
1927
|
+
.iox-role-card .iox-role-shop-price-amount { font-size: clamp(var(--iox-size-small), calc(100cqi * 0.19), var(--iox-size-lead)); }
|
|
1928
|
+
}
|
|
1897
1929
|
|
|
1898
1930
|
/* ITEM WORDS — what each item is, carried by the frame (`iox-list-item-<word>`). */
|
|
1899
1931
|
/* Packshot: the thing on the look's plain tile (`list-tile`), whole (never cropped), grown 6% under a mouse. */
|
|
@@ -2577,8 +2609,10 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
2577
2609
|
|
|
2578
2610
|
/* arrange:ruled — cells divided by hairlines in the divider's colour, drawn on the cell's START side (logical: a
|
|
2579
2611
|
right-to-left footer mirrors by itself). The first cell of each row draws none and pads none, so the footer's words start
|
|
2580
|
-
on the column (R-H-AW12-2): four cells a row on a laptop, two on a tablet, one under another on a phone (a top line).
|
|
2581
|
-
|
|
2612
|
+
on the column (R-H-AW12-2): four cells a row on a laptop, two on a tablet, one under another on a phone (a top line).
|
|
2613
|
+
`:nth-child(n)`, never `> *`: a cell's own node rule (`.iox-node-<id>`, its border and padding literals) is one class
|
|
2614
|
+
and comes later, so a one-class rule here lost on a laptop and the cells drew no hairline (e2e:footerproof). */
|
|
2615
|
+
.iox-role-footer-ruled > :nth-child(n) {
|
|
2582
2616
|
border-inline-start: var(--iox-border-width, 1px) solid var(--iox-divider-color);
|
|
2583
2617
|
padding-inline: var(--iox-space-gap);
|
|
2584
2618
|
}
|
|
@@ -2616,11 +2650,14 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
|
|
|
2616
2650
|
/* nameStyle (AW12-D12) — how the closing name is worn. A gradient or embossed name is a decorative copy (aria-hidden — the
|
|
2617
2651
|
brand block says the name), so its stops may be quieter than a word's; each stop is the scheme's own ink or accent. */
|
|
2618
2652
|
.iox-footer-namestyle-gradient :is(.iox-role-footer-name, .iox-role-footer-name-copy) {
|
|
2619
|
-
background-image: linear-gradient(90deg, var(--iox-heading-color, currentColor), var(--iox-accent-text));
|
|
2653
|
+
background-image: linear-gradient(var(--footer-name-turn, 90deg), var(--iox-heading-color, currentColor), var(--iox-accent-text));
|
|
2620
2654
|
-webkit-background-clip: text;
|
|
2621
2655
|
background-clip: text;
|
|
2622
2656
|
color: transparent;
|
|
2623
2657
|
}
|
|
2658
|
+
/* A right-to-left footer (design-core `iox-footer-mirrored`, from the node's own direction) runs the gradient from the
|
|
2659
|
+
reading start: ink at the start, the accent at the end, in both directions. */
|
|
2660
|
+
.iox-footer-mirrored { --footer-name-turn: 270deg; }
|
|
2624
2661
|
.iox-footer-namestyle-emboss :is(.iox-role-footer-name, .iox-role-footer-name-copy) {
|
|
2625
2662
|
color: color-mix(in srgb, var(--iox-section-bg) 86%, var(--iox-text));
|
|
2626
2663
|
text-shadow: 0 1px 0 color-mix(in srgb, var(--iox-text) 22%, transparent), 0 -1px 0 color-mix(in srgb, var(--iox-section-bg) 70%, transparent);
|