@vectoriox/iox-ui 5.195.0 → 5.196.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 (33) hide show
  1. package/composite-core/index.d.ts +12 -2
  2. package/design-core/index.d.ts +353 -8
  3. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +26 -4
  4. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-design-core.mjs +711 -264
  6. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +642 -498
  8. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +221 -2
  10. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-identity-core.mjs +11 -5
  12. package/fesm2022/vectoriox-iox-ui-identity-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui.mjs +70 -17
  14. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  15. package/generation-core/index.d.ts +183 -93
  16. package/harness-core/index.d.ts +165 -3
  17. package/identity-core/index.d.ts +8 -1
  18. package/index.d.ts +23 -2
  19. package/package.json +1 -1
  20. package/src/composite-core/account-runtime.ts +2 -2
  21. package/src/composite-core/header.ts +23 -1
  22. package/src/design-core/contrast-audit.ts +38 -0
  23. package/src/design-core/flavor-spec.generated.ts +275 -1
  24. package/src/design-core/header-behaviour.ts +172 -3
  25. package/src/design-core/node-classes.ts +9 -2
  26. package/src/generation-core/compose-site.ts +25 -8
  27. package/src/generation-core/header-mix.ts +165 -12
  28. package/src/generation-core/site-spec.generated.ts +41 -9
  29. package/src/harness-core/business-types.ts +11 -0
  30. package/src/harness-core/harness-spec.generated.ts +213 -0
  31. package/src/harness-core/run-compose-context.ts +9 -3
  32. package/src/identity-core/site-auth-transport.ts +11 -4
  33. package/styles/iox-design.css +148 -6
@@ -908,6 +908,31 @@ const SPEC_TIERS = {
908
908
  "type": "spacing",
909
909
  "default": "16px var(--iox-space-inline)"
910
910
  },
911
+ {
912
+ "name": "nav-glass-bg",
913
+ "type": "color",
914
+ "default": "color-mix(in srgb, var(--iox-bg) 90%, transparent)"
915
+ },
916
+ {
917
+ "name": "nav-glass-backdrop",
918
+ "type": "effect",
919
+ "default": "blur(12px) saturate(140%)"
920
+ },
921
+ {
922
+ "name": "nav-glass-border",
923
+ "type": "color",
924
+ "default": "var(--iox-line)"
925
+ },
926
+ {
927
+ "name": "nav-glass-shadow",
928
+ "type": "shadow",
929
+ "default": "none"
930
+ },
931
+ {
932
+ "name": "nav-over-veil",
933
+ "type": "paint",
934
+ "default": "linear-gradient(to bottom, color-mix(in srgb, var(--iox-bg) 32%, transparent), transparent)"
935
+ },
911
936
  {
912
937
  "name": "field-bg",
913
938
  "type": "color",
@@ -4137,9 +4162,11 @@ const SPEC_A11Y = {
4137
4162
  "surface-glass": "var(--iox-surface)",
4138
4163
  "surface-glass-strong": "var(--iox-surface)",
4139
4164
  "blur-surface": "none",
4165
+ "nav-glass-bg": "var(--iox-bg)",
4140
4166
  "button-secondary-backdrop": "none",
4141
4167
  "card-backdrop": "none",
4142
4168
  "nav-backdrop": "none",
4169
+ "nav-glass-backdrop": "none",
4143
4170
  "dialog-backdrop": "none",
4144
4171
  "tabbar-backdrop": "none",
4145
4172
  "segmented-track-backdrop": "none"
@@ -6166,6 +6193,28 @@ const SPEC_CONTRAST_AUDIT = {
6166
6193
  "scheme": "inverse",
6167
6194
  "image": "#FFFFFF"
6168
6195
  }
6196
+ ],
6197
+ "floatingGrounds": [
6198
+ {
6199
+ "ground": "nav-bg",
6200
+ "ink": "text"
6201
+ },
6202
+ {
6203
+ "ground": "nav-glass-bg",
6204
+ "ink": "text"
6205
+ },
6206
+ {
6207
+ "ground": "dialog-bg",
6208
+ "ink": "text"
6209
+ },
6210
+ {
6211
+ "ground": "popover-bg",
6212
+ "ink": "text"
6213
+ },
6214
+ {
6215
+ "ground": "surface-glass-strong",
6216
+ "ink": "text"
6217
+ }
6169
6218
  ]
6170
6219
  };
