@vectoriox/iox-ui 5.142.0 → 5.143.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.
Files changed (45) hide show
  1. package/composite-core/index.d.ts +40 -1
  2. package/design-core/index.d.ts +92 -27
  3. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +155 -90
  4. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-design-core.mjs +112 -27
  6. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-forms-core.mjs +61 -4
  8. package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +346 -155
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +461 -2
  12. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui.mjs +102 -19
  14. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  15. package/forms-core/index.d.ts +17 -3
  16. package/generation-core/index.d.ts +175 -5
  17. package/harness-core/index.d.ts +341 -2
  18. package/index.d.ts +24 -9
  19. package/package.json +1 -1
  20. package/src/composite-core/accordion.ts +16 -1
  21. package/src/composite-core/card.ts +22 -2
  22. package/src/composite-core/consent.ts +2 -2
  23. package/src/composite-core/recipe-parts.ts +7 -0
  24. package/src/composite-core/segmented.ts +17 -2
  25. package/src/composite-core/slider.ts +19 -3
  26. package/src/composite-core/tabs.ts +16 -1
  27. package/src/design-core/contrast-audit.ts +18 -0
  28. package/src/design-core/flavor-spec.generated.ts +71 -25
  29. package/src/design-core/locale-direction.ts +24 -0
  30. package/src/design-core/menu-look.ts +2 -1
  31. package/src/design-core/public-api.ts +1 -0
  32. package/src/forms-core/form-presets.ts +72 -3
  33. package/src/generation-core/compose-layout.ts +1 -1
  34. package/src/generation-core/compose-site.ts +50 -19
  35. package/src/generation-core/footer-mix.ts +8 -0
  36. package/src/generation-core/nav-shape.ts +3 -2
  37. package/src/generation-core/patterns.ts +4 -0
  38. package/src/generation-core/site-plan.model.ts +10 -2
  39. package/src/generation-core/site-spec.generated.ts +281 -131
  40. package/src/harness-core/business-types.ts +11 -0
  41. package/src/harness-core/film-idea.ts +178 -0
  42. package/src/harness-core/harness-spec.generated.ts +331 -0
  43. package/src/harness-core/intake.ts +8 -1
  44. package/src/harness-core/public-api.ts +1 -0
  45. package/styles/iox-design.css +44 -45
@@ -475,16 +475,18 @@ dialog[data-iox-dialog]:has(> .iox-dialog-close),
475
475
  padding-inline-end: max(var(--iox-dialog-pad, 0px), 48px);
476
476
  }
477
477
 
478
- /* A navigation's link lists (board 1): no underline at rest — the current page's link is the one
479
- underlined (the link's `current` state, link-current-decoration). Keyed on the list's ROLE, so a
480
- composed or adopted header and its drawer read it and no Link holds a literal over its element style.
478
+ /* A navigation's and a footer's link lists (board 1; vectoriox/iox-ui#87/#97 — a composed footer's page list carries role
479
+ footer.links): their place says they are links, so they rest at the BODY weight — a link in running text is told from
480
+ its words by `link-weight` (no line: reversed 2026-11-22, Doron). Hover is the link style's colour shift; the current
481
+ page reads by its ink and weight (the link's `current` state). Keyed on the list's ROLE, so a composed or adopted
482
+ header, its drawer and the footer read it and no Link holds a literal over its element style.
481
483
  HI1: the pages a menu header keeps in the bar (pinned) and its actions (a quiet link) are the bar's links too. */
482
484
  .iox-role-nav-links,
483
485
  .iox-role-nav-pinned,
484
486
  .iox-role-nav-actions,
