@vectoriox/iox-ui 5.197.0 → 5.199.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.
- package/actions-core/index.d.ts +7 -1
- package/composite-core/index.d.ts +16 -2
- package/data-core/index.d.ts +11 -3
- package/design-core/index.d.ts +185 -28
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +6 -1
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs +34 -2
- package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-data-core.mjs +30 -4
- package/fesm2022/vectoriox-iox-ui-data-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +323 -72
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +17351 -15175
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs +243 -38
- package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +2 -2
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +1703 -264
- package/harness-core/index.d.ts +93 -6
- package/package.json +1 -1
- package/src/actions-core/element-actions.ts +6 -0
- package/src/composite-core/header.ts +34 -1
- package/src/data-core/placeholder-rows.ts +29 -4
- package/src/design-core/brand.ts +58 -5
- package/src/design-core/contrast-audit.ts +49 -22
- package/src/design-core/design-apply.ts +34 -3
- package/src/design-core/flavor-fixtures.generated.ts +123 -123
- package/src/design-core/flavor-spec.generated.ts +44 -4
- package/src/design-core/flavor-tokens.ts +1 -1
- package/src/design-core/header-behaviour.ts +72 -13
- package/src/design-core/menu-look.ts +23 -0
- package/src/design-core/motion-language.ts +5 -14
- package/src/design-core/node-classes.ts +39 -0
- package/src/design-core/preloader.ts +4 -5
- package/src/generation-core/body-mix.ts +40 -102
- package/src/generation-core/check-free.ts +22 -11
- package/src/generation-core/check-layout.ts +10 -4
- package/src/generation-core/check-list.ts +3 -25
- package/src/generation-core/colour-mix.ts +296 -0
- package/src/generation-core/compose-free.ts +47 -20
- package/src/generation-core/compose-site.ts +259 -59
- package/src/generation-core/footer-mix.ts +258 -64
- package/src/generation-core/free-fallback.ts +6 -4
- package/src/generation-core/free-opening.ts +13 -2
- package/src/generation-core/free-parts.ts +87 -0
- package/src/generation-core/free-slot-words.ts +30 -0
- package/src/generation-core/free-wire.ts +8 -0
- package/src/generation-core/generation-tier.ts +6 -17
- package/src/generation-core/header-mix.ts +73 -3
- package/src/generation-core/layout-drawers.ts +3 -2
- package/src/generation-core/layout-wire.ts +10 -16
- package/src/generation-core/legal.ts +24 -0
- package/src/generation-core/list-panel.ts +3 -3
- package/src/generation-core/list-table.ts +5 -14
- package/src/generation-core/list-words.ts +2 -1
- package/src/generation-core/menu-shelves.ts +138 -0
- package/src/generation-core/nav-shape.ts +138 -15
- package/src/generation-core/node-baselines.generated.ts +1 -0
- package/src/generation-core/opening-mix.ts +7 -34
- package/src/generation-core/part-tier.ts +14 -0
- package/src/generation-core/patterns.ts +7 -0
- package/src/generation-core/plan-wire.ts +32 -43
- package/src/generation-core/public-api.ts +3 -0
- package/src/generation-core/site-build-run.ts +8 -0
- package/src/generation-core/site-plan.model.ts +3 -0
- package/src/generation-core/site-spec.generated.ts +1383 -189
- package/src/generation-core/validate-site-plan.ts +6 -5
- package/src/harness-core/business-types.ts +4 -0
- package/src/harness-core/harness-spec.generated.ts +189 -30
- package/src/harness-core/popup-stance.ts +56 -3
- package/src/harness-core/run-compose-context.ts +25 -5
- package/styles/iox-design.css +162 -3
|
@@ -4087,6 +4087,7 @@ const SPEC_SCHEMES = {
|
|
|
4087
4087
|
"section-bg": "{{accent}}",
|
|
4088
4088
|
"bg": "{{accent}}",
|
|
4089
4089
|
"nav-bg": "{{accent}}",
|
|
4090
|
+
"nav-glass-bg": "{{accent}}",
|
|
4090
4091
|
"surface": "{{accent-hover}}",
|
|
4091
4092
|
"surface-2": "{{accent-hover}}",
|
|
4092
4093
|
"surface-glass": "{{accent-hover}}",
|
|
@@ -4114,6 +4115,7 @@ const SPEC_SCHEMES = {
|
|
|
4114
4115
|
"section-bg": "{{text-muted}}",
|
|
4115
4116
|
"bg": "{{text-muted}}",
|
|
4116
4117
|
"nav-bg": "{{text-muted}}",
|
|
4118
|
+
"nav-glass-bg": "{{text-muted}}",
|
|
4117
4119
|
"surface": "{{text-muted}}",
|
|
4118
4120
|
"surface-2": "{{text-muted}}",
|
|
4119
4121
|
"surface-glass": "{{text-muted}}",
|
|
@@ -6197,11 +6199,33 @@ const SPEC_CONTRAST_AUDIT = {
|
|
|
6197
6199
|
"floatingGrounds": [
|
|
6198
6200
|
{
|
|
6199
6201
|
"ground": "nav-bg",
|
|
6200
|
-
"ink": "text"
|
|
6202
|
+
"ink": "text",
|
|
6203
|
+
"scope": "header"
|
|
6204
|
+
},
|
|
6205
|
+
{
|
|
6206
|
+
"ground": "nav-bg",
|
|
6207
|
+
"ink": "link-color",
|
|
6208
|
+
"scope": "header"
|
|
6209
|
+
},
|
|
6210
|
+
{
|
|
6211
|
+
"ground": "nav-bg",
|
|
6212
|
+
"ink": "link-current-color",
|
|
6213
|
+
"scope": "header"
|
|
6201
6214
|
},
|
|
6202
6215
|
{
|
|
6203
6216
|
"ground": "nav-glass-bg",
|
|
6204
|
-
"ink": "text"
|
|
6217
|
+
"ink": "text",
|
|
6218
|
+
"scope": "header"
|
|
6219
|
+
},
|
|
6220
|
+
{
|
|
6221
|
+
"ground": "nav-glass-bg",
|
|
6222
|
+
"ink": "link-color",
|
|
6223
|
+
"scope": "header"
|
|
6224
|
+
},
|
|
6225
|
+
{
|
|
6226
|
+
"ground": "nav-glass-bg",
|
|
6227
|
+
"ink": "link-current-color",
|
|
6228
|
+
"scope": "header"
|
|
6205
6229
|
},
|
|
6206
6230
|
{
|
|
6207
6231
|
"ground": "dialog-bg",
|
|
@@ -6214,8 +6238,24 @@ const SPEC_CONTRAST_AUDIT = {
|
|
|
6214
6238
|
{
|
|
6215
6239
|
"ground": "surface-glass-strong",
|
|
6216
6240
|
"ink": "text"
|
|
6241
|
+
},
|
|
6242
|
+
{
|
|
6243
|
+
"ground": "tabbar-bg",
|
|
6244
|
+
"ink": "tabbar-item-ink"
|
|
6217
6245
|
}
|
|
6218
|
-
]
|
|
6246
|
+
],
|
|
6247
|
+
"headerInkScope": {
|
|
6248
|
+
"selectors": [
|
|
6249
|
+
".iox-es-nav > *",
|
|
6250
|
+
"[data-iox-header] > *"
|
|
6251
|
+
],
|
|
6252
|
+
"set": {
|
|
6253
|
+
"link-color": "currentColor",
|
|
6254
|
+
"link-current-color": "currentColor",
|
|
6255
|
+
"link-hover-color": "var(--iox-accent-text)",
|
|
6256
|
+
"button-ghost-ink": "currentColor"
|
|
6257
|
+
}
|
|
6258
|
+
}
|
|
6219
6259
|
};
|
|
6220
6260
|
const SPEC_LEGACY_ALIASES = {
|
|
6221
6261
|
"radius-control": "var(--iox-button-radius)",
|
|
@@ -15558,7 +15598,7 @@ const SPEC_FLAVOR_PACKS = [
|
|
|
15558
15598
|
"tier": "component",
|
|
15559
15599
|
"type": "color",
|
|
15560
15600
|
"group": "components",
|
|
15561
|
-
"value": "var(--iox-surface
|
|
15601
|
+
"value": "color-mix(in srgb, var(--iox-surface) 92%, transparent)",
|
|
15562
15602
|
"overridden": true
|
|
15563
15603
|
},
|
|
15564
15604
|
{
|
|
@@ -22302,6 +22342,10 @@ var HeaderTrait;
|
|
|
22302
22342
|
/** HI3 slice 1 (HI3-D1): what the header stands on — `glass` | `over` | `over-glass`. Absent / `solid`: its own ground,
|
|
22303
22343
|
* as before. Written by the Header studio ▸ Around the bar and the composer (`ground:<word>`). */
|
|
22304
22344
|
HeaderTrait["Ground"] = "headerGround";
|
|
22345
|
+
/** HI3 slice 2 (HI3-D16/D18): its outline — `pill` | `islands`. Absent / `bar`: a full-width bar, as before. */
|
|
22346
|
+
HeaderTrait["Shape"] = "headerShape";
|
|
22347
|
+
/** HI3 slice 2 (HI3-D21/D22): how its name sits — `hangs` | `later`. Absent / `fits`: the name fits the bar. */
|
|
22348
|
+
HeaderTrait["Brand"] = "headerBrand";
|
|
22305
22349
|
})(HeaderTrait || (HeaderTrait = {}));
|
|
22306
22350
|
/** Whose colours the header wears (contract HEADER `ink`): the page's opening, or every section as it passes under it. */
|
|
22307
22351
|
var HeaderInk;
|
|
@@ -22324,6 +22368,11 @@ var HeaderAttribute;
|
|
|
22324
22368
|
* CSS draws the ground on ONE `::before` faded by opacity, gives the bar's height back over a pictured opening and
|
|
22325
22369
|
* lays the veil under its words at rest. Absent: the bar's own ground, as before. */
|
|
22326
22370
|
HeaderAttribute["Ground"] = "data-iox-header-ground";
|
|
22371
|
+
/** `pill` | `islands` on a header that floats (HI3 slice 2): the shared CSS draws its ground as one inset bar, or one
|
|
22372
|
+
* pill per part, from the top. Absent: a full-width bar. */
|
|
22373
|
+
HeaderAttribute["Shape"] = "data-iox-header-shape";
|
|
22374
|
+
/** `hangs` | `later` (HI3 slice 2): a logo taller than the bar, or a name that arrives once the page moves. */
|
|
22375
|
+
HeaderAttribute["Brand"] = "data-iox-header-brand";
|
|
22327
22376
|
})(HeaderAttribute || (HeaderAttribute = {}));
|
|
22328
22377
|
/** What a composed header gets (the `nav.*` patterns' `header`, the palette's Navigation bar). */
|
|
22329
22378
|
const COMPOSED_HEADER = {
|
|
@@ -22349,22 +22398,67 @@ function headerInkOf(value) {
|
|
|
22349
22398
|
return value === HeaderInk.Follows ? HeaderInk.Follows : HeaderInk.Opening;
|
|
22350
22399
|
}
|
|
22351
22400
|
/** 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
|
-
|
|
22401
|
+
* glass draws no scroll edge (HI3-D9: its set carries its own hairline and shadow), whatever edge it stores; nor does a
|
|
22402
|
+
* floating one (HI3-D20: a pill has no edge under it). A floating header on `over` floats on the look's glass from the
|
|
22403
|
+
* top (HI3-D17: never a clear pill), so it writes `over-glass`. */
|
|
22404
|
+
function headerAttributes(behaviour, edge, ink, ground, shape, brand) {
|
|
22354
22405
|
const out = {};
|
|
22355
22406
|
if (headerInkOf(ink) === HeaderInk.Follows)
|
|
22356
22407
|
out[HeaderAttribute.Ink] = HeaderInk.Follows;
|
|
22357
22408
|
const b = headerBehaviourOf(behaviour);
|
|
22358
22409
|
if (b !== HeaderBehaviour.Scrolls)
|
|
22359
22410
|
out[HeaderAttribute.Behaviour] = b;
|
|
22360
|
-
const
|
|
22361
|
-
|
|
22411
|
+
const sh = headerShapeOf(shape);
|
|
22412
|
+
const floats = sh !== HeaderShape.Bar;
|
|
22413
|
+
const stood = headerGroundOf(ground);
|
|
22414
|
+
const g = floats && stood === HeaderGround.Over ? HeaderGround.OverGlass : stood;
|
|
22415
|
+
// A floating header always draws its ground on the ground layer — a solid one too (`solid`: the look's own bar).
|
|
22416
|
+
if (g !== HeaderGround.Solid || floats)
|
|
22362
22417
|
out[HeaderAttribute.Ground] = g;
|
|
22418
|
+
if (floats)
|
|
22419
|
+
out[HeaderAttribute.Shape] = sh;
|
|
22420
|
+
const br = headerBrandOf(brand);
|
|
22421
|
+
if (br !== HeaderBrand.Fits)
|
|
22422
|
+
out[HeaderAttribute.Brand] = br;
|
|
22363
22423
|
const e = headerEdgeOf(edge);
|
|
22364
|
-
if (e && !headerGroundIsGlass(g))
|
|
22424
|
+
if (e && !headerGroundIsGlass(g) && !floats)
|
|
22365
22425
|
out[HeaderAttribute.Edge] = e;
|
|
22366
22426
|
return out;
|
|
22367
22427
|
}
|
|
22428
|
+
// ── Its outline and its name (HI3 slice 2: pill · islands · hangs · later, board hi3-shapes) ──────────────────────────
|
|
22429
|
+
/** The header's outline (contract HEADER `shape`). */
|
|
22430
|
+
var HeaderShape;
|
|
22431
|
+
(function (HeaderShape) {
|
|
22432
|
+
/** A full-width bar (every header before HI3 slice 2). */
|
|
22433
|
+
HeaderShape["Bar"] = "bar";
|
|
22434
|
+
/** One floating bar inset from the window, as wide as the content column, its corner the look's button corner. */
|
|
22435
|
+
HeaderShape["Pill"] = "pill";
|
|
22436
|
+
/** Each part of the bar (the name, the pages, the action) a floating pill of its own. */
|
|
22437
|
+
HeaderShape["Islands"] = "islands";
|
|
22438
|
+
})(HeaderShape || (HeaderShape = {}));
|
|
22439
|
+
/** How the header's name sits (contract HEADER `brand`). */
|
|
22440
|
+
var HeaderBrand;
|
|
22441
|
+
(function (HeaderBrand) {
|
|
22442
|
+
HeaderBrand["Fits"] = "fits";
|
|
22443
|
+
/** A logo picture taller than the bar, breaking its lower edge (only with a logo picture). */
|
|
22444
|
+
HeaderBrand["Hangs"] = "hangs";
|
|
22445
|
+
/** No name at the top of the opening (which names the business); it arrives once the page moves or a menu opens. */
|
|
22446
|
+
HeaderBrand["Later"] = "later";
|
|
22447
|
+
})(HeaderBrand || (HeaderBrand = {}));
|
|
22448
|
+
const SHAPES = new Set(Object.values(HeaderShape));
|
|
22449
|
+
const BRANDS = new Set(Object.values(HeaderBrand));
|
|
22450
|
+
/** A stored shape, or Bar for anything else. */
|
|
22451
|
+
function headerShapeOf(value) {
|
|
22452
|
+
return typeof value === 'string' && SHAPES.has(value) ? value : HeaderShape.Bar;
|
|
22453
|
+
}
|
|
22454
|
+
/** A stored brand, or Fits for anything else. */
|
|
22455
|
+
function headerBrandOf(value) {
|
|
22456
|
+
return typeof value === 'string' && BRANDS.has(value) ? value : HeaderBrand.Fits;
|
|
22457
|
+
}
|
|
22458
|
+
/** True for a shape that floats (pill, islands): its ground shows from the top, and it has no scroll edge. */
|
|
22459
|
+
function headerShapeFloats(shape) {
|
|
22460
|
+
return headerShapeOf(shape) !== HeaderShape.Bar;
|
|
22461
|
+
}
|
|
22368
22462
|
// ── What the header stands on (HI3 slice 1: over · over-glass · glass) ───────────────────────────────────────────────
|
|
22369
22463
|
/**
|
|
22370
22464
|
* What a header stands on (contract HEADER `ground`, HI3-D1). `blend` waits for slice 2+ and is never a trait value
|
|
@@ -22453,15 +22547,16 @@ function openingMediaAttributes(layout) {
|
|
|
22453
22547
|
* shared CSS draws it through `HEADER_AT_REST_SELECTOR` (held equal to this by header-behaviour.spec), the canvas's
|
|
22454
22548
|
* "At the top · Scrolled" pair asks it. Pure.
|
|
22455
22549
|
*/
|
|
22456
|
-
function headerFirm(ground, moment = {}) {
|
|
22457
|
-
|
|
22550
|
+
function headerFirm(ground, moment = {}, shape) {
|
|
22551
|
+
// HI3-D17: a floating shape wears its ground from the top — never a clear pill over the picture.
|
|
22552
|
+
if (!headerGroundIsOver(ground) || headerShapeFloats(shape))
|
|
22458
22553
|
return true;
|
|
22459
22554
|
return !(moment.openingMedia === OpeningMediaKind.Picture && !moment.scrolled && !moment.menuOpen);
|
|
22460
22555
|
}
|
|
22461
|
-
/** Whether the header gives its height back to the page (HI3-D7): it does not stand on its own solid ground
|
|
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;
|
|
22556
|
+
/** Whether the header gives its height back to the page (HI3-D7): it does not stand on its own solid ground (or it floats,
|
|
22557
|
+
* HI3-D17), over a page that opens on a picture — the picture starts at the top of the page, under the bar. */
|
|
22558
|
+
function headerGivesBack(ground, openingMedia, shape) {
|
|
22559
|
+
return (headerGroundOf(ground) !== HeaderGround.Solid || headerShapeFloats(shape)) && openingMedia === OpeningMediaKind.Picture;
|
|
22465
22560
|
}
|
|
22466
22561
|
/** The Page scrolled state's attribute (main entry `SCROLLED_ATTRIBUTE`; spelled here — design-core reads no Angular
|
|
22467
22562
|
* entry; held equal by the scrolled spec). */
|
|
@@ -22482,9 +22577,10 @@ const groundIs = (grounds) => `:is(${grounds.map(g => `[${HeaderAttribute.Ground
|
|
|
22482
22577
|
const onPicture = `:is([${OPENING_MEDIA_ATTRIBUTE}="${OpeningMediaKind.Picture}"] *)`;
|
|
22483
22578
|
/**
|
|
22484
22579
|
* The header AT REST (not firm), as a compound selector on the header's own element — `headerFirm`'s twin in CSS: an over
|
|
22485
|
-
* ground, inside a page that opens on a picture, not inside a scrolled page,
|
|
22580
|
+
* ground on a header that does not float (HI3-D17), inside a page that opens on a picture, not inside a scrolled page,
|
|
22581
|
+
* holding no open menu.
|
|
22486
22582
|
*/
|
|
22487
|
-
const HEADER_AT_REST_SELECTOR = `${groundIs(OVER_GROUNDS)}${onPicture}:not([${HEADER_SCROLLED_ATTRIBUTE}] *):not(:has(${HEADER_OPEN_MENU_SELECTOR}))`;
|
|
22583
|
+
const HEADER_AT_REST_SELECTOR = `${groundIs(OVER_GROUNDS)}:not([${HeaderAttribute.Shape}])${onPicture}:not([${HEADER_SCROLLED_ATTRIBUTE}] *):not(:has(${HEADER_OPEN_MENU_SELECTOR}))`;
|
|
22488
22584
|
/** The header that gives its height back (`headerGivesBack`'s twin): any ground word, inside a page that opens on a picture. */
|
|
22489
22585
|
const HEADER_GIVES_BACK_SELECTOR = `[${HeaderAttribute.Ground}]${onPicture}`;
|
|
22490
22586
|
/**
|
|
@@ -22656,6 +22752,47 @@ const ROLE_PREFIX = 'iox-role-';
|
|
|
22656
22752
|
/** A role is dot-separated lowercase words (`card`, `card.title`) — anything else never reaches a class. */
|
|
22657
22753
|
const ROLE_SHAPE = /^[a-z][a-z0-9-]*(\.[a-z][a-z0-9-]*)*$/;
|
|
22658
22754
|
const MARKER_PREFIX = `${ELEMENT_STYLE_MARKER_CLASS}-`;
|
|
22755
|
+
/** The scheme rows that name a scheme's GROUND (what its band and its boxes are painted). */
|
|
22756
|
+
const SCHEME_GROUND_ROWS = ['section-bg', 'bg', 'surface'];
|
|
22757
|
+
/** The row a scheme re-declares when it changes the ink. */
|
|
22758
|
+
const SCHEME_INK_ROW = 'text';
|
|
22759
|
+
/** The one token a scheme row or a style value names: `var(--iox-x)` or the contract's `{{x}}` / `{{~x}}`. */
|
|
22760
|
+
const ONE_GROUND_TOKEN = /^(?:var\(\s*--iox-([a-z0-9-]+)\s*\)|\{\{~?([a-z0-9-]+)\}\})$/;
|
|
22761
|
+
const groundToken = (v) => {
|
|
22762
|
+
const m = ONE_GROUND_TOKEN.exec(String(v ?? '').trim());
|
|
22763
|
+
return m ? (m[1] ?? m[2]) : null;
|
|
22764
|
+
};
|
|
22765
|
+
/**
|
|
22766
|
+
* Ground token → the scheme it is the ground of, read from the contract (iox-ui#186): only a scheme that RE-DECLARES the
|
|
22767
|
+
* ink (a dark band's words, buttons, lines) and whose ground tokens keep their meaning inside it — Inverse paints
|
|
22768
|
+
* `inverse-bg` and never re-declares it, so a node painted `var(--iox-inverse-bg)` that wears Inverse looks the same and
|
|
22769
|
+
* everything in it reads. Brand and Muted re-declare their own grounds (`accent`, `text-muted`), so a painted
|
|
22770
|
+
* `var(--iox-accent)` cannot wear Brand without changing colour: those are never inferred.
|
|
22771
|
+
*/
|
|
22772
|
+
const SCHEME_OF_GROUND = (() => {
|
|
22773
|
+
const out = new Map();
|
|
22774
|
+
for (const [id, { set }] of Object.entries(SPEC_SCHEMES)) {
|
|
22775
|
+
if (id === ColorScheme.Default || !(SCHEME_INK_ROW in set))
|
|
22776
|
+
continue;
|
|
22777
|
+
const grounds = SCHEME_GROUND_ROWS.map(row => groundToken(set[row])).filter((t) => !!t);
|
|
22778
|
+
if (!grounds.length || grounds.some(t => t in set))
|
|
22779
|
+
continue;
|
|
22780
|
+
for (const t of grounds)
|
|
22781
|
+
if (!out.has(t))
|
|
22782
|
+
out.set(t, id);
|
|
22783
|
+
}
|
|
22784
|
+
return out;
|
|
22785
|
+
})();
|
|
22786
|
+
/**
|
|
22787
|
+
* The scheme a node's painted ground IS (iox-ui#186): a Section or Container whose `backgroundColor` is exactly a
|
|
22788
|
+
* scheme's own ground token (`var(--iox-inverse-bg)`) — the free stamp gives it that scheme so every token the look
|
|
22789
|
+
* reads inside (a button's ink and outline, a line, a link) is re-declared for the ground, not only the words someone
|
|
22790
|
+
* coloured by hand. Null for any other value (a page token, a colour-mix, a ground a scheme re-declares).
|
|
22791
|
+
*/
|
|
22792
|
+
function schemeOfGround(backgroundColor) {
|
|
22793
|
+
const token = groundToken(backgroundColor);
|
|
22794
|
+
return token ? SCHEME_OF_GROUND.get(token) ?? null : null;
|
|
22795
|
+
}
|
|
22659
22796
|
/** `iox-scheme-<id>` for a known NON-default scheme, else null — an unknown id never reaches a class attribute. */
|
|
22660
22797
|
function colorSchemeClass(id) {
|
|
22661
22798
|
return typeof id === 'string' && id !== ColorScheme.Default && SCHEME_IDS$1.has(id) ? `${SCHEME_PREFIX}${id}` : null;
|
|
@@ -22824,7 +22961,7 @@ function colorSchemeOf(node) {
|
|
|
22824
22961
|
*/
|
|
22825
22962
|
const SCHEME_INK = SPEC_SCHEME_INK;
|
|
22826
22963
|
/** The values that mean "no colour of my own" — `color` is inherited, so these equal no declaration. */
|
|
22827
|
-
const INHERITED_INK = new Set(['inherit', 'unset']);
|
|
22964
|
+
const INHERITED_INK$1 = new Set(['inherit', 'unset']);
|
|
22828
22965
|
/**
|
|
22829
22966
|
* A node's style map as its renderer compiles it under a section colour scheme: a NON-default scheme turns
|
|
22830
22967
|
* an inherited `color` into {@link SCHEME_INK}; anything else — no scheme, an author's own colour, a token —
|
|
@@ -22835,7 +22972,7 @@ function withSchemeInk(styles, scheme) {
|
|
|
22835
22972
|
if (!styles || !colorSchemeClass(scheme))
|
|
22836
22973
|
return styles;
|
|
22837
22974
|
const color = styles['color'];
|
|
22838
|
-
if (typeof color !== 'string' || !INHERITED_INK.has(color.trim().toLowerCase()))
|
|
22975
|
+
if (typeof color !== 'string' || !INHERITED_INK$1.has(color.trim().toLowerCase()))
|
|
22839
22976
|
return styles;
|
|
22840
22977
|
return { ...styles, color: SCHEME_INK };
|
|
22841
22978
|
}
|
|
@@ -23418,6 +23555,18 @@ var MenuPhoneForm;
|
|
|
23418
23555
|
MenuPhoneForm["Drawer"] = "drawer";
|
|
23419
23556
|
MenuPhoneForm["Full"] = "full";
|
|
23420
23557
|
})(MenuPhoneForm || (MenuPhoneForm = {}));
|
|
23558
|
+
/** What the menu shows besides its own head (HI2 shelves, header-builder board v2 "menu contents"): the page names (today's),
|
|
23559
|
+
* the page names LARGE in the look's display face (Flyward's and Hotel Aurelia's full-screen index), the first four large
|
|
23560
|
+
* with a MORE row of the rest and a picture card (Savvia's card: four names at 48px, "MÁS", small links and a reel tile),
|
|
23561
|
+
* or pictured cards for the site's main collections beside the page names (Vonder's top panel: two category photo tiles
|
|
23562
|
+
* and the page list). `two-levels` waits for HI6 and is drawn as the page names. */
|
|
23563
|
+
var MenuShows;
|
|
23564
|
+
(function (MenuShows) {
|
|
23565
|
+
MenuShows["Links"] = "links";
|
|
23566
|
+
MenuShows["Big"] = "big";
|
|
23567
|
+
MenuShows["WordsCard"] = "words-card";
|
|
23568
|
+
MenuShows["Pictures"] = "pictures";
|
|
23569
|
+
})(MenuShows || (MenuShows = {}));
|
|
23421
23570
|
/** The traits, stored in the node's props (no default: a node saved before HI2 saves none). */
|
|
23422
23571
|
var MenuTrait;
|
|
23423
23572
|
(function (MenuTrait) {
|
|
@@ -23426,6 +23575,8 @@ var MenuTrait;
|
|
|
23426
23575
|
MenuTrait["Reveal"] = "menuReveal";
|
|
23427
23576
|
MenuTrait["Hover"] = "menuHover";
|
|
23428
23577
|
MenuTrait["Phone"] = "menuPhone";
|
|
23578
|
+
/** HI2: what the menu shows (`MenuShows`) — the shelves' parts are its children; the trait sizes them. */
|
|
23579
|
+
MenuTrait["Shows"] = "menuShows";
|
|
23429
23580
|
/** On the menu button AND the menu's Close (the same button, open). */
|
|
23430
23581
|
MenuTrait["Button"] = "menuButton";
|
|
23431
23582
|
})(MenuTrait || (MenuTrait = {}));
|
|
@@ -23435,6 +23586,7 @@ var MenuAttribute;
|
|
|
23435
23586
|
MenuAttribute["Reveal"] = "data-iox-reveal";
|
|
23436
23587
|
MenuAttribute["Hover"] = "data-iox-menu-hover";
|
|
23437
23588
|
MenuAttribute["Phone"] = "data-iox-menu-phone";
|
|
23589
|
+
MenuAttribute["Shows"] = "data-iox-menu-shows";
|
|
23438
23590
|
MenuAttribute["Button"] = "data-iox-menu-button";
|
|
23439
23591
|
})(MenuAttribute || (MenuAttribute = {}));
|
|
23440
23592
|
/** Every attribute a menu part may carry (what a renderer's attribute sync owns). */
|
|
@@ -23446,6 +23598,7 @@ const DEFAULT_MENU_LOOK = Object.freeze({
|
|
|
23446
23598
|
button: MenuButtonKind.Lines,
|
|
23447
23599
|
hover: MenuHover.Line,
|
|
23448
23600
|
phone: MenuPhoneForm.Drawer,
|
|
23601
|
+
shows: MenuShows.Links,
|
|
23449
23602
|
});
|
|
23450
23603
|
const valueOf = (values, fallback) => (v) => typeof v === 'string' && values.includes(v) ? v : fallback;
|
|
23451
23604
|
const menuFormOf = valueOf(Object.values(MenuForm), DEFAULT_MENU_LOOK.form);
|
|
@@ -23453,6 +23606,8 @@ const menuRevealOf = valueOf(Object.values(MenuReveal), DEFAULT_MENU_LOOK.reveal
|
|
|
23453
23606
|
const menuButtonOf = valueOf(Object.values(MenuButtonKind), DEFAULT_MENU_LOOK.button);
|
|
23454
23607
|
const menuHoverOf = valueOf(Object.values(MenuHover), DEFAULT_MENU_LOOK.hover);
|
|
23455
23608
|
const menuPhoneOf = valueOf(Object.values(MenuPhoneForm), DEFAULT_MENU_LOOK.phone);
|
|
23609
|
+
/** A word the product does not draw (`two-levels`, HI6) reads as the page names. */
|
|
23610
|
+
const menuShowsOf = valueOf(Object.values(MenuShows), DEFAULT_MENU_LOOK.shows);
|
|
23456
23611
|
/** The attributes a MENU (the Dialog) renders from its traits — `{}` for today's drawer. */
|
|
23457
23612
|
function menuDialogAttributes(read) {
|
|
23458
23613
|
const out = {};
|
|
@@ -23460,6 +23615,7 @@ function menuDialogAttributes(read) {
|
|
|
23460
23615
|
const reveal = menuRevealOf(read(MenuTrait.Reveal));
|
|
23461
23616
|
const hover = menuHoverOf(read(MenuTrait.Hover));
|
|
23462
23617
|
const phone = menuPhoneOf(read(MenuTrait.Phone));
|
|
23618
|
+
const shows = menuShowsOf(read(MenuTrait.Shows));
|
|
23463
23619
|
if (form !== DEFAULT_MENU_LOOK.form)
|
|
23464
23620
|
out[MenuAttribute.Form] = form;
|
|
23465
23621
|
if (reveal !== DEFAULT_MENU_LOOK.reveal)
|
|
@@ -23468,6 +23624,8 @@ function menuDialogAttributes(read) {
|
|
|
23468
23624
|
out[MenuAttribute.Hover] = hover;
|
|
23469
23625
|
if (phone !== DEFAULT_MENU_LOOK.phone)
|
|
23470
23626
|
out[MenuAttribute.Phone] = phone;
|
|
23627
|
+
if (shows !== DEFAULT_MENU_LOOK.shows)
|
|
23628
|
+
out[MenuAttribute.Shows] = shows;
|
|
23471
23629
|
return out;
|
|
23472
23630
|
}
|
|
23473
23631
|
/** The attribute a menu BUTTON (or the menu's Close) renders — `{}` for today's list icon. */
|
|
@@ -23486,6 +23644,8 @@ function menuDialogProps(look) {
|
|
|
23486
23644
|
out[MenuTrait.Hover] = look.hover;
|
|
23487
23645
|
if (look.phone && look.phone !== DEFAULT_MENU_LOOK.phone)
|
|
23488
23646
|
out[MenuTrait.Phone] = look.phone;
|
|
23647
|
+
if (look.shows && look.shows !== DEFAULT_MENU_LOOK.shows)
|
|
23648
|
+
out[MenuTrait.Shows] = look.shows;
|
|
23489
23649
|
return out;
|
|
23490
23650
|
}
|
|
23491
23651
|
/** The trait a menu button (and the Close) is stamped with for a kind: none for today's. */
|
|
@@ -23936,12 +24096,54 @@ const WHITE_HEX = toHexColor(WHITE$1);
|
|
|
23936
24096
|
const BLACK_HEX = toHexColor(BLACK$1);
|
|
23937
24097
|
const passesText = (fg, bg) => groundList(bg).every(g => wcagContrastRatio(fg, g) >= WCAG_AA_TEXT);
|
|
23938
24098
|
const bestInkHex = (bg) => (wcagContrastRatio(WHITE_HEX, bg) >= wcagContrastRatio(BLACK_HEX, bg) ? WHITE_HEX : BLACK_HEX);
|
|
24099
|
+
/** CV-D1 (colour-v2-plan.md): the accent's hover sits at least this much OKLab L away from the kept accent (away from its ink). */
|
|
24100
|
+
const KEPT_HOVER_DL = 0.06;
|
|
24101
|
+
/** CV-D1: how far the hover may walk on (0.02 a step) to keep the brand band's surfaces readable. */
|
|
24102
|
+
const KEPT_HOVER_DL_MAX = 0.3;
|
|
24103
|
+
/**
|
|
24104
|
+
* CV-D1: the strongest ink tint the contract lays on a Brand band's surface. Inside the accent scheme `surface` IS the
|
|
24105
|
+
* accent's hover and the ink is the band's words (the contract's SCHEMES.accent); Bloom's secondary button is
|
|
24106
|
+
* `color-mix(accent 22%, surface)` there — the ink mixed 22% into the hover. The hover keeps the ink at AA under it.
|
|
24107
|
+
*/
|
|
24108
|
+
const BAND_SURFACE_INK_TINT = 0.22;
|
|
24109
|
+
const mixSrgb = (a, b, share) => ({ r: a.r * share + b.r * (1 - share), g: a.g * share + b.g * (1 - share), b: a.b * share + b.b * (1 - share) });
|
|
24110
|
+
/**
|
|
24111
|
+
* CV-D1 (colour-v2-plan.md §2 cause 1, §5a): the light accent IS the brand colour — a navy stays navy, a berry stays
|
|
24112
|
+
* berry (it used to be brand-500 at L 0.62: a pastel with a black label). On every sRGB colour the better of a white and a
|
|
24113
|
+
* black label reads at least √21 ≈ 4.58:1, so the seed always carries one (R-H-CV1). `ink` is that label. `hover` walks
|
|
24114
|
+
* away from the ink (white ink: darker; black ink: lighter) at the seed's hue and chroma, from `KEPT_HOVER_DL` in 0.02
|
|
24115
|
+
* steps, until the ink reads on it even with `BAND_SURFACE_INK_TINT` of the ink mixed in (the hover is the Brand band's
|
|
24116
|
+
* surface); never past `KEPT_HOVER_DL_MAX`. Mirror of the contract's colour.mjs `keptAccent` (derivationFixtures hold
|
|
24117
|
+
* them equal).
|
|
24118
|
+
*/
|
|
24119
|
+
function keptAccent(seed) {
|
|
24120
|
+
const own = parseHexColor(seed);
|
|
24121
|
+
if (!own)
|
|
24122
|
+
throw new TypeError(`keptAccent: not a colour: "${seed}"`);
|
|
24123
|
+
const lab = rgbToOklab(own);
|
|
24124
|
+
const chroma = Math.hypot(lab.a, lab.b);
|
|
24125
|
+
const ua = chroma > 1e-6 ? lab.a : 0.0, ub = chroma > 1e-6 ? lab.b : 1e-6;
|
|
24126
|
+
const ink = wcagContrastRatio(WHITE$1, own) >= wcagContrastRatio(BLACK$1, own) ? WHITE$1 : BLACK$1;
|
|
24127
|
+
const away = ink === WHITE$1 ? -1 : 1;
|
|
24128
|
+
const tinted = (c) => mixSrgb(ink, c, BAND_SURFACE_INK_TINT);
|
|
24129
|
+
// judged on the float mix and on the hex it rounds to, whichever is lower (the audit and a browser may round either way)
|
|
24130
|
+
const reads = (c) => wcagContrastRatio(ink, c) >= WCAG_AA_TEXT
|
|
24131
|
+
&& Math.min(wcagContrastRatio(ink, tinted(c)), wcagContrastRatio(ink, quant(tinted(c)))) >= WCAG_AA_TEXT;
|
|
24132
|
+
let hover = null;
|
|
24133
|
+
for (let i = 0; !hover; i++) {
|
|
24134
|
+
const dl = Math.min(KEPT_HOVER_DL + i * 0.02, KEPT_HOVER_DL_MAX);
|
|
24135
|
+
const c = quant(atLightness(Math.min(1, Math.max(0, lab.L + away * dl)), ua, ub, chroma));
|
|
24136
|
+
if (reads(c) || dl >= KEPT_HOVER_DL_MAX)
|
|
24137
|
+
hover = c;
|
|
24138
|
+
}
|
|
24139
|
+
return { accent: toHexColor(own), ink: toHexColor(ink), hover: toHexColor(wcagContrastRatio(ink, hover) >= WCAG_AA_TEXT ? hover : own) };
|
|
24140
|
+
}
|
|
23939
24141
|
/**
|
|
23940
24142
|
* The quartet a seed different from the pack's own becomes, built ON `deriveBrandTokens` (its
|
|
23941
24143
|
* ramp and its WCAG-gated `brandInk`) — never a second colour model:
|
|
23942
24144
|
*
|
|
23943
|
-
* - `accent` =
|
|
23944
|
-
* - `accent-hover` =
|
|
24145
|
+
* - `accent` = the seed itself (CV-D1, `keptAccent`), `accent-ink` = the label that reads on it
|
|
24146
|
+
* - `accent-hover` = `KEPT_HOVER_DL` away from the ink, so ink-on-hover only gains contrast
|
|
23945
24147
|
* - `accent-text` = the first step from 500 toward the far end that clears 4.5:1 on `bg`
|
|
23946
24148
|
* - dark: the first of brand-300/200/400 an ink clears 4.5:1 on, the same hover rule, and
|
|
23947
24149
|
* `accent-text` = the first light step that clears 4.5:1 on `bgDark`
|
|
@@ -23954,7 +24156,7 @@ const bestInkHex = (bg) => (wcagContrastRatio(WHITE_HEX, bg) >= wcagContrastRati
|
|
|
23954
24156
|
* Every pair (ink/accent, ink/hover, text/bg, inverse ink/inverse accent, inverse accent/inverse
|
|
23955
24157
|
* bg) is asserted ≥ 4.5:1 across packs and seeds in `flavor-tokens.spec.ts`.
|
|
23956
24158
|
*/
|
|
23957
|
-
function deriveAccentTokens(seed, against, pack = {}) {
|
|
24159
|
+
function deriveAccentTokens(seed, against, pack = {}, options = {}) {
|
|
23958
24160
|
const derived = deriveBrandTokens(seed, pack);
|
|
23959
24161
|
const hexOf = (name) => derived.find(t => t.name === name).value;
|
|
23960
24162
|
const step = (n) => hexOf(`brand-${n}`);
|
|
@@ -23965,10 +24167,10 @@ function deriveAccentTokens(seed, against, pack = {}) {
|
|
|
23965
24167
|
};
|
|
23966
24168
|
const firstOn = (steps, bg) => step(steps.find(n => passesText(step(n), bg)) ?? steps[steps.length - 1]);
|
|
23967
24169
|
const ink = hexOf('brandInk');
|
|
24170
|
+
// CV-D1: the light accent is the seed itself; words keep the ramp's text step. (`ink` — the ramp's brandInk — still
|
|
24171
|
+
// decides the inverse accent's label below, as before.)
|
|
23968
24172
|
const light = {
|
|
23969
|
-
accent: step(500),
|
|
23970
|
-
ink,
|
|
23971
|
-
hover: hoverFor(500, ink),
|
|
24173
|
+
...(options.keepSeed === false ? { accent: step(500), ink, hover: hoverFor(500, ink) } : keptAccent(seed)),
|
|
23972
24174
|
text: firstOn([500, 600, 700, 800, 900], against.bg),
|
|
23973
24175
|
};
|
|
23974
24176
|
const dark = hasGround(against.bgDark) ? (() => {
|
|
@@ -24022,7 +24224,7 @@ const NAMED = {
|
|
|
24022
24224
|
white: { r: 1, g: 1, b: 1, a: 1 },
|
|
24023
24225
|
black: { r: 0, g: 0, b: 0, a: 1 },
|
|
24024
24226
|
};
|
|
24025
|
-
const CURRENT_COLOR = new Set(['currentcolor', 'inherit']);
|
|
24227
|
+
const CURRENT_COLOR$1 = new Set(['currentcolor', 'inherit']);
|
|
24026
24228
|
const RGB_FN = /^rgba?\(([^)]*)\)$/i;
|
|
24027
24229
|
const COLOR_MIX = /^color-mix\(\s*in srgb\s*,(.*)\)$/i;
|
|
24028
24230
|
const MIX_STOP = /^(.*?)(?:\s+(\d+(?:\.\d+)?)%)?$/;
|
|
@@ -24063,7 +24265,7 @@ function parseCssColour(value, ink) {
|
|
|
24063
24265
|
const low = v.toLowerCase();
|
|
24064
24266
|
if (low in NAMED)
|
|
24065
24267
|
return NAMED[low];
|
|
24066
|
-
if (CURRENT_COLOR.has(low))
|
|
24268
|
+
if (CURRENT_COLOR$1.has(low))
|
|
24067
24269
|
return ink ?? null;
|
|
24068
24270
|
const hex = parseHexColor(v);
|
|
24069
24271
|
if (hex)
|
|
@@ -24877,35 +25079,63 @@ function colourTabChecks(rows, mode) {
|
|
|
24877
25079
|
}
|
|
24878
25080
|
return out;
|
|
24879
25081
|
}
|
|
25082
|
+
// ── Floating grounds (HI3 slice 1, R-H16, vectoriox/iox-ui#173) ──────────────────────────────────────────────────────
|
|
25083
|
+
/** Where a floating ground's ink is read: `header` = inside the header's ink scope (vectoriox/iox-ui#173 a). */
|
|
25084
|
+
var FloatingInkScope;
|
|
25085
|
+
(function (FloatingInkScope) {
|
|
25086
|
+
FloatingInkScope["Header"] = "header";
|
|
25087
|
+
})(FloatingInkScope || (FloatingInkScope = {}));
|
|
25088
|
+
const AUDIT_TABLES = SPEC_CONTRAST_AUDIT;
|
|
24880
25089
|
/** The translucent grounds that carry words over ANYTHING (the header's bar and glass while the page moves under them, the
|
|
24881
25090
|
* bottom bar, a dialog, a popover, the strong glass) — the contract's table (`contrastAudit.floatingGrounds`). */
|
|
24882
|
-
const FLOATING_GROUNDS =
|
|
25091
|
+
const FLOATING_GROUNDS = AUDIT_TABLES.floatingGrounds ?? [];
|
|
25092
|
+
/** The contract's header ink scope — null on a contract generated before vectoriox/iox-ui#173 (a). */
|
|
25093
|
+
const HEADER_INK_SCOPE = AUDIT_TABLES.headerInkScope ?? null;
|
|
25094
|
+
const CURRENT_COLOR = 'currentcolor';
|
|
25095
|
+
const INHERITED_INK = 'text';
|
|
25096
|
+
/**
|
|
25097
|
+
* An ink's value as the words on a floating ground wear it — the contract's `floatingInk`, 1:1. A header ground's ink is
|
|
25098
|
+
* read INSIDE the header's ink scope: `currentColor` is the bar's own ink (`text` — the bar is `color: inherit`), a token
|
|
25099
|
+
* reference reads that token, anything else is the value itself. Outside a scope the ink is the token's own value.
|
|
25100
|
+
*/
|
|
25101
|
+
function floatingInkValue(values, ink, scope, header = HEADER_INK_SCOPE) {
|
|
25102
|
+
const set = scope === FloatingInkScope.Header ? header?.set[ink] : undefined;
|
|
25103
|
+
if (set === undefined)
|
|
25104
|
+
return values[ink];
|
|
25105
|
+
if (set.trim().toLowerCase() === CURRENT_COLOR)
|
|
25106
|
+
return values[INHERITED_INK];
|
|
25107
|
+
const ref = /^var\(--iox-([\w-]+)\)$/.exec(set.trim());
|
|
25108
|
+
return ref ? values[ref[1]] : set;
|
|
25109
|
+
}
|
|
24883
25110
|
const BLACK = { r: 0, g: 0, b: 0, a: 1 };
|
|
24884
25111
|
/** The two backdrops that bound every picture: each channel of a blend is monotone in its backdrop's. */
|
|
24885
25112
|
const FLOATING_BACKDROPS = Object.freeze({ black: BLACK, white: WHITE });
|
|
24886
25113
|
/**
|
|
24887
|
-
* HI3 slice 1 (R-H16): each translucent ground's words over pure black AND pure white, in
|
|
24888
|
-
* header
|
|
24889
|
-
* lighter, so a ground that holds AA over both holds it over any picture (iox-ui#173: the Glass
|
|
24890
|
-
* 3.55:1 over a light picture in dark mode). An opaque ground is not judged here (the DS9 audit
|
|
24891
|
-
* The contract's gate, 1:1 (build-spec `floatingGroundFailures`).
|
|
25114
|
+
* HI3 slice 1 (R-H16): each translucent ground's words over pure black AND pure white, in EVERY section scheme (the page's
|
|
25115
|
+
* own, and any an author dresses the header or a dialog in — vectoriox/iox-ui#174), in one mode — nothing a blur can lay
|
|
25116
|
+
* under the bar is darker or lighter, so a ground that holds AA over both holds it over any picture (iox-ui#173: the Glass
|
|
25117
|
+
* look's bar dropped to 3.55:1 over a light picture in dark mode). An opaque ground is not judged here (the DS9 audit
|
|
25118
|
+
* judges it where it stands). The contract's gate, 1:1 (build-spec `floatingGroundFailures`).
|
|
24892
25119
|
*/
|
|
24893
|
-
function floatingGroundFindings(rows, mode) {
|
|
24894
|
-
const
|
|
25120
|
+
function floatingGroundFindings(rows, mode, table = FLOATING_GROUNDS, header = HEADER_INK_SCOPE) {
|
|
25121
|
+
const valuesIn = schemeTokenResolver(rows, mode);
|
|
24895
25122
|
const out = [];
|
|
24896
|
-
for (const
|
|
24897
|
-
const
|
|
24898
|
-
const
|
|
24899
|
-
|
|
24900
|
-
|
|
24901
|
-
|
|
24902
|
-
|
|
24903
|
-
const
|
|
24904
|
-
const
|
|
24905
|
-
|
|
24906
|
-
|
|
24907
|
-
|
|
24908
|
-
|
|
25123
|
+
for (const scheme of SCHEME_IDS) {
|
|
25124
|
+
const values = valuesIn(scheme);
|
|
25125
|
+
for (const { ground, ink, scope } of table) {
|
|
25126
|
+
const fg = parseCssColour(floatingInkValue(values, ink, scope, header));
|
|
25127
|
+
const bg = parseCssColour(values[ground], fg);
|
|
25128
|
+
if (!fg || !bg || bg.a >= 1)
|
|
25129
|
+
continue;
|
|
25130
|
+
const fgHex = toHexColor(quantizeRgb(fg));
|
|
25131
|
+
for (const [name, under] of Object.entries(FLOATING_BACKDROPS)) {
|
|
25132
|
+
const shown = quantizeRgb(compositeOver(bg, under));
|
|
25133
|
+
const ratio = wcagContrastRatio(fgHex, shown);
|
|
25134
|
+
out.push({
|
|
25135
|
+
scheme, container: `over ${name}`, element: ground, part: ink, fg: fgHex, bg: toHexColor(shown),
|
|
25136
|
+
ratio: Math.round(ratio * 100) / 100, min: WCAG_AA_TEXT, pass: ratio >= WCAG_AA_TEXT - 1e-9,
|
|
25137
|
+
});
|
|
25138
|
+
}
|
|
24909
25139
|
}
|
|
24910
25140
|
}
|
|
24911
25141
|
return out;
|
|
@@ -25483,7 +25713,6 @@ const isMoveId = (v) => typeof v === 'string' && MOVE_IDS.includes(v);
|
|
|
25483
25713
|
const PRESET_LANGUAGE = L$2.presets;
|
|
25484
25714
|
const LEAVE_FOR = L$2.leaveFor;
|
|
25485
25715
|
const TIERS = L$2.tiers;
|
|
25486
|
-
const PLAN_FALLBACK = L$2.planFallback;
|
|
25487
25716
|
/** A style preset's own language (its Feel, Headings arrive and first-visit preloader with its exit) — undefined for an
|
|
25488
25717
|
* unknown id. */
|
|
25489
25718
|
function presetMotionLanguage(presetId) {
|
|
@@ -25516,24 +25745,12 @@ function motionCurve(word, tokenValue = () => undefined) {
|
|
|
25516
25745
|
return ref ? (tokenValue(ref[1]) ?? 'linear') : curve;
|
|
25517
25746
|
}
|
|
25518
25747
|
/**
|
|
25519
|
-
* What a
|
|
25520
|
-
*
|
|
25521
|
-
*
|
|
25748
|
+
* What a plan wears of a language: since AW-D42 (Doron, 2026-11-28 — the award parts are every tier's) EVERY plan wears
|
|
25749
|
+
* the whole language — a Pro Feel, move, cover (AW4), preloader (AW5) and By the scroll (AW10) included. It once drew a
|
|
25750
|
+
* lower plan's Pro words as the contract's `planFallback` (AW-D23, MB-D6); `pro` is kept so its callers still read.
|
|
25522
25751
|
*/
|
|
25523
|
-
function motionLanguageForPlan(choices,
|
|
25524
|
-
|
|
25525
|
-
return choices;
|
|
25526
|
-
const proWord = (kind, word) => typeof word === 'string' && motionWordTier(kind, word) === MotionWordTier.Pro;
|
|
25527
|
-
const feel = isArriveId(choices.feel) && proWord('arrive', choices.feel) ? PLAN_FALLBACK.arrive : choices.feel;
|
|
25528
|
-
const headings = isMoveId(choices.headings) && proWord('move', choices.headings) ? PLAN_FALLBACK.move : choices.headings;
|
|
25529
|
-
const out = { ...choices, feel, headings };
|
|
25530
|
-
if (proWord('cover', choices.between))
|
|
25531
|
-
out.between = PLAN_FALLBACK.cover;
|
|
25532
|
-
if (proWord('preloader', choices.preloader))
|
|
25533
|
-
out.preloader = PLAN_FALLBACK.preloader;
|
|
25534
|
-
if (proWord('scrub', choices.scrub))
|
|
25535
|
-
out.scrub = PLAN_FALLBACK.scrub;
|
|
25536
|
-
return out;
|
|
25752
|
+
function motionLanguageForPlan(choices, _pro) {
|
|
25753
|
+
return choices;
|
|
25537
25754
|
}
|
|
25538
25755
|
/** The reduced-motion floor (AW-D6): an entrance is a fade this long at most — gentler, never zero. */
|
|
25539
25756
|
const REDUCED_ENTRANCE_MAX_MS = L$2.reduced.enterMaxMs;
|
|
@@ -25622,8 +25839,6 @@ function planPreloader(input) {
|
|
|
25622
25839
|
return null;
|
|
25623
25840
|
if (!PRELOADER_LEVELS.includes(String(input.animate ?? '')))
|
|
25624
25841
|
return null;
|
|
25625
|
-
if (!input.pro && motionWordTier('preloader', kind) === MotionWordTier.Pro)
|
|
25626
|
-
return null;
|
|
25627
25842
|
return { kind: kind, exit: preloaderExitOf(input.presetId), capMs: PRELOADER_CAP_MS };
|
|
25628
25843
|
}
|
|
25629
25844
|
/** The look's exit (PL-D3): the preset's own, else a fade. */
|
|
@@ -26151,7 +26366,7 @@ function legacyFlavorTokens(pack, choices) {
|
|
|
26151
26366
|
delete row.values;
|
|
26152
26367
|
}
|
|
26153
26368
|
if (choices.seed && choices.seed.toLowerCase() !== pack.seed.toLowerCase()) {
|
|
26154
|
-
for (const accent of deriveAccentTokens(choices.seed, preTintAccentGrounds(pack.palette))) {
|
|
26369
|
+
for (const accent of deriveAccentTokens(choices.seed, preTintAccentGrounds(pack.palette), {}, { keepSeed: false })) {
|
|
26155
26370
|
const row = byName.get(accent.name);
|
|
26156
26371
|
if (!row)
|
|
26157
26372
|
continue;
|
|
@@ -26444,6 +26659,34 @@ function legacyDesignTokenRows(choices) {
|
|
|
26444
26659
|
const pack = flavorPackById(choices.flavorId);
|
|
26445
26660
|
return pack ? legacyFlavorTokens(pack, { ...choices, flavorId: pack.id }) : [];
|
|
26446
26661
|
}
|
|
26662
|
+
/** The accent rows colour v2 CV1 (CV-D1) changed: in light mode the accent is the seed itself now. */
|
|
26663
|
+
const KEPT_SEED_ROWS = ['accent', 'accent-ink', 'accent-hover'];
|
|
26664
|
+
/**
|
|
26665
|
+
* What a design wrote BEFORE colour v2 CV1 (guidance 8f61581, CV-D1): today's rows, but a seed ≠ the pack's own wore
|
|
26666
|
+
* brand-500 (L 0.62, a pastel with a black label) as its light accent, ink and hover. Those three do not depend on the
|
|
26667
|
+
* grounds, so only their light values differ; the dark values and every other row are today's. A studio whose rows a
|
|
26668
|
+
* machine wrote then is healed to the kept seed on the builder's load (`designTokenRepairs`) and by its next Apply
|
|
26669
|
+
* (`designBaseline`); a row the author edited is kept. Empty for an unknown pack.
|
|
26670
|
+
*/
|
|
26671
|
+
function preKeptSeedDesignTokenRows(choices) {
|
|
26672
|
+
const rows = designTokenRows(choices);
|
|
26673
|
+
const pack = flavorPackById(choices.flavorId);
|
|
26674
|
+
if (!pack || !choices.seed || choices.seed.toLowerCase() === pack.seed.toLowerCase())
|
|
26675
|
+
return rows;
|
|
26676
|
+
let old;
|
|
26677
|
+
try {
|
|
26678
|
+
old = deriveAccentTokens(choices.seed, { bg: [] }, {}, { keepSeed: false });
|
|
26679
|
+
}
|
|
26680
|
+
catch {
|
|
26681
|
+
return rows;
|
|
26682
|
+
}
|
|
26683
|
+
for (const row of rows) {
|
|
26684
|
+
const was = KEPT_SEED_ROWS.includes(row.name) ? old.find(t => t.name === row.name) : undefined;
|
|
26685
|
+
if (was)
|
|
26686
|
+
row.value = was.value.toUpperCase();
|
|
26687
|
+
}
|
|
26688
|
+
return rows;
|
|
26689
|
+
}
|
|
26447
26690
|
/** What the F1/F2 Swiss seeding wrote: the four Swiss rows + the brand set derived from its seed. */
|
|
26448
26691
|
function swissExpectations(seed) {
|
|
26449
26692
|
const rows = SWISS_FLAVOR.tokens.map(t => ({ name: t.name, value: t.value, values: t.values }));
|
|
@@ -26476,6 +26719,10 @@ function packDefaultsLookup() {
|
|
|
26476
26719
|
* - guidance `39135c7` (no underlines, Doron 2026-11-22): a link and a ghost (text) button draw no line — Linen's ghost
|
|
26477
26720
|
* button and every look's link were seeded `underline`, the current page's link a 2px accent line (vectoriox/iox-ui#118:
|
|
26478
26721
|
* idos and the store kept underlined text buttons from the stored row).
|
|
26722
|
+
* - vectoriox/iox-ui#173 (b), decided 2026-11-28 — no migration: the Glass bar stood on `surface-glass` (3.55:1 over a
|
|
26723
|
+
* light picture in dark mode; HI3 slice 1 moved it to `surface-glass-strong`), and the Glass tab bar on
|
|
26724
|
+
* `surface-glass-strong` (3.74–4.19:1; #174 gave it its own 92% ground). A Glass studio applied before either kept the
|
|
26725
|
+
* old ground (iox-test-fresh's J10 sites, 2026-11-28); the next Apply or builder load heals it.
|
|
26479
26726
|
* A spec pins every entry as no flavor's current value. Add one with every contract change of a seeded token's value.
|
|
26480
26727
|
*/
|
|
26481
26728
|
const SUPERSEDED_TOKEN_VALUES = {
|
|
@@ -26484,6 +26731,8 @@ const SUPERSEDED_TOKEN_VALUES = {
|
|
|
26484
26731
|
'button-ghost-decoration': ['underline'],
|
|
26485
26732
|
'link-decoration': ['underline'],
|
|
26486
26733
|
'link-current-decoration': ['underline 2px var(--iox-accent-text)'],
|
|
26734
|
+
'nav-bg': ['var(--iox-surface-glass)'],
|
|
26735
|
+
'tabbar-bg': ['var(--iox-surface-glass-strong)'],
|
|
26487
26736
|
};
|
|
26488
26737
|
const supersededOf = (name) => (SUPERSEDED_TOKEN_VALUES[name] ?? []).map(value => ({ value }));
|
|
26489
26738
|
const present = (list) => list.filter((e) => !!e);
|
|
@@ -26513,6 +26762,7 @@ function designBaseline(previous) {
|
|
|
26513
26762
|
const wrote = retired ? packDesignChoices(previous.choices.flavorId) : previous.choices;
|
|
26514
26763
|
const current = expectations(designTokenRows(wrote));
|
|
26515
26764
|
const beforeTint = expectations(legacyDesignTokenRows(wrote));
|
|
26765
|
+
const beforeKeptSeed = expectations(preKeptSeedDesignTokenRows(wrote));
|
|
26516
26766
|
const swiss = swissExpectations(retired ? previous.storedSeed : null);
|
|
26517
26767
|
const packDefaults = packDefaultsLookup();
|
|
26518
26768
|
return (row) => {
|
|
@@ -26520,7 +26770,7 @@ function designBaseline(previous) {
|
|
|
26520
26770
|
if (stampedBy === SWISS_FLAVOR.id)
|
|
26521
26771
|
return swiss.get(row.name);
|
|
26522
26772
|
const ownDefaults = stampedBy ? packDefaults(stampedBy).map(m => m.get(row.name)) : [];
|
|
26523
|
-
const expected = [current.get(row.name), beforeTint.get(row.name), ...ownDefaults];
|
|
26773
|
+
const expected = [current.get(row.name), beforeTint.get(row.name), beforeKeptSeed.get(row.name), ...ownDefaults];
|
|
26524
26774
|
return present([...expected, ...expected.map(e => beforeScriptPartners(row.name, e)), ...(stampedBy ? supersededOf(row.name) : [])]);
|
|
26525
26775
|
};
|
|
26526
26776
|
}
|
|
@@ -26624,6 +26874,7 @@ function designTokenRepairs(existing, choices) {
|
|
|
26624
26874
|
const stamp = flavorSourceStamp(pack.id);
|
|
26625
26875
|
const desired = new Map(designTokenRows(choices).map(r => [r.name, r]));
|
|
26626
26876
|
const beforeTint = expectations(legacyDesignTokenRows(choices));
|
|
26877
|
+
const beforeKeptSeed = expectations(preKeptSeedDesignTokenRows(choices));
|
|
26627
26878
|
const packDefaults = packDefaultsLookup();
|
|
26628
26879
|
const out = [];
|
|
26629
26880
|
for (const row of existing ?? []) {
|
|
@@ -26636,7 +26887,7 @@ function designTokenRepairs(existing, choices) {
|
|
|
26636
26887
|
const darkOnly = row.source === stamp && row.value === want.value;
|
|
26637
26888
|
const machineWrote = present([
|
|
26638
26889
|
...(stampedBy ? packDefaults(stampedBy).map(m => m.get(row.name)) : []),
|
|
26639
|
-
...(stampedBy === pack.id ? [beforeTint.get(row.name), beforeScriptPartners(row.name, want), beforeScriptPartners(row.name, beforeTint.get(row.name))] : []),
|
|
26890
|
+
...(stampedBy === pack.id ? [beforeTint.get(row.name), beforeKeptSeed.get(row.name), beforeScriptPartners(row.name, want), beforeScriptPartners(row.name, beforeTint.get(row.name))] : []),
|
|
26640
26891
|
...(stampedBy ? supersededOf(row.name) : []),
|
|
26641
26892
|
]);
|
|
26642
26893
|
if (!darkOnly && !untouchedSeedRow(row, machineWrote))
|
|
@@ -26876,5 +27127,5 @@ function closeWord(lang) {
|
|
|
26876
27127
|
* Generated bundle index. Do not edit.
|
|
26877
27128
|
*/
|
|
26878
27129
|
|
|
26879
|
-
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_MENU_OPEN_ATTRIBUTE, 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, ROUTE_PARAM_PREFIX, 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, fillRouteParams, 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, routeHasParams, routeParamValues, 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 };
|
|
27130
|
+
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BACKDROP_FUNCTIONS, BAND_SURFACE_INK_TINT, 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, FloatingInkScope, 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_INK_SCOPE, HEADER_MENU_OPEN_ATTRIBUTE, HEADER_OPEN_MENU_SELECTOR, HEADER_SCROLLED_ATTRIBUTE, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderBrand, HeaderEdge, HeaderGround, HeaderInk, HeaderShape, HeaderTrait, INHERITED_TEXT, KEPT_HOVER_DL, KEPT_HOVER_DL_MAX, 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, MenuShows, 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, ROUTE_PARAM_PREFIX, 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, fillRouteParams, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, floatingGroundFindings, floatingInkValue, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, footerMixClasses, footerMixWordsOf, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, graphemes, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerBrandOf, headerEdgeOf, headerFirm, headerGivesBack, headerGroundIsGlass, headerGroundIsOver, headerGroundOf, headerInkOf, headerShapeFloats, headerShapeOf, headerStaysAtTop, headingHref, inSrgbGamut, inkOnGround, isArriveId, isCaselessLocale, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isFooterMixClass, isListMixClass, isMoveId, isPreloaderKind, isRetiredFlavorId, isScrubId, isSectionDesignClass, keptAccent, languageOf, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, listMixClasses, listMixWordsOf, localeDirection, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, menuShowsOf, 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, preKeptSeedDesignTokenRows, 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, routeHasParams, routeParamValues, sameDesignChoices, schemeOfClasses, schemeOfGround, 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 };
|
|
26880
27131
|
//# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map
|