@yahoo/uds 3.17.0 → 3.18.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 (64) hide show
  1. package/cli/bin/uds-darwin-arm64-baseline +0 -0
  2. package/cli/bin/uds-linux-arm64 +0 -0
  3. package/cli/bin/uds-linux-x64-baseline +0 -0
  4. package/dist/{Input-Bi0k9lK1.d.cts → Input-Chk6jMTa.d.cts} +1 -1
  5. package/dist/{Input-Bp3nGfpd.d.ts → Input-Dd7-zRx5.d.ts} +1 -1
  6. package/dist/{Pressable-vjs_c2ir.d.cts → Pressable-Bu7fvFeV.d.cts} +1 -1
  7. package/dist/{Pressable-CLPkQKQ5.d.ts → Pressable-Dj8miUTu.d.ts} +1 -1
  8. package/dist/{VStack-BPTqS-dY.d.ts → VStack-DylGPXUr.d.ts} +1 -1
  9. package/dist/{VStack-D5H0I8mo.d.cts → VStack-koRZ9tkP.d.cts} +1 -1
  10. package/dist/chunk-6OYKLY27.js +2 -0
  11. package/dist/{chunk-CJQWF4E7.cjs → chunk-DR45EMIP.cjs} +1 -1
  12. package/dist/chunk-LMKMOCXO.js +2 -0
  13. package/dist/chunk-NW3RYPC2.cjs +1 -0
  14. package/dist/client/Menu.d.cts +3 -3
  15. package/dist/client/Menu.d.ts +3 -3
  16. package/dist/client/index.cjs +1 -1
  17. package/dist/client/index.d.cts +3 -3
  18. package/dist/client/index.d.ts +3 -3
  19. package/dist/client/index.js +1 -1
  20. package/dist/defaultTokensConfig.cjs +1 -0
  21. package/dist/defaultTokensConfig.d.cts +8802 -0
  22. package/dist/defaultTokensConfig.d.ts +8802 -0
  23. package/dist/defaultTokensConfig.js +2 -0
  24. package/dist/experimental/client/SwitchV2.cjs +1 -0
  25. package/dist/experimental/client/SwitchV2.d.cts +1 -1
  26. package/dist/experimental/client/SwitchV2.d.ts +1 -1
  27. package/dist/experimental/client/SwitchV2.js +1 -0
  28. package/dist/{index-DyPB0-IK.d.cts → index-BY904kdp.d.cts} +1 -1
  29. package/dist/{index-B2IMnWzt.d.ts → index-DiG1Pd_3.d.ts} +1 -1
  30. package/dist/index.cjs +1 -1
  31. package/dist/index.d.cts +7 -7
  32. package/dist/index.d.ts +7 -7
  33. package/dist/index.js +1 -1
  34. package/dist/metafile-cjs.json +1 -1
  35. package/dist/metafile-esm.json +1 -1
  36. package/dist/tailwind/plugin.cjs +1 -1
  37. package/dist/tailwind/plugin.d.cts +5 -10
  38. package/dist/tailwind/plugin.d.ts +5 -10
  39. package/dist/tailwind/plugin.js +2 -2
  40. package/dist/tailwind/utils.cjs +1 -1
  41. package/dist/tailwind/utils.d.cts +5 -5
  42. package/dist/tailwind/utils.d.ts +5 -5
  43. package/dist/tailwind/utils.js +1 -1
  44. package/dist/tokens/automation/configs.cjs +1 -1
  45. package/dist/tokens/automation/configs.d.cts +2 -2
  46. package/dist/tokens/automation/configs.d.ts +2 -2
  47. package/dist/tokens/automation/configs.js +1 -1
  48. package/dist/tokens/automation/properties.cjs +1 -1
  49. package/dist/tokens/automation/properties.d.cts +2 -2
  50. package/dist/tokens/automation/properties.d.ts +2 -2
  51. package/dist/tokens/automation/properties.js +1 -1
  52. package/dist/tokens/index.cjs +1 -1
  53. package/dist/tokens/index.d.cts +5 -8799
  54. package/dist/tokens/index.d.ts +5 -8799
  55. package/dist/tokens/index.js +1 -1
  56. package/dist/tokens/parseTokens.d.cts +1 -1
  57. package/dist/tokens/parseTokens.d.ts +1 -1
  58. package/dist/{types-DQT6xsrl.d.cts → types-DSRVFV7Y.d.cts} +1 -1
  59. package/dist/{types-DQT6xsrl.d.ts → types-DSRVFV7Y.d.ts} +1 -1
  60. package/package.json +11 -1
  61. package/cli/FlattenButtonVariant.mock.tsx +0 -17
  62. package/dist/chunk-GDB25UGP.js +0 -2
  63. package/dist/chunk-HT3GLDSF.js +0 -2
  64. package/dist/chunk-WGG66FKO.cjs +0 -1