485
- .iox-role-nav-drawer-links {
486
- --iox-link-decoration: none;
487
- --iox-link-underline-rest: 0;
487
+ .iox-role-nav-drawer-links,
488
+ .iox-role-footer-links {
489
+ --iox-link-weight: var(--iox-weight-body);
488
490
  }
489
491
 
490
492
  /* 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
@@ -866,11 +868,9 @@ dialog[data-iox-closing] [data-iox-menu-button='word'] > *,
866
868
  [data-iox-menu-button='word'] > * { transition-property: opacity; }
867
869
  }
868
870
 
869
- /* HOVER in the menu (mouse only — G1): a line draws under the page name (today's), the others dim, or the row lights up;
870
- `none` leaves the names still. The current page keeps its line whatever the hover. */
871
- :is(dialog, .dialog-surface):is([data-iox-menu-hover='dim'], [data-iox-menu-hover='row'], [data-iox-menu-hover='none']) .iox-role-nav-drawer-link.iox-es-link:not([aria-current='page']) {
872
- background-size: 0% var(--iox-link-underline-thickness, 1px);
873
- }
871
+ /* HOVER in the menu (mouse only — G1): the page name changes colour (`line` — the link style's own hover; no line is
872
+ drawn since 2026-11-22), the others dim, or the row lights up; `none`: nothing moves under the mouse — the name keeps
873
+ its resting colour. */
874
874
  :is(dialog, .dialog-surface)[data-iox-menu-hover='dim'] .iox-role-nav-drawer-link {
875
875
  transition: opacity var(--iox-dur-hover, 150ms) var(--iox-ease-hover, ease), color var(--iox-dur-hover, 150ms) var(--iox-ease-hover, ease);
876
876
  }
@@ -882,14 +882,14 @@ dialog[data-iox-closing] [data-iox-menu-button='word'] > *,
882
882
  :is(dialog, .dialog-surface)[data-iox-menu-hover='dim'] .iox-role-nav-drawer-links:has(.iox-role-nav-drawer-link:hover) .iox-role-nav-drawer-link:not(:hover) {
883
883
  opacity: 0.18;
884
884
  }
885
+ :is(dialog, .dialog-surface)[data-iox-menu-hover='none'] .iox-role-nav-drawer-link.iox-es-link:not([aria-current='page']):hover {
886
+ color: var(--iox-link-color);
887
+ }
885
888
  /* The row's light reaches past the words by its own shadow — nothing about the link's box moves. */
886
889
  :is(dialog, .dialog-surface)[data-iox-menu-hover='row'] .iox-role-nav-drawer-link:hover {
887
890
  background-color: color-mix(in srgb, currentColor 8%, transparent);
888
891
  box-shadow: 0 0 0 8px color-mix(in srgb, currentColor 8%, transparent);
889
892
  }
890
- :is(dialog, .dialog-surface):is([data-iox-menu-hover='dim'], [data-iox-menu-hover='row'], [data-iox-menu-hover='none']) .iox-role-nav-drawer-link.iox-es-link:not([aria-current='page']):hover {
891
- background-size: 0% var(--iox-link-underline-thickness, 1px);
892
- }
893
893
  }
894
894
 
