@vectoriox/iox-ui 5.168.0 → 5.170.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/commerce-core/index.d.ts +32 -3
- package/design-core/index.d.ts +91 -5
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs +52 -1
- package/fesm2022/vectoriox-iox-ui-commerce-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +147 -15
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +76 -11
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +30 -5
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +34 -4
- package/index.d.ts +4 -0
- package/package.json +1 -1
- package/src/commerce-core/shop-display.ts +35 -1
- package/src/commerce-core/variants.ts +25 -0
- package/src/design-core/flavor-spec.generated.ts +24 -0
- package/src/design-core/font-metrics.ts +28 -8
- package/src/design-core/footer-classes.ts +14 -3
- package/src/design-core/header-behaviour.ts +87 -5
- package/src/generation-core/compose-site.ts +3 -0
- package/src/generation-core/contact-facts.ts +61 -0
- package/src/generation-core/footer-mix.ts +16 -8
- package/src/generation-core/layout-language.ts +6 -2
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/site-build-run.ts +12 -0
- package/styles/iox-design.css +53 -8
|
@@ -3990,6 +3990,30 @@ const SPEC_FONT_METRICS = {
|
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
3992
|
},
|
|
3993
|
+
"display": {
|
|
3994
|
+
"Bricolage Grotesque": {
|
|
3995
|
+
"opsz": 96,
|
|
3996
|
+
"weights": {
|
|
3997
|
+
"500": {
|
|
3998
|
+
"latin": "211,220,274,584,563,913,677,149,267,271,391,486,150,300,178,330,594,264,534,556,572,551,591,471,599,592,182,179,486,486,486,398,878,621,588,625,614,531,507,645,625,209,306,594,450,784,664,657,566,656,591,573,504,620,606,897,579,556,534,276,329,276,516,588,283,514,552,524,554,526,340,546,534,197,203,504,197,830,534,560,551,552,359,497,339,532,515,775,502,522,454,323,193,331,486,152,152,288,288,475,738,616,178,486,671,685,621,621,621,621,621,621,846,625,531,531,531,531,209,209,209,209,664,657,657,657,657,657,662,620,620,620,620,556,608,514,514,514,514,514,514,827,524,526,526,526,526,206,197,197,197,534,560,560,560,560,560,560,532,532,532,532,522,522,941,916,573,497,534,454"
|
|
3999
|
+
},
|
|
4000
|
+
"700": {
|
|
4001
|
+
"latin": "206,252,318,603,571,936,690,165,291,292,435,486,179,309,223,342,594,294,545,562,595,560,592,489,605,599,227,216,486,486,486,397,916,646,601,629,618,537,509,648,633,231,317,613,457,809,684,660,579,658,607,581,512,625,623,909,608,582,545,289,342,289,525,547,283,533,568,534,568,533,364,548,553,222,230,529,222,850,553,564,566,566,386,510,358,548,525,791,529,533,473,322,210,324,486,179,179,351,351,491,762,710,223,486,677,686,646,646,646,646,646,646,857,629,537,537,537,537,231,231,231,231,684,660,660,660,660,660,667,625,625,625,625,582,628,533,533,533,533,533,533,848,534,533,533,533,533,237,222,222,222,553,564,564,564,564,564,564,548,548,548,548,533,533,942,924,581,510,545,473"
|
|
4002
|
+
}
|
|
4003
|
+
}
|
|
4004
|
+
},
|
|
4005
|
+
"Fraunces": {
|
|
4006
|
+
"opsz": 144,
|
|
4007
|
+
"weights": {
|
|
4008
|
+
"400": {
|
|
4009
|
+
"latin": "165,211,252,549,509,586,868,128,303,301,573,455,175,237,173,330,590,354,530,491,541,511,546,458,518,550,161,170,432,455,432,470,739,601,616,630,697,574,521,683,729,313,359,668,536,789,668,728,596,736,633,553,596,654,590,887,624,593,555,288,317,288,298,334,209,432,483,403,488,417,258,468,497,221,221,480,225,772,498,484,501,483,361,376,280,497,428,659,436,442,392,329,222,329,482,152,140,284,284,452,701,563,223,401,612,533,601,601,601,601,601,601,872,630,574,574,574,574,313,313,313,313,668,728,728,728,728,728,728,654,654,654,654,593,554,432,432,432,432,432,432,675,403,417,417,417,417,221,221,221,221,498,484,484,484,484,484,484,497,497,497,497,442,442,922,756,553,376,555,392"
|
|
4010
|
+
},
|
|
4011
|
+
"600": {
|
|
4012
|
+
"latin": "160,243,299,571,529,602,898,153,314,311,565,455,205,242,201,325,613,372,556,515,568,531,569,482,541,574,193,205,432,455,432,508,742,625,647,640,717,594,540,692,754,340,389,697,557,813,673,734,626,746,666,566,622,662,605,920,643,610,568,312,317,312,298,355,233,455,505,420,508,437,278,491,518,240,240,509,246,797,519,497,519,505,390,391,301,519,441,686,456,461,414,351,222,351,482,180,161,338,338,459,711,664,251,401,632,557,625,625,625,625,625,625,898,640,594,594,594,594,340,340,340,340,673,734,734,734,734,734,734,662,662,662,662,610,589,455,455,455,455,455,455,694,420,437,437,437,437,240,240,240,240,519,497,497,497,497,497,497,519,519,519,519,461,461,946,768,566,391,568,414"
|
|
4013
|
+
}
|
|
4014
|
+
}
|
|
4015
|
+
}
|
|
4016
|
+
},
|
|
3993
4017
|
"fallback": {
|
|
3994
4018
|
"latin": "612,612,612,1392,857,1297,1220,612,612,612,666,780,612,612,612,698,1066,667,1003,1055,1094,1015,1133,1153,1081,1158,612,612,679,840,679,864,1498,1160,1140,1316,1302,1140,1128,1340,1280,612,1004,1215,943,1580,1300,1330,1177,1330,1232,1056,1100,1289,1160,1882,1140,1070,1200,612,802,612,709,980,722,1063,1098,994,1098,994,674,969,1008,612,612,942,612,1654,998,1016,1063,1098,612,842,628,998,918,1462,980,930,896,623,612,623,716,612,612,612,612,708,1100,1042,612,711,1406,1087,1160,1160,1160,1160,1160,1160,1681,1316,1140,1140,1140,1140,612,612,612,612,1300,1330,1330,1330,1330,1330,1330,1289,1289,1289,1289,1070,1138,1063,1063,1063,1063,1063,1063,1915,994,994,994,994,994,612,612,612,612,998,1016,1016,1016,1016,1016,1016,998,998,998,998,930,930,1962,1696,1056,842,1200,896",
|
|
3995
4019
|
"hebrew": "681,641,498,587,660,333,424,683,696,352,565,572,550,690,698,330,455,664,653,648,671,588,622,680,593,881,730,450,306,568"
|
|
@@ -21722,11 +21746,17 @@ function isListMixClass(c) {
|
|
|
21722
21746
|
* `iox-footer-arrange-ruled`, `iox-footer-namestyle-gradient` — that the shared iox-design.css draws (the ruled cells'
|
|
21723
21747
|
* hairlines, the name's cut and style, the large links' arrow). The same decision in all three render paths
|
|
21724
21748
|
* (`nodeDesignClasses`), so the canvas, both engine paths and the raw SSR agree. Pure.
|
|
21749
|
+
*
|
|
21750
|
+
* A footer whose OWN Text Direction is right-to-left also renders `iox-footer-mirrored` (the gradient name runs from the
|
|
21751
|
+
* reading start) — decided from the node as AW6's seams and AW11's lists are (`nodeIsRtl`), never by `:dir(rtl)`, which
|
|
21752
|
+
* the builder canvas answers with the ADMIN's direction.
|
|
21725
21753
|
*/
|
|
21726
21754
|
/** The prop (a Section's trait) the mix is stored under — generation-core `FOOTER_MIX_PROP`. */
|
|
21727
21755
|
const FOOTER_MIX_PROP = 'footerMix';
|
|
21728
21756
|
/** Every class a mix writes starts with this — what a live re-sync removes. */
|
|
21729
21757
|
const FOOTER_CLASS_PREFIX = 'iox-footer-';
|
|
21758
|
+
/** Beside a mix's classes on a right-to-left footer: what runs along the reading direction turns the other way. */
|
|
21759
|
+
const FOOTER_MIRRORED_CLASS = 'iox-footer-mirrored';
|
|
21730
21760
|
const WORD = /^[a-zA-Z]+:[a-z0-9-]+$/;
|
|
21731
21761
|
/** The stored mix's words (`arrange:ruled`), from `props` (saved) or the trait (builder); [] for none. */
|
|
21732
21762
|
function footerMixWordsOf(node) {
|
|
@@ -21736,9 +21766,13 @@ function footerMixWordsOf(node) {
|
|
|
21736
21766
|
const words = Array.isArray(raw) ? raw : typeof raw === 'string' ? raw.split(/\s+/) : [];
|
|
21737
21767
|
return words.filter((w) => typeof w === 'string' && WORD.test(w));
|
|
21738
21768
|
}
|
|
21739
|
-
/** The marker classes a footer root renders (`iox-footer-arrange-ruled iox-footer-namestyle-gradient
|
|
21769
|
+
/** The marker classes a footer root renders (`iox-footer-arrange-ruled iox-footer-namestyle-gradient`, +
|
|
21770
|
+
* `iox-footer-mirrored` on a right-to-left footer), or '' for a root with no mix. */
|
|
21740
21771
|
function footerMixClasses(node) {
|
|
21741
|
-
|
|
21772
|
+
const words = [...new Set(footerMixWordsOf(node))];
|
|
21773
|
+
if (!words.length)
|
|
21774
|
+
return '';
|
|
21775
|
+
return [...words.map(w => `${FOOTER_CLASS_PREFIX}${w.replace(':', '-').toLowerCase()}`), ...(nodeIsRtl(node) ? [FOOTER_MIRRORED_CLASS] : [])].join(' ');
|
|
21742
21776
|
}
|
|
21743
21777
|
/** True for a class this module writes. */
|
|
21744
21778
|
function isFooterMixClass(c) {
|
|
@@ -22753,14 +22787,83 @@ const BRAND_STEPS = [
|
|
|
22753
22787
|
{ length: BrandNameLength.Longer, name: BRAND_NAME_LONGER_AT, word: BRAND_WORD_LONGER_AT },
|
|
22754
22788
|
{ length: BrandNameLength.Long, name: BRAND_NAME_LONG_AT, word: BRAND_WORD_LONG_AT },
|
|
22755
22789
|
];
|
|
22756
|
-
/**
|
|
22757
|
-
*
|
|
22758
|
-
|
|
22790
|
+
/**
|
|
22791
|
+
* vectoriox/iox-ui#143: the steps for a CROWDED bar — three controls or more beside the name on a phone (a store's
|
|
22792
|
+
* account and bag beside the menu). Measured on a 390 store header (Fraunces, 4 × 16px gaps, 32px insets): the name kept
|
|
22793
|
+
* 77px, and "Homeware" (8 letters, 110px at the lead size) broke inside the word. A crowded bar packs its controls
|
|
22794
|
+
* (`BAR_ATTRIBUTE`, the shared CSS), which leaves the name ~105px at 360; at ~0.6em a letter that holds a 6-letter word at
|
|
22795
|
+
* the name's own size, 7 at `size-lead`, 10 at `size-body` — and, at ~0.55em a character, two lines of 13 / 16 / 22.
|
|
22796
|
+
*/
|
|
22797
|
+
const BRAND_CROWDED_NAME_LONG_AT = 13;
|
|
22798
|
+
const BRAND_CROWDED_NAME_LONGER_AT = 17;
|
|
22799
|
+
const BRAND_CROWDED_NAME_LONGEST_AT = 23;
|
|
22800
|
+
const BRAND_CROWDED_WORD_LONG_AT = 7;
|
|
22801
|
+
const BRAND_CROWDED_WORD_LONGER_AT = 8;
|
|
22802
|
+
const BRAND_CROWDED_WORD_LONGEST_AT = 11;
|
|
22803
|
+
const BRAND_CROWDED_STEPS = [
|
|
22804
|
+
{ length: BrandNameLength.Longest, name: BRAND_CROWDED_NAME_LONGEST_AT, word: BRAND_CROWDED_WORD_LONGEST_AT },
|
|
22805
|
+
{ length: BrandNameLength.Longer, name: BRAND_CROWDED_NAME_LONGER_AT, word: BRAND_CROWDED_WORD_LONGER_AT },
|
|
22806
|
+
{ length: BrandNameLength.Long, name: BRAND_CROWDED_NAME_LONG_AT, word: BRAND_CROWDED_WORD_LONG_AT },
|
|
22807
|
+
];
|
|
22808
|
+
/** The step a name takes: by its length and by its longest word, whichever asks for the smaller type; null = its size. */
|
|
22809
|
+
function brandNameLength(words, crowded = false) {
|
|
22759
22810
|
const text = words.replace(/<[^>]+>/g, '').replace(/\s+/g, ' ').trim();
|
|
22760
22811
|
const n = [...text].length;
|
|
22761
22812
|
const word = Math.max(0, ...text.split(' ').map(w => [...w].length));
|
|
22762
|
-
|
|
22763
|
-
|
|
22813
|
+
return (crowded ? BRAND_CROWDED_STEPS : BRAND_STEPS).find(s => n >= s.name || word >= s.word)?.length ?? null;
|
|
22814
|
+
}
|
|
22815
|
+
/** The name's attributes: `{}` for a name that keeps its size. Never shortens the words — the type steps down, by the
|
|
22816
|
+
* name's length and by its longest word, whichever asks for the smaller step. */
|
|
22817
|
+
function brandNameAttributes(words) {
|
|
22818
|
+
const step = brandNameLength(words);
|
|
22819
|
+
return step ? { [BRAND_NAME_ATTRIBUTE]: step } : {};
|
|
22820
|
+
}
|
|
22821
|
+
// ── A crowded bar (vectoriox/iox-ui#143) ───────────────────────────────────────────────────────────────────────────
|
|
22822
|
+
/** The navigation root's role (generation-core `NavRole.Root`). */
|
|
22823
|
+
const NAV_ROLE = 'nav';
|
|
22824
|
+
/** Written on the navigation root when its phone bar is crowded: the shared CSS packs the controls. */
|
|
22825
|
+
const BAR_ATTRIBUTE = 'data-iox-bar';
|
|
22826
|
+
/** Written beside it: the step the name takes in that bar (never smaller type than the name's own step asks). */
|
|
22827
|
+
const BAR_NAME_ATTRIBUTE = 'data-iox-bar-name';
|
|
22828
|
+
var BarRoom;
|
|
22829
|
+
(function (BarRoom) {
|
|
22830
|
+
BarRoom["Crowded"] = "crowded";
|
|
22831
|
+
})(BarRoom || (BarRoom = {}));
|
|
22832
|
+
/** From this many controls beside the name on a phone, the bar is crowded. */
|
|
22833
|
+
const BAR_CROWDED_AT = 3;
|
|
22834
|
+
/** The parts that stay in the bar beside the name on a phone (generation-core `phoneHiddenParts` keeps the menu button, a
|
|
22835
|
+
* store's bag and account; HI1 keeps a menu-at-every-width header's pinned pages and actions). Spelled here: design-core
|
|
22836
|
+
* reads neither generation-core nor composite-core. */
|
|
22837
|
+
const PHONE_BAR_CONTROL_ROLES = ['nav.menu-button', 'shop.cart-button', 'account', 'nav.pinned', 'nav.actions'];
|
|
22838
|
+
/** What never counts: the drawer (a Dialog) and everything in it. */
|
|
22839
|
+
const BAR_SKIPPED_TYPES = ['Dialog'];
|
|
22840
|
+
/** The phone layers that may hide a part (responsive-breakpoints plan: `mobile` ≤ 767, `small` ≤ 479). */
|
|
22841
|
+
const PHONE_LAYERS = ['mobile', 'small'];
|
|
22842
|
+
const hiddenOnPhone = (node) => node.styleProps?.['display'] === 'none' || PHONE_LAYERS.some(bp => node.responsive?.[bp]?.styleProps?.['display'] === 'none');
|
|
22843
|
+
/** How many controls sit beside the name in the navigation's phone bar. */
|
|
22844
|
+
function phoneBarControls(nav) {
|
|
22845
|
+
let n = 0;
|
|
22846
|
+
const walk = (node) => {
|
|
22847
|
+
for (const child of (node.children ?? [])) {
|
|
22848
|
+
if (!child || (child.type && BAR_SKIPPED_TYPES.includes(child.type)) || hiddenOnPhone(child))
|
|
22849
|
+
continue;
|
|
22850
|
+
if (child.role && PHONE_BAR_CONTROL_ROLES.includes(child.role)) {
|
|
22851
|
+
n++;
|
|
22852
|
+
continue;
|
|
22853
|
+
}
|
|
22854
|
+
walk(child);
|
|
22855
|
+
}
|
|
22856
|
+
};
|
|
22857
|
+
if (nav)
|
|
22858
|
+
walk(nav);
|
|
22859
|
+
return n;
|
|
22860
|
+
}
|
|
22861
|
+
/** The navigation root's attributes: `{}` for a bar that is not crowded; else `crowded` and the name's crowded step. */
|
|
22862
|
+
function navBarAttributes(nav, brandWords) {
|
|
22863
|
+
if (phoneBarControls(nav) < BAR_CROWDED_AT)
|
|
22864
|
+
return {};
|
|
22865
|
+
const step = brandNameLength(brandWords, true);
|
|
22866
|
+
return { [BAR_ATTRIBUTE]: BarRoom.Crowded, ...(step ? { [BAR_NAME_ATTRIBUTE]: step } : {}) };
|
|
22764
22867
|
}
|
|
22765
22868
|
|
|
22766
22869
|
/**
|
|
@@ -26047,6 +26150,26 @@ function planFontFamilyRemoval(existing, previous, family) {
|
|
|
26047
26150
|
return { roles, choices, plan, fallbacks };
|
|
26048
26151
|
}
|
|
26049
26152
|
|
|
26153
|
+
/**
|
|
26154
|
+
* How wide words are in a face, from the catalog fonts' own letters (iox-ui#46). The contract's `fontMetrics` holds each
|
|
26155
|
+
* letter's advance in every catalog family and weight, measured from the files a page links (iox-ai-guidance
|
|
26156
|
+
* measure-fonts.mjs). A letter is read the way a browser draws it: the first family in the stack that draws it, at the
|
|
26157
|
+
* weight CSS font matching picks. A family the catalog does not hold (an uploaded font, system-ui) reads each letter at
|
|
26158
|
+
* the widest any catalog face draws it — never narrower than what the page could wear. No kerning: a display face's
|
|
26159
|
+
* kerning closes letters up, so the sum is the wider answer. Pure and deterministic: the composer and the check agree.
|
|
26160
|
+
*
|
|
26161
|
+
* R-H-AW12-5: a family with an optical-size axis draws narrower at large sizes (the browser sets `opsz` from the font
|
|
26162
|
+
* size), so the contract also measures it at its largest optical size (`fontMetrics.display`). A word sized from those
|
|
26163
|
+
* widths ({@link OpticalSize.Display}) must wear that optical size — iox-design.css pins it on the footer's closing name.
|
|
26164
|
+
*/
|
|
26165
|
+
/** Which optical size a word is measured at. */
|
|
26166
|
+
var OpticalSize;
|
|
26167
|
+
(function (OpticalSize) {
|
|
26168
|
+
/** The instance Google serves by default (its smallest text size — the wider answer). */
|
|
26169
|
+
OpticalSize["Text"] = "text";
|
|
26170
|
+
/** The axis's largest optical size: what a word pinned to `font-variation-settings: 'opsz' <max>` wears. */
|
|
26171
|
+
OpticalSize["Display"] = "display";
|
|
26172
|
+
})(OpticalSize || (OpticalSize = {}));
|
|
26050
26173
|
var Script;
|
|
26051
26174
|
(function (Script) {
|
|
26052
26175
|
Script["Latin"] = "latin";
|
|
@@ -26060,6 +26183,7 @@ const ALPHABETS = {
|
|
|
26060
26183
|
[Script.Hebrew]: Array.from(SPEC_FONT_METRICS.alphabets.hebrew),
|
|
26061
26184
|
};
|
|
26062
26185
|
const FAMILIES = SPEC_FONT_METRICS.families;
|
|
26186
|
+
const DISPLAY = SPEC_FONT_METRICS.display;
|
|
26063
26187
|
const parsed = new Map();
|
|
26064
26188
|
function rowOf(key, csv) {
|
|
26065
26189
|
let row = parsed.get(key);
|
|
@@ -26072,21 +26196,29 @@ const FALLBACK = {
|
|
|
26072
26196
|
[Script.Latin]: rowOf('fallback:latin', SPEC_FONT_METRICS.fallback.latin),
|
|
26073
26197
|
[Script.Hebrew]: rowOf('fallback:hebrew', SPEC_FONT_METRICS.fallback.hebrew),
|
|
26074
26198
|
};
|
|
26075
|
-
/**
|
|
26076
|
-
|
|
26199
|
+
/**
|
|
26200
|
+
* A measured family's row for a script at the weight CSS would pick, or null when that family does not draw it. At the
|
|
26201
|
+
* display optical size a family with an optical-size axis reads its display widths; any other family has one size.
|
|
26202
|
+
*/
|
|
26203
|
+
function familyRow(family, weight, script, optical) {
|
|
26077
26204
|
const weights = FAMILIES[family];
|
|
26078
26205
|
const face = matchFontWeight(Object.keys(weights).map(w => ({ weight: Number(w) })), weight);
|
|
26079
|
-
|
|
26206
|
+
if (!face)
|
|
26207
|
+
return null;
|
|
26208
|
+
const display = optical === OpticalSize.Display ? DISPLAY[family]?.weights[String(face.weight)]?.[script] : undefined;
|
|
26209
|
+
if (display)
|
|
26210
|
+
return rowOf(`${family}:${face.weight}:${script}:display`, display);
|
|
26211
|
+
const csv = weights[String(face.weight)]?.[script];
|
|
26080
26212
|
return csv ? rowOf(`${family}:${face.weight}:${script}`, csv) : null;
|
|
26081
26213
|
}
|
|
26082
26214
|
/** One letter's advance in thousandths of an em, as the stack draws it. */
|
|
26083
|
-
function advanceOf(ch, families, weight) {
|
|
26215
|
+
function advanceOf(ch, families, weight, optical) {
|
|
26084
26216
|
const script = HEBREW.test(ch) ? Script.Hebrew : Script.Latin;
|
|
26085
26217
|
const at = ALPHABETS[script].indexOf(ch);
|
|
26086
26218
|
for (const family of families) {
|
|
26087
26219
|
if (!FAMILIES[family])
|
|
26088
26220
|
break;
|
|
26089
|
-
const row = familyRow(family, weight, script);
|
|
26221
|
+
const row = familyRow(family, weight, script, optical);
|
|
26090
26222
|
if (!row)
|
|
26091
26223
|
continue;
|
|
26092
26224
|
if (at < 0)
|
|
@@ -26098,13 +26230,13 @@ function advanceOf(ch, families, weight) {
|
|
|
26098
26230
|
return at >= 0 && row[at] >= 0 ? row[at] : widest(row);
|
|
26099
26231
|
}
|
|
26100
26232
|
/** How wide `text` stands in `face`, in em, on one line: every letter's advance plus the letter spacing after each. */
|
|
26101
|
-
function textWidthEm(text, face) {
|
|
26233
|
+
function textWidthEm(text, face, optical = OpticalSize.Text) {
|
|
26102
26234
|
const families = parseFontFamilies(face.stack);
|
|
26103
26235
|
let width = 0;
|
|
26104
26236
|
for (const ch of Array.from(String(text ?? ''))) {
|
|
26105
26237
|
if (MARK.test(ch))
|
|
26106
26238
|
continue;
|
|
26107
|
-
width += advanceOf(ch, families, face.weight) / PER_EM + face.tracking;
|
|
26239
|
+
width += advanceOf(ch, families, face.weight, optical) / PER_EM + face.tracking;
|
|
26108
26240
|
}
|
|
26109
26241
|
return Math.max(0, width);
|
|
26110
26242
|
}
|
|
@@ -26165,5 +26297,5 @@ function designPreloaderOf(config) {
|
|
|
26165
26297
|
* Generated bundle index. Do not edit.
|
|
26166
26298
|
*/
|
|
26167
26299
|
|
|
26168
|
-
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BACKDROP_FUNCTIONS, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, 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, 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_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, NEW_COLUMN, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, PRELOADER_CAP_MS, PRELOADER_ENTER_EASE, PRELOADER_EXIT_EASE, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRELOADER_MIN_SHOW_MS, PRE_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, 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, nodeDesignClasses, nodeIsRtl, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageColumn, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planPreloader, planSectionShape, planSwissMigration, popAllowed, preTintAccentGrounds, preloaderExitMotion, preloaderExitOf, preloaderGraphemes, preloaderLeaveAt, preloaderOfChoices, preloaderPercent, preloaderWords, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, schemeOfClasses, schemeUnderBar, scriptsForLocale, scrubOfChoices, sectionDesignClasses, sectionEdgeClass, sectionEdgeOf, sectionIsRtl, sectionShapeOf, setColorScheme, setSectionEdge, setSectionShape, 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 };
|
|
26300
|
+
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 };
|
|
26169
26301
|
//# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map
|