@vectoriox/iox-ui 5.193.0 → 5.195.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 (46) hide show
  1. package/actions-core/index.d.ts +1 -0
  2. package/commerce-core/index.d.ts +0 -1
  3. package/composite-core/index.d.ts +28 -11
  4. package/design-core/index.d.ts +44 -2
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +1 -0
  6. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +0 -2
  8. package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +65 -34
  10. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-design-core.mjs +142 -60
  12. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui-forms-core.mjs +186 -122
  14. package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
  15. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +244 -16
  16. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  17. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +193 -95
  18. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  19. package/fesm2022/vectoriox-iox-ui.mjs +209 -148
  20. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  21. package/forms-core/index.d.ts +17 -2
  22. package/generation-core/index.d.ts +141 -4
  23. package/harness-core/index.d.ts +102 -12
  24. package/index.d.ts +15 -12
  25. package/package.json +1 -1
  26. package/src/actions-core/public-api.ts +3 -0
  27. package/src/commerce-core/shop-display.ts +0 -2
  28. package/src/composite-core/lightbox.ts +27 -8
  29. package/src/composite-core/shop.ts +45 -28
  30. package/src/design-core/close-word.ts +18 -0
  31. package/src/design-core/contrast-audit.ts +24 -14
  32. package/src/design-core/locale-direction.ts +17 -0
  33. package/src/design-core/public-api.ts +1 -0
  34. package/src/design-core/token-css.ts +62 -3
  35. package/src/forms-core/messages.ts +72 -1
  36. package/src/forms-core/submit-lifecycle.ts +4 -5
  37. package/src/generation-core/audit-site.ts +26 -5
  38. package/src/generation-core/audit-words.ts +8 -0
  39. package/src/generation-core/compose-site.ts +3 -2
  40. package/src/generation-core/import-plan.ts +41 -0
  41. package/src/generation-core/public-api.ts +1 -0
  42. package/src/generation-core/stock-photos.ts +23 -4
  43. package/src/generation-core/stock-search.ts +235 -0
  44. package/src/harness-core/business-types.ts +14 -9
  45. package/src/harness-core/harness-spec.generated.ts +168 -84
  46. package/src/harness-core/lint.ts +29 -11
@@ -21379,6 +21379,66 @@ function decomposeCssFunctions(controls, value) {
21379
21379
  return out;
21380
21380
  }
21381
21381
 