@@ -1 +1 @@
1
- export{DEFAULT_COLOR_MODE,DEFAULT_COLOR_MODE_FOR_APP,DEFAULT_HIGH_CONTRAST_MODE,DEFAULT_REGION_MODE,DEFAULT_SCALE_MODE,DEFAULT_SCALE_MODE_FOR_APP,FONT_DECLARATIONS_MAP,alwaysPalette,button,cartesianProduct,coalesceConfigVariant,configurableProperties,createComponentStateConfig,createComponentStates,createConfigurableProperty,createLayerConfig,createSubComponentConfig,createVariantConfig,createVariantConfigWithComponentStates,createVariantConfigWithProperties,defaultTokensConfig,defaultUniversalTokensConfigAuto,findFixtureType,fontWeightMap,fromEntries,generateClassName,generateDeclaration,generateKeyFromFlatConfigPath,generateSchemaKey,generateStyles,getConfigDefaultValue,getConfigPseudoStateVariables,getConfigPseudoStateVariablesWithSetter,getConfigSubcomponents,getConfigVariantComponentStates,getConfigVariantComponentStatesMatrix,getConfigVariantProperties,getConfigVariantPseudoStates,getConfigVariants,getDefaultButtonBaseMap,isConfigDefaultValue,parseButtonVariantFlat,parseDeprecatedButtonPaletteVariant,setConfigPseudoStateVariable,shadow,statePseudoMapDocsMode,toMinimalDbConfigObject}from"../chunk-HT3GLDSF.js";export{entries,mapValues}from"../chunk-EWJ3J526.js";export{variants}from"../chunk-NYAQO47N.js";export{AVATAR_SIZE_PREFIX,BORDER_RADIUS_PREFIX,BORDER_WIDTH_PREFIX,BUTTON_CSS_VAR_MAP,DARK_COLOR_MODE_CLASSNAME,DEFAULT_COLOR_MODE_CLASSNAME,DEFAULT_SCALE_MODE_CLASSNAME,FONT_FAMILY_PREFIX,FONT_SIZE_PREFIX,FONT_SLANT_PREFIX,FONT_WEIGHT_PREFIX,FONT_WIDTH_PREFIX,ICON_BUTTON_CSS_VAR_MAP,ICON_SIZE_PREFIX,LARGE_SCALE_MODE_CLASSNAME,LIGHT_COLOR_MODE_CLASSNAME,LINE_HEIGHT_PREFIX,MEDIUM_SCALE_MODE_CLASSNAME,MOTION_PREFIX,PSEUDO_STYLE_SELECTOR_MAP,SMALL_SCALE_MODE_CLASSNAME,SPECTRUM_COLOR_PREFIX,TEXT_RESPONSIVE_CLASSNAME,TEXT_TRANSFORM_PREFIX,UDS_PREFIX,XLARGE_SCALE_MODE_CLASSNAME,XSMALL_SCALE_MODE_CLASSNAME,XXLARGE_SCALE_MODE_CLASSNAME,XXXLARGE_SCALE_MODE_CLASSNAME}from"../chunk-N4FHPR6Q.js";
1
+ export{DEFAULT_COLOR_MODE,DEFAULT_COLOR_MODE_FOR_APP,DEFAULT_HIGH_CONTRAST_MODE,DEFAULT_REGION_MODE,DEFAULT_SCALE_MODE,DEFAULT_SCALE_MODE_FOR_APP,FONT_DECLARATIONS_MAP,alwaysPalette,button,cartesianProduct,coalesceConfigVariant,configurableProperties,createComponentStateConfig,createComponentStates,createConfigurableProperty,createLayerConfig,createSubComponentConfig,createVariantConfig,createVariantConfigWithComponentStates,createVariantConfigWithProperties,findFixtureType,fontWeightMap,fromEntries,generateClassName,generateDeclaration,generateKeyFromFlatConfigPath,generateSchemaKey,generateStyles,getConfigDefaultValue,getConfigPseudoStateVariables,getConfigPseudoStateVariablesWithSetter,getConfigSubcomponents,getConfigVariantComponentStates,getConfigVariantComponentStatesMatrix,getConfigVariantProperties,getConfigVariantPseudoStates,getConfigVariants,getDefaultButtonBaseMap,isConfigDefaultValue,parseButtonVariantFlat,parseDeprecatedButtonPaletteVariant,setConfigPseudoStateVariable,shadow,statePseudoMapDocsMode,toMinimalDbConfigObject}from"../chunk-6OYKLY27.js";export{entries,mapValues}from"../chunk-EWJ3J526.js";export{variants}from"../chunk-NYAQO47N.js";export{AVATAR_SIZE_PREFIX,BORDER_RADIUS_PREFIX,BORDER_WIDTH_PREFIX,BUTTON_CSS_VAR_MAP,DARK_COLOR_MODE_CLASSNAME,DEFAULT_COLOR_MODE_CLASSNAME,DEFAULT_SCALE_MODE_CLASSNAME,FONT_FAMILY_PREFIX,FONT_SIZE_PREFIX,FONT_SLANT_PREFIX,FONT_WEIGHT_PREFIX,FONT_WIDTH_PREFIX,ICON_BUTTON_CSS_VAR_MAP,ICON_SIZE_PREFIX,LARGE_SCALE_MODE_CLASSNAME,LIGHT_COLOR_MODE_CLASSNAME,LINE_HEIGHT_PREFIX,MEDIUM_SCALE_MODE_CLASSNAME,MOTION_PREFIX,PSEUDO_STYLE_SELECTOR_MAP,SMALL_SCALE_MODE_CLASSNAME,SPECTRUM_COLOR_PREFIX,TEXT_RESPONSIVE_CLASSNAME,TEXT_TRANSFORM_PREFIX,UDS_PREFIX,XLARGE_SCALE_MODE_CLASSNAME,XSMALL_SCALE_MODE_CLASSNAME,XXLARGE_SCALE_MODE_CLASSNAME,XXXLARGE_SCALE_MODE_CLASSNAME}from"../chunk-N4FHPR6Q.js";
@@ -1,4 +1,4 @@
1
- import { c as UniversalTokensConfig, C as ColorMode, d as ColorsConfig, H as Hue, e as HueStep, P as PaletteType, f as PaletteConfig, S as ScaleMode } from '../types-DQT6xsrl.cjs';
1
+ import { f as UniversalTokensConfig, g as ColorMode, h as ColorsConfig, H as Hue, i as HueStep, P as PaletteType, j as PaletteConfig, k as ScaleMode } from '../types-DSRVFV7Y.cjs';
2
2
  import '@yahoo/uds-icons/types';
3
3
  import 'motion/react';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- import { c as UniversalTokensConfig, C as ColorMode, d as ColorsConfig, H as Hue, e as HueStep, P as PaletteType, f as PaletteConfig, S as ScaleMode } from '../types-DQT6xsrl.js';
1
+ import { f as UniversalTokensConfig, g as ColorMode, h as ColorsConfig, H as Hue, i as HueStep, P as PaletteType, j as PaletteConfig, k as ScaleMode } from '../types-DSRVFV7Y.js';
2
2
  import '@yahoo/uds-icons/types';
3
3
  import 'motion/react';
4
4
  import 'react';
@@ -10462,4 +10462,4 @@ interface UniversalMenuItemProps extends Omit<UniversalPressableProps, 'asChild'
10462
10462
  disabled?: boolean;
10463
10463
  }
10464
10464
 
