@vectoriox/iox-ui 5.36.0 → 5.38.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.
Files changed (43) hide show
  1. package/actions-core/index.d.ts +17 -3
  2. package/composite-core/index.d.ts +463 -31
  3. package/design-core/index.d.ts +130 -3
  4. package/fesm2022/vectoriox-iox-ui-actions-core.mjs +33 -3
  5. package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
  6. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +1062 -121
  7. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  8. package/fesm2022/vectoriox-iox-ui-design-core.mjs +172 -3
  9. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +410 -10
  11. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  12. package/fesm2022/vectoriox-iox-ui-media-core.mjs +571 -0
  13. package/fesm2022/vectoriox-iox-ui-media-core.mjs.map +1 -0
  14. package/fesm2022/vectoriox-iox-ui.mjs +482 -120
  15. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  16. package/generation-core/index.d.ts +167 -4
  17. package/index.d.ts +209 -25
  18. package/media-core/index.d.ts +277 -0
  19. package/media-core/package.json +3 -0
  20. package/package.json +5 -1
  21. package/src/actions-core/action.model.ts +4 -2
  22. package/src/actions-core/element-actions.ts +37 -2
  23. package/src/composite-core/accordion-runtime.ts +117 -28
  24. package/src/composite-core/accordion.ts +89 -45
  25. package/src/composite-core/composite-kinds.ts +110 -0
  26. package/src/composite-core/composite-node.ts +15 -0
  27. package/src/composite-core/disclosure.ts +125 -0
  28. package/src/composite-core/lightbox.ts +192 -0
  29. package/src/composite-core/public-api.ts +7 -1
  30. package/src/composite-core/slider-runtime.ts +180 -0
  31. package/src/composite-core/slider.ts +378 -0
  32. package/src/composite-core/structure.ts +25 -5
  33. package/src/design-core/element-styles.ts +27 -0
  34. package/src/design-core/flavor-spec.generated.ts +146 -2
  35. package/src/generation-core/baseline-roles.ts +2 -0
  36. package/src/generation-core/compose-site.ts +80 -4
  37. package/src/generation-core/node-baselines.generated.ts +148 -4
  38. package/src/generation-core/patterns.ts +17 -0
  39. package/src/generation-core/site-spec.generated.ts +164 -0
  40. package/src/media-core/public-api.ts +9 -0
  41. package/src/media-core/video-runtime.ts +239 -0
  42. package/src/media-core/video.ts +443 -0
  43. package/styles/iox-design.css +96 -0
@@ -1106,6 +1106,21 @@ const SPEC_TIERS = {
1106
1106
  "name": "media-scrim-ink",
1107
1107
  "type": "color",
1108
1108
  "default": "#FFFFFF"
1109
+ },
1110
+ {
1111
+ "name": "video-play-bg",
1112
+ "type": "color",
1113
+ "default": "var(--iox-button-primary-bg)"
1114
+ },
1115
+ {
1116
+ "name": "video-play-ink",
1117
+ "type": "color",
1118
+ "default": "var(--iox-button-primary-ink)"
1119
+ },
1120
+ {
1121
+ "name": "video-play-size",
1122
+ "type": "size",
1123
+ "default": "64px"
1109
1124
  }
1110
1125
  ]
1111
1126
  };