6171
6220
  const SPEC_LEGACY_ALIASES = {
@@ -7493,6 +7542,41 @@ const SPEC_FLAVOR_PACKS = [
7493
7542
  "group": "components",
7494
7543
  "value": "16px var(--iox-space-inline)"
7495
7544
  },
7545
+ {
7546
+ "name": "nav-glass-bg",
7547
+ "tier": "component",
7548
+ "type": "color",
7549
+ "group": "components",
7550
+ "value": "color-mix(in srgb, var(--iox-bg) 90%, transparent)"
7551
+ },
7552
+ {
7553
+ "name": "nav-glass-backdrop",
7554
+ "tier": "component",
7555
+ "type": "effect",
7556
+ "group": "components",
7557
+ "value": "blur(12px) saturate(140%)"
7558
+ },
7559
+ {
7560
+ "name": "nav-glass-border",
7561
+ "tier": "component",
7562
+ "type": "color",
7563
+ "group": "components",
7564
+ "value": "var(--iox-line)"
7565
+ },
7566
+ {
7567
+ "name": "nav-glass-shadow",
7568
+ "tier": "component",
7569
+ "type": "shadow",
7570
+ "group": "components",
7571
+ "value": "none"
7572
+ },
7573
+ {
7574
+ "name": "nav-over-veil",
7575
+ "tier": "component",
7576
+ "type": "paint",
7577
+ "group": "components",
7578
+ "value": "linear-gradient(to bottom, color-mix(in srgb, var(--iox-bg) 32%, transparent), transparent)"
7579
+ },
7496
7580
  {
7497
7581
  "name": "field-bg",
7498
7582
  "tier": "component",
@@ -9952,6 +10036,44 @@ const SPEC_FLAVOR_PACKS = [
9952
10036
  "group": "components",
9953
10037
  "value": "16px var(--iox-space-inline)"
9954
10038
  },
10039
+ {
10040
+ "name": "nav-glass-bg",
10041
+ "tier": "component",
10042
+ "type": "color",
10043
+ "group": "components",
10044
+ "value": "color-mix(in srgb, var(--iox-bg) 90%, transparent)"
10045
+ },
10046
+ {
10047
+ "name": "nav-glass-backdrop",
10048
+ "tier": "component",
10049
+ "type": "effect",
10050
+ "group": "components",
10051
+ "value": "blur(20px) saturate(135%)",
10052
+ "overridden": true
10053
+ },
10054
+ {
10055
+ "name": "nav-glass-border",
10056
+ "tier": "component",
10057
+ "type": "color",
10058
+ "group": "components",
10059
+ "value": "color-mix(in srgb, var(--iox-text) 10%, transparent)",
10060
+ "overridden": true
10061
+ },
10062
+ {
10063
+ "name": "nav-glass-shadow",
10064
+ "tier": "component",
10065
+ "type": "shadow",
10066
+ "group": "components",
10067
+ "value": "0 10px 30px color-mix(in srgb, var(--iox-text) 7%, transparent)",
10068
+ "overridden": true
10069
+ },
10070
+ {
10071
+ "name": "nav-over-veil",
10072
+ "tier": "component",
10073
+ "type": "paint",
10074
+ "group": "components",
10075
+ "value": "linear-gradient(to bottom, color-mix(in srgb, var(--iox-bg) 32%, transparent), transparent)"
10076
+ },
9955
10077
  {
9956
10078
  "name": "field-bg",
9957
10079
  "tier": "component",
@@ -12423,6 +12545,42 @@ const SPEC_FLAVOR_PACKS = [
12423
12545
  "group": "components",
12424
12546
  "value": "16px var(--iox-space-inline)"
12425
12547
  },
12548
+ {
12549
+ "name": "nav-glass-bg",
12550
+ "tier": "component",
12551
+ "type": "color",
12552
+ "group": "components",
12553
+ "value": "color-mix(in srgb, var(--iox-bg) 72%, transparent)",
12554
+ "overridden": true
12555
+ },
12556
+ {
12557
+ "name": "nav-glass-backdrop",
12558
+ "tier": "component",
12559
+ "type": "effect",
12560
+ "group": "components",
12561
+ "value": "blur(12px) saturate(140%)"
12562
+ },
12563
+ {
12564
+ "name": "nav-glass-border",
12565
+ "tier": "component",
12566
+ "type": "color",
12567
+ "group": "components",
12568
+ "value": "var(--iox-line)"
12569
+ },
12570
+ {
12571
+ "name": "nav-glass-shadow",
12572
+ "tier": "component",
12573
+ "type": "shadow",
12574
+ "group": "components",
12575
+ "value": "none"
12576
+ },
12577
+ {
12578
+ "name": "nav-over-veil",
12579
+ "tier": "component",
12580
+ "type": "paint",
12581
+ "group": "components",
12582
+ "value": "linear-gradient(to bottom, color-mix(in srgb, var(--iox-bg) 32%, transparent), transparent)"
12583
+ },
12426
12584
  {
12427
12585
  "name": "field-bg",
12428
12586
  "tier": "component",
@@ -14859,7 +15017,7 @@ const SPEC_FLAVOR_PACKS = [
14859
15017
  "tier": "component",
14860
15018
  "type": "color",
14861
15019
  "group": "components",
14862
- "value": "var(--iox-surface-glass)",
15020
+ "value": "var(--iox-surface-glass-strong)",
14863
15021
  "overridden": true
14864
15022
  },
14865
15023
  {
@@ -14910,6 +15068,45 @@ const SPEC_FLAVOR_PACKS = [
14910
15068
  "value": "10px var(--iox-space-inline)",
14911
15069
  "overridden": true
14912
15070
  },
15071
+ {
15072
+ "name": "nav-glass-bg",
15073
+ "tier": "component",
15074
+ "type": "color",
15075
+ "group": "components",
15076
+ "value": "var(--iox-surface-glass-strong)",
15077
+ "overridden": true
15078
+ },
15079
+ {
15080
+ "name": "nav-glass-backdrop",
15081
+ "tier": "component",
15082
+ "type": "effect",
15083
+ "group": "components",
15084
+ "value": "var(--iox-blur-surface)",
15085
+ "overridden": true
15086
+ },
15087
+ {
15088
+ "name": "nav-glass-border",
15089
+ "tier": "component",
15090
+ "type": "color",
15091
+ "group": "components",
15092
+ "value": "var(--iox-glass-border)",
15093
+ "overridden": true
15094
+ },
15095
+ {
15096
+ "name": "nav-glass-shadow",
15097
+ "tier": "component",
15098
+ "type": "shadow",
15099
+ "group": "components",
15100
+ "value": "var(--iox-shadow-md), var(--iox-glass-edge)",
15101
+ "overridden": true
15102
+ },
15103
+ {
15104
+ "name": "nav-over-veil",
15105
+ "tier": "component",
15106
+ "type": "paint",
15107
+ "group": "components",
15108
+ "value": "linear-gradient(to bottom, color-mix(in srgb, var(--iox-bg) 32%, transparent), transparent)"
15109
+ },
14913
15110
  {
14914
15111
  "name": "field-bg",
14915
15112
  "tier": "component",
@@ -17387,6 +17584,44 @@ const SPEC_FLAVOR_PACKS = [
17387
17584
  "group": "components",
17388
17585
  "value": "16px var(--iox-space-inline)"
17389
17586
  },
17587
+ {
17588
+ "name": "nav-glass-bg",
17589
+ "tier": "component",
17590
+ "type": "color",
17591
+ "group": "components",
17592
+ "value": "color-mix(in srgb, var(--iox-bg) 88%, transparent)",
17593
+ "overridden": true
17594
+ },
17595
+ {
17596
+ "name": "nav-glass-backdrop",
17597
+ "tier": "component",
17598
+ "type": "effect",
17599
+ "group": "components",
17600
+ "value": "blur(16px) saturate(150%)",
17601
+ "overridden": true
17602
+ },
17603
+ {
17604
+ "name": "nav-glass-border",
17605
+ "tier": "component",
17606
+ "type": "color",
17607
+ "group": "components",
17608
+ "value": "transparent",
17609
+ "overridden": true
17610
+ },
17611
+ {
17612
+ "name": "nav-glass-shadow",
17613
+ "tier": "component",
17614
+ "type": "shadow",
17615
+ "group": "components",
17616
+ "value": "none"
17617
+ },
17618
+ {
17619
+ "name": "nav-over-veil",
17620
+ "tier": "component",
17621
+ "type": "paint",
17622
+ "group": "components",
17623
+ "value": "linear-gradient(to bottom, color-mix(in srgb, var(--iox-bg) 32%, transparent), transparent)"
17624
+ },
17390
17625
  {
17391
17626
  "name": "field-bg",
17392
17627
  "tier": "component",
@@ -19852,6 +20087,45 @@ const SPEC_FLAVOR_PACKS = [
19852
20087
  "group": "components",
19853
20088
  "value": "16px var(--iox-space-inline)"
19854
20089
  },
20090
+ {
20091
+ "name": "nav-glass-bg",
20092
+ "tier": "component",
20093
+ "type": "color",
20094
+ "group": "components",
20095
+ "value": "var(--iox-nav-bg)",
20096
+ "overridden": true
20097
+ },
20098
+ {
20099
+ "name": "nav-glass-backdrop",
20100
+ "tier": "component",
20101
+ "type": "effect",
20102
+ "group": "components",
20103
+ "value": "none",
20104
+ "overridden": true
20105
+ },
20106
+ {
20107
+ "name": "nav-glass-border",
20108
+ "tier": "component",
20109
+ "type": "color",
20110
+ "group": "components",
20111
+ "value": "var(--iox-nav-border)",
20112
+ "overridden": true
20113
+ },
20114
+ {
20115
+ "name": "nav-glass-shadow",
20116
+ "tier": "component",
20117
+ "type": "shadow",
20118
+ "group": "components",
20119
+ "value": "var(--iox-nav-shadow)",
20120
+ "overridden": true
20121
+ },
20122
+ {
20123
+ "name": "nav-over-veil",
20124
+ "tier": "component",
20125
+ "type": "paint",
20126
+ "group": "components",
20127
+ "value": "linear-gradient(to bottom, color-mix(in srgb, var(--iox-bg) 32%, transparent), transparent)"
20128
+ },
19855
20129
  {
19856
20130
  "name": "field-bg",
19857
20131
  "tier": "component",
@@ -21988,50 +22262,398 @@ function schemeOfClasses(classes) {
21988
22262
  }
21989
22263
 
21990
22264
  /**
21991
- * The design-system classes a node renders, in BOTH renderers (builder canvas, engine component
21992
- * path, engine string path) — ONE helper, so the three can never disagree about which class a node
21993
- * carries:
21994
- *
21995
- * - the element-style MARKER `iox-es iox-es-<id>` (design-system §3b-bis) — component CSS carrying
21996
- * the system look is scoped to it, so a node saved before DS2 keeps its pre-DS2 look;
21997
- * - the section colour scheme `iox-scheme-<id>` (§3c) for a non-default `colorScheme` — the class
21998
- * `compileSchemeCss` re-declares tokens on, so everything inside re-resolves;
21999
- * - the composite ROLE `iox-role-<role>` (`card.media` → `iox-role-card-media`; composite-components
22000
- * plan §3, Card v2) — what the shared CSS keys a part's structural rules on (the badge's corner, the
22001
- * card's stretched link), so a role is never a renderer's private knowledge;
22002
- * - a Section's edge and shape `iox-seam-<edge>` / `iox-section-card` (AW6, `section-edge.ts`) — what the shared CSS
22003
- * paints a seam on.
22265
+ * How a site's header behaves as the page scrolls (premium components T2, M4). Two traits on the header's ROOT (the
22266
+ * Navigation bar, generation-core `NavRole.Root`) — edited in its "Header" section, stamped by the composer from a
22267
+ * `nav.*` pattern's `header` — and ONE answer every renderer applies: the attributes below, which the shared CSS
22268
+ * (`iox-design.css`) and the header runtime (`HeaderRuntime`, main entry) read. A header with neither trait renders
22269
+ * exactly as before (it scrolls away with the page, its divider line as its look draws it).
22004
22270
  *
22005
- * Renderers read `elementStyle`, `colorScheme` and `role` for exactly this and nothing else.
22271
+ * Framework-free: the composer (generation-core) and both renderers read it.
22006
22272
  */
22007
- /** The section colour schemes — the contract's `schemes` keys. */
22008
- var ColorScheme;
22009
- (function (ColorScheme) {
22010
- ColorScheme["Default"] = "default";
22011
- ColorScheme["Subtle"] = "subtle";
22012
- ColorScheme["Inverse"] = "inverse";
22013
- ColorScheme["Accent"] = "accent";
22014
- /** A band painted the page's muted ink (iox-ui#70). */
22015
- ColorScheme["Muted"] = "muted";
22016
- })(ColorScheme || (ColorScheme = {}));
22017
- /** The content trait (stored in `props`, not a style prop) that picks a node's scheme. */
22018
- const COLOR_SCHEME_TRAIT = 'colorScheme';
22019
- /** The node types that offer a scheme (spec §3c: Section/Container; LinkedContainer is a Container that links). */
22020
- const COLOR_SCHEME_TYPES = ['Section', 'Container', 'LinkedContainer'];
22021
- /** Every scheme in contract order, with the contract's label (Default · Subtle · Inverse · Brand · Muted). */
22022
- const COLOR_SCHEMES = Object.keys(SPEC_SCHEMES).map(id => ({ id, label: SPEC_SCHEMES[id].label }));
22023
- const SCHEME_IDS$1 = new Set(Object.keys(SPEC_SCHEMES));
22024
- const SCHEME_PREFIX = 'iox-scheme-';
22025
- const ROLE_PREFIX = 'iox-role-';
22026
- /** A role is dot-separated lowercase words (`card`, `card.title`) — anything else never reaches a class. */
22027
- const ROLE_SHAPE = /^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)*$/;
22028
- const MARKER_PREFIX = `${ELEMENT_STYLE_MARKER_CLASS}-`;
22029
- /** `iox-scheme-<id>` for a known NON-default scheme, else null — an unknown id never reaches a class attribute. */
22030
- function colorSchemeClass(id) {
22031
- return typeof id === 'string' && id !== ColorScheme.Default && SCHEME_IDS$1.has(id) ? `${SCHEME_PREFIX}${id}` : null;
22032
- }
22033
- /**
22034
- * The scheme a page OPENS on, and the site header following it (M8 demo, vectoriox/iox-ui#71): the header is a global —
22273
+ var HeaderBehaviour;
22274
+ (function (HeaderBehaviour) {
22275
+ /** It scrolls away with the page (the default; what every header saved before M4 does). */
22276
+ HeaderBehaviour["Scrolls"] = "scrolls";
22277
+ /** It stays at the top while the page scrolls under it. */
22278
+ HeaderBehaviour["Stays"] = "stays";
22279
+ /** It steps aside while the page scrolls down and comes back the moment it scrolls up. */
22280
+ HeaderBehaviour["Hides"] = "hides";
22281
+ })(HeaderBehaviour || (HeaderBehaviour = {}));
22282
+ /** What separates the header from the page once the page has moved under it (Emil 99: an edge, not a divider). */
22283
+ var HeaderEdge;
22284
+ (function (HeaderEdge) {
22285
+ /** A soft fade of the header's own ground over the content under it. */
22286
+ HeaderEdge["Fade"] = "fade";
22287
+ /** A hairline in the header's border colour. */
22288
+ HeaderEdge["Line"] = "line";
22289
+ HeaderEdge["None"] = "none";
22290
+ })(HeaderEdge || (HeaderEdge = {}));
22291
+ /** The traits, stored in the root's props (no default: a plain Container saves neither). */
22292
+ var HeaderTrait;
22293
+ (function (HeaderTrait) {
22294
+ HeaderTrait["Behaviour"] = "headerBehaviour";
22295
+ HeaderTrait["Edge"] = "headerEdge";
22296
+ /** HI1b (HS-5): the mix the header was composed as — its `<ingredient>:<word>` words, space-separated (generation-core
22297
+ * `stampHeaderMix`). Read by Bindings ▸ Header and the Header studio; no renderer reads it. */
22298
+ HeaderTrait["Mix"] = "headerMix";
22299
+ /** AW6 (AW6-D10): `follows` — its colours follow the section under it as the page scrolls. Absent / `opening`: it
22300
+ * wears the page's opening (#71), as before. Written by the Header studio ▸ Ground and the composer (`ink:follows`). */
22301
+ HeaderTrait["Ink"] = "headerInk";
22302
+ /** HI3 slice 1 (HI3-D1): what the header stands on — `glass` | `over` | `over-glass`. Absent / `solid`: its own ground,
22303
+ * as before. Written by the Header studio ▸ Around the bar and the composer (`ground:<word>`). */
22304
+ HeaderTrait["Ground"] = "headerGround";
22305
+ })(HeaderTrait || (HeaderTrait = {}));
22306
+ /** Whose colours the header wears (contract HEADER `ink`): the page's opening, or every section as it passes under it. */
22307
+ var HeaderInk;
22308
+ (function (HeaderInk) {
22309
+ HeaderInk["Opening"] = "opening";
22310
+ HeaderInk["Follows"] = "follows";
22311
+ })(HeaderInk || (HeaderInk = {}));
22312
+ var HeaderAttribute;
22313
+ (function (HeaderAttribute) {
22314
+ /** `stays` | `hides` on a header that stays at the top. Absent: it scrolls away. */
22315
+ HeaderAttribute["Behaviour"] = "data-iox-header";
22316
+ /** `fade` | `line` | `none`: the edge it shows once the page has scrolled. Absent: its look's own divider stays. */
22317
+ HeaderAttribute["Edge"] = "data-iox-header-edge";
22318
+ /** Written by the header runtime while a `hides` header has stepped aside. */
22319
+ HeaderAttribute["Hidden"] = "data-iox-header-hidden";
22320
+ /** `follows` on a header whose colours follow the section under it (the header ink runtime writes the page's
22321
+ * `data-iox-opening` as each section passes; the shared CSS cross-fades). Absent: it wears the opening. */
22322
+ HeaderAttribute["Ink"] = "data-iox-header-ink";
22323
+ /** `glass` | `over` | `over-glass` on a header that does not stand on its own solid ground (HI3 slice 1): the shared
22324
+ * CSS draws the ground on ONE `::before` faded by opacity, gives the bar's height back over a pictured opening and
22325
+ * lays the veil under its words at rest. Absent: the bar's own ground, as before. */
22326
+ HeaderAttribute["Ground"] = "data-iox-header-ground";
22327
+ })(HeaderAttribute || (HeaderAttribute = {}));
22328
+ /** What a composed header gets (the `nav.*` patterns' `header`, the palette's Navigation bar). */
22329
+ const COMPOSED_HEADER = {
22330
+ behaviour: HeaderBehaviour.Hides,
22331
+ edge: HeaderEdge.Fade,
22332
+ };
22333
+ const BEHAVIOURS = new Set(Object.values(HeaderBehaviour));
22334
+ const EDGES = new Set(Object.values(HeaderEdge));
22335
+ /** A stored behaviour, or Scrolls for anything else. */
22336
+ function headerBehaviourOf(value) {
22337
+ return typeof value === 'string' && BEHAVIOURS.has(value) ? value : HeaderBehaviour.Scrolls;
22338
+ }
22339
+ /** A stored edge, or null (none chosen: the look's divider stays as it is). */
22340
+ function headerEdgeOf(value) {
22341
+ return typeof value === 'string' && EDGES.has(value) ? value : null;
22342
+ }
22343
+ /** True when the header keeps its place at the top of the screen (it stays, or it hides and comes back). */
22344
+ function headerStaysAtTop(behaviour) {
22345
+ return headerBehaviourOf(behaviour) !== HeaderBehaviour.Scrolls;
22346
+ }
22347
+ /** A stored ink, or Opening for anything else. */
22348
+ function headerInkOf(value) {
22349
+ return value === HeaderInk.Follows ? HeaderInk.Follows : HeaderInk.Opening;
22350
+ }
22351
+ /** The attributes a header renders, from its trait values — `{}` for a header that keeps today's behaviour. A header on
22352
+ * glass draws no scroll edge (HI3-D9: its set carries its own hairline and shadow), whatever edge it stores. */
22353
+ function headerAttributes(behaviour, edge, ink, ground) {
22354
+ const out = {};
22355
+ if (headerInkOf(ink) === HeaderInk.Follows)
22356
+ out[HeaderAttribute.Ink] = HeaderInk.Follows;
22357
+ const b = headerBehaviourOf(behaviour);
22358
+ if (b !== HeaderBehaviour.Scrolls)
22359
+ out[HeaderAttribute.Behaviour] = b;
22360
+ const g = headerGroundOf(ground);
22361
+ if (g !== HeaderGround.Solid)
22362
+ out[HeaderAttribute.Ground] = g;
22363
+ const e = headerEdgeOf(edge);
22364
+ if (e && !headerGroundIsGlass(g))
22365
+ out[HeaderAttribute.Edge] = e;
22366
+ return out;
22367
+ }
22368
+ // ── What the header stands on (HI3 slice 1: over · over-glass · glass) ───────────────────────────────────────────────
22369
+ /**
22370
+ * What a header stands on (contract HEADER `ground`, HI3-D1). `blend` waits for slice 2+ and is never a trait value
22371
+ * (a stored `blend` reads as solid). ONE answer every renderer applies: `headerAttributes` writes the word, the shared
22372
+ * CSS (`iox-design.css`) draws it, and `headerFirm` / the selectors below say when the ground shows.
22373
+ */
22374
+ var HeaderGround;
22375
+ (function (HeaderGround) {
22376
+ /** Its own ground (the look's bar), as every header before HI3. */
22377
+ HeaderGround["Solid"] = "solid";
22378
+ /** The look's glass from the first frame. */
22379
+ HeaderGround["Glass"] = "glass";
22380
+ /** Over the opening, clear at first; the look's own bar once the page moves. */
22381
+ HeaderGround["Over"] = "over";
22382
+ /** Over the opening, clear at first; the look's glass once the page moves. */
22383
+ HeaderGround["OverGlass"] = "over-glass";
22384
+ })(HeaderGround || (HeaderGround = {}));
22385
+ const GROUNDS = new Set(Object.values(HeaderGround));
22386
+ /** A stored ground, or Solid for anything else. */
22387
+ function headerGroundOf(value) {
22388
+ return typeof value === 'string' && GROUNDS.has(value) ? value : HeaderGround.Solid;
22389
+ }
22390
+ /** The grounds that stand over the opening at rest (clear until the page moves). */
22391
+ const OVER_GROUNDS = [HeaderGround.Over, HeaderGround.OverGlass];
22392
+ /** The grounds that turn into the look's glass (`nav-glass-*`), and draw no scroll edge (HI3-D9). */
22393
+ const GLASS_GROUNDS = [HeaderGround.Glass, HeaderGround.OverGlass];
22394
+ /** True for a ground that stands over the opening at rest. */
22395
+ function headerGroundIsOver(ground) {
22396
+ return OVER_GROUNDS.includes(headerGroundOf(ground));
22397
+ }
22398
+ /** True for a ground that turns into the look's glass. */
22399
+ function headerGroundIsGlass(ground) {
22400
+ return GLASS_GROUNDS.includes(headerGroundOf(ground));
22401
+ }
22402
+ /**
22403
+ * Whether the page OPENS on a picture the header can stand over (HI3-D10), written by each renderer beside
22404
+ * `data-iox-opening` (the engine's body, in the raw SSR; the canvas's globals layer) from `openingMediaOf(layout)`.
22405
+ */
22406
+ const OPENING_MEDIA_ATTRIBUTE = 'data-iox-opening-media';
22407
+ var OpeningMediaKind;
22408
+ (function (OpeningMediaKind) {
22409
+ /** The first section's picture (a photo, a film, slides, an object, a material) fills the top of the page. */
22410
+ OpeningMediaKind["Picture"] = "picture";
22411
+ /** The page opens on a plain ground (words, an inset card, a form): an over header shows its ground from the top. */
22412
+ OpeningMediaKind["Plain"] = "plain";
22413
+ })(OpeningMediaKind || (OpeningMediaKind = {}));
22414
+ /** The props key a composed opening stores its mix under (generation-core `OPENING_MIX_PROP`; spelled here: design-core
22415
+ * reads no generation-core). Its words are `<ingredient>:<word>`, space-separated. */
22416
+ const OPENING_MIX_PROP = 'openingMix';
22417
+ const OPENING_NO_MEDIA = 'none';
22418
+ /** The frame that leaves the page's own ground at the top: the picture is a card inset from the edges. */
22419
+ const OPENING_INSET_FRAME = 'inset';
22420
+ /** Node types that ARE a picture: a section that is one, or a layer of one laid behind its words. */
22421
+ const PICTURE_TYPES = new Set(['Image', 'Video', 'SliderContainer', 'Gallery']);
22422
+ const LAYER_POSITIONS = new Set(['absolute', 'fixed']);
22423
+ const PICTURE_PAINT = /url\(|image-set\(/i;
22424
+ const wordOf = (mix, ingredient) => mix.split(/\s+/).find(w => w.startsWith(`${ingredient}:`))?.slice(ingredient.length + 1) ?? null;
22425
+ const paintsPicture = (styles) => ['backgroundImage', 'background'].some(k => PICTURE_PAINT.test(String(styles?.[k] ?? '')));
22426
+ /**
22427
+ * What a page opens on, from its own nodes in order (never its globals): a composed opening by its mix (a picture unless
22428
+ * its media is `none` or its frame is `inset`); any other first section when it paints a picture as its background, IS a
22429
+ * picture, or lays one behind its words (a positioned Image / Video / slider child). A page with no nodes is plain. Pure.
22430
+ */
22431
+ function openingMediaOf(layout) {
22432
+ const first = layout?.find(n => !!n);
22433
+ if (!first)
22434
+ return OpeningMediaKind.Plain;
22435
+ const mix = first.props?.[OPENING_MIX_PROP];
22436
+ if (typeof mix === 'string' && mix.trim()) {
22437
+ const media = wordOf(mix, 'media');
22438
+ const frame = wordOf(mix, 'frame');
22439
+ return media && media !== OPENING_NO_MEDIA && frame !== OPENING_INSET_FRAME ? OpeningMediaKind.Picture : OpeningMediaKind.Plain;
22440
+ }
22441
+ if (paintsPicture(first.styleProps) || (first.type && PICTURE_TYPES.has(first.type)))
22442
+ return OpeningMediaKind.Picture;
22443
+ const layer = (first.children ?? []).some(c => !!c && !!c.type && PICTURE_TYPES.has(c.type) && LAYER_POSITIONS.has(String(c.styleProps?.['position'] ?? '')));
22444
+ return layer ? OpeningMediaKind.Picture : OpeningMediaKind.Plain;
22445
+ }
22446
+ /** The attribute a page's renderer writes beside `data-iox-opening`. */
22447
+ function openingMediaAttributes(layout) {
22448
+ return { [OPENING_MEDIA_ATTRIBUTE]: openingMediaOf(layout) };
22449
+ }
22450
+ /**
22451
+ * Whether the header shows its ground — FIRM (HI3-D4, D10, D11): a solid or glass header always; an over header once the
22452
+ * page has moved, while its menu is open, and from the top on a page that opens without a picture. The ONE answer: the
22453
+ * shared CSS draws it through `HEADER_AT_REST_SELECTOR` (held equal to this by header-behaviour.spec), the canvas's
22454
+ * "At the top · Scrolled" pair asks it. Pure.
22455
+ */
22456
+ function headerFirm(ground, moment = {}) {
22457
+ if (!headerGroundIsOver(ground))
22458
+ return true;
22459
+ return !(moment.openingMedia === OpeningMediaKind.Picture && !moment.scrolled && !moment.menuOpen);
22460
+ }
22461
+ /** Whether the header gives its height back to the page (HI3-D7): it does not stand on its own solid ground, over a page
22462
+ * that opens on a picture — the picture starts at the top of the page, under the bar. */
22463
+ function headerGivesBack(ground, openingMedia) {
22464
+ return headerGroundOf(ground) !== HeaderGround.Solid && openingMedia === OpeningMediaKind.Picture;
22465
+ }
22466
+ /** The Page scrolled state's attribute (main entry `SCROLLED_ATTRIBUTE`; spelled here — design-core reads no Angular
22467
+ * entry; held equal by the scrolled spec). */
22468
+ const HEADER_SCROLLED_ATTRIBUTE = 'data-iox-scrolled';
22469
+ /** An open menu inside the header (the drawer / full / panel Dialog is the header's own child — T2). */
22470
+ const HEADER_OPEN_MENU_SELECTOR = 'dialog[open]';
22471
+ /** The CSS custom property the header runtime writes its height in (`watchHeaderHeight`), on the scope around it. */
22472
+ const HEADER_HEIGHT_VAR = '--header-h';
22473
+ const groundIs = (grounds) => `:is(${grounds.map(g => `[${HeaderAttribute.Ground}="${g}"]`).join(', ')})`;
22474
+ const onPicture = `:is([${OPENING_MEDIA_ATTRIBUTE}="${OpeningMediaKind.Picture}"] *)`;
22475
+ /**
22476
+ * The header AT REST (not firm), as a compound selector on the header's own element — `headerFirm`'s twin in CSS: an over
22477
+ * ground, inside a page that opens on a picture, not inside a scrolled page, holding no open menu.
22478
+ */
22479
+ const HEADER_AT_REST_SELECTOR = `${groundIs(OVER_GROUNDS)}${onPicture}:not([${HEADER_SCROLLED_ATTRIBUTE}] *):not(:has(${HEADER_OPEN_MENU_SELECTOR}))`;
22480
+ /** The header that gives its height back (`headerGivesBack`'s twin): any ground word, inside a page that opens on a picture. */
22481
+ const HEADER_GIVES_BACK_SELECTOR = `[${HeaderAttribute.Ground}]${onPicture}`;
22482
+ /**
22483
+ * Whose colours a header wears at rest and once firm (HI3-D8), as the part of the opening follower's selector the header's
22484
+ * element must match: a header with no ground word, or one that follows every section, wears the opening as before; a
22485
+ * header standing on a ground wears the opening only AT REST — once firm, the page's own.
22486
+ */
22487
+ const OPENING_FOLLOWER_GROUND_CLAUSES = [
22488
+ `:where(:not([${HeaderAttribute.Ground}]:not([${HeaderAttribute.Ink}="${HeaderInk.Follows}"])))`,
22489
+ `:where(${HEADER_AT_REST_SELECTOR})`,
22490
+ ];
22491
+ // ── The header's name on a phone (vectoriox/iox-ui#98) ─────────────────────────────────────────────────────────────
22492
+ /** The brand's role (generation-core `NavRole.Brand`, spelled here: design-core reads no generation-core). */
22493
+ const BRAND_ROLE = 'nav.brand';
22494
+ /** Written on the brand when its name is long: the shared CSS steps its type down the look's scale on a phone. */
22495
+ const BRAND_NAME_ATTRIBUTE = 'data-iox-name';
22496
+ /** How long a header's name is, for a phone bar that must hold it on one or two lines. */
22497
+ var BrandNameLength;
22498
+ (function (BrandNameLength) {
22499
+ /** Wears `size-lead` on a phone. */
22500
+ BrandNameLength["Long"] = "long";
22501
+ /** Wears `size-body` on a phone. */
22502
+ BrandNameLength["Longer"] = "longer";
22503
+ /** Wears `size-small` on a phone (vectoriox/iox-ui#120: a name that took three lines at `size-body`). */
22504
+ BrandNameLength["Longest"] = "longest";
22505
+ })(BrandNameLength || (BrandNameLength = {}));
22506
+ /** From this many characters a name is `long`, then `longer`, then `longest`. Below it the name keeps its own size (a
22507
+ * phone bar holds a 16-character name in two lines at the largest heading size the looks give a brand). */
22508
+ const BRAND_NAME_LONG_AT = 17;
22509
+ const BRAND_NAME_LONGER_AT = 29;
22510
+ const BRAND_NAME_LONGEST_AT = 36;
22511
+ /** vectoriox/iox-ui#120: a line never breaks inside a word, so the LONGEST WORD decides too — a word from this many
22512
+ * letters does not fit one line of the bar at the size the name's length alone would give it ("Neighbourhoo|d Café"). */
22513
+ const BRAND_WORD_LONG_AT = 10;
22514
+ const BRAND_WORD_LONGER_AT = 12;
22515
+ const BRAND_WORD_LONGEST_AT = 15;
22516
+ const BRAND_STEPS = [
22517
+ { length: BrandNameLength.Longest, name: BRAND_NAME_LONGEST_AT, word: BRAND_WORD_LONGEST_AT },
22518
+ { length: BrandNameLength.Longer, name: BRAND_NAME_LONGER_AT, word: BRAND_WORD_LONGER_AT },
22519
+ { length: BrandNameLength.Long, name: BRAND_NAME_LONG_AT, word: BRAND_WORD_LONG_AT },
22520
+ ];
22521
+ /**
22522
+ * vectoriox/iox-ui#143: the steps for a CROWDED bar — three controls or more beside the name on a phone (a store's
22523
+ * account and bag beside the menu). Measured on a 390 store header (Fraunces, 4 × 16px gaps, 32px insets): the name kept
22524
+ * 77px, and "Homeware" (8 letters, 110px at the lead size) broke inside the word. A crowded bar packs its controls
22525
+ * (`BAR_ATTRIBUTE`, the shared CSS), which leaves the name ~105px at 360; at ~0.6em a letter that holds a 6-letter word at
22526
+ * the name's own size, 7 at `size-lead`, 10 at `size-body` — and, at ~0.55em a character, two lines of 13 / 16 / 22.
22527
+ */
22528
+ const BRAND_CROWDED_NAME_LONG_AT = 13;
22529
+ const BRAND_CROWDED_NAME_LONGER_AT = 17;
22530
+ const BRAND_CROWDED_NAME_LONGEST_AT = 23;
22531
+ const BRAND_CROWDED_WORD_LONG_AT = 7;
22532
+ const BRAND_CROWDED_WORD_LONGER_AT = 8;
22533
+ const BRAND_CROWDED_WORD_LONGEST_AT = 11;
22534
+ const BRAND_CROWDED_STEPS = [
22535
+ { length: BrandNameLength.Longest, name: BRAND_CROWDED_NAME_LONGEST_AT, word: BRAND_CROWDED_WORD_LONGEST_AT },
22536
+ { length: BrandNameLength.Longer, name: BRAND_CROWDED_NAME_LONGER_AT, word: BRAND_CROWDED_WORD_LONGER_AT },
22537
+ { length: BrandNameLength.Long, name: BRAND_CROWDED_NAME_LONG_AT, word: BRAND_CROWDED_WORD_LONG_AT },
22538
+ ];
22539
+ /** The step a name takes: by its length and by its longest word, whichever asks for the smaller type; null = its size. */
22540
+ function brandNameLength(words, crowded = false) {
22541
+ const text = words.replace(/<[^>]+>/g, '').replace(/\s+/g, ' ').trim();
22542
+ const n = [...text].length;
22543
+ const word = Math.max(0, ...text.split(' ').map(w => [...w].length));
22544
+ return (crowded ? BRAND_CROWDED_STEPS : BRAND_STEPS).find(s => n >= s.name || word >= s.word)?.length ?? null;
22545
+ }
22546
+ /** The name's attributes: `{}` for a name that keeps its size. Never shortens the words — the type steps down, by the
22547
+ * name's length and by its longest word, whichever asks for the smaller step. */
22548
+ function brandNameAttributes(words) {
22549
+ const step = brandNameLength(words);
22550
+ return step ? { [BRAND_NAME_ATTRIBUTE]: step } : {};
22551
+ }
22552
+ // ── A crowded bar (vectoriox/iox-ui#143) ───────────────────────────────────────────────────────────────────────────
22553
+ /** The navigation root's role (generation-core `NavRole.Root`). */
22554
+ const NAV_ROLE = 'nav';
22555
+ /** Written on the navigation root when its phone bar is crowded: the shared CSS packs the controls. */
22556
+ const BAR_ATTRIBUTE = 'data-iox-bar';
22557
+ /** Written beside it: the step the name takes in that bar (never smaller type than the name's own step asks). */
22558
+ const BAR_NAME_ATTRIBUTE = 'data-iox-bar-name';
22559
+ var BarRoom;
22560
+ (function (BarRoom) {
22561
+ BarRoom["Crowded"] = "crowded";
22562
+ })(BarRoom || (BarRoom = {}));
22563
+ /** From this many controls beside the name on a phone, the bar is crowded. */
22564
+ const BAR_CROWDED_AT = 3;
22565
+ /** The parts that stay in the bar beside the name on a phone (generation-core `phoneHiddenParts` keeps the menu button, a
22566
+ * store's bag and account; HI1 keeps a menu-at-every-width header's pinned pages and actions). Spelled here: design-core
22567
+ * reads neither generation-core nor composite-core. */
22568
+ const PHONE_BAR_CONTROL_ROLES = ['nav.menu-button', 'shop.cart-button', 'account', 'nav.pinned', 'nav.actions'];
22569
+ /** What never counts: the drawer (a Dialog) and everything in it. */
22570
+ const BAR_SKIPPED_TYPES = ['Dialog'];
22571
+ /** The layers that reach a phone held upright, widest → narrowest — the cascade order (iox-ui `BREAKPOINTS`: `laptop`
22572
+ * ≤ 1200, `tablet` ≤ 991, `mobile` ≤ 767, `small` ≤ 479). Spelled here: design-core reads no Angular entry. */
22573
+ const PHONE_CASCADE = ['laptop', 'tablet', 'mobile', 'small'];
22574
+ /** Hidden on a phone: its display where a phone held upright lands, the last layer that says one (base → `small`).
22575
+ * vectoriox/iox-ui#143: a menu button is `none` at base and shown from its breakpoint down — read by its base alone it
22576
+ * was "hidden", the store bar (account · bag · menu) counted two and was never crowded, and its name broke at 390. */
22577
+ const hiddenOnPhone = (node) => {
22578
+ let display = node.styleProps?.['display'];
22579
+ for (const bp of PHONE_CASCADE) {
22580
+ const layer = node.responsive?.[bp]?.styleProps?.['display'];
22581
+ if (layer !== undefined && layer !== null && layer !== '')
22582
+ display = layer;
22583
+ }
22584
+ return display === 'none';
22585
+ };
22586
+ /** How many controls sit beside the name in the navigation's phone bar. */
22587
+ function phoneBarControls(nav) {
22588
+ let n = 0;
22589
+ const walk = (node) => {
22590
+ for (const child of (node.children ?? [])) {
22591
+ if (!child || (child.type && BAR_SKIPPED_TYPES.includes(child.type)) || hiddenOnPhone(child))
22592
+ continue;
22593
+ if (child.role && PHONE_BAR_CONTROL_ROLES.includes(child.role)) {
22594
+ n++;
22595
+ continue;
22596
+ }
22597
+ walk(child);
22598
+ }
22599
+ };
22600
+ if (nav)
22601
+ walk(nav);
22602
+ return n;
22603
+ }
22604
+ /** The navigation root's attributes: `{}` for a bar that is not crowded; else `crowded` and the name's crowded step. */
22605
+ function navBarAttributes(nav, brandWords) {
22606
+ if (phoneBarControls(nav) < BAR_CROWDED_AT)
22607
+ return {};
22608
+ const step = brandNameLength(brandWords, true);
22609
+ return { [BAR_ATTRIBUTE]: BarRoom.Crowded, ...(step ? { [BAR_NAME_ATTRIBUTE]: step } : {}) };
22610
+ }
22611
+
22612
+ /**
22613
+ * The design-system classes a node renders, in BOTH renderers (builder canvas, engine component
22614
+ * path, engine string path) — ONE helper, so the three can never disagree about which class a node
22615
+ * carries:
22616
+ *
22617
+ * - the element-style MARKER `iox-es iox-es-<id>` (design-system §3b-bis) — component CSS carrying
22618
+ * the system look is scoped to it, so a node saved before DS2 keeps its pre-DS2 look;
22619
+ * - the section colour scheme `iox-scheme-<id>` (§3c) for a non-default `colorScheme` — the class
22620
+ * `compileSchemeCss` re-declares tokens on, so everything inside re-resolves;
22621
+ * - the composite ROLE `iox-role-<role>` (`card.media` → `iox-role-card-media`; composite-components
22622
+ * plan §3, Card v2) — what the shared CSS keys a part's structural rules on (the badge's corner, the
22623
+ * card's stretched link), so a role is never a renderer's private knowledge;
22624
+ * - a Section's edge and shape `iox-seam-<edge>` / `iox-section-card` (AW6, `section-edge.ts`) — what the shared CSS
22625
+ * paints a seam on.
22626
+ *
22627
+ * Renderers read `elementStyle`, `colorScheme` and `role` for exactly this and nothing else.
22628
+ */
22629
+ /** The section colour schemes — the contract's `schemes` keys. */
22630
+ var ColorScheme;
22631
+ (function (ColorScheme) {
22632
+ ColorScheme["Default"] = "default";
22633
+ ColorScheme["Subtle"] = "subtle";
22634
+ ColorScheme["Inverse"] = "inverse";
22635
+ ColorScheme["Accent"] = "accent";
22636
+ /** A band painted the page's muted ink (iox-ui#70). */
22637
+ ColorScheme["Muted"] = "muted";
22638
+ })(ColorScheme || (ColorScheme = {}));
22639
+ /** The content trait (stored in `props`, not a style prop) that picks a node's scheme. */
22640
+ const COLOR_SCHEME_TRAIT = 'colorScheme';
22641
+ /** The node types that offer a scheme (spec §3c: Section/Container; LinkedContainer is a Container that links). */
22642
+ const COLOR_SCHEME_TYPES = ['Section', 'Container', 'LinkedContainer'];
22643
+ /** Every scheme in contract order, with the contract's label (Default · Subtle · Inverse · Brand · Muted). */
22644
+ const COLOR_SCHEMES = Object.keys(SPEC_SCHEMES).map(id => ({ id, label: SPEC_SCHEMES[id].label }));
22645
+ const SCHEME_IDS$1 = new Set(Object.keys(SPEC_SCHEMES));
22646
+ const SCHEME_PREFIX = 'iox-scheme-';
22647
+ const ROLE_PREFIX = 'iox-role-';
22648
+ /** A role is dot-separated lowercase words (`card`, `card.title`) — anything else never reaches a class. */
22649
+ const ROLE_SHAPE = /^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)*$/;
22650
+ const MARKER_PREFIX = `${ELEMENT_STYLE_MARKER_CLASS}-`;
22651
+ /** `iox-scheme-<id>` for a known NON-default scheme, else null — an unknown id never reaches a class attribute. */
22652
+ function colorSchemeClass(id) {
22653
+ return typeof id === 'string' && id !== ColorScheme.Default && SCHEME_IDS$1.has(id) ? `${SCHEME_PREFIX}${id}` : null;
22654
+ }
22655
+ /**
22656
+ * The scheme a page OPENS on, and the site header following it (M8 demo, vectoriox/iox-ui#71): the header is a global —
22035
22657
  * one node for every page — so a dark page under a light header read as a cream strip over the night. A page stores the
22036
22658
  * scheme of its first ground (`pageSettings.opening`); the renderer puts it on the element around the header (the
22037
22659
  * engine's body, the canvas's globals layer) as `data-iox-opening`, and `compileSchemeCss` re-declares that scheme's
@@ -22048,9 +22670,15 @@ function pageOpeningScheme(pageSettings) {
22048
22670
  const id = pageSettings?.[OPENING_SETTING];
22049
22671
  return colorSchemeClass(id) ? id : null;
22050
22672
  }
22051
- /** The header that follows an opening of scheme `id` and names none of its own, inside `scope` (the builder's token scope). */
22673
+ /**
22674
+ * The header that follows an opening of scheme `id` and names none of its own, inside `scope` (the builder's token scope).
22675
+ * HI3-D8: a header standing on a ground (over · over-glass · glass) follows the opening only at rest — once it has turned
22676
+ * it wears the page's own colours (unless its colours follow every section). Two selectors, each the same specificity as
22677
+ * before (the ground clauses are `:where()`).
22678
+ */
22052
22679
  function openingFollowerSelector(id, scope) {
22053
- return `${scope ? `${scope} ` : ''}[${OPENING_ATTRIBUTE}="${id}"] .${roleClass(OPENING_FOLLOWER_ROLE)}:not([class*="${SCHEME_PREFIX}"])`;
22680
+ const base = `${scope ? `${scope} ` : ''}[${OPENING_ATTRIBUTE}="${id}"] .${roleClass(OPENING_FOLLOWER_ROLE)}:not([class*="${SCHEME_PREFIX}"])`;
22681
+ return OPENING_FOLLOWER_GROUND_CLAUSES.map(clause => `${base}${clause}`).join(', ');
22054
22682
  }
22055
22683
  /**
22056
22684
  * The page's CONTENT COLUMN (award plan §0c, AW-D33…AW-D41): every section, the header and the footer inset their words
@@ -22721,220 +23349,6 @@ function themeColors(rows, mode = 'auto', options = {}) {
22721
23349
  return out;
22722
23350
  }
22723
23351
 
22724
- /**
22725
- * How a site's header behaves as the page scrolls (premium components T2, M4). Two traits on the header's ROOT (the
22726
- * Navigation bar, generation-core `NavRole.Root`) — edited in its "Header" section, stamped by the composer from a
22727
- * `nav.*` pattern's `header` — and ONE answer every renderer applies: the attributes below, which the shared CSS
22728
- * (`iox-design.css`) and the header runtime (`HeaderRuntime`, main entry) read. A header with neither trait renders
22729
- * exactly as before (it scrolls away with the page, its divider line as its look draws it).
22730
- *
22731
- * Framework-free: the composer (generation-core) and both renderers read it.
22732
- */
22733
- var HeaderBehaviour;
22734
- (function (HeaderBehaviour) {
22735
- /** It scrolls away with the page (the default; what every header saved before M4 does). */
22736
- HeaderBehaviour["Scrolls"] = "scrolls";
22737
- /** It stays at the top while the page scrolls under it. */
22738
- HeaderBehaviour["Stays"] = "stays";
22739
- /** It steps aside while the page scrolls down and comes back the moment it scrolls up. */
22740
- HeaderBehaviour["Hides"] = "hides";
22741
- })(HeaderBehaviour || (HeaderBehaviour = {}));
22742
- /** What separates the header from the page once the page has moved under it (Emil 99: an edge, not a divider). */
22743
- var HeaderEdge;
22744
- (function (HeaderEdge) {
22745
- /** A soft fade of the header's own ground over the content under it. */
22746
- HeaderEdge["Fade"] = "fade";
22747
- /** A hairline in the header's border colour. */
22748
- HeaderEdge["Line"] = "line";
22749
- HeaderEdge["None"] = "none";
22750
- })(HeaderEdge || (HeaderEdge = {}));
22751
- /** The traits, stored in the root's props (no default: a plain Container saves neither). */
22752
- var HeaderTrait;
22753
- (function (HeaderTrait) {
22754
- HeaderTrait["Behaviour"] = "headerBehaviour";
22755
- HeaderTrait["Edge"] = "headerEdge";
22756
- /** HI1b (HS-5): the mix the header was composed as — its `<ingredient>:<word>` words, space-separated (generation-core
22757
- * `stampHeaderMix`). Read by Bindings ▸ Header and the Header studio; no renderer reads it. */
22758
- HeaderTrait["Mix"] = "headerMix";
22759
- /** AW6 (AW6-D10): `follows` — its colours follow the section under it as the page scrolls. Absent / `opening`: it
22760
- * wears the page's opening (#71), as before. Written by the Header studio ▸ Ground and the composer (`ink:follows`). */
22761
- HeaderTrait["Ink"] = "headerInk";
22762
- })(HeaderTrait || (HeaderTrait = {}));
22763
- /** Whose colours the header wears (contract HEADER `ink`): the page's opening, or every section as it passes under it. */
22764
- var HeaderInk;
22765
- (function (HeaderInk) {
22766
- HeaderInk["Opening"] = "opening";
22767
- HeaderInk["Follows"] = "follows";
22768
- })(HeaderInk || (HeaderInk = {}));
22769
- var HeaderAttribute;
22770
- (function (HeaderAttribute) {
22771
- /** `stays` | `hides` on a header that stays at the top. Absent: it scrolls away. */
22772
- HeaderAttribute["Behaviour"] = "data-iox-header";
22773
- /** `fade` | `line` | `none`: the edge it shows once the page has scrolled. Absent: its look's own divider stays. */
22774
- HeaderAttribute["Edge"] = "data-iox-header-edge";
22775
- /** Written by the header runtime while a `hides` header has stepped aside. */
22776
- HeaderAttribute["Hidden"] = "data-iox-header-hidden";
22777
- /** `follows` on a header whose colours follow the section under it (the header ink runtime writes the page's
22778
- * `data-iox-opening` as each section passes; the shared CSS cross-fades). Absent: it wears the opening. */
22779
- HeaderAttribute["Ink"] = "data-iox-header-ink";
22780
- })(HeaderAttribute || (HeaderAttribute = {}));
22781
- /** What a composed header gets (the `nav.*` patterns' `header`, the palette's Navigation bar). */
22782
- const COMPOSED_HEADER = {
22783
- behaviour: HeaderBehaviour.Hides,
22784
- edge: HeaderEdge.Fade,
22785
- };
22786
- const BEHAVIOURS = new Set(Object.values(HeaderBehaviour));
22787
- const EDGES = new Set(Object.values(HeaderEdge));
22788
- /** A stored behaviour, or Scrolls for anything else. */
22789
- function headerBehaviourOf(value) {
22790
- return typeof value === 'string' && BEHAVIOURS.has(value) ? value : HeaderBehaviour.Scrolls;
22791
- }
22792
- /** A stored edge, or null (none chosen: the look's divider stays as it is). */
22793
- function headerEdgeOf(value) {
22794
- return typeof value === 'string' && EDGES.has(value) ? value : null;
22795
- }
22796
- /** True when the header keeps its place at the top of the screen (it stays, or it hides and comes back). */
22797
- function headerStaysAtTop(behaviour) {
22798
- return headerBehaviourOf(behaviour) !== HeaderBehaviour.Scrolls;
22799
- }
22800
- /** A stored ink, or Opening for anything else. */
22801
- function headerInkOf(value) {
22802
- return value === HeaderInk.Follows ? HeaderInk.Follows : HeaderInk.Opening;
22803
- }
22804
- /** The attributes a header renders, from its trait values — `{}` for a header that keeps today's behaviour. */
22805
- function headerAttributes(behaviour, edge, ink) {
22806
- const out = {};
22807
- if (headerInkOf(ink) === HeaderInk.Follows)
22808
- out[HeaderAttribute.Ink] = HeaderInk.Follows;
22809
- const b = headerBehaviourOf(behaviour);
22810
- if (b !== HeaderBehaviour.Scrolls)
22811
- out[HeaderAttribute.Behaviour] = b;
22812
- const e = headerEdgeOf(edge);
22813
- if (e)
22814
- out[HeaderAttribute.Edge] = e;
22815
- return out;
22816
- }
22817
- // ── The header's name on a phone (vectoriox/iox-ui#98) ─────────────────────────────────────────────────────────────
22818
- /** The brand's role (generation-core `NavRole.Brand`, spelled here: design-core reads no generation-core). */
22819
- const BRAND_ROLE = 'nav.brand';
22820
- /** Written on the brand when its name is long: the shared CSS steps its type down the look's scale on a phone. */
22821
- const BRAND_NAME_ATTRIBUTE = 'data-iox-name';
22822
- /** How long a header's name is, for a phone bar that must hold it on one or two lines. */
22823
- var BrandNameLength;
22824
- (function (BrandNameLength) {
22825
- /** Wears `size-lead` on a phone. */
22826
- BrandNameLength["Long"] = "long";
22827
- /** Wears `size-body` on a phone. */
22828
- BrandNameLength["Longer"] = "longer";
22829
- /** Wears `size-small` on a phone (vectoriox/iox-ui#120: a name that took three lines at `size-body`). */
22830
- BrandNameLength["Longest"] = "longest";
22831
- })(BrandNameLength || (BrandNameLength = {}));
22832
- /** From this many characters a name is `long`, then `longer`, then `longest`. Below it the name keeps its own size (a
22833
- * phone bar holds a 16-character name in two lines at the largest heading size the looks give a brand). */
22834
- const BRAND_NAME_LONG_AT = 17;
22835
- const BRAND_NAME_LONGER_AT = 29;
22836
- const BRAND_NAME_LONGEST_AT = 36;
22837
- /** vectoriox/iox-ui#120: a line never breaks inside a word, so the LONGEST WORD decides too — a word from this many
22838
- * letters does not fit one line of the bar at the size the name's length alone would give it ("Neighbourhoo|d Café"). */
22839
- const BRAND_WORD_LONG_AT = 10;
22840
- const BRAND_WORD_LONGER_AT = 12;
22841
- const BRAND_WORD_LONGEST_AT = 15;
22842
- const BRAND_STEPS = [
22843
- { length: BrandNameLength.Longest, name: BRAND_NAME_LONGEST_AT, word: BRAND_WORD_LONGEST_AT },
22844
- { length: BrandNameLength.Longer, name: BRAND_NAME_LONGER_AT, word: BRAND_WORD_LONGER_AT },
22845
- { length: BrandNameLength.Long, name: BRAND_NAME_LONG_AT, word: BRAND_WORD_LONG_AT },
22846
- ];
22847
- /**
22848
- * vectoriox/iox-ui#143: the steps for a CROWDED bar — three controls or more beside the name on a phone (a store's
22849
- * account and bag beside the menu). Measured on a 390 store header (Fraunces, 4 × 16px gaps, 32px insets): the name kept
22850
- * 77px, and "Homeware" (8 letters, 110px at the lead size) broke inside the word. A crowded bar packs its controls
22851
- * (`BAR_ATTRIBUTE`, the shared CSS), which leaves the name ~105px at 360; at ~0.6em a letter that holds a 6-letter word at
22852
- * the name's own size, 7 at `size-lead`, 10 at `size-body` — and, at ~0.55em a character, two lines of 13 / 16 / 22.
22853
- */
22854
- const BRAND_CROWDED_NAME_LONG_AT = 13;
22855
- const BRAND_CROWDED_NAME_LONGER_AT = 17;
22856
- const BRAND_CROWDED_NAME_LONGEST_AT = 23;
22857
- const BRAND_CROWDED_WORD_LONG_AT = 7;
22858
- const BRAND_CROWDED_WORD_LONGER_AT = 8;
22859
- const BRAND_CROWDED_WORD_LONGEST_AT = 11;
22860
- const BRAND_CROWDED_STEPS = [
22861
- { length: BrandNameLength.Longest, name: BRAND_CROWDED_NAME_LONGEST_AT, word: BRAND_CROWDED_WORD_LONGEST_AT },
22862
- { length: BrandNameLength.Longer, name: BRAND_CROWDED_NAME_LONGER_AT, word: BRAND_CROWDED_WORD_LONGER_AT },
22863
- { length: BrandNameLength.Long, name: BRAND_CROWDED_NAME_LONG_AT, word: BRAND_CROWDED_WORD_LONG_AT },
22864
- ];
22865
- /** The step a name takes: by its length and by its longest word, whichever asks for the smaller type; null = its size. */
22866
- function brandNameLength(words, crowded = false) {
22867
- const text = words.replace(/<[^>]+>/g, '').replace(/\s+/g, ' ').trim();
22868
- const n = [...text].length;
22869
- const word = Math.max(0, ...text.split(' ').map(w => [...w].length));
22870
- return (crowded ? BRAND_CROWDED_STEPS : BRAND_STEPS).find(s => n >= s.name || word >= s.word)?.length ?? null;
22871
- }
22872
- /** The name's attributes: `{}` for a name that keeps its size. Never shortens the words — the type steps down, by the
22873
- * name's length and by its longest word, whichever asks for the smaller step. */
22874
- function brandNameAttributes(words) {
22875
- const step = brandNameLength(words);
22876
- return step ? { [BRAND_NAME_ATTRIBUTE]: step } : {};
22877
- }
22878
- // ── A crowded bar (vectoriox/iox-ui#143) ───────────────────────────────────────────────────────────────────────────
22879
- /** The navigation root's role (generation-core `NavRole.Root`). */
22880
- const NAV_ROLE = 'nav';
22881
- /** Written on the navigation root when its phone bar is crowded: the shared CSS packs the controls. */
22882
- const BAR_ATTRIBUTE = 'data-iox-bar';
22883
- /** Written beside it: the step the name takes in that bar (never smaller type than the name's own step asks). */
22884
- const BAR_NAME_ATTRIBUTE = 'data-iox-bar-name';
22885
- var BarRoom;
22886
- (function (BarRoom) {
22887
- BarRoom["Crowded"] = "crowded";
22888
- })(BarRoom || (BarRoom = {}));
22889
- /** From this many controls beside the name on a phone, the bar is crowded. */
22890
- const BAR_CROWDED_AT = 3;
22891
- /** The parts that stay in the bar beside the name on a phone (generation-core `phoneHiddenParts` keeps the menu button, a
22892
- * store's bag and account; HI1 keeps a menu-at-every-width header's pinned pages and actions). Spelled here: design-core
22893
- * reads neither generation-core nor composite-core. */
22894
- const PHONE_BAR_CONTROL_ROLES = ['nav.menu-button', 'shop.cart-button', 'account', 'nav.pinned', 'nav.actions'];
22895
- /** What never counts: the drawer (a Dialog) and everything in it. */
22896
- const BAR_SKIPPED_TYPES = ['Dialog'];
22897
- /** The layers that reach a phone held upright, widest → narrowest — the cascade order (iox-ui `BREAKPOINTS`: `laptop`
22898
- * ≤ 1200, `tablet` ≤ 991, `mobile` ≤ 767, `small` ≤ 479). Spelled here: design-core reads no Angular entry. */
22899
- const PHONE_CASCADE = ['laptop', 'tablet', 'mobile', 'small'];
22900
- /** Hidden on a phone: its display where a phone held upright lands, the last layer that says one (base → `small`).
22901
- * vectoriox/iox-ui#143: a menu button is `none` at base and shown from its breakpoint down — read by its base alone it
22902
- * was "hidden", the store bar (account · bag · menu) counted two and was never crowded, and its name broke at 390. */
22903
- const hiddenOnPhone = (node) => {
22904
- let display = node.styleProps?.['display'];
22905
- for (const bp of PHONE_CASCADE) {
22906
- const layer = node.responsive?.[bp]?.styleProps?.['display'];
22907
- if (layer !== undefined && layer !== null && layer !== '')
22908
- display = layer;
22909
- }
22910
- return display === 'none';
22911
- };
22912
- /** How many controls sit beside the name in the navigation's phone bar. */
22913
- function phoneBarControls(nav) {
22914
- let n = 0;
22915
- const walk = (node) => {
22916
- for (const child of (node.children ?? [])) {
22917
- if (!child || (child.type && BAR_SKIPPED_TYPES.includes(child.type)) || hiddenOnPhone(child))
22918
- continue;
22919
- if (child.role && PHONE_BAR_CONTROL_ROLES.includes(child.role)) {
22920
- n++;
22921
- continue;
22922
- }
22923
- walk(child);
22924
- }
22925
- };
22926
- if (nav)
22927
- walk(nav);
22928
- return n;
22929
- }
22930
- /** The navigation root's attributes: `{}` for a bar that is not crowded; else `crowded` and the name's crowded step. */
22931
- function navBarAttributes(nav, brandWords) {
22932
- if (phoneBarControls(nav) < BAR_CROWDED_AT)
22933
- return {};
22934
- const step = brandNameLength(brandWords, true);
22935
- return { [BAR_ATTRIBUTE]: BarRoom.Crowded, ...(step ? { [BAR_NAME_ATTRIBUTE]: step } : {}) };
22936
- }
22937
-
22938
23352
  /**
22939
23353
  * How a site's MENU looks and moves (header-ingredients-plan.md HI2a; HB-D1/HB-D2, header-builder board v2). The header
22940
23354
  * table's menu words — its form (drawer · full · top panel · card · mega), how it opens (slide · fade · zoom · circle ·
@@ -23409,7 +23823,7 @@ const RAMP_STEPS = [
23409
23823
  { step: 800, L: 0.36, chromaScale: 0.76 },
23410
23824
  { step: 900, L: 0.27, chromaScale: 0.62 },
23411
23825
  ];
23412
- const BLACK = { r: 0, g: 0, b: 0 };
23826
+ const BLACK$1 = { r: 0, g: 0, b: 0 };
23413
23827
  const WHITE$1 = { r: 1, g: 1, b: 1 };
23414
23828
  /** Snap to the 8-bit hex the token will actually carry — contrast is judged on WHAT SHIPS.
23415
23829
  * (The first version searched in float space and hex rounding landed 6.9596 where 7 was owed.) */
@@ -23463,12 +23877,12 @@ function deriveBrandTokens(seed, pack) {
23463
23877
  // 2 — brandInk on brand-500, nudging 500 (within its neighbours) when neither ink clears 4.5
23464
23878
  let five = ramp.find(r => r.step === 500);
23465
23879
  five.rgb = quant(five.rgb);
23466
- const inkFor = (bg) => (wcagContrastRatio(WHITE$1, bg) >= wcagContrastRatio(BLACK, bg) ? WHITE$1 : BLACK);
23880
+ const inkFor = (bg) => (wcagContrastRatio(WHITE$1, bg) >= wcagContrastRatio(BLACK$1, bg) ? WHITE$1 : BLACK$1);
23467
23881
  for (let i = 0; i < 40 && wcagContrastRatio(inkFor(five.rgb), five.rgb) < 4.5; i++) {
23468
23882
  const L = rgbToOklab(five.rgb).L;
23469
23883
  // Mid tones can fail both inks — walk toward whichever side is already winning, but
23470
23884
  // never past the neighbouring steps: the ramp's monotonic lightness is a guarantee.
23471
- const towardDark = wcagContrastRatio(WHITE$1, five.rgb) >= wcagContrastRatio(BLACK, five.rgb);
23885
+ const towardDark = wcagContrastRatio(WHITE$1, five.rgb) >= wcagContrastRatio(BLACK$1, five.rgb);
23472
23886
  const next = Math.min(0.695, Math.max(0.545, L + (towardDark ? -0.012 : 0.012)));
23473
23887
  if (next === L)
23474
23888
  break;
@@ -23511,7 +23925,7 @@ const groundList = (g) => (g === undefined || g === null ? [] : typeof g === 'st
23511
23925
  const hasGround = (g) => groundList(g).length > 0;
23512
23926
  const RAMP_ORDER = RAMP_STEPS.map(s => s.step);
23513
23927
  const WHITE_HEX = toHexColor(WHITE$1);
23514
- const BLACK_HEX = toHexColor(BLACK);
23928
+ const BLACK_HEX = toHexColor(BLACK$1);
23515
23929
  const passesText = (fg, bg) => groundList(bg).every(g => wcagContrastRatio(fg, g) >= WCAG_AA_TEXT);
23516
23930
  const bestInkHex = (bg) => (wcagContrastRatio(WHITE_HEX, bg) >= wcagContrastRatio(BLACK_HEX, bg) ? WHITE_HEX : BLACK_HEX);
23517
23931
  /**
@@ -24425,6 +24839,39 @@ function colourTabChecks(rows, mode) {
24425
24839
  }
24426
24840
  return out;
24427
24841
  }
24842
+ /** The translucent grounds that carry words over ANYTHING (the header's bar and glass while the page moves under them, the
24843
+ * bottom bar, a dialog, a popover, the strong glass) — the contract's table (`contrastAudit.floatingGrounds`). */
24844
+ const FLOATING_GROUNDS = SPEC_CONTRAST_AUDIT.floatingGrounds ?? [];
24845
+ const BLACK = { r: 0, g: 0, b: 0, a: 1 };
24846
+ /** The two backdrops that bound every picture: each channel of a blend is monotone in its backdrop's. */
24847
+ const FLOATING_BACKDROPS = Object.freeze({ black: BLACK, white: WHITE });
24848
+ /**
24849
+ * HI3 slice 1 (R-H16): each translucent ground's words over pure black AND pure white, in the page's own scheme (the one a
24850
+ * header on a ground and a top-layer dialog wear), in one mode — nothing a blur can lay under the bar is darker or
24851
+ * lighter, so a ground that holds AA over both holds it over any picture (iox-ui#173: the Glass look's bar dropped to
24852
+ * 3.55:1 over a light picture in dark mode). An opaque ground is not judged here (the DS9 audit judges it where it stands).
24853
+ * The contract's gate, 1:1 (build-spec `floatingGroundFailures`).
24854
+ */
24855
+ function floatingGroundFindings(rows, mode) {
24856
+ const values = schemeTokenResolver(rows, mode)(DEFAULT_SCHEME);
24857
+ const out = [];
24858
+ for (const { ground, ink } of FLOATING_GROUNDS) {
24859
+ const fg = parseCssColour(values[ink]);
24860
+ const bg = parseCssColour(values[ground], fg);
24861
+ if (!fg || !bg || bg.a >= 1)
24862
+ continue;
24863
+ const fgHex = toHexColor(quantizeRgb(fg));
24864
+ for (const [name, under] of Object.entries(FLOATING_BACKDROPS)) {
24865
+ const shown = quantizeRgb(compositeOver(bg, under));
24866
+ const ratio = wcagContrastRatio(fgHex, shown);
24867
+ out.push({
24868
+ scheme: DEFAULT_SCHEME, container: `over ${name}`, element: ground, part: ink, fg: fgHex, bg: toHexColor(shown),
24869
+ ratio: Math.round(ratio * 100) / 100, min: WCAG_AA_TEXT, pass: ratio >= WCAG_AA_TEXT - 1e-9,
24870
+ });
24871
+ }
24872
+ }
24873
+ return out;
24874
+ }
24428
24875
 
24429
24876
  /**
24430
24877
  * Fonts (design-system plan §5b, D7): ONE Google catalog for both renderers, and ONE face builder
@@ -26391,5 +26838,5 @@ function closeWord(lang) {
26391
26838
  * Generated bundle index. Do not edit.
26392
26839
  */
26393
26840
 
26394
- export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BACKDROP_FUNCTIONS, BAR_ATTRIBUTE, BAR_CROWDED_AT, BAR_NAME_ATTRIBUTE, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_CROWDED_NAME_LONGER_AT, BRAND_CROWDED_NAME_LONGEST_AT, BRAND_CROWDED_NAME_LONG_AT, BRAND_CROWDED_WORD_LONGER_AT, BRAND_CROWDED_WORD_LONGEST_AT, BRAND_CROWDED_WORD_LONG_AT, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONGEST_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BRAND_WORD_LONGER_AT, BRAND_WORD_LONGEST_AT, BRAND_WORD_LONG_AT, BUTTON_VARIANT_TO_STYLE, BarRoom, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_EDGES, CARD_LINK_CLASS, CASELESS_LANGUAGES, CASELESS_SCRIPT_OVERRIDES, CLOSE_WORDS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COLUMN_ATTRIBUTE, COLUMN_IDS, COLUMN_SETTING, COMPOSED_HEADER, CONTENT_CAP_TOKEN, CONTENT_WIDTH_TOKEN, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_GROUND_INKS, DEFAULT_MENU_LOOK, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FIELD_INVALID_CLASS, FILTER_FUNCTIONS, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FOOTER_CLASS_PREFIX, FOOTER_MIRRORED_CLASS, FOOTER_MIX_PROP, FieldClass, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, GROUND_INK_MIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderInk, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LINK_WEIGHT_STEP, LIST_CLASS_PREFIX, LIST_MIRRORED_CLASS, LIST_MIX_PROP, LinkType, LocaleDirection, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MIRRORED_EDGES, MOOD_IDS, MOOD_LABELS, MOTION_LANGUAGE_PRESET_IDS, MOVE_IDS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, MotionWordTier, NAV_ROLE, NEW_COLUMN, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OpticalSize, OwnedTraitLink, PALETTE_PRESETS, PHONE_BAR_CONTROL_ROLES, PRELOADER_CAP_MS, PRELOADER_ENTER_EASE, PRELOADER_EXIT_EASE, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRELOADER_MIN_SHOW_MS, PRE_COLUMN, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, PreloaderExit, PreloaderKind, QUIET_LEVELS, QUIET_MOVE, REDUCED_DESIGN_MOTION, REDUCED_ENTRANCE_MAX_MS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, RTL_LANGUAGES, SCHEME_INK, SCROLL_IDS, SCRUB_IDS, SCRUB_LEVELS, SEAM_CLASS_PREFIX, SEAM_MIRRORED_CLASS, SECTION_CARD_CLASS, SECTION_CARD_STYLES, SECTION_CARD_SUPERSEDED, SECTION_EDGES, SECTION_EDGE_TRAIT, SECTION_EDGE_TYPES, SECTION_FULL_STYLES, SECTION_SHAPE_TRAIT, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_METRICS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_MOTION_LANGUAGE, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SPRING_CURVE_TOKEN, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SUPERSEDED_TOKEN_VALUES, SWISS_FLAVOR, ScrubId, SectionEdge, SectionShape, TEXT_LINK_STYLES, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, WIDE_CONTENT_CAP, WIDE_CONTENT_WIDTH, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, brandNameLength, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, closeWord, colorSchemeClass, colorSchemeOf, colourTabChecks, columnSelector, columnWordOf, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, contentCapOf, contentWidthOf, cssString, decomposeCssFunctions, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designPreloaderOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, edgeFitsShape, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, footerMixClasses, footerMixWordsOf, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, inkOnGround, isArriveId, isCaselessLocale, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isFooterMixClass, isListMixClass, isMoveId, isPreloaderKind, isRetiredFlavorId, isScrubId, isSectionDesignClass, languageOf, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, listMixClasses, listMixWordsOf, localeDirection, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, navBarAttributes, nodeDesignClasses, nodeIsRtl, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageColumn, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, phoneBarControls, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planPreloader, planSectionShape, planSwissMigration, popAllowed, preTintAccentGrounds, preloaderExitMotion, preloaderExitOf, preloaderGraphemes, preloaderLeaveAt, preloaderOfChoices, preloaderPercent, preloaderWords, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, schemeOfClasses, schemeTokenResolver, schemeUnderBar, scriptsForLocale, scrubOfChoices, sectionDesignClasses, sectionEdgeClass, sectionEdgeOf, sectionIsRtl, sectionShapeOf, setColorScheme, setSectionEdge, setSectionShape, siteColumnOf, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, staggerDelay, styleKeyToKebab, stylePresetById, stylePresetOfChoices, switchElementStyle, syncNodeDesignClasses, textWidthEm, themeColors, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, withoutScriptPartners, writeFieldError, writeOwnedTrait };
26841
+ export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BACKDROP_FUNCTIONS, BAR_ATTRIBUTE, BAR_CROWDED_AT, BAR_NAME_ATTRIBUTE, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_CROWDED_NAME_LONGER_AT, BRAND_CROWDED_NAME_LONGEST_AT, BRAND_CROWDED_NAME_LONG_AT, BRAND_CROWDED_WORD_LONGER_AT, BRAND_CROWDED_WORD_LONGEST_AT, BRAND_CROWDED_WORD_LONG_AT, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONGEST_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BRAND_WORD_LONGER_AT, BRAND_WORD_LONGEST_AT, BRAND_WORD_LONG_AT, BUTTON_VARIANT_TO_STYLE, BarRoom, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_EDGES, CARD_LINK_CLASS, CASELESS_LANGUAGES, CASELESS_SCRIPT_OVERRIDES, CLOSE_WORDS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COLUMN_ATTRIBUTE, COLUMN_IDS, COLUMN_SETTING, COMPOSED_HEADER, CONTENT_CAP_TOKEN, CONTENT_WIDTH_TOKEN, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_GROUND_INKS, DEFAULT_MENU_LOOK, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FIELD_INVALID_CLASS, FILTER_FUNCTIONS, FLAVOR_SPEC_VERSION, FLOATING_BACKDROPS, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FOOTER_CLASS_PREFIX, FOOTER_MIRRORED_CLASS, FOOTER_MIX_PROP, FieldClass, FontUploadError, GLASS_GROUNDS, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, GROUND_INK_MIN, HEADER_AT_REST_SELECTOR, HEADER_GIVES_BACK_SELECTOR, HEADER_HEIGHT_VAR, HEADER_OPEN_MENU_SELECTOR, HEADER_SCROLLED_ATTRIBUTE, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderGround, HeaderInk, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LINK_WEIGHT_STEP, LIST_CLASS_PREFIX, LIST_MIRRORED_CLASS, LIST_MIX_PROP, LinkType, LocaleDirection, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MIRRORED_EDGES, MOOD_IDS, MOOD_LABELS, MOTION_LANGUAGE_PRESET_IDS, MOVE_IDS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, MotionWordTier, NAV_ROLE, NEW_COLUMN, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_GROUND_CLAUSES, OPENING_FOLLOWER_ROLE, OPENING_MEDIA_ATTRIBUTE, OPENING_SETTING, OVER_GROUNDS, OpeningMediaKind, OpticalSize, OwnedTraitLink, PALETTE_PRESETS, PHONE_BAR_CONTROL_ROLES, PRELOADER_CAP_MS, PRELOADER_ENTER_EASE, PRELOADER_EXIT_EASE, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRELOADER_MIN_SHOW_MS, PRE_COLUMN, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, PreloaderExit, PreloaderKind, QUIET_LEVELS, QUIET_MOVE, REDUCED_DESIGN_MOTION, REDUCED_ENTRANCE_MAX_MS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, RTL_LANGUAGES, SCHEME_INK, SCROLL_IDS, SCRUB_IDS, SCRUB_LEVELS, SEAM_CLASS_PREFIX, SEAM_MIRRORED_CLASS, SECTION_CARD_CLASS, SECTION_CARD_STYLES, SECTION_CARD_SUPERSEDED, SECTION_EDGES, SECTION_EDGE_TRAIT, SECTION_EDGE_TYPES, SECTION_FULL_STYLES, SECTION_SHAPE_TRAIT, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_METRICS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_MOTION_LANGUAGE, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SPRING_CURVE_TOKEN, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SUPERSEDED_TOKEN_VALUES, SWISS_FLAVOR, ScrubId, SectionEdge, SectionShape, TEXT_LINK_STYLES, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, WIDE_CONTENT_CAP, WIDE_CONTENT_WIDTH, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, brandNameLength, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, closeWord, colorSchemeClass, colorSchemeOf, colourTabChecks, columnSelector, columnWordOf, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, contentCapOf, contentWidthOf, cssString, decomposeCssFunctions, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designPreloaderOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, edgeFitsShape, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, floatingGroundFindings, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, footerMixClasses, footerMixWordsOf, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerFirm, headerGivesBack, headerGroundIsGlass, headerGroundIsOver, headerGroundOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, inkOnGround, isArriveId, isCaselessLocale, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isFooterMixClass, isListMixClass, isMoveId, isPreloaderKind, isRetiredFlavorId, isScrubId, isSectionDesignClass, languageOf, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, listMixClasses, listMixWordsOf, localeDirection, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, navBarAttributes, nodeDesignClasses, nodeIsRtl, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, openingMediaAttributes, openingMediaOf, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageColumn, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, phoneBarControls, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planPreloader, planSectionShape, planSwissMigration, popAllowed, preTintAccentGrounds, preloaderExitMotion, preloaderExitOf, preloaderGraphemes, preloaderLeaveAt, preloaderOfChoices, preloaderPercent, preloaderWords, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, schemeOfClasses, schemeTokenResolver, schemeUnderBar, scriptsForLocale, scrubOfChoices, sectionDesignClasses, sectionEdgeClass, sectionEdgeOf, sectionIsRtl, sectionShapeOf, setColorScheme, setSectionEdge, setSectionShape, siteColumnOf, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, staggerDelay, styleKeyToKebab, stylePresetById, stylePresetOfChoices, switchElementStyle, syncNodeDesignClasses, textWidthEm, themeColors, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, withoutScriptPartners, writeFieldError, writeOwnedTrait };
26395
26842
  //# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map