@vectoriox/iox-ui 5.136.0 → 5.137.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 +35 -4
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +61 -6
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +15 -31
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +355 -2
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +40 -33
- package/index.d.ts +105 -3
- package/package.json +1 -1
- package/src/design-core/preloader-of.ts +26 -0
- package/src/design-core/preloader.ts +50 -5
- package/src/design-core/public-api.ts +1 -0
- package/src/generation-core/redesign-run.ts +42 -2
- package/src/generation-core/site-build-run.ts +5 -1
- package/src/generation-core/site-spec.generated.ts +0 -28
package/design-core/index.d.ts
CHANGED
|
@@ -19543,6 +19543,12 @@ declare const PRELOADER_LEVELS: ReadonlyArray<string>;
|
|
|
19543
19543
|
declare const PRELOADER_EXIT_MAX_MS = 500;
|
|
19544
19544
|
/** Letters shows the opening heading only while it is this short (PL-D2); a longer one shows the business name. */
|
|
19545
19545
|
declare const PRELOADER_LETTERS_MAX = 24;
|
|
19546
|
+
/** A preloader never leaves before its own entrance is seen (board 2) — still never past the cap. */
|
|
19547
|
+
declare const PRELOADER_MIN_SHOW_MS: Readonly<Record<Exclude<PreloaderKind, PreloaderKind.None>, number>>;
|
|
19548
|
+
/** The fast ease-out a preloader leaves on when the look names no `ease-exit` (MB-D1's quart-out). */
|
|
19549
|
+
declare const PRELOADER_EXIT_EASE = "cubic-bezier(0.25, 1, 0.5, 1)";
|
|
19550
|
+
/** The ease-out its content arrives on when the look names no `ease-enter` (expo-out). */
|
|
19551
|
+
declare const PRELOADER_ENTER_EASE = "cubic-bezier(0.16, 1, 0.3, 1)";
|
|
19546
19552
|
declare const isPreloaderKind: (v: unknown) => v is `${PreloaderKind}`;
|
|
19547
19553
|
/** What the runtime draws: the kind, the look's exit, and its cap. */
|
|
19548
19554
|
interface PreloaderPlan {
|
|
@@ -19570,8 +19576,22 @@ interface PreloaderInput {
|
|
|
19570
19576
|
declare function planPreloader(input: PreloaderInput): PreloaderPlan | null;
|
|
19571
19577
|
/** The look's exit (PL-D3): the preset's own, else a fade. */
|
|
19572
19578
|
declare function preloaderExitOf(presetId: string | null | undefined): PreloaderPlan['exit'];
|
|
19573
|
-
/**
|
|
19574
|
-
|
|
19579
|
+
/**
|
|
19580
|
+
* When it leaves (PL-D4): at the page's readiness — never before its own entrance is seen (`minMs`), never past the cap;
|
|
19581
|
+
* a readiness not yet known waits for the cap.
|
|
19582
|
+
*/
|
|
19583
|
+
declare function preloaderLeaveAt(readyMs: number | null | undefined, capMs?: number, minMs?: number): number;
|
|
19584
|
+
/** How a preloader leaves — frames (transform / opacity / clip-path only), a duration ≤ `PRELOADER_EXIT_MAX_MS`, and
|
|
19585
|
+
* whether the layer turns the accent panel first (Sweep). */
|
|
19586
|
+
interface PreloaderExitMotion {
|
|
19587
|
+
readonly frames: ReadonlyArray<Readonly<Record<string, string | number>>>;
|
|
19588
|
+
readonly duration: number;
|
|
19589
|
+
readonly accent: boolean;
|
|
19590
|
+
}
|
|
19591
|
+
/** The ONE description of each exit (PL-D3; Emil: transform / opacity / clip-path, ≤ 500 ms, on the look's ease-exit). */
|
|
19592
|
+
declare function preloaderExitMotion(exit: string | null | undefined): PreloaderExitMotion;
|
|
19593
|
+
/** A text as a reader sees its letters — a Hebrew letter keeps its points, an emoji its joiners (`Intl.Segmenter`). */
|
|
19594
|
+
declare function preloaderGraphemes(text: string): string[];
|
|
19575
19595
|
/**
|
|
19576
19596
|
* PL-D5: a first visit is the session's first page in this tab AND not reached from another page of the same site
|
|
19577
19597
|
* (a new tab opened from the site, a reload after Back). `seen` = the tab's session memory; `referrer` and `origin`
|
|
@@ -19586,5 +19606,16 @@ declare function preloaderPercent(loaded: number, total: number, previous?: numb
|
|
|
19586
19606
|
/** PL-D2: what Letters spells — the opening heading while it is short enough, else the business name. */
|
|
19587
19607
|
declare function preloaderWords(heading: string | null | undefined, businessName: string | null | undefined): string;
|
|
19588
19608
|
|
|
19589
|
-
|
|
19590
|
-
|
|
19609
|
+
/**
|
|
19610
|
+
* What a look opens a visitor's first page with (AW5, PL-D1/D3/D6): the kind is the look's word, the exit the style
|
|
19611
|
+
* preset it is (`stylePresetOfChoices`; a customised look fades), the cap the contract's. A built site keeps its word
|
|
19612
|
+
* (AW-D23: the plan clamp happened when the look was chosen), so this asks as Pro unless told otherwise; the visitor's
|
|
19613
|
+
* side — reduced motion, a first visit — is the browser's to say (`preloaderHeadScript`). Null when it opens with nothing.
|
|
19614
|
+
*/
|
|
19615
|
+
declare function preloaderOfChoices(choices: Pick<DesignChoices, 'preloader' | 'animate'> & Partial<DesignChoices> | null | undefined, pro?: boolean): PreloaderPlan | null;
|
|
19616
|
+
/** A STORED design's preloader — what the public page read hands the engine (`designPreloader`), beside
|
|
19617
|
+
* `designMode` / `designMotion`. */
|
|
19618
|
+
declare function designPreloaderOf(config: ReadonlyArray<DesignConfigEntry> | null | undefined): PreloaderPlan | null;
|
|
19619
|
+
|
|
19620
|
+
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BUTTON_VARIANT_TO_STYLE, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_MENU_LOOK, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FIELD_INVALID_CLASS, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FieldClass, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LinkType, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MOOD_IDS, MOOD_LABELS, MOTION_LANGUAGE_PRESET_IDS, MOVE_IDS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, MotionWordTier, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, PRELOADER_CAP_MS, PRELOADER_ENTER_EASE, PRELOADER_EXIT_EASE, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRELOADER_MIN_SHOW_MS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, PreloaderExit, PreloaderKind, QUIET_LEVELS, QUIET_MOVE, REDUCED_DESIGN_MOTION, REDUCED_ENTRANCE_MAX_MS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_METRICS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_MOTION_LANGUAGE, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SPRING_CURVE_TOKEN, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designPreloaderOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerStaysAtTop, headingHref, inSrgbGamut, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isMoveId, isPreloaderKind, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planPreloader, 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, scriptsForLocale, setColorScheme, 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 };
|
|
19621
|
+
export type { AccentBackgrounds, AccentGround, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, AnimateId, ApplyElementStyleResult, ArriveId, 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, LeaveId, LinearSpring, MenuLook, MenuTraitReader, MissingFontRole, MoodId, MotionId, MotionLanguage, MotionWordKind, MoveId, NodeLinkProps, OkLab, OwnedTrait, OwnedTraitStatus, PalettePreset, PreloaderExitMotion, PreloaderInput, PreloaderPlan, PresetMode, ResolvedMode, Rgb, Rgba, SchemeId, ScriptId, ScrollId, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StaggerSpec, StoredDesign, StoredDesignTokenRow, StylePreset, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, ThemeColorOptions, ThemeColors, TimedAction, TintId, TintLevel, TokenCssBlocks, TokenCssOptions, TypeFace };
|
|
@@ -23573,6 +23573,14 @@ const PRELOADER_LEVELS = L.preloaderLevels;
|
|
|
23573
23573
|
const PRELOADER_EXIT_MAX_MS = 500;
|
|
23574
23574
|
/** Letters shows the opening heading only while it is this short (PL-D2); a longer one shows the business name. */
|
|
23575
23575
|
const PRELOADER_LETTERS_MAX = 24;
|
|
23576
|
+
/** A preloader never leaves before its own entrance is seen (board 2) — still never past the cap. */
|
|
23577
|
+
const PRELOADER_MIN_SHOW_MS = {
|
|
23578
|
+
[PreloaderKind.Mark]: 450, [PreloaderKind.Counter]: 450, [PreloaderKind.Letters]: 700,
|
|
23579
|
+
};
|
|
23580
|
+
/** The fast ease-out a preloader leaves on when the look names no `ease-exit` (MB-D1's quart-out). */
|
|
23581
|
+
const PRELOADER_EXIT_EASE = 'cubic-bezier(0.25, 1, 0.5, 1)';
|
|
23582
|
+
/** The ease-out its content arrives on when the look names no `ease-enter` (expo-out). */
|
|
23583
|
+
const PRELOADER_ENTER_EASE = 'cubic-bezier(0.16, 1, 0.3, 1)';
|
|
23576
23584
|
const isPreloaderKind = (v) => typeof v === 'string' && PRELOADER_IDS.includes(v);
|
|
23577
23585
|
/** The ONE decision: what opens this visit, or null for nothing (the page is simply there). */
|
|
23578
23586
|
function planPreloader(input) {
|
|
@@ -23592,11 +23600,36 @@ function preloaderExitOf(presetId) {
|
|
|
23592
23600
|
const own = presetMotionLanguage(presetId ?? null)?.preloaderExit;
|
|
23593
23601
|
return own && own !== PreloaderExit.None && PRELOADER_EXIT_IDS.includes(own) ? own : PreloaderExit.Fade;
|
|
23594
23602
|
}
|
|
23595
|
-
/**
|
|
23596
|
-
|
|
23603
|
+
/**
|
|
23604
|
+
* When it leaves (PL-D4): at the page's readiness — never before its own entrance is seen (`minMs`), never past the cap;
|
|
23605
|
+
* a readiness not yet known waits for the cap.
|
|
23606
|
+
*/
|
|
23607
|
+
function preloaderLeaveAt(readyMs, capMs = PRELOADER_CAP_MS, minMs = 0) {
|
|
23597
23608
|
if (typeof readyMs !== 'number' || !Number.isFinite(readyMs) || readyMs < 0)
|
|
23598
23609
|
return capMs;
|
|
23599
|
-
return Math.min(readyMs, capMs);
|
|
23610
|
+
return Math.min(Math.max(readyMs, minMs), capMs);
|
|
23611
|
+
}
|
|
23612
|
+
/** Window's frame: the layer with a centred rectangular hole `x`% / `y`% in from each edge (even-odd). */
|
|
23613
|
+
const windowHole = (x, y) => `polygon(evenodd, 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, ${x}% ${y}%, ${100 - x}% ${y}%, ${100 - x}% ${100 - y}%, ${x}% ${100 - y}%, ${x}% ${y}%)`;
|
|
23614
|
+
const EXIT_MOTION = {
|
|
23615
|
+
[PreloaderExit.Fade]: { frames: [{ opacity: 1 }, { opacity: 0 }], duration: 300, accent: false },
|
|
23616
|
+
[PreloaderExit.Lift]: { frames: [{ transform: 'translateY(0)' }, { transform: 'translateY(-100%)' }], duration: 450, accent: false },
|
|
23617
|
+
[PreloaderExit.Sweep]: { frames: [{ clipPath: 'inset(0% 0% 0% 0%)' }, { clipPath: 'inset(0% 0% 100% 0%)' }], duration: 420, accent: true },
|
|
23618
|
+
[PreloaderExit.Window]: {
|
|
23619
|
+
frames: [{ clipPath: windowHole(50, 50) }, { clipPath: windowHole(38, 40), offset: 0.25 }, { clipPath: windowHole(-1, -1) }],
|
|
23620
|
+
duration: 480, accent: false,
|
|
23621
|
+
},
|
|
23622
|
+
};
|
|
23623
|
+
/** The ONE description of each exit (PL-D3; Emil: transform / opacity / clip-path, ≤ 500 ms, on the look's ease-exit). */
|
|
23624
|
+
function preloaderExitMotion(exit) {
|
|
23625
|
+
return EXIT_MOTION[exit] ?? EXIT_MOTION[PreloaderExit.Fade];
|
|
23626
|
+
}
|
|
23627
|
+
/** A text as a reader sees its letters — a Hebrew letter keeps its points, an emoji its joiners (`Intl.Segmenter`). */
|
|
23628
|
+
function preloaderGraphemes(text) {
|
|
23629
|
+
const Seg = Intl.Segmenter;
|
|
23630
|
+
if (!Seg)
|
|
23631
|
+
return Array.from(text);
|
|
23632
|
+
return Array.from(new Seg(undefined, { granularity: 'grapheme' }).segment(text), s => s.segment);
|
|
23600
23633
|
}
|
|
23601
23634
|
/**
|
|
23602
23635
|
* PL-D5: a first visit is the session's first page in this tab AND not reached from another page of the same site
|
|
@@ -23627,9 +23660,9 @@ function preloaderPercent(loaded, total, previous = 0) {
|
|
|
23627
23660
|
/** PL-D2: what Letters spells — the opening heading while it is short enough, else the business name. */
|
|
23628
23661
|
function preloaderWords(heading, businessName) {
|
|
23629
23662
|
const h = String(heading ?? '').replace(/\s+/g, ' ').trim();
|
|
23630
|
-
if (h &&
|
|
23663
|
+
if (h && preloaderGraphemes(h).length <= PRELOADER_LETTERS_MAX)
|
|
23631
23664
|
return h;
|
|
23632
|
-
return String(businessName ?? '').replace(/\s+/g, ' ').trim() ||
|
|
23665
|
+
return String(businessName ?? '').replace(/\s+/g, ' ').trim() || preloaderGraphemes(h).slice(0, PRELOADER_LETTERS_MAX).join('');
|
|
23633
23666
|
}
|
|
23634
23667
|
|
|
23635
23668
|
/**
|
|
@@ -24651,6 +24684,28 @@ function elementStyleFace(choices, styleId) {
|
|
|
24651
24684
|
return { stack: read('fontFamily'), weight: Number(read('fontWeight')) || 400, tracking: spacing ? Number(spacing[1]) : 0 };
|
|
24652
24685
|
}
|
|
24653
24686
|
|
|
24687
|
+
/**
|
|
24688
|
+
* What a look opens a visitor's first page with (AW5, PL-D1/D3/D6): the kind is the look's word, the exit the style
|
|
24689
|
+
* preset it is (`stylePresetOfChoices`; a customised look fades), the cap the contract's. A built site keeps its word
|
|
24690
|
+
* (AW-D23: the plan clamp happened when the look was chosen), so this asks as Pro unless told otherwise; the visitor's
|
|
24691
|
+
* side — reduced motion, a first visit — is the browser's to say (`preloaderHeadScript`). Null when it opens with nothing.
|
|
24692
|
+
*/
|
|
24693
|
+
function preloaderOfChoices(choices, pro = true) {
|
|
24694
|
+
if (!choices?.preloader)
|
|
24695
|
+
return null;
|
|
24696
|
+
return planPreloader({
|
|
24697
|
+
preloader: choices.preloader, animate: choices.animate,
|
|
24698
|
+
presetId: stylePresetOfChoices(choices)?.id ?? null,
|
|
24699
|
+
pro, reducedMotion: false, firstVisit: true,
|
|
24700
|
+
});
|
|
24701
|
+
}
|
|
24702
|
+
/** A STORED design's preloader — what the public page read hands the engine (`designPreloader`), beside
|
|
24703
|
+
* `designMode` / `designMotion`. */
|
|
24704
|
+
function designPreloaderOf(config) {
|
|
24705
|
+
const { choices, hasRow } = readDesignConfig(config);
|
|
24706
|
+
return hasRow ? preloaderOfChoices(choices) : null;
|
|
24707
|
+
}
|
|
24708
|
+
|
|
24654
24709
|
/**
|
|
24655
24710
|
* @vectoriox/iox-ui/design-core — the shared, FRAMEWORK-FREE core of the design system
|
|
24656
24711
|
* (design-system plan §3e): the token vocabulary, the flavor contract (generated 1:1 from
|
|
@@ -24666,5 +24721,5 @@ function elementStyleFace(choices, styleId) {
|
|
|
24666
24721
|
* Generated bundle index. Do not edit.
|
|
24667
24722
|
*/
|
|
24668
24723
|
|
|
24669
|
-
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BUTTON_VARIANT_TO_STYLE, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_MENU_LOOK, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FIELD_INVALID_CLASS, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FieldClass, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LinkType, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MOOD_IDS, MOOD_LABELS, MOTION_LANGUAGE_PRESET_IDS, MOVE_IDS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, MotionWordTier, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, PRELOADER_CAP_MS, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, PreloaderExit, PreloaderKind, QUIET_LEVELS, QUIET_MOVE, REDUCED_DESIGN_MOTION, REDUCED_ENTRANCE_MAX_MS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_METRICS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_MOTION_LANGUAGE, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SPRING_CURVE_TOKEN, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerStaysAtTop, headingHref, inSrgbGamut, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isMoveId, isPreloaderKind, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planPreloader, planSwissMigration, popAllowed, preTintAccentGrounds, preloaderExitOf, preloaderLeaveAt, preloaderPercent, preloaderWords, presetChoices, presetModes, presetMotionLanguage, previewElementStyleAdoption, previewFontWeight, quantizeRgb, readDesignConfig, readOwnedTrait, relativeLuminance, releaseElementStyle, repeatedRowIndex, resolveDesignChoices, resolveDesignMotion, resolveMotionLanguageChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, roleClass, sameDesignChoices, scriptsForLocale, setColorScheme, 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 };
|
|
24724
|
+
export { ACCENT_TOKEN_NAMES, ANIMATE_IDS, ARRIVE_IDS, AdoptOutcome, AdoptSkipReason, BAR_RESERVE_BREAKPOINTS, BAR_RESERVE_CLASS, BETWEEN_IDS, BOTTOM_BAR_STYLE, BRAND_NAME_ATTRIBUTE, BRAND_NAME_LONGER_AT, BRAND_NAME_LONG_AT, BRAND_ROLE, BUTTON_VARIANT_TO_STYLE, BrandNameLength, CANVAS_LINK_ATTRIBUTE, CARD_LINK_CLASS, COLOR_SCHEMES, COLOR_SCHEME_TRAIT, COLOR_SCHEME_TYPES, COMPOSED_HEADER, CONTRAST_AUDIT_MEMORY, ColorScheme, ColourCheckId, DEFAULT_FLAVOR_ID, DEFAULT_MENU_LOOK, DESIGN_TOKEN_GROUPS, DESIGN_TOKEN_TIERS, DESIGN_TOKEN_TYPES, DesignConfigKey, ELEMENT_STYLES, ELEMENT_STYLE_MARKER_CLASS, ELEMENT_STYLE_STATES, EMPTY_IMAGE_ATTRIBUTE, EMPTY_IMAGE_SRC, ElementStyleState, EntranceParam, FIELD_INVALID_CLASS, FLAVOR_SPEC_VERSION, FONT_CATALOG, FONT_FAMILY_TOKENS, FONT_FILE_ACCEPT, FONT_FILE_EXTENSIONS, FONT_FILE_FORMATS, FONT_STYLES, FONT_WEIGHTS, FieldClass, FontUploadError, GOOGLE_FONTS_CSS_ORIGIN, GOOGLE_FONTS_FILE_ORIGIN, HEADER_THEME_COLOR_TOKEN, HELD_CONTRAST, HeaderAttribute, HeaderBehaviour, HeaderEdge, HeaderTrait, INHERITED_TEXT, LEAVE_IDS, LEAVE_SHARE, LinkType, MARK_STYLES, MAX_FONT_FILE_BYTES, MENU_ATTRIBUTES, MENU_PHONE_MAX_WIDTH, MOOD_IDS, MOOD_LABELS, MOTION_LANGUAGE_PRESET_IDS, MOVE_IDS, MenuAttribute, MenuButtonKind, MenuForm, MenuHover, MenuPhoneForm, MenuReveal, MenuTrait, MotionWordTier, NEW_NODE_STYLE_DEFAULTS, OPENING_ATTRIBUTE, OPENING_FOLLOWER_ROLE, OPENING_SETTING, OwnedTraitLink, PALETTE_PRESETS, PRELOADER_CAP_MS, PRELOADER_ENTER_EASE, PRELOADER_EXIT_EASE, PRELOADER_EXIT_IDS, PRELOADER_EXIT_MAX_MS, PRELOADER_IDS, PRELOADER_LETTERS_MAX, PRELOADER_LEVELS, PRELOADER_MIN_SHOW_MS, PRE_DS2_FLAVOR_DEFAULTS, PRE_MOTION, PRE_TINT_DEFAULT, PreloaderExit, PreloaderKind, QUIET_LEVELS, QUIET_MOVE, REDUCED_DESIGN_MOTION, REDUCED_ENTRANCE_MAX_MS, REDUCED_MOTION_OVERRIDES, REDUCED_TRANSPARENCY_OVERRIDES, REVERT_WINDOW_MS, ROW_INDEX_ATTRIBUTE, SCHEME_INK, SCROLL_IDS, SPEC_A11Y, SPEC_AXES, SPEC_BUTTON_VARIANT_TO_STYLE, SPEC_CONTRAST, SPEC_CONTRAST_AUDIT, SPEC_DEFAULT_ELEMENT_STYLE, SPEC_ELEMENT_STYLES, SPEC_FIELD_CLASS_BASELINE, SPEC_FLAVORS, SPEC_FLAVOR_PACKS, SPEC_FLOATING_BASELINE, SPEC_FONTS, SPEC_FONT_METRICS, SPEC_FONT_ROLES, SPEC_INK_SCOPES, SPEC_LEGACY_ALIASES, SPEC_MOODS, SPEC_MOTION_LANGUAGE, SPEC_PALETTE_PRESETS, SPEC_SCHEMES, SPEC_SCHEME_INK, SPEC_SCRIPTS, SPEC_SPRINGS, SPEC_STYLE_PRESETS, SPEC_TIERS, SPEC_TIER_IDS, SPEC_TOKEN_TYPES, SPRING_CURVE_TOKEN, STAGGER_MAX_ITEMS, STAGGER_SHRINK, STYLE_PRESETS, SUPERSEDED_STYLE_VALUES, SWISS_FLAVOR, THEME_COLOR_TOKEN, TINT_FULL_CHROMA, TINT_IDS, TINT_LEVELS, TINT_OWN_HUE_CHROMA, TINT_TURN_CHROMA, USER_TOKEN_SOURCE, WCAG_AA_TEXT, WCAG_AA_UI, adoptElementStyles, adoptionStyleFor, apcaLc, applyElementStyle, applyHeadingLevelRule, atLightness, atLightnessMaxChroma, auditDesignContrast, barReserveClass, brandNameAttributes, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designApplySnapshot, designBaseline, designConfigEntries, designModeOf, designMotionOf, designPreloaderOf, designRevertConfig, designTokenRepairs, designTokenRows, drawsScript, elementStyleById, elementStyleClass, elementStyleFace, elementStylesFor, emptyImageLabelSrc, emptyImagePlaceholder, emptyImageSrc, ensureAlpha, ensureContrast, entranceDelay, flavorColours, flavorPackById, flavorSeedWrites, flavorSourceStamp, fontFamilyKey, fontFileName, fontFileStem, fontFormatOf, fontPreloads, fontRoleReferences, fontStackWithout, fontWeightCovers, fontWeightRange, fontWeightValue, fontsForTokens, formatFontFamilies, formatFontFamily, formatFontWeight, googleFontHref, groupFontFamilies, hasElementStyleMarker, headerAttributes, headerBehaviourOf, headerEdgeOf, headerStaysAtTop, headingHref, inSrgbGamut, isArriveId, isDesignTokenGroup, isDesignTokenTier, isDesignTokenType, isFirstVisit, isFontWeightRange, isMoveId, isPreloaderKind, isRetiredFlavorId, legacyDesignTokenRows, legacyFlavorTokens, legacyRuleTokenReferences, matchFontWeight, menuButtonAttributes, menuButtonOf, menuButtonProps, menuDialogAttributes, menuDialogProps, menuFormOf, menuFormSwitchesOnPhone, menuHoverOf, menuPhoneOf, menuRevealOf, missingDesignRows, missingFontRoles, motionCurve, motionLanguageForPlan, motionLanguageOf, motionWordTier, nodeDesignClasses, normalizeFontStyle, normalizeFontWeight, normalizeFontWeightValue, oklabToRgb, openingFollowerSelector, ownedTraitStatus, ownedTraitsOf, packDesignChoices, pageOpeningScheme, paintColours, parseCssColour, parseFontFamilies, parseFontWeight, parseHexColor, planDesignApply, planDesignRevert, planFlavorRevert, planFlavorSeed, planFontFamilyRemoval, planPreloader, 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, scriptsForLocale, setColorScheme, 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 };
|
|
24670
24725
|
//# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map
|