@yahoo/uds 3.13.1 → 3.15.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/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/dist/{Box-DWg0lLcd.d.cts → Box-ChOYyOX-.d.cts} +37 -1
- package/dist/{Box-DWg0lLcd.d.ts → Box-ChOYyOX-.d.ts} +37 -1
- package/dist/{Input-aOibmfef.d.cts → Input-BplRyA37.d.cts} +1 -1
- package/dist/{Input-Dl4MH4QA.d.ts → Input-DRW9vjxR.d.ts} +1 -1
- package/dist/Input-DufZLsNH.d.cts +42 -0
- package/dist/Input-UeO0vaoz.d.ts +42 -0
- package/dist/{Pressable-mC6RJscK.d.cts → Pressable-DZgp5KcI.d.cts} +1 -1
- package/dist/{Pressable-SbKe8rDQ.d.ts → Pressable-DwkVgrwH.d.ts} +1 -1
- package/dist/Pressable-aElp6-AI.d.cts +44 -0
- package/dist/Pressable-uDNs9Nsc.d.ts +44 -0
- package/dist/{VStack-CntCBGfp.d.ts → VStack-Ag81NM7d.d.ts} +1 -1
- package/dist/{VStack-z0qYJqIc.d.cts → VStack-CPKfMcLu.d.cts} +1 -1
- package/dist/VStack-DWoBY3tt.d.cts +112 -0
- package/dist/VStack-Diuzxknf.d.ts +112 -0
- package/dist/chunk-3KGQSRYT.js +1 -0
- package/dist/chunk-42XEGTIO.cjs +2 -0
- package/dist/{chunk-5BYL7WNH.cjs → chunk-56NNWMGX.cjs} +1 -1
- package/dist/chunk-5D3C5YYD.js +3 -0
- package/dist/chunk-5IAU2XDU.cjs +1 -0
- package/dist/chunk-6HKNRHLK.cjs +1 -0
- package/dist/chunk-7UNOOMCD.cjs +1 -0
- package/dist/chunk-7XHEAAW3.js +1 -0
- package/dist/chunk-7YFRLAV4.js +1 -0
- package/dist/chunk-BIKX5LPE.js +2 -0
- package/dist/chunk-CAR5LKUE.js +1 -0
- package/dist/chunk-D3ZSEJZK.cjs +2 -0
- package/dist/chunk-D5MYKE44.js +2 -0
- package/dist/chunk-DEDN4TJ3.cjs +3 -0
- package/dist/chunk-DVGFVNDI.js +2 -0
- package/dist/chunk-E44FG7CA.cjs +1 -0
- package/dist/chunk-GHWLYEOM.cjs +1 -0
- package/dist/chunk-I4FL67ZO.js +1 -0
- package/dist/chunk-J65V25HB.cjs +3 -0
- package/dist/chunk-KVPWRNJK.js +2 -0
- package/dist/chunk-KZTUNEAP.js +1 -0
- package/dist/chunk-MD3JYPXC.js +1 -0
- package/dist/chunk-NTSGVZZG.cjs +1 -0
- package/dist/chunk-PBBXMCYC.js +2 -0
- package/dist/chunk-RVDNFG5L.cjs +1 -0
- package/dist/chunk-S2KVASJO.cjs +1 -0
- package/dist/chunk-SIUO3RQL.js +1 -0
- package/dist/chunk-SUSQKDZS.cjs +1 -0
- package/dist/chunk-SWKCJDOY.cjs +1 -0
- package/dist/chunk-V7SJNIMG.js +2 -0
- package/dist/chunk-XFOVSNBZ.cjs +1 -0
- package/dist/chunk-YPZGWRGV.js +2 -0
- package/dist/chunk-ZIR4GEEX.js +3 -0
- package/dist/chunk-ZSLO4JSU.cjs +1 -0
- 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 +10 -5
- package/dist/client/index.d.ts +10 -5
- package/dist/client/index.js +1 -1
- package/dist/domMax-OBCHPQP3.js +1 -0
- package/dist/domMax-ZTC57OAI.cjs +1 -0
- package/dist/experimental/client/SwitchV2.cjs +2 -0
- package/dist/experimental/client/SwitchV2.d.cts +42 -0
- package/dist/experimental/client/SwitchV2.d.ts +42 -0
- package/dist/experimental/client/SwitchV2.js +2 -0
- package/dist/experimental/client/index.cjs +2 -2
- package/dist/experimental/client/index.d.cts +39 -2
- package/dist/experimental/client/index.d.ts +39 -2
- package/dist/experimental/client/index.js +2 -2
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.ts +2 -2
- package/dist/experimental/index.js +2 -2
- package/dist/{index-Dwb73uSE.d.ts → index-BnhqreIn.d.ts} +1 -1
- package/dist/{index-DSqYDAbI.d.cts → index-C0rNcNT6.d.cts} +1 -1
- package/dist/index-DB-ACioI.d.cts +243 -0
- package/dist/index-l7p2BSJ4.d.ts +243 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -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/utils.cjs +1 -1
- package/dist/tailwind/utils.d.cts +2 -2
- package/dist/tailwind/utils.d.ts +2 -2
- 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 +4 -4
- package/dist/tokens/index.d.ts +4 -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-B4Hts0Xm.d.cts → types-3cLxZ8HV.d.cts} +2018 -2018
- package/dist/{types-B4Hts0Xm.d.ts → types-3cLxZ8HV.d.ts} +2018 -2018
- package/dist/types-BzCxycgJ.d.cts +10449 -0
- package/dist/types-BzCxycgJ.d.ts +10449 -0
- package/package.json +12 -2
- package/dist/chunk-5QLKLUZU.js +0 -2
- package/dist/chunk-BCFYKKRU.cjs +0 -3
- package/dist/chunk-MQI5GFGF.js +0 -3
- package/dist/chunk-OVXGAHLE.cjs +0 -1
- package/dist/chunk-PP2Z6HI3.cjs +0 -2
- package/dist/chunk-S2FXUKQX.js +0 -3
- package/dist/chunk-WMOJ5WXH.js +0 -1
- package/dist/chunk-XYUF3GPH.js +0 -1
- package/dist/chunk-YV2EYDJK.cjs +0 -1
- /package/dist/{motionFeatures-6LIGGXPL.cjs → domAnimation-ESPUKI4G.cjs} +0 -0
- /package/dist/{motionFeatures-SJISLQ4M.js → domAnimation-MWKTMI4P.js} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";var e=require("./chunk-ZSLO4JSU.cjs"),s=require("motion/react"),t=require("react"),n=require("react/jsx-runtime"),i={damped:{1:{damping:20.585796264350424,stiffness:62.37968115365702},2:{damping:29.312551281312288,stiffness:126.47801753759964},3:{damping:48.92799401356162,stiffness:352.3892336537332},4:{damping:123.42690994256348,stiffness:2242.474548821137}},smooth:{1:{damping:16.46863701148034,stiffness:67.80400125397502},2:{damping:23.45004102504983,stiffness:137.47610601913004},3:{damping:39.1423952108493,stiffness:383.03177571057955},4:{damping:98.7415279540508,stiffness:2437.4723356751488}},subtle:{1:{damping:13.04316051309243,stiffness:67.80400125397502},2:{damping:18.572432491839468,stiffness:137.47610601913004},3:{damping:31.000777006992646,stiffness:383.03177571057955},4:{damping:78.20329013960823,stiffness:2437.4723356751488}},bouncy:{1:{damping:9.229712940600143,stiffness:48.880672622541795},2:{damping:12.634144343496553,stiffness:91.59092691366399},3:{damping:19.40217701790486,stiffness:216.00395877230474},4:{damping:37.541723184430275,stiffness:808.7032559422912}},veryBouncy:{1:{damping:6.902290754946187,stiffness:38.92152745126911},2:{damping:9.155550514215523,stiffness:68.48134828711234},3:{damping:13.244464908166709,stiffness:143.30858570843873},4:{damping:22.17862652876726,stiffness:401.85804919502965}}},o=()=>import("./domAnimation-ESPUKI4G.cjs").then((({domAnimation:e})=>e));/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var r=t.createContext(!1);exports.SpringMotionConfig=function({children:a,reducedMotion:f="user",loadFeatures:d=o,layoutVariant:m="subtle",layoutSpeed:p="3",colorVariant:g="smooth",colorSpeed:u="3"}){const c=i[m][p],l=i[g][u],[y,M]=t.useState(c),[V,b]=t.useState(l),S={variant:g,speed:u},h=e.getMotionVar({...S,control:"stiffness"}),C=e.getMotionVar({...S,control:"damping"}),x={variant:m,speed:p},j=e.getMotionVar({...x,control:"stiffness"}),v=e.getMotionVar({...x,control:"damping"});t.useEffect((()=>{const e=getComputedStyle(document.documentElement),s={type:"spring",damping:Number(e.getPropertyValue(v)),stiffness:Number(e.getPropertyValue(j))},t={type:"spring",damping:Number(e.getPropertyValue(C)),stiffness:Number(e.getPropertyValue(h))};M(s),b(t)}),[C,h,v,j]);const P=t.useMemo((()=>({type:"spring",mass:1,...y,layout:y,opacity:V,color:V,borderColor:V,backgroundColor:V})),[V,y]);return t.useContext(r)?a:n.jsx(s.LazyMotion,{features:d,strict:!0,children:n.jsx(s.MotionConfig,{transition:P,reducedMotion:f,children:a})})};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{getMotionVar as s}from"./chunk-DVGFVNDI.js";import{LazyMotion as n,MotionConfig as t}from"motion/react";import{createContext as e,useState as i,useEffect as o,useMemo as r,useContext as a}from"react";import{jsx as f}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
2
|
+
var m={damped:{1:{damping:20.585796264350424,stiffness:62.37968115365702},2:{damping:29.312551281312288,stiffness:126.47801753759964},3:{damping:48.92799401356162,stiffness:352.3892336537332},4:{damping:123.42690994256348,stiffness:2242.474548821137}},smooth:{1:{damping:16.46863701148034,stiffness:67.80400125397502},2:{damping:23.45004102504983,stiffness:137.47610601913004},3:{damping:39.1423952108493,stiffness:383.03177571057955},4:{damping:98.7415279540508,stiffness:2437.4723356751488}},subtle:{1:{damping:13.04316051309243,stiffness:67.80400125397502},2:{damping:18.572432491839468,stiffness:137.47610601913004},3:{damping:31.000777006992646,stiffness:383.03177571057955},4:{damping:78.20329013960823,stiffness:2437.4723356751488}},bouncy:{1:{damping:9.229712940600143,stiffness:48.880672622541795},2:{damping:12.634144343496553,stiffness:91.59092691366399},3:{damping:19.40217701790486,stiffness:216.00395877230474},4:{damping:37.541723184430275,stiffness:808.7032559422912}},veryBouncy:{1:{damping:6.902290754946187,stiffness:38.92152745126911},2:{damping:9.155550514215523,stiffness:68.48134828711234},3:{damping:13.244464908166709,stiffness:143.30858570843873},4:{damping:22.17862652876726,stiffness:401.85804919502965}}},p=()=>import("./domAnimation-MWKTMI4P.js").then((({domAnimation:s})=>s));function d({children:e,reducedMotion:d="user",loadFeatures:u=p,layoutVariant:c="subtle",layoutSpeed:l="3",colorVariant:y="smooth",colorSpeed:b="3"}){const V=m[c][l],h=m[y][b],[v,N]=i(V),[P,M]=i(h),j={variant:y,speed:b},C=s({...j,control:"stiffness"}),S=s({...j,control:"damping"}),k={variant:c,speed:l},x=s({...k,control:"stiffness"}),A=s({...k,control:"damping"});o((()=>{const s=getComputedStyle(document.documentElement),n={type:"spring",damping:Number(s.getPropertyValue(A)),stiffness:Number(s.getPropertyValue(x))},t={type:"spring",damping:Number(s.getPropertyValue(S)),stiffness:Number(s.getPropertyValue(C))};N(n),M(t)}),[S,C,A,x]);const D=r((()=>({type:"spring",mass:1,...v,layout:v,opacity:P,color:P,borderColor:P,backgroundColor:P})),[P,v]);return a(g)?e:f(n,{features:u,strict:!0,children:f(t,{transition:D,reducedMotion:d,children:e})})}var g=e(!1);export{d as SpringMotionConfig};
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import{variants as o}from"./chunk-AWSJDBQH.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 b,cloneElement as m,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)},w=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)},v=w({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=v(r);return B.set(t,e),e}return v(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):b(o)?o.props.children:null:r));return g(r,{...i,ref:t,children:b(o)?m(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 b(t)?m(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 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 N=R(),z=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:b,borderHorizontalWidth:m,borderStartWidth:h,borderEndWidth:S,borderTopWidth:x,borderBottomWidth:y,alignContent:C,alignItems:W,alignSelf:w,flex:v,flexDirection:B,flexGrow:E,flexShrink:R,flexWrap:z,justifyContent:G,flexBasis:H,display:V="flex",overflow:j,overflowX:k,overflowY:O,position:I,spacing:A,spacingHorizontal:D,spacingVertical:X,spacingBottom:Y,spacingEnd:$,spacingStart:F,spacingTop:J,offset:M,offsetVertical:P,offsetHorizontal:Q,offsetBottom:Z,offsetEnd:_,offsetStart:q,offsetTop:K,columnGap:L,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:b,borderHorizontalWidth:m,borderStartWidth:h,borderEndWidth:S,borderTopWidth:x,borderBottomWidth:y,alignContent:C,alignItems:W,alignSelf:w,flex:v,flexDirection:B,flexGrow:E,flexShrink:R,flexWrap:z,justifyContent:G,flexBasis:H,display:V,overflow:j,overflowX:k,overflowY:O,position:I,spacing:A,spacingHorizontal:D,spacingVertical:X,spacingBottom:Y,spacingEnd:$,spacingStart:F,spacingTop:J,offset:M,offsetVertical:P,offsetHorizontal:Q,offsetBottom:Z,offsetEnd:_,offsetStart:q,offsetTop:K,columnGap:L,rowGap:U,width:oo,height:ro,dropShadow:to,insetShadow:eo,className:r});return g(o?N:"div",{className:ao,ref:io,...no})}));z.displayName="Box";var G=R(),H={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"},V=p((function({className:o,asChild:r,color:t="primary",variant:e="body1",as:n=H[e],fontFamily:i,fontSize:a,fontWeight:l,lineHeight:s,textTransform:d,textAlign:f,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:b,borderBottomStartRadius:m,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:W,borderWidth:w,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:R,borderTopWidth:N,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:O,flexDirection:I,flexGrow:A,flexShrink:D,flexWrap:X,justifyContent:Y,flexBasis:$,display:F,overflow:J,overflowX:M,overflowY:P,position:Q,spacing:Z,spacingHorizontal:_,spacingVertical:q,spacingBottom:K,spacingEnd:L,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},bo=T({className:o,...uo,backgroundColor:c,borderRadius:p,borderTopStartRadius:u,borderTopEndRadius:b,borderBottomStartRadius:m,borderBottomEndRadius:h,borderColor:S,borderStartColor:x,borderEndColor:y,borderTopColor:C,borderBottomColor:W,borderWidth:w,borderVerticalWidth:v,borderHorizontalWidth:B,borderStartWidth:E,borderEndWidth:R,borderTopWidth:N,borderBottomWidth:z,alignContent:V,alignItems:j,alignSelf:k,flex:O,flexDirection:I,flexGrow:A,flexShrink:D,flexWrap:X,justifyContent:Y,flexBasis:$,display:F,overflow:J,overflowX:M,overflowY:P,position:Q,spacing:Z,spacingHorizontal:_,spacingVertical:q,spacingBottom:K,spacingEnd:L,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?G:n,{className:bo,ref:po,...co})}));V.displayName="Text";var j={xs:12,sm:16,md:24,lg:32},k=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=j[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})})}));k.displayName="Icon";var O=u((function({icon:o,iconProps:r,...t}){if(!o)return null;const e=r??{},n=o;if(n.metadata?.isSvgIcon)return g(k,{name:n,...e,...t});if(S(o)){const r=o(e);return b(r)&&m(r,t)}return b(o)&&m(o,{...e,...o.props,...t})}));
|
3
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */export{z as Box,k as Icon,O as IconSlot,V as Text,R as createSlot,w as cva,W as cx,T as getStyles};
|