10465
- export { MEDIUM_SCALE_MODE_CLASSNAME as $, UDS_PREFIX as A, type ButtonConfig as B, type ColorMode as C, AVATAR_SIZE_PREFIX as D, BORDER_RADIUS_PREFIX as E, type FontID as F, BORDER_WIDTH_PREFIX as G, type Hue as H, type IconButtonClassMap as I, FONT_FAMILY_PREFIX as J, FONT_SIZE_PREFIX as K, FONT_WEIGHT_PREFIX as L, type MotionConfig as M, FONT_SLANT_PREFIX as N, FONT_WIDTH_PREFIX as O, type PaletteType as P, ICON_SIZE_PREFIX as Q, LINE_HEIGHT_PREFIX as R, type ScaleMode as S, MOTION_PREFIX as T, type UniversalInputProps as U, SPECTRUM_COLOR_PREFIX as V, TEXT_TRANSFORM_PREFIX as W, DARK_COLOR_MODE_CLASSNAME as X, LIGHT_COLOR_MODE_CLASSNAME as Y, XSMALL_SCALE_MODE_CLASSNAME as Z, SMALL_SCALE_MODE_CLASSNAME as _, type UniversalPressableProps as a, type CheckboxVariant as a$, LARGE_SCALE_MODE_CLASSNAME as a0, XLARGE_SCALE_MODE_CLASSNAME as a1, XXLARGE_SCALE_MODE_CLASSNAME as a2, XXXLARGE_SCALE_MODE_CLASSNAME as a3, DEFAULT_COLOR_MODE_CLASSNAME as a4, DEFAULT_SCALE_MODE_CLASSNAME as a5, TEXT_RESPONSIVE_CLASSNAME as a6, BUTTON_CSS_VAR_MAP as a7, ICON_BUTTON_CSS_VAR_MAP as a8, PSEUDO_STYLE_SELECTOR_MAP as a9, type Breakpoint as aA, type BreakpointsConfig as aB, type ButtonBaseConfig as aC, type ButtonClassName as aD, type ButtonColorConfig as aE, type ButtonColorEffect as aF, type ButtonColorEffectConfig as aG, type ButtonKind as aH, type ButtonMotionEffect as aI, type ButtonMotionProperty as aJ, type ButtonMotionPropertyConfig as aK, type ButtonPalette as aL, type ButtonPaletteColor as aM, type ButtonPaletteConfig as aN, type ButtonShadowPropertyConfig as aO, type ButtonSize as aP, type ButtonSizeConfig as aQ, type ButtonSizeProperty as aR, type ButtonSpectrumColor as aS, type ButtonState as aT, type ButtonStateConfig as aU, type ButtonStateEffectConfig as aV, type ButtonVariant as aW, type ButtonVariantConfig as aX, type ButtonVariantFlat as aY, type CheckboxSize as aZ, type CheckboxValue as a_, FONT_DECLARATIONS_MAP as aa, type FontAxisConfig as ab, type FontDeclarationConfig as ac, type FontDeclarationMap as ad, type FontWeightForFont as ae, type AlwaysPalette as af, type AlwaysPaletteAlias as ag, type AlwaysPaletteColor as ah, type Animation as ai, type AriaAttribute as aj, type AvatarAbbreviationStrategy as ak, type AvatarShape as al, type AvatarSize as am, type AvatarSizeConfig as an, type AvatarVariant as ao, type BackgroundColor as ap, type BackgroundPalette as aq, type BackgroundPaletteAlias as ar, type BackgroundStyleProps as as, type BadgeSize as at, type BadgeVariant as au, type BorderRadius as av, type BorderRadiusConfig as aw, type BorderStyleProps as ax, type BorderWidth as ay, type BorderWidthConfig as az, type UniversalSwitchProps as b, type Pixels as b$, type ChipSize as b0, type ChipVariant as b1, type ColorModeConfig as b2, type ColorModeForApp as b3, type ConfigurableDropShadowValues as b4, type ConfigurableInsetShadowValues as b5, type CustomSizingStyleProps as b6, type DataAttribute as b7, type Display as b8, type DividerVariant as b9, type GlobalDefaultsConfig as bA, type HighContrastMode as bB, type IconButtonClassName as bC, type IconButtonConfig as bD, type IconButtonDefaultsConfig as bE, type IconButtonSize as bF, type IconSizeConfig as bG, type ImageStyleProps as bH, type InputSize as bI, type LayoutStyleProps as bJ, type LetterSpacing as bK, type LineClampAlias as bL, type LineColor as bM, type LineHeight as bN, type LineHeightConfig as bO, type LinePalette as bP, type LinePaletteAlias as bQ, type Modes as bR, type MotionCssVar as bS, type MotionSpringConfig as bT, type MotionSpringConfigOptions as bU, type MotionVariant as bV, type MotionVariantSpeed as bW, type MotionVariantValues as bX, type Overflow as bY, type Palette as bZ, type PaletteValue as b_, type Flex as ba, type FlexAlignContent as bb, type FlexAlignItems as bc, type FlexAlignSelf as bd, type FlexBasis as be, type FlexDirection as bf, type FlexGrow as bg, type FlexJustifyContent as bh, type FlexShrink as bi, type FlexStyleProps as bj, type FlexWrap as bk, type FontAlias as bl, type FontCssVar as bm, type FontFamilyCDNUrl as bn, type FontFamilyConfig as bo, type FontSize as bp, type FontSizeConfig as bq, type FontSlantConfig as br, type FontType as bs, type FontWeightConfig as bt, type FontWeightDescriptive as bu, type FontWeightNumeric as bv, type FontWidthConfig as bw, type ForegroundColor as bx, type ForegroundPalette as by, type ForegroundPaletteAlias as bz, type UniversalTokensConfig as c, type UniversalChipProps as c$, type PlatformMode as c0, type Position as c1, type PropertyToPaletteAliasMap as c2, type RadioSize as c3, type RadioValue as c4, type RadioVariant as c5, type RegionMode as c6, type Rems as c7, type ScaleConfig as c8, type ScaleEffectMap as c9, type TextStyleProps as cA, type TextTransform as cB, type TextTransformConfig as cC, type TextVariant as cD, type TransitionDelay as cE, type TransitionDuration as cF, type TransitionTiming as cG, type TShirtSize as cH, type TShirtSizeCommon as cI, type TypographyConfig as cJ, type TypographyResponsiveProperty as cK, type TypographyStyle as cL, type TypographyStyleProperty as cM, type TypographyUnitValue as cN, type UdsCssVar as cO, type Unitless as cP, type UniversalAvatarIconProps as cQ, type UniversalAvatarImageProps as cR, type UniversalAvatarProps as cS, type UniversalAvatarTextProps as cT, type UniversalBadgeProps as cU, type UniversalButtonProps as cV, type UniversalCheckboxProps as cW, type UniversalChipBaseProps as cX, type UniversalChipButtonProps as cY, type UniversalChipDismissibleProps as cZ, type UniversalChipLinkProps as c_, type ScaleModeConfig as ca, type ScaleModeForApp as cb, type ShadowColor as cc, type ShadowColorConfig as cd, type ShadowConfig as ce, type ShadowOffset as cf, type ShadowOpacity as cg, type ShadowPalette as ch, type ShadowPaletteAlias as ci, type ShadowSpreadRadius as cj, type ShadowStyleProps as ck, type ShadowTypeConfig as cl, type ShadowVariant as cm, type ShadowVariantConfig as cn, type ShadowVariantInvert as co, type ShadowVariantWithInvert as cp, type SharedPaletteAlias as cq, type SpacingConfig as cr, type SpacingStyleProps as cs, type SpectrumColor as ct, type SpectrumConfig as cu, type StateStyleProps as cv, type StyleProps as cw, type SwitchSize as cx, type TextDecorationLine as cy, type TextProperty as cz, type ColorsConfig as d, type UniversalChipToggleProps as d0, type UniversalIconButtonProps as d1, type UniversalIconProps as d2, type UniversalImageProps as d3, type UniversalRadioGroupProps as d4, type UniversalRadioProps as d5, type UniversalTokensConfigAuto as d6, type HueStep as e, type PaletteConfig as f, type ShadowPreset as g, type UniversalBoxProps as h, type UniversalStackProps as i, type UniversalDividerProps as j, type ButtonClassMap as k, type ButtonColorProperty as l, type ButtonColorPropertyConfig as m, type SpacingAlias as n, type UniversalMenuItemProps as o, type FontDeclarationItemConfig as p, type FontConfig as q, type ShadowType as r, type UniversalFormLabelProps as s, type IconPropsWithSVGProps as t, type ImagePropsWithImgProps as u, type UniversalIconSlot as v, type UniversalLinkProps as w, type UniversalTextProps as x, alwaysPalette as y, defaultUniversalTokensConfigAuto as z };
10465
+ export { MOTION_PREFIX as $, type ImagePropsWithImgProps as A, type ButtonConfig as B, type ColorModeConfig as C, type UniversalIconSlot as D, type UniversalLinkProps as E, type FontConfig as F, type GlobalDefaultsConfig as G, type Hue as H, type IconButtonConfig as I, type UniversalTextProps as J, alwaysPalette as K, UDS_PREFIX as L, type MotionConfig as M, AVATAR_SIZE_PREFIX as N, BORDER_RADIUS_PREFIX as O, type PaletteType as P, BORDER_WIDTH_PREFIX as Q, FONT_FAMILY_PREFIX as R, type ScaleModeConfig as S, type TypographyConfig as T, type UniversalInputProps as U, FONT_SIZE_PREFIX as V, FONT_WEIGHT_PREFIX as W, FONT_SLANT_PREFIX as X, FONT_WIDTH_PREFIX as Y, ICON_SIZE_PREFIX as Z, LINE_HEIGHT_PREFIX as _, type UniversalPressableProps as a, type ButtonStateEffectConfig as a$, SPECTRUM_COLOR_PREFIX as a0, TEXT_TRANSFORM_PREFIX as a1, DARK_COLOR_MODE_CLASSNAME as a2, LIGHT_COLOR_MODE_CLASSNAME as a3, XSMALL_SCALE_MODE_CLASSNAME as a4, SMALL_SCALE_MODE_CLASSNAME as a5, MEDIUM_SCALE_MODE_CLASSNAME as a6, LARGE_SCALE_MODE_CLASSNAME as a7, XLARGE_SCALE_MODE_CLASSNAME as a8, XXLARGE_SCALE_MODE_CLASSNAME as a9, type BadgeSize as aA, type BadgeVariant as aB, type BorderRadius as aC, type BorderRadiusConfig as aD, type BorderStyleProps as aE, type BorderWidth as aF, type BorderWidthConfig as aG, type Breakpoint as aH, type ButtonBaseConfig as aI, type ButtonClassName as aJ, type ButtonColorConfig as aK, type ButtonColorEffect as aL, type ButtonColorEffectConfig as aM, type ButtonKind as aN, type ButtonMotionEffect as aO, type ButtonMotionProperty as aP, type ButtonMotionPropertyConfig as aQ, type ButtonPalette as aR, type ButtonPaletteColor as aS, type ButtonPaletteConfig as aT, type ButtonShadowPropertyConfig as aU, type ButtonSize as aV, type ButtonSizeConfig as aW, type ButtonSizeProperty as aX, type ButtonSpectrumColor as aY, type ButtonState as aZ, type ButtonStateConfig as a_, XXXLARGE_SCALE_MODE_CLASSNAME as aa, DEFAULT_COLOR_MODE_CLASSNAME as ab, DEFAULT_SCALE_MODE_CLASSNAME as ac, TEXT_RESPONSIVE_CLASSNAME as ad, BUTTON_CSS_VAR_MAP as ae, ICON_BUTTON_CSS_VAR_MAP as af, PSEUDO_STYLE_SELECTOR_MAP as ag, FONT_DECLARATIONS_MAP as ah, type FontAxisConfig as ai, type FontDeclarationConfig as aj, type FontDeclarationMap as ak, type FontWeightForFont as al, type AlwaysPalette as am, type AlwaysPaletteAlias as an, type AlwaysPaletteColor as ao, type Animation as ap, type AriaAttribute as aq, type AvatarAbbreviationStrategy as ar, type AvatarShape as as, type AvatarSize as at, type AvatarSizeConfig as au, type AvatarVariant as av, type BackgroundColor as aw, type BackgroundPalette as ax, type BackgroundPaletteAlias as ay, type BackgroundStyleProps as az, type UniversalSwitchProps as b, type Overflow as b$, type ButtonVariant as b0, type ButtonVariantConfig as b1, type ButtonVariantFlat as b2, type CheckboxSize as b3, type CheckboxValue as b4, type CheckboxVariant as b5, type ChipSize as b6, type ChipVariant as b7, type ColorModeForApp as b8, type ConfigurableDropShadowValues as b9, type FontWeightNumeric as bA, type FontWidthConfig as bB, type ForegroundColor as bC, type ForegroundPalette as bD, type ForegroundPaletteAlias as bE, type HighContrastMode as bF, type IconButtonClassName as bG, type IconButtonDefaultsConfig as bH, type IconButtonSize as bI, type IconSizeConfig as bJ, type ImageStyleProps as bK, type InputSize as bL, type LayoutStyleProps as bM, type LetterSpacing as bN, type LineClampAlias as bO, type LineColor as bP, type LineHeight as bQ, type LineHeightConfig as bR, type LinePalette as bS, type LinePaletteAlias as bT, type Modes as bU, type MotionCssVar as bV, type MotionSpringConfig as bW, type MotionSpringConfigOptions as bX, type MotionVariant as bY, type MotionVariantSpeed as bZ, type MotionVariantValues as b_, type ConfigurableInsetShadowValues as ba, type CustomSizingStyleProps as bb, type DataAttribute as bc, type Display as bd, type DividerVariant as be, type Flex as bf, type FlexAlignContent as bg, type FlexAlignItems as bh, type FlexAlignSelf as bi, type FlexBasis as bj, type FlexDirection as bk, type FlexGrow as bl, type FlexJustifyContent as bm, type FlexShrink as bn, type FlexStyleProps as bo, type FlexWrap as bp, type FontAlias as bq, type FontCssVar as br, type FontFamilyCDNUrl as bs, type FontFamilyConfig as bt, type FontSize as bu, type FontSizeConfig as bv, type FontSlantConfig as bw, type FontType as bx, type FontWeightConfig as by, type FontWeightDescriptive as bz, type ShadowConfig as c, type UniversalChipProps as c$, type Palette as c0, type PaletteValue as c1, type Pixels as c2, type PlatformMode as c3, type Position as c4, type PropertyToPaletteAliasMap as c5, type RadioSize as c6, type RadioValue as c7, type RadioVariant as c8, type RegionMode as c9, type TextProperty as cA, type TextStyleProps as cB, type TextTransform as cC, type TextTransformConfig as cD, type TextVariant as cE, type TransitionDelay as cF, type TransitionDuration as cG, type TransitionTiming as cH, type TShirtSize as cI, type TShirtSizeCommon as cJ, type TypographyResponsiveProperty as cK, type TypographyStyle as cL, type TypographyStyleProperty as cM, type TypographyUnitValue as cN, type UdsCssVar as cO, type Unitless as cP, type UniversalAvatarIconProps as cQ, type UniversalAvatarImageProps as cR, type UniversalAvatarProps as cS, type UniversalAvatarTextProps as cT, type UniversalBadgeProps as cU, type UniversalButtonProps as cV, type UniversalCheckboxProps as cW, type UniversalChipBaseProps as cX, type UniversalChipButtonProps as cY, type UniversalChipDismissibleProps as cZ, type UniversalChipLinkProps as c_, type Rems as ca, type ScaleConfig as cb, type ScaleEffectMap as cc, type ScaleModeForApp as cd, type ShadowColor as ce, type ShadowColorConfig as cf, type ShadowOffset as cg, type ShadowOpacity as ch, type ShadowPalette as ci, type ShadowPaletteAlias as cj, type ShadowSpreadRadius as ck, type ShadowStyleProps as cl, type ShadowTypeConfig as cm, type ShadowVariant as cn, type ShadowVariantConfig as co, type ShadowVariantInvert as cp, type ShadowVariantWithInvert as cq, type SharedPaletteAlias as cr, type SpacingConfig as cs, type SpacingStyleProps as ct, type SpectrumColor as cu, type SpectrumConfig as cv, type StateStyleProps as cw, type StyleProps as cx, type SwitchSize as cy, type TextDecorationLine as cz, type BreakpointsConfig as d, type UniversalChipToggleProps as d0, type UniversalIconButtonProps as d1, type UniversalIconProps as d2, type UniversalImageProps as d3, type UniversalRadioGroupProps as d4, type UniversalRadioProps as d5, type UniversalTokensConfigAuto as d6, defaultUniversalTokensConfigAuto as e, type UniversalTokensConfig as f, type ColorMode as g, type ColorsConfig as h, type HueStep as i, type PaletteConfig as j, type ScaleMode as k, type ShadowPreset as l, type UniversalBoxProps as m, type UniversalStackProps as n, type UniversalDividerProps as o, type ButtonClassMap as p, type IconButtonClassMap as q, type ButtonColorProperty as r, type ButtonColorPropertyConfig as s, type SpacingAlias as t, type UniversalMenuItemProps as u, type FontID as v, type FontDeclarationItemConfig as w, type ShadowType as x, type UniversalFormLabelProps as y, type IconPropsWithSVGProps as z };
@@ -10462,4 +10462,4 @@ interface UniversalMenuItemProps extends Omit<UniversalPressableProps, 'asChild'
10462
10462
  disabled?: boolean;