@@ -1775,7 +1790,8 @@ const SPEC_ELEMENT_STYLES = [
1775
1790
  "appliesTo": [
1776
1791
  "Container",
1777
1792
  "LinkedContainer",
1778
- "Card"
1793
+ "Card",
1794
+ "SliderSlide"
1779
1795
  ],
1780
1796
  "base": {
1781
1797
  "color": "inherit",
@@ -1930,7 +1946,8 @@ const SPEC_ELEMENT_STYLES = [
1930
1946
  "appliesTo": [
1931
1947
  "Image",
1932
1948
  "SliderSlide",
1933
- "Gallery"
1949
+ "Gallery",
1950
+ "Video"
1934
1951
  ],
1935
1952
  "base": {
1936
1953
  "borderRadius": "var(--iox-image-radius)",
@@ -2175,6 +2192,7 @@ const SPEC_DEFAULT_ELEMENT_STYLE = {
2175
2192
  "Link": "link",
2176
2193
  "Image": "media",
2177
2194
  "SliderSlide": "media",
2195
+ "Video": "media",
2178
2196
  "Divider": "rule",
2179
2197
  "Icon": "icon",
2180
2198
  "Dialog": "dialog",
@@ -4270,6 +4288,27 @@ const SPEC_FLAVOR_PACKS = [
4270
4288
  "type": "color",
4271
4289
  "group": "components",
4272
4290
  "value": "#FFFFFF"
4291
+ },
4292
+ {
4293
+ "name": "video-play-bg",
4294
+ "tier": "component",
4295
+ "type": "color",
4296
+ "group": "components",
4297
+ "value": "var(--iox-button-primary-bg)"
4298
+ },
4299
+ {
4300
+ "name": "video-play-ink",
4301
+ "tier": "component",
4302
+ "type": "color",
4303
+ "group": "components",
4304
+ "value": "var(--iox-button-primary-ink)"
4305
+ },
4306
+ {
4307
+ "name": "video-play-size",
4308
+ "tier": "component",
4309
+ "type": "size",
4310
+ "group": "components",
4311
+ "value": "64px"
4273
4312
  }
4274
4313
  ]
4275
4314
  },
@@ -5892,6 +5931,27 @@ const SPEC_FLAVOR_PACKS = [
5892
5931
  "type": "color",
5893
5932
  "group": "components",
5894
5933
  "value": "#FFFFFF"
5934
+ },
5935
+ {
5936
+ "name": "video-play-bg",
5937
+ "tier": "component",
5938
+ "type": "color",
5939
+ "group": "components",
5940
+ "value": "var(--iox-button-primary-bg)"
5941
+ },
5942
+ {
5943
+ "name": "video-play-ink",
5944
+ "tier": "component",
5945
+ "type": "color",
5946
+ "group": "components",
5947
+ "value": "var(--iox-button-primary-ink)"
5948
+ },
5949
+ {
5950
+ "name": "video-play-size",
5951
+ "tier": "component",
5952
+ "type": "size",
5953
+ "group": "components",
5954
+ "value": "64px"
5895
5955
  }
5896
5956
  ]
5897
5957
  },
@@ -7506,6 +7566,27 @@ const SPEC_FLAVOR_PACKS = [
7506
7566
  "type": "color",
7507
7567
  "group": "components",
7508
7568
  "value": "#FFFFFF"
7569
+ },
7570
+ {
7571
+ "name": "video-play-bg",
7572
+ "tier": "component",
7573
+ "type": "color",
7574
+ "group": "components",
7575
+ "value": "var(--iox-button-primary-bg)"
7576
+ },
7577
+ {
7578
+ "name": "video-play-ink",
7579
+ "tier": "component",
7580
+ "type": "color",
7581
+ "group": "components",
7582
+ "value": "var(--iox-button-primary-ink)"
7583
+ },
7584
+ {
7585
+ "name": "video-play-size",
7586
+ "tier": "component",
7587
+ "type": "size",
7588
+ "group": "components",
7589
+ "value": "64px"
7509
7590
  }
7510
7591
  ]
7511
7592
  },
@@ -9162,6 +9243,27 @@ const SPEC_FLAVOR_PACKS = [
9162
9243
  "type": "color",
9163
9244
  "group": "components",
9164
9245
  "value": "#FFFFFF"
9246
+ },
9247
+ {
9248
+ "name": "video-play-bg",
9249
+ "tier": "component",
9250
+ "type": "color",
9251
+ "group": "components",
9252
+ "value": "var(--iox-button-primary-bg)"
9253
+ },
9254
+ {
9255
+ "name": "video-play-ink",
9256
+ "tier": "component",
9257
+ "type": "color",
9258
+ "group": "components",
9259
+ "value": "var(--iox-button-primary-ink)"
9260
+ },
9261
+ {
9262
+ "name": "video-play-size",
9263
+ "tier": "component",
9264
+ "type": "size",
9265
+ "group": "components",
9266
+ "value": "64px"
9165
9267
  }
