@vectoriox/iox-ui 5.162.0 → 5.164.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 (47) hide show
  1. package/actions-core/index.d.ts +171 -3
  2. package/assist-core/index.d.ts +3 -2
  3. package/composite-core/index.d.ts +195 -3
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +243 -2
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-assist-core.mjs +6 -5
  7. package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +413 -163
  9. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +456 -27
  11. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +140 -1
  13. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  14. package/fesm2022/vectoriox-iox-ui-scene-core.mjs +83 -23
  15. package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
  16. package/fesm2022/vectoriox-iox-ui.mjs +387 -11
  17. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  18. package/generation-core/index.d.ts +87 -12
  19. package/harness-core/index.d.ts +132 -2
  20. package/index.d.ts +108 -3
  21. package/package.json +1 -1
  22. package/scene-core/index.d.ts +45 -13
  23. package/src/actions-core/popup-arrival.ts +328 -0
  24. package/src/actions-core/public-api.ts +1 -0
  25. package/src/assist-core/media-generate.ts +6 -5
  26. package/src/composite-core/composite-kinds.ts +9 -0
  27. package/src/composite-core/popup.ts +285 -0
  28. package/src/composite-core/public-api.ts +1 -0
  29. package/src/generation-core/ai-run.ts +65 -2
  30. package/src/generation-core/check-layout.ts +34 -4
  31. package/src/generation-core/compose-layout.ts +211 -10
  32. package/src/generation-core/compose-site.ts +2 -0
  33. package/src/generation-core/layout-drawers.ts +106 -0
  34. package/src/generation-core/layout-fingerprint.ts +3 -0
  35. package/src/generation-core/layout-language.ts +4 -0
  36. package/src/generation-core/layout-space.ts +3 -2
  37. package/src/generation-core/layout-wire.ts +15 -3
  38. package/src/generation-core/patterns.ts +4 -0
  39. package/src/generation-core/pictures.ts +4 -3
  40. package/src/generation-core/site-spec.generated.ts +57 -5
  41. package/src/harness-core/business-types.ts +2 -0
  42. package/src/harness-core/harness-spec.generated.ts +83 -0
  43. package/src/harness-core/popup-stance.ts +111 -0
  44. package/src/harness-core/public-api.ts +1 -0
  45. package/src/scene-core/scene.ts +3 -0
  46. package/src/scene-core/scroll-driver.ts +97 -25
  47. package/styles/iox-design.css +141 -2
@@ -198,6 +198,15 @@ var SceneRole;
198
198
  (function (SceneRole) {
199
199
  SceneRole["Scene"] = "scene";
200
200
  SceneRole["Stage"] = "scene.stage";
201
+ /** AW9 (RT-D4): a sideways walk's wide row — on a phone, a row the visitor swipes. */
202
+ SceneRole["Walk"] = "scene.walk";
203
+ /** One screen of a walk: laid out on the wide row's grid (`display: contents`), on a phone a card the row snaps to. */
204
+ SceneRole["WalkScreen"] = "scene.walk-screen";
205
+ /** AW9 `drawers`: one step — a panel that slides in from the inline end and stops one spine after the one before. */
206
+ SceneRole["Drawer"] = "scene.drawer";
207
+ /** A drawer's spine: its number and heading, standing on end (on a phone, a label above the step). Decorative to
208
+ * assistive technology — the step's own heading says it. */
209
+ SceneRole["DrawerSpine"] = "scene.drawer-spine";
201
210
  })(SceneRole || (SceneRole = {}));
202
211
  const COMPOSITE_KIND_ROLES = {
203
212
  [CompositeKind.Accordion]: { root: AccordionRole.Accordion, item: AccordionRole.Item, trigger: AccordionRole.Trigger, panel: AccordionRole.Panel, icon: AccordionRole.Icon },
@@ -471,7 +480,7 @@ var Type$8;
471
480
  Type["Icon"] = "Icon";
472
481
  Type["Repeater"] = "Repeater";
473
482
  })(Type$8 || (Type$8 = {}));
474
- var Style$9;
483
+ var Style$a;
475
484
  (function (Style) {
476
485
  Style["Root"] = "box";
477
486
  Style["Item"] = "accordion-item";
@@ -480,7 +489,7 @@ var Style$9;
480
489
  Style["Icon"] = "icon";
481
490
  Style["Panel"] = "accordion-panel";
482
491
  Style["Answer"] = "body";
483
- })(Style$9 || (Style$9 = {}));
492
+ })(Style$a || (Style$a = {}));
484
493
  const ZERO_BOX$4 = '0px 0px 0px 0px';
485
494
  const HEADING_LEVELS = ['h2', 'h3', 'h4', 'h5', 'h6'];
486
495
  const DEFAULT_LEVEL = 'h3';
@@ -507,7 +516,7 @@ function make$4(create, key, type, role, style, props = {}, label) {
507
516
  * ITS item (`stateTriggers`). ONE builder for both kinds. */
508
517
  function buildCompositeIcon(create, key, icon, itemId, role = AccordionRole.Icon) {
509
518
  const glyph = ACCORDION_ICON_GLYPH[icon];
510
- const node = makeCompositePart(create, { key, type: Type$8.Icon, props: { iconClass: glyph.iconClass }, elementStyle: Style$9.Icon }, role, 'Icon', PART_BASE$3[AccordionRole.Icon]);
519
+ const node = makeCompositePart(create, { key, type: Type$8.Icon, props: { iconClass: glyph.iconClass }, elementStyle: Style$a.Icon }, role, 'Icon', PART_BASE$3[AccordionRole.Icon]);
511
520
  node.stateStyles = { ...(node.stateStyles ?? {}), [ITEM_OPEN_STATE]: { rotate: glyph.turn } };
512
521
  if (itemId)
513
522
  node.stateTriggers = { ...(node.stateTriggers ?? {}), [ITEM_OPEN_STATE]: itemId };
@@ -515,14 +524,14 @@ function buildCompositeIcon(create, key, icon, itemId, role = AccordionRole.Icon
515
524
  }
516
525
  /** One item: header (question + icon) and panel (answer). `key` makes every part's recipe key unique. */
517
526
  function buildAccordionItem(create, words, itemKey, icon = AccordionIcon.Chevron) {
518
- const item = make$4(create, `${itemKey}`, Type$8.Container, AccordionRole.Item, Style$9.Item, {}, 'Item');
527
+ const item = make$4(create, `${itemKey}`, Type$8.Container, AccordionRole.Item, Style$a.Item, {}, 'Item');
519
528
  item.itemKey = itemKey;
520
- const trigger = make$4(create, `${itemKey}-trigger`, Type$8.LinkedContainer, AccordionRole.Trigger, Style$9.Trigger, {}, 'Header');
521
- const question = make$4(create, `${itemKey}-question`, Type$8.Heading, null, Style$9.Question, { content: words.question, level: DEFAULT_LEVEL }, 'Heading');
529
+ const trigger = make$4(create, `${itemKey}-trigger`, Type$8.LinkedContainer, AccordionRole.Trigger, Style$a.Trigger, {}, 'Header');
530
+ const question = make$4(create, `${itemKey}-question`, Type$8.Heading, null, Style$a.Question, { content: words.question, level: DEFAULT_LEVEL }, 'Heading');
522
531
  writeStyles(question, QUESTION_BASE);
523
532
  trigger.children = [question, ...(icon === AccordionIcon.None ? [] : [buildCompositeIcon(create, `${itemKey}-icon`, icon, item.id)])];
524
- const panel = make$4(create, `${itemKey}-panel`, Type$8.Container, AccordionRole.Panel, Style$9.Panel, {}, 'Panel');
525
- const answer = make$4(create, `${itemKey}-answer`, Type$8.Text, null, Style$9.Answer, { content: words.answer, tag: 'p' }, 'Text');
533
+ const panel = make$4(create, `${itemKey}-panel`, Type$8.Container, AccordionRole.Panel, Style$a.Panel, {}, 'Panel');
534
+ const answer = make$4(create, `${itemKey}-answer`, Type$8.Text, null, Style$a.Answer, { content: words.answer, tag: 'p' }, 'Text');
526
535
  writeStyles(answer, ANSWER_BASE);
527
536
  panel.children = [answer];
528
537
  item.children = [trigger, panel];
@@ -530,7 +539,7 @@ function buildAccordionItem(create, words, itemKey, icon = AccordionIcon.Chevron
530
539
  }
531
540
  /** A fresh Accordion: three items, one open at a time, the first open by default (board 4). */
532
541
  function buildAccordionRecipe(create, options = {}) {
533
- const root = make$4(create, 'accordion', Type$8.Container, AccordionRole.Accordion, Style$9.Root, {}, 'Accordion');
542
+ const root = make$4(create, 'accordion', Type$8.Container, AccordionRole.Accordion, Style$a.Root, {}, 'Accordion');
534
543
  writeProp(root, CompositeBehaviourTrait.Multiple, options.multiple ?? false);
535
544
  writeProp(root, CompositeBehaviourTrait.DefaultOn, options.defaultOn ?? AccordionDefaultOn.First);
536
545
  const words = options.items ?? accordionWords(options.lang);
@@ -1406,14 +1415,14 @@ var Type$7;
1406
1415
  Type["LinkedContainer"] = "LinkedContainer";
1407
1416
  Type["Text"] = "Text";
1408
1417
  })(Type$7 || (Type$7 = {}));
1409
- var Style$8;
1418
+ var Style$9;
1410
1419
  (function (Style) {
1411
1420
  Style["Root"] = "box";
1412
1421
  Style["Trigger"] = "accordion-trigger";
1413
1422
  Style["Word"] = "body";
1414
1423
  Style["Panel"] = "accordion-panel";
1415
1424
  Style["Body"] = "body";
1416
- })(Style$8 || (Style$8 = {}));
1425
+ })(Style$9 || (Style$9 = {}));
1417
1426
  const ZERO_BOX$3 = '0px 0px 0px 0px';
1418
1427
  const HIDDEN = 'none';
1419
1428
  const INHERIT = 'inherit';
@@ -1443,7 +1452,7 @@ function make$3(create, key, type, role, style, props, label) {
1443
1452
  }
1444
1453
  /** One of the trigger's two words: shown while the disclosure is closed (`more`) or open (`less`). */
1445
1454
  function buildWord(create, role, words, rootId) {
1446
- const node = make$3(create, role === DisclosureRole.More ? 'more' : 'less', Type$7.Text, role, Style$8.Word, { content: words, tag: 'span' }, 'Text');
1455
+ const node = make$3(create, role === DisclosureRole.More ? 'more' : 'less', Type$7.Text, role, Style$9.Word, { content: words, tag: 'span' }, 'Text');
1447
1456
  node.stateStyles = { ...(node.stateStyles ?? {}), [ITEM_OPEN_STATE]: { display: role === DisclosureRole.More ? HIDDEN : SHOWN } };
1448
1457
  if (rootId)
1449
1458
  node.stateTriggers = { ...(node.stateTriggers ?? {}), [ITEM_OPEN_STATE]: rootId };
@@ -1452,18 +1461,18 @@ function buildWord(create, role, words, rootId) {
1452
1461
  /** A fresh Disclosure: "Read more" opens the text below and reads "Read less" while it is open; closed by default. */
1453
1462
  function buildDisclosureRecipe(create, options = {}) {
1454
1463
  const words = { ...DISCLOSURE_WORDS, ...(options.words ?? {}) };
1455
- const root = make$3(create, 'disclosure', Type$7.Container, DisclosureRole.Disclosure, Style$8.Root, {}, 'Disclosure');
1464
+ const root = make$3(create, 'disclosure', Type$7.Container, DisclosureRole.Disclosure, Style$9.Root, {}, 'Disclosure');
1456
1465
  root.itemKey = DISCLOSURE_ITEM_KEY;
1457
1466
  writeProp(root, CompositeBehaviourTrait.DefaultOn, options.open ? AccordionDefaultOn.First : AccordionDefaultOn.None);
1458
1467
  const icon = options.icon ?? AccordionIcon.Chevron;
1459
- const trigger = make$3(create, 'trigger', Type$7.LinkedContainer, DisclosureRole.Trigger, Style$8.Trigger, {}, 'Toggle');
1468
+ const trigger = make$3(create, 'trigger', Type$7.LinkedContainer, DisclosureRole.Trigger, Style$9.Trigger, {}, 'Toggle');
1460
1469
  trigger.children = [
1461
1470
  buildWord(create, DisclosureRole.More, words.more, root.id),
1462
1471
  buildWord(create, DisclosureRole.Less, words.less, root.id),
1463
1472
  ...(icon === AccordionIcon.None ? [] : [buildCompositeIcon(create, 'icon', icon, root.id, DisclosureRole.Icon)]),
1464
1473
  ];
1465
- const panel = make$3(create, 'panel', Type$7.Container, DisclosureRole.Panel, Style$8.Panel, {}, 'Panel');
1466
- const body = make$3(create, 'body', Type$7.Text, null, Style$8.Body, { content: words.body, tag: 'p' }, 'Text');
1474
+ const panel = make$3(create, 'panel', Type$7.Container, DisclosureRole.Panel, Style$9.Panel, {}, 'Panel');
1475
+ const body = make$3(create, 'body', Type$7.Text, null, Style$9.Body, { content: words.body, tag: 'p' }, 'Text');
1467
1476
  writeStyles(body, BODY_BASE$1);
1468
1477
  panel.children = [body];
1469
1478
  root.children = [trigger, panel];
@@ -1673,7 +1682,7 @@ var Type$6;
1673
1682
  Type["Icon"] = "Icon";
1674
1683
  Type["ButtonBlock"] = "ButtonBlock";
1675
1684
  })(Type$6 || (Type$6 = {}));
1676
- var Style$7;
1685
+ var Style$8;
1677
1686
  (function (Style) {
1678
1687
  Style["Card"] = "card";
1679
1688
  Style["Box"] = "box";
@@ -1689,7 +1698,7 @@ var Style$7;
1689
1698
  Style["Logo"] = "card-logo";
1690
1699
  Style["Quote"] = "lead";
1691
1700
  Style["Person"] = "small";
1692
- })(Style$7 || (Style$7 = {}));
1701
+ })(Style$8 || (Style$8 = {}));
1693
1702
  var Scheme;
