@yahoo/uds 1.7.3 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/cli/commands/codemod/codemod.ts +12 -9
- package/cli/commands/login.ts +2 -0
- package/cli/commands/logout.ts +3 -0
- package/cli/commands/purge.ts +2 -0
- package/cli/commands/sync.ts +2 -0
- package/cli/commands/uds.ts +2 -0
- package/cli/commands/version.ts +2 -0
- package/cli/tsconfig.json +4 -4
- package/cli/utils/analytics.ts +30 -0
- package/cli/utils/auth.ts +2 -2
- package/cli/utils/configWorker.ts +3 -2
- package/dist/analytics/server.cjs +1 -0
- package/dist/analytics/server.d.cts +1 -0
- package/dist/analytics/server.d.ts +1 -0
- package/dist/analytics/server.js +1 -0
- package/dist/chunk-3LHMB72F.cjs +1 -2
- package/dist/chunk-AWEUIM22.cjs +1 -3
- package/dist/chunk-FK7UKIGU.js +2 -0
- package/dist/chunk-FRZFCKD2.js +1 -2
- package/dist/chunk-J6D4HCFT.cjs +1 -2
- package/dist/chunk-LNFRMD6G.cjs +1 -2
- package/dist/chunk-LPM6JKIW.js +1 -2
- package/dist/chunk-PECN66KD.cjs +1 -3
- package/dist/chunk-PSTMMXTR.js +1 -2
- package/dist/chunk-QELQ6JY6.cjs +2 -0
- package/dist/chunk-RGE634O5.js +1 -2
- package/dist/chunk-SSMBE7SI.cjs +1 -2
- package/dist/chunk-VZAZKBYK.cjs +1 -2
- package/dist/chunk-WLOEKYUI.cjs +2 -4
- package/dist/chunk-YRYDHL65.js +1 -2
- package/dist/client/index.cjs +2 -3
- package/dist/client/index.js +3 -5
- package/dist/experimental/index.cjs +2 -3
- package/dist/experimental/index.js +2 -3
- package/dist/fixtures.cjs +1 -1
- package/dist/fixtures.js +1 -1
- package/dist/flags.cjs +1 -0
- package/dist/flags.d.cts +22 -0
- package/dist/flags.d.ts +22 -0
- package/dist/flags.js +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -22
- package/dist/index.d.ts +1 -22
- package/dist/index.js +1 -2
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +2 -3
- package/dist/tailwind/plugin.js +2 -3
- package/dist/tailwind/purger.cjs +1 -2
- package/dist/tailwind/tsMorph.cjs +1 -3
- package/dist/tailwind/tsMorph.js +1 -2
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.js +1 -1
- package/package.json +23 -3
- package/cli/codemods/propsToClass.test.tsx +0 -97
- package/cli/utils/auth.test.ts +0 -202
- package/cli/utils/purgeCSS.test.ts +0 -210
- package/dist/chunk-KEQTRKKF.js +0 -3
- package/dist/chunk-RILYWBPB.cjs +0 -1
package/dist/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("./chunk-RILYWBPB.cjs"),r=require("./chunk-WLOEKYUI.cjs"),t=require("./chunk-3LHMB72F.cjs"),o=require("./chunk-LNFRMD6G.cjs"),n=require("./chunk-J6D4HCFT.cjs"),i=require("react"),a=require("react/jsx-runtime"),d=require("@yahoo/uds/client"),f=e.createSlot(),l=i.forwardRef((function({asChild:r,className:t,backgroundColor:o,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:d,borderBottomStartRadius:l,borderBottomEndRadius:s,borderColor:p,borderStartColor:u,borderEndColor:c,borderTopColor:b,borderBottomColor:E,borderWidth:g,borderVerticalWidth:S,borderHorizontalWidth:_,borderStartWidth:O,borderEndWidth:C,borderTopWidth:m,borderBottomWidth:A,alignContent:R,alignItems:x,alignSelf:T,flex:L,flexDirection:P,flexGrow:h,flexShrink:M,flexWrap:y,justifyContent:D,flexBasis:B,display:W="flex",overflow:j,overflowX:I,overflowY:F,position:N,spacing:w,spacingHorizontal:X,spacingVertical:G,spacingBottom:H,spacingEnd:V,spacingStart:v,spacingTop:U,offset:k,offsetVertical:z,offsetHorizontal:Y,offsetBottom:q,offsetEnd:Z,offsetStart:K,offsetTop:J,columnGap:Q,rowGap:$,...ee},re){const te=e.getStyles({backgroundColor:o,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:d,borderBottomStartRadius:l,borderBottomEndRadius:s,borderColor:p,borderStartColor:u,borderEndColor:c,borderTopColor:b,borderBottomColor:E,borderWidth:g,borderVerticalWidth:S,borderHorizontalWidth:_,borderStartWidth:O,borderEndWidth:C,borderTopWidth:m,borderBottomWidth:A,alignContent:R,alignItems:x,alignSelf:T,flex:L,flexDirection:P,flexGrow:h,flexShrink:M,flexWrap:y,justifyContent:D,flexBasis:B,display:W,overflow:j,overflowX:I,overflowY:F,position:N,spacing:w,spacingHorizontal:X,spacingVertical:G,spacingBottom:H,spacingEnd:V,spacingStart:v,spacingTop:U,offset:k,offsetVertical:z,offsetHorizontal:Y,offsetBottom:q,offsetEnd:Z,offsetStart:K,offsetTop:J,columnGap:Q,rowGap:$,className:t}),oe=r?f:"div";return a.jsx(oe,{className:te,ref:re,...ee})})),s=i.forwardRef((function({gap:e,...r},t){return a.jsx(l,{ref:t,flexDirection:"row",rowGap:e,columnGap:e,...r})}));var p=e.createSlot(),u=i.forwardRef((function({className:r,asChild:t,onPress:o,onClick:n=o,backgroundColor:i,borderRadius:d,borderTopStartRadius:f,borderTopEndRadius:l,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:c,borderStartColor:b,borderEndColor:E,borderTopColor:g,borderBottomColor:S,borderWidth:_,borderVerticalWidth:O,borderHorizontalWidth:C,borderStartWidth:m,borderEndWidth:A,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:L,alignSelf:P,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:B,justifyContent:W,flexBasis:j,display:I,overflow:F,overflowX:N,overflowY:w,position:X,spacing:G,spacingHorizontal:H,spacingVertical:V,spacingBottom:v,spacingEnd:U,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:K,offsetEnd:J,offsetStart:Q,offsetTop:$,columnGap:ee,rowGap:re,...te},oe){const ne=e.getStyles({backgroundColor:i,borderRadius:d,borderTopStartRadius:f,borderTopEndRadius:l,borderBottomStartRadius:s,borderBottomEndRadius:u,borderColor:c,borderStartColor:b,borderEndColor:E,borderTopColor:g,borderBottomColor:S,borderWidth:_,borderVerticalWidth:O,borderHorizontalWidth:C,borderStartWidth:m,borderEndWidth:A,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:L,alignSelf:P,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:B,justifyContent:W,flexBasis:j,display:I,overflow:F,overflowX:N,overflowY:w,position:X,spacing:G,spacingHorizontal:H,spacingVertical:V,spacingBottom:v,spacingEnd:U,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:K,offsetEnd:J,offsetStart:Q,offsetTop:$,columnGap:ee,rowGap:re,className:r}),ie=t?p:"button";return a.jsx(ie,{className:ne,ref:oe,onClick:n,...te})})),c=e.createSlot(),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"},E=i.forwardRef((function({className:r,asChild:t,color:o="primary",variant:n="body1",as:i=b[n],fontSize:d=n,fontFamily:f=n,fontWeight:l=n,lineHeight:s=n,textTransform:p=n,textAlign:u,backgroundColor:E,borderRadius:g,borderTopStartRadius:S,borderTopEndRadius:_,borderBottomStartRadius:O,borderBottomEndRadius:C,borderColor:m,borderStartColor:A,borderEndColor:R,borderTopColor:x,borderBottomColor:T,borderWidth:L,borderVerticalWidth:P,borderHorizontalWidth:h,borderStartWidth:M,borderEndWidth:y,borderTopWidth:D,borderBottomWidth:B,alignContent:W,alignItems:j,alignSelf:I,flex:F,flexDirection:N,flexGrow:w,flexShrink:X,flexWrap:G,justifyContent:H,flexBasis:V,display:v,overflow:U,overflowX:k,overflowY:z,position:Y,spacing:q,spacingHorizontal:Z,spacingVertical:K,spacingBottom:J,spacingEnd:Q,spacingStart:$,spacingTop:ee,offset:re,offsetVertical:te,offsetHorizontal:oe,offsetBottom:ne,offsetEnd:ie,offsetStart:ae,offsetTop:de,columnGap:fe,rowGap:le,...se},pe){const ue=e.getStyles({className:r,color:o,fontFamily:f,fontSize:d,fontWeight:l,lineHeight:s,textTransform:p,textAlign:u,backgroundColor:E,borderRadius:g,borderTopStartRadius:S,borderTopEndRadius:_,borderBottomStartRadius:O,borderBottomEndRadius:C,borderColor:m,borderStartColor:A,borderEndColor:R,borderTopColor:x,borderBottomColor:T,borderWidth:L,borderVerticalWidth:P,borderHorizontalWidth:h,borderStartWidth:M,borderEndWidth:y,borderTopWidth:D,borderBottomWidth:B,alignContent:W,alignItems:j,alignSelf:I,flex:F,flexDirection:N,flexGrow:w,flexShrink:X,flexWrap:G,justifyContent:H,flexBasis:V,display:v,overflow:U,overflowX:k,overflowY:z,position:Y,spacing:q,spacingHorizontal:Z,spacingVertical:K,spacingBottom:J,spacingEnd:Q,spacingStart:$,spacingTop:ee,offset:re,offsetVertical:te,offsetHorizontal:oe,offsetBottom:ne,offsetEnd:ie,offsetStart:ae,offsetTop:de,columnGap:fe,rowGap:le}),ce=t?c:i;return a.jsx(ce,{className:ue,ref:pe,...se})})),g=i.forwardRef((function({gap:e,...r},t){return a.jsx(l,{ref:t,flexDirection:"column",columnGap:e,rowGap:e,...r})}));Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return e.Icon}}),Object.defineProperty(exports,"cva",{enumerable:!0,get:function(){return e.cva}}),Object.defineProperty(exports,"cx",{enumerable:!0,get:function(){return e.cx}}),Object.defineProperty(exports,"getFeatureFlags",{enumerable:!0,get:function(){return e.getFeatureFlags}}),Object.defineProperty(exports,"getStyles",{enumerable:!0,get:function(){return e.getStyles}}),Object.defineProperty(exports,"updateFeatureFlags",{enumerable:!0,get:function(){return e.updateFeatureFlags}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE",{enumerable:!0,get:function(){return r.DEFAULT_COLOR_MODE}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_FOR_APP",{enumerable:!0,get:function(){return r.DEFAULT_COLOR_MODE_FOR_APP}}),Object.defineProperty(exports,"DEFAULT_HIGH_CONTRAST_MODE",{enumerable:!0,get:function(){return r.DEFAULT_HIGH_CONTRAST_MODE}}),Object.defineProperty(exports,"DEFAULT_REGION_MODE",{enumerable:!0,get:function(){return r.DEFAULT_REGION_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE",{enumerable:!0,get:function(){return r.DEFAULT_SCALE_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_FOR_APP",{enumerable:!0,get:function(){return r.DEFAULT_SCALE_MODE_FOR_APP}}),Object.defineProperty(exports,"FONT_DECLARATIONS_MAP",{enumerable:!0,get:function(){return r.FONT_DECLARATIONS_MAP}}),Object.defineProperty(exports,"alwaysPalette",{enumerable:!0,get:function(){return r.alwaysPalette}}),Object.defineProperty(exports,"button",{enumerable:!0,get:function(){return r.button}}),Object.defineProperty(exports,"defaultTokensConfig",{enumerable:!0,get:function(){return r.defaultTokensConfig}}),Object.defineProperty(exports,"fromEntries",{enumerable:!0,get:function(){return r.fromEntries}}),Object.defineProperty(exports,"generateConfigCombinations",{enumerable:!0,get:function(){return r.generateConfigCombinations}}),Object.defineProperty(exports,"getDefaultButtonBaseMap",{enumerable:!0,get:function(){return r.getDefaultButtonBaseMap}}),Object.defineProperty(exports,"entries",{enumerable:!0,get:function(){return t.entries}}),Object.defineProperty(exports,"fontWeightMap",{enumerable:!0,get:function(){return t.fontWeightMap}}),Object.defineProperty(exports,"mapValues",{enumerable:!0,get:function(){return t.mapValues}}),Object.defineProperty(exports,"variants",{enumerable:!0,get:function(){return o.variants}}),Object.defineProperty(exports,"AVATAR_SIZE_PREFIX",{enumerable:!0,get:function(){return n.AVATAR_SIZE_PREFIX}}),Object.defineProperty(exports,"BORDER_RADIUS_PREFIX",{enumerable:!0,get:function(){return n.BORDER_RADIUS_PREFIX}}),Object.defineProperty(exports,"BORDER_WIDTH_PREFIX",{enumerable:!0,get:function(){return n.BORDER_WIDTH_PREFIX}}),Object.defineProperty(exports,"BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return n.BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"DARK_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DARK_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DEFAULT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DEFAULT_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"FONT_FAMILY_PREFIX",{enumerable:!0,get:function(){return n.FONT_FAMILY_PREFIX}}),Object.defineProperty(exports,"FONT_SIZE_PREFIX",{enumerable:!0,get:function(){return n.FONT_SIZE_PREFIX}}),Object.defineProperty(exports,"FONT_WEIGHT_PREFIX",{enumerable:!0,get:function(){return n.FONT_WEIGHT_PREFIX}}),Object.defineProperty(exports,"ICON_BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return n.ICON_BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"ICON_SIZE_PREFIX",{enumerable:!0,get:function(){return n.ICON_SIZE_PREFIX}}),Object.defineProperty(exports,"LARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.LARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"LIGHT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.LIGHT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"LINE_HEIGHT_PREFIX",{enumerable:!0,get:function(){return n.LINE_HEIGHT_PREFIX}}),Object.defineProperty(exports,"MEDIUM_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.MEDIUM_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"MOTION_PREFIX",{enumerable:!0,get:function(){return n.MOTION_PREFIX}}),Object.defineProperty(exports,"PSEUDO_STYLE_SELECTOR_MAP",{enumerable:!0,get:function(){return n.PSEUDO_STYLE_SELECTOR_MAP}}),Object.defineProperty(exports,"SMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.SMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"SPECTRUM_COLOR_PREFIX",{enumerable:!0,get:function(){return n.SPECTRUM_COLOR_PREFIX}}),Object.defineProperty(exports,"TEXT_TRANSFORM_PREFIX",{enumerable:!0,get:function(){return n.TEXT_TRANSFORM_PREFIX}}),Object.defineProperty(exports,"UDS_PREFIX",{enumerable:!0,get:function(){return n.UDS_PREFIX}}),Object.defineProperty(exports,"XLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XSMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XSMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XXXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return d.Button}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return d.IconButton}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return d.SpringMotionConfig}}),exports.Box=l,exports.HStack=s,exports.Image=function({width:r,height:t,src:o,alt:n,contentFit:i,backgroundColor:d,borderRadius:f,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:p,borderBottomEndRadius:u,borderColor:c,borderStartColor:b,borderEndColor:E,borderTopColor:g,borderBottomColor:S,borderWidth:_,borderVerticalWidth:O,borderHorizontalWidth:C,borderStartWidth:m,borderEndWidth:A,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:L,alignSelf:P,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:B,justifyContent:W,flexBasis:j,display:I,overflow:F,overflowX:N,overflowY:w,position:X,spacing:G,spacingHorizontal:H,spacingVertical:V,spacingBottom:v,spacingEnd:U,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:K,offsetEnd:J,offsetStart:Q,offsetTop:$,columnGap:ee,rowGap:re,...te}){const oe=e.getStyles({contentFit:i,backgroundColor:d,borderRadius:f,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:p,borderBottomEndRadius:u,borderColor:c,borderStartColor:b,borderEndColor:E,borderTopColor:g,borderBottomColor:S,borderWidth:_,borderVerticalWidth:O,borderHorizontalWidth:C,borderStartWidth:m,borderEndWidth:A,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:L,alignSelf:P,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:B,justifyContent:W,flexBasis:j,display:I,overflow:F,overflowX:N,overflowY:w,position:X,spacing:G,spacingHorizontal:H,spacingVertical:V,spacingBottom:v,spacingEnd:U,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:K,offsetEnd:J,offsetStart:Q,offsetTop:$,columnGap:ee,rowGap:re});return a.jsx("img",{src:o,alt:n,className:oe,style:{objectPosition:"left",width:r,height:t},...te})},exports.Pressable=u,exports.Text=E,exports.VStack=g;
|
1
|
+
"use strict";var e=require("./chunk-QELQ6JY6.cjs"),r=require("./chunk-WLOEKYUI.cjs"),t=require("./chunk-LNFRMD6G.cjs"),o=require("./chunk-3LHMB72F.cjs"),n=require("./chunk-J6D4HCFT.cjs"),i=require("react"),a=require("react/jsx-runtime"),d=require("@yahoo/uds/client"),f=e.createSlot(),l=i.forwardRef((function({asChild:r,className:t,backgroundColor:o,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:d,borderBottomStartRadius:l,borderBottomEndRadius:s,borderColor:p,borderStartColor:c,borderEndColor:u,borderTopColor:b,borderBottomColor:E,borderWidth:S,borderVerticalWidth:g,borderHorizontalWidth:_,borderStartWidth:O,borderEndWidth:C,borderTopWidth:m,borderBottomWidth:A,alignContent:R,alignItems:x,alignSelf:T,flex:L,flexDirection:P,flexGrow:h,flexShrink:M,flexWrap:y,justifyContent:D,flexBasis:B,display:W="flex",overflow:I,overflowX:j,overflowY:F,position:N,spacing:w,spacingHorizontal:X,spacingVertical:G,spacingBottom:H,spacingEnd:V,spacingStart:v,spacingTop:U,offset:k,offsetVertical:z,offsetHorizontal:Y,offsetBottom:q,offsetEnd:Z,offsetStart:K,offsetTop:J,columnGap:Q,rowGap:$,...ee},re){const te=e.getStyles({backgroundColor:o,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:d,borderBottomStartRadius:l,borderBottomEndRadius:s,borderColor:p,borderStartColor:c,borderEndColor:u,borderTopColor:b,borderBottomColor:E,borderWidth:S,borderVerticalWidth:g,borderHorizontalWidth:_,borderStartWidth:O,borderEndWidth:C,borderTopWidth:m,borderBottomWidth:A,alignContent:R,alignItems:x,alignSelf:T,flex:L,flexDirection:P,flexGrow:h,flexShrink:M,flexWrap:y,justifyContent:D,flexBasis:B,display:W,overflow:I,overflowX:j,overflowY:F,position:N,spacing:w,spacingHorizontal:X,spacingVertical:G,spacingBottom:H,spacingEnd:V,spacingStart:v,spacingTop:U,offset:k,offsetVertical:z,offsetHorizontal:Y,offsetBottom:q,offsetEnd:Z,offsetStart:K,offsetTop:J,columnGap:Q,rowGap:$,className:t}),oe=r?f:"div";return a.jsx(oe,{className:te,ref:re,...ee})})),s=i.forwardRef((function({gap:e,...r},t){return a.jsx(l,{ref:t,flexDirection:"row",rowGap:e,columnGap:e,...r})}));/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */var p=e.createSlot(),c=i.forwardRef((function({className:r,asChild:t,onPress:o,onClick:n=o,backgroundColor:i,borderRadius:d,borderTopStartRadius:f,borderTopEndRadius:l,borderBottomStartRadius:s,borderBottomEndRadius:c,borderColor:u,borderStartColor:b,borderEndColor:E,borderTopColor:S,borderBottomColor:g,borderWidth:_,borderVerticalWidth:O,borderHorizontalWidth:C,borderStartWidth:m,borderEndWidth:A,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:L,alignSelf:P,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:B,justifyContent:W,flexBasis:I,display:j,overflow:F,overflowX:N,overflowY:w,position:X,spacing:G,spacingHorizontal:H,spacingVertical:V,spacingBottom:v,spacingEnd:U,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:K,offsetEnd:J,offsetStart:Q,offsetTop:$,columnGap:ee,rowGap:re,...te},oe){const ne=e.getStyles({backgroundColor:i,borderRadius:d,borderTopStartRadius:f,borderTopEndRadius:l,borderBottomStartRadius:s,borderBottomEndRadius:c,borderColor:u,borderStartColor:b,borderEndColor:E,borderTopColor:S,borderBottomColor:g,borderWidth:_,borderVerticalWidth:O,borderHorizontalWidth:C,borderStartWidth:m,borderEndWidth:A,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:L,alignSelf:P,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:B,justifyContent:W,flexBasis:I,display:j,overflow:F,overflowX:N,overflowY:w,position:X,spacing:G,spacingHorizontal:H,spacingVertical:V,spacingBottom:v,spacingEnd:U,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:K,offsetEnd:J,offsetStart:Q,offsetTop:$,columnGap:ee,rowGap:re,className:r}),ie=t?p:"button";return a.jsx(ie,{className:ne,ref:oe,onClick:n,...te})})),u=e.createSlot(),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"},E=i.forwardRef((function({className:r,asChild:t,color:o="primary",variant:n="body1",as:i=b[n],fontSize:d=n,fontFamily:f=n,fontWeight:l=n,lineHeight:s=n,textTransform:p=n,textAlign:c,backgroundColor:E,borderRadius:S,borderTopStartRadius:g,borderTopEndRadius:_,borderBottomStartRadius:O,borderBottomEndRadius:C,borderColor:m,borderStartColor:A,borderEndColor:R,borderTopColor:x,borderBottomColor:T,borderWidth:L,borderVerticalWidth:P,borderHorizontalWidth:h,borderStartWidth:M,borderEndWidth:y,borderTopWidth:D,borderBottomWidth:B,alignContent:W,alignItems:I,alignSelf:j,flex:F,flexDirection:N,flexGrow:w,flexShrink:X,flexWrap:G,justifyContent:H,flexBasis:V,display:v,overflow:U,overflowX:k,overflowY:z,position:Y,spacing:q,spacingHorizontal:Z,spacingVertical:K,spacingBottom:J,spacingEnd:Q,spacingStart:$,spacingTop:ee,offset:re,offsetVertical:te,offsetHorizontal:oe,offsetBottom:ne,offsetEnd:ie,offsetStart:ae,offsetTop:de,columnGap:fe,rowGap:le,...se},pe){const ce=e.getStyles({className:r,color:o,fontFamily:f,fontSize:d,fontWeight:l,lineHeight:s,textTransform:p,textAlign:c,backgroundColor:E,borderRadius:S,borderTopStartRadius:g,borderTopEndRadius:_,borderBottomStartRadius:O,borderBottomEndRadius:C,borderColor:m,borderStartColor:A,borderEndColor:R,borderTopColor:x,borderBottomColor:T,borderWidth:L,borderVerticalWidth:P,borderHorizontalWidth:h,borderStartWidth:M,borderEndWidth:y,borderTopWidth:D,borderBottomWidth:B,alignContent:W,alignItems:I,alignSelf:j,flex:F,flexDirection:N,flexGrow:w,flexShrink:X,flexWrap:G,justifyContent:H,flexBasis:V,display:v,overflow:U,overflowX:k,overflowY:z,position:Y,spacing:q,spacingHorizontal:Z,spacingVertical:K,spacingBottom:J,spacingEnd:Q,spacingStart:$,spacingTop:ee,offset:re,offsetVertical:te,offsetHorizontal:oe,offsetBottom:ne,offsetEnd:ie,offsetStart:ae,offsetTop:de,columnGap:fe,rowGap:le}),ue=t?u:i;return a.jsx(ue,{className:ce,ref:pe,...se})})),S=i.forwardRef((function({gap:e,...r},t){return a.jsx(l,{ref:t,flexDirection:"column",columnGap:e,rowGap:e,...r})}));Object.defineProperty(exports,"Icon",{enumerable:!0,get:function(){return e.Icon}}),Object.defineProperty(exports,"cva",{enumerable:!0,get:function(){return e.cva}}),Object.defineProperty(exports,"cx",{enumerable:!0,get:function(){return e.cx}}),Object.defineProperty(exports,"getStyles",{enumerable:!0,get:function(){return e.getStyles}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE",{enumerable:!0,get:function(){return r.DEFAULT_COLOR_MODE}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_FOR_APP",{enumerable:!0,get:function(){return r.DEFAULT_COLOR_MODE_FOR_APP}}),Object.defineProperty(exports,"DEFAULT_HIGH_CONTRAST_MODE",{enumerable:!0,get:function(){return r.DEFAULT_HIGH_CONTRAST_MODE}}),Object.defineProperty(exports,"DEFAULT_REGION_MODE",{enumerable:!0,get:function(){return r.DEFAULT_REGION_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE",{enumerable:!0,get:function(){return r.DEFAULT_SCALE_MODE}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_FOR_APP",{enumerable:!0,get:function(){return r.DEFAULT_SCALE_MODE_FOR_APP}}),Object.defineProperty(exports,"FONT_DECLARATIONS_MAP",{enumerable:!0,get:function(){return r.FONT_DECLARATIONS_MAP}}),Object.defineProperty(exports,"alwaysPalette",{enumerable:!0,get:function(){return r.alwaysPalette}}),Object.defineProperty(exports,"button",{enumerable:!0,get:function(){return r.button}}),Object.defineProperty(exports,"defaultTokensConfig",{enumerable:!0,get:function(){return r.defaultTokensConfig}}),Object.defineProperty(exports,"fromEntries",{enumerable:!0,get:function(){return r.fromEntries}}),Object.defineProperty(exports,"generateConfigCombinations",{enumerable:!0,get:function(){return r.generateConfigCombinations}}),Object.defineProperty(exports,"getDefaultButtonBaseMap",{enumerable:!0,get:function(){return r.getDefaultButtonBaseMap}}),Object.defineProperty(exports,"variants",{enumerable:!0,get:function(){return t.variants}}),Object.defineProperty(exports,"entries",{enumerable:!0,get:function(){return o.entries}}),Object.defineProperty(exports,"fontWeightMap",{enumerable:!0,get:function(){return o.fontWeightMap}}),Object.defineProperty(exports,"mapValues",{enumerable:!0,get:function(){return o.mapValues}}),Object.defineProperty(exports,"AVATAR_SIZE_PREFIX",{enumerable:!0,get:function(){return n.AVATAR_SIZE_PREFIX}}),Object.defineProperty(exports,"BORDER_RADIUS_PREFIX",{enumerable:!0,get:function(){return n.BORDER_RADIUS_PREFIX}}),Object.defineProperty(exports,"BORDER_WIDTH_PREFIX",{enumerable:!0,get:function(){return n.BORDER_WIDTH_PREFIX}}),Object.defineProperty(exports,"BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return n.BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"DARK_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DARK_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DEFAULT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"DEFAULT_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.DEFAULT_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"FONT_FAMILY_PREFIX",{enumerable:!0,get:function(){return n.FONT_FAMILY_PREFIX}}),Object.defineProperty(exports,"FONT_SIZE_PREFIX",{enumerable:!0,get:function(){return n.FONT_SIZE_PREFIX}}),Object.defineProperty(exports,"FONT_WEIGHT_PREFIX",{enumerable:!0,get:function(){return n.FONT_WEIGHT_PREFIX}}),Object.defineProperty(exports,"ICON_BUTTON_CSS_VAR_MAP",{enumerable:!0,get:function(){return n.ICON_BUTTON_CSS_VAR_MAP}}),Object.defineProperty(exports,"ICON_SIZE_PREFIX",{enumerable:!0,get:function(){return n.ICON_SIZE_PREFIX}}),Object.defineProperty(exports,"LARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.LARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"LIGHT_COLOR_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.LIGHT_COLOR_MODE_CLASSNAME}}),Object.defineProperty(exports,"LINE_HEIGHT_PREFIX",{enumerable:!0,get:function(){return n.LINE_HEIGHT_PREFIX}}),Object.defineProperty(exports,"MEDIUM_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.MEDIUM_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"MOTION_PREFIX",{enumerable:!0,get:function(){return n.MOTION_PREFIX}}),Object.defineProperty(exports,"PSEUDO_STYLE_SELECTOR_MAP",{enumerable:!0,get:function(){return n.PSEUDO_STYLE_SELECTOR_MAP}}),Object.defineProperty(exports,"SMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.SMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"SPECTRUM_COLOR_PREFIX",{enumerable:!0,get:function(){return n.SPECTRUM_COLOR_PREFIX}}),Object.defineProperty(exports,"TEXT_TRANSFORM_PREFIX",{enumerable:!0,get:function(){return n.TEXT_TRANSFORM_PREFIX}}),Object.defineProperty(exports,"UDS_PREFIX",{enumerable:!0,get:function(){return n.UDS_PREFIX}}),Object.defineProperty(exports,"XLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XSMALL_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XSMALL_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"XXXLARGE_SCALE_MODE_CLASSNAME",{enumerable:!0,get:function(){return n.XXXLARGE_SCALE_MODE_CLASSNAME}}),Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return d.Button}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return d.IconButton}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return d.SpringMotionConfig}}),exports.Box=l,exports.HStack=s,exports.Image=function({width:r,height:t,src:o,alt:n,contentFit:i,backgroundColor:d,borderRadius:f,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:u,borderStartColor:b,borderEndColor:E,borderTopColor:S,borderBottomColor:g,borderWidth:_,borderVerticalWidth:O,borderHorizontalWidth:C,borderStartWidth:m,borderEndWidth:A,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:L,alignSelf:P,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:B,justifyContent:W,flexBasis:I,display:j,overflow:F,overflowX:N,overflowY:w,position:X,spacing:G,spacingHorizontal:H,spacingVertical:V,spacingBottom:v,spacingEnd:U,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:K,offsetEnd:J,offsetStart:Q,offsetTop:$,columnGap:ee,rowGap:re,...te}){const oe=e.getStyles({contentFit:i,backgroundColor:d,borderRadius:f,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:u,borderStartColor:b,borderEndColor:E,borderTopColor:S,borderBottomColor:g,borderWidth:_,borderVerticalWidth:O,borderHorizontalWidth:C,borderStartWidth:m,borderEndWidth:A,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:L,alignSelf:P,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:B,justifyContent:W,flexBasis:I,display:j,overflow:F,overflowX:N,overflowY:w,position:X,spacing:G,spacingHorizontal:H,spacingVertical:V,spacingBottom:v,spacingEnd:U,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:K,offsetEnd:J,offsetStart:Q,offsetTop:$,columnGap:ee,rowGap:re});return a.jsx("img",{src:o,alt:n,className:oe,style:{objectPosition:"left",width:r,height:t},...te})},exports.Pressable=c,exports.Text=E,exports.VStack=S;
|
package/dist/index.d.cts
CHANGED
@@ -272,27 +272,6 @@ type VStackProps = UniversalStackProps & DivProps;
|
|
272
272
|
**/
|
273
273
|
declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
|
274
274
|
|
275
|
-
interface FeatureFlags {
|
276
|
-
/**
|
277
|
-
* Setting to true enables a specialized cache for calls to getStyle(),
|
278
|
-
* which can improve performance of component render times.
|
279
|
-
* @default false
|
280
|
-
**/
|
281
|
-
useGetStylesCache?: boolean;
|
282
|
-
/**
|
283
|
-
* When true, the CLI prompts users to log in.
|
284
|
-
* @default false
|
285
|
-
**/
|
286
|
-
useCLIAuth?: boolean;
|
287
|
-
}
|
288
|
-
/**
|
289
|
-
* Sets/overrides feature flags
|
290
|
-
* @param flags Flag overrides
|
291
|
-
* @returns Updated feature flags
|
292
|
-
*/
|
293
|
-
declare const updateFeatureFlags: (flags: Partial<FeatureFlags>) => FeatureFlags;
|
294
|
-
declare const getFeatureFlags: () => FeatureFlags;
|
295
|
-
|
296
275
|
type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T;
|
297
276
|
type CvaStyleValue<T> = T | CvaStyleArray<T> | Record<string, unknown> | null | boolean | undefined;
|
298
277
|
type CvaStyleArray<T> = CvaStyleValue<T>[];
|
@@ -403,4 +382,4 @@ declare const getStyles: (props: GetStylesInternalProps) => string;
|
|
403
382
|
|
404
383
|
type SetState<T> = Dispatch<SetStateAction<T>>;
|
405
384
|
|
406
|
-
export { Box, type BoxProps,
|
385
|
+
export { Box, type BoxProps, HStack, type HStackProps, Icon, type IconProps, Image, type ImageProps, Pressable, type PressableProps, type SetState, Text, type TextProps, UniversalBoxProps, UniversalIconProps, UniversalImageProps, UniversalPressableProps, UniversalStackProps, UniversalTextProps, VStack, type VStackProps, cva, cx, getStyles };
|
package/dist/index.d.ts
CHANGED
@@ -272,27 +272,6 @@ type VStackProps = UniversalStackProps & DivProps;
|
|
272
272
|
**/
|
273
273
|
declare const VStack: react.ForwardRefExoticComponent<UniversalStackProps & DivProps & react.RefAttributes<HTMLDivElement>>;
|
274
274
|
|
275
|
-
interface FeatureFlags {
|
276
|
-
/**
|
277
|
-
* Setting to true enables a specialized cache for calls to getStyle(),
|
278
|
-
* which can improve performance of component render times.
|
279
|
-
* @default false
|
280
|
-
**/
|
281
|
-
useGetStylesCache?: boolean;
|
282
|
-
/**
|
283
|
-
* When true, the CLI prompts users to log in.
|
284
|
-
* @default false
|
285
|
-
**/
|
286
|
-
useCLIAuth?: boolean;
|
287
|
-
}
|
288
|
-
/**
|
289
|
-
* Sets/overrides feature flags
|
290
|
-
* @param flags Flag overrides
|
291
|
-
* @returns Updated feature flags
|
292
|
-
*/
|
293
|
-
declare const updateFeatureFlags: (flags: Partial<FeatureFlags>) => FeatureFlags;
|
294
|
-
declare const getFeatureFlags: () => FeatureFlags;
|
295
|
-
|
296
275
|
type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T;
|
297
276
|
type CvaStyleValue<T> = T | CvaStyleArray<T> | Record<string, unknown> | null | boolean | undefined;
|
298
277
|
type CvaStyleArray<T> = CvaStyleValue<T>[];
|
@@ -403,4 +382,4 @@ declare const getStyles: (props: GetStylesInternalProps) => string;
|
|
403
382
|
|
404
383
|
type SetState<T> = Dispatch<SetStateAction<T>>;
|
405
384
|
|
406
|
-
export { Box, type BoxProps,
|
385
|
+
export { Box, type BoxProps, HStack, type HStackProps, Icon, type IconProps, Image, type ImageProps, Pressable, type PressableProps, type SetState, Text, type TextProps, UniversalBoxProps, UniversalIconProps, UniversalImageProps, UniversalPressableProps, UniversalStackProps, UniversalTextProps, VStack, type VStackProps, cva, cx, getStyles };
|
package/dist/index.js
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
import{createSlot as o,getStyles as r}from"./chunk-
|
2
|
-
/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */var i=o(),a=t((function({asChild:o,className:t,backgroundColor:a,borderRadius:d,borderTopStartRadius:n,borderTopEndRadius:l,borderBottomStartRadius:s,borderBottomEndRadius:f,borderColor:p,borderStartColor:c,borderEndColor:b,borderTopColor:E,borderBottomColor:S,borderWidth:g,borderVerticalWidth:C,borderHorizontalWidth:m,borderStartWidth:u,borderEndWidth:h,borderTopWidth:R,borderBottomWidth:T,alignContent:_,alignItems:W,alignSelf:A,flex:B,flexDirection:x,flexGrow:O,flexShrink:L,flexWrap:w,justifyContent:D,flexBasis:M,display:F="flex",overflow:G,overflowX:I,overflowY:N,position:H,spacing:v,spacingHorizontal:y,spacingVertical:V,spacingBottom:X,spacingEnd:z,spacingStart:P,spacingTop:k,offset:j,offsetVertical:U,offsetHorizontal:Y,offsetBottom:K,offsetEnd:Z,offsetStart:Q,offsetTop:q,columnGap:J,rowGap:$,...oo},ro){const to=r({backgroundColor:a,borderRadius:d,borderTopStartRadius:n,borderTopEndRadius:l,borderBottomStartRadius:s,borderBottomEndRadius:f,borderColor:p,borderStartColor:c,borderEndColor:b,borderTopColor:E,borderBottomColor:S,borderWidth:g,borderVerticalWidth:C,borderHorizontalWidth:m,borderStartWidth:u,borderEndWidth:h,borderTopWidth:R,borderBottomWidth:T,alignContent:_,alignItems:W,alignSelf:A,flex:B,flexDirection:x,flexGrow:O,flexShrink:L,flexWrap:w,justifyContent:D,flexBasis:M,display:F,overflow:G,overflowX:I,overflowY:N,position:H,spacing:v,spacingHorizontal:y,spacingVertical:V,spacingBottom:X,spacingEnd:z,spacingStart:P,spacingTop:k,offset:j,offsetVertical:U,offsetHorizontal:Y,offsetBottom:K,offsetEnd:Z,offsetStart:Q,offsetTop:q,columnGap:J,rowGap:$,className:t});return e(o?i:"div",{className:to,ref:ro,...oo})})),d=t((function({gap:o,...r},t){return e(a,{ref:t,flexDirection:"row",rowGap:o,columnGap:o,...r})}));function n({width:o,height:t,src:i,alt:a,contentFit:d,backgroundColor:n,borderRadius:l,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:b,borderStartColor:E,borderEndColor:S,borderTopColor:g,borderBottomColor:C,borderWidth:m,borderVerticalWidth:u,borderHorizontalWidth:h,borderStartWidth:R,borderEndWidth:T,borderTopWidth:_,borderBottomWidth:W,alignContent:A,alignItems:B,alignSelf:x,flex:O,flexDirection:L,flexGrow:w,flexShrink:D,flexWrap:M,justifyContent:F,flexBasis:G,display:I,overflow:N,overflowX:H,overflowY:v,position:y,spacing:V,spacingHorizontal:X,spacingVertical:z,spacingBottom:P,spacingEnd:k,spacingStart:j,spacingTop:U,offset:Y,offsetVertical:K,offsetHorizontal:Z,offsetBottom:Q,offsetEnd:q,offsetStart:J,offsetTop:$,columnGap:oo,rowGap:ro,...to}){const eo=r({contentFit:d,backgroundColor:n,borderRadius:l,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:b,borderStartColor:E,borderEndColor:S,borderTopColor:g,borderBottomColor:C,borderWidth:m,borderVerticalWidth:u,borderHorizontalWidth:h,borderStartWidth:R,borderEndWidth:T,borderTopWidth:_,borderBottomWidth:W,alignContent:A,alignItems:B,alignSelf:x,flex:O,flexDirection:L,flexGrow:w,flexShrink:D,flexWrap:M,justifyContent:F,flexBasis:G,display:I,overflow:N,overflowX:H,overflowY:v,position:y,spacing:V,spacingHorizontal:X,spacingVertical:z,spacingBottom:P,spacingEnd:k,spacingStart:j,spacingTop:U,offset:Y,offsetVertical:K,offsetHorizontal:Z,offsetBottom:Q,offsetEnd:q,offsetStart:J,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=t((function({className:o,asChild:t,onPress:i,onClick:a=i,backgroundColor:d,borderRadius:n,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:b,borderStartColor:E,borderEndColor:S,borderTopColor:g,borderBottomColor:C,borderWidth:m,borderVerticalWidth:u,borderHorizontalWidth:h,borderStartWidth:R,borderEndWidth:T,borderTopWidth:_,borderBottomWidth:W,alignContent:A,alignItems:B,alignSelf:x,flex:O,flexDirection:L,flexGrow:w,flexShrink:D,flexWrap:M,justifyContent:F,flexBasis:G,display:I,overflow:N,overflowX:H,overflowY:v,position:y,spacing:V,spacingHorizontal:X,spacingVertical:z,spacingBottom:P,spacingEnd:k,spacingStart:j,spacingTop:U,offset:Y,offsetVertical:K,offsetHorizontal:Z,offsetBottom:Q,offsetEnd:q,offsetStart:J,offsetTop:$,columnGap:oo,rowGap:ro,...to},eo){const io=r({backgroundColor:d,borderRadius:n,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:b,borderStartColor:E,borderEndColor:S,borderTopColor:g,borderBottomColor:C,borderWidth:m,borderVerticalWidth:u,borderHorizontalWidth:h,borderStartWidth:R,borderEndWidth:T,borderTopWidth:_,borderBottomWidth:W,alignContent:A,alignItems:B,alignSelf:x,flex:O,flexDirection:L,flexGrow:w,flexShrink:D,flexWrap:M,justifyContent:F,flexBasis:G,display:I,overflow:N,overflowX:H,overflowY:v,position:y,spacing:V,spacingHorizontal:X,spacingVertical:z,spacingBottom:P,spacingEnd:k,spacingStart:j,spacingTop:U,offset:Y,offsetVertical:K,offsetHorizontal:Z,offsetBottom:Q,offsetEnd:q,offsetStart:J,offsetTop:$,columnGap:oo,rowGap:ro,className:o});return e(t?l:"button",{className:io,ref:eo,onClick:a,...to})})),f=o(),p={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"},c=t((function({className:o,asChild:t,color:i="primary",variant:a="body1",as:d=p[a],fontSize:n=a,fontFamily:l=a,fontWeight:s=a,lineHeight:c=a,textTransform:b=a,textAlign:E,backgroundColor:S,borderRadius:g,borderTopStartRadius:C,borderTopEndRadius:m,borderBottomStartRadius:u,borderBottomEndRadius:h,borderColor:R,borderStartColor:T,borderEndColor:_,borderTopColor:W,borderBottomColor:A,borderWidth:B,borderVerticalWidth:x,borderHorizontalWidth:O,borderStartWidth:L,borderEndWidth:w,borderTopWidth:D,borderBottomWidth:M,alignContent:F,alignItems:G,alignSelf:I,flex:N,flexDirection:H,flexGrow:v,flexShrink:y,flexWrap:V,justifyContent:X,flexBasis:z,display:P,overflow:k,overflowX:j,overflowY:U,position:Y,spacing:K,spacingHorizontal:Z,spacingVertical:Q,spacingBottom:q,spacingEnd:J,spacingStart:$,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:io,offsetEnd:ao,offsetStart:no,offsetTop:lo,columnGap:so,rowGap:fo,...po},co){const bo=r({className:o,color:i,fontFamily:l,fontSize:n,fontWeight:s,lineHeight:c,textTransform:b,textAlign:E,backgroundColor:S,borderRadius:g,borderTopStartRadius:C,borderTopEndRadius:m,borderBottomStartRadius:u,borderBottomEndRadius:h,borderColor:R,borderStartColor:T,borderEndColor:_,borderTopColor:W,borderBottomColor:A,borderWidth:B,borderVerticalWidth:x,borderHorizontalWidth:O,borderStartWidth:L,borderEndWidth:w,borderTopWidth:D,borderBottomWidth:M,alignContent:F,alignItems:G,alignSelf:I,flex:N,flexDirection:H,flexGrow:v,flexShrink:y,flexWrap:V,justifyContent:X,flexBasis:z,display:P,overflow:k,overflowX:j,overflowY:U,position:Y,spacing:K,spacingHorizontal:Z,spacingVertical:Q,spacingBottom:q,spacingEnd:J,spacingStart:$,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:io,offsetEnd:ao,offsetStart:no,offsetTop:lo,columnGap:so,rowGap:fo});return e(t?f:d,{className:bo,ref:co,...po})})),b=t((function({gap:o,...r},t){return e(a,{ref:t,flexDirection:"column",columnGap:o,rowGap:o,...r})}));export{a as Box,d as HStack,n as Image,s as Pressable,c as Text,b as VStack};
|
1
|
+
import{createSlot as o,getStyles as r}from"./chunk-FK7UKIGU.js";export{Icon,cva,cx,getStyles}from"./chunk-FK7UKIGU.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-YRYDHL65.js";export{variants}from"./chunk-RGE634O5.js";export{entries,fontWeightMap,mapValues}from"./chunk-BEYSF2MO.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-33B23P5G.js";import{forwardRef as t}from"react";import{jsx as e}from"react/jsx-runtime";export{Button,IconButton,SpringMotionConfig}from"@yahoo/uds/client";/*! © 2024 Yahoo, Inc. UDS v0.0.0-development */var i=o(),a=t((function({asChild:o,className:t,backgroundColor:a,borderRadius:d,borderTopStartRadius:n,borderTopEndRadius:l,borderBottomStartRadius:s,borderBottomEndRadius:f,borderColor:p,borderStartColor:c,borderEndColor:b,borderTopColor:E,borderBottomColor:S,borderWidth:g,borderVerticalWidth:C,borderHorizontalWidth:m,borderStartWidth:u,borderEndWidth:h,borderTopWidth:_,borderBottomWidth:R,alignContent:T,alignItems:W,alignSelf:A,flex:B,flexDirection:x,flexGrow:O,flexShrink:L,flexWrap:w,justifyContent:D,flexBasis:M,display:G="flex",overflow:I,overflowX:F,overflowY:N,position:H,spacing:v,spacingHorizontal:y,spacingVertical:V,spacingBottom:X,spacingEnd:z,spacingStart:P,spacingTop:k,offset:U,offsetVertical:j,offsetHorizontal:Y,offsetBottom:K,offsetEnd:Z,offsetStart:q,offsetTop:J,columnGap:Q,rowGap:$,...oo},ro){const to=r({backgroundColor:a,borderRadius:d,borderTopStartRadius:n,borderTopEndRadius:l,borderBottomStartRadius:s,borderBottomEndRadius:f,borderColor:p,borderStartColor:c,borderEndColor:b,borderTopColor:E,borderBottomColor:S,borderWidth:g,borderVerticalWidth:C,borderHorizontalWidth:m,borderStartWidth:u,borderEndWidth:h,borderTopWidth:_,borderBottomWidth:R,alignContent:T,alignItems:W,alignSelf:A,flex:B,flexDirection:x,flexGrow:O,flexShrink:L,flexWrap:w,justifyContent:D,flexBasis:M,display:G,overflow:I,overflowX:F,overflowY:N,position:H,spacing:v,spacingHorizontal:y,spacingVertical:V,spacingBottom:X,spacingEnd:z,spacingStart:P,spacingTop:k,offset:U,offsetVertical:j,offsetHorizontal:Y,offsetBottom:K,offsetEnd:Z,offsetStart:q,offsetTop:J,columnGap:Q,rowGap:$,className:t});return e(o?i:"div",{className:to,ref:ro,...oo})})),d=t((function({gap:o,...r},t){return e(a,{ref:t,flexDirection:"row",rowGap:o,columnGap:o,...r})}));function n({width:o,height:t,src:i,alt:a,contentFit:d,backgroundColor:n,borderRadius:l,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:b,borderStartColor:E,borderEndColor:S,borderTopColor:g,borderBottomColor:C,borderWidth:m,borderVerticalWidth:u,borderHorizontalWidth:h,borderStartWidth:_,borderEndWidth:R,borderTopWidth:T,borderBottomWidth:W,alignContent:A,alignItems:B,alignSelf:x,flex:O,flexDirection:L,flexGrow:w,flexShrink:D,flexWrap:M,justifyContent:G,flexBasis:I,display:F,overflow:N,overflowX:H,overflowY:v,position:y,spacing:V,spacingHorizontal:X,spacingVertical:z,spacingBottom:P,spacingEnd:k,spacingStart:U,spacingTop:j,offset:Y,offsetVertical:K,offsetHorizontal:Z,offsetBottom:q,offsetEnd:J,offsetStart:Q,offsetTop:$,columnGap:oo,rowGap:ro,...to}){const eo=r({contentFit:d,backgroundColor:n,borderRadius:l,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:b,borderStartColor:E,borderEndColor:S,borderTopColor:g,borderBottomColor:C,borderWidth:m,borderVerticalWidth:u,borderHorizontalWidth:h,borderStartWidth:_,borderEndWidth:R,borderTopWidth:T,borderBottomWidth:W,alignContent:A,alignItems:B,alignSelf:x,flex:O,flexDirection:L,flexGrow:w,flexShrink:D,flexWrap:M,justifyContent:G,flexBasis:I,display:F,overflow:N,overflowX:H,overflowY:v,position:y,spacing:V,spacingHorizontal:X,spacingVertical:z,spacingBottom:P,spacingEnd:k,spacingStart:U,spacingTop:j,offset:Y,offsetVertical:K,offsetHorizontal:Z,offsetBottom:q,offsetEnd:J,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=t((function({className:o,asChild:t,onPress:i,onClick:a=i,backgroundColor:d,borderRadius:n,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:b,borderStartColor:E,borderEndColor:S,borderTopColor:g,borderBottomColor:C,borderWidth:m,borderVerticalWidth:u,borderHorizontalWidth:h,borderStartWidth:_,borderEndWidth:R,borderTopWidth:T,borderBottomWidth:W,alignContent:A,alignItems:B,alignSelf:x,flex:O,flexDirection:L,flexGrow:w,flexShrink:D,flexWrap:M,justifyContent:G,flexBasis:I,display:F,overflow:N,overflowX:H,overflowY:v,position:y,spacing:V,spacingHorizontal:X,spacingVertical:z,spacingBottom:P,spacingEnd:k,spacingStart:U,spacingTop:j,offset:Y,offsetVertical:K,offsetHorizontal:Z,offsetBottom:q,offsetEnd:J,offsetStart:Q,offsetTop:$,columnGap:oo,rowGap:ro,...to},eo){const io=r({backgroundColor:d,borderRadius:n,borderTopStartRadius:s,borderTopEndRadius:f,borderBottomStartRadius:p,borderBottomEndRadius:c,borderColor:b,borderStartColor:E,borderEndColor:S,borderTopColor:g,borderBottomColor:C,borderWidth:m,borderVerticalWidth:u,borderHorizontalWidth:h,borderStartWidth:_,borderEndWidth:R,borderTopWidth:T,borderBottomWidth:W,alignContent:A,alignItems:B,alignSelf:x,flex:O,flexDirection:L,flexGrow:w,flexShrink:D,flexWrap:M,justifyContent:G,flexBasis:I,display:F,overflow:N,overflowX:H,overflowY:v,position:y,spacing:V,spacingHorizontal:X,spacingVertical:z,spacingBottom:P,spacingEnd:k,spacingStart:U,spacingTop:j,offset:Y,offsetVertical:K,offsetHorizontal:Z,offsetBottom:q,offsetEnd:J,offsetStart:Q,offsetTop:$,columnGap:oo,rowGap:ro,className:o});return e(t?l:"button",{className:io,ref:eo,onClick:a,...to})})),f=o(),p={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"},c=t((function({className:o,asChild:t,color:i="primary",variant:a="body1",as:d=p[a],fontSize:n=a,fontFamily:l=a,fontWeight:s=a,lineHeight:c=a,textTransform:b=a,textAlign:E,backgroundColor:S,borderRadius:g,borderTopStartRadius:C,borderTopEndRadius:m,borderBottomStartRadius:u,borderBottomEndRadius:h,borderColor:_,borderStartColor:R,borderEndColor:T,borderTopColor:W,borderBottomColor:A,borderWidth:B,borderVerticalWidth:x,borderHorizontalWidth:O,borderStartWidth:L,borderEndWidth:w,borderTopWidth:D,borderBottomWidth:M,alignContent:G,alignItems:I,alignSelf:F,flex:N,flexDirection:H,flexGrow:v,flexShrink:y,flexWrap:V,justifyContent:X,flexBasis:z,display:P,overflow:k,overflowX:U,overflowY:j,position:Y,spacing:K,spacingHorizontal:Z,spacingVertical:q,spacingBottom:J,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 bo=r({className:o,color:i,fontFamily:l,fontSize:n,fontWeight:s,lineHeight:c,textTransform:b,textAlign:E,backgroundColor:S,borderRadius:g,borderTopStartRadius:C,borderTopEndRadius:m,borderBottomStartRadius:u,borderBottomEndRadius:h,borderColor:_,borderStartColor:R,borderEndColor:T,borderTopColor:W,borderBottomColor:A,borderWidth:B,borderVerticalWidth:x,borderHorizontalWidth:O,borderStartWidth:L,borderEndWidth:w,borderTopWidth:D,borderBottomWidth:M,alignContent:G,alignItems:I,alignSelf:F,flex:N,flexDirection:H,flexGrow:v,flexShrink:y,flexWrap:V,justifyContent:X,flexBasis:z,display:P,overflow:k,overflowX:U,overflowY:j,position:Y,spacing:K,spacingHorizontal:Z,spacingVertical:q,spacingBottom:J,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?f:d,{className:bo,ref:co,...po})})),b=t((function({gap:o,...r},t){return e(a,{ref:t,flexDirection:"column",columnGap:o,rowGap:o,...r})}));export{a as Box,d as HStack,n as Image,s as Pressable,c as Text,b as VStack};
|