21382
+ /**
21383
+ * Which way a language reads — ONE answer for the live document (`<html dir>`, vectoriox/iox-client-engine#17), the
21384
+ * builder and the composer (generation-core `isRtlLocale`). A locale is read by its language subtag (`he-IL` → `he`),
21385
+ * case-insensitively; anything else reads left to right. Framework-free, pure.
21386
+ */
21387
+ /** The direction a page's document is written in. */
21388
+ var LocaleDirection;
21389
+ (function (LocaleDirection) {
21390
+ LocaleDirection["Ltr"] = "ltr";
21391
+ LocaleDirection["Rtl"] = "rtl";
21392
+ })(LocaleDirection || (LocaleDirection = {}));
21393
+ /** The languages written right to left (their BCP 47 language subtags). */
21394
+ const RTL_LANGUAGES = new Set(['ar', 'ckb', 'dv', 'fa', 'he', 'iw', 'ps', 'sd', 'ug', 'ur', 'yi']);
21395
+ /**
21396
+ * The languages whose script has NO letter case (their BCP 47 language subtags): every right-to-left language (Hebrew,
21397
+ * Arabic and the Arabic-script languages, Thaana) plus the common caseless scripts of Asia and Ethiopia. In them
21398
+ * `text-transform: uppercase` touches only the Latin words a label borrows ("המשך עם GOOGLE", vectoriox/iox-ui#124) and
21399
+ * letter-spacing opens up letters their typography never spaces — so the look's case and tracking tokens stand down
21400
+ * (design-core `CASELESS_SCRIPT_OVERRIDES`, emitted by `compileTokenCss`).
21401
+ */
21402
+ const CASELESS_LANGUAGES = new Set([
21403
+ ...RTL_LANGUAGES,
21404
+ 'am', 'bn', 'gu', 'hi', 'ja', 'km', 'kn', 'ko', 'lo', 'ml', 'mr', 'my', 'ne', 'pa', 'si', 'ta', 'te', 'th', 'zh',
21405
+ ]);
21406
+ /** True when `locale`'s language is written in a script without letter case (`he-IL`, `ar`, `ja`…). */
21407
+ function isCaselessLocale(locale) {
21408
+ return CASELESS_LANGUAGES.has(languageOf(locale));
21409
+ }
21410
+ /** The language subtag of a locale (`he-IL` → `he`, `pt_BR` → `pt`), lower-cased; '' when there is none. */
21411
+ function languageOf(locale) {
21412
+ return String(locale ?? '').trim().split(/[-_]/)[0].toLowerCase();
21413
+ }
21414
+ /** The direction `locale` reads in — `rtl` for a right-to-left language, else `ltr` (an unknown or absent locale too). */
21415
+ function localeDirection(locale) {
21416
+ return RTL_LANGUAGES.has(languageOf(locale)) ? LocaleDirection.Rtl : LocaleDirection.Ltr;
21417
+ }
21418
+ /** The Text Direction trait and where it used to live (style-compiler `TEXT_DIRECTION_KEY` / `LEGACY_DIRECTION_KEY`). */
21419
+ const DIRECTION_KEYS = ['textDirection', 'direction'];
21420
+ /**
21421
+ * True when the node's OWN Text Direction is right-to-left (a saved node's styleProps, a builder node's style traits);
21422
+ * a node with no direction of its own reads left-to-right. THE answer for anything the shared CSS mirrors (AW6's seams,
21423
+ * AW11's leaning lists): a composed Hebrew page carries its direction as each node's CSS `direction`, which `:dir(rtl)`
21424
+ * cannot see, and the builder canvas sits inside the ADMIN's `<html dir>`. So design-core writes a class from the
21425
+ * node's own direction instead.
21426
+ */
21427
+ function nodeIsRtl(node) {
21428
+ if (!node)
21429
+ return false;
21430
+ for (const key of DIRECTION_KEYS) {
21431
+ if (node.styleProps && key in node.styleProps)
21432
+ return node.styleProps[key] === LocaleDirection.Rtl;
21433
+ }
21434
+ for (const group of node.styleTraits ?? []) {
21435
+ const t = group?.traits?.find(x => x?.name === DIRECTION_KEYS[0]);
21436
+ if (t)
21437
+ return t.default === LocaleDirection.Rtl;
21438
+ }
21439
+ return false;
21440
+ }
21441
+
21382
21442
  /**
21383
21443
  * Element styles — the author's "classes" (design-system plan §3b). A named look is an EXACT trait
21384
21444
  * map written into a node; every value is a `var(--iox-…)` reference or a flavor-independent
@@ -21655,51 +21715,6 @@ function applyHeadingLevelRule(target, oldLevel, newLevel, baseline = {}) {
21655
21715
  return switchElementStyle(target, from, to, baseline);
21656
21716
  }
21657
21717
 
21658
- /**
21659
- * Which way a language reads — ONE answer for the live document (`<html dir>`, vectoriox/iox-client-engine#17), the
21660
- * builder and the composer (generation-core `isRtlLocale`). A locale is read by its language subtag (`he-IL` → `he`),
21661
- * case-insensitively; anything else reads left to right. Framework-free, pure.
21662
- */
21663
- /** The direction a page's document is written in. */
21664
- var LocaleDirection;
21665
- (function (LocaleDirection) {
21666
- LocaleDirection["Ltr"] = "ltr";
21667
- LocaleDirection["Rtl"] = "rtl";
21668
- })(LocaleDirection || (LocaleDirection = {}));
21669
- /** The languages written right to left (their BCP 47 language subtags). */
21670
- const RTL_LANGUAGES = new Set(['ar', 'ckb', 'dv', 'fa', 'he', 'iw', 'ps', 'sd', 'ug', 'ur', 'yi']);
21671
- /** The language subtag of a locale (`he-IL` → `he`, `pt_BR` → `pt`), lower-cased; '' when there is none. */
21672
- function languageOf(locale) {
21673
- return String(locale ?? '').trim().split(/[-_]/)[0].toLowerCase();
21674
- }
21675
- /** The direction `locale` reads in — `rtl` for a right-to-left language, else `ltr` (an unknown or absent locale too). */
21676
- function localeDirection(locale) {
21677
- return RTL_LANGUAGES.has(languageOf(locale)) ? LocaleDirection.Rtl : LocaleDirection.Ltr;
21678
- }
21679
- /** The Text Direction trait and where it used to live (style-compiler `TEXT_DIRECTION_KEY` / `LEGACY_DIRECTION_KEY`). */
21680
- const DIRECTION_KEYS = ['textDirection', 'direction'];
21681
- /**
21682
- * True when the node's OWN Text Direction is right-to-left (a saved node's styleProps, a builder node's style traits);
21683
- * a node with no direction of its own reads left-to-right. THE answer for anything the shared CSS mirrors (AW6's seams,
21684
- * AW11's leaning lists): a composed Hebrew page carries its direction as each node's CSS `direction`, which `:dir(rtl)`
21685
- * cannot see, and the builder canvas sits inside the ADMIN's `<html dir>`. So design-core writes a class from the
21686
- * node's own direction instead.
21687
- */
21688
- function nodeIsRtl(node) {
21689
- if (!node)
21690
- return false;
21691
- for (const key of DIRECTION_KEYS) {
21692
- if (node.styleProps && key in node.styleProps)
21693
- return node.styleProps[key] === LocaleDirection.Rtl;
21694
- }
21695
- for (const group of node.styleTraits ?? []) {
21696
- const t = group?.traits?.find(x => x?.name === DIRECTION_KEYS[0]);
21697
- if (t)
21698
- return t.default === LocaleDirection.Rtl;
21699
- }
21700
- return false;
21701
- }
21702
-
21703
21718
  /**
21704
21719
  * A COMPOSED LIST'S MIX ON ITS FRAME (award-ingredients-plan §7.1f AW11, board award-lists): the words a list section was
21705
21720
  * composed as ride on its frame as ONE prop, `listMix` (`item:packshot arrange:grid hover:swap …`, the wire's words), and
@@ -22330,6 +22345,27 @@ function legacyRuleTokenReferences(css) {
22330
22345
  const REDUCED_MOTION_OVERRIDES = SPEC_A11Y.reducedMotion;
22331
22346
  /** What `prefers-reduced-transparency: reduce` makes solid — the contract's `a11y.reducedTransparency`. */