1694
1703
  (function (Scheme) {
1695
1704
  Scheme["Default"] = "default";
@@ -1701,9 +1710,9 @@ const SAVE_ICON = 'ph ph-bookmark-simple';
1701
1710
  const CARD_ICON = 'ph ph-sparkle';
1702
1711
  /** A value an element style writes — read from the contract, never retyped. */
1703
1712
  const styleValue = (style, trait) => String(elementStyleById(style)?.base[trait] ?? '');
1704
- const CARD_PAD = styleValue(Style$7.Card, 'padding');
1705
- const IMAGE_RADIUS = styleValue(Style$7.Media, 'borderRadius');
1706
- const TITLE_SIZE = styleValue(Style$7.Title, 'fontSize');
1713
+ const CARD_PAD = styleValue(Style$8.Card, 'padding');
1714
+ const IMAGE_RADIUS = styleValue(Style$8.Media, 'borderRadius');
1715
+ const TITLE_SIZE = styleValue(Style$8.Title, 'fontSize');
1707
1716
  const LEAD_SIZE = 'var(--iox-size-lead)';
1708
1717
  const ZERO_BOX$2 = '0px 0px 0px 0px';
1709
1718
  /** What every card part holds in every layout — the recipe's box. */
@@ -1736,7 +1745,7 @@ const LAYOUTS = {
1736
1745
  card: { flexDirection: 'column', alignItems: 'stretch', justifyContent: 'flex-start', minHeight: 'auto', padding: CARD_PAD },
1737
1746
  media: { ...IN_FLOW, flexBasis: 'auto' },
1738
1747
  image: { aspectRatio: '4 / 3', height: 'auto', minHeight: 'auto', borderRadius: IMAGE_RADIUS },
1739
- content: GROWING_CONTENT, contentStyle: Style$7.Box, contentScheme: Scheme.Default,
1748
+ content: GROWING_CONTENT, contentStyle: Style$8.Box, contentScheme: Scheme.Default,
1740
1749
  title: { fontSize: TITLE_SIZE },
1741
1750
  badgeOnMedia: true,
1742
1751
  },
@@ -1744,7 +1753,7 @@ const LAYOUTS = {
1744
1753
  card: { flexDirection: 'row', alignItems: 'stretch', justifyContent: 'flex-start', minHeight: 'auto', padding: CARD_PAD },
1745
1754
  media: { ...IN_FLOW, flexBasis: '42%' },
1746
1755
  image: { aspectRatio: 'auto', height: '100%', minHeight: '180px', borderRadius: IMAGE_RADIUS },
1747
- content: GROWING_CONTENT, contentStyle: Style$7.Box, contentScheme: Scheme.Default,
1756
+ content: GROWING_CONTENT, contentStyle: Style$8.Box, contentScheme: Scheme.Default,
1748
1757
  title: { fontSize: TITLE_SIZE },
1749
1758
  badgeOnMedia: true,
1750
1759
  stack: {
@@ -1758,7 +1767,7 @@ const LAYOUTS = {
1758
1767
  media: { position: 'absolute', top: '0px', right: '0px', bottom: '0px', left: '0px', flexBasis: 'auto' },
1759
1768
  image: { aspectRatio: 'auto', height: '100%', minHeight: 'auto', borderRadius: '0px' },
1760
1769
  content: { position: 'relative', flexGrow: '0', flexShrink: '0', flexBasis: 'auto', padding: `72px ${CARD_PAD} ${CARD_PAD} ${CARD_PAD}` },
1761
- contentStyle: Style$7.Scrim, contentScheme: Scheme.Inverse,
1770
+ contentStyle: Style$8.Scrim, contentScheme: Scheme.Inverse,
1762
1771
  title: { fontSize: TITLE_SIZE },
1763
1772
  badgeOnMedia: false,
1764
1773
  },
@@ -1766,7 +1775,7 @@ const LAYOUTS = {
1766
1775
  card: { flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', minHeight: 'auto', padding: CARD_PAD },
1767
1776
  media: { ...IN_FLOW, flexBasis: '72px' },
1768
1777
  image: { aspectRatio: '1 / 1', height: 'auto', minHeight: 'auto', borderRadius: IMAGE_RADIUS },
1769
- content: GROWING_CONTENT, contentStyle: Style$7.Box, contentScheme: Scheme.Default,
1778
+ content: GROWING_CONTENT, contentStyle: Style$8.Box, contentScheme: Scheme.Default,
1770
1779
  title: { fontSize: LEAD_SIZE },
1771
1780
  badgeOnMedia: false,
1772
1781
  partsOff: [CardPart.Text, CardPart.Actions],
@@ -1787,15 +1796,15 @@ function make$2(create, key, type, role, elementStyle, props = {}, label) {
1787
1796
  return node;
1788
1797
  }
1789
1798
  function buttonLabel(create, key, words) {
1790
- const label = make$2(create, key, Type$6.Text, null, Style$7.Label, { content: words, tag: 'span' });
1799
+ const label = make$2(create, key, Type$6.Text, null, Style$8.Label, { content: words, tag: 'span' });
1791
1800
  writeStyles(label, LABEL_BASE$2);
1792
1801
  return label;
1793
1802
  }
1794
1803
  /** Each optional part (and the locked title) as the recipe builds it. */
1795
1804
  const PART_BUILDERS = {
1796
1805
  [CardPart.Media]: (create) => {
1797
- const media = make$2(create, 'media', Type$6.Container, CardRole.Media, Style$7.Box, {}, 'Media');
1798
- const image = make$2(create, 'image', Type$6.Image, null, Style$7.Media, { src: '', alt: '' });
1806
+ const media = make$2(create, 'media', Type$6.Container, CardRole.Media, Style$8.Box, {}, 'Media');
1807
+ const image = make$2(create, 'image', Type$6.Image, null, Style$8.Media, { src: '', alt: '' });
1799
1808
  writeStyles(image, IMAGE_BASE$2);
1800
1809
  media.children = [image];
1801
1810
  return media;
@@ -1806,19 +1815,19 @@ const PART_BUILDERS = {
1806
1815
  badge.label = 'Badge';
1807
1816
  return badge;
1808
1817
  },
1809
- [CardPart.Eyebrow]: (create, words) => make$2(create, 'eyebrow', Type$6.Text, CardRole.Eyebrow, Style$7.Eyebrow, { content: words.eyebrow, tag: 'p' }, 'Eyebrow'),
1810
- [CardPart.Text]: (create, words) => make$2(create, 'text', Type$6.Text, CardRole.Text, Style$7.Body, { content: words.text, tag: 'p' }, 'Text'),
1811
- [CardPart.Logo]: (create) => make$2(create, 'logo', Type$6.Image, CardRole.Logo, Style$7.Logo, { src: '', alt: '' }, 'Logo'),
1812
- [CardPart.Icon]: (create) => make$2(create, 'icon', Type$6.Icon, CardRole.Icon, Style$7.Icon, { iconClass: CARD_ICON }, 'Icon'),
1818
+ [CardPart.Eyebrow]: (create, words) => make$2(create, 'eyebrow', Type$6.Text, CardRole.Eyebrow, Style$8.Eyebrow, { content: words.eyebrow, tag: 'p' }, 'Eyebrow'),
1819
+ [CardPart.Text]: (create, words) => make$2(create, 'text', Type$6.Text, CardRole.Text, Style$8.Body, { content: words.text, tag: 'p' }, 'Text'),
1820
+ [CardPart.Logo]: (create) => make$2(create, 'logo', Type$6.Image, CardRole.Logo, Style$8.Logo, { src: '', alt: '' }, 'Logo'),
1821
+ [CardPart.Icon]: (create) => make$2(create, 'icon', Type$6.Icon, CardRole.Icon, Style$8.Icon, { iconClass: CARD_ICON }, 'Icon'),
1813
1822
  // The marks are the page language's own (`quotes`, iox-design.css), never typed into the words.
1814
- [CardPart.Quote]: (create, words) => make$2(create, 'quote', Type$6.Text, CardRole.Quote, Style$7.Quote, { content: words.quote, tag: 'p' }, 'Quote'),
1815
- [CardPart.Person]: (create, words) => make$2(create, 'person', Type$6.Text, CardRole.Person, Style$7.Person, { content: words.person, tag: 'p' }, 'Person'),
1823
+ [CardPart.Quote]: (create, words) => make$2(create, 'quote', Type$6.Text, CardRole.Quote, Style$8.Quote, { content: words.quote, tag: 'p' }, 'Quote'),
1824
+ [CardPart.Person]: (create, words) => make$2(create, 'person', Type$6.Text, CardRole.Person, Style$8.Person, { content: words.person, tag: 'p' }, 'Person'),
1816
1825
  [CardPart.Actions]: (create, words) => {
1817
- const actions = make$2(create, 'actions', Type$6.Container, CardRole.Actions, Style$7.Box, {}, 'Buttons');
1818
- const primary = make$2(create, 'primary', Type$6.ButtonBlock, null, Style$7.Primary);
1826
+ const actions = make$2(create, 'actions', Type$6.Container, CardRole.Actions, Style$8.Box, {}, 'Buttons');
1827
+ const primary = make$2(create, 'primary', Type$6.ButtonBlock, null, Style$8.Primary);
1819
1828
  primary.children = [buttonLabel(create, 'primary-label', words.primary)];
1820
- const ghost = make$2(create, 'secondary', Type$6.ButtonBlock, null, Style$7.Ghost);
1821
- const icon = make$2(create, 'secondary-icon', Type$6.Icon, null, Style$7.Icon, { iconClass: SAVE_ICON });
1829
+ const ghost = make$2(create, 'secondary', Type$6.ButtonBlock, null, Style$8.Ghost);
1830
+ const icon = make$2(create, 'secondary-icon', Type$6.Icon, null, Style$8.Icon, { iconClass: SAVE_ICON });
1822
1831
  writeStyles(icon, INLINE_ICON);
1823
1832
  ghost.children = [icon, buttonLabel(create, 'secondary-label', words.secondary)];
1824
1833
  actions.children = [primary, ghost];
@@ -1826,15 +1835,15 @@ const PART_BUILDERS = {
1826
1835
  },
1827
1836
  };
1828
1837
  function buildTitle(create, words) {
1829
- return make$2(create, 'title', Type$6.Heading, CardRole.Title, Style$7.Title, { content: words.title, level: 'h3', [LINK_TYPE]: LinkType.None }, 'Title');
1838
+ return make$2(create, 'title', Type$6.Heading, CardRole.Title, Style$8.Title, { content: words.title, level: 'h3', [LINK_TYPE]: LinkType.None }, 'Title');
1830
1839
  }
1831
1840
  /** A fresh Card v2: every part a node with its role and element style, laid out by `options.layout`. */
1832
1841
  function buildCardRecipe(create, options = {}) {
1833
1842
  const words = { ...cardWords(options.lang), ...(options.words ?? {}) };
1834
1843
  const tone = options.badgeTone ?? BadgeTone.Accent;
1835
1844
  const on = (part) => options.parts?.[part] ?? !CARD_PARTS_OFF_AT_START.has(part);
1836
- const card = make$2(create, 'card', Type$6.Container, CardRole.Card, Style$7.Card, {}, 'Card');
1837
- const content = make$2(create, 'content', Type$6.Container, CardRole.Content, Style$7.Box, {}, 'Content');
1845
+ const card = make$2(create, 'card', Type$6.Container, CardRole.Card, Style$8.Card, {}, 'Card');
1846
+ const content = make$2(create, 'content', Type$6.Container, CardRole.Content, Style$8.Box, {}, 'Content');
1838
1847
  const parts = (list) => list.filter(on).map(part => PART_BUILDERS[part](create, words, tone));
1839
1848
  content.children = [
1840
1849
  ...parts([CardPart.Logo, CardPart.Icon, CardPart.Eyebrow]),
@@ -2442,13 +2451,13 @@ var Type$4;
2442
2451
  Type["Text"] = "Text";
2443
2452
  Type["Image"] = "Image";
2444
2453
  })(Type$4 || (Type$4 = {}));
2445
- var Style$6;
2454
+ var Style$7;
2446
2455
  (function (Style) {
2447
2456
  Style["Control"] = "button-secondary";
2448
2457
  Style["Icon"] = "icon";
2449
2458
  /** The caption and the count read as small print. */
2450
2459
  Style["Words"] = "small";
2451
- })(Style$6 || (Style$6 = {}));
2460
+ })(Style$7 || (Style$7 = {}));
2452
2461
  /** Each part's glyph (Phosphor) and its default accessible name. */
2453
2462
  const SLIDER_PART_GLYPH = {
2454
2463
  [SliderRole.Pause]: 'ph ph-pause',
@@ -2551,7 +2560,7 @@ function buildSliderPart(create, role, legacy) {
2551
2560
  if (role === SliderRole.Caption || role === SliderRole.Count) {
2552
2561
  // Their words are the runtime's (the slide in view), drawn as the part's generated content: the node's own
2553
2562
  // content stays empty, so no renderer ever fights the runtime over the element's text.
2554
- return makeCompositePart(create, { key: role.split('.')[1], type: Type$4.Text, props: { content: '', tag: 'p' }, elementStyle: Style$6.Words }, role, PART_LABEL[role], role === SliderRole.Caption ? CAPTION_BASE$1 : COUNT_BASE);
2563
+ return makeCompositePart(create, { key: role.split('.')[1], type: Type$4.Text, props: { content: '', tag: 'p' }, elementStyle: Style$7.Words }, role, PART_LABEL[role], role === SliderRole.Caption ? CAPTION_BASE$1 : COUNT_BASE);
2555
2564
  }
2556
2565
  if (role === SliderRole.Pagination) {
2557
2566
  const dots = makeCompositePart(create, { key: 'pagination', type: Type$4.Container, props: {}, elementStyle: NO_ELEMENT_STYLE }, role, PART_LABEL[role], legacy?.paginationColor ? { ...PAGINATION_BASE, color: legacy.paginationColor } : PAGINATION_BASE);
@@ -2570,9 +2579,9 @@ function buildSliderPart(create, role, legacy) {
2570
2579
  const props = { tag: 'button', type: 'button' };
2571
2580
  if (role !== SliderRole.Pause)
2572
2581
  props[SLIDER_NAME_TRAIT] = role === SliderRole.Prev ? SLIDER_WORDS.en.prev : SLIDER_WORDS.en.next;
2573
- const button = makeCompositePart(create, { key, type: Type$4.ButtonBlock, props, elementStyle: legacy ? NO_ELEMENT_STYLE : Style$6.Control }, role, PART_LABEL[role], base);
2582
+ const button = makeCompositePart(create, { key, type: Type$4.ButtonBlock, props, elementStyle: legacy ? NO_ELEMENT_STYLE : Style$7.Control }, role, PART_LABEL[role], base);
2574
2583
  const iconBase = legacy ? { ...ICON_BASE, fontSize: `${Math.round((legacy.navigationSize ?? 44) * 0.6)}px` } : ICON_BASE;
2575
- const icon = makeCompositePart(create, { key: `${key}-icon`, type: Type$4.Icon, props: { iconClass: SLIDER_PART_GLYPH[role] }, elementStyle: legacy ? NO_ELEMENT_STYLE : Style$6.Icon }, null, 'Icon', iconBase);
2584
+ const icon = makeCompositePart(create, { key: `${key}-icon`, type: Type$4.Icon, props: { iconClass: SLIDER_PART_GLYPH[role] }, elementStyle: legacy ? NO_ELEMENT_STYLE : Style$7.Icon }, null, 'Icon', iconBase);
2576
2585
  button.children = [icon];
2577
2586
  return button;
2578
2587
  }
@@ -3408,7 +3417,7 @@ var Type$3;
3408
3417
  Type["Image"] = "Image";
3409
3418
  Type["Repeater"] = "Repeater";
3410
3419
  })(Type$3 || (Type$3 = {}));
3411
- var Style$5;
3420
+ var Style$6;
3412
3421
  (function (Style) {
3413
3422
  Style["Root"] = "box";
3414
3423
  Style["List"] = "tab-list";
@@ -3418,10 +3427,10 @@ var Style$5;
3418
3427
  Style["Panel"] = "box";
3419
3428
  Style["Media"] = "media";
3420
3429
  Style["Body"] = "body";
3421
- })(Style$5 || (Style$5 = {}));
3430
+ })(Style$6 || (Style$6 = {}));
3422
3431
  const ZERO_BOX$1 = '0px 0px 0px 0px';
3423
3432
  /** The list's hairline, as its element style writes it — read from the contract, never retyped. */
3424
- const LIST_EDGE = String(elementStyleById(Style$5.List)?.base['borderWidth'] ?? ZERO_BOX$1);
3433
+ const LIST_EDGE = String(elementStyleById(Style$6.List)?.base['borderWidth'] ?? ZERO_BOX$1);
3425
3434
  /** What each part holds — layout only; its LOOK is its element style. The list WRAPS at narrow widths (board 3). */
3426
3435
  const PART_BASE$1 = {
3427
3436
  [TabsRole.Tabs]: { display: 'flex', width: '100%', minHeight: 'auto', height: 'auto' },
@@ -3455,30 +3464,30 @@ function make$1(create, key, type, role, style, props = {}, label) {
3455
3464
  }
3456
3465
  /** One tab and its panel, sharing `itemKey`. */
3457
3466
  function buildTabPair(create, words, itemKey) {
3458
- const tab = make$1(create, `${itemKey}-tab`, Type$3.ButtonBlock, TabsRole.Trigger, Style$5.Tab, {}, 'Tab');
3467
+ const tab = make$1(create, `${itemKey}-tab`, Type$3.ButtonBlock, TabsRole.Trigger, Style$6.Tab, {}, 'Tab');
3459
3468
  tab.itemKey = itemKey;
3460
- const label = make$1(create, `${itemKey}-label`, Type$3.Text, null, Style$5.Label, { content: words.label, tag: 'span' }, 'Text');
3469
+ const label = make$1(create, `${itemKey}-label`, Type$3.Text, null, Style$6.Label, { content: words.label, tag: 'span' }, 'Text');
3461
3470
  writeStyles(label, LABEL_BASE$1);
3462
3471
  tab.children = [label];
3463
- const panel = make$1(create, `${itemKey}-panel`, Type$3.Container, TabsRole.Panel, Style$5.Panel, {}, 'Panel');
3472
+ const panel = make$1(create, `${itemKey}-panel`, Type$3.Container, TabsRole.Panel, Style$6.Panel, {}, 'Panel');
3464
3473
  panel.itemKey = itemKey;
3465
3474
  writeLayerStyles(panel, TABS_STACK_BREAKPOINT, PANEL_STACK);
3466
- const image = make$1(create, `${itemKey}-image`, Type$3.Image, null, Style$5.Media, { src: '', alt: '' }, 'Image');
3475
+ const image = make$1(create, `${itemKey}-image`, Type$3.Image, null, Style$6.Media, { src: '', alt: '' }, 'Image');
3467
3476
  writeStyles(image, IMAGE_BASE);
3468
- const text = make$1(create, `${itemKey}-text`, Type$3.Text, null, Style$5.Body, { content: words.text, tag: 'p' }, 'Text');
3477
+ const text = make$1(create, `${itemKey}-text`, Type$3.Text, null, Style$6.Body, { content: words.text, tag: 'p' }, 'Text');
3469
3478
  writeStyles(text, BODY_BASE);
3470
3479
  panel.children = [image, text];
3471
3480
  return { tab, panel };
3472
3481
  }
3473
3482
  /** A fresh Tabs: three tabs, the first on, activated by a click, the list across the top (board 3). */
3474
3483
  function buildTabsRecipe(create, options = {}) {
3475
- const root = make$1(create, 'tabs', Type$3.Container, TabsRole.Tabs, Style$5.Root, {}, 'Tabs');
3484
+ const root = make$1(create, 'tabs', Type$3.Container, TabsRole.Tabs, Style$6.Root, {}, 'Tabs');
3476
3485
  writeProp(root, TabsBehaviourTrait.ActivateOn, options.activateOn ?? TabsActivateOn.Click);
3477
3486
  writeProp(root, TabsBehaviourTrait.Orientation, options.orientation ?? TabsOrientation.Horizontal);
3478
3487
  if (options.label)
3479
3488
  writeProp(root, TabsBehaviourTrait.Label, options.label);
3480
- const list = make$1(create, 'list', Type$3.Container, TabsRole.List, Style$5.List, {}, 'Tab list');
3481
- const panels = make$1(create, 'panels', Type$3.Container, TabsRole.Panels, Style$5.Panels, {}, 'Panels');
3489
+ const list = make$1(create, 'list', Type$3.Container, TabsRole.List, Style$6.List, {}, 'Tab list');
3490
+ const panels = make$1(create, 'panels', Type$3.Container, TabsRole.Panels, Style$6.Panels, {}, 'Panels');
3482
3491
  const pairs = (options.tabs ?? tabsWords(options.lang)).map((w, i) => buildTabPair(create, w, `k${i + 1}`));
3483
3492
  list.children = pairs.map(p => p.tab);
3484
3493
  panels.children = pairs.map(p => p.panel);
@@ -3928,12 +3937,12 @@ var Type$2;
3928
3937
  Type["ButtonBlock"] = "ButtonBlock";
3929
3938
  Type["Text"] = "Text";
3930
3939
  })(Type$2 || (Type$2 = {}));
3931
- var Style$4;
3940
+ var Style$5;
3932
3941
  (function (Style) {
3933
3942
  Style["Root"] = "segmented";
3934
3943
  Style["Option"] = "segmented-option";
3935
3944
  Style["Label"] = "button-label";
3936
- })(Style$4 || (Style$4 = {}));
3945
+ })(Style$5 || (Style$5 = {}));
3937
3946
  const ZERO_BOX = '0px 0px 0px 0px';
3938
3947
  /** What each part holds — layout only; its LOOK is its element style (the track's fill, border, radius and pad; the
3939
3948
  * option's ink, pad, radius and 44px target). The options sit in a flex row a gap token apart (board 10); each GROWS,
@@ -3951,9 +3960,9 @@ function make(create, key, type, role, style, props = {}, label) {
3951
3960
  }
3952
3961
  /** One option: a ButtonBlock carrying its key, holding its words. */
3953
3962
  function buildSegmentedOption(create, words) {
3954
- const option = make(create, `${words.key}-option`, Type$2.ButtonBlock, SegmentedRole.Option, Style$4.Option, {}, 'Option');
3963
+ const option = make(create, `${words.key}-option`, Type$2.ButtonBlock, SegmentedRole.Option, Style$5.Option, {}, 'Option');
3955
3964
  option.itemKey = words.key;
3956
- const label = make(create, `${words.key}-label`, Type$2.Text, null, Style$4.Label, { content: words.label, tag: 'span' }, 'Text');
3965
+ const label = make(create, `${words.key}-label`, Type$2.Text, null, Style$5.Label, { content: words.label, tag: 'span' }, 'Text');
3957
3966
  writeStyles(label, LABEL_BASE);
3958
3967
  option.children = [label];
3959
3968
  return option;
@@ -3962,7 +3971,7 @@ function buildSegmentedOption(create, words) {
3962
3971
  function buildSegmentedRecipe(create, options = {}) {
3963
3972
  const fresh = segmentedWords(options.lang);
3964
3973
  const words = options.options ?? fresh.options;
3965
- const root = make(create, 'segmented', Type$2.Container, SegmentedRole.Segmented, Style$4.Root, {}, 'Segmented');
3974
+ const root = make(create, 'segmented', Type$2.Container, SegmentedRole.Segmented, Style$5.Root, {}, 'Segmented');
3966
3975
  root.children = words.map(w => buildSegmentedOption(create, w));
3967
3976
  writeProp(root, SegmentedTrait.DefaultOn, options.defaultOn && words.some(w => w.key === options.defaultOn) ? options.defaultOn : words[0]?.key ?? '');
3968
3977
  writeProp(root, SegmentedTrait.Label, options.label ?? fresh.name);
@@ -4923,13 +4932,13 @@ var Type$1;
4923
4932
  Type["Container"] = "Container";
4924
4933
  Type["Text"] = "Text";
4925
4934
  })(Type$1 || (Type$1 = {}));
4926
- var Style$3;
4935
+ var Style$4;
4927
4936
  (function (Style) {
4928
4937
  Style["Box"] = "box";
4929
4938
  Style["Number"] = "price";
4930
4939
  Style["Words"] = "small";
4931
4940
  Style["Bar"] = "progress-bar";
4932
- })(Style$3 || (Style$3 = {}));
4941
+ })(Style$4 || (Style$4 = {}));
4933
4942
  const ZERO = '0px 0px 0px 0px';
4934
4943
  const COUNTER_BASE = { display: 'flex', flexDirection: 'column', gap: '6px', minHeight: 'auto', width: 'auto', padding: ZERO };
4935
4944
  const NUMBER_BASE = { margin: ZERO, width: 'auto' };
@@ -4946,9 +4955,9 @@ const COUNTER_SAMPLE_WORDS = Object.freeze({ number: '1,250+', label: 'projects
4946
4955
  /** A number that counts up once, and its words (Components ▸ Interactive ▸ Counter). */
4947
4956
  function buildCounterRecipe(create, words = {}) {
4948
4957
  const text = { ...COUNTER_SAMPLE_WORDS, ...words };
4949
- const root = makeCompositePart(create, { key: 'counter', type: Type$1.Container, props: {}, elementStyle: Style$3.Box }, null, 'Counter', COUNTER_BASE);
4950
- const number = makeCompositePart(create, { key: 'counter-number', type: Type$1.Text, props: { content: text.number }, elementStyle: Style$3.Number }, null, 'Number', NUMBER_BASE);
4951
- const label = makeCompositePart(create, { key: 'counter-label', type: Type$1.Text, props: { content: text.label }, elementStyle: Style$3.Words }, null, 'Words', WORDS_BASE);
4958
+ const root = makeCompositePart(create, { key: 'counter', type: Type$1.Container, props: {}, elementStyle: Style$4.Box }, null, 'Counter', COUNTER_BASE);
4959
+ const number = makeCompositePart(create, { key: 'counter-number', type: Type$1.Text, props: { content: text.number }, elementStyle: Style$4.Number }, null, 'Number', NUMBER_BASE);
4960
+ const label = makeCompositePart(create, { key: 'counter-label', type: Type$1.Text, props: { content: text.label }, elementStyle: Style$4.Words }, null, 'Words', WORDS_BASE);
4952
4961
  const { distance, ...entrance } = COUNTER_ENTRANCE;
4953
4962
  number.interactions = [{
4954
4963
  id: `${number.id ?? 'counter'}-count`, trigger: 'viewportEnter',
@@ -4963,7 +4972,7 @@ function buildCounterRecipe(create, words = {}) {
4963
4972
  /** A bar that fills as the page is read (Components ▸ Interactive ▸ Reading bar). Its range may be changed to "This
4964
4973
  * section" in the Interactions panel. */
4965
4974
  function buildReadingBarRecipe(create) {
4966
- const bar = makeCompositePart(create, { key: 'reading-bar', type: Type$1.Container, props: {}, elementStyle: Style$3.Bar }, null, 'Reading bar', BAR_BASE);
4975
+ const bar = makeCompositePart(create, { key: 'reading-bar', type: Type$1.Container, props: {}, elementStyle: Style$4.Bar }, null, 'Reading bar', BAR_BASE);
4967
4976
  bar.interactions = [{
4968
4977
  id: `${bar.id ?? 'bar'}-read`, trigger: 'scrollProgress', range: 'page',
4969
4978
  actions: [{ type: 'progressBar', target: 'self', duration: 1000, delay: 0, easing: 'linear' }],
@@ -5139,7 +5148,7 @@ var Type;
5139
5148
  Type["Image"] = "Image";
5140
5149
  Type["Dialog"] = "Dialog";
5141
5150
  })(Type || (Type = {}));
5142
- var Style$2;
5151
+ var Style$3;
5143
5152
  (function (Style) {
5144
5153
  Style["Price"] = "price";
5145
5154
  Style["PriceCompare"] = "price-compare";
@@ -5161,7 +5170,7 @@ var Style$2;
5161
5170
  Style["Media"] = "media";
5162
5171
  Style["Icon"] = "icon";
5163
5172
  Style["Title"] = "h3";
5164
- })(Style$2 || (Style$2 = {}));
5173
+ })(Style$3 || (Style$3 = {}));
5165
5174
  /** The words a fresh recipe shows, in the site's language (vectoriox/iox-ui#100 — a Hebrew store's bag, buttons and drawer
5166
5175
  * speak Hebrew, as its header does). The sample product's own words (board 10's vase) are the runtime's to replace. */
5167
5176
  function shopRecipeWords(lang = 'en') {
@@ -5203,7 +5212,7 @@ const STACKED$1 = { gridColumn: '1', gridRow: '1', ...WORDS };
5203
5212
  function part(create, key, type, role, style, props, label, base) {
5204
5213
  return recipePart(create, key, type, role, style, props, label, base);
5205
5214
  }
5206
- function text(create, key, role, style, words, label, base = WORDS, tag = 'p') {
5215
+ function text$1(create, key, role, style, words, label, base = WORDS, tag = 'p') {
5207
5216
  return recipeText(create, key, role, style, words, label, base, tag);
5208
5217
  }
5209
5218
  function icon(create, key, iconClass, size = '18px') {
@@ -5215,9 +5224,9 @@ function button$1(create, key, role, style, label, ariaLabel = '', base = {}) {
5215
5224
  /** Price: the variant's price and, when it is higher, its earlier price struck through (board 10). */
5216
5225
  function buildPriceRecipe(create) {
5217
5226
  const root = part(create, 'price', Type.Container, ShopRole.Price, null, {}, SHOP_LABELS.price, { ...ROW, alignItems: 'baseline', flexWrap: 'wrap', gap: '8px' });
5218
- const amount = text(create, 'price-amount', ShopRole.PriceAmount, Style$2.Price, SHOP_RECIPE_WORDS.price, 'Price');
5227
+ const amount = text$1(create, 'price-amount', ShopRole.PriceAmount, Style$3.Price, SHOP_RECIPE_WORDS.price, 'Price');
5219
5228
  bindSlot(amount, 'content', '$variant', 'price', true);
5220
- const compare = text(create, 'price-compare', ShopRole.PriceCompare, Style$2.PriceCompare, SHOP_RECIPE_WORDS.compareAt, 'Price before');
5229
+ const compare = text$1(create, 'price-compare', ShopRole.PriceCompare, Style$3.PriceCompare, SHOP_RECIPE_WORDS.compareAt, 'Price before');
5221
5230
  bindSlot(compare, 'content', '$variant', 'compareAt', true);
5222
5231
  root.children = [amount, compare];
5223
5232
  return root;
@@ -5226,13 +5235,13 @@ function buildPriceRecipe(create) {
5226
5235
  function buildVariantPickerRecipe(create) {
5227
5236
  const root = part(create, 'variants', Type.Container, ShopRole.Variants, null, {}, SHOP_LABELS.variants, { ...COLUMN, gap: '16px' });
5228
5237
  const group = part(create, 'variant-group', Type.Container, ShopRole.VariantGroup, null, {}, 'Option', { ...COLUMN, gap: '6px' });
5229
- const label = text(create, 'variant-label', ShopRole.VariantLabel, Style$2.Small, SHOP_RECIPE_WORDS.option, 'Option name');
5238
+ const label = text$1(create, 'variant-label', ShopRole.VariantLabel, Style$3.Small, SHOP_RECIPE_WORDS.option, 'Option name');
5230
5239
  const values = part(create, 'variant-values', Type.Container, ShopRole.VariantValues, null, {}, 'Values', { ...ROW, flexWrap: 'wrap', gap: '8px' });
5231
- const chip = button$1(create, 'variant-value', ShopRole.VariantValue, Style$2.Chip, 'Value', '', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto' });
5232
- chip.children = [text(create, 'variant-value-text', null, Style$2.Label, SHOP_RECIPE_WORDS.value, 'Text', WORDS, 'span')];
5233
- const swatch = button$1(create, 'variant-swatch', ShopRole.VariantSwatch, Style$2.Swatch, 'Swatch', 'Sand', {}); // the swatch style owns its size and padding (iox-cms-client#89)
5240
+ const chip = button$1(create, 'variant-value', ShopRole.VariantValue, Style$3.Chip, 'Value', '', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto' });
5241
+ chip.children = [text$1(create, 'variant-value-text', null, Style$3.Label, SHOP_RECIPE_WORDS.value, 'Text', WORDS, 'span')];
5242
+ const swatch = button$1(create, 'variant-swatch', ShopRole.VariantSwatch, Style$3.Swatch, 'Swatch', 'Sand', {}); // the swatch style owns its size and padding (iox-cms-client#89)
5234
5243
  values.children = [chip, swatch];
5235
- const note = text(create, 'variant-note', ShopRole.VariantNote, Style$2.Small, SHOP_RECIPE_WORDS.note, 'Sold-out note');
5244
+ const note = text$1(create, 'variant-note', ShopRole.VariantNote, Style$3.Small, SHOP_RECIPE_WORDS.note, 'Sold-out note');
5236
5245
  group.children = [label, values, note];
5237
5246
  root.children = [group];
5238
5247
  return root;
@@ -5240,11 +5249,11 @@ function buildVariantPickerRecipe(create) {
5240
5249
  /** Quantity: − · the count · + (min 1, max from the variant's stock). `compact` = a cart line's. */
5241
5250
  function buildQuantityRecipe(create, compact = false, key = 'quantity') {
5242
5251
  const size = compact ? '30px' : 'var(--iox-stepper-size)';
5243
- const root = part(create, key, Type.Container, ShopRole.Quantity, Style$2.Quantity, {}, SHOP_LABELS.quantity, { ...ROW, alignItems: 'stretch', gap: '0px', minHeight: size });
5244
- const down = button$1(create, `${key}-down`, ShopRole.QuantityDown, Style$2.QuantityButton, 'Decrease', 'Decrease quantity', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', minWidth: size, padding: ZERO$4 });
5252
+ const root = part(create, key, Type.Container, ShopRole.Quantity, Style$3.Quantity, {}, SHOP_LABELS.quantity, { ...ROW, alignItems: 'stretch', gap: '0px', minHeight: size });
5253
+ const down = button$1(create, `${key}-down`, ShopRole.QuantityDown, Style$3.QuantityButton, 'Decrease', 'Decrease quantity', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', minWidth: size, padding: ZERO$4 });
5245
5254
  down.children = [icon(create, `${key}-down-icon`, 'ph ph-minus', compact ? '14px' : '16px')];
5246
- const value = text(create, `${key}-value`, ShopRole.QuantityValue, Style$2.Body, SHOP_RECIPE_WORDS.quantity, 'Count', { ...WORDS, display: 'inline-flex', alignItems: 'center', justifyContent: 'center', minWidth: compact ? '32px' : '40px', fontVariantNumeric: 'tabular-nums' }, 'span');
5247
- const up = button$1(create, `${key}-up`, ShopRole.QuantityUp, Style$2.QuantityButton, 'Increase', 'Increase quantity', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', minWidth: size, padding: ZERO$4 });
5255
+ const value = text$1(create, `${key}-value`, ShopRole.QuantityValue, Style$3.Body, SHOP_RECIPE_WORDS.quantity, 'Count', { ...WORDS, display: 'inline-flex', alignItems: 'center', justifyContent: 'center', minWidth: compact ? '32px' : '40px', fontVariantNumeric: 'tabular-nums' }, 'span');
5256
+ const up = button$1(create, `${key}-up`, ShopRole.QuantityUp, Style$3.QuantityButton, 'Increase', 'Increase quantity', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', minWidth: size, padding: ZERO$4 });
5248
5257
  up.children = [icon(create, `${key}-up-icon`, 'ph ph-plus', compact ? '14px' : '16px')];
5249
5258
  root.children = [down, value, up];
5250
5259
  return root;
@@ -5252,10 +5261,10 @@ function buildQuantityRecipe(create, compact = false, key = 'quantity') {
5252
5261
  /** Add to cart: presses on pointer-down (its element style), then reads "Added ✓" in place for ADDED_HOLD_MS. */
5253
5262
  function buildAddToCartRecipe(create, lang = 'en') {
5254
5263
  const t = shopRecipeWords(lang);
5255
- const root = button$1(create, 'add', ShopRole.Add, Style$2.Primary, SHOP_LABELS.add, '', { display: 'inline-grid', alignItems: 'center', justifyItems: 'center', flexGrow: '1', width: 'auto', height: 'auto' });
5264
+ const root = button$1(create, 'add', ShopRole.Add, Style$3.Primary, SHOP_LABELS.add, '', { display: 'inline-grid', alignItems: 'center', justifyItems: 'center', flexGrow: '1', width: 'auto', height: 'auto' });
5256
5265
  root.children = [
5257
- text(create, 'add-label', ShopRole.AddLabel, Style$2.Label, t.add, 'Add', STACKED$1, 'span'),
5258
- text(create, 'added-label', ShopRole.AddedLabel, Style$2.Label, t.added, 'Added', STACKED$1, 'span'),
5266
+ text$1(create, 'add-label', ShopRole.AddLabel, Style$3.Label, t.add, 'Add', STACKED$1, 'span'),
5267
+ text$1(create, 'added-label', ShopRole.AddedLabel, Style$3.Label, t.added, 'Added', STACKED$1, 'span'),
5259
5268
  ];
5260
5269
  onClick$1(root, 'addToCart');
5261
5270
  return root;
@@ -5263,17 +5272,17 @@ function buildAddToCartRecipe(create, lang = 'en') {
5263
5272
  /** Buy now: straight to checkout with this variant (inert on the canvas). */
5264
5273
  function buildBuyNowRecipe(create, lang = 'en') {
5265
5274
  const t = shopRecipeWords(lang);
5266
- const root = button$1(create, 'buy-now', ShopRole.BuyNow, Style$2.Secondary, SHOP_LABELS.buyNow, '', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto' });
5267
- root.children = [text(create, 'buy-now-label', null, Style$2.Label, t.buyNow, 'Text', WORDS, 'span')];
5275
+ const root = button$1(create, 'buy-now', ShopRole.BuyNow, Style$3.Secondary, SHOP_LABELS.buyNow, '', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto' });
5276
+ root.children = [text$1(create, 'buy-now-label', null, Style$3.Label, t.buyNow, 'Text', WORDS, 'span')];
5268
5277
  onClick$1(root, 'startCheckout');
5269
5278
  return root;
5270
5279
  }
5271
5280
  /** The bag button with its live count ($cart.count); it opens the page's cart drawer. */
5272
5281
  function buildCartButtonRecipe(create, lang = 'en') {
5273
5282
  const t = shopRecipeWords(lang);
5274
- const root = button$1(create, 'cart-button', ShopRole.CartButton, Style$2.CartButton, SHOP_LABELS.cartButton, t.cart, { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto', padding: '6px 6px 6px 6px', position: 'relative' });
5275
- const count = part(create, 'cart-count', Type.Container, ShopRole.CartCount, Style$2.CartCount, {}, 'Count', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto', minHeight: 'var(--iox-cart-count-size)', padding: '0px 4px 0px 4px', position: 'absolute', top: '-5px', right: '-5px' });
5276
- const words = text(create, 'cart-count-text', null, Style$2.Label, t.count, 'Text', { ...WORDS, lineHeight: '1' }, 'span');
5283
+ const root = button$1(create, 'cart-button', ShopRole.CartButton, Style$3.CartButton, SHOP_LABELS.cartButton, t.cart, { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto', padding: '6px 6px 6px 6px', position: 'relative' });
5284
+ const count = part(create, 'cart-count', Type.Container, ShopRole.CartCount, Style$3.CartCount, {}, 'Count', { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto', minHeight: 'var(--iox-cart-count-size)', padding: '0px 4px 0px 4px', position: 'absolute', top: '-5px', right: '-5px' });
5285
+ const words = text$1(create, 'cart-count-text', null, Style$3.Label, t.count, 'Text', { ...WORDS, lineHeight: '1' }, 'span');
5277
5286
  bindSlot(words, 'content', '$cart', 'count');
5278
5287
  count.children = [words];
5279
5288
  root.children = [icon(create, 'cart-icon', 'ph ph-handbag'), count];
@@ -5281,48 +5290,48 @@ function buildCartButtonRecipe(create, lang = 'en') {
5281
5290
  }
5282
5291
  /** One cart line: thumbnail · title, variant, quantity and Remove · line total (board 10). */
5283
5292
  function buildCartLine(create, t) {
5284
- const line = part(create, 'cart-line', Type.Container, ShopRole.CartLine, Style$2.CartLine, {}, 'Line', { display: 'grid', gridTemplateColumns: 'var(--iox-cart-thumb-size) minmax(0, 1fr) auto', alignItems: 'start', gap: '12px', width: '100%', height: 'auto', minHeight: 'auto', padding: ZERO$4 });
5285
- const image = part(create, 'cart-line-image', Type.Image, ShopRole.CartLineImage, Style$2.Media, { src: '', alt: '' }, 'Image', { width: 'var(--iox-cart-thumb-size)', height: 'var(--iox-cart-thumb-size)', minHeight: '0px', objectFit: 'cover', aspectRatio: '1 / 1' });
5293
+ const line = part(create, 'cart-line', Type.Container, ShopRole.CartLine, Style$3.CartLine, {}, 'Line', { display: 'grid', gridTemplateColumns: 'var(--iox-cart-thumb-size) minmax(0, 1fr) auto', alignItems: 'start', gap: '12px', width: '100%', height: 'auto', minHeight: 'auto', padding: ZERO$4 });
5294
+ const image = part(create, 'cart-line-image', Type.Image, ShopRole.CartLineImage, Style$3.Media, { src: '', alt: '' }, 'Image', { width: 'var(--iox-cart-thumb-size)', height: 'var(--iox-cart-thumb-size)', minHeight: '0px', objectFit: 'cover', aspectRatio: '1 / 1' });
5286
5295
  const info = part(create, 'cart-line-info', Type.Container, null, null, {}, 'Details', { ...COLUMN, gap: '2px', minWidth: '0px' });
5287
- const title = text(create, 'cart-line-title', ShopRole.CartLineTitle, Style$2.Body, t.lineTitle, 'Title', { ...WORDS, fontWeight: '500' });
5288
- const variant = text(create, 'cart-line-variant', ShopRole.CartLineVariant, Style$2.Small, t.lineVariant, 'Variant', { ...WORDS, margin: '0px 0px 6px 0px' });
5296
+ const title = text$1(create, 'cart-line-title', ShopRole.CartLineTitle, Style$3.Body, t.lineTitle, 'Title', { ...WORDS, fontWeight: '500' });
5297
+ const variant = text$1(create, 'cart-line-variant', ShopRole.CartLineVariant, Style$3.Small, t.lineVariant, 'Variant', { ...WORDS, margin: '0px 0px 6px 0px' });
5289
5298
  const actions = part(create, 'cart-line-actions', Type.Container, null, null, {}, 'Actions', { ...ROW, gap: '12px' });
5290
- const remove = button$1(create, 'cart-line-remove', ShopRole.CartLineRemove, Style$2.Ghost, 'Remove', '', { padding: '4px 4px 4px 4px', width: 'auto', height: 'auto', minHeight: 'auto' });
5291
- remove.children = [text(create, 'cart-line-remove-text', null, Style$2.Small, t.remove, 'Text', WORDS, 'span')];
5299
+ const remove = button$1(create, 'cart-line-remove', ShopRole.CartLineRemove, Style$3.Ghost, 'Remove', '', { padding: '4px 4px 4px 4px', width: 'auto', height: 'auto', minHeight: 'auto' });
5300
+ remove.children = [text$1(create, 'cart-line-remove-text', null, Style$3.Small, t.remove, 'Text', WORDS, 'span')];
5292
5301
  actions.children = [buildQuantityRecipe(create, true, 'cart-line-quantity'), remove];
5293
5302
  info.children = [title, variant, actions];
5294
- const total = text(create, 'cart-line-total', ShopRole.CartLineTotal, Style$2.Price, t.lineTotal, 'Line total', { ...WORDS, fontSize: 'var(--iox-size-body)', textAlign: 'end' });
5303
+ const total = text$1(create, 'cart-line-total', ShopRole.CartLineTotal, Style$3.Price, t.lineTotal, 'Line total', { ...WORDS, fontSize: 'var(--iox-size-body)', textAlign: 'end' });
5295
5304
  line.children = [image, info, total];
5296
5305
  return line;
5297
5306
  }
5298
5307
  /** The cart drawer: a Dialog at the end edge (a bottom sheet on a phone — shared CSS), filled from the PRICED cart. */
5299
5308
  function buildCartDrawerRecipe(create, lang = 'en') {
5300
5309
  const t = shopRecipeWords(lang);
5301
- const drawer = part(create, 'cart-drawer', Type.Dialog, ShopRole.CartDrawer, Style$2.Dialog, {}, SHOP_LABELS.cartDrawer, { width: '380px', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '14px' });
5310
+ const drawer = part(create, 'cart-drawer', Type.Dialog, ShopRole.CartDrawer, Style$3.Dialog, {}, SHOP_LABELS.cartDrawer, { width: '380px', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '14px' });
5302
5311
  writeProp(drawer, 'placement', 'end');
5303
5312
  writeProp(drawer, 'closeOnBackdrop', true);
5304
5313
  writeProp(drawer, 'showCloseButton', false);
5305
5314
  writeProp(drawer, 'ariaLabel', t.drawer);
5306
5315
  const head = part(create, 'cart-head', Type.Container, null, null, {}, 'Head', { ...ROW, width: '100%', justifyContent: 'space-between', gap: '12px' });
5307
- const title = part(create, 'cart-title', Type.Heading, ShopRole.CartTitle, Style$2.Title, { content: t.drawer, level: 'h2' }, 'Title', WORDS);
5308
- const close = button$1(create, 'cart-close', ShopRole.CartClose, Style$2.Ghost, 'Close', '', { padding: '4px 4px 4px 4px', width: 'auto', height: 'auto', minHeight: 'auto' });
5309
- close.children = [text(create, 'cart-close-text', null, Style$2.Small, t.close, 'Text', WORDS, 'span')];
5316
+ const title = part(create, 'cart-title', Type.Heading, ShopRole.CartTitle, Style$3.Title, { content: t.drawer, level: 'h2' }, 'Title', WORDS);
5317
+ const close = button$1(create, 'cart-close', ShopRole.CartClose, Style$3.Ghost, 'Close', '', { padding: '4px 4px 4px 4px', width: 'auto', height: 'auto', minHeight: 'auto' });
5318
+ close.children = [text$1(create, 'cart-close-text', null, Style$3.Small, t.close, 'Text', WORDS, 'span')];
5310
5319
  onClick$1(close, 'closeDialog', drawer.id ?? '');
5311
5320
  head.children = [title, close];
5312
5321
  const lines = part(create, 'cart-lines', Type.Container, ShopRole.CartLines, null, {}, 'Lines', { ...COLUMN, gap: '16px' });
5313
5322
  lines.children = [buildCartLine(create, t)];
5314
- const issues = text(create, 'cart-issues', ShopRole.CartIssues, Style$2.Small, '', 'Issues', { ...WORDS, color: 'var(--iox-danger)' });
5315
- const empty = text(create, 'cart-empty', ShopRole.CartEmpty, Style$2.Body, t.empty, 'Empty');
5316
- const note = text(create, 'cart-shipping-note', ShopRole.CartShippingNote, Style$2.CartNote, t.shippingNote, 'Free delivery note', { width: 'auto', minHeight: 'auto', margin: ZERO$4 });
5323
+ const issues = text$1(create, 'cart-issues', ShopRole.CartIssues, Style$3.Small, '', 'Issues', { ...WORDS, color: 'var(--iox-danger)' });
5324
+ const empty = text$1(create, 'cart-empty', ShopRole.CartEmpty, Style$3.Body, t.empty, 'Empty');
5325
+ const note = text$1(create, 'cart-shipping-note', ShopRole.CartShippingNote, Style$3.CartNote, t.shippingNote, 'Free delivery note', { width: 'auto', minHeight: 'auto', margin: ZERO$4 });
5317
5326
  const summary = part(create, 'cart-summary', Type.Container, ShopRole.CartSummary, null, {}, 'Subtotal', { ...ROW, width: '100%', justifyContent: 'space-between', gap: '12px' });
5318
- const subtotal = text(create, 'cart-subtotal', ShopRole.CartSubtotal, Style$2.Body, t.subtotal, 'Amount', { ...WORDS, fontVariantNumeric: 'tabular-nums', fontWeight: '600' }, 'span');
5327
+ const subtotal = text$1(create, 'cart-subtotal', ShopRole.CartSubtotal, Style$3.Body, t.subtotal, 'Amount', { ...WORDS, fontVariantNumeric: 'tabular-nums', fontWeight: '600' }, 'span');
5319
5328
  bindSlot(subtotal, 'content', '$cart', 'subtotal', true);
5320
- summary.children = [text(create, 'cart-subtotal-label', null, Style$2.Body, t.subtotalLabel, 'Label', WORDS, 'span'), subtotal];
5321
- const vat = text(create, 'cart-vat-note', ShopRole.CartVatNote, Style$2.Small, t.vatNote, 'VAT note');
5322
- const checkout = button$1(create, 'checkout', ShopRole.Checkout, Style$2.Primary, 'Check out', '', { display: 'inline-flex', justifyContent: 'center', alignItems: 'center', width: '100%', height: 'auto' });
5323
- checkout.children = [text(create, 'checkout-label', null, Style$2.Label, t.checkout, 'Text', WORDS, 'span')];
5324
- const keep = button$1(create, 'keep-shopping', ShopRole.KeepShopping, Style$2.Secondary, 'Keep shopping', '', { display: 'inline-flex', justifyContent: 'center', alignItems: 'center', width: '100%', height: 'auto' });
5325
- keep.children = [text(create, 'keep-shopping-label', null, Style$2.Label, t.keepShopping, 'Text', WORDS, 'span')];
5329
+ summary.children = [text$1(create, 'cart-subtotal-label', null, Style$3.Body, t.subtotalLabel, 'Label', WORDS, 'span'), subtotal];
5330
+ const vat = text$1(create, 'cart-vat-note', ShopRole.CartVatNote, Style$3.Small, t.vatNote, 'VAT note');
5331
+ const checkout = button$1(create, 'checkout', ShopRole.Checkout, Style$3.Primary, 'Check out', '', { display: 'inline-flex', justifyContent: 'center', alignItems: 'center', width: '100%', height: 'auto' });
5332
+ checkout.children = [text$1(create, 'checkout-label', null, Style$3.Label, t.checkout, 'Text', WORDS, 'span')];
5333
+ const keep = button$1(create, 'keep-shopping', ShopRole.KeepShopping, Style$3.Secondary, 'Keep shopping', '', { display: 'inline-flex', justifyContent: 'center', alignItems: 'center', width: '100%', height: 'auto' });
5334
+ keep.children = [text$1(create, 'keep-shopping-label', null, Style$3.Label, t.keepShopping, 'Text', WORDS, 'span')];
5326
5335
  onClick$1(keep, 'closeDialog', drawer.id ?? '');
5327
5336
  drawer.children = [head, lines, issues, empty, note, summary, vat, checkout, keep];
5328
5337
  return drawer;
@@ -6131,7 +6140,7 @@ function accountRecipeWords(lang = 'en') {
6131
6140
  /** The English sample (the palette's — the canvas has no page language yet). */
6132
6141
  const ACCOUNT_RECIPE_WORDS = accountRecipeWords('en');
6133
6142
  const ACCOUNT_LABELS = Object.freeze({ account: 'Account entry', menu: 'Account menu', signIn: 'Sign-in dialog' });
6134
- var Style$1;
6143
+ var Style$2;
6135
6144
  (function (Style) {
6136
6145
  Style["AccountButton"] = "account-button";
6137
6146
  Style["Avatar"] = "account-avatar";
@@ -6146,7 +6155,7 @@ var Style$1;
6146
6155
  Style["Popover"] = "popover";
6147
6156
  Style["Title"] = "h3";
6148
6157
  Style["Field"] = "field";
6149
- })(Style$1 || (Style$1 = {}));
6158
+ })(Style$2 || (Style$2 = {}));
6150
6159
  const PILL = { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: 'auto', height: 'auto' };
6151
6160
  const FULL = { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', width: '100%', height: 'auto' };
6152
6161
  const TEXT_BUTTON = { padding: '4px 4px 4px 4px', width: 'auto', height: 'auto', minHeight: 'auto' };
@@ -6155,24 +6164,24 @@ const STACKED = { gridColumn: '1', gridRow: '1' };
6155
6164
  function words(create, key, role, style, text, label, base = WORDS, tag = 'p') {
6156
6165
  return recipeText(create, key, role, style, text, label, base, tag);
6157
6166
  }
6158
- function labelled(create, key, role, style, text, label, base, labelStyle = Style$1.Label) {
6167
+ function labelled(create, key, role, style, text, label, base, labelStyle = Style$2.Label) {
6159
6168
  const root = recipeButton(create, key, role, style, label, '', base);
6160
6169
  root.children = [words(create, `${key}-label`, null, labelStyle, text, 'Text', WORDS, 'span')];
6161
6170
  return root;
6162
6171
  }
6163
6172
  function field(create, key, role, name, control, label, placeholder) {
6164
- return recipePart(create, key, 'Field', role, Style$1.Field, { control, label, name, placeholder, required: true }, label, { width: '100%', minHeight: 'auto', margin: ZERO$4 });
6173
+ return recipePart(create, key, 'Field', role, Style$2.Field, { control, label, name, placeholder, required: true }, label, { width: '100%', minHeight: 'auto', margin: ZERO$4 });
6165
6174
  }
6166
6175
  /** The menu a signed-in buyer opens from the account button: hello, their orders, sign out. */
6167
6176
  function buildAccountMenuRecipe(create, lang = 'en') {
6168
6177
  const t = accountRecipeWords(lang);
6169
- const menu = recipePart(create, 'account-menu', 'Popover', AccountRole.Menu, Style$1.Popover, {}, ACCOUNT_LABELS.menu, { display: 'flex', flexDirection: 'column', alignItems: 'stretch', width: '220px', height: 'auto', minHeight: 'auto', gap: '4px' });
6178
+ const menu = recipePart(create, 'account-menu', 'Popover', AccountRole.Menu, Style$2.Popover, {}, ACCOUNT_LABELS.menu, { display: 'flex', flexDirection: 'column', alignItems: 'stretch', width: '220px', height: 'auto', minHeight: 'auto', gap: '4px' });
6170
6179
  writeProp(menu, 'placement', 'below');
6171
6180
  writeProp(menu, 'ariaLabel', t.title);
6172
- const greeting = words(create, 'account-menu-greeting', AccountRole.MenuGreeting, Style$1.Body, t.greeting, 'Greeting', { ...WORDS, margin: '0px 0px 6px 0px', fontWeight: '600' });
6173
- const orders = recipePart(create, 'account-orders', 'ButtonBlock', AccountRole.Orders, Style$1.Ghost, { tag: 'a', linkType: 'external', href: ACCOUNT_PATH, target: '_self' }, 'Your orders', { ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
6174
- orders.children = [words(create, 'account-orders-label', null, Style$1.Label, t.orders, 'Text', WORDS, 'span')];
6175
- const signOut = labelled(create, 'account-sign-out', AccountRole.SignOut, Style$1.Ghost, t.signOut, 'Sign out', { ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
6181
+ const greeting = words(create, 'account-menu-greeting', AccountRole.MenuGreeting, Style$2.Body, t.greeting, 'Greeting', { ...WORDS, margin: '0px 0px 6px 0px', fontWeight: '600' });
6182
+ const orders = recipePart(create, 'account-orders', 'ButtonBlock', AccountRole.Orders, Style$2.Ghost, { tag: 'a', linkType: 'external', href: ACCOUNT_PATH, target: '_self' }, 'Your orders', { ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
6183
+ orders.children = [words(create, 'account-orders-label', null, Style$2.Label, t.orders, 'Text', WORDS, 'span')];
6184
+ const signOut = labelled(create, 'account-sign-out', AccountRole.SignOut, Style$2.Ghost, t.signOut, 'Sign out', { ...TEXT_BUTTON, justifyContent: 'flex-start', width: '100%' });
6176
6185
  onClick$1(signOut, 'signOut');
6177
6186
  menu.children = [greeting, orders, signOut];
6178
6187
  return menu;
@@ -6184,18 +6193,18 @@ function buildAccountMenuRecipe(create, lang = 'en') {
6184
6193
  function buildAccountEntryRecipe(create, lang = 'en') {
6185
6194
  const t = accountRecipeWords(lang);
6186
6195
  const root = recipePart(create, 'account', 'Container', AccountRole.Account, null, {}, ACCOUNT_LABELS.account, { ...ROW, gap: '0px' });
6187
- const entry = recipeButton(create, 'account-entry', AccountRole.Entry, Style$1.AccountButton, 'Account button', t.signIn, { ...PILL, display: 'inline-grid', gridTemplateColumns: 'auto', alignItems: 'center', justifyItems: 'center' });
6196
+ const entry = recipeButton(create, 'account-entry', AccountRole.Entry, Style$2.AccountButton, 'Account button', t.signIn, { ...PILL, display: 'inline-grid', gridTemplateColumns: 'auto', alignItems: 'center', justifyItems: 'center' });
6188
6197
  const signedOut = recipePart(create, 'account-signed-out', 'Container', null, null, {}, 'Signed out', { ...ROW, ...STACKED, gap: '6px' });
6189
6198
  signedOut.children = [
6190
6199
  recipeIcon(create, 'account-icon', 'ph ph-user-circle', '18px'),
6191
- words(create, 'account-sign-in-label', AccountRole.SignInLabel, Style$1.Label, t.signIn, 'Sign in', WORDS, 'span'),
6200
+ words(create, 'account-sign-in-label', AccountRole.SignInLabel, Style$2.Label, t.signIn, 'Sign in', WORDS, 'span'),
6192
6201
  ];
6193
6202
  const signedIn = recipePart(create, 'account-signed-in', 'Container', null, null, {}, 'Signed in', { ...ROW, ...STACKED, gap: '8px' });
6194
- const avatar = recipePart(create, 'account-avatar', 'Container', AccountRole.Avatar, Style$1.Avatar, {}, 'Initial', { ...PILL, minHeight: 'var(--iox-account-avatar-size)', padding: ZERO$4 });
6195
- const initial = words(create, 'account-initial', AccountRole.Initial, Style$1.Label, t.initial, 'Initial', { ...WORDS, lineHeight: '1' }, 'span');
6203
+ const avatar = recipePart(create, 'account-avatar', 'Container', AccountRole.Avatar, Style$2.Avatar, {}, 'Initial', { ...PILL, minHeight: 'var(--iox-account-avatar-size)', padding: ZERO$4 });
6204
+ const initial = words(create, 'account-initial', AccountRole.Initial, Style$2.Label, t.initial, 'Initial', { ...WORDS, lineHeight: '1' }, 'span');
6196
6205
  bindSlot(initial, 'content', CUSTOMER_SLOT, 'initial');
6197
6206
  avatar.children = [initial];
6198
- const name = words(create, 'account-name', AccountRole.Name, Style$1.Label, t.name, 'Name', WORDS, 'span');
6207
+ const name = words(create, 'account-name', AccountRole.Name, Style$2.Label, t.name, 'Name', WORDS, 'span');
6199
6208
  bindSlot(name, 'content', CUSTOMER_SLOT, 'name');
6200
6209
  signedIn.children = [avatar, name];
6201
6210
  entry.children = [signedOut, signedIn];
@@ -6205,35 +6214,35 @@ function buildAccountEntryRecipe(create, lang = 'en') {
6205
6214
  /** The sign-in dialog (board 12): Google, or an email and the six-digit code sent to it. Never a password. */
6206
6215
  function buildSignInDialogRecipe(create, lang = 'en') {
6207
6216
  const t = accountRecipeWords(lang);
6208
- const dialog = recipePart(create, 'sign-in', 'Dialog', AccountRole.SignIn, Style$1.Dialog, {}, ACCOUNT_LABELS.signIn, { width: '400px', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '14px' });
6217
+ const dialog = recipePart(create, 'sign-in', 'Dialog', AccountRole.SignIn, Style$2.Dialog, {}, ACCOUNT_LABELS.signIn, { width: '400px', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '14px' });
6209
6218
  writeProp(dialog, 'placement', 'center');
6210
6219
  writeProp(dialog, 'closeOnBackdrop', true);
6211
6220
  writeProp(dialog, 'showCloseButton', false);
6212
6221
  writeProp(dialog, 'ariaLabel', t.title);
6213
6222
  const head = recipePart(create, 'sign-in-head', 'Container', null, null, {}, 'Head', { ...ROW, width: '100%', justifyContent: 'space-between', gap: '12px' });
6214
- const title = recipePart(create, 'sign-in-title', 'Heading', AccountRole.Title, Style$1.Title, { content: t.title, level: 'h2' }, 'Title', WORDS);
6215
- const close = labelled(create, 'sign-in-close', AccountRole.Close, Style$1.Ghost, t.close, 'Close', TEXT_BUTTON, Style$1.Small);
6223
+ const title = recipePart(create, 'sign-in-title', 'Heading', AccountRole.Title, Style$2.Title, { content: t.title, level: 'h2' }, 'Title', WORDS);
6224
+ const close = labelled(create, 'sign-in-close', AccountRole.Close, Style$2.Ghost, t.close, 'Close', TEXT_BUTTON, Style$2.Small);
6216
6225
  onClick$1(close, 'closeDialog', dialog.id ?? '');
6217
6226
  head.children = [title, close];
6218
- const why = words(create, 'sign-in-why', AccountRole.Why, Style$1.Small, t.why, 'Why sign in');
6227
+ const why = words(create, 'sign-in-why', AccountRole.Why, Style$2.Small, t.why, 'Why sign in');
6219
6228
  const providers = recipePart(create, 'sign-in-providers', 'Container', AccountRole.Providers, null, {}, 'Sign-in providers', { ...COLUMN, gap: '8px' });
6220
6229
  providers.children = SIGN_IN_PROVIDERS.map(p => providerButton(create, p, t.providers[p]));
6221
- const providerError = words(create, 'sign-in-provider-error', AccountRole.ProviderError, Style$1.Error, '', 'Provider error');
6222
- const or = words(create, 'sign-in-or', AccountRole.Or, Style$1.Small, t.or, 'Or', { ...WORDS, width: '100%', textAlign: 'center' });
6230
+ const providerError = words(create, 'sign-in-provider-error', AccountRole.ProviderError, Style$2.Error, '', 'Provider error');
6231
+ const or = words(create, 'sign-in-or', AccountRole.Or, Style$2.Small, t.or, 'Or', { ...WORDS, width: '100%', textAlign: 'center' });
6223
6232
  const emailStep = recipePart(create, 'sign-in-email-step', 'Container', AccountRole.EmailStep, null, {}, 'Email step', { ...COLUMN, gap: '10px' });
6224
- const sendCode = labelled(create, 'sign-in-send-code', AccountRole.SendCode, Style$1.Primary, t.sendCode, 'Send me a code', FULL);
6233
+ const sendCode = labelled(create, 'sign-in-send-code', AccountRole.SendCode, Style$2.Primary, t.sendCode, 'Send me a code', FULL);
6225
6234
  emailStep.children = [
6226
6235
  field(create, 'sign-in-email', AccountRole.Email, SignInFieldName.Email, 'email', t.email, t.emailPlaceholder),
6227
6236
  sendCode,
6228
6237
  ];
6229
6238
  const codeStep = recipePart(create, 'sign-in-code-step', 'Container', AccountRole.CodeStep, null, {}, 'Code step', { ...COLUMN, gap: '10px' });
6230
- const sent = words(create, 'sign-in-code-sent', AccountRole.CodeSent, Style$1.Small, t.codeSent, 'Code sent to');
6231
- const verify = labelled(create, 'sign-in-verify', AccountRole.Verify, Style$1.Primary, t.verify, 'Sign in', FULL);
6239
+ const sent = words(create, 'sign-in-code-sent', AccountRole.CodeSent, Style$2.Small, t.codeSent, 'Code sent to');
6240
+ const verify = labelled(create, 'sign-in-verify', AccountRole.Verify, Style$2.Primary, t.verify, 'Sign in', FULL);
6232
6241
  const again = recipePart(create, 'sign-in-again', 'Container', null, null, {}, 'Send again', { ...ROW, flexWrap: 'wrap', gap: '4px 12px' });
6233
6242
  again.children = [
6234
- words(create, 'sign-in-code-valid', AccountRole.CodeValid, Style$1.Small, t.codeValid, 'Valid for', WORDS, 'span'),
6235
- labelled(create, 'sign-in-send-again', AccountRole.SendAgain, Style$1.Ghost, t.sendAgain, 'Send again', TEXT_BUTTON, Style$1.Small),
6236
- labelled(create, 'sign-in-other-email', AccountRole.OtherEmail, Style$1.Ghost, t.otherEmail, 'Use another email', TEXT_BUTTON, Style$1.Small),
6243
+ words(create, 'sign-in-code-valid', AccountRole.CodeValid, Style$2.Small, t.codeValid, 'Valid for', WORDS, 'span'),
6244
+ labelled(create, 'sign-in-send-again', AccountRole.SendAgain, Style$2.Ghost, t.sendAgain, 'Send again', TEXT_BUTTON, Style$2.Small),
6245
+ labelled(create, 'sign-in-other-email', AccountRole.OtherEmail, Style$2.Ghost, t.otherEmail, 'Use another email', TEXT_BUTTON, Style$2.Small),
6237
6246
  ];
6238
6247
  codeStep.children = [
6239
6248
  sent,
@@ -6241,17 +6250,17 @@ function buildSignInDialogRecipe(create, lang = 'en') {
6241
6250
  verify,
6242
6251
  again,
6243
6252
  ];
6244
- const dialogError = words(create, 'sign-in-dialog-error', AccountRole.DialogError, Style$1.Error, '', 'Error');
6253
+ const dialogError = words(create, 'sign-in-dialog-error', AccountRole.DialogError, Style$2.Error, '', 'Error');
6245
6254
  dialog.children = [head, why, providers, providerError, or, emailStep, codeStep, dialogError];
6246
6255
  return dialog;
6247
6256
  }
6248
6257
  /** "Continue with <brand>" with the brand's own mark (its button guidelines), wearing the look's secondary button. */
6249
6258
  function providerButton(create, provider, label) {
6250
6259
  const name = signInProviderName(provider);
6251
- const button = recipeButton(create, `sign-in-${provider}`, PROVIDER_ROLES[provider], Style$1.Secondary, `Continue with ${name}`, '', { ...FULL, gap: '8px' });
6260
+ const button = recipeButton(create, `sign-in-${provider}`, PROVIDER_ROLES[provider], Style$2.Secondary, `Continue with ${name}`, '', { ...FULL, gap: '8px' });
6252
6261
  button.children = [
6253
6262
  recipePart(create, `sign-in-${provider}-mark`, 'Image', null, null, { src: signInProviderMarkUri(provider), alt: '' }, `${name} mark`, { width: '18px', height: '18px', minHeight: 'auto', flexShrink: '0' }),
6254
- words(create, `sign-in-${provider}-label`, null, Style$1.Label, label, 'Text', WORDS, 'span'),
6263
+ words(create, `sign-in-${provider}-label`, null, Style$2.Label, label, 'Text', WORDS, 'span'),
6255
6264
  ];
6256
6265
  return button;
6257
6266
  }
@@ -6785,7 +6794,7 @@ var ConsentActionType;
6785
6794
  ConsentActionType["OpenPreferences"] = "openConsentPreferences";
6786
6795
  ConsentActionType["CloseDialog"] = "closeDialog";
6787
6796
  })(ConsentActionType || (ConsentActionType = {}));
6788
- var Style;
6797
+ var Style$1;
6789
6798
  (function (Style) {
6790
6799
  Style["Dialog"] = "dialog";
6791
6800
  Style["Title"] = "h3";
@@ -6797,7 +6806,7 @@ var Style;
6797
6806
  Style["Label"] = "button-label";
6798
6807
  Style["Card"] = "card";
6799
6808
  Style["Field"] = "field";
6800
- })(Style || (Style = {}));
6809
+ })(Style$1 || (Style$1 = {}));
6801
6810
  /** The banner's words — mechanism microcopy (never policy), in the site's language. */
6802
6811
  const CONSENT_WORDS = {
6803
6812
  en: {
@@ -6844,7 +6853,7 @@ function onClickRun(node, actions) {
6844
6853
  /** A button whose words are its own Text (the shop and account recipes' shape). */
6845
6854
  function button(create, key, role, style, words, label, base = {}) {
6846
6855
  const node = recipeButton(create, key, role ?? '', style, label, '', { width: 'auto', height: 'auto', flexShrink: '0', ...base });
6847
- node.children = [recipeText(create, `${key}-label`, null, Style.Label, words, 'Text', WORDS, 'span')];
6856
+ node.children = [recipeText(create, `${key}-label`, null, Style$1.Label, words, 'Text', WORDS, 'span')];
6848
6857
  return node;
6849
6858
  }
6850
6859
  /** The three roots. Pure over the factory: the builder and the composer get the same tree. */
@@ -6854,43 +6863,43 @@ function buildConsentRecipe(create, options = {}) {
6854
6863
  .filter((c, i, all) => c !== ConsentCategory.Necessary && all.indexOf(c) === i);
6855
6864
  const withPreferences = categories.length >= PREFERENCES_FROM_CATEGORIES;
6856
6865
  // ── Preferences first: the banner's buttons name it ─────────────────────────────────────────────────────────────
6857
- const preferences = recipePart(create, 'consent-preferences', 'Dialog', ConsentRole.PreferencesDialog, Style.Dialog, {}, CONSENT_LABELS.preferences, { width: '480px', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '12px' });
6866
+ const preferences = recipePart(create, 'consent-preferences', 'Dialog', ConsentRole.PreferencesDialog, Style$1.Dialog, {}, CONSENT_LABELS.preferences, { width: '480px', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '12px' });
6858
6867
  writeProp(preferences, 'placement', 'center');
6859
6868
  writeProp(preferences, 'closeOnBackdrop', true);
6860
6869
  writeProp(preferences, 'showCloseButton', true);
6861
6870
  writeProp(preferences, 'ariaLabel', t.prefsTitle);
6862
6871
  const card = (key, category, control) => {
6863
- const node = recipePart(create, key, 'Container', ConsentRole.Category, Style.Card, {}, t.categories[category].name, { ...ROW, width: '100%', alignItems: 'flex-start', gap: '12px', padding: '12px 14px 12px 14px' });
6872
+ const node = recipePart(create, key, 'Container', ConsentRole.Category, Style$1.Card, {}, t.categories[category].name, { ...ROW, width: '100%', alignItems: 'flex-start', gap: '12px', padding: '12px 14px 12px 14px' });
6864
6873
  const text = recipePart(create, `${key}-text`, 'Container', null, null, {}, 'Words', { ...COLUMN, flexGrow: '1', width: 'auto', gap: '2px' });
6865
6874
  text.children = [
6866
- recipeText(create, `${key}-name`, null, Style.Body, t.categories[category].name, 'Name', { ...WORDS, fontWeight: '600' }),
6867
- recipeText(create, `${key}-desc`, null, Style.Body, t.categories[category].desc, 'Description'),
6875
+ recipeText(create, `${key}-name`, null, Style$1.Body, t.categories[category].name, 'Name', { ...WORDS, fontWeight: '600' }),
6876
+ recipeText(create, `${key}-desc`, null, Style$1.Body, t.categories[category].desc, 'Description'),
6868
6877
  ];
6869
6878
  node.children = [text, control];
6870
6879
  return node;
6871
6880
  };
6872
- const switchOf = (category) => recipePart(create, `consent-${category}-switch`, 'Field', null, Style.Field,
6881
+ const switchOf = (category) => recipePart(create, `consent-${category}-switch`, 'Field', null, Style$1.Field,
6873
6882
  // The engine's consent runtime binds the switch to the decision by its name and records on change.
6874
6883
  { label: t.categories[category].name, labelHidden: true, control: 'switch', name: `consent-${category}` }, t.categories[category].name, { width: 'auto', flexShrink: '0', minHeight: 'auto', margin: ZERO$4 });
6875
- const prefsReject = button(create, 'consent-preferences-reject', null, Style.Secondary, t.reject, 'Reject all');
6884
+ const prefsReject = button(create, 'consent-preferences-reject', null, Style$1.Secondary, t.reject, 'Reject all');
6876
6885
  onClickRun(prefsReject, [{ type: ConsentActionType.Deny }, { type: ConsentActionType.CloseDialog, target: preferences.id }]);
6877
- const prefsDone = button(create, 'consent-preferences-done', null, Style.Ghost, t.done, 'Done');
6886
+ const prefsDone = button(create, 'consent-preferences-done', null, Style$1.Ghost, t.done, 'Done');
6878
6887
  onClickRun(prefsDone, [{ type: ConsentActionType.CloseDialog, target: preferences.id }]);
6879
- const prefsAccept = button(create, 'consent-preferences-accept', null, Style.Primary, t.accept, 'Accept all');
6888
+ const prefsAccept = button(create, 'consent-preferences-accept', null, Style$1.Primary, t.accept, 'Accept all');
6880
6889
  onClickRun(prefsAccept, [{ type: ConsentActionType.Grant }, { type: ConsentActionType.CloseDialog, target: preferences.id }]);
6881
6890
  const end = recipePart(create, 'consent-preferences-end', 'Container', null, null, {}, 'Done and accept', { ...ROW, gap: '8px' });
6882
6891
  end.children = [prefsDone, prefsAccept];
6883
6892
  const foot = recipePart(create, 'consent-preferences-foot', 'Container', null, null, {}, 'Buttons', { ...ROW, width: '100%', flexWrap: 'wrap', justifyContent: 'space-between', gap: '8px' });
6884
6893
  foot.children = [prefsReject, end];
6885
6894
  preferences.children = [
6886
- recipePart(create, 'consent-preferences-title', 'Heading', null, Style.Title, { content: t.prefsTitle, level: 'h2' }, 'Title', WORDS),
6887
- recipeText(create, 'consent-preferences-sub', null, Style.Body, t.prefsSub, 'Where to change it'),
6888
- card('consent-necessary', ConsentCategory.Necessary, recipeText(create, 'consent-necessary-on', null, Style.Body, t.alwaysOn, 'Always on', { ...WORDS, flexShrink: '0', fontWeight: '600' }, 'span')),
6895
+ recipePart(create, 'consent-preferences-title', 'Heading', null, Style$1.Title, { content: t.prefsTitle, level: 'h2' }, 'Title', WORDS),
6896
+ recipeText(create, 'consent-preferences-sub', null, Style$1.Body, t.prefsSub, 'Where to change it'),
6897
+ card('consent-necessary', ConsentCategory.Necessary, recipeText(create, 'consent-necessary-on', null, Style$1.Body, t.alwaysOn, 'Always on', { ...WORDS, flexShrink: '0', fontWeight: '600' }, 'span')),
6889
6898
  ...categories.map(c => card(`consent-${c}`, c, switchOf(c))),
6890
6899
  foot,
6891
6900
  ];
6892
6901
  // ── The banner ─────────────────────────────────────────────────────────────────────────────────────────────────
6893
- const banner = recipePart(create, 'consent-banner', 'Dialog', ConsentRole.Banner, Style.Dialog, {}, CONSENT_LABELS.banner, { width: '100%', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '0px' });
6902
+ const banner = recipePart(create, 'consent-banner', 'Dialog', ConsentRole.Banner, Style$1.Dialog, {}, CONSENT_LABELS.banner, { width: '100%', maxWidth: '100%', display: 'flex', flexDirection: 'column', gap: '0px' });
6894
6903
  writeProp(banner, 'consentRole', true);
6895
6904
  writeProp(banner, 'placement', 'bottom');
6896
6905
  writeProp(banner, 'closeOnBackdrop', false); // clicking away is not consent
@@ -6898,18 +6907,18 @@ function buildConsentRecipe(create, options = {}) {
6898
6907
  writeProp(banner, 'ariaLabel', t.title);
6899
6908
  const words = recipePart(create, 'consent-words', 'Container', null, null, {}, 'Words', { ...COLUMN, flexGrow: '1', width: 'auto', gap: '4px' });
6900
6909
  words.children = [
6901
- recipePart(create, 'consent-title', 'Heading', ConsentRole.Title, Style.Title, { content: t.title, level: 'h2' }, 'Title', WORDS),
6902
- recipeText(create, 'consent-body', ConsentRole.Body, Style.Body, t.body, 'Words', { ...WORDS, maxWidth: '560px' }),
6910
+ recipePart(create, 'consent-title', 'Heading', ConsentRole.Title, Style$1.Title, { content: t.title, level: 'h2' }, 'Title', WORDS),
6911
+ recipeText(create, 'consent-body', ConsentRole.Body, Style$1.Body, t.body, 'Words', { ...WORDS, maxWidth: '560px' }),
6903
6912
  ...(options.privacyRoute
6904
- ? [recipePart(create, 'consent-privacy', 'Link', ConsentRole.Privacy, Style.Link,
6913
+ ? [recipePart(create, 'consent-privacy', 'Link', ConsentRole.Privacy, Style$1.Link,
6905
6914
  // Hugs its words: the words column stretches its children, and a stretched link's box (its focus ring, its
6906
6915
  // hover) ran the column's whole width (AW1 Rule 0, 2026-11-21). `flex-start` is logical — the start side in Hebrew too.
6907
6916
  { label: options.privacyLabel || t.privacy, linkType: 'page', pageRoute: options.privacyRoute }, 'Privacy policy', { ...WORDS, alignSelf: 'flex-start' })]
6908
6917
  : []),
6909
6918
  ];
6910
- const accept = button(create, 'consent-accept', ConsentRole.Accept, Style.Primary, t.accept, 'Accept all');
6919
+ const accept = button(create, 'consent-accept', ConsentRole.Accept, Style$1.Primary, t.accept, 'Accept all');
6911
6920
  onClickRun(accept, [{ type: ConsentActionType.Grant }, { type: ConsentActionType.CloseDialog, target: banner.id }]);
6912
- const reject = button(create, 'consent-reject', ConsentRole.Reject, Style.Secondary, t.reject, 'Reject all');
6921
+ const reject = button(create, 'consent-reject', ConsentRole.Reject, Style$1.Secondary, t.reject, 'Reject all');
6913
6922
  onClickRun(reject, [{ type: ConsentActionType.Deny }, { type: ConsentActionType.CloseDialog, target: banner.id }]);
6914
6923
  // iox-ui#95: on a phone the buttons take their own line, and Accept beside Reject was wider than the words' column
6915
6924
  // (Hebrew and a large type pushed Reject past the dialog's edge). The pair wraps inside the column instead, and
@@ -6919,7 +6928,7 @@ function buildConsentRecipe(create, options = {}) {
6919
6928
  const buttons = recipePart(create, 'consent-buttons', 'Container', null, null, {}, 'Buttons', { ...COLUMN, width: 'auto', maxWidth: '100%', flexShrink: '0', alignItems: 'center', gap: '6px' });
6920
6929
  buttons.children = [choices];
6921
6930
  if (withPreferences) {
6922
- const prefs = button(create, 'consent-open-preferences', ConsentRole.Preferences, Style.Ghost, t.preferences, 'Preferences');
6931
+ const prefs = button(create, 'consent-open-preferences', ConsentRole.Preferences, Style$1.Ghost, t.preferences, 'Preferences');
6923
6932
  onClickRun(prefs, [{ type: ConsentActionType.OpenPreferences, target: preferences.id }]);
6924
6933
  buttons.children.push(prefs);
6925
6934
  }
@@ -6927,11 +6936,252 @@ function buildConsentRecipe(create, options = {}) {
6927
6936
  row.children = [words, buttons];
6928
6937
  banner.children = [row];
6929
6938
  // ── The way back ───────────────────────────────────────────────────────────────────────────────────────────────
6930
- const settings = button(create, 'consent-settings', ConsentRole.Settings, Style.Ghost, t.settings, CONSENT_LABELS.settings);
6939
+ const settings = button(create, 'consent-settings', ConsentRole.Settings, Style$1.Ghost, t.settings, CONSENT_LABELS.settings);
6931
6940
  onClickRun(settings, [{ type: ConsentActionType.OpenPreferences, target: preferences.id }]);
6932
6941
  return { banner, preferences, settings };
6933
6942
  }
6934
6943
 
6944
+ /**
6945
+ * THE POPUP (popups-plan.md, PU1; PU-D1…PU-D18) — the owner's own news, arriving once, as ordinary builder nodes. A popup
6946
+ * is a Dialog stamped from this ONE recipe (PU-D1): the builder's palette (PU2) and generation-core's composer (PU3) stamp
6947
+ * it with their own node factories, so a generated popup and a hand-placed one are the same tree.
6948
+ *
6949
+ * Popup Dialog popup (kind · form · arrive · again · dates — the popup traits below)
6950
+ * › Container popup.media? Image (the owner's picture) — `art: picture`
6951
+ * › Container popup.content
6952
+ * Text popup.eyebrow? (only from a date the owner gave)
6953
+ * Heading popup.title (h2, worn as the look's h3 — its smallest heading style)
6954
+ * Text popup.body (≤ 160 characters)
6955
+ * <form> popup.form? (newsletter: the caller's forms-core newsletter preset)
6956
+ * Link popup.action? (ONE quiet action — a page link; a form's Send is its own)
6957
+ * › the Dialog's own ✕ (44 × 44, named in the site's language by the runtime)
6958
+ *
6959
+ * Its LOOK is the site's element styles (dialog, h4, small, link) — never a colour. Its words are the OWNER's (title, body,
6960
+ * eyebrow, the action's label), passed in; the recipe's own words are mechanism microcopy only ("Close", "Send").
6961
+ * Framework-free: no actions-core import (actions-core reads this module, never the other way).
6962
+ */
6963
+ var PopupRole;
6964
+ (function (PopupRole) {
6965
+ PopupRole["Popup"] = "popup";
6966
+ PopupRole["Media"] = "popup.media";
6967
+ PopupRole["Content"] = "popup.content";
6968
+ PopupRole["Eyebrow"] = "popup.eyebrow";
6969
+ PopupRole["Title"] = "popup.title";
6970
+ PopupRole["Body"] = "popup.body";
6971
+ PopupRole["Form"] = "popup.form";
6972
+ PopupRole["Action"] = "popup.action";
6973
+ })(PopupRole || (PopupRole = {}));
6974
+ const POPUP_ROLES = new Set(Object.values(PopupRole));
6975
+ /** PU-D3: what the popup says (contract POPUP `kind`). Seasonal is not a kind — it is dates on any kind. */
6976
+ var PopupKind;
6977
+ (function (PopupKind) {
6978
+ PopupKind["Announcement"] = "announcement";
6979
+ PopupKind["Offer"] = "offer";
6980
+ PopupKind["Newsletter"] = "newsletter";
6981
+ })(PopupKind || (PopupKind = {}));
6982
+ /** §3b: where it sits (contract POPUP `form`). Only `centred` is modal, and only a newsletter's on a laptop. */
6983
+ var PopupForm;
6984
+ (function (PopupForm) {
6985
+ PopupForm["Corner"] = "corner";
6986
+ PopupForm["Bar"] = "bar";
6987
+ PopupForm["Centred"] = "centred";
6988
+ })(PopupForm || (PopupForm = {}));
6989
+ /** PU-D5: what makes it arrive (contract POPUP `arrive`). `leaving` waits for PU2b (drawn as `time`). */
6990
+ var PopupArrive;
6991
+ (function (PopupArrive) {
6992
+ PopupArrive["Scroll"] = "scroll";
6993
+ PopupArrive["Time"] = "time";
6994
+ PopupArrive["ScrollOrTime"] = "scrollOrTime";
6995
+ PopupArrive["Leaving"] = "leaving";
6996
+ PopupArrive["Button"] = "button";
6997
+ })(PopupArrive || (PopupArrive = {}));
6998
+ /** PU-D6: when it may show again after a close (contract POPUP `again`). "Every page view" is refused. */
6999
+ var PopupAgain;
7000
+ (function (PopupAgain) {
7001
+ PopupAgain["Days"] = "days";
7002
+ PopupAgain["Visit"] = "visit";
7003
+ PopupAgain["Once"] = "once";
7004
+ })(PopupAgain || (PopupAgain = {}));
7005
+ /** The contract's `art`. */
7006
+ var PopupArt;
7007
+ (function (PopupArt) {
7008
+ PopupArt["None"] = "none";
7009
+ PopupArt["Picture"] = "picture";
7010
+ })(PopupArt || (PopupArt = {}));
7011
+ /**
7012
+ * The Dialog traits a popup carries (Bindings ▸ Popup, PU2). Like the menu traits (HI2a) they have NO default: a Dialog
7013
+ * without `popupKind` is not a popup and renders exactly as before (R-H4). `modal` is the one Dialog trait the popup
7014
+ * adds for every Dialog: absent = modal, so every existing Dialog keeps `showModal()`.
7015
+ */
7016
+ var PopupTrait;
7017
+ (function (PopupTrait) {
7018
+ PopupTrait["Kind"] = "popupKind";
7019
+ PopupTrait["Form"] = "popupForm";
7020
+ PopupTrait["Arrive"] = "popupArrive";
7021
+ /** `scroll`: the share of the FIRST screen scrolled (default 0.5). */
7022
+ PopupTrait["Screens"] = "popupScreens";
7023
+ /** `scroll`: the share of the whole PAGE scrolled instead (a newsletter's 40%). */
7024
+ PopupTrait["PageShare"] = "popupPageShare";
7025
+ /** `time`: seconds on the page (visible tab), never under 3. */
7026
+ PopupTrait["Seconds"] = "popupSeconds";
7027
+ PopupTrait["Again"] = "popupAgain";
7028
+ /** `again: days`: how many (default 30). */
7029
+ PopupTrait["Days"] = "popupDays";
7030
+ /** PU-D18: whole days, `YYYY-MM-DD`, on the visitor's clock. */
7031
+ PopupTrait["ShowFrom"] = "popupFrom";
7032
+ PopupTrait["ShowUntil"] = "popupUntil";
7033
+ /** "Show it again to everyone" raises it; a remembered close of an older version is forgotten. */
7034
+ PopupTrait["Version"] = "popupVersion";
7035
+ })(PopupTrait || (PopupTrait = {}));
7036
+ /** A Dialog's own trait: false = non-modal (`showPopover()`, the page stays usable). Absent = modal (as ever). */
7037
+ const DIALOG_MODAL_TRAIT = 'modal';
7038
+ /** The attributes a popup renders on its `<dialog>` — read by the shared CSS (placement, motion) and the popup runtime. */
7039
+ var PopupAttribute;
7040
+ (function (PopupAttribute) {
7041
+ PopupAttribute["Kind"] = "data-iox-popup";
7042
+ PopupAttribute["Form"] = "data-iox-popup-form";
7043
+ PopupAttribute["Arrive"] = "data-iox-popup-arrive";
7044
+ PopupAttribute["Screens"] = "data-iox-popup-screens";
7045
+ PopupAttribute["PageShare"] = "data-iox-popup-page";
7046
+ PopupAttribute["Seconds"] = "data-iox-popup-seconds";
7047
+ PopupAttribute["Again"] = "data-iox-popup-again";
7048
+ PopupAttribute["Days"] = "data-iox-popup-days";
7049
+ PopupAttribute["ShowFrom"] = "data-iox-popup-from";
7050
+ PopupAttribute["ShowUntil"] = "data-iox-popup-until";
7051
+ PopupAttribute["Version"] = "data-iox-popup-version";
7052
+ /** A non-modal Dialog (a popup's corner / bar, or `modal: false`): opened with `showPopover()`. */
7053
+ PopupAttribute["NonModal"] = "data-iox-dialog-nonmodal";
7054
+ /** §8 / R-H8: its words never become the page's search snippet. */
7055
+ PopupAttribute["NoSnippet"] = "data-nosnippet";
7056
+ })(PopupAttribute || (PopupAttribute = {}));
7057
+ const POPUP_ATTRIBUTES = Object.values(PopupAttribute);
7058
+ const TRAIT_ATTRIBUTE = [
7059
+ [PopupTrait.Arrive, PopupAttribute.Arrive], [PopupTrait.Screens, PopupAttribute.Screens], [PopupTrait.PageShare, PopupAttribute.PageShare],
7060
+ [PopupTrait.Seconds, PopupAttribute.Seconds], [PopupTrait.Again, PopupAttribute.Again], [PopupTrait.Days, PopupAttribute.Days],
7061
+ [PopupTrait.ShowFrom, PopupAttribute.ShowFrom], [PopupTrait.ShowUntil, PopupAttribute.ShowUntil], [PopupTrait.Version, PopupAttribute.Version],
7062
+ ];
7063
+ const inEnum = (e, v) => typeof v === 'string' && Object.values(e).includes(v);
7064
+ const isOff = (v) => v === false || v === 'false';
7065
+ const text = (v) => (typeof v === 'number' && Number.isFinite(v) ? String(v) : typeof v === 'string' ? v.trim() : '');
7066
+ /** A popup's form, judged: `centred` only for a newsletter (PU-D2) — any other kind asking for it sits in the corner. */
7067
+ function popupFormOf(kind, form) {
7068
+ const f = inEnum(PopupForm, form) ? form : POPUP_KIND_MIX[inEnum(PopupKind, kind) ? kind : PopupKind.Offer].form;
7069
+ return f === PopupForm.Centred && kind !== PopupKind.Newsletter ? PopupForm.Corner : f;
7070
+ }
7071
+ /** True when a Dialog opens as a modal: a popup only when its form is `centred`; any other Dialog unless `modal: false`. */
7072
+ function dialogIsModal(get) {
7073
+ const kind = get(PopupTrait.Kind);
7074
+ if (inEnum(PopupKind, kind))
7075
+ return popupFormOf(kind, get(PopupTrait.Form)) === PopupForm.Centred;
7076
+ return !isOff(get(DIALOG_MODAL_TRAIT));
7077
+ }
7078
+ /**
7079
+ * The attributes a Dialog renders for the popup and the non-modal opening — ONE function, applied by every renderer
7080
+ * through `nodeA11yAttributes` (the engine's string path, its component path, the builder canvas). A plain modal Dialog
7081
+ * gets `{}` and renders exactly as before.
7082
+ */
7083
+ function popupDialogAttributes(get) {
7084
+ const out = {};
7085
+ if (!dialogIsModal(get))
7086
+ out[PopupAttribute.NonModal] = '';
7087
+ const kind = get(PopupTrait.Kind);
7088
+ if (!inEnum(PopupKind, kind))
7089
+ return out;
7090
+ out[PopupAttribute.Kind] = kind;
7091
+ out[PopupAttribute.Form] = popupFormOf(kind, get(PopupTrait.Form));
7092
+ out[PopupAttribute.NoSnippet] = '';
7093
+ for (const [trait, attr] of TRAIT_ATTRIBUTE) {
7094
+ const v = text(get(trait));
7095
+ if (v)
7096
+ out[attr] = v;
7097
+ }
7098
+ return out;
7099
+ }
7100
+ /** §3a + PU-D6: each kind's defaults (contract POPUP `named` — generation-core's spec holds them equal). */
7101
+ const POPUP_KIND_MIX = {
7102
+ [PopupKind.Announcement]: { form: PopupForm.Bar, arrive: PopupArrive.Scroll, again: PopupAgain.Visit, art: PopupArt.None },
7103
+ [PopupKind.Offer]: { form: PopupForm.Corner, arrive: PopupArrive.ScrollOrTime, again: PopupAgain.Days, art: PopupArt.Picture },
7104
+ [PopupKind.Newsletter]: { form: PopupForm.Corner, arrive: PopupArrive.ScrollOrTime, again: PopupAgain.Days, art: PopupArt.None },
7105
+ };
7106
+ /** §3a: when each kind arrives by default (contract POPUP `arrival`). */
7107
+ const POPUP_KIND_ARRIVAL = {
7108
+ [PopupKind.Announcement]: { screens: 0.5 },
7109
+ [PopupKind.Offer]: { screens: 0.5, seconds: 8 },
7110
+ [PopupKind.Newsletter]: { pageShare: 0.4, seconds: 25 },
7111
+ };
7112
+ /** The recipe's OWN words — mechanism microcopy, in the site's language. The rest is the owner's. */
7113
+ const POPUP_WORDS = {
7114
+ en: { close: 'Close', send: 'Send', label: { [PopupKind.Announcement]: 'Announcement', [PopupKind.Offer]: 'Offer', [PopupKind.Newsletter]: 'Newsletter' } },
7115
+ he: { close: 'סגירה', send: 'שליחה', label: { [PopupKind.Announcement]: 'הודעה', [PopupKind.Offer]: 'הצעה', [PopupKind.Newsletter]: 'ניוזלטר' } },
7116
+ };
7117
+ /** The popup's mechanism words in `lang` (English for any language it does not speak yet). */
7118
+ function popupWords(lang = 'en') {
7119
+ return POPUP_WORDS[recipeLang(lang)];
7120
+ }
7121
+ var Style;
7122
+ (function (Style) {
7123
+ Style["Dialog"] = "dialog";
7124
+ /** The look's smallest heading style (there is no h4 element style): the plan's "h4-sized" title. */
7125
+ Style["Title"] = "h3";
7126
+ Style["Body"] = "small";
7127
+ Style["Eyebrow"] = "eyebrow";
7128
+ Style["Link"] = "link";
7129
+ })(Style || (Style = {}));
7130
+ /** §6: a heading of at most this many words; a body of at most this many characters (the gate judges stored ones). */
7131
+ const POPUP_TITLE_MAX_WORDS = 6;
7132
+ const POPUP_BODY_MAX_CHARS = 160;
7133
+ /** The popup — ONE root. Pure over the factory: the builder and the composer get the same tree. */
7134
+ function buildPopupRecipe(create, options = {}) {
7135
+ const kind = options.kind ?? PopupKind.Offer;
7136
+ const mix = POPUP_KIND_MIX[kind];
7137
+ const form = popupFormOf(kind, options.form ?? mix.form);
7138
+ const art = form === PopupForm.Bar ? PopupArt.None : options.art ?? mix.art;
7139
+ const words = popupWords(options.lang);
7140
+ const title = options.title?.trim() ?? '';
7141
+ const bar = form === PopupForm.Bar;
7142
+ const picture = art === PopupArt.Picture;
7143
+ // The dialog style's padding holds, except around a picture: the picture runs to the card's edge, the words keep the pad.
7144
+ const { padding: _rowPad, ...row } = ROW;
7145
+ const root = recipePart(create, 'popup', 'Dialog', PopupRole.Popup, Style.Dialog, {}, `Popup — ${words.label[kind]}`, bar ? { ...row, width: '100%', maxWidth: '100%', gap: '16px' }
7146
+ : { ...row, width: picture ? '560px' : '420px', maxWidth: '100%', alignItems: 'stretch', gap: '0px', ...(picture ? { padding: ZERO$4 } : {}) });
7147
+ writeProp(root, 'placement', 'center'); // the popup's own form places it (iox-design.css), never the placement
7148
+ writeProp(root, 'closeOnBackdrop', true); // centred only: a click on the scrim is a close (remembered)
7149
+ writeProp(root, 'showCloseButton', true);
7150
+ writeProp(root, 'ariaLabel', title || words.label[kind]);
7151
+ writeProp(root, PopupTrait.Kind, kind);
7152
+ writeProp(root, PopupTrait.Form, form);
7153
+ writeProp(root, PopupTrait.Arrive, options.arrive ?? mix.arrive);
7154
+ writeProp(root, PopupTrait.Again, options.again ?? mix.again);
7155
+ const children = [];
7156
+ if (picture) {
7157
+ const media = recipePart(create, 'popup-media', 'Container', PopupRole.Media, null, {}, 'Picture', { ...COLUMN, width: '40%', flexShrink: '0', overflow: 'hidden' });
7158
+ media.children = [recipePart(create, 'popup-image', 'Image', null, null, { src: options.imageSrc ?? '', alt: options.imageAlt ?? '' }, 'Picture', { width: '100%', height: '100%', minHeight: '160px', objectFit: 'cover', margin: ZERO$4 })];
7159
+ children.push(media);
7160
+ }
7161
+ const content = recipePart(create, 'popup-content', 'Container', PopupRole.Content, null, {}, 'Words', bar ? { ...ROW, flexGrow: '1', flexWrap: 'wrap', gap: '4px 16px' }
7162
+ : { ...COLUMN, flexGrow: '1', width: 'auto', gap: '8px', ...(picture ? { padding: 'var(--iox-dialog-pad)' } : {}) });
7163
+ const parts = [];
7164
+ if (options.eyebrow?.trim())
7165
+ parts.push(recipeText(create, 'popup-eyebrow', PopupRole.Eyebrow, Style.Eyebrow, options.eyebrow.trim(), 'Dates'));
7166
+ parts.push(recipePart(create, 'popup-title', 'Heading', PopupRole.Title, Style.Title, { content: title, level: 'h2' }, 'Title', WORDS));
7167
+ if (options.body?.trim() || !bar)
7168
+ parts.push(recipeText(create, 'popup-body', PopupRole.Body, Style.Body, options.body?.trim() ?? '', 'Words'));
7169
+ if (kind === PopupKind.Newsletter && options.newsletterForm) {
7170
+ const f = options.newsletterForm;
7171
+ f.role = PopupRole.Form;
7172
+ parts.push(f);
7173
+ }
7174
+ else if (options.actionRoute) {
7175
+ // A popup's action is QUIET — never the page's primary button (§6): the look's link (a Link, the consent banner's
7176
+ // privacy link's shape), hugging its words — the column would stretch its box (focus ring, hover) to full width.
7177
+ parts.push(recipePart(create, 'popup-action', 'Link', PopupRole.Action, Style.Link, { label: options.actionLabel?.trim() ?? '', linkType: 'page', pageRoute: options.actionRoute }, 'Action', { ...WORDS, alignSelf: 'flex-start' }));
7178
+ }
7179
+ content.children = parts;
7180
+ children.push(content);
7181
+ root.children = children;
7182
+ return root;
7183
+ }
7184
+
6935
7185
  /**
6936
7186
  * @vectoriox/iox-ui/composite-core — composites built from the builder's own parts (composite-components
6937
7187
  * plan §3a). FRAMEWORK-FREE: the builder, the SSR engine and iox-cms (generation-core's composer, the site
@@ -6947,5 +7197,5 @@ function buildConsentRecipe(create, options = {}) {
6947
7197
  * Generated bundle index. Do not edit.
6948
7198
  */
6949
7199
 
6950
- export { ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, ACCORDION_DEFAULT_ONS, ACCORDION_ICONS, ACCORDION_ICON_GLYPH, ACCORDION_NEW_ITEM_WORDS, ACCORDION_NEW_ITEM_WORDS_HE, ACCORDION_WORDS, ACCORDION_WORDS_HE, ACCOUNT_GLOBAL_RECIPES, ACCOUNT_HIDDEN_ATTRIBUTE, ACCOUNT_LABELS, ACCOUNT_LIVE_CLASS, ACCOUNT_RECIPES, ACCOUNT_RECIPE_WORDS, ACCOUNT_ROLES, ACTIVATE_ON_ATTRIBUTE, ADDED_HOLD_MS, AccordionClass, AccordionDefaultOn, AccordionEditRefusal, AccordionIcon, AccordionKeyAction, AccordionRole, AccordionRuntime, AccountActionType, AccountRecipe, AccountRole, AccountRuntime, BADGE_TONES, BADGE_TONE_ICONS, BAR_INLINE_PAD, BadgeTone, CARD_LAYOUTS, CARD_LAYOUT_CUSTOM, CARD_PARTS, CARD_PARTS_OFF_AT_START, CARD_PART_ROLE, CARD_STACK_BREAKPOINT, CARD_WORDS, CARD_WORDS_HE, CAROUSEL_NAME, CAROUSEL_QUOTES, CAROUSEL_QUOTES_HE, CART_EMPTY_ATTRIBUTE, CART_LINE_ATTRIBUTE, CART_TITLE_COUNT_ATTRIBUTE, CART_WAITING_ATTRIBUTE, CHIP_ICON, CHIP_STYLE, COLOUR_OPTION_NAMES, COMPOSITE_ATTRIBUTE, COMPOSITE_KIND_ROLES, COMPOSITE_ROLE_SPECS, CONSENT_CHOICE_CATEGORIES, CONSENT_LABELS, CONSENT_ROLES, COUNTER_COUNT, COUNTER_ENTRANCE, COUNTER_SAMPLE_WORDS, CardLayout, CardPart, CardRole, CarouselA11y, CompositeBehaviourTrait, CompositeItemAction, CompositeKind, ConsentActionType, ConsentRole, DEFAULT_ON_ATTRIBUTE, DISCLOSURE_ITEM_KEY, DISCLOSURE_WORDS, DisclosureRole, EXCLUSIVE_KIND_ROLES, ExclusiveRuntime, ITEM_KEY_ATTRIBUTE, ITEM_OFF_EVENT, ITEM_ON_EVENT, ITEM_OPEN_STATE, LIGHTBOX_ARROWS_HIDE_AT, LIGHTBOX_LABEL, MARQUEE_DEFAULTS, MARQUEE_DEFAULT_SPEED_PX, MARQUEE_KEYFRAMES, MARQUEE_MAX_COPIES, MARQUEE_MIN_LOOP_S, MARQUEE_NODE_ATTRIBUTES, MARQUEE_NOSCRIPT_CSS, MARQUEE_PAUSE_GLYPH, MARQUEE_PLAY_GLYPH, MARQUEE_SAMPLE_WORDS, MARQUEE_SPEED_FACTOR, MARQUEE_WORDS, MULTIPLE_ATTRIBUTE, MarqueeAttribute, MarqueeDirection, MarqueeRole, MarqueeRuntime, MarqueeSpeed, MarqueeStyle, MarqueeTrait, NAMED_SWATCHES, NO_ELEMENT_STYLE, ON_ATTRIBUTE, ON_STATE, ORIENTATION_ATTRIBUTE, PILL_LABEL_STYLE, PREFERENCES_FROM_CATEGORIES, PROVIDER_ROLES, SCOPE_ATTRIBUTE, SEGMENTED_BADGE_TONE, SEGMENTED_BADGE_WORDS, SEGMENTED_BEHAVIOUR, SEGMENTED_MAX_OPTIONS, SEGMENTED_MIN_OPTIONS, SEGMENTED_NAME, SEGMENTED_NAME_HE, SEGMENTED_NEW_OPTION_WORDS, SEGMENTED_WORDS, SEGMENTED_WORDS_HE, SHOP_ADDED_ATTRIBUTE, SHOP_BINDS, SHOP_CHIP_MAX, SHOP_CLONE_ATTRIBUTE, SHOP_GLOBAL_RECIPES, SHOP_HIDDEN_ATTRIBUTE, SHOP_LABELS, SHOP_LIVE_CLASS, SHOP_RECIPES, SHOP_RECIPE_WORDS, SHOP_REST_WORDS_ATTRIBUTE, SHOP_ROLES, SHOP_SELECT_CLASS, SHOP_UNUSED_ATTRIBUTE, SIGNED_IN_ATTRIBUTE, SIGN_IN_STEP_ATTRIBUTE, SLIDER_BAR_ORDER, SLIDER_NAME_TRAIT, SLIDER_PART_GLYPH, SLIDER_PART_ROLES, SLIDER_PLACEMENT_TRAIT, SLIDER_PLAY_GLYPH, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_SWAPPING_ATTRIBUTE, SLIDER_TEXT_ATTRIBUTE, SLIDER_TYPE, SLIDER_WORDS, SLIDE_CAPTION_TRAIT, SLIDE_TO_ROW, SLIDE_TYPE, SUPERSEDED_BAR_PADDING, SWIPER_THEME_COLOR, SceneRole, SegmentedEditRefusal, SegmentedRole, SegmentedTrait, ShopActionType, ShopBindTarget, ShopPickerKind, ShopRecipe, ShopRole, ShopRuntime, SignInFieldName, SignInStep, SliderFlag, SliderPlacement, SliderRole, StructureEdit, StructureRefusal, TABS_ACTIVATE_ONS, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, TABS_LABEL_BIND_PROP, TABS_NEW_TAB_WORDS, TABS_NEW_TAB_WORDS_HE, TABS_ORIENTATIONS, TABS_STACK_BREAKPOINT, TABS_TEXT_BIND_PROP, TABS_WORDS, TABS_WORDS_HE, TabsActivateOn, TabsBehaviourTrait, TabsEditRefusal, TabsOrientation, TabsRole, UNTIL_FOUND, acceptsRefusal, accordionAnswerOf, accordionBehaviour, accordionDomIds, accordionFocusIndex, accordionHeadingLevel, accordionItemAttributes, accordionItemLabel, accordionItemOf, accordionItemState, accordionItems, accordionKeyAction, accordionPanelAttributes, accordionPanelOf, accordionPartStyle, accordionQuestionOf, accordionRegionAttributes, accordionRemovalRefusal, accordionRootAttributes, accordionRootOf, accordionRootOfItem, accordionRuntimeOf, accordionScope, accordionToContent, accordionToManual, accordionTrackAttributes, accordionTriggerAttributes, accordionTriggerOf, accordionWords, accountRecipeWords, accountRuntimeOf, accountSelector, addAccordionItem, addSegmentedOption, addTabPair, applyCardLayout, attachAccordionAt, attachAccordions, attachAccount, attachCarouselA11y, attachCompositeAt, attachExclusiveAt, attachMarquees, attachShop, attachSliderBar, badgeStyleId, badgeToneOf, bindShopPart, buildAccordionItem, buildAccordionRecipe, buildAccountEntryRecipe, buildAccountMenuRecipe, buildAddToCartRecipe, buildBadge, buildBuyNowRecipe, buildCardRecipe, buildCarouselRecipe, buildCartButtonRecipe, buildCartDrawerRecipe, buildChip, buildCompositeIcon, buildConsentRecipe, buildCounterRecipe, buildDisclosureRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildPriceRecipe, buildQuantityRecipe, buildReadingBarRecipe, buildSegmentedOption, buildSegmentedRecipe, buildSignInDialogRecipe, buildSliderPart, buildSlideshowRecipe, buildTabPair, buildTabsRecipe, buildVariantPickerRecipe, canOpenAtClickedItem, cardPartsOf, cardRootOf, cardTitleOf, cardWords, carouselOf, clearLayerStyles, closeAccordionItem, closestAccordion, closestAccordionItem, closestExclusive, closestExclusiveItemPart, compositeItemOf, compositeItems, compositeKindOfRole, compositeRootOf, compositeRowKeys, compositeScopeId, consentRecipeWords, detachAccordion, detectAccordionIcon, detectCardLayout, disclosureOpenByDefault, domSafeKey, exclusiveBehaviourOf, exclusiveDefaultOf, exclusiveItemLabel, exclusiveItemPartOf, exclusiveKindHasPanels, exclusiveKindOf, exclusiveLabelOf, exclusivePartAttributes, exclusiveRootAttributesOf, exclusiveRootHoldsTriggers, exclusiveRootOf, exclusiveRuntimeOf, exclusiveScopeFor, findByRole, hasLabelledRegion, hasSliderParts, headerBehaviourOfNode, headerInkOfNode, healSliderBars, initialAccordionOpen, isAccordionFromContent, isAccordionItemOn, isAccordionPart, isAccordionRoot, isAccountRole, isAnyCompositeRoot, isCardLinked, isCardRoot, isCompositeItem, isCompositeItemOn, isCompositePanel, isCompositeRoot, isCompositeTrigger, isDisclosurePart, isDisclosureRoot, isExclusiveItemOn, isExclusiveItemPart, isExclusiveKind, isExclusiveList, isExclusivePanel, isExclusivePanels, isExclusiveRoot, isExclusiveTrigger, isExclusiveTriggerDisabled, isLockedPart, isMarqueeRoot, isPartOfExclusiveScope, isPillNode, isSegmentedPart, isSegmentedRoot, isShopRole, isSlider, isSliderPart, isTabsFromContent, isTabsPart, isTabsRoot, isToggleKind, itemOpenTriggerIds, lightboxSliderOf, lookMarqueeSpeed, makeCompositePart, manualTabKeys, marqueeCopyCount, marqueeLoopSeconds, marqueePartElement, marqueePauseAttributes, marqueePauseGlyph, marqueeRootAttributes, marqueeRootOf, marqueeSettings, marqueeWords, migrateSliderControls, moveAccordionItem, moveSegmentedOption, moveTabPair, needsSliderMigration, nextAccordionState, nextItemKey, nextSegmentedKey, nextTabKey, onAccordionItemState, onCompositeItemState, onExclusiveItemState, openAccordionItem, parentInComposite, pickAccordionAutoBinds, pickTabsAutoBinds, readLayerStyle, readProp, readStyle, removeFromComposite, removeSegmentedOption, removeTabPair, renameAccordionItem, renameSegmentedOption, renameTab, repeatSourceOf, rowIndexOf, rowItemKey, rowSourceOf, runAccountAction, runCompositeItemAction, runShopAction, sameRepeatSource, segmentedAddRefusal, segmentedBadgeOf, segmentedDefaultOn, segmentedItemTriggerIds, segmentedKeyAction, segmentedKeys, segmentedLabel, segmentedOptionAttributes, segmentedOptionKey, segmentedOptionLabel, segmentedOptionLabelNodeOf, segmentedOptions, segmentedPartAttributes, segmentedRemovalRefusal, segmentedRootAttributes, segmentedRootAttributesOf, segmentedScopeFor, segmentedWords, serializeDomAttributes, setAccordionBehaviour, setAccordionIcon, setBadgeTone, setCardLinked, setCardPart, setHeaderBehaviour, setHeaderInk, setMarqueeSettings, setSegmentedBadge, setSegmentedBehaviour, setSliderFlag, setSliderPlacement, setTabsBehaviour, shopPickerKind, shopRecipeWords, shopRuntimeOf, shopSelector, shouldScrollToItem, slideIndexForRow, sliderCaptionOf, sliderCountText, sliderLiveRegion, sliderPart, sliderPartElement, sliderPauseAttributes, sliderPauseGlyph, sliderPlacementOf, sliderSlides, sliderWords, splitSliderChildren, structureRefusal, swatchFill, syncSliderParts, tabLabel, tabLabelNodeOf, tabListAttributes, tabPanelAttributes, tabPanelImageOf, tabPanelOf, tabPanelTextOf, tabPartKey, tabTriggerAttributes, tabTriggerOf, tabsBehaviour, tabsItemState, tabsItemTriggerIds, tabsKeyAction, tabsLabel, tabsListOf, tabsPanels, tabsPanelsOf, tabsPartAttributes, tabsPartnerOf, tabsRemovalRefusal, tabsRootAttributes, tabsScope, tabsScopeFor, tabsToContent, tabsToManual, tabsTriggers, tabsWords, variantGroupLabel, variantGroupNote, walkComposite, wantedSliderParts, writeLayerStyles, writeProp, writeStyles };
7200
+ export { ACCORDION_BIND_PROP, ACCORDION_CONTENT_LIMIT, ACCORDION_DEFAULT_ONS, ACCORDION_ICONS, ACCORDION_ICON_GLYPH, ACCORDION_NEW_ITEM_WORDS, ACCORDION_NEW_ITEM_WORDS_HE, ACCORDION_WORDS, ACCORDION_WORDS_HE, ACCOUNT_GLOBAL_RECIPES, ACCOUNT_HIDDEN_ATTRIBUTE, ACCOUNT_LABELS, ACCOUNT_LIVE_CLASS, ACCOUNT_RECIPES, ACCOUNT_RECIPE_WORDS, ACCOUNT_ROLES, ACTIVATE_ON_ATTRIBUTE, ADDED_HOLD_MS, AccordionClass, AccordionDefaultOn, AccordionEditRefusal, AccordionIcon, AccordionKeyAction, AccordionRole, AccordionRuntime, AccountActionType, AccountRecipe, AccountRole, AccountRuntime, BADGE_TONES, BADGE_TONE_ICONS, BAR_INLINE_PAD, BadgeTone, CARD_LAYOUTS, CARD_LAYOUT_CUSTOM, CARD_PARTS, CARD_PARTS_OFF_AT_START, CARD_PART_ROLE, CARD_STACK_BREAKPOINT, CARD_WORDS, CARD_WORDS_HE, CAROUSEL_NAME, CAROUSEL_QUOTES, CAROUSEL_QUOTES_HE, CART_EMPTY_ATTRIBUTE, CART_LINE_ATTRIBUTE, CART_TITLE_COUNT_ATTRIBUTE, CART_WAITING_ATTRIBUTE, CHIP_ICON, CHIP_STYLE, COLOUR_OPTION_NAMES, COMPOSITE_ATTRIBUTE, COMPOSITE_KIND_ROLES, COMPOSITE_ROLE_SPECS, CONSENT_CHOICE_CATEGORIES, CONSENT_LABELS, CONSENT_ROLES, COUNTER_COUNT, COUNTER_ENTRANCE, COUNTER_SAMPLE_WORDS, CardLayout, CardPart, CardRole, CarouselA11y, CompositeBehaviourTrait, CompositeItemAction, CompositeKind, ConsentActionType, ConsentRole, DEFAULT_ON_ATTRIBUTE, DIALOG_MODAL_TRAIT, DISCLOSURE_ITEM_KEY, DISCLOSURE_WORDS, DisclosureRole, EXCLUSIVE_KIND_ROLES, ExclusiveRuntime, ITEM_KEY_ATTRIBUTE, ITEM_OFF_EVENT, ITEM_ON_EVENT, ITEM_OPEN_STATE, LIGHTBOX_ARROWS_HIDE_AT, LIGHTBOX_LABEL, MARQUEE_DEFAULTS, MARQUEE_DEFAULT_SPEED_PX, MARQUEE_KEYFRAMES, MARQUEE_MAX_COPIES, MARQUEE_MIN_LOOP_S, MARQUEE_NODE_ATTRIBUTES, MARQUEE_NOSCRIPT_CSS, MARQUEE_PAUSE_GLYPH, MARQUEE_PLAY_GLYPH, MARQUEE_SAMPLE_WORDS, MARQUEE_SPEED_FACTOR, MARQUEE_WORDS, MULTIPLE_ATTRIBUTE, MarqueeAttribute, MarqueeDirection, MarqueeRole, MarqueeRuntime, MarqueeSpeed, MarqueeStyle, MarqueeTrait, NAMED_SWATCHES, NO_ELEMENT_STYLE, ON_ATTRIBUTE, ON_STATE, ORIENTATION_ATTRIBUTE, PILL_LABEL_STYLE, POPUP_ATTRIBUTES, POPUP_BODY_MAX_CHARS, POPUP_KIND_ARRIVAL, POPUP_KIND_MIX, POPUP_ROLES, POPUP_TITLE_MAX_WORDS, PREFERENCES_FROM_CATEGORIES, PROVIDER_ROLES, PopupAgain, PopupArrive, PopupArt, PopupAttribute, PopupForm, PopupKind, PopupRole, PopupTrait, SCOPE_ATTRIBUTE, SEGMENTED_BADGE_TONE, SEGMENTED_BADGE_WORDS, SEGMENTED_BEHAVIOUR, SEGMENTED_MAX_OPTIONS, SEGMENTED_MIN_OPTIONS, SEGMENTED_NAME, SEGMENTED_NAME_HE, SEGMENTED_NEW_OPTION_WORDS, SEGMENTED_WORDS, SEGMENTED_WORDS_HE, SHOP_ADDED_ATTRIBUTE, SHOP_BINDS, SHOP_CHIP_MAX, SHOP_CLONE_ATTRIBUTE, SHOP_GLOBAL_RECIPES, SHOP_HIDDEN_ATTRIBUTE, SHOP_LABELS, SHOP_LIVE_CLASS, SHOP_RECIPES, SHOP_RECIPE_WORDS, SHOP_REST_WORDS_ATTRIBUTE, SHOP_ROLES, SHOP_SELECT_CLASS, SHOP_UNUSED_ATTRIBUTE, SIGNED_IN_ATTRIBUTE, SIGN_IN_STEP_ATTRIBUTE, SLIDER_BAR_ORDER, SLIDER_NAME_TRAIT, SLIDER_PART_GLYPH, SLIDER_PART_ROLES, SLIDER_PLACEMENT_TRAIT, SLIDER_PLAY_GLYPH, SLIDER_SCROLL_PLAYS_TRAIT, SLIDER_SWAPPING_ATTRIBUTE, SLIDER_TEXT_ATTRIBUTE, SLIDER_TYPE, SLIDER_WORDS, SLIDE_CAPTION_TRAIT, SLIDE_TO_ROW, SLIDE_TYPE, SUPERSEDED_BAR_PADDING, SWIPER_THEME_COLOR, SceneRole, SegmentedEditRefusal, SegmentedRole, SegmentedTrait, ShopActionType, ShopBindTarget, ShopPickerKind, ShopRecipe, ShopRole, ShopRuntime, SignInFieldName, SignInStep, SliderFlag, SliderPlacement, SliderRole, StructureEdit, StructureRefusal, TABS_ACTIVATE_ONS, TABS_CONTENT_LIMIT, TABS_IMAGE_BIND_PROP, TABS_LABEL_BIND_PROP, TABS_NEW_TAB_WORDS, TABS_NEW_TAB_WORDS_HE, TABS_ORIENTATIONS, TABS_STACK_BREAKPOINT, TABS_TEXT_BIND_PROP, TABS_WORDS, TABS_WORDS_HE, TabsActivateOn, TabsBehaviourTrait, TabsEditRefusal, TabsOrientation, TabsRole, UNTIL_FOUND, acceptsRefusal, accordionAnswerOf, accordionBehaviour, accordionDomIds, accordionFocusIndex, accordionHeadingLevel, accordionItemAttributes, accordionItemLabel, accordionItemOf, accordionItemState, accordionItems, accordionKeyAction, accordionPanelAttributes, accordionPanelOf, accordionPartStyle, accordionQuestionOf, accordionRegionAttributes, accordionRemovalRefusal, accordionRootAttributes, accordionRootOf, accordionRootOfItem, accordionRuntimeOf, accordionScope, accordionToContent, accordionToManual, accordionTrackAttributes, accordionTriggerAttributes, accordionTriggerOf, accordionWords, accountRecipeWords, accountRuntimeOf, accountSelector, addAccordionItem, addSegmentedOption, addTabPair, applyCardLayout, attachAccordionAt, attachAccordions, attachAccount, attachCarouselA11y, attachCompositeAt, attachExclusiveAt, attachMarquees, attachShop, attachSliderBar, badgeStyleId, badgeToneOf, bindShopPart, buildAccordionItem, buildAccordionRecipe, buildAccountEntryRecipe, buildAccountMenuRecipe, buildAddToCartRecipe, buildBadge, buildBuyNowRecipe, buildCardRecipe, buildCarouselRecipe, buildCartButtonRecipe, buildCartDrawerRecipe, buildChip, buildCompositeIcon, buildConsentRecipe, buildCounterRecipe, buildDisclosureRecipe, buildLightboxRecipe, buildMarqueeRecipe, buildPopupRecipe, buildPriceRecipe, buildQuantityRecipe, buildReadingBarRecipe, buildSegmentedOption, buildSegmentedRecipe, buildSignInDialogRecipe, buildSliderPart, buildSlideshowRecipe, buildTabPair, buildTabsRecipe, buildVariantPickerRecipe, canOpenAtClickedItem, cardPartsOf, cardRootOf, cardTitleOf, cardWords, carouselOf, clearLayerStyles, closeAccordionItem, closestAccordion, closestAccordionItem, closestExclusive, closestExclusiveItemPart, compositeItemOf, compositeItems, compositeKindOfRole, compositeRootOf, compositeRowKeys, compositeScopeId, consentRecipeWords, detachAccordion, detectAccordionIcon, detectCardLayout, dialogIsModal, disclosureOpenByDefault, domSafeKey, exclusiveBehaviourOf, exclusiveDefaultOf, exclusiveItemLabel, exclusiveItemPartOf, exclusiveKindHasPanels, exclusiveKindOf, exclusiveLabelOf, exclusivePartAttributes, exclusiveRootAttributesOf, exclusiveRootHoldsTriggers, exclusiveRootOf, exclusiveRuntimeOf, exclusiveScopeFor, findByRole, hasLabelledRegion, hasSliderParts, headerBehaviourOfNode, headerInkOfNode, healSliderBars, initialAccordionOpen, isAccordionFromContent, isAccordionItemOn, isAccordionPart, isAccordionRoot, isAccountRole, isAnyCompositeRoot, isCardLinked, isCardRoot, isCompositeItem, isCompositeItemOn, isCompositePanel, isCompositeRoot, isCompositeTrigger, isDisclosurePart, isDisclosureRoot, isExclusiveItemOn, isExclusiveItemPart, isExclusiveKind, isExclusiveList, isExclusivePanel, isExclusivePanels, isExclusiveRoot, isExclusiveTrigger, isExclusiveTriggerDisabled, isLockedPart, isMarqueeRoot, isPartOfExclusiveScope, isPillNode, isSegmentedPart, isSegmentedRoot, isShopRole, isSlider, isSliderPart, isTabsFromContent, isTabsPart, isTabsRoot, isToggleKind, itemOpenTriggerIds, lightboxSliderOf, lookMarqueeSpeed, makeCompositePart, manualTabKeys, marqueeCopyCount, marqueeLoopSeconds, marqueePartElement, marqueePauseAttributes, marqueePauseGlyph, marqueeRootAttributes, marqueeRootOf, marqueeSettings, marqueeWords, migrateSliderControls, moveAccordionItem, moveSegmentedOption, moveTabPair, needsSliderMigration, nextAccordionState, nextItemKey, nextSegmentedKey, nextTabKey, onAccordionItemState, onCompositeItemState, onExclusiveItemState, openAccordionItem, parentInComposite, pickAccordionAutoBinds, pickTabsAutoBinds, popupDialogAttributes, popupFormOf, popupWords, readLayerStyle, readProp, readStyle, removeFromComposite, removeSegmentedOption, removeTabPair, renameAccordionItem, renameSegmentedOption, renameTab, repeatSourceOf, rowIndexOf, rowItemKey, rowSourceOf, runAccountAction, runCompositeItemAction, runShopAction, sameRepeatSource, segmentedAddRefusal, segmentedBadgeOf, segmentedDefaultOn, segmentedItemTriggerIds, segmentedKeyAction, segmentedKeys, segmentedLabel, segmentedOptionAttributes, segmentedOptionKey, segmentedOptionLabel, segmentedOptionLabelNodeOf, segmentedOptions, segmentedPartAttributes, segmentedRemovalRefusal, segmentedRootAttributes, segmentedRootAttributesOf, segmentedScopeFor, segmentedWords, serializeDomAttributes, setAccordionBehaviour, setAccordionIcon, setBadgeTone, setCardLinked, setCardPart, setHeaderBehaviour, setHeaderInk, setMarqueeSettings, setSegmentedBadge, setSegmentedBehaviour, setSliderFlag, setSliderPlacement, setTabsBehaviour, shopPickerKind, shopRecipeWords, shopRuntimeOf, shopSelector, shouldScrollToItem, slideIndexForRow, sliderCaptionOf, sliderCountText, sliderLiveRegion, sliderPart, sliderPartElement, sliderPauseAttributes, sliderPauseGlyph, sliderPlacementOf, sliderSlides, sliderWords, splitSliderChildren, structureRefusal, swatchFill, syncSliderParts, tabLabel, tabLabelNodeOf, tabListAttributes, tabPanelAttributes, tabPanelImageOf, tabPanelOf, tabPanelTextOf, tabPartKey, tabTriggerAttributes, tabTriggerOf, tabsBehaviour, tabsItemState, tabsItemTriggerIds, tabsKeyAction, tabsLabel, tabsListOf, tabsPanels, tabsPanelsOf, tabsPartAttributes, tabsPartnerOf, tabsRemovalRefusal, tabsRootAttributes, tabsScope, tabsScopeFor, tabsToContent, tabsToManual, tabsTriggers, tabsWords, variantGroupLabel, variantGroupNote, walkComposite, wantedSliderParts, writeLayerStyles, writeProp, writeStyles };
6951
7201
  //# sourceMappingURL=vectoriox-iox-ui-composite-core.mjs.map