@yahoo/uds 3.62.1 → 3.64.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/cli/FlattenButtonVariant.mock.tsx +17 -0
- package/dist/{Box-BPqozJKV.d.ts → Box--dJZH_rm.d.ts} +1 -1
- package/dist/{Box-CAXnChUr.d.cts → Box-BYHIqBW7.d.cts} +1 -1
- package/dist/{Box-BtGFIN-Y.d.cts → Box-CPuhAyke.d.ts} +1 -1
- package/dist/{Box-DHkDJtKc.d.ts → Box-Z1sx8kY_.d.cts} +1 -1
- package/dist/{Pressable-Dv2u0J8g.d.cts → Pressable-B2MfBeRr.d.cts} +1 -1
- package/dist/{Pressable-DDfuPMmu.d.ts → Pressable-DJ1rXy1y.d.ts} +1 -1
- package/dist/{Pressable-DNTom4uz.d.ts → Pressable-DiHQSTHz.d.ts} +1 -1
- package/dist/{Pressable-h8PFMRAD.d.cts → Pressable-DtzH7hBC.d.cts} +1 -1
- package/dist/{Text-Bc780hS6.d.cts → Text-C3rnosjh.d.ts} +7 -7
- package/dist/{Text-OknYJMzK.d.ts → Text-Dj2Pbxi_.d.cts} +7 -7
- package/dist/{Text-pkInF_RQ.d.ts → Text-MttXuiDO.d.cts} +7 -7
- package/dist/{Text-DqfpRrk9.d.cts → Text-uefIU8bE.d.ts} +7 -7
- package/dist/{VStack-C4UvcxG-.d.ts → VStack-B6GYDqa0.d.ts} +2 -2
- package/dist/{VStack-Bv-I1HBt.d.cts → VStack-BiJs2i59.d.cts} +2 -2
- package/dist/{VStack-DqqmcZ-1.d.ts → VStack-CYpp5Wa0.d.ts} +2 -2
- package/dist/{VStack-BzpyA6pg.d.cts → VStack-DSQShH8m.d.cts} +2 -2
- package/dist/{chunk-DDEQ5ROD.js → chunk-6HBRFJUU.js} +1 -1
- package/dist/chunk-6K6GGQQ2.cjs +1 -0
- package/dist/chunk-6THPHJSQ.cjs +1 -0
- package/dist/{chunk-H4HQHSH3.js → chunk-6VNCVYKB.js} +2 -2
- package/dist/{chunk-A5EJNYIP.cjs → chunk-6WXK2RIZ.cjs} +1 -1
- package/dist/{chunk-UENRZFGM.js → chunk-7ODTLDW2.js} +1 -1
- package/dist/{chunk-MNVPSAPL.js → chunk-7PDRKN2R.js} +1 -1
- package/dist/{chunk-3Y5I44KY.cjs → chunk-7YPLUG7X.cjs} +1 -1
- package/dist/chunk-A2OJLMOY.js +1 -0
- package/dist/chunk-A7OSNZQ4.cjs +1 -0
- package/dist/{chunk-K477DQVL.cjs → chunk-AGCCYYM2.cjs} +1 -1
- package/dist/chunk-AZXEQF7C.js +2 -0
- package/dist/{chunk-3HO7CT7Z.cjs → chunk-BMP5TZVZ.cjs} +1 -1
- package/dist/chunk-BRM6VXBO.cjs +1 -0
- package/dist/{chunk-2R3UAZWG.js → chunk-BXINZTSJ.js} +3 -3
- package/dist/chunk-C2XEOEF3.js +2 -0
- package/dist/{chunk-TRONEN3U.cjs → chunk-C5HXKCKH.cjs} +1 -1
- package/dist/{chunk-5DLZXPAK.cjs → chunk-CGHQHGYY.cjs} +1 -1
- package/dist/{chunk-4FMK26LZ.js → chunk-D7MUW3EG.js} +1 -1
- package/dist/{chunk-UZJNSQCF.js → chunk-DFLTCYEQ.js} +2 -2
- package/dist/{chunk-XLCSJWEJ.js → chunk-DK4BCT4X.js} +1 -1
- package/dist/{chunk-LMPIMLGP.cjs → chunk-E2KVZ3FW.cjs} +1 -1
- package/dist/{chunk-5SAGUHGK.cjs → chunk-EFKAW2BI.cjs} +2 -2
- package/dist/{chunk-MLXIOGCQ.cjs → chunk-EUBXXJNQ.cjs} +1 -1
- package/dist/chunk-EUHS2LRV.js +2 -0
- package/dist/{chunk-PVBZ5YHQ.js → chunk-FEHICJMH.js} +2 -2
- package/dist/{chunk-36WHBOYO.cjs → chunk-IBEJS4QY.cjs} +1 -1
- package/dist/chunk-JY33SU6G.cjs +1 -0
- package/dist/{chunk-UQB36STA.cjs → chunk-JY5DPKJL.cjs} +1 -1
- package/dist/{chunk-74JOPQAN.cjs → chunk-KQYW7REL.cjs} +1 -1
- package/dist/chunk-LGVDORBF.js +2 -0
- package/dist/{chunk-NBRYRYT7.js → chunk-MNKPZNCD.js} +1 -1
- package/dist/{chunk-UXTWTF2X.cjs → chunk-N2X6LD4P.cjs} +1 -1
- package/dist/{chunk-FYZJS6PY.cjs → chunk-O7H45A6H.cjs} +1 -1
- package/dist/chunk-O7UVSJ5U.js +2 -0
- package/dist/chunk-OSIGO5ER.cjs +1 -0
- package/dist/{chunk-KGWI7YBY.cjs → chunk-QCYX4YGV.cjs} +1 -1
- package/dist/chunk-QZDENCIR.cjs +1 -0
- package/dist/chunk-RUVVMG6V.js +2 -0
- package/dist/chunk-SNWFPB5H.cjs +1 -0
- package/dist/chunk-TSFJJXPE.js +2 -0
- package/dist/chunk-VETD7I64.js +1 -0
- package/dist/{chunk-4CSRT7Y4.js → chunk-WEIHOHSB.js} +1 -1
- package/dist/{chunk-YAR3WPVO.js → chunk-WTCFWBEP.js} +1 -1
- package/dist/{chunk-BODZPWTT.js → chunk-XOHE32Q2.js} +1 -1
- package/dist/chunk-XRY2AFCC.js +2 -0
- package/dist/client/Menu.cjs +1 -1
- package/dist/client/Menu.d.cts +4 -4
- package/dist/client/Menu.d.ts +4 -4
- package/dist/client/Menu.js +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +1 -1
- package/dist/defaultTokensConfig.cjs +1 -1
- package/dist/defaultTokensConfig.d.cts +7513 -3710
- package/dist/defaultTokensConfig.d.ts +7513 -3710
- package/dist/defaultTokensConfig.js +1 -1
- package/dist/experimental/client/SwitchV2.cjs +2 -1
- package/dist/experimental/client/SwitchV2.d.cts +1 -1
- package/dist/experimental/client/SwitchV2.d.ts +1 -1
- package/dist/experimental/client/SwitchV2.js +1 -1
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.js +2 -2
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.js +1 -1
- package/dist/fixtures.cjs +161 -181
- package/dist/fixtures.d.cts +7 -13
- package/dist/fixtures.d.ts +7 -13
- package/dist/fixtures.js +156 -170
- package/dist/{index-hEma1xw-.d.cts → index-CF87-Wn8.d.ts} +27 -21
- package/dist/{index-CETOayIc.d.cts → index-CyzMnp_C.d.cts} +27 -21
- package/dist/{index-2rGFJ5FX.d.ts → index-Dp0sWo0y.d.ts} +27 -21
- package/dist/{index-DJfunG6F.d.ts → index-M_d5Reyr.d.cts} +27 -21
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +46 -44
- package/dist/index.d.ts +46 -44
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.d.cts +3 -10
- package/dist/tailwind/plugin.d.ts +3 -10
- package/dist/tailwind/plugin.js +1 -1
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +1 -1
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +2 -2
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +2 -2
- package/dist/tailwind/utils.d.ts +2 -2
- package/dist/tailwind/utils.js +1 -1
- package/dist/tokens/automation/configs.cjs +1 -1
- package/dist/tokens/automation/configs.d.cts +21 -3
- package/dist/tokens/automation/configs.d.ts +21 -3
- package/dist/tokens/automation/configs.js +1 -1
- package/dist/tokens/automation/properties.cjs +1 -1
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/automation/properties.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +86 -44
- package/dist/tokens/index.d.ts +86 -44
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/{types-BvOFo15W.d.cts → types-fpiurdUk.d.cts} +1 -3
- package/dist/{types-BvOFo15W.d.ts → types-fpiurdUk.d.ts} +1 -3
- package/dist/{types-8Ow4Y7RA.d.cts → universalTokensConfigAuto-4Elh49mo.d.cts} +12863 -9187
- package/dist/{types-8Ow4Y7RA.d.ts → universalTokensConfigAuto-4Elh49mo.d.ts} +12863 -9187
- package/dist/{types-BzoCuKCE.d.cts → universalTokensConfigAuto-DMkgiw7i.d.cts} +12863 -9187
- package/dist/{types-BzoCuKCE.d.ts → universalTokensConfigAuto-DMkgiw7i.d.ts} +12863 -9187
- package/package.json +1 -1
- package/dist/chunk-34ELYHSN.js +0 -2
- package/dist/chunk-3RH3MQJN.js +0 -2
- package/dist/chunk-4UBSZT2O.js +0 -2
- package/dist/chunk-CT6EVSBR.cjs +0 -1
- package/dist/chunk-DHVRF7EV.js +0 -2
- package/dist/chunk-DKCYJNNB.js +0 -1
- package/dist/chunk-IIJ76JTE.js +0 -2
- package/dist/chunk-IL624YNH.cjs +0 -1
- package/dist/chunk-KHJXWDJY.js +0 -2
- package/dist/chunk-MAUK7QR2.js +0 -2
- package/dist/chunk-MIW2I7PH.js +0 -1
- package/dist/chunk-MVEKLQGM.cjs +0 -1
- package/dist/chunk-MWEHOHYJ.js +0 -2
- package/dist/chunk-OQ37WTUR.cjs +0 -1
- package/dist/chunk-SXUCNY2G.cjs +0 -1
- package/dist/chunk-U7C4F57A.cjs +0 -1
- package/dist/chunk-YLFRCCE4.cjs +0 -1
- package/dist/chunk-ZBNHYKKG.cjs +0 -1
package/dist/tokens/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { AvatarConfig, BadgeConfig, CheckboxConfig, ChipConfig, DividerConfig, InputConfig, LinkConfig, MenuConfig, RadioConfig, SwitchConfig } from './automation/configs.js';
|
|
2
|
-
import { g as ComponentConfig, V as VariantConfig, b as ComponentStateConfig, S as SelectedConfigurableProperty, a as PossibleStatesWithRest, d as SubComponentConfig } from '../index-
|
|
3
|
-
export { A as AllPossibleProperties, j as AllVariantKeys, i as AutoComponentName, h as AutoComponents, C as ConfigurablePropertiesName, E as ExtendablePropertiesName, L as LayerConfig, P as PossibleStates, k as SchemaStateValue, f as VariantConfigWithComponentStates, e as VariantConfigWithProperties, c as configurableProperties,
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
1
|
+
export { AvatarConfig, BadgeConfig, ButtonConfig, CheckboxConfig, ChipConfig, DividerConfig, IconButtonConfig, InputConfig, LinkConfig, MenuConfig, RadioConfig, SwitchConfig } from './automation/configs.js';
|
|
2
|
+
import { g as ComponentConfig, V as VariantConfig, b as ComponentStateConfig, S as SelectedConfigurableProperty, a as PossibleStatesWithRest, d as SubComponentConfig } from '../index-Dp0sWo0y.js';
|
|
3
|
+
export { A as AllPossibleProperties, j as AllVariantKeys, i as AutoComponentName, h as AutoComponents, C as ConfigurablePropertiesName, E as ExtendablePropertiesName, L as LayerConfig, P as PossibleStates, k as SchemaStateValue, f as VariantConfigWithComponentStates, e as VariantConfigWithProperties, c as configurableProperties, x as createComponentStates, r as createConfigurableProperty, y as createLayerConfig, z as createSubComponentConfig, u as createVariantConfig, w as createVariantConfigWithComponentStates, v as createVariantConfigWithProperties, l as findFixtureType, n as generateClassName, p as generateConfigStyles, o as generateDeclaration, m as generateDefaultClassName, q as generateStyles, s as statePseudoMapDocsMode, t as toMinimalDbConfigObject } from '../index-Dp0sWo0y.js';
|
|
4
|
+
import { d1 as UniversalTokensConfigAuto, f as UniversalTokensConfig, d as ShadowConfig, bl as FontWeightDescriptive, bm as FontWeightNumeric, aW as ColorModeForApp, c2 as ScaleModeForApp, g as ColorMode, m as ScaleMode, br as HighContrastMode, bY as RegionMode, aL as ButtonPalette, aP as ButtonVariant, aQ as ButtonVariantFlat, bL as OpacityStep } from '../universalTokensConfigAuto-DMkgiw7i.js';
|
|
5
|
+
export { A as AVATAR_SIZE_PREFIX, an as AlwaysPalette, ao as AlwaysPaletteAlias, ap as AlwaysPaletteColor, aq as Animation, ar as AriaAttribute, as as AvatarAbbreviationStrategy, at as AvatarShape, au as AvatarSize, av as AvatarSizeConfig, aw as AvatarVariant, y as BACKGROUND_COLOR_PREFIX, z as BORDER_RADIUS_PREFIX, D as BORDER_WIDTH_PREFIX, ae as BUTTON_GAP_VAR, af as BUTTON_SCALE_EFFECT, ax as BackgroundColor, ay as BackgroundPalette, az as BackgroundPaletteAlias, aA as BackgroundStyleProps, aB as BadgeSize, aC as BadgeVariant, aD as BorderRadius, aE as BorderRadiusConfig, aF as BorderStyleProps, aG as BorderWidth, aH as BorderWidthConfig, aI as BorderWidthWithElevation, aJ as Breakpoint, aK as BreakpointWithBase, B as BreakpointsConfig, aM as ButtonPaletteColor, aN as ButtonSize, aO as ButtonSpectrumColor, aR as CheckboxSize, aS as CheckboxValue, aT as CheckboxVariant, aU as ChipSize, aV as ChipVariant, C as ColorModeConfig, h as ColorsConfig, aX as CustomSizingStyleProps, $ as DARK_COLOR_MODE_CLASSNAME, aa as DEFAULT_COLOR_MODE_CLASSNAME, ab as DEFAULT_SCALE_MODE_CLASSNAME, J as DROP_SHADOW_PREFIX, aY as DataAttribute, aZ as Display, a_ as DividerVariant, a$ as ElevationAlias, E as ElevationConfig, i as ElevationLevel, j as ElevationPreset, ah as FONT_DECLARATIONS_MAP, K as FONT_FAMILY_PREFIX, L as FONT_SIZE_PREFIX, O as FONT_SLANT_PREFIX, N as FONT_WEIGHT_PREFIX, Q as FONT_WIDTH_PREFIX, b0 as Flex, b1 as FlexAlignContent, b2 as FlexAlignItems, b3 as FlexAlignSelf, b4 as FlexBasis, b5 as FlexDirection, b6 as FlexGrow, b7 as FlexJustifyContent, b8 as FlexShrink, b9 as FlexStyleProps, ba as FlexWrap, bb as FontAlias, ai as FontAxisConfig, F as FontConfig, bc as FontCssVar, ak as FontDeclarationConfig, aj as FontDeclarationItemConfig, al as FontDeclarationMap, bd as FontFamilyCDNUrl, be as FontFamilyConfig, bf as FontID, bg as FontSize, bh as FontSizeConfig, bi as FontSlantConfig, bj as FontType, bk as FontWeightConfig, am as FontWeightForFont, bn as FontWidthConfig, bo as ForegroundColor, bp as ForegroundPalette, bq as ForegroundPaletteAlias, G as GlobalDefaultsConfig, H as Hue, k as HueStep, R as ICON_SIZE_PREFIX, a2 as INVERT_COLOR_MODE_CLASSNAME, bs as IconButtonSize, I as IconPropsWithSVGProps, bt as IconSizeConfig, bu as IconSlotRenderProps, u as ImagePropsWithImgProps, bv as ImageStyleProps, bw as InputSize, a6 as LARGE_SCALE_MODE_CLASSNAME, X as LETTER_SPACING_PREFIX, a0 as LIGHT_COLOR_MODE_CLASSNAME, V as LINE_COLOR_PREFIX, W as LINE_HEIGHT_PREFIX, bx as LayoutStyleProps, by as LineClampAlias, bz as LineColor, bA as LineHeight, bB as LineHeightConfig, bC as LinePalette, bD as LinePaletteAlias, a5 as MEDIUM_SCALE_MODE_CLASSNAME, Y as MOTION_PREFIX, bE as Modes, M as MotionConfig, bF as MotionCssVar, bG as MotionSpringConfig, bH as MotionSpringConfigOptions, bI as MotionVariant, bJ as MotionVariantSpeed, bK as MotionVariantValues, bM as Overflow, ag as PSEUDO_STYLE_SELECTOR_MAP, bN as Palette, l as PaletteConfig, P as PaletteType, bO as PaletteValue, bP as Percentage, bQ as PercentageUnit, bR as PixelsUnit, bS as PlatformMode, bT as Position, bU as PropertyToPaletteAliasMap, b_ as RGBAUnit, b$ as RGBColorValue, bV as RadioSize, bW as RadioValue, bX as RadioVariant, bZ as RemsUnit, a4 as SMALL_SCALE_MODE_CLASSNAME, Z as SPECTRUM_COLOR_PREFIX, a1 as SYSTEM_COLOR_MODE_CLASSNAME, c0 as ScaleConfig, c1 as ScaleEffect, S as ScaleModeConfig, c3 as ShadowColor, c4 as ShadowColorConfig, c5 as ShadowOffset, c6 as ShadowOpacity, c7 as ShadowPalette, c8 as ShadowPaletteAlias, n as ShadowPreset, c9 as ShadowSpreadRadius, ca as ShadowStyleProps, cb as ShadowType, cc as ShadowTypeConfig, cd as ShadowVariant, ce as ShadowVariantConfig, cf as ShadowVariantInvert, cg as ShadowVariantWithElevation, ch as ShadowVariantWithInvert, ci as SharedPaletteAlias, r as SpacingAlias, cj as SpacingConfig, ck as SpacingStyleProps, cl as SpectrumColor, cm as SpectrumConfig, cn as StateStyleProps, co as StyleProps, cp as SwitchSize, ad as TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES, ac as TEXT_RESPONSIVE_CLASSNAME, _ as TEXT_TRANSFORM_PREFIX, cB as TShirtSize, cC as TShirtSizeCommon, cq as TextDecorationLine, cr as TextProperty, cs as TextStyleProps, ct as TextTransform, cu as TextTransformConfig, cv as TextVariant, cw as TextVariantTypography, o as TextVariantUi, cx as TextVariantWithoutEmphasized, cy as TransitionDelay, cz as TransitionDuration, cA as TransitionTiming, T as TypographyConfig, cD as TypographyResponsiveProperty, cE as TypographyStyle, cF as TypographyStyleProperty, cG as TypographyUnitValue, x as UDS_PREFIX, cH as UdsCssVar, cI as UnitlessUnit, cJ as UniversalAvatarIconProps, cK as UniversalAvatarImageProps, cL as UniversalAvatarProps, cM as UniversalAvatarTextProps, cN as UniversalBadgeProps, b as UniversalBoxProps, cO as UniversalButtonProps, cP as UniversalCheckboxProps, cQ as UniversalChipBaseProps, cR as UniversalChipButtonProps, cS as UniversalChipDismissibleProps, cT as UniversalChipLinkProps, cU as UniversalChipProps, cV as UniversalChipToggleProps, q as UniversalDividerProps, t as UniversalFormLabelProps, cW as UniversalIconButtonProps, cX as UniversalIconProps, cY as UniversalIconSlot, cZ as UniversalImageProps, c_ as UniversalInputProps, v as UniversalLinkProps, s as UniversalMenuItemProps, a as UniversalPressableProps, c$ as UniversalRadioGroupProps, d0 as UniversalRadioProps, p as UniversalStackProps, c as UniversalSwitchProps, U as UniversalTextProps, a7 as XLARGE_SCALE_MODE_CLASSNAME, a3 as XSMALL_SCALE_MODE_CLASSNAME, a8 as XXLARGE_SCALE_MODE_CLASSNAME, a9 as XXXLARGE_SCALE_MODE_CLASSNAME, w as alwaysPalette } from '../universalTokensConfigAuto-DMkgiw7i.js';
|
|
6
6
|
export { IconSize, IconVariant } from '@yahoo/uds-icons/types';
|
|
7
7
|
import '@yahoo/uds/fixtures';
|
|
8
8
|
import 'motion/react';
|
|
@@ -113,6 +113,56 @@ declare const variants: {
|
|
|
113
113
|
readonly sm: "uds-switch-size-sm-handle-icon";
|
|
114
114
|
readonly md: "uds-switch-size-md-handle-icon";
|
|
115
115
|
};
|
|
116
|
+
buttonSizeRoot: {
|
|
117
|
+
readonly sm: "uds-button-size-sm-root";
|
|
118
|
+
readonly md: "uds-button-size-md-root";
|
|
119
|
+
readonly lg: "uds-button-size-lg-root";
|
|
120
|
+
};
|
|
121
|
+
buttonSizeIcon: {
|
|
122
|
+
readonly sm: "uds-button-size-sm-icon";
|
|
123
|
+
readonly md: "uds-button-size-md-icon";
|
|
124
|
+
readonly lg: "uds-button-size-lg-icon";
|
|
125
|
+
};
|
|
126
|
+
buttonVariantRoot: {
|
|
127
|
+
readonly primary: "uds-button-variant-primary-root";
|
|
128
|
+
readonly secondary: "uds-button-variant-secondary-root";
|
|
129
|
+
readonly tertiary: "uds-button-variant-tertiary-root";
|
|
130
|
+
readonly alert: "uds-button-variant-alert-root";
|
|
131
|
+
readonly 'alert-secondary': "uds-button-variant-alert-secondary-root";
|
|
132
|
+
readonly 'alert-tertiary': "uds-button-variant-alert-tertiary-root";
|
|
133
|
+
readonly brand: "uds-button-variant-brand-root";
|
|
134
|
+
readonly 'brand-secondary': "uds-button-variant-brand-secondary-root";
|
|
135
|
+
readonly 'brand-tertiary': "uds-button-variant-brand-tertiary-root";
|
|
136
|
+
readonly info: "uds-button-variant-info-root";
|
|
137
|
+
readonly 'info-secondary': "uds-button-variant-info-secondary-root";
|
|
138
|
+
readonly 'info-tertiary': "uds-button-variant-info-tertiary-root";
|
|
139
|
+
readonly positive: "uds-button-variant-positive-root";
|
|
140
|
+
readonly 'positive-secondary': "uds-button-variant-positive-secondary-root";
|
|
141
|
+
readonly 'positive-tertiary': "uds-button-variant-positive-tertiary-root";
|
|
142
|
+
readonly warning: "uds-button-variant-warning-root";
|
|
143
|
+
readonly 'warning-secondary': "uds-button-variant-warning-secondary-root";
|
|
144
|
+
readonly 'warning-tertiary': "uds-button-variant-warning-tertiary-root";
|
|
145
|
+
};
|
|
146
|
+
buttonVariantIcon: {
|
|
147
|
+
readonly primary: "uds-button-variant-primary-icon";
|
|
148
|
+
readonly secondary: "uds-button-variant-secondary-icon";
|
|
149
|
+
readonly tertiary: "uds-button-variant-tertiary-icon";
|
|
150
|
+
readonly alert: "uds-button-variant-alert-icon";
|
|
151
|
+
readonly 'alert-secondary': "uds-button-variant-alert-secondary-icon";
|
|
152
|
+
readonly 'alert-tertiary': "uds-button-variant-alert-tertiary-icon";
|
|
153
|
+
readonly brand: "uds-button-variant-brand-icon";
|
|
154
|
+
readonly 'brand-secondary': "uds-button-variant-brand-secondary-icon";
|
|
155
|
+
readonly 'brand-tertiary': "uds-button-variant-brand-tertiary-icon";
|
|
156
|
+
readonly info: "uds-button-variant-info-icon";
|
|
157
|
+
readonly 'info-secondary': "uds-button-variant-info-secondary-icon";
|
|
158
|
+
readonly 'info-tertiary': "uds-button-variant-info-tertiary-icon";
|
|
159
|
+
readonly positive: "uds-button-variant-positive-icon";
|
|
160
|
+
readonly 'positive-secondary': "uds-button-variant-positive-secondary-icon";
|
|
161
|
+
readonly 'positive-tertiary': "uds-button-variant-positive-tertiary-icon";
|
|
162
|
+
readonly warning: "uds-button-variant-warning-icon";
|
|
163
|
+
readonly 'warning-secondary': "uds-button-variant-warning-secondary-icon";
|
|
164
|
+
readonly 'warning-tertiary': "uds-button-variant-warning-tertiary-icon";
|
|
165
|
+
};
|
|
116
166
|
chipSizeRoot: {
|
|
117
167
|
readonly sm: "uds-chip-size-sm-root";
|
|
118
168
|
readonly md: "uds-chip-size-md-root";
|
|
@@ -437,6 +487,20 @@ declare const variants: {
|
|
|
437
487
|
readonly primary: "uds-avatar-icon-variant-primary-root";
|
|
438
488
|
readonly secondary: "uds-avatar-icon-variant-secondary-root";
|
|
439
489
|
};
|
|
490
|
+
iconbuttonSizeRoot: {
|
|
491
|
+
readonly xs: "uds-iconbutton-size-xs-root";
|
|
492
|
+
readonly sm: "uds-iconbutton-size-sm-root";
|
|
493
|
+
readonly md: "uds-iconbutton-size-md-root";
|
|
494
|
+
readonly lg: "uds-iconbutton-size-lg-root";
|
|
495
|
+
readonly xl: "uds-iconbutton-size-xl-root";
|
|
496
|
+
};
|
|
497
|
+
iconbuttonSizeIcon: {
|
|
498
|
+
readonly xs: "uds-iconbutton-size-xs-icon";
|
|
499
|
+
readonly sm: "uds-iconbutton-size-sm-icon";
|
|
500
|
+
readonly md: "uds-iconbutton-size-md-icon";
|
|
501
|
+
readonly lg: "uds-iconbutton-size-lg-icon";
|
|
502
|
+
readonly xl: "uds-iconbutton-size-xl-icon";
|
|
503
|
+
};
|
|
440
504
|
menuSizeRoot: {
|
|
441
505
|
readonly default: "uds-menu-size-default-root";
|
|
442
506
|
};
|
|
@@ -1903,31 +1967,6 @@ declare const variants: {
|
|
|
1903
1967
|
xxxLarge: string;
|
|
1904
1968
|
xxLarge: string;
|
|
1905
1969
|
};
|
|
1906
|
-
buttonPalette: {
|
|
1907
|
-
accent: string;
|
|
1908
|
-
brand: string;
|
|
1909
|
-
alert: string;
|
|
1910
|
-
positive: string;
|
|
1911
|
-
warning: string;
|
|
1912
|
-
info: string;
|
|
1913
|
-
};
|
|
1914
|
-
buttonVariant: {
|
|
1915
|
-
primary: string;
|
|
1916
|
-
secondary: string;
|
|
1917
|
-
tertiary: string;
|
|
1918
|
-
};
|
|
1919
|
-
buttonSize: {
|
|
1920
|
-
sm: string;
|
|
1921
|
-
md: string;
|
|
1922
|
-
lg: string;
|
|
1923
|
-
};
|
|
1924
|
-
iconButtonSize: {
|
|
1925
|
-
xs: string;
|
|
1926
|
-
sm: string;
|
|
1927
|
-
md: string;
|
|
1928
|
-
lg: string;
|
|
1929
|
-
xl: string;
|
|
1930
|
-
};
|
|
1931
1970
|
width: {
|
|
1932
1971
|
full: string;
|
|
1933
1972
|
fit: string;
|
|
@@ -2053,8 +2092,8 @@ declare function getConfigVariantComponentStatesMatrix<C extends ComponentConfig
|
|
|
2053
2092
|
* @returns A Record of layer names to their properties, or null if no properties are found
|
|
2054
2093
|
*/
|
|
2055
2094
|
declare function getConfigVariantProperties(variant?: VariantConfig): {
|
|
2056
|
-
[x: string]: Readonly<Record<string, SelectedConfigurableProperty<"
|
|
2057
|
-
root: Readonly<Record<string, SelectedConfigurableProperty<"
|
|
2095
|
+
[x: string]: Readonly<Record<string, SelectedConfigurableProperty<"shadow" | "insetShadow" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "textTransform" | "letterSpacing" | "backgroundColor" | "borderRadius" | "borderColor" | "borderWidth" | "spacingHorizontal" | "spacingVertical" | "width" | "height" | "gap" | "color" | "textVariant" | "iconSize" | "fontVariationSettings" | "padding" | "opacity" | "textDecorationLine" | "scaleEffect", string, ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[] | "textVariants"[] | "spacingAliases"[] | ("foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[] | "opacitySteps"[] | ("spacingAliases" | "borderWidths")[] | ("linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[] | "borderRadii"[] | "iconSizes"[] | "shadowVariants"[] | "shadowVariantsWithInvert"[] | "textDecorationLines"[] | "scaleEffects"[], readonly (readonly string[])[]>>>;
|
|
2096
|
+
root: Readonly<Record<string, SelectedConfigurableProperty<"shadow" | "insetShadow" | "fontFamily" | "fontSize" | "fontWeight" | "lineHeight" | "textTransform" | "letterSpacing" | "backgroundColor" | "borderRadius" | "borderColor" | "borderWidth" | "spacingHorizontal" | "spacingVertical" | "width" | "height" | "gap" | "color" | "textVariant" | "iconSize" | "fontVariationSettings" | "padding" | "opacity" | "textDecorationLine" | "scaleEffect", string, ("backgroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[] | "textVariants"[] | "spacingAliases"[] | ("foregroundPaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[] | "opacitySteps"[] | ("spacingAliases" | "borderWidths")[] | ("linePaletteColors" | "spectrumColors" | "alwaysPaletteAliases")[] | "borderRadii"[] | "iconSizes"[] | "shadowVariants"[] | "shadowVariantsWithInvert"[] | "textDecorationLines"[] | "scaleEffects"[], readonly (readonly string[])[]>>>;
|
|
2058
2097
|
} | null;
|
|
2059
2098
|
|
|
2060
2099
|
type GenericProperty = SelectedConfigurableProperty<any, any>;
|
|
@@ -2093,9 +2132,6 @@ declare function getConfigPseudoStateVariablesWithSetter(config: Readonly<Univer
|
|
|
2093
2132
|
}>) => Readonly<UniversalTokensConfig>
|
|
2094
2133
|
];
|
|
2095
2134
|
|
|
2096
|
-
declare const getDefaultButtonBaseMap: Record<ButtonKind, (alias: ButtonPalette) => ButtonBaseConfig>;
|
|
2097
|
-
declare const button: ButtonConfig;
|
|
2098
|
-
|
|
2099
2135
|
declare const shadow: ShadowConfig;
|
|
2100
2136
|
|
|
2101
2137
|
/** @deprecated Descriptive font weights vary based on font, so this is not correct for each font we support
|
|
@@ -2115,14 +2151,6 @@ interface ParseButtonVariantFlatArgs {
|
|
|
2115
2151
|
variant?: ButtonVariant;
|
|
2116
2152
|
}
|
|
2117
2153
|
declare function parseButtonVariantFlat({ palette, variant, }: ParseButtonVariantFlatArgs): ButtonVariantFlat;
|
|
2118
|
-
interface parseDeprecatedButtonPaletteVariantArgs {
|
|
2119
|
-
flatVariant?: ButtonVariantFlat;
|
|
2120
|
-
}
|
|
2121
|
-
interface DeprecatedButtonVariant {
|
|
2122
|
-
palette: ButtonPalette | undefined;
|
|
2123
|
-
variant: ButtonVariant | undefined;
|
|
2124
|
-
}
|
|
2125
|
-
declare function parseDeprecatedButtonPaletteVariant({ flatVariant, }: parseDeprecatedButtonPaletteVariantArgs): DeprecatedButtonVariant;
|
|
2126
2154
|
|
|
2127
2155
|
/**
|
|
2128
2156
|
* Converts an object into an array of key-value pair entries.
|
|
@@ -2147,4 +2175,18 @@ declare function fromEntries<T extends string, K>(item: [T, K][] | (readonly [T,
|
|
|
2147
2175
|
type AnyObject = Record<string, unknown>;
|
|
2148
2176
|
declare function mapValues<T extends AnyObject, K extends (value: T[keyof T], key: keyof T, i: number) => unknown>(obj: T, callbackFn: K): { [key in keyof T]: ReturnType<K>; };
|
|
2149
2177
|
|
|
2150
|
-
|
|
2178
|
+
/**
|
|
2179
|
+
* Converts a number or string to a valid OpacityStep.
|
|
2180
|
+
*
|
|
2181
|
+
* Converts a number or string to a valid OpacityStep by:
|
|
2182
|
+
* - Parsing the value as an integer
|
|
2183
|
+
* - Clamping between 0 and 100
|
|
2184
|
+
* - Returning as a string in the format expected by OpacityStep
|
|
2185
|
+
*
|
|
2186
|
+
* @param opacity - The opacity value (number or string)
|
|
2187
|
+
* @returns A valid OpacityStep string clamped between 0-100
|
|
2188
|
+
* @throws {Error} If opacity is undefined, null, or cannot be parsed as a number
|
|
2189
|
+
*/
|
|
2190
|
+
declare function parseOpacityStep(opacity: number | string | undefined): OpacityStep;
|
|
2191
|
+
|
|
2192
|
+
export { type AllSelectors, type BaseSelector, ButtonPalette, ButtonVariant, ButtonVariantFlat, ColorMode, ColorModeForApp, ComponentConfig, ComponentStateConfig, type CssStyleObject, DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_FOR_APP, FontWeightDescriptive, FontWeightNumeric, HighContrastMode, OpacityStep, type ParentVariantSelector, PossibleStatesWithRest, RegionMode, ScaleMode, ScaleModeForApp, SelectedConfigurableProperty, ShadowConfig, SubComponentConfig, UniversalTokensConfig, UniversalTokensConfigAuto, VariantConfig, cartesianProduct, coalesceConfigVariant, entries, fontWeightMap, fromEntries, generateKeyFromFlatConfigPath, generateSchemaKey, getConfigDefaultValue, getConfigPseudoStateVariables, getConfigPseudoStateVariablesWithSetter, getConfigSubcomponents, getConfigVariantComponentStates, getConfigVariantComponentStatesMatrix, getConfigVariantProperties, getConfigVariantPseudoStates, getConfigVariants, isConfigDefaultValue, mapValues, parseButtonVariantFlat, parseOpacityStep, setConfigPseudoStateVariable, shadow, variants };
|
package/dist/tokens/index.js
CHANGED
|
@@ -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,
|
|
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,cartesianProduct,coalesceConfigVariant,configurableProperties,createComponentStates,createConfigurableProperty,createLayerConfig,createSubComponentConfig,createVariantConfig,createVariantConfigWithComponentStates,createVariantConfigWithProperties,findFixtureType,fontWeightMap,fromEntries,generateClassName,generateConfigStyles,generateDeclaration,generateDefaultClassName,generateKeyFromFlatConfigPath,generateSchemaKey,generateStyles,getConfigDefaultValue,getConfigPseudoStateVariables,getConfigPseudoStateVariablesWithSetter,getConfigSubcomponents,getConfigVariantComponentStates,getConfigVariantComponentStatesMatrix,getConfigVariantProperties,getConfigVariantPseudoStates,getConfigVariants,isConfigDefaultValue,parseButtonVariantFlat,setConfigPseudoStateVariable,shadow,statePseudoMapDocsMode,toMinimalDbConfigObject}from"../chunk-LGVDORBF.js";export{alwaysPalette,entries,mapValues,parseOpacityStep}from"../chunk-AZXEQF7C.js";export{variants}from"../chunk-EUHS2LRV.js";export{AVATAR_SIZE_PREFIX,BACKGROUND_COLOR_PREFIX,BORDER_RADIUS_PREFIX,BORDER_WIDTH_PREFIX,BUTTON_GAP_VAR,BUTTON_SCALE_EFFECT,DARK_COLOR_MODE_CLASSNAME,DEFAULT_COLOR_MODE_CLASSNAME,DEFAULT_SCALE_MODE_CLASSNAME,DROP_SHADOW_PREFIX,FONT_FAMILY_PREFIX,FONT_SIZE_PREFIX,FONT_SLANT_PREFIX,FONT_WEIGHT_PREFIX,FONT_WIDTH_PREFIX,ICON_SIZE_PREFIX,INVERT_COLOR_MODE_CLASSNAME,LARGE_SCALE_MODE_CLASSNAME,LETTER_SPACING_PREFIX,LIGHT_COLOR_MODE_CLASSNAME,LINE_COLOR_PREFIX,LINE_HEIGHT_PREFIX,MEDIUM_SCALE_MODE_CLASSNAME,MOTION_PREFIX,PSEUDO_STYLE_SELECTOR_MAP,SMALL_SCALE_MODE_CLASSNAME,SPECTRUM_COLOR_PREFIX,SYSTEM_COLOR_MODE_CLASSNAME,TEXT_RESPONSIVE_BREAKPOINT_CLASSNAMES,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-O7UVSJ5U.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../chunk-
|
|
1
|
+
"use strict";var e=require("../chunk-BRM6VXBO.cjs");Object.defineProperty(exports,"parseTokens",{enumerable:!0,get:function(){return e.parseTokens}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as UniversalTokensConfig, g as ColorMode, h as ColorsConfig, i as ElevationLevel, j as ElevationPreset, H as Hue, k as HueStep, P as PaletteType, l as PaletteConfig, m as ScaleMode } from '../universalTokensConfigAuto-DMkgiw7i.cjs';
|
|
2
2
|
import '@yahoo/uds-icons/types';
|
|
3
3
|
import 'motion/react';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as UniversalTokensConfig, g as ColorMode, h as ColorsConfig, i as ElevationLevel, j as ElevationPreset, H as Hue, k as HueStep, P as PaletteType, l as PaletteConfig, m as ScaleMode } from '../universalTokensConfigAuto-DMkgiw7i.js';
|
|
2
2
|
import '@yahoo/uds-icons/types';
|
|
3
3
|
import 'motion/react';
|
|
4
4
|
import 'react';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{parseTokens}from"../chunk-
|
|
1
|
+
export{parseTokens}from"../chunk-C2XEOEF3.js";
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { CSSRuleObject } from 'tailwindcss/types/config';
|
|
2
2
|
|
|
3
|
-
/** TODO: create typed theme function to ensure valid paths are being used */
|
|
4
|
-
type ThemeFn = (path: string) => string;
|
|
5
3
|
type SimpleStyleObject = Record<string, string> | CSSRuleObject;
|
|
6
4
|
type CssStyleObject = Record<`.${string}`, SimpleStyleObject | Record<string, SimpleStyleObject>>;
|
|
7
5
|
|
|
8
|
-
export type { CssStyleObject as C
|
|
6
|
+
export type { CssStyleObject as C };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { CSSRuleObject } from 'tailwindcss/types/config';
|
|
2
2
|
|
|
3
|
-
/** TODO: create typed theme function to ensure valid paths are being used */
|
|
4
|
-
type ThemeFn = (path: string) => string;
|
|
5
3
|
type SimpleStyleObject = Record<string, string> | CSSRuleObject;
|
|
6
4
|
type CssStyleObject = Record<`.${string}`, SimpleStyleObject | Record<string, SimpleStyleObject>>;
|
|
7
5
|
|
|
8
|
-
export type { CssStyleObject as C
|
|
6
|
+
export type { CssStyleObject as C };
|