22332
22347
  const REDUCED_TRANSPARENCY_OVERRIDES = SPEC_A11Y.reducedTransparency;
22348
+ /**
22349
+ * What a page in a CASELESS script (Hebrew, Arabic, Japanese… — locale-direction `CASELESS_LANGUAGES`) does with the
22350
+ * look's case and tracking tokens (vectoriox/iox-ui#124): a pairing that sets buttons and labels `uppercase` with
22351
+ * 0.04–0.12em tracking shouted only the Latin word inside a Hebrew label ("המשך עם GOOGLE") and opened up the Hebrew
22352
+ * letters, which Hebrew typography never does. So under a caseless `lang` the case tokens compile to `none` and the
22353
+ * tracking to `0em` (the contract's own `button-tracking` default). A CSS rule, not a compile option: the language is
22354
+ * read where it is written — the engine's `<html lang>`, the canvas's token scope `lang` (the SITE's, never the
22355
+ * admin's), a `lang` island inside a page — so ONE stylesheet serves a site whose pages differ in language.
22356
+ * An author's own `text-transform` on a node (styleProps) is untouched: only the look's tokens stand down.
22357
+ */
22358
+ const CASELESS_SCRIPT_OVERRIDES = Object.freeze({
22359
+ 'button-case': 'none',
22360
+ 'case-label': 'none',
22361
+ 'button-tracking': '0em',
22362
+ 'tracking-label': '0em',
22363
+ });
22364
+ /** `:is([lang|="he" i], …)` — an element whose own `lang` names a caseless language (any region: `he`, `he-IL`). */
22365
+ const CASELESS_LANG_SELECTOR = `:is(${[...CASELESS_LANGUAGES].map(l => `[lang|="${l}" i]`).join(', ')})`;
22366
+ /** The scope itself carrying a caseless `lang`, and any element inside it that does. Specificity (0,2,0) on `:root`, so
22367
+ * it outranks the base `:root` block and the dark block's `:root` (0,1,0) wherever either is emitted. */
22368
+ const caselessSelector = (root) => `${root}${CASELESS_LANG_SELECTOR}, ${root} ${CASELESS_LANG_SELECTOR}`;
22333
22369
  const ROOT = ':root';
