@vectoriox/iox-ui 5.140.0 → 5.142.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/assist-core/index.d.ts +19 -2
  2. package/design-core/index.d.ts +171 -2
  3. package/fesm2022/vectoriox-iox-ui-assist-core.mjs +29 -3
  4. package/fesm2022/vectoriox-iox-ui-assist-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-design-core.mjs +358 -172
  6. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1671 -861
  8. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +49 -18
  10. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-scene-core.mjs +32 -9
  12. package/fesm2022/vectoriox-iox-ui-scene-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui.mjs +85 -4
  14. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  15. package/generation-core/index.d.ts +525 -144
  16. package/harness-core/index.d.ts +18 -18
  17. package/index.d.ts +92 -2
  18. package/package.json +1 -1
  19. package/scene-core/index.d.ts +17 -1
  20. package/src/assist-core/assist-turn.ts +34 -2
  21. package/src/design-core/flavor-spec.generated.ts +141 -0
  22. package/src/design-core/ink-on-ground.ts +36 -0
  23. package/src/design-core/list-classes.ts +37 -0
  24. package/src/design-core/node-classes.ts +3 -2
  25. package/src/design-core/public-api.ts +2 -0
  26. package/src/generation-core/check-layout.ts +23 -1
  27. package/src/generation-core/check-list.ts +144 -5
  28. package/src/generation-core/compose-layout.ts +188 -23
  29. package/src/generation-core/compose-site.ts +14 -2
  30. package/src/generation-core/header-edit.ts +15 -11
  31. package/src/generation-core/layout-fingerprint.ts +5 -1
  32. package/src/generation-core/layout-language.ts +10 -0
  33. package/src/generation-core/layout-wire.ts +64 -24
  34. package/src/generation-core/list-panel.ts +122 -0
  35. package/src/generation-core/list-space.ts +205 -0
  36. package/src/generation-core/list-table.ts +101 -0
  37. package/src/generation-core/node-baselines.generated.ts +3 -1
  38. package/src/generation-core/public-api.ts +2 -0
  39. package/src/generation-core/serialized-node.ts +2 -0
  40. package/src/generation-core/site-plan.model.ts +6 -0
  41. package/src/generation-core/site-spec.generated.ts +188 -70
  42. package/src/generation-core/validate-site-plan.ts +8 -4
  43. package/src/harness-core/harness-spec.generated.ts +49 -18
  44. package/src/scene-core/split-text.ts +31 -7
  45. package/styles/iox-design.css +438 -4
@@ -802,6 +802,21 @@ const SPEC_TIERS = {
802
802
  "type": "size",
803
803
  "default": "-10px"
804
804
  },