895
895
  /* The BOTTOM BAR (board 2, "The CSS, exactly"): fixed to the bottom of the viewport (on the canvas, of the
@@ -1205,48 +1205,47 @@ span.iox-video__play { pointer-events: none; }
1205
1205
  }
1206
1206
  }
1207
1207
 
1208
- /* ── Premium components M4 (T3): a link's underline, drawn ──────────────────────────────────────────────────────────
1209
- An element-styled link draws its underline as a line in its own ink under its words, scaled along them from the
1210
- READING START (mirrored in RTL) — so it can grow on hover. `link-underline-rest` is how much shows at rest (1 in
1211
- running content; 0 in a navigation's lists, by their role): it grows on hover (hover devices only — G1), for keyboard
1212
- focus, and the current page's link holds its 2px accent line. The node's own text-decoration reads none here (the
1213
- two decoration tokens are re-declared), so a line is never drawn twice; a legacy link keeps its text-decoration.
1214
- A background line, so it follows the words onto a second line and needs no positioning (the canvas forces a node's
1215
- position); its growth is a background-size the shared compiler adds to the link's transition (withStateTransitions).
1216
- The colour and the line move on the hover timing — ≤150ms on `ease` (Emil 92). */
1208
+ /* ── A link: no line (premium M4's drawn underline REVERSED 2026-11-22 — Doron: "learn from the research you did on the
1209
+ award websites, there shouldn't be any underlines") ─────────────────────────────────────────────────────────────────
1210
+ An element-styled link draws no line — not at rest, not on hover or focus, not for the current page. The two decoration
1211
+ tokens are re-declared none here, so a studio still holding an underline row draws none either; a legacy link (no
1212
+ element style) keeps its text-decoration. It is told from running text by its WEIGHT (`link-weight`, WCAG 1.4.1 G182 —
1213
+ the element style writes it; this is the fallback for a link saved before it did) and its colour; hover is a colour
1214
+ shift on the hover timing (≤150ms on `ease`, hover devices only — G1, Emil 92); keyboard focus draws the look's ring. */
1217
1215
  .iox-es-link {
1218
1216
  --iox-link-decoration: none;
1219
1217
  --iox-link-current-decoration: none;
1220
1218
  --iox-dur-fast: var(--iox-dur-hover, 150ms);
1221
1219
  --iox-ease-standard: var(--iox-ease-hover, ease);
1222
- background-image: linear-gradient(currentColor, currentColor);
1223
- background-repeat: no-repeat;
1224
- background-position: 0% calc(100% - var(--iox-link-underline-offset, 0px));
1225
- background-size: calc(var(--iox-link-underline-rest, 1) * 100%) var(--iox-link-underline-thickness, 1px);
1226
- -webkit-box-decoration-break: clone;
1227
- box-decoration-break: clone;
1228
- }
1229
- .iox-es-link:dir(rtl) {
1230
- background-position-x: 100%;
1231
- }
1232
- @media (hover: hover) and (pointer: fine) {
1233
- .iox-es-link:hover {
1234
- background-size: 100% var(--iox-link-underline-thickness, 1px);
1235
- }
1220
+ text-decoration: none;
1221
+ font-weight: var(--iox-link-weight, var(--iox-weight-strong));
1222
+ /* vectoriox/iox-ui#87/#97: the box hugs its words — a Link is a block, and in a column (a footer's page list, a
1223
+ stretched flex item) it filled the column, so its hover and its focus ring ran under nothing. A width the author
1224
+ gives the link is the node's own rule and still wins; a long link still wraps (max 100%). */
1225
+ inline-size: fit-content;
1226
+ max-inline-size: 100%;
1236
1227
  }
1237
1228
  .iox-es-link:focus-visible {
1238
- background-size: 100% var(--iox-link-underline-thickness, 1px);
1229
+ outline: none;
1230
+ box-shadow: var(--iox-focus-ring);
1239
1231
  }
1240
- .iox-es-link[aria-current='page'] {
1241
- background-image: linear-gradient(var(--iox-link-current-underline, currentColor), var(--iox-link-current-underline, currentColor));
1242
- background-size: 100% var(--iox-link-current-underline-thickness, 2px);
1232
+ /* A link the words of a Text hold (rich text — a bare <a> inside an element-styled block) is a link in running text too:
1233
+ no line, the look's link colour and weight, the same colour shift on hover and the same ring on focus. */
1234
+ .iox-es:not(.iox-es-link) a:not([class]) {
1235
+ color: var(--iox-link-color);
1236
+ font-weight: var(--iox-link-weight, var(--iox-weight-strong));
1237
+ text-decoration: none;
1238
+ transition: color var(--iox-dur-hover, 150ms) var(--iox-ease-hover, ease);
1243
1239
  }
1244
- /* Reduced motion: the line appears and goes in place (it never travels); the colour still eases (Emil 192). */
1245
- @media (prefers-reduced-motion: reduce) {
1246
- .iox-es.iox-es-link {
1247
- transition-property: color;
1240
+ @media (hover: hover) and (pointer: fine) {
1241
+ .iox-es:not(.iox-es-link) a:not([class]):hover {
1242
+ color: var(--iox-link-hover-color);
1248
1243
  }
1249
1244
  }
1245
+ .iox-es:not(.iox-es-link) a:not([class]):focus-visible {
1246
+ outline: none;
1247
+ box-shadow: var(--iox-focus-ring);
1248
+ }
1250
1249
  /* A chip's colour moves on the hover timing too (Emil 92 — M3's review). */
1251
1250
  .iox-es-chip {
1252
1251
  --iox-dur-fast: var(--iox-dur-hover, 150ms);