9166
9268
  ]
9167
9269
  },
@@ -10780,6 +10882,27 @@ const SPEC_FLAVOR_PACKS = [
10780
10882
  "type": "color",
10781
10883
  "group": "components",
10782
10884
  "value": "#FFFFFF"
10885
+ },
10886
+ {
10887
+ "name": "video-play-bg",
10888
+ "tier": "component",
10889
+ "type": "color",
10890
+ "group": "components",
10891
+ "value": "var(--iox-button-primary-bg)"
10892
+ },
10893
+ {
10894
+ "name": "video-play-ink",
10895
+ "tier": "component",
10896
+ "type": "color",
10897
+ "group": "components",
10898
+ "value": "var(--iox-button-primary-ink)"
10899
+ },
10900
+ {
10901
+ "name": "video-play-size",
10902
+ "tier": "component",
10903
+ "type": "size",
10904
+ "group": "components",
10905
+ "value": "64px"
10783
10906
  }
10784
10907
  ]
10785
10908
  },
@@ -12405,6 +12528,27 @@ const SPEC_FLAVOR_PACKS = [
12405
12528
  "type": "color",
12406
12529
  "group": "components",
12407
12530
  "value": "#FFFFFF"
12531
+ },
12532
+ {
12533
+ "name": "video-play-bg",
12534
+ "tier": "component",
12535
+ "type": "color",
12536
+ "group": "components",
12537
+ "value": "var(--iox-button-primary-bg)"
12538
+ },
12539
+ {
12540
+ "name": "video-play-ink",
12541
+ "tier": "component",
12542
+ "type": "color",
12543
+ "group": "components",
12544
+ "value": "var(--iox-button-primary-ink)"
12545
+ },
12546
+ {
12547
+ "name": "video-play-size",
12548
+ "tier": "component",
12549
+ "type": "size",
12550
+ "group": "components",
12551
+ "value": "64px"
12408
12552
  }
12409
12553
  ]
12410
12554
  }
@@ -12943,6 +13087,31 @@ function switchElementStyle(target, fromId, toId, baseline = {}) {
12943
13087
  writeEntries(target, to, kept);
12944
13088
  return { applied: true, kept };
12945
13089
  }
13090
+ /**
13091
+ * Take a node OUT of its element style (a part a recipe wants unstyled — a migrated slider's bare chevrons, CC3):
13092
+ * every owned trait still holding the style's value goes back to `baseline` (a state trait is removed); a trait the
13093
+ * author changed is kept. The node then wears no style (no `iox-es` marker). Returns the kept traits.
13094
+ */
13095
+ function releaseElementStyle(target, fromId, baseline = {}) {
13096
+ const kept = [];
13097
+ const from = elementStyleById(fromId);
13098
+ if (from) {
13099
+ for (const status of ownedTraitStatus(target, from.id)) {
13100
+ const ref = status.state ? { trait: status.trait, state: status.state } : { trait: status.trait };
13101
+ if (status.status === OwnedTraitLink.Changed) {
13102
+ if (status.actual !== undefined)
13103
+ kept.push(ref);
13104
+ continue;
13105
+ }
13106
+ if (ref.state)
13107
+ deleteState(target, ref.state, ref.trait);
13108
+ else
13109
+ writeBase(target, ref.trait, baseline[ref.trait]);
13110
+ }
13111
+ }
13112
+ delete target.elementStyle;
13113
+ return kept;
13114
+ }
12946
13115
  /**
12947
13116
  * The element-style MARKER (design-system §3b-bis, spec `elementStyleMarker`). A node that wears an
12948
13117
  * element style renders `iox-es iox-es-<id>` in BOTH renderers, through the one node-class helper
@@ -15870,5 +16039,5 @@ function planFontFamilyRemoval(existing, previous, family) {
15870
16039
  * Generated bundle index. Do not edit.
15871
16040
  */
15872
16041
 
15873
- 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, 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, 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, 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 };
16042
+ 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, 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, 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 };
15874
16043
  //# sourceMappingURL=vectoriox-iox-ui-design-core.mjs.map