@vectoriox/iox-ui 5.43.0 → 5.44.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/design-core/index.d.ts +198 -3
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +237 -3
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +7 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +177 -52
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +3 -0
- package/index.d.ts +111 -23
- package/package.json +1 -1
- package/src/design-core/design-settings.ts +32 -3
- package/src/design-core/design-token.model.ts +23 -0
- package/src/design-core/flavor-spec.generated.ts +202 -0
- package/src/design-core/flavor-tokens.ts +2 -1
- package/src/generation-core/site-spec.generated.ts +4 -1
- package/src/generation-core/validate-site-plan.ts +3 -0
package/design-core/index.d.ts
CHANGED
|
@@ -1173,6 +1173,170 @@ declare const SPEC_AXES: {
|
|
|
1173
1173
|
};
|
|
1174
1174
|
};
|
|
1175
1175
|
};
|
|
1176
|
+
readonly scrolls: {
|
|
1177
|
+
readonly normal: {
|
|
1178
|
+
readonly label: "Normal";
|
|
1179
|
+
readonly he: "רגילה";
|
|
1180
|
+
readonly hint: "The browser's own scrolling.";
|
|
1181
|
+
readonly lenis: null;
|
|
1182
|
+
};
|
|
1183
|
+
readonly smooth: {
|
|
1184
|
+
readonly label: "Smooth";
|
|
1185
|
+
readonly he: "חלקה";
|
|
1186
|
+
readonly hint: "A short glide after each wheel turn — what every IOX site does today.";
|
|
1187
|
+
readonly lenis: {
|
|
1188
|
+
readonly duration: 1.2;
|
|
1189
|
+
readonly easing: "expo-out";
|
|
1190
|
+
readonly wheelMultiplier: 1;
|
|
1191
|
+
readonly syncTouch: false;
|
|
1192
|
+
};
|
|
1193
|
+
};
|
|
1194
|
+
readonly extra: {
|
|
1195
|
+
readonly label: "Extra smooth";
|
|
1196
|
+
readonly he: "חלקה מאוד";
|
|
1197
|
+
readonly hint: "A longer, softer glide; each wheel turn moves a little less.";
|
|
1198
|
+
readonly lenis: {
|
|
1199
|
+
readonly duration: 1.8;
|
|
1200
|
+
readonly easing: "expo-out";
|
|
1201
|
+
readonly wheelMultiplier: 0.9;
|
|
1202
|
+
readonly syncTouch: false;
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
};
|
|
1206
|
+
readonly animations: {
|
|
1207
|
+
readonly still: {
|
|
1208
|
+
readonly label: "Still";
|
|
1209
|
+
readonly he: "ללא";
|
|
1210
|
+
readonly hint: "Nothing moves in as you scroll. Buttons and cards still respond to the pointer (Speed).";
|
|
1211
|
+
readonly parts: {};
|
|
1212
|
+
};
|
|
1213
|
+
readonly subtle: {
|
|
1214
|
+
readonly label: "Subtle";
|
|
1215
|
+
readonly he: "עדינה";
|
|
1216
|
+
readonly hint: "Each section's content fades in once, together.";
|
|
1217
|
+
readonly parts: {
|
|
1218
|
+
readonly content: {
|
|
1219
|
+
readonly type: "fadeIn";
|
|
1220
|
+
readonly duration: 500;
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
};
|
|
1224
|
+
readonly standard: {
|
|
1225
|
+
readonly label: "Standard";
|
|
1226
|
+
readonly he: "רגילה";
|
|
1227
|
+
readonly hint: "Headings rise in; cards, prices and steps follow one after another.";
|
|
1228
|
+
readonly parts: {
|
|
1229
|
+
readonly heading: {
|
|
1230
|
+
readonly type: "moveUp";
|
|
1231
|
+
readonly distance: 16;
|
|
1232
|
+
readonly duration: 500;
|
|
1233
|
+
};
|
|
1234
|
+
readonly items: {
|
|
1235
|
+
readonly type: "moveUp";
|
|
1236
|
+
readonly distance: 16;
|
|
1237
|
+
readonly duration: 450;
|
|
1238
|
+
readonly stagger: 80;
|
|
1239
|
+
readonly cap: 6;
|
|
1240
|
+
};
|
|
1241
|
+
readonly media: {
|
|
1242
|
+
readonly type: "fadeIn";
|
|
1243
|
+
readonly duration: 600;
|
|
1244
|
+
};
|
|
1245
|
+
};
|
|
1246
|
+
};
|
|
1247
|
+
readonly lively: {
|
|
1248
|
+
readonly label: "Lively";
|
|
1249
|
+
readonly he: "תוססת";
|
|
1250
|
+
readonly hint: "Bigger, longer entrances; side-by-side rows slide in from their side; the hero's words fade in.";
|
|
1251
|
+
readonly parts: {
|
|
1252
|
+
readonly heroText: {
|
|
1253
|
+
readonly type: "fadeIn";
|
|
1254
|
+
readonly duration: 400;
|
|
1255
|
+
};
|
|
1256
|
+
readonly heading: {
|
|
1257
|
+
readonly type: "moveUp";
|
|
1258
|
+
readonly distance: 24;
|
|
1259
|
+
readonly duration: 600;
|
|
1260
|
+
};
|
|
1261
|
+
readonly items: {
|
|
1262
|
+
readonly type: "moveUp";
|
|
1263
|
+
readonly distance: 24;
|
|
1264
|
+
readonly duration: 600;
|
|
1265
|
+
readonly stagger: 100;
|
|
1266
|
+
readonly cap: 8;
|
|
1267
|
+
};
|
|
1268
|
+
readonly media: {
|
|
1269
|
+
readonly type: "fadeIn";
|
|
1270
|
+
readonly duration: 700;
|
|
1271
|
+
};
|
|
1272
|
+
readonly rowMedia: {
|
|
1273
|
+
readonly type: "moveLeft";
|
|
1274
|
+
readonly mirror: "moveRight";
|
|
1275
|
+
readonly distance: 24;
|
|
1276
|
+
readonly duration: 600;
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1279
|
+
};
|
|
1280
|
+
};
|
|
1281
|
+
readonly animationFamilies: {
|
|
1282
|
+
readonly nav: readonly [];
|
|
1283
|
+
readonly footer: readonly [];
|
|
1284
|
+
readonly hero: readonly ["heroText"];
|
|
1285
|
+
readonly header: readonly ["heading"];
|
|
1286
|
+
readonly detail: readonly ["heading", "media"];
|
|
1287
|
+
readonly proof: readonly ["content", "heading", "items"];
|
|
1288
|
+
readonly feature: readonly ["content", "heading", "items", "media", "rowMedia"];
|
|
1289
|
+
readonly collection: readonly ["content", "heading", "items"];
|
|
1290
|
+
readonly story: readonly ["content", "heading", "media"];
|
|
1291
|
+
readonly cta: readonly ["content", "heading"];
|
|
1292
|
+
readonly contact: readonly ["content", "heading"];
|
|
1293
|
+
readonly faq: readonly ["content", "heading"];
|
|
1294
|
+
readonly pricing: readonly ["content", "heading", "items"];
|
|
1295
|
+
};
|
|
1296
|
+
readonly betweens: {
|
|
1297
|
+
readonly none: {
|
|
1298
|
+
readonly label: "None";
|
|
1299
|
+
readonly he: "ללא";
|
|
1300
|
+
readonly hint: "The next page simply appears.";
|
|
1301
|
+
readonly transition: "none";
|
|
1302
|
+
};
|
|
1303
|
+
readonly fade: {
|
|
1304
|
+
readonly label: "Fade";
|
|
1305
|
+
readonly he: "דהייה";
|
|
1306
|
+
readonly hint: "The page fades into the next.";
|
|
1307
|
+
readonly transition: "fade";
|
|
1308
|
+
readonly feel: "snappy";
|
|
1309
|
+
};
|
|
1310
|
+
readonly slide: {
|
|
1311
|
+
readonly label: "Slide";
|
|
1312
|
+
readonly he: "החלקה";
|
|
1313
|
+
readonly hint: "The next page pushes this one aside (from the left on a Hebrew site). On phones: Fade.";
|
|
1314
|
+
readonly transition: "move-left";
|
|
1315
|
+
readonly rtl: "move-right";
|
|
1316
|
+
readonly feel: "smooth";
|
|
1317
|
+
readonly phone: "fade";
|
|
1318
|
+
};
|
|
1319
|
+
readonly cinematic: {
|
|
1320
|
+
readonly label: "Cinematic";
|
|
1321
|
+
readonly he: "קולנועית";
|
|
1322
|
+
readonly hint: "This page sinks back while the next rises over it. On phones: Fade.";
|
|
1323
|
+
readonly transition: "parallax-up";
|
|
1324
|
+
readonly feel: "cinematic";
|
|
1325
|
+
readonly phone: "fade";
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
readonly motionChoices: {
|
|
1329
|
+
readonly pre: {
|
|
1330
|
+
readonly scroll: "smooth";
|
|
1331
|
+
readonly animate: "still";
|
|
1332
|
+
readonly between: "cinematic";
|
|
1333
|
+
};
|
|
1334
|
+
readonly reduced: {
|
|
1335
|
+
readonly scroll: "normal";
|
|
1336
|
+
readonly animate: "still";
|
|
1337
|
+
readonly between: "none";
|
|
1338
|
+
};
|
|
1339
|
+
};
|
|
1176
1340
|
};
|
|
1177
1341
|
declare const SPEC_SPRINGS: {
|
|
1178
1342
|
readonly lively: {
|
|
@@ -11992,6 +12156,25 @@ type TintId = keyof typeof SPEC_AXES.tints;
|
|
|
11992
12156
|
declare const TINT_IDS: ReadonlyArray<TintId>;
|
|
11993
12157
|
/** What a studio that stored its look BEFORE the tint existed wears: exactly the look's own palette. */
|
|
11994
12158
|
declare const PRE_TINT_DEFAULT: TintId;
|
|
12159
|
+
/** How the site scrolls (AI plan rev 3.1 §3p): Normal (the browser's own) · Smooth · Extra smooth. */
|
|
12160
|
+
type ScrollId = keyof typeof SPEC_AXES.scrolls;
|
|
12161
|
+
/** How much the sections move in as they scroll into view: Still · Subtle · Standard · Lively. */
|
|
12162
|
+
type AnimateId = keyof typeof SPEC_AXES.animations;
|
|
12163
|
+
/** What plays between pages: None · Fade · Slide · Cinematic. */
|
|
12164
|
+
type BetweenId = keyof typeof SPEC_AXES.betweens;
|
|
12165
|
+
declare const SCROLL_IDS: ReadonlyArray<ScrollId>;
|
|
12166
|
+
declare const ANIMATE_IDS: ReadonlyArray<AnimateId>;
|
|
12167
|
+
declare const BETWEEN_IDS: ReadonlyArray<BetweenId>;
|
|
12168
|
+
/** The look's motion — the three choices the runtime and the composer read from `settings.design`. */
|
|
12169
|
+
interface DesignMotion {
|
|
12170
|
+
scroll: ScrollId;
|
|
12171
|
+
animate: AnimateId;
|
|
12172
|
+
between: BetweenId;
|
|
12173
|
+
}
|
|
12174
|
+
/** What a look stored BEFORE rev 3.1 wears: exactly what every live site did (Smooth · Still · Cinematic). */
|
|
12175
|
+
declare const PRE_MOTION: Readonly<DesignMotion>;
|
|
12176
|
+
/** What a visitor who asks for reduced motion always gets, whatever the look chose. */
|
|
12177
|
+
declare const REDUCED_DESIGN_MOTION: Readonly<DesignMotion>;
|
|
11995
12178
|
type SchemeId = keyof typeof SPEC_SCHEMES;
|
|
11996
12179
|
type FontRoleToken = (typeof SPEC_FONT_ROLES)[number]['token'];
|
|
11997
12180
|
/** Everything a studio chose about its look — the `settings.design` row, typed. */
|
|
@@ -12008,6 +12191,10 @@ interface DesignChoices {
|
|
|
12008
12191
|
* `neutral` — the palette it was applied with. */
|
|
12009
12192
|
tint?: TintId;
|
|
12010
12193
|
fonts?: Partial<Record<FontRoleToken, string>>;
|
|
12194
|
+
/** Absent = `PRE_MOTION` (a row stored before rev 3.1 reads what its site already did). */
|
|
12195
|
+
scroll?: ScrollId;
|
|
12196
|
+
animate?: AnimateId;
|
|
12197
|
+
between?: BetweenId;
|
|
12011
12198
|
}
|
|
12012
12199
|
interface FlavorSpecToken {
|
|
12013
12200
|
readonly name: string;
|
|
@@ -13293,6 +13480,9 @@ declare enum DesignConfigKey {
|
|
|
13293
13480
|
Mode = "mode",
|
|
13294
13481
|
Tint = "tint",
|
|
13295
13482
|
Fonts = "fonts",
|
|
13483
|
+
Scroll = "scroll",
|
|
13484
|
+
Animate = "animate",
|
|
13485
|
+
Between = "between",
|
|
13296
13486
|
Revert = "revert"
|
|
13297
13487
|
}
|
|
13298
13488
|
/** A stored design, resolved: `choices` is ALWAYS complete and valid (pack defaults fill the gaps). */
|
|
@@ -13316,12 +13506,15 @@ declare function isRetiredFlavorId(id: string | null | undefined): boolean;
|
|
|
13316
13506
|
* the pack's own default (an unknown pair → the pack's first, a bad seed → the pack's seed).
|
|
13317
13507
|
*/
|
|
13318
13508
|
declare function resolveDesignChoices(partial: Partial<DesignChoices> | null | undefined): DesignChoices;
|
|
13509
|
+
/** The look's motion, completed: an absent or unknown choice reads `PRE_MOTION` — what the site already does. */
|
|
13510
|
+
declare function resolveDesignMotion(partial: Readonly<Partial<Record<keyof DesignMotion, unknown>>> | null | undefined): DesignMotion;
|
|
13319
13511
|
/** The pack's own defaults for `flavorId` — what picking a card means before anything is tuned. */
|
|
13320
13512
|
declare function packDesignChoices(flavorId: string): DesignChoices;
|
|
13321
13513
|
/**
|
|
13322
13514
|
* What picking a pack card means, given the design the studio wears: the applied pack → the applied
|
|
13323
13515
|
* choices; another pack → that pack's defaults, CARRYING the author's chosen fonts (§5b — a font the
|
|
13324
|
-
* author chose survives a pack switch unless the author changes it)
|
|
13516
|
+
* author chose survives a pack switch unless the author changes it) and the site's motion (rev 3.1 MO-D3 —
|
|
13517
|
+
* how it scrolls and changes page is not a pack's, so a Look pick never resets it). Both picker homes call this.
|
|
13325
13518
|
*/
|
|
13326
13519
|
declare function choicesForPack(flavorId: string, applied: DesignChoices | null | undefined): DesignChoices;
|
|
13327
13520
|
/**
|
|
@@ -13332,6 +13525,8 @@ declare function choicesForPack(flavorId: string, applied: DesignChoices | null
|
|
|
13332
13525
|
declare function readDesignConfig(config: ReadonlyArray<DesignConfigEntry> | null | undefined, hasRow?: boolean): StoredDesign;
|
|
13333
13526
|
/** The colour mode a stored config compiles in — what the public page read hands the engine. */
|
|
13334
13527
|
declare function designModeOf(config: ReadonlyArray<DesignConfigEntry> | null | undefined): DesignMode;
|
|
13528
|
+
/** The look's motion of a stored config — what the public page read hands the engine (`designMotion`). */
|
|
13529
|
+
declare function designMotionOf(config: ReadonlyArray<DesignConfigEntry> | null | undefined): DesignMotion;
|
|
13335
13530
|
/** Resolved choices (+ the revert snapshot) → the config array a settings row stores. */
|
|
13336
13531
|
declare function designConfigEntries(choices: DesignChoices, flavorVersion: string | number, revert?: FlavorRevertSnapshot | null): DesignConfigEntry[];
|
|
13337
13532
|
/** Two choice sets describe the same look (fonts compared by role). */
|
|
@@ -13456,5 +13651,5 @@ interface FontFamilyRemoval {
|
|
|
13456
13651
|
*/
|
|
13457
13652
|
declare function planFontFamilyRemoval(existing: ReadonlyArray<StoredDesignTokenRow>, previous: StoredDesign, family: string): FontFamilyRemoval;
|
|
13458
13653
|
|
|
13459
|
-
export { ACCENT_TOKEN_NAMES, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BOTTOM_BAR_STYLE, BUTTON_VARIANT_TO_STYLE, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, 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, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HELD_CONTRAST, INHERITED_TEXT, LinkType, MAX_FONT_FILE_BYTES, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, PRE_TINT_DEFAULT, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, SCHEME_INK, 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_FONTS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SPRINGS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designRevertConfig, designTokenRepairs, designTokenRows, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headingHref, inSrgbGamut, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, preTintAccentGrounds, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, resolveDesignChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, setColorScheme, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, writeOwnedTrait };
|
|
13460
|
-
export type { AccentBackgrounds, AccentGround, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, ApplyElementStyleResult, ButtonBlockLinkProps, ColourCheck, ColourFlavor, ContrastFinding, DensityId, DesignApplyOptions, DesignChoices, DesignClassSource, DesignConfigEntry, DesignMode, DesignRevertSnapshot, DesignTokenGroup, DesignTokenLike, DesignTokenRow, DesignTokenTier, DesignTokenType, ElementStyle, ElementStyleTarget, ElementStyleTraitLike, FlavorColours, FlavorPack, FlavorPackV2, FlavorPalette, FlavorRevertPlan, FlavorRevertSnapshot, FlavorRevertWrite, FlavorSeedOptions, FlavorSeedPlan, FlavorSpecToken, FlavorTintConfig, FlavorTokenDef, FontDescriptor, FontFamilyGroup, FontFamilyRemoval, FontFamilyToken, FontFormat, FontPair, FontRoleToken, FontStyle, FontWeight, FontWeightRange, FontsForTokensOptions, KeptEdit, LinearSpring, MissingFontRole, MotionId, NodeLinkProps, OkLab, OwnedTrait, OwnedTraitStatus, PalettePreset, ResolvedMode, Rgb, Rgba, SchemeId, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StoredDesign, StoredDesignTokenRow, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, TintId, TintLevel, TokenCssBlocks, TokenCssOptions };
|
|
13654
|
+
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BUTTON_VARIANT_TO_STYLE, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, 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, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HELD_CONTRAST, INHERITED_TEXT, LinkType, MAX_FONT_FILE_BYTES, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, REDUCED_DESIGN_MOTION, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, SCHEME_INK, SCROLL_IDS, 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_FONTS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SPRINGS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designRevertConfig, designTokenRepairs, designTokenRows, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headingHref, inSrgbGamut, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, preTintAccentGrounds, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, resolveDesignChoices, resolveDesignMotion, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, setColorScheme, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, writeOwnedTrait };
|
|
13655
|
+
export type { AccentBackgrounds, AccentGround, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, AnimateId, ApplyElementStyleResult, BetweenId, ButtonBlockLinkProps, ColourCheck, ColourFlavor, ContrastFinding, DensityId, DesignApplyOptions, DesignChoices, DesignClassSource, DesignConfigEntry, DesignMode, DesignMotion, DesignRevertSnapshot, DesignTokenGroup, DesignTokenLike, DesignTokenRow, DesignTokenTier, DesignTokenType, ElementStyle, ElementStyleTarget, ElementStyleTraitLike, FlavorColours, FlavorPack, FlavorPackV2, FlavorPalette, FlavorRevertPlan, FlavorRevertSnapshot, FlavorRevertWrite, FlavorSeedOptions, FlavorSeedPlan, FlavorSpecToken, FlavorTintConfig, FlavorTokenDef, FontDescriptor, FontFamilyGroup, FontFamilyRemoval, FontFamilyToken, FontFormat, FontPair, FontRoleToken, FontStyle, FontWeight, FontWeightRange, FontsForTokensOptions, KeptEdit, LinearSpring, MissingFontRole, MotionId, NodeLinkProps, OkLab, OwnedTrait, OwnedTraitStatus, PalettePreset, ResolvedMode, Rgb, Rgba, SchemeId, ScrollId, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StoredDesign, StoredDesignTokenRow, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, TintId, TintLevel, TokenCssBlocks, TokenCssOptions };
|
|
@@ -1425,6 +1425,208 @@ const SPEC_AXES = {
|
|
|
1425
1425
|
"inverse-line": 0.03
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
|
+
},
|
|
1429
|
+
"scrolls": {
|
|
1430
|
+
"normal": {
|
|
1431
|
+
"label": "Normal",
|
|
1432
|
+
"he": "רגילה",
|
|
1433
|
+
"hint": "The browser's own scrolling.",
|
|
1434
|
+
"lenis": null
|
|
1435
|
+
},
|
|
1436
|
+
"smooth": {
|
|
1437
|
+
"label": "Smooth",
|
|
1438
|
+
"he": "חלקה",
|
|
1439
|
+
"hint": "A short glide after each wheel turn — what every IOX site does today.",
|
|
1440
|
+
"lenis": {
|
|
1441
|
+
"duration": 1.2,
|
|
1442
|
+
"easing": "expo-out",
|
|
1443
|
+
"wheelMultiplier": 1,
|
|
1444
|
+
"syncTouch": false
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
"extra": {
|
|
1448
|
+
"label": "Extra smooth",
|
|
1449
|
+
"he": "חלקה מאוד",
|
|
1450
|
+
"hint": "A longer, softer glide; each wheel turn moves a little less.",
|
|
1451
|
+
"lenis": {
|
|
1452
|
+
"duration": 1.8,
|
|
1453
|
+
"easing": "expo-out",
|
|
1454
|
+
"wheelMultiplier": 0.9,
|
|
1455
|
+
"syncTouch": false
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
"animations": {
|
|
1460
|
+
"still": {
|
|
1461
|
+
"label": "Still",
|
|
1462
|
+
"he": "ללא",
|
|
1463
|
+
"hint": "Nothing moves in as you scroll. Buttons and cards still respond to the pointer (Speed).",
|
|
1464
|
+
"parts": {}
|
|
1465
|
+
},
|
|
1466
|
+
"subtle": {
|
|
1467
|
+
"label": "Subtle",
|
|
1468
|
+
"he": "עדינה",
|
|
1469
|
+
"hint": "Each section's content fades in once, together.",
|
|
1470
|
+
"parts": {
|
|
1471
|
+
"content": {
|
|
1472
|
+
"type": "fadeIn",
|
|
1473
|
+
"duration": 500
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
},
|
|
1477
|
+
"standard": {
|
|
1478
|
+
"label": "Standard",
|
|
1479
|
+
"he": "רגילה",
|
|
1480
|
+
"hint": "Headings rise in; cards, prices and steps follow one after another.",
|
|
1481
|
+
"parts": {
|
|
1482
|
+
"heading": {
|
|
1483
|
+
"type": "moveUp",
|
|
1484
|
+
"distance": 16,
|
|
1485
|
+
"duration": 500
|
|
1486
|
+
},
|
|
1487
|
+
"items": {
|
|
1488
|
+
"type": "moveUp",
|
|
1489
|
+
"distance": 16,
|
|
1490
|
+
"duration": 450,
|
|
1491
|
+
"stagger": 80,
|
|
1492
|
+
"cap": 6
|
|
1493
|
+
},
|
|
1494
|
+
"media": {
|
|
1495
|
+
"type": "fadeIn",
|
|
1496
|
+
"duration": 600
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
},
|
|
1500
|
+
"lively": {
|
|
1501
|
+
"label": "Lively",
|
|
1502
|
+
"he": "תוססת",
|
|
1503
|
+
"hint": "Bigger, longer entrances; side-by-side rows slide in from their side; the hero's words fade in.",
|
|
1504
|
+
"parts": {
|
|
1505
|
+
"heroText": {
|
|
1506
|
+
"type": "fadeIn",
|
|
1507
|
+
"duration": 400
|
|
1508
|
+
},
|
|
1509
|
+
"heading": {
|
|
1510
|
+
"type": "moveUp",
|
|
1511
|
+
"distance": 24,
|
|
1512
|
+
"duration": 600
|
|
1513
|
+
},
|
|
1514
|
+
"items": {
|
|
1515
|
+
"type": "moveUp",
|
|
1516
|
+
"distance": 24,
|
|
1517
|
+
"duration": 600,
|
|
1518
|
+
"stagger": 100,
|
|
1519
|
+
"cap": 8
|
|
1520
|
+
},
|
|
1521
|
+
"media": {
|
|
1522
|
+
"type": "fadeIn",
|
|
1523
|
+
"duration": 700
|
|
1524
|
+
},
|
|
1525
|
+
"rowMedia": {
|
|
1526
|
+
"type": "moveLeft",
|
|
1527
|
+
"mirror": "moveRight",
|
|
1528
|
+
"distance": 24,
|
|
1529
|
+
"duration": 600
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
},
|
|
1534
|
+
"animationFamilies": {
|
|
1535
|
+
"nav": [],
|
|
1536
|
+
"footer": [],
|
|
1537
|
+
"hero": [
|
|
1538
|
+
"heroText"
|
|
1539
|
+
],
|
|
1540
|
+
"header": [
|
|
1541
|
+
"heading"
|
|
1542
|
+
],
|
|
1543
|
+
"detail": [
|
|
1544
|
+
"heading",
|
|
1545
|
+
"media"
|
|
1546
|
+
],
|
|
1547
|
+
"proof": [
|
|
1548
|
+
"content",
|
|
1549
|
+
"heading",
|
|
1550
|
+
"items"
|
|
1551
|
+
],
|
|
1552
|
+
"feature": [
|
|
1553
|
+
"content",
|
|
1554
|
+
"heading",
|
|
1555
|
+
"items",
|
|
1556
|
+
"media",
|
|
1557
|
+
"rowMedia"
|
|
1558
|
+
],
|
|
1559
|
+
"collection": [
|
|
1560
|
+
"content",
|
|
1561
|
+
"heading",
|
|
1562
|
+
"items"
|
|
1563
|
+
],
|
|
1564
|
+
"story": [
|
|
1565
|
+
"content",
|
|
1566
|
+
"heading",
|
|
1567
|
+
"media"
|
|
1568
|
+
],
|
|
1569
|
+
"cta": [
|
|
1570
|
+
"content",
|
|
1571
|
+
"heading"
|
|
1572
|
+
],
|
|
1573
|
+
"contact": [
|
|
1574
|
+
"content",
|
|
1575
|
+
"heading"
|
|
1576
|
+
],
|
|
1577
|
+
"faq": [
|
|
1578
|
+
"content",
|
|
1579
|
+
"heading"
|
|
1580
|
+
],
|
|
1581
|
+
"pricing": [
|
|
1582
|
+
"content",
|
|
1583
|
+
"heading",
|
|
1584
|
+
"items"
|
|
1585
|
+
]
|
|
1586
|
+
},
|
|
1587
|
+
"betweens": {
|
|
1588
|
+
"none": {
|
|
1589
|
+
"label": "None",
|
|
1590
|
+
"he": "ללא",
|
|
1591
|
+
"hint": "The next page simply appears.",
|
|
1592
|
+
"transition": "none"
|
|
1593
|
+
},
|
|
1594
|
+
"fade": {
|
|
1595
|
+
"label": "Fade",
|
|
1596
|
+
"he": "דהייה",
|
|
1597
|
+
"hint": "The page fades into the next.",
|
|
1598
|
+
"transition": "fade",
|
|
1599
|
+
"feel": "snappy"
|
|
1600
|
+
},
|
|
1601
|
+
"slide": {
|
|
1602
|
+
"label": "Slide",
|
|
1603
|
+
"he": "החלקה",
|
|
1604
|
+
"hint": "The next page pushes this one aside (from the left on a Hebrew site). On phones: Fade.",
|
|
1605
|
+
"transition": "move-left",
|
|
1606
|
+
"rtl": "move-right",
|
|
1607
|
+
"feel": "smooth",
|
|
1608
|
+
"phone": "fade"
|
|
1609
|
+
},
|
|
1610
|
+
"cinematic": {
|
|
1611
|
+
"label": "Cinematic",
|
|
1612
|
+
"he": "קולנועית",
|
|
1613
|
+
"hint": "This page sinks back while the next rises over it. On phones: Fade.",
|
|
1614
|
+
"transition": "parallax-up",
|
|
1615
|
+
"feel": "cinematic",
|
|
1616
|
+
"phone": "fade"
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
"motionChoices": {
|
|
1620
|
+
"pre": {
|
|
1621
|
+
"scroll": "smooth",
|
|
1622
|
+
"animate": "still",
|
|
1623
|
+
"between": "cinematic"
|
|
1624
|
+
},
|
|
1625
|
+
"reduced": {
|
|
1626
|
+
"scroll": "normal",
|
|
1627
|
+
"animate": "still",
|
|
1628
|
+
"between": "none"
|
|
1629
|
+
}
|
|
1428
1630
|
}
|
|
1429
1631
|
};
|
|
1430
1632
|
const SPEC_SPRINGS = {
|
|
@@ -14016,6 +14218,13 @@ const DESIGN_TOKEN_GROUPS = ['colour', 'type', 'shape', 'depth', 'space', 'motio
|
|
|
14016
14218
|
const TINT_IDS = Object.keys(SPEC_AXES.tints);
|
|
14017
14219
|
/** What a studio that stored its look BEFORE the tint existed wears: exactly the look's own palette. */
|
|
14018
14220
|
const PRE_TINT_DEFAULT = 'neutral';
|
|
14221
|
+
const SCROLL_IDS = Object.keys(SPEC_AXES.scrolls);
|
|
14222
|
+
const ANIMATE_IDS = Object.keys(SPEC_AXES.animations);
|
|
14223
|
+
const BETWEEN_IDS = Object.keys(SPEC_AXES.betweens);
|
|
14224
|
+
/** What a look stored BEFORE rev 3.1 wears: exactly what every live site did (Smooth · Still · Cinematic). */
|
|
14225
|
+
const PRE_MOTION = SPEC_AXES.motionChoices.pre;
|
|
14226
|
+
/** What a visitor who asks for reduced motion always gets, whatever the look chose. */
|
|
14227
|
+
const REDUCED_DESIGN_MOTION = SPEC_AXES.motionChoices.reduced;
|
|
14019
14228
|
/** The spec's flavors, typed. Assignment here is the compile-time proof that the generated
|
|
14020
14229
|
* data fits `FlavorPackV2`. */
|
|
14021
14230
|
const SPEC_FLAVORS = SPEC_FLAVOR_PACKS;
|
|
@@ -16503,6 +16712,7 @@ function defaultDesignChoices(pack) {
|
|
|
16503
16712
|
seed: pack.seed,
|
|
16504
16713
|
pairId: pack.pairs[0]?.id ?? '',
|
|
16505
16714
|
...pack.defaults,
|
|
16715
|
+
...PRE_MOTION,
|
|
16506
16716
|
};
|
|
16507
16717
|
}
|
|
16508
16718
|
/**
|
|
@@ -16830,6 +17040,9 @@ var DesignConfigKey;
|
|
|
16830
17040
|
DesignConfigKey["Mode"] = "mode";
|
|
16831
17041
|
DesignConfigKey["Tint"] = "tint";
|
|
16832
17042
|
DesignConfigKey["Fonts"] = "fonts";
|
|
17043
|
+
DesignConfigKey["Scroll"] = "scroll";
|
|
17044
|
+
DesignConfigKey["Animate"] = "animate";
|
|
17045
|
+
DesignConfigKey["Between"] = "between";
|
|
16833
17046
|
DesignConfigKey["Revert"] = "revert";
|
|
16834
17047
|
})(DesignConfigKey || (DesignConfigKey = {}));
|
|
16835
17048
|
const MODES = SPEC_AXES.modes;
|
|
@@ -16907,6 +17120,15 @@ function resolveDesignChoices(partial) {
|
|
|
16907
17120
|
mode: (MODES.includes(asString(partial?.mode) ?? '') ? asString(partial?.mode) : pack.defaults.mode),
|
|
16908
17121
|
tint: keyOf(SPEC_AXES.tints, asString(partial?.tint)) ?? pack.defaults.tint,
|
|
16909
17122
|
...(fonts ? { fonts } : {}),
|
|
17123
|
+
...resolveDesignMotion(partial),
|
|
17124
|
+
};
|
|
17125
|
+
}
|
|
17126
|
+
/** The look's motion, completed: an absent or unknown choice reads `PRE_MOTION` — what the site already does. */
|
|
17127
|
+
function resolveDesignMotion(partial) {
|
|
17128
|
+
return {
|
|
17129
|
+
scroll: keyOf(SPEC_AXES.scrolls, asString(partial?.scroll)) ?? PRE_MOTION.scroll,
|
|
17130
|
+
animate: keyOf(SPEC_AXES.animations, asString(partial?.animate)) ?? PRE_MOTION.animate,
|
|
17131
|
+
between: keyOf(SPEC_AXES.betweens, asString(partial?.between)) ?? PRE_MOTION.between,
|
|
16910
17132
|
};
|
|
16911
17133
|
}
|
|
16912
17134
|
/** The pack's own defaults for `flavorId` — what picking a card means before anything is tuned. */
|
|
@@ -16916,13 +17138,14 @@ function packDesignChoices(flavorId) {
|
|
|
16916
17138
|
/**
|
|
16917
17139
|
* What picking a pack card means, given the design the studio wears: the applied pack → the applied
|
|
16918
17140
|
* choices; another pack → that pack's defaults, CARRYING the author's chosen fonts (§5b — a font the
|
|
16919
|
-
* author chose survives a pack switch unless the author changes it)
|
|
17141
|
+
* author chose survives a pack switch unless the author changes it) and the site's motion (rev 3.1 MO-D3 —
|
|
17142
|
+
* how it scrolls and changes page is not a pack's, so a Look pick never resets it). Both picker homes call this.
|
|
16920
17143
|
*/
|
|
16921
17144
|
function choicesForPack(flavorId, applied) {
|
|
16922
17145
|
const pack = flavorPackById(flavorId) ?? defaultPack();
|
|
16923
17146
|
if (applied && resolveDesignChoices(applied).flavorId === pack.id)
|
|
16924
17147
|
return resolveDesignChoices(applied);
|
|
16925
|
-
return resolveDesignChoices({ flavorId: pack.id, fonts: applied?.fonts });
|
|
17148
|
+
return resolveDesignChoices({ flavorId: pack.id, fonts: applied?.fonts, ...resolveDesignMotion(applied) });
|
|
16926
17149
|
}
|
|
16927
17150
|
/**
|
|
16928
17151
|
* A stored `settings.design` config → the resolved design. No row (or no config) → Crisp's defaults. A
|
|
@@ -16945,6 +17168,9 @@ function readDesignConfig(config, hasRow = !!config) {
|
|
|
16945
17168
|
mode: map.get(DesignConfigKey.Mode),
|
|
16946
17169
|
tint: (storedTint ?? undefined),
|
|
16947
17170
|
fonts: map.get(DesignConfigKey.Fonts),
|
|
17171
|
+
scroll: map.get(DesignConfigKey.Scroll),
|
|
17172
|
+
animate: map.get(DesignConfigKey.Animate),
|
|
17173
|
+
between: map.get(DesignConfigKey.Between),
|
|
16948
17174
|
});
|
|
16949
17175
|
return {
|
|
16950
17176
|
choices,
|
|
@@ -16959,6 +17185,10 @@ function readDesignConfig(config, hasRow = !!config) {
|
|
|
16959
17185
|
function designModeOf(config) {
|
|
16960
17186
|
return readDesignConfig(config).choices.mode;
|
|
16961
17187
|
}
|
|
17188
|
+
/** The look's motion of a stored config — what the public page read hands the engine (`designMotion`). */
|
|
17189
|
+
function designMotionOf(config) {
|
|
17190
|
+
return resolveDesignMotion(readDesignConfig(config).choices);
|
|
17191
|
+
}
|
|
16962
17192
|
/** Resolved choices (+ the revert snapshot) → the config array a settings row stores. */
|
|
16963
17193
|
function designConfigEntries(choices, flavorVersion, revert) {
|
|
16964
17194
|
const c = resolveDesignChoices(choices);
|
|
@@ -16973,6 +17203,9 @@ function designConfigEntries(choices, flavorVersion, revert) {
|
|
|
16973
17203
|
{ key: DesignConfigKey.PillButtons, value: String(c.pillButtons) },
|
|
16974
17204
|
{ key: DesignConfigKey.Mode, value: c.mode },
|
|
16975
17205
|
{ key: DesignConfigKey.Tint, value: c.tint },
|
|
17206
|
+
{ key: DesignConfigKey.Scroll, value: c.scroll },
|
|
17207
|
+
{ key: DesignConfigKey.Animate, value: c.animate },
|
|
17208
|
+
{ key: DesignConfigKey.Between, value: c.between },
|
|
16976
17209
|
...(c.fonts ? [{ key: DesignConfigKey.Fonts, value: JSON.stringify(c.fonts) }] : []),
|
|
16977
17210
|
...(revert ? [{ key: DesignConfigKey.Revert, value: JSON.stringify(revert) }] : []),
|
|
16978
17211
|
];
|
|
@@ -16984,6 +17217,7 @@ function sameDesignChoices(a, b) {
|
|
|
16984
17217
|
return x.flavorId === y.flavorId && x.seed.toLowerCase() === y.seed.toLowerCase() && x.pairId === y.pairId
|
|
16985
17218
|
&& x.shape === y.shape && x.density === y.density && x.motion === y.motion
|
|
16986
17219
|
&& x.pillButtons === y.pillButtons && x.mode === y.mode && x.tint === y.tint
|
|
17220
|
+
&& x.scroll === y.scroll && x.animate === y.animate && x.between === y.between
|
|
16987
17221
|
&& JSON.stringify(x.fonts ?? {}) === JSON.stringify(y.fonts ?? {});
|
|
16988
17222
|
}
|
|
16989
17223
|
|
|
@@ -17256,5 +17490,5 @@ function planFontFamilyRemoval(existing, previous, family) {
|
|
|
17256
17490
|
* Generated bundle index. Do not edit.
|
|
17257
17491
|
*/
|
|
17258
17492
|
|
|
17259
|
-
export { ACCENT_TOKEN_NAMES, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BOTTOM_BAR_STYLE, BUTTON_VARIANT_TO_STYLE, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, 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, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HELD_CONTRAST, INHERITED_TEXT, LinkType, MAX_FONT_FILE_BYTES, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, PRE_TINT_DEFAULT, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, SCHEME_INK, 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_FONTS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SPRINGS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designRevertConfig, designTokenRepairs, designTokenRows, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headingHref, inSrgbGamut, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, preTintAccentGrounds, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, resolveDesignChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, setColorScheme, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, writeOwnedTrait };
|
|
17493
|
+
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BUTTON_VARIANT_TO_STYLE, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, 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, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HELD_CONTRAST, INHERITED_TEXT, LinkType, MAX_FONT_FILE_BYTES, NEW_NODE_STYLE_DEFAULTS, OwnedTraitLink, PALETTE_PRESETS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, REDUCED_DESIGN_MOTION, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, SCHEME_INK, SCROLL_IDS, 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_FONTS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SPRINGS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designRevertConfig, designTokenRepairs, designTokenRows, elementStyleById, elementStyleClass, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headingHref, inSrgbGamut, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFontWeightRange, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, missingDesignRows, missingFontRoles, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, ownedTraitStatus, ownedTraitsOf, packDesignChoices, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planSwissMigration, preTintAccentGrounds, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, resolveDesignChoices, resolveDesignMotion, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, setColorScheme, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, withSchemeInk, writeOwnedTrait };
|
|
17260
17494
|
//# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map
|