10463
10463
  }
10464
10464
 
10465
- export { MEDIUM_SCALE_MODE_CLASSNAME as $, UDS_PREFIX as A, type ButtonConfig as B, type ColorMode as C, AVATAR_SIZE_PREFIX as D, BORDER_RADIUS_PREFIX as E, type FontID as F, BORDER_WIDTH_PREFIX as G, type Hue as H, type IconButtonClassMap as I, FONT_FAMILY_PREFIX as J, FONT_SIZE_PREFIX as K, FONT_WEIGHT_PREFIX as L, type MotionConfig as M, FONT_SLANT_PREFIX as N, FONT_WIDTH_PREFIX as O, type PaletteType as P, ICON_SIZE_PREFIX as Q, LINE_HEIGHT_PREFIX as R, type ScaleMode as S, MOTION_PREFIX as T, type UniversalInputProps as U, SPECTRUM_COLOR_PREFIX as V, TEXT_TRANSFORM_PREFIX as W, DARK_COLOR_MODE_CLASSNAME as X, LIGHT_COLOR_MODE_CLASSNAME as Y, XSMALL_SCALE_MODE_CLASSNAME as Z, SMALL_SCALE_MODE_CLASSNAME as _, type UniversalPressableProps as a, type CheckboxVariant as a$, LARGE_SCALE_MODE_CLASSNAME as a0, XLARGE_SCALE_MODE_CLASSNAME as a1, XXLARGE_SCALE_MODE_CLASSNAME as a2, XXXLARGE_SCALE_MODE_CLASSNAME as a3, DEFAULT_COLOR_MODE_CLASSNAME as a4, DEFAULT_SCALE_MODE_CLASSNAME as a5, TEXT_RESPONSIVE_CLASSNAME as a6, BUTTON_CSS_VAR_MAP as a7, ICON_BUTTON_CSS_VAR_MAP as a8, PSEUDO_STYLE_SELECTOR_MAP as a9, type Breakpoint as aA, type BreakpointsConfig as aB, type ButtonBaseConfig as aC, type ButtonClassName as aD, type ButtonColorConfig as aE, type ButtonColorEffect as aF, type ButtonColorEffectConfig as aG, type ButtonKind as aH, type ButtonMotionEffect as aI, type ButtonMotionProperty as aJ, type ButtonMotionPropertyConfig as aK, type ButtonPalette as aL, type ButtonPaletteColor as aM, type ButtonPaletteConfig as aN, type ButtonShadowPropertyConfig as aO, type ButtonSize as aP, type ButtonSizeConfig as aQ, type ButtonSizeProperty as aR, type ButtonSpectrumColor as aS, type ButtonState as aT, type ButtonStateConfig as aU, type ButtonStateEffectConfig as aV, type ButtonVariant as aW, type ButtonVariantConfig as aX, type ButtonVariantFlat as aY, type CheckboxSize as aZ, type CheckboxValue as a_, FONT_DECLARATIONS_MAP as aa, type FontAxisConfig as ab, type FontDeclarationConfig as ac, type FontDeclarationMap as ad, type FontWeightForFont as ae, type AlwaysPalette as af, type AlwaysPaletteAlias as ag, type AlwaysPaletteColor as ah, type Animation as ai, type AriaAttribute as aj, type AvatarAbbreviationStrategy as ak, type AvatarShape as al, type AvatarSize as am, type AvatarSizeConfig as an, type AvatarVariant as ao, type BackgroundColor as ap, type BackgroundPalette as aq, type BackgroundPaletteAlias as ar, type BackgroundStyleProps as as, type BadgeSize as at, type BadgeVariant as au, type BorderRadius as av, type BorderRadiusConfig as aw, type BorderStyleProps as ax, type BorderWidth as ay, type BorderWidthConfig as az, type UniversalSwitchProps as b, type Pixels as b$, type ChipSize as b0, type ChipVariant as b1, type ColorModeConfig as b2, type ColorModeForApp as b3, type ConfigurableDropShadowValues as b4, type ConfigurableInsetShadowValues as b5, type CustomSizingStyleProps as b6, type DataAttribute as b7, type Display as b8, type DividerVariant as b9, type GlobalDefaultsConfig as bA, type HighContrastMode as bB, type IconButtonClassName as bC, type IconButtonConfig as bD, type IconButtonDefaultsConfig as bE, type IconButtonSize as bF, type IconSizeConfig as bG, type ImageStyleProps as bH, type InputSize as bI, type LayoutStyleProps as bJ, type LetterSpacing as bK, type LineClampAlias as bL, type LineColor as bM, type LineHeight as bN, type LineHeightConfig as bO, type LinePalette as bP, type LinePaletteAlias as bQ, type Modes as bR, type MotionCssVar as bS, type MotionSpringConfig as bT, type MotionSpringConfigOptions as bU, type MotionVariant as bV, type MotionVariantSpeed as bW, type MotionVariantValues as bX, type Overflow as bY, type Palette as bZ, type PaletteValue as b_, type Flex as ba, type FlexAlignContent as bb, type FlexAlignItems as bc, type FlexAlignSelf as bd, type FlexBasis as be, type FlexDirection as bf, type FlexGrow as bg, type FlexJustifyContent as bh, type FlexShrink as bi, type FlexStyleProps as bj, type FlexWrap as bk, type FontAlias as bl, type FontCssVar as bm, type FontFamilyCDNUrl as bn, type FontFamilyConfig as bo, type FontSize as bp, type FontSizeConfig as bq, type FontSlantConfig as br, type FontType as bs, type FontWeightConfig as bt, type FontWeightDescriptive as bu, type FontWeightNumeric as bv, type FontWidthConfig as bw, type ForegroundColor as bx, type ForegroundPalette as by, type ForegroundPaletteAlias as bz, type UniversalTokensConfig as c, type UniversalChipProps as c$, type PlatformMode as c0, type Position as c1, type PropertyToPaletteAliasMap as c2, type RadioSize as c3, type RadioValue as c4, type RadioVariant as c5, type RegionMode as c6, type Rems as c7, type ScaleConfig as c8, type ScaleEffectMap as c9, type TextStyleProps as cA, type TextTransform as cB, type TextTransformConfig as cC, type TextVariant as cD, type TransitionDelay as cE, type TransitionDuration as cF, type TransitionTiming as cG, type TShirtSize as cH, type TShirtSizeCommon as cI, type TypographyConfig as cJ, type TypographyResponsiveProperty as cK, type TypographyStyle as cL, type TypographyStyleProperty as cM, type TypographyUnitValue as cN, type UdsCssVar as cO, type Unitless as cP, type UniversalAvatarIconProps as cQ, type UniversalAvatarImageProps as cR, type UniversalAvatarProps as cS, type UniversalAvatarTextProps as cT, type UniversalBadgeProps as cU, type UniversalButtonProps as cV, type UniversalCheckboxProps as cW, type UniversalChipBaseProps as cX, type UniversalChipButtonProps as cY, type UniversalChipDismissibleProps as cZ, type UniversalChipLinkProps as c_, type ScaleModeConfig as ca, type ScaleModeForApp as cb, type ShadowColor as cc, type ShadowColorConfig as cd, type ShadowConfig as ce, type ShadowOffset as cf, type ShadowOpacity as cg, type ShadowPalette as ch, type ShadowPaletteAlias as ci, type ShadowSpreadRadius as cj, type ShadowStyleProps as ck, type ShadowTypeConfig as cl, type ShadowVariant as cm, type ShadowVariantConfig as cn, type ShadowVariantInvert as co, type ShadowVariantWithInvert as cp, type SharedPaletteAlias as cq, type SpacingConfig as cr, type SpacingStyleProps as cs, type SpectrumColor as ct, type SpectrumConfig as cu, type StateStyleProps as cv, type StyleProps as cw, type SwitchSize as cx, type TextDecorationLine as cy, type TextProperty as cz, type ColorsConfig as d, type UniversalChipToggleProps as d0, type UniversalIconButtonProps as d1, type UniversalIconProps as d2, type UniversalImageProps as d3, type UniversalRadioGroupProps as d4, type UniversalRadioProps as d5, type UniversalTokensConfigAuto as d6, type HueStep as e, type PaletteConfig as f, type ShadowPreset as g, type UniversalBoxProps as h, type UniversalStackProps as i, type UniversalDividerProps as j, type ButtonClassMap as k, type ButtonColorProperty as l, type ButtonColorPropertyConfig as m, type SpacingAlias as n, type UniversalMenuItemProps as o, type FontDeclarationItemConfig as p, type FontConfig as q, type ShadowType as r, type UniversalFormLabelProps as s, type IconPropsWithSVGProps as t, type ImagePropsWithImgProps as u, type UniversalIconSlot as v, type UniversalLinkProps as w, type UniversalTextProps as x, alwaysPalette as y, defaultUniversalTokensConfigAuto as z };
10465
+ export { MOTION_PREFIX as $, type ImagePropsWithImgProps as A, type ButtonConfig as B, type ColorModeConfig as C, type UniversalIconSlot as D, type UniversalLinkProps as E, type FontConfig as F, type GlobalDefaultsConfig as G, type Hue as H, type IconButtonConfig as I, type UniversalTextProps as J, alwaysPalette as K, UDS_PREFIX as L, type MotionConfig as M, AVATAR_SIZE_PREFIX as N, BORDER_RADIUS_PREFIX as O, type PaletteType as P, BORDER_WIDTH_PREFIX as Q, FONT_FAMILY_PREFIX as R, type ScaleModeConfig as S, type TypographyConfig as T, type UniversalInputProps as U, FONT_SIZE_PREFIX as V, FONT_WEIGHT_PREFIX as W, FONT_SLANT_PREFIX as X, FONT_WIDTH_PREFIX as Y, ICON_SIZE_PREFIX as Z, LINE_HEIGHT_PREFIX as _, type UniversalPressableProps as a, type ButtonStateEffectConfig as a$, SPECTRUM_COLOR_PREFIX as a0, TEXT_TRANSFORM_PREFIX as a1, DARK_COLOR_MODE_CLASSNAME as a2, LIGHT_COLOR_MODE_CLASSNAME as a3, XSMALL_SCALE_MODE_CLASSNAME as a4, SMALL_SCALE_MODE_CLASSNAME as a5, MEDIUM_SCALE_MODE_CLASSNAME as a6, LARGE_SCALE_MODE_CLASSNAME as a7, XLARGE_SCALE_MODE_CLASSNAME as a8, XXLARGE_SCALE_MODE_CLASSNAME as a9, type BadgeSize as aA, type BadgeVariant as aB, type BorderRadius as aC, type BorderRadiusConfig as aD, type BorderStyleProps as aE, type BorderWidth as aF, type BorderWidthConfig as aG, type Breakpoint as aH, type ButtonBaseConfig as aI, type ButtonClassName as aJ, type ButtonColorConfig as aK, type ButtonColorEffect as aL, type ButtonColorEffectConfig as aM, type ButtonKind as aN, type ButtonMotionEffect as aO, type ButtonMotionProperty as aP, type ButtonMotionPropertyConfig as aQ, type ButtonPalette as aR, type ButtonPaletteColor as aS, type ButtonPaletteConfig as aT, type ButtonShadowPropertyConfig as aU, type ButtonSize as aV, type ButtonSizeConfig as aW, type ButtonSizeProperty as aX, type ButtonSpectrumColor as aY, type ButtonState as aZ, type ButtonStateConfig as a_, XXXLARGE_SCALE_MODE_CLASSNAME as aa, DEFAULT_COLOR_MODE_CLASSNAME as ab, DEFAULT_SCALE_MODE_CLASSNAME as ac, TEXT_RESPONSIVE_CLASSNAME as ad, BUTTON_CSS_VAR_MAP as ae, ICON_BUTTON_CSS_VAR_MAP as af, PSEUDO_STYLE_SELECTOR_MAP as ag, FONT_DECLARATIONS_MAP as ah, type FontAxisConfig as ai, type FontDeclarationConfig as aj, type FontDeclarationMap as ak, type FontWeightForFont as al, type AlwaysPalette as am, type AlwaysPaletteAlias as an, type AlwaysPaletteColor as ao, type Animation as ap, type AriaAttribute as aq, type AvatarAbbreviationStrategy as ar, type AvatarShape as as, type AvatarSize as at, type AvatarSizeConfig as au, type AvatarVariant as av, type BackgroundColor as aw, type BackgroundPalette as ax, type BackgroundPaletteAlias as ay, type BackgroundStyleProps as az, type UniversalSwitchProps as b, type Overflow as b$, type ButtonVariant as b0, type ButtonVariantConfig as b1, type ButtonVariantFlat as b2, type CheckboxSize as b3, type CheckboxValue as b4, type CheckboxVariant as b5, type ChipSize as b6, type ChipVariant as b7, type ColorModeForApp as b8, type ConfigurableDropShadowValues as b9, type FontWeightNumeric as bA, type FontWidthConfig as bB, type ForegroundColor as bC, type ForegroundPalette as bD, type ForegroundPaletteAlias as bE, type HighContrastMode as bF, type IconButtonClassName as bG, type IconButtonDefaultsConfig as bH, type IconButtonSize as bI, type IconSizeConfig as bJ, type ImageStyleProps as bK, type InputSize as bL, type LayoutStyleProps as bM, type LetterSpacing as bN, type LineClampAlias as bO, type LineColor as bP, type LineHeight as bQ, type LineHeightConfig as bR, type LinePalette as bS, type LinePaletteAlias as bT, type Modes as bU, type MotionCssVar as bV, type MotionSpringConfig as bW, type MotionSpringConfigOptions as bX, type MotionVariant as bY, type MotionVariantSpeed as bZ, type MotionVariantValues as b_, type ConfigurableInsetShadowValues as ba, type CustomSizingStyleProps as bb, type DataAttribute as bc, type Display as bd, type DividerVariant as be, type Flex as bf, type FlexAlignContent as bg, type FlexAlignItems as bh, type FlexAlignSelf as bi, type FlexBasis as bj, type FlexDirection as bk, type FlexGrow as bl, type FlexJustifyContent as bm, type FlexShrink as bn, type FlexStyleProps as bo, type FlexWrap as bp, type FontAlias as bq, type FontCssVar as br, type FontFamilyCDNUrl as bs, type FontFamilyConfig as bt, type FontSize as bu, type FontSizeConfig as bv, type FontSlantConfig as bw, type FontType as bx, type FontWeightConfig as by, type FontWeightDescriptive as bz, type ShadowConfig as c, type UniversalChipProps as c$, type Palette as c0, type PaletteValue as c1, type Pixels as c2, type PlatformMode as c3, type Position as c4, type PropertyToPaletteAliasMap as c5, type RadioSize as c6, type RadioValue as c7, type RadioVariant as c8, type RegionMode as c9, type TextProperty as cA, type TextStyleProps as cB, type TextTransform as cC, type TextTransformConfig as cD, type TextVariant as cE, type TransitionDelay as cF, type TransitionDuration as cG, type TransitionTiming as cH, type TShirtSize as cI, type TShirtSizeCommon as cJ, type TypographyResponsiveProperty as cK, type TypographyStyle as cL, type TypographyStyleProperty as cM, type TypographyUnitValue as cN, type UdsCssVar as cO, type Unitless as cP, type UniversalAvatarIconProps as cQ, type UniversalAvatarImageProps as cR, type UniversalAvatarProps as cS, type UniversalAvatarTextProps as cT, type UniversalBadgeProps as cU, type UniversalButtonProps as cV, type UniversalCheckboxProps as cW, type UniversalChipBaseProps as cX, type UniversalChipButtonProps as cY, type UniversalChipDismissibleProps as cZ, type UniversalChipLinkProps as c_, type Rems as ca, type ScaleConfig as cb, type ScaleEffectMap as cc, type ScaleModeForApp as cd, type ShadowColor as ce, type ShadowColorConfig as cf, type ShadowOffset as cg, type ShadowOpacity as ch, type ShadowPalette as ci, type ShadowPaletteAlias as cj, type ShadowSpreadRadius as ck, type ShadowStyleProps as cl, type ShadowTypeConfig as cm, type ShadowVariant as cn, type ShadowVariantConfig as co, type ShadowVariantInvert as cp, type ShadowVariantWithInvert as cq, type SharedPaletteAlias as cr, type SpacingConfig as cs, type SpacingStyleProps as ct, type SpectrumColor as cu, type SpectrumConfig as cv, type StateStyleProps as cw, type StyleProps as cx, type SwitchSize as cy, type TextDecorationLine as cz, type BreakpointsConfig as d, type UniversalChipToggleProps as d0, type UniversalIconButtonProps as d1, type UniversalIconProps as d2, type UniversalImageProps as d3, type UniversalRadioGroupProps as d4, type UniversalRadioProps as d5, type UniversalTokensConfigAuto as d6, defaultUniversalTokensConfigAuto as e, type UniversalTokensConfig as f, type ColorMode as g, type ColorsConfig as h, type HueStep as i, type PaletteConfig as j, type ScaleMode as k, type ShadowPreset as l, type UniversalBoxProps as m, type UniversalStackProps as n, type UniversalDividerProps as o, type ButtonClassMap as p, type IconButtonClassMap as q, type ButtonColorProperty as r, type ButtonColorPropertyConfig as s, type SpacingAlias as t, type UniversalMenuItemProps as u, type FontID as v, type FontDeclarationItemConfig as w, type ShadowType as x, type UniversalFormLabelProps as y, type IconPropsWithSVGProps as z };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@yahoo/uds",
3
3
  "description": "Yahoo Universal System",
