@yahoo/uds 3.5.0-beta.4 → 3.5.0-beta.6
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/{Input-D6N7TCc9.d.ts → Input-BCHIQxSL.d.ts} +1 -1
- package/dist/Input-BEaCeKpq.d.ts +42 -0
- package/dist/{Input-Tv8gAhPN.d.cts → Input-D5LpskoS.d.cts} +1 -1
- package/dist/Input-T1Sqx44p.d.cts +42 -0
- package/dist/{Pressable-DSWYYU6N.d.ts → Pressable-CGXst9B0.d.ts} +1 -1
- package/dist/Pressable-DEHVkea-.d.ts +44 -0
- package/dist/{Pressable-cW57Ibe2.d.cts → Pressable-DiaKktWS.d.cts} +1 -1
- package/dist/Pressable-ipJeIxQW.d.cts +44 -0
- package/dist/{VStack-Ca-CbKTr.d.ts → VStack-BW_Tjxy6.d.ts} +9 -4
- package/dist/{VStack-Ck33D8i-.d.cts → VStack-CrV2St6z.d.ts} +9 -4
- package/dist/VStack-Czr3zOzY.d.cts +112 -0
- package/dist/VStack-DNjFcnkK.d.cts +112 -0
- package/dist/analytics/server.cjs +1 -1
- package/dist/analytics/server.js +1 -1
- package/dist/chunk-6GA7YVZ6.js +2 -0
- package/dist/{chunk-PNR3372L.js → chunk-ASHJNCZI.js} +2 -2
- package/dist/chunk-B6TJHTZE.js +2 -0
- package/dist/chunk-CS622C2O.cjs +1 -0
- package/dist/chunk-DCULPJ7L.cjs +1 -0
- package/dist/chunk-F4J6WCAA.js +1 -0
- package/dist/chunk-HBZLHJEI.js +2 -0
- package/dist/chunk-HVVEL54J.js +3 -0
- package/dist/{chunk-FGRUT3UC.cjs → chunk-LT57BR6C.cjs} +1 -1
- package/dist/chunk-MCPMOASZ.cjs +2 -0
- package/dist/chunk-MTZ35Z64.js +3 -0
- package/dist/chunk-NCAWMJ7Y.cjs +1 -0
- package/dist/chunk-NFM3LOGK.cjs +2 -0
- package/dist/chunk-PDUDFUBF.cjs +3 -0
- package/dist/chunk-TKGMMX2M.js +1 -0
- package/dist/chunk-XF3ISQLE.cjs +2 -0
- package/dist/chunk-YTMZSL6D.cjs +1 -0
- package/dist/chunk-ZQHOCGRS.js +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 +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/index.js +1 -1
- package/dist/experimental/client/index.js +2 -1
- package/dist/experimental/index.cjs +1 -1
- package/dist/experimental/index.js +2 -1
- package/dist/flags.cjs +1 -2
- package/dist/flags.js +2 -2
- package/dist/index-CiudrMnH.d.cts +241 -0
- package/dist/{index-CDx_NWe2.d.cts → index-CphreTFx.d.ts} +40 -7
- package/dist/index-D67X68Zx.d.cts +241 -0
- package/dist/{index-xaTWnEHm.d.ts → index-a2q7gmGh.d.ts} +40 -7
- 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/motionFeatures-6LIGGXPL.cjs +1 -1
- package/dist/motionFeatures-SJISLQ4M.js +1 -1
- package/dist/styles/toast.d.cts +2 -0
- package/dist/styles/toast.d.ts +2 -0
- 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 +2 -2
- package/dist/tailwind/purger.js +2 -2
- 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 +4 -4
- package/dist/tokens/index.d.ts +4 -4
- package/dist/tokens/index.js +1 -1
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/{types-BdV70-Tw.d.cts → types-Bmiyv6JB.d.cts} +1 -1
- package/dist/{types-BdV70-Tw.d.ts → types-Bmiyv6JB.d.ts} +1 -1
- package/dist/types-c3KKIkgF.d.cts +10302 -0
- package/dist/types-c3KKIkgF.d.ts +10302 -0
- package/package.json +3 -5
- package/cli/FullWidthClassToProp.mock.tsx +0 -17
- package/dist/chunk-EDYPTXZP.js +0 -2
- package/dist/chunk-EE3DM7SS.js +0 -2
- package/dist/chunk-MO2VPSXU.js +0 -1
- package/dist/chunk-P4XGJJCM.cjs +0 -2
- package/dist/chunk-UFBH4CCM.cjs +0 -1
@@ -0,0 +1,3 @@
|
|
1
|
+
"use strict";var r=require("./chunk-YTMZSL6D.cjs"),o=require("@yahoo/uds/fixtures"),e=require("@yahoo/uds/flags"),t=require("clsx"),n=require("imurmurhash"),i=require("tailwind-merge"),a=require("react"),l=require("react/jsx-runtime"),s=require("lodash-es");function d(r){return r&&r.__esModule?r:{default:r}}var c=d(t),f=d(n);/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */
|
2
|
+
function p(r){return"boolean"==typeof r?`${r}`:0===r?"0":r}function u(r){const o=Object.create(null),e=Object.keys(r);for(let t=0,n=e.length;t<n;t++){const n=e[t];void 0!==r[n]&&(o[n]=r[n])}return o}var h=i.extendTailwindMerge({extend:{theme:{borderColor:o.lineColors,borderWidth:o.borderWidths,borderRadius:o.borderRadii}},override:{classGroups:{"text-color":[{text:[...o.foregroundColors,...o.spectrumColors]}],"bg-color":[{bg:o.backgroundColors}],"font-family":[{font:["icons",...o.textVariants]}],leading:[{leading:o.textVariants}]},conflictingClassGroups:{}}}),b=(...r)=>{const o=c.default(r);return h(o)},m=r=>o=>{if(!r?.variants)return b(r?.base,o?.className);const{variants:e,defaultVariants:t}=r,n=Object.keys(e).map((r=>{const n=o?.[r],i=t?.[r],a=p(n)||p(i);return e[r][a]})),i={...t,...o&&u(o)},a=r?.compoundVariants?.reduce(((r,{className:o,...e})=>Object.entries(e).every((([r,o])=>i[r]===o))?b(r,o):r),"");return b(r?.base,n,a,o?.className)},g=m({variants:r.variants}),x=new Map,S=r=>{const{useGetStylesCache:o}=e.getFeatureFlags();if(o){const o=function(r){const o=Object.create(null),e=Object.keys(r).sort();for(let t=0,n=e.length;t<n;t++){const n=e[t];o[n]=r[n]}return o}(u(r)),e=(new f.default).hash(JSON.stringify(o)).result();if(x.has(e))return x.get(e);const t=g(o);return x.set(e,t),t}return g(r)};function C(...r){return o=>r.forEach((r=>function(r,o){"function"==typeof r?r(o):null!=r&&(r.current=o)}(r,o)))}function w(){const r=a.forwardRef(((r,e)=>{const{children:n,...i}=r,s=a.Children.toArray(n),d=s.find(t);if(d){const r=d.props.children,t=s.map((o=>o===d?a.Children.count(r)>1?a.Children.only(null):a.isValidElement(r)?r.props.children:null:o));return l.jsx(o,{...i,ref:e,children:a.isValidElement(r)?a.cloneElement(r,void 0,t):null})}return l.jsx(o,{...i,ref:e,children:n})}));r.displayName="Slot";const o=a.forwardRef(((r,o)=>{const{children:e,...t}=r;return a.isValidElement(e)?a.cloneElement(e,{...n(t,e.props),ref:o?C(o,e.ref):e.ref}):a.Children.count(e)>1?a.Children.only(null):null}));o.displayName="SlotClone";const e=({children:r})=>r;function t(r){return a.isValidElement(r)&&r.type===e}function n(r,o){const e={...o};for(const t in o){const n=r[t],i=o[t];/^on[A-Z]/.test(t)?n&&i?e[t]=(...r)=>{i(...r),n(...r)}:n&&(e[t]=n):"style"===t&&(e[t]={...n,...i})}return{...r,...e}}return r}var y=w(),v=a.forwardRef((function({asChild:r,className:o,backgroundColor:e,borderRadius:t,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:a,borderBottomEndRadius:s,borderColor:d,borderStartColor:c,borderEndColor:f,borderTopColor:p,borderBottomColor:u,borderWidth:h,borderVerticalWidth:b,borderHorizontalWidth:m,borderStartWidth:g,borderEndWidth:x,borderTopWidth:C,borderBottomWidth:w,alignContent:v,alignItems:E,alignSelf:W,flex:B,flexDirection:T,flexGrow:R,flexShrink:V,flexWrap:j,justifyContent:N,flexBasis:k,display:G="flex",overflow:z,overflowX:H,overflowY:q,position:I,spacing:D,spacingHorizontal:F,spacingVertical:O,spacingBottom:A,spacingEnd:M,spacingStart:Y,spacingTop:X,offset:$,offsetVertical:_,offsetHorizontal:Z,offsetBottom:J,offsetEnd:L,offsetStart:P,offsetTop:K,columnGap:Q,rowGap:U,width:rr,height:or,dropShadow:er,insetShadow:tr,...nr},ir){const ar=S({backgroundColor:e,borderRadius:t,borderTopStartRadius:n,borderTopEndRadius:i,borderBottomStartRadius:a,borderBottomEndRadius:s,borderColor:d,borderStartColor:c,borderEndColor:f,borderTopColor:p,borderBottomColor:u,borderWidth:h,borderVerticalWidth:b,borderHorizontalWidth:m,borderStartWidth:g,borderEndWidth:x,borderTopWidth:C,borderBottomWidth:w,alignContent:v,alignItems:E,alignSelf:W,flex:B,flexDirection:T,flexGrow:R,flexShrink:V,flexWrap:j,justifyContent:N,flexBasis:k,display:G,overflow:z,overflowX:H,overflowY:q,position:I,spacing:D,spacingHorizontal:F,spacingVertical:O,spacingBottom:A,spacingEnd:M,spacingStart:Y,spacingTop:X,offset:$,offsetVertical:_,offsetHorizontal:Z,offsetBottom:J,offsetEnd:L,offsetStart:P,offsetTop:K,columnGap:Q,rowGap:U,width:rr,height:or,dropShadow:er,insetShadow:tr,className:o}),lr=r?y:"div";return l.jsx(lr,{className:ar,ref:ir,...nr})}));v.displayName="Box";var E=(r,o)=>((r,o)=>{const e=s.isFunction(o)?o:()=>o;return r.flatMap(((r,o)=>0!==o?[e(o),r]:[r]))})(a.Children.toArray(r),(r=>{const e=s.isFunction(o)?o(r):o;return a.isValidElement(e)?a.cloneElement(e,{...e.props,key:e.key??`interspersed-${r}`}):null})),W=a.forwardRef((function({gap:r,children:o,separator:e,...t},n){return l.jsx(v,{ref:n,flexDirection:"row",rowGap:r,columnGap:r,...t,children:e?E(o,e):o})}));W.displayName="HStack";var B=w(),T={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"},R=a.forwardRef((function({className:r,asChild:o,color:e="primary",variant:t="body1",as:n=T[t],fontFamily:i,fontSize:a,fontWeight:s,lineHeight:d,textTransform:c,textAlign:f,backgroundColor:p,borderRadius:u,borderTopStartRadius:h,borderTopEndRadius:b,borderBottomStartRadius:m,borderBottomEndRadius:g,borderColor:x,borderStartColor:C,borderEndColor:w,borderTopColor:y,borderBottomColor:v,borderWidth:E,borderVerticalWidth:W,borderHorizontalWidth:R,borderStartWidth:V,borderEndWidth:j,borderTopWidth:N,borderBottomWidth:k,alignContent:G,alignItems:z,alignSelf:H,flex:q,flexDirection:I,flexGrow:D,flexShrink:F,flexWrap:O,justifyContent:A,flexBasis:M,display:Y,overflow:X,overflowX:$,overflowY:_,position:Z,spacing:J,spacingHorizontal:L,spacingVertical:P,spacingBottom:K,spacingEnd:Q,spacingStart:U,spacingTop:rr,offset:or,offsetVertical:er,offsetHorizontal:tr,offsetBottom:nr,offsetEnd:ir,offsetStart:ar,offsetTop:lr,columnGap:sr,rowGap:dr,...cr},fr){const pr={...e&&"inherit"!==e?{color:e}:{},...t&&"inherit"!==t?{fontFamily:i??t,fontSize:a??t,fontWeight:s??t,lineHeight:d??t,textTransform:c??t}:{},textAlign:f},ur=S({className:r,...pr,backgroundColor:p,borderRadius:u,borderTopStartRadius:h,borderTopEndRadius:b,borderBottomStartRadius:m,borderBottomEndRadius:g,borderColor:x,borderStartColor:C,borderEndColor:w,borderTopColor:y,borderBottomColor:v,borderWidth:E,borderVerticalWidth:W,borderHorizontalWidth:R,borderStartWidth:V,borderEndWidth:j,borderTopWidth:N,borderBottomWidth:k,alignContent:G,alignItems:z,alignSelf:H,flex:q,flexDirection:I,flexGrow:D,flexShrink:F,flexWrap:O,justifyContent:A,flexBasis:M,display:Y,overflow:X,overflowX:$,overflowY:_,position:Z,spacing:J,spacingHorizontal:L,spacingVertical:P,spacingBottom:K,spacingEnd:Q,spacingStart:U,spacingTop:rr,offset:or,offsetVertical:er,offsetHorizontal:tr,offsetBottom:nr,offsetEnd:ir,offsetStart:ar,offsetTop:lr,columnGap:sr,rowGap:dr}),hr=o?B:n;return l.jsx(hr,{className:ur,ref:fr,...cr})}));R.displayName="Text";var V=a.forwardRef((function({gap:r,children:o,separator:e,...t},n){return l.jsx(v,{ref:n,flexDirection:"column",columnGap:r,rowGap:r,...t,children:e?E(o,e):o})}));V.displayName="VStack";var j={sm:16,md:24,lg:32},N=a.forwardRef((function({name:r,size:o="md",variant:e="outline",color:t="primary",className:n,...i},a){const s=r.metadata?.variants??[],d=s.includes(e)?e:s[0]??"fill",c="multicolor"===d,f=S({flex:"none",color:c?void 0:t,className:b(n,!c&&"[&_path]:fill-current")}),p=j[o];return l.jsx("svg",{ref:a,xmlns:"http://www.w3.org/2000/svg",width:p,height:p,viewBox:`0 0 ${p} ${p}`,"aria-hidden":"true",focusable:"false",className:f,...i,children:l.jsx(r,{size:o,variant:d})})}));N.displayName="Icon";var k=a.memo((function({icon:r,iconProps:o,...e}){if(!r)return null;const t=o??{},n=r;if(n.metadata?.isSvgIcon)return l.jsx(N,{name:n,...t,...e});if(s.isFunction(r)){const o=r(t);return a.isValidElement(o)&&a.cloneElement(o,e)}return a.isValidElement(r)&&a.cloneElement(r,{...t,...r.props,...e})}));
|
3
|
+
/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */exports.Box=v,exports.HStack=W,exports.Icon=N,exports.IconSlot=k,exports.Text=R,exports.VStack=V,exports.createSlot=w,exports.cva=m,exports.cx=b,exports.getStyles=S;
|
@@ -0,0 +1 @@
|
|
1
|
+
import{cx as e,VStack as r,HStack as t,Box as i,Text as o,getStyles as a}from"./chunk-3WLIHKQU.js";import{forwardRef as l,useMemo as n}from"react";import{jsxs as d,jsx as s}from"react/jsx-runtime";/*! © 2025 Yahoo, Inc. UDS v0.0.0-development */var c={horizontal:"w-full",vertical:""},h=l((function({vertical:a=!1,contentPosition:l="center",className:h,layerClassNames:m,children:f,...v},x){const N=a?"vertical":"horizontal",b=a?r:t,p=n((()=>({root:e(c[N],h,m?.root),label:m?.text,line:m?.line})),[h,N,m?.root,m?.text,m?.line]),y=n((()=>"vertical"===N?{borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0}:{borderLeftWidth:0,borderRightWidth:0,borderBottomWidth:0}),[N]),u=()=>s(i,{flex:"1",className:p.line,style:y});return f?d(b,{flex:"1",alignItems:"center",className:p.root,ref:x,...v,children:["start"!==l&&s(u,{}),s(i,{flex:"none",children:s(o,{color:"inherit",variant:"inherit",className:p.label,children:f})}),"end"!==l&&s(u,{})]}):s(i,{display:"flex",flex:"none",className:p.root,ref:x,...v,children:s(u,{})})}));h.displayName="DividerCore";var m=l((function({variant:r="primary",layerClassNames:t,...i},o){const l=n((()=>({root:e("inherit"!==r&&a({dividerVariantRoot:r}),t?.root),text:e("inherit"!==r?a({dividerVariantLabel:r}):void 0,t?.text),line:e("inherit"!==r&&a({dividerVariantLine:r}),t?.line)})),[t?.line,t?.root,t?.text,r]);return s(h,{ref:o,layerClassNames:l,...i})}));m.displayName="DividerInternal";export{m as DividerInternal};
|