@vectoriox/iox-ui 5.169.0 → 5.171.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.
@@ -783,8 +783,12 @@ function columnCapCss(cols: number, widthEm: number, fallback: string): string {
783
783
  */
784
784
  export function screenFontSize(
785
785
  widthEm: number, cols: number, rows: number, sectionRows: number, screens: number, columnPx: number | null = null, capAlways = false,
786
+ typeCap = true,
786
787
  ): string {
787
788
  const [min, max] = LAYOUT_SCREEN_PX;
789
+ // `typeCap` false (R-H-AW12-5, decided 2026-11-25: name-and-action's closing name stands edge to edge): no 560px ceiling
790
+ // — the word is sized to its column alone, never to a type scale; the 36px floor stays.
791
+ const clamped = (inner: string): string => (typeCap ? `clamp(${min}px, ${inner}, ${max}px)` : `max(${min}px, ${inner})`);
788
792
  const widthVw = round2((layoutColumnsVw(cols) / Math.max(widthEm, 0.01)) * SCREEN_FILL);
789
793
  // T-CW3: in a column the word never runs past its columns — capped at the column in force, read as `content-cap` (a
790
794
  // `%` in font-size is the parent's size, so never `content-width`), the page's word stamped as px its fallback.
@@ -795,9 +799,9 @@ export function screenFontSize(
795
799
  const room = cols >= GRID_COLUMNS ? [`calc((100vw - 2 * var(--iox-space-gutter, ${LEGACY_GUTTER_PX}px)) * ${round4(SCREEN_FILL / Math.max(widthEm, 0.01))})`] : [];
796
800
  const capFallback = columnPx ? `${columnPx}px` : capAlways ? WIDE_CAP : null;
797
801
  const width = [`${widthVw}vw`, ...(capFallback ? [columnCapCss(cols, widthEm, capFallback)] : []), ...room];
798
- if (!rows || !sectionRows) return width.length > 1 ? `clamp(${min}px, min(${width.join(', ')}), ${max}px)` : `clamp(${min}px, ${widthVw}vw, ${max}px)`;
802
+ if (!rows || !sectionRows) return clamped(width.length > 1 ? `min(${width.join(', ')})` : `${widthVw}vw`);
799
803
  const heightSvh = round2((((rows / sectionRows) * screens * 100) / 0.92) * SCREEN_FILL);
800
- return `clamp(${min}px, min(${[...width, `${heightSvh}svh`].join(', ')}), ${max}px)`;
804
+ return clamped(`min(${[...width, `${heightSvh}svh`].join(', ')})`);
801
805
  }
802
806
 
803
807
  /** How many px a `screen` word `widthEm` wide runs past its room at its smallest size, on a screen `width` px wide — 0
@@ -2647,6 +2647,14 @@ dialog[data-iox-dialog].iox-es.iox-role-shop-cart-drawer:is([data-iox-closing],
2647
2647
  margin-block-end: calc(-1 * var(--iox-footer-name-cut, 0.12em));
2648
2648
  }
2649
2649
 
2650
+ /* R-H-AW12-5 — the closing name wears its face's LARGEST optical size at any size: the composer sizes it from the widths
2651
+ measured there (fontMetrics.display), so it reaches its column's end edge. A value past the axis is clamped to the axis's
2652
+ largest; a face with no optical-size axis ignores it. */
2653
+ :is(.iox-role-footer-name, .iox-role-footer-name-copy) {
2654
+ font-optical-sizing: none;
2655
+ font-variation-settings: 'opsz' 1000;
2656
+ }
2657
+
2650
2658
  /* nameStyle (AW12-D12) — how the closing name is worn. A gradient or embossed name is a decorative copy (aria-hidden — the
2651
2659
  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. */
2652
2660
  .iox-footer-namestyle-gradient :is(.iox-role-footer-name, .iox-role-footer-name-copy) {