@yahoo/uds 3.8.4 → 3.10.0
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/dist/{Input-B7DKHaz_.d.cts → Input-C7XdEL1M.d.cts} +1 -1
- package/dist/{Input-ml_QlxDf.d.ts → Input-CHJJbcsx.d.ts} +1 -1
- package/dist/{Input-CFQQUyGa.d.ts → Input-Td8SCHmr.d.ts} +1 -1
- package/dist/{Input-DcIvvvLD.d.cts → Input-zhPszcR6.d.cts} +1 -1
- package/dist/{Pressable-BjZ946YV.d.cts → Pressable-Bav3ibvU.d.cts} +1 -1
- package/dist/{Pressable-D7WI8aEU.d.ts → Pressable-Bp9saCXS.d.ts} +1 -1
- package/dist/{Pressable-Cc24znXA.d.cts → Pressable-DJLawTMJ.d.cts} +1 -1
- package/dist/{Pressable-DDf8QZC_.d.ts → Pressable-TTYPJVeC.d.ts} +1 -1
- package/dist/{VStack-Cql9dxVj.d.cts → VStack-C2Q0FD84.d.cts} +1 -1
- package/dist/{VStack-BFHUc7rS.d.ts → VStack-Cf8pnG9j.d.ts} +1 -1
- package/dist/{VStack-D2I4thtt.d.cts → VStack-CwwLkabJ.d.cts} +1 -1
- package/dist/{VStack-DE8mYT1Q.d.ts → VStack-DWzKcz58.d.ts} +1 -1
- package/dist/{chunk-6FIPOCHY.cjs → chunk-22YYIBIW.cjs} +1 -1
- package/dist/{chunk-SIBOGMNP.cjs → chunk-33CCQHDT.cjs} +1 -1
- package/dist/chunk-5J4LYLB6.js +2 -0
- package/dist/{chunk-J2KVLHS3.js → chunk-5JTPWZA5.js} +1 -1
- package/dist/{chunk-YQCS652P.cjs → chunk-6VQUZ237.cjs} +1 -1
- package/dist/{chunk-FWCCRREG.js → chunk-75ZIVS4E.js} +2 -2
- package/dist/{chunk-RR727YZK.js → chunk-AJPLGCE6.js} +3 -3
- package/dist/{chunk-E4RNAQCQ.js → chunk-C4L656CQ.js} +1 -1
- package/dist/{chunk-M4DF5FTU.js → chunk-CD5NEURX.js} +1 -1
- package/dist/{chunk-P4YXS6AA.cjs → chunk-CHGA6DDB.cjs} +1 -1
- package/dist/{chunk-3YSGEWV3.js → chunk-CMCHR7TF.js} +1 -1
- package/dist/{chunk-AK6RCGU6.cjs → chunk-EQQKQR6E.cjs} +1 -1
- package/dist/{chunk-ZAUAVTUR.js → chunk-K4L7G5R2.js} +1 -1
- package/dist/chunk-KIT4V7FE.cjs +2 -0
- package/dist/{chunk-GKAVWQP5.cjs → chunk-NPEEFVTA.cjs} +1 -1
- package/dist/{chunk-2GIB3HPN.cjs → chunk-OV6E632J.cjs} +1 -1
- package/dist/chunk-QPPJ2I6Z.cjs +2 -0
- package/dist/{chunk-EYGEUZT7.js → chunk-VFP434PO.js} +3 -3
- package/dist/chunk-VFRJJEUU.js +2 -0
- package/dist/{chunk-R3F7E5CJ.js → chunk-WCONNL7M.js} +1 -1
- package/dist/{chunk-M47X3QGG.cjs → chunk-WHNTFODE.cjs} +3 -3
- package/dist/{chunk-2DICFUUJ.js → chunk-XW77D3Q5.js} +2 -2
- package/dist/{chunk-W6OCS6YF.cjs → chunk-YTYZQS35.cjs} +1 -1
- package/dist/{chunk-4LBIEP7R.cjs → chunk-ZKSFXFL2.cjs} +2 -2
- package/dist/client/Menu.cjs +1 -1
- package/dist/client/Menu.d.cts +3 -3
- package/dist/client/Menu.d.ts +3 -3
- package/dist/client/Menu.js +2 -2
- package/dist/client/index.cjs +1 -1
- package/dist/client/index.d.cts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +1 -1
- package/dist/experimental/client/index.cjs +1 -1
- package/dist/experimental/client/index.js +2 -2
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.js +1 -1
- package/dist/{index-BLWH1g42.d.ts → index-Ct1Po20h.d.ts} +2 -2
- package/dist/{index-qyaEaIzP.d.ts → index-DIu2RI99.d.ts} +2 -2
- package/dist/{index-BR_WKGJS.d.cts → index-DLkS5nSc.d.cts} +2 -2
- package/dist/{index-Cgc9eUQ6.d.cts → index-UJ2CT9gc.d.cts} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -6
- package/dist/index.d.ts +7 -6
- 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/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.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/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 +28 -5
- package/dist/tokens/index.d.ts +28 -5
- 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-bQSUiYZq.d.ts → types-CJOfjao-.d.cts} +1949 -1927
- package/dist/{types-JgL6-s9g.d.ts → types-CJOfjao-.d.ts} +23 -1
- package/dist/{types-bQSUiYZq.d.cts → types-DGsZamYF.d.cts} +23 -1
- package/dist/{types-JgL6-s9g.d.cts → types-DGsZamYF.d.ts} +1957 -1935
- package/package.json +1 -1
- package/cli/FlattenButtonVariant.mock.tsx +0 -17
- package/dist/chunk-46GNFG55.cjs +0 -2
- package/dist/chunk-PBAFGJ2T.js +0 -2
- package/dist/chunk-PMY6PJWM.cjs +0 -2
- package/dist/chunk-SF7HJKP3.js +0 -2
@@ -1,3 +1,3 @@
|
|
1
|
-
import{variants as o}from"./chunk-
|
2
|
-
function x(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function y(o){const r=Object.create(null),t=Object.keys(o);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
|
3
|
-
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{
|
1
|
+
import{variants as o}from"./chunk-CMCHR7TF.js";import{textVariants as r,backgroundColors as t,foregroundColors as e,spectrumColors as n,borderRadii as i,borderWidths as a,lineColors as l}from"@yahoo/uds/fixtures";import{getFeatureFlags as s}from"@yahoo/uds/flags";import d from"clsx";import f from"imurmurhash";import{extendTailwindMerge as c}from"tailwind-merge";import{forwardRef as p,memo as u,isValidElement as m,cloneElement as b,Children as h}from"react";import{jsx as g}from"react/jsx-runtime";import{isFunction as S}from"lodash-es";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
2
|
+
function x(o){return"boolean"==typeof o?`${o}`:0===o?"0":o}function y(o){const r=Object.create(null),t=Object.keys(o);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 C=c({extend:{theme:{borderColor:l,borderWidth:a,borderRadius:i}},override:{classGroups:{"text-color":[{text:[...e,...n]}],"bg-color":[{bg:t}],"font-family":[{font:["icons",...r]}],leading:[{leading:r}]},conflictingClassGroups:{}}}),w=(...o)=>{const r=d(o);return C(r)},v=o=>r=>{if(!o?.variants)return w(o?.base,r?.className);const{variants:t,defaultVariants:e}=o,n=Object.keys(t).map((o=>{const n=r?.[o],i=e?.[o],a=x(n)||x(i);return t[o][a]})),i={...e,...r&&y(r)},a=o?.compoundVariants?.reduce(((o,{className:r,...t})=>Object.entries(t).every((([o,r])=>i[o]===r))?w(o,r):o),"");return w(o?.base,n,a,r?.className)},W=v({variants:o}),B=new Map,T=o=>{const{useGetStylesCache:r}=s();if(r){const r=function(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];r[n]=o[n]}return r}(y(o)),t=(new f).hash(JSON.stringify(r)).result();if(B.has(t))return B.get(t);const e=W(r);return B.set(t,e),e}return W(o)};function E(...o){return r=>o.forEach((o=>function(o,r){"function"==typeof o?o(r):null!=o&&(o.current=r)}(o,r)))}function R(){const o=p(((o,t)=>{const{children:n,...i}=o,a=h.toArray(n),l=a.find(e);if(l){const o=l.props.children,e=a.map((r=>r===l?h.count(o)>1?h.only(null):m(o)?o.props.children:null:r));return g(r,{...i,ref:t,children:m(o)?b(o,void 0,e):null})}return g(r,{...i,ref:t,children:n})}));o.displayName="Slot";const r=p(((o,r)=>{const{children:t,...e}=o;return m(t)?b(t,{...n(e,t.props),ref:r?E(r,t.ref):t.ref}):h.count(t)>1?h.only(null):null}));r.displayName="SlotClone";const t=({children:o})=>o;function e(o){return m(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 N=R(),G=p((function({asChild:o,className:r,backgroundColor:t,borderRadius:e,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:a,borderBottomEndRadius:l,borderColor:s,borderStartColor:d,borderEndColor:f,borderTopColor:c,borderBottomColor:p,borderWidth:u,borderVerticalWidth:m,borderHorizontalWidth:b,borderStartWidth:h,borderEndWidth:S,borderTopWidth:x,borderBottomWidth:y,alignContent:C,alignItems:w,alignSelf:v,flex:W,flexDirection:B,flexGrow:E,flexShrink:R,flexWrap:G,justifyContent:k,flexBasis:z,display:H="flex",overflow:V,overflowX:j,overflowY:O,position:D,spacing:I,spacingHorizontal:A,spacingVertical:X,spacingBottom:Y,spacingEnd:$,spacingStart:F,spacingTop:M,offset:J,offsetVertical:P,offsetHorizontal:Z,offsetBottom:_,offsetEnd:q,offsetStart:K,offsetTop:L,columnGap:Q,rowGap:U,width:oo,height:ro,dropShadow:to,insetShadow:eo,...no},io){const ao=T({backgroundColor:t,borderRadius:e,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:a,borderBottomEndRadius:l,borderColor:s,borderStartColor:d,borderEndColor:f,borderTopColor:c,borderBottomColor:p,borderWidth:u,borderVerticalWidth:m,borderHorizontalWidth:b,borderStartWidth:h,borderEndWidth:S,borderTopWidth:x,borderBottomWidth:y,alignContent:C,alignItems:w,alignSelf:v,flex:W,flexDirection:B,flexGrow:E,flexShrink:R,flexWrap:G,justifyContent:k,flexBasis:z,display:H,overflow:V,overflowX:j,overflowY:O,position:D,spacing:I,spacingHorizontal:A,spacingVertical:X,spacingBottom:Y,spacingEnd:$,spacingStart:F,spacingTop:M,offset:J,offsetVertical:P,offsetHorizontal:Z,offsetBottom:_,offsetEnd:q,offsetStart:K,offsetTop:L,columnGap:Q,rowGap:U,width:oo,height:ro,dropShadow:to,insetShadow:eo,className:r});return g(o?N:"div",{className:ao,ref:io,...no})}));G.displayName="Box";var k=(o,r)=>((o,r)=>{const t=S(r)?r:()=>r;return o.flatMap(((o,r)=>0!==r?[t(r),o]:[o]))})(h.toArray(o),(o=>{const t=S(r)?r(o):r;return m(t)?b(t,{...t.props,key:t.key??`interspersed-${o}`}):null})),z=p((function({gap:o,children:r,separator:t,...e},n){return g(G,{ref:n,flexDirection:"row",rowGap:o,columnGap:o,...e,children:t?k(r,t):r})}));z.displayName="HStack";var H=R(),V={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",inherit:"p"},j=p((function({className:o,asChild:r,color:t="primary",variant:e="body1",as:n=V[e],fontFamily:i,fontSize:a,fontWeight:l,lineHeight:s,textTransform:d,textAlign:f,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:w,borderWidth:v,borderVerticalWidth:W,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:R,borderTopWidth:N,borderBottomWidth:G,alignContent:k,alignItems:z,alignSelf:j,flex:O,flexDirection:D,flexGrow:I,flexShrink:A,flexWrap:X,justifyContent:Y,flexBasis:$,display:F,overflow:M,overflowX:J,overflowY:P,position:Z,spacing:_,spacingHorizontal:q,spacingVertical:K,spacingBottom:L,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:lo,columnGap:so,rowGap:fo,...co},po){const uo={...t&&"inherit"!==t?{color:t}:{},...e&&"inherit"!==e?{fontFamily:i??e,fontSize:a??e,fontWeight:l??e,lineHeight:s??e,textTransform:d??e}:{},textAlign:f},mo=T({className:o,...uo,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:m,borderBottomStartRadius:b,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:w,borderWidth:v,borderVerticalWidth:W,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:R,borderTopWidth:N,borderBottomWidth:G,alignContent:k,alignItems:z,alignSelf:j,flex:O,flexDirection:D,flexGrow:I,flexShrink:A,flexWrap:X,justifyContent:Y,flexBasis:$,display:F,overflow:M,overflowX:J,overflowY:P,position:Z,spacing:_,spacingHorizontal:q,spacingVertical:K,spacingBottom:L,spacingEnd:Q,spacingStart:U,spacingTop:oo,offset:ro,offsetVertical:to,offsetHorizontal:eo,offsetBottom:no,offsetEnd:io,offsetStart:ao,offsetTop:lo,columnGap:so,rowGap:fo});return g(r?H:n,{className:mo,ref:po,...co})}));j.displayName="Text";var O=p((function({gap:o,children:r,separator:t,...e},n){return g(G,{ref:n,flexDirection:"column",columnGap:o,rowGap:o,...e,children:t?k(r,t):r})}));O.displayName="VStack";var D={sm:16,md:24,lg:32},I=p((function({name:o,size:r="md",variant:t="outline",color:e="primary",className:n,...i},a){const l=o.metadata?.variants??[],s=l.includes(t)?t:l[0]??"fill",d="multicolor"===s,f=T({flex:"none",color:d?void 0:e,className:w(n,!d&&"[&_path]:fill-current")}),c=D[r];return g("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:g(o,{size:r,variant:s})})}));I.displayName="Icon";var A=u((function({icon:o,iconProps:r,...t}){if(!o)return null;const e=r??{},n=o;if(n.metadata?.isSvgIcon)return g(I,{name:n,...e,...t});if(S(o)){const r=o(e);return m(r)&&b(r,t)}return m(o)&&b(o,{...e,...o.props,...t})}));
|
3
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{G as Box,z as HStack,I as Icon,A as IconSlot,j as Text,O as VStack,R as createSlot,v as cva,w as cx,T as getStyles};
|