@vectoriox/iox-ui 5.169.0 → 5.170.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.
@@ -1,4 +1,4 @@
1
- import { localeDirection, LocaleDirection, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, ScrubId, isScrubId, columnWordOf, contentWidthOf, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, toHexColor, relativeLuminance, sectionEdgeClass, SECTION_EDGE_TYPES, colorSchemeOf, planSectionShape, SectionShape, setSectionShape, sectionShapeOf, setSectionEdge, resolveTokenValues, designTokenRows, parseCssColour, scrubOfChoices, parseHexColor, rgbToOklab, FOOTER_MIX_PROP, SECTION_SHAPE_TRAIT, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, HeaderTrait, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, decomposeCssFunctions, FILTER_FUNCTIONS, wcagContrastRatio, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, setColorScheme, LIST_MIX_PROP, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan, headerInkOf, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, readDesignConfig, ANIMATE_IDS, auditDesignContrast, compositeOver, HeaderBehaviour, headerBehaviourOf, headerEdgeOf, COLUMN_IDS, COLUMN_SETTING } from '@vectoriox/iox-ui/design-core';
1
+ import { localeDirection, LocaleDirection, NEW_NODE_STYLE_DEFAULTS, defaultElementStyleFor, elementStyleById, ownedTraitsOf, applyElementStyle, SPEC_AXES, QUIET_MOVE, QUIET_LEVELS, EntranceParam, staggerDelay, ScrubId, isScrubId, columnWordOf, contentWidthOf, stylePresetOfChoices, resolveDesignChoices, presetModes, STYLE_PRESETS, presetChoices, textWidthEm, elementStyleFace, toHexColor, relativeLuminance, sectionEdgeClass, SECTION_EDGE_TYPES, colorSchemeOf, planSectionShape, SectionShape, setSectionShape, sectionShapeOf, setSectionEdge, resolveTokenValues, designTokenRows, parseCssColour, scrubOfChoices, parseHexColor, rgbToOklab, OpticalSize, FOOTER_MIX_PROP, SECTION_SHAPE_TRAIT, LinkType, MenuTrait, menuDialogProps, MenuButtonKind, menuButtonOf, menuButtonProps, HeaderTrait, menuFormOf, MenuForm, MenuPhoneForm, menuHoverOf, menuRevealOf, decomposeCssFunctions, FILTER_FUNCTIONS, wcagContrastRatio, flavorPackById, ARRIVE_IDS, MOVE_IDS, PRELOADER_IDS, SCRUB_IDS, setColorScheme, LIST_MIX_PROP, ColorScheme, COLOR_SCHEMES, motionLanguageForPlan, headerInkOf, DEFAULT_MENU_LOOK, COLOR_SCHEME_TRAIT, colorSchemeClass, readDesignConfig, ANIMATE_IDS, auditDesignContrast, compositeOver, HeaderBehaviour, headerBehaviourOf, headerEdgeOf, COLUMN_IDS, COLUMN_SETTING } from '@vectoriox/iox-ui/design-core';
2
2
  export { HeaderInk } from '@vectoriox/iox-ui/design-core';
3
3
  import { SLIDER_TYPE, badgeToneOf, isAnyCompositeRoot, MarqueeRole, NO_ELEMENT_STYLE, ShopRole, AccountRole, pickTabsAutoBinds, pickAccordionAutoBinds, CardPart, SceneRole, SLIDER_PLACEMENT_TRAIT, SliderPlacement, syncSliderParts, SliderRole, CardLayout, buildCardRecipe, findByRole, CardRole, SHOP_RECIPES, ShopRecipe, bindShopPart, ShopBindTarget, MarqueeDirection, MarqueeSpeed, buildMarqueeRecipe, setMarqueeSettings, segmentedOptions, ITEM_OPEN_STATE, CARD_LAYOUTS, CARD_PARTS, BADGE_TONES, buildSegmentedRecipe, AccordionRole, buildAccordionRecipe, accordionWords, accordionItems, accordionQuestionOf, accordionAnswerOf, ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, buildTabsRecipe, tabsWords, tabsTriggers, tabLabelNodeOf, TABS_LABEL_BIND_PROP, tabsPanels, tabPanelTextOf, TABS_TEXT_BIND_PROP, tabPanelImageOf, tabsListOf, tabsPanelsOf, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, ACCOUNT_RECIPES, AccountRecipe, buildCarouselRecipe, SLIDE_TYPE, buildSlideshowRecipe, buildLightboxRecipe, LIGHTBOX_LABEL, SLIDE_TO_ROW, setHeaderBehaviour, setHeaderInk, buildConsentRecipe, ConsentActionType } from '@vectoriox/iox-ui/composite-core';
4
4
  import { formPresetById, ControlType, FIELD_NODE_TYPE, FORM_NODE_TYPE, FormPresetId, FormAfterSend, FORM_AFTER_SEND_TRAIT, FORM_ACTIONS_ROLE, channelOpensNewTab, FORM_CHANNEL_ROLE, presetFormActions, planFormPresetIds, collectFormSpec, isChannelFilled } from '@vectoriox/iox-ui/forms-core';
