@vectoriox/iox-ui 5.27.0 → 5.29.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 +186 -7
- package/fesm2022/vectoriox-iox-ui-design-core.mjs +201 -11
- package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs +119 -5
- package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +591 -181
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +189 -16
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/forms-core/index.d.ts +59 -3
- package/generation-core/index.d.ts +206 -74
- package/index.d.ts +30 -3
- package/package.json +1 -1
- package/src/design-core/contrast-audit.ts +7 -6
- package/src/design-core/flavor-spec.generated.ts +170 -5
- package/src/design-core/node-links.ts +32 -0
- package/src/design-core/public-api.ts +1 -0
- package/src/forms-core/collect.ts +3 -1
- package/src/forms-core/form-presets.ts +105 -0
- package/src/forms-core/options.ts +29 -0
- package/src/forms-core/public-api.ts +2 -0
- package/src/forms-core/transport.ts +6 -2
- package/src/generation-core/baseline-roles.ts +75 -0
- package/src/generation-core/compose-site.ts +256 -95
- package/src/generation-core/node-baselines.generated.ts +90 -0
- package/src/generation-core/patterns.ts +31 -9
- package/src/generation-core/public-api.ts +1 -0
- package/src/generation-core/serialized-node.ts +13 -2
- package/src/generation-core/site-plan.model.ts +4 -3
- package/src/generation-core/site-spec.generated.ts +110 -57
- package/src/generation-core/validate-site-plan.ts +52 -20
- package/styles/iox-forms.css +136 -8
package/design-core/index.d.ts
CHANGED
|
@@ -1280,6 +1280,20 @@ declare const SPEC_ELEMENT_STYLES: readonly [{
|
|
|
1280
1280
|
readonly hover: {
|
|
1281
1281
|
readonly color: "var(--iox-link-hover-color)";
|
|
1282
1282
|
};
|
|
1283
|
+
}, {
|
|
1284
|
+
readonly id: "button-label";
|
|
1285
|
+
readonly label: "Button label";
|
|
1286
|
+
readonly group: "Text";
|
|
1287
|
+
readonly appliesTo: readonly ["Text"];
|
|
1288
|
+
readonly base: {
|
|
1289
|
+
readonly fontFamily: "inherit";
|
|
1290
|
+
readonly fontSize: "inherit";
|
|
1291
|
+
readonly fontWeight: "inherit";
|
|
1292
|
+
readonly lineHeight: "inherit";
|
|
1293
|
+
readonly letterSpacing: "inherit";
|
|
1294
|
+
readonly textTransform: "inherit";
|
|
1295
|
+
readonly color: "inherit";
|
|
1296
|
+
};
|
|
1283
1297
|
}, {
|
|
1284
1298
|
readonly id: "section";
|
|
1285
1299
|
readonly label: "Section";
|
|
@@ -1511,7 +1525,8 @@ declare const SPEC_FIELD_CLASS_BASELINE: {
|
|
|
1511
1525
|
readonly ".iox-es-field .iox-field__control:focus-visible": {
|
|
1512
1526
|
readonly "border-color": "var(--iox-accent-text)";
|
|
1513
1527
|
readonly "box-shadow": "var(--iox-field-focus)";
|
|
1514
|
-
readonly outline: "
|
|
1528
|
+
readonly outline: "2px solid transparent";
|
|
1529
|
+
readonly "outline-offset": "2px";
|
|
1515
1530
|
};
|
|
1516
1531
|
readonly ".iox-es-field .iox-field__label": {
|
|
1517
1532
|
readonly "font-family": "var(--iox-font-body)";
|
|
@@ -1519,6 +1534,12 @@ declare const SPEC_FIELD_CLASS_BASELINE: {
|
|
|
1519
1534
|
readonly "font-weight": "var(--iox-field-label-weight)";
|
|
1520
1535
|
readonly color: "var(--iox-text)";
|
|
1521
1536
|
};
|
|
1537
|
+
readonly ".iox-es-field .iox-field__option": {
|
|
1538
|
+
readonly "font-family": "var(--iox-font-body)";
|
|
1539
|
+
readonly "font-size": "var(--iox-size-body)";
|
|
1540
|
+
readonly color: "var(--iox-text)";
|
|
1541
|
+
readonly cursor: "pointer";
|
|
1542
|
+
};
|
|
1522
1543
|
readonly ".iox-es-field .iox-field__help": {
|
|
1523
1544
|
readonly "font-size": "var(--iox-size-small)";
|
|
1524
1545
|
readonly color: "var(--iox-text-muted)";
|
|
@@ -1534,11 +1555,121 @@ declare const SPEC_FIELD_CLASS_BASELINE: {
|
|
|
1534
1555
|
readonly color: "var(--iox-text-muted)";
|
|
1535
1556
|
readonly opacity: "1";
|
|
1536
1557
|
};
|
|
1537
|
-
readonly ".iox-es-field .iox-field__control:
|
|
1558
|
+
readonly ".iox-es-field .iox-field__control:disabled": {
|
|
1559
|
+
readonly opacity: "0.55";
|
|
1560
|
+
readonly cursor: "not-allowed";
|
|
1561
|
+
};
|
|
1562
|
+
readonly ".iox-es-field .iox-field__control:where(.iox-field__control--switch, [type='range'])": {
|
|
1538
1563
|
readonly border: "none";
|
|
1539
1564
|
readonly padding: "0";
|
|
1540
1565
|
readonly background: "transparent";
|
|
1541
|
-
|
|
1566
|
+
};
|
|
1567
|
+
readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio'])": {
|
|
1568
|
+
readonly appearance: "none";
|
|
1569
|
+
readonly "-webkit-appearance": "none";
|
|
1570
|
+
readonly display: "inline-grid";
|
|
1571
|
+
readonly "place-content": "center";
|
|
1572
|
+
readonly "flex-shrink": "0";
|
|
1573
|
+
readonly margin: "0";
|
|
1574
|
+
readonly padding: "0";
|
|
1575
|
+
readonly "inline-size": "1.25em";
|
|
1576
|
+
readonly "block-size": "1.25em";
|
|
1577
|
+
readonly "vertical-align": "middle";
|
|
1578
|
+
readonly cursor: "pointer";
|
|
1579
|
+
readonly background: "var(--iox-surface)";
|
|
1580
|
+
readonly "border-color": "var(--iox-line-strong)";
|
|
1581
|
+
readonly "border-radius": "var(--iox-radius-xs)";
|
|
1582
|
+
readonly transition: "background var(--iox-dur-fast) var(--iox-ease-standard), border-color var(--iox-dur-fast) var(--iox-ease-standard), box-shadow var(--iox-dur-fast) var(--iox-ease-standard)";
|
|
1583
|
+
};
|
|
1584
|
+
readonly ".iox-es-field .iox-field__control[type='radio']": {
|
|
1585
|
+
readonly "border-radius": "50%";
|
|
1586
|
+
};
|
|
1587
|
+
readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio'])::before": {
|
|
1588
|
+
readonly content: "''";
|
|
1589
|
+
readonly "inline-size": "0.28em";
|
|
1590
|
+
readonly "block-size": "0.56em";
|
|
1591
|
+
readonly "border-style": "solid";
|
|
1592
|
+
readonly "border-color": "var(--iox-accent-ink)";
|
|
1593
|
+
readonly "border-width": "0 0.14em 0.14em 0";
|
|
1594
|
+
readonly transform: "translateY(-0.08em) rotate(45deg) scale(0)";
|
|
1595
|
+
readonly transition: "transform var(--iox-dur-fast) var(--iox-ease-standard)";
|
|
1596
|
+
};
|
|
1597
|
+
readonly ".iox-es-field .iox-field__control[type='radio']::before": {
|
|
1598
|
+
readonly "inline-size": "0";
|
|
1599
|
+
readonly "block-size": "0";
|
|
1600
|
+
readonly "border-width": "0.25em";
|
|
1601
|
+
readonly "border-radius": "50%";
|
|
1602
|
+
readonly transform: "scale(0)";
|
|
1603
|
+
};
|
|
1604
|
+
readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):hover": {
|
|
1605
|
+
readonly "border-color": "var(--iox-accent-text)";
|
|
1606
|
+
};
|
|
1607
|
+
readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked": {
|
|
1608
|
+
readonly background: "var(--iox-accent)";
|
|
1609
|
+
readonly "border-color": "var(--iox-accent-text)";
|
|
1610
|
+
};
|
|
1611
|
+
readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked:hover": {
|
|
1612
|
+
readonly background: "var(--iox-accent-hover)";
|
|
1613
|
+
};
|
|
1614
|
+
readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked::before": {
|
|
1615
|
+
readonly transform: "translateY(-0.08em) rotate(45deg) scale(1)";
|
|
1616
|
+
};
|
|
1617
|
+
readonly ".iox-es-field .iox-field__control[type='radio']:checked::before": {
|
|
1618
|
+
readonly transform: "scale(1)";
|
|
1619
|
+
};
|
|
1620
|
+
readonly ".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):focus-visible": {
|
|
1621
|
+
readonly "box-shadow": "var(--iox-focus-ring)";
|
|
1622
|
+
};
|
|
1623
|
+
readonly ".iox-es-field .iox-field__control:where([type='range'])": {
|
|
1624
|
+
readonly appearance: "none";
|
|
1625
|
+
readonly "-webkit-appearance": "none";
|
|
1626
|
+
readonly "inline-size": "100%";
|
|
1627
|
+
readonly "block-size": "1.25em";
|
|
1628
|
+
readonly cursor: "pointer";
|
|
1629
|
+
};
|
|
1630
|
+
readonly ".iox-es-field .iox-field__control:where([type='range'])::-webkit-slider-runnable-track": {
|
|
1631
|
+
readonly "block-size": "0.25em";
|
|
1632
|
+
readonly "border-radius": "var(--iox-radius-pill)";
|
|
1633
|
+
readonly background: "var(--iox-line-strong)";
|
|
1634
|
+
readonly outline: "1px solid transparent";
|
|
1635
|
+
};
|
|
1636
|
+
readonly ".iox-es-field .iox-field__control:where([type='range'])::-moz-range-track": {
|
|
1637
|
+
readonly "block-size": "0.25em";
|
|
1638
|
+
readonly "border-radius": "var(--iox-radius-pill)";
|
|
1639
|
+
readonly background: "var(--iox-line-strong)";
|
|
1640
|
+
readonly outline: "1px solid transparent";
|
|
1641
|
+
};
|
|
1642
|
+
readonly ".iox-es-field .iox-field__control:where([type='range'])::-webkit-slider-thumb": {
|
|
1643
|
+
readonly appearance: "none";
|
|
1644
|
+
readonly "-webkit-appearance": "none";
|
|
1645
|
+
readonly "inline-size": "1.25em";
|
|
1646
|
+
readonly "block-size": "1.25em";
|
|
1647
|
+
readonly "border-radius": "50%";
|
|
1648
|
+
readonly background: "var(--iox-accent-text)";
|
|
1649
|
+
readonly border: "2px solid var(--iox-bg)";
|
|
1650
|
+
readonly "box-sizing": "border-box";
|
|
1651
|
+
readonly cursor: "pointer";
|
|
1652
|
+
readonly "margin-block-start": "-0.5em";
|
|
1653
|
+
};
|
|
1654
|
+
readonly ".iox-es-field .iox-field__control:where([type='range'])::-moz-range-thumb": {
|
|
1655
|
+
readonly appearance: "none";
|
|
1656
|
+
readonly "-webkit-appearance": "none";
|
|
1657
|
+
readonly "inline-size": "1.25em";
|
|
1658
|
+
readonly "block-size": "1.25em";
|
|
1659
|
+
readonly "border-radius": "50%";
|
|
1660
|
+
readonly background: "var(--iox-accent-text)";
|
|
1661
|
+
readonly border: "2px solid var(--iox-bg)";
|
|
1662
|
+
readonly "box-sizing": "border-box";
|
|
1663
|
+
readonly cursor: "pointer";
|
|
1664
|
+
};
|
|
1665
|
+
readonly ".iox-es-field .iox-field__control:where([type='range']):focus-visible": {
|
|
1666
|
+
readonly "box-shadow": "none";
|
|
1667
|
+
};
|
|
1668
|
+
readonly ".iox-es-field .iox-field__control:where([type='range']):focus-visible::-webkit-slider-thumb": {
|
|
1669
|
+
readonly "box-shadow": "var(--iox-focus-ring)";
|
|
1670
|
+
};
|
|
1671
|
+
readonly ".iox-es-field .iox-field__control:where([type='range']):focus-visible::-moz-range-thumb": {
|
|
1672
|
+
readonly "box-shadow": "var(--iox-focus-ring)";
|
|
1542
1673
|
};
|
|
1543
1674
|
readonly ".iox-es-field .iox-field__control--switch": {
|
|
1544
1675
|
readonly background: "var(--iox-text-muted)";
|
|
@@ -1699,9 +1830,32 @@ declare const SPEC_CONTRAST_AUDIT: {
|
|
|
1699
1830
|
readonly thumb: "var(--iox-bg)";
|
|
1700
1831
|
readonly min: 3;
|
|
1701
1832
|
}, {
|
|
1702
|
-
readonly part: "checkbox · radio
|
|
1833
|
+
readonly part: "checkbox · radio edge";
|
|
1834
|
+
readonly fg: "var(--iox-line-strong)";
|
|
1835
|
+
readonly min: 3;
|
|
1836
|
+
}, {
|
|
1837
|
+
readonly part: "checkbox · radio edge on its fill";
|
|
1838
|
+
readonly fg: "var(--iox-line-strong)";
|
|
1839
|
+
readonly on: "var(--iox-surface)";
|
|
1840
|
+
readonly min: 3;
|
|
1841
|
+
}, {
|
|
1842
|
+
readonly part: "checkbox · radio checked";
|
|
1843
|
+
readonly fg: readonly ["var(--iox-accent-text)", "var(--iox-accent)"];
|
|
1844
|
+
readonly any: true;
|
|
1845
|
+
readonly min: 3;
|
|
1846
|
+
}, {
|
|
1847
|
+
readonly part: "check mark · radio dot";
|
|
1848
|
+
readonly fg: "var(--iox-accent-ink)";
|
|
1849
|
+
readonly on: "var(--iox-accent)";
|
|
1850
|
+
readonly min: 3;
|
|
1851
|
+
}, {
|
|
1852
|
+
readonly part: "hover edge · range thumb";
|
|
1703
1853
|
readonly fg: "var(--iox-accent-text)";
|
|
1704
1854
|
readonly min: 3;
|
|
1855
|
+
}, {
|
|
1856
|
+
readonly part: "range track";
|
|
1857
|
+
readonly fg: "var(--iox-line-strong)";
|
|
1858
|
+
readonly min: 3;
|
|
1705
1859
|
}];
|
|
1706
1860
|
};
|
|
1707
1861
|
declare const SPEC_LEGACY_ALIASES: {
|
|
@@ -9436,6 +9590,30 @@ declare function emptyImageSrc(node: {
|
|
|
9436
9590
|
elementStyle?: string | null;
|
|
9437
9591
|
} | null | undefined, src: unknown, label?: string | null): string | null;
|
|
9438
9592
|
|
|
9593
|
+
/**
|
|
9594
|
+
* Where a node links (W1.1). Link and LinkedContainer always had two link types — an external URL or a
|
|
9595
|
+
* website PAGE by its route — and ButtonBlock now has the same pair, so a composed "Get in touch" button
|
|
9596
|
+
* is a page link the builder shows as `/contact`, not a hand-built URL. Framework-free: the composer
|
|
9597
|
+
* (generation-core) writes it, the builder canvas and both engine render paths read it.
|
|
9598
|
+
*/
|
|
9599
|
+
declare enum LinkType {
|
|
9600
|
+
External = "external",
|
|
9601
|
+
Page = "page"
|
|
9602
|
+
}
|
|
9603
|
+
interface ButtonBlockLinkProps {
|
|
9604
|
+
tag?: unknown;
|
|
9605
|
+
linkType?: unknown;
|
|
9606
|
+
href?: unknown;
|
|
9607
|
+
pageRoute?: unknown;
|
|
9608
|
+
}
|
|
9609
|
+
/**
|
|
9610
|
+
* The href a ButtonBlock renders, or `null` for none (it is a `<button>`, or a link with no target).
|
|
9611
|
+
* Only an `<a>` links. A page link's route goes through `pageHref` — the engine's `resolvePageHref`
|
|
9612
|
+
* (`:params` substituted, base-relative); the builder canvas passes none and shows the route as authored,
|
|
9613
|
+
* as its Link does.
|
|
9614
|
+
*/
|
|
9615
|
+
declare function buttonBlockHref(props: ButtonBlockLinkProps, pageHref?: (route: string) => string): string | null;
|
|
9616
|
+
|
|
9439
9617
|
/**
|
|
9440
9618
|
* BRAND DERIVATION (flavors plan §6, F2): one colour in, an asserted accessible ramp out.
|
|
9441
9619
|
*
|
|
@@ -9629,7 +9807,8 @@ declare function preTintAccentGrounds(palette: FlavorPalette): {
|
|
|
9629
9807
|
* - `inherit` → the container's ink, a transparent fill → what is under it, translucent fills composited,
|
|
9630
9808
|
* a gradient ground (Glass's mesh, Midnight's glow) checked at its worst stop;
|
|
9631
9809
|
* - base and hover; a button's icon read through the contract's `inkScopes` (it takes the button's ink),
|
|
9632
|
-
* its focus ring; the form parts the field baseline paints (`contrastAudit.formParts`)
|
|
9810
|
+
* its focus ring; the form parts the field baseline paints (`contrastAudit.formParts`); the form's
|
|
9811
|
+
* Success / Error notices, in every scheme and container.
|
|
9633
9812
|
*
|
|
9634
9813
|
* WCAG 2: 4.5:1 for text, 3:1 for glyphs, UI boundaries and focus indicators (1.4.11), judged on 8-bit
|
|
9635
9814
|
* colours. The same audit gates the contract (`colour.mjs auditContrast`, every flavor × tint × a seed
|
|
@@ -10193,5 +10372,5 @@ interface FontFamilyRemoval {
|
|
|
10193
10372
|
*/
|
|
10194
10373
|
declare function planFontFamilyRemoval(existing: ReadonlyArray<StoredDesignTokenRow>, previous: StoredDesign, family: string): FontFamilyRemoval;
|
|
10195
10374
|
|
|
10196
|
-
export { ACCENT_TOKEN_NAMES, AdoptOutcome, AdoptSkipReason, BUTTON_VARIANT_TO_STYLE, 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, 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, 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_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, buildFlavorTokens, buildFontFaceCss, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designBaseline, designConfigEntries, designModeOf, 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, 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, resolveDesignChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, sameDesignChoices, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, writeOwnedTrait };
|
|
10197
|
-
export type { AccentBackgrounds, AccentGround, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, ApplyElementStyleResult, ColourCheck, ColourFlavor, ContrastFinding, DensityId, DesignApplyOptions, DesignChoices, DesignClassSource, DesignConfigEntry, DesignMode, 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, OkLab, OwnedTrait, OwnedTraitStatus, PalettePreset, ResolvedMode, Rgb, Rgba, SchemeId, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StoredDesign, StoredDesignTokenRow, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, TintId, TintLevel, TokenCssBlocks, TokenCssOptions };
|
|
10375
|
+
export { ACCENT_TOKEN_NAMES, AdoptOutcome, AdoptSkipReason, BUTTON_VARIANT_TO_STYLE, 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, 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, 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_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, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designBaseline, designConfigEntries, designModeOf, 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, 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, resolveDesignChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, sameDesignChoices, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, writeOwnedTrait };
|
|
10376
|
+
export type { AccentBackgrounds, AccentGround, AccentTokenName, AdoptContext, AdoptReport, AdoptableNode, AdoptedNode, ApplyElementStyleResult, ButtonBlockLinkProps, ColourCheck, ColourFlavor, ContrastFinding, DensityId, DesignApplyOptions, DesignChoices, DesignClassSource, DesignConfigEntry, DesignMode, 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, OkLab, OwnedTrait, OwnedTraitStatus, PalettePreset, ResolvedMode, Rgb, Rgba, SchemeId, SeedBaseline, SeedExpectation, ShapeId, SkippedNode, StoredDesign, StoredDesignTokenRow, SupersededStyleValue, SwissMigration, SwitchElementStyleResult, TintId, TintLevel, TokenCssBlocks, TokenCssOptions };
|
|
@@ -1513,6 +1513,23 @@ const SPEC_ELEMENT_STYLES = [
|
|
|
1513
1513
|
"color": "var(--iox-link-hover-color)"
|
|
1514
1514
|
}
|
|
1515
1515
|
},
|
|
1516
|
+
{
|
|
1517
|
+
"id": "button-label",
|
|
1518
|
+
"label": "Button label",
|
|
1519
|
+
"group": "Text",
|
|
1520
|
+
"appliesTo": [
|
|
1521
|
+
"Text"
|
|
1522
|
+
],
|
|
1523
|
+
"base": {
|
|
1524
|
+
"fontFamily": "inherit",
|
|
1525
|
+
"fontSize": "inherit",
|
|
1526
|
+
"fontWeight": "inherit",
|
|
1527
|
+
"lineHeight": "inherit",
|
|
1528
|
+
"letterSpacing": "inherit",
|
|
1529
|
+
"textTransform": "inherit",
|
|
1530
|
+
"color": "inherit"
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1516
1533
|
{
|
|
1517
1534
|
"id": "section",
|
|
1518
1535
|
"label": "Section",
|
|
@@ -1798,7 +1815,8 @@ const SPEC_FIELD_CLASS_BASELINE = {
|
|
|
1798
1815
|
".iox-es-field .iox-field__control:focus-visible": {
|
|
1799
1816
|
"border-color": "var(--iox-accent-text)",
|
|
1800
1817
|
"box-shadow": "var(--iox-field-focus)",
|
|
1801
|
-
"outline": "
|
|
1818
|
+
"outline": "2px solid transparent",
|
|
1819
|
+
"outline-offset": "2px"
|
|
1802
1820
|
},
|
|
1803
1821
|
".iox-es-field .iox-field__label": {
|
|
1804
1822
|
"font-family": "var(--iox-font-body)",
|
|
@@ -1806,6 +1824,12 @@ const SPEC_FIELD_CLASS_BASELINE = {
|
|
|
1806
1824
|
"font-weight": "var(--iox-field-label-weight)",
|
|
1807
1825
|
"color": "var(--iox-text)"
|
|
1808
1826
|
},
|
|
1827
|
+
".iox-es-field .iox-field__option": {
|
|
1828
|
+
"font-family": "var(--iox-font-body)",
|
|
1829
|
+
"font-size": "var(--iox-size-body)",
|
|
1830
|
+
"color": "var(--iox-text)",
|
|
1831
|
+
"cursor": "pointer"
|
|
1832
|
+
},
|
|
1809
1833
|
".iox-es-field .iox-field__help": {
|
|
1810
1834
|
"font-size": "var(--iox-size-small)",
|
|
1811
1835
|
"color": "var(--iox-text-muted)"
|
|
@@ -1821,11 +1845,121 @@ const SPEC_FIELD_CLASS_BASELINE = {
|
|
|
1821
1845
|
"color": "var(--iox-text-muted)",
|
|
1822
1846
|
"opacity": "1"
|
|
1823
1847
|
},
|
|
1824
|
-
".iox-es-field .iox-field__control:
|
|
1848
|
+
".iox-es-field .iox-field__control:disabled": {
|
|
1849
|
+
"opacity": "0.55",
|
|
1850
|
+
"cursor": "not-allowed"
|
|
1851
|
+
},
|
|
1852
|
+
".iox-es-field .iox-field__control:where(.iox-field__control--switch, [type='range'])": {
|
|
1825
1853
|
"border": "none",
|
|
1826
1854
|
"padding": "0",
|
|
1827
|
-
"background": "transparent"
|
|
1828
|
-
|
|
1855
|
+
"background": "transparent"
|
|
1856
|
+
},
|
|
1857
|
+
".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio'])": {
|
|
1858
|
+
"appearance": "none",
|
|
1859
|
+
"-webkit-appearance": "none",
|
|
1860
|
+
"display": "inline-grid",
|
|
1861
|
+
"place-content": "center",
|
|
1862
|
+
"flex-shrink": "0",
|
|
1863
|
+
"margin": "0",
|
|
1864
|
+
"padding": "0",
|
|
1865
|
+
"inline-size": "1.25em",
|
|
1866
|
+
"block-size": "1.25em",
|
|
1867
|
+
"vertical-align": "middle",
|
|
1868
|
+
"cursor": "pointer",
|
|
1869
|
+
"background": "var(--iox-surface)",
|
|
1870
|
+
"border-color": "var(--iox-line-strong)",
|
|
1871
|
+
"border-radius": "var(--iox-radius-xs)",
|
|
1872
|
+
"transition": "background var(--iox-dur-fast) var(--iox-ease-standard), border-color var(--iox-dur-fast) var(--iox-ease-standard), box-shadow var(--iox-dur-fast) var(--iox-ease-standard)"
|
|
1873
|
+
},
|
|
1874
|
+
".iox-es-field .iox-field__control[type='radio']": {
|
|
1875
|
+
"border-radius": "50%"
|
|
1876
|
+
},
|
|
1877
|
+
".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio'])::before": {
|
|
1878
|
+
"content": "''",
|
|
1879
|
+
"inline-size": "0.28em",
|
|
1880
|
+
"block-size": "0.56em",
|
|
1881
|
+
"border-style": "solid",
|
|
1882
|
+
"border-color": "var(--iox-accent-ink)",
|
|
1883
|
+
"border-width": "0 0.14em 0.14em 0",
|
|
1884
|
+
"transform": "translateY(-0.08em) rotate(45deg) scale(0)",
|
|
1885
|
+
"transition": "transform var(--iox-dur-fast) var(--iox-ease-standard)"
|
|
1886
|
+
},
|
|
1887
|
+
".iox-es-field .iox-field__control[type='radio']::before": {
|
|
1888
|
+
"inline-size": "0",
|
|
1889
|
+
"block-size": "0",
|
|
1890
|
+
"border-width": "0.25em",
|
|
1891
|
+
"border-radius": "50%",
|
|
1892
|
+
"transform": "scale(0)"
|
|
1893
|
+
},
|
|
1894
|
+
".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):hover": {
|
|
1895
|
+
"border-color": "var(--iox-accent-text)"
|
|
1896
|
+
},
|
|
1897
|
+
".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked": {
|
|
1898
|
+
"background": "var(--iox-accent)",
|
|
1899
|
+
"border-color": "var(--iox-accent-text)"
|
|
1900
|
+
},
|
|
1901
|
+
".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked:hover": {
|
|
1902
|
+
"background": "var(--iox-accent-hover)"
|
|
1903
|
+
},
|
|
1904
|
+
".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):checked::before": {
|
|
1905
|
+
"transform": "translateY(-0.08em) rotate(45deg) scale(1)"
|
|
1906
|
+
},
|
|
1907
|
+
".iox-es-field .iox-field__control[type='radio']:checked::before": {
|
|
1908
|
+
"transform": "scale(1)"
|
|
1909
|
+
},
|
|
1910
|
+
".iox-es-field .iox-field__control:where([type='checkbox']:not(.iox-field__control--switch), [type='radio']):focus-visible": {
|
|
1911
|
+
"box-shadow": "var(--iox-focus-ring)"
|
|
1912
|
+
},
|
|
1913
|
+
".iox-es-field .iox-field__control:where([type='range'])": {
|
|
1914
|
+
"appearance": "none",
|
|
1915
|
+
"-webkit-appearance": "none",
|
|
1916
|
+
"inline-size": "100%",
|
|
1917
|
+
"block-size": "1.25em",
|
|
1918
|
+
"cursor": "pointer"
|
|
1919
|
+
},
|
|
1920
|
+
".iox-es-field .iox-field__control:where([type='range'])::-webkit-slider-runnable-track": {
|
|
1921
|
+
"block-size": "0.25em",
|
|
1922
|
+
"border-radius": "var(--iox-radius-pill)",
|
|
1923
|
+
"background": "var(--iox-line-strong)",
|
|
1924
|
+
"outline": "1px solid transparent"
|
|
1925
|
+
},
|
|
1926
|
+
".iox-es-field .iox-field__control:where([type='range'])::-moz-range-track": {
|
|
1927
|
+
"block-size": "0.25em",
|
|
1928
|
+
"border-radius": "var(--iox-radius-pill)",
|
|
1929
|
+
"background": "var(--iox-line-strong)",
|
|
1930
|
+
"outline": "1px solid transparent"
|
|
1931
|
+
},
|
|
1932
|
+
".iox-es-field .iox-field__control:where([type='range'])::-webkit-slider-thumb": {
|
|
1933
|
+
"appearance": "none",
|
|
1934
|
+
"-webkit-appearance": "none",
|
|
1935
|
+
"inline-size": "1.25em",
|
|
1936
|
+
"block-size": "1.25em",
|
|
1937
|
+
"border-radius": "50%",
|
|
1938
|
+
"background": "var(--iox-accent-text)",
|
|
1939
|
+
"border": "2px solid var(--iox-bg)",
|
|
1940
|
+
"box-sizing": "border-box",
|
|
1941
|
+
"cursor": "pointer",
|
|
1942
|
+
"margin-block-start": "-0.5em"
|
|
1943
|
+
},
|
|
1944
|
+
".iox-es-field .iox-field__control:where([type='range'])::-moz-range-thumb": {
|
|
1945
|
+
"appearance": "none",
|
|
1946
|
+
"-webkit-appearance": "none",
|
|
1947
|
+
"inline-size": "1.25em",
|
|
1948
|
+
"block-size": "1.25em",
|
|
1949
|
+
"border-radius": "50%",
|
|
1950
|
+
"background": "var(--iox-accent-text)",
|
|
1951
|
+
"border": "2px solid var(--iox-bg)",
|
|
1952
|
+
"box-sizing": "border-box",
|
|
1953
|
+
"cursor": "pointer"
|
|
1954
|
+
},
|
|
1955
|
+
".iox-es-field .iox-field__control:where([type='range']):focus-visible": {
|
|
1956
|
+
"box-shadow": "none"
|
|
1957
|
+
},
|
|
1958
|
+
".iox-es-field .iox-field__control:where([type='range']):focus-visible::-webkit-slider-thumb": {
|
|
1959
|
+
"box-shadow": "var(--iox-focus-ring)"
|
|
1960
|
+
},
|
|
1961
|
+
".iox-es-field .iox-field__control:where([type='range']):focus-visible::-moz-range-thumb": {
|
|
1962
|
+
"box-shadow": "var(--iox-focus-ring)"
|
|
1829
1963
|
},
|
|
1830
1964
|
".iox-es-field .iox-field__control--switch": {
|
|
1831
1965
|
"background": "var(--iox-text-muted)",
|
|
@@ -2029,9 +2163,40 @@ const SPEC_CONTRAST_AUDIT = {
|
|
|
2029
2163
|
"min": 3
|
|
2030
2164
|
},
|
|
2031
2165
|
{
|
|
2032
|
-
"part": "checkbox · radio
|
|
2166
|
+
"part": "checkbox · radio edge",
|
|
2167
|
+
"fg": "var(--iox-line-strong)",
|
|
2168
|
+
"min": 3
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
"part": "checkbox · radio edge on its fill",
|
|
2172
|
+
"fg": "var(--iox-line-strong)",
|
|
2173
|
+
"on": "var(--iox-surface)",
|
|
2174
|
+
"min": 3
|
|
2175
|
+
},
|
|
2176
|
+
{
|
|
2177
|
+
"part": "checkbox · radio checked",
|
|
2178
|
+
"fg": [
|
|
2179
|
+
"var(--iox-accent-text)",
|
|
2180
|
+
"var(--iox-accent)"
|
|
2181
|
+
],
|
|
2182
|
+
"any": true,
|
|
2183
|
+
"min": 3
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
"part": "check mark · radio dot",
|
|
2187
|
+
"fg": "var(--iox-accent-ink)",
|
|
2188
|
+
"on": "var(--iox-accent)",
|
|
2189
|
+
"min": 3
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
"part": "hover edge · range thumb",
|
|
2033
2193
|
"fg": "var(--iox-accent-text)",
|
|
2034
2194
|
"min": 3
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
"part": "range track",
|
|
2198
|
+
"fg": "var(--iox-line-strong)",
|
|
2199
|
+
"min": 3
|
|
2035
2200
|
}
|
|
2036
2201
|
]
|
|
2037
2202
|
};
|
|
@@ -11269,6 +11434,31 @@ function emptyImageSrc(node, src, label) {
|
|
|
11269
11434
|
return emptyImagePlaceholder(node, label);
|
|
11270
11435
|
}
|
|
11271
11436
|
|
|
11437
|
+
/**
|
|
11438
|
+
* Where a node links (W1.1). Link and LinkedContainer always had two link types — an external URL or a
|
|
11439
|
+
* website PAGE by its route — and ButtonBlock now has the same pair, so a composed "Get in touch" button
|
|
11440
|
+
* is a page link the builder shows as `/contact`, not a hand-built URL. Framework-free: the composer
|
|
11441
|
+
* (generation-core) writes it, the builder canvas and both engine render paths read it.
|
|
11442
|
+
*/
|
|
11443
|
+
var LinkType;
|
|
11444
|
+
(function (LinkType) {
|
|
11445
|
+
LinkType["External"] = "external";
|
|
11446
|
+
LinkType["Page"] = "page";
|
|
11447
|
+
})(LinkType || (LinkType = {}));
|
|
11448
|
+
const ANCHOR_TAG = 'a';
|
|
11449
|
+
/**
|
|
11450
|
+
* The href a ButtonBlock renders, or `null` for none (it is a `<button>`, or a link with no target).
|
|
11451
|
+
* Only an `<a>` links. A page link's route goes through `pageHref` — the engine's `resolvePageHref`
|
|
11452
|
+
* (`:params` substituted, base-relative); the builder canvas passes none and shows the route as authored,
|
|
11453
|
+
* as its Link does.
|
|
11454
|
+
*/
|
|
11455
|
+
function buttonBlockHref(props, pageHref = route => route) {
|
|
11456
|
+
if (props.tag !== ANCHOR_TAG)
|
|
11457
|
+
return null;
|
|
11458
|
+
const href = props.linkType === LinkType.Page ? pageHref(String(props.pageRoute ?? '')) : String(props.href ?? '');
|
|
11459
|
+
return href || null;
|
|
11460
|
+
}
|
|
11461
|
+
|
|
11272
11462
|
function parseHexColor(hex) {
|
|
11273
11463
|
const m = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i.exec((hex ?? '').trim());
|
|
11274
11464
|
if (!m)
|
|
@@ -11999,11 +12189,11 @@ function auditDesignContrast(rows, mode) {
|
|
|
11999
12189
|
check(FIELD, `${part.part} thumb`, parseCssColour(resolveIn(values, part.thumb), boxInk), bgs.map(b => compositeOver(paint, b)), part.min);
|
|
12000
12190
|
}
|
|
12001
12191
|
}
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12192
|
+
// A form's Success / Error notice sits wherever its form does — on the section in every scheme
|
|
12193
|
+
// AND inside every container (the Studio's contact form lives in a Card): W1.1.
|
|
12194
|
+
for (const n of notices) {
|
|
12195
|
+
const fill = paintColours(resolveIn(values, ownStyle(n)['backgroundColor']), boxInk);
|
|
12196
|
+
check(n.id, 'text', parseCssColour(resolveIn(values, ownStyle(n)['color']), boxInk), overAll(fill, bgs), WCAG_AA_TEXT);
|
|
12007
12197
|
}
|
|
12008
12198
|
}
|
|
12009
12199
|
}
|
|
@@ -13276,5 +13466,5 @@ function planFontFamilyRemoval(existing, previous, family) {
|
|
|
13276
13466
|
* Generated bundle index. Do not edit.
|
|
13277
13467
|
*/
|
|
13278
13468
|
|
|
13279
|
-
export { ACCENT_TOKEN_NAMES, AdoptOutcome, AdoptSkipReason, BUTTON_VARIANT_TO_STYLE, 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, 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, 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_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, buildFlavorTokens, buildFontFaceCss, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designBaseline, designConfigEntries, designModeOf, 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, 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, resolveDesignChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, sameDesignChoices, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, writeOwnedTrait };
|
|
13469
|
+
export { ACCENT_TOKEN_NAMES, AdoptOutcome, AdoptSkipReason, BUTTON_VARIANT_TO_STYLE, 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, 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, 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_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, buildFlavorTokens, buildFontFaceCss, buttonBlockHref, catalogFontId, checkFontWeight, choicesForPack, colorSchemeClass, colorSchemeOf, colourTabChecks, compareFontWeights, compileSchemeCss, compileTokenCss, compileTokenCssBlocks, compositeOver, cssString, defaultDesignChoices, defaultElementStyleFor, deriveAccentTokens, deriveBrandTokens, designBaseline, designConfigEntries, designModeOf, 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, 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, resolveDesignChoices, resolveSchemeTokenValues, resolveTokenReferences, resolveTokenValues, revertAvailable, rgbToOklab, ringColour, sameDesignChoices, specTokenNames, splitTopLevel, springToLinear, stackNamesFamily, styleKeyToKebab, switchElementStyle, syncNodeDesignClasses, toHexColor, tokenReferences, tokensToDarkVarMap, tokensToVarMap, unknownTokenReferences, untouchedSeedRow, userFontStack, validateFlavorPack, wcagContrastRatio, writeOwnedTrait };
|
|
13280
13470
|
//# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map
|