@yahoo/uds 3.50.4-beta.1 → 3.51.0-beta.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/FlattenButtonVariant.mock.tsx +17 -0
- package/dist/{Box-BRZ4oTzD.d.ts → Box-CUh6JR7o.d.ts} +1 -1
- package/dist/{Box-D3tacR6r.d.cts → Box-Cvl7A9pQ.d.cts} +1 -1
- package/dist/{Box-Crrq6i4h.d.ts → Box-DVCow8uy.d.ts} +1 -1
- package/dist/{Box-khx32G-b.d.cts → Box-L281XkpA.d.cts} +1 -1
- package/dist/{Pressable-C1Csw_As.d.cts → Pressable-CCQDpgdV.d.cts} +1 -1
- package/dist/{Pressable-ellfpcNV.d.cts → Pressable-CFvz_KkV.d.cts} +1 -1
- package/dist/{Pressable-BP0FhzRH.d.ts → Pressable-FRpIa3mr.d.ts} +1 -1
- package/dist/{Pressable-B_tUxlD9.d.ts → Pressable-NcqgljIB.d.ts} +1 -1
- package/dist/{Text-CvY2JUUX.d.ts → Text-Bs60-S4b.d.ts} +1 -1
- package/dist/{Text-B34lMyPP.d.cts → Text-C0g1BZRq.d.cts} +1 -1
- package/dist/{Text-OWYMFHte.d.ts → Text-CObaD0dW.d.ts} +1 -1
- package/dist/{Text-BAHkYEiK.d.cts → Text-DPAGXQX_.d.cts} +9 -2
- package/dist/{Text-BAHkYEiK.d.ts → Text-DPAGXQX_.d.ts} +9 -2
- package/dist/{Text-CsOioZGs.d.cts → Text-DqJw6cX_.d.cts} +1 -1
- package/dist/{VStack-C33dVmTS.d.cts → VStack-2-h0syMY.d.cts} +2 -2
- package/dist/{VStack-CJJ81YBr.d.ts → VStack-B6EYjtcC.d.ts} +2 -2
- package/dist/{VStack-CyBmtBp6.d.cts → VStack-BS3zOnmF.d.cts} +2 -2
- package/dist/{VStack-CbJ3sqEF.d.ts → VStack-DhRmq3I4.d.ts} +2 -2
- package/dist/chunk-24SIYFLS.cjs +2 -0
- package/dist/chunk-26KCJWEG.cjs +1 -0
- package/dist/chunk-2AZATKLC.cjs +2 -0
- package/dist/{chunk-GHZN55YT.cjs → chunk-2KVNRQEO.cjs} +1 -1
- package/dist/chunk-3ZCMMPZA.js +1 -0
- package/dist/chunk-4AHFN3OA.cjs +1 -0
- package/dist/{chunk-YUETI7CX.js → chunk-5ZBIY6AW.js} +1 -1
- package/dist/chunk-6MGREGRB.js +2 -0
- package/dist/chunk-7BSRRG47.js +2 -0
- package/dist/chunk-7QVCKS7V.js +2 -0
- package/dist/{chunk-SETEF3DV.cjs → chunk-A775CEIC.cjs} +1 -1
- package/dist/chunk-AMGEYAT4.js +2 -0
- package/dist/chunk-BAZC5ETD.js +3 -0
- package/dist/{chunk-EHNYL5IT.js → chunk-BM7BPYJZ.js} +2 -2
- package/dist/chunk-CXQDRT7W.cjs +1 -0
- package/dist/{chunk-BZ4WZEML.js → chunk-EHDEWVLV.js} +1 -1
- package/dist/{chunk-GPNEY7KS.cjs → chunk-G4XGZNEI.cjs} +1 -1
- package/dist/{chunk-XRC3XONK.js → chunk-JQTRJCS3.js} +1 -1
- package/dist/{chunk-VQ3E3HCA.js → chunk-KCA6G2IP.js} +1 -1
- package/dist/chunk-KTHPG5TI.js +2 -0
- package/dist/{chunk-OYSJXW7P.cjs → chunk-PH6MAF7V.cjs} +1 -1
- package/dist/chunk-PPFRPMS7.js +1 -0
- package/dist/chunk-QTKEWJYB.cjs +1 -0
- package/dist/chunk-REBNTOTC.cjs +1 -0
- package/dist/chunk-S6YY3EIL.cjs +1 -0
- package/dist/{chunk-OUNJ2EVS.js → chunk-SIH6N4MG.js} +1 -1
- package/dist/chunk-TTM7M2N6.js +2 -0
- package/dist/{chunk-4YBHOXSS.cjs → chunk-U57GLRER.cjs} +1 -1
- package/dist/{chunk-KE43NLOC.cjs → chunk-U6EFKQU3.cjs} +1 -1
- package/dist/chunk-UMRLFVTY.cjs +1 -0
- package/dist/{chunk-QKVZMGMM.cjs → chunk-VZQYI656.cjs} +1 -1
- package/dist/{chunk-ZNIACIJN.js → chunk-WDAGVBPY.js} +1 -1
- package/dist/{chunk-YAZO2HQM.cjs → chunk-WQLTYMTS.cjs} +1 -1
- package/dist/chunk-XHHJDMZ3.js +3 -0
- package/dist/{chunk-6YDD52PT.cjs → chunk-Z5IUIUGO.cjs} +1 -1
- package/dist/{chunk-7LL5RQKC.js → chunk-ZG2QBSTD.js} +1 -1
- package/dist/client/Menu.cjs +1 -1
- package/dist/client/Menu.d.cts +4 -4
- package/dist/client/Menu.d.ts +4 -4
- package/dist/client/Menu.js +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +4 -4
- package/dist/client/index.d.ts +4 -4
- package/dist/client/index.js +1 -1
- package/dist/defaultTokensConfig.cjs +1 -1
- package/dist/defaultTokensConfig.d.cts +2 -2
- package/dist/defaultTokensConfig.d.ts +2 -2
- package/dist/defaultTokensConfig.js +1 -1
- package/dist/experimental/client/SwitchV2.cjs +1 -2
- package/dist/experimental/client/SwitchV2.d.cts +1 -1
- package/dist/experimental/client/SwitchV2.d.ts +1 -1
- package/dist/experimental/client/SwitchV2.js +1 -1
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.d.cts +1 -1
- package/dist/experimental/client/index.d.ts +1 -1
- package/dist/experimental/client/index.js +2 -2
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +1 -1
- package/dist/experimental/index.d.ts +1 -1
- package/dist/experimental/index.js +1 -1
- package/dist/fixtures.cjs +79 -4
- package/dist/fixtures.d.cts +5 -2
- package/dist/fixtures.d.ts +5 -2
- package/dist/fixtures.js +74 -2
- package/dist/{index-CsCxUL1M.d.ts → index-4xKx2_xE.d.ts} +1 -3
- package/dist/{index-BTWEOZ26.d.ts → index-BsoxPpjo.d.cts} +1 -3
- package/dist/{index-D0aeNy2s.d.cts → index-CWrqdCSS.d.cts} +1 -3
- package/dist/{index-CaoWyj2K.d.cts → index-xvB5OxPZ.d.ts} +1 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- 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 +3 -8
- package/dist/tailwind/plugin.d.ts +3 -8
- package/dist/tailwind/plugin.js +1 -1
- package/dist/tailwind/purger.cjs +1 -1
- package/dist/tailwind/purger.js +2 -2
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.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/automation/configs.cjs +1 -1
- package/dist/tokens/automation/configs.d.cts +2 -2
- package/dist/tokens/automation/configs.d.ts +2 -2
- package/dist/tokens/automation/configs.js +1 -1
- package/dist/tokens/automation/properties.cjs +1 -1
- package/dist/tokens/automation/properties.d.cts +2 -2
- package/dist/tokens/automation/properties.d.ts +2 -2
- package/dist/tokens/automation/properties.js +1 -1
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +114 -4
- package/dist/tokens/index.d.ts +114 -4
- 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-DyrBa-Te.d.cts → types-CZs2hd57.d.cts} +1949 -1942
- package/dist/{types-DyrBa-Te.d.ts → types-CZs2hd57.d.ts} +1949 -1942
- package/dist/{types-wpDRhNL7.d.cts → types-hzDOw1m6.d.cts} +1936 -1929
- package/dist/{types-wpDRhNL7.d.ts → types-hzDOw1m6.d.ts} +1936 -1929
- package/package.json +1 -1
- package/dist/chunk-2OVPAQDD.cjs +0 -1
- package/dist/chunk-33NEAKZA.js +0 -1
- package/dist/chunk-42TM364I.cjs +0 -1
- package/dist/chunk-47GDQLRF.cjs +0 -1
- package/dist/chunk-6OLYHKI2.js +0 -2
- package/dist/chunk-DOZR4VV3.cjs +0 -1
- package/dist/chunk-EH5SFIBC.cjs +0 -1
- package/dist/chunk-FBUQPNDG.js +0 -1
- package/dist/chunk-JPN6YWNN.js +0 -3
- package/dist/chunk-K7DHGT5F.cjs +0 -1
- package/dist/chunk-KVYG47TI.cjs +0 -2
- package/dist/chunk-LBLGOZ3G.js +0 -2
- package/dist/chunk-ND5BLCNY.js +0 -2
- package/dist/chunk-NRDPPJSB.js +0 -2
- package/dist/chunk-O4TV6UVI.cjs +0 -1
- package/dist/chunk-Q3FDUDAQ.cjs +0 -2
- package/dist/chunk-QCLXCOEJ.js +0 -2
- package/dist/chunk-S5RRP747.js +0 -2
- package/dist/chunk-TDZQZIK5.js +0 -3
package/dist/chunk-TDZQZIK5.js
DELETED
@@ -1,3 +0,0 @@
|
|
1
|
-
import{require_isFunction as o,variants as r}from"./chunk-ND5BLCNY.js";import{__toESM as t}from"./chunk-GF4A6TFM.js";import{textVariants as e,backgroundColors as n,foregroundColors as i,spectrumColors as a,borderRadii as s,borderWidths as l,lineColors as d}from"@yahoo/uds/fixtures";import{getFeatureFlags as f}from"@yahoo/uds/flags";import{clsx as c}from"clsx";import{extendTailwindMerge as p}from"tailwind-merge";import{forwardRef as u,memo as m,isValidElement as b,cloneElement as h,Children as g}from"react";import{jsx as S}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
2
|
-
function x(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}var{useGetStylesCache:C,skipTailwindMerge:y}=f();function v(o){const r=Object.create(null),t=Object.keys(o).sort();for(let e=0,n=t.length;e<n;e++){const n=t[e];void 0!==o[n]&&(r[n]=o[n])}return r}var w=p({extend:{theme:{borderColor:d,borderWidth:l,borderRadius:s}},override:{classGroups:{"text-color":[{text:[...i,...a]}],"bg-color":[{bg:n}],"font-family":[{font:["icons",...e]}],leading:[{leading:e}]},conflictingClassGroups:{}}}),W=(...o)=>{const r=c(o);return y?r:w(r)},B=o=>{const{base:r,variants:t,defaultVariants:e,compoundVariants:n}=o;return o=>{if(!o)return W(r);const{className:i,...a}=o;if(!t)return W(r,i);const s=[];for(const o in e){if(void 0===o)continue;if(void 0!==a[o])continue;const r=x(e[o]);s.push(t[o][r])}for(const o in a){if(void 0===o)continue;const r=x(a[o]);s.push(t[o][r])}if(!n)return W(r,s,i);let l="";for(const o of n){const{className:r,...t}=o;let n=!0;for(const o in t){const r=t[o];if(!((a[o]??e?.[o])===r)){n=!1;break}}n&&(l=W(l,r))}return W(r,s,l,i)}},T=B({variants:r}),N=new Map,E=Symbol("getStylesCacheKey"),R=(o,r)=>{if(!C)return T(o);const t=(o=>{if(o[E])return o[E];const r=v(o);let t="";for(const o in r)t+=`${o}:${r[o]}|`;return o[E]=t,t})(o);if(N.has(t))return r?.(),N.get(t);const e=T(o);return N.set(t,e),e};function z(...o){return r=>o.forEach(o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r))}function G(){const o=u((o,t)=>{const{children:n,...i}=o,a=g.toArray(n),s=a.find(e);if(s){const o=s.props.children,e=a.map(r=>r===s?g.count(o)>1?g.only(null):b(o)?o.props.children:null:r);return S(r,{...i,ref:t,children:b(o)?h(o,void 0,e):null})}return S(r,{...i,ref:t,children:n})});o.displayName="Slot";const r=u((o,r)=>{const{children:t,...e}=o;return b(t)?h(t,{...n(e,t.props),ref:r?z(r,t.ref):t.ref}):g.count(t)>1?g.only(null):null});r.displayName="SlotClone";const t=({children:o})=>o;function e(o){return b(o)&&o.type===t}function n(o,r){const t={...r};for(const e in r){const n=o[e],i=r[e];/^on[A-Z]/.test(e)?n&&i?t[e]=(...o)=>{i(...o),n(...o)}:n&&(t[e]=n):"style"===e&&(t[e]={...n,...i})}return{...o,...t}}return o}var H=G(),V=u(function({asChild:o,as:r="div",className:t,backgroundColor:e,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:l,borderColor:d,borderStartColor:f,borderEndColor:c,borderTopColor:p,borderBottomColor:u,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:h,borderStartWidth:g,borderEndWidth:x,borderTopWidth:C,borderBottomWidth:y,alignContent:v,alignItems:w,alignSelf:W,flex:B,flexDirection:T,flexGrow:N,flexShrink:E,flexWrap:z,justifyContent:G,flexBasis:V,display:k="flex",overflow:j,overflowX:I,overflowY:A,position:D,spacing:Y,spacingHorizontal:$,spacingVertical:F,spacingBottom:X,spacingEnd:M,spacingStart:O,spacingTop:K,offset:L,offsetVertical:P,offsetHorizontal:Z,offsetBottom:_,offsetEnd:q,offsetStart:J,offsetTop:Q,columnGap:U,rowGap:oo,width:ro,height:to,dropShadow:eo,insetShadow:no,...io},ao){const so=R({backgroundColor:e,borderRadius:n,borderTopStartRadius:i,borderTopEndRadius:a,borderBottomStartRadius:s,borderBottomEndRadius:l,borderColor:d,borderStartColor:f,borderEndColor:c,borderTopColor:p,borderBottomColor:u,borderWidth:m,borderVerticalWidth:b,borderHorizontalWidth:h,borderStartWidth:g,borderEndWidth:x,borderTopWidth:C,borderBottomWidth:y,alignContent:v,alignItems:w,alignSelf:W,flex:B,flexDirection:T,flexGrow:N,flexShrink:E,flexWrap:z,justifyContent:G,flexBasis:V,display:k,overflow:j,overflowX:I,overflowY:A,position:D,spacing:Y,spacingHorizontal:$,spacingVertical:F,spacingBottom:X,spacingEnd:M,spacingStart:O,spacingTop:K,offset:L,offsetVertical:P,offsetHorizontal:Z,offsetBottom:_,offsetEnd:q,offsetStart:J,offsetTop:Q,columnGap:U,rowGap:oo,width:ro,height:to,dropShadow:eo,insetShadow:no,className:t});return S(o?H:r,{className:so,ref:ao,...io})});V.displayName="Box";var k=G(),j={display1:"h1",display2:"h1",display3:"h1",title1:"h1",title2:"h2",title3:"h3",title4:"h4",headline1:"h5",body1:"p",label1:"p",label2:"p",label3:"p",label4:"p",caption1:"p",caption2:"p",legal1:"p",ui1:"span",ui2:"span",ui3:"span",ui4:"span",ui5:"span",ui6:"span",inherit:"p"},I=u(function({className:o,asChild:r,color:t="primary",variant:e="body1",as:n=j[e],fontFamily:i,fontSize:a,fontWeight:s,lineHeight:l,textTransform:d,textAlign:f,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:g,borderStartColor:x,borderEndColor:C,borderTopColor:y,borderBottomColor:v,borderWidth:w,borderVerticalWidth:W,borderHorizontalWidth:B,borderStartWidth:T,borderEndWidth:N,borderTopWidth:E,borderBottomWidth:z,alignContent:G,alignItems:H,alignSelf:V,flex:I,flexDirection:A,flexGrow:D,flexShrink:Y,flexWrap:$,justifyContent:F,flexBasis:X,display:M,overflow:O,overflowX:K,overflowY:L,position:P,spacing:Z,spacingHorizontal:_,spacingVertical:q,spacingBottom:J,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo,...co},po){const uo={...t&&"inherit"!==t?{color:t}:{},...e&&"inherit"!==e?{fontFamily:i??e,fontSize:a??e,fontWeight:s??e,lineHeight:l??e,textTransform:d??e}:{},textAlign:f},mo=R({className:o,...uo,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:g,borderStartColor:x,borderEndColor:C,borderTopColor:y,borderBottomColor:v,borderWidth:w,borderVerticalWidth:W,borderHorizontalWidth:B,borderStartWidth:T,borderEndWidth:N,borderTopWidth:E,borderBottomWidth:z,alignContent:G,alignItems:H,alignSelf:V,flex:I,flexDirection:A,flexGrow:D,flexShrink:Y,flexWrap:$,justifyContent:F,flexBasis:X,display:M,overflow:O,overflowX:K,overflowY:L,position:P,spacing:Z,spacingHorizontal:_,spacingVertical:q,spacingBottom:J,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:so,columnGap:lo,rowGap:fo});return S(r?k:n,{className:mo,ref:po,...co})});I.displayName="Text";var A={xs:12,sm:16,md:24,lg:32},D=u(function({name:o,size:r="md",variant:t="outline",color:e="primary",className:n,...i},a){const s=o.metadata?.variants??[],l=s.includes(t)?t:s[0]??"fill",d="multicolor"===l,f=R({flex:"none",color:d?void 0:e,className:W(n,!d&&"[&_path]:fill-current")}),c=A[r];return S("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:c,height:c,viewBox:`0 0 ${c} ${c}`,"aria-hidden":"true",focusable:"false",className:f,...i,children:S(o,{size:r,variant:l})})});D.displayName="Icon";var Y=t(o(),1),$=m(function({icon:o,iconProps:r,className:t,...e}){if(!o)return null;const{className:n,...i}=r||{},a=W(t,n),s=o;if(s.metadata?.isSvgIcon)return S(D,{name:s,...i,...e,className:a});if((0,Y.default)(o)){const t=o(r||{}),n=t?.props.className;return b(t)&&h(t,{...e,className:W(a,n)})}return b(o)&&h(o,{...i,...o.props,...e,className:W(a,o.props.className)})});$.displayName="IconSlot";
|
3
|
-
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{V as Box,D as Icon,$ as IconSlot,I as Text,G as createSlot,B as cva,W as cx,R as getStyles,E as getStylesCacheKeySymbol};
|