22334
22370
  const DEFAULT_SCHEME$1 = 'default';
22335
22371
  const REFERENCE = 'var(';
@@ -22417,13 +22453,33 @@ function resolveTokenValues(tokens, mode = LIGHT) {
22417
22453
  * the ones before it: a token the inner scheme does not set is the outer one's (custom properties inherit).
22418
22454
  */
22419
22455
  function resolveSchemeTokenValues(tokens, mode, schemeId) {
22456
+ return schemeValuesOf(usableTokens(tokens), mode, schemeId, {});
22457
+ }
22458
+ /**
22459
+ * `resolveSchemeTokenValues` for MANY schemes (and chains) of ONE look in one mode: the look's root and
22460
+ * other-mode values are resolved once, and each scheme or chain once. The contrast audit asks ~90 of them per
22461
+ * look and the sweep thousands of looks (iox-ui#166). The answers are shared between calls: read them, never
22462
+ * write to them.
22463
+ */
22464
+ function schemeTokenResolver(tokens, mode) {
22420
22465
  const rows = usableTokens(tokens);
22466
+ const ground = {};
22467
+ const known = new Map();
22468
+ return schemeId => {
22469
+ const key = typeof schemeId === 'string' ? schemeId : schemeId.join('\u0001');
22470
+ let values = known.get(key);
22471
+ if (!values)
22472
+ known.set(key, values = schemeValuesOf(rows, mode, schemeId, ground));
22473
+ return values;
22474
+ };
22475
+ }
22476
+ function schemeValuesOf(rows, mode, schemeId, ground) {
22421
22477
  const sets = (typeof schemeId === 'string' ? [schemeId] : schemeId)
22422
22478
  .map(id => (id === DEFAULT_SCHEME$1 ? undefined : SPEC_SCHEMES[id]?.set));
22479
+ const root = (ground.root ??= resolveTokenValues(rows, mode));
22423
22480
  if (!sets.some(Boolean))
22424
- return resolveTokenValues(rows, mode);
22425
- const root = resolveTokenValues(rows, mode);
22426
- const other = resolveTokenValues(rows, mode === DARK ? LIGHT : DARK);
22481
+ return root;
22482
+ const other = (ground.other ??= resolveTokenValues(rows, mode === DARK ? LIGHT : DARK));
22427
22483
  // Nested (`[outer, inner]` — a Featured card in an Inverse section): each scheme block re-declares the
22428
22484
  // rows that reference a token, so at every level those are restored before the block's own set.
22429
22485
  const overrides = new Map();
@@ -22601,6 +22657,7 @@ function compileTokenCssBlocks(tokens, opts = {}) {
22601
22657
  rule(root, [...unset, ...rows.map((t) => [t.name, t.value])]),
22602
22658
  compileSchemeCss(rows, opts.scope, opposite),
22603
22659
  columns.base,
22660
+ rule(caselessSelector(root), presentOverrides(rows, CASELESS_SCRIPT_OVERRIDES, false)),
22604
22661
  ...ACCESSIBILITY_MEDIA.map(({ query, overrides }) => media(query, [rule(root, presentOverrides(rows, overrides, false), ' ')])),
22605
22662
  ].filter(Boolean).join('\n');
22606
22663
  const darkRows = rows.map((t) => [t.name, darkOf(t)])
@@ -24157,8 +24214,9 @@ function sweepDesignContrast(rows, mode) {
24157
24214
  const section = ownStyle(byId.get(SECTION_STYLE));
24158
24215
  const iconColour = ownStyle(byId.get(ICON_STYLE))['color'];
24159
24216
  const bodyWeight = ownStyle(byId.get(BODY_STYLE))['fontWeight'];
24217
+ const valuesIn = schemeTokenResolver(rows, mode);
24160
24218
  for (const schemeId of SCHEME_IDS) {
24161
- const values = resolveSchemeTokenValues(rows, mode, schemeId);
24219
+ const values = valuesIn(schemeId);
24162
24220
  const pageInk = parseCssColour(values['text']);
24163
24221
  const page = paintColours(values['page-bg'], pageInk);
24164
24222
  const sectionPaint = paintColours(values['section-bg'], pageInk);
@@ -24166,13 +24224,22 @@ function sweepDesignContrast(rows, mode) {
24166
24224
  ? sectionPaint.map(c => (c.a < 1 ? compositeOver(c, page[0] ?? WHITE) : c))
24167
24225
  : page;
24168
24226
  const sectionInk = parseCssColour(resolveIn(values, section['color']), pageInk);
24227
+ // What an ink-scoped element's Icon paints depends on the scheme alone, never the box: resolved once per scheme.
24228
+ const scopedIcon = new Map();
24229
+ const iconIn = (styleId) => {
24230
+ let v = scopedIcon.get(styleId);
24231
+ if (v === undefined)
24232
+ scopedIcon.set(styleId, v = resolveIn(inkScoped(values, styleId), iconColour));
24233
+ return v;
24234
+ };
24169
24235
  for (const box of containers) {
24170
24236
  const boxStyle = box ? ownStyle(box) : null;
24171
24237
  const bgs = boxStyle ? overAll(paintColours(resolveIn(values, boxStyle['backgroundColor']), sectionInk), ground) : ground;
24172
24238
  const boxInk = boxStyle?.['color'] && boxStyle['color'] !== 'inherit'
24173
24239
  ? parseCssColour(resolveIn(values, boxStyle['color']), sectionInk) : sectionInk;
24174
- const where = { scheme: schemeId, container: box?.id ?? SECTION };
24175
- const record = (element, part, fg, bg, ratio, min) => findings.push({ ...where, element, part, fg, bg, ratio: Math.round(ratio * 100) / 100, min, pass: ratio >= min - 1e-9 });
24240
+ const container = box?.id ?? SECTION;
24241
+ // A plain literal, one shape for every finding (a `{ ...where }` spread here was a fifth of the sweep's time).
24242
+ const record = (element, part, fg, bg, ratio, min) => findings.push({ scheme: schemeId, container, element, part, fg, bg, ratio: Math.round(ratio * 100) / 100, min, pass: ratio >= min - 1e-9 });
24176
24243
  const check = (element, part, fg, under, min) => {
24177
24244
  if (!fg)
24178
24245
  return;
@@ -24219,7 +24286,7 @@ function sweepDesignContrast(rows, mode) {
24219
24286
  check(e.id, 'selected mark', f, bgs, WCAG_AA_UI);
24220
24287
  // What a filled element HOLDS (inkScopes): a button's or a badge's icon reads its ink.
24221
24288
  if (state === 'base' && INK_SCOPES.some(sc => sc.styles.includes(e.id))) {
24222
- check(e.id, 'icon', parseCssColour(resolveIn(inkScoped(values, e.id), iconColour), ink), under, WCAG_AA_UI);
24289
+ check(e.id, 'icon', parseCssColour(iconIn(e.id), ink), under, WCAG_AA_UI);
24223
24290
  }
24224
24291
  // Every focus ring an element style draws, on every ground the element sits on (CC4b: a Segmented
24225
24292
  // option on its track — not only the buttons).
@@ -24259,9 +24326,9 @@ function sweepDesignContrast(rows, mode) {
24259
24326
  }
24260
24327
  }
24261
24328
  }
24262
- findings.push(...schemedContainerFindings(rows, mode, section, containers.filter((c) => !!c)));
24329
+ findings.push(...schemedContainerFindings(valuesIn, section, containers.filter((c) => !!c)));
24263
24330
  for (const scrim of SCRIMS)
24264
- findings.push(...scrimFindings(rows, mode, scrim, byId.get(scrim.style)));
24331
+ findings.push(...scrimFindings(valuesIn, scrim, byId.get(scrim.style)));
24265
24332
  return findings;
24266
24333
  }
24267
24334
  /** What a section in `values` paints under its content: its own fill over the page, or the page. */
@@ -24277,12 +24344,12 @@ function sectionGround(values) {
24277
24344
  * section's (what it does not set, it inherits); a translucent fill composites over the OUTER section; the running text it holds (`body`, `lead`, a label: `color: inherit`)
24278
24345
  * reads the scheme's ink, which is what the scheme-ink rule and `withSchemeInk` make CSS compute.
24279
24346
  */
24280
- function schemedContainerFindings(rows, mode, section, containers) {
24347
+ function schemedContainerFindings(valuesIn, section, containers) {
24281
24348
  const out = [];
24282
24349
  for (const outer of SCHEME_IDS) {
24283
- const ground = sectionGround(resolveSchemeTokenValues(rows, mode, outer));
24350
+ const ground = sectionGround(valuesIn(outer));
24284
24351
  for (const inner of SCHEME_IDS.filter(id => id !== DEFAULT_SCHEME)) {
24285
- const values = resolveSchemeTokenValues(rows, mode, [outer, inner]);
24352
+ const values = valuesIn([outer, inner]);
24286
24353
  const schemeInk = parseCssColour(resolveIn(values, SCHEME_INK), parseCssColour(resolveIn(values, section['color'])));
24287
24354
  for (const box of containers) {
24288
24355
  const style = ownStyle(box);
@@ -24307,8 +24374,8 @@ function schemedContainerFindings(rows, mode, section, containers) {
24307
24374
  /** Text over an image: the block's ink — and every token its ink scope pins to it — over the scrim
24308
24375
  * composited on the WORST-CASE image, in the scheme the block wears. Never over the section: the image
24309
24376
  * covers it. */
24310
- function scrimFindings(rows, mode, scrim, style) {
24311
- const values = resolveSchemeTokenValues(rows, mode, scrim.scheme);
24377
+ function scrimFindings(valuesIn, scrim, style) {
24378
+ const values = valuesIn(scrim.scheme);
24312
24379
  const layer = parseCssColour(values[scrim.token]);
24313
24380
  const image = parseCssColour(scrim.image);
24314
24381
  if (!style || !layer || !image)
@@ -26294,6 +26361,21 @@ function designPreloaderOf(config) {
26294
26361
  return hasRow ? preloaderOfChoices(choices) : null;
26295
26362
  }
26296
26363
 
26364
+ /**
26365
+ * "Close" in the page's language — the accessible name of every × the platform names: the Dialog's close button (the
26366
+ * iox-ui component path AND the engine's string path, vectoriox/iox-ui#167), the toast's close control (premium M5) and
26367
+ * the Lightbox recipe's stamped Close part (composite-core, vectoriox/iox-ui#170). ONE table, so no overlay on a Hebrew
26368
+ * site is ever named "Close". It lives in design-core — the entry every other one may import (composite-core cannot
26369
+ * import actions-core, which imports it); actions-core re-exports it. Framework-free (the engine's string renderer and
26370
+ * iox-cms read it); a locale is read by its language subtag (`he-IL` → `he`).
26371
+ */
26372
+ /** The close word by language subtag. English is the fallback for every language the table lacks. */
26373
+ const CLOSE_WORDS = Object.freeze({ en: 'Close', he: 'סגירה' });
26374
+ /** "Close" in `lang` (its base language), else English. */
26375
+ function closeWord(lang) {
26376
+ return CLOSE_WORDS[languageOf(lang)] ?? CLOSE_WORDS['en'];
26377
+ }
26378
+
26297
26379
  /**
26298
26380
  * @vectoriox/iox-ui/design-core — the shared, FRAMEWORK-FREE core of the design system
26299
26381
  * (design-system plan §3e): the token vocabulary, the flavor contract (generated 1:1 from
@@ -26309,5 +26391,5 @@ function designPreloaderOf(config) {
26309
26391
  * Generated bundle index. Do not edit.
26310
26392
  */
26311
26393
 
26312
- 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, 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, 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, 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, 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 };
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 };
26313
26395
  //# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map