@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/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-DcXKQCo7.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, a3 as FONT_DECLARATIONS_MAP, z as FONT_FAMILY_PREFIX, D as FONT_SIZE_PREFIX, E as FONT_WEIGHT_PREFIX, aN as Flex, aO as FlexAlignContent, aP as FlexAlignItems, aQ as FlexAlignSelf, aR as FlexBasis, aS as FlexDirection, aT as FlexGrow, aU as FlexJustifyContent, aV as FlexShrink, aW as FlexStyleProps, aX as FlexWrap, aY as FontAlias, p as FontConfig, aZ as FontCssVar, o as FontDeclarationConfig, a_ as FontFamilyCDNUrl, a$ as FontFamilyConfig, n as FontID, b0 as FontSize, b1 as FontSizeConfig, b2 as FontType, F as FontWeightConfig, b3 as FontWeightDescriptive, d as FontWeightNumeric, b4 as ForegroundColor, b5 as ForegroundPalette, b6 as ForegroundPaletteAlias, b7 as HighContrastMode, H as Hue, b as HueStep, a1 as ICON_BUTTON_CSS_VAR_MAP, G as ICON_SIZE_PREFIX, I as IconButtonClassMap, b8 as IconButtonClassName, b9 as IconButtonConfig, ba as IconButtonDefaultsConfig, bb as IconButtonSize, bc as IconSizeConfig, bd as ImageStyleProps, V as LARGE_SCALE_MODE_CLASSNAME, O as LIGHT_COLOR_MODE_CLASSNAME, L as LINE_HEIGHT_PREFIX, be as LayoutStyleProps, bf as LetterSpacing, bg as LineClampAlias, bh as LineColor, bi as LineHeight, bj as LineHeightConfig, bk as LinePalette, bl as LinePaletteAlias, R as MEDIUM_SCALE_MODE_CLASSNAME, J as MOTION_PREFIX, bm as Modes, m as MotionConfig, bn as MotionCssVar, bo as MotionSpringConfig, l as MotionSpringConfigOptions, M as MotionVariant, h as MotionVariantSpeed, bp as MotionVariantValues, bq as Overflow, a2 as PSEUDO_STYLE_SELECTOR_MAP, br as Palette, c as PaletteConfig, P as PaletteType, bs as PaletteValue, bt as PlatformMode, bu as Position, bv as PropertyToPaletteAliasMap, bw as RegionMode, Q as SMALL_SCALE_MODE_CLASSNAME, K as SPECTRUM_COLOR_PREFIX, bx as ScaleConfig, by as ScaleEffectMap, S as ScaleMode, bz as ScaleModeConfig, bA as ScaleModeForApp, bB as SpacingAlias, bC as SpacingConfig, bD as SpacingStyleProps, bE as SpectrumColor, bF as SpectrumConfig, bG as StateStyleProps, bH as StyleProps, T as TEXT_TRANSFORM_PREFIX, bQ as TShirtSize, bR as TShirtSizeCommon, bI as TextProperty, bJ as TextStyleProps, bK as TextTransform, bL as TextTransformConfig, bM as TextVariant, bN as TransitionDelay, bO as TransitionDuration, bP as TransitionTiming, w as UDS_PREFIX, bS as UdsCssVar, bT as UniversalAvatarProps, e as UniversalButtonProps, f as UniversalIconButtonProps, g as UniversalPressableProps, bU 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-DcXKQCo7.js';
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 e}from"react/jsx-runtime";export{Button,IconButton,Pressable,SpringMotionConfig}from"@yahoo/uds/client";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var i=o(),a=t((function({asChild:o,className:t,backgroundColor:a,borderRadius:n,borderTopStartRadius:d,borderTopEndRadius:l,borderBottomStartRadius:s,borderBottomEndRadius:f,borderColor:p,borderStartColor:c,borderEndColor:E,borderTopColor:b,borderBottomColor:S,borderWidth:C,borderVerticalWidth:g,borderHorizontalWidth:_,borderStartWidth:h,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:H,spacingVertical:v,spacingBottom:y,spacingEnd:V,spacingStart:z,spacingTop:k,offset:U,offsetVertical:j,offsetHorizontal:Y,offsetBottom:Z,offsetEnd:J,offsetStart:K,offsetTop:Q,columnGap:q,rowGap:$,width:oo,height:ro,...to},eo){const io=r({backgroundColor:a,borderRadius:n,borderTopStartRadius:d,borderTopEndRadius:l,borderBottomStartRadius:s,borderBottomEndRadius:f,borderColor:p,borderStartColor:c,borderEndColor:E,borderTopColor:b,borderBottomColor:S,borderWidth:C,borderVerticalWidth:g,borderHorizontalWidth:_,borderStartWidth:h,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:H,spacingVertical:v,spacingBottom:y,spacingEnd:V,spacingStart:z,spacingTop:k,offset:U,offsetVertical:j,offsetHorizontal:Y,offsetBottom:Z,offsetEnd:J,offsetStart:K,offsetTop:Q,columnGap:q,rowGap:$,width:oo,height:ro,className:t});return e(o?i:"div",{className:io,ref:eo,...to})})),n=t((function({gap:o,...r},t){return e(a,{ref:t,flexDirection:"row",rowGap:o,columnGap:o,...r})}));function d({width:o,height:t,src:i,alt:a,contentFit:n,backgroundColor:d,borderRadius:l,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:E,borderStartColor:b,borderEndColor:S,borderTopColor:C,borderBottomColor:g,borderWidth:_,borderVerticalWidth:h,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:H,spacing:v,spacingHorizontal:y,spacingVertical:V,spacingBottom:z,spacingEnd:k,spacingStart:U,spacingTop:j,offset:Y,offsetVertical:Z,offsetHorizontal:J,offsetBottom:K,offsetEnd:Q,offsetStart:q,offsetTop:$,columnGap:oo,rowGap:ro,...to}){const eo=r({contentFit:n,backgroundColor:d,borderRadius:l,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:E,borderStartColor:b,borderEndColor:S,borderTopColor:C,borderBottomColor:g,borderWidth:_,borderVerticalWidth:h,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:H,spacing:v,spacingHorizontal:y,spacingVertical:V,spacingBottom:z,spacingEnd:k,spacingStart:U,spacingTop:j,offset:Y,offsetVertical:Z,offsetHorizontal:J,offsetBottom:K,offsetEnd:Q,offsetStart:q,offsetTop:$,columnGap:oo,rowGap:ro});return e("img",{src:i,alt:a,className:eo,style:{objectPosition:"left",width:o,height:t},...to})}var l=o(),s={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"},f=t((function({className:o,asChild:t,color:i="primary",variant:a="body1",as:n=s[a],fontSize:d=a,fontFamily:f=a,fontWeight:p=a,lineHeight:c=a,textTransform:E=a,textAlign:b,backgroundColor:S,borderRadius:C,borderTopStartRadius:g,borderTopEndRadius:_,borderBottomStartRadius:h,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:H,flexWrap:v,justifyContent:y,flexBasis:V,display:z,overflow:k,overflowX:U,overflowY:j,position:Y,spacing:Z,spacingHorizontal:J,spacingVertical:K,spacingBottom:Q,spacingEnd:q,spacingStart:$,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:i,fontFamily:f,fontSize:d,fontWeight:p,lineHeight:c,textTransform:E,textAlign:b,backgroundColor:S,borderRadius:C,borderTopStartRadius:g,borderTopEndRadius:_,borderBottomStartRadius:h,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:H,flexWrap:v,justifyContent:y,flexBasis:V,display:z,overflow:k,overflowX:U,overflowY:j,position:Y,spacing:Z,spacingHorizontal:J,spacingVertical:K,spacingBottom:Q,spacingEnd:q,spacingStart:$,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:io,offsetEnd:ao,offsetStart:no,offsetTop:lo,columnGap:so,rowGap:fo});return e(t?l:n,{className:Eo,ref:co,...po})})),p=t((function({gap:o,...r},t){return e(a,{ref:t,flexDirection:"column",columnGap:o,rowGap:o,...r})}));export{a as Box,n as HStack,d as Image,f as Text,p as VStack};
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};