@@ -19038,8 +19038,11 @@ function columnCapCss(cols, widthEm, fallback) {
19038
19038
  * own face (design-core `textWidthEm`, from the face's measured letters) — and never stands taller than its rows; never
19039
19039
  * under 36px or over 560px. `rows` 0 sizes by width alone (a phone's stacked word). Held sections are one screen tall.
19040
19040
  */
19041
- function screenFontSize(widthEm, cols, rows, sectionRows, screens, columnPx = null, capAlways = false) {
19041
+ function screenFontSize(widthEm, cols, rows, sectionRows, screens, columnPx = null, capAlways = false, typeCap = true) {
19042
19042
  const [min, max] = LAYOUT_SCREEN_PX;
19043
+ // `typeCap` false (R-H-AW12-5, decided 2026-11-25: name-and-action's closing name stands edge to edge): no 560px ceiling
19044
+ // — the word is sized to its column alone, never to a type scale; the 36px floor stays.
19045
+ const clamped = (inner) => (typeCap ? `clamp(${min}px, ${inner}, ${max}px)` : `max(${min}px, ${inner})`);
19043
19046
  const widthVw = round2((layoutColumnsVw(cols) / Math.max(widthEm, 0.01)) * SCREEN_FILL);
19044
19047
  // T-CW3: in a column the word never runs past its columns — capped at the column in force, read as `content-cap` (a
19045
19048
  // `%` in font-size is the parent's size, so never `content-width`), the page's word stamped as px its fallback.
@@ -19051,9 +19054,9 @@ function screenFontSize(widthEm, cols, rows, sectionRows, screens, columnPx = nu
19051
19054
  const capFallback = columnPx ? `${columnPx}px` : capAlways ? WIDE_CAP : null;
19052
19055
  const width = [`${widthVw}vw`, ...(capFallback ? [columnCapCss(cols, widthEm, capFallback)] : []), ...room];
19053
19056
  if (!rows || !sectionRows)
19054
- return width.length > 1 ? `clamp(${min}px, min(${width.join(', ')}), ${max}px)` : `clamp(${min}px, ${widthVw}vw, ${max}px)`;
19057
+ return clamped(width.length > 1 ? `min(${width.join(', ')})` : `${widthVw}vw`);
19055
19058
  const heightSvh = round2((((rows / sectionRows) * screens * 100) / 0.92) * SCREEN_FILL);
19056
- return `clamp(${min}px, min(${[...width, `${heightSvh}svh`].join(', ')}), ${max}px)`;
19059
+ return clamped(`min(${[...width, `${heightSvh}svh`].join(', ')})`);
19057
19060
  }
19058
19061
  /** How many px a `screen` word `widthEm` wide runs past its room at its smallest size, on a screen `width` px wide — 0
19059
19062
  * when it fits. The one thing sizing cannot mend: the static check refuses it (a browser would show it cut). */
@@ -24546,7 +24549,8 @@ const rule = (k) => Number(RULES$1[k]);
24546
24549
  /** How wide `text` stands at 1em in an element style's face. */
24547
24550
  const widthEm = (text, ctx, style = 'display') => textWidthEm(text, elementStyleFace(ctx.design, style));
24548
24551
  /** How wide the name stands at 1em in the look's display face. */
24549
- const nameWidthEm = (ctx) => widthEm(ctx.name, ctx);
24552
+ /** R-H-AW12-5: the closing name wears its face's largest optical size (iox-design.css pins it), so it is measured there. */
24553
+ const nameWidthEm = (ctx) => textWidthEm(ctx.name, elementStyleFace(ctx.design, 'display'), OpticalSize.Display);
24550
24554
  /** True when a word `em` wide runs past a phone's room at the smallest screen size. */
24551
24555
  const overflowsPhone = (em, ctx) => screenWordOverflowPx(em, 12, PHONE_WIDTH, true, { gutter: layoutGutterPx(ctx.design.density) }) > 0;
24552
24556
  /** The closings that set the name large. */
@@ -24697,7 +24701,7 @@ function columnsOf$1(count) {
24697
24701
  /** A word fitted to the column as a layout's screen word is (`screenFontSize`, the 12-column room), never under the
24698
24702
  * smallest or over the largest screen word. Award §0c CW2 / iox-ui#117: the column of the PAGE it is on (`content-cap`),
24699
24703
  * the site's word only its fallback — a global footer fits a narrow page of a contained site. */
24700
- const columnSize = (em, ctx, cols = 12) => screenFontSize(em, cols, 0, 0, 0, layoutColumnPx(ctx.design.column, ctx.design.density), true);
24704
+ const columnSize = (em, ctx, cols = 12, typeCap = true) => screenFontSize(em, cols, 0, 0, 0, layoutColumnPx(ctx.design.column, ctx.design.density), true, typeCap);
24701
24705
  /** The closing name: the business name across the width, fitted to the name in the look's display face. A gradient or an
24702
24706
  * embossed name is the decorative copy (AW12-D12). */
24703
24707
  function closingName(ctx, mix) {
@@ -24705,7 +24709,10 @@ function closingName(ctx, mix) {
24705
24709
  const copy = style === FooterNameStyle.Gradient || style === FooterNameStyle.Emboss;
24706
24710
  // An offset name starts at the second of twelve columns (iox-design.css), so it is fitted to eleven.
24707
24711
  const cols = style === FooterNameStyle.Offset ? 11 : 12;
24708
- return { ...laid$1(part$3('name'), { fontSize: columnSize(nameWidthEm(ctx), ctx, cols) }), ...(copy ? { role: FooterRole.NameCopy } : {}) };
24712
+ // R-H-AW12-5 (decided 2026-11-25): name-and-action's name stands on both column edges, so it takes no type-scale
24713
+ // ceiling — a short name ("Nord", a four-letter Hebrew name) would otherwise stop at 560px, well short of the edge.
24714
+ const edgeToEdge = mix.closing === FooterClosing.NameAndAction;
24715
+ return { ...laid$1(part$3('name'), { fontSize: columnSize(nameWidthEm(ctx), ctx, cols, !edgeToEdge) }), ...(copy ? { role: FooterRole.NameCopy } : {}) };
24709
24716
  }
24710
24717
  /** The call word (AW12 `closing.word`): closed copy for the business, fitted to the column. */
24711
24718
  function callWord(ctx) {