4
- "version": "3.17.0",
4
+ "version": "3.18.0",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "uds": "./cli/uds-cli"
@@ -155,6 +155,16 @@
155
155
  "types": "./dist/tokens/automation/properties.d.ts",
156
156
  "default": "./dist/tokens/automation/properties.js"
157
157
  }
158
+ },
159
+ "./defaultTokensConfig": {
160
+ "import": {
161
+ "types": "./dist/defaultTokensConfig.d.ts",
162
+ "default": "./dist/defaultTokensConfig.js"
163
+ },
164
+ "require": {
165
+ "types": "./dist/defaultTokensConfig.d.cts",
166
+ "default": "./dist/defaultTokensConfig.cjs"
167
+ }
158
168
  }
159
169
  },
160
170
  "scripts": {
@@ -1,17 +0,0 @@
1
- import { Button, HStack, IconButton } from '@yahoo/uds';
2
- import { Cross } from '@yahoo/uds-icons';
3
-
4
- export const PageA = () => {
5
- return (
6
- <HStack>
7
- <Button variant="brand-secondary">Click me</Button><IconButton name={Cross} />
8
- <Button variant="primary">Click me</Button><IconButton name={Cross} variant="primary" />
9
- <Button variant="secondary">Click me</Button><IconButton name={Cross} variant="brand" />
10
- <Button variant="warning-tertiary">Click me</Button><IconButton name={Cross} variant="brand-tertiary" />
11
- <Button>Click me</Button><IconButton name={Cross} />
12
- <Button variant="tertiary">Click me</Button><IconButton name={Cross} variant="brand-tertiary" />
13
- <Button variant="secondary">Click me</Button><IconButton name={Cross} variant="secondary" />
14
- <Button variant="tertiary">Click me</Button><IconButton name={Cross} variant="tertiary" />
15
- </HStack>
16
- );
17
- }
@@ -1,2 +0,0 @@
1
- import{getMotionVar as r}from"./chunk-T7G5JTDY.js";import{FONT_DECLARATIONS_MAP as t,fromEntries as a}from"./chunk-HT3GLDSF.js";import{entries as o}from"./chunk-EWJ3J526.js";import{TEXT_TRANSFORM_PREFIX as e,LINE_HEIGHT_PREFIX as n,FONT_SIZE_PREFIX as s,FONT_WIDTH_PREFIX as i,FONT_SLANT_PREFIX as d,FONT_WEIGHT_PREFIX as c,FONT_FAMILY_PREFIX as f,TEXT_RESPONSIVE_CLASSNAME as l,UDS_PREFIX as u}from"./chunk-N4FHPR6Q.js";import{textVariants as m,motionSpringConfigOptions as p}from"@yahoo/uds/fixtures";import{isString as h}from"lodash-es";import $ from"tailwindcss/plugin.js";var g=r=>{throw new Error("Didn't expect to get here")},v=(r,t,a,o)=>{const e=r.typography[t]?.[a];if(!e)throw new Error(`Missing typography data for variant "${t}" and key "${a}"`);const n="base"===o?e.base:e.breakpoints?.[o];if(!n)throw new Error(`Missing value for variant "${t}", key "${a}", and breakpoint "${o}"`);if(h(n))return n;switch(n.type){case"px":return n.value/16+"rem";case"unitless":return String(n.value)}return g()},w=(r,t)=>t in r.font?`var(--${f}-${t})`:t,x=(r,t)=>Object.fromEntries(m.flatMap((a=>[[`--${f}-${a}`,w(r,v(r,a,"fontFamily",t))],[`--${s}-${a}`,v(r,a,"fontSize",t)],[`--${c}-${a}`,v(r,a,"fontWeight",t)],[`--${n}-${a}`,v(r,a,"lineHeight",t)],[`--${e}-${a}`,v(r,a,"textTransform",t)]]))),b=r=>Object.fromEntries(m.map((t=>[t,`var(--${r}-${t})`]))),k={fontFamily:b(f),fontWeight:b(c),fontSlant:b(d),fontWidth:b(i),fontSize:b(s),lineHeight:b(n),textTransform:b(e)},y=r=>({":root":x(r,"base")}),M=r=>{const t=(a=r.breakpoints,Object.entries(a)).sort((([,{value:r}],[,{value:t}])=>r-t));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
2
- var a;return{[`.${l}`]:Object.fromEntries(t.map((([t,{value:a}])=>[`@media (min-width: ${a}px)`,x(r,t)]))),".uds-text-base":x(r,"base"),...Object.fromEntries(t.map((([t])=>[`.uds-text-${t}`,x(r,t)])))}};function S(r,t){const a=F(r);for(const r of a)t({"@font-face":r})}var j=$.withOptions((function({fontIds:r}){return function({addBase:t}){S(r,t)}}));function E(r){return{light:{colorScheme:"light","--uds-light-mode-icon":"inline","--uds-dark-mode-icon":"none",...r.colorMode.light._vars},dark:{colorScheme:"dark","--uds-light-mode-icon":"none","--uds-dark-mode-icon":"inline",...r.colorMode.dark._vars}}}function F(r){return r.flatMap((r=>{const{declarations:a,fontFamily:o}=t[r];return a.map((r=>({fontFamily:o,fontDisplay:"swap",...r})))}))}function L(r){return`"${r}"`}function O(r){return a(o(r).map((([r,a])=>{const o=`--${f}-${r}`,e=t[a];return[o,[e.fontFamily,...e.fallback].map(L).join(", ")]})))}function T(t){const e=o(t).flatMap((([t,a])=>o(a).flatMap((([a,o])=>p.map((e=>[r({variant:t,speed:a,control:e}),`${o[e]}`]))))));return a(e)}function _(r){return{...r.borderRadius._vars,...r.borderWidth._vars,...r.avatarSizes._vars,...r.iconSizes._vars}}function W(r){return{xSmall:_(r.scaleMode.xSmall),small:_(r.scaleMode.small),medium:_(r.scaleMode.medium),large:_(r.scaleMode.large),xLarge:_(r.scaleMode.xLarge),xxLarge:_(r.scaleMode.xxLarge),xxxLarge:_(r.scaleMode.xxxLarge)}}function z({config:r,shadowType:t}){const e=r.shadow[t],n=o(e).map((([r])=>[`.uds-${t}-shadow-${r}`,{[`--uds-${t}-shadow`]:`var(--${u}-${t}-shadow-${r})`,boxShadow:`var(--${u}-drop-shadow, 0 0 transparent), var(--${u}-inset-shadow, 0 0 transparent), var(--tw-ring-offset-shadow, 0 0 transparent), var(--tw-ring-shadow, 0 0 transparent), var(--tw-shadow, 0 0 transparent)`}]));return a(n)}export{k as RESPONSIVE_TAILWIND_CONFIG_MAP,S as addFontFaceDeclarations,j as addFontsPlugin,g as assertUnreachable,y as getBaseTextStyles,E as getColorModeStyles,F as getFontFaceDeclarations,O as getFontStyles,T as getMotionStyles,M as getResponsiveTextStyles,W as getScaleModeStyles,z as getShadowStyles};