@yahoo/uds 2.7.0 → 2.8.1
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/PropsToClass.mock.tsx +14 -0
- package/dist/{Text-CJekfenf.d.cts → Text-UCDorZDD.d.cts} +1 -1
- package/dist/{Text-CJekfenf.d.ts → Text-UCDorZDD.d.ts} +1 -1
- package/dist/{chunk-GRZ5XQ3F.js → chunk-4ZZV37J4.js} +1 -1
- package/dist/{chunk-AJYO7N7R.js → chunk-5WTSHH5H.js} +1 -1
- package/dist/{chunk-GIKZRY45.cjs → chunk-D5OJRMIW.cjs} +1 -1
- package/dist/{chunk-T6P7XTY2.js → chunk-KTPYM4OO.js} +2 -2
- package/dist/{chunk-SBHC4YQG.cjs → chunk-PSLTRJPA.cjs} +1 -1
- package/dist/{chunk-6URF5YHM.cjs → chunk-RNQ6TDFL.cjs} +1 -1
- package/dist/{chunk-QYZNWDRL.js → chunk-TAPL6R6T.js} +2 -2
- package/dist/{chunk-TNA4SFJT.cjs → chunk-TFSKZAZE.cjs} +1 -1
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +3 -3
- package/dist/experimental/client/index.d.cts +1 -1
- package/dist/experimental/client/index.d.ts +1 -1
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.d.cts +10 -3
- package/dist/experimental/index.d.ts +10 -3
- 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.cjs +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/plugin.js +2 -2
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +1 -1
- package/dist/tailwind/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +1 -1
- package/dist/tailwind/utils.d.ts +1 -1
- package/dist/tailwind/utils.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +2 -2
- package/dist/tokens/index.d.ts +2 -2
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/{types-aAFnCpDR.d.cts → types-BjtmdiGC.d.cts} +4 -4
- package/dist/{types-aAFnCpDR.d.ts → types-BjtmdiGC.d.ts} +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=require("./chunk-SBHC4YQG.cjs"),r=require("./chunk-6URF5YHM.cjs"),t=require("./chunk-6453EQCC.cjs"),o=require("./chunk-GIJ2FHY5.cjs"),n=require("./chunk-5WBROFT5.cjs"),i=require("react"),a=require("react/jsx-runtime"),d=require("lodash-es"),f=require("@yahoo/uds/client"),l=e.createSlot(),s=i.forwardRef((function({asChild:r,className:t,backgroundColor:o,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:d,borderBottomStartRadius:f,borderBottomEndRadius:s,borderColor:u,borderStartColor:p,borderEndColor:c,borderTopColor:b,borderBottomColor:E,borderWidth:_,borderVerticalWidth:S,borderHorizontalWidth:g,borderStartWidth:O,borderEndWidth:C,borderTopWidth:A,borderBottomWidth:m,alignContent:R,alignItems:x,alignSelf:T,flex:P,flexDirection:L,flexGrow:h,flexShrink:M,flexWrap:y,justifyContent:D,flexBasis:I,display:j="flex",overflow:F,overflowX:B,overflowY:N,position:W,spacing:X,spacingHorizontal:w,spacingVertical:G,spacingBottom:H,spacingEnd:U,spacingStart:V,spacingTop:v,offset:k,offsetVertical:z,offsetHorizontal:Y,offsetBottom:q,offsetEnd:Z,offsetStart:K,offsetTop:Q,columnGap:J,rowGap:$,width:ee,height:re,...te},oe){const ne=e.getStyles({backgroundColor:o,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:d,borderBottomStartRadius:f,borderBottomEndRadius:s,borderColor:u,borderStartColor:p,borderEndColor:c,borderTopColor:b,borderBottomColor:E,borderWidth:_,borderVerticalWidth:S,borderHorizontalWidth:g,borderStartWidth:O,borderEndWidth:C,borderTopWidth:A,borderBottomWidth:m,alignContent:R,alignItems:x,alignSelf:T,flex:P,flexDirection:L,flexGrow:h,flexShrink:M,flexWrap:y,justifyContent:D,flexBasis:I,display:j,overflow:F,overflowX:B,overflowY:N,position:W,spacing:X,spacingHorizontal:w,spacingVertical:G,spacingBottom:H,spacingEnd:U,spacingStart:V,spacingTop:v,offset:k,offsetVertical:z,offsetHorizontal:Y,offsetBottom:q,offsetEnd:Z,offsetStart:K,offsetTop:Q,columnGap:J,rowGap:$,width:ee,height:re,className:t}),ie=r?l:"div";return a.jsx(ie,{className:ne,ref:oe,...te})})),u=(e,r)=>((e,r)=>{const t=d.isFunction(r)?r:()=>r;return e.flatMap(((e,r)=>0!==r?[t(r),e]:[e]))})(i.Children.toArray(e),(e=>{const t=d.isFunction(r)?r(e):r;return i.isValidElement(t)?i.cloneElement(t,{...t.props,key:t.key??`interspersed-${e}`}):null})),p=i.forwardRef((function({gap:e,children:r,separator:t,...o},n){return a.jsx(s,{ref:n,flexDirection:"row",rowGap:e,columnGap:e,...o,children:t?u(r,t):r})}));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var 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:u=n,textAlign:p,backgroundColor:E,borderRadius:_,borderTopStartRadius:S,borderTopEndRadius:g,borderBottomStartRadius:O,borderBottomEndRadius:C,borderColor:A,borderStartColor:m,borderEndColor:R,borderTopColor:x,borderBottomColor:T,borderWidth:P,borderVerticalWidth:L,borderHorizontalWidth:h,borderStartWidth:M,borderEndWidth:y,borderTopWidth:D,borderBottomWidth:I,alignContent:j,alignItems:F,alignSelf:B,flex:N,flexDirection:W,flexGrow:X,flexShrink:w,flexWrap:G,justifyContent:H,flexBasis:U,display:V,overflow:v,overflowX:k,overflowY:z,position:Y,spacing:q,spacingHorizontal:Z,spacingVertical:K,spacingBottom:Q,spacingEnd:J,spacingStart:$,spacingTop:ee,offset:re,offsetVertical:te,offsetHorizontal:oe,offsetBottom:ne,offsetEnd:ie,offsetStart:ae,offsetTop:de,columnGap:fe,rowGap:le,...se},ue){const pe=e.getStyles({className:r,color:o,fontFamily:f,fontSize:d,fontWeight:l,lineHeight:s,textTransform:u,textAlign:p,backgroundColor:E,borderRadius:_,borderTopStartRadius:S,borderTopEndRadius:g,borderBottomStartRadius:O,borderBottomEndRadius:C,borderColor:A,borderStartColor:m,borderEndColor:R,borderTopColor:x,borderBottomColor:T,borderWidth:P,borderVerticalWidth:L,borderHorizontalWidth:h,borderStartWidth:M,borderEndWidth:y,borderTopWidth:D,borderBottomWidth:I,alignContent:j,alignItems:F,alignSelf:B,flex:N,flexDirection:W,flexGrow:X,flexShrink:w,flexWrap:G,justifyContent:H,flexBasis:U,display:V,overflow:v,overflowX:k,overflowY:z,position:Y,spacing:q,spacingHorizontal:Z,spacingVertical:K,spacingBottom:Q,spacingEnd:J,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:pe,ref:ue,...se})})),_=i.forwardRef((function({gap:e,children:r,separator:t,...o},n){return a.jsx(s,{ref:n,flexDirection:"column",columnGap:e,rowGap:e,...o,children:t?u(r,t):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 f.Button}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return f.IconButton}}),Object.defineProperty(exports,"Pressable",{enumerable:!0,get:function(){return f.Pressable}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return f.SpringMotionConfig}}),exports.Box=s,exports.HStack=p,exports.Image=function({width:r,height:t,src:o,alt:n,contentFit:i,backgroundColor:d,borderRadius:f,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:u,borderBottomEndRadius:p,borderColor:c,borderStartColor:b,borderEndColor:E,borderTopColor:_,borderBottomColor:S,borderWidth:g,borderVerticalWidth:O,borderHorizontalWidth:C,borderStartWidth:A,borderEndWidth:m,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:P,alignSelf:L,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:I,justifyContent:j,flexBasis:F,display:B,overflow:N,overflowX:W,overflowY:X,position:w,spacing:G,spacingHorizontal:H,spacingVertical:U,spacingBottom:V,spacingEnd:v,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:K,offsetEnd:Q,offsetStart:J,offsetTop:$,columnGap:ee,rowGap:re,...te}){const oe=e.getStyles({contentFit:i,backgroundColor:d,borderRadius:f,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:u,borderBottomEndRadius:p,borderColor:c,borderStartColor:b,borderEndColor:E,borderTopColor:_,borderBottomColor:S,borderWidth:g,borderVerticalWidth:O,borderHorizontalWidth:C,borderStartWidth:A,borderEndWidth:m,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:P,alignSelf:L,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:I,justifyContent:j,flexBasis:F,display:B,overflow:N,overflowX:W,overflowY:X,position:w,spacing:G,spacingHorizontal:H,spacingVertical:U,spacingBottom:V,spacingEnd:v,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:K,offsetEnd:Q,offsetStart:J,offsetTop:$,columnGap:ee,rowGap:re});return a.jsx("img",{src:o,alt:n,className:oe,style:{objectPosition:"left",width:r,height:t},...te})},exports.Text=E,exports.VStack=_;
|
1
|
+
"use strict";var e=require("./chunk-PSLTRJPA.cjs"),r=require("./chunk-RNQ6TDFL.cjs"),t=require("./chunk-6453EQCC.cjs"),o=require("./chunk-GIJ2FHY5.cjs"),n=require("./chunk-5WBROFT5.cjs"),i=require("react"),a=require("react/jsx-runtime"),d=require("lodash-es"),f=require("@yahoo/uds/client"),l=e.createSlot(),s=i.forwardRef((function({asChild:r,className:t,backgroundColor:o,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:d,borderBottomStartRadius:f,borderBottomEndRadius:s,borderColor:u,borderStartColor:p,borderEndColor:c,borderTopColor:b,borderBottomColor:E,borderWidth:_,borderVerticalWidth:S,borderHorizontalWidth:g,borderStartWidth:O,borderEndWidth:A,borderTopWidth:C,borderBottomWidth:m,alignContent:R,alignItems:x,alignSelf:T,flex:P,flexDirection:L,flexGrow:h,flexShrink:M,flexWrap:y,justifyContent:D,flexBasis:I,display:j="flex",overflow:F,overflowX:B,overflowY:N,position:W,spacing:X,spacingHorizontal:w,spacingVertical:G,spacingBottom:H,spacingEnd:U,spacingStart:V,spacingTop:v,offset:k,offsetVertical:z,offsetHorizontal:Y,offsetBottom:q,offsetEnd:Z,offsetStart:J,offsetTop:K,columnGap:Q,rowGap:$,width:ee,height:re,...te},oe){const ne=e.getStyles({backgroundColor:o,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:d,borderBottomStartRadius:f,borderBottomEndRadius:s,borderColor:u,borderStartColor:p,borderEndColor:c,borderTopColor:b,borderBottomColor:E,borderWidth:_,borderVerticalWidth:S,borderHorizontalWidth:g,borderStartWidth:O,borderEndWidth:A,borderTopWidth:C,borderBottomWidth:m,alignContent:R,alignItems:x,alignSelf:T,flex:P,flexDirection:L,flexGrow:h,flexShrink:M,flexWrap:y,justifyContent:D,flexBasis:I,display:j,overflow:F,overflowX:B,overflowY:N,position:W,spacing:X,spacingHorizontal:w,spacingVertical:G,spacingBottom:H,spacingEnd:U,spacingStart:V,spacingTop:v,offset:k,offsetVertical:z,offsetHorizontal:Y,offsetBottom:q,offsetEnd:Z,offsetStart:J,offsetTop:K,columnGap:Q,rowGap:$,width:ee,height:re,className:t}),ie=r?l:"div";return a.jsx(ie,{className:ne,ref:oe,...te})})),u=(e,r)=>((e,r)=>{const t=d.isFunction(r)?r:()=>r;return e.flatMap(((e,r)=>0!==r?[t(r),e]:[e]))})(i.Children.toArray(e),(e=>{const t=d.isFunction(r)?r(e):r;return i.isValidElement(t)?i.cloneElement(t,{...t.props,key:t.key??`interspersed-${e}`}):null})),p=i.forwardRef((function({gap:e,children:r,separator:t,...o},n){return a.jsx(s,{ref:n,flexDirection:"row",rowGap:e,columnGap:e,...o,children:t?u(r,t):r})}));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var 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:u=n,textAlign:p,backgroundColor:E,borderRadius:_,borderTopStartRadius:S,borderTopEndRadius:g,borderBottomStartRadius:O,borderBottomEndRadius:A,borderColor:C,borderStartColor:m,borderEndColor:R,borderTopColor:x,borderBottomColor:T,borderWidth:P,borderVerticalWidth:L,borderHorizontalWidth:h,borderStartWidth:M,borderEndWidth:y,borderTopWidth:D,borderBottomWidth:I,alignContent:j,alignItems:F,alignSelf:B,flex:N,flexDirection:W,flexGrow:X,flexShrink:w,flexWrap:G,justifyContent:H,flexBasis:U,display:V,overflow:v,overflowX:k,overflowY:z,position:Y,spacing:q,spacingHorizontal:Z,spacingVertical:J,spacingBottom:K,spacingEnd:Q,spacingStart:$,spacingTop:ee,offset:re,offsetVertical:te,offsetHorizontal:oe,offsetBottom:ne,offsetEnd:ie,offsetStart:ae,offsetTop:de,columnGap:fe,rowGap:le,...se},ue){const pe=e.getStyles({className:r,color:o,fontFamily:f,fontSize:d,fontWeight:l,lineHeight:s,textTransform:u,textAlign:p,backgroundColor:E,borderRadius:_,borderTopStartRadius:S,borderTopEndRadius:g,borderBottomStartRadius:O,borderBottomEndRadius:A,borderColor:C,borderStartColor:m,borderEndColor:R,borderTopColor:x,borderBottomColor:T,borderWidth:P,borderVerticalWidth:L,borderHorizontalWidth:h,borderStartWidth:M,borderEndWidth:y,borderTopWidth:D,borderBottomWidth:I,alignContent:j,alignItems:F,alignSelf:B,flex:N,flexDirection:W,flexGrow:X,flexShrink:w,flexWrap:G,justifyContent:H,flexBasis:U,display:V,overflow:v,overflowX:k,overflowY:z,position:Y,spacing:q,spacingHorizontal:Z,spacingVertical:J,spacingBottom:K,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:pe,ref:ue,...se})})),_=i.forwardRef((function({gap:e,children:r,separator:t,...o},n){return a.jsx(s,{ref:n,flexDirection:"column",columnGap:e,rowGap:e,...o,children:t?u(r,t):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 f.Button}}),Object.defineProperty(exports,"IconButton",{enumerable:!0,get:function(){return f.IconButton}}),Object.defineProperty(exports,"Pressable",{enumerable:!0,get:function(){return f.Pressable}}),Object.defineProperty(exports,"SpringMotionConfig",{enumerable:!0,get:function(){return f.SpringMotionConfig}}),exports.Box=s,exports.HStack=p,exports.Image=function({width:r,height:t,src:o,alt:n,contentFit:i,backgroundColor:d,borderRadius:f,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:u,borderBottomEndRadius:p,borderColor:c,borderStartColor:b,borderEndColor:E,borderTopColor:_,borderBottomColor:S,borderWidth:g,borderVerticalWidth:O,borderHorizontalWidth:A,borderStartWidth:C,borderEndWidth:m,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:P,alignSelf:L,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:I,justifyContent:j,flexBasis:F,display:B,overflow:N,overflowX:W,overflowY:X,position:w,spacing:G,spacingHorizontal:H,spacingVertical:U,spacingBottom:V,spacingEnd:v,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:J,offsetEnd:K,offsetStart:Q,offsetTop:$,columnGap:ee,rowGap:re,...te}){const oe=e.getStyles({contentFit:i,backgroundColor:d,borderRadius:f,borderTopStartRadius:l,borderTopEndRadius:s,borderBottomStartRadius:u,borderBottomEndRadius:p,borderColor:c,borderStartColor:b,borderEndColor:E,borderTopColor:_,borderBottomColor:S,borderWidth:g,borderVerticalWidth:O,borderHorizontalWidth:A,borderStartWidth:C,borderEndWidth:m,borderTopWidth:R,borderBottomWidth:x,alignContent:T,alignItems:P,alignSelf:L,flex:h,flexDirection:M,flexGrow:y,flexShrink:D,flexWrap:I,justifyContent:j,flexBasis:F,display:B,overflow:N,overflowX:W,overflowY:X,position:w,spacing:G,spacingHorizontal:H,spacingVertical:U,spacingBottom:V,spacingEnd:v,spacingStart:k,spacingTop:z,offset:Y,offsetVertical:q,offsetHorizontal:Z,offsetBottom:J,offsetEnd:K,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.Text=E,exports.VStack=_;
|
package/dist/index.d.cts
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, 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 SpacingAliasWithNegatives, bE as SpacingConfig, bF as SpacingStyleProps, bG as SpectrumColor, bH as SpectrumConfig, bI as StateStyleProps, bJ as StyleProps, T as TEXT_TRANSFORM_PREFIX, bS as TShirtSize, bT as TShirtSizeCommon, bK as TextProperty, bL as TextStyleProps, bM as TextTransform, bN as TextTransformConfig, bO as TextVariant, bP as TransitionDelay, bQ as TransitionDuration, bR as TransitionTiming, w as UDS_PREFIX, bU as UdsCssVar, bV as UniversalAvatarProps, e as UniversalButtonProps, bW as UniversalDividerProps, f as UniversalIconButtonProps, g as UniversalPressableProps, bX 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-
|
3
|
+
import { q as UniversalBoxProps, r as UniversalStackProps, s as UniversalIconProps, t as UniversalImageProps, u as UniversalTextProps } from './types-BjtmdiGC.cjs';
|
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 SpacingAliasWithNegatives, bE as SpacingConfig, bF as SpacingStyleProps, bG as SpectrumColor, bH as SpectrumConfig, bI as StateStyleProps, bJ as StyleProps, T as TEXT_TRANSFORM_PREFIX, bS as TShirtSize, bT as TShirtSizeCommon, bK as TextProperty, bL as TextStyleProps, bM as TextTransform, bN as TextTransformConfig, bO as TextVariant, bP as TransitionDelay, bQ as TransitionDuration, bR as TransitionTiming, w as UDS_PREFIX, bU as UdsCssVar, bV as UniversalAvatarProps, e as UniversalButtonProps, bW as UniversalDividerProps, f as UniversalIconButtonProps, g as UniversalPressableProps, bX 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-BjtmdiGC.cjs';
|
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.cjs';
|
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, 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 SpacingAliasWithNegatives, bE as SpacingConfig, bF as SpacingStyleProps, bG as SpectrumColor, bH as SpectrumConfig, bI as StateStyleProps, bJ as StyleProps, T as TEXT_TRANSFORM_PREFIX, bS as TShirtSize, bT as TShirtSizeCommon, bK as TextProperty, bL as TextStyleProps, bM as TextTransform, bN as TextTransformConfig, bO as TextVariant, bP as TransitionDelay, bQ as TransitionDuration, bR as TransitionTiming, w as UDS_PREFIX, bU as UdsCssVar, bV as UniversalAvatarProps, e as UniversalButtonProps, bW as UniversalDividerProps, f as UniversalIconButtonProps, g as UniversalPressableProps, bX 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-
|
3
|
+
import { q as UniversalBoxProps, r as UniversalStackProps, s as UniversalIconProps, t as UniversalImageProps, u as UniversalTextProps } from './types-BjtmdiGC.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 SpacingAliasWithNegatives, bE as SpacingConfig, bF as SpacingStyleProps, bG as SpectrumColor, bH as SpectrumConfig, bI as StateStyleProps, bJ as StyleProps, T as TEXT_TRANSFORM_PREFIX, bS as TShirtSize, bT as TShirtSizeCommon, bK as TextProperty, bL as TextStyleProps, bM as TextTransform, bN as TextTransformConfig, bO as TextVariant, bP as TransitionDelay, bQ as TransitionDuration, bR as TransitionTiming, w as UDS_PREFIX, bU as UdsCssVar, bV as UniversalAvatarProps, e as UniversalButtonProps, bW as UniversalDividerProps, f as UniversalIconButtonProps, g as UniversalPressableProps, bX 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-BjtmdiGC.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-
|
1
|
+
import{createSlot as o,getStyles as r}from"./chunk-KTPYM4OO.js";export{Icon,cva,cx,getStyles}from"./chunk-KTPYM4OO.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-TAPL6R6T.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:O,flex:W,flexDirection:x,flexGrow:L,flexShrink:B,flexWrap:M,justifyContent:D,flexBasis:w,display:I="flex",overflow:G,overflowX:N,overflowY:F,position:P,spacing:y,spacingHorizontal:H,spacingVertical:X,spacingBottom:v,spacingEnd:V,spacingStart:k,spacingTop:z,offset:U,offsetVertical:j,offsetHorizontal:Y,offsetBottom:K,offsetEnd:Z,offsetStart:J,offsetTop:$,columnGap:q,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:O,flex:W,flexDirection:x,flexGrow:L,flexShrink:B,flexWrap:M,justifyContent:D,flexBasis:w,display:I,overflow:G,overflowX:N,overflowY:F,position:P,spacing:y,spacingHorizontal:H,spacingVertical:X,spacingBottom:v,spacingEnd:V,spacingStart:k,spacingTop:z,offset:U,offsetVertical:j,offsetHorizontal:Y,offsetBottom:K,offsetEnd:Z,offsetStart:J,offsetTop:$,columnGap:q,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:O,alignItems:W,alignSelf:x,flex:L,flexDirection:B,flexGrow:M,flexShrink:D,flexWrap:w,justifyContent:I,flexBasis:G,display:N,overflow:F,overflowX:P,overflowY:y,position:H,spacing:X,spacingHorizontal:v,spacingVertical:V,spacingBottom:k,spacingEnd:z,spacingStart:U,spacingTop:j,offset:Y,offsetVertical:K,offsetHorizontal:Z,offsetBottom:J,offsetEnd:$,offsetStart:q,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:O,alignItems:W,alignSelf:x,flex:L,flexDirection:B,flexGrow:M,flexShrink:D,flexWrap:w,justifyContent:I,flexBasis:G,display:N,overflow:F,overflowX:P,overflowY:y,position:H,spacing:X,spacingHorizontal:v,spacingVertical:V,spacingBottom:k,spacingEnd:z,spacingStart:U,spacingTop:j,offset:Y,offsetVertical:K,offsetHorizontal:Z,offsetBottom:J,offsetEnd:$,offsetStart:q,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:O,borderWidth:W,borderVerticalWidth:x,borderHorizontalWidth:L,borderStartWidth:B,borderEndWidth:M,borderTopWidth:D,borderBottomWidth:w,alignContent:I,alignItems:G,alignSelf:N,flex:F,flexDirection:P,flexGrow:y,flexShrink:H,flexWrap:X,justifyContent:v,flexBasis:V,display:k,overflow:z,overflowX:U,overflowY:j,position:Y,spacing:K,spacingHorizontal:Z,spacingVertical:J,spacingBottom:$,spacingEnd:q,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:O,borderWidth:W,borderVerticalWidth:x,borderHorizontalWidth:L,borderStartWidth:B,borderEndWidth:M,borderTopWidth:D,borderBottomWidth:w,alignContent:I,alignItems:G,alignSelf:N,flex:F,flexDirection:P,flexGrow:y,flexShrink:H,flexWrap:X,justifyContent:v,flexBasis:V,display:k,overflow:z,overflowX:U,overflowY:j,position:Y,spacing:K,spacingHorizontal:Z,spacingVertical:J,spacingBottom:$,spacingEnd:q,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};
|