@yahoo/uds 2.8.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/{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/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/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/client/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
"use client";
|
2
|
-
import{createSlot as t,getStyles as o,cx as e,Icon as n}from"../chunk-
|
3
|
-
var N={scale:.7,opacity:0},
|
4
|
-
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{
|
2
|
+
import{createSlot as t,getStyles as o,cx as e,Icon as n}from"../chunk-KTPYM4OO.js";import{getMotionVar as r}from"../chunk-5WTSHH5H.js";import{motion as i}from"../chunk-TAPL6R6T.js";import{BUTTON_CSS_VAR_MAP as a}from"../chunk-PE2P7J44.js";import{buttonIconSvgSize as s}from"@yahoo/uds/fixtures";import{jsx as l,jsxs as d,Fragment as c}from"react/jsx-runtime";import{m as u,useReducedMotion as p,AnimatePresence as h,LazyMotion as m,MotionConfig as f}from"motion/react";import{forwardRef as b,useRef as g,useImperativeHandle as v,useMemo as y,isValidElement as C,cloneElement as w,useState as S,useEffect as x}from"react";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
3
|
+
var N={scale:.7,opacity:0},T={scale:[.7,.7,1],opacity:[0,0,1],transition:{times:[0,.5,1]}},V={icon:T,hide:N,loading:N},z={loading:T,hide:N,icon:N},W=`var(${a.columnGap})`,E=`var(${a.iconSize})`,I={rest:{scale:`var(${a.effects.scale.rest})`},hover:{scale:`var(${a.effects.scale.hover})`},pressed:{scale:`var(${a.effects.scale.pressed})`},withoutIcon:{columnGap:"0px"},withIcon:{columnGap:W}},B={hide:{width:"0px",opacity:0,display:"none"},loading:{width:E,display:"flex",opacity:1},icon:{width:E,display:"flex",opacity:1}},H=({size:t,variant:o})=>{if("outline"===o)switch(t){case"sm":return l(c,{children:l("path",{fill:"currentColor",d:"M7.9 2.7a5.2 5.2 0 1 0 5.2 5.2h1.6a6.8 6.8 0 1 1-6.8-6.8.8.8 0 1 1 0 1.6"})});case"md":return l(c,{children:l("path",{fill:"currentColor",d:"M12 4a8 8 0 1 0 8 8h2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2a1 1 0 1 1 0 2"})});case"lg":return l(c,{children:l("path",{fill:"currentColor",d:"M16.15 4.3C9.605 4.3 4.3 9.605 4.3 16.15S9.605 28 16.15 28 28 22.695 28 16.15h2.3c0 7.815-6.335 14.15-14.15 14.15S2 23.965 2 16.15 8.335 2 16.15 2a1.15 1.15 0 0 1 0 2.3"})})}if("fill"===o)switch(t){case"sm":return l(c,{children:l("path",{fill:"currentColor",d:"M8 2.9A5.1 5.1 0 1 0 13.1 8h1.8A6.9 6.9 0 1 1 8 1.1a.9.9 0 1 1 0 1.8"})});case"md":return l(c,{children:l("path",{fill:"currentColor",d:"M12.15 4.3A7.85 7.85 0 1 0 20 12.15h2.3c0 5.606-4.544 10.15-10.15 10.15S2 17.756 2 12.15 6.544 2 12.15 2a1.15 1.15 0 0 1 0 2.3"})});case"lg":return l(c,{children:l("path",{fill:"currentColor",d:"M16.35 4.7C9.916 4.7 4.7 9.916 4.7 16.35S9.916 28 16.35 28 28 22.784 28 16.35h2.7c0 7.925-6.425 14.35-14.35 14.35S2 24.275 2 16.35 8.425 2 16.35 2a1.35 1.35 0 1 1 0 2.7"})})}return l(c,{})};H.metadata={name:"Progress",isSvgIcon:!0};var P=()=>import("../motionFeatures-PRT45UQH.js").then((({domAnimation:t})=>t));function R({reducedMotion:t="user",children:o,layoutVariant:e="subtle",layoutSpeed:n="3",colorVariant:a="smooth",colorSpeed:s="3"}){const d=i[e][n],c=i[a][s],[u,p]=S(d),[h,b]=S(c),g={variant:a,speed:s},v=r({...g,control:"stiffness"}),C=r({...g,control:"damping"}),w={variant:e,speed:n},N=r({...w,control:"stiffness"}),T=r({...w,control:"damping"});x((()=>{const t=getComputedStyle(document.documentElement),o={damping:Number(t.getPropertyValue(T)),stiffness:Number(t.getPropertyValue(N))},e={damping:Number(t.getPropertyValue(C)),stiffness:Number(t.getPropertyValue(v))};p(o),b(e)}),[C,v,T,N]);const V=y((()=>({type:"spring",mass:1,...u,layout:u,opacity:h,color:h,borderColor:h,backgroundColor:h})),[h,u]);return l(m,{features:P,strict:!0,children:l(f,{transition:V,reducedMotion:t,children:o})})}var k=t(),M=u.create(k),G=b((function({palette:t,variant:r,size:i,startIcon:a,endIcon:m,iconVariant:f,loading:b,disableEffects:S,children:x,asChild:N,type:T="button",className:W,width:E,...P},k){const G=g(null);v(k,(()=>G.current));const j=m?"icon":"hide",A=(({startIcon:t,endIcon:o,loading:e})=>t||o||e?"withIcon":"withoutIcon")({startIcon:a,endIcon:m,loading:b}),$=(({loading:t,startIcon:o})=>t?"loading":o?"icon":"hide")({loading:b,startIcon:a}),L={button:o({width:E,buttonSize:i,buttonVariant:r,buttonPalette:t,className:e("uds-button","uds-ring","uds-hit-target",b&&"uds-button-loading",S&&"uds-button-without-effects","withIcon"===A&&"uds-button-with-gap",W)}),content:"uds-button-content truncate",iconContainer:"uds-button-icon-container flex overflow-clip",loading:"uds-button-icon start-content animate-spin",start:"uds-button-icon start-content",end:"uds-button-icon end-content"},Y=p()?"smooth":"subtle",D=y((()=>l(u.span,{className:L.iconContainer,initial:!1,variants:B,animate:$,children:d(h,{initial:!1,mode:"popLayout",children:[b&&l(u.span,{variants:z,initial:"hide",animate:"loading",exit:"hide",children:l(n,{size:s,name:H,variant:f,color:"current",className:L.loading})},"loading"),a&&!b&&l(u.span,{variants:V,initial:"hide",animate:"icon",exit:"hide",children:l(n,{size:s,name:a,variant:f,color:"current",className:L.start})},a.name)]})})),[L.iconContainer,L.loading,L.start,$,b,f,a]),O=y((()=>l(u.span,{className:L.iconContainer,initial:!1,variants:B,animate:j,children:l(h,{initial:!1,mode:"popLayout",children:m&&l(u.span,{variants:V,initial:"hide",animate:"icon",exit:"hide",children:l(n,{size:s,name:m,variant:f,color:"current",className:L.start})},m.name)})})),[L.iconContainer,L.start,m,j,f]),X=y((()=>S?{...I,rest:{},hover:{},pressed:{}}:I),[S]);return N&&C(x)?l(R,{layoutSpeed:"3",layoutVariant:Y,children:l(M,{type:T,className:L.button,initial:["hide",A],animate:A,variants:X,whileHover:"hover",whileTap:"pressed",...P,children:w(x,x.props,d(c,{children:[D,l("span",{className:L.content,children:x.props.children}),O]}))})}):l(R,{layoutSpeed:"3",layoutVariant:Y,children:d(u.button,{ref:G,type:T,className:L.button,initial:["hide",A],animate:A,variants:X,whileHover:"hover",whileTap:"pressed",...P,children:[D,l("span",{className:L.content,children:x}),O]})})})),j=b((function({palette:t,variant:r,size:i,iconVariant:a,loading:c,disableEffects:m,name:f,type:b="button",className:C,children:w,...S},x){const N=g(null);v(x,(()=>N.current));const T=y((()=>({button:o({buttonVariant:r,buttonPalette:t,iconButtonSize:i,className:e("uds-icon-button","uds-button","uds-ring","uds-hit-target",c&&"uds-button-loading",m&&"uds-button-without-effects",C)}),loading:"uds-button-icon start-content animate-spin",icon:"uds-button-icon start-content"})),[t,r,C,m,i,c]),W=p(),E=y((()=>W?"smooth":"subtle"),[W]),B=y((()=>{const{rest:t,hover:o,pressed:e}=I;return m?{rest:{},hover:{},pressed:{}}:{rest:t,hover:o,pressed:e}}),[m]);return l(R,{layoutSpeed:"3",layoutVariant:E,reducedMotion:m?"always":"user",children:l(u.button,{ref:N,type:b,className:T.button,initial:"icon",variants:B,whileHover:"hover",whileTap:"pressed",...S,children:d(h,{initial:!1,mode:"popLayout",children:[c&&l(u.span,{variants:z,initial:"loading",animate:"loading",exit:"hide",children:l(n,{size:s,name:H,variant:a,color:"current",className:T.loading})},"loading"),f&&!c&&l(u.span,{variants:V,initial:"icon",animate:"icon",exit:"hide",children:w||l(n,{size:s,name:f,variant:a,color:"current",className:T.icon})},f.name)]})})})})),A=t(),$=b((function({className:t,asChild:e,onPress:n,onClick:r=n,backgroundColor:i,borderRadius:a,borderTopStartRadius:s,borderTopEndRadius:d,borderBottomStartRadius:c,borderBottomEndRadius:u,borderColor:p,borderStartColor:h,borderEndColor:m,borderTopColor:f,borderBottomColor:b,borderWidth:g,borderVerticalWidth:v,borderHorizontalWidth:y,borderStartWidth:C,borderEndWidth:w,borderTopWidth:S,borderBottomWidth:x,alignContent:N,alignItems:T,alignSelf:V,flex:z,flexDirection:W,flexGrow:E,flexShrink:I,flexWrap:B,justifyContent:H,flexBasis:P,display:R,overflow:k,overflowX:M,overflowY:G,position:j,spacing:$,spacingHorizontal:L,spacingVertical:Y,spacingBottom:D,spacingEnd:O,spacingStart:X,spacingTop:F,offset:J,offsetVertical:K,offsetHorizontal:Q,offsetBottom:U,offsetEnd:q,offsetStart:Z,offsetTop:_,columnGap:tt,rowGap:ot,...et},nt){const rt=o({backgroundColor:i,borderRadius:a,borderTopStartRadius:s,borderTopEndRadius:d,borderBottomStartRadius:c,borderBottomEndRadius:u,borderColor:p,borderStartColor:h,borderEndColor:m,borderTopColor:f,borderBottomColor:b,borderWidth:g,borderVerticalWidth:v,borderHorizontalWidth:y,borderStartWidth:C,borderEndWidth:w,borderTopWidth:S,borderBottomWidth:x,alignContent:N,alignItems:T,alignSelf:V,flex:z,flexDirection:W,flexGrow:E,flexShrink:I,flexWrap:B,justifyContent:H,flexBasis:P,display:R,overflow:k,overflowX:M,overflowY:G,position:j,spacing:$,spacingHorizontal:L,spacingVertical:Y,spacingBottom:D,spacingEnd:O,spacingStart:X,spacingTop:F,offset:J,offsetVertical:K,offsetHorizontal:Q,offsetBottom:U,offsetEnd:q,offsetStart:Z,offsetTop:_,columnGap:tt,rowGap:ot,className:t});return l(e?A:"button",{className:rt,ref:nt,onClick:r,...et})}));
|
4
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{G as Button,j as IconButton,$ as Pressable,R as SpringMotionConfig};
|
package/dist/fixtures.cjs
CHANGED
@@ -814,7 +814,7 @@ var fontUrls = [
|
|
814
814
|
"https://s.yimg.com/bw/fonts/roboto-mono-700-italic.woff2",
|
815
815
|
"https://s.yimg.com/bw/fonts/yahoo-sans-vf.woff2",
|
816
816
|
"https://s.yimg.com/bw/fonts/yahoo-sans-cr4-vf.woff2",
|
817
|
-
"https://s.yimg.com/bw/fonts/yahoo-product-sans-vf.woff2",
|
817
|
+
"https://s.yimg.com/bw/fonts/yahoo-product-sans-vf.woff2?version=2",
|
818
818
|
"https://s.yimg.com/bw/fonts/yahoo-sans-condensed-vf.woff2",
|
819
819
|
"https://s.yimg.com/bw/fonts/yahoo-serif-display-light.woff2",
|
820
820
|
"https://s.yimg.com/bw/fonts/yahoo-serif-display-regular.woff2",
|
package/dist/fixtures.js
CHANGED
@@ -790,7 +790,7 @@ var fontUrls = [
|
|
790
790
|
"https://s.yimg.com/bw/fonts/roboto-mono-700-italic.woff2",
|
791
791
|
"https://s.yimg.com/bw/fonts/yahoo-sans-vf.woff2",
|
792
792
|
"https://s.yimg.com/bw/fonts/yahoo-sans-cr4-vf.woff2",
|
793
|
-
"https://s.yimg.com/bw/fonts/yahoo-product-sans-vf.woff2",
|
793
|
+
"https://s.yimg.com/bw/fonts/yahoo-product-sans-vf.woff2?version=2",
|
794
794
|
"https://s.yimg.com/bw/fonts/yahoo-sans-condensed-vf.woff2",
|
795
795
|
"https://s.yimg.com/bw/fonts/yahoo-serif-display-light.woff2",
|
796
796
|
"https://s.yimg.com/bw/fonts/yahoo-serif-display-regular.woff2",
|
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};
|