@vectoriox/iox-ui 5.167.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.
@@ -2,6 +2,7 @@ import { ComposedPlaceholder, ComposeIssue, ComposeIssueCode } from './compose-s
2
2
  import { GenerationTier, SitePlan, SitePlanSource } from './site-plan.model';
3
3
  import { SitePlanIssueCode } from './validate-site-plan';
4
4
  import { planSells } from './shop-plan';
5
+ import type { TypeLed } from './type-led';
5
6
 
6
7
  /**
7
8
  * A site build's WIRE vocabulary (AI plan §3b, W2): what iox-cms's `site-builds` API answers and what every
@@ -188,6 +189,10 @@ export enum BuildNoticeCode {
188
189
  /** AW6: the body the plan asked for was mended (a section edge that comes with the award plan, on a basic build) —
189
190
  * said like the header's, the opening's and the footer's. */
190
191
  BodyMended = 'body-mended',
192
+ /** iox-ui#129: pictures nothing fills were not drawn as empty boxes — those sections were composed type-led (the home
193
+ * page opening on its words, a list's cards without their picture). Said once, so the owner knows a photo of theirs
194
+ * brings the picture-led section back (a Re-fit, or the next build). */
195
+ TypeLed = 'type-led',
191
196
  }
192
197
 
193
198
  /** RD3-D3 (a): what a build does with a page an earlier Undo kept at an address its plan builds — the header and footer's
@@ -245,6 +250,13 @@ export function mendNotices(issues: ReadonlyArray<ComposeIssue>): BuildNotice[]
245
250
  });
246
251
  }
247
252
 
253
+ /** iox-ui#129: what a composition made type-led, said once (`BuildNoticeCode.TypeLed`) — every change's words joined,
254
+ * for the log and the API; the screen shows the code's own sentence. Nothing type-led: nothing said. */
255
+ export function typeLedNotices(typeLed: Pick<TypeLed, 'changes'> | undefined): BuildNotice[] {
256
+ const said = [...new Set((typeLed?.changes ?? []).map(c => c.said))];
257
+ return said.length ? [{ code: BuildNoticeCode.TypeLed, detail: said.join('; ') }] : [];
258
+ }
259
+
248
260
  export interface BuildNotice {
249
261
  code: string;
250
262
  detail: string;
@@ -10814,12 +10814,7 @@ export const SPEC_SITE_LAYOUT = {
10814
10814
  "art.none": "בלי תמונה",
10815
10815
  "art.picture": "התמונה של העסק בתחילת הכרטיס"
10816
10816
  },
10817
- "waits": {
10818
- "arrive.leaving": {
10819
- "phase": "PU2b",
10820
- "drawnAs": "time"
10821
- }
10822
- },
10817
+ "waits": {},
10823
10818
  "defaults": {
10824
10819
  "kind": "offer",
10825
10820
  "form": "corner",
@@ -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), and the price is sized to the room it has — what is left of half the list (50cqi of the
1884
- `iox-list` container, less half the gap and the card's two half paddings) over the ~5.2em an eleven-glyph price stands
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
- .iox-role-footer-ruled > * {
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);