805
+ {
806
+ "name": "list-fan-step",
807
+ "type": "number",
808
+ "default": "9"
809
+ },
810
+ {
811
+ "name": "list-tilt",
812
+ "type": "number",
813
+ "default": "3"
814
+ },
815
+ {
816
+ "name": "list-tile",
817
+ "type": "color",
818
+ "default": "var(--iox-surface-2)"
819
+ },
805
820
  {
806
821
  "name": "panel-bg",
807
822
  "type": "color",
@@ -7158,6 +7173,27 @@ const SPEC_FLAVOR_PACKS = [
7158
7173
  "group": "components",
7159
7174
  "value": "-10px"
7160
7175
  },
7176
+ {
7177
+ "name": "list-fan-step",
7178
+ "tier": "component",
7179
+ "type": "number",
7180
+ "group": "components",
7181
+ "value": "9"
7182
+ },
7183
+ {
7184
+ "name": "list-tilt",
7185
+ "tier": "component",
7186
+ "type": "number",
7187
+ "group": "components",
7188
+ "value": "3"
7189
+ },
7190
+ {
7191
+ "name": "list-tile",
7192
+ "tier": "component",
7193
+ "type": "color",
7194
+ "group": "components",
7195
+ "value": "var(--iox-surface-2)"
7196
+ },
7161
7197
  {
7162
7198
  "name": "panel-bg",
7163
7199
  "tier": "component",
@@ -9520,6 +9556,27 @@ const SPEC_FLAVOR_PACKS = [
9520
9556
  "group": "components",
9521
9557
  "value": "-10px"
9522
9558
  },
9559
+ {
9560
+ "name": "list-fan-step",
9561
+ "tier": "component",
9562
+ "type": "number",
9563
+ "group": "components",
9564
+ "value": "9"
9565
+ },
9566
+ {
9567
+ "name": "list-tilt",
9568
+ "tier": "component",
9569
+ "type": "number",
9570
+ "group": "components",
9571
+ "value": "3"
9572
+ },
9573
+ {
9574
+ "name": "list-tile",
9575
+ "tier": "component",
9576
+ "type": "color",
9577
+ "group": "components",
9578
+ "value": "var(--iox-surface-2)"
9579
+ },
9523
9580
  {
9524
9581
  "name": "panel-bg",
9525
9582
  "tier": "component",
@@ -11890,6 +11947,27 @@ const SPEC_FLAVOR_PACKS = [
11890
11947
  "group": "components",
11891
11948
  "value": "-10px"
11892
11949
  },
11950
+ {
11951
+ "name": "list-fan-step",
11952
+ "tier": "component",
11953
+ "type": "number",
11954
+ "group": "components",
11955
+ "value": "9"
11956
+ },
11957
+ {
11958
+ "name": "list-tilt",
11959
+ "tier": "component",
11960
+ "type": "number",
11961
+ "group": "components",
11962
+ "value": "3"
11963
+ },
11964
+ {
11965
+ "name": "list-tile",
11966
+ "tier": "component",
11967
+ "type": "color",
11968
+ "group": "components",
11969
+ "value": "var(--iox-surface-2)"
11970
+ },
11893
11971
  {
11894
11972
  "name": "panel-bg",
11895
11973
  "tier": "component",
@@ -14272,6 +14350,27 @@ const SPEC_FLAVOR_PACKS = [
14272
14350
  "group": "components",
14273
14351
  "value": "-10px"
14274
14352
  },
14353
+ {
14354
+ "name": "list-fan-step",
14355
+ "tier": "component",
14356
+ "type": "number",
14357
+ "group": "components",
14358
+ "value": "9"
14359
+ },
14360
+ {
14361
+ "name": "list-tilt",
14362
+ "tier": "component",
14363
+ "type": "number",
14364
+ "group": "components",
14365
+ "value": "3"
14366
+ },
14367
+ {
14368
+ "name": "list-tile",
14369
+ "tier": "component",
14370
+ "type": "color",
14371
+ "group": "components",
14372
+ "value": "var(--iox-surface-2)"
14373
+ },
14275
14374
  {
14276
14375
  "name": "panel-bg",
14277
14376
  "tier": "component",
@@ -16657,6 +16756,27 @@ const SPEC_FLAVOR_PACKS = [
16657
16756
  "group": "components",
16658
16757
  "value": "-10px"
16659
16758
  },
16759
+ {
16760
+ "name": "list-fan-step",
16761
+ "tier": "component",
16762
+ "type": "number",
16763
+ "group": "components",
16764
+ "value": "9"
16765
+ },
16766
+ {
16767
+ "name": "list-tilt",
16768
+ "tier": "component",
16769
+ "type": "number",
16770
+ "group": "components",
16771
+ "value": "3"
16772
+ },
16773
+ {
16774
+ "name": "list-tile",
16775
+ "tier": "component",
16776
+ "type": "color",
16777
+ "group": "components",
16778
+ "value": "var(--iox-surface-2)"
16779
+ },
16660
16780
  {
16661
16781
  "name": "panel-bg",
16662
16782
  "tier": "component",
@@ -19023,6 +19143,27 @@ const SPEC_FLAVOR_PACKS = [
19023
19143
  "group": "components",
19024
19144
  "value": "-10px"
19025
19145
  },
19146
+ {
19147
+ "name": "list-fan-step",
19148
+ "tier": "component",
19149
+ "type": "number",
19150
+ "group": "components",
19151
+ "value": "9"
19152
+ },
19153
+ {
19154
+ "name": "list-tilt",
19155
+ "tier": "component",
19156
+ "type": "number",
19157
+ "group": "components",
19158
+ "value": "3"
19159
+ },
19160
+ {
19161
+ "name": "list-tile",
19162
+ "tier": "component",
19163
+ "type": "color",
19164
+ "group": "components",
19165
+ "value": "var(--iox-surface-2)"
19166
+ },
19026
19167
  {
19027
19168
  "name": "panel-bg",
19028
19169
  "tier": "component",
@@ -20824,6 +20965,35 @@ function applyHeadingLevelRule(target, oldLevel, newLevel, baseline = {}) {
20824
20965
  return switchElementStyle(target, from, to, baseline);
20825
20966
  }
20826
20967
 
20968
+ /**
20969
+ * A COMPOSED LIST'S MIX ON ITS FRAME (award-ingredients-plan §7.1f AW11, board award-lists): the words a list section was
20970
+ * composed as ride on its frame as ONE prop, `listMix` (`item:packshot arrange:grid hover:swap …`, the wire's words), and
20971
+ * become marker classes — `iox-list-item-packshot`, `iox-list-hover-swap` — that the shared iox-design.css draws. The
20972
+ * same decision in all three render paths (`nodeDesignClasses`), so a word is drawn by CSS alone and the canvas, both
20973
+ * engine paths and the raw SSR agree. Bindings ▸ List reads and writes the same prop. Pure.
20974
+ */
20975
+ /** The prop (a Container's trait) the mix is stored under. */
20976
+ const LIST_MIX_PROP = 'listMix';
20977
+ /** Every class a mix writes starts with this — what a live re-sync removes. */
20978
+ const LIST_CLASS_PREFIX = 'iox-list-';
20979
+ const WORD = /^[a-z]+:[a-z0-9-]+$/;
20980
+ /** The stored mix's words (`item:packshot`), from `props` (saved) or the trait (builder); [] for none. */
20981
+ function listMixWordsOf(node) {
20982
+ if (!node)
20983
+ return [];
20984
+ const raw = node.props?.[LIST_MIX_PROP] ?? node.traits?.find(t => t?.name === LIST_MIX_PROP)?.default;
20985
+ const words = Array.isArray(raw) ? raw : typeof raw === 'string' ? raw.split(/\s+/) : [];
20986
+ return words.filter((w) => typeof w === 'string' && WORD.test(w));
20987
+ }
20988
+ /** The marker classes a list frame renders (`iox-list-arrange-hang iox-list-hover-swap`), or '' for none. */
20989
+ function listMixClasses(node) {
20990
+ return [...new Set(listMixWordsOf(node))].map(w => `${LIST_CLASS_PREFIX}${w.replace(':', '-')}`).join(' ');
20991
+ }
20992
+ /** True for a class this module writes. */
20993
+ function isListMixClass(c) {
20994
+ return c.startsWith(LIST_CLASS_PREFIX);
20995
+ }
20996
+
20827
20997
  /**
20828
20998
  * A section's EDGE into the section above it, and its SHAPE (award-ingredients plan §7.1d, AW6 — board award-body,
20829
20999
  * AW6-D1…D11). Two content traits on a Section, edited in Bindings ▸ Section edge and stamped by the composer, and ONE
@@ -21189,11 +21359,11 @@ function hasElementStyleMarker(node) {
21189
21359
  function nodeDesignClasses(node) {
21190
21360
  const marker = elementStyleClass(node?.elementStyle);
21191
21361
  return [marker ? `${ELEMENT_STYLE_MARKER_CLASS} ${marker}` : '', colorSchemeClass(colorSchemeOf(node)) ?? '', roleClass(node?.role) ?? '', barReserveClass(node) ?? '',
21192
- sectionDesignClasses(node)]
21362
+ sectionDesignClasses(node), listMixClasses(node)]
21193
21363
  .filter(Boolean).join(' ');
21194
21364
  }
21195
21365
  const isDesignClass = (c) => c === ELEMENT_STYLE_MARKER_CLASS || c.startsWith(MARKER_PREFIX) || c.startsWith(SCHEME_PREFIX) || c.startsWith(ROLE_PREFIX) || c.startsWith(BAR_RESERVE_CLASS)
21196
- || isSectionDesignClass(c);
21366
+ || isSectionDesignClass(c) || isListMixClass(c);
21197
21367
  /** Make an element's design classes match the node — the live switch on the canvas and the
21198
21368
  * component path's one-time stamp. Removes stale ones; touches no other class. */
21199
21369
  function syncNodeDesignClasses(el, node) {
@@ -22079,175 +22249,6 @@ function previewElementStyleAdoption(tree, ctx) {
22079
22249
  return adoptElementStyles(JSON.parse(JSON.stringify(tree ?? [])), ctx);
22080
22250
  }
22081
22251
 
22082
- /**
22083
- * A rendered Field's classes and its error, in design-core because two entries write into a Field: forms-core (the
22084
- * string renderer's markup, the form runtimes) and composite-core (the sign-in dialog). composite-core may not import
22085
- * forms-core (forms-core → actions-core → composite-core would close a cycle), and design-core imports no other entry.
22086
- * forms-core re-exports all three names. Framework-free; the DOM is the caller's element.
22087
- */
22088
- /** The classes the markup carries — the runtimes and the shared CSS key on these, never on a literal. */
22089
- var FieldClass;
22090
- (function (FieldClass) {
22091
- FieldClass["Root"] = "iox-field";
22092
- FieldClass["Label"] = "iox-field__label";
22093
- FieldClass["LabelHidden"] = "iox-field__label--hidden";
22094
- FieldClass["Required"] = "iox-field__required";
22095
- FieldClass["Control"] = "iox-field__control";
22096
- FieldClass["Help"] = "iox-field__help";
22097
- FieldClass["Error"] = "iox-field__error";
22098
- FieldClass["Group"] = "iox-field__group";
22099
- FieldClass["Option"] = "iox-field__option";
22100
- FieldClass["Choices"] = "iox-field__choices";
22101
- FieldClass["ChoicesChips"] = "iox-field__choices--chips";
22102
- FieldClass["ChoicesList"] = "iox-field__choices--list";
22103
- FieldClass["Chips"] = "iox-field__chips";
22104
- FieldClass["Chip"] = "iox-field__chip";
22105
- FieldClass["ChipInput"] = "iox-field__control--chip";
22106
- FieldClass["DateButton"] = "iox-field__control--date";
22107
- FieldClass["DateValue"] = "iox-field__date-value";
22108
- FieldClass["DateIcon"] = "iox-field__date-icon";
22109
- FieldClass["DateInput"] = "iox-field__date-input";
22110
- })(FieldClass || (FieldClass = {}));
22111
- /** A field's error class on its element (shared CSS keys on it). */
22112
- const FIELD_INVALID_CLASS = 'iox-invalid';
22113
- /**
22114
- * Say `text` as a Field's error — or clear it with '' — exactly as `IoxFieldComponent` renders one: the error paragraph
22115
- * (`role=alert`, id `<control id>-error`) at the field's end, `aria-invalid` and `aria-describedby` (help first) on every
22116
- * control, the invalid class on the field. ONE copy for every runtime that writes into a rendered Field (the string-form
22117
- * runtime, the sign-in dialog).
22118
- */
22119
- function writeFieldError(field, text) {
22120
- const controls = Array.from(field.querySelectorAll(`.${FieldClass.Control}`));
22121
- const id = (controls[0]?.id || `iox-field-${field.getAttribute('data-iox-field') ?? ''}`) + '-error';
22122
- let p = field.querySelector(`.${FieldClass.Error}`);
22123
- if (text) {
22124
- if (!p) {
22125
- p = field.ownerDocument.createElement('p');
22126
- p.className = FieldClass.Error;
22127
- p.id = id;
22128
- p.setAttribute('role', 'alert');
22129
- field.appendChild(p);
22130
- }
22131
- p.textContent = text;
22132
- }
22133
- else {
22134
- p?.remove();
22135
- }
22136
- field.classList.toggle(FIELD_INVALID_CLASS, !!text);
22137
- const helpId = field.querySelector(`.${FieldClass.Help}`)?.id;
22138
- const describedBy = [helpId, text ? id : ''].filter(Boolean).join(' ');
22139
- for (const control of controls) {
22140
- if (text)
22141
- control.setAttribute('aria-invalid', 'true');
22142
- else
22143
- control.removeAttribute('aria-invalid');
22144
- if (describedBy)
22145
- control.setAttribute('aria-describedby', describedBy);
22146
- else
22147
- control.removeAttribute('aria-describedby');
22148
- }
22149
- }
22150
-
22151
- /**
22152
- * Empty images (design-system DS3). A MARKED Image (`.iox-es-media`) with no source renders a box in
22153
- * the `surface-2` token with its aspect ratio kept — on the canvas with an "Add image" label, on the
22154
- * live site with nothing in it. An UNMARKED empty Image renders exactly as before (no `src`).
22155
- *
22156
- * Why a placeholder `src` instead of a src-less `<img>`: Chromium paints a src-less image as a broken
22157
- * image (a frame, an icon and the alt text) and ignores `aspect-ratio` once alt text is present, and no
22158
- * pseudo-element paints on an `<img>`. A real image with no natural size of its own (an SVG with no
22159
- * width/height) is a proper replaced element: `aspect-ratio`/`object-fit` apply, the background shows
22160
- * through, and its default object size (300×150) is the SAME for the canvas label and the live blank,
22161
- * so both renderers lay the box out identically. The fill itself is shared CSS (`iox-design.css`)
22162
- * keyed on {@link EMPTY_IMAGE_ATTRIBUTE}.
22163
- */
22164
- /** Set on a marked Image while it has no source — the hook the shared fill rule keys on. */
22165
- const EMPTY_IMAGE_ATTRIBUTE = 'data-iox-empty';
22166
- const svgUri = (svg) => `data:image/svg+xml,${encodeURIComponent(svg)}`;
22167
- /** The live site's blank: an SVG with no intrinsic size and nothing in it. */
22168
- const EMPTY_IMAGE_SRC = svgUri('<svg xmlns="http://www.w3.org/2000/svg"/>');
22169
- const xmlEscape = (s) => s.replace(/[&<>"']/g, c => `&#${c.charCodeAt(0)};`);
22170
- /**
22171
- * The canvas blank: the same no-size SVG with `label` centred as a chip. The chip carries its own
22172
- * light ground, so it reads on every flavor's `surface-2`, light or dark; it is builder chrome, never
22173
- * site content. Width is estimated from the label length (an image cannot measure text).
22174
- */
22175
- function emptyImageLabelSrc(label) {
22176
- const text = xmlEscape(label);
22177
- const width = Math.round(28 + label.length * 7);
22178
- return svgUri('<svg xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" overflow="visible">'
22179
- + `<rect x="${-width / 2}" y="-13" width="${width}" height="26" rx="13" fill="#ffffff" fill-opacity="0.92"/>`
22180
- + '<text x="0" y="0" text-anchor="middle" dominant-baseline="central" font-family="system-ui, -apple-system, \'Segoe UI\', sans-serif" '
22181
- + `font-size="12" font-weight="500" fill="#1f1d1b">${text}</text></svg></svg>`);
22182
- }
22183
- /**
22184
- * What a node's Image shows WHENEVER its source is empty: the canvas label (when `label` is given) or
22185
- * the live blank for a MARKED node; `null` — render exactly as before — for an unmarked node. It does
22186
- * not look at the source, so a renderer computes it once per marker/label and the component falls
22187
- * back to it the moment its source is cleared (a binding emptied, a context slot not yet filled).
22188
- */
22189
- function emptyImagePlaceholder(node, label) {
22190
- if (!hasElementStyleMarker(node))
22191
- return null;
22192
- return label ? emptyImageLabelSrc(label) : EMPTY_IMAGE_SRC;
22193
- }
22194
- /**
22195
- * The `src` a node's Image renders for a given source: its placeholder while the source is empty,
22196
- * `null` once it has one (the source itself renders) or when the node is unmarked.
22197
- */
22198
- function emptyImageSrc(node, src, label) {
22199
- if (src != null && src !== '')
22200
- return null;
22201
- return emptyImagePlaceholder(node, label);
22202
- }
22203
-
22204
- /**
22205
- * Where a node links (W1.1). Link and LinkedContainer always had two link types — an external URL or a
22206
- * website PAGE by its route — and ButtonBlock now has the same pair, so a composed "Get in touch" button
22207
- * is a page link the builder shows as `/contact`, not a hand-built URL. Framework-free: the composer
22208
- * (generation-core) writes it, the builder canvas and both engine render paths read it.
22209
- */
22210
- var LinkType;
22211
- (function (LinkType) {
22212
- /** Links nowhere — a Heading's default; "Link the whole card" (Card v2) turns its title's link on. */
22213
- LinkType["None"] = "none";
22214
- LinkType["External"] = "external";
22215
- LinkType["Page"] = "page";
22216
- })(LinkType || (LinkType = {}));
22217
- const ANCHOR_TAG = 'a';
22218
- /**
22219
- * The href a ButtonBlock renders, or `null` for none (it is a `<button>`, or a link with no target).
22220
- * Only an `<a>` links. A page link's route goes through `pageHref` — the engine's `resolvePageHref`
22221
- * (`:params` substituted, base-relative); the builder canvas passes none and shows the route as authored,
22222
- * as its Link does.
22223
- */
22224
- function buttonBlockHref(props, pageHref = route => route) {
22225
- if (props.tag !== ANCHOR_TAG)
22226
- return null;
22227
- const href = props.linkType === LinkType.Page ? pageHref(String(props.pageRoute ?? '')) : String(props.href ?? '');
22228
- return href || null;
22229
- }
22230
- /** The class of the `<a>` a linked Heading renders — the Card v2 stretched link keys on it (iox-design.css:
22231
- * the card is the click target, its buttons sit above, the focus ring is drawn on the card). */
22232
- const CARD_LINK_CLASS = 'iox-card-link';
22233
- /** On the editing canvas the anchor carries this, so the stretched `::after` is off and every part of the
22234
- * card stays clickable (board 8). */
22235
- const CANVAS_LINK_ATTRIBUTE = 'data-iox-canvas';
22236
- /**
22237
- * The href a linked Heading renders (Card v2: the card's title IS its link), or `null` when it links
22238
- * nowhere — `none`, or a link with no target yet (the title then renders as plain words). A page link goes
22239
- * through `pageHref` exactly as a ButtonBlock's does.
22240
- */
22241
- function headingHref(props, pageHref = route => route) {
22242
- if (props.linkType === LinkType.Page) {
22243
- const route = String(props.pageRoute ?? '');
22244
- return route ? pageHref(route) || null : null;
22245
- }
22246
- if (props.linkType === LinkType.External)
22247
- return String(props.url ?? '').trim() || null;
22248
- return null;
22249
- }
22250
-
22251
22252
  function parseHexColor(hex) {
22252
22253
  const m = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec((hex ?? '').trim());
22253
22254
  if (!m)
@@ -22872,6 +22873,191 @@ function preTintAccentGrounds(palette) {
22872
22873
  return { bg: palette.light['bg'] ?? '', bgDark: dark['bg'], inverseBg: palette.light['inverse-bg'], inverseBgDark: dark['inverse-bg'] };
22873
22874
  }
22874
22875
 
22876
+ const DEFAULT_GROUND_INKS = Object.freeze({ dark: '#111111', light: '#ffffff' });
22877
+ /** WCAG 2 AA for body text. */
22878
+ const GROUND_INK_MIN = 4.5;
22879
+ /** The ink for a ground (and the ground, moved only when no ink reaches `min`); null when the ground is no hex colour. */
22880
+ function inkOnGround(ground, inks = DEFAULT_GROUND_INKS, min = GROUND_INK_MIN) {
22881
+ const g = parseHexColor(String(ground ?? ''));
22882
+ if (!g || !parseHexColor(inks.dark) || !parseHexColor(inks.light))
22883
+ return null;
22884
+ const dark = wcagContrastRatio(inks.dark, g);
22885
+ const light = wcagContrastRatio(inks.light, g);
22886
+ const ink = dark >= light ? inks.dark : inks.light;
22887
+ if (Math.max(dark, light) >= min)
22888
+ return { ground: toHexColor(g), ink, moved: false };
22889
+ return { ground: ensureContrast(toHexColor(g), [ink], min), ink, moved: true };
22890
+ }
22891
+
22892
+ /**
22893
+ * A rendered Field's classes and its error, in design-core because two entries write into a Field: forms-core (the
22894
+ * string renderer's markup, the form runtimes) and composite-core (the sign-in dialog). composite-core may not import
22895
+ * forms-core (forms-core → actions-core → composite-core would close a cycle), and design-core imports no other entry.
22896
+ * forms-core re-exports all three names. Framework-free; the DOM is the caller's element.
22897
+ */
22898
+ /** The classes the markup carries — the runtimes and the shared CSS key on these, never on a literal. */
22899
+ var FieldClass;
22900
+ (function (FieldClass) {
22901
+ FieldClass["Root"] = "iox-field";
22902
+ FieldClass["Label"] = "iox-field__label";
22903
+ FieldClass["LabelHidden"] = "iox-field__label--hidden";
22904
+ FieldClass["Required"] = "iox-field__required";
22905
+ FieldClass["Control"] = "iox-field__control";
22906
+ FieldClass["Help"] = "iox-field__help";
22907
+ FieldClass["Error"] = "iox-field__error";
22908
+ FieldClass["Group"] = "iox-field__group";
22909
+ FieldClass["Option"] = "iox-field__option";
22910
+ FieldClass["Choices"] = "iox-field__choices";
22911
+ FieldClass["ChoicesChips"] = "iox-field__choices--chips";
22912
+ FieldClass["ChoicesList"] = "iox-field__choices--list";
22913
+ FieldClass["Chips"] = "iox-field__chips";
22914
+ FieldClass["Chip"] = "iox-field__chip";
22915
+ FieldClass["ChipInput"] = "iox-field__control--chip";
22916
+ FieldClass["DateButton"] = "iox-field__control--date";
22917
+ FieldClass["DateValue"] = "iox-field__date-value";
22918
+ FieldClass["DateIcon"] = "iox-field__date-icon";
22919
+ FieldClass["DateInput"] = "iox-field__date-input";
22920
+ })(FieldClass || (FieldClass = {}));
22921
+ /** A field's error class on its element (shared CSS keys on it). */
22922
+ const FIELD_INVALID_CLASS = 'iox-invalid';
22923
+ /**
22924
+ * Say `text` as a Field's error — or clear it with '' — exactly as `IoxFieldComponent` renders one: the error paragraph
22925
+ * (`role=alert`, id `<control id>-error`) at the field's end, `aria-invalid` and `aria-describedby` (help first) on every
22926
+ * control, the invalid class on the field. ONE copy for every runtime that writes into a rendered Field (the string-form
22927
+ * runtime, the sign-in dialog).
22928
+ */
22929
+ function writeFieldError(field, text) {
22930
+ const controls = Array.from(field.querySelectorAll(`.${FieldClass.Control}`));
22931
+ const id = (controls[0]?.id || `iox-field-${field.getAttribute('data-iox-field') ?? ''}`) + '-error';
22932
+ let p = field.querySelector(`.${FieldClass.Error}`);
22933
+ if (text) {
22934
+ if (!p) {
22935
+ p = field.ownerDocument.createElement('p');
22936
+ p.className = FieldClass.Error;
22937
+ p.id = id;
22938
+ p.setAttribute('role', 'alert');
22939
+ field.appendChild(p);
22940
+ }
22941
+ p.textContent = text;
22942
+ }
22943
+ else {
22944
+ p?.remove();
22945
+ }
22946
+ field.classList.toggle(FIELD_INVALID_CLASS, !!text);
22947
+ const helpId = field.querySelector(`.${FieldClass.Help}`)?.id;
22948
+ const describedBy = [helpId, text ? id : ''].filter(Boolean).join(' ');
22949
+ for (const control of controls) {
22950
+ if (text)
22951
+ control.setAttribute('aria-invalid', 'true');
22952
+ else
22953
+ control.removeAttribute('aria-invalid');
22954
+ if (describedBy)
22955
+ control.setAttribute('aria-describedby', describedBy);
22956
+ else
22957
+ control.removeAttribute('aria-describedby');
22958
+ }
22959
+ }
22960
+
22961
+ /**
22962
+ * Empty images (design-system DS3). A MARKED Image (`.iox-es-media`) with no source renders a box in
22963
+ * the `surface-2` token with its aspect ratio kept — on the canvas with an "Add image" label, on the
22964
+ * live site with nothing in it. An UNMARKED empty Image renders exactly as before (no `src`).
22965
+ *
22966
+ * Why a placeholder `src` instead of a src-less `<img>`: Chromium paints a src-less image as a broken
22967
+ * image (a frame, an icon and the alt text) and ignores `aspect-ratio` once alt text is present, and no
22968
+ * pseudo-element paints on an `<img>`. A real image with no natural size of its own (an SVG with no
22969
+ * width/height) is a proper replaced element: `aspect-ratio`/`object-fit` apply, the background shows
22970
+ * through, and its default object size (300×150) is the SAME for the canvas label and the live blank,
22971
+ * so both renderers lay the box out identically. The fill itself is shared CSS (`iox-design.css`)
22972
+ * keyed on {@link EMPTY_IMAGE_ATTRIBUTE}.
22973
+ */
22974
+ /** Set on a marked Image while it has no source — the hook the shared fill rule keys on. */
22975
+ const EMPTY_IMAGE_ATTRIBUTE = 'data-iox-empty';
22976
+ const svgUri = (svg) => `data:image/svg+xml,${encodeURIComponent(svg)}`;
22977
+ /** The live site's blank: an SVG with no intrinsic size and nothing in it. */
22978
+ const EMPTY_IMAGE_SRC = svgUri('<svg xmlns="http://www.w3.org/2000/svg"/>');
22979
+ const xmlEscape = (s) => s.replace(/[&<>"']/g, c => `&#${c.charCodeAt(0)};`);
22980
+ /**
22981
+ * The canvas blank: the same no-size SVG with `label` centred as a chip. The chip carries its own
22982
+ * light ground, so it reads on every flavor's `surface-2`, light or dark; it is builder chrome, never
22983
+ * site content. Width is estimated from the label length (an image cannot measure text).
22984
+ */
22985
+ function emptyImageLabelSrc(label) {
22986
+ const text = xmlEscape(label);
22987
+ const width = Math.round(28 + label.length * 7);
22988
+ return svgUri('<svg xmlns="http://www.w3.org/2000/svg"><svg x="50%" y="50%" overflow="visible">'
22989
+ + `<rect x="${-width / 2}" y="-13" width="${width}" height="26" rx="13" fill="#ffffff" fill-opacity="0.92"/>`
22990
+ + '<text x="0" y="0" text-anchor="middle" dominant-baseline="central" font-family="system-ui, -apple-system, \'Segoe UI\', sans-serif" '
22991
+ + `font-size="12" font-weight="500" fill="#1f1d1b">${text}</text></svg></svg>`);
22992
+ }
22993
+ /**
22994
+ * What a node's Image shows WHENEVER its source is empty: the canvas label (when `label` is given) or
22995
+ * the live blank for a MARKED node; `null` — render exactly as before — for an unmarked node. It does
22996
+ * not look at the source, so a renderer computes it once per marker/label and the component falls
22997
+ * back to it the moment its source is cleared (a binding emptied, a context slot not yet filled).
22998
+ */
22999
+ function emptyImagePlaceholder(node, label) {
23000
+ if (!hasElementStyleMarker(node))
23001
+ return null;
23002
+ return label ? emptyImageLabelSrc(label) : EMPTY_IMAGE_SRC;
23003
+ }
23004
+ /**
23005
+ * The `src` a node's Image renders for a given source: its placeholder while the source is empty,
23006
+ * `null` once it has one (the source itself renders) or when the node is unmarked.
23007
+ */
23008
+ function emptyImageSrc(node, src, label) {
23009
+ if (src != null && src !== '')
23010
+ return null;
23011
+ return emptyImagePlaceholder(node, label);
23012
+ }
23013
+
23014
+ /**
23015
+ * Where a node links (W1.1). Link and LinkedContainer always had two link types — an external URL or a
23016
+ * website PAGE by its route — and ButtonBlock now has the same pair, so a composed "Get in touch" button
23017
+ * is a page link the builder shows as `/contact`, not a hand-built URL. Framework-free: the composer
23018
+ * (generation-core) writes it, the builder canvas and both engine render paths read it.
23019
+ */
23020
+ var LinkType;
23021
+ (function (LinkType) {
23022
+ /** Links nowhere — a Heading's default; "Link the whole card" (Card v2) turns its title's link on. */
23023
+ LinkType["None"] = "none";
23024
+ LinkType["External"] = "external";
23025
+ LinkType["Page"] = "page";
23026
+ })(LinkType || (LinkType = {}));
23027
+ const ANCHOR_TAG = 'a';
23028
+ /**
23029
+ * The href a ButtonBlock renders, or `null` for none (it is a `<button>`, or a link with no target).
23030
+ * Only an `<a>` links. A page link's route goes through `pageHref` — the engine's `resolvePageHref`
23031
+ * (`:params` substituted, base-relative); the builder canvas passes none and shows the route as authored,
23032
+ * as its Link does.
23033
+ */
23034
+ function buttonBlockHref(props, pageHref = route => route) {
23035
+ if (props.tag !== ANCHOR_TAG)
23036
+ return null;
23037
+ const href = props.linkType === LinkType.Page ? pageHref(String(props.pageRoute ?? '')) : String(props.href ?? '');
23038
+ return href || null;
23039
+ }
23040
+ /** The class of the `<a>` a linked Heading renders — the Card v2 stretched link keys on it (iox-design.css:
23041
+ * the card is the click target, its buttons sit above, the focus ring is drawn on the card). */
23042
+ const CARD_LINK_CLASS = 'iox-card-link';
23043
+ /** On the editing canvas the anchor carries this, so the stretched `::after` is off and every part of the
23044
+ * card stays clickable (board 8). */
23045
+ const CANVAS_LINK_ATTRIBUTE = 'data-iox-canvas';
23046
+ /**
23047
+ * The href a linked Heading renders (Card v2: the card's title IS its link), or `null` when it links
23048
+ * nowhere — `none`, or a link with no target yet (the title then renders as plain words). A page link goes
23049
+ * through `pageHref` exactly as a ButtonBlock's does.
23050
+ */
23051
+ function headingHref(props, pageHref = route => route) {
23052
+ if (props.linkType === LinkType.Page) {
23053
+ const route = String(props.pageRoute ?? '');
23054
+ return route ? pageHref(route) || null : null;
23055
+ }
23056
+ if (props.linkType === LinkType.External)
23057
+ return String(props.url ?? '').trim() || null;
23058
+ return null;
23059
+ }
23060
+
22875
23061
  const FORM_PARTS = SPEC_CONTRAST_AUDIT.formParts;
22876
23062
  const INK_SCOPES = SPEC_INK_SCOPES;
22877
23063
  const SCRIMS = SPEC_CONTRAST_AUDIT.scrims;
@@ -25036,5 +25222,5 @@ function designPreloaderOf(config) {
25036
25222
  * Generated bundle index. Do not edit.
25037
25223
  */
25038
25224
 
25039
- export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BUTTON_VARIANT_TO_STYLE, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_EDGES, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, 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, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FieldClass, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderInk, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LinkType, 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, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, 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_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, SCHEME_INK, SCROLL_IDS, SCRUB_IDS, SCRUB_LEVELS, SEAM_CLASS_PREFIX, SEAM_MIRRORED_CLASS, SECTION_CARD_CLASS, SECTION_CARD_STYLES, 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, SWISS_FLAVOR, ScrubId, SectionEdge, SectionShape, 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, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, 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, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isMoveId, isPreloaderKind, isRetiredFlavorId, isScrubId, isSectionDesignClass, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, 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, schemeUnderBar, scriptsForLocale, scrubOfChoices, sectionDesignClasses, sectionEdgeClass, sectionEdgeOf, sectionIsRtl, sectionShapeOf, setColorScheme, setSectionEdge, setSectionShape, 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 };
25225
+ export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BUTTON_VARIANT_TO_STYLE, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_EDGES, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, 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, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, 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, LIST_CLASS_PREFIX, LIST_MIX_PROP, LinkType, 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, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, 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_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, SCHEME_INK, SCROLL_IDS, SCRUB_IDS, SCRUB_LEVELS, SEAM_CLASS_PREFIX, SEAM_MIRRORED_CLASS, SECTION_CARD_CLASS, SECTION_CARD_STYLES, 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, SWISS_FLAVOR, ScrubId, SectionEdge, SectionShape, 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, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, 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, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerInkOf, headerStaysAtTop, headingHref, inSrgbGamut, inkOnGround, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isListMixClass, isMoveId, isPreloaderKind, isRetiredFlavorId, isScrubId, isSectionDesignClass, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, listMixClasses, listMixWordsOf, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, 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, schemeUnderBar, scriptsForLocale, scrubOfChoices, sectionDesignClasses, sectionEdgeClass, sectionEdgeOf, sectionIsRtl, sectionShapeOf, setColorScheme, setSectionEdge, setSectionShape, 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 };
25040
25226
  //# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map