@yahoo/uds 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{Text-DhQGH0NX.d.cts → Text-B8X1J9iH.d.cts} +23 -2
- package/dist/{Text-DhQGH0NX.d.ts → Text-B8X1J9iH.d.ts} +23 -2
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.d.cts +1 -1
- package/dist/experimental/client/index.d.ts +1 -1
- package/dist/experimental/client/index.js +2 -2
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +38 -2
- package/dist/experimental/index.d.ts +38 -2
- package/dist/experimental/index.js +1 -1
- package/dist/fixtures.cjs +1 -1
- package/dist/fixtures.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +1 -1
- package/dist/tailwind/utils.d.cts +1 -1
- package/dist/tailwind/utils.d.ts +1 -1
- package/dist/tokens/index.d.cts +2 -2
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/{types-DcXKQCo7.d.cts → types-BQ7FQgoT.d.cts} +28 -7
- package/dist/{types-DcXKQCo7.d.ts → types-BQ7FQgoT.d.ts} +28 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as react from 'react';
|
2
2
|
import { Ref, Dispatch, SetStateAction } from 'react';
|
3
|
-
import { q as UniversalBoxProps, r as UniversalStackProps, s as UniversalIconProps, t as UniversalImageProps, u as UniversalTextProps } from './types-
|
4
|
-
export { A as AVATAR_SIZE_PREFIX, a4 as AlwaysPalette, a5 as AlwaysPaletteAlias, a6 as Animation, a7 as AriaAttribute, a8 as AvatarShape, a9 as AvatarSize, aa as AvatarSizeConfig, x as BORDER_RADIUS_PREFIX, y as BORDER_WIDTH_PREFIX, a0 as BUTTON_CSS_VAR_MAP, ab as BackgroundColor, ac as BackgroundPalette, ad as BackgroundPaletteAlias, ae as BackgroundStyleProps, af as BorderRadius, ag as BorderRadiusConfig, ah as BorderStyleProps, ai as BorderWidth, aj as BorderWidthConfig, ak as BoxShadowConfig, al as ButtonBaseConfig, i as ButtonClassMap, am as ButtonClassName, an as ButtonColorConfig, ao as ButtonColorEffect, ap as ButtonColorEffectConfig, j as ButtonColorProperty, k as ButtonColorPropertyConfig, B as ButtonConfig, aq as ButtonKind, ar as ButtonMotionEffect, as as ButtonMotionProperty, at as ButtonMotionPropertyConfig, au as ButtonPalette, av as ButtonPaletteColor, aw as ButtonPaletteConfig, ax as ButtonSize, ay as ButtonSizeConfig, az as ButtonSizeProperty, aA as ButtonSpectrumColor, aB as ButtonState, aC as ButtonStateConfig, aD as ButtonStateEffectConfig, aE as ButtonVariant, aF as ButtonVariantConfig, C as ColorMode, aG as ColorModeConfig, aH as ColorModeForApp, a as ColorsConfig, aI as CorePalette, aJ as CorePaletteAlias, aK as CustomSizingStyleProps, N as DARK_COLOR_MODE_CLASSNAME, _ as DEFAULT_COLOR_MODE_CLASSNAME, $ as DEFAULT_SCALE_MODE_CLASSNAME, aL as DataAttribute, aM as Display, a3 as FONT_DECLARATIONS_MAP, z as FONT_FAMILY_PREFIX, D as FONT_SIZE_PREFIX, E as FONT_WEIGHT_PREFIX,
|
3
|
+
import { q as UniversalBoxProps, r as UniversalStackProps, s as UniversalIconProps, t as UniversalImageProps, u as UniversalTextProps } from './types-BQ7FQgoT.js';
|
4
|
+
export { A as AVATAR_SIZE_PREFIX, a4 as AlwaysPalette, a5 as AlwaysPaletteAlias, a6 as Animation, a7 as AriaAttribute, a8 as AvatarShape, a9 as AvatarSize, aa as AvatarSizeConfig, x as BORDER_RADIUS_PREFIX, y as BORDER_WIDTH_PREFIX, a0 as BUTTON_CSS_VAR_MAP, ab as BackgroundColor, ac as BackgroundPalette, ad as BackgroundPaletteAlias, ae as BackgroundStyleProps, af as BorderRadius, ag as BorderRadiusConfig, ah as BorderStyleProps, ai as BorderWidth, aj as BorderWidthConfig, ak as BoxShadowConfig, al as ButtonBaseConfig, i as ButtonClassMap, am as ButtonClassName, an as ButtonColorConfig, ao as ButtonColorEffect, ap as ButtonColorEffectConfig, j as ButtonColorProperty, k as ButtonColorPropertyConfig, B as ButtonConfig, aq as ButtonKind, ar as ButtonMotionEffect, as as ButtonMotionProperty, at as ButtonMotionPropertyConfig, au as ButtonPalette, av as ButtonPaletteColor, aw as ButtonPaletteConfig, ax as ButtonSize, ay as ButtonSizeConfig, az as ButtonSizeProperty, aA as ButtonSpectrumColor, aB as ButtonState, aC as ButtonStateConfig, aD as ButtonStateEffectConfig, aE as ButtonVariant, aF as ButtonVariantConfig, C as ColorMode, aG as ColorModeConfig, aH as ColorModeForApp, a as ColorsConfig, aI as CorePalette, aJ as CorePaletteAlias, aK as CustomSizingStyleProps, N as DARK_COLOR_MODE_CLASSNAME, _ as DEFAULT_COLOR_MODE_CLASSNAME, $ as DEFAULT_SCALE_MODE_CLASSNAME, aL as DataAttribute, aM as Display, aN as DividerVariant, a3 as FONT_DECLARATIONS_MAP, z as FONT_FAMILY_PREFIX, D as FONT_SIZE_PREFIX, E as FONT_WEIGHT_PREFIX, aO as Flex, aP as FlexAlignContent, aQ as FlexAlignItems, aR as FlexAlignSelf, aS as FlexBasis, aT as FlexDirection, aU as FlexGrow, aV as FlexJustifyContent, aW as FlexShrink, aX as FlexStyleProps, aY as FlexWrap, aZ as FontAlias, p as FontConfig, a_ as FontCssVar, o as FontDeclarationConfig, a$ as FontFamilyCDNUrl, b0 as FontFamilyConfig, n as FontID, b1 as FontSize, b2 as FontSizeConfig, b3 as FontType, F as FontWeightConfig, b4 as FontWeightDescriptive, d as FontWeightNumeric, b5 as ForegroundColor, b6 as ForegroundPalette, b7 as ForegroundPaletteAlias, b8 as HighContrastMode, H as Hue, b as HueStep, a1 as ICON_BUTTON_CSS_VAR_MAP, G as ICON_SIZE_PREFIX, I as IconButtonClassMap, b9 as IconButtonClassName, ba as IconButtonConfig, bb as IconButtonDefaultsConfig, bc as IconButtonSize, bd as IconSizeConfig, be as ImageStyleProps, V as LARGE_SCALE_MODE_CLASSNAME, O as LIGHT_COLOR_MODE_CLASSNAME, L as LINE_HEIGHT_PREFIX, bf as LayoutStyleProps, bg as LetterSpacing, bh as LineClampAlias, bi as LineColor, bj as LineHeight, bk as LineHeightConfig, bl as LinePalette, bm as LinePaletteAlias, R as MEDIUM_SCALE_MODE_CLASSNAME, J as MOTION_PREFIX, bn as Modes, m as MotionConfig, bo as MotionCssVar, bp as MotionSpringConfig, l as MotionSpringConfigOptions, M as MotionVariant, h as MotionVariantSpeed, bq as MotionVariantValues, br as Overflow, a2 as PSEUDO_STYLE_SELECTOR_MAP, bs as Palette, c as PaletteConfig, P as PaletteType, bt as PaletteValue, bu as PlatformMode, bv as Position, bw as PropertyToPaletteAliasMap, bx as RegionMode, Q as SMALL_SCALE_MODE_CLASSNAME, K as SPECTRUM_COLOR_PREFIX, by as ScaleConfig, bz as ScaleEffectMap, S as ScaleMode, bA as ScaleModeConfig, bB as ScaleModeForApp, bC as SpacingAlias, bD as SpacingConfig, bE as SpacingStyleProps, bF as SpectrumColor, bG as SpectrumConfig, bH as StateStyleProps, bI as StyleProps, T as TEXT_TRANSFORM_PREFIX, bR as TShirtSize, bS as TShirtSizeCommon, bJ as TextProperty, bK as TextStyleProps, bL as TextTransform, bM as TextTransformConfig, bN as TextVariant, bO as TransitionDelay, bP as TransitionDuration, bQ as TransitionTiming, w as UDS_PREFIX, bT as UdsCssVar, bU as UniversalAvatarProps, e as UniversalButtonProps, bV as UniversalDividerProps, f as UniversalIconButtonProps, g as UniversalPressableProps, bW as UniversalTextInputProps, U as UniversalTokensConfig, W as XLARGE_SCALE_MODE_CLASSNAME, X as XSMALL_SCALE_MODE_CLASSNAME, Y as XXLARGE_SCALE_MODE_CLASSNAME, Z as XXXLARGE_SCALE_MODE_CLASSNAME, v as alwaysPalette } from './types-BQ7FQgoT.js';
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
6
6
|
export { Button, ButtonProps, IconButton, IconButtonProps, Pressable, PressableProps, SpringMotionConfig, SpringMotionConfigProps } from '@yahoo/uds/client';
|
7
7
|
export { Combination, CombinationsConfig, DEFAULT_COLOR_MODE, DEFAULT_COLOR_MODE_FOR_APP, DEFAULT_HIGH_CONTRAST_MODE, DEFAULT_REGION_MODE, DEFAULT_SCALE_MODE, DEFAULT_SCALE_MODE_FOR_APP, button, defaultTokensConfig, entries, fontWeightMap, fromEntries, generateConfigCombinations, getDefaultButtonBaseMap, mapValues, variants } from './tokens/index.js';
|
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{createSlot as o,getStyles as r}from"./chunk-T6P7XTY2.js";export{Icon,cva,cx,getStyles}from"./chunk-T6P7XTY2.js";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,defaultTokensConfig,fromEntries,generateConfigCombinations,getDefaultButtonBaseMap}from"./chunk-QYZNWDRL.js";export{variants}from"./chunk-3G7IRLGN.js";export{entries,fontWeightMap,mapValues}from"./chunk-SUASN3GG.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_WEIGHT_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_TRANSFORM_PREFIX,UDS_PREFIX,XLARGE_SCALE_MODE_CLASSNAME,XSMALL_SCALE_MODE_CLASSNAME,XXLARGE_SCALE_MODE_CLASSNAME,XXXLARGE_SCALE_MODE_CLASSNAME}from"./chunk-PE2P7J44.js";import{forwardRef as t}from"react";import{jsx as
|
1
|
+
import{createSlot as o,getStyles as r}from"./chunk-T6P7XTY2.js";export{Icon,cva,cx,getStyles}from"./chunk-T6P7XTY2.js";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,defaultTokensConfig,fromEntries,generateConfigCombinations,getDefaultButtonBaseMap}from"./chunk-QYZNWDRL.js";export{variants}from"./chunk-3G7IRLGN.js";export{entries,fontWeightMap,mapValues}from"./chunk-SUASN3GG.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_WEIGHT_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_TRANSFORM_PREFIX,UDS_PREFIX,XLARGE_SCALE_MODE_CLASSNAME,XSMALL_SCALE_MODE_CLASSNAME,XXLARGE_SCALE_MODE_CLASSNAME,XXXLARGE_SCALE_MODE_CLASSNAME}from"./chunk-PE2P7J44.js";import{forwardRef as t,Children as e,isValidElement as i,cloneElement as a}from"react";import{jsx as n}from"react/jsx-runtime";import{isFunction as d}from"lodash-es";export{Button,IconButton,Pressable,SpringMotionConfig}from"@yahoo/uds/client";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var l=o(),s=t((function({asChild:o,className:t,backgroundColor:e,borderRadius:i,borderTopStartRadius:a,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:f,borderColor:p,borderStartColor:c,borderEndColor:E,borderTopColor:b,borderBottomColor:S,borderWidth:C,borderVerticalWidth:g,borderHorizontalWidth:h,borderStartWidth:_,borderEndWidth:m,borderTopWidth:u,borderBottomWidth:T,alignContent:R,alignItems:A,alignSelf:W,flex:x,flexDirection:L,flexGrow:B,flexShrink:O,flexWrap:D,justifyContent:M,flexBasis:w,display:I="flex",overflow:G,overflowX:N,overflowY:F,position:P,spacing:X,spacingHorizontal:y,spacingVertical:H,spacingBottom:v,spacingEnd:V,spacingStart:k,spacingTop:z,offset:U,offsetVertical:j,offsetHorizontal:Y,offsetBottom:Z,offsetEnd:J,offsetStart:K,offsetTop:Q,columnGap:$,rowGap:q,width:oo,height:ro,...to},eo){const io=r({backgroundColor:e,borderRadius:i,borderTopStartRadius:a,borderTopEndRadius:d,borderBottomStartRadius:s,borderBottomEndRadius:f,borderColor:p,borderStartColor:c,borderEndColor:E,borderTopColor:b,borderBottomColor:S,borderWidth:C,borderVerticalWidth:g,borderHorizontalWidth:h,borderStartWidth:_,borderEndWidth:m,borderTopWidth:u,borderBottomWidth:T,alignContent:R,alignItems:A,alignSelf:W,flex:x,flexDirection:L,flexGrow:B,flexShrink:O,flexWrap:D,justifyContent:M,flexBasis:w,display:I,overflow:G,overflowX:N,overflowY:F,position:P,spacing:X,spacingHorizontal:y,spacingVertical:H,spacingBottom:v,spacingEnd:V,spacingStart:k,spacingTop:z,offset:U,offsetVertical:j,offsetHorizontal:Y,offsetBottom:Z,offsetEnd:J,offsetStart:K,offsetTop:Q,columnGap:$,rowGap:q,width:oo,height:ro,className:t});return n(o?l:"div",{className:io,ref:eo,...to})})),f=(o,r)=>((o,r)=>{const t=d(r)?r:()=>r;return o.flatMap(((o,r)=>0!==r?[t(r),o]:[o]))})(e.toArray(o),(o=>{const t=d(r)?r(o):r;return i(t)?a(t,{...t.props,key:t.key??`interspersed-${o}`}):null})),p=t((function({gap:o,children:r,separator:t,...e},i){return n(s,{ref:i,flexDirection:"row",rowGap:o,columnGap:o,...e,children:t?f(r,t):r})}));function c({width:o,height:t,src:e,alt:i,contentFit:a,backgroundColor:d,borderRadius:l,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:E,borderStartColor:b,borderEndColor:S,borderTopColor:C,borderBottomColor:g,borderWidth:h,borderVerticalWidth:_,borderHorizontalWidth:m,borderStartWidth:u,borderEndWidth:T,borderTopWidth:R,borderBottomWidth:A,alignContent:W,alignItems:x,alignSelf:L,flex:B,flexDirection:O,flexGrow:D,flexShrink:M,flexWrap:w,justifyContent:I,flexBasis:G,display:N,overflow:F,overflowX:P,overflowY:X,position:y,spacing:H,spacingHorizontal:v,spacingVertical:V,spacingBottom:k,spacingEnd:z,spacingStart:U,spacingTop:j,offset:Y,offsetVertical:Z,offsetHorizontal:J,offsetBottom:K,offsetEnd:Q,offsetStart:$,offsetTop:q,columnGap:oo,rowGap:ro,...to}){const eo=r({contentFit:a,backgroundColor:d,borderRadius:l,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:E,borderStartColor:b,borderEndColor:S,borderTopColor:C,borderBottomColor:g,borderWidth:h,borderVerticalWidth:_,borderHorizontalWidth:m,borderStartWidth:u,borderEndWidth:T,borderTopWidth:R,borderBottomWidth:A,alignContent:W,alignItems:x,alignSelf:L,flex:B,flexDirection:O,flexGrow:D,flexShrink:M,flexWrap:w,justifyContent:I,flexBasis:G,display:N,overflow:F,overflowX:P,overflowY:X,position:y,spacing:H,spacingHorizontal:v,spacingVertical:V,spacingBottom:k,spacingEnd:z,spacingStart:U,spacingTop:j,offset:Y,offsetVertical:Z,offsetHorizontal:J,offsetBottom:K,offsetEnd:Q,offsetStart:$,offsetTop:q,columnGap:oo,rowGap:ro});return n("img",{src:e,alt:i,className:eo,style:{objectPosition:"left",width:o,height:t},...to})}var E=o(),b={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",caption1:"p",caption2:"p",legal1:"p"},S=t((function({className:o,asChild:t,color:e="primary",variant:i="body1",as:a=b[i],fontSize:d=i,fontFamily:l=i,fontWeight:s=i,lineHeight:f=i,textTransform:p=i,textAlign:c,backgroundColor:S,borderRadius:C,borderTopStartRadius:g,borderTopEndRadius:h,borderBottomStartRadius:_,borderBottomEndRadius:m,borderColor:u,borderStartColor:T,borderEndColor:R,borderTopColor:A,borderBottomColor:W,borderWidth:x,borderVerticalWidth:L,borderHorizontalWidth:B,borderStartWidth:O,borderEndWidth:D,borderTopWidth:M,borderBottomWidth:w,alignContent:I,alignItems:G,alignSelf:N,flex:F,flexDirection:P,flexGrow:X,flexShrink:y,flexWrap:H,justifyContent:v,flexBasis:V,display:k,overflow:z,overflowX:U,overflowY:j,position:Y,spacing:Z,spacingHorizontal:J,spacingVertical:K,spacingBottom:Q,spacingEnd:$,spacingStart:q,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:io,offsetEnd:ao,offsetStart:no,offsetTop:lo,columnGap:so,rowGap:fo,...po},co){const Eo=r({className:o,color:e,fontFamily:l,fontSize:d,fontWeight:s,lineHeight:f,textTransform:p,textAlign:c,backgroundColor:S,borderRadius:C,borderTopStartRadius:g,borderTopEndRadius:h,borderBottomStartRadius:_,borderBottomEndRadius:m,borderColor:u,borderStartColor:T,borderEndColor:R,borderTopColor:A,borderBottomColor:W,borderWidth:x,borderVerticalWidth:L,borderHorizontalWidth:B,borderStartWidth:O,borderEndWidth:D,borderTopWidth:M,borderBottomWidth:w,alignContent:I,alignItems:G,alignSelf:N,flex:F,flexDirection:P,flexGrow:X,flexShrink:y,flexWrap:H,justifyContent:v,flexBasis:V,display:k,overflow:z,overflowX:U,overflowY:j,position:Y,spacing:Z,spacingHorizontal:J,spacingVertical:K,spacingBottom:Q,spacingEnd:$,spacingStart:q,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:io,offsetEnd:ao,offsetStart:no,offsetTop:lo,columnGap:so,rowGap:fo});return n(t?E:a,{className:Eo,ref:co,...po})})),C=t((function({gap:o,children:r,separator:t,...e},i){return n(s,{ref:i,flexDirection:"column",columnGap:o,rowGap:o,...e,children:t?f(r,t):r})}));export{s as Box,p as HStack,c as Image,S as Text,C as VStack};
|